html_url
stringlengths
51
51
comments
stringlengths
67
24.7k
title
stringlengths
6
280
body
stringlengths
51
36.2k
comment_length
int64
16
1.45k
text
stringlengths
190
38.3k
embeddings
sequence
https://github.com/huggingface/datasets/issues/5650
> @WiNE-iNEFF Probably they are named inconsistently so that the correct pattern for which files should correspond to which split cannot be inferred. You can make it clearer to the loader by removing split names from filenames and putting files in separate folder for each split (you can take a look at the [documentation for imagefolder](https://huggingface.co/docs/datasets/image_dataset#imagefolder)): > ``` > Fuaimeanna2/ > β”œβ”€ test > β”‚Β Β  β”œβ”€ label_0 > β”‚Β Β  β”‚Β Β  β”œβ”€β”€ filename_0.jpg > β”‚Β Β  β”‚Β Β  └── filename_1.jpg > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  β”œβ”€ label_1 > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  β”œβ”€ label_2 > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  └─ label_3 > β”‚Β Β  └── ... > β”œβ”€ train > β”‚Β Β  β”œβ”€ label_0 > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  β”œβ”€ label_1 > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  β”œβ”€ label_2 > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  └─ label_3 > β”‚Β Β  └── ... > └── validation > Β Β  β”œβ”€ label_0 > Β Β  β”‚Β Β  └── ... > Β Β  β”œβ”€ label_1 > Β Β  β”‚Β Β  └── ... > Β Β  β”œβ”€ label_2 > Β Β  β”‚Β Β  └── ... > └─ label_3 > └── ... > ``` I have read this documentation more than once. It just wasn't a problem before.
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
192
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked > @WiNE-iNEFF Probably they are named inconsistently so that the correct pattern for which files should correspond to which split cannot be inferred. You can make it clearer to the loader by removing split names from filenames and putting files in separate folder for each split (you can take a look at the [documentation for imagefolder](https://huggingface.co/docs/datasets/image_dataset#imagefolder)): > ``` > Fuaimeanna2/ > β”œβ”€ test > β”‚Β Β  β”œβ”€ label_0 > β”‚Β Β  β”‚Β Β  β”œβ”€β”€ filename_0.jpg > β”‚Β Β  β”‚Β Β  └── filename_1.jpg > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  β”œβ”€ label_1 > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  β”œβ”€ label_2 > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  └─ label_3 > β”‚Β Β  └── ... > β”œβ”€ train > β”‚Β Β  β”œβ”€ label_0 > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  β”œβ”€ label_1 > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  β”œβ”€ label_2 > β”‚Β Β  β”‚Β Β  └── ... > β”‚Β Β  └─ label_3 > β”‚Β Β  └── ... > └── validation > Β Β  β”œβ”€ label_0 > Β Β  β”‚Β Β  └── ... > Β Β  β”œβ”€ label_1 > Β Β  β”‚Β Β  └── ... > Β Β  β”œβ”€ label_2 > Β Β  β”‚Β Β  └── ... > └─ label_3 > └── ... > ``` I have read this documentation more than once. It just wasn't a problem before.
[ -0.12241026014089584, -0.11892423778772354, 0.005867376923561096, 0.8745822906494141, 0.27257031202316284, 0.005886740982532501, 0.41406768560409546, 0.02898995578289032, 0.41754472255706787, 0.1267840564250946, -0.13153648376464844, -0.027952808886766434, -0.07020364701747894, 0.2635793089866638, -0.095071941614151, -0.2014894336462021, 0.21269018948078156, 0.02484849840402603, -0.03600454330444336, -0.281241774559021, -0.25553447008132935, 0.24346451461315155, -0.23793631792068481, -0.29469484090805054, -0.5226754546165466, 0.18038146197795868, -0.16288962960243225, 0.35961610078811646, -0.2774578034877777, 0.08952246606349945, 0.003237687051296234, 0.011008072644472122, 0.24388360977172852, 0.718070924282074, -0.00012869320926256478, 0.07259364426136017, 0.15893876552581787, -0.3163731098175049, -0.05551236867904663, -0.13494685292243958, -0.26371172070503235, -0.017679262906312943, 0.07212486863136292, -0.14415588974952698, 0.09710651636123657, 0.030736397951841354, -0.04033799469470978, -0.005945675075054169, 0.4478066861629486, 0.26427823305130005, 0.08008642494678497, -0.2666899561882019, -0.0012037158012390137, 0.11346842348575592, 0.2097078561782837, 0.44015762209892273, -0.034245848655700684, 0.37704455852508545, -0.10178223252296448, -0.025817643851041794, -0.0026506707072257996, 0.14927393198013306, 0.03321952372789383, 0.13844917714595795, 0.2867022752761841, 0.18443627655506134, -0.18787771463394165, -0.6074332594871521, -0.09724525362253189, 0.17323586344718933, 0.43336302042007446, 0.10922805964946747, -0.30282700061798096, -0.36481988430023193, -0.07808585464954376, -0.04620196670293808, 0.24766507744789124, 0.25954121351242065, -0.12741559743881226, -0.17504122853279114, -0.2242605984210968, 0.03692810609936714, -0.3117920458316803, 0.25843319296836853, 0.061683788895606995, 0.00735434889793396, -0.20588433742523193, 0.32804563641548157, 0.47199389338493347, 0.20436300337314606, -0.02390224114060402, -0.17230327427387238, -0.016838237643241882, 0.18839897215366364, -0.26528531312942505, 0.0450744554400444, -0.43830937147140503, 0.6994681358337402, 0.14636358618736267, 0.21046283841133118, -0.015101231634616852, -0.036724209785461426, -0.0507265068590641, 0.13123157620429993, 0.1593126356601715, 0.23400527238845825, 0.10654200613498688, 0.17787452042102814, 0.04408034309744835, 0.10704220831394196, -0.29753437638282776, 0.013935534283518791, -0.4894978106021881, -0.22639884054660797, -0.259387731552124, -0.30179664492607117, -0.05169074609875679, -0.0012051910161972046, -0.10245372354984283, -0.3999158442020416, 0.12599653005599976, -0.3001976013183594, 0.19693441689014435, 0.3770104944705963, 0.14333854615688324, 0.11507988721132278, 0.03955497592687607, 0.22884248197078705, -0.21301549673080444, -0.18534480035305023, -0.09061440825462341, -0.017778053879737854, -0.4210001826286316, 0.22254636883735657, 0.06485216319561005, -0.25098180770874023, 0.19041457772254944, 0.09513747692108154, 0.05221831053495407, -0.15495872497558594, -0.03296999633312225, -0.5322096943855286, 0.10467618703842163, 0.13094283640384674, -0.01861461251974106, 0.03349526971578598, 0.1296054869890213, -0.12549158930778503, -0.011863484978675842, 0.06618936359882355, -0.7876993417739868, -0.014477916061878204, -0.04259735345840454, -0.0235423743724823, -0.15260501205921173, -0.028288915753364563, -0.6879550814628601, 0.2236642688512802, 0.13722579181194305, -0.18435782194137573, 0.07310900092124939, -0.16193199157714844, -0.16675640642642975, -0.19543372094631195, 0.15937642753124237, 0.6098312139511108, -0.5548251867294312, -0.020368091762065887, -0.16272032260894775, -0.27210158109664917, 0.16721823811531067, 0.3845658004283905, -0.052716270089149475, 0.33061617612838745, -0.38897964358329773, -0.03925283998250961, 0.22711844742298126, -0.1922706961631775, -0.24551653861999512, 0.2267014980316162, 0.17777720093727112, -0.07680296897888184, 0.15751086175441742, 0.2781688868999481, 0.2661486864089966, -0.06081383302807808, -0.16790327429771423, 0.15866482257843018, -0.1400342434644699, -0.05386563390493393, 0.13130177557468414, -0.06963953375816345, 0.11337144672870636, 0.16174978017807007, -0.18728533387184143, 0.19548869132995605, 0.16727963089942932, -0.09254853427410126, 0.2618800103664398, -0.09075887501239777, 0.24840067327022552, 0.19593578577041626, 0.12225247174501419, 0.40471047163009644, 0.23163644969463348, 0.3141959309577942, -0.5353212356567383, 0.24987074732780457, 0.17989835143089294, -0.004997692070901394, -0.05361903831362724, 0.272330641746521, -0.24112986028194427, -0.21597720682621002, -0.5205304026603699, -0.17774534225463867, -0.1227845847606659, 0.19694435596466064, 0.14527836441993713, -0.26791661977767944, -0.2386053204536438, 0.43249383568763733, -0.2337486743927002, 0.16655799746513367, -0.36337682604789734, 0.484995573759079, 0.0751105323433876, -0.23762114346027374, -0.0878901481628418, -0.23461568355560303, 0.010922638699412346, -0.2510274052619934, 0.017111975699663162, 0.32752692699432373, 0.5135461688041687, -0.1686817854642868, -0.0010775404516607523, -0.048753589391708374, 0.20927274227142334, -0.21485108137130737, 0.08241602033376694, -0.16442754864692688, 0.322648823261261, -0.13153037428855896, -0.24901168048381805, -0.026824884116649628, -0.22087973356246948, 0.428506463766098, -0.10495340824127197, -0.21995487809181213, 0.0623493567109108, -0.024460695683956146, 0.1402050256729126, -0.028469309210777283, 0.19186222553253174, -0.025408616289496422, 0.4396398663520813, 0.17091034352779388, -0.049807339906692505, -0.18723341822624207, 0.17838522791862488, -0.05526123568415642, -0.18635962903499603, 0.3168931007385254, -0.11902739107608795, 0.044716134667396545, 0.07233919948339462, 0.2903161942958832, 0.6580796241760254, 0.06816938519477844, -0.12999016046524048, -0.041380226612091064, 0.14602568745613098, -0.08586755394935608, -0.01715075969696045, 0.021227946504950523, 0.6090807914733887, 0.15961618721485138, -0.21266081929206848, -0.06586873531341553, -0.4167746305465698, -0.208205908536911, 0.29008299112319946, 0.1961461901664734, -0.3306056559085846, 0.22097206115722656, 0.09703827649354935, -0.1975328028202057, -0.14549660682678223, 0.08684445917606354, -0.4188150465488434, 0.0570899173617363, -0.13357596099376678, 0.17062431573867798, 0.16070964932441711, -0.0775228887796402, -0.03241320326924324, 0.23980163037776947, 0.050927311182022095, -0.3182242214679718, -0.3749832510948181, 0.23124650120735168, -0.143789142370224, -0.07426069676876068, 0.22515815496444702, -0.08372202515602112, 0.12166871875524521, -0.3347148299217224, -0.2342509776353836, -0.025793064385652542, -0.2679980397224426, 0.28582677245140076, -0.34554147720336914, 0.3039700984954834, 0.06346925348043442, 0.34589359164237976, 0.09677484631538391, -0.1704092174768448, 0.31251049041748047, -0.16339637339115143, -0.24572128057479858, 0.036663420498371124, -0.02389260195195675, 0.06039802357554436, -0.10029690712690353, -0.13576656579971313, -0.2982076406478882, -0.1846781075000763, 0.22656427323818207, 0.3731793165206909, 0.15959620475769043, 0.24418818950653076, 0.3672155737876892, -0.25860053300857544, -0.1558530479669571, -0.07272970676422119, -0.1626535803079605, -0.34150272607803345, 0.3268151879310608, -0.018731623888015747, -0.3024279475212097, 0.06129641830921173, -0.07908941060304642, -0.002174519933760166, 0.1326732337474823, -0.40011346340179443, -0.27547934651374817, -0.021277619525790215, -0.12910571694374084, 0.09824979305267334, 0.265962690114975, -0.05694418400526047, -0.3080121874809265, 0.18846794962882996, -0.3189515471458435, -0.15156856179237366, 0.21531841158866882, -0.06174198538064957, 0.43601658940315247, 0.03867385908961296, 0.23523467779159546, -0.21271689236164093, 0.2937147319316864, 0.1988217830657959, -0.014568454585969448, 0.4458208978176117, -0.22720812261104584, 0.45298558473587036, -0.2525768280029297, 0.02256389707326889, 0.3798818290233612, 0.004598110914230347, -0.11070560663938522, 0.26024046540260315, 0.1321222484111786, -0.008397538214921951, -0.0837806910276413, 0.13873282074928284, -0.29697442054748535, -0.009572342038154602, 0.23370009660720825, 0.2605065703392029, 0.023529628291726112, -0.28243106603622437, -0.16694672405719757, 0.10659630596637726, -0.22683262825012207, -0.019374582916498184, 0.41762852668762207, 0.21548974514007568, 0.1690753698348999, -0.43556109070777893, 0.27097421884536743, 0.03360845893621445, 0.3482876420021057, -0.002354104071855545, 0.05061960220336914, -0.16349215805530548, 0.08397259563207626, 0.14346912503242493, 0.25137612223625183, 1.0681270360946655, -0.07872679829597473, -0.21265506744384766, -0.015602994710206985, -0.044088538736104965, -0.3825383186340332, -0.005549684166908264, -0.16561800241470337, -0.03076479397714138, -0.012496596202254295, 0.5724278688430786, -0.3857160806655884, -0.18432171642780304, 0.08593124151229858, 0.46854931116104126, -0.33064308762550354, -0.3652692437171936, -0.45683544874191284, -0.12601378560066223, -0.3813987374305725, -0.19976624846458435, 0.07485222071409225, -0.03725244104862213, 0.13012775778770447, 0.0064577385783195496, 0.059424638748168945, -0.28282344341278076, 0.16168604791164398, 0.03920704126358032, 0.4819451868534088, 0.30454978346824646, 0.022007443010807037, 0.379582017660141, 0.12049387395381927, 0.3198906481266022, 0.6902447938919067, -0.6140161752700806, -0.29297584295272827, 0.31517091393470764, -0.060930684208869934, 0.2644350528717041, 0.14551953971385956, -0.01896826922893524, -0.227190762758255, 0.007533390074968338, 0.14945094287395477, -0.3486939072608948, 0.2583480477333069, 0.39684534072875977, -0.1490899622440338, -0.45990049839019775, -0.5624884366989136, 0.4626946449279785, -0.0812244862318039, -0.022275716066360474, 0.2903246581554413, 0.33140313625335693, -0.27320238947868347, 0.13141745328903198, -0.12784911692142487, 0.9514893293380737, -0.06129151210188866, 0.24058690667152405, 0.14147093892097473, 0.14639991521835327, 0.26891112327575684, 0.2964797616004944, 0.05438149720430374, -0.3166624903678894, -0.15884968638420105, -0.083737812936306, -0.09724851697683334, 0.00702481996268034, 0.44223517179489136, 0.13762398064136505, 0.3614412546157837, -0.12169476598501205, -0.16496548056602478, -0.02606358751654625, 0.15967610478401184, -0.040954023599624634, -0.23461490869522095, -0.2870559096336365, 0.048893511295318604, 0.16445674002170563, 0.304893434047699, 0.0411471463739872, 0.08253361284732819, -0.14339804649353027, -0.0624774731695652, 0.01820775866508484, 0.02863607555627823, -0.504705011844635, -0.06800142675638199, 0.12247557938098907, -0.3411068022251129, -0.23047593235969543, 0.41748642921447754, -0.23149341344833374, -0.29452821612358093, 0.06689949333667755, 0.24652056396007538, -0.21683479845523834, 0.03649117797613144, -0.10192650556564331, -0.31707626581192017, 0.2330578714609146, 0.0475800484418869, 0.04618753492832184, -0.35258835554122925, -0.17074543237686157, -0.29720693826675415, -0.08776045590639114, 0.14983923733234406, 0.1624954640865326, -0.34287652373313904, -0.26871684193611145, -0.10469038784503937, -0.03988965228199959, -0.05036725476384163, -0.03846726194024086, 0.19802013039588928, 0.020592521876096725, 0.3107801377773285, -0.19297222793102264, -0.33153098821640015, -0.07400648295879364, 0.15282440185546875, -0.09117347747087479, 0.009392626583576202, 0.3358202576637268, 0.10039731860160828, 0.07711827754974365, 0.014134056866168976, 0.39403098821640015, 0.4616704285144806, -0.7037391662597656, 0.23020845651626587, 0.10441204905509949, 0.1352497637271881, 0.05497922748327255, 0.1707489937543869, 0.2567172348499298, -0.1269388496875763, -0.07269498705863953, -0.42413216829299927, -0.3246859908103943, 0.08470853418111801, -0.05332668125629425, 0.11867619305849075, -0.09579179435968399, -0.3687196969985962, 0.35542500019073486, 0.0077251773327589035, -0.1000618040561676, 0.12304579466581345, -0.06494368612766266, 0.17792287468910217, 0.3021267056465149, 0.24860642850399017, 0.3445218801498413, -0.06260374188423157, -0.0784810334444046, 0.08778080344200134, 0.01382765918970108, 0.06288383901119232, -0.33840233087539673, 0.2380165159702301, 0.2037038505077362, 0.20673832297325134, -0.10367372632026672, -0.3838895559310913, -0.1780470460653305, -0.23783814907073975, 0.21721217036247253, 0.08864492177963257, -0.08694737404584885, -0.0487741120159626, 0.06294900178909302, -0.04044298082590103, -0.17488904297351837, 0.11907526105642319, -0.1222284808754921, 0.548997700214386, 0.46205541491508484, -0.04396270215511322, 0.1466313749551773, -0.0747617557644844, -0.1940343677997589, 0.11138518154621124, 0.13468945026397705, -0.15595370531082153, 0.15526790916919708, -0.12390485405921936, 0.3734899163246155, -0.046842288225889206, 0.40564388036727905, 0.503679633140564, -0.20380175113677979, 0.1896359622478485, 0.15614715218544006, -0.018418557941913605, -0.1599227786064148, -0.004033531993627548, -0.14920318126678467, -0.11807423830032349, -0.04257272928953171, 0.31821346282958984, -0.1438586711883545, 0.17850138247013092, -0.27765777707099915, -0.028641335666179657, 0.46015414595603943, 0.1523580402135849, 0.05257905647158623, 0.15447761118412018, -0.31849709153175354, 0.3258299231529236, 0.45594218373298645, 0.08483843505382538, -0.20467081665992737, 0.3657062351703644, -0.15276163816452026, 0.3500451147556305, -0.20395632088184357, 0.10333056002855301, 0.26738080382347107, -0.25695300102233887, -0.08266067504882812, 0.38087528944015503, 0.1309562772512436, 0.0005848612636327744, -0.33009183406829834, 0.2577812969684601, -0.22304999828338623, -0.18984055519104004, -0.036426786333322525, -0.033691681921482086, 0.1355404108762741, 0.059628937393426895, -0.3023639917373657, -0.3232771158218384, -0.315397709608078, 0.14825507998466492, -0.09242090582847595, -0.5254708528518677, 0.30465635657310486, 0.23948077857494354, -0.20802633464336395, -0.30358558893203735, -0.322692334651947, 0.3819347321987152, -0.033961400389671326, -0.19251656532287598, 0.5924227237701416, 0.04904591664671898, 0.0853787362575531, 0.4161223769187927, 0.16443532705307007, 0.30733373761177063, 0.2968789339065552, 0.5018678307533264, -0.07654482126235962, 0.04070907086133957, -0.016702234745025635, -0.09322591125965118, 0.2970745265483856, 0.18138527870178223, 0.22010955214500427, 0.08852611482143402, 0.008574802428483963, -0.05222444236278534, -0.008658829145133495, 0.013607526198029518, 0.07521747797727585, -0.1303565502166748, 0.34880098700523376, -0.238922119140625, 0.0757879912853241, -0.3294663727283478, 0.06924174726009369, -0.4855472445487976, 0.04633592814207077, 0.12348959594964981, -0.18334291875362396, 0.05221443250775337, 0.19141992926597595, -0.05908360332250595, 0.061648618429899216, 0.4639032483100891, 0.04575220122933388, 0.1151307225227356, -0.3632897734642029, -0.2558591365814209, -0.6638753414154053, 0.0636051595211029, -0.15063698589801788, -0.17511853575706482, -0.1933964043855667, 0.1494220793247223, 0.15631957352161407, 0.030346810817718506, 0.4045395255088806, -0.07685672491788864, 0.3730786144733429, 0.15958735346794128, -0.2201361358165741, -0.06010042876005173, -0.06351055204868317, 0.5445087552070618, -0.059049397706985474, -0.4101651906967163, 0.19460603594779968, -0.10478980839252472, -0.19411727786064148, 0.10254053771495819, -0.025280632078647614, -0.043917011469602585, -0.06181706488132477, 0.29795435070991516, 0.19105476140975952, 0.5664293766021729, -0.19431072473526, 0.15406644344329834, -0.2754260003566742, -0.2678929567337036, -0.29877769947052, 0.09500755369663239, 0.16679973900318146, 0.22299858927726746, -0.21115916967391968, -0.03552114963531494, -0.40002185106277466, 0.06085739657282829, 0.06452839821577072, 0.13521569967269897, -0.44808316230773926, 0.0664544627070427, 0.07415768504142761, -0.09862752258777618, 0.3828311562538147, 0.17031732201576233, -0.10899285972118378, -0.37485042214393616, -0.21394869685173035, -0.026089094579219818, 0.45929116010665894, -0.42346182465553284, -0.3165642023086548, 0.06414371728897095, -0.036672502756118774, 0.21491751074790955, 0.1651940792798996, -0.33218687772750854, 0.19270527362823486, 0.3397442698478699, -0.061642829328775406, -0.3175306022167206, 0.18332599103450775, 0.033581916242837906, 0.0816950872540474, 0.1667429506778717, -0.05249928683042526, 0.2615072429180145, -0.4505396783351898, 0.33238399028778076, -0.18056252598762512 ]
https://github.com/huggingface/datasets/issues/5650
Hi, You need to use: ``` from datasets import load_dataset dataset = load_dataset("imagefolder", split="train", data_dir="path_to_your_folder") ``` instead of ``` from datasets import load_dataset dataset = load_dataset("my_folder_name", split="train") ``` To create an image dataset from your local folders.
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
37
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked Hi, You need to use: ``` from datasets import load_dataset dataset = load_dataset("imagefolder", split="train", data_dir="path_to_your_folder") ``` instead of ``` from datasets import load_dataset dataset = load_dataset("my_folder_name", split="train") ``` To create an image dataset from your local folders.
[ -0.20772546529769897, 0.025100961327552795, -0.09739562124013901, 0.7922841906547546, 0.4022718667984009, 0.06442459672689438, 0.34789472818374634, 0.1608298271894455, 0.25126713514328003, 0.2041633129119873, -0.029138965532183647, 0.0017764493823051453, -0.11698471009731293, 0.06462621688842773, -0.07785451412200928, -0.1088804081082344, 0.15582895278930664, 0.08590436726808548, -0.24053660035133362, -0.3830646276473999, -0.3814825713634491, 0.15472474694252014, -0.14938867092132568, -0.3648171126842499, -0.4504408538341522, 0.2518772482872009, -0.23406051099300385, 0.2434464991092682, -0.16757147014141083, 0.033214617520570755, -0.007887445390224457, 0.05581245943903923, 0.31218019127845764, 0.7841618657112122, -0.00012121109466534108, -0.08463387191295624, 0.2940187156200409, -0.28946614265441895, -0.06137992814183235, -0.27737897634506226, -0.32190123200416565, -0.29575201869010925, 0.17271195352077484, -0.2466946393251419, 0.015811190009117126, -0.12243270874023438, -0.025401122868061066, -0.362024188041687, 0.48834314942359924, 0.3620542287826538, 0.13497410714626312, -0.4662148952484131, 0.03671783208847046, 0.19906511902809143, 0.18734589219093323, 0.4104147255420685, 0.12513984739780426, 0.26616421341896057, -0.1739119589328766, -0.08614397794008255, 0.33320367336273193, 0.12989327311515808, -0.049198396503925323, 0.08437277376651764, 0.30686962604522705, 0.22693753242492676, -0.24926789104938507, -0.6727266907691956, 0.026973847299814224, 0.012192567810416222, 0.569985568523407, -0.036055199801921844, -0.2049124389886856, -0.09788744151592255, -0.01156940683722496, -0.21986794471740723, 0.08326800912618637, 0.3630792498588562, -0.026175495237112045, -0.192516028881073, -0.2605467736721039, -0.12889917194843292, -0.38600847125053406, 0.42235422134399414, -0.006154730916023254, -0.07096609473228455, -0.13856787979602814, 0.2973678410053253, 0.23968759179115295, 0.16755376756191254, 0.39492303133010864, -0.2445252239704132, 0.17617231607437134, 0.3470509946346283, -0.18316376209259033, 0.13014866411685944, -0.31728944182395935, 0.3269292414188385, 0.050065889954566956, 0.046714331954717636, -0.18568430840969086, -0.12454193085432053, -0.06559935957193375, 0.0446963869035244, 0.2083779275417328, 0.14014014601707458, 0.0956498384475708, 0.3045693635940552, 0.08659841120243073, -0.22206585109233856, -0.4069346785545349, -0.20594191551208496, -0.43184125423431396, -0.313692569732666, 0.09669780731201172, -0.15739333629608154, -0.05430695414543152, -0.011210136115550995, 0.11303688585758209, -0.18261554837226868, 0.020816437900066376, -0.2410305142402649, 0.02245396003127098, 0.34393006563186646, 0.10504266619682312, 0.18474027514457703, 0.12542083859443665, 0.3677043318748474, -0.1413213610649109, -0.1478896141052246, -0.11887720227241516, 0.07007568329572678, -0.23914778232574463, 0.03751232475042343, 0.057397931814193726, -0.242001473903656, 0.15627864003181458, 0.01502520963549614, 0.0714445561170578, -0.26691240072250366, 0.1014695018529892, -0.5147039294242859, 0.19936153292655945, 0.2691669762134552, 0.1793784350156784, 0.13767944276332855, 0.07951201498508453, 0.010269232094287872, -0.014217086136341095, 0.2542489469051361, -0.7837554812431335, -0.016602471470832825, -0.09220639616250992, 0.0737074762582779, -0.13266156613826752, -0.02053438499569893, -0.6846311092376709, 0.04866062104701996, 0.19599755108356476, 0.0020644143223762512, 0.026332814246416092, -0.22377848625183105, -0.13881447911262512, -0.33027780055999756, 0.1703205704689026, 0.6270416378974915, -0.35143426060676575, 0.18891669809818268, -0.3981178402900696, -0.13973264396190643, 0.29896432161331177, 0.22721940279006958, -0.1577097326517105, 0.3989250957965851, -0.2862148880958557, -0.0692552775144577, 0.35237395763397217, -0.30639365315437317, -0.23115766048431396, 0.2985840439796448, 0.24415430426597595, -0.38561171293258667, -0.02396966889500618, 0.3085983693599701, -0.023455455899238586, 0.06494629383087158, -0.12488068640232086, 0.29228559136390686, -0.09778129309415817, 0.08946813642978668, 0.13958284258842468, -0.01748201623558998, 0.21144264936447144, 0.17451700568199158, 0.013669186271727085, 0.20440208911895752, 0.33475345373153687, 0.06406448781490326, 0.1884329915046692, -0.1684374213218689, 0.1880054622888565, 0.31964218616485596, 0.24198001623153687, 0.15979354083538055, 0.12277922034263611, 0.17052939534187317, -0.4177287817001343, 0.09924911707639694, 0.009324319660663605, 0.06477883458137512, -0.12016543745994568, 0.3362553119659424, -0.29609766602516174, -0.2138841599225998, -0.3998930752277374, 0.03831387683749199, -0.014200299978256226, -0.05642596632242203, 0.10914857685565948, -0.2187156081199646, -0.06308479607105255, 0.4916124939918518, -0.2763151228427887, 0.10587307810783386, -0.13908393681049347, 0.5358487963676453, 0.0873238816857338, -0.2920151650905609, -0.08128000795841217, -0.2215379923582077, 0.19385968148708344, -0.3004896640777588, -0.14740636944770813, 0.3900895416736603, 0.5371265411376953, -0.02210197225213051, -0.11397265642881393, -0.05378657579421997, 0.17994342744350433, -0.34516242146492004, 0.16725213825702667, 0.018055278807878494, 0.4821944832801819, -0.15666212141513824, -0.16256071627140045, 0.055890340358018875, -0.200891375541687, 0.3321179151535034, -0.028541572391986847, -0.13813570141792297, 0.1323445439338684, -0.055429741740226746, 0.09150279313325882, -0.03480794280767441, 0.048118434846401215, 0.18154335021972656, 0.27599406242370605, 0.09287581592798233, 0.10597434639930725, -0.300764799118042, 0.09268784523010254, 0.0098196342587471, -0.030738946050405502, 0.23480595648288727, -0.1421395093202591, 0.028072074055671692, 0.005234185606241226, 0.26354944705963135, 0.7095208764076233, 0.13648861646652222, -0.089509978890419, 0.07460562884807587, 0.24396099150180817, -0.04372057318687439, 0.08756812661886215, 0.09776058048009872, 0.5795815587043762, 0.18066634237766266, -0.08039002865552902, -0.0010655205696821213, -0.26091280579566956, -0.10188544541597366, 0.08184493333101273, 0.3317602872848511, -0.2262440323829651, 0.16772231459617615, -0.04904418811202049, -0.32496851682662964, -0.22591903805732727, 0.12221940606832504, -0.31702208518981934, -0.010363712906837463, -0.31462666392326355, -0.11626259982585907, 0.1887725293636322, -0.15569330751895905, -0.07821536809206009, -0.01770801842212677, 0.06066511571407318, -0.486261785030365, -0.17857769131660461, 0.13133969902992249, -0.08798103034496307, -0.03182539343833923, 0.14761826395988464, 0.03526201844215393, 0.19507673382759094, -0.30039462447166443, -0.1773800551891327, 0.07361731678247452, -0.06567485630512238, 0.11970560252666473, -0.13888651132583618, 0.20557710528373718, -0.07205241918563843, 0.3059544563293457, 0.14185985922813416, -0.06469745934009552, 0.16733691096305847, -0.18798011541366577, -0.1610715091228485, 0.01538190245628357, -0.02437479980289936, 0.12688209116458893, -0.039980702102184296, -0.34034600853919983, -0.3841046392917633, -0.18111178278923035, -0.0878598690032959, 0.596572995185852, 0.2642352879047394, 0.20390871167182922, 0.44046103954315186, -0.14917732775211334, 0.15459024906158447, -0.040119510143995285, -0.18438370525836945, -0.3599981367588043, 0.3285662531852722, -0.14245447516441345, -0.4095921516418457, 0.11167633533477783, -0.06507179886102676, 0.10069932788610458, 0.1793041229248047, -0.40216755867004395, -0.09362554550170898, -0.20960953831672668, -0.12012936919927597, -0.045488737523555756, 0.4334278702735901, -0.005355414003133774, -0.29432663321495056, 0.12765713036060333, -0.29665660858154297, -0.018972519785165787, 0.023192279040813446, 0.15770888328552246, 0.35823220014572144, 0.07306575775146484, 0.2725938558578491, -0.367867112159729, 0.33113670349121094, 0.24363479018211365, -0.12841126322746277, 0.622623085975647, -0.3185000419616699, 0.4278595745563507, -0.31514468789100647, -0.17226073145866394, 0.3103662133216858, 0.12753260135650635, -0.12549228966236115, 0.11051394045352936, 0.12649378180503845, -0.15752118825912476, -0.2555275559425354, 0.01892784982919693, -0.5647353529930115, 0.049302518367767334, 0.11215011030435562, 0.13975316286087036, 0.138416588306427, -0.2720160484313965, -0.22269846498966217, 0.05775264650583267, -0.22887015342712402, -0.11537547409534454, 0.18099959194660187, 0.17674612998962402, 0.07207991927862167, -0.3055536448955536, 0.10742883384227753, -0.021568506956100464, 0.39264488220214844, 0.006177358329296112, 0.13490115106105804, -0.039552271366119385, 0.23299942910671234, 0.0905599445104599, 0.15219496190547943, 0.7744598984718323, -0.2871372103691101, -0.21976950764656067, 0.1211944967508316, -0.027957506477832794, -0.47621849179267883, 0.051726534962654114, -0.2083178013563156, -0.028626123443245888, -0.09718799591064453, 0.38250407576560974, -0.18704408407211304, -0.08373658359050751, 0.08198468387126923, 0.5703907012939453, -0.3818417191505432, -0.38352450728416443, -0.4086640179157257, -0.2800893187522888, -0.2931680977344513, -0.3382453918457031, 0.06708136200904846, 0.18685826659202576, 0.14854516088962555, -0.09325870126485825, -0.16547200083732605, -0.3397922217845917, 0.12921848893165588, -0.1061786487698555, 0.5338621139526367, 0.2901722490787506, 0.07018642127513885, 0.26485371589660645, -0.05868721008300781, 0.49537158012390137, 0.6566944122314453, -0.4983460307121277, -0.11264438182115555, 0.18702036142349243, -0.07593421638011932, 0.48211073875427246, -0.015416286885738373, -0.14997166395187378, -0.3568028509616852, -0.07460033148527145, -0.02319125458598137, -0.31744861602783203, 0.28718698024749756, 0.29569971561431885, -0.10957765579223633, -0.2662467956542969, -0.7262797951698303, 0.5567425489425659, 0.07179422676563263, 0.09361924231052399, 0.2461482733488083, -0.020931024104356766, -0.3459959626197815, 0.14355434477329254, 0.028942517936229706, 0.9163194298744202, -0.12235583364963531, 0.20643572509288788, -0.06717005372047424, 0.16358162462711334, 0.30181974172592163, 0.11366648226976395, -0.08772112429141998, -0.3268734812736511, -0.14813736081123352, -0.0362686887383461, -0.1927136778831482, 0.12875118851661682, 0.3763831555843353, 0.0716060996055603, 0.4038170874118805, -0.4661392271518707, -0.170637309551239, -0.2098708301782608, 0.33607953786849976, -0.0592576339840889, -0.17629700899124146, -0.24749569594860077, 0.12121644616127014, 0.10426229238510132, 0.23352313041687012, -0.006472524255514145, 0.10701622068881989, -0.2517617642879486, -0.060366325080394745, 0.009819447994232178, 0.05772660672664642, -0.2916871905326843, 0.09096086025238037, -0.1538095772266388, -0.3632287383079529, -0.13536447286605835, 0.6104580163955688, -0.03268994390964508, -0.13070319592952728, -0.006002085283398628, 0.09047465026378632, -0.17626360058784485, 0.05748727172613144, -0.1140364557504654, -0.11050587892532349, 0.18855153024196625, 0.006747245788574219, -0.05514759570360184, -0.17541874945163727, -0.08145686984062195, -0.2082345187664032, -0.009832695126533508, 0.1365489661693573, 0.23789747059345245, -0.37388360500335693, -0.27364882826805115, -0.01746527850627899, -0.04066329821944237, 0.012410856783390045, 0.05232284963130951, 0.3110392689704895, -0.021601608023047447, 0.46864840388298035, -0.0800427496433258, -0.3531281352043152, -0.05754077062010765, 0.22253313660621643, 0.2252664864063263, -0.12625735998153687, 0.34958958625793457, 0.05626872181892395, 0.04452057182788849, -0.1617978811264038, 0.5327213406562805, 0.33839863538742065, -0.2599087655544281, 0.28875303268432617, 0.09967008233070374, 0.28492939472198486, 0.030258111655712128, 0.11052964627742767, 0.07719922065734863, -0.08265069127082825, -0.046660710126161575, -0.4211529791355133, -0.3915843069553375, -0.024109646677970886, 0.054562825709581375, 0.2453780621290207, -0.048478756099939346, -0.3392508625984192, 0.4426374137401581, 0.0051341913640499115, -0.1701308637857437, 0.08557011932134628, -0.01663188263773918, 0.18122901022434235, 0.20321162045001984, 0.22485023736953735, 0.1464291214942932, -0.0763869658112526, 0.00482587143778801, 0.007192043587565422, 0.0016842745244503021, -0.05930840224027634, -0.2875405251979828, 0.23745468258857727, 0.2100186049938202, 0.08557886630296707, 0.02764737978577614, -0.690748929977417, -0.22295784950256348, -0.21979676187038422, 0.02920369803905487, 0.028035998344421387, -0.17089185118675232, 0.18383866548538208, 0.3280750513076782, -0.1269020438194275, -0.12722058594226837, 0.1423545479774475, -0.2752792537212372, 0.44779545068740845, 0.31377723813056946, 0.06399545073509216, 0.4286705553531647, -0.16569383442401886, -0.27593696117401123, -0.08471764624118805, -0.03197062015533447, -0.11146092414855957, 0.123140349984169, -0.1364721953868866, 0.3828219175338745, 0.006377696990966797, 0.47802379727363586, 0.5222167372703552, -0.25551724433898926, 0.21341049671173096, 0.2473335862159729, 0.0763435959815979, -0.2053716778755188, -0.1250448077917099, -0.1680200845003128, 0.020076211541891098, -0.04096057638525963, 0.2937857508659363, -0.09546083211898804, 0.1499362289905548, -0.3610592484474182, -0.10908591747283936, 0.46862414479255676, 0.012038860470056534, 0.12658779323101044, 0.18148492276668549, -0.1959879845380783, 0.14462974667549133, 0.24512620270252228, 0.13507020473480225, -0.22412145137786865, 0.5331935286521912, -0.13567645847797394, 0.362924724817276, 0.02725236490368843, -0.03210985288023949, 0.10291065275669098, -0.19649922847747803, 0.1271071881055832, 0.2888084650039673, -0.12896375358104706, 0.05935710668563843, -0.23038706183433533, 0.1366456151008606, -0.03597388416528702, -0.05046045035123825, -0.0064253732562065125, 0.11471033096313477, 0.13433697819709778, 0.020284805446863174, -0.2479373812675476, -0.24341323971748352, -0.16790735721588135, 0.0772886872291565, 0.0631311684846878, -0.6037633419036865, 0.27128323912620544, 0.323832243680954, -0.18951714038848877, -0.22085009515285492, -0.01644757390022278, 0.25714990496635437, -0.06997326761484146, -0.2024366557598114, 0.32809969782829285, 0.0022774524986743927, 0.013621635735034943, 0.22005125880241394, 0.18488377332687378, 0.3390757441520691, 0.4899107813835144, 0.2307930439710617, 0.038949333131313324, 0.18921051919460297, -0.09222252666950226, -0.1561557650566101, 0.29295918345451355, 0.09961535781621933, 0.3508980870246887, 0.10193655639886856, 0.07902197539806366, -0.09630633145570755, -0.06272544711828232, 0.15458115935325623, 0.10891275107860565, -0.17014175653457642, 0.39503082633018494, -0.191544771194458, -0.04322444647550583, -0.4418945610523224, 0.06631862372159958, -0.4568699598312378, 0.02486015483736992, 0.3173590302467346, -0.19988411664962769, 0.1005031168460846, 0.13534104824066162, -0.023350879549980164, -0.0906372219324112, 0.5225655436515808, -0.05139399319887161, 0.3923906087875366, -0.40736669301986694, -0.2760953903198242, -0.6950381994247437, -0.053026795387268066, -0.2332266867160797, -0.08624517917633057, -0.14331437647342682, 0.1527176946401596, 0.04026785492897034, 0.13756093382835388, 0.3439481556415558, 0.014743570238351822, 0.23712202906608582, 0.1751435250043869, -0.2623933255672455, -0.17694585025310516, -0.11539625376462936, 0.49069300293922424, -0.07184028625488281, -0.41397857666015625, 0.10129021108150482, -0.31042325496673584, -0.05047360807657242, 0.024578910320997238, -0.1215534508228302, 0.007573835551738739, 0.19415409862995148, 0.47459959983825684, 0.10829917341470718, 0.5544766187667847, -0.1329408884048462, 0.32110488414764404, -0.14545437693595886, -0.28823256492614746, -0.2865166664123535, 0.16436821222305298, 0.2504568099975586, 0.12985369563102722, -0.3649299740791321, -0.12585210800170898, -0.3387663960456848, -0.024648236110806465, 0.05701150745153427, 0.07571884989738464, -0.3135630786418915, -0.022484436631202698, 0.055515170097351074, -0.05781698226928711, 0.15737199783325195, 0.10118254274129868, -0.11734659969806671, -0.22345183789730072, -0.19749964773654938, -0.15025749802589417, 0.3066268861293793, -0.4186016321182251, -0.3307913541793823, -0.07950938493013382, -0.004362344741821289, -0.044320929795503616, 0.20619037747383118, -0.13147789239883423, 0.20401813089847565, 0.5485644340515137, -0.057323794811964035, -0.364856094121933, 0.3206568956375122, 0.033227741718292236, 0.04203580319881439, 0.19042132794857025, 0.034621093422174454, 0.12678343057632446, -0.2734173834323883, 0.08831983804702759, -0.19566065073013306 ]
https://github.com/huggingface/datasets/issues/5650
> Hi, > > You need to use: > > ``` > from datasets import load_dataset > > dataset = load_dataset("imagefolder", split="train", data_dir="path_to_your_folder") > ``` > > instead of > > ``` > from datasets import load_dataset > > dataset = load_dataset("my_folder_name", split="train") > ``` > > To create an image dataset from your local folders. Thank you, but even using the method that you wrote above absolutely nothing changes, especially without using data_dir on my other data everything works fine
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
81
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked > Hi, > > You need to use: > > ``` > from datasets import load_dataset > > dataset = load_dataset("imagefolder", split="train", data_dir="path_to_your_folder") > ``` > > instead of > > ``` > from datasets import load_dataset > > dataset = load_dataset("my_folder_name", split="train") > ``` > > To create an image dataset from your local folders. Thank you, but even using the method that you wrote above absolutely nothing changes, especially without using data_dir on my other data everything works fine
[ -0.17353495955467224, 0.0693511962890625, -0.09294995665550232, 0.7997750043869019, 0.43360039591789246, 0.09266191720962524, 0.3778237998485565, 0.1352020800113678, 0.2501027286052704, 0.17694854736328125, -0.05331685394048691, 0.011938273906707764, -0.123299241065979, 0.021033525466918945, -0.09467330574989319, -0.07733526825904846, 0.14594997465610504, 0.058308448642492294, -0.2773503065109253, -0.37486231327056885, -0.384613573551178, 0.12118051946163177, -0.14761266112327576, -0.37783074378967285, -0.46288350224494934, 0.2628580927848816, -0.26723289489746094, 0.2567855417728424, -0.10604584962129593, 0.04174589365720749, 0.07342465221881866, 0.02357901819050312, 0.2991149425506592, 0.8166611194610596, -0.00012200465425848961, -0.038447193801403046, 0.29360342025756836, -0.27829012274742126, -0.10658207535743713, -0.31819087266921997, -0.33644407987594604, -0.2700902223587036, 0.16038809716701508, -0.25707781314849854, 0.031077779829502106, -0.10988582670688629, 0.01792321540415287, -0.35162341594696045, 0.4209917485713959, 0.34861359000205994, 0.1252870410680771, -0.48778849840164185, 0.02498963475227356, 0.17919230461120605, 0.17218659818172455, 0.4668669104576111, 0.11326678842306137, 0.30430692434310913, -0.21305729448795319, -0.047807544469833374, 0.2894850969314575, 0.0850648432970047, -0.02836020290851593, 0.11600474268198013, 0.33332905173301697, 0.24633577466011047, -0.20820190012454987, -0.6877617239952087, 0.051921963691711426, 0.019165292382240295, 0.6081847548484802, -0.05292928218841553, -0.20458084344863892, -0.11490950733423233, -0.02465910091996193, -0.16430461406707764, 0.07745611667633057, 0.37683019042015076, -0.035362884402275085, -0.18773432075977325, -0.2951156198978424, -0.09197621792554855, -0.38421860337257385, 0.41481369733810425, 0.030260831117630005, -0.08973519504070282, -0.14539770781993866, 0.3123416006565094, 0.22777657210826874, 0.2134704291820526, 0.40104418992996216, -0.2972715497016907, 0.1730843484401703, 0.30764874815940857, -0.19873978197574615, 0.14724816381931305, -0.33667948842048645, 0.3275567591190338, 0.03128013014793396, 0.015460357069969177, -0.1568199098110199, -0.10237966477870941, -0.08790010213851929, 0.04570067301392555, 0.19068248569965363, 0.12150818109512329, 0.07715167850255966, 0.31513500213623047, 0.08283156901597977, -0.2495107650756836, -0.35609671473503113, -0.16439199447631836, -0.43886318802833557, -0.3006073832511902, 0.0793442502617836, -0.17339663207530975, -0.06953949481248856, 0.03923477232456207, 0.11545997112989426, -0.2209339737892151, 0.013977840542793274, -0.23962238430976868, 0.052049122750759125, 0.34383320808410645, 0.13199535012245178, 0.15977875888347626, 0.08947034180164337, 0.34503787755966187, -0.12755146622657776, -0.07291752845048904, -0.10741275548934937, 0.03780681639909744, -0.2707940936088562, 0.03678683936595917, 0.10912583768367767, -0.21362793445587158, 0.13348793983459473, 0.027571488171815872, 0.09211540222167969, -0.23211972415447235, 0.08573941886425018, -0.5634129047393799, 0.2376401275396347, 0.264522522687912, 0.15934832394123077, 0.19036614894866943, 0.08149868994951248, 0.058938369154930115, -0.020350590348243713, 0.2656140923500061, -0.7928643822669983, -0.022485390305519104, -0.04527690261602402, 0.06080734729766846, -0.15912707149982452, -0.006220766343176365, -0.6729325652122498, 0.05664389953017235, 0.16011402010917664, -0.04056988283991814, 0.06100909784436226, -0.17863738536834717, -0.16225267946720123, -0.343972384929657, 0.18080836534500122, 0.6417373418807983, -0.3616400957107544, 0.19442392885684967, -0.3914259076118469, -0.14472880959510803, 0.29236459732055664, 0.20001718401908875, -0.16628742218017578, 0.42670708894729614, -0.30058789253234863, -0.11148298531770706, 0.3781229853630066, -0.34412068128585815, -0.28174468874931335, 0.328422486782074, 0.2329602837562561, -0.3884323835372925, -0.015738464891910553, 0.35166025161743164, -0.02154482901096344, 0.0545528344810009, -0.16005542874336243, 0.2931433320045471, -0.07002106308937073, 0.09648076444864273, 0.12887443602085114, -0.0530472993850708, 0.18412207067012787, 0.1699131429195404, -0.018373234197497368, 0.1900659054517746, 0.3455001711845398, 0.09400929510593414, 0.17709413170814514, -0.1645587980747223, 0.24949151277542114, 0.3493998050689697, 0.2325180172920227, 0.13100378215312958, 0.11642909049987793, 0.17146603763103485, -0.4691559076309204, 0.09735318273305893, 0.07712725549936295, 0.030347947031259537, -0.0889071673154831, 0.36187613010406494, -0.2832871377468109, -0.24788227677345276, -0.4007711708545685, 0.01450277678668499, -0.018688835203647614, -0.010818585753440857, 0.12474910169839859, -0.2585085928440094, -0.06051080673933029, 0.4845835864543915, -0.2453719973564148, 0.07446955144405365, -0.12845459580421448, 0.5530413389205933, 0.0906941220164299, -0.2818654477596283, -0.10373692214488983, -0.20258674025535583, 0.1605244278907776, -0.2996913194656372, -0.12420764565467834, 0.3852720260620117, 0.4668353796005249, -0.01479899138212204, -0.10500187426805496, -0.05002427101135254, 0.19503770768642426, -0.3237479031085968, 0.1586708277463913, -0.011398808099329472, 0.49631014466285706, -0.13383013010025024, -0.20679715275764465, -0.0008394569158554077, -0.24882188439369202, 0.3779868185520172, -0.028370939195156097, -0.17685657739639282, 0.11163276433944702, -0.06418588757514954, 0.11036733537912369, -0.0363067165017128, 0.06015132740139961, 0.1958543360233307, 0.34958499670028687, 0.12516240775585175, 0.11125430464744568, -0.2697572410106659, 0.0869048684835434, -0.005171611905097961, -0.03400854766368866, 0.2545236051082611, -0.14912378787994385, 0.021251365542411804, -0.02088126726448536, 0.28105443716049194, 0.7236409187316895, 0.12138621509075165, -0.05440163612365723, 0.08140049874782562, 0.2659655213356018, -0.07663951069116592, 0.08413463085889816, 0.11607959866523743, 0.5846413373947144, 0.20206236839294434, -0.04568035528063774, 0.0032193735241889954, -0.2382095754146576, -0.09861352294683456, 0.15685491263866425, 0.30424433946609497, -0.22151504456996918, 0.16253851354122162, -0.0753701850771904, -0.3078259825706482, -0.21891629695892334, 0.09427046775817871, -0.3015744388103485, -0.0010355599224567413, -0.3140946626663208, -0.0974922627210617, 0.18910019099712372, -0.1504993438720703, -0.0683538168668747, -0.022000491619110107, 0.05389070510864258, -0.5187672972679138, -0.22038745880126953, 0.13597439229488373, -0.11285486072301865, -0.043467238545417786, 0.1871466338634491, 0.05128293111920357, 0.14874167740345, -0.29770639538764954, -0.17941351234912872, 0.03329312801361084, -0.039694905281066895, 0.12421880662441254, -0.11639592051506042, 0.23159007728099823, -0.07375826686620712, 0.25388267636299133, 0.10252854228019714, -0.11438076198101044, 0.1786680668592453, -0.1646006852388382, -0.15809926390647888, 0.038244038820266724, -0.018779484555125237, 0.15619124472141266, -0.06003522127866745, -0.3020989000797272, -0.3721759021282196, -0.19579137861728668, -0.05364172160625458, 0.5358758568763733, 0.26068195700645447, 0.1700327843427658, 0.4109877943992615, -0.13647222518920898, 0.1299687922000885, -0.0609922856092453, -0.159157395362854, -0.3496600389480591, 0.3460206389427185, -0.15132947266101837, -0.40430086851119995, 0.09350597858428955, -0.09673526883125305, 0.13476577401161194, 0.22787950932979584, -0.399963915348053, -0.07367818802595139, -0.19728296995162964, -0.08005192130804062, -0.023202436044812202, 0.4271777868270874, 0.0004831366240978241, -0.2841467261314392, 0.1284254491329193, -0.27607637643814087, -0.022331837564706802, 0.019859090447425842, 0.12918852269649506, 0.3592762351036072, 0.0877888947725296, 0.2482614517211914, -0.3323584794998169, 0.34528082609176636, 0.2201397716999054, -0.1016482338309288, 0.600909411907196, -0.2792263329029083, 0.46034497022628784, -0.3217681646347046, -0.18649542331695557, 0.33248013257980347, 0.11115188896656036, -0.13506989181041718, 0.11332591623067856, 0.10774742066860199, -0.1297585666179657, -0.22641685605049133, 0.014660768210887909, -0.5660104751586914, 0.004281342029571533, 0.12461040169000626, 0.11267386376857758, 0.15525314211845398, -0.2622663378715515, -0.22335293889045715, 0.08471312373876572, -0.24262414872646332, -0.12126006186008453, 0.23508793115615845, 0.14904695749282837, 0.07269732654094696, -0.3150171637535095, 0.11754520237445831, 0.0017245244234800339, 0.388577401638031, -0.001430761069059372, 0.16404005885124207, -0.014065362513065338, 0.19656617939472198, 0.08788124471902847, 0.15972334146499634, 0.7867114543914795, -0.26141083240509033, -0.21577169001102448, 0.1342654526233673, -0.0400925911962986, -0.4828709661960602, 0.06328487396240234, -0.19167745113372803, -0.022054161876440048, -0.10513675957918167, 0.4396180510520935, -0.21752065420150757, -0.12498538196086884, 0.03373449668288231, 0.5710271000862122, -0.3521544933319092, -0.42664697766304016, -0.4068542718887329, -0.26940712332725525, -0.2813745439052582, -0.3456968665122986, 0.019205376505851746, 0.16956393420696259, 0.14926716685295105, -0.07298174500465393, -0.18473097681999207, -0.35381269454956055, 0.1116655170917511, -0.14246968924999237, 0.4838623106479645, 0.30859673023223877, 0.07759320735931396, 0.2706402540206909, -0.055320125073194504, 0.5572236180305481, 0.5976038575172424, -0.5351078510284424, -0.10840469598770142, 0.24908587336540222, -0.07556731253862381, 0.4410307705402374, 0.014154449105262756, -0.11321105808019638, -0.3544251322746277, -0.08593598753213882, -0.05921090766787529, -0.3322528600692749, 0.27650001645088196, 0.273952841758728, -0.13973280787467957, -0.2661537528038025, -0.7013975381851196, 0.56135094165802, 0.0541558563709259, 0.06519223749637604, 0.2846892178058624, -0.03717951476573944, -0.35204747319221497, 0.08238182216882706, 0.04457569122314453, 0.8795078992843628, -0.10296337306499481, 0.25191447138786316, -0.04075942188501358, 0.10794486105442047, 0.29822131991386414, 0.1385229229927063, -0.024017969146370888, -0.30551639199256897, -0.1439046412706375, -0.03724781423807144, -0.20539450645446777, 0.11289781332015991, 0.423480361700058, 0.11806243658065796, 0.41382303833961487, -0.4531022310256958, -0.15967771410942078, -0.20249882340431213, 0.3156370520591736, -0.05736498162150383, -0.20485363900661469, -0.27458974719047546, 0.10521199554204941, 0.11851612478494644, 0.21635733544826508, 0.01548352837562561, 0.08436214923858643, -0.2749900221824646, -0.029324300587177277, 0.03817947208881378, 0.045115724205970764, -0.2938538193702698, 0.041945233941078186, -0.13392680883407593, -0.3991253674030304, -0.11153000593185425, 0.5838521122932434, -0.025741279125213623, -0.12932080030441284, 0.0002663489431142807, 0.07602918148040771, -0.20888975262641907, 0.1449386328458786, -0.10944479703903198, -0.20277225971221924, 0.18137356638908386, 0.03622395545244217, -0.05743443965911865, -0.18363916873931885, -0.10089288651943207, -0.20361381769180298, -0.010909780859947205, 0.1652408242225647, 0.18971779942512512, -0.3472493588924408, -0.2791995108127594, 0.001177370548248291, -0.05541396886110306, 0.036212995648384094, 0.04622349888086319, 0.2658039331436157, 0.01649312674999237, 0.4482961893081665, -0.12944835424423218, -0.38976630568504333, -0.044979069381952286, 0.24903833866119385, 0.18143321573734283, -0.0803443118929863, 0.3553909659385681, -0.01195283979177475, 0.039804600179195404, -0.1393570601940155, 0.5327562689781189, 0.3827560544013977, -0.24453897774219513, 0.24099323153495789, 0.10142511129379272, 0.29765504598617554, 0.03403853625059128, 0.06170475110411644, 0.07553727924823761, -0.06313027441501617, -0.07995767891407013, -0.3968506157398224, -0.43028730154037476, 0.012276874855160713, 0.024382246658205986, 0.19549939036369324, -0.0637437254190445, -0.33557483553886414, 0.435101717710495, 0.00974196381866932, -0.15680433809757233, 0.11181513965129852, -0.02416468784213066, 0.184262216091156, 0.18479013442993164, 0.18622717261314392, 0.18857057392597198, -0.08136875927448273, -0.015879379585385323, 0.005898229777812958, -0.011625953018665314, -0.04579172655940056, -0.23499618470668793, 0.24567705392837524, 0.2265826165676117, 0.0758647695183754, -0.01168563961982727, -0.6732266545295715, -0.19514113664627075, -0.21877636015415192, 0.028348684310913086, 0.04207848012447357, -0.1801455318927765, 0.16871964931488037, 0.24964147806167603, -0.07836546003818512, -0.12897208333015442, 0.1360955685377121, -0.2747868597507477, 0.4432295262813568, 0.31783804297447205, 0.07597513496875763, 0.4295614957809448, -0.13420970737934113, -0.31279587745666504, -0.08396652340888977, -0.006666287779808044, -0.13205547630786896, 0.13512970507144928, -0.1243906021118164, 0.39926570653915405, 0.022308487445116043, 0.4445412755012512, 0.5118066668510437, -0.24460068345069885, 0.15195253491401672, 0.2618231773376465, 0.058736175298690796, -0.17737533152103424, -0.11399856209754944, -0.16352912783622742, -0.012518370524048805, -0.04313341900706291, 0.2765602171421051, -0.10435032844543457, 0.12826447188854218, -0.3705892264842987, -0.10034127533435822, 0.48939278721809387, -0.03109622374176979, 0.0912746787071228, 0.2531793415546417, -0.1903354823589325, 0.16262146830558777, 0.2870916426181793, 0.1636158525943756, -0.23394566774368286, 0.5846843123435974, -0.16071300208568573, 0.38448068499565125, 0.04644840583205223, -0.05136088654398918, 0.1113443374633789, -0.21292951703071594, 0.07788430154323578, 0.2657337188720703, -0.09859754145145416, 0.005644810386002064, -0.2744527757167816, 0.14901210367679596, -0.0785030722618103, -0.026349978521466255, 0.029137402772903442, 0.07609370350837708, 0.1335820108652115, 0.024324137717485428, -0.279471218585968, -0.26031774282455444, -0.13375985622406006, 0.06047751009464264, 0.016470693051815033, -0.6049965023994446, 0.3074967563152313, 0.3338474929332733, -0.1970951110124588, -0.22692744433879852, 0.001912037841975689, 0.2845439314842224, -0.09577056765556335, -0.20023593306541443, 0.3227667808532715, -0.01076069101691246, 0.012534432113170624, 0.20819257199764252, 0.1894250363111496, 0.3083743155002594, 0.4900550842285156, 0.24480471014976501, 0.018339335918426514, 0.1713510900735855, -0.08747293800115585, -0.1408982276916504, 0.32512539625167847, 0.14225493371486664, 0.3299543261528015, 0.075579434633255, 0.0709240660071373, -0.0788353830575943, -0.027389395982027054, 0.16436606645584106, 0.11212344467639923, -0.1957583725452423, 0.4017031192779541, -0.20474129915237427, -0.03903617709875107, -0.3654496669769287, 0.06857956945896149, -0.40006327629089355, 0.029011953622102737, 0.36478182673454285, -0.21222665905952454, 0.12573298811912537, 0.1418149173259735, -0.029335152357816696, -0.05622157081961632, 0.5290436148643494, -0.10315342992544174, 0.3180197775363922, -0.3796807825565338, -0.2404840886592865, -0.7170723080635071, -0.07367748767137527, -0.17643579840660095, -0.02717261016368866, -0.16286826133728027, 0.15433341264724731, 0.03896736353635788, 0.10569615662097931, 0.31298354268074036, -0.016899418085813522, 0.27255526185035706, 0.20481397211551666, -0.25736021995544434, -0.10523514449596405, -0.16449376940727234, 0.4860052466392517, -0.07982335239648819, -0.4762229323387146, 0.11448352038860321, -0.2261248528957367, -0.06494179368019104, 0.05609758570790291, -0.11526001244783401, 0.01921689510345459, 0.22067813575267792, 0.458785742521286, 0.11308567970991135, 0.5078970193862915, -0.123207226395607, 0.2870090901851654, -0.18347583711147308, -0.2535049319267273, -0.25479844212532043, 0.15952402353286743, 0.23885664343833923, 0.06704778224229813, -0.3869462013244629, -0.10817258059978485, -0.35485583543777466, -0.05790436640381813, 0.03485012799501419, 0.12235131859779358, -0.29074203968048096, -0.055322665721178055, 0.029877200722694397, -0.06845773756504059, 0.15012019872665405, 0.12684522569179535, -0.08558403700590134, -0.253635048866272, -0.24338001012802124, -0.09379659593105316, 0.2939830422401428, -0.42210426926612854, -0.34114664793014526, -0.10337552428245544, -0.008525826036930084, -0.00013909116387367249, 0.23254431784152985, -0.07944546639919281, 0.18404562771320343, 0.5676001310348511, -0.0362572968006134, -0.3575241267681122, 0.2596352696418762, 0.022367198020219803, 0.06266914308071136, 0.19191773235797882, 0.033359795808792114, 0.12368062138557434, -0.283037394285202, 0.07455085963010788, -0.19502440094947815 ]
https://github.com/huggingface/datasets/issues/5650
@WiNE-iNEFF have you tried the suggestion I posted above? with removing split names from filenames and structuring files in folders? > even using the method that you wrote above absolutely nothing changes fyi - nothing changed because these two approaches are basically the same. it's just that when you pass your data directory as a dataset name (`load_dataset("my_folder_name"`), not as `data_dir` (`load_dataset("imagefolder", data_dir="my_folder_name"`), `datasets` infers what module to use (`imagefolder` in your case) automatically, by file extensions.
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
77
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked @WiNE-iNEFF have you tried the suggestion I posted above? with removing split names from filenames and structuring files in folders? > even using the method that you wrote above absolutely nothing changes fyi - nothing changed because these two approaches are basically the same. it's just that when you pass your data directory as a dataset name (`load_dataset("my_folder_name"`), not as `data_dir` (`load_dataset("imagefolder", data_dir="my_folder_name"`), `datasets` infers what module to use (`imagefolder` in your case) automatically, by file extensions.
[ -0.3157161474227905, 0.2228069305419922, -0.0045320987701416016, 0.8090620040893555, 0.3384737968444824, 0.01898246258497238, 0.3511103391647339, 0.19034512341022491, 0.3155118227005005, 0.14922648668289185, -0.06313061714172363, 0.14561602473258972, -0.16019468009471893, 0.0832461342215538, -0.15294954180717468, -0.044255390763282776, 0.12696081399917603, 0.014876022934913635, -0.08951966464519501, -0.2919773459434509, -0.22710376977920532, 0.12223862111568451, -0.23546865582466125, -0.37627363204956055, -0.4468541741371155, 0.15589489042758942, -0.22179239988327026, 0.4211493134498596, -0.20727235078811646, 0.10923152416944504, -0.0848170593380928, 0.024447210133075714, 0.32325679063796997, 0.7191548943519592, -0.00011962931603193283, -0.04442368447780609, 0.22911232709884644, -0.3525112271308899, -0.12606868147850037, -0.12538428604602814, -0.2993425726890564, -0.029794588685035706, 0.049258358776569366, -0.1859392374753952, 0.16987711191177368, 0.09678171575069427, -0.10297828167676926, -0.25601425766944885, 0.3455493450164795, 0.3741632401943207, 0.16626910865306854, -0.5231563448905945, -0.01846051961183548, 0.05832431837916374, 0.24302542209625244, 0.564391016960144, 0.023724138736724854, 0.3218456208705902, -0.08210618048906326, -0.0027491897344589233, 0.1289719045162201, 0.16672958433628082, 0.00554240494966507, 0.09656886756420135, 0.3172324299812317, 0.13648557662963867, -0.18485745787620544, -0.604221522808075, -0.030820805579423904, 0.016732335090637207, 0.5628068447113037, -0.024340713396668434, -0.23345598578453064, -0.19611066579818726, 0.021824825555086136, -0.02225075662136078, 0.15181776881217957, 0.22854077816009521, -0.16413047909736633, -0.16179144382476807, -0.18389099836349487, -0.013846054673194885, -0.3824770450592041, 0.2550053298473358, 0.18051844835281372, 0.019600065425038338, -0.0779186487197876, 0.30902230739593506, 0.37462204694747925, 0.11200614273548126, 0.18267259001731873, -0.19835850596427917, -0.08333726972341537, 0.18402701616287231, -0.261014461517334, 0.07580284029245377, -0.4207373857498169, 0.6434757709503174, 0.14369413256645203, 0.1473470777273178, -0.095709890127182, -0.01943913660943508, 0.06847537308931351, 0.07723642140626907, 0.17308978736400604, 0.21010923385620117, 0.12374916672706604, 0.26551520824432373, 0.034979965537786484, -0.2019202709197998, -0.3529101610183716, -0.04328179731965065, -0.5886837840080261, -0.3235577344894409, -0.15281325578689575, -0.1426360160112381, -0.06363558769226074, -0.06601148098707199, -0.0034439265727996826, -0.44423022866249084, 0.15174856781959534, -0.1569981426000595, 0.26959365606307983, 0.4085453450679779, 0.21563835442066193, 0.15510623157024384, -0.02301982417702675, 0.14320909976959229, -0.15509669482707977, -0.05765058845281601, -0.06137809902429581, -0.008878945372998714, -0.4775213599205017, 0.12008863687515259, 0.18065759539604187, -0.05911511182785034, 0.07490646094083786, 0.0569019578397274, 0.13349631428718567, -0.13365724682807922, 0.09334910660982132, -0.5180422067642212, 0.1256745159626007, 0.14739921689033508, 0.08566243201494217, 0.05445487052202225, -0.014238644391298294, -0.12444985657930374, -0.035466574132442474, 0.22155331075191498, -0.8192549347877502, -0.013256475329399109, -0.1561296135187149, 0.08037790656089783, -0.17817029356956482, -0.04254763945937157, -0.5486292839050293, 0.1608245074748993, 0.1344110369682312, -0.19315409660339355, -0.0595584437251091, -0.12370847165584564, -0.07748103141784668, -0.22928960621356964, 0.18714216351509094, 0.5751018524169922, -0.6808249950408936, 0.16260762512683868, -0.3717806935310364, -0.18656371533870697, 0.19922414422035217, 0.3236479163169861, -0.13686460256576538, 0.2399243861436844, -0.26366209983825684, -0.1115909144282341, 0.3496308922767639, -0.19984887540340424, -0.4558933675289154, 0.2295476794242859, 0.24884557723999023, -0.3090669512748718, 0.0585685633122921, 0.34369707107543945, 0.2771543264389038, -0.05266304686665535, -0.14055612683296204, 0.16850793361663818, -0.12782049179077148, 0.025574281811714172, 0.039545245468616486, -0.05587031692266464, 0.11263786256313324, 0.14512720704078674, -0.1433148831129074, 0.21380650997161865, 0.26592811942100525, -0.0462070032954216, 0.2852383852005005, -0.09500587731599808, 0.267713725566864, 0.21933665871620178, 0.24821215867996216, 0.33655092120170593, 0.31560200452804565, 0.2423718273639679, -0.4272879958152771, 0.2332143485546112, 0.20129257440567017, -0.023206885904073715, -0.25162801146507263, 0.14806661009788513, -0.12070303410291672, -0.2538287937641144, -0.41108956933021545, -0.000520734116435051, -0.003678232431411743, 0.09557560831308365, 0.039889462292194366, -0.38712701201438904, -0.1385280340909958, 0.40332016348838806, -0.17072007060050964, 0.002919156104326248, -0.1614418625831604, 0.4549330174922943, -0.008554548025131226, -0.2535270154476166, -0.12898238003253937, -0.2758544683456421, 0.0958152636885643, -0.20118096470832825, -0.12331882864236832, 0.36006051301956177, 0.5355082750320435, -0.14360052347183228, 0.05878821015357971, -0.1642327755689621, 0.19309046864509583, -0.22425656020641327, 0.2051486372947693, -0.1460409164428711, 0.3624623417854309, -0.10530204325914383, -0.30362457036972046, -0.09813113510608673, -0.26255735754966736, 0.4548860192298889, -0.10259202122688293, -0.14376690983772278, 0.08633831143379211, -0.08048287034034729, 0.1791609525680542, -0.03949945420026779, 0.14730653166770935, 0.20987963676452637, 0.3435768187046051, 0.16795934736728668, 0.1294187307357788, -0.23921439051628113, 0.07446319609880447, 0.02923150360584259, -0.11042393743991852, 0.3070233166217804, -0.15868350863456726, 0.03664548695087433, 0.13132357597351074, 0.4297126531600952, 0.7067568898200989, 0.1792829930782318, -0.09325296431779861, -0.038958724588155746, 0.24951067566871643, -0.025284472852945328, 0.06445498019456863, 0.04910138249397278, 0.6153542399406433, 0.19821806252002716, -0.17252935469150543, 0.013339240103960037, -0.3240460753440857, -0.2610431909561157, 0.27943485975265503, 0.24937333166599274, -0.2533724308013916, 0.1692262887954712, 0.03603038191795349, -0.20943096280097961, -0.0923803299665451, 0.07054755091667175, -0.3055008053779602, 0.14621688425540924, -0.12064395844936371, -0.049994390457868576, 0.09699191153049469, -0.07168418914079666, -0.00739637017250061, 0.1741943359375, 0.03245607018470764, -0.36444416642189026, -0.34595850110054016, 0.10337494313716888, -0.14982718229293823, -0.00140385702252388, 0.28049755096435547, 0.05699165165424347, 0.17936450242996216, -0.11792706698179245, -0.0810108482837677, -0.019248120486736298, -0.26299014687538147, 0.21391496062278748, -0.1953226923942566, 0.2623212933540344, -0.03712574765086174, 0.129572331905365, 0.2163817286491394, -0.24605664610862732, 0.22161200642585754, -0.18721720576286316, -0.13173538446426392, 0.08810228109359741, -0.08254383504390717, 0.05234172195196152, -0.16365432739257812, -0.20948606729507446, -0.39717668294906616, -0.22269505262374878, 0.047288667410612106, 0.47079312801361084, 0.2161453664302826, 0.19878315925598145, 0.379588782787323, -0.26419827342033386, 0.012491174042224884, -0.13978563249111176, -0.11035223305225372, -0.22236430644989014, 0.34369632601737976, -0.12616389989852905, -0.2686285078525543, 0.19389139115810394, 0.015781179070472717, 0.010753365233540535, 0.29906490445137024, -0.35526326298713684, -0.15497079491615295, -0.03930165246129036, -0.16107702255249023, -0.04575226083397865, 0.11036433279514313, -0.04098803550004959, -0.21318528056144714, 0.08652195334434509, -0.3167130649089813, 0.00281660258769989, 0.11468219757080078, -0.08105507493019104, 0.44426995515823364, -0.053008705377578735, 0.2275589257478714, -0.1844969242811203, 0.09722160547971725, 0.2108309119939804, -0.06804123520851135, 0.3618011474609375, -0.2584155797958374, 0.3498794436454773, -0.20864400267601013, 0.024580955505371094, 0.3777662515640259, 0.07306082546710968, -0.24644280970096588, 0.21117928624153137, 0.19584058225154877, -0.21720242500305176, -0.06839705258607864, 0.15977142751216888, -0.2275901436805725, -0.03968010097742081, 0.22953449189662933, 0.0384310707449913, 0.08424345403909683, -0.2826325297355652, -0.1846630871295929, 0.03201930969953537, -0.25027263164520264, -0.035070277750492096, 0.2565697431564331, 0.10645870864391327, 0.06876787543296814, -0.366301953792572, 0.2630999684333801, -0.016111113131046295, 0.38389700651168823, -0.04801688343286514, 0.10231354832649231, -0.20014888048171997, 0.15054602921009064, 0.09906600415706635, 0.2270285189151764, 0.927568793296814, -0.28396326303482056, -0.22835588455200195, 0.08234111964702606, 0.19763149321079254, -0.3608343303203583, 0.08803661912679672, -0.17747940123081207, 0.08367922902107239, -0.03594233840703964, 0.42061200737953186, -0.1874229907989502, -0.08890077471733093, 0.05811336264014244, 0.46604102849960327, -0.3779231309890747, -0.3927760124206543, -0.3832976520061493, -0.1696615070104599, -0.4496402144432068, -0.2505723536014557, 0.0075468868017196655, -0.09404191374778748, 0.1560792326927185, -0.1484542191028595, 0.02741205506026745, -0.22263634204864502, 0.12394292652606964, -0.00009336695075035095, 0.6314864158630371, 0.37461933493614197, -0.0037585869431495667, 0.30615320801734924, 0.14016760885715485, 0.5119256377220154, 0.5903987288475037, -0.5895156860351562, -0.1887887716293335, 0.2780565917491913, -0.22223792970180511, 0.30476853251457214, 0.0642506554722786, -0.08322077989578247, -0.3000381588935852, -0.1668560802936554, 0.04614103585481644, -0.37502455711364746, 0.30441752076148987, 0.2978086471557617, -0.24577760696411133, -0.3972671627998352, -0.6233928203582764, 0.35805922746658325, -0.10595230013132095, -0.04718700051307678, 0.31433528661727905, 0.012508995831012726, -0.38431498408317566, 0.18798136711120605, 0.042179808020591736, 0.9067527055740356, -0.06450638175010681, 0.10993193089962006, -0.09823831915855408, 0.1690206676721573, 0.25066548585891724, 0.3065779209136963, -0.014179873280227184, -0.32965952157974243, -0.14015381038188934, -0.005024518817663193, -0.10659250617027283, -0.03993849456310272, 0.5396644473075867, -0.061065640300512314, 0.25155189633369446, -0.25168436765670776, -0.35318422317504883, -0.04514710605144501, 0.2691148519515991, -0.08974204212427139, -0.23661606013774872, -0.07525227963924408, 0.1855035275220871, 0.07376478612422943, 0.0789216160774231, -0.05039506033062935, 0.03182971104979515, -0.13718929886817932, 0.01527414470911026, 0.03440655767917633, 0.07664033770561218, -0.4454728066921234, 0.05059153586626053, -0.28563904762268066, -0.3679097890853882, -0.11081773042678833, 0.4296399652957916, -0.23425865173339844, -0.09247101843357086, -0.05914412438869476, 0.37394019961357117, -0.15208281576633453, 0.1436198353767395, -0.0858277827501297, -0.3398537039756775, 0.08248065412044525, 0.08552107214927673, 0.00007805228233337402, -0.4003202021121979, -0.1309901773929596, -0.2835460901260376, -0.0823633074760437, 0.06767392158508301, 0.3695460259914398, -0.26040902733802795, -0.1679728776216507, -0.05421728268265724, -0.16332046687602997, 0.04056534171104431, 0.07919587194919586, 0.16602757573127747, 0.04838643595576286, 0.4884667694568634, -0.17959055304527283, -0.33810025453567505, 0.027283258736133575, 0.07299701124429703, -0.0517725944519043, -0.021290019154548645, 0.27527904510498047, 0.08549986034631729, 0.06376679241657257, -0.08543583750724792, 0.45498576760292053, 0.283040851354599, -0.6265837550163269, 0.17493322491645813, 0.018479764461517334, 0.270138680934906, 0.18056462705135345, -0.009545382112264633, 0.19034460186958313, -0.10287967324256897, -0.20946815609931946, -0.3085200786590576, -0.33546552062034607, 0.04907017946243286, -0.032337091863155365, 0.2678159177303314, -0.16036343574523926, -0.44680434465408325, 0.2662988007068634, -0.07208031415939331, -0.2034565508365631, 0.13125044107437134, -0.0027480348944664, 0.2137279063463211, 0.09712925553321838, 0.28146883845329285, 0.13563190400600433, -0.14120633900165558, -0.004035111516714096, 0.140007883310318, 0.10099737346172333, -0.04137837886810303, -0.22922790050506592, 0.1697336584329605, 0.1374768763780594, 0.2455868273973465, -0.15255792438983917, -0.5970568656921387, -0.25188523530960083, -0.17066781222820282, 0.13022160530090332, 0.03674183040857315, -0.19675213098526, -0.06007920578122139, 0.1519486904144287, -0.19448387622833252, -0.18763983249664307, 0.21606846153736115, -0.06182020902633667, 0.43908941745758057, 0.3387453556060791, 0.12185326218605042, 0.2512167990207672, -0.09529383480548859, -0.29667139053344727, 0.04033059626817703, 0.02434607222676277, -0.03485245630145073, 0.11318135261535645, -0.0037060286849737167, 0.3924305737018585, 0.06160253658890724, 0.4392664432525635, 0.548960268497467, -0.18164697289466858, 0.18480032682418823, 0.18017107248306274, 0.11926324665546417, -0.140232652425766, -0.1165810227394104, -0.37153661251068115, -0.14696374535560608, -0.04276106879115105, 0.16142603754997253, -0.201947420835495, 0.15123099088668823, -0.261951208114624, -0.034642260521650314, 0.5770501494407654, 0.10276046395301819, 0.01610933244228363, 0.28884240984916687, -0.28994667530059814, 0.2577415704727173, 0.3215109705924988, 0.07993929088115692, -0.15507733821868896, 0.6144866943359375, -0.12980496883392334, 0.3922038674354553, 0.06658227741718292, -0.016521265730261803, 0.1813136786222458, -0.20783504843711853, -0.03836853802204132, 0.28350573778152466, 0.0552242211997509, 0.026242695748806, -0.303720623254776, 0.1112060621380806, -0.19452816247940063, -0.24236999452114105, 0.08600234240293503, -0.1463407278060913, 0.132158100605011, 0.1326078325510025, -0.3171539306640625, -0.2581079304218292, -0.35144031047821045, 0.1357831358909607, -0.15767180919647217, -0.31400468945503235, 0.19890712201595306, 0.31098589301109314, -0.10602585226297379, -0.2732568681240082, -0.14677967131137848, 0.3864990770816803, -0.12641561031341553, -0.2943567633628845, 0.5342656373977661, 0.021299514919519424, 0.14293019473552704, 0.33277833461761475, 0.03331314027309418, 0.3280465006828308, 0.3908783197402954, 0.42386165261268616, -0.058035142719745636, 0.15359118580818176, 0.022378452122211456, -0.21819950640201569, 0.22484710812568665, 0.3710043430328369, 0.39209893345832825, 0.0765223577618599, 0.09542226791381836, -0.06208888441324234, -0.07128787040710449, 0.07128075510263443, 0.012321129441261292, 0.00543338805437088, 0.4277576208114624, -0.05124092847108841, -0.0311892107129097, -0.2908959984779358, 0.04135885834693909, -0.42595723271369934, -0.03665044531226158, 0.25147050619125366, -0.2852429747581482, 0.07179351150989532, 0.1163925901055336, -0.018523428589105606, 0.015576586127281189, 0.5561752319335938, -0.09564871340990067, 0.2349931299686432, -0.37542474269866943, -0.3068539500236511, -0.6777254939079285, 0.06243741884827614, -0.1698257327079773, -0.02753988653421402, -0.11565504968166351, 0.20476284623146057, 0.06273389607667923, -0.0013097366318106651, 0.3871540129184723, -0.11812762916088104, 0.23957939445972443, 0.1513105034828186, -0.24274608492851257, -0.04545377567410469, -0.01700551062822342, 0.5397807955741882, 0.02447562664747238, -0.5079389214515686, 0.20218732953071594, -0.06810620427131653, -0.05551372468471527, 0.08408984541893005, -0.22897464036941528, 0.10223156958818436, 0.02325817011296749, 0.45374467968940735, 0.061551712453365326, 0.7016876935958862, -0.1950715035200119, 0.2630004286766052, -0.3195444941520691, -0.3005234897136688, -0.24942609667778015, -0.011398091912269592, 0.20763537287712097, 0.10755015909671783, -0.258353590965271, 0.05389836058020592, -0.3349052667617798, -0.14585018157958984, 0.0040951743721961975, 0.188022181391716, -0.4295809864997864, -0.06431753188371658, 0.10791715979576111, -0.02801324799656868, 0.24290288984775543, 0.1410529464483261, -0.09786735475063324, -0.34451958537101746, -0.21911384165287018, 0.010638996958732605, 0.41358429193496704, -0.21463514864444733, -0.35977059602737427, 0.032426558434963226, 0.04831857234239578, 0.05286917835474014, 0.1850290298461914, -0.24605441093444824, 0.11348643898963928, 0.410774827003479, -0.010387524962425232, -0.37447232007980347, 0.20475290715694427, 0.06681223213672638, 0.07150320708751678, 0.1783015877008438, -0.0799751877784729, 0.21220646798610687, -0.3868361711502075, 0.25676989555358887, -0.27037808299064636 ]
https://github.com/huggingface/datasets/issues/5650
Oh I didn't know that! OK but in any case, not sure why the image builder isn't working for @WiNE-iNEFF. But it's hard for us to help if we can't reproduce. I'd just check the structure of the folders, see if the splits are correctly set up, etc.
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
48
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked Oh I didn't know that! OK but in any case, not sure why the image builder isn't working for @WiNE-iNEFF. But it's hard for us to help if we can't reproduce. I'd just check the structure of the folders, see if the splits are correctly set up, etc.
[ -0.3294670581817627, 0.1630450040102005, -0.016497567296028137, 0.9056414365768433, 0.21108701825141907, -0.04009736329317093, 0.2711406946182251, 0.09988193213939667, 0.27092093229293823, 0.30986061692237854, 0.047387056052684784, -0.05513235554099083, -0.15267162024974823, 0.1385314166545868, -0.0581861287355423, 0.12404744327068329, 0.20908881723880768, 0.10899646580219269, 0.0110281091183424, -0.2721828818321228, -0.1683972179889679, 0.14830027520656586, -0.31416648626327515, -0.4230777621269226, -0.42655444145202637, 0.22560693323612213, -0.11839123070240021, 0.3966824412345886, -0.2280016839504242, 0.09998318552970886, -0.13255003094673157, -0.07634664326906204, 0.18986713886260986, 0.6271764636039734, -0.00012794852955266833, 0.1434931606054306, 0.22948671877384186, -0.2616444230079651, -0.13101527094841003, -0.09649541974067688, -0.30910173058509827, -0.003371722996234894, -0.06345468759536743, -0.10868711769580841, 0.12905582785606384, 0.2066146731376648, -0.12966734170913696, -0.08389394730329514, 0.4384833574295044, 0.4768027067184448, 0.10690924525260925, -0.2908283472061157, 0.06549614667892456, 0.0322241336107254, 0.15292155742645264, 0.4512953758239746, 0.004458613693714142, 0.26351070404052734, -0.040733639150857925, 0.03244182467460632, 0.1980658769607544, 0.1712382435798645, 0.03893950581550598, 0.140064537525177, 0.37869155406951904, 0.06643252074718475, 0.03737623989582062, -0.58842933177948, 0.011382538825273514, -0.02025252766907215, 0.539919376373291, 0.22744037210941315, -0.25336459279060364, -0.17081360518932343, 0.05668514594435692, 0.2866653501987457, 0.23030221462249756, 0.18383720517158508, -0.2492252141237259, -0.2393178641796112, -0.2535136938095093, -0.11827623099088669, -0.3630055785179138, 0.326852023601532, 0.1617487668991089, 0.09881223738193512, -0.09393317997455597, 0.3266795873641968, 0.3246857821941376, 0.19794246554374695, 0.1505599319934845, -0.3050282895565033, -0.1953268051147461, 0.18687176704406738, -0.1704733520746231, 0.12339988350868225, -0.346205472946167, 0.8224028944969177, 0.028188996016979218, 0.19353549182415009, 0.05725393444299698, 0.03565399348735809, 0.148150235414505, 0.07413513958454132, 0.08177021145820618, 0.13590683043003082, 0.16752061247825623, 0.19889864325523376, 0.05307504162192345, -0.1236223578453064, -0.43086302280426025, -0.03779546543955803, -0.7009272575378418, -0.3300091326236725, -0.06682728230953217, -0.2766243517398834, -0.03803439810872078, -0.13525685667991638, -0.03909323737025261, -0.2864724397659302, 0.19218233227729797, -0.2787320911884308, 0.22635617852210999, 0.33869221806526184, 0.058827538043260574, -0.0019836807623505592, -0.15499237179756165, 0.18334399163722992, -0.2140538990497589, -0.1805286556482315, -0.040747564285993576, -0.09148954600095749, -0.5245493054389954, 0.16099421679973602, 0.1220819354057312, -0.1658017635345459, 0.17135533690452576, 0.0584813691675663, 0.06829923391342163, -0.23061063885688782, 0.09286542236804962, -0.5433160662651062, 0.04033839702606201, 0.11455211788415909, -0.00327126681804657, -0.10161831974983215, -0.0082745011895895, -0.34594857692718506, -0.03468211740255356, 0.2627478837966919, -0.6521719098091125, -0.15116307139396667, -0.26360973715782166, 0.013969038613140583, -0.16189412772655487, -0.11848641186952591, -0.4908277988433838, 0.29615136981010437, 0.23665788769721985, -0.28079357743263245, -0.08155763894319534, -0.0720316544175148, -0.1382170021533966, -0.08291994035243988, 0.22814080119132996, 0.5466876029968262, -0.8283313512802124, 0.09689651429653168, -0.2755877375602722, -0.22816073894500732, 0.19273915886878967, 0.21990010142326355, -0.12400153279304504, 0.37237411737442017, -0.2765401005744934, -0.3649043142795563, 0.3786703646183014, -0.02042289823293686, -0.6015455722808838, 0.15609335899353027, 0.33751723170280457, -0.31050974130630493, 0.14236243069171906, 0.31821340322494507, 0.3457719087600708, -0.09211127460002899, -0.0792739987373352, 0.04557730257511139, -0.19946637749671936, -0.08717850595712662, 0.11041431128978729, 0.052388206124305725, 0.0931326299905777, 0.13344182074069977, 0.052307888865470886, 0.2881724238395691, 0.2232554405927658, -0.1576012223958969, 0.16697144508361816, 0.03863489627838135, 0.2640842795372009, 0.3354932367801666, 0.04233429580926895, 0.4079981744289398, 0.27718308568000793, 0.20103156566619873, -0.31705206632614136, 0.2764226794242859, 0.08542637526988983, 0.08850656449794769, -0.014608778059482574, 0.3158169388771057, -0.21287639439105988, -0.11280615627765656, -0.4125327467918396, -0.12305697053670883, -0.08493528515100479, 0.16330990195274353, 0.09819966554641724, -0.4017798900604248, -0.23695409297943115, 0.26574942469596863, -0.17353738844394684, -0.013079078868031502, -0.13138490915298462, 0.529784619808197, -0.06063968688249588, -0.35993289947509766, -0.10476688295602798, -0.24165575206279755, 0.04322084039449692, -0.11675584316253662, -0.19051893055438995, 0.20775611698627472, 0.4343920946121216, -0.19774757325649261, -0.03405604884028435, -0.11860960721969604, 0.23756526410579681, -0.25798580050468445, 0.1820317804813385, -0.22093547880649567, 0.3697309195995331, -0.19657015800476074, -0.21550974249839783, -0.31119292974472046, -0.08666332066059113, 0.581931471824646, -0.15543332695960999, -0.18550778925418854, -0.1476673185825348, 0.00793541967868805, 0.17564621567726135, -0.06477048248052597, 0.13817614316940308, 0.09913276135921478, 0.3960382044315338, 0.17790640890598297, 0.12915539741516113, -0.23101553320884705, 0.021053999662399292, 0.09382123500108719, -0.20860379934310913, 0.3201805651187897, -0.19732990860939026, 0.033102408051490784, 0.137114480137825, 0.18410876393318176, 0.5907117128372192, 0.11047196388244629, -0.16782258450984955, -0.031586356461048126, 0.2488885223865509, -0.03612956404685974, 0.034160371869802475, 0.0707320123910904, 0.6868112683296204, 0.23032651841640472, -0.24198155105113983, 0.01723325252532959, -0.37809449434280396, -0.20325538516044617, 0.2923184335231781, 0.25644710659980774, -0.3261553645133972, 0.11821924895048141, 0.09839405864477158, -0.22181959450244904, -0.038039855659008026, 0.14149701595306396, -0.36678457260131836, 0.13144180178642273, -0.08076897263526917, 0.08507812768220901, 0.13843362033367157, -0.12172406911849976, -0.0017087683081626892, 0.257546991109848, -0.026622872799634933, -0.23872539401054382, -0.4067513644695282, 0.11608351767063141, -0.19140082597732544, -0.028169073164463043, 0.39468640089035034, -0.08861856907606125, 0.10261133313179016, -0.12731745839118958, -0.18206581473350525, 0.001445729285478592, -0.36087191104888916, 0.2887750267982483, -0.09054362773895264, 0.4627056121826172, -0.027122333645820618, 0.0711548924446106, 0.16781474649906158, -0.07753951847553253, 0.29175227880477905, -0.16045892238616943, -0.17275696992874146, 0.09544140845537186, -0.09946390986442566, -0.07399619370698929, -0.018411800265312195, 0.06729495525360107, -0.33236873149871826, -0.13725072145462036, -0.1478729546070099, 0.42857056856155396, 0.19415228068828583, 0.20925787091255188, 0.48499491810798645, -0.2920503616333008, 0.1128574013710022, -0.05892261117696762, -0.1861450970172882, -0.28133097290992737, 0.28725898265838623, -0.12009897828102112, -0.2293832153081894, 0.13672417402267456, -0.03712539002299309, 0.1282275766134262, 0.059948623180389404, -0.4855736494064331, -0.037225883454084396, -0.08656244724988937, -0.20894086360931396, -0.04446365311741829, 0.1323937475681305, -0.07938437163829803, -0.1979053020477295, 0.10103762149810791, -0.3453481197357178, -0.09394748508930206, 0.12835188210010529, -0.08691294491291046, 0.34598472714424133, 0.01965857669711113, 0.21954423189163208, -0.3454109728336334, 0.03800665959715843, 0.21041154861450195, -0.027118375524878502, 0.3465389311313629, -0.2949126064777374, 0.408174604177475, -0.23060452938079834, 0.06204085797071457, 0.49599918723106384, 0.20044347643852234, -0.3165542185306549, 0.13027793169021606, 0.16814495623111725, -0.20558509230613708, -0.07662595808506012, 0.20521166920661926, -0.18515217304229736, 0.10835649073123932, 0.17608794569969177, -0.10251226276159286, 0.02460707165300846, -0.04892538860440254, -0.13220009207725525, 0.0029717013239860535, -0.179217129945755, -0.04605020582675934, 0.13575021922588348, 0.16938410699367523, 0.012547172605991364, -0.17842787504196167, 0.11484237015247345, 0.004588151350617409, 0.3703263998031616, -0.044529978185892105, -0.020056448876857758, -0.2505483031272888, 0.2757861316204071, 0.12045193463563919, 0.23636122047901154, 1.0089607238769531, -0.28440147638320923, -0.30559515953063965, 0.07348112761974335, 0.06610056757926941, -0.37429019808769226, 0.012295134365558624, -0.06272868812084198, 0.2177073210477829, -0.1810339093208313, 0.47410207986831665, -0.15854999423027039, -0.10123644769191742, 0.21986179053783417, 0.4051687717437744, -0.4408276677131653, -0.40690937638282776, -0.471805214881897, -0.06419390439987183, -0.4556550085544586, -0.22191429138183594, -0.0967305600643158, -0.10554805397987366, 0.32020828127861023, -0.11478222906589508, -0.05778271332383156, -0.12594091892242432, 0.11242787539958954, -0.05656224861741066, 0.4961584210395813, 0.36199745535850525, -0.010464243590831757, 0.30221620202064514, 0.021352950483560562, 0.3484859764575958, 0.6213474869728088, -0.37794214487075806, -0.11228816956281662, 0.3543073832988739, -0.14959433674812317, 0.2585846781730652, 0.0514904260635376, -0.011002220213413239, -0.34821003675460815, 0.11770439147949219, 0.14198163151741028, -0.31058168411254883, 0.16343221068382263, 0.2984694242477417, -0.14245544373989105, -0.37198808789253235, -0.6293919682502747, 0.33059895038604736, -0.137836292386055, -0.004241481423377991, 0.35414907336235046, 0.12941567599773407, -0.2985638976097107, 0.07293353974819183, 0.06832462549209595, 0.9062761068344116, 0.04592086747288704, 0.09314444661140442, 0.00204288586974144, 0.179131880402565, 0.06166292726993561, 0.2555903196334839, -0.012605790048837662, -0.2517651915550232, -0.14679056406021118, -0.03539285063743591, -0.09058284759521484, -0.08007287979125977, 0.539827287197113, 0.10444290935993195, 0.20118290185928345, -0.11156699061393738, -0.10121648758649826, 0.12132570147514343, 0.12371698021888733, -0.13140065968036652, -0.1991133838891983, -0.05539417266845703, 0.11853982508182526, 0.1670120507478714, 0.15671220421791077, -0.11538541316986084, 0.1370753049850464, -0.056537479162216187, 0.11867208778858185, -0.05736769735813141, 0.1320888102054596, -0.49448221921920776, 0.05913829058408737, 0.0010756207630038261, -0.2844686508178711, -0.15515881776809692, 0.36578118801116943, -0.2828190326690674, -0.1724882274866104, -0.05615068972110748, 0.32630178332328796, -0.07577218860387802, 0.04192589595913887, -0.11237989366054535, -0.3282213807106018, 0.14748942852020264, -0.030878182500600815, -0.11167752742767334, -0.2858755588531494, -0.2398122400045395, -0.22657757997512817, -0.09613051265478134, 0.03440362960100174, 0.36803317070007324, -0.22294574975967407, -0.18695233762264252, 0.010220898315310478, -0.14688009023666382, -0.011457584798336029, -0.0003062658943235874, 0.08811333775520325, 0.054072897881269455, 0.4879596531391144, -0.21103279292583466, -0.26604485511779785, 0.056257545948028564, 0.04412497580051422, -0.052383895963430405, 0.08434142172336578, 0.4503168761730194, 0.0010402724146842957, 0.1692136526107788, -0.05708128213882446, 0.4109532833099365, 0.27414393424987793, -0.643902063369751, 0.35109660029411316, -0.08808876574039459, 0.22805869579315186, 0.21948014199733734, 0.10428128391504288, 0.17407207190990448, -0.049289073795080185, -0.1989109218120575, -0.26541948318481445, -0.34934526681900024, -0.09900515526533127, 0.011991480365395546, 0.16451139748096466, -0.2771660089492798, -0.39074909687042236, 0.3372487723827362, -0.09052670001983643, -0.13410525023937225, -0.010441437363624573, -0.08087250590324402, 0.1300518810749054, 0.026543959975242615, 0.4174877405166626, -0.012840040028095245, -0.1642705798149109, -0.07710608839988708, 0.06484664976596832, 0.15510140359401703, 0.01315455511212349, -0.2596539258956909, 0.19751690328121185, 0.30593228340148926, 0.24983444809913635, -0.1522863805294037, -0.46802282333374023, -0.32590749859809875, -0.0625767931342125, 0.1518130898475647, -0.027462024241685867, -0.14222228527069092, -0.10681997984647751, 0.12290449440479279, -0.15197791159152985, -0.29282572865486145, 0.2137925922870636, 0.028615426272153854, 0.6673798561096191, 0.23744143545627594, 0.14265726506710052, 0.36847397685050964, -0.045602209866046906, -0.2449687421321869, 0.19303663074970245, -0.09119713306427002, -0.05790378153324127, 0.2473767250776291, -0.127802312374115, 0.4600760042667389, 0.016782917082309723, 0.24041734635829926, 0.4666852355003357, -0.11423745006322861, 0.15663471817970276, 0.08744411170482635, 0.05516587197780609, -0.11421731859445572, 0.038023315370082855, -0.4491766393184662, -0.17965301871299744, 0.011703379452228546, 0.10016176104545593, -0.2765193581581116, 0.1753370463848114, -0.17127038538455963, 0.08287379890680313, 0.4185103476047516, 0.1202845573425293, -0.09030413627624512, 0.11299248039722443, -0.23706872761249542, 0.36773407459259033, 0.4232582449913025, 0.0018363911658525467, -0.19343982636928558, 0.42123767733573914, -0.025545712560415268, 0.423283189535141, 0.0966118723154068, 0.14907005429267883, 0.2676011621952057, -0.12482151389122009, 0.14292263984680176, 0.4134441316127777, 0.16071876883506775, 0.010273396968841553, -0.25409984588623047, 0.004556553438305855, -0.13819700479507446, -0.21175791323184967, 0.01791275292634964, -0.038311973214149475, 0.2215464562177658, 0.13279734551906586, -0.6079824566841125, -0.2982562780380249, -0.36728715896606445, 0.2132786512374878, -0.08701442182064056, -0.2370961457490921, 0.08969609439373016, 0.2569755017757416, -0.1799275130033493, -0.336876779794693, -0.17302536964416504, 0.40430593490600586, -0.07400882244110107, -0.3076089322566986, 0.6287518739700317, 0.050309278070926666, 0.13693763315677643, 0.2860831618309021, 0.29768359661102295, 0.389467716217041, 0.31429678201675415, 0.4658421576023102, -0.14256517589092255, 0.1917429268360138, -0.05330904945731163, -0.2751651406288147, 0.42766889929771423, 0.41559940576553345, 0.416592001914978, 0.009805116802453995, -0.0008598603308200836, -0.07859277725219727, 0.02220299281179905, 0.04892980679869652, -0.013133734464645386, -0.036911480128765106, 0.20610950887203217, -0.0004700804129242897, -0.10692856460809708, -0.19758379459381104, 0.034404098987579346, -0.3693462610244751, -0.05021237954497337, 0.19505301117897034, -0.31046783924102783, -0.030169077217578888, 0.0895538330078125, -0.0563913956284523, 0.06298565119504929, 0.6181678771972656, 0.014034118503332138, 0.3410402536392212, -0.3882978558540344, -0.40940412878990173, -0.611228346824646, 0.04826872795820236, -0.08836311101913452, -0.1302540898323059, -0.019422946497797966, 0.21844029426574707, 0.08289602398872375, 0.005466623231768608, 0.5624603629112244, -0.022773029282689095, 0.20310838520526886, 0.08081983029842377, -0.1773727536201477, -0.08422000706195831, -0.03237637132406235, 0.5709032416343689, -0.08914697170257568, -0.43547704815864563, 0.19294118881225586, -0.1654498130083084, -0.12516601383686066, 0.016835417598485947, -0.23658978939056396, 0.12998312711715698, -0.10072563588619232, 0.47337114810943604, 0.12634316086769104, 0.6488011479377747, -0.23787197470664978, 0.2419838309288025, -0.24359199404716492, -0.26705145835876465, -0.3897387981414795, -0.027270734310150146, 0.10674998164176941, 0.13217467069625854, -0.2474653124809265, 0.11826305836439133, -0.34764212369918823, -0.15012452006340027, 0.10264643281698227, 0.23477932810783386, -0.4573309123516083, -0.09451965242624283, -0.01573631912469864, -0.03758314996957779, 0.34267958998680115, 0.06378334015607834, -0.03182553872466087, -0.38742795586586, -0.29282915592193604, 0.15688234567642212, 0.33675873279571533, -0.13984429836273193, -0.4001316726207733, -0.0171222984790802, 0.08834591507911682, 0.019078902900218964, 0.08313188701868057, -0.23863674700260162, 0.04101817309856415, 0.4235057830810547, -0.02273898757994175, -0.2280806601047516, 0.26308566331863403, 0.19011932611465454, 0.2444770634174347, 0.17795313894748688, -0.19890627264976501, 0.1488318294286728, -0.36722978949546814, 0.1489672213792801, -0.257689893245697 ]
https://github.com/huggingface/datasets/issues/5650
> @WiNE-iNEFF have you tried the suggestion I posted above? with removing split names from filenames and structuring files in folders? > > > > even using the method that you wrote above absolutely nothing changes > > fyi - nothing changed because these two approaches are basically the same. it's just that when you pass your data directory as a dataset name (`load_dataset("my_folder_name"`), not as `data_dir` (`load_dataset("imagefolder", data_dir="my_folder_name"`), `datasets` infers what module to use (`imagefolder` in your case) automatically, by file extensions. I'll try to try your method over the next few days, then I'll write it turned out
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
100
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked > @WiNE-iNEFF have you tried the suggestion I posted above? with removing split names from filenames and structuring files in folders? > > > > even using the method that you wrote above absolutely nothing changes > > fyi - nothing changed because these two approaches are basically the same. it's just that when you pass your data directory as a dataset name (`load_dataset("my_folder_name"`), not as `data_dir` (`load_dataset("imagefolder", data_dir="my_folder_name"`), `datasets` infers what module to use (`imagefolder` in your case) automatically, by file extensions. I'll try to try your method over the next few days, then I'll write it turned out
[ -0.32820194959640503, 0.20665641129016876, -0.01743963360786438, 0.7821972370147705, 0.36604538559913635, 0.0066481828689575195, 0.30013507604599, 0.2166881412267685, 0.3032730519771576, 0.17278072237968445, -0.06820546835660934, 0.16757285594940186, -0.169424369931221, 0.10150568932294846, -0.15172643959522247, -0.06892925500869751, 0.1106942892074585, 0.026097828522324562, -0.12104973196983337, -0.29044675827026367, -0.21769556403160095, 0.16559912264347076, -0.20404547452926636, -0.3620097041130066, -0.44899600744247437, 0.14427272975444794, -0.2082413136959076, 0.44877785444259644, -0.23496316373348236, 0.11214283108711243, -0.09853247553110123, 0.009718500077724457, 0.3431228995323181, 0.6795476078987122, -0.00011596461990848184, -0.03563033789396286, 0.21436616778373718, -0.3543343245983124, -0.08009582757949829, -0.12122488021850586, -0.2914983034133911, -0.03393503278493881, 0.03344733268022537, -0.18345066905021667, 0.12052199244499207, 0.0926816463470459, -0.08521899580955505, -0.24371367692947388, 0.37664327025413513, 0.3946477770805359, 0.1977345198392868, -0.5106874704360962, 0.03088875114917755, 0.03953023999929428, 0.24736332893371582, 0.505942702293396, 0.030146390199661255, 0.30053532123565674, -0.09176544100046158, -0.01499001681804657, 0.12200380861759186, 0.192600816488266, 0.02579202502965927, 0.08618387579917908, 0.33732807636260986, 0.11741264164447784, -0.1733330637216568, -0.6471671462059021, -0.05642252042889595, 0.005160237662494183, 0.564906120300293, -0.004104673862457275, -0.21492280066013336, -0.15169991552829742, 0.03436673805117607, -0.04028163477778435, 0.1537596434354782, 0.2160952091217041, -0.16173575818538666, -0.14597120881080627, -0.1892353743314743, -0.01196349784731865, -0.40551209449768066, 0.2684851884841919, 0.1939128190279007, 0.03327807039022446, -0.07893579453229904, 0.3038288652896881, 0.38270387053489685, 0.0964256003499031, 0.14701677858829498, -0.16347341239452362, -0.10296009480953217, 0.19311408698558807, -0.2698192596435547, 0.06621983647346497, -0.3991866707801819, 0.6413849592208862, 0.14563719928264618, 0.15682227909564972, -0.08684087544679642, -0.0009251879528164864, 0.07307744026184082, 0.09228470921516418, 0.14726522564888, 0.21743939816951752, 0.09111891686916351, 0.2437160164117813, 0.0671864002943039, -0.21606561541557312, -0.36014413833618164, -0.04028312861919403, -0.5802540183067322, -0.34134653210639954, -0.1692074090242386, -0.12830886244773865, -0.05918004363775253, -0.09019796550273895, -0.0005214586853981018, -0.4331161677837372, 0.152461439371109, -0.12340416014194489, 0.25266602635383606, 0.4266507029533386, 0.18844109773635864, 0.1661054939031601, 0.007532097399234772, 0.11498324573040009, -0.16926899552345276, -0.03743458539247513, -0.064145028591156, -0.0014383383095264435, -0.4805241823196411, 0.09309887886047363, 0.16253803670406342, -0.06628347933292389, 0.08784177154302597, 0.04867010936141014, 0.13159124553203583, -0.13714858889579773, 0.13129961490631104, -0.5115304589271545, 0.1142246425151825, 0.15645024180412292, 0.07928585261106491, 0.027274563908576965, -0.005164243280887604, -0.12122149765491486, -0.008816473186016083, 0.235176682472229, -0.8112844228744507, -0.05323028191924095, -0.19760528206825256, 0.11184798926115036, -0.13777270913124084, -0.05614938586950302, -0.5255120396614075, 0.17150065302848816, 0.11308655142784119, -0.17279091477394104, -0.07153768837451935, -0.13278964161872864, -0.07152902334928513, -0.21927915513515472, 0.20943912863731384, 0.49557211995124817, -0.6657694578170776, 0.17926721274852753, -0.34880560636520386, -0.22116892039775848, 0.19888798892498016, 0.3293265402317047, -0.14845871925354004, 0.22630584239959717, -0.24302178621292114, -0.0814051702618599, 0.3398077189922333, -0.19258268177509308, -0.4339190125465393, 0.23205815255641937, 0.23949895799160004, -0.3053549826145172, 0.01793854683637619, 0.3534131348133087, 0.29444950819015503, -0.034993283450603485, -0.13146094977855682, 0.19772027432918549, -0.1267038881778717, 0.05195944756269455, 0.00789487361907959, -0.024756230413913727, 0.07723851501941681, 0.15065014362335205, -0.12197113037109375, 0.2036539912223816, 0.2552376389503479, -0.03807320073246956, 0.2730366289615631, -0.14952926337718964, 0.2464585155248642, 0.23392441868782043, 0.2559986412525177, 0.34124311804771423, 0.3010598123073578, 0.24195422232151031, -0.39823001623153687, 0.23406073451042175, 0.18206259608268738, 0.004790220409631729, -0.22781604528427124, 0.13567744195461273, -0.13969798386096954, -0.2605043649673462, -0.39795488119125366, -0.01722511649131775, 0.02800406515598297, 0.10780134797096252, 0.05698701739311218, -0.3903951644897461, -0.13797561824321747, 0.3874008357524872, -0.1561051309108734, 0.01087108999490738, -0.1490480601787567, 0.4523901641368866, -0.0331001877784729, -0.2608540654182434, -0.10479439795017242, -0.26925569772720337, 0.10858692228794098, -0.2253045290708542, -0.13249067962169647, 0.39298054575920105, 0.5260987281799316, -0.17157629132270813, 0.07438003271818161, -0.1755133867263794, 0.18022333085536957, -0.24430005252361298, 0.18156832456588745, -0.1256699413061142, 0.34912315011024475, -0.11041194945573807, -0.2931622862815857, -0.07937370240688324, -0.24138174951076508, 0.41213393211364746, -0.09502297639846802, -0.12811854481697083, 0.09776497632265091, -0.08428338170051575, 0.19901235401630402, -0.010852649807929993, 0.12722091376781464, 0.18116559088230133, 0.31788623332977295, 0.12840674817562103, 0.09308051317930222, -0.23062598705291748, 0.08020617067813873, 0.037360645830631256, -0.13373667001724243, 0.3102784752845764, -0.13653694093227386, 0.028192728757858276, 0.14173555374145508, 0.4140782952308655, 0.69695645570755, 0.22673460841178894, -0.11019618809223175, -0.03782947361469269, 0.21770159900188446, -0.019118692725896835, 0.07881314307451248, 0.0017779283225536346, 0.600002110004425, 0.19752585887908936, -0.17261576652526855, -0.00818624161183834, -0.3570866584777832, -0.2761726975440979, 0.266618937253952, 0.27722206711769104, -0.23384028673171997, 0.15171805024147034, 0.06127524375915527, -0.20840516686439514, -0.07346028089523315, 0.08086034655570984, -0.30322548747062683, 0.13824370503425598, -0.08599968999624252, -0.023466158658266068, 0.06591865420341492, -0.04758116230368614, 0.014299526810646057, 0.1590179204940796, 0.05481346696615219, -0.31723082065582275, -0.3426782786846161, 0.0991603434085846, -0.17065668106079102, 0.03251583129167557, 0.2906852066516876, 0.048757392913103104, 0.2020418792963028, -0.1054641529917717, -0.08081845194101334, -0.0451088510453701, -0.28720802068710327, 0.21005578339099884, -0.19863668084144592, 0.28068965673446655, -0.06434077024459839, 0.1379728466272354, 0.19973167777061462, -0.27457207441329956, 0.22564856708049774, -0.17823946475982666, -0.13300058245658875, 0.07895339280366898, -0.08450710773468018, 0.03853585198521614, -0.1833324432373047, -0.2556487023830414, -0.409991055727005, -0.24352334439754486, 0.0518827885389328, 0.45462512969970703, 0.2199954241514206, 0.20220515131950378, 0.3830987215042114, -0.2406640499830246, 0.02805708721280098, -0.12967082858085632, -0.12731559574604034, -0.23870369791984558, 0.33916395902633667, -0.16787299513816833, -0.2978639602661133, 0.2096281200647354, 0.02540826052427292, 0.019541190937161446, 0.2754634618759155, -0.38431844115257263, -0.18712469935417175, -0.04588250815868378, -0.12874475121498108, -0.07197637110948563, 0.08930535614490509, -0.028115302324295044, -0.20658878982067108, 0.051847174763679504, -0.31089457869529724, 0.025610655546188354, 0.12211200594902039, -0.0707499235868454, 0.46486443281173706, -0.09225045889616013, 0.23891596496105194, -0.17262133955955505, 0.12489532679319382, 0.19610100984573364, -0.07101359963417053, 0.37603768706321716, -0.24198423326015472, 0.34016287326812744, -0.22689901292324066, 0.024582721292972565, 0.391137957572937, 0.04533946141600609, -0.2550066411495209, 0.2214277982711792, 0.19596081972122192, -0.2611679434776306, -0.06851033866405487, 0.16534335911273956, -0.23338067531585693, -0.030196022242307663, 0.237578883767128, 0.048912785947322845, 0.0715586394071579, -0.28052958846092224, -0.1989869922399521, 0.019369706511497498, -0.2359163463115692, -0.03193927928805351, 0.2567002773284912, 0.10505140572786331, 0.06057683378458023, -0.37199729681015015, 0.2595682442188263, -0.04974939301609993, 0.4231018126010895, -0.04918011650443077, 0.08538568019866943, -0.2022983580827713, 0.14841637015342712, 0.08679813891649246, 0.17703752219676971, 0.9288632273674011, -0.27742332220077515, -0.23710402846336365, 0.08951063454151154, 0.20003044605255127, -0.3213690221309662, 0.08701533079147339, -0.18569514155387878, 0.07665607333183289, -0.009291281923651695, 0.4133090376853943, -0.19512666761875153, -0.09259049594402313, 0.06149871647357941, 0.40462052822113037, -0.3818139135837555, -0.3585242033004761, -0.37281227111816406, -0.1902593970298767, -0.4655689597129822, -0.20504528284072876, 0.004785895347595215, -0.0688515156507492, 0.15376830101013184, -0.17288100719451904, 0.02968575619161129, -0.2277679741382599, 0.10970702022314072, 0.03317563608288765, 0.6396577954292297, 0.38567104935646057, -0.008328042924404144, 0.2878093719482422, 0.1330152153968811, 0.49167901277542114, 0.5702860951423645, -0.5760113596916199, -0.17250171303749084, 0.27290716767311096, -0.21753546595573425, 0.30135247111320496, 0.06138457730412483, -0.0827883929014206, -0.3064640760421753, -0.15541279315948486, 0.09089542925357819, -0.38121896982192993, 0.33666250109672546, 0.3096739649772644, -0.23790261149406433, -0.39112257957458496, -0.6017331480979919, 0.336458295583725, -0.10754169523715973, -0.04321900010108948, 0.297993928194046, 0.006874291226267815, -0.38474762439727783, 0.21497413516044617, 0.05685615539550781, 0.8831132054328918, -0.08144985139369965, 0.10339286923408508, -0.08546499907970428, 0.16246207058429718, 0.2665460407733917, 0.27709949016571045, 0.003536708652973175, -0.3320627212524414, -0.16535256803035736, 0.0011439025402069092, -0.09257233887910843, -0.04207028076052666, 0.5264148712158203, -0.10023202002048492, 0.23917913436889648, -0.19821417331695557, -0.3507463335990906, -0.06984096765518188, 0.279574453830719, -0.08761215955018997, -0.24022428691387177, -0.09669189155101776, 0.22521990537643433, 0.029171597212553024, 0.08002734184265137, -0.0697219967842102, 0.015281405299901962, -0.11184129863977432, -0.010833010077476501, 0.03365577757358551, 0.0795830637216568, -0.4675145149230957, 0.07216864824295044, -0.2998693883419037, -0.33670109510421753, -0.13860490918159485, 0.4192337691783905, -0.22410628199577332, -0.07745161652565002, -0.07458925247192383, 0.39105379581451416, -0.14773249626159668, 0.14001572132110596, -0.10145191848278046, -0.33573833107948303, 0.1096065565943718, 0.05108267068862915, -0.011555582284927368, -0.38616943359375, -0.14253276586532593, -0.3035000264644623, -0.061814889311790466, 0.052257657051086426, 0.3457801043987274, -0.24693211913108826, -0.16222146153450012, -0.01507452130317688, -0.20488294959068298, 0.028003886342048645, 0.11233629286289215, 0.13950397074222565, 0.011809397488832474, 0.5006917715072632, -0.14506977796554565, -0.334410697221756, 0.029165927320718765, 0.08179883658885956, -0.0696619302034378, -0.021855436265468597, 0.27575403451919556, 0.10074516385793686, 0.07152868807315826, -0.1030489057302475, 0.4382111430168152, 0.28327465057373047, -0.6079195141792297, 0.19167251884937286, 0.0393681563436985, 0.24600063264369965, 0.18864873051643372, 0.011610584333539009, 0.20252272486686707, -0.10134737193584442, -0.2003169059753418, -0.3043963313102722, -0.3564864695072174, 0.03823993355035782, -0.023129288107156754, 0.3086216449737549, -0.1680968701839447, -0.39333128929138184, 0.2817823886871338, -0.05955353379249573, -0.24250735342502594, 0.12724269926548004, -0.05899938568472862, 0.23624640703201294, 0.0847223550081253, 0.25316300988197327, 0.13347697257995605, -0.1280418187379837, 0.01827177405357361, 0.14882460236549377, 0.06124259904026985, -0.0738639086484909, -0.23042140901088715, 0.15270434319972992, 0.1437234878540039, 0.21460238099098206, -0.1300019472837448, -0.5758273005485535, -0.24329304695129395, -0.14939875900745392, 0.14130361378192902, 0.012244030833244324, -0.2042255401611328, -0.06293924897909164, 0.1643468737602234, -0.17937523126602173, -0.12215679883956909, 0.17587131261825562, -0.054338712245225906, 0.4361937642097473, 0.332579106092453, 0.11542851477861404, 0.23874011635780334, -0.11984675377607346, -0.277631551027298, 0.026631604880094528, 0.012215383350849152, -0.02455754205584526, 0.1310187578201294, -0.0019252849742770195, 0.3433767259120941, 0.059985172003507614, 0.449674516916275, 0.5060585737228394, -0.17344334721565247, 0.19740885496139526, 0.1941424161195755, 0.15928290784358978, -0.15344935655593872, -0.10520878434181213, -0.3727772831916809, -0.16707392036914825, -0.030828341841697693, 0.11600244790315628, -0.19812487065792084, 0.16720972955226898, -0.2390386313199997, -0.011350851505994797, 0.5491104125976562, 0.07439175248146057, 0.029679711908102036, 0.2597672939300537, -0.31372904777526855, 0.24525019526481628, 0.29853805899620056, 0.05016124248504639, -0.1525614708662033, 0.6407696604728699, -0.14724469184875488, 0.3901740610599518, 0.0663982406258583, -0.002727503888309002, 0.194956436753273, -0.21191664040088654, -0.05087799206376076, 0.2784351706504822, 0.05520188808441162, 0.055760931223630905, -0.3068813383579254, 0.10859768092632294, -0.19657638669013977, -0.25759151577949524, 0.06119470298290253, -0.09515348076820374, 0.1066000908613205, 0.122932568192482, -0.3400001525878906, -0.2559027075767517, -0.34519684314727783, 0.16137298941612244, -0.1573917120695114, -0.30281102657318115, 0.20066747069358826, 0.33447712659835815, -0.10995528101921082, -0.2610357701778412, -0.1736166775226593, 0.3649943768978119, -0.11504942923784256, -0.2953055202960968, 0.5633289217948914, 0.052354734390974045, 0.11144652962684631, 0.30762964487075806, 0.056936539709568024, 0.3265328109264374, 0.4078604578971863, 0.4000759422779083, -0.04885011911392212, 0.1590866595506668, 0.019014872610569, -0.22881290316581726, 0.22876352071762085, 0.3868199586868286, 0.3783257007598877, 0.08620713651180267, 0.11720342934131622, -0.08417552709579468, -0.0688408613204956, 0.02639334835112095, 0.026880018413066864, 0.01748064160346985, 0.3764115869998932, -0.004746037535369396, -0.028567813336849213, -0.3038303256034851, 0.030097683891654015, -0.4496450126171112, -0.035156071186065674, 0.21703557670116425, -0.2800065279006958, 0.0875425785779953, 0.10629113018512726, 0.006579611450433731, -0.001566559076309204, 0.5870751738548279, -0.12673579156398773, 0.22310538589954376, -0.3990114629268646, -0.3163285255432129, -0.6751083731651306, 0.04337931424379349, -0.15576456487178802, -0.02691548317670822, -0.1331588178873062, 0.20895498991012573, 0.06652864813804626, 0.00024960096925497055, 0.377957820892334, -0.14444996416568756, 0.24906271696090698, 0.14091446995735168, -0.26744693517684937, -0.013936754316091537, -0.006714235991239548, 0.5299524664878845, 0.042448222637176514, -0.50043123960495, 0.21575012803077698, -0.05275428295135498, -0.026853710412979126, 0.07773999869823456, -0.22460266947746277, 0.07666246592998505, 0.012854686006903648, 0.4591684341430664, 0.08541623502969742, 0.6963205337524414, -0.22723105549812317, 0.26784390211105347, -0.30612194538116455, -0.3038994371891022, -0.27128660678863525, -0.029328767210245132, 0.23578238487243652, 0.1796826720237732, -0.2094247192144394, 0.04738723486661911, -0.34642693400382996, -0.12212905287742615, 0.017205573618412018, 0.16580305993556976, -0.4122634828090668, -0.06732171028852463, 0.11564977467060089, -0.04868122562766075, 0.20893433690071106, 0.17041930556297302, -0.06921954452991486, -0.3461868166923523, -0.2562861442565918, -0.03323879465460777, 0.4432738721370697, -0.21311327815055847, -0.36704567074775696, 0.032689418643713, 0.04093361645936966, 0.06088254973292351, 0.15521091222763062, -0.25901705026626587, 0.11869193613529205, 0.3788178861141205, -0.02085530012845993, -0.3775295913219452, 0.24269849061965942, 0.08153606951236725, 0.0871114730834961, 0.1707668900489807, -0.08444356918334961, 0.22873744368553162, -0.3847571611404419, 0.2350672334432602, -0.30908238887786865 ]
https://github.com/huggingface/datasets/issues/5650
> @WiNE-iNEFF have you tried the suggestion I posted above? with removing split names from filenames and structuring files in folders? > > > > even using the method that you wrote above absolutely nothing changes > > fyi - nothing changed because these two approaches are basically the same. it's just that when you pass your data directory as a dataset name (`load_dataset("my_folder_name"`), not as `data_dir` (`load_dataset("imagefolder", data_dir="my_folder_name"`), `datasets` infers what module to use (`imagefolder` in your case) automatically, by file extensions. I tried creating a `train` folder and put my image folders in it. As a result, all 18,000 images were loaded.
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
104
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked > @WiNE-iNEFF have you tried the suggestion I posted above? with removing split names from filenames and structuring files in folders? > > > > even using the method that you wrote above absolutely nothing changes > > fyi - nothing changed because these two approaches are basically the same. it's just that when you pass your data directory as a dataset name (`load_dataset("my_folder_name"`), not as `data_dir` (`load_dataset("imagefolder", data_dir="my_folder_name"`), `datasets` infers what module to use (`imagefolder` in your case) automatically, by file extensions. I tried creating a `train` folder and put my image folders in it. As a result, all 18,000 images were loaded.
[ -0.28947922587394714, 0.221571683883667, -0.00863245502114296, 0.8425335884094238, 0.3211135268211365, 0.010366231203079224, 0.3325824737548828, 0.20022836327552795, 0.35899287462234497, 0.10602006316184998, -0.08587972819805145, 0.12331107258796692, -0.15057820081710815, 0.0683867335319519, -0.15671706199645996, -0.0516669936478138, 0.139566570520401, 0.0333276130259037, -0.08138856291770935, -0.2952277660369873, -0.2425851672887802, 0.14827683568000793, -0.2621598243713379, -0.4072710871696472, -0.42283812165260315, 0.20200975239276886, -0.2114870548248291, 0.4138142466545105, -0.19660499691963196, 0.0985114797949791, -0.08899932354688644, 0.05222472548484802, 0.3074640929698944, 0.7288365960121155, -0.00012079979933332652, -0.0231691375374794, 0.23688222467899323, -0.3587932288646698, -0.10981900990009308, -0.11719152331352234, -0.29620426893234253, -0.05339223891496658, 0.056406185030937195, -0.15913930535316467, 0.15771345794200897, 0.0617300420999527, -0.09257803857326508, -0.24615022540092468, 0.36497244238853455, 0.3534903824329376, 0.14962391555309296, -0.516577422618866, 0.00474991649389267, 0.06817224621772766, 0.2572646141052246, 0.5494943857192993, 0.01986975222826004, 0.32524728775024414, -0.09059124439954758, 0.00518094003200531, 0.11738118529319763, 0.1475711613893509, -0.0014740899205207825, 0.10606575012207031, 0.33016324043273926, 0.12291866540908813, -0.19432029128074646, -0.6280925869941711, -0.04289933666586876, 0.048132192343473434, 0.5676717758178711, 0.03412603959441185, -0.24306070804595947, -0.22223280370235443, -0.008887313306331635, -0.03336615860462189, 0.1345554143190384, 0.21178779006004333, -0.17369726300239563, -0.1834128350019455, -0.21118147671222687, -0.011429287493228912, -0.37222719192504883, 0.27060604095458984, 0.15611855685710907, 0.017023006454110146, -0.0664539784193039, 0.3178410828113556, 0.38398611545562744, 0.12111091613769531, 0.17196503281593323, -0.20380188524723053, -0.06508655846118927, 0.1831529140472412, -0.2689148485660553, 0.10950664430856705, -0.4091242253780365, 0.6329089403152466, 0.1439349204301834, 0.14212678372859955, -0.07193925976753235, 0.01441166177392006, 0.06821727752685547, 0.06512852013111115, 0.15497735142707825, 0.20283213257789612, 0.11407158523797989, 0.23737122118473053, 0.054678693413734436, -0.19560131430625916, -0.3523973822593689, -0.036823853850364685, -0.5916627645492554, -0.30525723099708557, -0.1798183172941208, -0.16724127531051636, -0.07486358284950256, -0.07735326141119003, 0.006168626248836517, -0.4368894100189209, 0.15026934444904327, -0.16203057765960693, 0.25982430577278137, 0.3827282786369324, 0.17296509444713593, 0.16713762283325195, -0.001652829349040985, 0.144969642162323, -0.1863211989402771, -0.025388021022081375, -0.0534973070025444, -0.03744029998779297, -0.46907371282577515, 0.13275137543678284, 0.20451956987380981, -0.079864501953125, 0.08422420173883438, 0.07034271955490112, 0.10915711522102356, -0.1193479597568512, 0.09801347553730011, -0.5108332633972168, 0.13676559925079346, 0.1735917329788208, 0.09422341734170914, 0.06181977689266205, 0.005061589181423187, -0.1190229207277298, -0.03158038109540939, 0.235444575548172, -0.7991877198219299, -0.023827023804187775, -0.1389193832874298, 0.0645674616098404, -0.1774452030658722, -0.031099975109100342, -0.5747888684272766, 0.18469923734664917, 0.13689495623111725, -0.19164958596229553, -0.06737423688173294, -0.1419907808303833, -0.08650258928537369, -0.20553076267242432, 0.20699498057365417, 0.5887327194213867, -0.6757445931434631, 0.1679127961397171, -0.3693452775478363, -0.19221970438957214, 0.22930468618869781, 0.32886260747909546, -0.13007576763629913, 0.2231898456811905, -0.2717015743255615, -0.1049080565571785, 0.2908759117126465, -0.16454818844795227, -0.41686633229255676, 0.23981577157974243, 0.2714768052101135, -0.26672980189323425, 0.05127446725964546, 0.33969736099243164, 0.28582555055618286, -0.029848726466298103, -0.1250852644443512, 0.1572355031967163, -0.1039399653673172, 0.010624155402183533, 0.02375684678554535, -0.044906310737133026, 0.12464755773544312, 0.15496113896369934, -0.11735936999320984, 0.21755044162273407, 0.25689592957496643, -0.026751689612865448, 0.2661871314048767, -0.0719369426369667, 0.25745874643325806, 0.20952993631362915, 0.19181977212429047, 0.3540809452533722, 0.295152872800827, 0.28850939869880676, -0.43985116481781006, 0.2660120129585266, 0.1834448277950287, -0.0267021544277668, -0.19827626645565033, 0.1924707293510437, -0.1413215696811676, -0.23896834254264832, -0.40455392003059387, -0.011347133666276932, -0.01971668004989624, 0.10487376153469086, 0.005824744701385498, -0.38447338342666626, -0.1598978042602539, 0.4284275770187378, -0.14537832140922546, 0.012570120394229889, -0.19850876927375793, 0.4535811245441437, 0.0028665829449892044, -0.2545301914215088, -0.11979712545871735, -0.2762085199356079, 0.09397536516189575, -0.22800953686237335, -0.11110356450080872, 0.3586214482784271, 0.5335525870323181, -0.14737774431705475, 0.01052945852279663, -0.16923241317272186, 0.19530123472213745, -0.21367953717708588, 0.20628486573696136, -0.1223650872707367, 0.3685222864151001, -0.13571569323539734, -0.29648810625076294, -0.10088618099689484, -0.25813496112823486, 0.4755253493785858, -0.09498844295740128, -0.13262206315994263, 0.06656348705291748, -0.06160152330994606, 0.17312118411064148, -0.0321529358625412, 0.16166359186172485, 0.17818565666675568, 0.3864351809024811, 0.19440437853336334, 0.11658798158168793, -0.24090740084648132, 0.05051418021321297, 0.02867148071527481, -0.1375407576560974, 0.3276728391647339, -0.16088220477104187, 0.02006726711988449, 0.11535226553678513, 0.38206976652145386, 0.6889833211898804, 0.17142850160598755, -0.07896341383457184, -0.04802968353033066, 0.24991436302661896, -0.04982690513134003, 0.06338120996952057, 0.06764604896306992, 0.6225659251213074, 0.20714230835437775, -0.19413630664348602, 0.023980341851711273, -0.31962814927101135, -0.2689805030822754, 0.3080477714538574, 0.2400345355272293, -0.28397136926651, 0.15086689591407776, 0.022716432809829712, -0.19145557284355164, -0.06304942816495895, 0.07515053451061249, -0.32119277119636536, 0.12316282093524933, -0.11135201156139374, -0.04070797935128212, 0.10471069812774658, -0.09154538810253143, -0.02992042526602745, 0.18918095529079437, 0.010409019887447357, -0.36961597204208374, -0.3630051016807556, 0.11655088514089584, -0.15246114134788513, -0.009704433381557465, 0.2974533438682556, 0.04905549809336662, 0.14718973636627197, -0.1332312822341919, -0.09486246109008789, 0.03332212567329407, -0.2569059133529663, 0.22460806369781494, -0.19024772942066193, 0.24918252229690552, -0.05600703880190849, 0.1378677785396576, 0.20042084157466888, -0.27147796750068665, 0.2254517376422882, -0.17991548776626587, -0.13248884677886963, 0.1116679310798645, -0.0776982307434082, 0.058593835681676865, -0.1653921902179718, -0.19671674072742462, -0.3850482404232025, -0.2153601348400116, 0.06439770758152008, 0.4584762454032898, 0.2187802493572235, 0.2239299714565277, 0.3579831123352051, -0.25870180130004883, 0.019294373691082, -0.14233489334583282, -0.10063072293996811, -0.24931538105010986, 0.372190922498703, -0.14311090111732483, -0.27768474817276, 0.19498300552368164, 0.023812711238861084, 0.013923684135079384, 0.29717937111854553, -0.39355483651161194, -0.10975290834903717, -0.06776152551174164, -0.15969380736351013, -0.052700743079185486, 0.0700412467122078, -0.03950580209493637, -0.22196078300476074, 0.08984696120023727, -0.3064512014389038, -0.014457270503044128, 0.1327931135892868, -0.0739203691482544, 0.4372914135456085, -0.04898735135793686, 0.22361229360103607, -0.16729652881622314, 0.15006203949451447, 0.21080724895000458, -0.04543308541178703, 0.38234108686447144, -0.23563754558563232, 0.374313622713089, -0.22408714890480042, 0.024832308292388916, 0.38516563177108765, 0.043300509452819824, -0.2393028885126114, 0.21432721614837646, 0.191583514213562, -0.24056999385356903, -0.09732887148857117, 0.18912921845912933, -0.2348542958498001, -0.03535986319184303, 0.22924184799194336, 0.0134853795170784, 0.0713944137096405, -0.27362480759620667, -0.1780916005373001, 0.038327656686306, -0.25980615615844727, -0.036000728607177734, 0.2710250914096832, 0.1413760483264923, 0.0844009667634964, -0.370821475982666, 0.29633021354675293, -0.02348719909787178, 0.39952367544174194, -0.05922543257474899, 0.12782829999923706, -0.19267985224723816, 0.1491631716489792, 0.088847815990448, 0.22540199756622314, 0.9333536028862, -0.2689988613128662, -0.22353728115558624, 0.1337932050228119, 0.1740519106388092, -0.3717650771141052, 0.06741352379322052, -0.1662733256816864, 0.07875846326351166, -0.029486697167158127, 0.401885986328125, -0.2031436562538147, -0.08837541192770004, 0.012111231684684753, 0.46393340826034546, -0.36328840255737305, -0.3883114159107208, -0.4019732177257538, -0.16223157942295074, -0.4194808900356293, -0.2492075115442276, 0.02941424399614334, -0.07571474462747574, 0.13455618917942047, -0.18327093124389648, 0.0006638765335083008, -0.24697726964950562, 0.1387048363685608, 0.016634702682495117, 0.6246424317359924, 0.3867638111114502, 0.01840800791978836, 0.3089621365070343, 0.0929202064871788, 0.47019821405410767, 0.5631875395774841, -0.5809518098831177, -0.17538493871688843, 0.2946013808250427, -0.2062300443649292, 0.27573102712631226, 0.04990631341934204, -0.08253519237041473, -0.3228086829185486, -0.13683374226093292, 0.056966736912727356, -0.3570605516433716, 0.326877236366272, 0.25910791754722595, -0.278005450963974, -0.40038010478019714, -0.6250526905059814, 0.36380523443222046, -0.09847509115934372, -0.06058987230062485, 0.3273927867412567, 0.012077413499355316, -0.37066417932510376, 0.18758505582809448, 0.05228077992796898, 0.8765212297439575, -0.0955856665968895, 0.09857141971588135, -0.10485465824604034, 0.17313432693481445, 0.261554479598999, 0.2951977252960205, -0.000420471653342247, -0.2933771014213562, -0.15846779942512512, -0.0305262953042984, -0.10685878247022629, -0.04883312061429024, 0.5296008586883545, -0.01739823818206787, 0.26727598905563354, -0.22847871482372284, -0.3462317883968353, -0.04908617585897446, 0.27267491817474365, -0.08656535297632217, -0.2761684060096741, -0.08363747596740723, 0.1707335114479065, 0.08027327060699463, 0.11333730071783066, -0.034183748066425323, 0.038458023220300674, -0.11957085877656937, 0.020335495471954346, 0.01890963315963745, 0.07534345984458923, -0.46856576204299927, 0.0424327477812767, -0.27064377069473267, -0.34916937351226807, -0.1197577565908432, 0.4405679702758789, -0.2517988085746765, -0.10433036834001541, -0.06346262246370316, 0.36239778995513916, -0.15024571120738983, 0.14666292071342468, -0.07157006114721298, -0.3527958393096924, 0.09657907485961914, 0.07959525287151337, 0.0103188157081604, -0.415473073720932, -0.14210015535354614, -0.3059224784374237, -0.0811096802353859, 0.08539554476737976, 0.3643222153186798, -0.2148902267217636, -0.1553327590227127, -0.04130640998482704, -0.17958131432533264, 0.03027365356683731, 0.060998834669589996, 0.16771751642227173, 0.06156422570347786, 0.5091457962989807, -0.18588685989379883, -0.34891071915626526, 0.022086480632424355, 0.09630510956048965, -0.06881700456142426, -0.05407111719250679, 0.2684840261936188, 0.10386411845684052, 0.06189362704753876, -0.06220399960875511, 0.4431822896003723, 0.297999769449234, -0.6337070465087891, 0.16640183329582214, -0.018029483035206795, 0.26624107360839844, 0.17943012714385986, -0.003052659332752228, 0.18109360337257385, -0.11020363122224808, -0.18500922620296478, -0.33750754594802856, -0.33892083168029785, 0.052607037127017975, -0.03423194959759712, 0.2549150884151459, -0.16217634081840515, -0.44598472118377686, 0.29614439606666565, -0.08068510890007019, -0.18312311172485352, 0.14082470536231995, -0.01572708785533905, 0.1994883269071579, 0.07376310229301453, 0.2625192105770111, 0.1136171966791153, -0.15023648738861084, -0.018271420150995255, 0.1402723640203476, 0.08875153213739395, -0.01946643553674221, -0.23716893792152405, 0.18603673577308655, 0.17270609736442566, 0.21399880945682526, -0.15429271757602692, -0.5971384048461914, -0.26227903366088867, -0.17850682139396667, 0.13810254633426666, 0.03878016769886017, -0.18929944932460785, -0.10738091170787811, 0.13636913895606995, -0.12460526823997498, -0.18432080745697021, 0.21996146440505981, -0.0255202054977417, 0.4719884395599365, 0.3674365282058716, 0.10487645119428635, 0.2656436860561371, -0.11892527341842651, -0.29248306155204773, 0.026457084342837334, 0.021705182269215584, -0.06464719772338867, 0.13625594973564148, -0.014251166954636574, 0.37598320841789246, 0.060760676860809326, 0.44305524230003357, 0.5742684006690979, -0.1580919474363327, 0.18341925740242004, 0.18943092226982117, 0.09767742455005646, -0.13531336188316345, -0.09448805451393127, -0.36096692085266113, -0.12017157673835754, -0.05619276314973831, 0.1620374321937561, -0.1649455428123474, 0.1364085078239441, -0.2512172758579254, -0.023807071149349213, 0.5808975696563721, 0.11478559672832489, 0.01803543046116829, 0.2661179006099701, -0.3020400404930115, 0.2693355679512024, 0.2948647439479828, 0.09347008913755417, -0.16623908281326294, 0.6161626577377319, -0.11896470189094543, 0.42046090960502625, 0.07657438516616821, 0.020453959703445435, 0.1656382977962494, -0.22493883967399597, -0.055594369769096375, 0.31528395414352417, 0.08348185569047928, 0.04857826605439186, -0.3254576623439789, 0.06754471361637115, -0.20701055228710175, -0.24319307506084442, 0.06776375323534012, -0.13868312537670135, 0.16956669092178345, 0.11899495124816895, -0.2896048426628113, -0.2739461660385132, -0.3710728883743286, 0.13623429834842682, -0.1618235558271408, -0.3510589897632599, 0.201715886592865, 0.33027851581573486, -0.12618307769298553, -0.3180854916572571, -0.16522181034088135, 0.39296770095825195, -0.12295161187648773, -0.29096001386642456, 0.5396194458007812, 0.0390714667737484, 0.12250745296478271, 0.32154580950737, 0.029137568548321724, 0.3151205778121948, 0.41458871960639954, 0.391027569770813, -0.027499422430992126, 0.1708831489086151, 0.01915360987186432, -0.2186252921819687, 0.233032688498497, 0.3869140148162842, 0.3981167674064636, 0.07357329875230789, 0.07461021840572357, -0.05401754751801491, -0.06275288760662079, 0.06697964668273926, 0.05209149047732353, -0.007121093571186066, 0.43230825662612915, -0.05370792746543884, -0.0044343918561935425, -0.26978546380996704, 0.04437555745244026, -0.4040771424770355, -0.04983421415090561, 0.2217356413602829, -0.2989444434642792, 0.062307555228471756, 0.1209334284067154, -0.026637481525540352, -0.0026357993483543396, 0.5565342903137207, -0.13030938804149628, 0.24739019572734833, -0.39144831895828247, -0.2944563925266266, -0.7239207625389099, 0.04186343774199486, -0.16018812358379364, -0.019732322543859482, -0.1047799289226532, 0.2152492105960846, 0.08401088416576385, -0.003670286387205124, 0.3471689820289612, -0.11592911928892136, 0.276386559009552, 0.1478823721408844, -0.23277035355567932, -0.034009601920843124, -0.019850067794322968, 0.5306183099746704, -0.00323641300201416, -0.48325154185295105, 0.21607594192028046, -0.08137242496013641, -0.07381655275821686, 0.08945073187351227, -0.2374289482831955, 0.11382792145013809, 0.06587757170200348, 0.44660359621047974, 0.09491167962551117, 0.6877084970474243, -0.1864263117313385, 0.267850786447525, -0.33386027812957764, -0.29859355092048645, -0.2586963474750519, -0.01724015176296234, 0.18963180482387543, 0.10807649791240692, -0.25908443331718445, 0.04623032733798027, -0.33915600180625916, -0.13849903643131256, 0.009117968380451202, 0.2042408287525177, -0.4412403404712677, -0.0727902203798294, 0.09511367231607437, -0.02435643970966339, 0.24806983768939972, 0.14767858386039734, -0.09468363225460052, -0.3757670521736145, -0.2249949872493744, -0.0028383061289787292, 0.40393418073654175, -0.23090220987796783, -0.32923105359077454, 0.025558069348335266, 0.04630400985479355, 0.08936592191457748, 0.2074798196554184, -0.23009544610977173, 0.1044124960899353, 0.4133918583393097, -0.034434571862220764, -0.3627696633338928, 0.20071712136268616, 0.08362925052642822, 0.06744523346424103, 0.148297980427742, -0.08134360611438751, 0.22592219710350037, -0.40354907512664795, 0.2559593915939331, -0.27759850025177 ]
https://github.com/huggingface/datasets/issues/5650
@WiNE-iNEFF great! So to explain what happened according to my assumptions: When you use a standard packaged loader (like `imagefolder`, `csv`, `jsonl`, and so on) and load your data like `load_dataset("my_folder_name")` or `load_dataset("imagefolder", data_dir="my_folder_name"`, the library searches for patterns to divide files into splits. This is described a bit in [this doc](https://huggingface.co/docs/datasets/v2.10.0/en/repository_structure#splits-and-file-names). And the order to search for patterns is the following: 1. first it checks for [pattern like `data/<split_name>-xxxxx-of-xxxxx`](https://huggingface.co/docs/datasets/v2.10.0/en/repository_structure#custom-split-names) (which allows to pass custom split names) 2. then for directories named as splits (if you have directories named `train`, `test` etc.) 3. then for [splits in filenames](https://huggingface.co/docs/datasets/v2.10.0/en/repository_structure#splits-and-file-names) (like if you have files named `train-image.jpg`, `test_0.jpg`, ...) 4. then if no pattern was found, it treats all files as belonging to a single `train` split The code is [here](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L215). So I assume that in your case, since you didn't have directories for splits (pattern 2), some files that included split keywords (pattern 3) were included and others were ignored as not matching the pattern. And when you added `train` directory, the pattern for directories (pattern 2) was triggered first and everything worked as expected. Everything worked in your previous cases probably because you didn't have split names keywords in filenames, so all the files ended up being a part of a single train split (pattern 4). Another way to mitigate this apart from structuring your data according to the patterns is to explicitly state with files belong to which splits by passing them with `data_files` parameter: ```python load_dataset("my_folder_name", data_files={"train": "**"}) # to tell that all files should be included ``` Now I see that this order should be explained in documentation and also referenced in sections for packaged modules like `imagefolder`, thank you for pointing this out.
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
287
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked @WiNE-iNEFF great! So to explain what happened according to my assumptions: When you use a standard packaged loader (like `imagefolder`, `csv`, `jsonl`, and so on) and load your data like `load_dataset("my_folder_name")` or `load_dataset("imagefolder", data_dir="my_folder_name"`, the library searches for patterns to divide files into splits. This is described a bit in [this doc](https://huggingface.co/docs/datasets/v2.10.0/en/repository_structure#splits-and-file-names). And the order to search for patterns is the following: 1. first it checks for [pattern like `data/<split_name>-xxxxx-of-xxxxx`](https://huggingface.co/docs/datasets/v2.10.0/en/repository_structure#custom-split-names) (which allows to pass custom split names) 2. then for directories named as splits (if you have directories named `train`, `test` etc.) 3. then for [splits in filenames](https://huggingface.co/docs/datasets/v2.10.0/en/repository_structure#splits-and-file-names) (like if you have files named `train-image.jpg`, `test_0.jpg`, ...) 4. then if no pattern was found, it treats all files as belonging to a single `train` split The code is [here](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L215). So I assume that in your case, since you didn't have directories for splits (pattern 2), some files that included split keywords (pattern 3) were included and others were ignored as not matching the pattern. And when you added `train` directory, the pattern for directories (pattern 2) was triggered first and everything worked as expected. Everything worked in your previous cases probably because you didn't have split names keywords in filenames, so all the files ended up being a part of a single train split (pattern 4). Another way to mitigate this apart from structuring your data according to the patterns is to explicitly state with files belong to which splits by passing them with `data_files` parameter: ```python load_dataset("my_folder_name", data_files={"train": "**"}) # to tell that all files should be included ``` Now I see that this order should be explained in documentation and also referenced in sections for packaged modules like `imagefolder`, thank you for pointing this out.
[ -0.11331208050251007, -0.19256055355072021, 0.03737853467464447, 0.8684765100479126, 0.2675184905529022, -0.10433082282543182, 0.32120534777641296, -0.011463984847068787, 0.24265721440315247, 0.06004345044493675, -0.21418194472789764, 0.03284946456551552, -0.07489617168903351, 0.25794926285743713, -0.0679139494895935, -0.07332901656627655, 0.170658141374588, 0.008121732622385025, -0.13898801803588867, -0.29347920417785645, -0.2173263132572174, 0.24110274016857147, -0.1695077121257782, -0.40822288393974304, -0.46608448028564453, 0.1660526841878891, -0.2347208857536316, 0.3858223259449005, -0.1986730694770813, 0.06727272272109985, -0.0041404590010643005, -0.00839544739574194, 0.14421294629573822, 0.7296662926673889, -0.00012773601338267326, 0.07182534784078598, 0.19291391968727112, -0.32050859928131104, -0.22262640297412872, -0.17691799998283386, -0.2611299753189087, -0.018741142004728317, 0.1102568656206131, -0.12689197063446045, 0.06422862410545349, 0.11255161464214325, -0.11703730374574661, -0.2067331224679947, 0.457085520029068, 0.2011837512254715, 0.08981935679912567, -0.18654584884643555, 0.004534505307674408, 0.005521036684513092, 0.1407979279756546, 0.5428352952003479, -0.04358101636171341, 0.34428250789642334, -0.06604421138763428, 0.0959983617067337, 0.03491910547018051, 0.1262444704771042, -0.019011955708265305, 0.11760643124580383, 0.37679293751716614, 0.20582059025764465, -0.4015546143054962, -0.5108452439308167, 0.0008685188367962837, 0.16872626543045044, 0.32407742738723755, -0.06945507228374481, -0.3076349198818207, -0.47519445419311523, -0.07639613747596741, -0.023478679358959198, 0.25066548585891724, 0.2968251407146454, -0.11517876386642456, -0.1721482276916504, -0.34463879466056824, 0.0580621175467968, -0.2101697325706482, 0.20986901223659515, 0.09380315244197845, -0.07011960446834564, -0.2794276475906372, 0.31804245710372925, 0.46725231409072876, 0.1694720983505249, -0.252774178981781, -0.1993463933467865, 0.012971090152859688, 0.198324516415596, -0.2368643879890442, 0.038109660148620605, -0.24614986777305603, 0.6607053279876709, 0.22132360935211182, 0.27629005908966064, -0.0020422395318746567, 0.045152075588703156, -0.06727582961320877, 0.02143346332013607, 0.19031426310539246, 0.190187007188797, 0.10448154807090759, 0.1181698814034462, 0.029132863506674767, 0.14725889265537262, -0.2208307534456253, 0.011127140372991562, -0.3538728654384613, -0.16156816482543945, -0.3141850233078003, -0.3968825340270996, 0.02861090749502182, -0.013804979622364044, -0.060291849076747894, -0.3696915805339813, 0.06739868223667145, -0.23866692185401917, 0.23286506533622742, 0.48121699690818787, 0.07572444528341293, -0.02835254743695259, -0.03801092132925987, 0.24292832612991333, -0.21768996119499207, -0.0781402438879013, -0.11486640572547913, -0.05601733922958374, -0.3592078983783722, 0.19158747792243958, 0.21233895421028137, -0.40801501274108887, 0.2112722098827362, 0.17686063051223755, 0.040540434420108795, -0.22905763983726501, -0.04876688867807388, -0.4901406168937683, 0.17999055981636047, 0.14172621071338654, -0.04351920261979103, 0.10455506294965744, 0.1357809156179428, -0.1340724229812622, -0.047913335263729095, 0.01885012909770012, -0.7197344303131104, -0.06968344748020172, -0.0006733015179634094, 0.0005735559388995171, -0.26379919052124023, 0.004679623991250992, -0.5991893410682678, 0.2374328374862671, 0.12888336181640625, -0.17689277231693268, 0.05458744987845421, -0.013271360658109188, -0.133913055062294, -0.22927044332027435, 0.23720715939998627, 0.6737101674079895, -0.4983704090118408, -0.04702964425086975, -0.17860043048858643, -0.2438662052154541, 0.1790485978126526, 0.3511960506439209, -0.07060857117176056, 0.23588106036186218, -0.38945770263671875, 0.0037131905555725098, 0.1350223422050476, -0.13255347311496735, -0.2709520161151886, 0.28124648332595825, 0.1268066167831421, -0.013636387884616852, 0.12493127584457397, 0.2285345494747162, 0.2196577787399292, -0.07434974610805511, -0.18489179015159607, 0.06906600296497345, -0.08492331206798553, -0.026178501546382904, 0.1567690372467041, -0.08988305181264877, 0.05321633815765381, 0.13203346729278564, -0.20813529193401337, 0.07414741814136505, 0.27020031213760376, 0.00913551077246666, 0.18983617424964905, -0.1404428780078888, 0.24506622552871704, 0.25519874691963196, 0.14522811770439148, 0.434982031583786, 0.2538827359676361, 0.2602490484714508, -0.6141899228096008, 0.24330157041549683, 0.052013710141181946, -0.0071648601442575455, -0.20635157823562622, 0.1823732852935791, -0.23853258788585663, -0.2775273323059082, -0.45811328291893005, -0.1756175458431244, -0.10580465942621231, 0.18358208239078522, 0.22513628005981445, -0.21631357073783875, -0.21068455278873444, 0.4670005142688751, -0.2125331312417984, 0.16114619374275208, -0.48925673961639404, 0.4584643244743347, 0.10589685291051865, -0.28499409556388855, -0.12192315608263016, -0.04648425430059433, 0.0037051253020763397, -0.3631986081600189, 0.07382071018218994, 0.3968144357204437, 0.4290868639945984, 0.0092787966132164, -0.09502380341291428, -0.06854339689016342, 0.31422197818756104, -0.21977071464061737, 0.055869102478027344, -0.17129017412662506, 0.37386012077331543, -0.1347259283065796, -0.3877221345901489, -0.0050496384501457214, -0.22721892595291138, 0.5153141021728516, -0.03378137946128845, -0.31173455715179443, 0.04641643166542053, -0.03129597753286362, 0.06691855192184448, -0.11554544419050217, 0.15326549112796783, 0.006971437484025955, 0.5223095417022705, 0.23801995813846588, 0.01712670922279358, -0.1959216296672821, 0.18035492300987244, -0.0655507743358612, -0.10817166417837143, 0.31843671202659607, -0.14787359535694122, 0.02073652297258377, 0.12491942197084427, 0.29280632734298706, 0.6595226526260376, 0.0971752256155014, -0.06371024250984192, 0.03538309037685394, 0.15091215074062347, -0.11515891551971436, 0.010637283325195312, 0.09522020816802979, 0.45175057649612427, 0.14005884528160095, -0.10013903677463531, -0.01126847043633461, -0.42555010318756104, -0.18916206061840057, 0.24650102853775024, 0.17957720160484314, -0.35905230045318604, 0.15989074110984802, -0.006096601486206055, -0.21515251696109772, -0.16113179922103882, 0.08411180973052979, -0.40367215871810913, 0.07598006725311279, -0.17353667318820953, 0.06922978162765503, 0.09711627662181854, -0.08078037202358246, 0.06921516358852386, 0.24830062687397003, -0.02385568618774414, -0.38073796033859253, -0.3744683265686035, 0.2358264923095703, -0.09433059394359589, -0.05859201401472092, 0.26613089442253113, -0.029097041115164757, 0.22268421947956085, -0.28685683012008667, -0.260311096906662, -0.011705880984663963, -0.33759450912475586, 0.3229479491710663, -0.373033732175827, 0.17418816685676575, 0.14984163641929626, 0.1393986940383911, 0.08873940259218216, -0.17939738929271698, 0.31836485862731934, -0.08514748513698578, -0.22207623720169067, 0.07167041301727295, -0.017687411978840828, 0.16245397925376892, -0.16564476490020752, -0.1256507784128189, -0.1834726184606552, -0.2582872211933136, 0.28765690326690674, 0.3883436620235443, 0.11514070630073547, 0.3049415349960327, 0.3237566649913788, -0.07666503638029099, -0.15135256946086884, 0.0432763546705246, -0.20314575731754303, -0.19643372297286987, 0.2447444647550583, -0.046111419796943665, -0.3037680387496948, 0.07853208482265472, -0.04581155627965927, 0.04836161434650421, 0.19391342997550964, -0.45789510011672974, -0.2051263153553009, -0.09933482855558395, -0.16761815547943115, 0.08992500603199005, 0.32470032572746277, 0.07764945924282074, -0.2445439249277115, 0.15417614579200745, -0.3043072521686554, -0.1253545880317688, 0.21954286098480225, -0.1720508635044098, 0.2991465926170349, 0.05030783265829086, 0.31993865966796875, -0.1317429542541504, 0.3216232657432556, 0.37036314606666565, -0.07780113816261292, 0.4489533305168152, -0.19747494161128998, 0.5923331379890442, -0.2996219992637634, 0.004937015473842621, 0.37212488055229187, 0.008138060569763184, 0.02973722666501999, 0.3113931715488434, 0.22880086302757263, 0.014421302825212479, -0.14858920872211456, 0.12195508927106857, -0.26133203506469727, -0.07537330687046051, 0.2111375331878662, 0.23843921720981598, 0.051728568971157074, -0.2367563396692276, -0.08411133289337158, 0.15398290753364563, -0.2337867170572281, -0.03661184757947922, 0.2915399372577667, 0.1897176057100296, 0.08756978809833527, -0.43956634402275085, 0.33519646525382996, -0.126800999045372, 0.3542349338531494, -0.04250459372997284, 0.0008937753736972809, -0.14770099520683289, 0.01616314798593521, 0.18587420880794525, 0.1951250433921814, 0.9456673860549927, 0.014927288517355919, -0.18721666932106018, -0.07633940130472183, -0.16464456915855408, -0.5027734637260437, 0.1453215777873993, -0.2385503351688385, 0.06736304610967636, 0.08088450133800507, 0.7059107422828674, -0.5271652340888977, -0.18743440508842468, 0.0950537845492363, 0.4642983675003052, -0.20502902567386627, -0.402991384267807, -0.37580427527427673, -0.24116899073123932, -0.4114907383918762, -0.21304139494895935, 0.05221383273601532, -0.012633714824914932, 0.12580864131450653, -0.14410676062107086, 0.03936256468296051, -0.3690728545188904, 0.17251397669315338, -0.1060793548822403, 0.4752080738544464, 0.3520512282848358, 0.08960233628749847, 0.4014659523963928, 0.2208707630634308, 0.3003186583518982, 0.7398126721382141, -0.5911870002746582, -0.22644662857055664, 0.27775838971138, 0.006453078240156174, 0.26530152559280396, 0.2086724489927292, 0.003982573747634888, -0.21494647860527039, 0.042666446417570114, 0.19419440627098083, -0.482106477022171, 0.2547660171985626, 0.3378533720970154, -0.13310058414936066, -0.4651621878147125, -0.49005216360092163, 0.5562921166419983, -0.08805873990058899, 0.020176634192466736, 0.3072624206542969, 0.4475930333137512, -0.3049505054950714, 0.0769701674580574, -0.11010338366031647, 0.9193189144134521, 0.009199295192956924, 0.21186226606369019, 0.20683369040489197, 0.09222419559955597, 0.4325181841850281, 0.30248257517814636, 0.025496739894151688, -0.3023037612438202, -0.0909026488661766, -0.019322428852319717, -0.1263817697763443, 0.023730743676424026, 0.3590999245643616, 0.06661771982908249, 0.29149243235588074, -0.1729673445224762, -0.10238298773765564, -0.022791247814893723, 0.20980483293533325, -0.18651972711086273, -0.2958349585533142, -0.30621859431266785, 0.07113761454820633, 0.2050919085741043, 0.3256126046180725, 0.059245847165584564, 0.09664015471935272, -0.16089417040348053, -0.10401380807161331, -0.03007013350725174, 0.027780167758464813, -0.40060967206954956, -0.04023909568786621, 0.12903761863708496, -0.3764670491218567, -0.10694189369678497, 0.44696804881095886, -0.15372510254383087, -0.13035832345485687, -0.04236484691500664, 0.22516050934791565, -0.3084717094898224, 0.0991504043340683, 0.004651054739952087, -0.27071473002433777, 0.23469170928001404, 0.09525615721940994, 0.044674038887023926, -0.3266955614089966, -0.17614513635635376, -0.2576075494289398, -0.05950117111206055, 0.19822300970554352, 0.0573209784924984, -0.3891533315181732, -0.2932960093021393, -0.07583706080913544, -0.025215931236743927, -0.07128014415502548, -0.044555000960826874, 0.20857128500938416, -0.018804775550961494, 0.3233148157596588, -0.21646350622177124, -0.33769285678863525, -0.154466912150383, 0.22675366699695587, -0.15620474517345428, -0.037210363894701004, 0.31463688611984253, 0.0844796746969223, -0.007173813879489899, 0.004986748099327087, 0.29565057158470154, 0.43096399307250977, -0.7383151650428772, 0.22199401259422302, 0.1633729785680771, 0.15880832076072693, 0.10363182425498962, 0.17914962768554688, 0.19273416697978973, -0.12705257534980774, -0.1343916356563568, -0.3285531997680664, -0.2774181663990021, 0.10776250064373016, 0.04823615029454231, 0.08609773963689804, -0.02775966003537178, -0.2949585020542145, 0.32243144512176514, 0.09072931855916977, -0.12256447970867157, 0.11754480004310608, -0.040692802518606186, 0.16963699460029602, 0.3088374137878418, 0.1734907329082489, 0.3043834865093231, -0.0663900077342987, -0.06487620621919632, 0.16494736075401306, -0.032593805342912674, 0.030015718191862106, -0.32266169786453247, 0.2346918135881424, 0.1767216920852661, 0.1038506031036377, -0.07399874925613403, -0.3409440517425537, -0.2153405100107193, -0.33441227674484253, 0.316257119178772, 0.13526377081871033, -0.11763507127761841, -0.17302611470222473, 0.18841055035591125, -0.1251755803823471, -0.17125019431114197, 0.1689046323299408, -0.13754378259181976, 0.44707852602005005, 0.3676174581050873, -0.028700651600956917, 0.09147307276725769, -0.04472266137599945, -0.158879354596138, 0.1625068485736847, 0.2609315514564514, -0.17540797591209412, 0.1803683489561081, -0.08836981654167175, 0.2959996461868286, 0.04615454003214836, 0.47418808937072754, 0.45617085695266724, -0.11501841247081757, 0.14507311582565308, 0.1450098752975464, 0.007639790885150433, -0.11558834463357925, -0.004294037818908691, -0.20432768762111664, -0.007754910737276077, 0.06825771927833557, 0.3460429310798645, -0.13464470207691193, 0.15101470053195953, -0.18947869539260864, -0.033805884420871735, 0.5178913474082947, 0.20104756951332092, 0.07365254312753677, 0.1841537356376648, -0.2745824456214905, 0.2291468381881714, 0.41583672165870667, 0.0481569878757, -0.10814028233289719, 0.2816318869590759, -0.21060919761657715, 0.4644261300563812, -0.2762185335159302, 0.14496174454689026, 0.3043665885925293, -0.2891924977302551, -0.0688658282160759, 0.3823254108428955, 0.10123302042484283, -0.0029392875730991364, -0.35617098212242126, 0.44445908069610596, -0.3193708062171936, -0.10545216500759125, 0.027993157505989075, 0.010275349020957947, 0.11853005737066269, 0.026390764862298965, -0.20012971758842468, -0.3464803099632263, -0.29200273752212524, 0.10616441071033478, -0.09422601759433746, -0.5813526511192322, 0.31807565689086914, 0.17370404303073883, -0.1813337206840515, -0.395555317401886, -0.26477113366127014, 0.27525028586387634, -0.062046222388744354, -0.16027933359146118, 0.5959821343421936, 0.11217710375785828, 0.1384473741054535, 0.3642028868198395, 0.1647001951932907, 0.3454389274120331, 0.30862024426460266, 0.5334945917129517, -0.006381858140230179, 0.06381049752235413, 0.015030376613140106, -0.1849941909313202, 0.38984665274620056, 0.15701904892921448, 0.1495646983385086, 0.12169738858938217, 0.023986227810382843, -0.08112894743680954, -0.16114595532417297, 0.04076734930276871, 0.06576414406299591, -0.24083563685417175, 0.509501039981842, -0.3666459023952484, 0.06486532092094421, -0.2844310402870178, 0.09175797551870346, -0.5018344521522522, 0.10070699453353882, 0.13659490644931793, -0.2531302869319916, -0.003135301172733307, 0.09323546290397644, -0.04510914161801338, 0.12187114357948303, 0.4431712031364441, -0.02747490629553795, 0.14867211878299713, -0.3092437982559204, -0.32494890689849854, -0.6969506144523621, 0.02871890738606453, -0.1219928041100502, -0.10843842476606369, -0.20225004851818085, 0.17332082986831665, 0.08927994221448898, 0.00002761092036962509, 0.31346815824508667, -0.0900496244430542, 0.2910992503166199, -0.019658062607049942, -0.09396842867136002, -0.05484071373939514, -0.25369179248809814, 0.4198816120624542, -0.06445490568876266, -0.38256072998046875, 0.17983537912368774, -0.13170506060123444, -0.1726248562335968, 0.10051767528057098, 0.0644078478217125, -0.03305448591709137, -0.19854162633419037, 0.28672513365745544, 0.20527516305446625, 0.5202713012695312, -0.17796549201011658, 0.12268554419279099, -0.25265777111053467, -0.24800491333007812, -0.22141499817371368, 0.14417621493339539, 0.15503910183906555, 0.18513675034046173, -0.2641727030277252, -0.1189592033624649, -0.323050320148468, 0.1168714240193367, 0.1497393548488617, 0.06528286635875702, -0.39137113094329834, 0.04850044101476669, -0.08223526924848557, -0.04172296077013016, 0.3864690363407135, 0.24565473198890686, -0.1482202559709549, -0.316974401473999, -0.21433109045028687, -0.13058942556381226, 0.43943390250205994, -0.4244671165943146, -0.2427344024181366, 0.05773688480257988, 0.04024212062358856, 0.2548401355743408, 0.006513034924864769, -0.2594497799873352, 0.1669558733701706, 0.3865543603897095, -0.004519270732998848, -0.2442452311515808, 0.14665357768535614, -0.05738842487335205, -0.05056512728333473, 0.09333983063697815, -0.03339901939034462, 0.304703950881958, -0.36980921030044556, 0.46025383472442627, -0.1751720905303955 ]
https://github.com/huggingface/datasets/issues/5650
@NielsRogge @polinaeterna I have a similar problem when reading my dataset. I want to use DETR for object detection, but my data is in YOLO format. With a dataset of 10k images, yolo format involves having 10k labels. As far as I read regarding [COCO format](https://auto.gluon.ai/stable/tutorials/multimodal/object_detection/data_preparation/convert_data_to_coco_format.html), there must be one JSON per split. However, as I post in the [Hugging Face forum](https://discuss.huggingface.co/t/prepare-dataset-from-yolo-format-to-coco-for-detr/34894), when it is read, the number of rows is 1, which does not make sense. The instruction to read the train-val-test splits are: ```python from datasets import load_dataset data_files = { "train": './train_labels.json', "validation": './val_labels.json', "test": './test_labels.json' } dataset = load_dataset("json", data_files=data_files) ``` An example of the short version of the json file I read, to reproduce my error, is the following: ``` json { "info": {}, "licenses": [], "images": [ { "id": 1, "file_name": "aceca_100.mp4frame21.png", "width": 1280, "height": 720, "pixel_values": null, "pixel_mask": null }, { "id": 2, "file_name": "aceca_100.mp4frame24.png", "width": 1280, "height": 720, "pixel_values": null, "pixel_mask": null }, { "id": 3, "file_name": "aceca_100.mp4frame25.png", "width": 1280, "height": 720, "pixel_values": null, "pixel_mask": null}], "annotations": [ { "id": 1, "image_id": 1, "category_id": 0, "bbox": [0.0, 278.21896388398557, 86.94096523844935, 156.0293445072134], "area": 13565.341816979679, "iscrowd": 0 }, { "id": 2, "image_id": 2, "category_id": 0, "bbox": [149.28851295721816, 297.6359759754418, 34.76802347007475, 98.03908698442889], "area": 3408.625277259324, "iscrowd": 0 }, { "id": 3, "image_id": 3, "category_id": 0, "bbox": [153.3817197549372, 300.168969412891, 31.787555842913775, 89.69583163436312], "area": 2851.2112569539095, "iscrowd": 0 } ], "categories": [ { "id": 0, "name": "person" } ] } ``` If full files required, my email is aruigui98@gmail.com
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
247
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked @NielsRogge @polinaeterna I have a similar problem when reading my dataset. I want to use DETR for object detection, but my data is in YOLO format. With a dataset of 10k images, yolo format involves having 10k labels. As far as I read regarding [COCO format](https://auto.gluon.ai/stable/tutorials/multimodal/object_detection/data_preparation/convert_data_to_coco_format.html), there must be one JSON per split. However, as I post in the [Hugging Face forum](https://discuss.huggingface.co/t/prepare-dataset-from-yolo-format-to-coco-for-detr/34894), when it is read, the number of rows is 1, which does not make sense. The instruction to read the train-val-test splits are: ```python from datasets import load_dataset data_files = { "train": './train_labels.json', "validation": './val_labels.json', "test": './test_labels.json' } dataset = load_dataset("json", data_files=data_files) ``` An example of the short version of the json file I read, to reproduce my error, is the following: ``` json { "info": {}, "licenses": [], "images": [ { "id": 1, "file_name": "aceca_100.mp4frame21.png", "width": 1280, "height": 720, "pixel_values": null, "pixel_mask": null }, { "id": 2, "file_name": "aceca_100.mp4frame24.png", "width": 1280, "height": 720, "pixel_values": null, "pixel_mask": null }, { "id": 3, "file_name": "aceca_100.mp4frame25.png", "width": 1280, "height": 720, "pixel_values": null, "pixel_mask": null}], "annotations": [ { "id": 1, "image_id": 1, "category_id": 0, "bbox": [0.0, 278.21896388398557, 86.94096523844935, 156.0293445072134], "area": 13565.341816979679, "iscrowd": 0 }, { "id": 2, "image_id": 2, "category_id": 0, "bbox": [149.28851295721816, 297.6359759754418, 34.76802347007475, 98.03908698442889], "area": 3408.625277259324, "iscrowd": 0 }, { "id": 3, "image_id": 3, "category_id": 0, "bbox": [153.3817197549372, 300.168969412891, 31.787555842913775, 89.69583163436312], "area": 2851.2112569539095, "iscrowd": 0 } ], "categories": [ { "id": 0, "name": "person" } ] } ``` If full files required, my email is aruigui98@gmail.com
[ -0.06337567418813705, -0.26936066150665283, 0.00774277001619339, 0.6920603513717651, 0.37015050649642944, 0.025836631655693054, 0.5060684680938721, 0.05215759947896004, 0.10814967751502991, 0.08833637833595276, -0.3503330647945404, 0.2122577577829361, -0.01948394626379013, 0.24889034032821655, -0.2809300422668457, -0.08266384154558182, 0.08786352723836899, 0.003708966076374054, -0.1392790973186493, -0.2007739543914795, -0.15119320154190063, 0.21045243740081787, -0.21017883718013763, -0.3344138264656067, -0.792923092842102, -0.04851222410798073, -0.3830910921096802, 0.13534128665924072, -0.1714153289794922, -0.16712698340415955, -0.09937480837106705, 0.014422457665205002, 0.13999465107917786, 0.5862597823143005, -0.00012985977809876204, 0.10972684621810913, 0.2766474485397339, -0.3074016571044922, -0.13888174295425415, -0.4143410623073578, -0.5360870361328125, -0.20206278562545776, 0.28322523832321167, -0.23848409950733185, -0.02724563330411911, 0.11759889125823975, -0.08155512809753418, -0.18071970343589783, 0.6724082231521606, 0.393655002117157, 0.049824248999357224, -0.2867918312549591, 0.19893628358840942, 0.26766154170036316, 0.1525900810956955, 0.4966253340244293, 0.025264285504817963, 0.4291481077671051, -0.10813670605421066, 0.014980047941207886, -0.22155550122261047, 0.25866174697875977, 0.08857635408639908, 0.11149938404560089, 0.29108956456184387, 0.28440529108047485, -0.21358639001846313, -0.5885121822357178, -0.1807050108909607, 0.14686965942382812, 0.41789543628692627, -0.09849663078784943, -0.29267019033432007, -0.29322901368141174, -0.03651932626962662, -0.40836140513420105, 0.10577887296676636, 0.5128160119056702, -0.1209554523229599, 0.0420842170715332, -0.35705456137657166, 0.04933720827102661, -0.3398248553276062, 0.18241827189922333, -0.0808427706360817, 0.21290576457977295, -0.02710617333650589, 0.2994263172149658, 0.34268665313720703, 0.3096655011177063, 0.17787256836891174, -0.15611234307289124, 0.1282939612865448, 0.026341471821069717, -0.2027946263551712, 0.03986264765262604, -0.3331052362918854, 0.03222556784749031, 0.15644124150276184, 0.09902168810367584, 0.15605364739894867, -0.0971255898475647, -0.1848764717578888, 0.19285139441490173, 0.346761018037796, 0.39916303753852844, -0.008993446826934814, 0.360234797000885, 0.06025097146630287, 0.051825426518917084, -0.17533591389656067, -0.15399318933486938, -0.3384045958518982, -0.14647549390792847, -0.10943926870822906, -0.11365702003240585, -0.022760439664125443, -0.028407931327819824, -0.10883113741874695, -0.1295095533132553, -0.2959480285644531, -0.20046454668045044, 0.029920406639575958, 0.3302207589149475, 0.1733957827091217, 0.15744240581989288, 0.08649055659770966, 0.30298322439193726, -0.13655121624469757, -0.19559994339942932, -0.08923470228910446, 0.29090964794158936, -0.316239595413208, 0.02634967863559723, 0.17751559615135193, -0.2443009614944458, 0.20229358971118927, -0.021989911794662476, 0.17266452312469482, -0.4791836440563202, -0.08525760471820831, -0.5372265577316284, 0.2549176514148712, 0.31161773204803467, 0.004026301205158234, 0.046216122806072235, 0.22818808257579803, -0.2814364731311798, -0.14472253620624542, 0.26873835921287537, -0.6751739382743835, -0.03692559152841568, 0.15841960906982422, -0.09186334908008575, -0.23305778205394745, 0.1844710111618042, -0.5124353170394897, 0.27168992161750793, 0.09338649362325668, 0.11045003682374954, -0.0022989846765995026, -0.14497758448123932, -0.07640129327774048, -0.18559250235557556, 0.07955529540777206, 0.4383252263069153, -0.23888392746448517, -0.02926504611968994, -0.0036471858620643616, -0.024753961712121964, 0.24693883955478668, 0.17333944141864777, -0.007595419883728027, 0.19494368135929108, -0.10452595353126526, 0.02109628915786743, 0.14740079641342163, -0.43165314197540283, -0.3877873420715332, 0.3702508211135864, 0.14407162368297577, -0.11310780048370361, 0.08080354332923889, 0.41927042603492737, -0.0644708126783371, 0.040277525782585144, 0.08132506161928177, 0.3287828862667084, -0.1470518559217453, -0.036160342395305634, -0.07778425514698029, -0.07114052772521973, -0.006944376043975353, 0.16354884207248688, -0.14427444338798523, -0.002829473465681076, 0.18328160047531128, -0.03493168205022812, 0.2112663835287094, -0.06497485190629959, 0.1766979992389679, 0.23920917510986328, 0.1616058051586151, -0.07359231263399124, 0.0722711831331253, 0.4619660973548889, -0.6753059029579163, 0.054557062685489655, 0.21438853442668915, 0.11893874406814575, -0.17523193359375, 0.18753623962402344, -0.10700280964374542, -0.0882926657795906, -0.3768732249736786, -0.1338786482810974, -0.09547661244869232, 0.060279447585344315, 0.10459500551223755, -0.1494646966457367, -0.021927036345005035, 0.6272663474082947, 0.07516404986381531, 0.32672107219696045, -0.2063654661178589, 0.4032594859600067, 0.0031956247985363007, -0.10136669874191284, 0.26661673188209534, 0.002188257873058319, 0.14802727103233337, -0.39801064133644104, -0.08774980157613754, 0.3911283016204834, 0.5206236243247986, -0.007861610502004623, -0.263166606426239, -0.24553853273391724, 0.3920087516307831, -0.18415331840515137, 0.11324900388717651, -0.017716433852910995, 0.21448911726474762, -0.10160066932439804, -0.4020879566669464, 0.19384175539016724, -0.3333419859409332, 0.30916646122932434, -0.01206190139055252, 0.0030345171689987183, 0.2953658998012543, 0.04319889098405838, -0.12255840003490448, -0.3022210896015167, 0.020047862082719803, 0.08521563559770584, 0.4435938000679016, 0.2361222505569458, -0.12233591079711914, -0.21523436903953552, 0.17842411994934082, -0.09595604240894318, -0.02091207727789879, 0.3814733922481537, -0.14292365312576294, -0.10013961791992188, 0.10668917745351791, 0.18636558949947357, 0.554194450378418, 0.04678317904472351, -0.15738624334335327, 0.004242464900016785, -0.06404189020395279, -0.1085389032959938, -0.016407564282417297, 0.199441060423851, 0.5833194255828857, 0.2896542549133301, 0.2361391931772232, -0.15018783509731293, -0.299513578414917, -0.451109379529953, 0.24443493783473969, 0.3893277943134308, -0.12946417927742004, 0.2117413878440857, -0.04917850345373154, 0.0503474622964859, -0.009317409247159958, -0.22267082333564758, -0.060107067227363586, -0.19105693697929382, -0.1322397142648697, 0.04171845316886902, 0.2587708830833435, -0.0789535790681839, -0.05847744643688202, 0.17187829315662384, -0.03186732158064842, -0.10412359237670898, -0.2464013397693634, -0.028429048135876656, -0.20336288213729858, -0.13114148378372192, 0.3223700225353241, -0.1243300586938858, 0.07211901992559433, -0.32155343890190125, -0.08874024450778961, 0.3390754461288452, -0.28541508316993713, 0.3148149847984314, -0.27204301953315735, 0.14392130076885223, -0.13452720642089844, 0.023403413593769073, 0.045266106724739075, -0.2320481836795807, 0.287540078163147, 0.11056545376777649, -0.3156912326812744, 0.09181806445121765, 0.056005194783210754, 0.017776500433683395, -0.1409810185432434, -0.4074461758136749, -0.2166067361831665, -0.008201651275157928, 0.21078982949256897, 0.4672280550003052, 0.1809881329536438, 0.16202473640441895, 0.5370201468467712, -0.17796939611434937, 0.20289456844329834, -0.13533920049667358, -0.16734224557876587, -0.3584626615047455, 0.2718045711517334, -0.11588765680789948, -0.3341965973377228, 0.026105836033821106, -0.31750956177711487, 0.2242123782634735, 0.12428116798400879, -0.5856234431266785, -0.24368318915367126, -0.13184130191802979, -0.21922439336776733, -0.08963516354560852, -0.1231459528207779, -0.015176601707935333, 0.050244711339473724, 0.24618445336818695, -0.16057267785072327, -0.09973238408565521, 0.20326027274131775, 0.09125688672065735, 0.18114668130874634, -0.05608724057674408, 0.5035498738288879, 0.10078972578048706, 0.07471269369125366, 0.25861501693725586, -0.2827990651130676, 0.4228387176990509, -0.12784001231193542, 0.3688736855983734, -0.2701192796230316, 0.0797373577952385, 0.3419264853000641, -0.07860594987869263, -0.04706352949142456, 0.09323342144489288, 0.14299552142620087, -0.2597521245479584, -0.32106396555900574, 0.23544955253601074, -0.4287565350532532, -0.11894481629133224, 0.08134166151285172, 0.38432276248931885, -0.08474694937467575, -0.24448132514953613, -0.15620580315589905, -0.010185081511735916, -0.2696390151977539, -0.1126604825258255, 0.2182508260011673, 0.25576362013816833, 0.012356121093034744, -0.35234642028808594, -0.15419931709766388, -0.40953218936920166, 0.27939674258232117, 0.06349820643663406, 0.16197073459625244, 0.01492253690958023, 0.10545674711465836, 0.23382586240768433, 0.08671538531780243, 0.5869547128677368, -0.11687850207090378, -0.10608269274234772, 0.2733774483203888, -0.17499220371246338, -0.29258474707603455, -0.05648965761065483, -0.3969264030456543, -0.009470105171203613, 0.0016743838787078857, 0.8459355235099792, -0.43373847007751465, -0.07950012385845184, 0.22417066991329193, 0.31709930300712585, -0.1033431738615036, -0.2226371467113495, -0.3689676523208618, -0.1745661497116089, -0.4313535690307617, -0.18435515463352203, 0.2464791238307953, 0.2095469832420349, -0.027357203885912895, -0.1313380002975464, -0.007207591086626053, -0.3658909499645233, 0.22316601872444153, 0.12965452671051025, 0.3254117965698242, 0.3496229648590088, 0.19104649126529694, 0.29751986265182495, 0.2141568958759308, 0.506926953792572, 0.5874571204185486, -0.19035102427005768, -0.29027098417282104, 0.13803143799304962, -0.19171223044395447, 0.2426706999540329, 0.09350074827671051, 0.13875137269496918, -0.4824769198894501, -0.3320014178752899, 0.09479613602161407, -0.24781844019889832, 0.49830228090286255, 0.24458931386470795, 0.07814544439315796, -0.607125997543335, -0.2726382613182068, 0.3850231170654297, 0.07363028824329376, -0.022558480501174927, 0.3409416079521179, -0.2317175716161728, -0.26059260964393616, 0.10707788169384003, 0.17995285987854004, 0.9948033094406128, -0.29980525374412537, 0.22183114290237427, 0.2461114227771759, -0.02384161949157715, 0.15948839485645294, -0.25035360455513, 0.26171737909317017, -0.28721457719802856, -0.2948838174343109, -0.09535260498523712, -0.14032059907913208, 0.09491594135761261, 0.500049352645874, -0.05714419484138489, 0.22200529277324677, -0.260160356760025, -0.028209134936332703, -0.03162582963705063, 0.2489769607782364, 0.047655731439590454, -0.23887716233730316, 0.09785300493240356, -0.05322125926613808, 0.05699915438890457, 0.27187004685401917, 0.14340321719646454, 0.03399329259991646, -0.3592225909233093, -0.03502408415079117, -0.10069110989570618, -0.021694142371416092, -0.17732571065425873, 0.057800184935331345, 0.006423221901059151, -0.42597776651382446, -0.17848043143749237, 0.6569930911064148, 0.06586623936891556, -0.1318865716457367, 0.09698902070522308, 0.09395146369934082, -0.3667350709438324, 0.03909783810377121, -0.05816212296485901, -0.15834559500217438, 0.04883086681365967, 0.06598581373691559, -0.04346538335084915, -0.001625996083021164, -0.13781628012657166, -0.11871884018182755, -0.1377171277999878, 0.2230890989303589, -0.012615740299224854, -0.2542170584201813, -0.25316810607910156, 0.10492533445358276, -0.3045518100261688, -0.12817497551441193, -0.06322561204433441, 0.1888100504875183, 0.03924822807312012, 0.26022690534591675, -0.11029203236103058, -0.480545312166214, -0.03037942945957184, 0.29016974568367004, 0.18146958947181702, 0.1449960172176361, 0.3404298424720764, -0.017342761158943176, 0.05145392566919327, -0.03083016723394394, 0.3309425711631775, 0.42639726400375366, -0.33784645795822144, 0.2561313807964325, -0.061070650815963745, 0.021688789129257202, -0.06785456091165543, 0.23231250047683716, 0.017295517027378082, 0.29040735960006714, 0.07244011759757996, -0.39131760597229004, -0.5168541073799133, 0.04829660803079605, -0.16555267572402954, 0.09181863069534302, -0.09808889031410217, 0.1868830919265747, 0.25419697165489197, 0.3619491159915924, -0.052664339542388916, 0.08313456922769547, -0.15138806402683258, 0.26558300852775574, 0.02398911491036415, 0.05390942469239235, 0.10183890163898468, 0.040346380323171616, -0.038040898740291595, 0.21290849149227142, 0.11642584204673767, 0.03106970340013504, -0.18754246830940247, 0.2113284468650818, 0.1385883390903473, 0.15208405256271362, -0.020970236510038376, -0.21836163103580475, -0.2710636854171753, -0.29992246627807617, 0.1426793932914734, 0.1271343231201172, -0.06981275975704193, 0.14323244988918304, 0.05946959927678108, -0.10788935422897339, 0.08067068457603455, -0.06067293882369995, -0.2075953185558319, 0.40562379360198975, 0.4078284800052643, -0.08652065694332123, 0.2631615102291107, -0.032939136028289795, -0.2254554033279419, -0.008713807910680771, -0.08768635988235474, -0.06358565390110016, 0.26658278703689575, -0.09267376363277435, 0.37481689453125, -0.017446570098400116, 0.3447859585285187, 0.15583552420139313, -0.12870058417320251, 0.160261332988739, 0.1324358880519867, -0.03806609660387039, -0.2892349660396576, -0.3110153377056122, 0.06429450213909149, -0.028711887076497078, 0.12704545259475708, 0.42815303802490234, -0.10070894658565521, 0.1732134371995926, -0.3536086976528168, -0.09716322273015976, 0.46334677934646606, 0.18149718642234802, -0.010718289762735367, 0.25787678360939026, -0.3062592148780823, 0.2238570898771286, 0.42020535469055176, -0.13721638917922974, 0.019491180777549744, 0.15806156396865845, -0.3796531558036804, 0.177751824259758, 0.1643008291721344, 0.2656361162662506, 0.22822530567646027, -0.3626796007156372, -0.2397388070821762, 0.40523985028266907, -0.08899302780628204, 0.07666778564453125, -0.23095566034317017, 0.10207332670688629, 0.10838916152715683, 0.05551159009337425, -0.17364414036273956, 0.03269311785697937, 0.07268060743808746, -0.05581654608249664, -0.2332424521446228, -0.3234746754169464, -0.3517681360244751, 0.33927610516548157, -0.018780915066599846, -0.48160749673843384, 0.36166128516197205, 0.3140994906425476, -0.16082488000392914, -0.09993980824947357, -0.11437396705150604, 0.2397187054157257, 0.021823754534125328, -0.3264012336730957, 0.4634855389595032, 0.1672479212284088, -0.12862583994865417, 0.3056469261646271, -0.11728544533252716, 0.32504087686538696, 0.32934245467185974, 0.2805318236351013, 0.12201697379350662, -0.0795527994632721, -0.14561247825622559, -0.08265665918588638, 0.42107462882995605, 0.3702252507209778, -0.030122265219688416, 0.08925394713878632, -0.0501273050904274, 0.04833837226033211, 0.19905385375022888, 0.2388463318347931, 0.10869024693965912, -0.2056463360786438, 0.033104535192251205, -0.21739462018013, -0.08512617647647858, -0.1645251363515854, -0.08557727187871933, -0.3405231833457947, -0.2245437502861023, 0.13291409611701965, -0.28513604402542114, 0.054531678557395935, 0.21973906457424164, -0.06874267756938934, -0.25615981221199036, 0.2846372127532959, 0.06506043672561646, -0.15445372462272644, -0.46491187810897827, -0.3167431354522705, -0.5994406342506409, 0.005422983318567276, -0.27971020340919495, -0.41074448823928833, -0.19922608137130737, 0.22988361120224, 0.09206852316856384, 0.2267688363790512, 0.106869637966156, 0.345123291015625, 0.40807127952575684, 0.28999364376068115, -0.5046252608299255, 0.1228160485625267, -0.1607341170310974, 0.4649766981601715, -0.08880873024463654, -0.3398778438568115, 0.21940335631370544, 0.10933248698711395, -0.17279063165187836, 0.028626807034015656, 0.07907039672136307, -0.11527882516384125, 0.4686416983604431, 0.31091737747192383, 0.22239749133586884, 0.46395400166511536, -0.039321400225162506, 0.2587689161300659, -0.20452316105365753, -0.093528151512146, -0.09309354424476624, 0.23719969391822815, 0.29273030161857605, 0.37463873624801636, -0.3752821087837219, 0.13328930735588074, -0.2583310306072235, 0.27515387535095215, 0.16857388615608215, -0.06116192787885666, -0.38512521982192993, 0.100075863301754, -0.16639718413352966, 0.07474300265312195, 0.28772321343421936, 0.3600032329559326, 0.07424984127283096, -0.2920672297477722, -0.047562770545482635, -0.11761529743671417, 0.3591689169406891, -0.5014608502388, -0.2657117247581482, 0.004513222724199295, -0.19351527094841003, 0.3600925803184509, 0.20805518329143524, 0.0038372427225112915, 0.08959542214870453, 0.36810505390167236, -0.017221132293343544, -0.6380629539489746, 0.08358335494995117, 0.17081277072429657, -0.06138163432478905, 0.03136559575796127, -0.03330789878964424, 0.2409321367740631, -0.2387102246284485, -0.0906231626868248, -0.16193291544914246 ]
https://github.com/huggingface/datasets/issues/5650
Hi @Alberto1404, to load an object detection dataset it's recommended to make use of the metadata feature as explained [here](https://huggingface.co/docs/datasets/image_dataset#object-detection).
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
20
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked Hi @Alberto1404, to load an object detection dataset it's recommended to make use of the metadata feature as explained [here](https://huggingface.co/docs/datasets/image_dataset#object-detection).
[ -0.09196694940328598, -0.34738266468048096, -0.03819077089428902, 0.9169861674308777, 0.28612852096557617, -0.009504459798336029, 0.225851908326149, -0.09851942956447601, 0.26081109046936035, 0.055859051644802094, -0.1489664763212204, 0.032364845275878906, -0.15421564877033234, 0.25106745958328247, -0.12946408987045288, -0.18858304619789124, 0.14505484700202942, -0.04198315367102623, -0.36743348836898804, -0.3317318558692932, -0.2765575647354126, 0.20506776869297028, -0.15514518320560455, -0.22652199864387512, -0.6007911562919617, 0.27867019176483154, -0.18000629544258118, 0.2836073935031891, -0.2469799816608429, 0.043512001633644104, -0.08841703087091446, 0.10189370810985565, 0.2127024233341217, 0.7690756320953369, -0.00012872993829660118, -0.037304528057575226, 0.22042007744312286, -0.34579429030418396, -0.051066480576992035, -0.18705713748931885, -0.218553364276886, -0.09141302108764648, 0.14997446537017822, -0.16803184151649475, -0.07712168991565704, 0.10414779186248779, 0.03297876566648483, -0.14498727023601532, 0.5166434645652771, 0.31112733483314514, 0.09916922450065613, -0.08780623227357864, 0.12644840776920319, 0.1625533550977707, 0.10926011204719543, 0.5078874230384827, -0.006348162889480591, 0.3506529629230499, -0.11177760362625122, 0.02339193969964981, 0.1371033787727356, 0.19972172379493713, -0.019813712686300278, 0.07165257632732391, 0.5720035433769226, 0.21627691388130188, -0.2675252854824066, -0.5355852246284485, -0.03892664238810539, 0.10526175796985626, 0.5257619023323059, -0.013646665960550308, -0.16460540890693665, -0.2739582359790802, -0.020562276244163513, -0.24857397377490997, 0.3200770914554596, 0.26187050342559814, -0.10550642013549805, -0.16851641237735748, -0.4626682996749878, -0.22022497653961182, -0.27717357873916626, 0.2741248905658722, -0.03841947019100189, -0.11126101016998291, -0.2203182578086853, 0.3273172676563263, 0.3738347589969635, 0.17522311210632324, -0.0012831613421440125, -0.18792209029197693, 0.12970685958862305, 0.2378012239933014, -0.09100033342838287, 0.05753249675035477, -0.23412930965423584, 0.3371525704860687, 0.3077070116996765, 0.2158043086528778, -0.1791071891784668, 0.06458812952041626, -0.2469760626554489, 0.15304268896579742, 0.14554104208946228, 0.03720132261514664, 0.04079325497150421, 0.1449938416481018, -0.005952615290880203, 0.0042885467410087585, -0.37208300828933716, -0.1638389229774475, -0.4375793933868408, 0.0399012565612793, 0.006344258785247803, -0.413723886013031, -0.016301821917295456, -0.0018382072448730469, 0.00957709550857544, -0.2283419668674469, -0.1185380294919014, -0.26016685366630554, 0.052806682884693146, 0.4612310230731964, 0.15386763215065002, -0.08960799127817154, 0.17005008459091187, 0.27638107538223267, -0.15448406338691711, -0.2377777397632599, -0.11566442251205444, 0.042702484875917435, -0.2984439432621002, 0.20841960608959198, 0.08323242515325546, -0.40343573689460754, 0.24809205532073975, -0.11368238180875778, 0.1090220957994461, -0.21734550595283508, -0.023744989186525345, -0.5104736089706421, 0.24031777679920197, 0.23990152776241302, 0.0005418434739112854, -0.012779232114553452, 0.0971110612154007, 0.07838933169841766, -0.10687695443630219, 0.16498781740665436, -0.5948647260665894, -0.03956548869609833, -0.059113092720508575, -0.04866371303796768, -0.07423310726881027, -0.0061029247008264065, -0.7197554111480713, 0.28307363390922546, -0.01374250277876854, -0.08325784653425217, 0.03858949989080429, 0.03372490778565407, -0.326553612947464, -0.21733304858207703, 0.19965091347694397, 0.6209789514541626, -0.20128276944160461, 0.014939114451408386, -0.10882575809955597, -0.20167109370231628, 0.03550030291080475, 0.20181256532669067, -0.06111357361078262, 0.3090740144252777, -0.4580678343772888, -0.04051902890205383, 0.10497121512889862, -0.3459082245826721, -0.12285005301237106, 0.17642682790756226, 0.1377873718738556, -0.05973617732524872, 0.005216050893068314, 0.31125250458717346, -0.135335311293602, -0.04662535339593887, -0.3046863377094269, 0.22585618495941162, -0.08520498126745224, 0.0025521516799926758, 0.19432052969932556, -0.14080944657325745, 0.10173580795526505, 0.2218637317419052, 0.019320717081427574, 0.15838530659675598, 0.20711392164230347, -0.040108613669872284, 0.06029994413256645, 0.027858708053827286, 0.1049724668264389, 0.22246839106082916, 0.11735142022371292, 0.06067096069455147, 0.02672683075070381, 0.11563341319561005, -0.5753928422927856, 0.11497961729764938, 0.22617506980895996, 0.05522403493523598, -0.000988401472568512, 0.2563712000846863, -0.3075592517852783, -0.08963175117969513, -0.4033680856227875, -0.02872997708618641, -0.11968938261270523, 0.11695514619350433, 0.1131572499871254, -0.2189721167087555, -0.16977033019065857, 0.5266402959823608, -0.26937758922576904, 0.2354360669851303, -0.26217707991600037, 0.4903903007507324, 0.11437495052814484, -0.13164213299751282, -0.0046889930963516235, -0.20570814609527588, 0.09379671514034271, -0.3163301646709442, 0.003158118575811386, 0.41464757919311523, 0.3435375392436981, -0.14689935743808746, 0.04957696050405502, 0.17518170177936554, 0.24109703302383423, -0.4328625798225403, 0.16290165483951569, -0.07804184406995773, 0.4548499584197998, -0.1710086166858673, -0.29920998215675354, 0.014944683760404587, -0.009965980425477028, 0.23240439593791962, 0.08705846965312958, -0.2971983551979065, 0.15438638627529144, -0.027272135019302368, 0.03158329427242279, -0.09068003296852112, 0.09752276539802551, 0.13547225296497345, 0.18372930586338043, 0.301360547542572, -0.12801414728164673, -0.25695863366127014, 0.26272863149642944, -0.04417756199836731, -0.03391517326235771, 0.3849223554134369, -0.26918888092041016, 0.010739125311374664, -0.10327672958374023, -0.18976223468780518, 0.621575117111206, 0.05757765844464302, -0.0908769816160202, 0.1340511292219162, 0.25899538397789, 0.02216270938515663, 0.02048129215836525, 0.006833948194980621, 0.5662581324577332, 0.1937161237001419, -0.04706013202667236, -0.12410494685173035, -0.4745945930480957, -0.18466100096702576, 0.2967495620250702, 0.22822460532188416, -0.3385270833969116, 0.1746257245540619, 0.1235731765627861, -0.2599867284297943, -0.1272696703672409, 0.021785933524370193, -0.42064663767814636, 0.15405170619487762, -0.2464362382888794, 0.23982034623622894, 0.3398590385913849, -0.1464507281780243, 0.011242575943470001, 0.33226144313812256, 0.10922258347272873, -0.321787029504776, -0.23013584315776825, 0.31198033690452576, -0.09781140089035034, -0.11271052062511444, 0.20741479098796844, 0.006191417574882507, 0.3486325442790985, -0.31155142188072205, -0.09592645615339279, -0.0314740426838398, -0.25376594066619873, 0.2920166254043579, -0.09003116935491562, 0.20167866349220276, -0.08751150965690613, 0.20636112987995148, 0.025416038930416107, -0.05322154983878136, 0.24476443231105804, -0.1059456542134285, -0.26438719034194946, -0.036535561084747314, 0.056016091257333755, 0.044647298753261566, -0.0005476400256156921, -0.17744088172912598, -0.20957735180854797, -0.0784987211227417, 0.05765391141176224, 0.4938969016075134, 0.18413889408111572, 0.3021344244480133, 0.2564058303833008, -0.09241902828216553, -0.14751026034355164, 0.09454040974378586, -0.30740466713905334, -0.6236339211463928, 0.21933631598949432, -0.05056576430797577, -0.42390942573547363, 0.09775988757610321, -0.04307323321700096, -0.022667909041047096, 0.1382509022951126, -0.4596264362335205, -0.3694019913673401, -0.042707882821559906, -0.03267718106508255, -0.008131812326610088, 0.20559538900852203, 0.005764972418546677, -0.22899293899536133, 0.22118356823921204, -0.261516273021698, -0.23699121177196503, 0.10077373683452606, 0.06297042965888977, 0.49718138575553894, 0.06862810999155045, 0.31931936740875244, -0.33972790837287903, 0.4734681248664856, 0.19749747216701508, -0.23881778120994568, 0.6000903844833374, -0.2472313791513443, 0.5224536061286926, -0.4032486081123352, -0.16153204441070557, 0.2892164885997772, 0.04282184690237045, 0.0850067287683487, 0.21794521808624268, 0.11196392774581909, -0.016583282500505447, -0.2468419075012207, 0.11071815341711044, -0.5744574666023254, 0.006735645234584808, 0.08687261492013931, 0.2927292585372925, 0.05527792125940323, -0.2038893699645996, -0.11042024940252304, 0.056130990386009216, -0.2079726606607437, -0.023294992744922638, 0.41123461723327637, 0.2951142191886902, 0.00462273508310318, -0.4481413960456848, 0.04214978590607643, -0.03221479430794716, 0.2603905498981476, -0.02591809444129467, 0.042577583342790604, -0.15739008784294128, 0.1731683313846588, 0.29872438311576843, 0.1980682909488678, 0.9565034508705139, -0.09443297237157822, -0.07261331379413605, -0.007539436221122742, -0.18641561269760132, -0.33093762397766113, 0.048596084117889404, -0.11468769609928131, -0.016514264047145844, -0.03303014114499092, 0.659447968006134, -0.36053621768951416, -0.2192702293395996, 0.10916821658611298, 0.31508177518844604, -0.27924227714538574, -0.4244239330291748, -0.4602407217025757, -0.16336068511009216, -0.40723717212677, -0.2219502329826355, 0.11449848860502243, 0.11136510223150253, 0.09080638736486435, -0.1458401381969452, -0.03544097766280174, -0.24161452054977417, 0.21833261847496033, -0.09448052197694778, 0.437100887298584, 0.42916202545166016, 0.22092458605766296, 0.3580748736858368, 0.2691585421562195, 0.43333595991134644, 0.748947024345398, -0.3202701210975647, -0.3553735017776489, 0.17768998444080353, -0.01206919178366661, 0.30848371982574463, 0.13324208557605743, 0.08486351370811462, -0.19468647241592407, -0.11344444751739502, 0.14614608883857727, -0.4679248034954071, 0.40472012758255005, 0.3403918743133545, -0.07728654891252518, -0.49215301871299744, -0.2668127417564392, 0.6574681997299194, 0.03668452799320221, 0.0452057421207428, 0.20312005281448364, 0.16914476454257965, -0.3104339838027954, -0.0076337046921253204, -0.06153925135731697, 1.0303044319152832, -0.3230651319026947, 0.17641112208366394, 0.11231352388858795, 0.014558270573616028, 0.3051217794418335, -0.0894957110285759, -0.04986926540732384, -0.29119443893432617, -0.28027626872062683, -0.14896053075790405, -0.12436538934707642, 0.08261848986148834, 0.3133634030818939, 0.1663951575756073, 0.24371999502182007, -0.276230126619339, -0.03225812315940857, -0.11430839449167252, 0.3172107934951782, 0.0176310483366251, -0.26723581552505493, -0.24045732617378235, 0.024812117218971252, 0.15047705173492432, 0.48126041889190674, 0.0819777175784111, 0.09231679141521454, -0.10479742288589478, -0.10437844693660736, -0.09694385528564453, -0.09039364010095596, -0.13476483523845673, -0.07906673103570938, 0.20799493789672852, -0.2422228306531906, -0.08603809773921967, 0.33504948019981384, -0.034515466541051865, -0.1769324094057083, -0.06078261137008667, 0.19691875576972961, -0.2995847165584564, -0.038118839263916016, -0.1913239061832428, -0.16605904698371887, 0.18336282670497894, -0.01665521413087845, -0.00596676766872406, -0.06279817968606949, -0.1871747225522995, -0.20625749230384827, -0.027936309576034546, 0.03207351267337799, 0.1865464597940445, -0.27053770422935486, -0.3302333354949951, -0.011557891964912415, -0.06569632887840271, 0.029976829886436462, -0.041173841804265976, 0.28472790122032166, -0.014683809131383896, 0.24831274151802063, 0.08856087923049927, -0.3633485436439514, -0.08718420565128326, 0.4108196794986725, -0.03508777171373367, -0.05897765979170799, 0.31625398993492126, 0.05429907143115997, 0.044921718537807465, -0.026867225766181946, 0.43448275327682495, 0.6391056180000305, -0.2824186086654663, 0.15292128920555115, 0.42085206508636475, 0.13856443762779236, 0.0031940750777721405, 0.19809280335903168, 0.13924311101436615, -0.2636550962924957, 0.07490184903144836, -0.46062421798706055, -0.4030320644378662, 0.014758855104446411, -0.21664421260356903, 0.08401945978403091, 0.026576749980449677, -0.26884061098098755, 0.41066861152648926, 0.17893393337726593, -0.09616121649742126, 0.15316148102283478, -0.09238544851541519, 0.08993303030729294, 0.5420751571655273, 0.25463008880615234, 0.17164257168769836, -0.042367734014987946, -0.04378447309136391, 0.08948788046836853, -0.11696230620145798, 0.03620745986700058, -0.19899596273899078, 0.28389161825180054, 0.24106505513191223, 0.002916768193244934, -0.07006412744522095, -0.5703486204147339, -0.30611738562583923, -0.20560556650161743, 0.10840027779340744, 0.08880139887332916, -0.010876763612031937, 0.05611053854227066, 0.08656837046146393, -0.18628880381584167, -0.09796205908060074, 0.08993017673492432, -0.0700078159570694, 0.39377981424331665, 0.2892495095729828, -0.17480581998825073, 0.18983624875545502, -0.05974915251135826, -0.14839288592338562, 0.13327202200889587, 0.1006646603345871, -0.28166425228118896, 0.2728293538093567, -0.07901901006698608, 0.43394994735717773, 0.09082502871751785, 0.24265289306640625, 0.42888179421424866, -0.34151580929756165, 0.18102183938026428, 0.11711912602186203, -0.019602714106440544, -0.2626085579395294, -0.20283232629299164, -0.08427518606185913, -0.07090851664543152, -0.03433714807033539, 0.22355914115905762, -0.1406150907278061, 0.34838810563087463, -0.3605818450450897, -0.04628228768706322, 0.3771952986717224, 0.19538146257400513, -0.057330913841724396, 0.00029809772968292236, -0.23007601499557495, 0.1953551322221756, 0.4758238196372986, 0.18383464217185974, -0.1624520868062973, 0.5014057755470276, -0.1931011825799942, 0.48090362548828125, -0.2532161474227905, 0.27937600016593933, 0.18568791449069977, -0.3736186623573303, -0.0831630676984787, 0.45633363723754883, -0.01265735924243927, 0.026309750974178314, -0.3123009204864502, 0.21206651628017426, 0.0014975257217884064, -0.16216015815734863, -0.20691482722759247, 0.11224406957626343, 0.14919394254684448, 0.020386509597301483, -0.2792341709136963, -0.32821860909461975, -0.12090545892715454, 0.25974076986312866, 0.031251296401023865, -0.6901376247406006, 0.2976745069026947, 0.250490665435791, -0.186550572514534, -0.2576749324798584, -0.19219383597373962, 0.272815078496933, -0.006386198103427887, -0.1853351593017578, 0.45630279183387756, -0.0028166770935058594, 0.043557919561862946, 0.5016501545906067, 0.13060599565505981, 0.20136511325836182, 0.2406633049249649, 0.293671578168869, 0.06359948217868805, 0.004140991717576981, -0.10508706420660019, -0.12844952940940857, 0.4165979325771332, 0.2925034463405609, 0.1200670450925827, 0.03222685307264328, -0.020150629803538322, 0.003074735403060913, -0.08545735478401184, 0.14231421053409576, 0.10930158942937851, -0.3688264787197113, 0.19481933116912842, -0.41512802243232727, 0.10869760811328888, -0.4119528830051422, 0.024699566885828972, -0.35557788610458374, 0.01522543653845787, 0.3353762924671173, -0.07032011449337006, 0.06559626758098602, 0.16099463403224945, -0.0622982494533062, -0.08839567750692368, 0.32061728835105896, 0.10627986490726471, 0.14614823460578918, -0.3835262954235077, -0.2607251703739166, -0.6939735412597656, 0.06508804857730865, 0.07917036861181259, -0.11289095878601074, -0.05030089616775513, 0.061431996524333954, 0.21631847321987152, 0.08414672315120697, 0.19770488142967224, 0.038220759481191635, 0.6038309335708618, 0.19520065188407898, -0.27207374572753906, -0.0506560280919075, -0.33389055728912354, 0.4973759651184082, -0.11424213647842407, -0.29459065198898315, 0.2819744646549225, -0.25437092781066895, -0.17062467336654663, -0.022741511464118958, 0.10084977746009827, -0.19617587327957153, 0.36073949933052063, 0.39032405614852905, 0.02740846388041973, 0.7186086177825928, -0.06607246398925781, 0.36541229486465454, -0.08906285464763641, -0.13064461946487427, -0.23843422532081604, 0.225967139005661, 0.24882233142852783, 0.053345873951911926, -0.29153648018836975, 0.10776820778846741, -0.23770160973072052, 0.03983988240361214, 0.07689519226551056, -0.014403436332941055, -0.46602487564086914, -0.06603699922561646, -0.08610263466835022, -0.039202433079481125, 0.2688259184360504, 0.202837735414505, -0.009477181360125542, -0.3114929795265198, -0.2238893210887909, -0.036088500171899796, 0.4790477752685547, -0.25560805201530457, -0.30591505765914917, -0.04284566640853882, -0.05086081475019455, 0.08234722912311554, -0.062430478632450104, -0.46992185711860657, 0.14152321219444275, 0.40315771102905273, -0.20594944059848785, -0.299823522567749, 0.26948752999305725, 0.004100307822227478, 0.09803538024425507, 0.1041150614619255, 0.16851386427879333, 0.18180155754089355, -0.1799672245979309, 0.14194445312023163, -0.028210964053869247 ]
https://github.com/huggingface/datasets/issues/5650
You can now refer to https://huggingface.co/docs/datasets/repository_structure to learn about the `datasets`' data files inference, so I'm closing this issue.
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked
19
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting images and the like but absolutely nothing worked You can now refer to https://huggingface.co/docs/datasets/repository_structure to learn about the `datasets`' data files inference, so I'm closing this issue.
[ -0.1361059695482254, -0.285741925239563, -0.027532605454325676, 0.9229639172554016, 0.3900768756866455, -0.01735365390777588, 0.12674278020858765, -0.028047975152730942, 0.16894353926181793, 0.1239619106054306, -0.2382950335741043, -0.1194194108247757, 0.000526677817106247, 0.2567552924156189, 0.004259441047906876, -0.22432731091976166, 0.14685729146003723, -0.03406234458088875, -0.2587994337081909, -0.36603736877441406, -0.31361114978790283, 0.2865777611732483, -0.15277746319770813, -0.24281369149684906, -0.5444679260253906, 0.12471344321966171, -0.20473912358283997, 0.34842509031295776, -0.3178884983062744, 0.10826462507247925, 0.010585382580757141, 0.04828003793954849, 0.25817131996154785, 0.7558869123458862, -0.00012646733375731856, -0.06790001690387726, 0.19099187850952148, -0.29853537678718567, -0.13297247886657715, -0.20572398602962494, -0.257327675819397, -0.16854628920555115, 0.09805221855640411, -0.1477125883102417, -0.055583421140909195, -0.02275470644235611, 0.06883206963539124, -0.03424953669309616, 0.6185261607170105, 0.2631521224975586, 0.09763802587985992, -0.09591317921876907, 0.0687551498413086, 0.026751380413770676, 0.07617685943841934, 0.43153661489486694, 0.059634312987327576, 0.38091856241226196, -0.10661232471466064, 0.04106113314628601, 0.08756023645401001, 0.1570843607187271, 0.019214153289794922, 0.1068645566701889, 0.44057905673980713, 0.22291967272758484, -0.2989715337753296, -0.5767518281936646, -0.030500004068017006, 0.21375921368598938, 0.44458556175231934, 0.0021753497421741486, -0.13702258467674255, -0.2790631353855133, -0.11060148477554321, -0.13878144323825836, 0.31000185012817383, 0.35946881771087646, -0.12415312230587006, -0.049724236130714417, -0.4264321029186249, -0.2110500931739807, -0.2671136260032654, 0.3233978748321533, 0.059284694492816925, -0.16589602828025818, -0.2754945456981659, 0.24213120341300964, 0.3898775279521942, 0.19684763252735138, -0.10999728739261627, -0.22008055448532104, 0.06030437350273132, 0.26840195059776306, -0.2754379212856293, 0.04150719940662384, -0.2790197730064392, 0.5396276116371155, 0.3591766059398651, 0.15435728430747986, -0.14256364107131958, 0.010911446064710617, -0.15174150466918945, 0.12410833686590195, 0.20057696104049683, 0.15606802701950073, -0.07586388289928436, 0.19041500985622406, 0.09213925898075104, 0.0933830589056015, -0.1983862817287445, -0.14859969913959503, -0.35410019755363464, -0.15301643311977386, -0.19275632500648499, -0.4698959290981293, -0.029782935976982117, 0.056639134883880615, 0.05569755285978317, -0.20174813270568848, 0.014162577688694, -0.1593579202890396, 0.10424106568098068, 0.46095800399780273, 0.1539480835199356, 0.03638133779168129, 0.16103583574295044, 0.3002054989337921, -0.16583597660064697, -0.22336766123771667, -0.1682543009519577, 0.015408873558044434, -0.3779398500919342, 0.18489661812782288, 0.0753016322851181, -0.24646201729774475, 0.2865648865699768, 0.027751456946134567, 0.04385695978999138, -0.2242269068956375, -0.06960862129926682, -0.4952971935272217, 0.2040405571460724, 0.18467643857002258, 0.03503543138504028, 0.08555624634027481, 0.06065184623003006, 0.009494364261627197, 0.02809065580368042, 0.12250994145870209, -0.6594546437263489, -0.048440877348184586, -0.13880008459091187, -0.005778320133686066, -0.20685186982154846, 0.033820100128650665, -0.8715164065361023, 0.32851678133010864, 0.1329793930053711, -0.041555795818567276, 0.11711397022008896, 0.006190191954374313, -0.2680045962333679, -0.17087700963020325, 0.3045573830604553, 0.5571526288986206, -0.18735972046852112, -0.019672200083732605, -0.08256229013204575, -0.2544308304786682, 0.014331523329019547, 0.4132385551929474, -0.04577435553073883, 0.25772973895072937, -0.41085249185562134, 0.028125330805778503, 0.310674250125885, -0.29418832063674927, -0.23613938689231873, 0.2687775790691376, 0.12492027878761292, -0.1915075182914734, -0.0556475892663002, 0.28802070021629333, 0.04798883944749832, 0.06369183957576752, -0.18695765733718872, 0.20629587769508362, -0.0971723198890686, 0.03301484137773514, 0.08148758113384247, -0.16838690638542175, -0.0021581463515758514, 0.09994438290596008, -0.034702666103839874, 0.18919974565505981, 0.189065083861351, -0.0429154597222805, 0.23990750312805176, -0.032963044941425323, 0.2036454826593399, 0.2660048305988312, 0.23249681293964386, 0.16722986102104187, 0.049789924174547195, 0.10298234224319458, -0.6820784211158752, 0.16590861976146698, 0.13243967294692993, -0.031125355511903763, 0.05195380002260208, 0.2515065371990204, -0.2624492645263672, -0.21955376863479614, -0.3380570709705353, -0.11344163119792938, -0.10632378607988358, 0.06781110912561417, 0.14498190581798553, -0.22798320651054382, -0.19859839975833893, 0.49005576968193054, -0.3916867673397064, 0.22929614782333374, -0.3985605537891388, 0.47977790236473083, 0.0952700600028038, -0.10899150371551514, -0.02200588583946228, -0.19448703527450562, 0.043059587478637695, -0.3416963517665863, -0.021234819665551186, 0.3920965790748596, 0.26954734325408936, -0.06827961653470993, 0.03436315804719925, 0.09109482169151306, 0.21130037307739258, -0.3707561492919922, 0.15084236860275269, -0.15966176986694336, 0.33752527832984924, -0.10844038426876068, -0.20291607081890106, -0.04009278863668442, -0.08969156444072723, 0.19489115476608276, -0.06676167249679565, -0.19479075074195862, 0.2537156343460083, -0.0023903250694274902, 0.09603863209486008, -0.03636784106492996, 0.14106732606887817, 0.19920021295547485, 0.4031410217285156, 0.2926616072654724, -0.1551661193370819, -0.29974648356437683, 0.24199852347373962, -0.0845947340130806, -0.10177883505821228, 0.2850486636161804, -0.2589012086391449, -0.06888878345489502, 0.07492043823003769, 0.07073597609996796, 0.6251228451728821, 0.06131600961089134, -0.07450710237026215, 0.13688315451145172, 0.18170411884784698, -0.09084504842758179, -0.04586058855056763, 0.051848702132701874, 0.43450218439102173, 0.17907455563545227, -0.08526712656021118, -0.05630049854516983, -0.4931654632091522, 0.026652194559574127, 0.21952220797538757, 0.2317269891500473, -0.3520588278770447, 0.21451041102409363, 0.09033286571502686, -0.2886587977409363, -0.17711639404296875, 0.14559736847877502, -0.40553611516952515, 0.07915065437555313, -0.2261229008436203, 0.10726054012775421, 0.2378515899181366, -0.10151940584182739, 0.04576566815376282, 0.2781608998775482, 0.07150160521268845, -0.3093261420726776, -0.28437289595603943, 0.2639361619949341, -0.1353701949119568, -0.06717924028635025, 0.1875849813222885, 0.005544748157262802, 0.2629242539405823, -0.4032108187675476, -0.2360546886920929, -0.12481909245252609, -0.17577038705348969, 0.26092422008514404, -0.22464020550251007, 0.295025110244751, -0.013030331581830978, 0.3247775733470917, 0.05200684070587158, -0.00959596037864685, 0.269064337015152, -0.10350053012371063, -0.29521551728248596, 0.004849851131439209, 0.06008119881153107, -0.012060493230819702, -0.020204167813062668, -0.2243400514125824, -0.16547858715057373, -0.15304404497146606, 0.18205896019935608, 0.3407694101333618, 0.08505214750766754, 0.2600434124469757, 0.3457370698451996, -0.12252495437860489, -0.15999308228492737, -0.006873017176985741, -0.32738417387008667, -0.5623692274093628, 0.2566513419151306, -0.08222202211618423, -0.45677030086517334, 0.08163191378116608, -0.10378731787204742, 0.03758492320775986, 0.20899803936481476, -0.4736781120300293, -0.25021594762802124, -0.10599670559167862, -0.002389267086982727, 0.052131325006484985, 0.3109015226364136, -0.012057371437549591, -0.32666221261024475, 0.1887492537498474, -0.23245495557785034, -0.1392940878868103, 0.1685839295387268, 0.09436140954494476, 0.4915534555912018, 0.07101236283779144, 0.3036446273326874, -0.2267858237028122, 0.5107747912406921, 0.3403485417366028, -0.21410760283470154, 0.561874270439148, -0.22838035225868225, 0.59906005859375, -0.29557931423187256, -0.0916658490896225, 0.3670070767402649, 0.1027967631816864, 0.050929486751556396, 0.24481616914272308, 0.18723706901073456, 0.12086326628923416, -0.19638687372207642, 0.07308328151702881, -0.4244770109653473, -0.029085371643304825, 0.1301669478416443, 0.21575358510017395, 0.03782912343740463, -0.14090605080127716, -0.12601523101329803, 0.09660889953374863, -0.26603636145591736, -0.06824637204408646, 0.40933018922805786, 0.18800443410873413, 0.1826668083667755, -0.3081302046775818, 0.25066009163856506, -0.1143762543797493, 0.3836316466331482, -0.027869706973433495, -0.0531170591711998, -0.054137490689754486, 0.19751973450183868, 0.2923654317855835, 0.21474683284759521, 0.8936111927032471, -0.023512225598096848, -0.21355527639389038, -0.10274854302406311, -0.21661564707756042, -0.3519503176212311, 0.1013990193605423, -0.17322653532028198, -0.058442290872335434, -0.03282421827316284, 0.6207351088523865, -0.43504491448402405, -0.2849678099155426, 0.11653591692447662, 0.373323917388916, -0.2896072268486023, -0.36098647117614746, -0.41146600246429443, -0.12819920480251312, -0.32125619053840637, -0.21171385049819946, 0.18503746390342712, 0.06067121401429176, 0.07384278625249863, -0.10454484075307846, 0.024984067305922508, -0.19378432631492615, 0.16061654686927795, -0.04084933549165726, 0.44874441623687744, 0.3092798590660095, 0.07626235485076904, 0.4582221806049347, 0.22277379035949707, 0.4476662874221802, 0.6657643914222717, -0.46635621786117554, -0.3310588002204895, 0.1842150092124939, 0.05032894387841225, 0.26592403650283813, 0.14238585531711578, -0.04708877205848694, -0.26421046257019043, 0.07849650084972382, 0.1284455955028534, -0.4093761444091797, 0.31887030601501465, 0.49858608841896057, 0.03509049490094185, -0.40606188774108887, -0.453673392534256, 0.5848138928413391, -0.0358603335916996, 0.014453619718551636, 0.2226477861404419, 0.30645039677619934, -0.261089950799942, -0.09908416867256165, -0.15282820165157318, 0.9855180978775024, -0.22042517364025116, 0.2591688632965088, 0.28653866052627563, 0.16350258886814117, 0.4049502909183502, -0.08531396836042404, -0.0492095984518528, -0.2493855506181717, -0.12077174335718155, -0.11584461480379105, -0.15888923406600952, -0.022896036505699158, 0.34954145550727844, 0.13783256709575653, 0.3397204577922821, -0.18625915050506592, 0.0801924541592598, -0.09833705425262451, 0.24665291607379913, 0.014268731698393822, -0.13450926542282104, -0.43439990282058716, 0.056081973016262054, 0.13978035748004913, 0.3672810196876526, -0.04270295053720474, 0.0475480817258358, -0.1889212429523468, -0.06456535309553146, -0.060793980956077576, -0.0702466070652008, -0.3427242040634155, -0.06763499975204468, 0.23879821598529816, -0.368999719619751, -0.1024472787976265, 0.5949678421020508, -0.028235170990228653, -0.18747971951961517, -0.13546837866306305, 0.1592944860458374, -0.3256062865257263, -0.04044205695390701, -0.18112267553806305, -0.20617109537124634, 0.1778424233198166, 0.009465120732784271, -0.04200379550457001, -0.19355133175849915, -0.10428128391504288, -0.19957756996154785, -0.042777031660079956, 0.08983220905065536, 0.061264876276254654, -0.3974147439002991, -0.32444819808006287, -0.07646746188402176, -0.00443035364151001, 0.023057498037815094, -0.004186240956187248, 0.29846125841140747, 0.01791337877511978, 0.19162485003471375, 0.11159205436706543, -0.3243076205253601, -0.08223198354244232, 0.3518402874469757, -0.14598801732063293, -0.06831084191799164, 0.3040638566017151, 0.011350095272064209, 0.013681180775165558, -0.04283756762742996, 0.3405575156211853, 0.5051229000091553, -0.39499837160110474, 0.23557911813259125, 0.3505551815032959, 0.11253538727760315, -0.13213428854942322, 0.33544230461120605, 0.24050691723823547, -0.23182149231433868, 0.11869284510612488, -0.33452677726745605, -0.38197940587997437, 0.1748276650905609, -0.20007547736167908, 0.1173519641160965, 0.033385999500751495, -0.2019878327846527, 0.4097003936767578, 0.13716624677181244, -0.13279402256011963, 0.20268720388412476, -0.15282770991325378, 0.07934984564781189, 0.4516124725341797, 0.12437531352043152, 0.24152551591396332, -0.15389037132263184, -0.09045801311731339, 0.06631793826818466, -0.21849879622459412, 0.010585062205791473, -0.23225580155849457, 0.26512086391448975, 0.2155919373035431, 0.028935834765434265, 0.04318903759121895, -0.45429426431655884, -0.24157966673374176, -0.2946804165840149, 0.1922149956226349, 0.12699422240257263, 0.025630826130509377, 0.07384097576141357, 0.154031902551651, -0.13577044010162354, -0.17767782509326935, 0.19044917821884155, -0.11814893782138824, 0.34848690032958984, 0.19878120720386505, -0.19461601972579956, 0.1795693188905716, -0.12245023995637894, -0.20891445875167847, 0.13813678920269012, 0.22900190949440002, -0.23559154570102692, 0.19466698169708252, -0.029399331659078598, 0.34682953357696533, -0.017872188240289688, 0.4003766179084778, 0.4832969307899475, -0.25828635692596436, 0.2237015664577484, 0.15646541118621826, -0.012540701776742935, -0.27698880434036255, 0.016657892614603043, -0.0000034011900424957275, -0.0690474808216095, -0.02392084151506424, 0.24145013093948364, -0.0682038813829422, 0.18075793981552124, -0.23557840287685394, -0.0867839902639389, 0.3703930377960205, 0.0902327448129654, 0.08650423586368561, 0.015978755429387093, -0.1843261420726776, 0.2618647515773773, 0.4455075263977051, 0.16880054771900177, -0.15923470258712769, 0.3196792006492615, -0.2923803925514221, 0.2545129954814911, -0.256664901971817, 0.20990347862243652, 0.24339057505130768, -0.40727531909942627, -0.058802857995033264, 0.36181581020355225, -0.08849970996379852, -0.04067652300000191, -0.4157056212425232, 0.4045048654079437, 0.03315166383981705, -0.09800489246845245, -0.19411392509937286, 0.14898546040058136, -0.002532190177589655, -0.0037401430308818817, -0.23199298977851868, -0.36003267765045166, -0.1549520045518875, 0.17795339226722717, -0.046947989612817764, -0.6635186076164246, 0.39362627267837524, 0.24169020354747772, -0.25065863132476807, -0.29575178027153015, 0.0310010127723217, 0.3259372115135193, -0.07665722072124481, -0.15614303946495056, 0.562516450881958, 0.019005604088306427, 0.054242394864559174, 0.4039357304573059, 0.31063753366470337, 0.2516609728336334, 0.25942522287368774, 0.42468807101249695, 0.10955935716629028, 0.11620792001485825, -0.06884198635816574, -0.11814984679222107, 0.3056880235671997, 0.17523075640201569, -0.018148839473724365, 0.05474971979856491, 0.018302123993635178, -0.044545941054821014, -0.07503437995910645, 0.025128968060016632, 0.22469614446163177, -0.3822152614593506, 0.22323498129844666, -0.42180901765823364, 0.0060765668749809265, -0.5255492329597473, -0.05437973141670227, -0.42800652980804443, 0.18536315858364105, 0.15159720182418823, -0.19089600443840027, 0.12465864419937134, 0.14259426295757294, -0.03179003298282623, -0.08106203377246857, 0.42777538299560547, 0.14297017455101013, 0.09181654453277588, -0.40125772356987, -0.3141832947731018, -0.7945432662963867, 0.05688123777508736, 0.005507778376340866, -0.061455126851797104, -0.1496354341506958, 0.16543489694595337, 0.10102260112762451, 0.08973165601491928, 0.22491061687469482, -0.06503395736217499, 0.32982319593429565, 0.1397445946931839, -0.29842209815979004, -0.08558124303817749, -0.32488399744033813, 0.41482269763946533, 0.016512319445610046, -0.22854368388652802, 0.18945631384849548, -0.10539932548999786, -0.21813395619392395, 0.039225876331329346, 0.17096716165542603, -0.20250844955444336, 0.1509215533733368, 0.28563910722732544, 0.165704607963562, 0.489808052778244, -0.12822897732257843, 0.24754053354263306, -0.14172232151031494, -0.19682830572128296, -0.2493055760860443, 0.1977231353521347, 0.11503727734088898, 0.08463778346776962, -0.298755407333374, -0.03406830132007599, -0.2689025402069092, -0.007600031793117523, 0.12704317271709442, -0.0366266667842865, -0.5054512023925781, -0.04062759131193161, -0.06492462754249573, -0.032527174800634384, 0.3478403091430664, 0.24313603341579437, -0.1366819441318512, -0.2651809751987457, -0.25776079297065735, -0.11995768547058105, 0.4722793698310852, -0.3240247070789337, -0.2557815909385681, 0.007959194481372833, 0.014079764485359192, 0.21669015288352966, -0.08293075114488602, -0.3772960305213928, 0.2402980774641037, 0.4359824061393738, -0.14233320951461792, -0.30845701694488525, 0.3090609312057495, -0.08165246248245239, 0.0661960244178772, 0.13079890608787537, 0.2658289670944214, 0.19712398946285248, -0.2938477098941803, 0.2108536809682846, -0.1770663857460022 ]
https://github.com/huggingface/datasets/issues/5649
Thanks for reporting, @lsb. We are investigating it. On the other hand, please note that in the next `datasets` release, the index will not be created by default (see #5583). If you would like to have it, you will need to explicitly pass `index=True`.
The index column created with .to_sql() is dependent on the batch_size when writing
### Describe the bug It seems like the "index" column is designed to be unique? The values are only unique per batch. The SQL index is not a unique index. This can be a problem, for instance, when building a faiss index on a dataset and then trying to match up ids with a sql export. ### Steps to reproduce the bug ``` from datasets import Dataset import sqlite3 db = sqlite3.connect(":memory:") nice_numbers = Dataset.from_dict({"nice_number": range(101,106)}) nice_numbers.to_sql("nice1", db, batch_size=1) nice_numbers.to_sql("nice2", db, batch_size=2) print(db.execute("select * from nice1").fetchall()) # [(0, 101), (0, 102), (0, 103), (0, 104), (0, 105)] print(db.execute("select * from nice2").fetchall()) # [(0, 101), (1, 102), (0, 103), (1, 104), (0, 105)] ``` ### Expected behavior I expected the "index" column to be unique ### Environment info ``` % datasets-cli env Copy-and-paste the text below in your GitHub issue. - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.9.6 - PyArrow version: 7.0.0 - Pandas version: 1.5.2 zsh: segmentation fault datasets-cli env ```
44
The index column created with .to_sql() is dependent on the batch_size when writing ### Describe the bug It seems like the "index" column is designed to be unique? The values are only unique per batch. The SQL index is not a unique index. This can be a problem, for instance, when building a faiss index on a dataset and then trying to match up ids with a sql export. ### Steps to reproduce the bug ``` from datasets import Dataset import sqlite3 db = sqlite3.connect(":memory:") nice_numbers = Dataset.from_dict({"nice_number": range(101,106)}) nice_numbers.to_sql("nice1", db, batch_size=1) nice_numbers.to_sql("nice2", db, batch_size=2) print(db.execute("select * from nice1").fetchall()) # [(0, 101), (0, 102), (0, 103), (0, 104), (0, 105)] print(db.execute("select * from nice2").fetchall()) # [(0, 101), (1, 102), (0, 103), (1, 104), (0, 105)] ``` ### Expected behavior I expected the "index" column to be unique ### Environment info ``` % datasets-cli env Copy-and-paste the text below in your GitHub issue. - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.9.6 - PyArrow version: 7.0.0 - Pandas version: 1.5.2 zsh: segmentation fault datasets-cli env ``` Thanks for reporting, @lsb. We are investigating it. On the other hand, please note that in the next `datasets` release, the index will not be created by default (see #5583). If you would like to have it, you will need to explicitly pass `index=True`.
[ -0.2862216830253601, -0.08455151319503784, -0.02660968154668808, 0.3410409092903137, 0.3915289044380188, 0.059063076972961426, 0.30723264813423157, 0.4419671297073364, -0.015411235392093658, 0.15386532247066498, 0.011585500091314316, 0.3245256543159485, 0.08520737290382385, -0.029157131910324097, -0.1383504420518875, -0.027757257223129272, 0.12533369660377502, 0.20289281010627747, 0.09582749754190445, -0.08552952855825424, -0.357383668422699, 0.05437016487121582, -0.13451701402664185, -0.011207200586795807, 0.004134651273488998, 0.19267599284648895, 0.008699841797351837, 0.10283470153808594, 0.004461308941245079, -0.33998024463653564, 0.12793105840682983, -0.29122382402420044, 0.3553292751312256, 0.4878397285938263, -0.00010898774053202942, -0.15231609344482422, 0.07118771970272064, -0.1394115686416626, -0.325729101896286, -0.20310035347938538, -0.31393975019454956, -0.2692548632621765, -0.12382076680660248, -0.47200095653533936, -0.019899703562259674, 0.18246141076087952, -0.23096291720867157, -0.19546301662921906, -0.11830046027898788, 0.29552552103996277, 0.273818701505661, 0.1363917738199234, -0.07531134784221649, -0.25247398018836975, 0.4738326966762543, 0.009545683860778809, -0.1919499933719635, 0.28903281688690186, 0.1597014218568802, 0.11426064372062683, 0.09253207594156265, 0.09207823872566223, 0.06554754823446274, 0.10026629269123077, -0.029035285115242004, 0.18058155477046967, 0.455238938331604, -0.12030061334371567, 0.04462457448244095, 0.1763571947813034, 0.3374010920524597, -0.283443808555603, -0.4733242094516754, -0.16347287595272064, -0.036208271980285645, -0.4868251085281372, -0.06623831391334534, 0.22608260810375214, 0.18016721308231354, 0.030119016766548157, 0.001760672777891159, 0.2327861785888672, -0.032186105847358704, -0.0394628569483757, -0.09711158275604248, 0.38779711723327637, -0.059814453125, -0.017959199845790863, 0.12267372757196426, -0.20571297407150269, 0.10434958338737488, 0.1084558516740799, -0.08432057499885559, 0.06718665361404419, -0.5264204144477844, -0.2492741346359253, 0.03693030774593353, -0.1901763677597046, -0.029989637434482574, -0.01532666478306055, -0.2626837193965912, 0.03524082899093628, 0.3232203722000122, -0.15500345826148987, 0.22118723392486572, 0.23916210234165192, 0.1197412982583046, 0.4021642208099365, 0.2249373495578766, 0.1163644790649414, -0.17105822265148163, 0.059655219316482544, 0.04970259219408035, -0.016021400690078735, 0.38221582770347595, -0.042859166860580444, 0.1396634429693222, 0.004413247108459473, -0.528539776802063, 0.33010250329971313, -0.14026184380054474, -0.03560800850391388, -0.0663493424654007, 0.41487884521484375, 0.010302271693944931, -0.22768720984458923, -0.27287906408309937, 0.21802730858325958, -0.3968481123447418, 0.16432656347751617, -0.2286374270915985, -0.1257089376449585, 0.03553728014230728, 0.06538571417331696, -0.11504363268613815, -0.27910298109054565, 0.18684980273246765, 0.3793577253818512, -0.32434895634651184, 0.08035053312778473, -0.1833331286907196, -0.23694466054439545, 0.1630994826555252, 0.14902108907699585, -0.018236644566059113, 0.39119818806648254, 0.2849392294883728, -0.21700212359428406, -0.1558983027935028, 0.23449793457984924, -0.0698293149471283, -0.36533719301223755, -0.3734774887561798, 0.21363891661167145, -0.06937289983034134, 0.04397854954004288, 0.33065658807754517, 0.16452562808990479, 0.30068469047546387, -0.04407523572444916, 0.23983152210712433, -0.3393796384334564, -0.2992471754550934, -0.2994117736816406, 0.15141744911670685, 0.4264523386955261, -0.251478910446167, 0.14393213391304016, 0.008427739143371582, 0.11327707767486572, 0.36283719539642334, 0.2671698033809662, -0.02533118426799774, 0.23730646073818207, -0.18985304236412048, -0.0622008815407753, 0.2247440367937088, -0.08852049708366394, -0.2701895833015442, 0.05766935646533966, -0.3214809000492096, -0.0626235157251358, 0.06241076439619064, 0.25534364581108093, 0.3632928133010864, -0.07893653213977814, 0.32420942187309265, 0.2197473645210266, -0.1346030831336975, 0.058597005903720856, -0.32712075114250183, 0.11247085779905319, -0.024651464074850082, -0.14278654754161835, -0.22839725017547607, 0.2440911829471588, 0.17835713922977448, -0.42707666754722595, 0.30871063470840454, -0.03217734768986702, 0.014910168945789337, 0.09712349623441696, 0.3810608983039856, 0.07190774381160736, 0.1110268160700798, -0.1527206152677536, -0.14491018652915955, 0.28216221928596497, 0.11939577013254166, -0.14708900451660156, -0.08351054787635803, -0.195181742310524, -0.17944452166557312, 0.1402534395456314, -0.06080855056643486, -0.004298011772334576, 0.05128606781363487, -0.13423477113246918, 0.23141968250274658, -0.10917680710554123, -0.06687123328447342, 0.059619128704071045, -0.06807513535022736, -0.16657909750938416, -0.15781059861183167, 0.0605403408408165, -0.11206730455160141, -0.24224144220352173, 0.13745403289794922, 0.24519923329353333, 0.3621518313884735, -0.0013931244611740112, -0.16451996564865112, 0.21897262334823608, 0.07117748260498047, -0.20760208368301392, 0.07453475892543793, -0.13903780281543732, -0.19849693775177002, 0.22403906285762787, 0.3160025477409363, -0.1984868049621582, 0.25498104095458984, 0.02527649700641632, 0.007790848147124052, 0.5210498571395874, -0.25932788848876953, 0.1740230917930603, 0.02638796716928482, -0.23136481642723083, 0.3286750316619873, -0.09960370510816574, 0.2587200403213501, -0.47947007417678833, 0.010612786747515202, 0.18646851181983948, -0.4035605788230896, 0.20224502682685852, -0.6103895902633667, 0.36214491724967957, 0.12702253460884094, -0.1000741645693779, 0.06397875398397446, 0.04659183323383331, 0.01185707189142704, -0.08290067315101624, -0.11532704532146454, 0.05735550820827484, 0.478018581867218, 0.11880818009376526, 0.10036186873912811, -0.1879531890153885, 0.030091233551502228, -0.23180004954338074, 0.15513572096824646, -0.15932591259479523, -0.0157088041305542, 0.19232600927352905, 0.12070004642009735, -0.21190276741981506, -0.012503810226917267, 0.1551285684108734, -0.00805738940834999, 0.2520767152309418, -0.42740869522094727, 0.21395504474639893, 0.011921621859073639, -0.27975916862487793, -0.20989485085010529, -0.43510323762893677, 0.055111080408096313, -0.27703234553337097, 0.08667944371700287, 0.23726892471313477, -0.07379467040300369, 0.1445196270942688, -0.39199191331863403, 0.1284361332654953, 0.14617258310317993, -0.36953067779541016, 0.014899283647537231, -0.20600566267967224, -0.44185513257980347, 0.03557854890823364, -0.13126914203166962, 0.20638874173164368, 0.017371319234371185, -0.003847215324640274, 0.03154058754444122, -0.5967079401016235, -0.05509952828288078, -0.172044038772583, -0.3340926170349121, 0.5337531566619873, 0.08584916591644287, 0.035065360367298126, 0.0053533464670181274, -0.1430160403251648, 0.25465670228004456, -0.09606923162937164, -0.09486649930477142, 0.26013290882110596, -0.05876702442765236, -0.19918903708457947, 0.011225953698158264, -0.23143720626831055, -0.10198422521352768, -0.3833819031715393, -0.010864481329917908, -0.007634349167346954, 0.21859200298786163, 0.007896747440099716, -0.012955859303474426, -0.22915980219841003, -0.12968893349170685, -0.1482372283935547, -0.34180670976638794, -0.05979876592755318, 0.5465497970581055, -0.17478042840957642, -0.36535751819610596, -0.22986961901187897, -0.17682860791683197, -0.031626857817173004, -0.07107827067375183, -0.20463788509368896, 0.3497117757797241, -0.3510430157184601, 0.3138311803340912, 0.02593975141644478, 0.30909594893455505, 0.11588101089000702, -0.1567353904247284, -0.09648226946592331, -0.1828039288520813, -0.3455669581890106, 0.07011644542217255, 0.39084392786026, 0.05638676509261131, -0.2059078812599182, 0.4436343014240265, -0.31818610429763794, 0.6575904488563538, 0.26475268602371216, -0.2820873558521271, 0.4936460256576538, -0.10870825499296188, 0.4084389805793762, -0.027788814157247543, -0.3522159457206726, -0.16180375218391418, 0.029393121600151062, -0.27841269969940186, 0.3846583664417267, -0.13335970044136047, -0.18793894350528717, 0.23573414981365204, 0.16513879597187042, -0.22865132987499237, -0.1761048436164856, 0.055257342755794525, 0.07173918187618256, -0.04655463248491287, -0.03204067796468735, 0.1719239354133606, -0.3076723515987396, -0.07476362586021423, 0.18074534833431244, -0.2302071899175644, -0.03523949161171913, -0.07832992076873779, -0.06137855350971222, -0.14298859238624573, -0.22456589341163635, 0.1620408296585083, 0.19925354421138763, 0.47669973969459534, 0.1751869022846222, -0.3474464416503906, 0.13372410833835602, 0.22549502551555634, 0.8520168662071228, -0.16699622571468353, 0.025261711329221725, 0.28748658299446106, 0.07628840953111649, -0.44637155532836914, -0.15640410780906677, -0.02918349951505661, 0.44495049118995667, 0.33586373925209045, 0.2856349050998688, -0.24347415566444397, 0.054317716509103775, 0.32294633984565735, 0.23836690187454224, -0.24673780798912048, -0.4003772735595703, -0.26819664239883423, 0.013161584734916687, 0.23392152786254883, 0.24476876854896545, -0.02511752024292946, 0.23505394160747528, 0.015096727758646011, -0.05829261243343353, -0.15187090635299683, -0.1191619411110878, -0.049511998891830444, 0.16213810443878174, 0.16563086211681366, -0.05351213365793228, 0.5833424925804138, -0.07360327243804932, -0.42577072978019714, 0.39288297295570374, 0.6754801273345947, -0.31290391087532043, -0.1282341480255127, 0.021161958575248718, -0.03908791393041611, 0.1343417763710022, 0.3552273213863373, 0.18414711952209473, 0.13534794747829437, -0.15270768105983734, 0.181719571352005, -0.13451948761940002, -0.560860276222229, 0.12963594496250153, 0.02738485112786293, -0.3826432228088379, -0.3329867720603943, 0.2936456799507141, -0.09376173466444016, -0.06247023493051529, -0.030329056084156036, 0.182305246591568, -0.08559572696685791, 0.4641936421394348, 0.024607431143522263, 0.7870786190032959, -0.04882021248340607, 0.057801295071840286, 0.008905360475182533, 0.01937524974346161, 0.2534947693347931, 0.22548416256904602, 0.26297539472579956, -0.706335186958313, -0.4368658661842346, 0.15922212600708008, -0.1703433394432068, -0.19344517588615417, -0.23560602962970734, -0.005715519189834595, 0.18481025099754333, -0.5113876461982727, 0.09386461973190308, -0.20982342958450317, 0.12613488733768463, -0.14265961945056915, -0.029286449775099754, -0.06704717874526978, 0.08869236707687378, 0.3328228294849396, 0.04797222837805748, -0.005140911787748337, -0.1621803492307663, -0.3715985417366028, 0.07815009355545044, -0.11232209950685501, 0.0861739069223404, -0.0841110572218895, 0.23487575352191925, 0.04513698071241379, -0.2501540184020996, -0.06851038336753845, 0.006590067408978939, 0.3373866081237793, -0.07905586063861847, -0.08287835121154785, 0.07223258167505264, 0.5635616779327393, 0.26722586154937744, 0.27994197607040405, -0.18009978532791138, 0.503707230091095, 0.15041688084602356, -0.15714311599731445, 0.07324797660112381, 0.23007121682167053, 0.01058320701122284, -0.16552859544754028, 0.0936104953289032, -0.3603689670562744, -0.5473729968070984, -0.31353986263275146, -0.18307936191558838, 0.3236899971961975, -0.2530612051486969, 0.14209628105163574, 0.01735292561352253, 0.11008818447589874, 0.37204334139823914, -0.27492979168891907, -0.42825907468795776, -0.20694340765476227, 0.3787362575531006, 0.09450298547744751, 0.3536432981491089, -0.06976375728845596, 0.1434466540813446, -0.36720579862594604, -0.11367178708314896, 0.08594086766242981, 0.1055879294872284, -0.13932204246520996, 0.2464941143989563, -0.14004571735858917, 0.2763610780239105, 0.20767375826835632, 0.18830418586730957, 0.027989011257886887, -0.13270223140716553, -0.25581806898117065, -0.05678713321685791, 0.04026321321725845, 0.01371801644563675, 0.2024451345205307, 0.2218676209449768, -0.13833025097846985, -0.36306172609329224, -0.18164712190628052, 0.10354553908109665, -0.3454657793045044, -0.10342508554458618, -0.12318454682826996, 0.24342504143714905, -0.2527909278869629, 0.09007164090871811, 0.0055020712316036224, -0.17778822779655457, 0.194370299577713, -0.019527524709701538, -0.1855713576078415, -0.2843427360057831, -0.05671560764312744, 0.09207604080438614, 0.20102554559707642, 0.07371644675731659, -0.25731104612350464, -0.26643919944763184, 0.006345584988594055, -0.4314586818218231, 0.19365504384040833, 0.43527981638908386, -0.10847526788711548, -0.041770853102207184, 0.44621542096138, 0.02328709326684475, 0.2640802562236786, 0.14463117718696594, -0.21511782705783844, 0.0804794505238533, 0.04192861169576645, 0.25314000248908997, -0.1710675060749054, -0.04184570163488388, -0.12222538888454437, 0.03212064877152443, -0.11922263354063034, -0.0003674207255244255, 0.06846709549427032, -0.23858369886875153, -0.25125735998153687, 0.44096171855926514, 0.30889827013015747, 0.5102299451828003, -0.09705552458763123, -0.29620975255966187, 0.0697876363992691, 0.23196853697299957, -0.287731409072876, -0.1582130789756775, -0.3603232204914093, -0.10787983983755112, 0.005440637469291687, 0.44338661432266235, 0.17142343521118164, -0.18352870643138885, -0.5275991559028625, -0.021487075835466385, 0.44380074739456177, 0.1986912488937378, -0.08454090356826782, 0.28944259881973267, 0.22403958439826965, 0.016018081456422806, 0.5662548542022705, 0.11208485066890717, 0.2564055025577545, 0.4426365792751312, 0.1701894849538803, 0.37693294882774353, 0.505912721157074, -0.05988716706633568, -0.010349210351705551, -0.10880756378173828, 0.37833985686302185, -0.05887676775455475, -0.04705660790205002, -0.27136826515197754, 0.2725520730018616, -0.07714270800352097, -0.20676395297050476, 0.09289886057376862, -0.06773953884840012, -0.04765677824616432, -0.26722991466522217, -0.1182110607624054, -0.04719974100589752, -0.20995661616325378, 0.32439982891082764, -0.18684661388397217, -0.045125607401132584, -0.08657422661781311, 0.13757966458797455, 0.05465223640203476, 0.0009914189577102661, -0.38683974742889404, 0.03379599004983902, 0.03284516930580139, 0.1362892985343933, -0.2623268961906433, -0.05992051213979721, 0.12832492589950562, -0.16024154424667358, -0.016051512211561203, 0.2495150864124298, 0.5709811449050903, 0.3212359547615051, -0.07216458022594452, -0.0005700923502445221, 0.04416003078222275, -0.14855191111564636, 0.05169674754142761, 0.11140286922454834, -0.21789200603961945, 0.2666836977005005, 0.06431140005588531, 0.21564751863479614, -0.11453770846128464, 0.016669699922204018, 0.29792797565460205, 0.143641859292984, -0.05729144439101219, 0.2974209487438202, -0.04003708437085152, -0.020041830837726593, 0.05380883812904358, 0.20353470742702484, -0.02313094586133957, -0.02741948328912258, 0.25944894552230835, -0.09341977536678314, 0.11086142808198929, 0.1461641490459442, 0.10374820232391357, 0.15343186259269714, 0.04183823615312576, -0.07092390954494476, 0.09014279395341873, -0.35749906301498413, 0.4524974822998047, -0.2767721116542816, 0.14454320073127747, -0.20169170200824738, 0.19561341404914856, 0.15229271352291107, 0.3977125883102417, -0.13966049253940582, -0.0987626165151596, 0.22080914676189423, 0.33191052079200745, -0.14645788073539734, 0.5584407448768616, -0.118819460272789, -0.06977226585149765, -0.461971253156662, -0.04850728064775467, -0.10390259325504303, -0.30803555250167847, 0.31690916419029236, -0.638902485370636, 0.09719078242778778, -0.16379213333129883, -0.02000950276851654, 0.5179836750030518, 0.08634089678525925, 0.47449374198913574, -0.05413168668746948, 0.12696297466754913, 0.0013152733445167542, 0.11125589162111282, -0.2356126755475998, -0.1856861710548401, -0.1777745634317398, 0.19450601935386658, 0.011183084920048714, 0.022135861217975616, -0.08288440853357315, -0.2993488311767578, -0.2033376395702362, 0.2859695255756378, 0.008348897099494934, 0.27339571714401245, 0.22278690338134766, 0.1131654754281044, -0.19035440683364868, 0.007511075586080551, 0.13402222096920013, -0.049856625497341156, 0.05907408893108368, 0.6235132217407227, -0.04399251937866211, -0.5488548874855042, 0.3619205355644226, -0.4732975959777832, -0.16420844197273254, -0.3487755358219147, 0.37021082639694214, 0.27907562255859375, -0.005537021905183792, -0.30024129152297974, 0.05697387456893921, 0.38336384296417236, -0.07655495405197144, -0.13089290261268616, 0.10361440479755402, -0.1811891496181488, 0.2628011703491211, -0.06547766178846359, 0.22994935512542725, 0.031195983290672302, -0.29323965311050415, 0.0902586579322815, -0.1830030083656311 ]
https://github.com/huggingface/datasets/issues/5649
I think this is low enough priority for me to close this as Won't Fix. If I need any primary keys I can generate them beforehand. Feel free to reopen.
The index column created with .to_sql() is dependent on the batch_size when writing
### Describe the bug It seems like the "index" column is designed to be unique? The values are only unique per batch. The SQL index is not a unique index. This can be a problem, for instance, when building a faiss index on a dataset and then trying to match up ids with a sql export. ### Steps to reproduce the bug ``` from datasets import Dataset import sqlite3 db = sqlite3.connect(":memory:") nice_numbers = Dataset.from_dict({"nice_number": range(101,106)}) nice_numbers.to_sql("nice1", db, batch_size=1) nice_numbers.to_sql("nice2", db, batch_size=2) print(db.execute("select * from nice1").fetchall()) # [(0, 101), (0, 102), (0, 103), (0, 104), (0, 105)] print(db.execute("select * from nice2").fetchall()) # [(0, 101), (1, 102), (0, 103), (1, 104), (0, 105)] ``` ### Expected behavior I expected the "index" column to be unique ### Environment info ``` % datasets-cli env Copy-and-paste the text below in your GitHub issue. - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.9.6 - PyArrow version: 7.0.0 - Pandas version: 1.5.2 zsh: segmentation fault datasets-cli env ```
30
The index column created with .to_sql() is dependent on the batch_size when writing ### Describe the bug It seems like the "index" column is designed to be unique? The values are only unique per batch. The SQL index is not a unique index. This can be a problem, for instance, when building a faiss index on a dataset and then trying to match up ids with a sql export. ### Steps to reproduce the bug ``` from datasets import Dataset import sqlite3 db = sqlite3.connect(":memory:") nice_numbers = Dataset.from_dict({"nice_number": range(101,106)}) nice_numbers.to_sql("nice1", db, batch_size=1) nice_numbers.to_sql("nice2", db, batch_size=2) print(db.execute("select * from nice1").fetchall()) # [(0, 101), (0, 102), (0, 103), (0, 104), (0, 105)] print(db.execute("select * from nice2").fetchall()) # [(0, 101), (1, 102), (0, 103), (1, 104), (0, 105)] ``` ### Expected behavior I expected the "index" column to be unique ### Environment info ``` % datasets-cli env Copy-and-paste the text below in your GitHub issue. - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.9.6 - PyArrow version: 7.0.0 - Pandas version: 1.5.2 zsh: segmentation fault datasets-cli env ``` I think this is low enough priority for me to close this as Won't Fix. If I need any primary keys I can generate them beforehand. Feel free to reopen.
[ -0.2679179310798645, -0.1152128130197525, -0.032382138073444366, 0.3754948675632477, 0.40459734201431274, 0.08464750647544861, 0.2297217845916748, 0.4034213721752167, -0.04618823155760765, 0.09117115288972855, 0.042444564402103424, 0.2967216670513153, 0.07418182492256165, 0.03034628927707672, -0.1479056179523468, -0.029482465237379074, 0.11774086952209473, 0.17753323912620544, 0.13315054774284363, -0.08481590449810028, -0.3513953685760498, 0.07010874152183533, -0.17003880441188812, -0.02553572505712509, 0.008970852941274643, 0.18596121668815613, -0.005569420754909515, 0.1329173594713211, -0.0009984783828258514, -0.2936655580997467, 0.11085978895425797, -0.24490854144096375, 0.3343958258628845, 0.45054349303245544, -0.0001093915561796166, -0.18010520935058594, 0.0510997474193573, -0.16514289379119873, -0.2946249544620514, -0.15805602073669434, -0.32619166374206543, -0.2462502121925354, -0.1418132781982422, -0.5095540285110474, -0.029117994010448456, 0.15591216087341309, -0.26514753699302673, -0.1890903115272522, -0.047054991126060486, 0.2788931131362915, 0.2800047695636749, 0.12483523041009903, -0.05240896716713905, -0.2601296007633209, 0.4625606834888458, 0.013924401253461838, -0.18969827890396118, 0.2656683027744293, 0.16388104856014252, 0.09088095277547836, 0.13714788854122162, 0.12461233884096146, 0.04608578234910965, 0.06899701058864594, 0.01980353146791458, 0.15911716222763062, 0.45832884311676025, -0.15012526512145996, 0.11697471886873245, 0.19034834206104279, 0.31907761096954346, -0.2781203091144562, -0.46040770411491394, -0.18737435340881348, -0.046235814690589905, -0.44869306683540344, -0.06940296292304993, 0.2562648355960846, 0.159873366355896, 0.033035796135663986, -0.002614051103591919, 0.21816131472587585, -0.03416605293750763, -0.025759737938642502, -0.11480163037776947, 0.33691516518592834, -0.04564850032329559, -0.01198483631014824, 0.140906423330307, -0.20573043823242188, 0.07310691475868225, 0.12784920632839203, -0.09225864708423615, 0.016347121447324753, -0.5147506594657898, -0.25963014364242554, 0.051573168486356735, -0.10713862627744675, -0.022291310131549835, -0.06033991277217865, -0.24519644677639008, 0.05949166789650917, 0.3126753270626068, -0.19299837946891785, 0.2851145267486572, 0.2651975154876709, 0.12198179215192795, 0.45877575874328613, 0.21391497552394867, 0.1374697983264923, -0.22534465789794922, 0.07180126011371613, 0.0503087043762207, -0.04663730785250664, 0.3801739811897278, 0.012487716972827911, 0.15682727098464966, -0.019301608204841614, -0.5070279240608215, 0.385883092880249, -0.09867683798074722, 0.007362991571426392, -0.06812681257724762, 0.4572352170944214, 0.02230672538280487, -0.19379913806915283, -0.2199110984802246, 0.23252877593040466, -0.3752698302268982, 0.14965996146202087, -0.20739483833312988, -0.12187795341014862, 0.02856495976448059, 0.00923961028456688, -0.1682107150554657, -0.25821053981781006, 0.2094634473323822, 0.3753381669521332, -0.28587639331817627, 0.09072211384773254, -0.21742817759513855, -0.22144277393817902, 0.12938907742500305, 0.16071060299873352, -0.03268035873770714, 0.4030650854110718, 0.29076889157295227, -0.22358301281929016, -0.1544940024614334, 0.18594905734062195, -0.05191460996866226, -0.31011950969696045, -0.3745236098766327, 0.21070237457752228, -0.12367796897888184, 0.029002796858549118, 0.3217172920703888, 0.13332481682300568, 0.305326908826828, -0.03939749300479889, 0.2444559931755066, -0.37308627367019653, -0.2711750268936157, -0.36127591133117676, 0.1424621045589447, 0.4263780117034912, -0.26830947399139404, 0.16105486452579498, 0.012988600879907608, 0.10908981412649155, 0.38827699422836304, 0.2896704375743866, -0.009296901524066925, 0.2510129511356354, -0.1437312364578247, -0.06758147478103638, 0.19107934832572937, -0.1228436604142189, -0.33683812618255615, 0.06912702322006226, -0.3144773840904236, -0.05239884555339813, 0.06789559870958328, 0.2392187863588333, 0.3665545582771301, -0.07938110828399658, 0.37676042318344116, 0.2315363734960556, -0.15823747217655182, 0.06479866802692413, -0.34686732292175293, 0.06811459362506866, -0.07550550997257233, -0.1320638358592987, -0.18643039464950562, 0.23139962553977966, 0.13757917284965515, -0.3781927227973938, 0.31714752316474915, -0.049176979809999466, 0.006690554320812225, 0.09636695683002472, 0.3626375198364258, 0.0679120123386383, 0.12579238414764404, -0.12785528600215912, -0.15190237760543823, 0.3010878562927246, 0.1033100113272667, -0.15288078784942627, -0.16440175473690033, -0.22631016373634338, -0.17460276186466217, 0.15265676379203796, -0.07415546476840973, 0.023416072130203247, 0.07016865909099579, -0.13318997621536255, 0.2232097089290619, -0.12551569938659668, -0.045464888215065, 0.0274724829941988, -0.03110126033425331, -0.1938343644142151, -0.14091546833515167, 0.01666511595249176, -0.1573953628540039, -0.2172132283449173, 0.1564658135175705, 0.2697422504425049, 0.38750556111335754, 0.008155878633260727, -0.13367187976837158, 0.20092321932315826, 0.0180957093834877, -0.18145613372325897, 0.05342962592840195, -0.05125725269317627, -0.20451562106609344, 0.264024555683136, 0.2905372679233551, -0.18525275588035583, 0.2291109263896942, 0.016396567225456238, 0.008065061643719673, 0.5605269074440002, -0.2653552293777466, 0.16246752440929413, 0.011550664901733398, -0.18016675114631653, 0.3190881609916687, -0.1495894193649292, 0.2619985044002533, -0.48108041286468506, 0.08079861104488373, 0.1652047038078308, -0.4424206018447876, 0.17393574118614197, -0.616561770439148, 0.4173000752925873, 0.16453638672828674, -0.0793445035815239, 0.09474506974220276, 0.0008269329555332661, -0.01073424145579338, -0.026773564517498016, -0.08275395631790161, 0.11920704692602158, 0.4673542380332947, 0.11547170579433441, 0.09565828740596771, -0.1550903022289276, 0.04344562068581581, -0.2123144119977951, 0.1758485585451126, -0.1831478625535965, -0.06497573107481003, 0.16812260448932648, 0.11350364983081818, -0.21251180768013, 0.0028470829129219055, 0.202557772397995, -0.0024019740521907806, 0.2729586362838745, -0.47468793392181396, 0.23277658224105835, -0.03774897754192352, -0.2629687190055847, -0.18431732058525085, -0.42745131254196167, 0.11249770224094391, -0.2950364351272583, 0.12020254880189896, 0.21087954938411713, -0.10834874212741852, 0.09255374222993851, -0.41179323196411133, 0.12203964591026306, 0.13334867358207703, -0.38952407240867615, 0.009561412036418915, -0.25124356150627136, -0.43210798501968384, 0.035030435770750046, -0.026102999225258827, 0.19035913050174713, 0.05448918044567108, -0.04576069861650467, -0.012538071721792221, -0.5833927392959595, -0.08711735159158707, -0.16351769864559174, -0.3617459535598755, 0.5279023051261902, 0.1351306140422821, 0.08514048904180527, 0.010469608008861542, -0.1644374579191208, 0.3006659150123596, -0.07497081905603409, -0.08164198696613312, 0.25479841232299805, -0.004229649901390076, -0.23705023527145386, -0.020403049886226654, -0.21337324380874634, -0.09084261953830719, -0.39314624667167664, 0.002070339396595955, -0.017227090895175934, 0.23766988515853882, 0.028828874230384827, 0.0032351911067962646, -0.2407921403646469, -0.1305202692747116, -0.1267143338918686, -0.34919747710227966, -0.034166641533374786, 0.5315600633621216, -0.13540682196617126, -0.42179518938064575, -0.21947389841079712, -0.16251873970031738, -0.015545216389000416, -0.08258291333913803, -0.22556474804878235, 0.3057953417301178, -0.3457501530647278, 0.32850345969200134, -0.0035093757323920727, 0.31593939661979675, 0.09434393793344498, -0.15618574619293213, -0.0998891144990921, -0.19083847105503082, -0.2925361096858978, 0.03195945918560028, 0.35863831639289856, 0.09609957039356232, -0.21168075501918793, 0.4398456811904907, -0.3118395209312439, 0.6896981596946716, 0.24911721050739288, -0.2877611815929413, 0.47953981161117554, -0.11714445799589157, 0.35729995369911194, 0.002133779227733612, -0.40134862065315247, -0.2022274285554886, -0.017773032188415527, -0.2741158604621887, 0.4074988067150116, -0.1570606231689453, -0.17824073135852814, 0.22015251219272614, 0.1722213327884674, -0.28019461035728455, -0.20463639497756958, 0.07906694710254669, 0.06004581227898598, -0.0479423925280571, -0.04855857789516449, 0.1983536034822464, -0.31110090017318726, -0.04104797542095184, 0.1736111044883728, -0.23535358905792236, -0.0872328132390976, -0.097596675157547, -0.06036057695746422, -0.1767713874578476, -0.23015746474266052, 0.2275000810623169, 0.1317608654499054, 0.4651324152946472, 0.15100736916065216, -0.3389943242073059, 0.10595598816871643, 0.19279855489730835, 0.8856852650642395, -0.20976321399211884, 0.03443009406328201, 0.2810606360435486, 0.06120932847261429, -0.4418957233428955, -0.18866008520126343, -0.027106232941150665, 0.4798891246318817, 0.3980969190597534, 0.2720690667629242, -0.25097641348838806, 0.03996449336409569, 0.29867735505104065, 0.22752903401851654, -0.24684175848960876, -0.3740677833557129, -0.2800808846950531, -0.015134640038013458, 0.18355587124824524, 0.2508452534675598, 0.015825465321540833, 0.2088797241449356, 0.012506701052188873, 0.015420950949192047, -0.16579526662826538, -0.09594587236642838, -0.04528525099158287, 0.19170136749744415, 0.1724584847688675, -0.015647776424884796, 0.5473632216453552, -0.07725588977336884, -0.4167594909667969, 0.38988354802131653, 0.7120329737663269, -0.24966736137866974, -0.14410997927188873, -0.01499092485755682, -0.016860783100128174, 0.08458387851715088, 0.37865838408470154, 0.16657593846321106, 0.14536865055561066, -0.14283998310565948, 0.19291390478610992, -0.09184099733829498, -0.534376323223114, 0.15679404139518738, 0.03338848054409027, -0.3934735059738159, -0.32316893339157104, 0.309463769197464, -0.0960252583026886, -0.08521920442581177, -0.08067968487739563, 0.20216166973114014, -0.1156349703669548, 0.48872214555740356, 0.02311336062848568, 0.8370453119277954, -0.03573737293481827, 0.05610057711601257, -0.06937973201274872, -0.04716813936829567, 0.2639189660549164, 0.2476758360862732, 0.20909693837165833, -0.697112500667572, -0.4065645933151245, 0.14856573939323425, -0.17216312885284424, -0.21579015254974365, -0.2451869398355484, -0.06554016470909119, 0.2051400989294052, -0.5214782357215881, 0.09890410304069519, -0.16926541924476624, 0.12667155265808105, -0.1195346862077713, 0.0038305558264255524, -0.06849941611289978, 0.07965932041406631, 0.362605482339859, 0.05935967341065407, -0.021258633583784103, -0.21976789832115173, -0.3837612271308899, 0.039637744426727295, -0.15580126643180847, 0.08626486361026764, -0.16070248186588287, 0.19816972315311432, 0.01136181503534317, -0.25105077028274536, -0.0062150657176971436, 0.02788597159087658, 0.3596266508102417, -0.0272173173725605, -0.1269926279783249, 0.042924486100673676, 0.5889376401901245, 0.2525321841239929, 0.295139878988266, -0.1743871122598648, 0.4674559235572815, 0.1402706354856491, -0.16892631351947784, 0.06284745037555695, 0.23284445703029633, 0.01633165031671524, -0.18299977481365204, 0.12100374698638916, -0.3686581254005432, -0.543938159942627, -0.3255806565284729, -0.2073901742696762, 0.30818936228752136, -0.270750492811203, 0.13677939772605896, 0.0048966482281684875, 0.13125911355018616, 0.40053731203079224, -0.29926639795303345, -0.39285698533058167, -0.17465092241764069, 0.3695017397403717, 0.11412707716226578, 0.3607714772224426, -0.041404567658901215, 0.14908258616924286, -0.3105488419532776, -0.12098107486963272, 0.09316915273666382, 0.08888594806194305, -0.11643300205469131, 0.25074535608291626, -0.13016656041145325, 0.20716409385204315, 0.18243232369422913, 0.25018221139907837, 0.068878173828125, -0.13771921396255493, -0.23828288912773132, -0.05398617312312126, -0.004246663302183151, 0.029342282563447952, 0.18274755775928497, 0.2373420000076294, -0.14832773804664612, -0.3330036401748657, -0.194154754281044, 0.13965678215026855, -0.3542225956916809, -0.0803019180893898, -0.17846572399139404, 0.21363753080368042, -0.22770759463310242, 0.08803565800189972, 0.002668321132659912, -0.18236006796360016, 0.18277402222156525, 0.0024863900616765022, -0.20102590322494507, -0.28865984082221985, -0.0032233446836471558, 0.10960698872804642, 0.17998988926410675, 0.10613936185836792, -0.21435445547103882, -0.2683926224708557, 0.05722545459866524, -0.38324761390686035, 0.2201543003320694, 0.4371216893196106, -0.07023124396800995, -0.017344068735837936, 0.42875003814697266, 0.05500006675720215, 0.2529780864715576, 0.13036149740219116, -0.23028650879859924, 0.07097096741199493, 0.0431499183177948, 0.27281543612480164, -0.13452041149139404, -0.04911284148693085, -0.12801335752010345, 0.027319682762026787, -0.10841886699199677, 0.00954902172088623, 0.10701356828212738, -0.2146710455417633, -0.25070810317993164, 0.5123447775840759, 0.3032352030277252, 0.500779926776886, -0.11094978451728821, -0.2283957600593567, 0.03488684445619583, 0.22750680148601532, -0.30273762345314026, -0.19230987131595612, -0.3664970099925995, -0.11283226311206818, -0.0015983805060386658, 0.4528248906135559, 0.2175634205341339, -0.20659683644771576, -0.5086878538131714, -0.01728517934679985, 0.4661106467247009, 0.2179417461156845, -0.05279036983847618, 0.3189135193824768, 0.2085382342338562, -0.006083335727453232, 0.5460282564163208, 0.08844323456287384, 0.1921015977859497, 0.42684081196784973, 0.13748641312122345, 0.3322088122367859, 0.5037498474121094, -0.08158975839614868, 0.03018452413380146, -0.10378855466842651, 0.41468900442123413, -0.044927164912223816, -0.014801058918237686, -0.23419269919395447, 0.23484094440937042, -0.05229207128286362, -0.1854398399591446, 0.092815101146698, -0.08046187460422516, -0.03898165747523308, -0.2792407274246216, -0.12732645869255066, -0.09612191468477249, -0.24686506390571594, 0.2933478355407715, -0.18276238441467285, -0.07461637258529663, -0.10292385518550873, 0.16716307401657104, 0.06979948282241821, -0.011678960174322128, -0.38534945249557495, 0.06019851565361023, 0.03381772339344025, 0.15816932916641235, -0.3535470962524414, -0.09791649132966995, 0.170061394572258, -0.15949667990207672, 0.010350557044148445, 0.26552271842956543, 0.623689591884613, 0.340008020401001, -0.10958732664585114, -0.005373008549213409, 0.08384598791599274, -0.13970790803432465, 0.03968646004796028, 0.1006457731127739, -0.1695956289768219, 0.30546557903289795, 0.061832986772060394, 0.21052420139312744, -0.12696215510368347, 0.01636655069887638, 0.27401357889175415, 0.08086717128753662, -0.04920468106865883, 0.2732703685760498, -0.07438252121210098, -0.04035869240760803, 0.06804491579532623, 0.19993647933006287, -0.03844338655471802, -0.06906946003437042, 0.21746988594532013, -0.06189319118857384, 0.13522124290466309, 0.1329880654811859, 0.108799047768116, 0.1371058225631714, 0.108476921916008, -0.057566069066524506, 0.10774067044258118, -0.40371081233024597, 0.44147202372550964, -0.28431475162506104, 0.15923598408699036, -0.20150542259216309, 0.12481231987476349, 0.16157546639442444, 0.4469769597053528, -0.07865893095731735, -0.08974326401948929, 0.20073188841342926, 0.29350578784942627, -0.18932081758975983, 0.6118720769882202, -0.14641518890857697, -0.03710125759243965, -0.39654189348220825, -0.07429835945367813, -0.06314323097467422, -0.3445415198802948, 0.3420203924179077, -0.6151241660118103, 0.10616298764944077, -0.15124677121639252, -0.026395075023174286, 0.5133118033409119, 0.03661179170012474, 0.4845355153083801, -0.041495729237794876, 0.1963348090648651, -0.004978857934474945, 0.08358260244131088, -0.25848233699798584, -0.1761508733034134, -0.20791950821876526, 0.1852021962404251, 0.041729047894477844, 0.028132766485214233, -0.06306549906730652, -0.2942764163017273, -0.22079524397850037, 0.23674067854881287, 0.025701969861984253, 0.2638668417930603, 0.20452196896076202, 0.12488601356744766, -0.1505453884601593, 0.023915335536003113, 0.10238838195800781, -0.017991017550230026, 0.020387521013617516, 0.6056243777275085, -0.11847475916147232, -0.583088755607605, 0.3940623700618744, -0.46817004680633545, -0.1780475378036499, -0.29067564010620117, 0.3811759650707245, 0.22143428027629852, -0.003825884312391281, -0.2945241928100586, 0.04227001965045929, 0.35759270191192627, -0.068930983543396, -0.15840327739715576, 0.12001174688339233, -0.1551271229982376, 0.24460484087467194, -0.06379098445177078, 0.2186870574951172, -0.0031294533982872963, -0.313195139169693, 0.08012737333774567, -0.23670384287834167 ]
https://github.com/huggingface/datasets/issues/5648
Thanks for reporting! This can be fixed by setting the format to `arrow` in `flatten_indices` and restoring the original format after the flattening. I'm working on a PR that reduces the number of the `flatten_indices` calls in our codebase and makes `flatten_indices` a no-op when a dataset does not have an indices mapping, so I'll incorporate the fix in that PR.
flatten_indices doesn't work with pandas format
### Describe the bug Hi, I noticed that `flatten_indices` throws an error when the batch format is `pandas`. This is probably due to the fact that flatten_indices uses map internally which doesn't accept dataframes as the transformation function output ### Steps to reproduce the bug tabular_data = pd.DataFrame(np.random.randn(10,10)) tabular_data = datasets.arrow_dataset.Dataset.from_pandas(tabular_data) tabular_data.with_format("pandas").select([0,1,2,3]).flatten_indices() ### Expected behavior No error thrown ### Environment info - `datasets` version: 2.10.1 - Python version: 3.9.5 - PyArrow version: 11.0.0 - Pandas version: 1.4.1
61
flatten_indices doesn't work with pandas format ### Describe the bug Hi, I noticed that `flatten_indices` throws an error when the batch format is `pandas`. This is probably due to the fact that flatten_indices uses map internally which doesn't accept dataframes as the transformation function output ### Steps to reproduce the bug tabular_data = pd.DataFrame(np.random.randn(10,10)) tabular_data = datasets.arrow_dataset.Dataset.from_pandas(tabular_data) tabular_data.with_format("pandas").select([0,1,2,3]).flatten_indices() ### Expected behavior No error thrown ### Environment info - `datasets` version: 2.10.1 - Python version: 3.9.5 - PyArrow version: 11.0.0 - Pandas version: 1.4.1 Thanks for reporting! This can be fixed by setting the format to `arrow` in `flatten_indices` and restoring the original format after the flattening. I'm working on a PR that reduces the number of the `flatten_indices` calls in our codebase and makes `flatten_indices` a no-op when a dataset does not have an indices mapping, so I'll incorporate the fix in that PR.
[ -0.2358522117137909, -0.08239821344614029, 0.02193259447813034, 0.14778552949428558, 0.2838246822357178, 0.06456570327281952, 0.6014590859413147, 0.5254179835319519, -0.07853744179010391, 0.04094357043504715, -0.10011675208806992, 0.7488417625427246, 0.13353252410888672, 0.18299803137779236, -0.17542167007923126, -0.23576577007770538, 0.2987874746322632, 0.23312225937843323, 0.14231424033641815, 0.05654960870742798, -0.48880720138549805, 0.01087494008243084, -0.39181846380233765, 0.22392401099205017, -0.2885294258594513, -0.08462423086166382, -0.19633059203624725, -0.26086169481277466, -0.12204597890377045, -0.10326739400625229, 0.43405377864837646, -0.2626097798347473, 0.3843705654144287, 0.6678177118301392, -0.00011598094715736806, 0.03239373862743378, 0.3746281564235687, 0.019490130245685577, -0.14637210965156555, -0.22415398061275482, -0.3373621106147766, -0.13249999284744263, 0.18156768381595612, -0.20075547695159912, 0.10683910548686981, -0.5053098797798157, -0.26478806138038635, -0.3393014669418335, 0.1757585108280182, 0.21281194686889648, 0.14588692784309387, 0.10364934802055359, 0.025354787707328796, -0.1934840977191925, 0.15463991463184357, -0.22054024040699005, -0.06611283868551254, 0.18053951859474182, -0.1070532351732254, -0.39349597692489624, 0.1701575070619583, 0.16962647438049316, -0.5166959762573242, -0.0035863909870386124, -0.06589724868535995, 0.16253475844860077, 0.6357301473617554, -0.29358670115470886, -0.2129722684621811, 0.2360025942325592, 0.48088496923446655, -0.27051758766174316, -0.4302082657814026, -0.16553130745887756, 0.15451231598854065, -0.17906610667705536, -0.16379058361053467, 0.04868767410516739, 0.21031418442726135, 0.06611250340938568, 0.09052722156047821, 0.3389345407485962, 0.03156241774559021, 0.34173083305358887, -0.09301988780498505, 0.177778959274292, 0.020574629306793213, -0.0486091710627079, 0.13051897287368774, -0.1174624040722847, 0.5128915905952454, -0.15021860599517822, 0.07860182970762253, 0.215585857629776, -0.19381660223007202, 0.009936317801475525, 0.15931735932826996, -0.5288549661636353, 0.06715388596057892, -0.14568042755126953, -0.01853035017848015, -0.055512771010398865, 0.06741273403167725, 0.18224993348121643, 0.014697834849357605, 0.49554315209388733, 0.0577552355825901, 0.5096217393875122, -0.04142991453409195, 0.025556527078151703, 0.1968408077955246, -0.10667670518159866, 0.028263289481401443, -0.30648934841156006, 0.11032767593860626, 0.022201471030712128, 0.23033130168914795, 0.11275306344032288, -0.2130080759525299, 0.03593141585588455, -0.2630501985549927, 0.005481448024511337, -0.08560815453529358, 0.02717825025320053, 0.27075859904289246, 0.38522112369537354, 0.0931384339928627, 0.1657949686050415, 0.12682509422302246, 0.4620934724807739, -0.2273726463317871, -0.13083261251449585, -0.06581743061542511, -0.09204176068305969, -0.03536103665828705, -0.09109417349100113, 0.14255854487419128, 0.28317344188690186, 0.1433619111776352, 0.27634674310684204, -0.09175286442041397, -0.04592018574476242, 0.35254356265068054, 0.20620395243167877, -0.25872498750686646, 0.22061748802661896, 0.3357445001602173, -0.09737332910299301, -0.09453818947076797, 0.31515276432037354, -0.36156797409057617, -0.1524418145418167, -0.2919656038284302, 0.13320492208003998, 0.07491905987262726, 0.05347044765949249, -0.0673455148935318, 0.04565907269716263, 0.19956201314926147, -0.1553047001361847, 0.16219694912433624, -0.42983773350715637, 0.11602665483951569, -0.24417774379253387, 0.27486518025398254, 0.007646888494491577, -0.47890567779541016, 0.16933190822601318, 0.22239822149276733, 0.13928405940532684, 0.37278157472610474, 0.29903683066368103, 0.04182521998882294, -0.15981963276863098, -0.0031182095408439636, 0.1360304057598114, 0.06296484172344208, -0.018142610788345337, -0.27622053027153015, 0.1042531430721283, -0.010480158030986786, 0.00579351931810379, -0.17003855109214783, -0.2648206949234009, 0.08581258356571198, 0.006152115762233734, 0.3545953631401062, 0.2584804594516754, -0.14489732682704926, -0.03562309592962265, -0.12342168390750885, -0.20048579573631287, 0.4840202331542969, -0.02422020211815834, -0.04076952487230301, 0.2721419036388397, -0.313641220331192, -0.34122493863105774, 0.14787344634532928, -0.11114112287759781, -0.021909968927502632, -0.15949192643165588, 0.22109369933605194, -0.20704640448093414, 0.31277281045913696, -0.2807747423648834, -0.3132621645927429, 0.04247702658176422, -0.25570833683013916, -0.15224748849868774, -0.11029179394245148, -0.2745645344257355, -0.21044771373271942, 0.06407489627599716, 0.03519832342863083, 0.29751312732696533, 0.10703300684690475, -0.2991859018802643, 0.1980094462633133, 0.0639052540063858, -0.2737799882888794, -0.4059069752693176, 0.07700136303901672, 0.029050923883914948, -0.03945917636156082, 0.20864421129226685, -0.03097926825284958, -0.3031637966632843, 0.1858414262533188, 0.07596975564956665, 0.272752583026886, -0.027005039155483246, 0.001149199903011322, 0.32445627450942993, -0.06813265383243561, -0.13170097768306732, -0.07208762317895889, 0.10069502145051956, 0.07307371497154236, 0.02102300524711609, -0.09044191241264343, 0.32121986150741577, 0.13528698682785034, -0.05136101692914963, 0.16085614264011383, 0.2226141393184662, -0.5607241988182068, 0.20046782493591309, -0.32389336824417114, 0.3307161033153534, 0.17763641476631165, -0.033330388367176056, -0.2535772919654846, -0.2806224226951599, -0.2610459625720978, -0.2821338176727295, -0.2821961045265198, -0.1995982825756073, -0.22713787853717804, 0.08945202827453613, 0.10419275611639023, -0.09210972487926483, 0.08323705196380615, -0.013212339021265507, -0.058393679559230804, 0.16951020061969757, 0.14865347743034363, -0.3452765643596649, 0.15972907841205597, 0.3138154149055481, -0.07696317136287689, -0.16561684012413025, -0.022579792886972427, -0.017332013696432114, 0.29201388359069824, 0.08376721292734146, 0.2873346209526062, 0.05013284832239151, -0.20296424627304077, 0.16556541621685028, -0.07597735524177551, -0.003952972590923309, -0.054067276418209076, 0.24761095643043518, -0.22136123478412628, 0.15439510345458984, -0.4492497742176056, -0.36865389347076416, 0.2053782045841217, -0.7285426259040833, 0.1686902642250061, -0.174302339553833, -0.103302001953125, 0.02599039301276207, -0.4101423919200897, 0.4091562032699585, -0.20565485954284668, 0.013437166810035706, 0.5029586553573608, -0.22768989205360413, -0.5383947491645813, -0.18709784746170044, 0.016772063449025154, 0.05395549535751343, 0.1373545527458191, -0.16795134544372559, -0.019946709275245667, 0.12367337942123413, 0.12480248510837555, -0.3151053190231323, 0.031573496758937836, 0.01479264348745346, -0.31401070952415466, 0.006147904321551323, 0.19380950927734375, 0.23302529752254486, -0.48726990818977356, 0.019475635141134262, 0.24097010493278503, -0.2054990828037262, 0.2659045457839966, 0.12520702183246613, -0.023611020296812057, -0.10447065532207489, -0.24587112665176392, 0.1811845898628235, -0.013706030324101448, -0.22313439846038818, 0.08194564282894135, -0.23780803382396698, -0.009789012372493744, 0.12402613461017609, 0.3893744647502899, 0.1878962516784668, -0.038598060607910156, -0.3653765022754669, -0.09769096225500107, 0.17705541849136353, 0.363896906375885, -0.003462076187133789, -0.14927271008491516, -0.23774224519729614, -0.11792363226413727, -0.4296550750732422, 0.19478623569011688, -0.06367459893226624, -0.1751592755317688, -0.04335208982229233, 0.061283357441425323, 0.0861196219921112, 0.36304932832717896, 0.3528505563735962, 0.2456524521112442, -0.1387965977191925, -0.08006174117326736, 0.029295533895492554, -0.18732964992523193, 0.33025938272476196, 0.11633963882923126, -0.050263531506061554, 0.27034682035446167, -0.07674240320920944, 0.21114200353622437, 0.2869022488594055, -0.057067401707172394, 0.16103750467300415, -0.06108582764863968, 0.20356068015098572, -0.19928085803985596, -0.24398648738861084, -0.44147172570228577, -0.1288970410823822, -0.03999144583940506, 0.08844460546970367, -0.3090342879295349, -0.2869718670845032, 0.011714667081832886, -0.09163123369216919, -0.04272283986210823, -0.03805086389183998, 0.27183374762535095, -0.5343595743179321, 0.19040030241012573, 0.1070711761713028, 0.1528821885585785, -0.13337747752666473, -0.021815825253725052, 0.1082916408777237, -0.28672853112220764, 0.2989119291305542, -0.12656590342521667, 0.401321142911911, -0.2977532148361206, -0.3645636737346649, 0.4162459373474121, 0.16402693092823029, 0.3919380009174347, 0.1341673582792282, -0.14053145051002502, -0.14375832676887512, 0.23469528555870056, 0.6447721719741821, -0.30595695972442627, -0.48430994153022766, 0.5237483382225037, 0.15776419639587402, -0.7573412656784058, -0.27615228295326233, -0.24075397849082947, 0.30742987990379333, -0.25351569056510925, 0.5688345432281494, -0.059845276176929474, -0.004872824996709824, 0.1569574475288391, 0.3036815822124481, 0.04176529496908188, -0.023825962096452713, -0.19525498151779175, -0.2262730896472931, -0.04852045699954033, 0.24759382009506226, 0.1723543107509613, 0.24607184529304504, -0.08308520168066025, -0.05441117286682129, -0.17468468844890594, -0.14448077976703644, -0.03279092162847519, 0.1116396114230156, 0.4226216673851013, 0.18210214376449585, -0.04110613092780113, 0.0815683901309967, 0.10396043211221695, 0.2860139012336731, -0.03436990827322006, -0.2763456106185913, 0.006316628307104111, -0.12148047983646393, 0.012014321982860565, 0.3669702112674713, 0.24151527881622314, -0.022552892565727234, -0.004774253815412521, -0.1502067893743515, 0.15447433292865753, 0.10523843765258789, -0.48700350522994995, 0.20419374108314514, -0.07361450791358948, -0.3345019519329071, -0.4194487929344177, 0.38424110412597656, 0.08510464429855347, 0.0074357688426971436, 0.5135761499404907, 0.27054932713508606, -0.10261392593383789, 0.6285386085510254, 0.14324216544628143, 0.7686399221420288, 0.10430507361888885, 0.1260765939950943, 0.43723368644714355, 0.16941171884536743, 0.15822051465511322, 0.4251573979854584, 0.22164839506149292, -0.29340171813964844, -0.36113637685775757, -0.030293185263872147, -0.20640403032302856, -0.06701119244098663, 0.17224252223968506, -0.43589770793914795, 0.10908686369657516, -0.49119535088539124, 0.1228056475520134, 0.142220139503479, -0.20468159019947052, 0.19489680230617523, -0.2439388632774353, -0.36832866072654724, 0.13496434688568115, 0.1318429559469223, -0.2411208152770996, -0.09180374443531036, -0.11275921761989594, -0.22976544499397278, -0.10837782919406891, 0.07203024625778198, 0.07739634066820145, -0.2560993731021881, 0.36468079686164856, -0.2193710207939148, -0.4767899811267853, -0.09811084717512131, -0.07131540030241013, 0.21984747052192688, -0.3338393568992615, -0.01890156976878643, -0.24417409300804138, 0.352411687374115, -0.0554073303937912, -0.1055968701839447, -0.24182133376598358, 0.5614227056503296, 0.21366623044013977, -0.04323602467775345, 0.14814841747283936, 0.13245579600334167, -0.02165023237466812, -0.014860793948173523, 0.20344094932079315, -0.22193652391433716, -0.28580665588378906, -0.2858690917491913, -0.2626904845237732, 0.12934672832489014, -0.026502933353185654, 0.12763643264770508, 0.1748550534248352, 0.05093410611152649, 0.5283167958259583, -0.1998818963766098, -0.13029153645038605, -0.06807278096675873, 0.10819622874259949, 0.006771208718419075, 0.3312135934829712, 0.23748567700386047, -0.057246334850788116, -0.25400999188423157, -0.11246253550052643, 0.11286035180091858, 0.1331779956817627, -0.11323310434818268, 0.6655130386352539, -0.12033721059560776, 0.13880449533462524, -0.135297954082489, 0.1558605432510376, 0.11696600914001465, 0.11398966610431671, -0.29278770089149475, -0.10001235455274582, -0.15358033776283264, 0.21836288273334503, 0.1810230314731598, 0.2300880253314972, 0.11349260061979294, -0.05326250195503235, -0.009390216320753098, -0.5007333159446716, -0.2872161269187927, -0.07026024907827377, 0.0615372434258461, 0.1318308413028717, -0.19862227141857147, 0.12153513729572296, 0.28324800729751587, -0.3449544906616211, 0.08339875191450119, 0.14673234522342682, 0.28771352767944336, -0.2780480682849884, -0.1395542323589325, 0.0872434675693512, 0.23939549922943115, -0.062408410012722015, 0.06526021659374237, -0.07571355253458023, -0.3782680928707123, -0.24463291466236115, -0.15713700652122498, 0.22408339381217957, -0.023302298039197922, 0.2849007844924927, 0.07332230359315872, -0.16721701622009277, 0.1999056339263916, 0.07178279757499695, -0.11719556897878647, 0.05083431676030159, -0.18145932257175446, 0.29781851172447205, 0.025516316294670105, 0.03627224266529083, 0.013105630874633789, 0.001742035150527954, -0.17609290778636932, -0.026863452047109604, 0.46754276752471924, -0.20922471582889557, -0.07966531813144684, 0.25003376603126526, 0.32624000310897827, 0.19489362835884094, -0.2139677107334137, -0.089283287525177, 0.3368558883666992, 0.20414870977401733, -0.2474774718284607, 0.13931633532047272, 0.3219216465950012, 0.16877475380897522, -0.010668866336345673, 0.14869989454746246, 0.04713421314954758, -0.1577780693769455, -0.26728880405426025, 0.01970852166414261, 0.18559102714061737, -0.15216673910617828, 0.14605186879634857, 0.4977889358997345, 0.3436943590641022, 0.16724175214767456, 0.18597646057605743, 0.12262000888586044, 0.13001865148544312, 0.038622256368398666, 0.07740628719329834, 0.0071985479444265366, 0.03249189257621765, -0.11804796010255814, -0.10103954374790192, 0.009806856513023376, -0.16572697460651398, -0.09295949339866638, -0.11301670968532562, 0.2759627103805542, 0.25457584857940674, 0.39345407485961914, -0.45193150639533997, 0.04174017906188965, -0.06696057319641113, 0.10346385836601257, -0.3843764662742615, 0.10420600324869156, -0.03857685998082161, -0.03838205337524414, 0.3351445496082306, -0.33469459414482117, 0.054127953946590424, 0.2722853422164917, 0.2190096080303192, 0.03829791024327278, 0.10162375867366791, 0.16693279147148132, 0.012754702940583229, 0.36156708002090454, 0.2975485324859619, -0.13361936807632446, -0.4403475821018219, 0.06296077370643616, -0.149875670671463, -0.3193855881690979, 0.5732865929603577, 0.744983434677124, 0.1669519543647766, -0.32740500569343567, -0.06667719036340714, 0.009885750710964203, -0.17448991537094116, 0.2165365219116211, 0.2656552195549011, 0.3026554584503174, -0.21155372262001038, 0.2052629441022873, 0.11149575561285019, -0.14636050164699554, -0.007473295088857412, 0.05659457668662071, 0.35120508074760437, 0.07108860462903976, 0.12508761882781982, -0.046923741698265076, -0.34814685583114624, -0.010273204185068607, -0.1303282231092453, 0.16824567317962646, 0.2074129730463028, 0.2859657108783722, 0.09724484384059906, 0.035743776708841324, 0.11011533439159393, 0.08693204820156097, 0.149353489279747, 0.3603672683238983, 0.3008889853954315, 0.22513873875141144, -0.23872298002243042, 0.17518816888332367, -0.33438926935195923, 0.009559489786624908, -0.08595646917819977, 0.17377953231334686, 0.2515326142311096, -0.0010991618037223816, 0.19677597284317017, -0.03755221515893936, 0.26132726669311523, -0.10944453626871109, -0.24766290187835693, 0.46135321259498596, 0.099310964345932, -0.11998610198497772, -0.5182616114616394, 0.048334479331970215, 0.0447235032916069, -0.27624136209487915, 0.11535247415304184, -0.04282091185450554, 0.05948495864868164, -0.1725207418203354, 0.04212699830532074, -0.030793190002441406, 0.14598757028579712, 0.3247576951980591, 0.1610581874847412, 0.043779775500297546, -0.07807116955518723, 0.2828329801559448, -0.18047799170017242, -0.06452444940805435, -0.23966149985790253, 0.2143402099609375, -0.05440785363316536, 0.0088614821434021, -0.327587366104126, -0.5396045446395874, -0.3286404311656952, 0.14763155579566956, 0.0595027357339859, 0.01959819719195366, -0.3845575749874115, 0.17540335655212402, -0.17523446679115295, -0.3088151514530182, -0.04000724107027054, 0.27367398142814636, -0.07063264399766922, 0.3891223967075348, -0.018728554248809814, -0.37191852927207947, 0.35716402530670166, -0.5846970081329346, -0.5956861972808838, 0.03548305109143257, -0.20245780050754547, 0.0407869890332222, -0.014816398732364178, -0.02568168193101883, -0.048979803919792175, 0.11381077766418457, 0.03719876706600189, -0.28953802585601807, -0.08869626373052597, -0.13404950499534607, 0.28307074308395386, -0.18758195638656616, 0.3419288992881775, 0.21515758335590363, -0.17420603334903717, -0.12184086441993713, -0.14963841438293457 ]
https://github.com/huggingface/datasets/issues/5647
We now log these messages instead of printing them (addressed in #6019), so I'm closing this issue.
Make all print statements optional
### Feature request Make all print statements optional to speed up the development ### Motivation Im loading multiple tiny datasets and all the print statements make the loading slower ### Your contribution I can help contribute
17
Make all print statements optional ### Feature request Make all print statements optional to speed up the development ### Motivation Im loading multiple tiny datasets and all the print statements make the loading slower ### Your contribution I can help contribute We now log these messages instead of printing them (addressed in #6019), so I'm closing this issue.
[ 0.0009947270154953003, -0.32069891691207886, -0.1496371179819107, -0.021816719323396683, 0.12628236413002014, 0.013377554714679718, 0.2322206348180771, 0.32061901688575745, 0.09144891798496246, 0.590594470500946, 0.28605347871780396, 0.43744367361068726, -0.003438647836446762, 0.15014131367206573, -0.21652492880821228, 0.09785881638526917, -0.12875822186470032, 0.31391626596450806, -0.005917523056268692, -0.006908833980560303, -0.2231726199388504, 0.06251615285873413, -0.1296396553516388, 0.09116895496845245, -0.18348734080791473, -0.0431889072060585, 0.15774871408939362, -0.10308696329593658, -0.1532922238111496, -0.46276378631591797, -0.15354974567890167, 0.1278599202632904, -0.21446481347084045, -0.22733210027217865, -0.00009895855328068137, -0.07534411549568176, 0.5792388916015625, 0.03606470674276352, -0.42070484161376953, 0.19080311059951782, -0.13657556474208832, -0.31831854581832886, 0.35989004373550415, -0.40171104669570923, 0.10577689111232758, -0.2987785339355469, -0.010334924794733524, -0.14607228338718414, 0.26199132204055786, 0.14888937771320343, 0.3112024962902069, 0.13667914271354675, -0.23783285915851593, -0.1695663034915924, 0.29812225699424744, 0.403295636177063, -0.13133518397808075, -0.03353224694728851, 0.42651617527008057, 0.13841450214385986, -0.27778011560440063, 0.5216508507728577, -0.18412527441978455, -0.2102159708738327, 0.05049966648221016, -0.20483237504959106, 0.5495196580886841, -0.49442771077156067, 0.13722306489944458, 0.13842624425888062, 0.5611349940299988, -0.21007369458675385, 0.11613617837429047, -0.2698543965816498, -0.015544703230261803, -0.3317565619945526, 0.11107766628265381, 0.14429597556591034, -0.2420724630355835, -0.042109716683626175, -0.3479025959968567, -0.21691647171974182, -0.2362304925918579, -0.1562875360250473, 0.12681977450847626, -0.05247332528233528, -0.14884769916534424, -0.22204804420471191, -0.25097423791885376, -0.024134909734129906, -0.053394585847854614, -0.03851065784692764, -0.24592669308185577, -0.2713738679885864, 0.051161788403987885, -0.22030916810035706, 0.17012017965316772, 0.06535904109477997, 0.1472473293542862, 0.1230999231338501, 0.08225846290588379, 0.055667445063591, 0.12602448463439941, 0.08173688501119614, 0.05383281409740448, 0.004922859370708466, 0.5502062439918518, -0.005049467086791992, 0.010853342711925507, -0.10302753746509552, 0.18274427950382233, -0.16237075626850128, 0.39677077531814575, -0.08395452797412872, 0.06380894780158997, 0.25749918818473816, 0.2333647906780243, -0.253737211227417, 0.31477099657058716, 0.12958326935768127, -0.03616844117641449, 0.12909191846847534, 0.09963028132915497, 0.25995364785194397, 0.18777288496494293, 0.12903113663196564, 0.2013462632894516, -0.010154318064451218, -0.14854860305786133, -0.2664980888366699, -0.12701185047626495, -0.026561688631772995, -0.04633117839694023, 0.08445819467306137, 0.006104633212089539, 0.3480711579322815, 0.025087520480155945, 0.3570152819156647, 0.1562904715538025, 0.053164705634117126, 0.10789679735898972, -0.1886003315448761, 0.3622799217700958, 0.30937936902046204, -0.18906214833259583, 0.12498994171619415, 0.20221777260303497, 0.26228928565979004, -0.09816856682300568, 0.40171748399734497, 0.12985438108444214, -0.4230777621269226, 0.010845357552170753, 0.3549139201641083, 0.09555625915527344, 0.13356681168079376, 0.19535307586193085, 0.19270123541355133, -0.13598254323005676, 0.0595179945230484, 0.38836196064949036, -0.156795933842659, -0.021740488708019257, -0.12006978690624237, 0.08704308420419693, 0.4222451150417328, -0.178157776594162, 0.048153847455978394, -0.44714242219924927, -0.4457371234893799, 0.25632205605506897, 0.05471646040678024, -0.12001131474971771, 0.30354854464530945, -0.34498274326324463, 0.03336717188358307, 0.1727820783853531, -0.2680804133415222, 0.20836181938648224, 0.36100491881370544, -0.08229918777942657, -0.059447772800922394, 0.12376426160335541, 0.11921990662813187, 0.23389562964439392, -0.04925212264060974, 0.10334011912345886, -0.1655707061290741, -0.14245674014091492, 0.22835060954093933, -0.34231898188591003, -0.17446847259998322, 0.09421588480472565, 0.11123964190483093, 0.0784887745976448, -0.0817239060997963, -0.038786694407463074, 0.006910860538482666, 0.30696359276771545, -0.24850024282932281, -0.2564239501953125, 0.05082569643855095, 0.32635417580604553, -0.1341574788093567, -0.1922905445098877, 0.15742191672325134, -0.23812180757522583, 0.022853270173072815, -0.09249576926231384, 0.015440808609127998, 0.12943026423454285, -0.003978833556175232, 0.05709485709667206, 0.1294274777173996, 0.20201903581619263, 0.12907475233078003, 0.28229960799217224, -0.07446892559528351, 0.04740642011165619, 0.24212241172790527, -0.052987877279520035, 0.1986125260591507, -0.4607006013393402, -0.038204606622457504, 0.025877390056848526, -0.4639734923839569, 0.09571345895528793, 0.1568438708782196, -0.06288500130176544, -0.12169846147298813, 0.07509516179561615, 0.19054001569747925, -0.051877833902835846, 0.3705901801586151, 0.09165405482053757, 0.2210107445716858, -0.3128461241722107, 0.04009141027927399, 0.01296643353998661, -0.19695733487606049, 0.1549987643957138, 0.05784701183438301, -0.12981083989143372, -0.03115769475698471, -0.06477867811918259, 0.19623969495296478, -0.16201135516166687, 0.09096111357212067, -0.04287535697221756, -0.07752851396799088, -0.18582384288311005, -0.024513863027095795, -0.3492661714553833, -0.37092486023902893, 0.20285941660404205, 0.11341410875320435, 0.0415925607085228, 0.17390620708465576, -0.29159069061279297, 0.010539818555116653, 0.3037095367908478, 0.03707122802734375, 0.13722142577171326, 0.235463947057724, 0.21630142629146576, 0.07260799407958984, 0.24750833213329315, -0.2738800048828125, 0.08420342952013016, 0.39104580879211426, -0.1720523238182068, 0.0003812592476606369, 0.18827344477176666, -0.3104919493198395, 0.47839993238449097, 0.03125376999378204, -0.020452452823519707, 0.1404397338628769, 0.027956023812294006, -0.11316531896591187, -0.3467177152633667, 0.10625886917114258, -0.1530715525150299, -0.18052397668361664, -0.23612543940544128, -0.24970123171806335, 0.005968160927295685, -0.4343072175979614, -0.005413953214883804, -0.08681552857160568, -0.12555357813835144, -0.45458337664604187, 0.5080510973930359, -0.19048690795898438, -0.4653097987174988, 0.09192730486392975, -0.1964661180973053, 0.6293637156486511, -0.048321403563022614, 0.2961094081401825, -0.42985260486602783, -0.1057763546705246, -0.20094025135040283, 0.15696752071380615, -0.2844366729259491, 0.13218572735786438, 0.6208115220069885, -0.2428850531578064, -0.012294307351112366, -0.1855475902557373, -0.21593046188354492, 0.17150479555130005, -0.03234441578388214, -0.019758092239499092, 0.2560693919658661, 0.17352703213691711, 0.32167932391166687, -0.06991002708673477, 0.05150362104177475, -0.034522511065006256, -0.07105185836553574, -0.084639772772789, 0.20219922065734863, 0.2033173143863678, -0.5752289891242981, -0.2289261817932129, -0.10598893463611603, -0.43924251198768616, 0.22318679094314575, -0.2019575834274292, 0.27829015254974365, 0.1823926568031311, 0.15568917989730835, 0.14971791207790375, -0.2610599398612976, 0.16785287857055664, 0.15215492248535156, -0.3858005404472351, 0.021466197445988655, -0.06122294068336487, -0.08039496839046478, -0.15062832832336426, 0.21561376750469208, -0.24047529697418213, -0.2341623306274414, -0.6220079064369202, -0.28861427307128906, -0.43666672706604004, -0.10720057785511017, -0.035737067461013794, -0.02147783525288105, -0.08922408521175385, 0.07322752475738525, -0.3543471693992615, -0.14607179164886475, -0.2551935315132141, 0.12132275104522705, -0.30593645572662354, 0.08830997347831726, -0.04062405228614807, 0.08923372626304626, -0.10755941271781921, -0.06862194091081619, 0.1351109892129898, 0.22355294227600098, -0.20503762364387512, 0.1184658482670784, 0.7622034549713135, -0.13925465941429138, -0.3609997630119324, 0.09534992277622223, 0.1881210207939148, -0.42930811643600464, 0.11042056977748871, -0.20760014653205872, -0.013732555322349072, -0.11841389536857605, -0.012201368808746338, -0.03916304185986519, -0.5033639073371887, 0.07660477608442307, -0.17089325189590454, -0.08252424001693726, -0.2837616801261902, 0.31405776739120483, -0.19944992661476135, 0.06908521801233292, 0.01889451965689659, 0.11511950939893723, 0.25896790623664856, -0.18048614263534546, -0.1888677477836609, -0.0431038960814476, -0.27930542826652527, 0.31483277678489685, 0.017225231975317, -0.007247159257531166, -0.31601595878601074, -0.1899808645248413, 0.03475112468004227, 0.06789544224739075, 0.4128010869026184, -0.08984673023223877, -0.09803365170955658, 0.44050055742263794, -0.1520506888628006, 0.10110469907522202, -0.10140381753444672, -0.26197871565818787, 0.18459904193878174, 0.43970945477485657, 0.05201117694377899, -0.21270138025283813, -0.30883559584617615, -0.0025897882878780365, -0.09321984648704529, -0.10231635719537735, -0.296589732170105, -0.17985029518604279, 0.06785739213228226, 0.005446925759315491, 0.23178593814373016, 0.06091911345720291, -0.1805928349494934, -0.45081573724746704, -0.13554950058460236, 0.19648000597953796, -0.0362548790872097, 0.13531237840652466, -0.0723271444439888, 0.027267958968877792, -0.26134011149406433, -0.31294187903404236, -0.14111560583114624, 0.02456526830792427, 0.2188766747713089, -0.07704515755176544, -0.31131836771965027, -0.05270005762577057, -0.0771155059337616, -0.17355526983737946, 0.26332831382751465, 0.483550488948822, -0.004839889705181122, -0.017974045127630234, 0.05948125571012497, 0.3306116759777069, -0.26674124598503113, -0.21646305918693542, 0.06896346807479858, -0.46930012106895447, -0.08891850709915161, 0.2010229527950287, 0.23342907428741455, 0.11451312899589539, 0.05803495645523071, 0.2548026144504547, -0.18393325805664062, -0.14483724534511566, 0.07521519064903259, 0.3583751916885376, 0.801776647567749, -0.16070674359798431, -0.1684992015361786, -0.013481910340487957, -0.14644169807434082, 0.7443107962608337, -0.16732361912727356, 0.31331929564476013, -0.24346911907196045, -0.24410051107406616, 0.22164273262023926, -0.20610690116882324, 0.07730605453252792, -0.016113553196191788, -0.3940252363681793, -0.10857594013214111, -0.18936564028263092, -0.07667941600084305, -0.22043868899345398, 0.2095242142677307, -0.1854383498430252, -0.15637055039405823, -0.45532649755477905, 0.264244019985199, 0.14534372091293335, -0.10787208378314972, -0.15163248777389526, -0.23369935154914856, 0.4541964828968048, -0.4341587722301483, -0.1179543063044548, 0.03710482269525528, -0.08760261535644531, -0.030780214816331863, 0.03679833188652992, 0.31828784942626953, 0.09986566752195358, 0.1840844750404358, 0.12972292304039001, 0.48194506764411926, -0.07916832715272903, -0.23512646555900574, 0.33485105633735657, 0.20517279207706451, -0.2136991173028946, 0.11705220490694046, 0.1691998988389969, 0.10388900339603424, -0.07659126073122025, 0.21157439053058624, -0.26041579246520996, -0.05817576125264168, -0.15895900130271912, -0.04687592759728432, 0.14743556082248688, -0.31333252787590027, 0.11044146120548248, -0.17828084528446198, -0.13661570847034454, 0.052692264318466187, 0.233282208442688, 0.08793620765209198, 0.07017181813716888, 0.2993151545524597, 0.0939284935593605, -0.37728333473205566, -0.04730917885899544, -0.1365920454263687, 0.03899866342544556, -0.016222737729549408, 0.10163310170173645, 0.2711058557033539, -0.29247599840164185, -0.5113651752471924, 0.056660979986190796, -0.09446962922811508, -0.16484059393405914, 0.5486379861831665, 0.32744893431663513, -0.0834057405591011, -0.06916150450706482, 0.23068851232528687, 0.02998790517449379, 0.10311520099639893, -0.028146669268608093, 0.0793910101056099, -0.29840487241744995, 0.3367179036140442, -0.27044540643692017, 0.5173547267913818, 0.27854984998703003, 0.026592563837766647, 0.01491941511631012, 0.08032035827636719, -0.47384047508239746, -0.11508190631866455, -0.5070761442184448, 0.058479588478803635, -0.0015110224485397339, -0.007582064718008041, 0.03936801850795746, 0.11619335412979126, 0.17186199128627777, 0.04354812204837799, -0.31632837653160095, -0.3344072699546814, 0.26831942796707153, 0.10871961712837219, -0.07594817876815796, 0.1259288489818573, 0.057008348405361176, -0.07623540610074997, 0.05199912190437317, -0.08278907835483551, 0.20075249671936035, 0.03986818343400955, -0.189639151096344, 0.0904160737991333, -0.09790177643299103, 0.26291629672050476, -0.2748762369155884, -0.015725260600447655, 0.12320725619792938, 0.1133730560541153, -0.29059916734695435, -0.1391059160232544, -0.33145636320114136, -0.15743935108184814, 0.33732011914253235, 0.18804985284805298, 0.21707163751125336, 0.03421127051115036, -0.06347014755010605, 0.1370442658662796, -0.10781291127204895, 0.0500674732029438, 0.0437895730137825, 0.029224153608083725, -0.2204972207546234, -0.15085352957248688, -0.09981974959373474, 0.33890095353126526, 0.0472792312502861, 0.09126734733581543, -0.031196359544992447, -0.04752545431256294, 0.04124019294977188, 0.2830023169517517, 0.09492288529872894, -0.12590888142585754, 0.4016822278499603, 0.043299540877342224, -0.03730921819806099, -0.24830342829227448, 0.01325666531920433, 0.4730699956417084, -0.23122653365135193, -0.08633840084075928, 0.07495919615030289, 0.16083702445030212, 0.09572373330593109, 0.01151219755411148, 0.22775882482528687, 0.1309976428747177, 0.1513914316892624, 0.2198888510465622, -0.17841167747974396, -0.3215389847755432, 0.4185219407081604, 0.46559759974479675, -0.09522150456905365, -0.05700618773698807, 0.07370990514755249, -0.14202342927455902, 0.07875097543001175, 0.01003820076584816, -0.34329405426979065, 0.08905013650655746, -0.2838621437549591, 0.3079446852207184, 0.09948135912418365, -0.08333659172058105, -0.17292746901512146, -0.10837376862764359, 0.12667332589626312, 0.15633437037467957, 0.1589640974998474, 0.13702213764190674, 0.008871633559465408, -0.15608619153499603, 0.0697997659444809, -0.03242667019367218, 0.22087737917900085, -0.3621036410331726, -0.10115036368370056, -0.06006276234984398, 0.13383758068084717, 0.21054524183273315, 0.6025529503822327, 0.4848707616329193, 0.6710219979286194, 0.0810207724571228, -0.1828232705593109, 0.11602646112442017, -0.04165588691830635, -0.08813266456127167, 0.14501646161079407, 0.2109958827495575, 0.06490366160869598, 0.3480316698551178, 0.25600776076316833, -0.22930394113063812, 0.10992777347564697, -0.12791235744953156, 0.07186803966760635, -0.03887968882918358, 0.3574925363063812, 0.5744370818138123, 0.08632998913526535, -0.337693452835083, -0.1097668707370758, -0.44313663244247437, -0.0959659293293953, 0.14894184470176697, 0.11870825290679932, 0.04016325622797012, -0.0642869621515274, 0.163486510515213, -0.15322279930114746, 0.2824643850326538, 0.4416833519935608, -0.002215854823589325, -0.2873525619506836, 0.048745617270469666, -0.1764174997806549, 0.012472923845052719, 0.07668764144182205, 0.4050140678882599, 0.29667186737060547, 0.1192343533039093, 0.2541618347167969, 0.16069553792476654, -0.03991677612066269, -0.21921277046203613, -0.09962417930364609, -0.040237270295619965, -0.23306195437908173, 0.4745452404022217, 0.26360970735549927, -0.20556318759918213, 0.01728282868862152, -0.12326408922672272, 0.28616827726364136, -0.19680428504943848, 0.2836351990699768, 0.07517790049314499, 0.20259328186511993, 0.3075617253780365, 0.4297967851161957, 0.19079449772834778, 0.2881537973880768, -0.07580000907182693, -0.025806933641433716, -0.49081820249557495, 0.2787376046180725, 0.09576763212680817, 0.04496409744024277, 0.23134756088256836, 0.22730955481529236, 0.15262235701084137, -0.1389877200126648, -0.13046623766422272, -0.22891472280025482, 0.13220378756523132, 0.13893941044807434, -0.0017882324755191803, -0.038335271179676056, 0.03842853009700775, 0.116328664124012, -0.09115312993526459, -0.02921929769217968, -0.08187559247016907, 0.010945100337266922, 0.19106625020503998, -0.37606269121170044, -0.29733026027679443, 0.2941288352012634, -0.07649578899145126, -0.09032127261161804, -0.2831481099128723, 0.5302085280418396, 0.1989632397890091, 0.07790374755859375, -0.47190260887145996, -0.01596760004758835, 0.25248801708221436, -0.16893352568149567, 0.13042856752872467, 0.23002558946609497, 0.03145860880613327, -0.04819934815168381, -0.1908838152885437, 0.0020490195602178574, -0.01680188812315464, 0.19886329770088196, -0.2948300242424011, -0.3413654565811157 ]
https://github.com/huggingface/datasets/issues/5645
It looks like an error that we observed once in https://github.com/huggingface/datasets/pull/5166 Can you try to update `datasets` ? ``` pip install -U datasets ``` if it doesn't work, can you make sure you don't have packages installed that may modify `dill`'s behavior, such as `apache-beam` ?
Datasets map and select(range()) is giving dill error
### Describe the bug I'm using Huggingface Datasets library to load the dataset in google colab When I do, > data = train_dataset.select(range(10)) or > train_datasets = train_dataset.map( > process_data_to_model_inputs, > batched=True, > batch_size=batch_size, > remove_columns=["article", "abstract"], > ) I get following error: `module 'dill._dill' has no attribute 'log'` I've tried downgrading the dill version from latest to 0.2.8, but no luck. Stack trace: > --------------------------------------------------------------------------- > ModuleNotFoundError Traceback (most recent call last) > /usr/local/lib/python3.9/dist-packages/datasets/utils/py_utils.py in _no_cache_fields(obj) > 367 try: > --> 368 import transformers as tr > 369 > > ModuleNotFoundError: No module named 'transformers' > > During handling of the above exception, another exception occurred: > > AttributeError Traceback (most recent call last) > 17 frames > <ipython-input-13-dd14813880a6> in <module> > ----> 1 test = train_dataset.select(range(10)) > > /usr/local/lib/python3.9/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) > 155 } > 156 # apply actual function > --> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) > 158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] > 159 # re-apply format to the output > > /usr/local/lib/python3.9/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) > 155 if kwargs.get(fingerprint_name) is None: > 156 kwargs_for_fingerprint["fingerprint_name"] = fingerprint_name > --> 157 kwargs[fingerprint_name] = update_fingerprint( > 158 self._fingerprint, transform, kwargs_for_fingerprint > 159 ) > > /usr/local/lib/python3.9/dist-packages/datasets/fingerprint.py in update_fingerprint(fingerprint, transform, transform_args) > 103 for key in sorted(transform_args): > 104 hasher.update(key) > --> 105 hasher.update(transform_args[key]) > 106 return hasher.hexdigest() > 107 > > /usr/local/lib/python3.9/dist-packages/datasets/fingerprint.py in update(self, value) > 55 def update(self, value): > 56 self.m.update(f"=={type(value)}==".encode("utf8")) > ---> 57 self.m.update(self.hash(value).encode("utf-8")) > 58 > 59 def hexdigest(self): > > /usr/local/lib/python3.9/dist-packages/datasets/fingerprint.py in hash(cls, value) > 51 return cls.dispatch[type(value)](cls, value) > 52 else: > ---> 53 return cls.hash_default(value) > 54 > 55 def update(self, value): > > /usr/local/lib/python3.9/dist-packages/datasets/fingerprint.py in hash_default(cls, value) > 44 @classmethod > 45 def hash_default(cls, value): > ---> 46 return cls.hash_bytes(dumps(value)) > 47 > 48 @classmethod > > /usr/local/lib/python3.9/dist-packages/datasets/utils/py_utils.py in dumps(obj) > 387 file = StringIO() > 388 with _no_cache_fields(obj): > --> 389 dump(obj, file) > 390 return file.getvalue() > 391 > > /usr/local/lib/python3.9/dist-packages/datasets/utils/py_utils.py in dump(obj, file) > 359 def dump(obj, file): > 360 """pickle an object to a file""" > --> 361 Pickler(file, recurse=True).dump(obj) > 362 return > 363 > > /usr/local/lib/python3.9/dist-packages/dill/_dill.py in dump(self, obj) > 392 return > 393 > --> 394 def load_session(filename='/tmp/session.pkl', main=None): > 395 """update the __main__ module with the state from the session file""" > 396 if main is None: main = _main_module > > /usr/lib/python3.9/pickle.py in dump(self, obj) > 485 if self.proto >= 4: > 486 self.framer.start_framing() > --> 487 self.save(obj) > 488 self.write(STOP) > 489 self.framer.end_framing() > > /usr/local/lib/python3.9/dist-packages/dill/_dill.py in save(self, obj, save_persistent_id) > 386 pickler._byref = False # disable pickling by name reference > 387 pickler._recurse = False # disable pickling recursion for globals > --> 388 pickler._session = True # is best indicator of when pickling a session > 389 pickler.dump(main) > 390 finally: > > /usr/lib/python3.9/pickle.py in save(self, obj, save_persistent_id) > 558 f = self.dispatch.get(t) > 559 if f is not None: > --> 560 f(self, obj) # Call unbound method with explicit self > 561 return > 562 > > /usr/local/lib/python3.9/dist-packages/dill/_dill.py in save_singleton(pickler, obj) > > /usr/lib/python3.9/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj) > 689 write(NEWOBJ) > 690 else: > --> 691 save(func) > 692 save(args) > 693 write(REDUCE) > > /usr/local/lib/python3.9/dist-packages/dill/_dill.py in save(self, obj, save_persistent_id) > 386 pickler._byref = False # disable pickling by name reference > 387 pickler._recurse = False # disable pickling recursion for globals > --> 388 pickler._session = True # is best indicator of when pickling a session > 389 pickler.dump(main) > 390 finally: > > /usr/lib/python3.9/pickle.py in save(self, obj, save_persistent_id) > 558 f = self.dispatch.get(t) > 559 if f is not None: > --> 560 f(self, obj) # Call unbound method with explicit self > 561 return > 562 > > /usr/local/lib/python3.9/dist-packages/datasets/utils/py_utils.py in save_function(pickler, obj) > 583 dill._dill.log.info("# F1") > 584 else: > --> 585 dill._dill.log.info("F2: %s" % obj) > 586 name = getattr(obj, "__qualname__", getattr(obj, "__name__", None)) > 587 dill._dill.StockPickler.save_global(pickler, obj, name=name) > > AttributeError: module 'dill._dill' has no attribute 'log' ### Steps to reproduce the bug After loading the dataset(eg: https://huggingface.co/datasets/scientific_papers) in google colab do either > data = train_dataset.select(range(10)) or > train_datasets = train_dataset.map( > process_data_to_model_inputs, > batched=True, > batch_size=batch_size, > remove_columns=["article", "abstract"], > ) ### Expected behavior The map and select function should work ### Environment info dataset: https://huggingface.co/datasets/scientific_papers dill = 0.3.6 python= 3.9.16 transformer = 4.2.0
46
Datasets map and select(range()) is giving dill error ### Describe the bug I'm using Huggingface Datasets library to load the dataset in google colab When I do, > data = train_dataset.select(range(10)) or > train_datasets = train_dataset.map( > process_data_to_model_inputs, > batched=True, > batch_size=batch_size, > remove_columns=["article", "abstract"], > ) I get following error: `module 'dill._dill' has no attribute 'log'` I've tried downgrading the dill version from latest to 0.2.8, but no luck. Stack trace: > --------------------------------------------------------------------------- > ModuleNotFoundError Traceback (most recent call last) > /usr/local/lib/python3.9/dist-packages/datasets/utils/py_utils.py in _no_cache_fields(obj) > 367 try: > --> 368 import transformers as tr > 369 > > ModuleNotFoundError: No module named 'transformers' > > During handling of the above exception, another exception occurred: > > AttributeError Traceback (most recent call last) > 17 frames > <ipython-input-13-dd14813880a6> in <module> > ----> 1 test = train_dataset.select(range(10)) > > /usr/local/lib/python3.9/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) > 155 } > 156 # apply actual function > --> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) > 158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] > 159 # re-apply format to the output > > /usr/local/lib/python3.9/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) > 155 if kwargs.get(fingerprint_name) is None: > 156 kwargs_for_fingerprint["fingerprint_name"] = fingerprint_name > --> 157 kwargs[fingerprint_name] = update_fingerprint( > 158 self._fingerprint, transform, kwargs_for_fingerprint > 159 ) > > /usr/local/lib/python3.9/dist-packages/datasets/fingerprint.py in update_fingerprint(fingerprint, transform, transform_args) > 103 for key in sorted(transform_args): > 104 hasher.update(key) > --> 105 hasher.update(transform_args[key]) > 106 return hasher.hexdigest() > 107 > > /usr/local/lib/python3.9/dist-packages/datasets/fingerprint.py in update(self, value) > 55 def update(self, value): > 56 self.m.update(f"=={type(value)}==".encode("utf8")) > ---> 57 self.m.update(self.hash(value).encode("utf-8")) > 58 > 59 def hexdigest(self): > > /usr/local/lib/python3.9/dist-packages/datasets/fingerprint.py in hash(cls, value) > 51 return cls.dispatch[type(value)](cls, value) > 52 else: > ---> 53 return cls.hash_default(value) > 54 > 55 def update(self, value): > > /usr/local/lib/python3.9/dist-packages/datasets/fingerprint.py in hash_default(cls, value) > 44 @classmethod > 45 def hash_default(cls, value): > ---> 46 return cls.hash_bytes(dumps(value)) > 47 > 48 @classmethod > > /usr/local/lib/python3.9/dist-packages/datasets/utils/py_utils.py in dumps(obj) > 387 file = StringIO() > 388 with _no_cache_fields(obj): > --> 389 dump(obj, file) > 390 return file.getvalue() > 391 > > /usr/local/lib/python3.9/dist-packages/datasets/utils/py_utils.py in dump(obj, file) > 359 def dump(obj, file): > 360 """pickle an object to a file""" > --> 361 Pickler(file, recurse=True).dump(obj) > 362 return > 363 > > /usr/local/lib/python3.9/dist-packages/dill/_dill.py in dump(self, obj) > 392 return > 393 > --> 394 def load_session(filename='/tmp/session.pkl', main=None): > 395 """update the __main__ module with the state from the session file""" > 396 if main is None: main = _main_module > > /usr/lib/python3.9/pickle.py in dump(self, obj) > 485 if self.proto >= 4: > 486 self.framer.start_framing() > --> 487 self.save(obj) > 488 self.write(STOP) > 489 self.framer.end_framing() > > /usr/local/lib/python3.9/dist-packages/dill/_dill.py in save(self, obj, save_persistent_id) > 386 pickler._byref = False # disable pickling by name reference > 387 pickler._recurse = False # disable pickling recursion for globals > --> 388 pickler._session = True # is best indicator of when pickling a session > 389 pickler.dump(main) > 390 finally: > > /usr/lib/python3.9/pickle.py in save(self, obj, save_persistent_id) > 558 f = self.dispatch.get(t) > 559 if f is not None: > --> 560 f(self, obj) # Call unbound method with explicit self > 561 return > 562 > > /usr/local/lib/python3.9/dist-packages/dill/_dill.py in save_singleton(pickler, obj) > > /usr/lib/python3.9/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, state_setter, obj) > 689 write(NEWOBJ) > 690 else: > --> 691 save(func) > 692 save(args) > 693 write(REDUCE) > > /usr/local/lib/python3.9/dist-packages/dill/_dill.py in save(self, obj, save_persistent_id) > 386 pickler._byref = False # disable pickling by name reference > 387 pickler._recurse = False # disable pickling recursion for globals > --> 388 pickler._session = True # is best indicator of when pickling a session > 389 pickler.dump(main) > 390 finally: > > /usr/lib/python3.9/pickle.py in save(self, obj, save_persistent_id) > 558 f = self.dispatch.get(t) > 559 if f is not None: > --> 560 f(self, obj) # Call unbound method with explicit self > 561 return > 562 > > /usr/local/lib/python3.9/dist-packages/datasets/utils/py_utils.py in save_function(pickler, obj) > 583 dill._dill.log.info("# F1") > 584 else: > --> 585 dill._dill.log.info("F2: %s" % obj) > 586 name = getattr(obj, "__qualname__", getattr(obj, "__name__", None)) > 587 dill._dill.StockPickler.save_global(pickler, obj, name=name) > > AttributeError: module 'dill._dill' has no attribute 'log' ### Steps to reproduce the bug After loading the dataset(eg: https://huggingface.co/datasets/scientific_papers) in google colab do either > data = train_dataset.select(range(10)) or > train_datasets = train_dataset.map( > process_data_to_model_inputs, > batched=True, > batch_size=batch_size, > remove_columns=["article", "abstract"], > ) ### Expected behavior The map and select function should work ### Environment info dataset: https://huggingface.co/datasets/scientific_papers dill = 0.3.6 python= 3.9.16 transformer = 4.2.0 It looks like an error that we observed once in https://github.com/huggingface/datasets/pull/5166 Can you try to update `datasets` ? ``` pip install -U datasets ``` if it doesn't work, can you make sure you don't have packages installed that may modify `dill`'s behavior, such as `apache-beam` ?
[ -0.4695124626159668, -0.24985341727733612, 0.07980244606733322, 0.16242313385009766, 0.23612664639949799, -0.04006137698888779, 0.5223497152328491, 0.3006775677204132, 0.09555958211421967, 0.049780018627643585, -0.41693180799484253, 0.446684330701828, -0.47454163432121277, -0.18290571868419647, 0.05989367887377739, -0.195526123046875, -0.03710213303565979, 0.0036686360836029053, -0.6218283772468567, -0.10739872604608536, -0.3738757371902466, 0.1999952644109726, -0.41401615738868713, -0.025392089039087296, -0.4564717710018158, -0.21031323075294495, 0.19287176430225372, 0.1532500982284546, -0.11479540169239044, -0.07940243929624557, 0.2285120189189911, -0.17698055505752563, 0.4426085650920868, 0.3847150504589081, -0.0001309408398810774, 0.0800083577632904, 0.15168580412864685, -0.0393664613366127, -0.48455485701560974, -0.4276334047317505, 0.008787371218204498, 0.10514360666275024, 0.518989086151123, -0.24997688829898834, -0.07016683369874954, 0.14431868493556976, 0.05285315960645676, -0.17674210667610168, 0.3857312500476837, 0.4215390682220459, 0.10194453597068787, 0.33999103307724, -0.06970380246639252, -0.0880889743566513, 0.2245127111673355, 0.2958187460899353, -0.23260942101478577, 0.7134528160095215, 0.30632346868515015, -0.3280660808086395, -0.04126527160406113, 0.2644183933734894, -0.07473268359899521, -0.08902620524168015, 0.42713040113449097, 0.2837443947792053, 0.08469001948833466, -0.30229923129081726, 0.21294476091861725, 0.11035475134849548, 0.38577917218208313, -0.6187748908996582, -0.174964040517807, -0.021057814359664917, 0.13142265379428864, -0.28258752822875977, 0.1507532000541687, 0.11600933969020844, -0.0234011709690094, 0.22822979092597961, -0.2941426634788513, -0.20860126614570618, -0.0193001851439476, 0.21442225575447083, -0.13445070385932922, 0.4089707136154175, -0.03759785369038582, 0.10636403411626816, 0.4152609407901764, -0.04667048901319504, 0.13941022753715515, 0.09586446732282639, 0.06888952106237411, 0.2169945389032364, -0.44597694277763367, -0.05214715749025345, 0.05789976194500923, -0.06226798892021179, 0.0397161990404129, 0.21205192804336548, -0.04631324112415314, -0.2253480851650238, 0.07766930758953094, 0.11817342042922974, 0.3252272605895996, 0.10875283181667328, 0.16491493582725525, 0.6982783079147339, 0.2199673056602478, 0.09600275009870529, 0.24049487709999084, 0.2752445638179779, 0.015218697488307953, -0.30371615290641785, 0.030687928199768066, 0.04192569479346275, 0.4616745114326477, -0.14812709391117096, -0.37960007786750793, 0.03444839268922806, -0.3245837688446045, -0.15637004375457764, 0.11893486976623535, 0.48440021276474, 0.03937416523694992, -0.25168415904045105, 0.16373664140701294, 0.16187578439712524, -0.23842176795005798, 0.27612191438674927, -0.14357730746269226, 0.4077163636684418, 0.005005985498428345, 0.028211072087287903, 0.11800938844680786, -0.11194677650928497, -0.017304256558418274, -0.06790951639413834, 0.048988666385412216, 0.03406631201505661, -0.1288236677646637, -0.19000712037086487, 0.1272180676460266, 0.4200105369091034, -0.1819472461938858, 0.1656944304704666, 0.0879492238163948, -0.4514259994029999, -0.3137679696083069, 0.4383215606212616, -0.2719954252243042, -0.16864502429962158, -0.2589590847492218, -0.029748808592557907, 0.08166725933551788, 0.08798602968454361, -0.3437296748161316, 0.22975866496562958, 0.23783141374588013, -0.1011379063129425, 0.14703038334846497, -0.36021023988723755, -0.29819583892822266, -0.17838580906391144, 0.5057046413421631, 0.6326704621315002, -0.5633143186569214, -0.2543557584285736, -0.28832241892814636, -0.07082549482584, 0.17345517873764038, 0.16444185376167297, -0.06896166503429413, -0.09676030278205872, -0.11308746039867401, -0.09951664507389069, 0.3314613401889801, -0.21003636717796326, -0.4194910526275635, -0.016817234456539154, 0.014136143028736115, -0.2321535050868988, -0.20152965188026428, 0.02654978260397911, 0.1499955654144287, 0.10074365139007568, 0.46352341771125793, 0.21733535826206207, 0.0678090900182724, -0.010666482150554657, -0.23227961361408234, -0.14630477130413055, 0.2933422327041626, 0.26837867498397827, 0.18299320340156555, 0.12343457341194153, 0.13973942399024963, 0.13287889957427979, 0.2290484607219696, 0.001225622370839119, -0.042332813143730164, 0.37429916858673096, 0.25978708267211914, -0.4282960891723633, 0.046579163521528244, -0.3794824182987213, -0.7391235828399658, 0.019666388630867004, 0.018663965165615082, 0.07315649837255478, -0.18527457118034363, -0.015369817614555359, -0.19147565960884094, 0.2941771149635315, -0.031252048909664154, -0.2423955649137497, -0.15597540140151978, -0.20112508535385132, -0.06067577749490738, 0.2105959951877594, -0.19281062483787537, 0.0019056815654039383, 0.12036838382482529, 0.17670930922031403, -0.4427120089530945, 0.5423493981361389, -0.1829424798488617, -0.2155863493680954, 0.02507178485393524, 0.02708694338798523, -0.0028141867369413376, 0.0074625164270401, -0.17423461377620697, 0.14888375997543335, 0.19365903735160828, -0.19688469171524048, -0.14874690771102905, 0.08548866957426071, 0.3551463782787323, -0.31322890520095825, -0.07795121520757675, -0.06366688013076782, 0.10797438025474548, -0.029013164341449738, 0.1419643759727478, 0.07122942060232162, -0.09524863958358765, 0.20742520689964294, -0.1420920342206955, 0.2682865858078003, -0.23151952028274536, 0.1363278329372406, 0.04190276563167572, -0.34929439425468445, -0.020535560324788094, 0.23488426208496094, 0.5505219101905823, 0.12291045486927032, -0.20603564381599426, -0.08756113052368164, 0.33307158946990967, -0.010498829185962677, 0.33917704224586487, 0.171336367726326, -0.3023228943347931, 0.08414921164512634, 0.19985462725162506, -0.10798444598913193, 0.22089539468288422, -0.10927200317382812, -0.11442253738641739, 0.17320838570594788, 0.025344230234622955, 0.08831639587879181, 0.10687945783138275, 0.05721297860145569, 0.33530160784721375, 0.05988532304763794, -0.14628425240516663, 0.04471823200583458, -0.1751278191804886, -0.3358980119228363, -0.054051533341407776, 0.4101884961128235, -0.3237459063529968, 0.20162072777748108, -0.3805679678916931, 0.08649538457393646, -0.057242970913648605, -0.06912636011838913, -0.4147692322731018, -0.013480134308338165, -0.18496768176555634, 0.19713404774665833, -0.12186819314956665, 0.21758604049682617, 0.17409607768058777, -0.008312016725540161, 0.35310307145118713, -0.3644986152648926, -0.03522466868162155, -0.21716448664665222, -0.1354690045118332, -0.08424387127161026, 0.3263629376888275, -0.025272395461797714, 0.12060058116912842, -0.037703774869441986, -0.17742791771888733, -0.13513031601905823, -0.1321129947900772, 0.17555218935012817, -0.045025233179330826, 0.4100823998451233, 0.21809491515159607, 0.12066635489463806, -0.37394678592681885, -0.19415414333343506, 0.18858933448791504, 0.010737977921962738, -0.12214522063732147, -0.14320817589759827, 0.051256198436021805, -0.04405719041824341, -0.20649024844169617, -0.2909336984157562, -0.3684535324573517, -0.3262048363685608, 0.016305074095726013, -0.05915204435586929, 0.23681378364562988, 0.3593060076236725, 0.19415412843227386, 0.08675161004066467, 0.22090156376361847, 0.010702624917030334, -0.021091831848025322, 0.3763788938522339, 0.38078802824020386, -0.19695021212100983, -0.3905142843723297, -0.2755681872367859, -0.1678263545036316, -0.18657705187797546, 0.12051922082901001, -0.44342052936553955, -0.31379082798957825, -0.1448286920785904, -0.05307864770293236, -0.11855529993772507, 0.08844788372516632, 0.22751599550247192, 0.05747510865330696, 0.2530493140220642, -0.01475401222705841, -0.6045442819595337, 0.038204606622457504, 0.22468750178813934, 0.3710559904575348, 0.22038230299949646, 0.2515498995780945, -0.3047621548175812, 0.9264559745788574, 0.09846532344818115, -0.11859619617462158, 0.22326096892356873, -0.07222934067249298, 0.22366613149642944, -0.035268038511276245, -0.4187542200088501, 0.10040201246738434, 0.2204110473394394, -0.18538953363895416, 0.2462693452835083, -0.15597838163375854, -0.38156551122665405, -0.2980307936668396, 0.09509658068418503, -0.09341873973608017, -0.29671579599380493, 0.18142741918563843, -0.05792476609349251, -0.013611122965812683, 0.09421829879283905, 0.32009708881378174, 0.0421023964881897, -0.09086863696575165, -0.0009623207151889801, 0.0534370020031929, 0.029035810381174088, 0.02525586634874344, 0.14049063622951508, -0.31361308693885803, -0.5470573306083679, 0.2755727767944336, 0.3332066833972931, 0.2566431760787964, -0.1834142804145813, -0.07730794697999954, 0.21306701004505157, 0.33469322323799133, 0.6511765122413635, -0.018913820385932922, 0.013529885560274124, 0.1847856491804123, -0.21977514028549194, -0.5756753087043762, -0.07831540703773499, -0.2176850438117981, 0.238329216837883, 0.29700976610183716, 0.06029771640896797, -0.35584741830825806, -0.06961005926132202, 0.4646284282207489, 0.033444151282310486, -0.07535989582538605, -0.07017616927623749, -0.23589953780174255, -0.21309137344360352, -0.20286962389945984, -0.0844283252954483, 0.05056016147136688, 0.21281227469444275, 0.049709685146808624, 0.058771513402462006, 0.27519485354423523, -0.12977606058120728, 0.05190432816743851, 0.08165585994720459, 0.48843759298324585, 0.049174971878528595, 0.1264447718858719, 0.1153564304113388, 0.3366396427154541, 0.3868459463119507, 0.5648055076599121, -0.33506062626838684, -0.18696081638336182, 0.4120505452156067, 0.12414828687906265, 0.14293722808361053, 0.1080332100391388, -0.08591119945049286, 0.03734349459409714, 0.05994003638625145, 0.10053017735481262, 0.2287863790988922, 0.03507417440414429, 0.17967566847801208, 0.11427122354507446, -0.6240994334220886, -0.18428826332092285, 0.41653570532798767, 0.185532346367836, 0.024216264486312866, 0.28079038858413696, -0.12625104188919067, -0.16306857764720917, 0.13518771529197693, 0.060563065111637115, 0.9572982788085938, -0.08325868844985962, -0.055063482373952866, 0.1402856409549713, -0.0046203359961509705, 0.31235581636428833, 0.15832802653312683, 0.062303002923727036, -0.4939906597137451, -0.3211973309516907, 0.007889509201049805, -0.25863516330718994, -0.020522862672805786, -0.055103104561567307, -0.16205836832523346, 0.12485447525978088, -0.19416484236717224, 0.11578230559825897, 0.052238911390304565, -0.1467333883047104, 0.03582354635000229, -0.07998867332935333, -0.11953678727149963, -0.08661986887454987, -0.27266865968704224, 0.3525049686431885, -0.15646977722644806, -0.06654325127601624, -0.30049842596054077, -0.3632025718688965, -0.35649949312210083, 0.060630425810813904, -0.33919641375541687, 0.3237914741039276, 0.5758712291717529, -0.697558581829071, 0.25296688079833984, 0.4355664849281311, -0.08716072142124176, 0.04471040889620781, -0.2459777593612671, 0.07777117192745209, -0.4893386960029602, 0.1715824007987976, -0.18301692605018616, 0.11936560273170471, 0.5320549607276917, 0.059567250311374664, -0.1454177349805832, -0.05467826500535011, 0.008877281099557877, -0.1673194319009781, 0.09169048070907593, 0.46489477157592773, 0.06579244136810303, -0.08527669310569763, -0.09221954643726349, -0.1232604905962944, -0.07066610455513, -0.015643678605556488, -0.029569275677204132, 0.022960644215345383, 0.0709211528301239, 0.2896365523338318, 0.22205325961112976, -0.25031426548957825, -0.03875664621591568, 0.5183494687080383, 0.03617430105805397, 0.3144083321094513, 0.4636470079421997, 0.3819226622581482, -0.28957170248031616, -0.08791470527648926, -0.11379367113113403, 0.053642693907022476, -0.35964295268058777, 0.47347816824913025, 0.008570253849029541, 0.07217426598072052, -0.05939265713095665, 0.1131456196308136, 0.0756705105304718, 0.029929734766483307, -0.0901583805680275, -0.3698863387107849, -0.16465529799461365, 0.3616650104522705, -0.34068751335144043, 0.112082839012146, 0.0831470638513565, 0.28048306703567505, 0.04399210959672928, -0.0219942107796669, -0.09214958548545837, 0.02775070071220398, -0.33650028705596924, 0.06019824370741844, 0.04063258320093155, -0.16610771417617798, 0.11524207890033722, -0.1877177655696869, -0.08664357662200928, 0.23230168223381042, -0.09398350119590759, -0.05335701256990433, -0.2700492739677429, 0.17647315561771393, -0.03351123258471489, -0.21769192814826965, -0.3132665753364563, -0.17435048520565033, -0.13087314367294312, -0.28457725048065186, 0.15591078996658325, 0.16772960126399994, 0.08906421065330505, 0.16739235818386078, 0.025941725820302963, -0.17383460700511932, 0.09164495766162872, 0.34463196992874146, -0.12721149623394012, 0.16552706062793732, 0.17182700335979462, 0.2520633339881897, 0.13934412598609924, 0.029609940946102142, -0.3582420349121094, -0.013861145824193954, -0.11906416714191437, -0.2764012813568115, 0.2032684087753296, -0.20765671133995056, -0.15015004575252533, 0.005959019064903259, 0.35108324885368347, 0.2580174207687378, -0.21394506096839905, 0.004910998046398163, 0.10029519349336624, -0.029179474338889122, -0.2592678666114807, 0.057406287640333176, 0.45396944880485535, 0.20573538541793823, 0.030988536775112152, 0.34581440687179565, -0.2977261245250702, 0.18348871171474457, -0.0027562081813812256, 0.15147274732589722, 0.06446307897567749, 0.2771229147911072, 0.14267924427986145, 0.2619246244430542, -0.025076955556869507, 0.3169695734977722, 0.36603817343711853, 0.2067137360572815, 0.306864470243454, 0.0635460838675499, -0.2724096179008484, 0.09432151168584824, -0.2651984989643097, -0.05121321603655815, 0.5568921566009521, -0.6718099117279053, 0.2731211185455322, 0.15964919328689575, -0.09814894199371338, -0.02464151754975319, -0.030276741832494736, 0.3663053810596466, -0.12061453610658646, -0.17955715954303741, -0.00032395124435424805, 0.1762329488992691, -0.262882798910141, 0.12442466616630554, 0.1925390511751175, -0.00879504531621933, 0.013343259692192078, 0.1396731585264206, -0.030916620045900345, -0.3762981593608856, 0.31675153970718384, 0.13924962282180786, -0.15088944137096405, -0.3001147508621216, 0.16731080412864685, 0.167480930685997, 0.0045286864042282104, -0.14736737310886383, 0.09049221128225327, -0.041685935109853745, 0.05373328924179077, -0.15576380491256714, 0.3371874988079071, 0.23202985525131226, 0.4500333368778229, -0.0968007892370224, -0.13871121406555176, 0.19144178926944733, 0.05354329198598862, -0.05989537388086319, 0.05037859454751015, 0.1608981043100357, 0.05291863903403282, 0.3455177843570709, -0.04574630409479141, -0.0029572173953056335, 0.15125752985477448, 0.06432244181632996, 0.2910153865814209, -0.06664186716079712, 0.05890895798802376, -0.2659963071346283, -0.28618520498275757, -0.24283188581466675, -0.10853517055511475, -0.24695278704166412, 0.002350226044654846, 0.2858932614326477, -0.08093108236789703, 0.2172752022743225, -0.28081876039505005, -0.040949318557977676, 0.09359912574291229, 0.34541285037994385, 0.6314467787742615, 0.47382187843322754, -0.14439979195594788, 0.030631020665168762, -0.3217863440513611, 0.1377202272415161, 0.14107254147529602, 0.09273532032966614, 0.06874004006385803, -0.045377716422080994, -0.20915190875530243, 0.2610841691493988, 0.31430578231811523, 0.06863957643508911, 0.12410255521535873, 0.3306562602519989, -0.3326810300350189, -0.18535703420639038, -0.36147722601890564, -0.018932729959487915, 0.04891623556613922, -0.3526034951210022, 0.2704989016056061, -0.4295579195022583, -0.2472330927848816, -0.5766639113426208, -0.06841494888067245, 0.012259170413017273, 0.4680361747741699, 0.2440793812274933, 0.27071091532707214, 0.5886603593826294, 0.010171562433242798, 0.11065785586833954, 0.015353054739534855, -0.24297979474067688, 0.021365869790315628, 0.0010737944394350052, 0.12137749791145325, 0.28735387325286865, -0.10021980106830597, -0.41600748896598816, -0.1634010672569275, 0.7931137681007385, 0.0030642300844192505, 0.0259367935359478, -0.23366151750087738, -0.1600932478904724, -0.06700164079666138, -0.06916898488998413, -0.010838992893695831, 0.16261541843414307, 0.033132847398519516, 0.22297891974449158, -0.1683829426765442, -0.49356359243392944, 0.5918800830841064, -0.3807038962841034, -0.19772793352603912, -0.20471206307411194, 0.11100701987743378, 0.22746315598487854, -0.3528970181941986, -0.4999043047428131, -0.1937962770462036, 0.10172002017498016, -0.2609454393386841, -0.28052324056625366, 0.1153331995010376, -0.13092327117919922, 0.29199105501174927, -0.18025189638137817, 0.492870032787323, 0.0987723171710968, -0.17997774481773376, 0.052161574363708496, -0.3030306100845337 ]
https://github.com/huggingface/datasets/issues/5638
I think https://github.com/fsspec/universal_pathlib is the project you are looking for. `xPath` has the methods often used in dataset scripts, and `mkdir` is not one of them (`dl_manager`'s role is to "interact" with the file system, so using `mkdir` is discouraged).
xPath to implement all operations for Path
### Feature request Current xPath implementation is a great extension of Path in order to work with remote objects. However some methods such as `mkdir` are not implemented correctly. It should instead rely on `fsspec` methods, instead of defaulting do `Path` methods which only work locally. ### Motivation I'm using xPath to interact with remote objects. ### Your contribution I could try to make a PR. I'm a bit unfamiliar with chaining right now.
40
xPath to implement all operations for Path ### Feature request Current xPath implementation is a great extension of Path in order to work with remote objects. However some methods such as `mkdir` are not implemented correctly. It should instead rely on `fsspec` methods, instead of defaulting do `Path` methods which only work locally. ### Motivation I'm using xPath to interact with remote objects. ### Your contribution I could try to make a PR. I'm a bit unfamiliar with chaining right now. I think https://github.com/fsspec/universal_pathlib is the project you are looking for. `xPath` has the methods often used in dataset scripts, and `mkdir` is not one of them (`dl_manager`'s role is to "interact" with the file system, so using `mkdir` is discouraged).
[ -0.26071634888648987, 0.14145810902118683, -0.06356751918792725, 0.08999864757061005, 0.2066093385219574, -0.3061131238937378, 0.1404217928647995, 0.06778848171234131, 0.1616879403591156, 0.43443983793258667, 0.28756192326545715, 0.6709933876991272, -0.5445631742477417, 0.3812987208366394, 0.18046754598617554, 0.058286529034376144, 0.09200234711170197, 0.02937839739024639, -0.44481879472732544, 0.13996003568172455, -0.3395150601863861, -0.06325369328260422, 0.12926074862480164, 0.11340978741645813, -0.05456051975488663, 0.056917160749435425, -0.2928979694843292, 0.3600824475288391, 0.010732762515544891, -0.5931879281997681, 0.06613615900278091, 0.06989583373069763, 0.4409843385219574, 0.45276564359664917, -0.00010714293603086844, -0.13488221168518066, 0.3724244236946106, 0.07230091840028763, -0.576632559299469, -0.19355377554893494, -0.4555663764476776, -0.010410662740468979, 0.4608546793460846, -0.45732545852661133, 0.17634503543376923, -0.14059516787528992, 0.30118328332901, -0.2412319779396057, 0.030007317662239075, -0.061713654547929764, 0.18799211084842682, 0.061928436160087585, -0.030247151851654053, 0.0029885582625865936, 0.4744836390018463, 0.069173663854599, 0.08218502253293991, 0.043829161673784256, 0.4629189074039459, 0.0941976010799408, -0.3009648025035858, -0.05707613378763199, -0.12293219566345215, -0.21865400671958923, 0.4670484662055969, -0.22010526061058044, 0.3684101700782776, -0.2474527359008789, -0.232820063829422, 0.0655098706483841, 0.2626720368862152, -0.38234683871269226, 0.06507565081119537, -0.1300128549337387, -0.25325992703437805, -0.14759868383407593, -0.00008757412433624268, -0.031187156215310097, -0.22533941268920898, 0.048369601368904114, 0.08689994364976883, 0.06263227760791779, -0.01758420467376709, 0.19941206276416779, 0.08342550694942474, 0.44707831740379333, -0.059944234788417816, -0.14036449790000916, 0.16807131469249725, -0.007265266962349415, 0.12826699018478394, -0.20865046977996826, -0.01577046886086464, -0.13036012649536133, -0.03907960653305054, -0.2028827965259552, 0.4537295699119568, 0.49693959951400757, 0.19448727369308472, 0.43132829666137695, 0.020680144429206848, 0.14527498185634613, -0.05547669902443886, 0.42784032225608826, 0.057505201548337936, 0.316128134727478, 0.15332487225532532, 0.04313882812857628, 0.16687317192554474, 0.002813197672367096, -0.12217473983764648, -0.007064777426421642, -0.10513670742511749, 0.1311434507369995, -0.35245776176452637, 0.488709419965744, 0.03807539492845535, 0.25689393281936646, 0.16484186053276062, -0.2912713885307312, 0.06123681366443634, -0.26937437057495117, 0.4068935513496399, 0.13018475472927094, 0.18483424186706543, 0.04116339609026909, -0.08693767338991165, -0.015961259603500366, 0.2692604660987854, 0.049064211547374725, 0.030940167605876923, 0.11708539724349976, -0.2603577971458435, -0.10197078436613083, -0.041270188987255096, 0.09394878149032593, 0.09275025129318237, -0.3370959758758545, 0.012404411099851131, 0.19427669048309326, 0.10821116715669632, 0.019879240542650223, 0.2647012174129486, -0.15526722371578217, -0.06182462349534035, -0.21564194560050964, -0.1599365770816803, -0.15096022188663483, -0.40571022033691406, 0.06940531730651855, -0.2623318135738373, -0.4970552325248718, 0.10506782680749893, 0.15783052146434784, 0.14721357822418213, -0.12900418043136597, -0.200254425406456, 0.06871498376131058, -0.4977191388607025, -0.09853065013885498, 0.3767252266407013, 0.2386249452829361, 0.01004018634557724, -0.2389622926712036, 0.1623501181602478, 0.5258974432945251, 0.23306292295455933, 0.06204499304294586, -0.0439322404563427, 0.1061050146818161, 0.08316750079393387, 0.06254439055919647, -0.1161816269159317, 0.33551767468452454, -0.22124344110488892, 0.058151230216026306, 0.38111263513565063, -0.4058898687362671, 0.24725358188152313, 0.32550734281539917, -0.30293047428131104, -0.18570584058761597, 0.31390824913978577, 0.01379738375544548, 0.20298820734024048, -0.3865450918674469, -0.45559003949165344, 0.49049434065818787, -0.1182587742805481, 0.07751472294330597, 0.03492794185876846, -0.3487035632133484, 0.35194212198257446, -0.014820583164691925, 0.026844756677746773, 0.2276887148618698, 0.5824271440505981, -0.31600624322891235, 0.23850874602794647, -0.39409735798835754, 0.06732106953859329, 0.16856461763381958, 0.38876429200172424, -0.005852119997143745, 0.025119401514530182, -0.4254339933395386, -0.2754080891609192, 0.03830435127019882, 0.22790494561195374, -0.134052574634552, -0.11289171874523163, -0.22364269196987152, 0.21691851317882538, 0.17801311612129211, -0.15522772073745728, 0.0507478229701519, 0.10987380146980286, 0.21874752640724182, 0.02693941444158554, 0.09060759842395782, -0.3950294852256775, -0.38736918568611145, -0.05298509821295738, 0.023413844406604767, -0.08846185356378555, 0.012170493602752686, -0.07318434864282608, 0.08166207373142242, -0.1781051754951477, 0.2756745517253876, 0.11616094410419464, -0.2396729737520218, 0.10381293296813965, 0.35369548201560974, 0.049752622842788696, -0.1292313188314438, 0.24510574340820312, 0.6029695272445679, 0.07815911620855331, 0.030148304998874664, 0.121144600212574, 0.2536107897758484, 0.23691558837890625, 0.025140836834907532, -0.2496676743030548, 0.16723205149173737, -0.23869258165359497, 0.3146912455558777, 0.28538578748703003, -0.04510197788476944, -0.01614198461174965, -0.19017447531223297, -0.18349704146385193, 0.09325124323368073, 0.2742827534675598, 0.26233333349227905, 0.21293821930885315, 0.13372351229190826, -0.08495019376277924, 0.14483514428138733, 0.19546495378017426, -0.08396929502487183, 0.35267817974090576, 0.25707998871803284, 0.027026228606700897, 0.1631997525691986, 0.036750100553035736, 0.6354020833969116, 0.16475868225097656, 0.3672604560852051, 0.42095762491226196, 0.11711983382701874, 0.559671938419342, 0.041229527443647385, 0.5589801073074341, -0.03178942948579788, -0.13785667717456818, 0.052843738347291946, 0.10891005396842957, 0.11362378299236298, 0.0201885923743248, -0.5414262413978577, -0.1613151580095291, -0.011521624401211739, -0.11385471373796463, 0.05515354126691818, -0.5461500287055969, -0.39110058546066284, -0.06091630086302757, -0.20287957787513733, 0.004375843331217766, -0.18606019020080566, 0.03800351917743683, -0.014283601194620132, -0.39466750621795654, 0.1360497921705246, -0.08044207841157913, 0.24925339221954346, -0.48540636897087097, -0.1968015879392624, -0.24434278905391693, -0.2657220661640167, -0.11204932630062103, -0.01941884681582451, 0.43453726172447205, 0.04956495016813278, 0.13669779896736145, 0.15257760882377625, 0.18954594433307648, -0.2954360842704773, -0.10654953867197037, 0.20953653752803802, 0.1421409249305725, -0.32565778493881226, 0.3690384030342102, -0.40813300013542175, 0.2679770588874817, -0.40927255153656006, 0.07515920698642731, -0.17774374783039093, -0.20180316269397736, -0.00404779240489006, 0.18613241612911224, -0.24157576262950897, -0.3961730897426605, 0.18398356437683105, -0.2943239212036133, -0.36721882224082947, 0.6288654804229736, 0.09720224142074585, 0.3504490852355957, -0.25421464443206787, -0.45907801389694214, -0.05430413782596588, -0.5543015003204346, 0.060164883732795715, 0.3455653488636017, -0.33017557859420776, 0.03452718257904053, -0.19630226492881775, -0.013049883767962456, -0.2725449502468109, -0.271329790353775, -0.23065316677093506, 0.13068902492523193, -0.22598600387573242, -0.34291762113571167, -0.11240143328905106, 0.4167678952217102, 0.07698661834001541, 0.5150286555290222, 0.4405805468559265, 0.4884195923805237, -0.11677300930023193, 0.05957862734794617, -0.16145861148834229, -0.01630747690796852, -0.16713768243789673, -0.12174266576766968, 0.3565199673175812, 0.22926199436187744, 0.1615380048751831, 0.29063501954078674, -0.1343846619129181, 0.10979963093996048, 0.33193060755729675, -0.3268167972564697, 0.31667137145996094, -0.17552798986434937, -0.3309182822704315, -0.11693185567855835, -0.26479899883270264, -0.4769302010536194, 0.24848288297653198, 0.04247930273413658, 0.046819575130939484, -0.1947917342185974, -0.3011765480041504, -0.34654155373573303, -0.19525259733200073, -0.18523931503295898, -0.24635620415210724, 0.14857128262519836, -0.24535717070102692, -0.10676181316375732, -0.03186338394880295, 0.05437174066901207, 0.46131131052970886, 0.37745216488838196, -0.10593420267105103, 0.05408091843128204, -0.11488550901412964, -0.10123032331466675, -0.29986572265625, 0.10262283682823181, -0.03380268067121506, -0.1713603436946869, -0.13479143381118774, -0.2869303226470947, -0.11836182326078415, -0.30330124497413635, 0.2887362241744995, 0.08443543314933777, 0.22128324210643768, -0.16933727264404297, -0.4034265875816345, 0.11577910929918289, 0.38738054037094116, -0.013815708458423615, -0.242131307721138, 0.030026894062757492, -0.11564014106988907, -0.31044113636016846, -0.31078532338142395, 0.09457787126302719, -0.04450172185897827, 0.04846346378326416, -0.05879979580640793, 0.01891973614692688, 0.039824992418289185, -0.22391623258590698, -0.27135491371154785, -0.09520598500967026, -0.1692586988210678, 0.23060038685798645, -0.008887961506843567, -0.11708947271108627, -0.10581745207309723, -0.05726546794176102, -0.2796304225921631, -0.034078266471624374, -0.2134358286857605, 0.0349167063832283, -0.3300926089286804, 0.6764158606529236, 0.2254919558763504, 0.09477490186691284, -0.42315298318862915, 0.27751216292381287, -0.014534150250256062, -0.009463615715503693, 0.588274359703064, 0.14468762278556824, -0.053834907710552216, 0.17083847522735596, -0.16760019958019257, -0.11778619140386581, -0.3408448100090027, -0.5361204147338867, 0.10366065800189972, 0.1791859269142151, 0.2503068745136261, -0.0004958510398864746, 0.3891507387161255, 0.1083253026008606, -0.28906723856925964, 0.2194480299949646, 0.10154622048139572, -0.3956066966056824, 0.1476622074842453, 0.04955107718706131, 0.9117759466171265, 0.3109230399131775, 0.3782355487346649, 0.09487393498420715, -0.46183860301971436, 0.02356034517288208, -0.10801616311073303, -0.003410160541534424, -0.19280624389648438, 0.0974421352148056, -0.1927572786808014, -0.1919381022453308, -0.06097428873181343, 0.1507926881313324, -0.1288919448852539, 0.31102073192596436, -0.17987145483493805, -0.05939946323633194, -0.1569669544696808, 0.5511384606361389, -0.1957680881023407, -0.25662267208099365, -0.12676376104354858, 0.12973079085350037, 0.13494980335235596, -0.1367756873369217, -0.190056711435318, -0.2894125282764435, 0.3744266629219055, -0.20188359916210175, -0.05359507352113724, 0.04799942672252655, -0.5346626043319702, 0.15116944909095764, -0.2675774097442627, -0.15118025243282318, -0.03289148584008217, 0.15164877474308014, -0.15005511045455933, -0.007661871612071991, 0.021677495911717415, -0.08281924575567245, 0.05305501073598862, 0.6464501619338989, -0.059125594794750214, -0.321226567029953, 0.11513352394104004, -0.12277287244796753, 0.35212719440460205, -0.19911861419677734, -0.06747523695230484, -0.19598545134067535, 0.020769834518432617, 0.2614157795906067, 0.25708097219467163, 0.24292618036270142, 0.05710615962743759, 0.2968577742576599, -0.10967051982879639, -0.1739179491996765, 0.11510785669088364, -0.17669640481472015, -0.030347485095262527, 0.3531525433063507, -0.24922387301921844, -0.04884310066699982, -0.13012531399726868, -0.03107069432735443, -0.2782933712005615, 0.2751951217651367, 0.31842294335365295, 0.0026249736547470093, -0.17595364153385162, -0.3328123092651367, 0.42777857184410095, 0.5225250720977783, 0.027644231915473938, 0.186488538980484, -0.40544724464416504, -0.06810353696346283, 0.15940792858600616, 0.333077609539032, 0.20363584160804749, 0.04002232104539871, -0.32983943819999695, -0.12149231135845184, -0.2846004366874695, 0.24667176604270935, -0.05709052458405495, 0.22875651717185974, -0.31870752573013306, 0.11828251928091049, -0.09494639188051224, -0.058172933757305145, -0.3936096429824829, 0.07908261567354202, 0.049734875559806824, -0.014108099043369293, 0.5745620727539062, 0.0974169671535492, 0.1976800411939621, 0.01765693724155426, 0.030338104814291, -0.11050978302955627, 0.04624919965863228, -0.13687369227409363, -0.051749639213085175, 0.12280289828777313, 0.21602550148963928, 0.26949796080589294, -0.013450399041175842, -0.29945921897888184, -0.3204864263534546, -0.15834380686283112, -0.1421501636505127, 0.1341589391231537, -0.2325276881456375, 0.15185996890068054, 0.19977451860904694, -0.009661979973316193, -0.13628548383712769, 0.22521266341209412, 0.10333910584449768, 0.15604065358638763, -0.18546101450920105, 0.18487784266471863, -0.21631351113319397, -0.09564159065485, 0.14551293849945068, 0.26472270488739014, 0.2887894809246063, 0.06366784870624542, 0.3273767828941345, 0.21495498716831207, -0.4903125464916229, -0.05374865233898163, 0.36744189262390137, -0.06787099689245224, 0.05388426035642624, 0.06122848391532898, 0.5210980176925659, 0.16756024956703186, -0.042477548122406006, -0.09929159283638, 0.12952589988708496, -0.08669696003198624, 0.08474378287792206, 0.23252862691879272, -0.0842067152261734, -0.017467975616455078, -0.17524750530719757, -0.13370168209075928, 0.007724635303020477, 0.058750927448272705, -0.04821711406111717, -0.19778099656105042, 0.005364604294300079, -0.02826101705431938, 0.17655114829540253, 0.35562774538993835, 0.3255119025707245, 0.22215354442596436, -0.08472979813814163, 0.5230130553245544, 0.687431812286377, -0.15296058356761932, 0.42463257908821106, -0.03784632682800293, 0.3336334228515625, -0.536426842212677, 0.2913607060909271, -0.22661864757537842, 0.11318589746952057, 0.1864263117313385, -0.17298728227615356, -0.06824488192796707, 0.08387650549411774, 0.3127709627151489, 0.05461154133081436, 0.002652544528245926, -0.14387057721614838, -0.21688812971115112, -0.00836019217967987, -0.11684975028038025, 0.031752169132232666, -0.10836108028888702, 0.29556700587272644, 0.2786063849925995, 0.4256863594055176, -0.1938982903957367, 0.05696190521121025, 0.19887053966522217, 0.31857526302337646, -0.3005687892436981, -0.1516260802745819, 0.2012689709663391, -0.07529809325933456, -0.08930927515029907, 0.2834985554218292, 0.29778996109962463, 0.2972610294818878, -0.42014700174331665, -0.2821914851665497, -0.35329434275627136, 0.04454749822616577, -0.23227576911449432, 0.13540226221084595, -0.09893448650836945, 0.22863781452178955, 0.21091389656066895, 0.10548295825719833, -0.08356451243162155, -0.003654554719105363, 0.12316058576107025, -0.24089600145816803, -0.0022362731397151947, 0.4396517872810364, 0.5642814040184021, -0.014510869979858398, 0.03525114804506302, 0.22386468946933746, -0.4864200949668884, -0.0019279643893241882, 0.31989601254463196, -0.00984220951795578, 0.03482409566640854, -0.010041963309049606, 0.1161162480711937, 0.28743720054626465, 0.17207379639148712, 0.30297091603279114, 0.16385518014431, -0.06163265183568001, -0.18624430894851685, -0.10791031271219254, -0.1708076298236847, 0.15272969007492065, -0.32171106338500977, -0.021937286481261253, -0.062232401221990585, 0.15607941150665283, 0.010158548131585121, -0.03774897754192352, 0.3897898197174072, -0.06434085220098495, 0.18503537774085999, -0.0678609311580658, 0.10823025554418564, -0.10384291410446167, -0.053450170904397964, 0.018021315336227417, -0.22279661893844604, -0.041744984686374664, -0.049063701182603836, 0.02892535924911499, 0.1391627937555313, 0.1718021035194397, -0.16503819823265076, -0.3677094280719757, 0.2328876405954361, 0.05212529003620148, 0.13593456149101257, -0.24018937349319458, -0.11088672280311584, 0.16487838327884674, 0.08434011042118073, -0.2901816666126251, 0.06007983908057213, -0.04816192761063576, -0.44387322664260864, -0.3442975878715515, -0.2566918134689331, -0.5618851780891418, 0.011085588485002518, -0.02443777769804001, 0.3622874915599823, -0.08114171773195267, 0.07359530031681061, -0.07008253037929535, 0.19114963710308075, 0.11613695323467255, 0.13272103667259216, -0.12469874322414398, 0.08067423850297928, -0.1703818142414093, -0.007825355976819992, 0.30441373586654663, -0.190247043967247, -0.18734529614448547, -0.4522865414619446, 0.3703605830669403, 0.15620951354503632, -0.008133210241794586, -0.01651555299758911, -0.2104800045490265, 0.1405486762523651, -0.08939780294895172, -0.10069092363119125, 0.14809902012348175, -0.39441218972206116, -0.09450363367795944, -0.017978232353925705, -0.26207050681114197, 0.11037863045930862, -0.17016302049160004, -0.16491782665252686, -0.17311297357082367 ]
https://github.com/huggingface/datasets/issues/5638
Right is there a difference between UPath and xPath? Typically is xPath less well implemented compared to Upath, ie missing some implementations of some methods? Or are there methods in xPath that are not implemented with UPath?
xPath to implement all operations for Path
### Feature request Current xPath implementation is a great extension of Path in order to work with remote objects. However some methods such as `mkdir` are not implemented correctly. It should instead rely on `fsspec` methods, instead of defaulting do `Path` methods which only work locally. ### Motivation I'm using xPath to interact with remote objects. ### Your contribution I could try to make a PR. I'm a bit unfamiliar with chaining right now.
37
xPath to implement all operations for Path ### Feature request Current xPath implementation is a great extension of Path in order to work with remote objects. However some methods such as `mkdir` are not implemented correctly. It should instead rely on `fsspec` methods, instead of defaulting do `Path` methods which only work locally. ### Motivation I'm using xPath to interact with remote objects. ### Your contribution I could try to make a PR. I'm a bit unfamiliar with chaining right now. Right is there a difference between UPath and xPath? Typically is xPath less well implemented compared to Upath, ie missing some implementations of some methods? Or are there methods in xPath that are not implemented with UPath?
[ 0.10588814318180084, -0.2969135642051697, -0.01885756477713585, 0.046008799225091934, 0.06821458041667938, -0.346849262714386, -0.1141124740242958, -0.10379348695278168, 0.15454407036304474, 0.2673552632331848, 0.440167099237442, 0.4483548104763031, -0.25468242168426514, 0.31508952379226685, 0.09941357374191284, -0.14224189519882202, 0.24287837743759155, -0.18079566955566406, -0.08960381150245667, -0.05552225187420845, -0.4372001886367798, -0.03867645934224129, 0.17127633094787598, 0.07999460399150848, 0.08990778028964996, -0.04862433671951294, -0.25856542587280273, 0.1389518678188324, -0.1909424513578415, -0.5548906326293945, 0.024438679218292236, -0.18830309808254242, 0.24130432307720184, 0.3291506767272949, -0.00011107081809313968, -0.2866823077201843, 0.4402531683444977, 0.256405770778656, -0.4062209725379944, -0.09605222195386887, -0.39369669556617737, 0.0986708551645279, 0.46610692143440247, -0.277280330657959, 0.2780475318431854, -0.2614353597164154, 0.12185174226760864, -0.15546739101409912, 0.07556097954511642, -0.3283216953277588, 0.16740572452545166, -0.0026354119181632996, 0.22175097465515137, 0.061456046998500824, 0.42947930097579956, 0.0828796923160553, -0.11171947419643402, 0.1409093737602234, 0.6414328217506409, 0.2607230842113495, -0.057851776480674744, -0.2090970128774643, -0.005387656390666962, -0.3092198371887207, 0.4966221749782562, -0.3088471591472626, 0.4317101240158081, -0.14953204989433289, -0.2377852499485016, 0.005575699731707573, -0.15257152915000916, 0.25814059376716614, 0.005048859864473343, -0.03849700838327408, -0.2555895149707794, -0.3081032633781433, 0.05998505279421806, -0.05116133391857147, -0.18321682512760162, 0.04327477142214775, 0.11568576842546463, -0.08944198489189148, 0.12081243097782135, 0.39013606309890747, 0.20118191838264465, 0.34778910875320435, -0.08596163243055344, -0.0619751513004303, 0.0021555954590439796, -0.060314077883958817, 0.1720706820487976, -0.21471986174583435, 0.1958070993423462, -0.33341988921165466, -0.05621928349137306, -0.12013466656208038, 0.7054043412208557, 0.6760913729667664, 0.026008732616901398, 0.5814263224601746, -0.012504499405622482, 0.14083345234394073, 0.05000520125031471, 0.34824907779693604, -0.13270996510982513, 0.25706610083580017, 0.20845802128314972, 0.0884658619761467, -0.17802222073078156, 0.03547872230410576, 0.11536869406700134, -0.1472824215888977, -0.08560483157634735, 0.15097591280937195, -0.44545137882232666, 0.6033411026000977, 0.13855533301830292, -0.01522296667098999, 0.23082338273525238, -0.3495694398880005, -0.12863850593566895, -0.2795358896255493, 0.40902236104011536, -0.061534009873867035, 0.292898565530777, 0.06481608003377914, -0.04014686867594719, 0.24070096015930176, 0.21297332644462585, -0.11304908990859985, 0.06627525389194489, 0.10565053671598434, -0.25062650442123413, 0.012723032385110855, -0.07846902310848236, 0.050068821758031845, 0.18773356080055237, -0.15573537349700928, 0.06033637374639511, 0.26801103353500366, 0.022573105990886688, -0.06634808331727982, 0.48334890604019165, -0.3727934956550598, -0.3462511897087097, -0.21695846319198608, -0.0177093967795372, 0.22959721088409424, -0.3295254707336426, 0.1543448269367218, -0.24523939192295074, -0.47466784715652466, 0.327921986579895, 0.12640558183193207, 0.1922367364168167, -0.15561173856258392, -0.02947324514389038, 0.01063954271376133, -0.5279722809791565, 0.16886329650878906, 0.5402036309242249, 0.30160030722618103, -0.012599967420101166, -0.3034299910068512, 0.015422694385051727, 0.18069061636924744, 0.47404158115386963, 0.08491038531064987, 0.22621476650238037, 0.34355756640434265, 0.1082438975572586, 0.2026892602443695, -0.19052323698997498, 0.47305482625961304, -0.0075059011578559875, -0.08175698667764664, 0.210661381483078, -0.3196077346801758, 0.3645508885383606, 0.18690304458141327, -0.18522001802921295, -0.022073455154895782, 0.2263963669538498, -0.14163975417613983, 0.1971275955438614, -0.10152478516101837, -0.14373555779457092, 0.33004704117774963, -0.1802077293395996, -0.1793590784072876, -0.1496666669845581, -0.18743059039115906, 0.44877204298973083, -0.3589046895503998, -0.12331907451152802, 0.28764608502388, 0.25323566794395447, -0.442012220621109, 0.10666583478450775, -0.26695430278778076, -0.09919799864292145, -0.05292898043990135, 0.4345046877861023, -0.02545631304383278, 0.06784394383430481, -0.1726721227169037, 0.192010298371315, -0.12761804461479187, 0.15615540742874146, -0.1987927258014679, -0.19055894017219543, 0.10182061791419983, 0.17109540104866028, 0.12330203503370285, 0.006010481156408787, -0.17955461144447327, 0.0842117965221405, -0.03911788389086723, 0.049146950244903564, -0.12907971441745758, -0.3931307792663574, -0.31051376461982727, -0.30155906081199646, -0.026069214567542076, -0.24321258068084717, 0.0959860160946846, -0.053013332188129425, -0.0025669150054454803, -0.34245383739471436, 0.028601691126823425, 0.2906584143638611, -0.2153727412223816, 0.02186720445752144, 0.3476165533065796, -0.0033514611423015594, -0.25684982538223267, 0.20230288803577423, 0.5805869102478027, 0.2109118103981018, -0.2738298773765564, 0.016868775710463524, 0.1090644896030426, 0.17839890718460083, -0.009191885590553284, -0.20098568499088287, 0.0013685673475265503, -0.2737633287906647, 0.3904283940792084, 0.31839457154273987, -0.09357131272554398, -0.4220171272754669, -0.10271886736154556, -0.2930823862552643, 0.2349715679883957, 0.3910219073295593, 0.4495786130428314, 0.1960458904504776, -0.15407219529151917, -0.06503241509199142, 0.12481843680143356, 0.32440611720085144, -0.06338997185230255, 0.1348625123500824, 0.14915965497493744, 0.17054525017738342, 0.005477994680404663, -0.05140341818332672, 0.27143165469169617, 0.3064139485359192, 0.3467102348804474, 0.39376479387283325, -0.013458075001835823, 0.5052318572998047, 0.019510626792907715, 0.4209323823451996, 0.07539071142673492, -0.3080865442752838, -0.15852020680904388, 0.060889117419719696, 0.34872716665267944, 0.2410801649093628, -0.5105841159820557, -0.2693173289299011, -0.14705036580562592, 0.021092519164085388, -0.10604022443294525, -0.44542962312698364, -0.23173801600933075, -0.18403203785419464, -0.19495435059070587, 0.1054079532623291, -0.32341036200523376, -0.012511815875768661, -0.21886546909809113, -0.22868427634239197, -0.02740303799510002, -0.009330525994300842, 0.15824821591377258, -0.5287064909934998, -0.1880134791135788, -0.09312401711940765, -0.19101949036121368, -0.07083138078451157, 0.0034756697714328766, 0.12010152637958527, 0.017684008926153183, 0.20892825722694397, 0.17967666685581207, 0.04042315483093262, -0.16277220845222473, -0.36585533618927, 0.24669699370861053, 0.21141275763511658, -0.4402685761451721, 0.20933866500854492, -0.35343706607818604, -0.03884704038500786, -0.6227597594261169, 0.19007250666618347, -0.4303973317146301, -0.23594267666339874, -0.05460979416966438, 0.22163930535316467, -0.34641969203948975, -0.2690943479537964, 0.019969426095485687, 0.18055753409862518, -0.216921865940094, 0.6970836520195007, 0.0617944598197937, 0.13402479887008667, -0.13654176890850067, -0.4689924716949463, -0.1374107450246811, -0.4480336308479309, 0.16647979617118835, 0.18399739265441895, -0.3026995062828064, 0.05053624138236046, -0.17444342374801636, -0.0028590955771505833, -0.27378690242767334, -0.17769792675971985, -0.30961403250694275, 0.4604816436767578, 0.010214023292064667, -0.25403332710266113, -0.026663361117243767, 0.44730496406555176, 0.0036522611044347286, 0.27416473627090454, 0.45874953269958496, 0.4065081775188446, -0.14695435762405396, -0.013508997857570648, -0.1936033070087433, -0.06804230809211731, -0.04736471548676491, 0.16931866109371185, 0.3887036442756653, -0.01452423632144928, 0.12990419566631317, 0.18829487264156342, -0.22274303436279297, 0.28307151794433594, 0.26179519295692444, -0.013752906583249569, -0.16809341311454773, -0.3451473116874695, -0.5236784219741821, -0.160488098859787, -0.22735482454299927, -0.5306840538978577, 0.09501978754997253, 0.24800549447536469, 0.10640234500169754, -0.25691020488739014, -0.3851630389690399, -0.19232314825057983, 0.023089386522769928, -0.2865511476993561, 0.194295734167099, 0.423862487077713, -0.34023958444595337, -0.01884005218744278, 0.04008815437555313, 0.1433676928281784, 0.5755695700645447, 0.13661357760429382, -0.05882623791694641, 0.028455432504415512, -0.09459275007247925, -0.18548940122127533, -0.33335524797439575, 0.15468788146972656, -0.035245630890131, -0.162375345826149, -0.018813185393810272, -0.3717310428619385, -0.0863647311925888, -0.21710146963596344, 0.08185625821352005, 0.20571570098400116, -0.018618298694491386, -0.2714306712150574, -0.4710645079612732, 0.013953819870948792, 0.3685789704322815, -0.11145548522472382, -0.47709473967552185, 0.10536706447601318, -0.0831587016582489, -0.1451837569475174, -0.1265941560268402, 0.16472218930721283, 0.014232944697141647, 0.14765283465385437, -0.04663143306970596, -0.03976573795080185, 0.027249306440353394, 0.05917926877737045, -0.37701019644737244, -0.054714642465114594, -0.10901583731174469, 0.2564878761768341, 0.10949882119894028, -0.09405480325222015, 0.12121337652206421, -0.21470850706100464, -0.4239364564418793, -0.20248012244701385, -0.2251943051815033, 0.02853703498840332, -0.1649041622877121, 0.719602108001709, 0.13760705292224884, 0.19988903403282166, -0.15304304659366608, 0.4057334065437317, -0.08429157733917236, 0.10713986307382584, 0.32302916049957275, 0.2794567048549652, 0.03267134726047516, 0.32558852434158325, -0.2881864905357361, -0.00032662972807884216, -0.16907717287540436, -0.70555180311203, 0.19610241055488586, 0.18583160638809204, 0.41143208742141724, 0.19328510761260986, 0.37005874514579773, 0.044893816113471985, -0.2822142541408539, 0.19799542427062988, 0.34204092621803284, -0.12131131440401077, 0.013013094663619995, 0.1346413791179657, 1.0637094974517822, 0.4851950407028198, 0.09251311421394348, 0.2907104790210724, -0.5594121217727661, -0.09799115359783173, 0.03850641846656799, 0.005934711545705795, 0.19031521677970886, 0.006687436252832413, -0.14795216917991638, -0.11914382874965668, 0.13363681733608246, 0.12632539868354797, -0.038081780076026917, 0.30569422245025635, -0.05210062861442566, -0.23274701833724976, -0.12379065155982971, 0.40340399742126465, 0.043226540088653564, -0.11412787437438965, -0.10587522387504578, 0.06839577853679657, 0.306426465511322, 0.030288584530353546, -0.1213032454252243, -0.2203381508588791, 0.2874131500720978, -0.22137868404388428, -0.05218881368637085, 0.2107517123222351, -0.28412926197052, 0.15929317474365234, -0.1450680047273636, -0.2952079772949219, 0.14828628301620483, -0.16195550560951233, 0.16069772839546204, -0.3248644173145294, 0.08612914383411407, -0.18126797676086426, 0.08783269673585892, 0.3323292136192322, -0.052643969655036926, -0.26497241854667664, -0.07057488709688187, -0.23678365349769592, 0.14785340428352356, -0.06389304250478745, -0.17894047498703003, -0.04299136623740196, -0.3108018934726715, 0.2998272776603699, 0.12915614247322083, 0.1318342089653015, 0.17101038992404938, 0.6194712519645691, -0.07168088853359222, -0.15408220887184143, 0.09234865009784698, -0.19293813407421112, 0.183310404419899, 0.10905106365680695, 0.0034806104376912117, -0.034561485052108765, -0.29454505443573, -0.27243104577064514, -0.09637124836444855, 0.027024157345294952, 0.3382550776004791, -0.18403157591819763, -0.24833109974861145, -0.16975674033164978, 0.10049813240766525, 0.2765178978443146, 0.10988721251487732, 0.06797701120376587, -0.482541024684906, 0.34607067704200745, 0.15652921795845032, 0.01412943284958601, 0.3346685469150543, 0.14530178904533386, -0.1902686059474945, 0.24595220386981964, -0.1425970494747162, 0.314134418964386, 0.06257803738117218, -0.009930374100804329, -0.6667600274085999, 0.0795024037361145, 0.06506519019603729, -0.02875632606446743, -0.32311153411865234, -0.06800203025341034, 0.24084743857383728, 0.038510508835315704, 0.43261200189590454, -0.09901493042707443, 0.1761346459388733, -0.024747394025325775, 0.032653436064720154, -0.3264845609664917, 0.20654337108135223, -0.08590473234653473, -0.037518054246902466, 0.12453849613666534, 0.28365007042884827, 0.05956728011369705, 0.0817730575799942, -0.2633962631225586, 0.0851307064294815, -0.023180652409791946, -0.25136926770210266, 0.2688886523246765, -0.1397220343351364, 0.09477834403514862, 0.10836169123649597, 0.15528038144111633, -0.2949402630329132, 0.1091906726360321, 0.11665494740009308, 0.151108056306839, -0.14929144084453583, -0.07065318524837494, -0.024875663220882416, -0.11447907984256744, -0.08769941329956055, 0.2078171819448471, 0.13230346143245697, 0.17907802760601044, 0.20858579874038696, 0.3020066022872925, -0.3469722270965576, -0.39082860946655273, 0.04399333894252777, 0.03189573436975479, 0.23192350566387177, 0.14639201760292053, 0.37122753262519836, 0.13408704102039337, 0.08300567418336868, 0.05787035450339317, 0.216201052069664, -0.057390134781599045, -0.12133146077394485, 0.29650282859802246, -0.15306192636489868, 0.11936859786510468, -0.03994322940707207, -0.133243590593338, -0.27627503871917725, -0.00586661696434021, -0.026779374107718468, -0.2211664617061615, 0.16109809279441833, 0.017833812162280083, 0.3280878961086273, 0.23373816907405853, 0.28892073035240173, -0.34623467922210693, -0.021556556224822998, 0.40366899967193604, 0.7436085939407349, -0.08626741915941238, 0.6029035449028015, 0.3014214038848877, -0.017209704965353012, -0.4355611801147461, 0.38317450881004333, -0.08656755834817886, 0.17071644961833954, 0.08239645510911942, 0.10867772996425629, -0.011338196694850922, 0.08816929161548615, 0.3436885476112366, 0.23708181083202362, -0.04250624403357506, -0.11508064717054367, -0.13714754581451416, -0.26077955961227417, -0.2622857987880707, 0.09565024077892303, -0.05467844381928444, 0.518834114074707, 0.21942494809627533, 0.22505396604537964, -0.2652018070220947, -0.03232055529952049, 0.046597618609666824, 0.55198073387146, -0.2911263406276703, -0.29572588205337524, 0.1931675374507904, -0.023655887693166733, -0.013150086626410484, 0.5057165026664734, 0.13200326263904572, 0.3514578342437744, -0.3617094159126282, -0.2647097110748291, -0.18887263536453247, 0.0036172568798065186, -0.04979124292731285, 0.2377135455608368, -0.1374807059764862, 0.29895830154418945, -0.050251904875040054, 0.07476162910461426, -0.054083216935396194, 0.28919559717178345, -0.06734561920166016, -0.09392382949590683, -0.2685234546661377, 0.2841666340827942, 0.44438210129737854, 0.13085857033729553, 0.14570912718772888, 0.24306663870811462, -0.3085628151893616, -0.10545352101325989, 0.08895526826381683, 0.030414536595344543, -0.16267552971839905, 0.09666396677494049, 0.10216584801673889, 0.04304909333586693, 0.16463983058929443, 0.5380592942237854, 0.204942986369133, -0.04506748914718628, -0.2108202576637268, 0.3381420969963074, -0.1869024932384491, -0.039705634117126465, -0.3438747227191925, -0.10595856606960297, -0.023112405091524124, 0.040463823825120926, 0.12095367908477783, -0.12893223762512207, -0.03389040380716324, -0.34123870730400085, 0.43950262665748596, -0.07148263603448868, 0.2401241660118103, 0.24149569869041443, -0.013594481162726879, -0.034853070974349976, 0.007695801556110382, -0.1963452845811844, 0.20431536436080933, -0.05558255314826965, 0.19198697805404663, -0.03734306991100311, 0.02535947412252426, -0.4735836088657379, 0.14405733346939087, 0.1289350837469101, 0.28192687034606934, -0.18874529004096985, -0.3356889486312866, 0.41875770688056946, -0.18441924452781677, -0.09018424153327942, 0.4671477675437927, -0.09665374457836151, -0.4421759247779846, -0.1578228771686554, -0.38964784145355225, -0.2611915171146393, 0.22297096252441406, -0.3396172523498535, 0.19794484972953796, -0.1726759970188141, 0.11659061908721924, 0.07492122799158096, 0.05552561953663826, -0.011015612632036209, 0.07550747692584991, -0.11734849959611893, -0.027836874127388, -0.326846718788147, 0.06963913887739182, 0.1396765112876892, -0.19061648845672607, 0.11949972808361053, -0.5175037980079651, 0.28523433208465576, 0.3515253961086273, 0.12750670313835144, -0.09380383789539337, -0.49849146604537964, 0.09651128947734833, -0.10879497230052948, -0.07831718772649765, 0.1644297093153, -0.3117069900035858, -0.35732993483543396, 0.0257364884018898, -0.10489572584629059, -0.07588688284158707, -0.12048783153295517, -0.04684872552752495, -0.0135006383061409 ]
https://github.com/huggingface/datasets/issues/5638
`xPath` is an internal component (it doesn't have a leading underscore in the name, but it should) not meant to be used outside of `datasets`, and it's only tested on HTTP URLs, not S3.
xPath to implement all operations for Path
### Feature request Current xPath implementation is a great extension of Path in order to work with remote objects. However some methods such as `mkdir` are not implemented correctly. It should instead rely on `fsspec` methods, instead of defaulting do `Path` methods which only work locally. ### Motivation I'm using xPath to interact with remote objects. ### Your contribution I could try to make a PR. I'm a bit unfamiliar with chaining right now.
34
xPath to implement all operations for Path ### Feature request Current xPath implementation is a great extension of Path in order to work with remote objects. However some methods such as `mkdir` are not implemented correctly. It should instead rely on `fsspec` methods, instead of defaulting do `Path` methods which only work locally. ### Motivation I'm using xPath to interact with remote objects. ### Your contribution I could try to make a PR. I'm a bit unfamiliar with chaining right now. `xPath` is an internal component (it doesn't have a leading underscore in the name, but it should) not meant to be used outside of `datasets`, and it's only tested on HTTP URLs, not S3.
[ 0.05578465759754181, -0.15365546941757202, -0.09678196161985397, 0.11886224150657654, 0.1655081808567047, -0.4093300700187683, 0.0890563577413559, -0.09222526848316193, 0.050067104399204254, 0.264506995677948, 0.125657320022583, 0.6189979910850525, -0.3620953857898712, 0.4884300231933594, 0.11595254391431808, 0.200798898935318, 0.19901436567306519, 0.053832292556762695, -0.1933961808681488, 0.09220901876688004, -0.46596479415893555, 0.05245693773031235, 0.061553120613098145, 0.016446782276034355, 0.05869974195957184, 0.14987367391586304, -0.1663368195295334, 0.17770671844482422, -0.11596179753541946, -0.6422548890113831, 0.12757951021194458, 0.06867487728595734, 0.30367934703826904, 0.4420534372329712, -0.00010893060243688524, -0.2586401700973511, 0.42218372225761414, 0.16471517086029053, -0.5407122373580933, -0.044465914368629456, -0.5825091004371643, 0.18668341636657715, 0.4931477904319763, -0.3487541079521179, 0.049487099051475525, -0.0988856703042984, 0.1658603996038437, -0.20624443888664246, 0.1101919561624527, -0.061079930514097214, 0.17235533893108368, 0.11250238865613937, -0.19596004486083984, 0.1347840428352356, 0.6705656051635742, 0.19132155179977417, -0.0688721314072609, -0.08945108950138092, 0.47070541977882385, 0.1934303641319275, -0.08375769853591919, 0.10068744421005249, -0.04879269748926163, -0.18630217015743256, 0.5329475402832031, -0.3460986912250519, 0.2629767954349518, -0.21788319945335388, -0.3786683678627014, 0.044748980551958084, 0.22982466220855713, -0.12427166104316711, -0.16442853212356567, -0.03252936154603958, -0.3098996579647064, -0.2576400637626648, 0.02805682271718979, -0.09270516037940979, -0.1483451873064041, 0.022687437012791634, -0.10632240027189255, -0.08305107802152634, -0.08315275609493256, 0.34493765234947205, 0.12830756604671478, 0.43911468982696533, -0.2569732367992401, -0.08094640076160431, -0.0017129825428128242, -0.04796135798096657, 0.330473393201828, -0.19765964150428772, 0.0710935890674591, -0.17547941207885742, -0.14641882479190826, -0.24856045842170715, 0.5483236312866211, 0.54168701171875, 0.07270275056362152, 0.5095581412315369, -0.0723019689321518, 0.24443930387496948, 0.12181231379508972, 0.3724583089351654, -0.11226675659418106, 0.08763273060321808, 0.38752180337905884, -0.06022968888282776, 0.0672762393951416, 0.16154415905475616, 0.0625477135181427, -0.12426100671291351, -0.15244969725608826, 0.07130491733551025, -0.49186307191848755, 0.45980024337768555, 0.17323656380176544, 0.10039393603801727, 0.16386619210243225, -0.29775089025497437, -0.007010124623775482, -0.2498430758714676, 0.39764609932899475, 0.100340835750103, 0.2065383940935135, 0.003387918695807457, 0.007349081337451935, 0.07679896056652069, 0.22457101941108704, -0.0745888501405716, 0.03405780345201492, 0.049093909561634064, -0.30294573307037354, -0.10153115540742874, 0.004324868321418762, 0.07494001090526581, 0.17895722389221191, -0.35817670822143555, -0.006904203444719315, 0.17539969086647034, -0.0445127859711647, 0.08281701058149338, 0.38780006766319275, -0.2254946529865265, -0.1940893530845642, -0.17636710405349731, -0.23052862286567688, 0.233751118183136, -0.3070183992385864, -0.037783149629831314, -0.30866608023643494, -0.48031431436538696, 0.11895368248224258, 0.14243362843990326, -0.08246354758739471, -0.17339707911014557, -0.11210061609745026, 0.01619912125170231, -0.5446658134460449, 0.10301518440246582, 0.4929083585739136, 0.3237927258014679, -0.1665617972612381, -0.25794318318367004, 0.1811203807592392, 0.43071022629737854, 0.4942176640033722, 0.027000829577445984, -0.03708229213953018, 0.0636301040649414, 0.1221008151769638, 0.12655986845493317, -0.1467280089855194, 0.29513758420944214, -0.05033744126558304, 0.15958714485168457, 0.31097665429115295, -0.2304614633321762, 0.22896793484687805, 0.2526024878025055, -0.16525201499462128, -0.05059312283992767, 0.2443363219499588, -0.08214305341243744, 0.08688679337501526, -0.28569352626800537, -0.26391875743865967, 0.6790580153465271, 0.042196303606033325, -0.004140868782997131, -0.03716710954904556, -0.332913339138031, 0.31226295232772827, 0.008220680058002472, -0.07536274194717407, 0.2261369824409485, 0.5187318921089172, -0.3516322374343872, 0.13384485244750977, -0.43899771571159363, -0.04697725921869278, 0.1253882497549057, 0.7518119215965271, -0.04389847815036774, 0.06282487511634827, -0.3873157203197479, -0.20811177790164948, 0.07167080044746399, 0.20833751559257507, -0.24377839267253876, -0.09522780776023865, -0.11082787066698074, 0.15906748175621033, 0.10792304575443268, -0.16919797658920288, -0.14201535284519196, 0.1221967339515686, 0.09845589101314545, 0.17627963423728943, -0.039611198008060455, -0.3467388451099396, -0.4876541495323181, -0.05526532232761383, -0.01977379247546196, -0.14081689715385437, -0.03536132350564003, -0.04998312145471573, 0.06970182061195374, -0.27784463763237, 0.042194947600364685, 0.28436630964279175, -0.2639425992965698, 0.09767842292785645, 0.3947582542896271, 0.14637631177902222, 0.018874837085604668, 0.18211080133914948, 0.5989716649055481, 0.05717777460813522, -0.14331641793251038, 0.059221021831035614, 0.11420846730470657, 0.21812500059604645, 0.0970640629529953, -0.2049427479505539, 0.10787396878004074, -0.39263811707496643, 0.3534078001976013, 0.1863519847393036, -0.08486929535865784, -0.12208084762096405, -0.22013521194458008, -0.4100742042064667, 0.26603710651397705, 0.28492775559425354, 0.37579217553138733, -0.03485040366649628, -0.009145460091531277, -0.08929407596588135, 0.028330055996775627, 0.27338653802871704, -0.06296925991773605, 0.2347610890865326, 0.29288291931152344, 0.002344980835914612, 0.026665039360523224, 0.14914926886558533, 0.5194619297981262, 0.19907695055007935, 0.37471699714660645, 0.4522138833999634, 0.16355028748512268, 0.5744234323501587, 0.0046987384557724, 0.5902880430221558, 0.12402626872062683, -0.09999150037765503, -0.04834741726517677, 0.17862233519554138, 0.2161225825548172, 0.020416878163814545, -0.5422303676605225, -0.12699425220489502, -0.20237502455711365, -0.2665959298610687, 0.05690176039934158, -0.38857099413871765, -0.2901269793510437, 0.07368254661560059, -0.2330269068479538, 0.048836808651685715, -0.07793039828538895, 0.08128084242343903, -0.12848463654518127, -0.3803108036518097, 0.025217507034540176, -0.02941158413887024, 0.26877471804618835, -0.4591166377067566, -0.29138627648353577, -0.279421865940094, -0.1775830090045929, 0.006237952969968319, 0.0003294162452220917, 0.16264192759990692, 0.02927856519818306, 0.16745363175868988, 0.0765077993273735, 0.19988039135932922, -0.30368781089782715, -0.27114009857177734, 0.19067826867103577, 0.15101875364780426, -0.22510085999965668, 0.37450477480888367, -0.4025794267654419, 0.12001089006662369, -0.3834688365459442, 0.1968502402305603, -0.2538638114929199, -0.25834089517593384, 0.01397407054901123, 0.1382162868976593, -0.295307993888855, -0.3784935474395752, 0.07860338687896729, 0.030471758916974068, -0.2888714075088501, 0.7649986147880554, -0.07842306047677994, 0.3168080747127533, -0.19720888137817383, -0.37323707342147827, 0.006517916917800903, -0.6028528213500977, 0.14361321926116943, 0.1415919065475464, -0.38322609663009644, 0.09722113609313965, -0.11672946810722351, 0.008712856099009514, -0.1637209951877594, -0.17080044746398926, -0.1616952270269394, 0.38125529885292053, -0.17140741646289825, -0.23817019164562225, -0.19271427392959595, 0.44270724058151245, 0.030275411903858185, 0.45927220582962036, 0.5101194977760315, 0.3586118221282959, -0.11841634660959244, -0.05359663814306259, -0.15380816161632538, -0.20465201139450073, 0.039102692157030106, 0.09597346186637878, 0.2413182258605957, 0.3040391802787781, 0.2985905110836029, 0.3267754316329956, -0.25443217158317566, 0.04787849262356758, 0.43809008598327637, -0.1851852387189865, 0.10147057473659515, -0.051934678107500076, -0.37998393177986145, -0.0682525485754013, -0.38525503873825073, -0.5518639087677002, 0.14934569597244263, 0.03383180871605873, 0.030629709362983704, -0.2534978985786438, -0.33306169509887695, -0.44107159972190857, -0.014938414096832275, -0.18169192969799042, -0.027278799563646317, 0.29867497086524963, -0.30467918515205383, -0.1380557268857956, 0.11727117002010345, 0.19692306220531464, 0.6018570065498352, 0.15296460688114166, 0.07816258072853088, -0.001636948436498642, -0.03463544696569443, -0.2783892750740051, -0.2846272885799408, 0.21545124053955078, -0.13260848820209503, -0.15900970995426178, -0.028863638639450073, -0.2709118127822876, -0.11878509074449539, -0.36044371128082275, 0.33177274465560913, -0.12406992167234421, 0.16990172863006592, -0.18729901313781738, -0.4449705481529236, -0.2843073606491089, 0.28704071044921875, -0.2165047526359558, -0.465135395526886, 0.09519708156585693, 0.16116517782211304, -0.22885465621948242, -0.2313317060470581, 0.06256351619958878, -0.18107987940311432, 0.18448664247989655, -0.04618651419878006, -0.007222481071949005, -0.02356865257024765, -0.13280808925628662, -0.258465439081192, 0.09494064003229141, -0.177031472325325, 0.32647401094436646, -0.002828925848007202, -0.09853130578994751, 0.11547018587589264, -0.09680841863155365, -0.16217640042304993, -0.12433527410030365, -0.11617541313171387, 0.03629125654697418, -0.24732135236263275, 0.4178120791912079, 0.12878140807151794, 0.3445866107940674, -0.12489990890026093, 0.11646458506584167, -0.12840387225151062, 0.15653268992900848, 0.6474727392196655, 0.22743156552314758, 0.023218650370836258, 0.1868741363286972, -0.2802576422691345, -0.025539454072713852, -0.2851530909538269, -0.43355655670166016, 0.1600227952003479, 0.13855350017547607, 0.5990960001945496, 0.23248666524887085, 0.395702600479126, -0.05686899274587631, -0.29596126079559326, 0.15046055614948273, 0.2403719574213028, -0.3398556411266327, 0.003193255513906479, 0.252316415309906, 0.9059309959411621, 0.38145411014556885, 0.17760787904262543, 0.2875117361545563, -0.5334155559539795, 0.06683425605297089, -0.06948557496070862, -0.11815676093101501, 0.04324869066476822, 0.13568350672721863, -0.15418896079063416, -0.1990405023097992, 0.13403937220573425, 0.10371185094118118, -0.11357944458723068, 0.23991501331329346, -0.0937432199716568, -0.19590729475021362, -0.08458417654037476, 0.5324819087982178, -0.01177019439637661, -0.2823948860168457, -0.1538964956998825, 0.14709916710853577, 0.026221999898552895, 0.0038592740893363953, -0.09232376515865326, -0.2823508381843567, 0.3863927125930786, -0.24850288033485413, 0.012400031089782715, 0.3375064730644226, -0.37387675046920776, 0.00840199738740921, -0.19022119045257568, -0.19248932600021362, 0.21081994473934174, -0.1211160272359848, -0.10141563415527344, -0.022312823683023453, -0.09094760566949844, -0.05578233674168587, 0.13014154136180878, 0.43500617146492004, -0.1904502660036087, -0.38805708289146423, -0.06557835638523102, -0.19554609060287476, 0.2226925492286682, -0.23123779892921448, -0.014825895428657532, -0.23842725157737732, 0.1177089512348175, 0.13859805464744568, 0.11687972396612167, 0.21705414354801178, -0.00556434690952301, 0.361518919467926, -0.14347079396247864, -0.22068354487419128, 0.14588280022144318, -0.16507835686206818, -0.05113232880830765, 0.26533952355384827, -0.17394231259822845, -0.045312561094760895, -0.20917737483978271, 0.02471264638006687, -0.2826012670993805, 0.16020441055297852, 0.27501630783081055, 0.037410542368888855, -0.2386210858821869, -0.299577534198761, 0.2699061930179596, 0.32459235191345215, 0.18719586730003357, 0.006381537765264511, -0.47653716802597046, -0.04741036891937256, 0.06504958868026733, 0.15287993848323822, 0.18490642309188843, 0.05901078134775162, -0.16806906461715698, 0.036641985177993774, 0.04421776533126831, 0.2537507712841034, 0.09883518517017365, 0.221639946103096, -0.3615334928035736, 0.03676316887140274, 0.08034335821866989, -0.17057856917381287, -0.37869343161582947, 0.09344492852687836, 0.12872081995010376, 0.17379766702651978, 0.38065099716186523, -0.06573916971683502, 0.2717583477497101, -0.11923903971910477, 0.027424465864896774, -0.11761511862277985, 0.06762923300266266, -0.15833944082260132, -0.11720383167266846, 0.12739618122577667, 0.3227140009403229, 0.2169228196144104, 0.12341190874576569, -0.19474181532859802, -0.3132581114768982, -0.09433986246585846, -0.22186905145645142, 0.24519482254981995, -0.2532525658607483, 0.3397537171840668, 0.0810803771018982, -0.11614850908517838, -0.13742172718048096, 0.048136234283447266, 0.07571090012788773, 0.0344296358525753, -0.2229030430316925, 0.13898809254169464, -0.15036576986312866, -0.0954110249876976, -0.02667882852256298, 0.17159849405288696, 0.14423030614852905, 0.2379048764705658, 0.27311429381370544, 0.12489758431911469, -0.5129345655441284, -0.26300889253616333, 0.286408007144928, 0.02938055247068405, 0.07027044892311096, 0.09034213423728943, 0.33938759565353394, 0.19433967769145966, 0.013711832463741302, -0.09900161623954773, -0.09643574059009552, -0.001542709767818451, 0.04275006055831909, 0.09468821436166763, -0.1642703413963318, 0.10893850028514862, -0.03971928358078003, -0.11898303031921387, -0.1617516726255417, 0.17388178408145905, -0.0032542869448661804, -0.3310391306877136, -0.06264784932136536, -0.08816604316234589, 0.3093613386154175, 0.16207322478294373, 0.24459953606128693, 0.01981157436966896, 0.059022143483161926, 0.304395467042923, 0.6626660823822021, 0.1495295614004135, 0.4266342520713806, 0.1617291271686554, 0.14725399017333984, -0.6491341590881348, 0.22581858932971954, -0.02303118258714676, 0.12099519371986389, -0.01658552885055542, -0.040986254811286926, -0.013289544731378555, -0.025896266102790833, 0.30280205607414246, 0.20310145616531372, -0.10585072636604309, -0.2280975580215454, -0.05898769944906235, 0.09653480350971222, -0.15913958847522736, 0.01685507968068123, -0.19247764348983765, 0.4688476324081421, 0.30145224928855896, 0.3756418526172638, -0.1889801025390625, 0.035196106880903244, 0.11745398491621017, 0.5672045946121216, -0.4314097464084625, -0.18405434489250183, 0.05143137648701668, -0.1560489386320114, -0.16268035769462585, 0.351921945810318, 0.14187750220298767, 0.2672739028930664, -0.3844274878501892, -0.16340363025665283, -0.2641080617904663, -0.09737986326217651, -0.18545404076576233, 0.22347889840602875, -0.02114969491958618, 0.29839834570884705, 0.1612745225429535, 0.13788488507270813, -0.1465456783771515, 0.11279881745576859, -0.04448358714580536, -0.03324204683303833, -0.13989314436912537, 0.26399439573287964, 0.4230853021144867, 0.021606355905532837, 0.1285780817270279, 0.28298163414001465, -0.49897247552871704, -0.107643261551857, 0.3252483606338501, 0.07247382402420044, 0.007003940641880035, -0.026609214022755623, 0.12037591636180878, 0.13867639005184174, 0.27083778381347656, 0.25575998425483704, 0.26331791281700134, -0.1400107890367508, -0.14130151271820068, 0.1006513386964798, -0.21722650527954102, 0.1370057761669159, -0.3334144055843353, 0.14498929679393768, 0.18344122171401978, 0.022719666361808777, 0.18914535641670227, -0.1480274200439453, 0.28916022181510925, -0.345342218875885, 0.2866513729095459, -0.09846174716949463, 0.3324839174747467, -0.022952117025852203, -0.023448368534445763, 0.12443029880523682, -0.13734011352062225, -0.015128875151276588, 0.048836175352334976, -0.04592197388410568, 0.18104875087738037, 0.03994469344615936, 0.032277047634124756, -0.37865909934043884, 0.30521270632743835, 0.003998517990112305, 0.13157029449939728, -0.2503257989883423, -0.11477179825305939, 0.15287767350673676, -0.10708332061767578, -0.10098431259393692, 0.2458392232656479, -0.13582131266593933, -0.32766103744506836, -0.16340363025665283, -0.18073709309101105, -0.5363529324531555, 0.18579378724098206, -0.07138896733522415, 0.16529488563537598, 0.11445450782775879, 0.21430152654647827, -0.11912954598665237, 0.21674659848213196, -0.11136220395565033, 0.0950135886669159, -0.24316060543060303, -0.12184499949216843, -0.36444970965385437, -0.1181262657046318, 0.3836870789527893, -0.42458680272102356, -0.20996861159801483, -0.35535958409309387, 0.5082921981811523, 0.25298723578453064, -0.0548197478055954, -0.06117476522922516, -0.18727922439575195, 0.1376112997531891, -0.09178285300731659, -0.16516198217868805, 0.30083927512168884, -0.27575087547302246, -0.15187883377075195, -0.01488696038722992, -0.024390462785959244, 0.0286506786942482, 0.0025312229990959167, -0.22656740248203278, -0.2954576909542084 ]
https://github.com/huggingface/datasets/issues/5638
Okay I understand that xPath won't support my usecase. What I was perhaps getting to is why not use UPath in `datasets` instead of `xPath` if UPath seems to have strictly more robust implementations.
xPath to implement all operations for Path
### Feature request Current xPath implementation is a great extension of Path in order to work with remote objects. However some methods such as `mkdir` are not implemented correctly. It should instead rely on `fsspec` methods, instead of defaulting do `Path` methods which only work locally. ### Motivation I'm using xPath to interact with remote objects. ### Your contribution I could try to make a PR. I'm a bit unfamiliar with chaining right now.
34
xPath to implement all operations for Path ### Feature request Current xPath implementation is a great extension of Path in order to work with remote objects. However some methods such as `mkdir` are not implemented correctly. It should instead rely on `fsspec` methods, instead of defaulting do `Path` methods which only work locally. ### Motivation I'm using xPath to interact with remote objects. ### Your contribution I could try to make a PR. I'm a bit unfamiliar with chaining right now. Okay I understand that xPath won't support my usecase. What I was perhaps getting to is why not use UPath in `datasets` instead of `xPath` if UPath seems to have strictly more robust implementations.
[ -0.1287553906440735, -0.06510835886001587, -0.02137572690844536, 0.02306228131055832, 0.18530508875846863, -0.3098457455635071, 0.1321871429681778, -0.030221281573176384, 0.09268324077129364, 0.33449670672416687, 0.35445636510849, 0.5077074766159058, -0.31559765338897705, 0.440651535987854, 0.1622503250837326, -0.043174609541893005, 0.17429684102535248, -0.056131623685359955, -0.2678067088127136, 0.06268960237503052, -0.44635018706321716, -0.1686660498380661, 0.08979584276676178, 0.025374021381139755, -0.041099242866039276, 0.01586633361876011, -0.3187045454978943, 0.14548175036907196, -0.16297101974487305, -0.5454603433609009, 0.02553640305995941, -0.02274348959326744, 0.4115660786628723, 0.31766477227211, -0.00011081712727900594, -0.13112841546535492, 0.4060618579387665, 0.16612213850021362, -0.5811851024627686, -0.021578878164291382, -0.5229710340499878, 0.09163639694452286, 0.3397291898727417, -0.4109746217727661, 0.21331186592578888, -0.21485668420791626, 0.24117010831832886, -0.36487099528312683, 0.027633456513285637, -0.133346825838089, 0.15845772624015808, 0.07077374309301376, 0.06913170218467712, 0.052035968750715256, 0.3920849561691284, 0.1470339596271515, -0.11188608407974243, -0.007564496248960495, 0.6795605421066284, 0.13999725878238678, -0.20619219541549683, -0.08877608180046082, -0.0018811151385307312, -0.37828120589256287, 0.42335763573646545, -0.31857046484947205, 0.2551296651363373, -0.09409964084625244, -0.21105721592903137, -0.0034403176978230476, 0.05788741260766983, 0.08151398599147797, -0.17219004034996033, -0.06707058846950531, -0.3496311902999878, -0.28281858563423157, -0.011175379157066345, -0.003973543643951416, -0.19650569558143616, 0.24033497273921967, -0.03270469605922699, -0.04210740327835083, 0.0013773143291473389, 0.38105854392051697, 0.19672104716300964, 0.24448373913764954, -0.0806284174323082, 0.04483497142791748, 0.05271359905600548, 0.015956206247210503, 0.26029664278030396, -0.226424902677536, 0.14655975997447968, -0.4025709927082062, -0.15105126798152924, -0.19207629561424255, 0.6257187128067017, 0.7411274313926697, 0.15397465229034424, 0.5479957461357117, -0.09039990603923798, 0.20585507154464722, 0.11281966418027878, 0.31839364767074585, 0.004858119413256645, 0.1983383297920227, 0.27442803978919983, 0.07006864249706268, 0.0115628931671381, 0.013507362455129623, 0.030503742396831512, -0.11960840225219727, -0.147749125957489, 0.22012294828891754, -0.42357996106147766, 0.5414180755615234, 0.15534061193466187, 0.1000823974609375, 0.11602652817964554, -0.4327836036682129, -0.07100114971399307, -0.34053319692611694, 0.4648107886314392, 0.07917515933513641, 0.28874653577804565, 0.06623055040836334, -0.09800687432289124, 0.18316879868507385, 0.30896154046058655, -0.23074033856391907, -0.0034655816853046417, 0.11946607381105423, -0.3864120841026306, -0.08728783577680588, 0.06379026919603348, 0.018350858241319656, 0.1663830578327179, -0.339121550321579, 0.0482490211725235, 0.2850281596183777, -0.0402635782957077, -0.13635943830013275, 0.3991342782974243, -0.2474236786365509, -0.399417906999588, -0.2212938815355301, -0.09589606523513794, 0.19029036164283752, -0.3144565224647522, 0.16648340225219727, -0.30296027660369873, -0.5759007930755615, 0.28333014249801636, 0.10815722495317459, 0.10430494695901871, -0.2610310912132263, -0.26826247572898865, 0.07222956418991089, -0.48033642768859863, 0.07942481338977814, 0.4091690182685852, 0.34086060523986816, -0.156876340508461, -0.24373015761375427, 0.007400229573249817, 0.36959367990493774, 0.27471017837524414, 0.16307494044303894, 0.13592171669006348, 0.2403842806816101, 0.20339104533195496, 0.2256270945072174, -0.2392599731683731, 0.4641955494880676, -0.10177160799503326, -0.08858564496040344, 0.3122687041759491, -0.33448493480682373, 0.10861212015151978, 0.18588757514953613, -0.17482100427150726, -0.11597763001918793, 0.3439498245716095, -0.05087284743785858, 0.1888670176267624, -0.2556774914264679, -0.09987156093120575, 0.38698896765708923, -0.13140612840652466, -0.08341547101736069, -0.02030685544013977, -0.2798551321029663, 0.48857977986335754, -0.10257764905691147, -0.13986995816230774, 0.3253304958343506, 0.39953044056892395, -0.44718873500823975, 0.2023165374994278, -0.4023759365081787, -0.04827503859996796, -0.041555024683475494, 0.46830064058303833, -0.08332858234643936, 0.09405725449323654, -0.2556508183479309, -0.019449051469564438, 0.07240195572376251, 0.31412026286125183, -0.14455513656139374, -0.27570396661758423, -0.03659258782863617, 0.13713496923446655, 0.19438806176185608, -0.11785132437944412, -0.13530761003494263, 0.07313303649425507, 0.023661043494939804, 0.020492419600486755, -0.09663685411214828, -0.47398462891578674, -0.2517390549182892, -0.3516264259815216, -0.09470070898532867, -0.16049563884735107, 0.12146195769309998, -0.04595623165369034, 0.147396981716156, -0.3325362801551819, 0.12880516052246094, 0.17394956946372986, -0.22573088109493256, 0.04392702504992485, 0.2994081974029541, 0.1121213510632515, -0.23450838029384613, 0.22552579641342163, 0.5537238717079163, 0.11507593840360641, -0.2972828149795532, -0.013750891201198101, 0.08688991516828537, 0.2682555317878723, 0.003105178475379944, -0.3315565288066864, -0.03835226595401764, -0.2966778576374054, 0.3479757010936737, 0.21467450261116028, -0.08405712246894836, -0.17379339039325714, -0.16805565357208252, -0.32212111353874207, 0.19919870793819427, 0.3271750211715698, 0.4496443271636963, 0.23841941356658936, 0.0474175363779068, -0.1408003568649292, 0.19115588068962097, 0.3998643755912781, -0.00834810733795166, 0.24689607322216034, 0.22249123454093933, 0.12754423916339874, 0.046285778284072876, 0.15985269844532013, 0.44496554136276245, 0.3340470790863037, 0.42680904269218445, 0.3635237216949463, 0.07586929947137833, 0.5340975522994995, 0.03461407124996185, 0.4947437345981598, 0.06326311826705933, -0.19762173295021057, -0.15081754326820374, 0.2024162858724594, 0.30492299795150757, -0.015072867274284363, -0.5099601149559021, -0.21058426797389984, -0.04850398004055023, -0.13675981760025024, 0.06066344678401947, -0.5612996816635132, -0.29351377487182617, -0.0583704337477684, -0.05787690728902817, 0.12195397168397903, -0.2041197270154953, 0.02713870257139206, -0.1691519320011139, -0.31358012557029724, 0.023539815098047256, -0.039749834686517715, 0.26283085346221924, -0.3826743960380554, -0.2994689345359802, -0.1835595667362213, -0.1447630226612091, -0.01742367073893547, -0.009933661669492722, 0.24571111798286438, -0.023353727534413338, 0.21696999669075012, 0.21641983091831207, 0.04598593711853027, -0.37459421157836914, -0.30503931641578674, 0.1423395723104477, 0.10736996680498123, -0.29481273889541626, 0.3452676236629486, -0.3334137797355652, -0.0261734239757061, -0.5170475244522095, 0.15561914443969727, -0.3606567978858948, -0.27300575375556946, 0.030869580805301666, 0.16756492853164673, -0.30710622668266296, -0.2720670700073242, 0.015047658234834671, 0.05656992644071579, -0.4046519994735718, 0.787729024887085, 0.012557350099086761, 0.22220399975776672, -0.09771139919757843, -0.4232422113418579, -0.07866687327623367, -0.5474262237548828, 0.07527147233486176, 0.13106125593185425, -0.35025331377983093, 0.07615526020526886, -0.04672955721616745, -0.07428121566772461, -0.2778531312942505, -0.20797887444496155, -0.3333163559436798, 0.5818342566490173, -0.02263946831226349, -0.20392027497291565, -0.16197443008422852, 0.4504043459892273, 0.11714807152748108, 0.41444632411003113, 0.4034891128540039, 0.34355872869491577, -0.09916463494300842, -0.0855095237493515, -0.15840420126914978, -0.043896179646253586, -0.04401542991399765, 0.03395050764083862, 0.3845236599445343, 0.10308636724948883, 0.3351842761039734, 0.26333072781562805, -0.15477678179740906, 0.15602554380893707, 0.4240911900997162, -0.16176992654800415, 0.030729806050658226, -0.29520371556282043, -0.6280794143676758, -0.07678791135549545, -0.2948044538497925, -0.5078513026237488, 0.15028733015060425, 0.12950532138347626, 0.034049250185489655, -0.27078741788864136, -0.2489684820175171, -0.2166917324066162, -0.05761134251952171, -0.23795877397060394, 0.08640296757221222, 0.36106568574905396, -0.176162451505661, -0.00197417289018631, 0.10744583606719971, 0.1178421899676323, 0.4798372983932495, 0.11963766813278198, -0.05508572980761528, 0.08454024791717529, -0.19431442022323608, -0.06539224833250046, -0.47320133447647095, 0.22592760622501373, -0.01871008798480034, 0.026830989867448807, 0.029095441102981567, -0.23885712027549744, -0.04713895544409752, -0.1624377965927124, 0.31942659616470337, 0.024204755201935768, 0.08982820808887482, -0.31049999594688416, -0.4963023066520691, -0.12179313600063324, 0.535635769367218, -0.12151721119880676, -0.29765602946281433, 0.03098662570118904, 0.020836489275097847, -0.28907310962677, -0.2097429484128952, 0.21341410279273987, 0.040162764489650726, 0.1787574589252472, -0.16912545263767242, 0.07388520985841751, -0.017670847475528717, -0.06855003535747528, -0.39508453011512756, 0.09162353724241257, -0.09812578558921814, 0.2503255307674408, 0.018306829035282135, -0.25443264842033386, 0.11634685099124908, -0.08766251802444458, -0.4150789976119995, -0.19144907593727112, -0.22643759846687317, 0.060551390051841736, -0.26058658957481384, 0.7437992691993713, 0.3118579089641571, 0.34399959444999695, -0.24040263891220093, 0.23329652845859528, -0.09952385723590851, 0.13913904130458832, 0.5275793671607971, 0.2979457378387451, -0.04734363406896591, 0.21497458219528198, -0.1890886127948761, -0.09798211604356766, -0.2927490770816803, -0.498273104429245, 0.13826194405555725, 0.2120625078678131, 0.33889514207839966, 0.06979145109653473, 0.4144088625907898, 0.02873685210943222, -0.255588173866272, 0.3236556351184845, 0.4012976288795471, -0.26028478145599365, 0.06474378705024719, 0.08338868618011475, 1.0638861656188965, 0.39718300104141235, 0.20392072200775146, 0.29830867052078247, -0.3898792862892151, 0.023315902799367905, -0.06096452847123146, -0.04148950055241585, 0.027313411235809326, -0.08202869445085526, -0.2124137282371521, -0.17026451230049133, 0.23488858342170715, 0.2261483520269394, -0.0881345197558403, 0.34163421392440796, 0.034130796790122986, -0.2142675668001175, -0.05485934019088745, 0.4665389955043793, -0.05025987699627876, -0.2285807579755783, -0.19228899478912354, 0.06888141483068466, 0.24157129228115082, -0.09582090377807617, -0.07778418809175491, -0.22269515693187714, 0.3238934278488159, -0.27186694741249084, -0.0768510177731514, 0.12611770629882812, -0.4055458605289459, 0.21287645399570465, -0.2566447854042053, -0.1891944855451584, 0.221013605594635, -0.060398414731025696, 0.054262783378362656, -0.0939696878194809, -0.008983179926872253, -0.15878595411777496, 0.035684335976839066, 0.4194142818450928, -0.07177068293094635, -0.3861357569694519, -0.005291011184453964, -0.19604063034057617, 0.17267104983329773, -0.157703697681427, -0.1571654975414276, -0.2587568759918213, -0.11769478768110275, 0.29289937019348145, 0.11029365658760071, 0.05100453644990921, 0.045578762888908386, 0.47046133875846863, -0.10024998337030411, -0.21388985216617584, 0.0837843045592308, -0.09022876620292664, 0.1592724472284317, 0.2594831585884094, -0.13516011834144592, -0.11148197203874588, -0.23028689622879028, -0.1090148463845253, -0.25686711072921753, 0.1351047307252884, 0.2830258905887604, -0.14361906051635742, -0.24893565475940704, -0.2329886555671692, 0.22397904098033905, 0.32493069767951965, 0.057948999106884, 0.04424966871738434, -0.415976881980896, 0.24124209582805634, 0.17896442115306854, 0.08485102653503418, 0.1694006770849228, -0.04355959966778755, -0.17890875041484833, 0.09584234654903412, -0.22606217861175537, 0.36553096771240234, -0.039559707045555115, 0.08438229560852051, -0.39089450240135193, 0.07247000187635422, -0.01938476413488388, -0.14647121727466583, -0.3452390730381012, 0.0019286014139652252, 0.16358384490013123, 0.085810586810112, 0.5057196617126465, -0.10369507968425751, 0.23981675505638123, -0.03637252002954483, 0.010312344878911972, -0.1561180055141449, 0.05016091465950012, -0.1092340499162674, -0.025770559906959534, 0.1477409452199936, 0.36706340312957764, 0.18785592913627625, 0.07652798295021057, -0.31458330154418945, -0.2193533480167389, -0.08409526199102402, -0.21175068616867065, 0.3945883810520172, -0.23414860665798187, 0.17691195011138916, 0.17918963730335236, 0.0000628344714641571, -0.24129322171211243, 0.0777897834777832, 0.1745692491531372, 0.025407494977116585, -0.19881543517112732, 0.05088905245065689, -0.06328094005584717, -0.08962409198284149, -0.0408145971596241, 0.19222894310951233, 0.16602706909179688, 0.2017931491136551, 0.2890341281890869, 0.23869693279266357, -0.3282860517501831, -0.24144484102725983, 0.20428593456745148, 0.07524634897708893, 0.16328120231628418, 0.10084030777215958, 0.3602024018764496, 0.14428657293319702, -0.07604457437992096, -0.047444943338632584, 0.2551765441894531, -0.019600169733166695, 0.052571170032024384, 0.27962401509284973, -0.04745782911777496, 0.05025877058506012, -0.05935203284025192, -0.1976078301668167, -0.2517332434654236, 0.011810701340436935, -0.07807023823261261, -0.11129210144281387, 0.04061958193778992, -0.07512037456035614, 0.2861039340496063, 0.3736962676048279, 0.36121827363967896, 0.022192664444446564, -0.06915007531642914, 0.5005503296852112, 0.7082115411758423, -0.06386256963014603, 0.4240616261959076, 0.1503109186887741, 0.1477186381816864, -0.5452339053153992, 0.3092580735683441, -0.13084670901298523, 0.16647794842720032, 0.0839942991733551, 0.00553034245967865, 0.06611000001430511, 0.15481913089752197, 0.22091154754161835, 0.1335557997226715, -0.04647228866815567, -0.12279057502746582, -0.08442653715610504, -0.13521765172481537, -0.3292015790939331, -0.04014832526445389, -0.06797067821025848, 0.4690299332141876, 0.21829700469970703, 0.3259335160255432, -0.3708629012107849, 0.10026282072067261, 0.09628379344940186, 0.5565845966339111, -0.3388528823852539, -0.2802300751209259, 0.12814155220985413, -0.047315631061792374, 0.020730210468173027, 0.47430935502052307, 0.18087224662303925, 0.31723812222480774, -0.22753052413463593, -0.2894385755062103, -0.35819679498672485, -0.05454210937023163, -0.26622462272644043, 0.29862093925476074, -0.18358275294303894, 0.3167555034160614, 0.2132050096988678, 0.04335089027881622, -0.057224057614803314, 0.1951155662536621, 0.034748077392578125, -0.037403404712677, -0.37044665217399597, 0.23828689754009247, 0.4996786415576935, -0.005888216197490692, 0.23920199275016785, 0.25838029384613037, -0.250183641910553, -0.10911714285612106, 0.3597249388694763, -0.06002180278301239, -0.035587601363658905, -0.024624455720186234, 0.0917966216802597, 0.0771607905626297, 0.15852439403533936, 0.4539669156074524, 0.26624977588653564, -0.11483800411224365, -0.171021968126297, 0.09825576841831207, -0.2906405031681061, 0.03545399382710457, -0.2715655565261841, 0.04324977472424507, -0.00047878921031951904, 0.1305517703294754, 0.2386700063943863, -0.11623605340719223, 0.0648043304681778, -0.24364140629768372, 0.3855395019054413, -0.10046254843473434, 0.20073114335536957, 0.1959517002105713, 0.023438436910510063, 0.05511407554149628, -0.22726646065711975, -0.07199160754680634, 0.19810262322425842, -0.055040426552295685, 0.15099871158599854, 0.02214987576007843, -0.026585862040519714, -0.47466209530830383, 0.18247583508491516, 0.13986626267433167, 0.20974744856357574, -0.1445624977350235, -0.16805154085159302, 0.18939535319805145, -0.22893773019313812, -0.16893991827964783, 0.3265610933303833, -0.07228167355060577, -0.3708563446998596, -0.20139655470848083, -0.3586069941520691, -0.2702717185020447, 0.10735366493463516, -0.19777236878871918, 0.27172377705574036, -0.1098577082157135, 0.22220587730407715, -0.11621615290641785, 0.20434367656707764, -0.05642865598201752, 0.17731505632400513, -0.1654340922832489, -0.10652127861976624, -0.27476704120635986, -0.10538457334041595, 0.31504470109939575, -0.20629753172397614, -0.132782444357872, -0.45447197556495667, 0.2821792960166931, 0.4223012924194336, 0.07489632070064545, -0.07768835127353668, -0.48667261004447937, 0.15845902264118195, -0.12262885272502899, -0.07561913132667542, 0.2643461525440216, -0.3939245641231537, -0.18367746472358704, 0.06690526008605957, 0.037186622619628906, -0.11381830275058746, -0.08927583694458008, -0.06956805288791656, -0.20582018792629242 ]
https://github.com/huggingface/datasets/issues/5638
It seems like `universal_pathlib` does not support `fsspec` URL chaining (`::` is the chaining symbol) and "compression" filesystems (e.g., `zip`), but this is what we need to access and stream files from within an archive (e.g., we want to stream URLs such as this one: `zip://data.parquet::https://www.dummyurl.com/archive.zip`)
xPath to implement all operations for Path
### Feature request Current xPath implementation is a great extension of Path in order to work with remote objects. However some methods such as `mkdir` are not implemented correctly. It should instead rely on `fsspec` methods, instead of defaulting do `Path` methods which only work locally. ### Motivation I'm using xPath to interact with remote objects. ### Your contribution I could try to make a PR. I'm a bit unfamiliar with chaining right now.
46
xPath to implement all operations for Path ### Feature request Current xPath implementation is a great extension of Path in order to work with remote objects. However some methods such as `mkdir` are not implemented correctly. It should instead rely on `fsspec` methods, instead of defaulting do `Path` methods which only work locally. ### Motivation I'm using xPath to interact with remote objects. ### Your contribution I could try to make a PR. I'm a bit unfamiliar with chaining right now. It seems like `universal_pathlib` does not support `fsspec` URL chaining (`::` is the chaining symbol) and "compression" filesystems (e.g., `zip`), but this is what we need to access and stream files from within an archive (e.g., we want to stream URLs such as this one: `zip://data.parquet::https://www.dummyurl.com/archive.zip`)
[ -0.12860679626464844, -0.031514376401901245, -0.0025739483535289764, 0.06532163918018341, 0.09610670804977417, -0.2821705937385559, -0.2330639362335205, -0.004487598314881325, 0.08044566214084625, 0.2499510794878006, 0.2878105044364929, 0.4719870686531067, -0.4721558392047882, 0.2921271324157715, 0.07082372158765793, -0.05301103740930557, 0.09549444913864136, 0.04752437025308609, -0.2138931155204773, 0.08384664356708527, -0.46093225479125977, 0.043724291026592255, 0.11201339960098267, 0.061845675110816956, 0.165957510471344, 0.12299497425556183, -0.2015284150838852, 0.32996436953544617, -0.11208634823560715, -0.47465088963508606, 0.05776602029800415, -0.047525953501462936, 0.3115558922290802, 0.1890561729669571, -0.00010933610610663891, -0.1979970932006836, 0.47586536407470703, 0.14042124152183533, -0.43631094694137573, -0.28574123978614807, -0.36287569999694824, 0.07186443358659744, 0.4734572470188141, -0.30912381410598755, 0.15024644136428833, -0.3115685284137726, 0.35103335976600647, -0.3078826665878296, 0.07135096937417984, -0.015198998153209686, 0.13132590055465698, 0.011236242949962616, 0.015007704496383667, 0.13326068222522736, 0.5904130935668945, 0.07375693321228027, -0.01873677596449852, -0.1632833331823349, 0.4587680697441101, 0.27226388454437256, -0.24920636415481567, -0.030891070142388344, 0.08931820839643478, -0.3641638159751892, 0.3710988163948059, -0.35670650005340576, 0.33245226740837097, -0.16474828124046326, -0.3739672303199768, -0.11133620887994766, -0.08812277019023895, -0.17027297616004944, -0.08976545929908752, 0.16279911994934082, -0.3456568121910095, -0.3795124888420105, -0.06604531407356262, 0.04283542186021805, -0.19729001820087433, 0.07254793494939804, 0.014745369553565979, 0.010087873786687851, -0.09588776528835297, 0.3372096121311188, 0.4632262885570526, 0.3533526659011841, -0.03358925133943558, -0.02255985513329506, 0.20897448062896729, 0.1477852761745453, 0.11678507924079895, -0.21431580185890198, 0.13028636574745178, -0.08753546327352524, 0.03215677663683891, -0.0648803859949112, 0.5109346508979797, 0.6186703443527222, 0.09986231476068497, 0.5778254866600037, -0.020858772099018097, 0.16750183701515198, 0.00412556529045105, 0.398005872964859, -0.16214314103126526, 0.17227239906787872, 0.19900572299957275, -0.12167103588581085, -0.10773696005344391, 0.13545000553131104, -0.004044048488140106, -0.14618492126464844, -0.08091607689857483, 0.2521114647388458, -0.6552981734275818, 0.5348873138427734, -0.09727700054645538, 0.1659313440322876, 0.3801002502441406, -0.3615942895412445, -0.038855839520692825, -0.2548215091228485, 0.4117283523082733, 0.007935162633657455, 0.1783047616481781, 0.2466760128736496, -0.015246503055095673, 0.0734657570719719, 0.17100316286087036, -0.06681405007839203, -0.01900455914437771, 0.19240105152130127, -0.4067710041999817, -0.06504835188388824, -0.03003828600049019, -0.07816343009471893, 0.12589260935783386, -0.24058665335178375, 0.0030954014509916306, 0.18724605441093445, 0.018368378281593323, -0.04119081795215607, 0.2624542713165283, -0.24787026643753052, -0.24096255004405975, -0.19515541195869446, 0.11554299294948578, 0.1668345183134079, -0.3223048448562622, -0.04736999422311783, -0.3153931498527527, -0.5290958881378174, 0.3327587842941284, 0.11141802370548248, 0.12476237118244171, 0.005485651083290577, 0.0027620308101177216, 0.08130853623151779, -0.6876639127731323, 0.04448981583118439, 0.35195639729499817, 0.28621622920036316, -0.1059923991560936, -0.20853695273399353, 0.14608652889728546, 0.23666054010391235, 0.46353232860565186, -0.024033553898334503, -0.015641722828149796, 0.14639562368392944, 0.33205336332321167, 0.22600412368774414, -0.19410578906536102, 0.17958515882492065, -0.07609499245882034, 0.012404277920722961, 0.44235652685165405, -0.049155522137880325, 0.30908364057540894, 0.28947070240974426, -0.11086788028478622, -0.06501436978578568, 0.3160840570926666, -0.18190491199493408, 0.2536606192588806, -0.2290845811367035, -0.26161429286003113, 0.5501807332038879, -0.027884583920240402, -0.05903107672929764, -0.15477481484413147, -0.41722068190574646, 0.3654486835002899, -0.1349615752696991, -0.10994631052017212, 0.2673889100551605, 0.436623215675354, -0.3179726302623749, 0.2234419584274292, -0.4223458766937256, -0.0387226901948452, 0.08020371198654175, 0.44216811656951904, -0.037538278847932816, 0.13113932311534882, -0.1861151158809662, 0.10272637754678726, 0.033298879861831665, -0.03960178792476654, -0.25192347168922424, -0.03095008060336113, -0.04875151440501213, 0.28644153475761414, 0.11120977252721786, -0.009918447583913803, -0.20401912927627563, 0.04799917712807655, 0.08202409744262695, 0.09412185847759247, 0.06711775809526443, -0.4576246738433838, -0.4544832110404968, -0.16176751255989075, -0.0361727811396122, -0.2818821370601654, -0.06382392346858978, -0.03825107216835022, 0.08860640227794647, -0.23915383219718933, 0.15000024437904358, 0.1559397429227829, -0.22778856754302979, 0.019971881061792374, 0.2968067228794098, 0.1865820288658142, -0.07105549424886703, 0.12767213582992554, 0.631681501865387, 0.18549586832523346, -0.39108186960220337, 0.06209708750247955, 0.42999890446662903, 0.2736407518386841, 0.03659887611865997, -0.19074279069900513, 0.06500477343797684, -0.25686484575271606, 0.3061619699001312, 0.33068540692329407, -0.15308594703674316, -0.06362254172563553, -0.12970836460590363, -0.27164724469184875, 0.38256096839904785, 0.3872644007205963, 0.3935536742210388, 0.2187393307685852, -0.06390649080276489, -0.03120025247335434, -0.153895765542984, 0.060839757323265076, 0.06433963775634766, 0.01000151690095663, 0.48656079173088074, 0.1477717012166977, 0.0029774531722068787, 0.07511953264474869, 0.2315961867570877, 0.1521376520395279, 0.4268021881580353, 0.3961695730686188, 0.16526667773723602, 0.4625598192214966, -0.07024934142827988, 0.5163305401802063, -0.05099739879369736, -0.271004855632782, -0.06421799957752228, 0.16552595794200897, 0.3032994568347931, -0.10128029435873032, -0.5510250329971313, -0.17587777972221375, -0.11833822727203369, -0.09080459922552109, 0.06994511932134628, -0.42540523409843445, -0.35056746006011963, 0.08878262341022491, -0.1459593027830124, 0.1914743185043335, -0.12368422001600266, 0.11878956854343414, 0.0149314496666193, -0.41787511110305786, 0.00016864389181137085, -0.0836525559425354, 0.23826932907104492, -0.4479818344116211, -0.1639111191034317, -0.3005325496196747, -0.1807643473148346, -0.05772753059864044, -0.030496058985590935, 0.22068539261817932, 0.00908149778842926, 0.053310640156269073, 0.33438724279403687, 0.18057505786418915, -0.08306220918893814, -0.20226849615573883, 0.19240513443946838, 0.20539209246635437, -0.4852639138698578, 0.24121171236038208, -0.3883798122406006, 0.1977464258670807, -0.533528745174408, 0.19191908836364746, -0.3889034688472748, -0.13166505098342896, 0.04924473911523819, 0.1577112376689911, -0.1598893404006958, -0.4430564343929291, 0.11128321290016174, -0.05073823034763336, -0.34090742468833923, 0.7950348258018494, -0.06721658259630203, 0.3737657070159912, -0.0713609978556633, -0.47875648736953735, -0.1241166740655899, -0.5343489050865173, 0.03352529555559158, 0.3038528263568878, -0.4434666335582733, 0.1125677302479744, -0.06798816472291946, -0.07245172560214996, -0.2860966920852661, -0.3144489526748657, -0.29485267400741577, 0.5022468566894531, -0.041290976107120514, -0.039486922323703766, -0.149414524435997, 0.23506765067577362, 0.04663008078932762, 0.3380586802959442, 0.45586737990379333, 0.31719154119491577, -0.1117810606956482, 0.04352496564388275, 0.005433589220046997, 0.053072184324264526, 0.01683672145009041, 0.14431101083755493, 0.4041396677494049, 0.14633531868457794, 0.2431376427412033, 0.3308813273906708, -0.14851613342761993, 0.25346609950065613, 0.5629391074180603, -0.1449226289987564, 0.05027031525969505, -0.10876688361167908, -0.3537067174911499, -0.19225101172924042, -0.3842739164829254, -0.6363711357116699, 0.25803253054618835, 0.24508719146251678, 0.06001146882772446, -0.22017516195774078, -0.15690843760967255, -0.3213251233100891, -0.06588812172412872, -0.0964101031422615, 0.05484098196029663, 0.2981852889060974, -0.34307196736335754, -0.02593066543340683, 0.12525548040866852, 0.10811466723680496, 0.6023612022399902, 0.33740320801734924, -0.05691211298108101, 0.13828910887241364, 0.08525528758764267, -0.05926728993654251, -0.2493477463722229, 0.12087160348892212, -0.006094362586736679, -0.15320003032684326, -0.19255441427230835, -0.33909446001052856, -0.16002561151981354, -0.24049586057662964, 0.09965309500694275, 0.09939935058355331, 0.12949030101299286, -0.17915114760398865, -0.47007811069488525, -0.05785660445690155, 0.29140543937683105, -0.05112107843160629, -0.5884866714477539, 0.22031812369823456, 0.22189797461032867, -0.32641205191612244, -0.14501377940177917, -0.10741597414016724, -0.16677768528461456, 0.1449459195137024, -0.023951273411512375, 0.013097018003463745, 0.00674813985824585, -0.0850815623998642, -0.26200059056282043, -0.04293377324938774, -0.02486395090818405, 0.27855563163757324, 0.08615447580814362, -0.04957003891468048, -0.17096266150474548, -0.014651291072368622, -0.43230336904525757, -0.013076519593596458, -0.2973548471927643, -0.10192716121673584, -0.23215439915657043, 0.5448614358901978, -0.11392217129468918, 0.133879154920578, -0.21540623903274536, 0.16607290506362915, -0.17048755288124084, 0.16334952414035797, 0.5420078039169312, 0.2324088215827942, -0.041551340371370316, 0.14539144933223724, -0.24246922135353088, -0.08677121251821518, -0.2298572063446045, -0.3595656454563141, 0.025056317448616028, -0.08189745992422104, 0.3263905942440033, 0.12163195013999939, 0.4659979045391083, 0.02410385012626648, -0.2117680162191391, 0.5006063580513, 0.027263924479484558, -0.2958325147628784, 0.1617569774389267, 0.09715723991394043, 1.0703622102737427, 0.33506646752357483, 0.11128421872854233, 0.12702399492263794, -0.5936636924743652, -0.03737249970436096, -0.19863948225975037, -0.0003604404628276825, -0.0005003362894058228, -0.048310376703739166, -0.20471608638763428, -0.10156837105751038, 0.2353413999080658, 0.07230638712644577, -0.02614723891019821, 0.24777737259864807, -0.03301534801721573, -0.30160918831825256, 0.10148274898529053, 0.50546795129776, -0.08616290241479874, -0.20085562765598297, -0.2918943166732788, 0.12063875049352646, 0.10955668985843658, 0.016735509037971497, -0.07216358184814453, -0.4154377281665802, 0.44373834133148193, -0.3322392404079437, -0.04892398416996002, 0.32516390085220337, -0.5325594544410706, 0.19592347741127014, -0.22091659903526306, -0.14046171307563782, -0.06458345055580139, -0.08321972191333771, -0.24835188686847687, -0.16093572974205017, -0.019705388695001602, -0.1304706335067749, 0.08332426846027374, 0.37901636958122253, -0.18536227941513062, -0.285361647605896, -0.11898592114448547, -0.20539122819900513, 0.3892585039138794, -0.14459457993507385, -0.2882766127586365, -0.2644043266773224, 0.06993475556373596, 0.05102035403251648, 0.39597225189208984, 0.404410719871521, -0.020913708955049515, 0.359688937664032, -0.24167655408382416, -0.09461218863725662, 0.07426850497722626, -0.20882882177829742, -0.01635165512561798, 0.16830411553382874, -0.20233024656772614, -0.05274336785078049, -0.20987989008426666, -0.11988718807697296, -0.3197937309741974, 0.19698959589004517, 0.16659867763519287, -0.022190719842910767, -0.232639342546463, -0.16058611869812012, 0.2778703570365906, 0.36367368698120117, -0.02646864950656891, -0.01742008700966835, -0.41700056195259094, 0.03082972764968872, 0.02681838348507881, 0.31076323986053467, 0.26567980647087097, 0.15775030851364136, -0.26282617449760437, -0.12479893863201141, -0.07676931470632553, 0.2523205876350403, -0.13666953146457672, 0.0961882621049881, -0.3724324703216553, 0.24071790277957916, 0.09846692532300949, -0.13976861536502838, -0.33923444151878357, 0.105267234146595, 0.24973788857460022, -0.01135089248418808, 0.3143325448036194, -0.050486695021390915, 0.3407396972179413, 0.009856227785348892, -0.03905315697193146, -0.023424534127116203, 0.001086607575416565, -0.08629676699638367, -0.14780385792255402, 0.13841645419597626, 0.3453669250011444, 0.09534870088100433, -0.0373733714222908, -0.0894392728805542, -0.22919531166553497, -0.046259406954050064, -0.32253652811050415, 0.23487751185894012, -0.3142037093639374, 0.1318429857492447, 0.19956636428833008, 0.1554020643234253, -0.32778966426849365, 0.08622802793979645, 0.06150791049003601, 0.37517672777175903, -0.14507462084293365, 0.01531587541103363, -0.19638177752494812, -0.13136959075927734, -0.16384506225585938, 0.11332239210605621, 0.3045564293861389, 0.15106633305549622, 0.3196517825126648, 0.31665733456611633, -0.4718616008758545, -0.2016313374042511, 0.2637486159801483, -0.08092491328716278, 0.24529790878295898, 0.061208873987197876, 0.2933449149131775, 0.11654894798994064, 0.007092386484146118, 0.01726962998509407, -0.13320176303386688, 0.13918115198612213, -0.08733093738555908, 0.08811120688915253, -0.08634169399738312, -0.0071036964654922485, -0.14163713157176971, -0.14524592459201813, -0.20149889588356018, 0.20473770797252655, 0.06961598992347717, -0.28169548511505127, 0.11425764858722687, 0.04995736479759216, -0.07797056436538696, 0.09789463877677917, 0.27667436003685, -0.3371948301792145, -0.10573350638151169, 0.47427046298980713, 0.7903178930282593, 0.06326870620250702, 0.2670283913612366, 0.004677444696426392, 0.028719905763864517, -0.5421987771987915, 0.4200271964073181, 0.1280205398797989, 0.08853444457054138, 0.3555765151977539, 0.12469097226858139, -0.024257998913526535, 0.12201124429702759, 0.4144195020198822, 0.33079877495765686, -0.03367842733860016, 0.05605874955654144, -0.0748034119606018, -0.17726734280586243, -0.09425708651542664, 0.07289862632751465, 0.04687795788049698, 0.4170617461204529, 0.28315433859825134, 0.3905698359012604, -0.1836491972208023, -0.041528720408678055, 0.24398177862167358, 0.5226335525512695, -0.36256033182144165, -0.05342768132686615, 0.29502636194229126, -0.17361144721508026, 0.03656672313809395, 0.19860264658927917, 0.00964703131467104, 0.1909448802471161, -0.34239432215690613, -0.14634262025356293, -0.24909943342208862, 0.049763791263103485, -0.041211482137441635, 0.17649692296981812, 0.13388144969940186, 0.2309495508670807, 0.20944523811340332, 0.07240530103445053, -0.07740931212902069, 0.18763382732868195, -0.16420191526412964, -0.03758274018764496, -0.03144775331020355, 0.4800403118133545, 0.6289069652557373, 0.18316484987735748, 0.16792944073677063, 0.15443110466003418, -0.45612749457359314, -0.07593093812465668, 0.20345641672611237, 0.020377684384584427, -0.06954587996006012, 0.18233203887939453, 0.09406997263431549, 0.2723536491394043, 0.08616142719984055, 0.43257594108581543, 0.03499390184879303, -0.21525965631008148, -0.3831028342247009, 0.1691417396068573, -0.15788018703460693, 0.08369053900241852, -0.20250064134597778, 0.0697275772690773, 0.027619726955890656, 0.10099507868289948, 0.16937324404716492, -0.2845601439476013, 0.17511866986751556, -0.34599241614341736, 0.23074263334274292, -0.0058990418910980225, 0.3910352885723114, 0.11350423097610474, 0.016458971425890923, -0.012374479323625565, -0.08675568550825119, -0.03136075660586357, 0.05775533616542816, -0.017278563231229782, 0.20290911197662354, -0.10540065169334412, -0.23375815153121948, -0.48999953269958496, -0.01513320580124855, 0.05014985054731369, 0.022193366661667824, -0.22082442045211792, -0.14724595844745636, 0.3495601713657379, 0.09511369466781616, -0.019541647285223007, 0.1440799981355667, -0.07747043669223785, -0.2909700274467468, -0.17879313230514526, -0.2774535119533539, -0.5821051001548767, 0.22895380854606628, -0.07886257022619247, -0.04331032559275627, -0.10992737114429474, 0.17386850714683533, -0.14198343455791473, 0.1382664442062378, -0.12819963693618774, 0.17065030336380005, -0.16755390167236328, -0.06351494789123535, -0.12424332648515701, -0.023468658328056335, 0.2768145799636841, -0.2938177287578583, -0.10999715328216553, -0.23269906640052795, 0.3862655758857727, 0.27489209175109863, 0.17760619521141052, -0.049215033650398254, -0.3530808091163635, 0.0719197541475296, -0.10153598338365555, -0.08951420336961746, 0.12451454997062683, -0.29265666007995605, -0.15802380442619324, -0.057831358164548874, -0.24866917729377747, 0.12095747888088226, -0.11951760947704315, -0.08209680020809174, -0.20798364281654358 ]
https://github.com/huggingface/datasets/issues/5637
Hi! Yes, only `torch` is currently supported. Unlike `Dataset`, `IterableDataset` is not PyArrow-backed, so we cannot simply call `to_numpy` on the underlying subtables to format them numerically. Instead, we must manually convert examples to (numeric) arrays while preserving consistency with `Dataset`, which is not trivial, so this is still a to-do.
IterableDataset with_format does not support 'device' keyword for jax
### Describe the bug As seen here: https://huggingface.co/docs/datasets/use_with_jax dataset.with_format() supports the keyword 'device', to put data on a specific device when loaded as jax. However, when called on an IterableDataset, I got the error `TypeError: with_format() got an unexpected keyword argument 'device'` Looking over the code, it seems IterableDataset support only pytorch and no support for jax device keyword? https://github.com/huggingface/datasets/blob/fc5c84f36684343bff3e424cb0fd1ac5ecdd66da/src/datasets/iterable_dataset.py#L1029 ### Steps to reproduce the bug 1. Load an IterableDataset (tested in streaming mode) 2. Call with_format('jax',device=device) ### Expected behavior I expect to call `with_format('jax', device=device)` as per [documentation](https://huggingface.co/docs/datasets/use_with_jax) without error ### Environment info Tested with installing newest (dev) and also pip release (2.10.1). - `datasets` version: 2.10.2.dev0 - Platform: Linux-5.15.89+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - Huggingface_hub version: 0.12.1 - PyArrow version: 11.0.0 - Pandas version: 1.3.5
51
IterableDataset with_format does not support 'device' keyword for jax ### Describe the bug As seen here: https://huggingface.co/docs/datasets/use_with_jax dataset.with_format() supports the keyword 'device', to put data on a specific device when loaded as jax. However, when called on an IterableDataset, I got the error `TypeError: with_format() got an unexpected keyword argument 'device'` Looking over the code, it seems IterableDataset support only pytorch and no support for jax device keyword? https://github.com/huggingface/datasets/blob/fc5c84f36684343bff3e424cb0fd1ac5ecdd66da/src/datasets/iterable_dataset.py#L1029 ### Steps to reproduce the bug 1. Load an IterableDataset (tested in streaming mode) 2. Call with_format('jax',device=device) ### Expected behavior I expect to call `with_format('jax', device=device)` as per [documentation](https://huggingface.co/docs/datasets/use_with_jax) without error ### Environment info Tested with installing newest (dev) and also pip release (2.10.1). - `datasets` version: 2.10.2.dev0 - Platform: Linux-5.15.89+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - Huggingface_hub version: 0.12.1 - PyArrow version: 11.0.0 - Pandas version: 1.3.5 Hi! Yes, only `torch` is currently supported. Unlike `Dataset`, `IterableDataset` is not PyArrow-backed, so we cannot simply call `to_numpy` on the underlying subtables to format them numerically. Instead, we must manually convert examples to (numeric) arrays while preserving consistency with `Dataset`, which is not trivial, so this is still a to-do.
[ 0.18542805314064026, -0.5949118137359619, 0.11138474196195602, 0.07916231453418732, 0.43124842643737793, 0.05424875020980835, 0.6368939876556396, 0.19857464730739594, -0.4296218156814575, -0.1477355659008026, -0.21356415748596191, 0.3556468188762665, -0.2165967971086502, 0.172062948346138, 0.1386452317237854, -0.11496846377849579, 0.3229755163192749, 0.1626587212085724, -0.16981862485408783, 0.4234541356563568, -0.23565398156642914, 0.254281222820282, -0.2303905487060547, -0.030949745327234268, -0.42215976119041443, 0.05912803113460541, -0.06287797540426254, -0.10041429102420807, -0.06821150332689285, -0.6056762933731079, 0.709561824798584, 0.1429821252822876, -0.02429000660777092, 0.5253075957298279, -0.00013123864482622594, 0.13504372537136078, 0.050243403762578964, -0.08931625634431839, -0.33370521664619446, 0.04258568957448006, -0.0021246448159217834, -0.09937474876642227, 0.04594466835260391, -0.24365802109241486, -0.32887184619903564, -0.616782009601593, -0.2824821472167969, -0.2531657814979553, 0.11766643822193146, 0.13168907165527344, 0.04851888492703438, 0.3689754605293274, 0.18251481652259827, -0.04958680644631386, -0.273341566324234, 0.3462376594543457, -0.43037670850753784, 0.2958945035934448, 0.5514642000198364, 0.4693918526172638, 0.12646138668060303, 0.241246297955513, 0.10393299907445908, -0.011057361029088497, 0.49527159333229065, -0.05691542103886604, -0.14752042293548584, 0.05574623495340347, 0.2469884604215622, -0.04446231201291084, 0.5592546463012695, -0.4508461654186249, -0.3795734941959381, -0.5474653840065002, -0.07862775772809982, -0.46214112639427185, 0.2283334732055664, -0.21099060773849487, -0.04918675124645233, -0.04222889617085457, -0.15431396663188934, -0.05977366864681244, -0.13741707801818848, 0.07172128558158875, 0.3144284188747406, 0.15967653691768646, -0.27884382009506226, 0.20065218210220337, -0.21745648980140686, -0.09721212089061737, 0.08848117291927338, -0.06488095223903656, -0.08248838782310486, 0.26631033420562744, -0.05913747474551201, -0.05662273243069649, -0.05187072232365608, -0.09269823133945465, 0.31800031661987305, -0.1561650186777115, -0.2681823968887329, 0.08656986057758331, -0.00745793804526329, 0.048556137830019, 0.5929330587387085, 0.06779235601425171, 0.16491810977458954, 0.10494576394557953, -0.11020685732364655, 0.3685193955898285, 0.30543452501296997, -0.15775811672210693, 0.17061163485050201, 0.012899812310934067, 0.2952037453651428, -0.2077256739139557, 0.5667415857315063, -0.19181840121746063, -0.05371274799108505, -0.2354840189218521, -0.337883323431015, -0.14755600690841675, 0.13610821962356567, 0.14204399287700653, 0.12956200540065765, 0.2542533278465271, -0.17570379376411438, 0.31246599555015564, 0.17513570189476013, -0.17134010791778564, 0.026883546262979507, -0.048948947340250015, -0.12628908455371857, -0.11956208944320679, 0.02890423685312271, -0.6155040264129639, 0.06128311902284622, 0.1125958114862442, 0.05206901952624321, -0.07702223211526871, -0.3718966841697693, 0.006741087883710861, 0.26722949743270874, 0.04112622141838074, -0.2678842544555664, 0.2330424040555954, 0.0835178941488266, -0.14484736323356628, -0.06569243967533112, -0.037069354206323624, -0.03125070407986641, -0.2644486129283905, -0.11830601841211319, -0.01972702518105507, -0.22466681897640228, -0.05661589279770851, -0.18209408223628998, 0.106800377368927, 0.22155612707138062, -0.1979351043701172, 0.05625852942466736, -0.016953425481915474, -0.41674190759658813, -0.07699035108089447, 0.3247356712818146, 0.05180087685585022, -0.18823888897895813, -0.2806563079357147, 0.38913974165916443, 0.06819148361682892, 0.05397680774331093, 0.14224930107593536, -0.062118589878082275, 0.3757985532283783, -0.26354920864105225, -0.04309498518705368, 0.26025718450546265, -0.0603739395737648, -0.44120627641677856, 0.09245222806930542, 0.16158485412597656, 0.5172282457351685, 0.09404613077640533, -0.10206136107444763, -0.07725594192743301, -0.09566963464021683, 0.31126105785369873, 0.10009255260229111, -0.12873373925685883, -0.12773291766643524, -0.18935532867908478, -0.06587866693735123, 0.05379074439406395, 0.005096063017845154, 0.021652070805430412, 0.21704955399036407, -0.12737609446048737, 0.19793599843978882, 0.39231279492378235, -0.013753015547990799, -0.04045701026916504, 0.0454271174967289, 0.3882574737071991, -0.16954052448272705, 0.26469558477401733, -0.3148385286331177, -0.5779331922531128, 0.2828994393348694, 0.2294873744249344, -0.05398808419704437, -0.2714730501174927, -0.2488560676574707, -0.5180559158325195, 0.18366676568984985, -0.3873291015625, -0.2256462723016739, -0.066321462392807, 0.2426573932170868, 0.2612144947052002, 0.06487223505973816, -0.3812907338142395, -0.057115256786346436, 0.11251121014356613, 0.03199552372097969, -0.3376660943031311, -0.05852444842457771, 0.030643923208117485, -0.20046135783195496, 0.03565441817045212, 0.49552419781684875, 0.1863369196653366, -0.25757884979248047, -0.019007138907909393, 0.3401528000831604, 0.14097468554973602, 0.01858455315232277, -0.3295954763889313, 0.47790154814720154, 0.21600127220153809, 0.27225202322006226, -0.29874101281166077, 0.30521631240844727, 0.3593985140323639, -0.09616254270076752, -0.15802454948425293, 0.3529534935951233, 0.07011416554450989, 0.38951972126960754, -0.013203948736190796, 0.03594326227903366, 0.3110247254371643, 0.33698102831840515, -0.05637188255786896, -0.35973840951919556, -0.01789492554962635, -0.3915388286113739, -0.16850586235523224, -0.23165376484394073, -0.19944031536579132, 0.00707332044839859, 0.3482111990451813, 0.1348288506269455, 0.1506679654121399, -0.027462569996714592, -0.3682725131511688, -0.12100842595100403, 0.20973660051822662, 0.0015717223286628723, 0.3959236741065979, 0.009499423205852509, -0.2433367818593979, 0.04870402067899704, 0.0989079475402832, -0.010949831455945969, 0.32165956497192383, 0.2736552655696869, -0.04058798775076866, 0.10621807724237442, 0.04170071333646774, 0.009702231734991074, -0.11245325207710266, -0.054209452122449875, -0.11331808567047119, 0.10612481832504272, -0.41701510548591614, 0.12620647251605988, -0.31454697251319885, -0.38297128677368164, -0.1402224451303482, -0.27747347950935364, 0.10492201149463654, -0.4887387752532959, -0.07706135511398315, 0.3541814088821411, 0.15037651360034943, 0.166163831949234, -0.34145617485046387, 0.2064124345779419, -0.00560653954744339, -0.06599405407905579, -0.20603656768798828, -0.15952369570732117, -0.13080145418643951, -0.06162324547767639, 0.20690441131591797, -0.3832590878009796, 0.5031107068061829, -0.029114868491888046, 0.045269519090652466, -0.37334129214286804, -0.26572898030281067, 0.3067767322063446, -0.14726482331752777, 0.19223877787590027, 0.4899934232234955, 0.0017758086323738098, -0.04469987004995346, 0.2217096984386444, 0.3587748110294342, -0.06577660888433456, 0.050916850566864014, 0.20492509007453918, -0.2129996418952942, -0.046964749693870544, 0.010310359299182892, -0.06718526035547256, 0.18327194452285767, -0.09588003158569336, 0.43381398916244507, -0.023144062608480453, -0.01233687810599804, 0.4170624613761902, -0.10000944137573242, 0.41122952103614807, 0.04602090269327164, -0.06722962856292725, -0.16049152612686157, -0.0941859558224678, 0.27252161502838135, 0.0651828795671463, -0.3416687846183777, -0.11517633497714996, 0.12489551305770874, 0.05774787440896034, 0.0589575469493866, -0.04319117218255997, -0.23835942149162292, -0.08392079919576645, 0.2396322786808014, 0.04461178928613663, -0.10246772319078445, 0.16951626539230347, 0.10177578032016754, 0.18462391197681427, -0.1425769031047821, -0.12325558066368103, -0.11180038750171661, 0.016860906034708023, 0.009691938757896423, 0.5776208639144897, 0.26428520679473877, 0.2493489682674408, 0.3065052330493927, 0.057471051812171936, -0.20986901223659515, 0.4972711205482483, -0.19990262389183044, 0.21802985668182373, -0.23249439895153046, -0.4590209126472473, 0.07287488132715225, -0.2270381897687912, 0.07133317738771439, 0.0704963281750679, 0.027297914028167725, 0.33667904138565063, -0.12368312478065491, 0.061071813106536865, -0.045645833015441895, -0.1537664234638214, 0.0648239478468895, -0.08830824494361877, 0.1592528223991394, -0.07350900024175644, 0.2983829975128174, 0.12954218685626984, -0.11523221433162689, -0.03897589445114136, 0.0182710662484169, 0.09458348155021667, 0.004136137664318085, -0.26379719376564026, -0.35586100816726685, -0.5025819540023804, 0.3178967237472534, 0.10525748133659363, 0.6666030883789062, -0.05222933739423752, -0.029430478811264038, 0.1131444126367569, -0.020714085549116135, 0.3444926142692566, -0.0824064314365387, -0.19645975530147552, 0.12004352360963821, 0.024533964693546295, -0.46590477228164673, -0.09988311678171158, -0.21816575527191162, 0.500923216342926, 0.0874931588768959, 0.9388678073883057, -0.06868059933185577, -0.2365950345993042, -0.05658828094601631, 0.1098908856511116, -0.0678066611289978, -0.11310431361198425, -0.3558998107910156, -0.3608890771865845, -0.22310668230056763, 0.15572470426559448, 0.28785282373428345, 0.36327168345451355, 0.3787451684474945, 0.14437979459762573, -0.3032097816467285, -0.2085903137922287, -0.11000405251979828, 0.24701373279094696, 0.1467912495136261, -0.029879899695515633, 0.23619656264781952, 0.18755868077278137, 0.5635881423950195, 0.2484292834997177, 0.29118427634239197, -0.015100321732461452, -0.15907785296440125, -0.12503059208393097, -0.24818873405456543, 0.45621001720428467, 0.27427738904953003, -0.06262506544589996, 0.3769984543323517, -0.12917008996009827, 0.038289859890937805, -0.20761257410049438, -0.330127090215683, 0.518334150314331, -0.040788471698760986, -0.45271873474121094, -0.2775556445121765, 0.24813252687454224, -0.05326778441667557, 0.051525890827178955, 0.6370044350624084, 0.5969333052635193, -0.1210583820939064, 0.09442105889320374, 0.013219347223639488, 0.7963477373123169, 0.184960275888443, 0.11799637228250504, 0.4858337640762329, -0.5228206515312195, 0.35372141003608704, 0.010954491794109344, 0.15603630244731903, -0.19428324699401855, -0.2948676645755768, -0.06047806143760681, 0.04906292259693146, 0.2386632114648819, -0.12633676826953888, -0.33034592866897583, 0.4044721722602844, -0.402524471282959, 0.21160203218460083, -0.06270119547843933, -0.14972543716430664, -0.22045522928237915, -0.33454349637031555, -0.717533528804779, -0.05564677715301514, -0.10136020183563232, 0.0873304009437561, -0.041398320347070694, -0.01703295111656189, 0.13714264333248138, -0.2719133794307709, -0.34580665826797485, -0.1205611377954483, -0.17126213014125824, -0.049824923276901245, 0.2834629714488983, -0.39353179931640625, 0.1492888331413269, 0.2665325701236725, 0.37500324845314026, -0.1456378996372223, -0.22693850100040436, 0.09902152419090271, -0.13032777607440948, -0.008427795022726059, -0.19838091731071472, 0.027514949440956116, 0.3568892180919647, -0.02840319275856018, 0.06539222598075867, -0.09339530766010284, -0.11916347593069077, -0.1180935949087143, -0.1779394894838333, 0.052365534007549286, 0.05743728205561638, -0.3563788831233978, -0.5706550478935242, -0.2448594868183136, 0.08837121725082397, -0.36246493458747864, -0.036313872784376144, 0.06150105223059654, -0.13267049193382263, 0.15510554611682892, -0.2926616072654724, 0.005345553159713745, 0.006998229771852493, 0.36152955889701843, -0.12319253385066986, -0.29880887269973755, 0.47595593333244324, 0.20814262330532074, -0.099401094019413, -0.04049985855817795, 0.19529040157794952, 0.6425955891609192, -0.5262646079063416, -0.005754336714744568, 0.05316495895385742, 0.27394676208496094, -0.2837536334991455, 0.4446881413459778, 0.09567581117153168, -0.07401714473962784, -0.1447989046573639, -0.2533133327960968, -0.29717496037483215, 0.1243351399898529, 0.036471519619226456, 0.06102614104747772, 0.12708787620067596, -0.1883017122745514, 0.21835196018218994, 0.162964329123497, -0.11054090410470963, -0.15864433348178864, 0.06698144227266312, -0.0032886257395148277, 0.4107406735420227, 0.19916804134845734, 0.6067943572998047, -0.21178250014781952, 0.005121048539876938, 0.26424869894981384, 0.051349129527807236, -0.034308403730392456, -0.37499094009399414, 0.18685251474380493, 0.31922677159309387, -0.16715961694717407, -0.18587817251682281, 0.1170077845454216, -0.32922235131263733, -0.22953224182128906, 0.14591671526432037, 0.3830595016479492, 0.07033427059650421, 0.1610507369041443, 0.18794561922550201, 0.22537359595298767, -0.19094891846179962, -0.2612988352775574, 0.15303651988506317, -0.037660740315914154, 0.2397305816411972, -0.06370718777179718, -0.11307433247566223, 0.016107812523841858, -0.3772876262664795, 0.27900415658950806, 0.30071693658828735, -0.059271492063999176, 0.3475993871688843, -0.2988913655281067, 0.14546433091163635, 0.2274935245513916, 0.26348042488098145, 0.35522517561912537, -0.14691194891929626, -0.038112372159957886, 0.15666085481643677, -0.0428706556558609, -0.11156421899795532, -0.3912118673324585, 0.1312936395406723, 0.1374279260635376, -0.0643078088760376, 0.2576853334903717, 0.058944761753082275, 0.07851584255695343, -0.2894227206707001, -0.05276475101709366, -0.06855623424053192, -0.5216609239578247, 0.09532108902931213, 0.5952686071395874, 0.3203243315219879, 0.037958815693855286, 0.13769835233688354, 0.13245902955532074, 0.19241702556610107, 0.35313501954078674, -0.34563979506492615, 0.4387204647064209, 0.421552449464798, -0.16270418465137482, 0.2602117657661438, -0.11024320125579834, -0.14478492736816406, 0.025947503745555878, -0.05568081885576248, 0.38610345125198364, 0.012918133288621902, 0.5474868416786194, -0.18016234040260315, -0.06607374548912048, -0.054418016225099564, -0.24296855926513672, -0.14085693657398224, -0.05238587409257889, 0.00023835152387619019, -0.02723027765750885, -0.3796951472759247, -0.2759782075881958, -0.24348928034305573, 0.010420877486467361, 0.23707735538482666, -0.08017199486494064, 0.022017711773514748, -0.3334089517593384, 0.05041428655385971, 0.2944871783256531, 0.4678676128387451, -0.23602178692817688, 0.12598876655101776, 0.12141315639019012, -0.036875978112220764, 0.1378505676984787, 0.11358648538589478, 0.49484172463417053, 0.16395977139472961, 0.06345131993293762, 0.04576241597533226, -0.39989691972732544, -0.1106884703040123, 0.25630128383636475, 0.33240580558776855, -0.133970707654953, -0.056263990700244904, 0.3260425925254822, -0.04859074205160141, 0.04915551841259003, 0.24223613739013672, 0.20513445138931274, 0.4812610149383545, -0.15154653787612915, 0.40678131580352783, -0.5602109432220459, -0.33734264969825745, 0.09935395419597626, 0.18910714983940125, -0.19733566045761108, -0.14825338125228882, 0.24708212912082672, 0.2960939109325409, 0.11231629550457001, -0.18018248677253723, -0.02747599594295025, 0.16836336255073547, 0.27186262607574463, -0.0007376298308372498, -0.22897221148014069, -0.08034029603004456, -0.06963841617107391, -0.28586089611053467, -0.1428193300962448, 0.09070176631212234, -0.3417615294456482, 0.36393773555755615, -0.028015300631523132, 0.019248105585575104, 0.03671898692846298, 0.1784103810787201, -0.14060252904891968, 0.2677740454673767, 0.39412713050842285, -0.06299915909767151, -0.20277352631092072, 0.03907732665538788, 0.020823491737246513, 0.04546279460191727, -0.21260704100131989, 0.02082151547074318, -0.10271154344081879, -0.09421275556087494, -0.10770252346992493, -0.1340644359588623, 0.013533242046833038, -0.10343107581138611, 0.09735875576734543, -0.04169834032654762, 0.24074006080627441, 0.014911018311977386, -0.11425134539604187, -0.2001211941242218, -0.03376632183790207, -0.31615984439849854, 0.3804813623428345, -0.11288765072822571, 0.3149493932723999, -0.13787958025932312, -0.17310050129890442, -0.3228203058242798, 0.4730536937713623, -0.0647367313504219, -0.18601152300834656, -0.021118517965078354, 0.3483499586582184, -0.25882968306541443, 0.02855163812637329, 0.2369123250246048, 0.17108924686908722, -0.07250240445137024, 0.1781146228313446, -0.296924352645874, -0.2606384754180908, 0.3641262650489807, -0.2764967083930969, -0.3129471242427826, 0.07431291043758392, 0.07178200036287308, 0.2535456717014313, -0.22287903726100922, -0.7628251910209656, -0.12411455810070038, 0.299304723739624, 0.12483382225036621, -0.019982468336820602, 0.07580184936523438, 0.13648533821105957, 0.07819771766662598, -0.07536541670560837, 0.3618886470794678, -0.019471166655421257, 0.020735889673233032, 0.07520243525505066, -0.07265439629554749 ]
https://github.com/huggingface/datasets/issues/5637
Any plans to support it in the future? Or would streaming dataset be left without support for jax and tensorflow?
IterableDataset with_format does not support 'device' keyword for jax
### Describe the bug As seen here: https://huggingface.co/docs/datasets/use_with_jax dataset.with_format() supports the keyword 'device', to put data on a specific device when loaded as jax. However, when called on an IterableDataset, I got the error `TypeError: with_format() got an unexpected keyword argument 'device'` Looking over the code, it seems IterableDataset support only pytorch and no support for jax device keyword? https://github.com/huggingface/datasets/blob/fc5c84f36684343bff3e424cb0fd1ac5ecdd66da/src/datasets/iterable_dataset.py#L1029 ### Steps to reproduce the bug 1. Load an IterableDataset (tested in streaming mode) 2. Call with_format('jax',device=device) ### Expected behavior I expect to call `with_format('jax', device=device)` as per [documentation](https://huggingface.co/docs/datasets/use_with_jax) without error ### Environment info Tested with installing newest (dev) and also pip release (2.10.1). - `datasets` version: 2.10.2.dev0 - Platform: Linux-5.15.89+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - Huggingface_hub version: 0.12.1 - PyArrow version: 11.0.0 - Pandas version: 1.3.5
20
IterableDataset with_format does not support 'device' keyword for jax ### Describe the bug As seen here: https://huggingface.co/docs/datasets/use_with_jax dataset.with_format() supports the keyword 'device', to put data on a specific device when loaded as jax. However, when called on an IterableDataset, I got the error `TypeError: with_format() got an unexpected keyword argument 'device'` Looking over the code, it seems IterableDataset support only pytorch and no support for jax device keyword? https://github.com/huggingface/datasets/blob/fc5c84f36684343bff3e424cb0fd1ac5ecdd66da/src/datasets/iterable_dataset.py#L1029 ### Steps to reproduce the bug 1. Load an IterableDataset (tested in streaming mode) 2. Call with_format('jax',device=device) ### Expected behavior I expect to call `with_format('jax', device=device)` as per [documentation](https://huggingface.co/docs/datasets/use_with_jax) without error ### Environment info Tested with installing newest (dev) and also pip release (2.10.1). - `datasets` version: 2.10.2.dev0 - Platform: Linux-5.15.89+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - Huggingface_hub version: 0.12.1 - PyArrow version: 11.0.0 - Pandas version: 1.3.5 Any plans to support it in the future? Or would streaming dataset be left without support for jax and tensorflow?
[ 0.06743547320365906, -0.5496015548706055, 0.06652072072029114, 0.07995843887329102, 0.44293132424354553, -0.005775295197963715, 0.6070612072944641, 0.1334858536720276, -0.38182637095451355, -0.15816524624824524, -0.07893930375576019, 0.19278785586357117, -0.2554551661014557, 0.36124056577682495, 0.14092807471752167, -0.1732776015996933, 0.319173663854599, 0.1453728973865509, -0.10821305215358734, 0.42922669649124146, -0.1541038602590561, 0.2431405931711197, -0.2661359906196594, -0.1577053666114807, -0.3726467788219452, 0.03135610371828079, 0.013997793197631836, -0.14706578850746155, -0.019492067396640778, -0.5562580823898315, 0.6727682948112488, 0.15420599281787872, -0.052708208560943604, 0.5604194402694702, -0.00013158748333808035, 0.15453587472438812, 0.134235680103302, -0.0953778326511383, -0.2242831289768219, -0.03463016450405121, -0.2147182673215866, -0.01884777843952179, 0.03229235112667084, -0.1951150745153427, -0.26757586002349854, -0.5904684066772461, -0.22272540628910065, -0.341179758310318, 0.16697904467582703, 0.15579484403133392, 0.02961667813360691, 0.37908297777175903, 0.14889179170131683, -0.019850971177220345, -0.32273346185684204, 0.37314799427986145, -0.4675676226615906, 0.24926790595054626, 0.5355634093284607, 0.49982455372810364, 0.08845153450965881, 0.2175813913345337, 0.16444218158721924, 0.010134749114513397, 0.5443568825721741, -0.10326125472784042, -0.23274102807044983, -0.06816518306732178, 0.22549571096897125, -0.03464028984308243, 0.6555317640304565, -0.36485758423805237, -0.4227348566055298, -0.547458291053772, -0.006370149552822113, -0.4090782105922699, 0.2301730513572693, -0.2257125973701477, -0.09814365208148956, -0.06984975934028625, -0.1922428011894226, -0.21807153522968292, -0.21016556024551392, 0.1080934926867485, 0.29509782791137695, 0.17446336150169373, -0.28274211287498474, 0.21414026618003845, -0.21317267417907715, -0.048235099762678146, 0.13253895938396454, -0.1122746542096138, -0.016171373426914215, 0.20718440413475037, -0.09974758327007294, -0.0908098965883255, -0.080487921833992, -0.16381344199180603, 0.20569437742233276, -0.049504220485687256, -0.25835907459259033, 0.12211064249277115, -0.04801120236515999, 0.06377260386943817, 0.5934531092643738, 0.027049969881772995, 0.130935937166214, 0.016131404787302017, 0.034944117069244385, 0.3912540376186371, 0.22818922996520996, -0.1806226223707199, 0.10641239583492279, 0.09320607781410217, 0.212776318192482, -0.20307376980781555, 0.5384186506271362, -0.14333952963352203, -0.0506686270236969, -0.2283848077058792, -0.4079018831253052, -0.2068914920091629, 0.10034719854593277, 0.1460176408290863, 0.08551318198442459, 0.33232131600379944, -0.2811394929885864, 0.3149399757385254, 0.22251451015472412, -0.12687209248542786, 0.034044887870550156, -0.07275192439556122, -0.07569059729576111, -0.05540910363197327, 0.03865708410739899, -0.6987478733062744, 0.11322138458490372, 0.07412038743495941, 0.15982012450695038, -0.10529778897762299, -0.2449178844690323, -0.035716086626052856, 0.2059226781129837, 0.04268334060907364, -0.251315176486969, 0.2887093424797058, 0.019562887027859688, -0.05549024045467377, -0.025902442634105682, -0.05401312932372093, -0.05219918489456177, -0.31196892261505127, -0.04627595841884613, -0.0058354781940579414, -0.24482399225234985, -0.050418585538864136, -0.19926723837852478, 0.16207273304462433, 0.08837848901748657, -0.12908856570720673, -0.0036960765719413757, -0.004322412423789501, -0.4266556203365326, -0.07787969708442688, 0.2891097664833069, -0.005308724939823151, -0.2521609365940094, -0.34334635734558105, 0.33349913358688354, 0.12286560237407684, 0.004572749137878418, 0.13196775317192078, -0.12854595482349396, 0.3441389799118042, -0.2736416757106781, -0.020194552838802338, 0.34083303809165955, -0.15561024844646454, -0.423526406288147, 0.12070518732070923, 0.1520184427499771, 0.5138739943504333, 0.13458111882209778, -0.097367063164711, -0.030535941943526268, -0.09212718904018402, 0.2099839597940445, 0.10159651190042496, -0.11488448828458786, -0.16685020923614502, -0.08838672935962677, -0.12295853346586227, -0.007399216294288635, 0.02866227924823761, 0.11229508370161057, 0.2003854364156723, -0.10218967497348785, 0.3286265730857849, 0.2942553758621216, -0.059054724872112274, -0.018690325319767, 0.1126708909869194, 0.4468359649181366, -0.13065990805625916, 0.24797323346138, -0.30601227283477783, -0.6200745701789856, 0.27656760811805725, 0.39000582695007324, -0.15760019421577454, -0.1638166308403015, -0.22494041919708252, -0.4190535545349121, 0.13005009293556213, -0.3891201317310333, -0.18412232398986816, -0.09765365719795227, 0.2832143306732178, 0.2321455329656601, 0.12417824566364288, -0.45939168334007263, -0.04608231782913208, 0.039685964584350586, 0.037863876670598984, -0.2171829640865326, -0.02482091635465622, 0.10096770524978638, -0.18992312252521515, 0.06841282546520233, 0.46535858511924744, 0.133009135723114, -0.2790181338787079, 0.04589742422103882, 0.22066769003868103, 0.10307525098323822, 0.19879116117954254, -0.34768247604370117, 0.5242868661880493, 0.31824609637260437, 0.21652817726135254, -0.34181883931159973, 0.29381704330444336, 0.3308420777320862, -0.1685403436422348, -0.15437638759613037, 0.30210423469543457, 0.04964864253997803, 0.3604183495044708, 0.10546977072954178, -0.05455227196216583, 0.2928534746170044, 0.3411639332771301, -0.10346275568008423, -0.3371432423591614, -0.01702365092933178, -0.4366365671157837, -0.09179192781448364, -0.26449307799339294, -0.26954764127731323, -0.0761827677488327, 0.45900240540504456, 0.1752944439649582, 0.09082256257534027, -0.06761844456195831, -0.41179436445236206, -0.11666944622993469, 0.25397831201553345, 0.09941276907920837, 0.42490458488464355, -0.00841362215578556, -0.14680729806423187, 0.0852288231253624, 0.18276512622833252, -0.11986899375915527, 0.3655269742012024, 0.28602999448776245, 0.012067101895809174, 0.24354997277259827, -0.013862857595086098, -0.0022286362946033478, -0.14175617694854736, -0.09885764122009277, -0.033498216420412064, 0.05564232915639877, -0.35867881774902344, 0.08837896585464478, -0.27218103408813477, -0.5155086517333984, -0.14651556313037872, -0.19488176703453064, 0.10063448548316956, -0.47489407658576965, -0.12026442587375641, 0.44897574186325073, 0.17383059859275818, 0.07876742631196976, -0.352591335773468, 0.25032350420951843, 0.027868181467056274, -0.10667281597852707, -0.17234313488006592, -0.07388162612915039, -0.07311728596687317, -0.04490590840578079, 0.2027130424976349, -0.4721162021160126, 0.5459262728691101, 0.08427982032299042, 0.02165140211582184, -0.4148789048194885, -0.29174569249153137, 0.3205632269382477, -0.06225963681936264, 0.1914243847131729, 0.38474488258361816, 0.053486719727516174, -0.03519907593727112, 0.07635734975337982, 0.2734930217266083, -0.08186917006969452, 0.06269276887178421, 0.08942730724811554, -0.19535546004772186, 0.0583883561193943, -0.018857061862945557, -0.08353988826274872, 0.18385908007621765, -0.1419433355331421, 0.43694496154785156, -0.015038266777992249, -0.06761568784713745, 0.4503380060195923, -0.10241839289665222, 0.38781431317329407, 0.061882901936769485, -0.12353157252073288, -0.16190706193447113, -0.19016844034194946, 0.26147550344467163, 0.052602171897888184, -0.3692466914653778, -0.013080142438411713, 0.1398804932832718, 0.135986328125, 0.2015301138162613, -0.09482013434171677, -0.23678863048553467, -0.07063023000955582, 0.23798491060733795, 0.0760188102722168, -0.17284035682678223, 0.13023321330547333, 0.019303079694509506, 0.19962264597415924, -0.1972610205411911, -0.024991169571876526, -0.021967418491840363, 0.11524491757154465, -0.00368339940905571, 0.6673362851142883, 0.24265548586845398, 0.24062380194664001, 0.37845656275749207, 0.10513567179441452, -0.15445157885551453, 0.513361930847168, -0.10997024923563004, 0.24790030717849731, -0.18472984433174133, -0.41588351130485535, 0.1739826798439026, -0.25504422187805176, 0.08852358162403107, 0.04612500220537186, 0.027270853519439697, 0.27805033326148987, -0.1476915031671524, 0.12687388062477112, -0.007600359618663788, -0.09944294393062592, 0.04508436471223831, -0.12583273649215698, 0.20672842860221863, -0.1083904355764389, 0.2914874255657196, 0.21492165327072144, -0.14635027945041656, 0.01798897609114647, -0.007078740745782852, 0.16113971173763275, -0.01120264083147049, -0.2566365897655487, -0.28420180082321167, -0.5433071851730347, 0.1845850646495819, 0.11494877189397812, 0.61411052942276, -0.18187446892261505, 0.02387017011642456, 0.10544662922620773, -0.035612236708402634, 0.3280518651008606, -0.22620682418346405, -0.2292693704366684, 0.009760215878486633, -0.04943300038576126, -0.3777400255203247, -0.08455356955528259, -0.2747421860694885, 0.42363736033439636, 0.1272616684436798, 0.9464259147644043, -0.0174298956990242, -0.19658879935741425, -0.12612007558345795, 0.030925273895263672, -0.04003738611936569, -0.09718219935894012, -0.2581886649131775, -0.24949127435684204, -0.1791888177394867, 0.0862821564078331, 0.2541447877883911, 0.2897840440273285, 0.3459051251411438, 0.03781238943338394, -0.2809421718120575, -0.18650805950164795, -0.09557878971099854, 0.14882686734199524, 0.12290848791599274, -0.05471469461917877, 0.1831059455871582, 0.3318760097026825, 0.5217104554176331, 0.294085294008255, 0.2376439869403839, 0.1165301501750946, -0.29076188802719116, -0.0667327269911766, -0.22037823498249054, 0.5024991631507874, 0.2797970771789551, -0.10825155675411224, 0.41321611404418945, -0.06611882150173187, 0.011492671445012093, -0.27490928769111633, -0.18612922728061676, 0.668024480342865, 0.0008072145283222198, -0.4517172873020172, -0.3757721483707428, 0.13068652153015137, -0.06444266438484192, 0.1018313467502594, 0.7112696766853333, 0.533213198184967, -0.20096904039382935, 0.00752716138958931, -0.033662229776382446, 0.6144652366638184, 0.24843481183052063, 0.08632102608680725, 0.4798705279827118, -0.4769859313964844, 0.4163432717323303, -0.014074914157390594, 0.19837608933448792, -0.12533652782440186, -0.34712404012680054, -0.11736805737018585, 0.01230815052986145, 0.2540833055973053, -0.16077840328216553, -0.32262495160102844, 0.3736744523048401, -0.2687299847602844, 0.2973252534866333, -0.11110833287239075, -0.07275526225566864, -0.30027684569358826, -0.26176688075065613, -0.6918102502822876, -0.06203647330403328, -0.10790607333183289, 0.12778086960315704, -0.04324285686016083, -0.016254404559731483, 0.2122795581817627, -0.20647096633911133, -0.4203100800514221, -0.10959400981664658, -0.2189609855413437, -0.02989540435373783, 0.1753285676240921, -0.3614156246185303, 0.24321672320365906, 0.2375834435224533, 0.28960129618644714, -0.18695107102394104, -0.31145668029785156, 0.11935745179653168, -0.2310505509376526, 0.009596012532711029, -0.14277523756027222, -0.061676472425460815, 0.3915749490261078, -0.06329604983329773, 0.0838954746723175, -0.011503707617521286, -0.10270757228136063, -0.20165041089057922, -0.24924775958061218, -0.01250065490603447, 0.06024378165602684, -0.2742536664009094, -0.632252037525177, -0.17252898216247559, 0.042675018310546875, -0.32480794191360474, -0.0509214848279953, 0.0011838339269161224, -0.11435595154762268, 0.08977086842060089, -0.2326679825782776, 0.04728671908378601, -0.003186558373272419, 0.3752348721027374, -0.0769459456205368, -0.27567633986473083, 0.53019779920578, 0.1456998586654663, -0.1306895762681961, -0.058741845190525055, 0.20293444395065308, 0.5638241767883301, -0.39600080251693726, 0.006899818778038025, 0.0721970722079277, 0.22402921319007874, -0.2819475829601288, 0.4010362923145294, -0.004822899121791124, -0.036302193999290466, -0.2216770052909851, -0.34922993183135986, -0.21304620802402496, 0.13964222371578217, -0.04190948233008385, 0.06020364537835121, 0.04955701529979706, -0.20294351875782013, 0.2437155544757843, 0.07550475001335144, -0.08239051699638367, -0.18169252574443817, 0.13361382484436035, -0.07744498550891876, 0.365770161151886, 0.15970073640346527, 0.6757265329360962, -0.19331061840057373, -0.025174716487526894, 0.19649085402488708, 0.03492840379476547, -0.0089421346783638, -0.372294545173645, 0.18789154291152954, 0.3094765841960907, -0.15952107310295105, -0.10989636182785034, 0.05047708749771118, -0.3448915183544159, -0.1468515545129776, 0.24557042121887207, 0.38738811016082764, 0.07782205939292908, 0.17771205306053162, 0.20607730746269226, 0.21647681295871735, -0.2274678647518158, -0.2357470542192459, 0.1316778063774109, 0.08144329488277435, 0.22069914638996124, -0.03047344647347927, -0.041246406733989716, 0.03004385530948639, -0.3982783257961273, 0.2653985619544983, 0.27378323674201965, -0.06734386831521988, 0.4021719694137573, -0.32651352882385254, 0.1758102923631668, 0.23209387063980103, 0.3379705548286438, 0.4280133843421936, -0.14027416706085205, -0.048120610415935516, 0.13060344755649567, -0.042107321321964264, -0.06721512228250504, -0.4719597101211548, 0.11337347328662872, 0.16731305420398712, -0.09683184325695038, 0.1680312603712082, 0.08087369799613953, 0.005484580993652344, -0.2833281457424164, -0.05146058276295662, -0.09739838540554047, -0.5138822197914124, 0.2318338006734848, 0.5176942348480225, 0.3592209815979004, 0.01841570809483528, -0.010506294667720795, 0.11896622180938721, 0.1683937907218933, 0.32747554779052734, -0.2504620850086212, 0.4171372354030609, 0.4408693015575409, -0.11997034400701523, 0.3568858504295349, -0.12900029122829437, -0.2390764206647873, 0.023725345730781555, -0.16475628316402435, 0.46546751260757446, 0.045683059841394424, 0.44397079944610596, -0.11161482334136963, -0.06444741040468216, -0.06380268186330795, -0.2551988661289215, -0.17708580195903778, -0.013307802379131317, 0.048735037446022034, -0.03668360412120819, -0.2959602177143097, -0.08563573658466339, -0.18594151735305786, 0.052837222814559937, 0.22843775153160095, -0.05147600173950195, 0.032407306134700775, -0.2531210780143738, 0.12998417019844055, 0.17681849002838135, 0.5143246650695801, -0.18543091416358948, 0.1864391714334488, 0.1268395632505417, 0.04913131892681122, 0.12437213957309723, 0.14613404870033264, 0.39562347531318665, 0.17886924743652344, 0.1328815519809723, 0.04356471821665764, -0.3260852098464966, -0.1365862786769867, 0.24911172688007355, 0.34352993965148926, -0.06423544138669968, -0.04751850664615631, 0.3226897716522217, -0.04775504395365715, 0.06549560278654099, 0.29902979731559753, 0.15655061602592468, 0.4174378514289856, -0.2684437036514282, 0.3425357937812805, -0.5430127382278442, -0.24499814212322235, 0.06297917664051056, 0.17975012958049774, -0.18814054131507874, -0.22311483323574066, 0.33262333273887634, 0.2615857720375061, 0.06927692145109177, -0.17133739590644836, -0.029808536171913147, 0.12102779746055603, 0.30446580052375793, -0.005487754940986633, -0.1827048659324646, -0.020119134336709976, -0.10745149105787277, -0.24751828610897064, -0.13586579263210297, 0.20335030555725098, -0.22869710624217987, 0.33165621757507324, 0.0108838751912117, -0.06400087475776672, -0.01371387392282486, 0.14260455965995789, -0.20428821444511414, 0.24688728153705597, 0.2741214334964752, -0.10607156902551651, -0.20534974336624146, 0.038104429841041565, 0.025031549856066704, 0.0008381456136703491, -0.15923428535461426, 0.10651496052742004, -0.11594973504543304, -0.1474607288837433, -0.039196014404296875, -0.1445024460554123, -0.03732030466198921, -0.13445517420768738, 0.07398798316717148, -0.08555036783218384, 0.2928147315979004, 0.0033365264534950256, -0.1379045695066452, -0.15615570545196533, -0.06413799524307251, -0.32861649990081787, 0.3921201825141907, -0.14764390885829926, 0.4132479727268219, -0.21272587776184082, -0.12903839349746704, -0.33458757400512695, 0.48075199127197266, -0.06934633105993271, -0.3425425589084625, -0.042967788875103, 0.311417818069458, -0.2390788048505783, 0.06590785086154938, 0.3237764239311218, 0.22421512007713318, -0.1559125781059265, 0.057597823441028595, -0.251017689704895, -0.20019187033176422, 0.35783225297927856, -0.32647889852523804, -0.2912737727165222, 0.06689070910215378, 0.006861183792352676, 0.32448774576187134, -0.18524476885795593, -0.7838503122329712, -0.1371825933456421, 0.3401074707508087, 0.0881873369216919, 0.049740083515644073, 0.07330743968486786, 0.19183644652366638, 0.07970117777585983, -0.0799589678645134, 0.40033429861068726, 0.053718652576208115, -0.04180119186639786, 0.13235756754875183, -0.05239114537835121 ]
https://github.com/huggingface/datasets/issues/5634
Hi! By default, tqdm has `leave=True` to "keep all traces of the progress bar upon the termination of iteration". However, we use `leave=False` in some places (as of recently), which removes the bar once the iteration is over. I feel like our TQDM bars are noisy, so I think we should always set `leave=False` and also use the `delay` parameter to display progress bars only for tasks that take time (e.g., more than 3s). What do you think about this? Do you find these bars useful (after the dataset generation is over)?
Not all progress bars are showing up when they should for downloading dataset
### Describe the bug During downloading the rotten tomatoes dataset, not all progress bars are displayed properly. This might be related to [this ticket](https://github.com/huggingface/datasets/issues/5117) as it raised the same concern but its not clear if the fix solves this issue too. ipywidgets <img width="1243" alt="image" src="https://user-images.githubusercontent.com/110427462/224851138-13fee5b7-ab51-4883-b96f-1b9808782e3b.png"> tqdm <img width="1251" alt="Screen Shot 2023-03-13 at 3 58 59 PM" src="https://user-images.githubusercontent.com/110427462/224851180-5feb7825-9250-4b1e-ad0c-f3172ac1eb78.png"> ### Steps to reproduce the bug 1. Run this line ``` from datasets import load_dataset rotten_tomatoes = load_dataset("rotten_tomatoes", split="train") ``` ### Expected behavior all progress bars for builder script, metadata, readme, training, validation, and test set ### Environment info requirements.txt ``` aiofiles==22.1.0 aiohttp==3.8.4 aiosignal==1.3.1 aiosqlite==0.18.0 anyio==3.6.2 appnope==0.1.3 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 arrow==1.2.3 asttokens==2.2.1 async-generator==1.10 async-timeout==4.0.2 attrs==22.2.0 Babel==2.12.1 backcall==0.2.0 beautifulsoup4==4.11.2 bleach==6.0.0 brotlipy @ file:///Users/runner/miniforge3/conda-bld/brotlipy_1666764961872/work certifi==2022.12.7 cffi @ file:///Users/runner/miniforge3/conda-bld/cffi_1671179414629/work cfgv==3.3.1 charset-normalizer @ file:///home/conda/feedstock_root/build_artifacts/charset-normalizer_1661170624537/work comm==0.1.2 conda==22.9.0 conda-package-handling @ file:///home/conda/feedstock_root/build_artifacts/conda-package-handling_1669907009957/work conda_package_streaming @ file:///home/conda/feedstock_root/build_artifacts/conda-package-streaming_1669733752472/work coverage==7.2.1 cryptography @ file:///Users/runner/miniforge3/conda-bld/cryptography_1669592251328/work datasets==2.1.0 debugpy==1.6.6 decorator==5.1.1 defusedxml==0.7.1 dill==0.3.6 distlib==0.3.6 distro==1.4.0 entrypoints==0.4 exceptiongroup==1.1.0 executing==1.2.0 fastjsonschema==2.16.3 filelock==3.9.0 flaky==3.7.0 fqdn==1.5.1 frozenlist==1.3.3 fsspec==2023.3.0 huggingface-hub==0.10.1 identify==2.5.18 idna @ file:///home/conda/feedstock_root/build_artifacts/idna_1663625384323/work iniconfig==2.0.0 ipykernel==6.12.1 ipyparallel==8.4.1 ipython==7.32.0 ipython-genutils==0.2.0 ipywidgets==8.0.4 isoduration==20.11.0 jedi==0.18.2 Jinja2==3.1.2 json5==0.9.11 jsonpointer==2.3 jsonschema==4.17.3 jupyter-events==0.6.3 jupyter-ydoc==0.2.2 jupyter_client==8.0.3 jupyter_core==5.2.0 jupyter_server==2.4.0 jupyter_server_fileid==0.8.0 jupyter_server_terminals==0.4.4 jupyter_server_ydoc==0.6.1 jupyterlab==3.6.1 jupyterlab-pygments==0.2.2 jupyterlab-widgets==3.0.5 jupyterlab_server==2.20.0 libmambapy @ file:///Users/runner/miniforge3/conda-bld/mamba-split_1671598370072/work/libmambapy mamba @ file:///Users/runner/miniforge3/conda-bld/mamba-split_1671598370072/work/mamba MarkupSafe==2.1.2 matplotlib-inline==0.1.6 mistune==2.0.5 multidict==6.0.4 multiprocess==0.70.14 nbclassic==0.5.3 nbclient==0.7.2 nbconvert==7.2.9 nbformat==5.7.3 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.3 notebook_shim==0.2.2 numpy==1.24.2 outcome==1.2.0 packaging==23.0 pandas==1.5.3 pandocfilters==1.5.0 parso==0.8.3 pexpect==4.8.0 pickleshare==0.7.5 platformdirs==3.0.0 plotly==5.13.1 pluggy==1.0.0 pre-commit==3.1.0 prometheus-client==0.16.0 prompt-toolkit==3.0.38 psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 pyarrow==11.0.0 pycosat @ file:///Users/runner/miniforge3/conda-bld/pycosat_1666836580084/work pycparser @ file:///home/conda/feedstock_root/build_artifacts/pycparser_1636257122734/work Pygments==2.14.0 pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1665350324128/work pyrsistent==0.19.3 PySocks @ file:///home/conda/feedstock_root/build_artifacts/pysocks_1661604839144/work pytest==7.2.1 pytest-asyncio==0.20.3 pytest-cov==4.0.0 pytest-timeout==2.1.0 python-dateutil==2.8.2 python-json-logger==2.0.7 pytz==2022.7.1 PyYAML==6.0 pyzmq==25.0.0 requests @ file:///home/conda/feedstock_root/build_artifacts/requests_1661872987712/work responses==0.18.0 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 ruamel-yaml-conda @ file:///Users/runner/miniforge3/conda-bld/ruamel_yaml_1666819760545/work Send2Trash==1.8.0 simplegeneric==0.8.1 six==1.16.0 sniffio==1.3.0 sortedcontainers==2.4.0 soupsieve==2.4 stack-data==0.6.2 tenacity==8.2.2 terminado==0.17.1 tinycss2==1.2.1 tomli==2.0.1 toolz @ file:///home/conda/feedstock_root/build_artifacts/toolz_1657485559105/work tornado==6.2 tqdm==4.64.1 traitlets==5.8.1 trio==0.22.0 typing_extensions==4.5.0 uri-template==1.2.0 urllib3 @ file:///home/conda/feedstock_root/build_artifacts/urllib3_1669259737463/work virtualenv==20.19.0 wcwidth==0.2.6 webcolors==1.12 webencodings==0.5.1 websocket-client==1.5.1 widgetsnbextension==4.0.5 xxhash==3.2.0 y-py==0.5.9 yarl==1.8.2 ypy-websocket==0.8.2 zstandard==0.19.0 ```
92
Not all progress bars are showing up when they should for downloading dataset ### Describe the bug During downloading the rotten tomatoes dataset, not all progress bars are displayed properly. This might be related to [this ticket](https://github.com/huggingface/datasets/issues/5117) as it raised the same concern but its not clear if the fix solves this issue too. ipywidgets <img width="1243" alt="image" src="https://user-images.githubusercontent.com/110427462/224851138-13fee5b7-ab51-4883-b96f-1b9808782e3b.png"> tqdm <img width="1251" alt="Screen Shot 2023-03-13 at 3 58 59 PM" src="https://user-images.githubusercontent.com/110427462/224851180-5feb7825-9250-4b1e-ad0c-f3172ac1eb78.png"> ### Steps to reproduce the bug 1. Run this line ``` from datasets import load_dataset rotten_tomatoes = load_dataset("rotten_tomatoes", split="train") ``` ### Expected behavior all progress bars for builder script, metadata, readme, training, validation, and test set ### Environment info requirements.txt ``` aiofiles==22.1.0 aiohttp==3.8.4 aiosignal==1.3.1 aiosqlite==0.18.0 anyio==3.6.2 appnope==0.1.3 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 arrow==1.2.3 asttokens==2.2.1 async-generator==1.10 async-timeout==4.0.2 attrs==22.2.0 Babel==2.12.1 backcall==0.2.0 beautifulsoup4==4.11.2 bleach==6.0.0 brotlipy @ file:///Users/runner/miniforge3/conda-bld/brotlipy_1666764961872/work certifi==2022.12.7 cffi @ file:///Users/runner/miniforge3/conda-bld/cffi_1671179414629/work cfgv==3.3.1 charset-normalizer @ file:///home/conda/feedstock_root/build_artifacts/charset-normalizer_1661170624537/work comm==0.1.2 conda==22.9.0 conda-package-handling @ file:///home/conda/feedstock_root/build_artifacts/conda-package-handling_1669907009957/work conda_package_streaming @ file:///home/conda/feedstock_root/build_artifacts/conda-package-streaming_1669733752472/work coverage==7.2.1 cryptography @ file:///Users/runner/miniforge3/conda-bld/cryptography_1669592251328/work datasets==2.1.0 debugpy==1.6.6 decorator==5.1.1 defusedxml==0.7.1 dill==0.3.6 distlib==0.3.6 distro==1.4.0 entrypoints==0.4 exceptiongroup==1.1.0 executing==1.2.0 fastjsonschema==2.16.3 filelock==3.9.0 flaky==3.7.0 fqdn==1.5.1 frozenlist==1.3.3 fsspec==2023.3.0 huggingface-hub==0.10.1 identify==2.5.18 idna @ file:///home/conda/feedstock_root/build_artifacts/idna_1663625384323/work iniconfig==2.0.0 ipykernel==6.12.1 ipyparallel==8.4.1 ipython==7.32.0 ipython-genutils==0.2.0 ipywidgets==8.0.4 isoduration==20.11.0 jedi==0.18.2 Jinja2==3.1.2 json5==0.9.11 jsonpointer==2.3 jsonschema==4.17.3 jupyter-events==0.6.3 jupyter-ydoc==0.2.2 jupyter_client==8.0.3 jupyter_core==5.2.0 jupyter_server==2.4.0 jupyter_server_fileid==0.8.0 jupyter_server_terminals==0.4.4 jupyter_server_ydoc==0.6.1 jupyterlab==3.6.1 jupyterlab-pygments==0.2.2 jupyterlab-widgets==3.0.5 jupyterlab_server==2.20.0 libmambapy @ file:///Users/runner/miniforge3/conda-bld/mamba-split_1671598370072/work/libmambapy mamba @ file:///Users/runner/miniforge3/conda-bld/mamba-split_1671598370072/work/mamba MarkupSafe==2.1.2 matplotlib-inline==0.1.6 mistune==2.0.5 multidict==6.0.4 multiprocess==0.70.14 nbclassic==0.5.3 nbclient==0.7.2 nbconvert==7.2.9 nbformat==5.7.3 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.3 notebook_shim==0.2.2 numpy==1.24.2 outcome==1.2.0 packaging==23.0 pandas==1.5.3 pandocfilters==1.5.0 parso==0.8.3 pexpect==4.8.0 pickleshare==0.7.5 platformdirs==3.0.0 plotly==5.13.1 pluggy==1.0.0 pre-commit==3.1.0 prometheus-client==0.16.0 prompt-toolkit==3.0.38 psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 pyarrow==11.0.0 pycosat @ file:///Users/runner/miniforge3/conda-bld/pycosat_1666836580084/work pycparser @ file:///home/conda/feedstock_root/build_artifacts/pycparser_1636257122734/work Pygments==2.14.0 pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1665350324128/work pyrsistent==0.19.3 PySocks @ file:///home/conda/feedstock_root/build_artifacts/pysocks_1661604839144/work pytest==7.2.1 pytest-asyncio==0.20.3 pytest-cov==4.0.0 pytest-timeout==2.1.0 python-dateutil==2.8.2 python-json-logger==2.0.7 pytz==2022.7.1 PyYAML==6.0 pyzmq==25.0.0 requests @ file:///home/conda/feedstock_root/build_artifacts/requests_1661872987712/work responses==0.18.0 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 ruamel-yaml-conda @ file:///Users/runner/miniforge3/conda-bld/ruamel_yaml_1666819760545/work Send2Trash==1.8.0 simplegeneric==0.8.1 six==1.16.0 sniffio==1.3.0 sortedcontainers==2.4.0 soupsieve==2.4 stack-data==0.6.2 tenacity==8.2.2 terminado==0.17.1 tinycss2==1.2.1 tomli==2.0.1 toolz @ file:///home/conda/feedstock_root/build_artifacts/toolz_1657485559105/work tornado==6.2 tqdm==4.64.1 traitlets==5.8.1 trio==0.22.0 typing_extensions==4.5.0 uri-template==1.2.0 urllib3 @ file:///home/conda/feedstock_root/build_artifacts/urllib3_1669259737463/work virtualenv==20.19.0 wcwidth==0.2.6 webcolors==1.12 webencodings==0.5.1 websocket-client==1.5.1 widgetsnbextension==4.0.5 xxhash==3.2.0 y-py==0.5.9 yarl==1.8.2 ypy-websocket==0.8.2 zstandard==0.19.0 ``` Hi! By default, tqdm has `leave=True` to "keep all traces of the progress bar upon the termination of iteration". However, we use `leave=False` in some places (as of recently), which removes the bar once the iteration is over. I feel like our TQDM bars are noisy, so I think we should always set `leave=False` and also use the `delay` parameter to display progress bars only for tasks that take time (e.g., more than 3s). What do you think about this? Do you find these bars useful (after the dataset generation is over)?
[ -0.43630003929138184, 0.34490859508514404, -0.13294562697410583, 0.34058937430381775, 0.36995577812194824, -0.013252399861812592, 0.4227297008037567, 0.3985331356525421, 0.015536338090896606, 0.11542749404907227, -0.2259310930967331, 0.11328896880149841, 0.22292231023311615, 0.3562466502189636, 0.07820151746273041, 0.07475532591342926, 0.009124953299760818, 0.22338221967220306, -0.325848251581192, -0.09730885922908783, -0.18720802664756775, 0.1364416778087616, -0.2658804655075073, -0.011435844004154205, -0.35527610778808594, 0.04417441785335541, 0.009763717651367188, -0.03421218320727348, 0.1394672989845276, -0.5105108618736267, 0.2899409532546997, 0.13450099527835846, 0.12293541431427002, 0.327997088432312, -0.00011920109682250768, 0.0031758397817611694, 0.49437204003334045, -0.029254142194986343, -0.2085438072681427, 0.15051688253879547, -0.2716195583343506, -0.38055717945098877, 0.13574296236038208, -0.18882182240486145, 0.04128322750329971, 0.14452946186065674, -0.18559546768665314, -0.2276279330253601, 0.12933571636676788, 0.1463276445865631, 0.1913139671087265, 0.5159805417060852, 0.23194168508052826, 0.19256818294525146, 0.5501551628112793, -0.07811196148395538, -0.24536696076393127, -0.038350991904735565, 0.43929556012153625, 0.0563260018825531, -0.12247858941555023, 0.233184814453125, 0.1145571768283844, 0.506859540939331, -0.10489704459905624, 0.2428993582725525, 0.372420072555542, -0.40027251839637756, -0.15457624197006226, 0.23395350575447083, 0.3515029847621918, -0.31177058815956116, -0.5117546916007996, -0.2414366751909256, -0.11434116959571838, -0.4615795612335205, 0.04508558660745621, 0.1416451334953308, -0.02059510350227356, 0.030230700969696045, -0.7768369317054749, 0.36536455154418945, -0.06884665787220001, 0.29943323135375977, 0.03041640669107437, -0.05175121873617172, -0.10728861391544342, 0.017727475613355637, -0.3457499146461487, 0.2261451780796051, 0.032565321773290634, -0.056478772312402725, 0.0026096967048943043, 0.049449820071458817, -0.2783757746219635, -0.0016228258609771729, -0.027956604957580566, 0.40097659826278687, 0.21046924591064453, 0.4831174314022064, -0.5268996953964233, 0.11220888793468475, -0.09628379344940186, -0.18487055599689484, 0.17517302930355072, 0.10504694283008575, 0.11482422798871994, -0.14325696229934692, 0.49844804406166077, 0.25666671991348267, -0.117648184299469, 0.05211152136325836, 0.18554773926734924, -0.10390572249889374, 0.07916079461574554, 0.21550896763801575, 0.15522365272045135, -0.269173800945282, -0.2697071135044098, -0.06374095380306244, 0.2863207757472992, -0.10626432299613953, 0.19627514481544495, 0.1271713674068451, -0.388847291469574, -0.05363761633634567, 0.005678199231624603, 0.27189531922340393, -0.10282810032367706, -0.31540176272392273, -0.25038430094718933, -0.298847496509552, -0.1416226029396057, 0.09942660480737686, 0.340457558631897, -0.07730725407600403, 0.24887187778949738, 0.1096886396408081, -0.05836997181177139, -0.16852714121341705, -0.25787782669067383, -0.12124449014663696, 0.048071928322315216, 0.3949766159057617, 0.12964001297950745, 0.35608819127082825, 0.07878930866718292, -0.11959178745746613, 0.045764222741127014, 0.29384666681289673, -0.07731702923774719, -0.05440084636211395, 0.023671040311455727, 0.11164197325706482, -0.4879515469074249, -0.06773360818624496, -0.48957979679107666, -0.024497566744685173, 0.29348528385162354, 0.1288776695728302, -0.10629960894584656, -0.2630700469017029, -0.06763264536857605, 0.011257454752922058, 0.31413543224334717, 0.6562299728393555, -0.3680141568183899, -0.2714649736881256, -0.025936491787433624, -0.2892102003097534, 0.33273667097091675, 0.2332974076271057, 0.04035944119095802, 0.11657783389091492, -0.28527575731277466, 0.14658361673355103, 0.1895783394575119, -0.1150689348578453, -0.6489163041114807, 0.17646926641464233, 0.27396634221076965, 0.11519508808851242, -0.0747472494840622, 0.1823277473449707, 0.45631638169288635, 0.0839054211974144, -0.3178628385066986, 0.32884061336517334, 0.02901560254395008, 0.20491816103458405, -0.22149556875228882, -0.12006795406341553, 0.025713365525007248, 0.31700074672698975, 0.20249637961387634, 0.38468125462532043, -0.12467324733734131, -0.5544186234474182, 0.6804197430610657, 0.273928165435791, 0.27313926815986633, -0.06014985963702202, 0.06952916085720062, 0.07028509676456451, -0.02896871045231819, -0.1308215707540512, -0.5105838775634766, 0.24795152246952057, -0.20997768640518188, -0.06507095694541931, -0.11289530992507935, -0.06966225802898407, -0.4633413553237915, -0.19287919998168945, -0.47951480746269226, 0.07240140438079834, 0.03686395660042763, 0.15802016854286194, 0.051107071340084076, 0.1737809181213379, -0.10482431948184967, 0.13100755214691162, -0.36300376057624817, 0.26594462990760803, 0.17185142636299133, 0.6823761463165283, 0.007636191323399544, -0.4185493588447571, 0.2291160225868225, -0.018708929419517517, 0.14692836999893188, -0.1387355625629425, -0.14085258543491364, 0.1849902868270874, 0.11820067465305328, 0.08577299118041992, -0.05961345508694649, 0.0639268010854721, 0.41348007321357727, -0.06103917956352234, -0.17046697437763214, 0.1573742926120758, -0.023929370567202568, -0.04607154056429863, -0.08060154318809509, 0.062385763972997665, -0.3008621335029602, 0.32600313425064087, 0.07521204650402069, 0.0667823851108551, 0.13443195819854736, -0.1362137794494629, -0.14025399088859558, -0.25726401805877686, 0.14914774894714355, 0.022581569850444794, 0.41917985677719116, -0.2726511061191559, 0.2345094233751297, 0.2889038622379303, 0.6129664778709412, 0.24835985898971558, -0.07580657303333282, 0.03025740012526512, -0.22244799137115479, 0.32179492712020874, 0.047100700438022614, -0.12544825673103333, 0.16426391899585724, 0.08648410439491272, -0.005214786157011986, 0.05913852900266647, 0.09991602599620819, -0.23226821422576904, -0.01565294712781906, 0.27476978302001953, -0.10619153082370758, 0.20914030075073242, 0.007706824690103531, -0.08603367209434509, -0.3491993546485901, -0.2392619103193283, -0.11735076457262039, 0.26219505071640015, -0.3136243224143982, -0.05406845360994339, -0.2790367007255554, -0.11506648361682892, -0.05338045582175255, -0.4138813614845276, -0.00936930999159813, -0.27060022950172424, -0.016516273841261864, 0.18768411874771118, -0.0974474623799324, 0.3056287169456482, 0.11863663047552109, 0.07054226100444794, -0.03638008236885071, 0.2489538937807083, -0.347370445728302, 0.0012886859476566315, -0.17319202423095703, 0.03205779194831848, 0.2513461709022522, -0.10117626190185547, 0.06693677604198456, -0.5102338790893555, 0.2613255977630615, -0.30543121695518494, -0.0455586239695549, -0.030324261635541916, -0.009952139109373093, 0.3524155020713806, -0.42183735966682434, 0.31444135308265686, -0.1724592000246048, 0.29056960344314575, 0.3139408826828003, -0.16362786293029785, -0.10541693866252899, -0.09105184674263, -0.00854744017124176, -0.2153058499097824, 0.004193499684333801, -0.22678394615650177, -0.3269757330417633, -0.30175065994262695, -0.0057265739887952805, 0.17393752932548523, 0.13759133219718933, -0.07489016652107239, -0.07312723249197006, -0.19957202672958374, 0.10685579478740692, 0.017999853938817978, -0.04112473130226135, -0.5280047059059143, 0.23843678832054138, -0.07149642705917358, -0.33074015378952026, 0.01795973628759384, -0.09215300530195236, -0.12732069194316864, 0.07432471960783005, -0.7169964909553528, -0.06711763143539429, -0.3880700469017029, 0.2267727106809616, 0.219426229596138, 0.232693612575531, 0.15079975128173828, -0.2401963770389557, 0.05922769755125046, 0.045320719480514526, -0.26841431856155396, -0.02191532403230667, -0.11509792506694794, 0.1417149156332016, -0.17685692012310028, -0.09893415868282318, -0.2854595482349396, 0.5471099019050598, 0.5079019665718079, -0.12905919551849365, 0.3815901279449463, -0.16995485126972198, 0.19437167048454285, -0.020893536508083344, -0.14953932166099548, -0.07497956603765488, 0.040111180394887924, 0.2408696711063385, 0.08026932179927826, 0.11930996179580688, 0.27983567118644714, -0.07464096695184708, 0.2879490256309509, -0.4202844500541687, -0.2484242171049118, -0.15929962694644928, 0.025864286348223686, 0.0073243360966444016, 0.15775230526924133, 0.22307977080345154, 0.3470105528831482, -0.2184959203004837, 0.0030534863471984863, 0.49809983372688293, 0.401591032743454, 0.07976667582988739, 0.1786486953496933, -0.14177006483078003, -0.020516540855169296, 0.10220371186733246, 0.11745347082614899, 0.03354658558964729, -0.0711904913187027, 0.06024859845638275, 0.18001389503479004, 0.125163272023201, 0.5035449862480164, 0.10090091079473495, -0.015734560787677765, 0.21147094666957855, -0.211180180311203, -0.12054534256458282, -0.2852449417114258, -0.1828705370426178, -0.03404289856553078, 0.2640869617462158, 0.07796032726764679, -0.07241632789373398, 0.15429259836673737, 0.0493362694978714, 0.3880752921104431, -0.21793094277381897, -0.3860217034816742, -0.41526633501052856, 0.06636650115251541, -0.34258195757865906, 0.2754499316215515, -0.02786426991224289, -0.06539958715438843, -0.2875996232032776, -0.5182632207870483, -0.0665617510676384, -0.3197503387928009, -0.23095709085464478, 0.36159607768058777, 0.3945105969905853, -0.023565320298075676, 0.5025953650474548, 0.004416678100824356, -0.048899631947278976, 0.021943015977740288, 0.525637686252594, -0.07773143798112869, -0.19189848005771637, 0.04804138466715813, -0.45334598422050476, 0.0035195425152778625, 0.32107242941856384, 0.004398267716169357, -0.11320270597934723, 0.09049374610185623, 0.13814428448677063, -0.11456488072872162, 0.10019798576831818, 0.14184603095054626, -0.11415991932153702, 0.08389012515544891, -0.17547133564949036, 0.48026928305625916, -0.15094511210918427, 0.0244968980550766, 0.2507147490978241, 0.2644621431827545, 0.03004191815853119, -0.20869451761245728, -0.23876577615737915, 0.7291125059127808, -0.05066823959350586, -0.044018231332302094, 0.0925547182559967, 0.15103253722190857, 0.316180944442749, 0.2744693458080292, 0.11901749670505524, -0.4672916531562805, -0.12407927215099335, 0.02724781632423401, -0.21385592222213745, 0.01036887988448143, 0.16196711361408234, -0.11495227366685867, 0.41762539744377136, -0.2991805076599121, 0.2038963884115219, -0.04660634696483612, -0.06544087827205658, 0.10780413448810577, -0.15069317817687988, -0.36607128381729126, 0.1407124102115631, -0.21391645073890686, 0.7381118535995483, -0.055922701954841614, 0.08927923440933228, -0.1587282419204712, 0.2406957745552063, -0.38748231530189514, 0.25017663836479187, -0.05186642333865166, 0.0004915371537208557, 0.2546303868293762, -0.4546341598033905, -0.28637605905532837, -0.13414885103702545, 0.39821749925613403, -0.05452248454093933, 0.03474503755569458, 0.24324166774749756, 0.09804615378379822, 0.27240225672721863, 0.02713967114686966, 0.11505071818828583, 0.0699789971113205, -0.23097339272499084, -0.2676340341567993, 0.003945854492485523, 0.12040343880653381, -0.27441784739494324, -0.04808424413204193, 0.1209198534488678, 0.39614835381507874, -0.1862267702817917, 0.3557996451854706, 0.06791245937347412, 0.11819897592067719, -0.36919620633125305, 0.1185430958867073, 0.2790789008140564, 0.022762198001146317, 0.6957222819328308, 0.05257394164800644, -0.19535663723945618, -0.37241625785827637, 0.2043493092060089, -0.120692178606987, -0.10934986174106598, 0.256488174200058, 0.2302442491054535, -0.13311924040317535, -0.1516435146331787, -0.02578103542327881, -0.022188905626535416, -0.4973037838935852, 0.23907890915870667, -0.21331699192523956, 0.48868468403816223, -0.28746703267097473, 0.2811344265937805, 0.07729089260101318, 0.010782874189317226, -0.23013891279697418, -0.623793363571167, -0.3010351061820984, -0.05344534292817116, 0.27238523960113525, 0.15877661108970642, -0.3606685400009155, 0.17666904628276825, 0.18495580554008484, -0.14258311688899994, -0.22651407122612, -0.09509359300136566, -0.16674187779426575, -0.01933117024600506, 0.17002686858177185, -0.017530150711536407, 0.009652350097894669, -0.08858740329742432, -0.030918017029762268, 0.03074616566300392, -0.07137604802846909, -0.19141501188278198, -0.21122533082962036, 0.1275053769350052, 0.029304616153240204, -0.38412871956825256, -0.10082186013460159, 0.14160454273223877, -0.2175111323595047, -0.08773647248744965, 0.17317424714565277, 0.0058875903487205505, 0.1406632363796234, 0.20385849475860596, -0.04438333958387375, -0.0024460982531309128, -0.1048620194196701, -0.07809825241565704, -0.026489634066820145, 0.37408316135406494, 0.14797163009643555, 0.1731017529964447, 0.21882642805576324, 0.06284406781196594, -0.03161722421646118, -0.2579084634780884, -0.1031501293182373, 0.19123350083827972, 0.3479110896587372, -0.34275931119918823, 0.26781564950942993, 0.2144361436367035, 0.30380743741989136, 0.5476336479187012, 0.020274832844734192, -0.15989072620868683, -0.010617006570100784, 0.22618746757507324, -0.09587190300226212, 0.04945111647248268, 0.18321062624454498, 0.23980256915092468, -0.0034257248044013977, 0.05940413102507591, 0.013901010155677795, -0.03617151081562042, 0.1896943747997284, 0.17400655150413513, 0.49999696016311646, -0.028755255043506622, -0.040230996906757355, -0.13055716454982758, -0.09617403149604797, 0.35087254643440247, 0.15683023631572723, 0.16572217643260956, -0.2379724681377411, 0.164399653673172, -0.25459760427474976, 0.11070581525564194, -0.2814737558364868, -0.005911339074373245, -0.04894149675965309, -0.22633610665798187, -0.21376806497573853, 0.07693281769752502, -0.18189552426338196, -0.1775805503129959, 0.14207205176353455, 0.1665101796388626, -0.22137880325317383, -0.2211170792579651, -0.39510592818260193, -0.1918209344148636, -0.06541433185338974, 0.10270753502845764, -0.2114800214767456, -0.14002357423305511, -0.10322799533605576, 0.09782160073518753, -0.12538866698741913, -0.10959362983703613, 0.3389313817024231, 0.12420976161956787, -0.16210432350635529, -0.6163055300712585, -0.17183177173137665, 0.06747323274612427, 0.31563153862953186, -0.02266240119934082, 0.1581220179796219, 0.5317088961601257, 0.07262817770242691, -0.020479902625083923, 0.2248232513666153, 0.3053026795387268, 0.18324841558933258, 0.2305646687746048, -0.2554001212120056, 0.0979829654097557, -0.08131596446037292, -0.20418304204940796, 0.46116024255752563, 0.11164907366037369, -0.018113302066922188, 0.024311315268278122, 0.13138678669929504, -0.18767152726650238, 0.517825722694397, -0.2683522403240204, 0.2576666474342346, -0.1129750907421112, 0.481047660112381, -0.33851927518844604, -0.15135154128074646, -0.14533068239688873, -0.323835164308548, 0.02047581970691681, -0.1230427473783493, 0.2908841073513031, -0.31856033205986023, -0.03653046861290932, -0.1099613606929779, 0.04049290716648102, -0.2364504039287567, 0.22651463747024536, 0.36308541893959045, 0.4607115089893341, -0.4273547828197479, -0.02317514270544052, -0.48708146810531616, 0.15744338929653168, 0.07160928845405579, -0.07503058761358261, -0.10502701997756958, 0.38318556547164917, -0.4126495122909546, 0.28021684288978577, 0.6322040557861328, -0.22143492102622986, 0.00685587152838707, -0.3163100779056549, -0.3905278444290161, -0.07738660275936127, -0.08480259031057358, -0.11183751374483109, -0.11961155384778976, -0.200483500957489, 0.4125556945800781, -0.0979243591427803, -0.03895553946495056, 0.028016600757837296, -0.1723475456237793, 0.06993464380502701, -0.016412857919931412, 0.2489960491657257, 0.1506420373916626, 0.4619917869567871, 0.11285395920276642, 0.027824439108371735, -0.2196924090385437, -0.3297785818576813, -0.15560035407543182, 0.2651412785053253, -0.18231773376464844, 0.45232492685317993, 0.1015050932765007, 0.14268532395362854, -0.34010225534439087, 0.33688637614250183, 0.29445093870162964, 0.053941160440444946, 0.08565612882375717, -0.2133803367614746, 0.03400455415248871, -0.10678926110267639, 0.2685944139957428, 0.017713377252221107, -0.0878186821937561, 0.13983799517154694, -0.12760546803474426, -0.2177676111459732, 0.3195815980434418, -0.15623337030410767, -0.21092316508293152, -0.3723796606063843, 0.20399251580238342, 0.29324400424957275, 0.013923736289143562, -0.3589523434638977, 0.025141343474388123, 0.31988781690597534, -0.2642510235309601, -0.2642412483692169, 0.4908987879753113, -0.1349160075187683, 0.12747281789779663, 0.1253681778907776, 0.30604779720306396, 0.24003520607948303, -0.18441803753376007, 0.08033949136734009, -0.22456419467926025 ]
https://github.com/huggingface/datasets/issues/5634
Hi sorry for the late update. I think the problem still exists despite the `leave` flag <img width="1105" alt="image" src="https://user-images.githubusercontent.com/110427462/226501615-5b02fb02-fd5f-4eda-b1f7-a7ed6570892d.png"> ``` Package Version ------------------------ --------- aiofiles 22.1.0 aiohttp 3.8.4 aiosignal 1.3.1 aiosqlite 0.18.0 anyio 3.6.2 appnope 0.1.3 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 arrow 1.2.3 asttokens 2.2.1 async-generator 1.10 async-timeout 4.0.2 attrs 22.2.0 Babel 2.12.1 backcall 0.2.0 beautifulsoup4 4.11.2 bleach 6.0.0 brotlipy 0.7.0 certifi 2022.12.7 cffi 1.15.1 cfgv 3.3.1 charset-normalizer 2.1.1 comm 0.1.2 conda 22.9.0 conda-package-handling 2.0.2 conda_package_streaming 0.7.0 coverage 7.2.1 cryptography 38.0.4 datasets 2.8.0 debugpy 1.6.6 decorator 5.1.1 defusedxml 0.7.1 dill 0.3.6 distlib 0.3.6 distro 1.4.0 entrypoints 0.4 exceptiongroup 1.1.0 executing 1.2.0 fastjsonschema 2.16.3 filelock 3.9.0 flaky 3.7.0 fqdn 1.5.1 frozenlist 1.3.3 fsspec 2023.3.0 huggingface-hub 0.10.1 identify 2.5.18 idna 3.4 iniconfig 2.0.0 ipykernel 6.12.1 ipyparallel 8.4.1 ipython 7.32.0 ipython-genutils 0.2.0 ipywidgets 8.0.4 isoduration 20.11.0 jedi 0.18.2 Jinja2 3.1.2 json5 0.9.11 jsonpointer 2.3 jsonschema 4.17.3 jupyter_client 8.0.3 jupyter_core 5.2.0 jupyter-events 0.6.3 jupyter_server 2.4.0 jupyter_server_fileid 0.8.0 jupyter_server_terminals 0.4.4 jupyter_server_ydoc 0.6.1 jupyter-ydoc 0.2.2 jupyterlab 3.6.1 jupyterlab-pygments 0.2.2 jupyterlab_server 2.20.0 jupyterlab-widgets 3.0.5 libmambapy 1.1.0 mamba 1.1.0 MarkupSafe 2.1.2 matplotlib-inline 0.1.6 mistune 2.0.5 multidict 6.0.4 multiprocess 0.70.14 nbclassic 0.5.3 nbclient 0.7.2 nbconvert 7.2.9 nbformat 5.7.3 nest-asyncio 1.5.6 nodeenv 1.7.0 notebook 6.5.3 notebook_shim 0.2.2 numpy 1.24.2 outcome 1.2.0 packaging 23.0 pandas 1.5.3 pandocfilters 1.5.0 parso 0.8.3 pexpect 4.8.0 pickleshare 0.7.5 pip 22.3.1 platformdirs 3.0.0 plotly 5.13.1 pluggy 1.0.0 pre-commit 3.1.0 prometheus-client 0.16.0 prompt-toolkit 3.0.38 psutil 5.9.4 ptyprocess 0.7.0 pure-eval 0.2.2 pyarrow 11.0.0 pycosat 0.6.4 pycparser 2.21 Pygments 2.14.0 pyOpenSSL 22.1.0 pyrsistent 0.19.3 PySocks 1.7.1 pytest 7.2.1 pytest-asyncio 0.20.3 pytest-cov 4.0.0 pytest-timeout 2.1.0 python-dateutil 2.8.2 python-json-logger 2.0.7 pytz 2022.7.1 PyYAML 6.0 pyzmq 25.0.0 requests 2.28.1 responses 0.18.0 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 ruamel-yaml-conda 0.15.80 Send2Trash 1.8.0 setuptools 65.6.3 simplegeneric 0.8.1 six 1.16.0 sniffio 1.3.0 sortedcontainers 2.4.0 soupsieve 2.4 stack-data 0.6.2 tenacity 8.2.2 terminado 0.17.1 tinycss2 1.2.1 tomli 2.0.1 toolz 0.12.0 tornado 6.2 tqdm 4.65.0 traitlets 5.8.1 trio 0.22.0 typing_extensions 4.5.0 uri-template 1.2.0 urllib3 1.26.13 virtualenv 20.19.0 wcwidth 0.2.6 webcolors 1.12 webencodings 0.5.1 websocket-client 1.5.1 wheel 0.38.4 widgetsnbextension 4.0.5 xxhash 3.2.0 y-py 0.5.9 yarl 1.8.2 ypy-websocket 0.8.2 zstandard 0.19.0 ``` Any idea why this is happening? I debugged this to know the tqdm.pbar value is not being updated properly and its not the kernel not sending the comm messages to the IProgress bar
Not all progress bars are showing up when they should for downloading dataset
### Describe the bug During downloading the rotten tomatoes dataset, not all progress bars are displayed properly. This might be related to [this ticket](https://github.com/huggingface/datasets/issues/5117) as it raised the same concern but its not clear if the fix solves this issue too. ipywidgets <img width="1243" alt="image" src="https://user-images.githubusercontent.com/110427462/224851138-13fee5b7-ab51-4883-b96f-1b9808782e3b.png"> tqdm <img width="1251" alt="Screen Shot 2023-03-13 at 3 58 59 PM" src="https://user-images.githubusercontent.com/110427462/224851180-5feb7825-9250-4b1e-ad0c-f3172ac1eb78.png"> ### Steps to reproduce the bug 1. Run this line ``` from datasets import load_dataset rotten_tomatoes = load_dataset("rotten_tomatoes", split="train") ``` ### Expected behavior all progress bars for builder script, metadata, readme, training, validation, and test set ### Environment info requirements.txt ``` aiofiles==22.1.0 aiohttp==3.8.4 aiosignal==1.3.1 aiosqlite==0.18.0 anyio==3.6.2 appnope==0.1.3 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 arrow==1.2.3 asttokens==2.2.1 async-generator==1.10 async-timeout==4.0.2 attrs==22.2.0 Babel==2.12.1 backcall==0.2.0 beautifulsoup4==4.11.2 bleach==6.0.0 brotlipy @ file:///Users/runner/miniforge3/conda-bld/brotlipy_1666764961872/work certifi==2022.12.7 cffi @ file:///Users/runner/miniforge3/conda-bld/cffi_1671179414629/work cfgv==3.3.1 charset-normalizer @ file:///home/conda/feedstock_root/build_artifacts/charset-normalizer_1661170624537/work comm==0.1.2 conda==22.9.0 conda-package-handling @ file:///home/conda/feedstock_root/build_artifacts/conda-package-handling_1669907009957/work conda_package_streaming @ file:///home/conda/feedstock_root/build_artifacts/conda-package-streaming_1669733752472/work coverage==7.2.1 cryptography @ file:///Users/runner/miniforge3/conda-bld/cryptography_1669592251328/work datasets==2.1.0 debugpy==1.6.6 decorator==5.1.1 defusedxml==0.7.1 dill==0.3.6 distlib==0.3.6 distro==1.4.0 entrypoints==0.4 exceptiongroup==1.1.0 executing==1.2.0 fastjsonschema==2.16.3 filelock==3.9.0 flaky==3.7.0 fqdn==1.5.1 frozenlist==1.3.3 fsspec==2023.3.0 huggingface-hub==0.10.1 identify==2.5.18 idna @ file:///home/conda/feedstock_root/build_artifacts/idna_1663625384323/work iniconfig==2.0.0 ipykernel==6.12.1 ipyparallel==8.4.1 ipython==7.32.0 ipython-genutils==0.2.0 ipywidgets==8.0.4 isoduration==20.11.0 jedi==0.18.2 Jinja2==3.1.2 json5==0.9.11 jsonpointer==2.3 jsonschema==4.17.3 jupyter-events==0.6.3 jupyter-ydoc==0.2.2 jupyter_client==8.0.3 jupyter_core==5.2.0 jupyter_server==2.4.0 jupyter_server_fileid==0.8.0 jupyter_server_terminals==0.4.4 jupyter_server_ydoc==0.6.1 jupyterlab==3.6.1 jupyterlab-pygments==0.2.2 jupyterlab-widgets==3.0.5 jupyterlab_server==2.20.0 libmambapy @ file:///Users/runner/miniforge3/conda-bld/mamba-split_1671598370072/work/libmambapy mamba @ file:///Users/runner/miniforge3/conda-bld/mamba-split_1671598370072/work/mamba MarkupSafe==2.1.2 matplotlib-inline==0.1.6 mistune==2.0.5 multidict==6.0.4 multiprocess==0.70.14 nbclassic==0.5.3 nbclient==0.7.2 nbconvert==7.2.9 nbformat==5.7.3 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.3 notebook_shim==0.2.2 numpy==1.24.2 outcome==1.2.0 packaging==23.0 pandas==1.5.3 pandocfilters==1.5.0 parso==0.8.3 pexpect==4.8.0 pickleshare==0.7.5 platformdirs==3.0.0 plotly==5.13.1 pluggy==1.0.0 pre-commit==3.1.0 prometheus-client==0.16.0 prompt-toolkit==3.0.38 psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 pyarrow==11.0.0 pycosat @ file:///Users/runner/miniforge3/conda-bld/pycosat_1666836580084/work pycparser @ file:///home/conda/feedstock_root/build_artifacts/pycparser_1636257122734/work Pygments==2.14.0 pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1665350324128/work pyrsistent==0.19.3 PySocks @ file:///home/conda/feedstock_root/build_artifacts/pysocks_1661604839144/work pytest==7.2.1 pytest-asyncio==0.20.3 pytest-cov==4.0.0 pytest-timeout==2.1.0 python-dateutil==2.8.2 python-json-logger==2.0.7 pytz==2022.7.1 PyYAML==6.0 pyzmq==25.0.0 requests @ file:///home/conda/feedstock_root/build_artifacts/requests_1661872987712/work responses==0.18.0 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 ruamel-yaml-conda @ file:///Users/runner/miniforge3/conda-bld/ruamel_yaml_1666819760545/work Send2Trash==1.8.0 simplegeneric==0.8.1 six==1.16.0 sniffio==1.3.0 sortedcontainers==2.4.0 soupsieve==2.4 stack-data==0.6.2 tenacity==8.2.2 terminado==0.17.1 tinycss2==1.2.1 tomli==2.0.1 toolz @ file:///home/conda/feedstock_root/build_artifacts/toolz_1657485559105/work tornado==6.2 tqdm==4.64.1 traitlets==5.8.1 trio==0.22.0 typing_extensions==4.5.0 uri-template==1.2.0 urllib3 @ file:///home/conda/feedstock_root/build_artifacts/urllib3_1669259737463/work virtualenv==20.19.0 wcwidth==0.2.6 webcolors==1.12 webencodings==0.5.1 websocket-client==1.5.1 widgetsnbextension==4.0.5 xxhash==3.2.0 y-py==0.5.9 yarl==1.8.2 ypy-websocket==0.8.2 zstandard==0.19.0 ```
373
Not all progress bars are showing up when they should for downloading dataset ### Describe the bug During downloading the rotten tomatoes dataset, not all progress bars are displayed properly. This might be related to [this ticket](https://github.com/huggingface/datasets/issues/5117) as it raised the same concern but its not clear if the fix solves this issue too. ipywidgets <img width="1243" alt="image" src="https://user-images.githubusercontent.com/110427462/224851138-13fee5b7-ab51-4883-b96f-1b9808782e3b.png"> tqdm <img width="1251" alt="Screen Shot 2023-03-13 at 3 58 59 PM" src="https://user-images.githubusercontent.com/110427462/224851180-5feb7825-9250-4b1e-ad0c-f3172ac1eb78.png"> ### Steps to reproduce the bug 1. Run this line ``` from datasets import load_dataset rotten_tomatoes = load_dataset("rotten_tomatoes", split="train") ``` ### Expected behavior all progress bars for builder script, metadata, readme, training, validation, and test set ### Environment info requirements.txt ``` aiofiles==22.1.0 aiohttp==3.8.4 aiosignal==1.3.1 aiosqlite==0.18.0 anyio==3.6.2 appnope==0.1.3 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 arrow==1.2.3 asttokens==2.2.1 async-generator==1.10 async-timeout==4.0.2 attrs==22.2.0 Babel==2.12.1 backcall==0.2.0 beautifulsoup4==4.11.2 bleach==6.0.0 brotlipy @ file:///Users/runner/miniforge3/conda-bld/brotlipy_1666764961872/work certifi==2022.12.7 cffi @ file:///Users/runner/miniforge3/conda-bld/cffi_1671179414629/work cfgv==3.3.1 charset-normalizer @ file:///home/conda/feedstock_root/build_artifacts/charset-normalizer_1661170624537/work comm==0.1.2 conda==22.9.0 conda-package-handling @ file:///home/conda/feedstock_root/build_artifacts/conda-package-handling_1669907009957/work conda_package_streaming @ file:///home/conda/feedstock_root/build_artifacts/conda-package-streaming_1669733752472/work coverage==7.2.1 cryptography @ file:///Users/runner/miniforge3/conda-bld/cryptography_1669592251328/work datasets==2.1.0 debugpy==1.6.6 decorator==5.1.1 defusedxml==0.7.1 dill==0.3.6 distlib==0.3.6 distro==1.4.0 entrypoints==0.4 exceptiongroup==1.1.0 executing==1.2.0 fastjsonschema==2.16.3 filelock==3.9.0 flaky==3.7.0 fqdn==1.5.1 frozenlist==1.3.3 fsspec==2023.3.0 huggingface-hub==0.10.1 identify==2.5.18 idna @ file:///home/conda/feedstock_root/build_artifacts/idna_1663625384323/work iniconfig==2.0.0 ipykernel==6.12.1 ipyparallel==8.4.1 ipython==7.32.0 ipython-genutils==0.2.0 ipywidgets==8.0.4 isoduration==20.11.0 jedi==0.18.2 Jinja2==3.1.2 json5==0.9.11 jsonpointer==2.3 jsonschema==4.17.3 jupyter-events==0.6.3 jupyter-ydoc==0.2.2 jupyter_client==8.0.3 jupyter_core==5.2.0 jupyter_server==2.4.0 jupyter_server_fileid==0.8.0 jupyter_server_terminals==0.4.4 jupyter_server_ydoc==0.6.1 jupyterlab==3.6.1 jupyterlab-pygments==0.2.2 jupyterlab-widgets==3.0.5 jupyterlab_server==2.20.0 libmambapy @ file:///Users/runner/miniforge3/conda-bld/mamba-split_1671598370072/work/libmambapy mamba @ file:///Users/runner/miniforge3/conda-bld/mamba-split_1671598370072/work/mamba MarkupSafe==2.1.2 matplotlib-inline==0.1.6 mistune==2.0.5 multidict==6.0.4 multiprocess==0.70.14 nbclassic==0.5.3 nbclient==0.7.2 nbconvert==7.2.9 nbformat==5.7.3 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.3 notebook_shim==0.2.2 numpy==1.24.2 outcome==1.2.0 packaging==23.0 pandas==1.5.3 pandocfilters==1.5.0 parso==0.8.3 pexpect==4.8.0 pickleshare==0.7.5 platformdirs==3.0.0 plotly==5.13.1 pluggy==1.0.0 pre-commit==3.1.0 prometheus-client==0.16.0 prompt-toolkit==3.0.38 psutil==5.9.4 ptyprocess==0.7.0 pure-eval==0.2.2 pyarrow==11.0.0 pycosat @ file:///Users/runner/miniforge3/conda-bld/pycosat_1666836580084/work pycparser @ file:///home/conda/feedstock_root/build_artifacts/pycparser_1636257122734/work Pygments==2.14.0 pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1665350324128/work pyrsistent==0.19.3 PySocks @ file:///home/conda/feedstock_root/build_artifacts/pysocks_1661604839144/work pytest==7.2.1 pytest-asyncio==0.20.3 pytest-cov==4.0.0 pytest-timeout==2.1.0 python-dateutil==2.8.2 python-json-logger==2.0.7 pytz==2022.7.1 PyYAML==6.0 pyzmq==25.0.0 requests @ file:///home/conda/feedstock_root/build_artifacts/requests_1661872987712/work responses==0.18.0 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 ruamel-yaml-conda @ file:///Users/runner/miniforge3/conda-bld/ruamel_yaml_1666819760545/work Send2Trash==1.8.0 simplegeneric==0.8.1 six==1.16.0 sniffio==1.3.0 sortedcontainers==2.4.0 soupsieve==2.4 stack-data==0.6.2 tenacity==8.2.2 terminado==0.17.1 tinycss2==1.2.1 tomli==2.0.1 toolz @ file:///home/conda/feedstock_root/build_artifacts/toolz_1657485559105/work tornado==6.2 tqdm==4.64.1 traitlets==5.8.1 trio==0.22.0 typing_extensions==4.5.0 uri-template==1.2.0 urllib3 @ file:///home/conda/feedstock_root/build_artifacts/urllib3_1669259737463/work virtualenv==20.19.0 wcwidth==0.2.6 webcolors==1.12 webencodings==0.5.1 websocket-client==1.5.1 widgetsnbextension==4.0.5 xxhash==3.2.0 y-py==0.5.9 yarl==1.8.2 ypy-websocket==0.8.2 zstandard==0.19.0 ``` Hi sorry for the late update. I think the problem still exists despite the `leave` flag <img width="1105" alt="image" src="https://user-images.githubusercontent.com/110427462/226501615-5b02fb02-fd5f-4eda-b1f7-a7ed6570892d.png"> ``` Package Version ------------------------ --------- aiofiles 22.1.0 aiohttp 3.8.4 aiosignal 1.3.1 aiosqlite 0.18.0 anyio 3.6.2 appnope 0.1.3 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 arrow 1.2.3 asttokens 2.2.1 async-generator 1.10 async-timeout 4.0.2 attrs 22.2.0 Babel 2.12.1 backcall 0.2.0 beautifulsoup4 4.11.2 bleach 6.0.0 brotlipy 0.7.0 certifi 2022.12.7 cffi 1.15.1 cfgv 3.3.1 charset-normalizer 2.1.1 comm 0.1.2 conda 22.9.0 conda-package-handling 2.0.2 conda_package_streaming 0.7.0 coverage 7.2.1 cryptography 38.0.4 datasets 2.8.0 debugpy 1.6.6 decorator 5.1.1 defusedxml 0.7.1 dill 0.3.6 distlib 0.3.6 distro 1.4.0 entrypoints 0.4 exceptiongroup 1.1.0 executing 1.2.0 fastjsonschema 2.16.3 filelock 3.9.0 flaky 3.7.0 fqdn 1.5.1 frozenlist 1.3.3 fsspec 2023.3.0 huggingface-hub 0.10.1 identify 2.5.18 idna 3.4 iniconfig 2.0.0 ipykernel 6.12.1 ipyparallel 8.4.1 ipython 7.32.0 ipython-genutils 0.2.0 ipywidgets 8.0.4 isoduration 20.11.0 jedi 0.18.2 Jinja2 3.1.2 json5 0.9.11 jsonpointer 2.3 jsonschema 4.17.3 jupyter_client 8.0.3 jupyter_core 5.2.0 jupyter-events 0.6.3 jupyter_server 2.4.0 jupyter_server_fileid 0.8.0 jupyter_server_terminals 0.4.4 jupyter_server_ydoc 0.6.1 jupyter-ydoc 0.2.2 jupyterlab 3.6.1 jupyterlab-pygments 0.2.2 jupyterlab_server 2.20.0 jupyterlab-widgets 3.0.5 libmambapy 1.1.0 mamba 1.1.0 MarkupSafe 2.1.2 matplotlib-inline 0.1.6 mistune 2.0.5 multidict 6.0.4 multiprocess 0.70.14 nbclassic 0.5.3 nbclient 0.7.2 nbconvert 7.2.9 nbformat 5.7.3 nest-asyncio 1.5.6 nodeenv 1.7.0 notebook 6.5.3 notebook_shim 0.2.2 numpy 1.24.2 outcome 1.2.0 packaging 23.0 pandas 1.5.3 pandocfilters 1.5.0 parso 0.8.3 pexpect 4.8.0 pickleshare 0.7.5 pip 22.3.1 platformdirs 3.0.0 plotly 5.13.1 pluggy 1.0.0 pre-commit 3.1.0 prometheus-client 0.16.0 prompt-toolkit 3.0.38 psutil 5.9.4 ptyprocess 0.7.0 pure-eval 0.2.2 pyarrow 11.0.0 pycosat 0.6.4 pycparser 2.21 Pygments 2.14.0 pyOpenSSL 22.1.0 pyrsistent 0.19.3 PySocks 1.7.1 pytest 7.2.1 pytest-asyncio 0.20.3 pytest-cov 4.0.0 pytest-timeout 2.1.0 python-dateutil 2.8.2 python-json-logger 2.0.7 pytz 2022.7.1 PyYAML 6.0 pyzmq 25.0.0 requests 2.28.1 responses 0.18.0 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 ruamel-yaml-conda 0.15.80 Send2Trash 1.8.0 setuptools 65.6.3 simplegeneric 0.8.1 six 1.16.0 sniffio 1.3.0 sortedcontainers 2.4.0 soupsieve 2.4 stack-data 0.6.2 tenacity 8.2.2 terminado 0.17.1 tinycss2 1.2.1 tomli 2.0.1 toolz 0.12.0 tornado 6.2 tqdm 4.65.0 traitlets 5.8.1 trio 0.22.0 typing_extensions 4.5.0 uri-template 1.2.0 urllib3 1.26.13 virtualenv 20.19.0 wcwidth 0.2.6 webcolors 1.12 webencodings 0.5.1 websocket-client 1.5.1 wheel 0.38.4 widgetsnbextension 4.0.5 xxhash 3.2.0 y-py 0.5.9 yarl 1.8.2 ypy-websocket 0.8.2 zstandard 0.19.0 ``` Any idea why this is happening? I debugged this to know the tqdm.pbar value is not being updated properly and its not the kernel not sending the comm messages to the IProgress bar
[ -0.43630003929138184, 0.34490859508514404, -0.13294562697410583, 0.34058937430381775, 0.36995577812194824, -0.013252399861812592, 0.4227297008037567, 0.3985331356525421, 0.015536338090896606, 0.11542749404907227, -0.2259310930967331, 0.11328896880149841, 0.22292231023311615, 0.3562466502189636, 0.07820151746273041, 0.07475532591342926, 0.009124953299760818, 0.22338221967220306, -0.325848251581192, -0.09730885922908783, -0.18720802664756775, 0.1364416778087616, -0.2658804655075073, -0.011435844004154205, -0.35527610778808594, 0.04417441785335541, 0.009763717651367188, -0.03421218320727348, 0.1394672989845276, -0.5105108618736267, 0.2899409532546997, 0.13450099527835846, 0.12293541431427002, 0.327997088432312, -0.00011920109682250768, 0.0031758397817611694, 0.49437204003334045, -0.029254142194986343, -0.2085438072681427, 0.15051688253879547, -0.2716195583343506, -0.38055717945098877, 0.13574296236038208, -0.18882182240486145, 0.04128322750329971, 0.14452946186065674, -0.18559546768665314, -0.2276279330253601, 0.12933571636676788, 0.1463276445865631, 0.1913139671087265, 0.5159805417060852, 0.23194168508052826, 0.19256818294525146, 0.5501551628112793, -0.07811196148395538, -0.24536696076393127, -0.038350991904735565, 0.43929556012153625, 0.0563260018825531, -0.12247858941555023, 0.233184814453125, 0.1145571768283844, 0.506859540939331, -0.10489704459905624, 0.2428993582725525, 0.372420072555542, -0.40027251839637756, -0.15457624197006226, 0.23395350575447083, 0.3515029847621918, -0.31177058815956116, -0.5117546916007996, -0.2414366751909256, -0.11434116959571838, -0.4615795612335205, 0.04508558660745621, 0.1416451334953308, -0.02059510350227356, 0.030230700969696045, -0.7768369317054749, 0.36536455154418945, -0.06884665787220001, 0.29943323135375977, 0.03041640669107437, -0.05175121873617172, -0.10728861391544342, 0.017727475613355637, -0.3457499146461487, 0.2261451780796051, 0.032565321773290634, -0.056478772312402725, 0.0026096967048943043, 0.049449820071458817, -0.2783757746219635, -0.0016228258609771729, -0.027956604957580566, 0.40097659826278687, 0.21046924591064453, 0.4831174314022064, -0.5268996953964233, 0.11220888793468475, -0.09628379344940186, -0.18487055599689484, 0.17517302930355072, 0.10504694283008575, 0.11482422798871994, -0.14325696229934692, 0.49844804406166077, 0.25666671991348267, -0.117648184299469, 0.05211152136325836, 0.18554773926734924, -0.10390572249889374, 0.07916079461574554, 0.21550896763801575, 0.15522365272045135, -0.269173800945282, -0.2697071135044098, -0.06374095380306244, 0.2863207757472992, -0.10626432299613953, 0.19627514481544495, 0.1271713674068451, -0.388847291469574, -0.05363761633634567, 0.005678199231624603, 0.27189531922340393, -0.10282810032367706, -0.31540176272392273, -0.25038430094718933, -0.298847496509552, -0.1416226029396057, 0.09942660480737686, 0.340457558631897, -0.07730725407600403, 0.24887187778949738, 0.1096886396408081, -0.05836997181177139, -0.16852714121341705, -0.25787782669067383, -0.12124449014663696, 0.048071928322315216, 0.3949766159057617, 0.12964001297950745, 0.35608819127082825, 0.07878930866718292, -0.11959178745746613, 0.045764222741127014, 0.29384666681289673, -0.07731702923774719, -0.05440084636211395, 0.023671040311455727, 0.11164197325706482, -0.4879515469074249, -0.06773360818624496, -0.48957979679107666, -0.024497566744685173, 0.29348528385162354, 0.1288776695728302, -0.10629960894584656, -0.2630700469017029, -0.06763264536857605, 0.011257454752922058, 0.31413543224334717, 0.6562299728393555, -0.3680141568183899, -0.2714649736881256, -0.025936491787433624, -0.2892102003097534, 0.33273667097091675, 0.2332974076271057, 0.04035944119095802, 0.11657783389091492, -0.28527575731277466, 0.14658361673355103, 0.1895783394575119, -0.1150689348578453, -0.6489163041114807, 0.17646926641464233, 0.27396634221076965, 0.11519508808851242, -0.0747472494840622, 0.1823277473449707, 0.45631638169288635, 0.0839054211974144, -0.3178628385066986, 0.32884061336517334, 0.02901560254395008, 0.20491816103458405, -0.22149556875228882, -0.12006795406341553, 0.025713365525007248, 0.31700074672698975, 0.20249637961387634, 0.38468125462532043, -0.12467324733734131, -0.5544186234474182, 0.6804197430610657, 0.273928165435791, 0.27313926815986633, -0.06014985963702202, 0.06952916085720062, 0.07028509676456451, -0.02896871045231819, -0.1308215707540512, -0.5105838775634766, 0.24795152246952057, -0.20997768640518188, -0.06507095694541931, -0.11289530992507935, -0.06966225802898407, -0.4633413553237915, -0.19287919998168945, -0.47951480746269226, 0.07240140438079834, 0.03686395660042763, 0.15802016854286194, 0.051107071340084076, 0.1737809181213379, -0.10482431948184967, 0.13100755214691162, -0.36300376057624817, 0.26594462990760803, 0.17185142636299133, 0.6823761463165283, 0.007636191323399544, -0.4185493588447571, 0.2291160225868225, -0.018708929419517517, 0.14692836999893188, -0.1387355625629425, -0.14085258543491364, 0.1849902868270874, 0.11820067465305328, 0.08577299118041992, -0.05961345508694649, 0.0639268010854721, 0.41348007321357727, -0.06103917956352234, -0.17046697437763214, 0.1573742926120758, -0.023929370567202568, -0.04607154056429863, -0.08060154318809509, 0.062385763972997665, -0.3008621335029602, 0.32600313425064087, 0.07521204650402069, 0.0667823851108551, 0.13443195819854736, -0.1362137794494629, -0.14025399088859558, -0.25726401805877686, 0.14914774894714355, 0.022581569850444794, 0.41917985677719116, -0.2726511061191559, 0.2345094233751297, 0.2889038622379303, 0.6129664778709412, 0.24835985898971558, -0.07580657303333282, 0.03025740012526512, -0.22244799137115479, 0.32179492712020874, 0.047100700438022614, -0.12544825673103333, 0.16426391899585724, 0.08648410439491272, -0.005214786157011986, 0.05913852900266647, 0.09991602599620819, -0.23226821422576904, -0.01565294712781906, 0.27476978302001953, -0.10619153082370758, 0.20914030075073242, 0.007706824690103531, -0.08603367209434509, -0.3491993546485901, -0.2392619103193283, -0.11735076457262039, 0.26219505071640015, -0.3136243224143982, -0.05406845360994339, -0.2790367007255554, -0.11506648361682892, -0.05338045582175255, -0.4138813614845276, -0.00936930999159813, -0.27060022950172424, -0.016516273841261864, 0.18768411874771118, -0.0974474623799324, 0.3056287169456482, 0.11863663047552109, 0.07054226100444794, -0.03638008236885071, 0.2489538937807083, -0.347370445728302, 0.0012886859476566315, -0.17319202423095703, 0.03205779194831848, 0.2513461709022522, -0.10117626190185547, 0.06693677604198456, -0.5102338790893555, 0.2613255977630615, -0.30543121695518494, -0.0455586239695549, -0.030324261635541916, -0.009952139109373093, 0.3524155020713806, -0.42183735966682434, 0.31444135308265686, -0.1724592000246048, 0.29056960344314575, 0.3139408826828003, -0.16362786293029785, -0.10541693866252899, -0.09105184674263, -0.00854744017124176, -0.2153058499097824, 0.004193499684333801, -0.22678394615650177, -0.3269757330417633, -0.30175065994262695, -0.0057265739887952805, 0.17393752932548523, 0.13759133219718933, -0.07489016652107239, -0.07312723249197006, -0.19957202672958374, 0.10685579478740692, 0.017999853938817978, -0.04112473130226135, -0.5280047059059143, 0.23843678832054138, -0.07149642705917358, -0.33074015378952026, 0.01795973628759384, -0.09215300530195236, -0.12732069194316864, 0.07432471960783005, -0.7169964909553528, -0.06711763143539429, -0.3880700469017029, 0.2267727106809616, 0.219426229596138, 0.232693612575531, 0.15079975128173828, -0.2401963770389557, 0.05922769755125046, 0.045320719480514526, -0.26841431856155396, -0.02191532403230667, -0.11509792506694794, 0.1417149156332016, -0.17685692012310028, -0.09893415868282318, -0.2854595482349396, 0.5471099019050598, 0.5079019665718079, -0.12905919551849365, 0.3815901279449463, -0.16995485126972198, 0.19437167048454285, -0.020893536508083344, -0.14953932166099548, -0.07497956603765488, 0.040111180394887924, 0.2408696711063385, 0.08026932179927826, 0.11930996179580688, 0.27983567118644714, -0.07464096695184708, 0.2879490256309509, -0.4202844500541687, -0.2484242171049118, -0.15929962694644928, 0.025864286348223686, 0.0073243360966444016, 0.15775230526924133, 0.22307977080345154, 0.3470105528831482, -0.2184959203004837, 0.0030534863471984863, 0.49809983372688293, 0.401591032743454, 0.07976667582988739, 0.1786486953496933, -0.14177006483078003, -0.020516540855169296, 0.10220371186733246, 0.11745347082614899, 0.03354658558964729, -0.0711904913187027, 0.06024859845638275, 0.18001389503479004, 0.125163272023201, 0.5035449862480164, 0.10090091079473495, -0.015734560787677765, 0.21147094666957855, -0.211180180311203, -0.12054534256458282, -0.2852449417114258, -0.1828705370426178, -0.03404289856553078, 0.2640869617462158, 0.07796032726764679, -0.07241632789373398, 0.15429259836673737, 0.0493362694978714, 0.3880752921104431, -0.21793094277381897, -0.3860217034816742, -0.41526633501052856, 0.06636650115251541, -0.34258195757865906, 0.2754499316215515, -0.02786426991224289, -0.06539958715438843, -0.2875996232032776, -0.5182632207870483, -0.0665617510676384, -0.3197503387928009, -0.23095709085464478, 0.36159607768058777, 0.3945105969905853, -0.023565320298075676, 0.5025953650474548, 0.004416678100824356, -0.048899631947278976, 0.021943015977740288, 0.525637686252594, -0.07773143798112869, -0.19189848005771637, 0.04804138466715813, -0.45334598422050476, 0.0035195425152778625, 0.32107242941856384, 0.004398267716169357, -0.11320270597934723, 0.09049374610185623, 0.13814428448677063, -0.11456488072872162, 0.10019798576831818, 0.14184603095054626, -0.11415991932153702, 0.08389012515544891, -0.17547133564949036, 0.48026928305625916, -0.15094511210918427, 0.0244968980550766, 0.2507147490978241, 0.2644621431827545, 0.03004191815853119, -0.20869451761245728, -0.23876577615737915, 0.7291125059127808, -0.05066823959350586, -0.044018231332302094, 0.0925547182559967, 0.15103253722190857, 0.316180944442749, 0.2744693458080292, 0.11901749670505524, -0.4672916531562805, -0.12407927215099335, 0.02724781632423401, -0.21385592222213745, 0.01036887988448143, 0.16196711361408234, -0.11495227366685867, 0.41762539744377136, -0.2991805076599121, 0.2038963884115219, -0.04660634696483612, -0.06544087827205658, 0.10780413448810577, -0.15069317817687988, -0.36607128381729126, 0.1407124102115631, -0.21391645073890686, 0.7381118535995483, -0.055922701954841614, 0.08927923440933228, -0.1587282419204712, 0.2406957745552063, -0.38748231530189514, 0.25017663836479187, -0.05186642333865166, 0.0004915371537208557, 0.2546303868293762, -0.4546341598033905, -0.28637605905532837, -0.13414885103702545, 0.39821749925613403, -0.05452248454093933, 0.03474503755569458, 0.24324166774749756, 0.09804615378379822, 0.27240225672721863, 0.02713967114686966, 0.11505071818828583, 0.0699789971113205, -0.23097339272499084, -0.2676340341567993, 0.003945854492485523, 0.12040343880653381, -0.27441784739494324, -0.04808424413204193, 0.1209198534488678, 0.39614835381507874, -0.1862267702817917, 0.3557996451854706, 0.06791245937347412, 0.11819897592067719, -0.36919620633125305, 0.1185430958867073, 0.2790789008140564, 0.022762198001146317, 0.6957222819328308, 0.05257394164800644, -0.19535663723945618, -0.37241625785827637, 0.2043493092060089, -0.120692178606987, -0.10934986174106598, 0.256488174200058, 0.2302442491054535, -0.13311924040317535, -0.1516435146331787, -0.02578103542327881, -0.022188905626535416, -0.4973037838935852, 0.23907890915870667, -0.21331699192523956, 0.48868468403816223, -0.28746703267097473, 0.2811344265937805, 0.07729089260101318, 0.010782874189317226, -0.23013891279697418, -0.623793363571167, -0.3010351061820984, -0.05344534292817116, 0.27238523960113525, 0.15877661108970642, -0.3606685400009155, 0.17666904628276825, 0.18495580554008484, -0.14258311688899994, -0.22651407122612, -0.09509359300136566, -0.16674187779426575, -0.01933117024600506, 0.17002686858177185, -0.017530150711536407, 0.009652350097894669, -0.08858740329742432, -0.030918017029762268, 0.03074616566300392, -0.07137604802846909, -0.19141501188278198, -0.21122533082962036, 0.1275053769350052, 0.029304616153240204, -0.38412871956825256, -0.10082186013460159, 0.14160454273223877, -0.2175111323595047, -0.08773647248744965, 0.17317424714565277, 0.0058875903487205505, 0.1406632363796234, 0.20385849475860596, -0.04438333958387375, -0.0024460982531309128, -0.1048620194196701, -0.07809825241565704, -0.026489634066820145, 0.37408316135406494, 0.14797163009643555, 0.1731017529964447, 0.21882642805576324, 0.06284406781196594, -0.03161722421646118, -0.2579084634780884, -0.1031501293182373, 0.19123350083827972, 0.3479110896587372, -0.34275931119918823, 0.26781564950942993, 0.2144361436367035, 0.30380743741989136, 0.5476336479187012, 0.020274832844734192, -0.15989072620868683, -0.010617006570100784, 0.22618746757507324, -0.09587190300226212, 0.04945111647248268, 0.18321062624454498, 0.23980256915092468, -0.0034257248044013977, 0.05940413102507591, 0.013901010155677795, -0.03617151081562042, 0.1896943747997284, 0.17400655150413513, 0.49999696016311646, -0.028755255043506622, -0.040230996906757355, -0.13055716454982758, -0.09617403149604797, 0.35087254643440247, 0.15683023631572723, 0.16572217643260956, -0.2379724681377411, 0.164399653673172, -0.25459760427474976, 0.11070581525564194, -0.2814737558364868, -0.005911339074373245, -0.04894149675965309, -0.22633610665798187, -0.21376806497573853, 0.07693281769752502, -0.18189552426338196, -0.1775805503129959, 0.14207205176353455, 0.1665101796388626, -0.22137880325317383, -0.2211170792579651, -0.39510592818260193, -0.1918209344148636, -0.06541433185338974, 0.10270753502845764, -0.2114800214767456, -0.14002357423305511, -0.10322799533605576, 0.09782160073518753, -0.12538866698741913, -0.10959362983703613, 0.3389313817024231, 0.12420976161956787, -0.16210432350635529, -0.6163055300712585, -0.17183177173137665, 0.06747323274612427, 0.31563153862953186, -0.02266240119934082, 0.1581220179796219, 0.5317088961601257, 0.07262817770242691, -0.020479902625083923, 0.2248232513666153, 0.3053026795387268, 0.18324841558933258, 0.2305646687746048, -0.2554001212120056, 0.0979829654097557, -0.08131596446037292, -0.20418304204940796, 0.46116024255752563, 0.11164907366037369, -0.018113302066922188, 0.024311315268278122, 0.13138678669929504, -0.18767152726650238, 0.517825722694397, -0.2683522403240204, 0.2576666474342346, -0.1129750907421112, 0.481047660112381, -0.33851927518844604, -0.15135154128074646, -0.14533068239688873, -0.323835164308548, 0.02047581970691681, -0.1230427473783493, 0.2908841073513031, -0.31856033205986023, -0.03653046861290932, -0.1099613606929779, 0.04049290716648102, -0.2364504039287567, 0.22651463747024536, 0.36308541893959045, 0.4607115089893341, -0.4273547828197479, -0.02317514270544052, -0.48708146810531616, 0.15744338929653168, 0.07160928845405579, -0.07503058761358261, -0.10502701997756958, 0.38318556547164917, -0.4126495122909546, 0.28021684288978577, 0.6322040557861328, -0.22143492102622986, 0.00685587152838707, -0.3163100779056549, -0.3905278444290161, -0.07738660275936127, -0.08480259031057358, -0.11183751374483109, -0.11961155384778976, -0.200483500957489, 0.4125556945800781, -0.0979243591427803, -0.03895553946495056, 0.028016600757837296, -0.1723475456237793, 0.06993464380502701, -0.016412857919931412, 0.2489960491657257, 0.1506420373916626, 0.4619917869567871, 0.11285395920276642, 0.027824439108371735, -0.2196924090385437, -0.3297785818576813, -0.15560035407543182, 0.2651412785053253, -0.18231773376464844, 0.45232492685317993, 0.1015050932765007, 0.14268532395362854, -0.34010225534439087, 0.33688637614250183, 0.29445093870162964, 0.053941160440444946, 0.08565612882375717, -0.2133803367614746, 0.03400455415248871, -0.10678926110267639, 0.2685944139957428, 0.017713377252221107, -0.0878186821937561, 0.13983799517154694, -0.12760546803474426, -0.2177676111459732, 0.3195815980434418, -0.15623337030410767, -0.21092316508293152, -0.3723796606063843, 0.20399251580238342, 0.29324400424957275, 0.013923736289143562, -0.3589523434638977, 0.025141343474388123, 0.31988781690597534, -0.2642510235309601, -0.2642412483692169, 0.4908987879753113, -0.1349160075187683, 0.12747281789779663, 0.1253681778907776, 0.30604779720306396, 0.24003520607948303, -0.18441803753376007, 0.08033949136734009, -0.22456419467926025 ]
https://github.com/huggingface/datasets/issues/5633
Okay, the issue was likely caused by mixing `conda` and `pip` usage - I forgot that I have already used `pip` in this environment previously and that it was 'spoiled' because of it. Creating another environment and installing `datasets` by pip with other packages from the `requirements.txt` file solved the problem.
Cannot import datasets
### Describe the bug Hi, I cannot even import the library :( I installed it by running: ``` $ conda install datasets ``` Then I realized I should maybe use the huggingface channel, because I encountered the error below, so I ran: ``` $ conda remove datasets $ conda install -c huggingface datasets ``` Please see 'steps to reproduce the bug' for the specific error, as steps to reproduce is just importing the library ### Steps to reproduce the bug ``` $ python3 Python 3.8.15 (default, Nov 24 2022, 15:19:38) [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> import datasets Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/datasets/__init__.py", line 33, in <module> from .arrow_dataset import Dataset, concatenate_datasets File "/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 59, in <module> from .arrow_reader import ArrowReader File "/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/datasets/arrow_reader.py", line 27, in <module> import pyarrow.parquet as pq File "/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/pyarrow/parquet/__init__.py", line 20, in <module> from .core import * File "/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/pyarrow/parquet/core.py", line 37, in <module> from pyarrow._parquet import (ParquetReader, Statistics, # noqa ImportError: cannot import name 'FileEncryptionProperties' from 'pyarrow._parquet' (/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/pyarrow/_parquet.cpython-38-x86_64-linux-gnu.so) ``` ### Expected behavior I would expect for the statement `import datasets` to cause no error ### Environment info Output of `conda list`: ``` # packages in environment at /home/jack/.conda/envs/pbalawender_zpp: # # Name Version Build Channel _libgcc_mutex 0.1 main _openmp_mutex 5.1 1_gnu abseil-cpp 20210324.2 h2531618_0 advertools 0.13.2 pypi_0 pypi aiofiles 0.8.0 pypi_0 pypi aiohttp 3.8.3 py38h5eee18b_0 aiosignal 1.2.0 pyhd3eb1b0_0 aiosqlite 0.17.0 pypi_0 pypi anyio 3.6.2 pypi_0 pypi aquirdturtle-collapsible-headings 3.1.0 pypi_0 pypi argon2-cffi 21.3.0 pypi_0 pypi argon2-cffi-bindings 21.2.0 pypi_0 pypi arrow 1.2.3 pypi_0 pypi arrow-cpp 3.0.0 py38h6b21186_4 asttokens 2.2.0 pypi_0 pypi async-timeout 4.0.2 py38h06a4308_0 attrs 22.1.0 py38h06a4308_0 automat 22.10.0 pypi_0 pypi aws-c-common 0.4.57 he6710b0_1 aws-c-event-stream 0.1.6 h2531618_5 aws-checksums 0.1.9 he6710b0_0 aws-sdk-cpp 1.8.185 hce553d0_0 babel 2.11.0 pypi_0 pypi backcall 0.2.0 pyhd3eb1b0_0 beautifulsoup4 4.11.1 pypi_0 pypi blas 1.0 mkl bleach 5.0.1 pypi_0 pypi boost-cpp 1.73.0 h27cfd23_11 bottleneck 1.3.5 py38h7deecbd_0 brotli 1.0.9 h5eee18b_7 brotli-bin 1.0.9 h5eee18b_7 brotlipy 0.7.0 py38h27cfd23_1003 bzip2 1.0.8 h7b6447c_0 c-ares 1.18.1 h7f8727e_0 ca-certificates 2023.01.10 h06a4308_0 certifi 2022.9.24 pypi_0 pypi cffi 1.15.1 py38h5eee18b_3 charset-normalizer 2.1.1 pypi_0 pypi click 8.1.3 pypi_0 pypi constantly 15.1.0 pypi_0 pypi contourpy 1.0.6 pypi_0 pypi cryptography 38.0.4 pypi_0 pypi cssselect 1.2.0 pypi_0 pypi cudatoolkit 10.1.243 h8cb64d8_10 conda-forge cycler 0.11.0 pypi_0 pypi dacite 1.6.0 pypi_0 pypi dataclasses 0.8 pyh6d0b6a4_7 datasets 1.18.4 py_0 huggingface datetime 4.7 pypi_0 pypi debugpy 1.6.4 pypi_0 pypi decorator 5.1.1 pyhd3eb1b0_0 defusedxml 0.7.1 pypi_0 pypi dill 0.3.6 py38h06a4308_0 docker-pycreds 0.4.0 pypi_0 pypi double-conversion 3.1.5 he6710b0_1 entrypoints 0.4 py38h06a4308_0 executing 0.8.3 pyhd3eb1b0_0 filelock 3.8.0 pypi_0 pypi flake8 6.0.0 pypi_0 pypi flask 2.1.3 py38h06a4308_0 flit-core 3.6.0 pyhd3eb1b0_0 fonttools 4.38.0 pypi_0 pypi fqdn 1.5.1 pypi_0 pypi freetype 2.12.1 h4a9f257_0 frozenlist 1.3.3 py38h5eee18b_0 fsspec 2022.11.0 py38h06a4308_0 gensim 4.2.0 pypi_0 pypi gflags 2.2.2 he6710b0_0 giflib 5.2.1 h5eee18b_3 gitdb 4.0.10 pypi_0 pypi gitpython 3.1.30 pypi_0 pypi glog 0.5.0 h2531618_0 grpc-cpp 1.39.0 hae934f6_5 huggingface-hub 0.11.1 pypi_0 pypi huggingface_hub 0.13.1 py_0 huggingface hyperlink 21.0.0 pypi_0 pypi icu 58.2 he6710b0_3 idna 3.4 py38h06a4308_0 importlib-metadata 5.1.0 pypi_0 pypi importlib_metadata 4.11.3 hd3eb1b0_0 importlib_resources 5.2.0 pyhd3eb1b0_1 incremental 22.10.0 pypi_0 pypi intel-openmp 2021.4.0 h06a4308_3561 ipykernel 6.17.1 pyh210e3f2_0 conda-forge ipython 8.7.0 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipywidgets 8.0.2 pyhd8ed1ab_1 conda-forge isoduration 20.11.0 pypi_0 pypi itemadapter 0.7.0 pypi_0 pypi itemloaders 1.0.6 pypi_0 pypi itsdangerous 2.0.1 pyhd3eb1b0_0 jedi 0.18.2 pypi_0 pypi jinja2 3.1.2 py38h06a4308_0 jmespath 1.0.1 pypi_0 pypi joblib 1.2.0 pypi_0 pypi jpeg 9b h024ee3a_2 json5 0.9.10 pypi_0 pypi jsonpickle 3.0.0 pypi_0 pypi jsonpointer 2.3 pypi_0 pypi jsonschema 4.17.3 py38h06a4308_0 jupyter-core 5.1.0 pypi_0 pypi jupyter-events 0.5.0 pypi_0 pypi jupyter-server 1.23.3 pypi_0 pypi jupyter-server-fileid 0.6.0 pypi_0 pypi jupyter-server-ydoc 0.4.0 pypi_0 pypi jupyter-ydoc 0.2.2 pypi_0 pypi jupyter_client 7.4.9 py38h06a4308_0 jupyter_core 5.2.0 py38h06a4308_0 jupyterlab 3.6.0a4 pypi_0 pypi jupyterlab-pygments 0.2.2 pypi_0 pypi jupyterlab-server 2.16.3 pypi_0 pypi jupyterlab_widgets 3.0.3 pyhd8ed1ab_0 conda-forge kiwisolver 1.4.4 pypi_0 pypi krb5 1.19.4 h568e23c_0 lcms2 2.12 h3be6417_0 ld_impl_linux-64 2.38 h1181459_1 libboost 1.73.0 h3ff78a5_11 libbrotlicommon 1.0.9 h5eee18b_7 libbrotlidec 1.0.9 h5eee18b_7 libbrotlienc 1.0.9 h5eee18b_7 libcurl 7.88.1 h91b91d3_0 libedit 3.1.20221030 h5eee18b_0 libev 4.33 h7f8727e_1 libevent 2.1.12 h8f2d780_0 libffi 3.4.2 h6a678d5_6 libgcc-ng 11.2.0 h1234567_1 libgomp 11.2.0 h1234567_1 libnghttp2 1.46.0 hce63b2e_0 libpng 1.6.39 h5eee18b_0 libprotobuf 3.17.2 h4ff587b_1 libsodium 1.0.18 h7b6447c_0 libssh2 1.10.0 h8f2d780_0 libstdcxx-ng 11.2.0 h1234567_1 libthrift 0.14.2 hcc01f38_0 libtiff 4.1.0 h2733197_1 libuv 1.44.2 h5eee18b_0 libwebp 1.2.0 h89dd481_0 lz4-c 1.9.4 h6a678d5_0 markupsafe 2.1.1 py38h7f8727e_0 matplotlib 3.6.2 pypi_0 pypi matplotlib-inline 0.1.6 py38h06a4308_0 mccabe 0.7.0 pypi_0 pypi mistune 2.0.4 pypi_0 pypi mkl 2021.4.0 h06a4308_640 mkl-service 2.4.0 py38h7f8727e_0 mkl_fft 1.3.1 py38hd3c417c_0 mkl_random 1.2.2 py38h51133e4_0 morfeusz2 1.99.6 pypi_0 pypi multidict 6.0.2 py38h5eee18b_0 multiprocess 0.70.14 py38h06a4308_0 nbclassic 0.4.8 pypi_0 pypi nbclient 0.7.2 pypi_0 pypi nbconvert 7.2.5 pypi_0 pypi nbformat 5.7.0 py38h06a4308_0 ncurses 6.4 h6a678d5_0 nest-asyncio 1.5.6 py38h06a4308_0 ninja 1.10.2 h06a4308_5 ninja-base 1.10.2 hd09550d_5 notebook 6.5.2 pypi_0 pypi notebook-shim 0.2.2 pypi_0 pypi numexpr 2.8.4 py38he184ba9_0 numpy 1.23.5 py38h14f4228_0 numpy-base 1.23.5 py38h31eccc5_0 oauthlib 3.2.2 pypi_0 pypi opencv-python 4.6.0.66 pypi_0 pypi openssl 1.1.1t h7f8727e_0 orc 1.6.9 ha97a36c_3 packaging 22.0 py38h06a4308_0 pandas 1.5.2 pypi_0 pypi pandocfilters 1.5.0 pypi_0 pypi parsel 1.7.0 pypi_0 pypi parso 0.8.3 pyhd3eb1b0_0 pathlib 1.0.1 pypi_0 pypi pathtools 0.1.2 pypi_0 pypi pexpect 4.8.0 pyhd3eb1b0_3 pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 9.3.0 pypi_0 pypi pip 22.2.2 py38h06a4308_0 pkgutil-resolve-name 1.3.10 py38h06a4308_0 platformdirs 2.5.4 pypi_0 pypi prometheus-client 0.15.0 pypi_0 pypi promise 2.3 pypi_0 pypi prompt-toolkit 3.0.33 pypi_0 pypi protego 0.2.1 pypi_0 pypi protobuf 4.21.12 pypi_0 pypi psutil 5.9.0 py38h5eee18b_0 ptyprocess 0.7.0 pyhd3eb1b0_2 pure_eval 0.2.2 pyhd3eb1b0_0 pyarrow 10.0.1 pypi_0 pypi pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pycodestyle 2.10.0 pypi_0 pypi pycparser 2.21 pyhd3eb1b0_0 pydispatcher 2.0.6 pypi_0 pypi pyflakes 3.0.1 pypi_0 pypi pygments 2.11.2 pyhd3eb1b0_0 pyopenssl 22.1.0 pypi_0 pypi pyrsistent 0.18.0 py38heee7806_0 pysocks 1.7.1 py38h06a4308_0 python 3.8.15 h7a1cb2a_2 python-dateutil 2.8.2 pyhd3eb1b0_0 python-dotenv 0.21.0 pypi_0 pypi python-fastjsonschema 2.16.2 py38h06a4308_0 python-json-logger 2.0.4 pypi_0 pypi python-xxhash 2.0.2 py38h5eee18b_1 pytorch 1.7.1 py3.8_cuda10.1.243_cudnn7.6.3_0 pytorch pytz 2022.6 pypi_0 pypi pyyaml 6.0 py38h5eee18b_1 pyzmq 23.2.0 py38h6a678d5_0 queuelib 1.6.2 pypi_0 pypi re2 2022.04.01 h295c915_0 readline 8.2 h5eee18b_0 regex 2022.10.31 pypi_0 pypi requests 2.28.1 py38h06a4308_0 requests-file 1.5.1 pypi_0 pypi requests-oauthlib 1.3.1 pypi_0 pypi rfc3339-validator 0.1.4 pypi_0 pypi rfc3986-validator 0.1.1 pypi_0 pypi scikit-learn 1.1.3 pypi_0 pypi scipy 1.9.3 pypi_0 pypi scrapy 2.7.1 pypi_0 pypi seaborn 0.12.1 pypi_0 pypi send2trash 1.8.0 pypi_0 pypi sentry-sdk 1.12.1 pypi_0 pypi service-identity 21.1.0 pypi_0 pypi setproctitle 1.3.2 pypi_0 pypi setuptools 65.6.3 pypi_0 pypi shortuuid 1.0.11 pypi_0 pypi six 1.16.0 pyhd3eb1b0_1 smart-open 6.2.0 pypi_0 pypi smmap 5.0.0 pypi_0 pypi snappy 1.1.9 h295c915_0 sniffio 1.3.0 pypi_0 pypi soupsieve 2.3.2.post1 pypi_0 pypi sqlite 3.40.1 h5082296_0 stack-data 0.6.2 pypi_0 pypi stack_data 0.2.0 pyhd3eb1b0_0 terminado 0.17.0 pypi_0 pypi threadpoolctl 3.1.0 pypi_0 pypi tinycss2 1.2.1 pypi_0 pypi tk 8.6.12 h1ccaba5_0 tldextract 3.4.0 pypi_0 pypi tokenizers 0.13.2 pypi_0 pypi tomli 2.0.1 pypi_0 pypi torchvision 0.8.2 py38_cu101 pytorch tornado 6.2 py38h5eee18b_0 tqdm 4.64.1 py38h06a4308_0 traitlets 5.6.0 pypi_0 pypi transformers 4.25.1 pypi_0 pypi tweepy 4.12.1 pypi_0 pypi twisted 22.10.0 pypi_0 pypi twython 3.9.1 pypi_0 pypi typing-extensions 4.4.0 py38h06a4308_0 typing_extensions 4.4.0 py38h06a4308_0 uri-template 1.2.0 pypi_0 pypi uriparser 0.9.3 he6710b0_1 urllib3 1.26.13 pypi_0 pypi utf8proc 2.6.1 h27cfd23_0 w3lib 2.1.0 pypi_0 pypi wandb 0.13.7 pypi_0 pypi wcwidth 0.2.5 pyhd3eb1b0_0 webcolors 1.12 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi websocket-client 1.4.2 pypi_0 pypi werkzeug 2.2.2 py38h06a4308_0 wheel 0.38.4 py38h06a4308_0 widgetsnbextension 4.0.3 py38h06a4308_0 xxhash 0.8.0 h7f8727e_3 xz 5.2.10 h5eee18b_1 y-py 0.5.4 pypi_0 pypi yaml 0.2.5 h7b6447c_0 yarl 1.8.1 py38h5eee18b_0 ypy-websocket 0.5.0 pypi_0 pypi zeromq 4.3.4 h2531618_0 zipp 3.11.0 py38h06a4308_0 zlib 1.2.13 h5eee18b_0 zope-interface 5.5.2 pypi_0 pypi zstd 1.4.9 haebb681_0 ```
51
Cannot import datasets ### Describe the bug Hi, I cannot even import the library :( I installed it by running: ``` $ conda install datasets ``` Then I realized I should maybe use the huggingface channel, because I encountered the error below, so I ran: ``` $ conda remove datasets $ conda install -c huggingface datasets ``` Please see 'steps to reproduce the bug' for the specific error, as steps to reproduce is just importing the library ### Steps to reproduce the bug ``` $ python3 Python 3.8.15 (default, Nov 24 2022, 15:19:38) [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> import datasets Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/datasets/__init__.py", line 33, in <module> from .arrow_dataset import Dataset, concatenate_datasets File "/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 59, in <module> from .arrow_reader import ArrowReader File "/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/datasets/arrow_reader.py", line 27, in <module> import pyarrow.parquet as pq File "/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/pyarrow/parquet/__init__.py", line 20, in <module> from .core import * File "/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/pyarrow/parquet/core.py", line 37, in <module> from pyarrow._parquet import (ParquetReader, Statistics, # noqa ImportError: cannot import name 'FileEncryptionProperties' from 'pyarrow._parquet' (/home/jack/.conda/envs/jack_zpp/lib/python3.8/site-packages/pyarrow/_parquet.cpython-38-x86_64-linux-gnu.so) ``` ### Expected behavior I would expect for the statement `import datasets` to cause no error ### Environment info Output of `conda list`: ``` # packages in environment at /home/jack/.conda/envs/pbalawender_zpp: # # Name Version Build Channel _libgcc_mutex 0.1 main _openmp_mutex 5.1 1_gnu abseil-cpp 20210324.2 h2531618_0 advertools 0.13.2 pypi_0 pypi aiofiles 0.8.0 pypi_0 pypi aiohttp 3.8.3 py38h5eee18b_0 aiosignal 1.2.0 pyhd3eb1b0_0 aiosqlite 0.17.0 pypi_0 pypi anyio 3.6.2 pypi_0 pypi aquirdturtle-collapsible-headings 3.1.0 pypi_0 pypi argon2-cffi 21.3.0 pypi_0 pypi argon2-cffi-bindings 21.2.0 pypi_0 pypi arrow 1.2.3 pypi_0 pypi arrow-cpp 3.0.0 py38h6b21186_4 asttokens 2.2.0 pypi_0 pypi async-timeout 4.0.2 py38h06a4308_0 attrs 22.1.0 py38h06a4308_0 automat 22.10.0 pypi_0 pypi aws-c-common 0.4.57 he6710b0_1 aws-c-event-stream 0.1.6 h2531618_5 aws-checksums 0.1.9 he6710b0_0 aws-sdk-cpp 1.8.185 hce553d0_0 babel 2.11.0 pypi_0 pypi backcall 0.2.0 pyhd3eb1b0_0 beautifulsoup4 4.11.1 pypi_0 pypi blas 1.0 mkl bleach 5.0.1 pypi_0 pypi boost-cpp 1.73.0 h27cfd23_11 bottleneck 1.3.5 py38h7deecbd_0 brotli 1.0.9 h5eee18b_7 brotli-bin 1.0.9 h5eee18b_7 brotlipy 0.7.0 py38h27cfd23_1003 bzip2 1.0.8 h7b6447c_0 c-ares 1.18.1 h7f8727e_0 ca-certificates 2023.01.10 h06a4308_0 certifi 2022.9.24 pypi_0 pypi cffi 1.15.1 py38h5eee18b_3 charset-normalizer 2.1.1 pypi_0 pypi click 8.1.3 pypi_0 pypi constantly 15.1.0 pypi_0 pypi contourpy 1.0.6 pypi_0 pypi cryptography 38.0.4 pypi_0 pypi cssselect 1.2.0 pypi_0 pypi cudatoolkit 10.1.243 h8cb64d8_10 conda-forge cycler 0.11.0 pypi_0 pypi dacite 1.6.0 pypi_0 pypi dataclasses 0.8 pyh6d0b6a4_7 datasets 1.18.4 py_0 huggingface datetime 4.7 pypi_0 pypi debugpy 1.6.4 pypi_0 pypi decorator 5.1.1 pyhd3eb1b0_0 defusedxml 0.7.1 pypi_0 pypi dill 0.3.6 py38h06a4308_0 docker-pycreds 0.4.0 pypi_0 pypi double-conversion 3.1.5 he6710b0_1 entrypoints 0.4 py38h06a4308_0 executing 0.8.3 pyhd3eb1b0_0 filelock 3.8.0 pypi_0 pypi flake8 6.0.0 pypi_0 pypi flask 2.1.3 py38h06a4308_0 flit-core 3.6.0 pyhd3eb1b0_0 fonttools 4.38.0 pypi_0 pypi fqdn 1.5.1 pypi_0 pypi freetype 2.12.1 h4a9f257_0 frozenlist 1.3.3 py38h5eee18b_0 fsspec 2022.11.0 py38h06a4308_0 gensim 4.2.0 pypi_0 pypi gflags 2.2.2 he6710b0_0 giflib 5.2.1 h5eee18b_3 gitdb 4.0.10 pypi_0 pypi gitpython 3.1.30 pypi_0 pypi glog 0.5.0 h2531618_0 grpc-cpp 1.39.0 hae934f6_5 huggingface-hub 0.11.1 pypi_0 pypi huggingface_hub 0.13.1 py_0 huggingface hyperlink 21.0.0 pypi_0 pypi icu 58.2 he6710b0_3 idna 3.4 py38h06a4308_0 importlib-metadata 5.1.0 pypi_0 pypi importlib_metadata 4.11.3 hd3eb1b0_0 importlib_resources 5.2.0 pyhd3eb1b0_1 incremental 22.10.0 pypi_0 pypi intel-openmp 2021.4.0 h06a4308_3561 ipykernel 6.17.1 pyh210e3f2_0 conda-forge ipython 8.7.0 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipywidgets 8.0.2 pyhd8ed1ab_1 conda-forge isoduration 20.11.0 pypi_0 pypi itemadapter 0.7.0 pypi_0 pypi itemloaders 1.0.6 pypi_0 pypi itsdangerous 2.0.1 pyhd3eb1b0_0 jedi 0.18.2 pypi_0 pypi jinja2 3.1.2 py38h06a4308_0 jmespath 1.0.1 pypi_0 pypi joblib 1.2.0 pypi_0 pypi jpeg 9b h024ee3a_2 json5 0.9.10 pypi_0 pypi jsonpickle 3.0.0 pypi_0 pypi jsonpointer 2.3 pypi_0 pypi jsonschema 4.17.3 py38h06a4308_0 jupyter-core 5.1.0 pypi_0 pypi jupyter-events 0.5.0 pypi_0 pypi jupyter-server 1.23.3 pypi_0 pypi jupyter-server-fileid 0.6.0 pypi_0 pypi jupyter-server-ydoc 0.4.0 pypi_0 pypi jupyter-ydoc 0.2.2 pypi_0 pypi jupyter_client 7.4.9 py38h06a4308_0 jupyter_core 5.2.0 py38h06a4308_0 jupyterlab 3.6.0a4 pypi_0 pypi jupyterlab-pygments 0.2.2 pypi_0 pypi jupyterlab-server 2.16.3 pypi_0 pypi jupyterlab_widgets 3.0.3 pyhd8ed1ab_0 conda-forge kiwisolver 1.4.4 pypi_0 pypi krb5 1.19.4 h568e23c_0 lcms2 2.12 h3be6417_0 ld_impl_linux-64 2.38 h1181459_1 libboost 1.73.0 h3ff78a5_11 libbrotlicommon 1.0.9 h5eee18b_7 libbrotlidec 1.0.9 h5eee18b_7 libbrotlienc 1.0.9 h5eee18b_7 libcurl 7.88.1 h91b91d3_0 libedit 3.1.20221030 h5eee18b_0 libev 4.33 h7f8727e_1 libevent 2.1.12 h8f2d780_0 libffi 3.4.2 h6a678d5_6 libgcc-ng 11.2.0 h1234567_1 libgomp 11.2.0 h1234567_1 libnghttp2 1.46.0 hce63b2e_0 libpng 1.6.39 h5eee18b_0 libprotobuf 3.17.2 h4ff587b_1 libsodium 1.0.18 h7b6447c_0 libssh2 1.10.0 h8f2d780_0 libstdcxx-ng 11.2.0 h1234567_1 libthrift 0.14.2 hcc01f38_0 libtiff 4.1.0 h2733197_1 libuv 1.44.2 h5eee18b_0 libwebp 1.2.0 h89dd481_0 lz4-c 1.9.4 h6a678d5_0 markupsafe 2.1.1 py38h7f8727e_0 matplotlib 3.6.2 pypi_0 pypi matplotlib-inline 0.1.6 py38h06a4308_0 mccabe 0.7.0 pypi_0 pypi mistune 2.0.4 pypi_0 pypi mkl 2021.4.0 h06a4308_640 mkl-service 2.4.0 py38h7f8727e_0 mkl_fft 1.3.1 py38hd3c417c_0 mkl_random 1.2.2 py38h51133e4_0 morfeusz2 1.99.6 pypi_0 pypi multidict 6.0.2 py38h5eee18b_0 multiprocess 0.70.14 py38h06a4308_0 nbclassic 0.4.8 pypi_0 pypi nbclient 0.7.2 pypi_0 pypi nbconvert 7.2.5 pypi_0 pypi nbformat 5.7.0 py38h06a4308_0 ncurses 6.4 h6a678d5_0 nest-asyncio 1.5.6 py38h06a4308_0 ninja 1.10.2 h06a4308_5 ninja-base 1.10.2 hd09550d_5 notebook 6.5.2 pypi_0 pypi notebook-shim 0.2.2 pypi_0 pypi numexpr 2.8.4 py38he184ba9_0 numpy 1.23.5 py38h14f4228_0 numpy-base 1.23.5 py38h31eccc5_0 oauthlib 3.2.2 pypi_0 pypi opencv-python 4.6.0.66 pypi_0 pypi openssl 1.1.1t h7f8727e_0 orc 1.6.9 ha97a36c_3 packaging 22.0 py38h06a4308_0 pandas 1.5.2 pypi_0 pypi pandocfilters 1.5.0 pypi_0 pypi parsel 1.7.0 pypi_0 pypi parso 0.8.3 pyhd3eb1b0_0 pathlib 1.0.1 pypi_0 pypi pathtools 0.1.2 pypi_0 pypi pexpect 4.8.0 pyhd3eb1b0_3 pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 9.3.0 pypi_0 pypi pip 22.2.2 py38h06a4308_0 pkgutil-resolve-name 1.3.10 py38h06a4308_0 platformdirs 2.5.4 pypi_0 pypi prometheus-client 0.15.0 pypi_0 pypi promise 2.3 pypi_0 pypi prompt-toolkit 3.0.33 pypi_0 pypi protego 0.2.1 pypi_0 pypi protobuf 4.21.12 pypi_0 pypi psutil 5.9.0 py38h5eee18b_0 ptyprocess 0.7.0 pyhd3eb1b0_2 pure_eval 0.2.2 pyhd3eb1b0_0 pyarrow 10.0.1 pypi_0 pypi pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pycodestyle 2.10.0 pypi_0 pypi pycparser 2.21 pyhd3eb1b0_0 pydispatcher 2.0.6 pypi_0 pypi pyflakes 3.0.1 pypi_0 pypi pygments 2.11.2 pyhd3eb1b0_0 pyopenssl 22.1.0 pypi_0 pypi pyrsistent 0.18.0 py38heee7806_0 pysocks 1.7.1 py38h06a4308_0 python 3.8.15 h7a1cb2a_2 python-dateutil 2.8.2 pyhd3eb1b0_0 python-dotenv 0.21.0 pypi_0 pypi python-fastjsonschema 2.16.2 py38h06a4308_0 python-json-logger 2.0.4 pypi_0 pypi python-xxhash 2.0.2 py38h5eee18b_1 pytorch 1.7.1 py3.8_cuda10.1.243_cudnn7.6.3_0 pytorch pytz 2022.6 pypi_0 pypi pyyaml 6.0 py38h5eee18b_1 pyzmq 23.2.0 py38h6a678d5_0 queuelib 1.6.2 pypi_0 pypi re2 2022.04.01 h295c915_0 readline 8.2 h5eee18b_0 regex 2022.10.31 pypi_0 pypi requests 2.28.1 py38h06a4308_0 requests-file 1.5.1 pypi_0 pypi requests-oauthlib 1.3.1 pypi_0 pypi rfc3339-validator 0.1.4 pypi_0 pypi rfc3986-validator 0.1.1 pypi_0 pypi scikit-learn 1.1.3 pypi_0 pypi scipy 1.9.3 pypi_0 pypi scrapy 2.7.1 pypi_0 pypi seaborn 0.12.1 pypi_0 pypi send2trash 1.8.0 pypi_0 pypi sentry-sdk 1.12.1 pypi_0 pypi service-identity 21.1.0 pypi_0 pypi setproctitle 1.3.2 pypi_0 pypi setuptools 65.6.3 pypi_0 pypi shortuuid 1.0.11 pypi_0 pypi six 1.16.0 pyhd3eb1b0_1 smart-open 6.2.0 pypi_0 pypi smmap 5.0.0 pypi_0 pypi snappy 1.1.9 h295c915_0 sniffio 1.3.0 pypi_0 pypi soupsieve 2.3.2.post1 pypi_0 pypi sqlite 3.40.1 h5082296_0 stack-data 0.6.2 pypi_0 pypi stack_data 0.2.0 pyhd3eb1b0_0 terminado 0.17.0 pypi_0 pypi threadpoolctl 3.1.0 pypi_0 pypi tinycss2 1.2.1 pypi_0 pypi tk 8.6.12 h1ccaba5_0 tldextract 3.4.0 pypi_0 pypi tokenizers 0.13.2 pypi_0 pypi tomli 2.0.1 pypi_0 pypi torchvision 0.8.2 py38_cu101 pytorch tornado 6.2 py38h5eee18b_0 tqdm 4.64.1 py38h06a4308_0 traitlets 5.6.0 pypi_0 pypi transformers 4.25.1 pypi_0 pypi tweepy 4.12.1 pypi_0 pypi twisted 22.10.0 pypi_0 pypi twython 3.9.1 pypi_0 pypi typing-extensions 4.4.0 py38h06a4308_0 typing_extensions 4.4.0 py38h06a4308_0 uri-template 1.2.0 pypi_0 pypi uriparser 0.9.3 he6710b0_1 urllib3 1.26.13 pypi_0 pypi utf8proc 2.6.1 h27cfd23_0 w3lib 2.1.0 pypi_0 pypi wandb 0.13.7 pypi_0 pypi wcwidth 0.2.5 pyhd3eb1b0_0 webcolors 1.12 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi websocket-client 1.4.2 pypi_0 pypi werkzeug 2.2.2 py38h06a4308_0 wheel 0.38.4 py38h06a4308_0 widgetsnbextension 4.0.3 py38h06a4308_0 xxhash 0.8.0 h7f8727e_3 xz 5.2.10 h5eee18b_1 y-py 0.5.4 pypi_0 pypi yaml 0.2.5 h7b6447c_0 yarl 1.8.1 py38h5eee18b_0 ypy-websocket 0.5.0 pypi_0 pypi zeromq 4.3.4 h2531618_0 zipp 3.11.0 py38h06a4308_0 zlib 1.2.13 h5eee18b_0 zope-interface 5.5.2 pypi_0 pypi zstd 1.4.9 haebb681_0 ``` Okay, the issue was likely caused by mixing `conda` and `pip` usage - I forgot that I have already used `pip` in this environment previously and that it was 'spoiled' because of it. Creating another environment and installing `datasets` by pip with other packages from the `requirements.txt` file solved the problem.
[ -0.2135901153087616, 0.0017219334840774536, -0.06104959547519684, 0.3418366611003876, 0.20503056049346924, 0.0325910747051239, -0.019132163375616074, 0.0921286940574646, -0.2802642285823822, -0.10985991358757019, -0.23995226621627808, 0.3256708085536957, -0.1199331283569336, 0.07398916780948639, 0.04313032329082489, -0.10570604354143143, 0.1595769077539444, 0.2296297252178192, -0.3676517903804779, 0.02813144028186798, -0.03188624233007431, 0.3623775243759155, -0.18624067306518555, 0.002650238573551178, -0.06505511701107025, -0.17720240354537964, -0.007672026753425598, 0.035379935055971146, -0.29029956459999084, -0.3314342498779297, 0.5615373849868774, -0.11063365638256073, 0.09418226778507233, 0.38514766097068787, -0.00011135952081531286, 0.12895412743091583, 0.32469263672828674, 0.036623694002628326, -0.27476704120635986, -0.209509015083313, -0.20925721526145935, -0.24253585934638977, 0.26341021060943604, 0.019948258996009827, 0.07872231304645538, -0.30121347308158875, -0.3088777959346771, -0.47758179903030396, 0.3931085765361786, 0.37766262888908386, 0.2801470160484314, 0.2111481875181198, 0.4165828227996826, -0.15038347244262695, 0.05423260107636452, 0.18433842062950134, -0.15049001574516296, 0.31231024861335754, -0.036072347313165665, -0.015519503504037857, 0.38420552015304565, 0.03723980486392975, -0.18636730313301086, -0.1599145382642746, 0.2808891534805298, -0.09437452256679535, -0.14617450535297394, -0.32707032561302185, -0.023334039375185966, 0.021288666874170303, 0.45975059270858765, -0.46164172887802124, -0.338660329580307, -0.17585928738117218, 0.25310438871383667, -0.286068320274353, 0.11843647062778473, 0.08714807778596878, -0.05680101364850998, 0.20805680751800537, -0.05988107621669769, -0.1447756290435791, -0.21491748094558716, 0.08626674115657806, -0.09556329995393753, 0.09814409911632538, -0.15436211228370667, 0.15930068492889404, 0.22423632442951202, -0.20101656019687653, 0.20008967816829681, 0.04058535024523735, -0.14617227017879486, 0.1682216227054596, -0.28434184193611145, 0.14125759899616241, 0.022796014323830605, 0.02715458534657955, 0.15439355373382568, 0.19840821623802185, -0.3143479824066162, -0.18893684446811676, 0.025858331471681595, 0.2649131119251251, 0.17619113624095917, -0.008620578795671463, 0.07757724821567535, 0.26493608951568604, 0.07543584704399109, 0.320696622133255, 0.09488201141357422, -0.12089715898036957, 0.09277918934822083, -0.1710980236530304, -0.06289298832416534, -0.18792936205863953, 0.40969598293304443, -0.21566569805145264, -0.3205213248729706, 0.17375150322914124, -0.00690016895532608, 0.09075303375720978, 0.11645382642745972, 0.4496724009513855, -0.09223821759223938, -0.018314780667424202, 0.1464465707540512, 0.3074823021888733, 0.14426302909851074, -0.13934685289859772, -0.1475253850221634, -0.018183209002017975, -0.11428418755531311, -0.14321815967559814, 0.15755684673786163, -0.40341028571128845, 0.2603156566619873, 0.15776976943016052, 0.3589806854724884, 0.06699037551879883, -0.08553016930818558, -0.10236189514398575, -0.032208848744630814, 0.3868154287338257, -0.15433573722839355, 0.16178058087825775, 0.249243825674057, -0.0988425761461258, -0.2865952253341675, -0.11765290796756744, -0.0447736456990242, -0.07509128004312515, -0.4841853976249695, 0.1491447240114212, 0.016599029302597046, 0.08143860101699829, -0.2581091821193695, -0.1669444590806961, -0.14831703901290894, -0.12623527646064758, -0.034525539726018906, -0.19854648411273956, 0.12736010551452637, -0.2088131308555603, 0.3919978737831116, 0.3093879818916321, -0.3332875669002533, -0.02019612491130829, -0.24536556005477905, -0.2255229949951172, 0.0744948536157608, 0.15749689936637878, -0.22786729037761688, -0.29553160071372986, -0.1849256455898285, -0.06297816336154938, 0.3569553792476654, -0.4057573676109314, -0.29735663533210754, -0.1055574119091034, 0.05495108664035797, 0.20348811149597168, -0.16951081156730652, -0.182102233171463, 0.13047024607658386, 0.18334650993347168, 0.18162205815315247, 0.33468276262283325, 0.05581831932067871, -0.1615239381790161, -0.12936334311962128, -0.2471369504928589, 0.11291620880365372, 0.15414480865001678, -0.22517859935760498, -0.09404587000608444, 0.212892085313797, -0.34856536984443665, 0.11664481461048126, 0.0330892950296402, 0.1501590460538864, 0.3623056411743164, 0.273544043302536, 0.2177860140800476, -0.000044852495193481445, -0.1834191232919693, -0.4906581938266754, 0.1868465691804886, 0.16238535940647125, 0.007982905954122543, -0.391845166683197, -0.15612274408340454, -0.25728434324264526, 0.3567619323730469, -0.038609374314546585, -0.17035721242427826, 0.12317352741956711, -0.012262679636478424, 0.12297987192869186, 0.25443369150161743, -0.2644045948982239, 0.5676515698432922, 0.2128889262676239, 0.3027634620666504, -0.2741721570491791, 0.20020413398742676, -0.16310453414916992, -0.12612010538578033, 0.23161731660366058, 0.2946213185787201, 0.10540971159934998, 0.004226509481668472, -0.018087511882185936, 0.0902140662074089, -0.02211640775203705, 0.07069510966539383, -0.2369067370891571, -0.21972976624965668, 0.03013039194047451, -0.403779536485672, 0.0984697937965393, -0.18773774802684784, 0.05296303331851959, 0.22977495193481445, 0.27760401368141174, 0.088385209441185, 0.0802123099565506, 0.14081183075904846, 0.020017802715301514, 0.3311653137207031, 0.4473361074924469, 0.09904635697603226, -0.07796227931976318, -0.43002116680145264, 0.2543795108795166, 0.09624242782592773, 0.3586421012878418, -0.05965481698513031, -0.28192996978759766, 0.039715178310871124, 0.3432382047176361, 0.055368781089782715, -0.07399974763393402, 0.19312797486782074, -0.3174852132797241, 0.2694717049598694, 0.3275916874408722, 0.23916706442832947, 0.3809693455696106, 0.17122982442378998, -0.18604473769664764, 0.1348244845867157, -0.04430254548788071, -0.01567354053258896, 0.29402586817741394, 0.1820628046989441, 0.579529345035553, -0.1765330582857132, 0.24442575871944427, 0.11030638217926025, -0.1959286630153656, -0.3741840422153473, -0.24519002437591553, 0.1536085456609726, -0.2735540568828583, 0.2919309139251709, -0.4234972894191742, -0.1968778371810913, -0.05516650527715683, -0.30826371908187866, -0.3442535400390625, -0.11206092685461044, -0.23273053765296936, 0.17286203801631927, 0.05521610379219055, 0.10822340101003647, -0.15681375563144684, 0.0679607018828392, -0.1672479808330536, -0.3426955044269562, -0.3636247515678406, -0.1420729160308838, -0.15028119087219238, 0.05594296008348465, 0.24181683361530304, 0.14145080745220184, 0.38110989332199097, -0.02525912970304489, 0.23260903358459473, -0.14252406358718872, -0.3386433720588684, 0.054327093064785004, -0.25874173641204834, 0.489050030708313, 0.28899452090263367, 0.12284934520721436, -0.10178139805793762, -0.3750399351119995, 0.23163017630577087, -0.05179431661963463, -0.21637219190597534, 0.1174716204404831, -0.12951160967350006, -0.22967292368412018, -0.1692012995481491, 0.00839884951710701, -0.3555241525173187, -0.40188270807266235, 0.38599371910095215, 0.23811355233192444, 0.05972360447049141, 0.13662447035312653, 0.1563917100429535, 0.28747424483299255, -0.2913525104522705, 0.30365902185440063, -0.012208443135023117, -0.12348994612693787, 0.35912007093429565, -0.31374499201774597, -0.337572306394577, 0.12956872582435608, 0.029234640300273895, 0.5145333409309387, -0.06271006911993027, -0.4485510587692261, 0.10756807029247284, -0.17598576843738556, 0.39057061076164246, -0.12205134332180023, 0.006749911233782768, 0.27606433629989624, 0.07144325971603394, 0.01253746822476387, -0.19178307056427002, -0.32422584295272827, -0.147053062915802, -0.15173768997192383, 0.005716335028409958, -0.07066352665424347, 0.49024316668510437, -0.30900758504867554, 0.3760138750076294, 0.3048073649406433, -0.15147052705287933, 0.4411895275115967, -0.042289331555366516, 0.4550771713256836, -0.19437158107757568, -0.4943850636482239, -0.024815421551465988, 0.10038836300373077, 0.12971879541873932, -0.1294250637292862, -0.12724420428276062, -0.28088781237602234, -0.2875223159790039, -0.11166730523109436, -0.25867506861686707, -0.18036115169525146, -0.19917799532413483, -0.07537314295768738, 0.041625335812568665, 0.08948978781700134, -0.23845526576042175, 0.04606178402900696, -0.08374987542629242, 0.02929498255252838, 0.11846750974655151, -0.1762375831604004, 0.10086177289485931, -0.2700740098953247, -0.11985523998737335, -0.43038350343704224, 0.36272016167640686, -0.16677482426166534, 0.2960854172706604, -0.015748880803585052, 0.028904534876346588, 0.07233899086713791, 0.017023172229528427, 0.6497573852539062, 0.07756311446428299, -0.30200424790382385, 0.19798743724822998, 0.25318974256515503, -0.8863120079040527, -0.03471321612596512, -0.0133424773812294, 0.1458730399608612, 0.3206044137477875, 0.32398703694343567, -0.35690581798553467, -0.10117514431476593, 0.11356563866138458, 0.3319031596183777, 0.12780943512916565, 0.06040539592504501, -0.47749781608581543, -0.4047791361808777, -0.4042010009288788, -0.07265415787696838, 0.11886665225028992, 0.4263717532157898, 0.2234877347946167, -0.06526659429073334, -0.2210814505815506, -0.15991318225860596, -0.0006675273180007935, 0.2493537962436676, 0.3632699251174927, -0.07069499790668488, 0.4310435652732849, 0.0997796505689621, 0.1610734462738037, 0.2984607219696045, 0.6404607892036438, 0.020891569554805756, -0.6966490149497986, -0.0968514084815979, 0.2176889181137085, 0.42114579677581787, -0.08312459290027618, -0.14507965743541718, 0.1625128984451294, -0.17605330049991608, 0.218970388174057, 0.1035766676068306, -0.09556036442518234, 0.2444748878479004, 0.10343874245882034, -0.26114025712013245, -0.17185595631599426, 0.29029685258865356, 0.10969892889261246, 0.07500828802585602, 0.6137398481369019, 0.5614355802536011, -0.06374203413724899, 0.3008594214916229, 0.12314695119857788, 0.8985812664031982, 0.046395037323236465, -0.000026588328182697296, 0.3695356845855713, -0.4648846983909607, 0.7547263503074646, 0.0736856758594513, -0.03521881252527237, -0.3065106272697449, -0.047343842685222626, 0.05397021025419235, -0.23507101833820343, 0.4264870285987854, -0.2979433834552765, -0.16863477230072021, -0.06503205746412277, -0.25926750898361206, -0.24155564606189728, 0.008048061281442642, -0.0651860162615776, -0.05671108514070511, -0.21811218559741974, -0.39113304018974304, 0.1782827079296112, -0.03402275964617729, 0.2020713984966278, -0.057950619608163834, 0.022693779319524765, -0.2743913233280182, -0.30853787064552307, -0.27749860286712646, 0.17949435114860535, -0.2892340421676636, 0.09080976247787476, 0.5006541013717651, -0.1596691757440567, 0.3386620581150055, 0.25568684935569763, 0.3087826669216156, 0.035397082567214966, -0.28640782833099365, 0.1503562480211258, -0.16263167560100555, -0.19436299800872803, 0.11949194222688675, -0.01522139087319374, 0.2531603276729584, -0.12990793585777283, -0.21439644694328308, 0.16059371829032898, -0.0916077122092247, -0.18417240679264069, 0.2972695529460907, 0.19388830661773682, -0.04195430129766464, -0.01073019951581955, -0.173127219080925, -0.020059552043676376, 0.4970497190952301, -0.17169901728630066, 0.13997754454612732, 0.11363592743873596, 0.04240599274635315, 0.12942470610141754, 0.012865553610026836, -0.1300642490386963, -0.11903733015060425, 0.2629944384098053, -0.18767783045768738, 0.137393057346344, 0.30975502729415894, 0.2629559636116028, -0.2609208822250366, -0.1410125195980072, -0.18781255185604095, 0.0686541423201561, -0.4539937674999237, -0.09086629748344421, 0.05974268540740013, -0.03528280556201935, -0.033089205622673035, -0.07954326272010803, 0.05335621163249016, -0.15508784353733063, 0.16190552711486816, -0.43608611822128296, -0.17558448016643524, 0.22597189247608185, -0.2836337983608246, -0.1349894106388092, 0.3484507203102112, 0.14895161986351013, -0.04980712756514549, -0.058588817715644836, -0.2764822840690613, 0.14721494913101196, -0.16535469889640808, -0.12429462373256683, 0.28310108184814453, -0.018488286063075066, 0.19905723631381989, -0.21871721744537354, 0.1780536025762558, 0.18292111158370972, -0.03621606528759003, -0.20733782649040222, -0.21228061616420746, 0.08650729060173035, -0.009429866448044777, -0.19194920361042023, 0.09397368133068085, -0.11069439351558685, -0.2189807891845703, -0.08517830073833466, 0.023989707231521606, -0.013625010848045349, 0.012103281915187836, -0.1830826848745346, -0.008987091481685638, -0.011182364076375961, -0.2879628837108612, 0.0008221417665481567, 0.0902552455663681, 0.02274438552558422, 0.08433884382247925, 0.15752969682216644, -0.13357868790626526, -0.015657253563404083, -0.1283472776412964, 0.03672397881746292, -0.18336723744869232, 0.05791158229112625, 0.29790762066841125, -0.1698242574930191, 0.017609573900699615, 0.1437683403491974, 0.2532620429992676, 0.3032302260398865, -0.242021381855011, 0.059460580348968506, 0.5003703236579895, 0.17933493852615356, -0.39753562211990356, -0.2702343463897705, 0.13910596072673798, 0.07222355157136917, -0.09485039860010147, 0.07761600613594055, -0.03571823984384537, -0.05607415735721588, 0.13003700971603394, 0.12619221210479736, 0.335767924785614, 0.11122675240039825, 0.38974422216415405, 0.28442490100860596, 0.08801806718111038, -0.02227787673473358, 0.38019540905952454, 0.29053351283073425, 0.30259114503860474, 0.4476945996284485, -0.6012056469917297, -0.0032427217811346054, -0.22256390750408173, 0.026145966723561287, 0.08265765011310577, -0.3724415600299835, 0.09660713374614716, 0.04310828447341919, 0.12450644373893738, -0.1583041548728943, -0.057996898889541626, 0.46612483263015747, 0.06825363636016846, -0.23172876238822937, -0.05611681938171387, 0.36583849787712097, -0.11055319011211395, 0.17481590807437897, 0.059439584612846375, -0.1360856145620346, 0.005872413516044617, -0.02155134081840515, -0.024783935397863388, -0.29140713810920715, 0.31899532675743103, 0.09426611661911011, -0.20182403922080994, -0.5774997472763062, 0.14483076333999634, 0.16761569678783417, 0.0762113407254219, -0.07455376535654068, 0.2519908845424652, 0.16260868310928345, -0.26424020528793335, -0.2576158344745636, 0.2623952031135559, 0.5221633315086365, 0.19910824298858643, 0.25211063027381897, 0.10423921048641205, 0.04822318255901337, -0.0737357884645462, -0.09327995777130127, 0.1331295222043991, 0.15845932066440582, 0.33715489506721497, 0.18169116973876953, 0.2028663158416748, -0.17140229046344757, -0.1864282637834549, 0.1344393640756607, 0.4104470908641815, -0.31824564933776855, 0.14442594349384308, -0.4107249081134796, -0.10471702367067337, -0.21285070478916168, 0.06286244094371796, -0.29464930295944214, 0.12761269509792328, 0.41896647214889526, -0.024870648980140686, -0.07346947491168976, -0.24554993212223053, 0.06813390552997589, 0.05851540341973305, 0.46247243881225586, 0.3319930136203766, 0.26501038670539856, -0.08040232956409454, -0.40826016664505005, -0.6252093315124512, 0.23309314250946045, -0.12157659977674484, 0.0033994168043136597, 0.23579445481300354, -0.038931310176849365, 0.03809366002678871, 0.12139685451984406, 0.17145070433616638, 0.3556744158267975, -0.004140473902225494, -0.2868087887763977, -0.29876768589019775, -0.20146122574806213, -0.07452863454818726, -0.15666750073432922, 0.09308873862028122, -0.2050388753414154, 0.1662462204694748, -0.29516494274139404, 0.05177188664674759, -0.25687098503112793, 0.021304503083229065, -0.050199106335639954, -0.020440980792045593, 0.603371798992157, 0.13147906959056854, 0.2774263024330139, 0.09826085716485977, -0.2365650236606598, -0.21408002078533173, -0.25388455390930176, -0.08571748435497284, 0.34315526485443115, -0.05394876003265381, 0.13886502385139465, -0.30105727910995483, -0.270582914352417, -0.25907251238822937, 0.14048171043395996, 0.08550179749727249, 0.14403758943080902, -0.24334895610809326, 0.22997987270355225, -0.05508372560143471, 0.17499756813049316, -0.011393003165721893, 0.14171963930130005, -0.10997552424669266, 0.20305290818214417, -0.2798287570476532, -0.30799004435539246, 0.48088037967681885, -0.41782447695732117, -0.22101439535617828, 0.24903203547000885, 0.22774529457092285, 0.19188867509365082, -0.522018551826477, -0.5299087762832642, 0.09403584897518158, 0.2555467188358307, 0.02309015765786171, -0.22781983017921448, 0.3259151577949524, -0.01552673801779747, -0.027012929320335388, -0.053875669836997986, 0.48445409536361694, 0.13457077741622925, -0.1541210412979126, 0.3818504214286804, 0.03795448690652847 ]
https://github.com/huggingface/datasets/issues/5632
Answered on the forum: > To fix the overflow error, we need to merge [support LargeListArray in pyarrow by xwwwwww Β· Pull Request #4800 Β· huggingface/datasets Β· GitHub](https://github.com/huggingface/datasets/pull/4800), which adds support for the large lists. However, before merging it, we need to come up with a cleaner API for large lists. I hope to find some time to address this before Datasets 3.0.
Dataset cannot convert too large dictionnary
### Describe the bug Hello everyone! I tried to build a new dataset with the command "dict_valid = datasets.Dataset.from_dict({'input_values': values_array})". However, I have a very large dataset (~400Go) and it seems that dataset cannot handle this. Indeed, I can create the dataset until a certain size of my dictionnary, and then I have the error "OverflowError: Python int too large to convert to C long". Do you know how to solve this problem? Unfortunately I cannot give a reproductible code because I cannot share a so large file, but you can find the code below (it's a test on only a part of the validation data ~10Go, but it's already the case). Thank you! ### Steps to reproduce the bug SAVE_DIR = './data/' features = h5py.File(SAVE_DIR+'features.hdf5','r') valid_data = features["validation"]["data/features"] v_array_values = [np.float32(item[()]) for item in valid_data.values()] for i in range(len(v_array_values)): v_array_values[i] = v_array_values[i].round(decimals=5) dict_valid = datasets.Dataset.from_dict({'input_values': v_array_values}) ### Expected behavior The code is expected to give me a Huggingface dataset. ### Environment info python: 3.8.15 numpy: 1.22.3 datasets: 2.3.2 pyarrow: 8.0.0
63
Dataset cannot convert too large dictionnary ### Describe the bug Hello everyone! I tried to build a new dataset with the command "dict_valid = datasets.Dataset.from_dict({'input_values': values_array})". However, I have a very large dataset (~400Go) and it seems that dataset cannot handle this. Indeed, I can create the dataset until a certain size of my dictionnary, and then I have the error "OverflowError: Python int too large to convert to C long". Do you know how to solve this problem? Unfortunately I cannot give a reproductible code because I cannot share a so large file, but you can find the code below (it's a test on only a part of the validation data ~10Go, but it's already the case). Thank you! ### Steps to reproduce the bug SAVE_DIR = './data/' features = h5py.File(SAVE_DIR+'features.hdf5','r') valid_data = features["validation"]["data/features"] v_array_values = [np.float32(item[()]) for item in valid_data.values()] for i in range(len(v_array_values)): v_array_values[i] = v_array_values[i].round(decimals=5) dict_valid = datasets.Dataset.from_dict({'input_values': v_array_values}) ### Expected behavior The code is expected to give me a Huggingface dataset. ### Environment info python: 3.8.15 numpy: 1.22.3 datasets: 2.3.2 pyarrow: 8.0.0 Answered on the forum: > To fix the overflow error, we need to merge [support LargeListArray in pyarrow by xwwwwww Β· Pull Request #4800 Β· huggingface/datasets Β· GitHub](https://github.com/huggingface/datasets/pull/4800), which adds support for the large lists. However, before merging it, we need to come up with a cleaner API for large lists. I hope to find some time to address this before Datasets 3.0.
[ -0.2781134247779846, -0.3134053945541382, -0.02435190975666046, 0.2988698482513428, 0.30754172801971436, -0.029401592910289764, -0.09150264412164688, 0.2568930983543396, -0.034427981823682785, 0.0353141687810421, -0.05639523267745972, -0.024378158152103424, -0.10717090219259262, 0.3945644497871399, -0.18496739864349365, -0.10159774124622345, 0.12899963557720184, -0.1178443655371666, -0.2992522120475769, 0.026910170912742615, -0.33919113874435425, -0.2218780368566513, -0.09346750378608704, -0.2192544937133789, -0.11883963644504547, -0.18278880417346954, -0.02953459322452545, 0.08119086921215057, -0.47256556153297424, -0.3935810923576355, 0.07383541017770767, -0.04221271723508835, 0.040447309613227844, 0.3662160038948059, -0.00012486633204389364, -0.17454320192337036, 0.24698714911937714, -0.1795940399169922, -0.1536070555448532, 0.1608947515487671, -0.029330767691135406, -0.7096842527389526, -0.15418681502342224, -0.17523542046546936, 0.04954299330711365, -0.35772186517715454, -0.2772074043750763, -0.12378977239131927, 0.4615829288959503, 0.5565346479415894, 0.1076812744140625, -0.1323707550764084, 0.44004589319229126, 0.09362629055976868, 0.03596876561641693, 0.21942636370658875, -0.1414605677127838, 0.08212719857692719, 0.28957894444465637, 0.044680625200271606, 0.07721167802810669, -0.23590265214443207, -0.10130268335342407, -0.27330976724624634, 0.26686474680900574, -0.1823117882013321, -0.07992773503065109, -0.3077707886695862, 0.03188236430287361, 0.41733860969543457, 0.2405308485031128, -0.346297025680542, -0.33402392268180847, -0.2127830982208252, -0.11229172348976135, -0.3940683603286743, 0.03625299409031868, 0.22004613280296326, -0.19361118972301483, 0.05517866462469101, -0.048363517969846725, -0.3772698938846588, -0.38815370202064514, 0.23479482531547546, -0.2607903480529785, -0.009393729269504547, -0.09647756814956665, 0.010073477402329445, 0.32412955164909363, -0.2119283676147461, 0.01817147806286812, -0.01910470426082611, 0.1083633080124855, 0.10609914362430573, -0.32870936393737793, -0.08766048401594162, 0.002007577568292618, 0.16729611158370972, 0.5124039053916931, -0.2785020172595978, -0.061528272926807404, -0.0022653797641396523, -0.22789084911346436, -0.05132581666111946, 0.263107568025589, 0.12011811137199402, -0.30850735306739807, 0.030619937926530838, 0.08235260844230652, 0.08714451640844345, 0.029155448079109192, 0.19909311830997467, 0.13287755846977234, -0.322973370552063, 0.03183668106794357, -0.19494418799877167, 0.1983264535665512, -0.18215808272361755, -0.09528069198131561, 0.25053921341896057, -0.2933412194252014, 0.2068392038345337, 0.06887230277061462, 0.33446162939071655, -0.11322665214538574, 0.19968515634536743, -0.27234703302383423, 0.39813852310180664, -0.09460045397281647, -0.11164191365242004, 0.004542022943496704, -0.04955554008483887, 0.04057985544204712, -0.14896410703659058, 0.044808775186538696, -0.0724276453256607, -0.11064973473548889, 0.25009870529174805, 0.2219165414571762, -0.07674574851989746, -0.16251015663146973, -0.45068779587745667, 0.26573124527931213, 0.21284577250480652, -0.020499639213085175, -0.04007294028997421, 0.2691667675971985, -0.09282539039850235, -0.017351433634757996, 0.216960608959198, 0.23153001070022583, -0.10304194688796997, -0.3039359748363495, 0.05943231284618378, -0.19144508242607117, 0.05791506543755531, -0.26501041650772095, 0.17696638405323029, 0.3373623192310333, -0.006608843803405762, 0.11461373418569565, -0.4689095616340637, 0.19657719135284424, -0.3247658312320709, -0.055081065744161606, 0.2894679307937622, -0.6446619033813477, 0.37048280239105225, -0.13704471290111542, 0.08130405843257904, 0.13382801413536072, 0.6279559135437012, 0.012593116611242294, -0.1860148310661316, -0.2437126338481903, -0.3146616220474243, 0.12084648013114929, -0.17811492085456848, -0.5663672089576721, 0.21340082585811615, -0.010005168616771698, 0.049525000154972076, 0.12599113583564758, 0.1000872328877449, 0.15480896830558777, -0.1368180364370346, -0.06463709473609924, 0.2956734299659729, -0.26812347769737244, -0.0016742348670959473, -0.23532579839229584, -0.32881057262420654, 0.1975952535867691, -0.030043307691812515, 0.16907650232315063, -0.13352228701114655, 0.020194148644804955, -0.1763269603252411, 0.26024389266967773, -0.025456130504608154, 0.10227072983980179, 0.265151709318161, 0.5604639649391174, 0.06123929098248482, -0.04921363294124603, -0.32779037952423096, -0.02664291486144066, -0.011310204863548279, 0.09331731498241425, 0.0015314603224396706, -0.06890326738357544, -0.2108526974916458, -0.4885616600513458, 0.26913735270500183, -0.15841424465179443, 0.21732589602470398, 0.02852785214781761, -0.02445906773209572, 0.5500513315200806, 0.14205124974250793, -0.00501386821269989, 0.44513681530952454, -0.17753474414348602, 0.14018015563488007, -0.20509999990463257, 0.09753399342298508, -0.025072932243347168, -0.04867430403828621, -0.00382232666015625, 0.2758067548274994, 0.16606998443603516, -0.038322512060403824, -0.123992919921875, 0.08639112114906311, 0.2421387881040573, -0.5254282355308533, -0.4624955654144287, 0.2574957609176636, 0.13406893610954285, -0.42356911301612854, 0.36495429277420044, 0.28481152653694153, 0.048470813781023026, -0.08309353142976761, -0.24202309548854828, 0.3090200126171112, -0.20381048321723938, 0.2752736210823059, 0.08359794318675995, 0.25217753648757935, 0.4619084596633911, 0.11431065201759338, 0.19142970442771912, -0.11373435705900192, -0.0004791230894625187, -0.07562591135501862, 0.3884352445602417, -0.13521918654441833, -0.11177346855401993, 0.02179151214659214, 0.579306423664093, -0.07713495939970016, 0.18434801697731018, 0.22736375033855438, -0.11990097165107727, -0.0515001118183136, 0.02286391891539097, 0.13181109726428986, 0.28085511922836304, 0.30060216784477234, -0.22539165616035461, 0.18348729610443115, -0.058700334280729294, -0.035404838621616364, 0.18073783814907074, 0.08616034686565399, 0.36312198638916016, 0.14380913972854614, 0.5549778938293457, -0.176917165517807, -0.20857557654380798, -0.03062177076935768, 0.04930301010608673, 0.18193669617176056, -0.2733668088912964, 0.1892225295305252, -0.15334749221801758, -0.27440333366394043, -0.18213124573230743, -0.13549022376537323, -0.2206762731075287, -0.4652310311794281, -0.12199348956346512, 0.2951014041900635, 0.1140824407339096, -0.10230053961277008, 0.1794508546590805, -0.06485484540462494, 0.326034814119339, -0.35581710934638977, 0.040330514311790466, -0.18965914845466614, -0.18532982468605042, 0.002745121717453003, 0.373961865901947, -0.23675304651260376, 0.413638174533844, 0.10538369417190552, -0.2219499945640564, -0.2291027158498764, -0.4824483394622803, -0.005009017884731293, -0.13583025336265564, 0.26614394783973694, 0.17801177501678467, 0.3062848150730133, 0.018686331808567047, 0.12005548179149628, 0.09371863305568695, 0.1903218924999237, -0.16353149712085724, 0.277273565530777, -0.14301443099975586, 0.22005143761634827, 0.13238424062728882, -0.21295066177845, -0.26453733444213867, -0.3817969858646393, 0.41104626655578613, -0.12926813960075378, 0.13198640942573547, 0.09920677542686462, 0.32339298725128174, 0.2308301329612732, -0.12328369915485382, -0.12895014882087708, -0.13439816236495972, 0.35733142495155334, 0.2205829918384552, -0.07088807225227356, -0.44928449392318726, -0.19816258549690247, -0.15153342485427856, -0.013001890853047371, 0.0574803352355957, -0.41373351216316223, -0.1714090257883072, -0.5733145475387573, 0.5945024490356445, -0.269374281167984, 0.08343404531478882, 0.21441258490085602, -0.21158237755298615, 0.15802548825740814, -0.002404816448688507, -0.15887616574764252, -0.000635247677564621, 0.2908003330230713, 0.4374517798423767, -0.0035744141787290573, 0.6831094026565552, -0.03245493769645691, 0.6850646734237671, 0.2693367302417755, -0.006796406116336584, 0.34124159812927246, -0.19603244960308075, 0.3518403172492981, -0.17074903845787048, -0.3583261966705322, 0.13442842662334442, -0.12960466742515564, -0.10186052322387695, -0.10108408331871033, -0.07239451259374619, 0.19070161879062653, 0.2087996006011963, -0.09638522565364838, -0.07902847975492477, -0.11725728213787079, 0.09708789736032486, -0.23814328014850616, -0.01392965018749237, -0.020721513777971268, -0.009850829839706421, -0.06318264454603195, -0.24090465903282166, -0.2589597702026367, 0.01187817007303238, 0.03663737326860428, 0.10160329192876816, -0.010528422892093658, -0.193195179104805, -0.2836385667324066, 0.2354283630847931, 0.0938342958688736, 0.4098168611526489, 0.05801005661487579, 0.02376171201467514, -0.059262968599796295, -0.19277389347553253, 0.992007851600647, -0.20756632089614868, -0.10919590294361115, -0.002628229558467865, 0.1835174560546875, -0.6994162201881409, 0.08171427249908447, -0.22175274789333344, 0.3054455518722534, 0.26507389545440674, 0.08386935293674469, -0.40063685178756714, 0.139165997505188, 0.12667042016983032, 0.692337155342102, -0.03774350509047508, -0.10068116337060928, -0.2811453938484192, -0.47706151008605957, -0.4172526001930237, 0.23256061971187592, 0.41265830397605896, 0.31518757343292236, -0.12967297434806824, -0.22413212060928345, -0.12521511316299438, -0.17795288562774658, 0.0647837221622467, -0.012035056948661804, 0.12942880392074585, -0.3088252544403076, 0.05080626904964447, -0.39400872588157654, 0.11362221837043762, 0.351139634847641, 0.5582168698310852, 0.06255021691322327, -0.616047739982605, -0.04807032644748688, 0.1858801394701004, 0.44794410467147827, 0.019901342689990997, 0.015374448150396347, 0.1780048906803131, 0.06598711013793945, 0.41538065671920776, 0.021782413125038147, 0.193914532661438, 0.0063542090356349945, 0.1451324224472046, -0.3629443049430847, -0.1658027172088623, 0.4124828577041626, 0.14760562777519226, 0.25981611013412476, 0.08509983122348785, 0.6344708204269409, -0.07578913122415543, 0.35979047417640686, -0.05151903256773949, 0.7601168751716614, -0.3598058521747589, 0.0636974349617958, 0.31074368953704834, -0.33748218417167664, 0.5878052711486816, 0.07143732905387878, -0.03407466784119606, -0.3919222950935364, 0.10533492267131805, 0.15486940741539001, -0.25637829303741455, 0.141813725233078, -0.016402192413806915, -0.1816527247428894, 0.34045711159706116, -0.40977370738983154, 0.2511141896247864, 0.03424546867609024, 0.4120336174964905, -0.3632839322090149, -0.0720285177230835, -0.5667027831077576, 0.10001445561647415, -0.15838587284088135, -0.2297387719154358, -0.007669422775506973, -0.060618288815021515, -0.05972139537334442, -0.12891347706317902, -0.5137767791748047, -0.07917488366365433, -0.40579718351364136, 0.006166752427816391, 0.15433207154273987, -0.1987069845199585, 0.4831535816192627, 0.35405734181404114, 0.2452041208744049, 0.36400216817855835, -0.1718035489320755, -0.1411518007516861, -0.0150260329246521, -0.19741354882717133, 0.3111529052257538, -0.14042064547538757, 0.2651236951351166, -0.018339335918426514, -0.2691698670387268, 0.16541139781475067, 0.07030926644802094, -0.03992001712322235, -0.03948304057121277, 0.02159878984093666, 0.13990803062915802, -0.38238412141799927, -0.06681017577648163, -0.31546926498413086, -0.13455674052238464, -0.3028082847595215, 0.010732384398579597, 0.0256198737770319, -0.03763284161686897, 0.294708251953125, -0.10687926411628723, -0.06816158443689346, -0.12232093513011932, 0.12556800246238708, 0.10535720735788345, -0.27966198325157166, 0.3298383057117462, 0.4787018895149231, -0.0758492723107338, -0.16095244884490967, 0.2539675235748291, -0.055960990488529205, -0.3352473974227905, 0.33944171667099, 0.06546103209257126, -0.14263524115085602, -0.11639827489852905, -0.03272513300180435, 0.10523035377264023, 0.02800031378865242, -0.17278608679771423, -0.3226289451122284, -0.5240240097045898, 0.08689197897911072, -0.020146189257502556, -0.11062830686569214, 0.10916361212730408, 0.17886948585510254, -0.2125432789325714, 0.20229347050189972, -0.17370577156543732, -0.02474554441869259, 0.0798456147313118, -0.10031281411647797, -0.02838783711194992, -0.1601066291332245, -0.07584263384342194, -0.04775235801935196, 0.08042403310537338, 0.2923852801322937, 0.014621749520301819, -0.1419467031955719, -0.05107177048921585, 0.1301947683095932, 0.10033319890499115, -0.09087613970041275, 0.046145275235176086, -0.3668869137763977, -0.28544333577156067, -0.12068876624107361, 0.2848101854324341, 0.08364302664995193, -0.05778531730175018, -0.004837498068809509, 0.11700378358364105, -0.12971316277980804, -0.09171251952648163, -0.07100522518157959, -0.006509989500045776, 0.134730264544487, 0.06347936391830444, 0.4869856834411621, 0.2734510004520416, -0.07686018943786621, -0.27841097116470337, 0.1533394604921341, 0.2809661626815796, -0.26263153553009033, 0.44265812635421753, -0.29865381121635437, -0.14860011637210846, 0.22825172543525696, 0.29514050483703613, 0.33378031849861145, -0.1286928802728653, -0.005125187337398529, 0.34150049090385437, 0.0693662241101265, -0.3696590065956116, -0.033061571419239044, 0.16129466891288757, -0.19699008762836456, 0.1663358360528946, 0.4542585015296936, -0.045141492038965225, -0.1461794674396515, -0.15970496833324432, 0.0436318963766098, 0.014315620064735413, 0.09160846471786499, -0.0005747601389884949, 0.6676329970359802, -0.04440343379974365, -0.12136600911617279, 0.44504350423812866, -0.015348993241786957, 0.33240535855293274, 0.8583800792694092, 0.06661005318164825, 0.2609926462173462, -0.061421915888786316, -0.12995412945747375, 0.39125433564186096, -0.12534694373607635, 0.11189485341310501, 0.298642098903656, 0.0078008659183979034, 0.10342292487621307, -0.08117203414440155, 0.4257345497608185, -0.04142909497022629, 0.09127072989940643, -0.4148176908493042, 0.14699393510818481, -0.14748336374759674, 0.132055401802063, 0.24650591611862183, -0.09263807535171509, 0.11423426866531372, 0.009566836059093475, -0.2605147361755371, -0.518641471862793, 0.24086037278175354, 0.038644760847091675, 0.056540749967098236, -0.45542454719543457, 0.37067949771881104, 0.21972987055778503, 0.13006165623664856, -0.22000378370285034, 0.17438171803951263, 0.4662199020385742, -0.19748693704605103, -0.22492514550685883, 0.04087912291288376, 0.5979502201080322, 0.36655038595199585, -0.29976919293403625, 0.2987779378890991, 0.046699751168489456, -0.24193401634693146, -0.05171068012714386, 0.1219538077712059, 0.05690491199493408, 0.37921735644340515, 0.3523278534412384, 0.014123640954494476, -0.02937198430299759, -0.18154779076576233, 0.14331714808940887, 0.1381707489490509, -0.2197427600622177, 0.06664994359016418, -0.10237136483192444, -0.1475900560617447, -0.14368119835853577, 0.12331883609294891, -0.4381428360939026, -0.3126909136772156, 0.5459899306297302, 0.06258244067430496, 0.2632823884487152, -0.013281106948852539, 0.017514415085315704, -0.4013912081718445, 0.4156436026096344, 0.3667622208595276, 0.28953590989112854, -0.23486995697021484, 0.07979421317577362, -0.4565774202346802, 0.0650930106639862, -0.41229885816574097, -0.18975836038589478, 0.12460313737392426, 0.1140516996383667, 0.12853890657424927, 0.2194221019744873, 0.08997207134962082, 0.21930038928985596, -0.023255493491888046, 0.15905068814754486, -0.14058980345726013, -0.4289853870868683, 0.21159258484840393, -0.03408152982592583, -0.006610259413719177, -0.4901489019393921, 0.326557457447052, 0.010709084570407867, -0.047929663211107254, -0.1372690200805664, 0.32627183198928833, 0.02738695591688156, -0.19461902976036072, -0.12207253277301788, 0.475765585899353, 0.3621504306793213, 0.024110496044158936, -0.12940673530101776, 0.0335121750831604, 0.23606355488300323, -0.42685946822166443, 0.3866383731365204, -0.031150922179222107, 0.4348030984401703, -0.12209782749414444, -0.1207888275384903, -0.008113957941532135, 0.12307664752006531, 0.1731938123703003, -0.1891980767250061, -0.0549778938293457, 0.0335218608379364, -0.003839358687400818, 0.0534890741109848, 0.09980615973472595, 0.09693262726068497, -0.06541918963193893, 0.33758389949798584, -0.13264413177967072, -0.32179445028305054, 0.35327690839767456, 0.1838580071926117, -0.38517865538597107, -0.010821957141160965, 0.32147157192230225, 0.17146414518356323, -0.3622349202632904, -0.25060412287712097, 0.18900685012340546, 0.2734937369823456, 0.13735251128673553, -0.13544975221157074, 0.26644420623779297, -0.083399698138237, 0.002507239580154419, -0.10729029029607773, 0.25769633054733276, -0.02369382232427597, -0.17516444623470306, 0.13905887305736542, -0.07533132284879684 ]
https://github.com/huggingface/datasets/issues/5631
Hi! You can also use names other than "train", "validation" and "test". As an example, check the [script](https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0/blob/e095840f23f3dffc1056c078c2f9320dad9ca74d/common_voice_11_0.py#L139) of the Common Voice 11 dataset.
Custom split names
### Feature request Hi, I participated in multiple NLP tasks where there are more than just train, test, validation splits, there could be multiple validation sets or test sets. But it seems currently only those mentioned three splits supported. It would be nice to have the support for more splits on the hub. (currently i can have more splits when I am loading datasets from urls, but not hub) ### Motivation Easier access to more splits ### Your contribution No
24
Custom split names ### Feature request Hi, I participated in multiple NLP tasks where there are more than just train, test, validation splits, there could be multiple validation sets or test sets. But it seems currently only those mentioned three splits supported. It would be nice to have the support for more splits on the hub. (currently i can have more splits when I am loading datasets from urls, but not hub) ### Motivation Easier access to more splits ### Your contribution No Hi! You can also use names other than "train", "validation" and "test". As an example, check the [script](https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0/blob/e095840f23f3dffc1056c078c2f9320dad9ca74d/common_voice_11_0.py#L139) of the Common Voice 11 dataset.
[ 0.06793341040611267, -0.37327665090560913, -0.13028736412525177, -0.004513846710324287, -0.12695728242397308, 0.021978527307510376, 0.6972882747650146, 0.40757760405540466, 0.11266757547855377, 0.2690993845462799, -0.3183884620666504, 0.23278623819351196, -0.15757286548614502, 0.3476024866104126, 0.12399245798587799, -0.43398618698120117, -0.017323985695838928, 0.16468165814876556, 0.5202842950820923, 0.08622511476278305, -0.11451728641986847, 0.13047286868095398, -0.08578316122293472, 0.30709367990493774, -0.5790872573852539, 0.053028710186481476, -0.2756150960922241, -0.06890100985765457, 0.11076489835977554, -0.3636019229888916, -0.15778841078281403, 0.4704884886741638, -0.21496376395225525, 0.13188546895980835, -0.00011634903057711199, -0.22108706831932068, 0.28778669238090515, 0.017861679196357727, -0.34707239270210266, -0.13819831609725952, -0.35761111974716187, -0.00969218835234642, 0.06588979810476303, -0.1852770298719406, 0.07491573691368103, 0.1928759664297104, 0.1796068251132965, 0.2790009379386902, 0.12470640242099762, 0.11548466980457306, 0.1186618059873581, 0.05091221630573273, -0.28464844822883606, -0.06133697181940079, 0.18195828795433044, 0.40427228808403015, -0.4459241032600403, -0.05003596097230911, 0.4183920919895172, -0.21698401868343353, -0.11090816557407379, -0.1137782484292984, 0.18771480023860931, 0.01818179339170456, -0.19780656695365906, 0.05874652788043022, -0.24239905178546906, -0.286129355430603, -0.1704762727022171, 0.5274227857589722, 0.07954493165016174, -0.04737216606736183, -0.2304002344608307, -0.5628206133842468, 0.14887525141239166, -0.21451351046562195, -0.023203793913125992, 0.2814125418663025, 0.007809881120920181, 0.07759693264961243, -0.03790736570954323, -0.1656489372253418, -0.13571956753730774, 0.23267120122909546, 0.14190277457237244, 0.5652287006378174, 0.22055195271968842, 0.06779730319976807, 0.3361557126045227, -0.047537170350551605, 0.3505057394504547, -0.07606640458106995, 0.05780830979347229, -0.0036867260932922363, -0.2568157911300659, -0.36548319458961487, -0.3148609399795532, -0.10479515790939331, -0.033066459000110626, 0.3621103763580322, 0.16863015294075012, 0.1662970930337906, -0.2701839804649353, 0.04084485024213791, 0.11445890367031097, -0.07338764518499374, 0.3415083885192871, 0.3927096724510193, 0.26657649874687195, 0.15120679140090942, 0.006542578339576721, 0.09144255518913269, -0.30602705478668213, 0.021714840084314346, -0.5319567322731018, 0.2595268785953522, -0.38890862464904785, 0.26067110896110535, 0.13453447818756104, -0.38244885206222534, -0.04129504784941673, -0.19099456071853638, 0.3414614200592041, 0.12874633073806763, 0.11820507049560547, 0.11326543986797333, -0.5808600187301636, 0.23148436844348907, -0.13620835542678833, -0.3984687328338623, -0.09834028780460358, 0.21003316342830658, -0.28611159324645996, 0.20840540528297424, 0.49480098485946655, -0.02501041442155838, 0.2114686667919159, -0.37860918045043945, 0.383729487657547, -0.26584696769714355, -0.053976789116859436, 0.10021898150444031, -0.08122646808624268, -0.09776650369167328, -0.012797661125659943, -0.06538207083940506, -0.1647360473871231, 0.008605808019638062, -0.26637130975723267, -0.08199828118085861, -0.24015933275222778, -0.4389098584651947, 0.10232748091220856, 0.12767228484153748, -0.16475000977516174, -0.12180034816265106, -0.0740819200873375, 0.37095218896865845, 0.07993657886981964, -0.05235349386930466, 0.18560248613357544, 0.01901143044233322, -0.13299909234046936, 0.02056853473186493, -0.1220419779419899, -0.02158709615468979, 0.0013350620865821838, -0.2915010452270508, -0.16019585728645325, -0.019132910296320915, -0.16957488656044006, 0.11250124871730804, -0.05907987058162689, 0.12163493037223816, -0.0854862853884697, 0.7614845633506775, 0.6266239881515503, -0.35654228925704956, -0.025534149259328842, -0.0662447139620781, 0.058096274733543396, -0.3988740146160126, 0.30595746636390686, 0.03007565811276436, 0.4100344181060791, -0.08253388106822968, 0.019637566059827805, 0.3192858099937439, -0.0644235759973526, -0.06035299599170685, 0.1249130368232727, -0.22694861888885498, 0.033979956060647964, 0.394033819437027, 0.11398084461688995, -0.2972964942455292, -0.06998275220394135, 0.3155025541782379, 0.3258340656757355, -0.110484778881073, 0.11929520219564438, -0.16149333119392395, 0.10262344032526016, 0.10942989587783813, 0.025142837315797806, -0.3730071187019348, -0.1969379335641861, 0.11135885119438171, -0.21483951807022095, 0.13355416059494019, 0.528529942035675, -0.04994343966245651, -0.3436196744441986, -0.32022663950920105, -0.1959589272737503, 0.0355660654604435, 0.06450629979372025, 0.13011766970157623, 0.13972195982933044, -0.2256285846233368, -0.38793641328811646, 0.23084473609924316, -0.11100078374147415, 0.1931505799293518, -0.09601087868213654, 0.42951956391334534, 0.14177300035953522, -0.013947851955890656, 0.06118438392877579, 0.6451930999755859, 0.07168261706829071, -0.0831528902053833, -0.025250568985939026, 0.206261545419693, 0.23846293985843658, 0.33930549025535583, 0.10575622320175171, 0.06758882105350494, 0.48268449306488037, -0.07811373472213745, 0.2315674126148224, -0.032726485282182693, -0.16964459419250488, -0.1400691717863083, -0.13604825735092163, 0.24569354951381683, -0.018063319846987724, 0.27148133516311646, 0.025541827082633972, 0.03961748629808426, 0.09843238443136215, -0.23281502723693848, -0.3470882773399353, -0.32604461908340454, 0.1740124523639679, -0.2302689105272293, 0.03448814898729324, -0.25562766194343567, -0.09179048985242844, -0.1214996725320816, 0.6705068945884705, -0.1075180172920227, 0.09861765801906586, -0.1326962560415268, 0.05329039692878723, 0.007679939270019531, 0.06487581133842468, 0.21435986459255219, 0.21049915254116058, 0.1728133112192154, 0.018642012029886246, -0.006634369492530823, -0.09639927744865417, -0.3484727740287781, 0.06972604244947433, 0.18510913848876953, -0.09171915054321289, 0.18512099981307983, 0.06054943799972534, -0.43330660462379456, -0.22283686697483063, -0.42423564195632935, 0.3620274066925049, -0.36628058552742004, -0.037221480160951614, -0.24981525540351868, -0.2670508325099945, -0.2232152223587036, -0.22729095816612244, -0.34751468896865845, -0.2866523563861847, -0.26699963212013245, 0.38252687454223633, 0.06944189965724945, -0.16009116172790527, 0.13446490466594696, -0.09187056124210358, 0.5220164060592651, -0.3938887119293213, 0.256479948759079, -0.07882148027420044, -0.11440340429544449, -0.024278901517391205, 0.09354756772518158, 0.005899194628000259, 0.1233111023902893, 0.2774370014667511, 0.10909293591976166, -0.09442044049501419, -0.0072195157408714294, -0.1456652283668518, 0.17985817790031433, -0.17439045011997223, -0.20725926756858826, 0.1535276621580124, -0.3991590142250061, 0.32458943128585815, -0.3189893066883087, 0.2198975384235382, -0.016205299645662308, -0.056361060589551926, -0.18074765801429749, 0.20806440711021423, 0.19150756299495697, -0.16176092624664307, -0.4509667456150055, -0.41471654176712036, -0.45961230993270874, 0.32524433732032776, -0.22315534949302673, 0.22290357947349548, -0.01731068640947342, -0.5559411644935608, -0.056962233036756516, -0.29081398248672485, -0.19195440411567688, -0.19398021697998047, 0.1869257092475891, 0.01020328514277935, -0.5958213806152344, 0.20738759636878967, -0.10469905287027359, -0.2986677587032318, 0.3850841224193573, -0.1987573653459549, 0.005079098045825958, -0.06433383375406265, 0.01560484804213047, 0.041944414377212524, 0.20559276640415192, -0.21832053363323212, 0.13141478598117828, 0.1026977151632309, 0.05708795413374901, -0.013936787843704224, -0.15651243925094604, -0.055108893662691116, 0.6037940979003906, 0.026331104338169098, 0.1705937385559082, -0.10902504622936249, 0.04686145484447479, 0.5545020699501038, 0.3008953630924225, 0.21162019670009613, 0.11387558281421661, 0.03015507198870182, -0.5614983439445496, -0.08309967815876007, -0.3281886577606201, 0.2607853412628174, -0.053789183497428894, 0.07879258692264557, 0.5486020445823669, 0.23658834397792816, -0.21211668848991394, -0.22024402022361755, -0.1116960197687149, -0.07782059162855148, -0.29813680052757263, 0.12336093932390213, -0.25677990913391113, 0.22167108952999115, -0.2262604981660843, -0.018855594098567963, -0.23071299493312836, -0.10417041182518005, -0.014762822538614273, -0.003422662615776062, -0.08656716346740723, -0.19125454127788544, -0.49983805418014526, -0.16504326462745667, -0.16640830039978027, 0.1588851809501648, 0.33704712986946106, 0.024202249944210052, -0.09157957136631012, 0.11684712767601013, 0.05651331692934036, 0.3182997405529022, 0.19886258244514465, -0.44268059730529785, -0.11021994054317474, 0.155985027551651, -0.0035905689001083374, -0.050680749118328094, -0.1677684485912323, -0.059884682297706604, 0.0812118649482727, 0.16709813475608826, 0.3271322548389435, -0.10328830033540726, -0.3622395098209381, 0.5008513331413269, -0.07961438596248627, -0.21903817355632782, -0.2597697377204895, 0.17189979553222656, 0.32519805431365967, -0.13774584233760834, 0.06072075664997101, 0.11707103252410889, 0.2078648954629898, -0.2911522388458252, -0.235600546002388, 0.27676549553871155, -0.48357725143432617, 0.2619779407978058, 0.2038826048374176, -0.14733916521072388, 0.14240366220474243, 0.09063240885734558, 0.056926384568214417, -0.001162695698440075, -0.1742071658372879, 0.23297114670276642, -0.41628023982048035, -0.31192532181739807, 0.06929807364940643, -0.186821848154068, 0.6943792104721069, 0.46529027819633484, 0.3925991356372833, 0.25096288323402405, -0.04474807530641556, 0.06636710464954376, -0.3186439573764801, 0.30516868829727173, 0.12001101672649384, -0.21836073696613312, -0.25328150391578674, -0.2982526421546936, 0.2843240201473236, 0.15534049272537231, -0.15895991027355194, 0.21795286238193512, 0.07479251176118851, -0.39713937044143677, 0.10736745595932007, -0.2369346022605896, 0.7820672988891602, 0.036889612674713135, 0.0961584597826004, -0.16560272872447968, -0.19965876638889313, 0.14302954077720642, -0.44163742661476135, 0.4036253094673157, -0.1937398463487625, -0.011693274602293968, -0.023808013647794724, -0.02654965966939926, 0.19722595810890198, 0.5913049578666687, -0.11976569890975952, 0.38290807604789734, 0.24613544344902039, 0.48966744542121887, -0.1335425078868866, 0.3584926724433899, -0.18539109826087952, -0.4452970027923584, -0.08094890415668488, 0.035206250846385956, -0.1015508621931076, 0.07366371154785156, 0.027602888643741608, 0.04295631870627403, 0.056446269154548645, 0.08756232261657715, -0.3185538351535797, 0.03093552589416504, 0.23098447918891907, -0.22856205701828003, 0.0107974112033844, -0.13109809160232544, 0.25472089648246765, -0.09966844320297241, 0.3737010359764099, 0.29852497577667236, -0.1804894208908081, 0.2037670612335205, -0.22368323802947998, 0.02218777686357498, -0.32394230365753174, 0.00442495197057724, 0.29311811923980713, -0.04415551945567131, -0.34955155849456787, -0.047915708273649216, 0.3652375638484955, -0.2856878638267517, -0.41366833448410034, 0.19705016911029816, 0.21544645726680756, -0.4012736678123474, 0.2304179072380066, 0.04578889533877373, -0.04077480360865593, -0.26948946714401245, 0.10347172617912292, 0.0503821037709713, -0.3103925287723541, 0.23335526883602142, 0.0454346165060997, -0.026904940605163574, -0.04000452905893326, -0.17432618141174316, 0.012293891981244087, -0.1252000331878662, 0.31816574931144714, -0.010376468300819397, 0.019784852862358093, -0.3347916603088379, 0.059365466237068176, 0.12282422184944153, -0.3674856126308441, 0.2336098998785019, -0.0635221004486084, -0.551121711730957, -0.07134547084569931, 0.2538447380065918, -0.014553982764482498, 0.4795410931110382, -0.19126614928245544, -0.04564512521028519, 0.033131688833236694, 0.1671541929244995, -0.047274623066186905, 0.34112390875816345, -0.10085298866033554, 0.40378859639167786, -0.1588997095823288, 0.18369100987911224, -0.22159326076507568, 0.18697303533554077, -0.1963081806898117, 0.21169577538967133, -0.28315094113349915, -0.3052308261394501, -0.06951625645160675, 0.2134409099817276, 0.07678200304508209, 0.13126817345619202, -0.08112295717000961, -0.1324826329946518, -0.2411746233701706, 0.15306514501571655, 0.20592129230499268, 0.19209282100200653, -0.31120961904525757, 0.021863073110580444, 0.07390757650136948, -0.16144029796123505, 0.04611708223819733, 0.08263546228408813, 0.12142994999885559, 0.6307932734489441, 0.4674604535102844, -0.11241084337234497, 0.0697704404592514, 0.37964412569999695, 0.08120465278625488, 0.5477897524833679, 0.16361552476882935, 0.27509987354278564, 0.020145989954471588, 0.09605035930871964, -0.22303654253482819, 0.1915799230337143, 0.31495559215545654, -0.12108774483203888, -0.023529835045337677, 0.20367924869060516, -0.06376967579126358, -0.010806255042552948, 0.14592567086219788, 0.3345021903514862, 0.09222884476184845, 0.1111871600151062, 0.4686445891857147, 0.15464720129966736, -0.06094900518655777, -0.19654114544391632, 0.39253321290016174, -0.009409969672560692, 0.22783321142196655, 0.5144582390785217, 0.39621442556381226, 0.09565244615077972, 0.025483503937721252, -0.24390973150730133, 0.0060932449996471405, -0.005902860313653946, 0.46846503019332886, 0.43198534846305847, -0.08423628658056259, -0.11140188574790955, 0.33625274896621704, -0.49495556950569153, 0.054448481649160385, 0.030961206182837486, -0.023824702948331833, 0.34083816409111023, 0.09433384239673615, 0.04192754626274109, 0.9028708338737488, 0.24321416020393372, -0.46081021428108215, -0.32277578115463257, 0.03369930386543274, 0.1827787458896637, -0.2182667851448059, 0.6993004083633423, -0.23517507314682007, 0.008881941437721252, -0.36933284997940063, 0.08417204022407532, 0.18915978074073792, -0.23413439095020294, -0.35836052894592285, 0.02463454008102417, -0.3674708604812622, 0.10112522542476654, -0.05007927864789963, -0.10195477306842804, 0.39172038435935974, 0.05438917875289917, 0.3304717540740967, 0.17984755337238312, 0.15651744604110718, 0.14433036744594574, 0.3048623502254486, -0.3245047628879547, 0.020551180467009544, 0.04200172424316406, -0.038834985345602036, 0.20458897948265076, 0.0008251536637544632, -0.1881231814622879, -0.3480491638183594, -0.3622143566608429, -0.25591886043548584, -0.27080705761909485, 0.02697499841451645, 0.08109453320503235, 0.24351319670677185, 0.21345987915992737, 0.1378200501203537, 0.3332163691520691, 0.06043039262294769, -0.017339365556836128, -0.04967285692691803, 0.11943118274211884, -0.17769429087638855, -0.39962679147720337, 0.714394748210907, 0.21242856979370117, -0.13213592767715454, -0.07977672666311264, 0.07130014151334763, -0.4245644807815552, -0.18886777758598328, 0.1916889250278473, -0.20155887305736542, 0.15779653191566467, -0.04665236175060272, 0.030750874429941177, -0.16123777627944946, 0.49610573053359985, -0.05428939312696457, 0.0352017804980278, -0.01362377405166626, -0.32102394104003906, 0.41517817974090576, -0.02424575388431549, -0.09821686893701553, -0.10193084180355072, -0.275730699300766, -0.06331770122051239, -0.15328939259052277, 0.11833556741476059, -0.16590571403503418, -0.18425637483596802, 0.1196771115064621, 0.2800743579864502, -0.4654802978038788, -0.01057414896786213, 0.23761245608329773, 0.3122083842754364, 0.2396310269832611, -0.028368383646011353, -0.0988197922706604, 0.33152228593826294, -0.31558188796043396, 0.05316564813256264, -0.02537629008293152, 0.5434597730636597, 0.06622222810983658, 0.047752007842063904, -0.05732129514217377, 0.3109376132488251, 0.03337455540895462, 0.00763934850692749, -0.2740904986858368, -0.2735114097595215, -0.2155197411775589, -0.04431077465415001, 0.07103459537029266, 0.2279113382101059, -0.087007075548172, 0.17039090394973755, -0.08887768536806107, 0.0076848044991493225, -0.0517943911254406, 0.3964958190917969, 0.06950382143259048, -0.07976934313774109, -0.09805465489625931, -0.15233786404132843, 0.37159186601638794, 0.312648743391037, -0.08810736238956451, -0.13990086317062378, 0.05995754897594452, -0.3222777247428894, 0.1592528522014618, 0.1394813358783722, -0.34913772344589233, -0.31110066175460815, 0.22975154221057892, 0.15114587545394897, 0.20526644587516785, -0.4030945897102356, -0.30861154198646545, 0.2682463526725769, -0.09730634838342667, 0.10569561272859573, 0.39972826838493347, 0.3693760633468628, -0.40470218658447266, -0.017363660037517548, 0.006783748045563698, 0.3254149854183197, 0.02385900914669037, -0.06432754546403885, -0.197037935256958 ]
https://github.com/huggingface/datasets/issues/5629
Hi! You seem to be using an outdated version of `datasets` that downloads the older script version. To avoid the error, you can either pass `revision="main"` to `load_dataset` (this can fail if a script uses newer features of the lib) or update your installation with `pip install -U datasets` (better solution).
load_dataset gives "403" error when using Financial phrasebank
When I try to load this dataset, I receive the following error: ConnectionError: Couldn't reach https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip (error 403) Has this been seen before? Thanks. The website loads when I try to access it manually.
51
load_dataset gives "403" error when using Financial phrasebank When I try to load this dataset, I receive the following error: ConnectionError: Couldn't reach https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip (error 403) Has this been seen before? Thanks. The website loads when I try to access it manually. Hi! You seem to be using an outdated version of `datasets` that downloads the older script version. To avoid the error, you can either pass `revision="main"` to `load_dataset` (this can fail if a script uses newer features of the lib) or update your installation with `pip install -U datasets` (better solution).
[ -0.5351288914680481, 0.5127535462379456, -0.03247550129890442, 0.34048691391944885, -0.011752007529139519, -0.13590365648269653, 0.386474609375, 0.25343450903892517, -0.05349142849445343, 0.1091269701719284, -0.19254691898822784, -0.05035670846700668, 0.4186597466468811, 0.25087597966194153, 0.4024048149585724, 0.19564686715602875, -0.030301593244075775, 0.04798825457692146, -0.08397869765758514, -0.05599934235215187, -0.16929391026496887, 0.34218746423721313, -0.2097184956073761, 0.3910435140132904, -0.08381900191307068, 0.04350194334983826, 0.13686779141426086, 0.28506582975387573, -0.2187034785747528, -0.3150940537452698, 0.3472497761249542, 0.23837143182754517, 0.2255534529685974, 0.4667358696460724, -0.0001234502560691908, -0.2981032133102417, 0.3232054114341736, 0.10990402102470398, -0.41782984137535095, -0.4772261679172516, -0.24591484665870667, -0.3996402323246002, 0.17508754134178162, -0.0817122757434845, -0.20251283049583435, 0.07632464170455933, 0.10175000131130219, -0.2525444030761719, 0.31890955567359924, 0.20428034663200378, 0.1155119240283966, -0.10869120061397552, -0.006544217467308044, -0.15097206830978394, 0.061763547360897064, -0.3605645000934601, -0.017810899764299393, 0.21504123508930206, -0.02566208690404892, -0.12648290395736694, 0.32519444823265076, 0.16037827730178833, -0.21267443895339966, -0.00850103422999382, 0.22839051485061646, 0.07423746585845947, 0.059361737221479416, -0.34515857696533203, 0.15343253314495087, 0.35311317443847656, 0.8906663060188293, -0.0324019119143486, -0.3418198823928833, 0.04707963764667511, 0.0568683035671711, 0.11752311140298843, 0.38938432931900024, 0.34960609674453735, -0.10092025995254517, 0.05917537957429886, -0.3161362111568451, -0.39787769317626953, -0.1931549459695816, 0.3967199921607971, -0.11602133512496948, -0.08963106572628021, -0.22620664536952972, 0.2364182323217392, 0.24863114953041077, -0.2152358889579773, 0.07977081835269928, -0.0772409439086914, -0.251151978969574, 0.1779850870370865, 0.13952621817588806, 0.266296923160553, -0.23307213187217712, 0.26697707176208496, 0.18256241083145142, 0.25208237767219543, 0.348280131816864, 0.28566184639930725, -0.1823435127735138, 0.35644829273223877, 0.2216843217611313, 0.24785220623016357, 0.19060136377811432, -0.12649232149124146, 0.37896695733070374, 0.31552693247795105, 0.03462432324886322, 0.08416478335857391, -0.27982157468795776, -0.1534583568572998, -0.04937861114740372, -0.25495219230651855, 0.32420775294303894, -0.289865642786026, -0.2495533525943756, 0.27489975094795227, -0.058984264731407166, -0.24596215784549713, -0.010842200368642807, 0.39296719431877136, 0.04605922847986221, -0.19259758293628693, 0.14708784222602844, 0.08802905678749084, -0.0296647846698761, -0.24608716368675232, -0.11470109224319458, -0.06065007671713829, -0.3817651867866516, 0.3153300881385803, 0.2587589919567108, -0.28702253103256226, 0.006149187684059143, -0.17446991801261902, 0.1406397819519043, -0.041806403547525406, 0.015228502452373505, 0.002341475337743759, -0.017730526626110077, 0.3119145929813385, 0.39696842432022095, 0.04614441841840744, 0.03368562459945679, -0.15151193737983704, -0.05801874399185181, -0.0200359970331192, -0.2376422882080078, -0.23944786190986633, 0.18044058978557587, 0.02544078603386879, -0.28841909766197205, -0.12664920091629028, -0.4628445506095886, 0.05993225425481796, -0.05186032876372337, -0.3556431233882904, -0.2519775629043579, 0.010558029636740685, -0.10648182779550552, -0.22429250180721283, 0.12950405478477478, 0.4697705805301666, -0.3985414505004883, -0.02979506552219391, -0.24999050796031952, -0.12623438239097595, 0.1952189803123474, 0.2751961350440979, -0.36334550380706787, -0.002510562539100647, -0.13830620050430298, 0.36261263489723206, 0.6169928312301636, -0.2799907326698303, -0.7758625149726868, 0.6111065745353699, -0.11822829395532608, -0.047032296657562256, -0.11787959188222885, 0.15356004238128662, -0.13280147314071655, 0.08073738217353821, -0.21146105229854584, 0.3289961814880371, 0.23194612562656403, -0.01646788790822029, 0.07894232869148254, -0.3560630679130554, 0.00005670823156833649, -0.03676621615886688, -0.14108531177043915, 0.060271017253398895, 0.3285173177719116, -0.11613176763057709, 0.23759472370147705, 0.06568001210689545, 0.017013590782880783, 0.12798844277858734, 0.3513515293598175, 0.33211708068847656, 0.21061038970947266, -0.13726812601089478, 0.06448251754045486, 0.054898448288440704, -0.31428927183151245, 0.1651807576417923, -0.003152761608362198, -0.07530929148197174, -0.24801503121852875, 0.06932959705591202, -0.13834914565086365, 0.20408955216407776, 0.011034876108169556, 0.3552572727203369, 0.08947315812110901, 0.031074896454811096, -0.14459480345249176, 0.4983506500720978, 0.332522451877594, 0.13327965140342712, -0.153960719704628, 0.3161294162273407, -0.08871321380138397, 0.08566047251224518, -0.05231410264968872, 0.12965774536132812, 0.21857838332653046, 0.031335435807704926, -0.1550614982843399, 0.4416353702545166, -0.24273644387722015, 0.035585008561611176, 0.2232721745967865, 0.06610146164894104, 0.07868996262550354, -0.41221147775650024, 0.323146790266037, 0.08946734666824341, -0.05602369084954262, 0.2800581455230713, 0.35313403606414795, 0.13567203283309937, 0.08731895685195923, 0.007222853600978851, 0.10486121475696564, 0.10238798707723618, 0.28588318824768066, 0.07797853648662567, -0.14797833561897278, -0.22615641355514526, 0.30667537450790405, -0.39879274368286133, 0.08501735329627991, -0.16234003007411957, 0.03615580499172211, -0.00567297637462616, 0.006171204149723053, -0.1964966356754303, 0.19316807389259338, 0.2536405026912689, -0.13343265652656555, -0.10955675691366196, -0.06729964911937714, 0.43023568391799927, 0.13460269570350647, 0.0506950207054615, -0.19833102822303772, 0.037473708391189575, 0.10491222143173218, -0.17055805027484894, 0.10760796070098877, 0.1528942584991455, 0.1413595974445343, 0.011341569945216179, -0.02857181802392006, 0.1630774438381195, -0.19597163796424866, -0.13394200801849365, 0.04183921962976456, 0.07090667635202408, -0.2356494665145874, 0.3650617301464081, -0.039298415184020996, -0.44300925731658936, 0.2184910923242569, -0.2678945064544678, -0.05042019858956337, -0.33919137716293335, -0.23847803473472595, 0.26662972569465637, 0.20593279600143433, 0.05478378385305405, -0.12546923756599426, 0.2318824976682663, -0.004761978983879089, -0.18886828422546387, -0.30030399560928345, 0.19077011942863464, -0.4026007056236267, -0.1266336441040039, 0.12788808345794678, -0.0565468855202198, 0.10593058913946152, -0.1425858438014984, 0.1139594167470932, -0.7798909544944763, -0.24490998685359955, 0.16617853939533234, -0.02389196678996086, 0.4092501103878021, 0.09204646944999695, 0.02423485554754734, -0.28427767753601074, 0.011888615787029266, 0.20986278355121613, -0.04269522428512573, 0.03273460268974304, 0.2643625736236572, -0.2264186292886734, -0.2598314583301544, 0.05622301995754242, -0.10684662312269211, -0.3719004690647125, -0.28362128138542175, 0.2611246705055237, 0.027733534574508667, 0.11806468665599823, 0.30938780307769775, -0.03066401556134224, 0.1360209435224533, -0.07028749585151672, 0.20000238716602325, -0.26935216784477234, -0.18701238930225372, 0.3895333707332611, -0.20817340910434723, -0.4061657786369324, 0.2511749863624573, 0.10325915366411209, 0.0133588258177042, 0.33847594261169434, -0.46638792753219604, 0.25413045287132263, -0.11570785939693451, -0.12437708675861359, -0.10019107162952423, -0.07561435550451279, 0.02998695895075798, -0.0661805123090744, 0.03401355445384979, 0.04255685210227966, -0.06046091765165329, -0.060616426169872284, -0.028607003390789032, 0.3758918344974518, -0.011449010111391544, 0.3874025344848633, -0.10018803924322128, 0.05749518424272537, 0.009433284401893616, 0.2907896339893341, 0.33736518025398254, -0.22252129018306732, 0.2911815941333771, 0.07442992180585861, -0.2032114416360855, -0.4877244234085083, -0.12592445313930511, -0.21213923394680023, 0.22809487581253052, 0.1482895463705063, -0.000946657732129097, -0.35358166694641113, -0.3245130777359009, -0.36959439516067505, -0.0684753805398941, -0.15911826491355896, 0.0037258360534906387, 0.39971473813056946, 0.304560124874115, 0.2423640638589859, 0.06199604272842407, -0.3210456073284149, -0.3389589190483093, 0.29542627930641174, 0.21032705903053284, 0.03422650694847107, -0.08419688791036606, 0.03133556991815567, -0.48189106583595276, 0.5494529008865356, -0.23712144792079926, 0.2913299798965454, -0.2778557240962982, 0.12241967767477036, 0.08774758875370026, -0.1953665316104889, -0.012895487248897552, -0.27253395318984985, 0.19732949137687683, 0.011683396995067596, -0.14471381902694702, -0.31111621856689453, -0.011082373559474945, -0.09271267056465149, 0.31943029165267944, 0.02803827077150345, 0.27883559465408325, -0.046412982046604156, 0.0601380355656147, 0.03261648491024971, -0.050707437098026276, -0.17981594800949097, -0.12594425678253174, -0.3185955286026001, -0.4326879680156708, -0.4329354166984558, -0.2764750123023987, -0.34485507011413574, 0.3245140016078949, 0.0757303237915039, 0.015723854303359985, 0.2418510466814041, 0.06823471933603287, 0.2754878103733063, 0.08928926289081573, 0.24360862374305725, -0.00982452929019928, -0.04167592152953148, 0.1870407611131668, -0.20960012078285217, 0.6758401393890381, 0.526829183101654, 0.17293274402618408, -0.129825621843338, -0.0024219751358032227, -0.08244145661592484, 0.16363130509853363, 0.312468945980072, -0.25353753566741943, -0.2880628705024719, 0.6294273138046265, 0.02068176493048668, -0.007657317444682121, -0.09836338460445404, 0.23200702667236328, 0.01145605742931366, -0.42868471145629883, -0.4927658438682556, 0.5499333143234253, -0.0244041308760643, -0.11926282197237015, 0.07446590065956116, 0.28496891260147095, -0.06730789691209793, 0.2981779873371124, -0.32917046546936035, 0.8744192719459534, -0.3761344850063324, 0.24772955477237701, 0.49418923258781433, 0.16385552287101746, 0.3687456548213959, -0.42905518412590027, 0.002009160816669464, -0.30722421407699585, -0.08684355020523071, -0.2642127573490143, -0.23344649374485016, 0.0033740010112524033, 0.21468061208724976, -0.17032593488693237, 0.37310510873794556, -0.2778313457965851, 0.03658788278698921, 0.11278235912322998, 0.29427820444107056, -0.2623976171016693, 0.10898687690496445, -0.27591371536254883, 0.0658528208732605, -0.15215575695037842, 0.45323890447616577, -0.08035565912723541, -0.20366322994232178, -0.24659909307956696, -0.11181719601154327, -0.37348201870918274, 0.36156293749809265, -0.2274354249238968, 0.04838372766971588, -0.3375919461250305, -0.2326928973197937, 0.19023339450359344, 0.2991999089717865, 0.1757863163948059, 0.24312609434127808, -0.44257715344429016, 0.05403168499469757, -0.11705929040908813, -0.4484733045101166, -0.017534824088215828, 0.05197139456868172, 0.014235304668545723, -0.16175326704978943, -0.3930717706680298, 0.22509944438934326, 0.05644799396395683, -0.3319661617279053, 0.052746519446372986, 0.2034415304660797, 0.027368007227778435, -0.30945175886154175, -0.15898844599723816, -0.23881849646568298, -0.1523640751838684, -0.0025688186287879944, 0.0034979775082319975, 0.03228381648659706, -0.11572347581386566, -0.2760402262210846, 0.28782862424850464, -0.3420053720474243, -0.03027789108455181, 0.3976966440677643, -0.16659215092658997, 0.021297767758369446, 0.44873476028442383, 0.22268599271774292, -0.1064416840672493, -0.17754429578781128, -0.3127082884311676, 0.44978421926498413, -0.3822862207889557, 0.024555198848247528, 0.19228537380695343, 0.020354554057121277, 0.011000197380781174, 0.4286687970161438, 0.12328456342220306, -0.12159314751625061, -0.049594491720199585, -0.49381357431411743, -0.06583046168088913, 0.2261015772819519, 0.09610064327716827, 0.03512563556432724, 0.42004090547561646, -0.2660645842552185, -0.07818976044654846, -0.37541133165359497, -0.15480895340442657, 0.18670979142189026, -0.16441267728805542, -0.17024105787277222, 0.34653955698013306, 0.09012998640537262, 0.26081544160842896, 0.07239509373903275, -0.014363208785653114, 0.018375437706708908, -0.2669346332550049, -0.10844394564628601, 0.16658496856689453, 0.22391349077224731, 0.08983901143074036, -0.4277157187461853, -0.18830697238445282, -0.4927856922149658, -0.12319137156009674, -0.08516708016395569, -0.057671573013067245, 0.3008137345314026, 0.19499985873699188, -0.07822651416063309, 0.20998574793338776, -0.06250180304050446, -0.17241418361663818, 0.3710969090461731, -0.2297586053609848, 0.4922678470611572, 0.018274158239364624, 0.28297722339630127, -0.04521290212869644, -0.061190709471702576, -0.5738056302070618, 0.04127674549818039, 0.4625513553619385, -0.004477372393012047, 0.3822716474533081, -0.5661243200302124, 0.2951418459415436, 0.29408952593803406, 0.3876189589500427, 0.25546228885650635, -0.38997822999954224, -0.14652779698371887, -0.07317230105400085, 0.05651083588600159, -0.1932557076215744, -0.2719004154205322, -0.2722788453102112, -0.2602846324443817, -0.2529166340827942, 0.07451456040143967, 0.47811466455459595, -0.2247752994298935, -0.0158236026763916, 0.0817854106426239, 0.6086758971214294, -0.10533222556114197, -0.07325048744678497, 0.19507738947868347, -0.1676505208015442, 0.29185986518859863, 0.051096752285957336, 0.21004760265350342, -0.09126723557710648, 0.3844943046569824, -0.24376723170280457, 0.045937784016132355, 0.26902613043785095, 0.2628936767578125, -0.18516641855239868, -0.42601117491722107, 0.08453129231929779, 0.2718960642814636, 0.09464636445045471, -0.2516467571258545, -0.04770524054765701, 0.4153019189834595, -0.03460540249943733, 0.5034033060073853, -0.421085923910141, 0.18652856349945068, 0.002494893968105316, -0.02072163298726082, 0.04607968032360077, -0.08351194858551025, 0.13428840041160583, -0.10712836682796478, -0.3124307692050934, -0.07248719036579132, 0.001184113323688507, 0.15283916890621185, 0.01776077225804329, -0.4134533703327179, 0.2113724946975708, 0.31178292632102966, -0.26239529252052307, -0.18468031287193298, 0.4432980716228485, 0.06046029180288315, 0.04332994669675827, 0.4013577401638031, 0.22927889227867126, 0.6585820913314819, 0.27270472049713135, 0.06047277897596359, 0.20906352996826172, -0.2573425769805908, -0.10186450183391571, -0.04806370660662651, 0.2307717502117157, 0.41769906878471375, 0.4261755645275116, 0.2506193518638611, 0.052477385848760605, 0.003270994871854782, -0.12544254958629608, 0.08727492392063141, 0.36404839158058167, -0.05547966808080673, 0.3864075243473053, -0.3253035843372345, 0.19241005182266235, -0.2657354474067688, 0.11234763264656067, -0.29091134667396545, 0.1711641252040863, 0.6403035521507263, 0.17111170291900635, 0.011799868196249008, -0.06708360463380814, -0.02898579090833664, -0.10871312022209167, 0.3670293688774109, 0.44269660115242004, 0.451195627450943, -0.21107566356658936, -0.14658065140247345, -0.7765665650367737, 0.2520630657672882, -0.27162420749664307, -0.028653856366872787, 0.07252024114131927, 0.12251153588294983, -0.034544751048088074, -0.03398743271827698, 0.36569637060165405, 0.14295026659965515, 0.059576600790023804, -0.046582575887441635, 0.022163569927215576, -0.2379114031791687, 0.05933992564678192, 0.4287322759628296, -0.29965299367904663, -0.35463982820510864, 0.23144972324371338, -0.28627142310142517, -0.11159869283437729, -0.05248458683490753, -0.2778865694999695, 0.011176034808158875, 0.1693139523267746, 0.5270248055458069, 0.08529716730117798, 0.6155183911323547, -0.054473876953125, -0.19684800505638123, -0.27655211091041565, -0.3120276629924774, 0.15288947522640228, 0.19405850768089294, -0.06477665901184082, -0.15625624358654022, -0.31312692165374756, 0.0414639376103878, -0.19143719971179962, 0.06037076190114021, -0.09063167870044708, 0.01985359564423561, -0.26396864652633667, -0.20182561874389648, -0.01982036978006363, 0.12372393906116486, -0.0013777799904346466, -0.11820384114980698, 0.14848625659942627, 0.18662258982658386, -0.01260744035243988, -0.14085692167282104, 0.8256672024726868, -0.24926745891571045, -0.3125164806842804, 0.15107101202011108, 0.10934196412563324, 0.29878175258636475, -0.06271282583475113, -0.24998873472213745, 0.14580075442790985, 0.2335606962442398, 0.11917218565940857, -0.41170716285705566, -0.08337700366973877, -0.30104005336761475, 0.07239004969596863, -0.07081851363182068, 0.33546629548072815, 0.07894060015678406, -0.32110509276390076, -0.16327698528766632, -0.0626680850982666 ]
https://github.com/huggingface/datasets/issues/5627
The AutoTrain format is not supported right now. I think it would require a dedicated dataset builder
Unable to load AutoTrain-generated dataset from the hub
### Describe the bug DatasetGenerationError: An error occurred while generating the dataset -> ValueError: Couldn't cast ... because column names don't match ``` ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: list<item: string> child 0, item: string _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: null to {'citation': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'features': {'image': {'_type': Value(dtype='string', id=None)}, 'target': {'names': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'splits': {'train': {'name': Value(dtype='string', id=None), 'num_bytes': Value(dtype='int64', id=None), 'num_examples': Value(dtype='int64', id=None), 'dataset_name': Value(dtype='null', id=None)}}} because column names don't match ``` ### Steps to reproduce the bug Steps to reproduce: 1. `pip install datasets==2.10.1` 2. Attempt to load (private dataset). Note that I'm authenticated via ` huggingface-cli login` ``` from datasets import load_dataset # load dataset dataset = "ijmiller2/autotrain-data-betterbin-vision-10000" dataset = load_dataset(dataset) ``` Here's the full traceback: ```Downloading and preparing dataset json/ijmiller2--autotrain-data-betterbin-vision-10000 to /Users/ian/.cache/huggingface/datasets/ijmiller2___json/ijmiller2--autotrain-data-betterbin-vision-10000-2eae034a9ff8a1a9/0.0.0/0f7e3662623656454fcd2b650f34e886a7db4b9104504885bd462096cc7a9f51... Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:00<00:00, 2383.80it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:00<00:00, 505.95it/s] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1874, in ArrowBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1868 writer = writer_class( 1869 features=writer._features, 1870 path=fpath.replace("SSSSS", f"{shard_id:05d}").replace("JJJJJ", f"{job_id:05d}"), 1871 storage_options=self._fs.storage_options, 1872 embed_local_files=embed_local_files, 1873 ) -> 1874 writer.write_table(table) 1875 num_examples_progress_update += len(table) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/arrow_writer.py:568, in ArrowWriter.write_table(self, pa_table, writer_batch_size) 567 pa_table = pa_table.combine_chunks() --> 568 pa_table = table_cast(pa_table, self._schema) 569 if self.embed_local_files: File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/table.py:2312, in table_cast(table, schema) 2311 if table.schema != schema: -> 2312 return cast_table_to_schema(table, schema) 2313 elif table.schema.metadata != schema.metadata: File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/table.py:2270, in cast_table_to_schema(table, schema) 2269 if sorted(table.column_names) != sorted(features): -> 2270 raise ValueError(f"Couldn't cast\n{table.schema}\nto\n{features}\nbecause column names don't match") 2271 arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: list<item: string> child 0, item: string _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: null to {'citation': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'features': {'image': {'_type': Value(dtype='string', id=None)}, 'target': {'names': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'splits': {'train': {'name': Value(dtype='string', id=None), 'num_bytes': Value(dtype='int64', id=None), 'num_examples': Value(dtype='int64', id=None), 'dataset_name': Value(dtype='null', id=None)}}} because column names don't match The above exception was the direct cause of the following exception: DatasetGenerationError Traceback (most recent call last) Input In [8], in <cell line: 6>() 4 # load dataset 5 dataset = "ijmiller2/autotrain-data-betterbin-vision-10000" ----> 6 dataset = load_dataset(dataset) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/load.py:1782, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, num_proc, **config_kwargs) 1779 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES 1781 # Download and prepare data -> 1782 builder_instance.download_and_prepare( 1783 download_config=download_config, 1784 download_mode=download_mode, 1785 verification_mode=verification_mode, 1786 try_from_hf_gcs=try_from_hf_gcs, 1787 num_proc=num_proc, 1788 ) 1790 # Build dataset for splits 1791 keep_in_memory = ( 1792 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size) 1793 ) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:872, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs) 870 if num_proc is not None: 871 prepare_split_kwargs["num_proc"] = num_proc --> 872 self._download_and_prepare( 873 dl_manager=dl_manager, 874 verification_mode=verification_mode, 875 **prepare_split_kwargs, 876 **download_and_prepare_kwargs, 877 ) 878 # Sync info 879 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values()) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:967, in DatasetBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs) 963 split_dict.add(split_generator.split_info) 965 try: 966 # Prepare split will record examples associated to the split --> 967 self._prepare_split(split_generator, **prepare_split_kwargs) 968 except OSError as e: 969 raise OSError( 970 "Cannot find data file. " 971 + (self.manual_download_instructions or "") 972 + "\nOriginal error:\n" 973 + str(e) 974 ) from None File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1749, in ArrowBasedBuilder._prepare_split(self, split_generator, file_format, num_proc, max_shard_size) 1747 job_id = 0 1748 with pbar: -> 1749 for job_id, done, content in self._prepare_split_single( 1750 gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args 1751 ): 1752 if done: 1753 result = content File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1892, in ArrowBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1890 if isinstance(e, SchemaInferenceError) and e.__context__ is not None: 1891 e = e.__context__ -> 1892 raise DatasetGenerationError("An error occurred while generating the dataset") from e 1894 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths) DatasetGenerationError: An error occurred while generating the dataset ``` ### Expected behavior I'm ultimately trying to generate my own performance metrics on validation data (before putting an endpoint into production) and so was hoping to load all or at least the validation subset from the hub. I'm expecting the `load_dataset()` function to work as shown in the documentation [here](https://huggingface.co/docs/datasets/loading#hugging-face-hub): ```python dataset = load_dataset( "lhoestq/custom_squad", revision="main" # tag name, or branch name, or commit hash ) ``` ### Environment info - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.8.13 - PyArrow version: 9.0.0 - Pandas version: 1.4.4
17
Unable to load AutoTrain-generated dataset from the hub ### Describe the bug DatasetGenerationError: An error occurred while generating the dataset -> ValueError: Couldn't cast ... because column names don't match ``` ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: list<item: string> child 0, item: string _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: null to {'citation': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'features': {'image': {'_type': Value(dtype='string', id=None)}, 'target': {'names': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'splits': {'train': {'name': Value(dtype='string', id=None), 'num_bytes': Value(dtype='int64', id=None), 'num_examples': Value(dtype='int64', id=None), 'dataset_name': Value(dtype='null', id=None)}}} because column names don't match ``` ### Steps to reproduce the bug Steps to reproduce: 1. `pip install datasets==2.10.1` 2. Attempt to load (private dataset). Note that I'm authenticated via ` huggingface-cli login` ``` from datasets import load_dataset # load dataset dataset = "ijmiller2/autotrain-data-betterbin-vision-10000" dataset = load_dataset(dataset) ``` Here's the full traceback: ```Downloading and preparing dataset json/ijmiller2--autotrain-data-betterbin-vision-10000 to /Users/ian/.cache/huggingface/datasets/ijmiller2___json/ijmiller2--autotrain-data-betterbin-vision-10000-2eae034a9ff8a1a9/0.0.0/0f7e3662623656454fcd2b650f34e886a7db4b9104504885bd462096cc7a9f51... Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:00<00:00, 2383.80it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:00<00:00, 505.95it/s] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1874, in ArrowBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1868 writer = writer_class( 1869 features=writer._features, 1870 path=fpath.replace("SSSSS", f"{shard_id:05d}").replace("JJJJJ", f"{job_id:05d}"), 1871 storage_options=self._fs.storage_options, 1872 embed_local_files=embed_local_files, 1873 ) -> 1874 writer.write_table(table) 1875 num_examples_progress_update += len(table) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/arrow_writer.py:568, in ArrowWriter.write_table(self, pa_table, writer_batch_size) 567 pa_table = pa_table.combine_chunks() --> 568 pa_table = table_cast(pa_table, self._schema) 569 if self.embed_local_files: File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/table.py:2312, in table_cast(table, schema) 2311 if table.schema != schema: -> 2312 return cast_table_to_schema(table, schema) 2313 elif table.schema.metadata != schema.metadata: File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/table.py:2270, in cast_table_to_schema(table, schema) 2269 if sorted(table.column_names) != sorted(features): -> 2270 raise ValueError(f"Couldn't cast\n{table.schema}\nto\n{features}\nbecause column names don't match") 2271 arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: list<item: string> child 0, item: string _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: null to {'citation': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'features': {'image': {'_type': Value(dtype='string', id=None)}, 'target': {'names': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'splits': {'train': {'name': Value(dtype='string', id=None), 'num_bytes': Value(dtype='int64', id=None), 'num_examples': Value(dtype='int64', id=None), 'dataset_name': Value(dtype='null', id=None)}}} because column names don't match The above exception was the direct cause of the following exception: DatasetGenerationError Traceback (most recent call last) Input In [8], in <cell line: 6>() 4 # load dataset 5 dataset = "ijmiller2/autotrain-data-betterbin-vision-10000" ----> 6 dataset = load_dataset(dataset) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/load.py:1782, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, num_proc, **config_kwargs) 1779 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES 1781 # Download and prepare data -> 1782 builder_instance.download_and_prepare( 1783 download_config=download_config, 1784 download_mode=download_mode, 1785 verification_mode=verification_mode, 1786 try_from_hf_gcs=try_from_hf_gcs, 1787 num_proc=num_proc, 1788 ) 1790 # Build dataset for splits 1791 keep_in_memory = ( 1792 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size) 1793 ) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:872, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs) 870 if num_proc is not None: 871 prepare_split_kwargs["num_proc"] = num_proc --> 872 self._download_and_prepare( 873 dl_manager=dl_manager, 874 verification_mode=verification_mode, 875 **prepare_split_kwargs, 876 **download_and_prepare_kwargs, 877 ) 878 # Sync info 879 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values()) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:967, in DatasetBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs) 963 split_dict.add(split_generator.split_info) 965 try: 966 # Prepare split will record examples associated to the split --> 967 self._prepare_split(split_generator, **prepare_split_kwargs) 968 except OSError as e: 969 raise OSError( 970 "Cannot find data file. " 971 + (self.manual_download_instructions or "") 972 + "\nOriginal error:\n" 973 + str(e) 974 ) from None File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1749, in ArrowBasedBuilder._prepare_split(self, split_generator, file_format, num_proc, max_shard_size) 1747 job_id = 0 1748 with pbar: -> 1749 for job_id, done, content in self._prepare_split_single( 1750 gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args 1751 ): 1752 if done: 1753 result = content File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1892, in ArrowBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1890 if isinstance(e, SchemaInferenceError) and e.__context__ is not None: 1891 e = e.__context__ -> 1892 raise DatasetGenerationError("An error occurred while generating the dataset") from e 1894 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths) DatasetGenerationError: An error occurred while generating the dataset ``` ### Expected behavior I'm ultimately trying to generate my own performance metrics on validation data (before putting an endpoint into production) and so was hoping to load all or at least the validation subset from the hub. I'm expecting the `load_dataset()` function to work as shown in the documentation [here](https://huggingface.co/docs/datasets/loading#hugging-face-hub): ```python dataset = load_dataset( "lhoestq/custom_squad", revision="main" # tag name, or branch name, or commit hash ) ``` ### Environment info - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.8.13 - PyArrow version: 9.0.0 - Pandas version: 1.4.4 The AutoTrain format is not supported right now. I think it would require a dedicated dataset builder
[ -0.5055118799209595, -0.3172404170036316, -0.019252877682447433, 0.6263453364372253, 0.5027536153793335, 0.19592103362083435, 0.47843173146247864, 0.2786698639392853, 0.25286537408828735, 0.11251406371593475, -0.2149442732334137, 0.5865493416786194, -0.054208315908908844, 0.222990483045578, 0.0526353158056736, -0.25824567675590515, 0.04918989539146423, 0.07034245878458023, -0.16748788952827454, -0.10816536098718643, -0.15900979936122894, 0.2674699127674103, -0.16813242435455322, 0.1725539267063141, -0.40149474143981934, 0.02283470146358013, 0.219598650932312, 0.20895227789878845, -0.2505643963813782, -0.339811772108078, 0.3427230417728424, -0.03379752114415169, 0.30428457260131836, 0.42236414551734924, -0.0001194000942632556, 0.16235408186912537, 0.33726173639297485, 0.007510073482990265, -0.10202647745609283, -0.36964845657348633, -0.3211003243923187, 0.02867942303419113, 0.15198925137519836, -0.16173230111598969, -0.23523850739002228, 0.09324079751968384, -0.11620959639549255, -0.21342694759368896, 0.4337918162345886, 0.3437400162220001, 0.14358851313591003, 0.4806644916534424, 0.12406681478023529, -0.2127944678068161, -0.04562488943338394, 0.03622925654053688, -0.2881825566291809, 0.21230942010879517, 0.04389152303338051, 0.08715236932039261, 0.016264183446764946, 0.12113141268491745, 0.05733950436115265, 0.10102573037147522, 0.3872007131576538, 0.015507899224758148, -0.028134405612945557, -0.403595894575119, 0.01533723995089531, 0.42475131154060364, 0.45395538210868835, -0.3422587513923645, -0.38790303468704224, -0.08351472020149231, 0.18649621307849884, -0.1492784023284912, 0.27750229835510254, 0.15874892473220825, -0.057599183171987534, 0.19528813660144806, -0.30291712284088135, -0.030020631849765778, -0.26061517000198364, -0.14277338981628418, -0.04589606076478958, 0.06148926913738251, -0.025141937658190727, 0.028062455356121063, 0.03053964301943779, -0.06846646219491959, 0.30012422800064087, 0.06502004712820053, 0.00036702887155115604, 0.3159814178943634, -0.2961364984512329, -0.0677592009305954, -0.10245337337255478, 0.16328686475753784, 0.05098514258861542, 0.2144712656736374, 0.012964434921741486, 0.026233278214931488, -0.07039592415094376, 0.1157853752374649, 0.05472983419895172, 0.206033393740654, -0.03466039523482323, 0.27574804425239563, 0.1969333291053772, 0.23333995044231415, -0.20259757339954376, 0.03575265407562256, -0.41337963938713074, 0.023608703166246414, -0.13277605175971985, 0.06891028583049774, 0.07351518422365189, -0.10732834786176682, -0.4884960353374481, 0.20170436799526215, 0.07819035649299622, 0.05406639352440834, 0.29353904724121094, 0.35273659229278564, -0.16332781314849854, 0.06451070308685303, 0.01198112964630127, 0.3534562587738037, -0.20868539810180664, 0.09795647859573364, -0.225458562374115, 0.09419739991426468, -0.06788685917854309, -0.09761044383049011, 0.15332087874412537, -0.18201982975006104, 0.23339487612247467, 0.15507829189300537, -0.10957202315330505, -0.2779642343521118, -0.17888353765010834, -0.0536193810403347, -0.25577759742736816, 0.3190268278121948, 0.0860348492860794, 0.07564183324575424, 0.12255894392728806, -0.1553800404071808, -0.0948222279548645, 0.0757434070110321, -0.4945153295993805, -0.31753110885620117, -0.19360679388046265, 0.15545979142189026, -0.3708725571632385, -0.029862865805625916, -0.40687131881713867, -0.12855379283428192, 0.2513662278652191, -0.050321150571107864, -0.22171418368816376, -0.19329196214675903, 0.129089817404747, -0.03259420767426491, 0.3570004105567932, 0.2451568990945816, -0.26447340846061707, -0.18375834822654724, -0.10441957414150238, -0.16613739728927612, 0.14363370835781097, 0.21630096435546875, -0.04703260213136673, 0.55420982837677, -0.176491379737854, 0.1830051839351654, 0.37989547848701477, -0.44962480664253235, -0.24371108412742615, -0.09736169129610062, -0.11997770518064499, 0.023062102496623993, 0.14307396113872528, -0.07638274133205414, 0.28791335225105286, 0.08656532317399979, 0.18840374052524567, 0.34972208738327026, 0.08157656341791153, 0.014775149524211884, -0.11525249481201172, -0.3978223502635956, -0.20087701082229614, 0.2862715423107147, 0.21370291709899902, 0.06872487813234329, -0.04204718396067619, 0.3566952645778656, 0.23384293913841248, -0.10544750094413757, 0.019230499863624573, 0.12557460367679596, 0.1723342090845108, 0.05094609409570694, 0.04816334322094917, -0.25275373458862305, -0.2966901957988739, 0.24659618735313416, -0.0191841721534729, 0.23388132452964783, -0.22796238958835602, 0.02530282735824585, -0.4348360300064087, -0.003153666853904724, -0.4316824674606323, 0.07441046833992004, 0.08920352160930634, -0.10301125049591064, -0.0700644999742508, -0.05775494500994682, -0.2655101418495178, 0.5265859365463257, -0.31262871623039246, 0.30027005076408386, -0.5972340703010559, 0.45037907361984253, 0.03267056494951248, -0.11210621893405914, -0.04774053022265434, 0.3928437829017639, 0.029307713732123375, -0.20149095356464386, -0.11282984912395477, 0.21000634133815765, 0.12901799380779266, 0.30858325958251953, -0.21285653114318848, -0.11282023787498474, 0.2180766463279724, -0.4116051197052002, -0.02890179306268692, -0.07559617608785629, 0.15220767259597778, -0.013367034494876862, -0.2063577026128769, 0.2426736056804657, -0.32119232416152954, 0.17522290349006653, -0.032983697950839996, 0.14149335026741028, 0.24636316299438477, -0.0464828684926033, -0.040913887321949005, -0.23759430646896362, 0.08994962275028229, -0.019841356202960014, 0.3851562738418579, 0.013569088652729988, -0.06726028025150299, -0.13919532299041748, 0.38711464405059814, 0.07402682304382324, -0.06523141264915466, 0.018473457545042038, -0.1998559832572937, 0.15945053100585938, 0.09001442044973373, 0.3083052635192871, 0.2832522392272949, 0.046984460204839706, -0.04259665682911873, 0.05618242174386978, -0.22178968787193298, -0.10168087482452393, 0.09442288428544998, 0.10617168992757797, 0.04932991415262222, 0.36174964904785156, -0.06509914994239807, 0.1122937947511673, -0.41761544346809387, -0.12670782208442688, 0.17292511463165283, 0.405720591545105, -0.5377872586250305, -0.1763487458229065, -0.14416521787643433, 0.30067723989486694, -0.07909579575061798, -0.26006048917770386, -0.09434326738119125, -0.1611526608467102, -0.014527221210300922, 0.39195960760116577, 0.05451267957687378, 0.2620273232460022, 0.0019079223275184631, 0.0365491658449173, 0.016194283962249756, -0.23664245009422302, -0.232312873005867, -0.009742211550474167, 0.07453890144824982, 0.04575394466519356, 0.22172811627388, 0.12694142758846283, 0.17946474254131317, -0.39336609840393066, 0.11406463384628296, -0.16921493411064148, -0.04135167598724365, 0.17346304655075073, -0.3539281487464905, 0.47000497579574585, 0.14980900287628174, 0.2667223811149597, 0.01583787053823471, -0.39189231395721436, 0.34469109773635864, -0.003669358789920807, -0.23019559681415558, 0.07061143964529037, -0.061956990510225296, -0.2453899085521698, -0.011195674538612366, -0.28244149684906006, -0.2717868685722351, -0.3293367028236389, 0.014035753905773163, -0.030151505023241043, 0.07409703731536865, 0.2065601646900177, 0.03371194005012512, 0.08181169629096985, 0.13876231014728546, 0.06213429570198059, -0.1023283451795578, -0.28016552329063416, 0.2763698101043701, -0.255492627620697, -0.14454081654548645, -0.0929718017578125, 0.08884470164775848, 0.46579718589782715, -0.0655587762594223, -0.4324806332588196, -0.359066367149353, -0.21286453306674957, 0.1411406695842743, -0.12160235643386841, 0.09882993251085281, 0.3468119502067566, 0.15139423310756683, 0.1466364860534668, -0.1460970789194107, -0.020375534892082214, 0.1287129521369934, 0.24973666667938232, 0.11908118426799774, -0.10266461968421936, 0.2390250712633133, -0.33682286739349365, 0.5051969885826111, 0.5528966188430786, 0.04923751950263977, 0.2963952124118805, -0.2634010314941406, 0.2058180868625641, -0.26104655861854553, -0.4175507128238678, -0.06767942756414413, 0.10433229058980942, -0.09131260216236115, 0.19212205708026886, 0.032828886061906815, 0.056393228471279144, -0.013361863791942596, 0.041858889162540436, -0.07394248992204666, -0.21905294060707092, -0.12384230643510818, -0.1965024620294571, 0.06452684104442596, 0.049653999507427216, 0.36628732085227966, -0.20799577236175537, -0.18717169761657715, 0.18776066601276398, 0.19303452968597412, 0.056758757680654526, 0.00959085300564766, -0.4072285294532776, -0.38993510603904724, -0.23467466235160828, 0.02606659010052681, 0.05752411112189293, 0.2858075499534607, -0.12108724564313889, 0.07115055620670319, 0.21444794535636902, -0.05685192719101906, 0.4645305573940277, -0.33192551136016846, 0.2304016649723053, 0.20262061059474945, 0.24374078214168549, -0.40372714400291443, -0.048333413898944855, -0.1284036934375763, -0.04061407595872879, -0.07398633658885956, 0.502199113368988, -0.300686776638031, -0.3849215507507324, 0.41627615690231323, 0.23661622405052185, -0.09382008761167526, -0.07495564222335815, -0.20217499136924744, -0.3738602101802826, -0.1941787600517273, 0.10563366115093231, 0.14826059341430664, 0.5531604290008545, -0.16888253390789032, -0.046626560389995575, -0.1612277328968048, 0.036650970578193665, 0.2782754898071289, 0.39217182993888855, 0.4861319959163666, -0.04647359251976013, 0.3935677409172058, 0.22422027587890625, -0.2550145983695984, 0.08171828836202621, 0.7830994129180908, -0.323314905166626, -0.3906547725200653, 0.03546816110610962, -0.16878092288970947, 0.055190011858940125, 0.2636999785900116, -0.19142164289951324, -0.09378115087747574, -0.1024164929986, 0.15474918484687805, -0.3075172007083893, 0.22322390973567963, 0.1889771819114685, 0.09099426120519638, -0.3493080139160156, -0.3745844066143036, 0.4444320499897003, 0.1280220001935959, -0.061146579682826996, 0.27459651231765747, 0.49145227670669556, -0.4162178933620453, 0.49137642979621887, -0.02115597575902939, 0.7962899208068848, 0.02363499253988266, 0.007521319203078747, 0.3110811114311218, 0.14080864191055298, 0.18728837370872498, -0.1491345465183258, 0.0037042833864688873, -0.559355616569519, -0.12275514006614685, -0.08265972882509232, 0.03626316785812378, 0.1917409598827362, 0.0038750392850488424, -0.0529523640871048, 0.0628395602107048, 0.12550009787082672, 0.3907776176929474, -0.22721382975578308, 0.16445781290531158, -0.2252027541399002, -0.4257469177246094, -0.12740594148635864, 0.08682683110237122, -0.07657681405544281, 0.2776454985141754, 0.07290992140769958, 0.01983465626835823, -0.2382589876651764, -0.20975223183631897, -0.43195390701293945, 0.12750941514968872, -0.10207006335258484, 0.1630811244249344, 0.18343180418014526, -0.48938941955566406, 0.2431689202785492, 0.4712215065956116, 0.6119165420532227, 0.14992092549800873, -0.4111855924129486, 0.34907418489456177, -0.1010434553027153, 0.039724454283714294, 0.08345067501068115, 0.06117416173219681, 0.25325581431388855, -0.07110116630792618, -0.1637122929096222, -0.28722554445266724, -0.1219254806637764, -0.05806687846779823, 0.1383907049894333, -0.04889505356550217, 0.17426924407482147, -0.5390150547027588, -0.12558767199516296, -0.05658330023288727, 0.13566553592681885, -0.2585102319717407, 0.11221423000097275, -0.052430201321840286, -0.19921042025089264, 0.4813729226589203, 0.12018480896949768, -0.351520836353302, 0.023433126509189606, 0.4158019721508026, 0.0338311642408371, 0.03181084990501404, 0.47421640157699585, 0.12469480186700821, -0.11540177464485168, -0.23104268312454224, 0.3058475852012634, 0.29213279485702515, -0.7915031313896179, -0.018535012379288673, 0.07225706428289413, -0.2811235785484314, 0.1284230649471283, 0.37792253494262695, 0.15007784962654114, -0.14615294337272644, -0.08095724880695343, -0.38415858149528503, -0.39797788858413696, 0.32373592257499695, -0.02320769615471363, 0.23844347894191742, -0.01970328390598297, 0.13026422262191772, -0.07840530574321747, -0.17364653944969177, -0.2649390399456024, 0.17338012158870697, -0.40197068452835083, 0.15618422627449036, -0.1629176139831543, -0.15249821543693542, 0.07221733033657074, -0.3340136408805847, 0.15835531055927277, -0.005352203734219074, -0.277898371219635, -0.13867613673210144, -0.2604602575302124, 0.10273852944374084, 0.04502842202782631, 0.04625380039215088, -0.17319585382938385, -0.10959754139184952, -0.337181955575943, -0.2976146638393402, 0.3668568432331085, 0.21771642565727234, 0.07799230515956879, 0.07009464502334595, 0.35376986861228943, 0.13729506731033325, -0.21914343535900116, 0.11117660254240036, 0.02929340861737728, 0.2702045440673828, -0.09039761126041412, 0.01821635663509369, -0.08275555074214935, 0.0732942745089531, 0.06566178053617477, 0.20774619281291962, 0.34893012046813965, 0.10507269203662872, 0.35034725069999695, -0.3267640769481659, 0.14488530158996582, 0.11551789939403534, 0.3214690685272217, 0.42737627029418945, -0.25975117087364197, -0.012010466307401657, 0.20462174713611603, 0.18532487750053406, -0.24905310571193695, -0.19103598594665527, 0.13694557547569275, -0.07095140218734741, -0.017110660672187805, 0.24584011733531952, 0.26058724522590637, 0.011854246258735657, -0.14554034173488617, 0.13494279980659485, 0.9337088465690613, -0.11927418410778046, 0.26464134454727173, 0.5453901290893555, -0.1133442148566246, 0.2491607666015625, 0.21262799203395844, 0.13368594646453857, -0.129948228597641, 0.6077188849449158, -0.22936196625232697, -0.0005668029189109802, 0.0006175953894853592, 0.25748932361602783, 0.16832973062992096, -0.28190839290618896, -0.23463290929794312, -0.20343007147312164, -0.15405218303203583, -0.04223712533712387, -0.16665486991405487, 0.25859278440475464, -0.3996252715587616, -0.18425853550434113, -0.5603457093238831, -0.024188701063394547, -0.23580560088157654, -0.1694527566432953, -0.22521671652793884, -0.15893088281154633, 0.028705909848213196, -0.04079761356115341, -0.17041954398155212, -0.03722025081515312, 0.08733957260847092, 0.008124420419335365, -0.025375083088874817, -0.16859644651412964, -0.17423295974731445, 0.26864391565322876, 0.09837882220745087, -0.305059552192688, 0.5096277594566345, 0.024738745763897896, -0.041794873774051666, -0.02289595454931259, 0.4200875759124756, 0.3603614270687103, 0.1623157113790512, -0.07555504888296127, -0.09020161628723145, -0.017955951392650604, -0.07608533650636673, -0.010234944522380829, 0.36008507013320923, 0.05482146888971329, 0.16382832825183868, 0.1879677176475525, 0.16523586213588715, -0.1407749205827713, -0.0615343414247036, -0.0706939548254013, 0.195921391248703, -0.0047151632606983185, 0.7019514441490173, -0.20929789543151855, -0.18986448645591736, -0.037845611572265625, -0.1351526975631714, -0.4094676971435547, 0.07082009315490723, 0.402959942817688, -0.008520778268575668, 0.11573554575443268, -0.06865431368350983, 0.04459201917052269, -0.06582622230052948, 0.5056037902832031, 0.284554123878479, -0.10042396187782288, -0.34052371978759766, -0.12883485853672028, -0.5272035598754883, 0.07289697974920273, -0.026194728910923004, -0.05041276663541794, 0.07772485911846161, 0.018152594566345215, -0.06985233724117279, -0.03013027273118496, 0.09608728438615799, -0.0026853233575820923, -0.031737297773361206, 0.26028379797935486, -0.3451891839504242, -0.025796104222536087, 0.029617972671985626, 0.08617329597473145, -0.21830692887306213, -0.3976801037788391, 0.31457945704460144, 0.0585082545876503, -0.11682221293449402, 0.15287554264068604, 0.10711067169904709, 0.13721874356269836, -0.3941119611263275, 0.2978271543979645, -0.117977075278759, 0.4921431243419647, -0.05573823302984238, 0.11703568696975708, -0.4144192636013031, -0.46254831552505493, -0.29965195059776306, 0.21467290818691254, 0.01869097352027893, 0.5098685026168823, -0.018615007400512695, -0.08315106481313705, -0.2522507309913635, -0.1400028020143509, 0.10540933161973953, 0.1688506007194519, -0.4595487117767334, 0.32020220160484314, -0.17971158027648926, 0.10925667732954025, 0.08162865042686462, 0.15400326251983643, 0.0681069940328598, 0.2816484570503235, -0.16098132729530334, -0.600354790687561, 0.6589678525924683, -0.21654321253299713, -0.4832482933998108, 0.0009844228625297546, 0.14725005626678467, 0.1554262936115265, -0.24470168352127075, -0.612797200679779, 0.11814887821674347, 0.14010271430015564, -0.2922751307487488, -0.24630741775035858, 0.255370169878006, 0.09642133116722107, 0.040142789483070374, -0.10433231294155121, 0.10771618038415909, 0.06030408293008804, -0.14315912127494812, 0.2465348243713379, -0.12318812310695648 ]
https://github.com/huggingface/datasets/issues/5627
Okay, good to know. Thanks for the reply. For now I will just have to manage the split manually before training, because I can’t find any way of pulling out file indices or file names from the autogenerated split. The file names field of the image dataset (loaded directly from arrow file) is missing, just fyi (for anyone else this might be relevant too). On Fri, Mar 10, 2023 at 7:02 PM Quentin Lhoest ***@***.***> wrote: > The AutoTrain format is not supported right now. I think it would require > a dedicated dataset builder > > β€” > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/5627#issuecomment-1464734308>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ACBJ4F5A353MCZ76OGRJ6CTW3PFI7ANCNFSM6AAAAAAVWXNUTE> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Unable to load AutoTrain-generated dataset from the hub
### Describe the bug DatasetGenerationError: An error occurred while generating the dataset -> ValueError: Couldn't cast ... because column names don't match ``` ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: list<item: string> child 0, item: string _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: null to {'citation': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'features': {'image': {'_type': Value(dtype='string', id=None)}, 'target': {'names': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'splits': {'train': {'name': Value(dtype='string', id=None), 'num_bytes': Value(dtype='int64', id=None), 'num_examples': Value(dtype='int64', id=None), 'dataset_name': Value(dtype='null', id=None)}}} because column names don't match ``` ### Steps to reproduce the bug Steps to reproduce: 1. `pip install datasets==2.10.1` 2. Attempt to load (private dataset). Note that I'm authenticated via ` huggingface-cli login` ``` from datasets import load_dataset # load dataset dataset = "ijmiller2/autotrain-data-betterbin-vision-10000" dataset = load_dataset(dataset) ``` Here's the full traceback: ```Downloading and preparing dataset json/ijmiller2--autotrain-data-betterbin-vision-10000 to /Users/ian/.cache/huggingface/datasets/ijmiller2___json/ijmiller2--autotrain-data-betterbin-vision-10000-2eae034a9ff8a1a9/0.0.0/0f7e3662623656454fcd2b650f34e886a7db4b9104504885bd462096cc7a9f51... Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:00<00:00, 2383.80it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:00<00:00, 505.95it/s] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1874, in ArrowBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1868 writer = writer_class( 1869 features=writer._features, 1870 path=fpath.replace("SSSSS", f"{shard_id:05d}").replace("JJJJJ", f"{job_id:05d}"), 1871 storage_options=self._fs.storage_options, 1872 embed_local_files=embed_local_files, 1873 ) -> 1874 writer.write_table(table) 1875 num_examples_progress_update += len(table) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/arrow_writer.py:568, in ArrowWriter.write_table(self, pa_table, writer_batch_size) 567 pa_table = pa_table.combine_chunks() --> 568 pa_table = table_cast(pa_table, self._schema) 569 if self.embed_local_files: File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/table.py:2312, in table_cast(table, schema) 2311 if table.schema != schema: -> 2312 return cast_table_to_schema(table, schema) 2313 elif table.schema.metadata != schema.metadata: File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/table.py:2270, in cast_table_to_schema(table, schema) 2269 if sorted(table.column_names) != sorted(features): -> 2270 raise ValueError(f"Couldn't cast\n{table.schema}\nto\n{features}\nbecause column names don't match") 2271 arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: list<item: string> child 0, item: string _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: null to {'citation': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'features': {'image': {'_type': Value(dtype='string', id=None)}, 'target': {'names': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'splits': {'train': {'name': Value(dtype='string', id=None), 'num_bytes': Value(dtype='int64', id=None), 'num_examples': Value(dtype='int64', id=None), 'dataset_name': Value(dtype='null', id=None)}}} because column names don't match The above exception was the direct cause of the following exception: DatasetGenerationError Traceback (most recent call last) Input In [8], in <cell line: 6>() 4 # load dataset 5 dataset = "ijmiller2/autotrain-data-betterbin-vision-10000" ----> 6 dataset = load_dataset(dataset) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/load.py:1782, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, num_proc, **config_kwargs) 1779 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES 1781 # Download and prepare data -> 1782 builder_instance.download_and_prepare( 1783 download_config=download_config, 1784 download_mode=download_mode, 1785 verification_mode=verification_mode, 1786 try_from_hf_gcs=try_from_hf_gcs, 1787 num_proc=num_proc, 1788 ) 1790 # Build dataset for splits 1791 keep_in_memory = ( 1792 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size) 1793 ) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:872, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs) 870 if num_proc is not None: 871 prepare_split_kwargs["num_proc"] = num_proc --> 872 self._download_and_prepare( 873 dl_manager=dl_manager, 874 verification_mode=verification_mode, 875 **prepare_split_kwargs, 876 **download_and_prepare_kwargs, 877 ) 878 # Sync info 879 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values()) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:967, in DatasetBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs) 963 split_dict.add(split_generator.split_info) 965 try: 966 # Prepare split will record examples associated to the split --> 967 self._prepare_split(split_generator, **prepare_split_kwargs) 968 except OSError as e: 969 raise OSError( 970 "Cannot find data file. " 971 + (self.manual_download_instructions or "") 972 + "\nOriginal error:\n" 973 + str(e) 974 ) from None File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1749, in ArrowBasedBuilder._prepare_split(self, split_generator, file_format, num_proc, max_shard_size) 1747 job_id = 0 1748 with pbar: -> 1749 for job_id, done, content in self._prepare_split_single( 1750 gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args 1751 ): 1752 if done: 1753 result = content File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1892, in ArrowBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1890 if isinstance(e, SchemaInferenceError) and e.__context__ is not None: 1891 e = e.__context__ -> 1892 raise DatasetGenerationError("An error occurred while generating the dataset") from e 1894 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths) DatasetGenerationError: An error occurred while generating the dataset ``` ### Expected behavior I'm ultimately trying to generate my own performance metrics on validation data (before putting an endpoint into production) and so was hoping to load all or at least the validation subset from the hub. I'm expecting the `load_dataset()` function to work as shown in the documentation [here](https://huggingface.co/docs/datasets/loading#hugging-face-hub): ```python dataset = load_dataset( "lhoestq/custom_squad", revision="main" # tag name, or branch name, or commit hash ) ``` ### Environment info - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.8.13 - PyArrow version: 9.0.0 - Pandas version: 1.4.4
131
Unable to load AutoTrain-generated dataset from the hub ### Describe the bug DatasetGenerationError: An error occurred while generating the dataset -> ValueError: Couldn't cast ... because column names don't match ``` ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: list<item: string> child 0, item: string _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: null to {'citation': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'features': {'image': {'_type': Value(dtype='string', id=None)}, 'target': {'names': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'splits': {'train': {'name': Value(dtype='string', id=None), 'num_bytes': Value(dtype='int64', id=None), 'num_examples': Value(dtype='int64', id=None), 'dataset_name': Value(dtype='null', id=None)}}} because column names don't match ``` ### Steps to reproduce the bug Steps to reproduce: 1. `pip install datasets==2.10.1` 2. Attempt to load (private dataset). Note that I'm authenticated via ` huggingface-cli login` ``` from datasets import load_dataset # load dataset dataset = "ijmiller2/autotrain-data-betterbin-vision-10000" dataset = load_dataset(dataset) ``` Here's the full traceback: ```Downloading and preparing dataset json/ijmiller2--autotrain-data-betterbin-vision-10000 to /Users/ian/.cache/huggingface/datasets/ijmiller2___json/ijmiller2--autotrain-data-betterbin-vision-10000-2eae034a9ff8a1a9/0.0.0/0f7e3662623656454fcd2b650f34e886a7db4b9104504885bd462096cc7a9f51... Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:00<00:00, 2383.80it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:00<00:00, 505.95it/s] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1874, in ArrowBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1868 writer = writer_class( 1869 features=writer._features, 1870 path=fpath.replace("SSSSS", f"{shard_id:05d}").replace("JJJJJ", f"{job_id:05d}"), 1871 storage_options=self._fs.storage_options, 1872 embed_local_files=embed_local_files, 1873 ) -> 1874 writer.write_table(table) 1875 num_examples_progress_update += len(table) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/arrow_writer.py:568, in ArrowWriter.write_table(self, pa_table, writer_batch_size) 567 pa_table = pa_table.combine_chunks() --> 568 pa_table = table_cast(pa_table, self._schema) 569 if self.embed_local_files: File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/table.py:2312, in table_cast(table, schema) 2311 if table.schema != schema: -> 2312 return cast_table_to_schema(table, schema) 2313 elif table.schema.metadata != schema.metadata: File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/table.py:2270, in cast_table_to_schema(table, schema) 2269 if sorted(table.column_names) != sorted(features): -> 2270 raise ValueError(f"Couldn't cast\n{table.schema}\nto\n{features}\nbecause column names don't match") 2271 arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: list<item: string> child 0, item: string _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: null to {'citation': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'features': {'image': {'_type': Value(dtype='string', id=None)}, 'target': {'names': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'splits': {'train': {'name': Value(dtype='string', id=None), 'num_bytes': Value(dtype='int64', id=None), 'num_examples': Value(dtype='int64', id=None), 'dataset_name': Value(dtype='null', id=None)}}} because column names don't match The above exception was the direct cause of the following exception: DatasetGenerationError Traceback (most recent call last) Input In [8], in <cell line: 6>() 4 # load dataset 5 dataset = "ijmiller2/autotrain-data-betterbin-vision-10000" ----> 6 dataset = load_dataset(dataset) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/load.py:1782, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, num_proc, **config_kwargs) 1779 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES 1781 # Download and prepare data -> 1782 builder_instance.download_and_prepare( 1783 download_config=download_config, 1784 download_mode=download_mode, 1785 verification_mode=verification_mode, 1786 try_from_hf_gcs=try_from_hf_gcs, 1787 num_proc=num_proc, 1788 ) 1790 # Build dataset for splits 1791 keep_in_memory = ( 1792 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size) 1793 ) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:872, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs) 870 if num_proc is not None: 871 prepare_split_kwargs["num_proc"] = num_proc --> 872 self._download_and_prepare( 873 dl_manager=dl_manager, 874 verification_mode=verification_mode, 875 **prepare_split_kwargs, 876 **download_and_prepare_kwargs, 877 ) 878 # Sync info 879 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values()) File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:967, in DatasetBuilder._download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs) 963 split_dict.add(split_generator.split_info) 965 try: 966 # Prepare split will record examples associated to the split --> 967 self._prepare_split(split_generator, **prepare_split_kwargs) 968 except OSError as e: 969 raise OSError( 970 "Cannot find data file. " 971 + (self.manual_download_instructions or "") 972 + "\nOriginal error:\n" 973 + str(e) 974 ) from None File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1749, in ArrowBasedBuilder._prepare_split(self, split_generator, file_format, num_proc, max_shard_size) 1747 job_id = 0 1748 with pbar: -> 1749 for job_id, done, content in self._prepare_split_single( 1750 gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args 1751 ): 1752 if done: 1753 result = content File ~/anaconda3/envs/betterbin/lib/python3.8/site-packages/datasets/builder.py:1892, in ArrowBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1890 if isinstance(e, SchemaInferenceError) and e.__context__ is not None: 1891 e = e.__context__ -> 1892 raise DatasetGenerationError("An error occurred while generating the dataset") from e 1894 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths) DatasetGenerationError: An error occurred while generating the dataset ``` ### Expected behavior I'm ultimately trying to generate my own performance metrics on validation data (before putting an endpoint into production) and so was hoping to load all or at least the validation subset from the hub. I'm expecting the `load_dataset()` function to work as shown in the documentation [here](https://huggingface.co/docs/datasets/loading#hugging-face-hub): ```python dataset = load_dataset( "lhoestq/custom_squad", revision="main" # tag name, or branch name, or commit hash ) ``` ### Environment info - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.8.13 - PyArrow version: 9.0.0 - Pandas version: 1.4.4 Okay, good to know. Thanks for the reply. For now I will just have to manage the split manually before training, because I can’t find any way of pulling out file indices or file names from the autogenerated split. The file names field of the image dataset (loaded directly from arrow file) is missing, just fyi (for anyone else this might be relevant too). On Fri, Mar 10, 2023 at 7:02 PM Quentin Lhoest ***@***.***> wrote: > The AutoTrain format is not supported right now. I think it would require > a dedicated dataset builder > > β€” > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/5627#issuecomment-1464734308>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ACBJ4F5A353MCZ76OGRJ6CTW3PFI7ANCNFSM6AAAAAAVWXNUTE> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
[ -0.5055118799209595, -0.3172404170036316, -0.019252877682447433, 0.6263453364372253, 0.5027536153793335, 0.19592103362083435, 0.47843173146247864, 0.2786698639392853, 0.25286537408828735, 0.11251406371593475, -0.2149442732334137, 0.5865493416786194, -0.054208315908908844, 0.222990483045578, 0.0526353158056736, -0.25824567675590515, 0.04918989539146423, 0.07034245878458023, -0.16748788952827454, -0.10816536098718643, -0.15900979936122894, 0.2674699127674103, -0.16813242435455322, 0.1725539267063141, -0.40149474143981934, 0.02283470146358013, 0.219598650932312, 0.20895227789878845, -0.2505643963813782, -0.339811772108078, 0.3427230417728424, -0.03379752114415169, 0.30428457260131836, 0.42236414551734924, -0.0001194000942632556, 0.16235408186912537, 0.33726173639297485, 0.007510073482990265, -0.10202647745609283, -0.36964845657348633, -0.3211003243923187, 0.02867942303419113, 0.15198925137519836, -0.16173230111598969, -0.23523850739002228, 0.09324079751968384, -0.11620959639549255, -0.21342694759368896, 0.4337918162345886, 0.3437400162220001, 0.14358851313591003, 0.4806644916534424, 0.12406681478023529, -0.2127944678068161, -0.04562488943338394, 0.03622925654053688, -0.2881825566291809, 0.21230942010879517, 0.04389152303338051, 0.08715236932039261, 0.016264183446764946, 0.12113141268491745, 0.05733950436115265, 0.10102573037147522, 0.3872007131576538, 0.015507899224758148, -0.028134405612945557, -0.403595894575119, 0.01533723995089531, 0.42475131154060364, 0.45395538210868835, -0.3422587513923645, -0.38790303468704224, -0.08351472020149231, 0.18649621307849884, -0.1492784023284912, 0.27750229835510254, 0.15874892473220825, -0.057599183171987534, 0.19528813660144806, -0.30291712284088135, -0.030020631849765778, -0.26061517000198364, -0.14277338981628418, -0.04589606076478958, 0.06148926913738251, -0.025141937658190727, 0.028062455356121063, 0.03053964301943779, -0.06846646219491959, 0.30012422800064087, 0.06502004712820053, 0.00036702887155115604, 0.3159814178943634, -0.2961364984512329, -0.0677592009305954, -0.10245337337255478, 0.16328686475753784, 0.05098514258861542, 0.2144712656736374, 0.012964434921741486, 0.026233278214931488, -0.07039592415094376, 0.1157853752374649, 0.05472983419895172, 0.206033393740654, -0.03466039523482323, 0.27574804425239563, 0.1969333291053772, 0.23333995044231415, -0.20259757339954376, 0.03575265407562256, -0.41337963938713074, 0.023608703166246414, -0.13277605175971985, 0.06891028583049774, 0.07351518422365189, -0.10732834786176682, -0.4884960353374481, 0.20170436799526215, 0.07819035649299622, 0.05406639352440834, 0.29353904724121094, 0.35273659229278564, -0.16332781314849854, 0.06451070308685303, 0.01198112964630127, 0.3534562587738037, -0.20868539810180664, 0.09795647859573364, -0.225458562374115, 0.09419739991426468, -0.06788685917854309, -0.09761044383049011, 0.15332087874412537, -0.18201982975006104, 0.23339487612247467, 0.15507829189300537, -0.10957202315330505, -0.2779642343521118, -0.17888353765010834, -0.0536193810403347, -0.25577759742736816, 0.3190268278121948, 0.0860348492860794, 0.07564183324575424, 0.12255894392728806, -0.1553800404071808, -0.0948222279548645, 0.0757434070110321, -0.4945153295993805, -0.31753110885620117, -0.19360679388046265, 0.15545979142189026, -0.3708725571632385, -0.029862865805625916, -0.40687131881713867, -0.12855379283428192, 0.2513662278652191, -0.050321150571107864, -0.22171418368816376, -0.19329196214675903, 0.129089817404747, -0.03259420767426491, 0.3570004105567932, 0.2451568990945816, -0.26447340846061707, -0.18375834822654724, -0.10441957414150238, -0.16613739728927612, 0.14363370835781097, 0.21630096435546875, -0.04703260213136673, 0.55420982837677, -0.176491379737854, 0.1830051839351654, 0.37989547848701477, -0.44962480664253235, -0.24371108412742615, -0.09736169129610062, -0.11997770518064499, 0.023062102496623993, 0.14307396113872528, -0.07638274133205414, 0.28791335225105286, 0.08656532317399979, 0.18840374052524567, 0.34972208738327026, 0.08157656341791153, 0.014775149524211884, -0.11525249481201172, -0.3978223502635956, -0.20087701082229614, 0.2862715423107147, 0.21370291709899902, 0.06872487813234329, -0.04204718396067619, 0.3566952645778656, 0.23384293913841248, -0.10544750094413757, 0.019230499863624573, 0.12557460367679596, 0.1723342090845108, 0.05094609409570694, 0.04816334322094917, -0.25275373458862305, -0.2966901957988739, 0.24659618735313416, -0.0191841721534729, 0.23388132452964783, -0.22796238958835602, 0.02530282735824585, -0.4348360300064087, -0.003153666853904724, -0.4316824674606323, 0.07441046833992004, 0.08920352160930634, -0.10301125049591064, -0.0700644999742508, -0.05775494500994682, -0.2655101418495178, 0.5265859365463257, -0.31262871623039246, 0.30027005076408386, -0.5972340703010559, 0.45037907361984253, 0.03267056494951248, -0.11210621893405914, -0.04774053022265434, 0.3928437829017639, 0.029307713732123375, -0.20149095356464386, -0.11282984912395477, 0.21000634133815765, 0.12901799380779266, 0.30858325958251953, -0.21285653114318848, -0.11282023787498474, 0.2180766463279724, -0.4116051197052002, -0.02890179306268692, -0.07559617608785629, 0.15220767259597778, -0.013367034494876862, -0.2063577026128769, 0.2426736056804657, -0.32119232416152954, 0.17522290349006653, -0.032983697950839996, 0.14149335026741028, 0.24636316299438477, -0.0464828684926033, -0.040913887321949005, -0.23759430646896362, 0.08994962275028229, -0.019841356202960014, 0.3851562738418579, 0.013569088652729988, -0.06726028025150299, -0.13919532299041748, 0.38711464405059814, 0.07402682304382324, -0.06523141264915466, 0.018473457545042038, -0.1998559832572937, 0.15945053100585938, 0.09001442044973373, 0.3083052635192871, 0.2832522392272949, 0.046984460204839706, -0.04259665682911873, 0.05618242174386978, -0.22178968787193298, -0.10168087482452393, 0.09442288428544998, 0.10617168992757797, 0.04932991415262222, 0.36174964904785156, -0.06509914994239807, 0.1122937947511673, -0.41761544346809387, -0.12670782208442688, 0.17292511463165283, 0.405720591545105, -0.5377872586250305, -0.1763487458229065, -0.14416521787643433, 0.30067723989486694, -0.07909579575061798, -0.26006048917770386, -0.09434326738119125, -0.1611526608467102, -0.014527221210300922, 0.39195960760116577, 0.05451267957687378, 0.2620273232460022, 0.0019079223275184631, 0.0365491658449173, 0.016194283962249756, -0.23664245009422302, -0.232312873005867, -0.009742211550474167, 0.07453890144824982, 0.04575394466519356, 0.22172811627388, 0.12694142758846283, 0.17946474254131317, -0.39336609840393066, 0.11406463384628296, -0.16921493411064148, -0.04135167598724365, 0.17346304655075073, -0.3539281487464905, 0.47000497579574585, 0.14980900287628174, 0.2667223811149597, 0.01583787053823471, -0.39189231395721436, 0.34469109773635864, -0.003669358789920807, -0.23019559681415558, 0.07061143964529037, -0.061956990510225296, -0.2453899085521698, -0.011195674538612366, -0.28244149684906006, -0.2717868685722351, -0.3293367028236389, 0.014035753905773163, -0.030151505023241043, 0.07409703731536865, 0.2065601646900177, 0.03371194005012512, 0.08181169629096985, 0.13876231014728546, 0.06213429570198059, -0.1023283451795578, -0.28016552329063416, 0.2763698101043701, -0.255492627620697, -0.14454081654548645, -0.0929718017578125, 0.08884470164775848, 0.46579718589782715, -0.0655587762594223, -0.4324806332588196, -0.359066367149353, -0.21286453306674957, 0.1411406695842743, -0.12160235643386841, 0.09882993251085281, 0.3468119502067566, 0.15139423310756683, 0.1466364860534668, -0.1460970789194107, -0.020375534892082214, 0.1287129521369934, 0.24973666667938232, 0.11908118426799774, -0.10266461968421936, 0.2390250712633133, -0.33682286739349365, 0.5051969885826111, 0.5528966188430786, 0.04923751950263977, 0.2963952124118805, -0.2634010314941406, 0.2058180868625641, -0.26104655861854553, -0.4175507128238678, -0.06767942756414413, 0.10433229058980942, -0.09131260216236115, 0.19212205708026886, 0.032828886061906815, 0.056393228471279144, -0.013361863791942596, 0.041858889162540436, -0.07394248992204666, -0.21905294060707092, -0.12384230643510818, -0.1965024620294571, 0.06452684104442596, 0.049653999507427216, 0.36628732085227966, -0.20799577236175537, -0.18717169761657715, 0.18776066601276398, 0.19303452968597412, 0.056758757680654526, 0.00959085300564766, -0.4072285294532776, -0.38993510603904724, -0.23467466235160828, 0.02606659010052681, 0.05752411112189293, 0.2858075499534607, -0.12108724564313889, 0.07115055620670319, 0.21444794535636902, -0.05685192719101906, 0.4645305573940277, -0.33192551136016846, 0.2304016649723053, 0.20262061059474945, 0.24374078214168549, -0.40372714400291443, -0.048333413898944855, -0.1284036934375763, -0.04061407595872879, -0.07398633658885956, 0.502199113368988, -0.300686776638031, -0.3849215507507324, 0.41627615690231323, 0.23661622405052185, -0.09382008761167526, -0.07495564222335815, -0.20217499136924744, -0.3738602101802826, -0.1941787600517273, 0.10563366115093231, 0.14826059341430664, 0.5531604290008545, -0.16888253390789032, -0.046626560389995575, -0.1612277328968048, 0.036650970578193665, 0.2782754898071289, 0.39217182993888855, 0.4861319959163666, -0.04647359251976013, 0.3935677409172058, 0.22422027587890625, -0.2550145983695984, 0.08171828836202621, 0.7830994129180908, -0.323314905166626, -0.3906547725200653, 0.03546816110610962, -0.16878092288970947, 0.055190011858940125, 0.2636999785900116, -0.19142164289951324, -0.09378115087747574, -0.1024164929986, 0.15474918484687805, -0.3075172007083893, 0.22322390973567963, 0.1889771819114685, 0.09099426120519638, -0.3493080139160156, -0.3745844066143036, 0.4444320499897003, 0.1280220001935959, -0.061146579682826996, 0.27459651231765747, 0.49145227670669556, -0.4162178933620453, 0.49137642979621887, -0.02115597575902939, 0.7962899208068848, 0.02363499253988266, 0.007521319203078747, 0.3110811114311218, 0.14080864191055298, 0.18728837370872498, -0.1491345465183258, 0.0037042833864688873, -0.559355616569519, -0.12275514006614685, -0.08265972882509232, 0.03626316785812378, 0.1917409598827362, 0.0038750392850488424, -0.0529523640871048, 0.0628395602107048, 0.12550009787082672, 0.3907776176929474, -0.22721382975578308, 0.16445781290531158, -0.2252027541399002, -0.4257469177246094, -0.12740594148635864, 0.08682683110237122, -0.07657681405544281, 0.2776454985141754, 0.07290992140769958, 0.01983465626835823, -0.2382589876651764, -0.20975223183631897, -0.43195390701293945, 0.12750941514968872, -0.10207006335258484, 0.1630811244249344, 0.18343180418014526, -0.48938941955566406, 0.2431689202785492, 0.4712215065956116, 0.6119165420532227, 0.14992092549800873, -0.4111855924129486, 0.34907418489456177, -0.1010434553027153, 0.039724454283714294, 0.08345067501068115, 0.06117416173219681, 0.25325581431388855, -0.07110116630792618, -0.1637122929096222, -0.28722554445266724, -0.1219254806637764, -0.05806687846779823, 0.1383907049894333, -0.04889505356550217, 0.17426924407482147, -0.5390150547027588, -0.12558767199516296, -0.05658330023288727, 0.13566553592681885, -0.2585102319717407, 0.11221423000097275, -0.052430201321840286, -0.19921042025089264, 0.4813729226589203, 0.12018480896949768, -0.351520836353302, 0.023433126509189606, 0.4158019721508026, 0.0338311642408371, 0.03181084990501404, 0.47421640157699585, 0.12469480186700821, -0.11540177464485168, -0.23104268312454224, 0.3058475852012634, 0.29213279485702515, -0.7915031313896179, -0.018535012379288673, 0.07225706428289413, -0.2811235785484314, 0.1284230649471283, 0.37792253494262695, 0.15007784962654114, -0.14615294337272644, -0.08095724880695343, -0.38415858149528503, -0.39797788858413696, 0.32373592257499695, -0.02320769615471363, 0.23844347894191742, -0.01970328390598297, 0.13026422262191772, -0.07840530574321747, -0.17364653944969177, -0.2649390399456024, 0.17338012158870697, -0.40197068452835083, 0.15618422627449036, -0.1629176139831543, -0.15249821543693542, 0.07221733033657074, -0.3340136408805847, 0.15835531055927277, -0.005352203734219074, -0.277898371219635, -0.13867613673210144, -0.2604602575302124, 0.10273852944374084, 0.04502842202782631, 0.04625380039215088, -0.17319585382938385, -0.10959754139184952, -0.337181955575943, -0.2976146638393402, 0.3668568432331085, 0.21771642565727234, 0.07799230515956879, 0.07009464502334595, 0.35376986861228943, 0.13729506731033325, -0.21914343535900116, 0.11117660254240036, 0.02929340861737728, 0.2702045440673828, -0.09039761126041412, 0.01821635663509369, -0.08275555074214935, 0.0732942745089531, 0.06566178053617477, 0.20774619281291962, 0.34893012046813965, 0.10507269203662872, 0.35034725069999695, -0.3267640769481659, 0.14488530158996582, 0.11551789939403534, 0.3214690685272217, 0.42737627029418945, -0.25975117087364197, -0.012010466307401657, 0.20462174713611603, 0.18532487750053406, -0.24905310571193695, -0.19103598594665527, 0.13694557547569275, -0.07095140218734741, -0.017110660672187805, 0.24584011733531952, 0.26058724522590637, 0.011854246258735657, -0.14554034173488617, 0.13494279980659485, 0.9337088465690613, -0.11927418410778046, 0.26464134454727173, 0.5453901290893555, -0.1133442148566246, 0.2491607666015625, 0.21262799203395844, 0.13368594646453857, -0.129948228597641, 0.6077188849449158, -0.22936196625232697, -0.0005668029189109802, 0.0006175953894853592, 0.25748932361602783, 0.16832973062992096, -0.28190839290618896, -0.23463290929794312, -0.20343007147312164, -0.15405218303203583, -0.04223712533712387, -0.16665486991405487, 0.25859278440475464, -0.3996252715587616, -0.18425853550434113, -0.5603457093238831, -0.024188701063394547, -0.23580560088157654, -0.1694527566432953, -0.22521671652793884, -0.15893088281154633, 0.028705909848213196, -0.04079761356115341, -0.17041954398155212, -0.03722025081515312, 0.08733957260847092, 0.008124420419335365, -0.025375083088874817, -0.16859644651412964, -0.17423295974731445, 0.26864391565322876, 0.09837882220745087, -0.305059552192688, 0.5096277594566345, 0.024738745763897896, -0.041794873774051666, -0.02289595454931259, 0.4200875759124756, 0.3603614270687103, 0.1623157113790512, -0.07555504888296127, -0.09020161628723145, -0.017955951392650604, -0.07608533650636673, -0.010234944522380829, 0.36008507013320923, 0.05482146888971329, 0.16382832825183868, 0.1879677176475525, 0.16523586213588715, -0.1407749205827713, -0.0615343414247036, -0.0706939548254013, 0.195921391248703, -0.0047151632606983185, 0.7019514441490173, -0.20929789543151855, -0.18986448645591736, -0.037845611572265625, -0.1351526975631714, -0.4094676971435547, 0.07082009315490723, 0.402959942817688, -0.008520778268575668, 0.11573554575443268, -0.06865431368350983, 0.04459201917052269, -0.06582622230052948, 0.5056037902832031, 0.284554123878479, -0.10042396187782288, -0.34052371978759766, -0.12883485853672028, -0.5272035598754883, 0.07289697974920273, -0.026194728910923004, -0.05041276663541794, 0.07772485911846161, 0.018152594566345215, -0.06985233724117279, -0.03013027273118496, 0.09608728438615799, -0.0026853233575820923, -0.031737297773361206, 0.26028379797935486, -0.3451891839504242, -0.025796104222536087, 0.029617972671985626, 0.08617329597473145, -0.21830692887306213, -0.3976801037788391, 0.31457945704460144, 0.0585082545876503, -0.11682221293449402, 0.15287554264068604, 0.10711067169904709, 0.13721874356269836, -0.3941119611263275, 0.2978271543979645, -0.117977075278759, 0.4921431243419647, -0.05573823302984238, 0.11703568696975708, -0.4144192636013031, -0.46254831552505493, -0.29965195059776306, 0.21467290818691254, 0.01869097352027893, 0.5098685026168823, -0.018615007400512695, -0.08315106481313705, -0.2522507309913635, -0.1400028020143509, 0.10540933161973953, 0.1688506007194519, -0.4595487117767334, 0.32020220160484314, -0.17971158027648926, 0.10925667732954025, 0.08162865042686462, 0.15400326251983643, 0.0681069940328598, 0.2816484570503235, -0.16098132729530334, -0.600354790687561, 0.6589678525924683, -0.21654321253299713, -0.4832482933998108, 0.0009844228625297546, 0.14725005626678467, 0.1554262936115265, -0.24470168352127075, -0.612797200679779, 0.11814887821674347, 0.14010271430015564, -0.2922751307487488, -0.24630741775035858, 0.255370169878006, 0.09642133116722107, 0.040142789483070374, -0.10433231294155121, 0.10771618038415909, 0.06030408293008804, -0.14315912127494812, 0.2465348243713379, -0.12318812310695648 ]
https://github.com/huggingface/datasets/issues/5625
You can use "json" instead. It doesn't work by extension names, but rather by dataset builder names, e.g. "text", "imagefolder", etc. I don't think the example in `transformers` is correct because of that
Allow "jsonl" data type signifier
### Feature request `load_dataset` currently does not accept `jsonl` as type but only `json`. ### Motivation I was working with one of the `run_translation` scripts and used my own datasets (`.jsonl`) as train_dataset. But the default code did not work because ``` FileNotFoundError: Couldn't find a dataset script at jsonl\jsonl.py or any data file in the same directory. Couldn't find 'jsonl' on the Hugging Face Hub either: FileNotFoundError: Dataset 'jsonl' doesn't exist on the Hub. If the repo is private or gated, make sure to log in with `huggingface-cli login`. ``` The reason is because the script has these lines to extract the data type by its extension. Therefore, the derived type is `jsonl` which is not recognized by datasets as the error above shows. https://github.com/huggingface/transformers/blob/ade26bf9912f69e2110137443e4406d7dbe253e7/examples/pytorch/translation/run_translation.py#L342-L356 I suppose you could argue that this is the script's fault (in which case I'll do a PR over at `transformers`) but it makes sense to me to add `jsonl` as an alias to `json` in `datasets`. ### Your contribution At the moment I cannot work on this. I think it can be as "easy" as having an alias for json, namely jsonl.
33
Allow "jsonl" data type signifier ### Feature request `load_dataset` currently does not accept `jsonl` as type but only `json`. ### Motivation I was working with one of the `run_translation` scripts and used my own datasets (`.jsonl`) as train_dataset. But the default code did not work because ``` FileNotFoundError: Couldn't find a dataset script at jsonl\jsonl.py or any data file in the same directory. Couldn't find 'jsonl' on the Hugging Face Hub either: FileNotFoundError: Dataset 'jsonl' doesn't exist on the Hub. If the repo is private or gated, make sure to log in with `huggingface-cli login`. ``` The reason is because the script has these lines to extract the data type by its extension. Therefore, the derived type is `jsonl` which is not recognized by datasets as the error above shows. https://github.com/huggingface/transformers/blob/ade26bf9912f69e2110137443e4406d7dbe253e7/examples/pytorch/translation/run_translation.py#L342-L356 I suppose you could argue that this is the script's fault (in which case I'll do a PR over at `transformers`) but it makes sense to me to add `jsonl` as an alias to `json` in `datasets`. ### Your contribution At the moment I cannot work on this. I think it can be as "easy" as having an alias for json, namely jsonl. You can use "json" instead. It doesn't work by extension names, but rather by dataset builder names, e.g. "text", "imagefolder", etc. I don't think the example in `transformers` is correct because of that
[ -0.21680667996406555, -0.08018503338098526, 0.0483732596039772, 0.12135081738233566, 0.3189047574996948, 0.05482731759548187, 0.26706773042678833, 0.3135353922843933, 0.3499499559402466, 0.03927185386419296, -0.07581250369548798, 0.385273814201355, -0.3608344495296478, 0.29285624623298645, 0.20028014481067657, -0.3158401846885681, -0.02542523667216301, -0.11053141206502914, -0.03962640091776848, 0.008205987513065338, -0.3794061541557312, 0.1692444086074829, 0.23849961161613464, 0.09312719851732254, -0.20927360653877258, 0.07868332415819168, 0.31892305612564087, -0.013868521898984909, -0.33786118030548096, -0.3044546842575073, 0.12490399926900864, 0.24242034554481506, 0.3260132670402527, 0.3591722846031189, -0.0001133386031142436, 0.16823270916938782, 0.44981151819229126, -0.006966643035411835, -0.4638115167617798, -0.509452760219574, -0.03508233278989792, -0.43028002977371216, 0.20371027290821075, -0.3244708180427551, -0.1276295781135559, -0.4247709810733795, 0.11114880442619324, -0.3535921275615692, 0.41773825883865356, 0.1494930386543274, 0.1624113768339157, 0.4641942083835602, 0.033636465668678284, 0.145319402217865, 0.07825401425361633, 0.6113730072975159, -0.1501171886920929, 0.18099181354045868, 0.01876739040017128, 0.10183685272932053, 0.19502168893814087, 0.12506113946437836, 0.031227298080921173, -0.2872559130191803, 0.31834450364112854, 0.08310145884752274, -0.24291583895683289, -0.012428919784724712, -0.17280375957489014, 0.22954639792442322, 0.18812647461891174, -0.35035961866378784, -0.5058413743972778, -0.39225858449935913, 0.09252864122390747, 0.11724918335676193, 0.2580641210079193, -0.2320675253868103, 0.1538008153438568, 0.044545236974954605, 0.01629875972867012, -0.2653222382068634, -0.0750221312046051, 0.17466916143894196, 0.0038802772760391235, 0.2439340502023697, 0.03444936126470566, 0.22641226649284363, 0.1297488957643509, -0.24708428978919983, -0.1383293718099594, -0.01933840475976467, 0.024791954085230827, 0.0935574397444725, -0.004860894754528999, -0.0900958850979805, -0.06275205314159393, -0.39762091636657715, 0.29543665051460266, -0.03557642549276352, -0.10602695494890213, -0.04649557173252106, -0.21677732467651367, 0.26105737686157227, 0.046598613262176514, 0.08695434033870697, 0.25970378518104553, 0.013305708765983582, 0.3629295229911804, 0.10962099581956863, 0.30134421586990356, 0.04882032051682472, -0.4289054870605469, -0.06474008411169052, -0.16252705454826355, 0.002531280741095543, 0.3492357134819031, 0.1679479479789734, -0.00036288052797317505, -0.36262160539627075, -0.020548366010189056, -0.31607967615127563, 0.3868962824344635, 0.26546886563301086, 0.011069271713495255, 0.028995513916015625, 0.34209662675857544, 0.22448092699050903, 0.14489799737930298, -0.2079215943813324, -0.08195647597312927, 0.09995494782924652, -0.03802593797445297, -0.14682325720787048, 0.22751852869987488, -0.007342807948589325, 0.08454131335020065, -0.13010743260383606, 0.1597372442483902, 0.12208740413188934, 0.028403908014297485, 0.2861451804637909, 0.04137201979756355, 0.026207519695162773, -0.14048290252685547, 0.05347006767988205, 0.22397302091121674, -0.10833427309989929, -0.44940051436424255, 0.13618522882461548, -0.2393786609172821, -0.26826441287994385, -0.3003474473953247, 0.13252677023410797, -0.378905326128006, -0.1133444532752037, -0.6395111680030823, 0.3684428334236145, -0.10980945825576782, -0.03279324993491173, 0.1732570379972458, -0.05370404198765755, -0.05244285985827446, -0.03597934544086456, 0.27993881702423096, 0.25620225071907043, -0.07925838232040405, -0.6245133876800537, -0.019950605928897858, -0.5032386183738708, -0.11443692445755005, 0.11630770564079285, -0.4119989573955536, 0.03388366848230362, -0.2634677290916443, 0.039785563945770264, 0.25729185342788696, -0.3703134059906006, -0.09031893312931061, 0.07706338167190552, -0.16176992654800415, 0.23205390572547913, 0.22558259963989258, 0.007288236171007156, 0.038208577781915665, -0.028137994930148125, -0.05701754614710808, 0.532058835029602, 0.19695860147476196, 0.09538882225751877, 0.016270048916339874, -0.43869730830192566, 0.4584234952926636, 0.296293169260025, -0.2216775119304657, 0.3014349937438965, 0.03304591774940491, 0.11070509999990463, 0.10430343449115753, -0.10257140547037125, 0.21580538153648376, -0.10330967605113983, 0.14586274325847626, 0.03524131700396538, 0.057288266718387604, -0.12527891993522644, -0.5645524859428406, 0.12221731245517731, -0.0176234170794487, 0.300758421421051, -0.41563063859939575, -0.3368701934814453, -0.11959797143936157, 0.10485388338565826, -0.05349406227469444, 0.11261901259422302, 0.05503339320421219, 0.03379085659980774, -0.023146457970142365, 0.008545450866222382, -0.4156843423843384, 0.08986715972423553, 0.042317844927310944, 0.08371280133724213, -0.4737500846385956, -0.0004534870386123657, 0.18819667398929596, 0.16814249753952026, -0.098046213388443, 0.25616341829299927, 0.042870525270700455, -0.21601927280426025, -0.04005379602313042, 0.11589932441711426, -0.07896639406681061, 0.24981875717639923, -0.04264416545629501, 0.37889134883880615, 0.2708016037940979, -0.07381105422973633, -0.015483538620173931, 0.14065122604370117, -0.015016518533229828, 0.02997424453496933, -0.0871078222990036, 0.5762916207313538, 0.20266416668891907, 0.10961844772100449, -0.045453548431396484, -0.04283260181546211, 0.2498570680618286, 0.12980708479881287, -0.5781803131103516, -0.32064029574394226, 0.0041998811066150665, 0.09506192803382874, 0.24142388999462128, -0.15231633186340332, -0.06190146505832672, -0.2261458784341812, 0.4675842821598053, -0.02898828312754631, 0.2209012508392334, 0.3371107280254364, -0.11868950724601746, 0.21205341815948486, -0.04165031760931015, 0.31590205430984497, 0.06844152510166168, 0.1597723662853241, 0.012561370618641376, 0.030999360606074333, -0.1560041904449463, -0.05117516592144966, 0.193479523062706, -0.11590826511383057, -0.04069311171770096, 0.022316165268421173, 0.16680914163589478, -0.17258861660957336, -0.41692256927490234, -0.3048740029335022, 0.16318044066429138, 0.067600317299366, -0.22692719101905823, -0.0636298879981041, -0.22184085845947266, -0.10073930770158768, -0.15086327493190765, -0.33754053711891174, -0.5282359719276428, -0.18964405357837677, -0.006727235391736031, 0.11685982346534729, -0.2189665138721466, 0.2943073809146881, -0.16248579323291779, 0.35889750719070435, -0.13759756088256836, -0.8462277054786682, -0.3059764504432678, -0.14655177295207977, 0.02450232207775116, 0.07294494658708572, 0.09019143134355545, -0.1886563003063202, 0.17515988647937775, -0.003518126904964447, -0.0007079392671585083, -0.28814059495925903, -0.3963031768798828, 0.09778448939323425, -0.32216939330101013, 0.2635633051395416, 0.3630251884460449, -0.011640645563602448, 0.2422524094581604, -0.2184590846300125, 0.344791054725647, -0.18169113993644714, -0.20131796598434448, -0.05751841515302658, -0.07043489813804626, 0.08232858031988144, -0.30926793813705444, -0.004405926913022995, -0.21767093241214752, -0.4416468143463135, 0.5642146468162537, -0.08553601056337357, 0.08903300017118454, 0.24457985162734985, -0.04831688106060028, 0.32988452911376953, 0.10534586012363434, 0.04857301712036133, -0.15796920657157898, -0.3104115128517151, 0.4306483864784241, -0.1937706172466278, -0.04995999112725258, 0.029147975146770477, -0.1718064844608307, 0.14130732417106628, -0.058987442404031754, -0.10284556448459625, -0.3722041845321655, -0.18220305442810059, 0.4771619439125061, 0.05884513631463051, -0.09785166382789612, 0.17354218661785126, 0.28001734614372253, 0.09111595153808594, -0.1543460637331009, -0.40026870369911194, 0.2544313669204712, 0.07824477553367615, 0.22386832535266876, 0.15340882539749146, 0.4433777332305908, -0.19613781571388245, 0.213582843542099, -0.08759470283985138, -0.20233863592147827, 0.4258056879043579, -0.18525557219982147, -0.004780516028404236, 0.05938412994146347, -0.32487937808036804, -0.1172780990600586, -0.11562512814998627, 0.1627940684556961, 0.09323960542678833, 0.02685922384262085, 0.10628370195627213, -0.1827234923839569, -0.16775274276733398, -0.05281715467572212, -0.23815909028053284, 0.3017721176147461, -0.04330798611044884, 0.13244880735874176, -0.07909275591373444, -0.2095041275024414, -0.2923382520675659, 0.07132259756326675, 0.29531770944595337, 0.5403514504432678, 0.29271259903907776, 0.1791047602891922, -0.7905526757240295, -0.007653482258319855, -0.4281183183193207, 0.24395358562469482, 0.11714193224906921, 0.22279566526412964, -0.06971578299999237, -0.174788698554039, 0.0414850227534771, 0.029066208750009537, 0.9280759692192078, -0.06400971114635468, -0.0821501761674881, -0.07744678109884262, -0.21419599652290344, -0.20507702231407166, 0.16490015387535095, -0.0029732808470726013, 0.0017464235424995422, -0.007069640792906284, 0.5602776408195496, -0.5251843929290771, -0.17273256182670593, 0.1148112490773201, 0.036354850977659225, -0.014984741806983948, -0.2787427604198456, -0.2801443934440613, -0.40756192803382874, -0.37621572613716125, -0.1422232836484909, 0.31265246868133545, 0.3366627097129822, -0.07079607248306274, 0.24750110507011414, -0.22273942828178406, -0.02896619588136673, 0.140304297208786, 0.3062485456466675, 0.236016646027565, 0.11289180815219879, 0.20649780333042145, 0.3827105760574341, 0.30951473116874695, 0.24848169088363647, 0.5898168087005615, -0.11113256961107254, -0.875687837600708, -0.03442459553480148, 0.29572001099586487, 0.20638225972652435, 0.05753716453909874, -0.007036130875349045, 0.5020943284034729, 0.3328794240951538, -0.1497011035680771, -0.2782912850379944, 0.12000948190689087, 0.209879070520401, 0.22418980300426483, -0.2911047339439392, -0.6140159368515015, 0.44010162353515625, 0.19115683436393738, 0.11168274283409119, -0.03336552903056145, 0.2562525272369385, -0.46877285838127136, 0.13848672807216644, -0.0005181916058063507, 0.8732222318649292, -0.05311323329806328, 0.1823858916759491, 0.30287086963653564, -0.253689169883728, 0.6456047296524048, -0.21400953829288483, 0.05697917193174362, -0.29141390323638916, 0.07269608974456787, -0.07355133444070816, -0.07889794558286667, 0.13693535327911377, 0.10351547598838806, -0.2167450338602066, -0.18405883014202118, -0.22727973759174347, 0.0443493090569973, -0.11370329558849335, 0.7104292511940002, -0.3880684971809387, -0.3627871870994568, -0.3042277693748474, 0.0660795345902443, -0.17447829246520996, 0.1304733157157898, 0.07524727284908295, -0.2865538001060486, -0.019924983382225037, -0.3527818024158478, -0.09765233099460602, 0.07058745622634888, -0.13402032852172852, 0.03769431635737419, 0.36091604828834534, -0.04723593592643738, 0.4278355538845062, 0.03632718697190285, 0.4769890606403351, -0.01439362857490778, -0.17428989708423615, 0.20302972197532654, -0.2764640748500824, 0.17360885441303253, -0.33156102895736694, -0.03726853430271149, 0.3742862343788147, 0.07698430120944977, -0.21978965401649475, 0.023031942546367645, 0.09394370764493942, -0.3834514617919922, -0.1758386492729187, 0.05583442002534866, -0.18887707591056824, -0.27358290553092957, -0.1060926616191864, -0.014747172594070435, 0.009889490902423859, -0.21234914660453796, 0.07304117828607559, 0.12996909022331238, -0.200180321931839, -0.3051486015319824, 0.027588075026869774, -0.26159584522247314, -0.027189861983060837, 0.2532341182231903, -0.09487107396125793, -0.18168675899505615, 0.5415785312652588, 0.13924597203731537, -0.07527729868888855, -0.056454867124557495, 0.00574706494808197, 0.6469433307647705, -0.43237680196762085, 0.14352452754974365, 0.24848651885986328, -0.38756126165390015, -0.3236903250217438, 0.1658252775669098, 0.009258761070668697, 0.15174022316932678, 0.06354059278964996, -0.28405097126960754, -0.3858203887939453, 0.5173453092575073, -0.05785568431019783, 0.08970998227596283, 0.18354392051696777, 0.35196661949157715, -0.045646898448467255, -0.04237297177314758, -0.3068438172340393, 0.05723683536052704, 0.16079670190811157, -0.003757151775062084, 0.17358039319515228, 0.04268963634967804, 0.5319187045097351, 0.03639598190784454, 0.05373156815767288, 0.010827973484992981, -0.23211714625358582, -0.09683302044868469, -0.4889240860939026, 0.17568539083003998, 0.059617288410663605, -0.04829766973853111, -0.09354618191719055, -0.07580031454563141, 0.0018706675618886948, -0.05541147291660309, 0.06625111401081085, 0.22566096484661102, -0.07618467509746552, 0.34935063123703003, 0.062159404158592224, 0.04287225008010864, -0.042651064693927765, -0.07416238635778427, 0.056151553988456726, 0.22661979496479034, 0.2297215759754181, 0.13492995500564575, -0.24757911264896393, 0.058270856738090515, -0.2898351550102234, 0.19188916683197021, 0.4125310480594635, 0.38190656900405884, -0.026592183858156204, 0.10950836539268494, -0.12673278152942657, -0.22477313876152039, 0.2983859181404114, 0.27368277311325073, -0.3076484501361847, -0.016179732978343964, 0.41962575912475586, 0.09358125925064087, -0.18025237321853638, 0.005127307027578354, 0.27409255504608154, -0.22066330909729004, 0.3430370092391968, 0.34911292791366577, 0.046357885003089905, 0.4789600372314453, 0.03827289491891861, -0.15036514401435852, 0.43086305260658264, -0.0004709213972091675, 0.2242223173379898, 0.31537532806396484, -0.3267102539539337, 0.05459647625684738, 0.48696181178092957, 0.3353334367275238, 0.3388397693634033, 0.00433301692828536, -0.3044810891151428, 0.23658548295497894, 0.03130931407213211, 0.2067265659570694, 0.30376386642456055, 0.020529210567474365, 0.009499483741819859, -0.008481323719024658, 0.08456107974052429, 0.28537967801094055, 0.032499488443136215, 0.6576147675514221, -0.27112969756126404, 0.045601923018693924, -0.078517384827137, 0.32268279790878296, 0.032138392329216, -0.4186776578426361, -0.17607328295707703, -0.0060318708419799805, -0.46518754959106445, -0.1647685319185257, -0.02286003716289997, -0.2754828631877899, -0.08746866881847382, -0.10115563869476318, 0.07613012194633484, -0.37442493438720703, 0.034490104764699936, 0.19487884640693665, 0.1565612405538559, -0.19630175828933716, 0.28144875168800354, 0.19231604039669037, -0.05202600359916687, 0.3083621859550476, 0.32352352142333984, 0.04490480571985245, 0.16440939903259277, 0.19676825404167175, 0.13743290305137634, -0.28085100650787354, 0.05166210979223251, -0.2109144628047943, 0.26488354802131653, 0.14429542422294617, -0.05435246229171753, 0.12872624397277832, 0.113033726811409, -0.09262412786483765, -0.06702423840761185, -0.028556279838085175, -0.014604028314352036, -0.11981762200593948, 0.5110771656036377, -0.09167490899562836, 0.08443896472454071, -0.11601243168115616, -0.020358823239803314, -0.3561588525772095, -0.07442013174295425, 0.3242502510547638, 0.07524137198925018, 0.08874839544296265, -0.15745118260383606, 0.05270835757255554, 0.10753492265939713, 0.3061956465244293, 0.2517738342285156, 0.25459471344947815, 0.11076945066452026, 0.1097332090139389, -0.3617175221443176, -0.032147787511348724, 0.14707323908805847, -0.16449174284934998, -0.12199389189481735, -0.167132169008255, 0.09607859700918198, 0.08690348267555237, -0.03186787664890289, -0.002038925886154175, -0.04489338770508766, -0.17305274307727814, -0.10029343515634537, -0.2242727130651474, 0.24708294868469238, 0.3021755814552307, 0.1065712571144104, -0.07717534899711609, 0.02297254465520382, 0.2841137647628784, -0.10949893295764923, -0.5703384876251221, 0.07628098875284195, -0.042014818638563156, -0.07992340624332428, 0.4162050187587738, 0.41025567054748535, 0.36921238899230957, -0.19298529624938965, -0.0838056355714798, -0.11482416093349457, -0.28469157218933105, -0.5309656262397766, 0.24946263432502747, 0.11738282442092896, 0.3515816926956177, -0.23667509853839874, -0.2117784172296524, -0.264082670211792, 0.2232394963502884, -0.15902385115623474, -0.3867985010147095, -0.41056427359580994, 0.2267068475484848, -0.30964213609695435, -0.1711922287940979, -0.24633021652698517, 0.3560880720615387, 0.13095200061798096, 0.10253205895423889, -0.18293921649456024, -0.13861757516860962, 0.6169016361236572, -0.3181096911430359, -0.27222928404808044, 0.1875583529472351, -0.034423232078552246, -0.04671628400683403, -0.16010385751724243, -0.5468878746032715, 0.045280322432518005, 0.1677810102701187, 0.047921501100063324, 0.0012538060545921326, 0.3235006332397461, 0.07049591839313507, 0.04449491202831268, -0.2363964319229126, 0.1988038420677185, 0.2623558044433594, -0.05953763425350189, 0.05950957536697388, -0.20842790603637695 ]
https://github.com/huggingface/datasets/issues/5625
Yes, I understand the reasoning but this issue is to propose that the example in transformers (while incorrect) "makes sense" in terms of user expectation. So the question is whether it would be possible to add "aliases" for common types (like "json" and "text") based on common extensions (like jsonl and txt)?
Allow "jsonl" data type signifier
### Feature request `load_dataset` currently does not accept `jsonl` as type but only `json`. ### Motivation I was working with one of the `run_translation` scripts and used my own datasets (`.jsonl`) as train_dataset. But the default code did not work because ``` FileNotFoundError: Couldn't find a dataset script at jsonl\jsonl.py or any data file in the same directory. Couldn't find 'jsonl' on the Hugging Face Hub either: FileNotFoundError: Dataset 'jsonl' doesn't exist on the Hub. If the repo is private or gated, make sure to log in with `huggingface-cli login`. ``` The reason is because the script has these lines to extract the data type by its extension. Therefore, the derived type is `jsonl` which is not recognized by datasets as the error above shows. https://github.com/huggingface/transformers/blob/ade26bf9912f69e2110137443e4406d7dbe253e7/examples/pytorch/translation/run_translation.py#L342-L356 I suppose you could argue that this is the script's fault (in which case I'll do a PR over at `transformers`) but it makes sense to me to add `jsonl` as an alias to `json` in `datasets`. ### Your contribution At the moment I cannot work on this. I think it can be as "easy" as having an alias for json, namely jsonl.
52
Allow "jsonl" data type signifier ### Feature request `load_dataset` currently does not accept `jsonl` as type but only `json`. ### Motivation I was working with one of the `run_translation` scripts and used my own datasets (`.jsonl`) as train_dataset. But the default code did not work because ``` FileNotFoundError: Couldn't find a dataset script at jsonl\jsonl.py or any data file in the same directory. Couldn't find 'jsonl' on the Hugging Face Hub either: FileNotFoundError: Dataset 'jsonl' doesn't exist on the Hub. If the repo is private or gated, make sure to log in with `huggingface-cli login`. ``` The reason is because the script has these lines to extract the data type by its extension. Therefore, the derived type is `jsonl` which is not recognized by datasets as the error above shows. https://github.com/huggingface/transformers/blob/ade26bf9912f69e2110137443e4406d7dbe253e7/examples/pytorch/translation/run_translation.py#L342-L356 I suppose you could argue that this is the script's fault (in which case I'll do a PR over at `transformers`) but it makes sense to me to add `jsonl` as an alias to `json` in `datasets`. ### Your contribution At the moment I cannot work on this. I think it can be as "easy" as having an alias for json, namely jsonl. Yes, I understand the reasoning but this issue is to propose that the example in transformers (while incorrect) "makes sense" in terms of user expectation. So the question is whether it would be possible to add "aliases" for common types (like "json" and "text") based on common extensions (like jsonl and txt)?
[ -0.13367000222206116, -0.1285916566848755, 0.053865037858486176, 0.19250550866127014, 0.2926883101463318, -0.033620767295360565, 0.4033440053462982, 0.3344000577926636, 0.30339252948760986, -0.02004171907901764, -0.026273004710674286, 0.20519261062145233, -0.28625431656837463, 0.3191851079463959, 0.0965113639831543, -0.40305691957473755, -0.13205987215042114, -0.1262470930814743, -0.06436362862586975, 0.03563050925731659, -0.17135348916053772, 0.18034160137176514, 0.3006993532180786, 0.11990879476070404, -0.16539883613586426, 0.1491515189409256, 0.3176029920578003, -0.22913658618927002, -0.15872594714164734, -0.13889068365097046, 0.10865600407123566, 0.23807498812675476, 0.3137879967689514, 0.42731982469558716, -0.00012179624900454655, 0.11826726794242859, 0.4486694633960724, 0.002715885639190674, -0.46607983112335205, -0.4567885398864746, -0.09899580478668213, -0.3503001034259796, 0.18363580107688904, -0.3937442898750305, -0.05305503308773041, -0.34517306089401245, 0.10158444941043854, -0.5030562877655029, 0.3538886308670044, 0.0341029018163681, 0.06896992772817612, 0.3897617757320404, -0.15491078794002533, 0.2138211876153946, 0.22490842640399933, 0.7578535079956055, -0.1430637240409851, 0.11313691735267639, 0.19289341568946838, 0.1323128491640091, 0.37112119793891907, 0.10173550248146057, 0.07517372816801071, -0.32178357243537903, 0.27079498767852783, 0.2238779217004776, -0.23385077714920044, 0.12596796452999115, -0.23187506198883057, 0.2964937388896942, 0.11872781813144684, -0.36696600914001465, -0.5474764108657837, -0.559423565864563, 0.014271046966314316, 0.18097558617591858, 0.2083415687084198, -0.35984793305397034, 0.1288071870803833, -0.03062795288860798, 0.11430932581424713, -0.2897270917892456, 0.08993798494338989, 0.2236749529838562, 0.044527605175971985, 0.3115968704223633, 0.09085790812969208, 0.251404732465744, -0.0062020281329751015, -0.25888440012931824, -0.025215046480298042, -0.1579374521970749, 0.059285301715135574, 0.07637113332748413, 0.06154961884021759, -0.11842658370733261, -0.08296370506286621, -0.5360245704650879, 0.2645193040370941, -0.07873702049255371, 0.02134218066930771, -0.02467603050172329, -0.2924520671367645, 0.2247340977191925, 0.11881603300571442, 0.051300182938575745, 0.21565964818000793, 0.10752500593662262, 0.3656325340270996, 0.024222321808338165, 0.19893357157707214, 0.04793664813041687, -0.3899371325969696, 0.013225913047790527, -0.17232093214988708, 0.06644931435585022, 0.31420662999153137, 0.143055260181427, 0.032886967062950134, -0.3586970269680023, -0.07520779967308044, -0.38570621609687805, 0.2536131739616394, 0.005315622314810753, 0.027715597301721573, 0.10398271679878235, 0.3676237463951111, 0.2684558033943176, 0.20295102894306183, -0.23456482589244843, 0.05705765634775162, -0.0098046213388443, -0.09338860958814621, -0.10961754620075226, 0.32183390855789185, -0.030584383755922318, -0.031033601611852646, -0.16088753938674927, 0.13207760453224182, 0.10710722208023071, 0.10604158788919449, 0.15579965710639954, -0.09445343911647797, -0.15013743937015533, -0.2900577783584595, 0.10901398956775665, 0.27187439799308777, -0.08420524001121521, -0.5369383692741394, 0.16687744855880737, -0.22590623795986176, -0.21096685528755188, -0.20347927510738373, 0.05525803565979004, -0.3396226167678833, -0.04830673709511757, -0.6749224066734314, 0.4184739589691162, 0.019390955567359924, -0.11399508267641068, 0.13330155611038208, -0.10704533755779266, 0.00840042531490326, 0.009815860539674759, 0.2191264033317566, 0.25893956422805786, -0.06816218793392181, -0.7095142006874084, -0.09543734788894653, -0.35716965794563293, -0.2093045860528946, 0.2725278437137604, -0.4618634581565857, 0.0744573324918747, -0.27978020906448364, 0.12965229153633118, 0.317008376121521, -0.33502334356307983, 0.08624208718538284, 0.09887272864580154, -0.13873949646949768, 0.32146164774894714, 0.3495851457118988, 0.0685734823346138, 0.11329615861177444, -0.050216253846883774, -0.03598108887672424, 0.5228878855705261, 0.19832295179367065, 0.009252145886421204, -0.004294052720069885, -0.4665387272834778, 0.4960920512676239, 0.23148056864738464, -0.1717555820941925, 0.27950039505958557, -0.026614561676979065, -0.014356967061758041, 0.07800403237342834, -0.13716121017932892, 0.3179115355014801, -0.14233726263046265, 0.0400337390601635, 0.17224761843681335, 0.13220471143722534, -0.21576963365077972, -0.4743692874908447, 0.10289262235164642, -0.0942770317196846, 0.30923646688461304, -0.22970572113990784, -0.5077734589576721, -0.041544683277606964, -0.022936318069696426, 0.18161824345588684, 0.2576059401035309, -0.004447221755981445, 0.1429220736026764, -0.1501823514699936, -0.04056491330265999, -0.44788506627082825, -0.0029925331473350525, 0.0598321408033371, -0.011337324976921082, -0.39170917868614197, 0.08940678089857101, 0.1538383811712265, 0.1640661209821701, -0.15799903869628906, 0.23903168737888336, -0.07043050229549408, -0.18309634923934937, 0.013650283217430115, -0.05142856761813164, -0.12515167891979218, 0.24234551191329956, -0.03067416325211525, 0.5547460913658142, 0.2553545832633972, -0.011654019355773926, 0.0679209753870964, 0.22577211260795593, 0.061805013567209244, -0.13249097764492035, -0.09658075869083405, 0.5790318846702576, 0.37521183490753174, 0.13184356689453125, -0.026325449347496033, -0.12614789605140686, 0.1851826012134552, 0.13196328282356262, -0.5890239477157593, -0.3041999936103821, -0.025464260950684547, 0.06116507947444916, 0.10598099231719971, -0.11864279955625534, -0.109608955681324, -0.2233482152223587, 0.29271066188812256, 0.02327505499124527, 0.26402539014816284, 0.29432225227355957, -0.061928488314151764, 0.3257799744606018, -0.14988307654857635, 0.22904935479164124, 0.1989220678806305, 0.10339664667844772, 0.0983714759349823, -0.03286922350525856, -0.08198967576026917, -0.06087258830666542, 0.2122766673564911, -0.036813005805015564, -0.13144606351852417, 0.04288360849022865, 0.18315793573856354, -0.005019852891564369, -0.25788214802742004, -0.45814311504364014, 0.19203290343284607, -0.0897383913397789, -0.34665364027023315, -0.0032887235283851624, -0.18506228923797607, -0.13191482424736023, -0.21522453427314758, -0.368660032749176, -0.530448853969574, -0.14432859420776367, 0.06672672182321548, 0.06096721068024635, -0.2880050241947174, 0.28174328804016113, -0.10607174038887024, 0.5381771326065063, -0.1982097625732422, -0.834086537361145, -0.3195113241672516, -0.1680605411529541, 0.03825066238641739, 0.004486449062824249, 0.1810360848903656, -0.14243313670158386, 0.12232616543769836, -0.06025974079966545, -0.1676768958568573, -0.32653939723968506, -0.5232313275337219, 0.05201265588402748, -0.2816547751426697, 0.2613244354724884, 0.3341739773750305, -0.1463819444179535, 0.24855780601501465, -0.35021352767944336, 0.31021836400032043, -0.09267829358577728, -0.15775302052497864, -0.15218012034893036, -0.039898425340652466, 0.09752868860960007, -0.4014829099178314, 0.13710647821426392, -0.22852343320846558, -0.3592148423194885, 0.5500940680503845, -0.0935797244310379, 0.13049578666687012, 0.21537216007709503, -0.14752572774887085, 0.20341825485229492, 0.08744905143976212, 0.09916378557682037, -0.024469105526804924, -0.11313239485025406, 0.3835934102535248, -0.07200004160404205, 0.04477372393012047, -0.08718174695968628, -0.22524791955947876, 0.023551952093839645, 0.10196962207555771, -0.12718334794044495, -0.3532455265522003, -0.1328827291727066, 0.4508613049983978, 0.039398785680532455, -0.10353628545999527, 0.05794808641076088, 0.3097321093082428, 0.1840718686580658, -0.08719182014465332, -0.35250550508499146, 0.3486923277378082, 0.050023991614580154, 0.10980639606714249, 0.2085542529821396, 0.2948125898838043, -0.1930929720401764, 0.23131747543811798, -0.08814956247806549, -0.2512388825416565, 0.4017568826675415, -0.10653678327798843, -0.04882458969950676, 0.11670081317424774, -0.18272894620895386, -0.1609153300523758, -0.13420847058296204, 0.08987584710121155, 0.051754795014858246, 0.08087912201881409, 0.10519903898239136, -0.1522812843322754, -0.08471161127090454, -0.07074260711669922, -0.2924991250038147, 0.3357419967651367, -0.07753059267997742, 0.22275970876216888, -0.0359073169529438, -0.2078806459903717, -0.34608039259910583, 0.07605573534965515, 0.3362549841403961, 0.5165064930915833, 0.22164386510849, 0.11179785430431366, -0.8198855519294739, 0.05713879317045212, -0.17996644973754883, 0.24078719317913055, 0.26305651664733887, 0.28205251693725586, -0.04013451188802719, -0.07761424034833908, -0.030919574201107025, 0.13357006013393402, 0.860714316368103, -0.11483122408390045, -0.04311074689030647, -0.030981987714767456, -0.18198148906230927, -0.1493053436279297, 0.09062670171260834, -0.062203094363212585, -0.11565504223108292, 0.08562099933624268, 0.5701722502708435, -0.5501270294189453, -0.05566457659006119, 0.06031278148293495, 0.10859106481075287, 0.07038819789886475, -0.3379138112068176, -0.020859375596046448, -0.23222699761390686, -0.3156515955924988, -0.18413177132606506, 0.36240145564079285, 0.2122081071138382, -0.22003653645515442, 0.18315592408180237, -0.2648859918117523, 0.00998850166797638, 0.25349923968315125, 0.22379109263420105, 0.2107907086610794, 0.050082363188266754, 0.23909874260425568, 0.19921979308128357, 0.2354288399219513, 0.19692163169384003, 0.5626815557479858, -0.10166975855827332, -0.8713430762290955, -0.03174278512597084, 0.22710871696472168, 0.18891514837741852, 0.24055516719818115, 0.14162637293338776, 0.6354058384895325, 0.3653635084629059, -0.2525288164615631, -0.1140490248799324, 0.1259751319885254, 0.18451404571533203, 0.28243258595466614, -0.3436683118343353, -0.6933102607727051, 0.3985527753829956, 0.30196866393089294, 0.018321722745895386, 0.11384572833776474, 0.2388060986995697, -0.5266292691230774, 0.13631995022296906, -0.09371645748615265, 1.012941598892212, 0.034261900931596756, 0.3416960835456848, 0.1463507115840912, -0.14132040739059448, 0.5845440626144409, -0.15736107528209686, 0.042299170047044754, -0.27921098470687866, -0.04353638365864754, -0.07381634414196014, -0.1196599081158638, 0.1337236613035202, 0.14360438287258148, -0.14965292811393738, -0.3133796155452728, -0.22756287455558777, 0.1809527575969696, -0.05890979990363121, 0.6372742056846619, -0.5089096426963806, -0.2268756628036499, -0.21543285250663757, -0.04415730759501457, -0.086776003241539, 0.15589222311973572, 0.1082184761762619, -0.25641313195228577, -0.24296487867832184, -0.37436920404434204, -0.22651857137680054, -0.04319387674331665, -0.08096647262573242, 0.006907839328050613, 0.3155162036418915, 0.00594019889831543, 0.4817683696746826, -0.04789220914244652, 0.5344086289405823, 0.05173623561859131, -0.212955042719841, 0.10782323032617569, -0.33970504999160767, 0.20868590474128723, -0.20088346302509308, -0.07256187498569489, 0.23032894730567932, 0.19616518914699554, -0.20661725103855133, 0.14232417941093445, 0.09897240996360779, -0.28977471590042114, -0.32019707560539246, -0.01033574715256691, -0.16475439071655273, -0.30216673016548157, -0.0835946649312973, 0.03312605246901512, -0.0814938098192215, -0.19487972557544708, -0.01722751557826996, 0.1926826387643814, -0.09658408164978027, -0.23608392477035522, 0.029861636459827423, -0.17285780608654022, -0.008513176813721657, 0.19539690017700195, 0.036998242139816284, -0.2357812225818634, 0.3701064884662628, 0.12363613396883011, -0.05074175074696541, 0.00910092145204544, -0.02814210206270218, 0.5344417095184326, -0.40105241537094116, 0.06965591758489609, 0.10171796381473541, -0.5424172282218933, -0.45597735047340393, 0.3014419674873352, 0.15025106072425842, 0.3015468716621399, -0.04441496729850769, -0.30057239532470703, -0.2521917223930359, 0.5345727205276489, 0.011072803288698196, 0.09982390701770782, 0.15030622482299805, 0.3228081464767456, -0.07168468832969666, 0.0029776208102703094, -0.21897679567337036, 0.12323454767465591, 0.32427549362182617, 0.0332956463098526, 0.14862534403800964, 0.1361294686794281, 0.4901144504547119, 0.011004514992237091, -0.046795837581157684, -0.012469174340367317, -0.13518857955932617, -0.015754342079162598, -0.45963799953460693, 0.2373901903629303, 0.10069771856069565, -0.1349630355834961, -0.0699998140335083, -0.19461870193481445, 0.12269806861877441, -0.16686180233955383, -0.024219084531068802, 0.2734717130661011, -0.15923964977264404, 0.3029191792011261, 0.08777986466884613, 0.11662568151950836, -0.011993639171123505, 0.075433649122715, 0.021362273022532463, 0.14949624240398407, 0.3698573708534241, 0.22684839367866516, -0.1853884607553482, 0.14839205145835876, -0.3064107894897461, 0.21041372418403625, 0.4812685549259186, 0.44494831562042236, -0.07309934496879578, 0.13756807148456573, -0.13655635714530945, -0.15095961093902588, 0.3047236204147339, 0.43041032552719116, -0.31558212637901306, -0.013653963804244995, 0.4308735728263855, 0.003410836448892951, -0.10395636409521103, 0.10745704919099808, 0.3451755940914154, -0.14958851039409637, 0.31323230266571045, 0.4774465560913086, 0.1622682362794876, 0.28626638650894165, -0.03136254474520683, -0.21692821383476257, 0.4006454348564148, 0.0653279572725296, 0.32750725746154785, 0.26957976818084717, -0.25577646493911743, -0.030586767941713333, 0.33466312289237976, 0.2670106887817383, 0.3517749309539795, -0.19520840048789978, -0.2730467915534973, 0.18559886515140533, -0.007925043813884258, 0.1296587735414505, 0.22197498381137848, 0.09584671258926392, 0.09527084231376648, 0.016597911715507507, 0.26568514108657837, 0.36771515011787415, 0.23001185059547424, 0.56290602684021, -0.24149049818515778, 0.19531802833080292, -0.0007178783416748047, 0.17898979783058167, 0.05587746575474739, -0.38219672441482544, -0.07257131487131119, -0.06259915977716446, -0.4383785128593445, -0.34286990761756897, -0.0973273366689682, -0.1865660697221756, 0.012963015586137772, -0.08568946272134781, 0.10304619371891022, -0.40137532353401184, 0.12118790298700333, 0.17356911301612854, 0.21942143142223358, -0.19370856881141663, 0.28165847063064575, 0.1743870973587036, -0.022508744150400162, 0.3493373990058899, 0.38051554560661316, -0.025712456554174423, 0.22481440007686615, 0.2430601418018341, 0.09023483097553253, -0.31418436765670776, 0.13100239634513855, -0.176459401845932, 0.170363649725914, 0.22396399080753326, -0.14772260189056396, 0.20579560101032257, 0.04009445756673813, -0.023593293502926826, -0.08145053684711456, -0.021006805822253227, -0.19820937514305115, -0.2278614342212677, 0.5451030135154724, -0.07465123385190964, 0.030841007828712463, 0.05001583695411682, -0.10898663848638535, -0.2605435252189636, -0.29896309971809387, 0.3882538080215454, 0.05608729273080826, 0.0397486537694931, -0.04398354887962341, 0.0018426291644573212, 0.1921437382698059, 0.15331906080245972, 0.22741922736167908, 0.33969148993492126, 0.1623947024345398, 0.1389240026473999, -0.3631088137626648, 0.044925231486558914, 0.049993786960840225, -0.31665706634521484, -0.11312838643789291, -0.22273549437522888, 0.2061775177717209, 0.060306206345558167, 0.00994332879781723, 0.025545388460159302, -0.028043750673532486, -0.22262150049209595, -0.20028164982795715, -0.24362757802009583, 0.2247268557548523, 0.2780548334121704, 0.1680707186460495, -0.08131783455610275, 0.01052777748554945, 0.2684175670146942, -0.159454807639122, -0.5856819748878479, 0.09265749156475067, 0.00014021247625350952, 0.06775276362895966, 0.4229591488838196, 0.3934895098209381, 0.5746386051177979, -0.14218635857105255, -0.18295876681804657, -0.08480748534202576, -0.38601619005203247, -0.5107131600379944, 0.32647886872291565, 0.10898388922214508, 0.19414034485816956, -0.45147475600242615, -0.2817329466342926, -0.17124266922473907, 0.12671592831611633, -0.15356354415416718, -0.30285364389419556, -0.4121992290019989, 0.19429725408554077, -0.4412999153137207, -0.14268481731414795, -0.2718992233276367, 0.2987375259399414, 0.12397600710391998, 0.13095618784427643, -0.027609333395957947, -0.027188170701265335, 0.5261155366897583, -0.2562793493270874, -0.2856143116950989, 0.005338512361049652, -0.04843772202730179, -0.06113004684448242, -0.05580491945147514, -0.6472901701927185, -0.1292894035577774, 0.2599875330924988, 0.04785950854420662, 0.1883537620306015, 0.17676332592964172, 0.07259051501750946, -0.10832257568836212, -0.2758171260356903, 0.134662464261055, 0.21281187236309052, -0.03191046416759491, -0.029560714960098267, -0.3000999987125397 ]
https://github.com/huggingface/datasets/issues/5624
Hi @lithafnium, thanks for reporting. Please note that you can use the "Community" tab in the corresponding dataset page to start any discussion: https://huggingface.co/datasets/glue/discussions Indeed this issue was already raised there (https://huggingface.co/datasets/glue/discussions/5) and answered: https://huggingface.co/datasets/glue/discussions/5#63907885937867f0cb3cde31 > The test labels are not public. > > Note this dataset belongs to a benchmark: people send their predictions for the test split to GLUE (https://gluebenchmark.com/) and then they get a score in their leaderboard...
glue datasets returning -1 for test split
### Describe the bug Downloading any dataset from GLUE has -1 as class labels for test split. Train and validation have regular 0/1 class labels. This is also present in the dataset card online. ### Steps to reproduce the bug ``` dataset = load_dataset("glue", "sst2") for d in dataset: # prints out -1 print(d["label"] ``` ### Expected behavior Expected behavior should be 0/1 instead of -1. ### Environment info - `datasets` version: 2.4.0 - Platform: Linux-5.15.0-46-generic-x86_64-with-glibc2.17 - Python version: 3.8.16 - PyArrow version: 8.0.0 - Pandas version: 1.5.3
71
glue datasets returning -1 for test split ### Describe the bug Downloading any dataset from GLUE has -1 as class labels for test split. Train and validation have regular 0/1 class labels. This is also present in the dataset card online. ### Steps to reproduce the bug ``` dataset = load_dataset("glue", "sst2") for d in dataset: # prints out -1 print(d["label"] ``` ### Expected behavior Expected behavior should be 0/1 instead of -1. ### Environment info - `datasets` version: 2.4.0 - Platform: Linux-5.15.0-46-generic-x86_64-with-glibc2.17 - Python version: 3.8.16 - PyArrow version: 8.0.0 - Pandas version: 1.5.3 Hi @lithafnium, thanks for reporting. Please note that you can use the "Community" tab in the corresponding dataset page to start any discussion: https://huggingface.co/datasets/glue/discussions Indeed this issue was already raised there (https://huggingface.co/datasets/glue/discussions/5) and answered: https://huggingface.co/datasets/glue/discussions/5#63907885937867f0cb3cde31 > The test labels are not public. > > Note this dataset belongs to a benchmark: people send their predictions for the test split to GLUE (https://gluebenchmark.com/) and then they get a score in their leaderboard...
[ -0.008659586310386658, -0.27251213788986206, 0.006364636123180389, 0.34089457988739014, 0.1855892539024353, 0.02595372498035431, 0.3098851442337036, 0.35696011781692505, 0.32715338468551636, 0.09259375184774399, -0.2560388743877411, 0.20387837290763855, -0.04763593524694443, 0.261667937040329, -0.02965478040277958, -0.21051178872585297, -0.058192864060401917, 0.1367165744304657, -0.32268205285072327, -0.2868114113807678, -0.20859023928642273, 0.2617974281311035, -0.25639766454696655, 0.2532210946083069, -0.3151036500930786, 0.006956927478313446, -0.2990688383579254, -0.00580756738781929, -0.17283688485622406, -0.28336912393569946, 0.49357253313064575, -0.08615437150001526, 0.1070118099451065, 0.2407643347978592, -0.00010980534716509283, -0.19274327158927917, 0.24595923721790314, 0.06086623668670654, -0.04456636682152748, -0.07229764759540558, -0.2525678277015686, -0.04031752794981003, 0.06683129072189331, -0.05573227256536484, -0.3425616919994354, 0.1567762792110443, -0.10615308582782745, -0.09365358203649521, 0.09183917939662933, 0.20568683743476868, 0.22980597615242004, 0.0031830593943595886, -0.0586722269654274, -0.07694469392299652, 0.4383130371570587, -0.08787242323160172, -0.00769767165184021, 0.30264201760292053, 0.1759743094444275, -0.220628559589386, 0.09366841614246368, 0.32427778840065, 0.06913300603628159, 0.20956818759441376, -0.013308890163898468, 0.024469733238220215, -0.029453720897436142, -0.48779192566871643, -0.017233585938811302, 0.26022860407829285, 0.13506269454956055, -0.22748373448848724, -0.20505361258983612, -0.19395628571510315, 0.0023878812789916992, 0.12190770357847214, 0.13562443852424622, 0.2702396512031555, 0.2684861123561859, 0.4513465464115143, 0.005382135510444641, 0.12781132757663727, -0.09005887806415558, 0.10740891098976135, -0.10376738011837006, 0.47763511538505554, -0.06799964606761932, 0.20633648335933685, 0.19303110241889954, 0.2125660479068756, -0.3456401526927948, -0.02788364700973034, -0.1593501716852188, 0.15124963223934174, -0.4769323468208313, -0.06276926398277283, -0.16148608922958374, -0.003994148224592209, -0.1222936362028122, 0.14725017547607422, -0.27800285816192627, 0.07902245223522186, 0.11738824844360352, -0.08700938522815704, 0.24457113444805145, 0.3432873487472534, 0.3557995855808258, 0.4852420389652252, 0.2121257781982422, -0.16117379069328308, -0.03494154289364815, 0.12975531816482544, -0.04409577697515488, -0.0762079507112503, 0.16020935773849487, 0.09791268408298492, -0.11237955093383789, -0.16871386766433716, -0.45602160692214966, 0.12283788621425629, -0.309141606092453, 0.2257719486951828, 0.011863388121128082, 0.048299722373485565, 0.00029341503977775574, 0.012472005560994148, 0.09394074976444244, 0.03729642182588577, -0.2046554833650589, -0.30994150042533875, -0.13418622314929962, 0.1755550652742386, -0.3669952154159546, 0.0053513143211603165, 0.16679884493350983, -0.012180767953395844, -0.14092126488685608, 0.025883011519908905, -0.19822052121162415, -0.1974395215511322, 0.09600045531988144, 0.020617950707674026, 0.19195668399333954, 0.3280249238014221, -0.28487342596054077, 0.4723176956176758, 0.20199370384216309, -0.36044204235076904, 0.053106218576431274, -0.23114502429962158, -0.17807014286518097, -0.24029234051704407, -0.0988936573266983, 0.2690511643886566, -0.28558531403541565, 0.16200226545333862, -0.15991568565368652, 0.1222584918141365, -0.10976214706897736, 0.22542333602905273, 0.18354640901088715, -0.26828694343566895, -0.0954018086194992, -0.044080253690481186, 0.2525712549686432, 0.18044878542423248, -0.34738126397132874, -0.10306184738874435, 0.010237812995910645, -0.14669568836688995, -0.00891486182808876, 0.09796712547540665, 0.07498820126056671, -0.01636546105146408, -0.30373314023017883, 0.3088143765926361, 0.19299986958503723, -0.43443697690963745, -0.5633662343025208, 0.2486727237701416, -0.37779176235198975, -0.3532160222530365, -0.17486785352230072, 0.15793974697589874, 0.21334689855575562, 0.16285032033920288, -0.11377182602882385, 0.08205167949199677, 0.12381623685359955, 0.03720301389694214, -0.6561002731323242, -0.116551473736763, 0.2819647490978241, 0.12425018846988678, 0.24127474427223206, -0.04040146991610527, 0.06006770208477974, -0.1278841644525528, 0.37128421664237976, 0.12296347320079803, 0.12071579694747925, 0.007230708375573158, 0.44008904695510864, -0.016652580350637436, 0.30151838064193726, -0.3458874523639679, -0.36248305439949036, 0.3102073073387146, -0.06599738448858261, 0.16796350479125977, 0.32219719886779785, -0.17072491347789764, -0.3481232523918152, -0.2701348066329956, -0.17482095956802368, -0.28515127301216125, 0.1385614275932312, -0.039525847882032394, 0.49803245067596436, 0.0158097967505455, 0.028495922684669495, 0.3868620693683624, 0.08814521878957748, 0.3640489876270294, -0.08501244336366653, 0.3286413252353668, 0.13492538034915924, -0.20312011241912842, -0.041574493050575256, 0.14374423027038574, 0.2923169732093811, -0.16437400877475739, -0.01196565292775631, 0.5442789793014526, 0.010655414313077927, -0.04944856837391853, 0.07809542119503021, -0.03776566684246063, 0.19144734740257263, -0.44094011187553406, -0.2444542795419693, 0.18495695292949677, 0.010829571634531021, 0.028132788836956024, -0.03546236827969551, 0.4307402968406677, 0.03739730268716812, 0.06316529214382172, -0.2489854097366333, 0.3378845751285553, -0.2542757987976074, -0.1432948261499405, -0.2685411870479584, -0.22959017753601074, 0.062293026596307755, -0.3415147066116333, 0.2974228858947754, 0.1973133087158203, 0.027391955256462097, 0.13946837186813354, 0.1543102115392685, -0.2064099758863449, 0.13872069120407104, -0.1598283052444458, -0.29551225900650024, 0.06595063209533691, 0.431947261095047, 0.7693026065826416, 0.3545411229133606, 0.22347316145896912, 0.007157685235142708, 0.0488760769367218, -0.4022466838359833, -0.03704243525862694, 0.1085890382528305, 0.04226917773485184, -0.1936902552843094, -0.10096267610788345, 0.20999374985694885, -0.1309979259967804, -0.1744689643383026, 0.3547781705856323, -0.11699812114238739, 0.16499480605125427, -0.5078145861625671, 0.004971258342266083, -0.3093055486679077, -0.18233191967010498, -0.3066549003124237, -0.20369017124176025, -0.19289709627628326, -0.3871302604675293, 0.11484034359455109, -0.1549585610628128, 0.027390435338020325, 0.14367833733558655, 0.03963147848844528, 0.1384049952030182, -0.24550595879554749, 0.01725742779672146, -0.14256425201892853, 0.0802888423204422, -0.34924978017807007, 0.029783744364976883, -0.25334274768829346, 0.2749694883823395, 0.28371942043304443, -0.1895335465669632, -0.18311363458633423, 0.03606564551591873, -0.22033393383026123, 0.07165677845478058, -0.24542555212974548, 0.23671023547649384, 0.35222116112709045, -0.18418176472187042, -0.006363414227962494, -0.00015213340520858765, 0.17216572165489197, -0.15664014220237732, -0.0017760619521141052, -0.027791239321231842, 0.1619996726512909, 0.22718359529972076, -0.5980945825576782, -0.3737821578979492, -0.12298426777124405, 0.007301069796085358, 0.2930547595024109, -0.1046910434961319, -0.14193429052829742, -0.0729353278875351, -0.2088119387626648, 0.10964260250329971, -0.2825435400009155, 0.08194844424724579, -0.3583664000034332, -0.291395902633667, 0.1942310482263565, -0.004257123917341232, -0.30734315514564514, -0.050862330943346024, -0.010751262307167053, -0.0203855000436306, -0.27355870604515076, -0.14771614968776703, -0.31654879450798035, -0.27118173241615295, 0.0684172660112381, 0.12953047454357147, 0.023365287110209465, 0.04327775165438652, -0.04610472917556763, 0.10549876093864441, -0.21125957369804382, -0.03866923227906227, 0.37102943658828735, -0.10604581981897354, 0.006083671003580093, -0.2663959562778473, 0.03177991136908531, 0.25629279017448425, 0.32229167222976685, 0.13794207572937012, -0.053455911576747894, -0.15933482348918915, -0.21278834342956543, 0.21991939842700958, 0.06567873805761337, -0.22284990549087524, 0.1369662582874298, -0.020393364131450653, 0.1279239058494568, 0.1604679673910141, 0.22483816742897034, -0.00937514379620552, -0.11437316238880157, 0.36837589740753174, -0.1498521864414215, -0.3365302085876465, -0.35647743940353394, -0.01935856230556965, -0.17595072090625763, 0.07634346932172775, 0.32781824469566345, 0.059384785592556, -0.04849845916032791, 0.1886885166168213, 0.13014279305934906, -0.24753397703170776, 0.16462092101573944, -0.20669732987880707, -0.04365887865424156, -0.06930612027645111, 0.04486481100320816, 0.10410825908184052, 0.2057286947965622, -0.018936872482299805, -0.0741090178489685, 0.27632981538772583, 0.1673440933227539, 0.6729431748390198, -0.30082613229751587, 0.3811225891113281, 0.1471644788980484, 0.05786128342151642, -0.30994629859924316, -0.45695018768310547, -0.43343204259872437, -0.3322702944278717, 0.47175708413124084, 0.16441288590431213, -0.31829988956451416, -0.15373356640338898, 0.5054425597190857, -0.14341199398040771, -0.0029079392552375793, -0.12566237151622772, -0.21342647075653076, -0.0347830131649971, 0.19042551517486572, 0.1598861962556839, 0.280537873506546, 0.014016121625900269, -0.13155853748321533, -0.02827383577823639, -0.046702802181243896, -0.278410404920578, 0.2974461317062378, -0.06345944106578827, 0.19856825470924377, -0.08946861326694489, 0.10136141628026962, 0.3037533462047577, 0.11713723838329315, -0.3066243529319763, 0.3103629946708679, -0.3296847939491272, -0.015900123864412308, 0.0781705230474472, -0.3468509912490845, 0.25831860303878784, 0.18774782121181488, -0.1561204046010971, -0.23850537836551666, -0.42333364486694336, 0.27790313959121704, -0.41033098101615906, 0.23403897881507874, 0.3684598207473755, 0.11154727637767792, -0.13989980518817902, -0.12935824692249298, 0.3971930146217346, 0.1340424120426178, -0.25925207138061523, 0.26436126232147217, 0.30308854579925537, -0.5288540124893188, 0.22276030480861664, -0.04764411970973015, 0.8691694140434265, -0.05371018871665001, -0.05403239652514458, 0.15762269496917725, -0.5093261003494263, 0.6290732622146606, 0.06443516910076141, 0.0025755949318408966, -0.4398185908794403, -0.2804073989391327, -0.03638913482427597, 0.026569344103336334, -0.098171666264534, 0.30706971883773804, -0.1557748019695282, 0.28997206687927246, -0.0546036958694458, 0.19455790519714355, 0.013283107429742813, 0.16457605361938477, 0.14610572159290314, 0.08842915296554565, -0.13003230094909668, 0.1959691345691681, 0.025897081941366196, 0.2599881887435913, -0.007623434066772461, 0.05267435684800148, -0.016221649944782257, -0.18376225233078003, -0.37043559551239014, -0.06104882434010506, -0.3797054886817932, -0.0034080371260643005, 0.3280033469200134, 0.067710742354393, -0.11381551623344421, 0.12007133662700653, 0.22237688302993774, 0.3320155143737793, -0.11059243977069855, 0.057734083384275436, 0.2395261526107788, 0.3821583688259125, 0.30827125906944275, -0.0036587826907634735, 0.38755711913108826, 0.19897441565990448, -0.12129437178373337, -0.21256548166275024, -0.05211979150772095, 0.2724097967147827, -0.179459348320961, -0.011505968868732452, 0.05457402020692825, -0.4386347830295563, 0.12595883011817932, -0.09633428603410721, 0.34128451347351074, -0.2160082459449768, 0.19768665730953217, 0.0390145443379879, -0.19933198392391205, 0.15102191269397736, 0.13580448925495148, -0.5870475172996521, -0.12180903553962708, 0.4224340319633484, -0.3034367859363556, 0.15108820796012878, -0.054715998470783234, -0.02336139976978302, -0.16922950744628906, -0.20428037643432617, 0.20221778750419617, 0.3612957000732422, -0.5916276574134827, 0.11199359595775604, -0.1108914166688919, -0.2252618968486786, 0.08154688030481339, 0.025066815316677094, 0.23848256468772888, -0.04746782034635544, -0.08617250621318817, -0.11908837407827377, 0.10793779045343399, 0.05070187896490097, -0.04700670391321182, 0.3168872594833374, 0.052526749670505524, 0.1366865187883377, 0.10914899408817291, 0.0025854017585515976, -0.34137603640556335, 0.03180192410945892, -0.1602584421634674, -0.010113263502717018, 0.15764836966991425, 0.08669443428516388, 0.02060430496931076, -0.04935731738805771, 0.1522301286458969, 0.12391268461942673, 0.06559927016496658, -0.2133261263370514, -0.21509379148483276, 0.08120717108249664, -0.06519773602485657, 0.081023670732975, 0.012676116079092026, -0.0032381340861320496, -0.01362582016736269, 0.03379000350832939, 0.34198951721191406, 0.27539485692977905, 0.009356284514069557, 0.5131756067276001, 0.17470818758010864, 0.0334564670920372, -0.09162850677967072, 0.11207526177167892, -0.21492797136306763, -0.013137239962816238, -0.03506351634860039, 0.13182193040847778, -0.027005145326256752, 0.04026274383068085, -0.06664345413446426, 0.09354035556316376, -0.3187282979488373, 0.025986094027757645, 0.08923934400081635, -0.204997718334198, 0.11978845298290253, 0.021163735538721085, 0.5375991463661194, -0.0459735281765461, -0.16305015981197357, -0.09736502170562744, 0.006574850529432297, 0.27542582154273987, 0.0848495215177536, 0.028336770832538605, 0.20857712626457214, 0.20186112821102142, 0.18318575620651245, 0.40793341398239136, -0.03594954311847687, 0.15241961181163788, -0.14380021393299103, -0.006156839430332184, 0.459086537361145, 0.00026011280715465546, 0.1756225973367691, 0.32830610871315, -0.2996634542942047, 0.0016012396663427353, 0.31227216124534607, -0.6042319536209106, -0.18208003044128418, 0.10174176096916199, 0.21774834394454956, 0.5439413189888, 0.096981942653656, 0.20199084281921387, 0.08448143303394318, 0.14411398768424988, 0.01968514546751976, 0.22118891775608063, -0.4063173532485962, 0.1871379315853119, -0.006240248680114746, 0.6586114764213562, -0.6284839510917664, -0.27110224962234497, -0.02182997763156891, 0.10298047214746475, -0.1060800552368164, -0.1240016371011734, -0.13690808415412903, 0.08994899690151215, -0.47409772872924805, 0.20790722966194153, -0.1348307579755783, -0.08376692235469818, 0.5701699256896973, -0.036161888390779495, -0.057362284511327744, -0.16762615740299225, -0.48639804124832153, 0.11802121251821518, 0.3923027217388153, -0.17343585193157196, 0.12879614531993866, -0.3116999864578247, 0.09445731341838837, 0.18992109596729279, 0.1517084240913391, 0.09987730532884598, -0.01826748251914978, -0.10223429650068283, -0.3786143958568573, -0.08683311939239502, -0.026990797370672226, -0.03152526170015335, 0.27983489632606506, -0.10238520801067352, -0.08986861258745193, 0.37801364064216614, 0.21552982926368713, -0.1949055939912796, -0.1385689675807953, -0.12771745026111603, 0.12052899599075317, -0.523370087146759, 0.547279953956604, -0.20046654343605042, -0.1293323040008545, -0.26776570081710815, -0.008542455732822418, -0.15151473879814148, 0.00766315683722496, 0.01708124205470085, -0.1242595762014389, 0.23519641160964966, -0.3868282735347748, 0.11359493434429169, 0.13100440800189972, 0.3580668270587921, -0.06266600638628006, 0.028871001675724983, -0.12649977207183838, -0.03249272704124451, -0.4009953439235687, -0.03177890181541443, 0.11737257987260818, -0.045137032866477966, 0.004866618663072586, -0.10715748369693756, -0.16440844535827637, 0.015229430049657822, 0.15307018160820007, 0.5916143655776978, 0.08973205834627151, -0.07634016871452332, -0.20254912972450256, 0.19960199296474457, -0.14227503538131714, -0.07758165150880814, 0.2666252851486206, -0.36946749687194824, 0.17400136590003967, 0.057012785226106644, 0.04304264485836029, 0.31066083908081055, -0.086112841963768, 0.005195707082748413, -0.1459527313709259, 0.2664029598236084, 0.14553768932819366, 0.3619134724140167, 0.2144542932510376, 0.16373643279075623, -0.3692317605018616, -0.17040568590164185, -0.3291045129299164, 0.04765406996011734, -0.37978821992874146, 0.36307835578918457, 0.015400603413581848, -0.1853790432214737, -0.10118484497070312, 0.07558269798755646, 0.4625903367996216, 0.47040995955467224, -0.41292905807495117, 0.14106915891170502, -0.11175521463155746, 0.02681206911802292, 0.2410496026277542, 0.1657443642616272, 0.08562755584716797, 0.12789234519004822, -0.00083121657371521, -0.6378000974655151, 0.22222992777824402, -0.3217430114746094, -0.10901156067848206, -0.142171248793602, 0.433491587638855, 0.5821210145950317, -0.27476397156715393, -0.5529354810714722, -0.42484235763549805, 0.4078432321548462, 0.034872427582740784, -0.3005245327949524, 0.03546835482120514, 0.13229325413703918, 0.1559857726097107, 0.061260566115379333, 0.1424504518508911, 0.32043683528900146, -0.07936987280845642, 0.4065796136856079, -0.25799480080604553 ]
https://github.com/huggingface/datasets/issues/5613
Reopening, since I think the docs should inform the user of this problem. For example, [this page](https://huggingface.co/docs/datasets/installation) says > Datasets is tested on Python 3.7+. but it should probably say that Beam Datasets do not work with Python 3.10 (or link to a known issues page).
Version mismatch with multiprocess and dill on Python 3.10
### Describe the bug Grabbing the latest version of `datasets` and `apache-beam` with `poetry` using Python 3.10 gives a crash at runtime. The crash is ``` File "/Users/adpauls/sc/git/DSI-transformers/data/NQ/create_NQ_train_vali.py", line 1, in <module> import datasets File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/__init__.py", line 43, in <module> from .arrow_dataset import Dataset File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 65, in <module> from .arrow_reader import ArrowReader File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_reader.py", line 30, in <module> from .download.download_config import DownloadConfig File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/__init__.py", line 9, in <module> from .download_manager import DownloadManager, DownloadMode File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/download_manager.py", line 35, in <module> from ..utils.py_utils import NestedDataStructure, map_nested, size_str File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 40, in <module> import multiprocess.pool File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 609, in <module> class ThreadPool(Pool): File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 611, in ThreadPool from .dummy import Process File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/dummy/__init__.py", line 87, in <module> class Condition(threading._Condition): AttributeError: module 'threading' has no attribute '_Condition'. Did you mean: 'Condition'? ``` I think this is a bad interaction of versions from `dill`, `multiprocess`, `apache-beam`, and `threading` from the Python (3.10) standard lib. Upgrading `multiprocess` to a version that does not crash like this is not possible because `apache-beam` pins `dill` to and old version: ``` Because multiprocess (0.70.10) depends on dill (>=0.3.2) and apache-beam (2.45.0) depends on dill (>=0.3.1.1,<0.3.2), multiprocess (0.70.10) is incompatible with apache-beam (2.45.0). And because no versions of apache-beam match >2.45.0,<3.0.0, multiprocess (0.70.10) is incompatible with apache-beam (>=2.45.0,<3.0.0). So, because yyy depends on both apache-beam (^2.45.0) and multiprocess (0.70.10), version solving failed. ``` Perhaps it is not right to file a bug here, but I'm not totally sure whose fault it is. And in any case, this is an immediate blocker to using `datasets` out of the box. Possibly related to https://github.com/huggingface/datasets/issues/5232. ### Steps to reproduce the bug Steps to reproduce: 1. Make a poetry project with this configuration ``` [tool.poetry] name = "yyy" version = "0.1.0" description = "" authors = ["Adam Pauls <adpauls@gmail.com>"] readme = "README.md" packages = [{ include = "xxx" }] [tool.poetry.dependencies] python = ">=3.10,<3.11" datasets = "^2.10.1" apache-beam = "^2.45.0" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" ``` 2. `poetry install`. 3. `poetry run python -c "import datasets"`. ### Expected behavior Script runs. ### Environment info Python 3.10. Here are the versions installed by `poetry`: ``` β€’β€’ Installing frozenlist (1.3.3) β€’ Installing idna (3.4) β€’ Installing multidict (6.0.4) β€’ Installing aiosignal (1.3.1) β€’ Installing async-timeout (4.0.2) β€’ Installing attrs (22.2.0) β€’ Installing certifi (2022.12.7) β€’ Installing charset-normalizer (3.1.0) β€’ Installing six (1.16.0) β€’ Installing urllib3 (1.26.14) β€’ Installing yarl (1.8.2) β€’ Installing aiohttp (3.8.4) β€’ Installing dill (0.3.1.1) β€’ Installing docopt (0.6.2) β€’ Installing filelock (3.9.0) β€’ Installing numpy (1.22.4) β€’ Installing pyparsing (3.0.9) β€’ Installing protobuf (3.19.4) β€’ Installing packaging (23.0) β€’ Installing python-dateutil (2.8.2) β€’ Installing pytz (2022.7.1) β€’ Installing pyyaml (6.0) β€’ Installing requests (2.28.2) β€’ Installing tqdm (4.65.0) β€’ Installing typing-extensions (4.5.0) β€’ Installing cloudpickle (2.2.1) β€’ Installing crcmod (1.7) β€’ Installing fastavro (1.7.2) β€’ Installing fasteners (0.18) β€’ Installing fsspec (2023.3.0) β€’ Installing grpcio (1.51.3) β€’ Installing hdfs (2.7.0) β€’ Installing httplib2 (0.20.4) β€’ Installing huggingface-hub (0.12.1) β€’ Installing multiprocess (0.70.9) β€’ Installing objsize (0.6.1) β€’ Installing orjson (3.8.7) β€’ Installing pandas (1.5.3) β€’ Installing proto-plus (1.22.2) β€’ Installing pyarrow (9.0.0) β€’ Installing pydot (1.4.2) β€’ Installing pymongo (3.13.0) β€’ Installing regex (2022.10.31) β€’ Installing responses (0.18.0) β€’ Installing xxhash (3.2.0) β€’ Installing zstandard (0.20.0) β€’ Installing apache-beam (2.45.0) β€’ Installing datasets (2.10.1) ```
46
Version mismatch with multiprocess and dill on Python 3.10 ### Describe the bug Grabbing the latest version of `datasets` and `apache-beam` with `poetry` using Python 3.10 gives a crash at runtime. The crash is ``` File "/Users/adpauls/sc/git/DSI-transformers/data/NQ/create_NQ_train_vali.py", line 1, in <module> import datasets File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/__init__.py", line 43, in <module> from .arrow_dataset import Dataset File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 65, in <module> from .arrow_reader import ArrowReader File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_reader.py", line 30, in <module> from .download.download_config import DownloadConfig File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/__init__.py", line 9, in <module> from .download_manager import DownloadManager, DownloadMode File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/download_manager.py", line 35, in <module> from ..utils.py_utils import NestedDataStructure, map_nested, size_str File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 40, in <module> import multiprocess.pool File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 609, in <module> class ThreadPool(Pool): File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 611, in ThreadPool from .dummy import Process File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/dummy/__init__.py", line 87, in <module> class Condition(threading._Condition): AttributeError: module 'threading' has no attribute '_Condition'. Did you mean: 'Condition'? ``` I think this is a bad interaction of versions from `dill`, `multiprocess`, `apache-beam`, and `threading` from the Python (3.10) standard lib. Upgrading `multiprocess` to a version that does not crash like this is not possible because `apache-beam` pins `dill` to and old version: ``` Because multiprocess (0.70.10) depends on dill (>=0.3.2) and apache-beam (2.45.0) depends on dill (>=0.3.1.1,<0.3.2), multiprocess (0.70.10) is incompatible with apache-beam (2.45.0). And because no versions of apache-beam match >2.45.0,<3.0.0, multiprocess (0.70.10) is incompatible with apache-beam (>=2.45.0,<3.0.0). So, because yyy depends on both apache-beam (^2.45.0) and multiprocess (0.70.10), version solving failed. ``` Perhaps it is not right to file a bug here, but I'm not totally sure whose fault it is. And in any case, this is an immediate blocker to using `datasets` out of the box. Possibly related to https://github.com/huggingface/datasets/issues/5232. ### Steps to reproduce the bug Steps to reproduce: 1. Make a poetry project with this configuration ``` [tool.poetry] name = "yyy" version = "0.1.0" description = "" authors = ["Adam Pauls <adpauls@gmail.com>"] readme = "README.md" packages = [{ include = "xxx" }] [tool.poetry.dependencies] python = ">=3.10,<3.11" datasets = "^2.10.1" apache-beam = "^2.45.0" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" ``` 2. `poetry install`. 3. `poetry run python -c "import datasets"`. ### Expected behavior Script runs. ### Environment info Python 3.10. Here are the versions installed by `poetry`: ``` β€’β€’ Installing frozenlist (1.3.3) β€’ Installing idna (3.4) β€’ Installing multidict (6.0.4) β€’ Installing aiosignal (1.3.1) β€’ Installing async-timeout (4.0.2) β€’ Installing attrs (22.2.0) β€’ Installing certifi (2022.12.7) β€’ Installing charset-normalizer (3.1.0) β€’ Installing six (1.16.0) β€’ Installing urllib3 (1.26.14) β€’ Installing yarl (1.8.2) β€’ Installing aiohttp (3.8.4) β€’ Installing dill (0.3.1.1) β€’ Installing docopt (0.6.2) β€’ Installing filelock (3.9.0) β€’ Installing numpy (1.22.4) β€’ Installing pyparsing (3.0.9) β€’ Installing protobuf (3.19.4) β€’ Installing packaging (23.0) β€’ Installing python-dateutil (2.8.2) β€’ Installing pytz (2022.7.1) β€’ Installing pyyaml (6.0) β€’ Installing requests (2.28.2) β€’ Installing tqdm (4.65.0) β€’ Installing typing-extensions (4.5.0) β€’ Installing cloudpickle (2.2.1) β€’ Installing crcmod (1.7) β€’ Installing fastavro (1.7.2) β€’ Installing fasteners (0.18) β€’ Installing fsspec (2023.3.0) β€’ Installing grpcio (1.51.3) β€’ Installing hdfs (2.7.0) β€’ Installing httplib2 (0.20.4) β€’ Installing huggingface-hub (0.12.1) β€’ Installing multiprocess (0.70.9) β€’ Installing objsize (0.6.1) β€’ Installing orjson (3.8.7) β€’ Installing pandas (1.5.3) β€’ Installing proto-plus (1.22.2) β€’ Installing pyarrow (9.0.0) β€’ Installing pydot (1.4.2) β€’ Installing pymongo (3.13.0) β€’ Installing regex (2022.10.31) β€’ Installing responses (0.18.0) β€’ Installing xxhash (3.2.0) β€’ Installing zstandard (0.20.0) β€’ Installing apache-beam (2.45.0) β€’ Installing datasets (2.10.1) ``` Reopening, since I think the docs should inform the user of this problem. For example, [this page](https://huggingface.co/docs/datasets/installation) says > Datasets is tested on Python 3.7+. but it should probably say that Beam Datasets do not work with Python 3.10 (or link to a known issues page).
[ -0.3771491050720215, 0.05075012147426605, -0.0677495002746582, 0.3744870722293854, 0.14260713756084442, -0.14788541197776794, 0.1988992542028427, 0.3340210020542145, -0.2787078619003296, 0.07854893803596497, -0.10015977919101715, 0.5905037522315979, -0.30559566617012024, -0.24437648057937622, 0.034758809953927994, -0.3059857487678528, 0.17927229404449463, -0.024392273277044296, -0.26562806963920593, 0.10068636387586594, -0.20694118738174438, 0.4414686858654022, -0.18588438630104065, 0.1186429113149643, 0.11099053919315338, -0.17321382462978363, -0.109010711312294, 0.471102237701416, -0.1678667813539505, -0.35548120737075806, 0.09256860613822937, -0.0627022236585617, 0.1993485987186432, 0.46068626642227173, -0.00011645458289422095, 0.014273226261138916, 0.25311845541000366, -0.004719652235507965, -0.0787554383277893, -0.32511788606643677, -0.0379839763045311, -0.29523491859436035, 0.29448819160461426, -0.2466374784708023, 0.23078951239585876, 0.04641485586762428, -0.15387694537639618, -0.5855278372764587, 0.4000190496444702, 0.26268723607063293, 0.2108204960823059, 0.5566229820251465, 0.2645672857761383, 0.062321312725543976, 0.3858068585395813, -0.27792662382125854, -0.144562229514122, 0.3000940978527069, 0.47174397110939026, -0.19341802597045898, -0.2364504039287567, 0.37835782766342163, -0.09898190200328827, -0.06089708209037781, 0.24347244203090668, -0.17108792066574097, 0.19381387531757355, 0.05071767047047615, -0.08306194841861725, 0.0799616128206253, 0.318152517080307, -0.5332954525947571, -0.5185448527336121, -0.05555492639541626, -0.08744659274816513, -0.13847284018993378, 0.17303186655044556, 0.02480042353272438, -0.19108784198760986, -0.007703850977122784, -0.09441782534122467, -0.2323417067527771, -0.001021556556224823, 0.1407811939716339, -0.032397039234638214, 0.42305251955986023, 0.13243001699447632, 0.11619878560304642, 0.18598045408725739, -0.008739027194678783, 0.19841168820858002, 0.18343062698841095, 0.038103096187114716, -0.10025951266288757, -0.5236876010894775, 0.028180301189422607, -0.04662034660577774, -0.4686957001686096, -0.06649869680404663, 0.2146214097738266, 0.06593786925077438, 0.02649715170264244, 0.1816551685333252, -0.07066027820110321, 0.268893301486969, 0.011092934757471085, 0.1624245047569275, 0.10751040279865265, 0.277981698513031, 0.05913400650024414, 0.1470235288143158, 0.1777699738740921, 0.1277209222316742, -0.42593836784362793, -0.004444889724254608, 0.33384281396865845, 0.24817080795764923, -0.020884178578853607, -0.21985694766044617, -0.02022601291537285, -0.034029461443424225, -0.14992167055606842, -0.15055790543556213, 0.31546375155448914, -0.005792681127786636, 0.6994984149932861, 0.23452165722846985, 0.33138638734817505, -0.37033793330192566, 0.09669221937656403, -0.03803326189517975, -0.007760604843497276, -0.09806415438652039, -0.009366508573293686, 0.08247074484825134, 0.07782186567783356, 0.2409972846508026, 0.053916968405246735, -0.35119661688804626, -0.0632229745388031, 0.2758978605270386, -0.05122148245573044, -0.25019022822380066, 0.09302616119384766, -0.12462964653968811, 0.2478582113981247, -0.04940158873796463, -0.007034115493297577, -0.12431572377681732, 0.15940751135349274, -0.02677891030907631, -0.30467358231544495, -0.35844776034355164, 0.20549336075782776, 0.1649722456932068, 0.11778299510478973, 0.2680194675922394, -0.037194810807704926, 0.31983092427253723, -0.05087437108159065, 0.06688746064901352, -0.3055233061313629, -0.18569408357143402, -0.3872925043106079, 0.09304264932870865, 0.37670332193374634, -0.48286473751068115, -0.12508031725883484, -0.2500394284725189, -0.051939211785793304, 0.022847743704915047, 0.010737424716353416, -0.10082399100065231, -0.06256026029586792, -0.04162249714136124, -0.27856218814849854, 0.5358603000640869, -0.7454887628555298, -0.21449045836925507, 0.2793681025505066, 0.013429000973701477, 0.0008905753493309021, 0.13734816014766693, 0.09480143338441849, 0.1945262849330902, 0.10826367884874344, 0.2240496277809143, 0.21739034354686737, 0.12036001682281494, 0.11721640080213547, -0.2870672345161438, -0.2450360208749771, -0.1673867255449295, 0.2454981803894043, 0.2528204619884491, -0.3055920898914337, -0.038738541305065155, -0.023754369467496872, 0.5423850417137146, 0.011250699870288372, 0.08950144797563553, 0.5178016424179077, 0.1702137142419815, 0.1677747368812561, 0.08879968523979187, -0.4460298418998718, -0.3364255130290985, 0.2767446041107178, -0.2195151150226593, -0.12941154837608337, -0.13311563432216644, -0.10043836385011673, -0.1831875741481781, 0.2298242151737213, -0.02753942832350731, -0.1389571726322174, 0.10585971176624298, 0.13771259784698486, -0.13519328832626343, 0.17733561992645264, -0.18252280354499817, 0.2920025587081909, 0.14693549275398254, 0.24312761425971985, -0.4735557436943054, 0.027312107384204865, -0.47360479831695557, -0.3215184807777405, 0.07130968570709229, 0.25088226795196533, 0.0062172082252800465, -0.022921491414308548, -0.07272431999444962, 0.49770545959472656, 0.08008936792612076, 0.0668584555387497, -0.22058197855949402, -0.2920799255371094, 0.250310480594635, -0.15245002508163452, 0.16769227385520935, 0.12040232121944427, -0.1086689680814743, 0.02378656715154648, 0.5575590133666992, 0.15297016501426697, 0.08380038291215897, 0.1515342742204666, 0.17745715379714966, 0.08168290555477142, -0.06569169461727142, 0.020358309149742126, 0.07902701199054718, -0.22479423880577087, 0.20728890597820282, 0.09709110856056213, 0.5005661249160767, -0.2339233160018921, 0.001776285469532013, 0.02086116373538971, 0.4147734045982361, 0.05353695899248123, 0.1654985249042511, -0.11589924991130829, -0.29906198382377625, 0.12219524383544922, 0.43034347891807556, 0.28035223484039307, 0.3795764446258545, 0.15474191308021545, 0.034141361713409424, 0.1295773983001709, -0.18363994359970093, -0.16573895514011383, 0.21657592058181763, 0.12124933302402496, 0.49100539088249207, -0.01824246719479561, 0.05444347485899925, 0.04581281542778015, 0.041256487369537354, -0.1646757870912552, -0.024996623396873474, 0.1092512235045433, -0.385162353515625, 0.18985864520072937, -0.44358691573143005, -0.014785461127758026, -0.3277777433395386, -0.21293452382087708, -0.24198876321315765, -0.2568108141422272, 0.0016634641215205193, 0.2016770988702774, -0.27398109436035156, 0.1928558349609375, 0.026364929974079132, -0.2384607493877411, 0.06460029631853104, -0.06942937523126602, 0.013156779110431671, -0.1808205544948578, -0.4354940950870514, 0.0582447350025177, 0.24513453245162964, -0.16523118317127228, 0.29278290271759033, -0.09629009664058685, -0.2278265357017517, -0.08930142223834991, -0.22454726696014404, 0.0315655842423439, 0.11868706345558167, 0.1535857915878296, 0.30154621601104736, -0.12439247220754623, 0.006410650908946991, -0.1916271150112152, 0.09468643367290497, -0.17299117147922516, -0.2166089415550232, -0.07629623264074326, 0.07777491211891174, 0.13672643899917603, -0.22969244420528412, -0.546476423740387, -0.2638646960258484, -0.520150363445282, 0.08080200850963593, -0.14611968398094177, 0.24416983127593994, 0.031104817986488342, 0.23564715683460236, 0.0720849484205246, 0.1625538319349289, 0.21405228972434998, 0.15217772126197815, 0.39621609449386597, -0.10309718549251556, -0.2003723680973053, -0.3482798933982849, -0.10068560391664505, -0.029122095555067062, 0.134439617395401, 0.2907693684101105, -0.4502798020839691, -0.3411259651184082, -0.2608399987220764, 0.27910593152046204, -0.24616393446922302, 0.11252464354038239, 0.30660754442214966, 0.33844107389450073, -0.08039265871047974, -0.13746613264083862, -0.10484077036380768, 0.0873730406165123, -0.31661126017570496, 0.2529044449329376, 0.19046464562416077, 0.2045145481824875, 0.02969019114971161, 0.8358369469642639, 0.15267398953437805, -0.11870816349983215, 0.37266093492507935, 0.09307355433702469, 0.34395721554756165, 0.022852525115013123, -0.06234534829854965, -0.37554943561553955, -0.11882318556308746, 0.37209203839302063, -0.11984539031982422, 0.06414718925952911, -0.16686993837356567, -0.3047024607658386, 0.2631981670856476, -0.27342694997787476, -0.21706625819206238, 0.03545331209897995, -0.5674179792404175, 0.014453493058681488, 0.0685013085603714, 0.3219606280326843, 0.06465774774551392, 0.12294487655162811, 0.19578342139720917, 0.14348840713500977, -0.3685207664966583, -0.12608745694160461, 0.3632216453552246, 0.2565246522426605, -0.38574251532554626, 0.3568084239959717, 0.15482228994369507, 0.42658472061157227, 0.1461251676082611, -0.17941245436668396, -0.06311476230621338, -0.15082775056362152, 0.6748195886611938, -0.3834206163883209, -0.1291162669658661, 0.19674934446811676, -0.1126568540930748, -0.7937095761299133, -0.07786611467599869, -0.3117222785949707, -0.12542687356472015, 0.340170681476593, 0.2552216649055481, -0.17362958192825317, -0.08016061782836914, 0.01766442507505417, -0.09780111908912659, 0.006134815514087677, -0.03446514904499054, -0.29949742555618286, -0.1816469132900238, -0.2709381580352783, -0.1122959554195404, -0.12423527240753174, 0.11540812253952026, -0.2170202136039734, -0.2210947573184967, 0.011888479813933372, -0.14874698221683502, -0.10027141869068146, 0.04171769693493843, 0.20608380436897278, -0.40325015783309937, 0.19246149063110352, -0.17872384190559387, 0.2873303294181824, 0.08003276586532593, 0.31787070631980896, -0.3074937164783478, -0.35662075877189636, 0.04890820384025574, -0.0356970876455307, -0.009452831000089645, 0.3175303637981415, 0.03025367110967636, 0.18310537934303284, -0.027773389592766762, -0.18171946704387665, 0.12408801913261414, -0.06322531402111053, 0.3538017272949219, 0.12059232592582703, -0.024247894063591957, -0.2322314977645874, 0.12384329736232758, 0.3070622682571411, -0.1834370493888855, 0.2642301321029663, -0.19733351469039917, -0.1624179184436798, 0.28723999857902527, 0.0941048189997673, 0.765194296836853, -0.19461572170257568, 0.21938233077526093, 0.2629304528236389, -0.6695581078529358, 0.41567814350128174, -0.023288890719413757, 0.07633382081985474, -0.5609092712402344, -0.17624449729919434, 0.061668626964092255, -0.14102762937545776, 0.15161627531051636, -0.03993093594908714, -0.15997399389743805, 0.2994805872440338, 0.19837811589241028, -0.17284375429153442, -0.11634263396263123, 0.10042873024940491, -0.37660306692123413, -0.033899493515491486, -0.2025260329246521, 0.06433345377445221, -0.07333080470561981, -0.04401330277323723, -0.359864741563797, 0.025051847100257874, -0.2385808527469635, -0.319742351770401, -0.5098589062690735, 0.11293096840381622, -0.32217082381248474, 0.48940399289131165, -0.21673661470413208, -0.4875052571296692, -0.10482218861579895, 0.4659350514411926, 0.11672069132328033, -0.07033257186412811, -0.05260344594717026, 0.14830684661865234, -0.2599064111709595, 0.07399009168148041, 0.23822827637195587, 0.07513122260570526, 0.406380832195282, -0.18612028658390045, -0.25677716732025146, 0.10416039824485779, -0.13340067863464355, -0.25402581691741943, 0.19766081869602203, 0.3267972469329834, 0.02954133413732052, 0.1672433465719223, 0.14217452704906464, -0.06746795773506165, 0.02292739599943161, -0.20545147359371185, 0.10246561467647552, -0.1184937059879303, -0.015132442116737366, 0.1883534938097, -0.36151546239852905, -0.09170612692832947, -0.00940210372209549, 0.4540847837924957, 0.1781865954399109, 0.033309146761894226, 0.3013489246368408, 0.4097002148628235, -0.16756367683410645, -0.11065319180488586, -0.1421387940645218, -0.07619597017765045, -0.302916944026947, 0.04012405872344971, -0.23728850483894348, -0.33357077836990356, 0.19557040929794312, -0.11576797068119049, 0.29591745138168335, 0.16778163611888885, -0.14779256284236908, -0.22189533710479736, -0.19261914491653442, 0.2818378806114197, -0.0012616603635251522, 0.10903303325176239, 0.04998330771923065, -0.16273382306098938, 0.008539192378520966, 0.0037392787635326385, -0.2560281753540039, 0.0450468435883522, 0.03474406152963638, 0.04577440768480301, -0.2286445051431656, -0.22687678039073944, -0.05602312833070755, -0.016348347067832947, 0.06369461119174957, 0.043188806623220444, -0.18422237038612366, -0.14358097314834595, -0.09725097566843033, 0.0764719545841217, -0.12262013554573059, -0.07263077795505524, 0.03816689923405647, -0.1919175088405609, 0.0075616054236888885, -0.0446782112121582, 0.25699055194854736, 0.34683743119239807, -0.04555678367614746, 0.1929791420698166, 0.010371966287493706, 0.34006181359291077, -0.06105643883347511, 0.3775181472301483, -0.39473384618759155, 0.27417901158332825, -0.026732895523309708, 0.26541954278945923, 0.19565467536449432, -0.19381508231163025, -0.23012813925743103, -0.23516565561294556, 0.03409070149064064, 0.1824125349521637, 0.11415231227874756, -0.07436364889144897, -0.3154502511024475, -0.18037264049053192, 0.438332736492157, 0.47273504734039307, -0.19173049926757812, -0.17601320147514343, 0.10828346759080887, 0.19086907804012299, -0.04529036581516266, -0.04799827188253403, -0.19009357690811157, -0.2165502905845642, 0.025227516889572144, 0.14416328072547913, 0.055130377411842346, -0.23532059788703918, -0.03225810453295708, 0.26940399408340454, 0.32457539439201355, 0.12447157502174377, 0.17001409828662872, 0.10338111221790314, 0.14543932676315308, 0.05915640667080879, 0.018998244777321815, -0.16364198923110962, 0.3589986562728882, 0.2417306900024414, -0.16611671447753906, 0.5554064512252808, 0.15928368270397186, 0.1337069571018219, 0.25330308079719543, -0.36687979102134705, 0.19161364436149597, 0.06873992830514908, 0.013430632650852203, 0.2976340353488922, 0.17632119357585907, 0.4059865176677704, -0.14008885622024536, -0.22744446992874146, -0.1628204584121704, 0.057888563722372055, -0.23731234669685364, 0.05595254898071289, 0.06896498054265976, -0.0652487576007843, 0.009325340390205383, 0.11338634788990021, -0.06334297358989716, -0.04259244352579117, 0.6586321592330933, 0.11763317883014679, -0.11156928539276123, -0.5573937892913818, 0.16992102563381195, -0.0749812126159668, 0.03731466829776764, -0.14834024012088776, 0.3278828561306, 0.3710869252681732, -0.050970375537872314, -0.11297827959060669, 0.2483445107936859, 0.38660672307014465, 0.3550364375114441, -0.09246516972780228, -0.09056989848613739, 0.3481724262237549, 0.1405484974384308, -0.10176379978656769, 0.11658675968647003, 0.08886778354644775, 0.3704560399055481, 0.3659951388835907, 0.11035175621509552, -0.12912976741790771, -0.14404872059822083, 0.26321515440940857, 0.1234126165509224, -0.150333970785141, 0.37296414375305176, -0.32014787197113037, -0.24544286727905273, 0.23154544830322266, 0.20461243391036987, -0.5852034091949463, 0.052107203751802444, 0.33335089683532715, 0.0007150024175643921, 0.07244613766670227, -0.07060056179761887, 0.07748168706893921, 0.05067291110754013, 0.22053205966949463, 0.49148350954055786, 0.29941898584365845, -0.03687635809183121, -0.18451407551765442, -0.45427054166793823, 0.37370461225509644, 0.005573068745434284, 0.008625537157058716, -0.17059749364852905, -0.014979273080825806, 0.08291797339916229, 0.009768888354301453, 0.36610549688339233, 0.15548662841320038, 0.08628775179386139, 0.32818958163261414, -0.7888344526290894, -0.21233096718788147, 0.14902348816394806, -0.2827439308166504, 0.14295600354671478, -0.4316948652267456, 0.14588439464569092, -0.08712272346019745, -0.03741520270705223, -0.1757674366235733, -0.09484419226646423, 0.45433980226516724, -0.16314399242401123, 0.41922375559806824, 0.0067166853696107864, 0.3638207018375397, -0.1259152740240097, -0.43873050808906555, -0.09132690727710724, -0.022951219230890274, -0.023209884762763977, 0.05191913992166519, -0.01934860646724701, 0.27226826548576355, -0.24137455224990845, 0.014264196157455444, -0.04081210121512413, 0.793780505657196, 0.05943445861339569, 0.32920029759407043, -0.22454801201820374, 0.04100329428911209, 0.12560509145259857, -0.13176129758358002, 0.04589792713522911, 0.32098856568336487, 0.015192385762929916, 0.3110525906085968, -0.425211101770401, -0.4065045118331909, 0.3265584111213684, -0.22359558939933777, -0.06751125305891037, -0.2110908329486847, 0.20542044937610626, -0.10588166117668152, 0.1319766789674759, -0.8719819188117981, -0.05846653878688812, 0.266402930021286, -0.0032498743385076523, -0.0685565322637558, 0.10371938347816467, -0.15297722816467285, -0.013613969087600708, -0.08368159830570221, 0.29597190022468567, -0.04015197232365608, -0.21831321716308594, 0.2512304186820984, -0.15569040179252625 ]
https://github.com/huggingface/datasets/issues/5613
Same problem on Colab using a vanilla setup running : Python 3.10.11 apache-beam 2.47.0 datasets 2.12.0
Version mismatch with multiprocess and dill on Python 3.10
### Describe the bug Grabbing the latest version of `datasets` and `apache-beam` with `poetry` using Python 3.10 gives a crash at runtime. The crash is ``` File "/Users/adpauls/sc/git/DSI-transformers/data/NQ/create_NQ_train_vali.py", line 1, in <module> import datasets File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/__init__.py", line 43, in <module> from .arrow_dataset import Dataset File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 65, in <module> from .arrow_reader import ArrowReader File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_reader.py", line 30, in <module> from .download.download_config import DownloadConfig File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/__init__.py", line 9, in <module> from .download_manager import DownloadManager, DownloadMode File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/download_manager.py", line 35, in <module> from ..utils.py_utils import NestedDataStructure, map_nested, size_str File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 40, in <module> import multiprocess.pool File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 609, in <module> class ThreadPool(Pool): File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 611, in ThreadPool from .dummy import Process File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/dummy/__init__.py", line 87, in <module> class Condition(threading._Condition): AttributeError: module 'threading' has no attribute '_Condition'. Did you mean: 'Condition'? ``` I think this is a bad interaction of versions from `dill`, `multiprocess`, `apache-beam`, and `threading` from the Python (3.10) standard lib. Upgrading `multiprocess` to a version that does not crash like this is not possible because `apache-beam` pins `dill` to and old version: ``` Because multiprocess (0.70.10) depends on dill (>=0.3.2) and apache-beam (2.45.0) depends on dill (>=0.3.1.1,<0.3.2), multiprocess (0.70.10) is incompatible with apache-beam (2.45.0). And because no versions of apache-beam match >2.45.0,<3.0.0, multiprocess (0.70.10) is incompatible with apache-beam (>=2.45.0,<3.0.0). So, because yyy depends on both apache-beam (^2.45.0) and multiprocess (0.70.10), version solving failed. ``` Perhaps it is not right to file a bug here, but I'm not totally sure whose fault it is. And in any case, this is an immediate blocker to using `datasets` out of the box. Possibly related to https://github.com/huggingface/datasets/issues/5232. ### Steps to reproduce the bug Steps to reproduce: 1. Make a poetry project with this configuration ``` [tool.poetry] name = "yyy" version = "0.1.0" description = "" authors = ["Adam Pauls <adpauls@gmail.com>"] readme = "README.md" packages = [{ include = "xxx" }] [tool.poetry.dependencies] python = ">=3.10,<3.11" datasets = "^2.10.1" apache-beam = "^2.45.0" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" ``` 2. `poetry install`. 3. `poetry run python -c "import datasets"`. ### Expected behavior Script runs. ### Environment info Python 3.10. Here are the versions installed by `poetry`: ``` β€’β€’ Installing frozenlist (1.3.3) β€’ Installing idna (3.4) β€’ Installing multidict (6.0.4) β€’ Installing aiosignal (1.3.1) β€’ Installing async-timeout (4.0.2) β€’ Installing attrs (22.2.0) β€’ Installing certifi (2022.12.7) β€’ Installing charset-normalizer (3.1.0) β€’ Installing six (1.16.0) β€’ Installing urllib3 (1.26.14) β€’ Installing yarl (1.8.2) β€’ Installing aiohttp (3.8.4) β€’ Installing dill (0.3.1.1) β€’ Installing docopt (0.6.2) β€’ Installing filelock (3.9.0) β€’ Installing numpy (1.22.4) β€’ Installing pyparsing (3.0.9) β€’ Installing protobuf (3.19.4) β€’ Installing packaging (23.0) β€’ Installing python-dateutil (2.8.2) β€’ Installing pytz (2022.7.1) β€’ Installing pyyaml (6.0) β€’ Installing requests (2.28.2) β€’ Installing tqdm (4.65.0) β€’ Installing typing-extensions (4.5.0) β€’ Installing cloudpickle (2.2.1) β€’ Installing crcmod (1.7) β€’ Installing fastavro (1.7.2) β€’ Installing fasteners (0.18) β€’ Installing fsspec (2023.3.0) β€’ Installing grpcio (1.51.3) β€’ Installing hdfs (2.7.0) β€’ Installing httplib2 (0.20.4) β€’ Installing huggingface-hub (0.12.1) β€’ Installing multiprocess (0.70.9) β€’ Installing objsize (0.6.1) β€’ Installing orjson (3.8.7) β€’ Installing pandas (1.5.3) β€’ Installing proto-plus (1.22.2) β€’ Installing pyarrow (9.0.0) β€’ Installing pydot (1.4.2) β€’ Installing pymongo (3.13.0) β€’ Installing regex (2022.10.31) β€’ Installing responses (0.18.0) β€’ Installing xxhash (3.2.0) β€’ Installing zstandard (0.20.0) β€’ Installing apache-beam (2.45.0) β€’ Installing datasets (2.10.1) ```
16
Version mismatch with multiprocess and dill on Python 3.10 ### Describe the bug Grabbing the latest version of `datasets` and `apache-beam` with `poetry` using Python 3.10 gives a crash at runtime. The crash is ``` File "/Users/adpauls/sc/git/DSI-transformers/data/NQ/create_NQ_train_vali.py", line 1, in <module> import datasets File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/__init__.py", line 43, in <module> from .arrow_dataset import Dataset File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 65, in <module> from .arrow_reader import ArrowReader File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_reader.py", line 30, in <module> from .download.download_config import DownloadConfig File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/__init__.py", line 9, in <module> from .download_manager import DownloadManager, DownloadMode File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/download_manager.py", line 35, in <module> from ..utils.py_utils import NestedDataStructure, map_nested, size_str File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 40, in <module> import multiprocess.pool File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 609, in <module> class ThreadPool(Pool): File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 611, in ThreadPool from .dummy import Process File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/dummy/__init__.py", line 87, in <module> class Condition(threading._Condition): AttributeError: module 'threading' has no attribute '_Condition'. Did you mean: 'Condition'? ``` I think this is a bad interaction of versions from `dill`, `multiprocess`, `apache-beam`, and `threading` from the Python (3.10) standard lib. Upgrading `multiprocess` to a version that does not crash like this is not possible because `apache-beam` pins `dill` to and old version: ``` Because multiprocess (0.70.10) depends on dill (>=0.3.2) and apache-beam (2.45.0) depends on dill (>=0.3.1.1,<0.3.2), multiprocess (0.70.10) is incompatible with apache-beam (2.45.0). And because no versions of apache-beam match >2.45.0,<3.0.0, multiprocess (0.70.10) is incompatible with apache-beam (>=2.45.0,<3.0.0). So, because yyy depends on both apache-beam (^2.45.0) and multiprocess (0.70.10), version solving failed. ``` Perhaps it is not right to file a bug here, but I'm not totally sure whose fault it is. And in any case, this is an immediate blocker to using `datasets` out of the box. Possibly related to https://github.com/huggingface/datasets/issues/5232. ### Steps to reproduce the bug Steps to reproduce: 1. Make a poetry project with this configuration ``` [tool.poetry] name = "yyy" version = "0.1.0" description = "" authors = ["Adam Pauls <adpauls@gmail.com>"] readme = "README.md" packages = [{ include = "xxx" }] [tool.poetry.dependencies] python = ">=3.10,<3.11" datasets = "^2.10.1" apache-beam = "^2.45.0" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" ``` 2. `poetry install`. 3. `poetry run python -c "import datasets"`. ### Expected behavior Script runs. ### Environment info Python 3.10. Here are the versions installed by `poetry`: ``` β€’β€’ Installing frozenlist (1.3.3) β€’ Installing idna (3.4) β€’ Installing multidict (6.0.4) β€’ Installing aiosignal (1.3.1) β€’ Installing async-timeout (4.0.2) β€’ Installing attrs (22.2.0) β€’ Installing certifi (2022.12.7) β€’ Installing charset-normalizer (3.1.0) β€’ Installing six (1.16.0) β€’ Installing urllib3 (1.26.14) β€’ Installing yarl (1.8.2) β€’ Installing aiohttp (3.8.4) β€’ Installing dill (0.3.1.1) β€’ Installing docopt (0.6.2) β€’ Installing filelock (3.9.0) β€’ Installing numpy (1.22.4) β€’ Installing pyparsing (3.0.9) β€’ Installing protobuf (3.19.4) β€’ Installing packaging (23.0) β€’ Installing python-dateutil (2.8.2) β€’ Installing pytz (2022.7.1) β€’ Installing pyyaml (6.0) β€’ Installing requests (2.28.2) β€’ Installing tqdm (4.65.0) β€’ Installing typing-extensions (4.5.0) β€’ Installing cloudpickle (2.2.1) β€’ Installing crcmod (1.7) β€’ Installing fastavro (1.7.2) β€’ Installing fasteners (0.18) β€’ Installing fsspec (2023.3.0) β€’ Installing grpcio (1.51.3) β€’ Installing hdfs (2.7.0) β€’ Installing httplib2 (0.20.4) β€’ Installing huggingface-hub (0.12.1) β€’ Installing multiprocess (0.70.9) β€’ Installing objsize (0.6.1) β€’ Installing orjson (3.8.7) β€’ Installing pandas (1.5.3) β€’ Installing proto-plus (1.22.2) β€’ Installing pyarrow (9.0.0) β€’ Installing pydot (1.4.2) β€’ Installing pymongo (3.13.0) β€’ Installing regex (2022.10.31) β€’ Installing responses (0.18.0) β€’ Installing xxhash (3.2.0) β€’ Installing zstandard (0.20.0) β€’ Installing apache-beam (2.45.0) β€’ Installing datasets (2.10.1) ``` Same problem on Colab using a vanilla setup running : Python 3.10.11 apache-beam 2.47.0 datasets 2.12.0
[ -0.3771491050720215, 0.05075012147426605, -0.0677495002746582, 0.3744870722293854, 0.14260713756084442, -0.14788541197776794, 0.1988992542028427, 0.3340210020542145, -0.2787078619003296, 0.07854893803596497, -0.10015977919101715, 0.5905037522315979, -0.30559566617012024, -0.24437648057937622, 0.034758809953927994, -0.3059857487678528, 0.17927229404449463, -0.024392273277044296, -0.26562806963920593, 0.10068636387586594, -0.20694118738174438, 0.4414686858654022, -0.18588438630104065, 0.1186429113149643, 0.11099053919315338, -0.17321382462978363, -0.109010711312294, 0.471102237701416, -0.1678667813539505, -0.35548120737075806, 0.09256860613822937, -0.0627022236585617, 0.1993485987186432, 0.46068626642227173, -0.00011645458289422095, 0.014273226261138916, 0.25311845541000366, -0.004719652235507965, -0.0787554383277893, -0.32511788606643677, -0.0379839763045311, -0.29523491859436035, 0.29448819160461426, -0.2466374784708023, 0.23078951239585876, 0.04641485586762428, -0.15387694537639618, -0.5855278372764587, 0.4000190496444702, 0.26268723607063293, 0.2108204960823059, 0.5566229820251465, 0.2645672857761383, 0.062321312725543976, 0.3858068585395813, -0.27792662382125854, -0.144562229514122, 0.3000940978527069, 0.47174397110939026, -0.19341802597045898, -0.2364504039287567, 0.37835782766342163, -0.09898190200328827, -0.06089708209037781, 0.24347244203090668, -0.17108792066574097, 0.19381387531757355, 0.05071767047047615, -0.08306194841861725, 0.0799616128206253, 0.318152517080307, -0.5332954525947571, -0.5185448527336121, -0.05555492639541626, -0.08744659274816513, -0.13847284018993378, 0.17303186655044556, 0.02480042353272438, -0.19108784198760986, -0.007703850977122784, -0.09441782534122467, -0.2323417067527771, -0.001021556556224823, 0.1407811939716339, -0.032397039234638214, 0.42305251955986023, 0.13243001699447632, 0.11619878560304642, 0.18598045408725739, -0.008739027194678783, 0.19841168820858002, 0.18343062698841095, 0.038103096187114716, -0.10025951266288757, -0.5236876010894775, 0.028180301189422607, -0.04662034660577774, -0.4686957001686096, -0.06649869680404663, 0.2146214097738266, 0.06593786925077438, 0.02649715170264244, 0.1816551685333252, -0.07066027820110321, 0.268893301486969, 0.011092934757471085, 0.1624245047569275, 0.10751040279865265, 0.277981698513031, 0.05913400650024414, 0.1470235288143158, 0.1777699738740921, 0.1277209222316742, -0.42593836784362793, -0.004444889724254608, 0.33384281396865845, 0.24817080795764923, -0.020884178578853607, -0.21985694766044617, -0.02022601291537285, -0.034029461443424225, -0.14992167055606842, -0.15055790543556213, 0.31546375155448914, -0.005792681127786636, 0.6994984149932861, 0.23452165722846985, 0.33138638734817505, -0.37033793330192566, 0.09669221937656403, -0.03803326189517975, -0.007760604843497276, -0.09806415438652039, -0.009366508573293686, 0.08247074484825134, 0.07782186567783356, 0.2409972846508026, 0.053916968405246735, -0.35119661688804626, -0.0632229745388031, 0.2758978605270386, -0.05122148245573044, -0.25019022822380066, 0.09302616119384766, -0.12462964653968811, 0.2478582113981247, -0.04940158873796463, -0.007034115493297577, -0.12431572377681732, 0.15940751135349274, -0.02677891030907631, -0.30467358231544495, -0.35844776034355164, 0.20549336075782776, 0.1649722456932068, 0.11778299510478973, 0.2680194675922394, -0.037194810807704926, 0.31983092427253723, -0.05087437108159065, 0.06688746064901352, -0.3055233061313629, -0.18569408357143402, -0.3872925043106079, 0.09304264932870865, 0.37670332193374634, -0.48286473751068115, -0.12508031725883484, -0.2500394284725189, -0.051939211785793304, 0.022847743704915047, 0.010737424716353416, -0.10082399100065231, -0.06256026029586792, -0.04162249714136124, -0.27856218814849854, 0.5358603000640869, -0.7454887628555298, -0.21449045836925507, 0.2793681025505066, 0.013429000973701477, 0.0008905753493309021, 0.13734816014766693, 0.09480143338441849, 0.1945262849330902, 0.10826367884874344, 0.2240496277809143, 0.21739034354686737, 0.12036001682281494, 0.11721640080213547, -0.2870672345161438, -0.2450360208749771, -0.1673867255449295, 0.2454981803894043, 0.2528204619884491, -0.3055920898914337, -0.038738541305065155, -0.023754369467496872, 0.5423850417137146, 0.011250699870288372, 0.08950144797563553, 0.5178016424179077, 0.1702137142419815, 0.1677747368812561, 0.08879968523979187, -0.4460298418998718, -0.3364255130290985, 0.2767446041107178, -0.2195151150226593, -0.12941154837608337, -0.13311563432216644, -0.10043836385011673, -0.1831875741481781, 0.2298242151737213, -0.02753942832350731, -0.1389571726322174, 0.10585971176624298, 0.13771259784698486, -0.13519328832626343, 0.17733561992645264, -0.18252280354499817, 0.2920025587081909, 0.14693549275398254, 0.24312761425971985, -0.4735557436943054, 0.027312107384204865, -0.47360479831695557, -0.3215184807777405, 0.07130968570709229, 0.25088226795196533, 0.0062172082252800465, -0.022921491414308548, -0.07272431999444962, 0.49770545959472656, 0.08008936792612076, 0.0668584555387497, -0.22058197855949402, -0.2920799255371094, 0.250310480594635, -0.15245002508163452, 0.16769227385520935, 0.12040232121944427, -0.1086689680814743, 0.02378656715154648, 0.5575590133666992, 0.15297016501426697, 0.08380038291215897, 0.1515342742204666, 0.17745715379714966, 0.08168290555477142, -0.06569169461727142, 0.020358309149742126, 0.07902701199054718, -0.22479423880577087, 0.20728890597820282, 0.09709110856056213, 0.5005661249160767, -0.2339233160018921, 0.001776285469532013, 0.02086116373538971, 0.4147734045982361, 0.05353695899248123, 0.1654985249042511, -0.11589924991130829, -0.29906198382377625, 0.12219524383544922, 0.43034347891807556, 0.28035223484039307, 0.3795764446258545, 0.15474191308021545, 0.034141361713409424, 0.1295773983001709, -0.18363994359970093, -0.16573895514011383, 0.21657592058181763, 0.12124933302402496, 0.49100539088249207, -0.01824246719479561, 0.05444347485899925, 0.04581281542778015, 0.041256487369537354, -0.1646757870912552, -0.024996623396873474, 0.1092512235045433, -0.385162353515625, 0.18985864520072937, -0.44358691573143005, -0.014785461127758026, -0.3277777433395386, -0.21293452382087708, -0.24198876321315765, -0.2568108141422272, 0.0016634641215205193, 0.2016770988702774, -0.27398109436035156, 0.1928558349609375, 0.026364929974079132, -0.2384607493877411, 0.06460029631853104, -0.06942937523126602, 0.013156779110431671, -0.1808205544948578, -0.4354940950870514, 0.0582447350025177, 0.24513453245162964, -0.16523118317127228, 0.29278290271759033, -0.09629009664058685, -0.2278265357017517, -0.08930142223834991, -0.22454726696014404, 0.0315655842423439, 0.11868706345558167, 0.1535857915878296, 0.30154621601104736, -0.12439247220754623, 0.006410650908946991, -0.1916271150112152, 0.09468643367290497, -0.17299117147922516, -0.2166089415550232, -0.07629623264074326, 0.07777491211891174, 0.13672643899917603, -0.22969244420528412, -0.546476423740387, -0.2638646960258484, -0.520150363445282, 0.08080200850963593, -0.14611968398094177, 0.24416983127593994, 0.031104817986488342, 0.23564715683460236, 0.0720849484205246, 0.1625538319349289, 0.21405228972434998, 0.15217772126197815, 0.39621609449386597, -0.10309718549251556, -0.2003723680973053, -0.3482798933982849, -0.10068560391664505, -0.029122095555067062, 0.134439617395401, 0.2907693684101105, -0.4502798020839691, -0.3411259651184082, -0.2608399987220764, 0.27910593152046204, -0.24616393446922302, 0.11252464354038239, 0.30660754442214966, 0.33844107389450073, -0.08039265871047974, -0.13746613264083862, -0.10484077036380768, 0.0873730406165123, -0.31661126017570496, 0.2529044449329376, 0.19046464562416077, 0.2045145481824875, 0.02969019114971161, 0.8358369469642639, 0.15267398953437805, -0.11870816349983215, 0.37266093492507935, 0.09307355433702469, 0.34395721554756165, 0.022852525115013123, -0.06234534829854965, -0.37554943561553955, -0.11882318556308746, 0.37209203839302063, -0.11984539031982422, 0.06414718925952911, -0.16686993837356567, -0.3047024607658386, 0.2631981670856476, -0.27342694997787476, -0.21706625819206238, 0.03545331209897995, -0.5674179792404175, 0.014453493058681488, 0.0685013085603714, 0.3219606280326843, 0.06465774774551392, 0.12294487655162811, 0.19578342139720917, 0.14348840713500977, -0.3685207664966583, -0.12608745694160461, 0.3632216453552246, 0.2565246522426605, -0.38574251532554626, 0.3568084239959717, 0.15482228994369507, 0.42658472061157227, 0.1461251676082611, -0.17941245436668396, -0.06311476230621338, -0.15082775056362152, 0.6748195886611938, -0.3834206163883209, -0.1291162669658661, 0.19674934446811676, -0.1126568540930748, -0.7937095761299133, -0.07786611467599869, -0.3117222785949707, -0.12542687356472015, 0.340170681476593, 0.2552216649055481, -0.17362958192825317, -0.08016061782836914, 0.01766442507505417, -0.09780111908912659, 0.006134815514087677, -0.03446514904499054, -0.29949742555618286, -0.1816469132900238, -0.2709381580352783, -0.1122959554195404, -0.12423527240753174, 0.11540812253952026, -0.2170202136039734, -0.2210947573184967, 0.011888479813933372, -0.14874698221683502, -0.10027141869068146, 0.04171769693493843, 0.20608380436897278, -0.40325015783309937, 0.19246149063110352, -0.17872384190559387, 0.2873303294181824, 0.08003276586532593, 0.31787070631980896, -0.3074937164783478, -0.35662075877189636, 0.04890820384025574, -0.0356970876455307, -0.009452831000089645, 0.3175303637981415, 0.03025367110967636, 0.18310537934303284, -0.027773389592766762, -0.18171946704387665, 0.12408801913261414, -0.06322531402111053, 0.3538017272949219, 0.12059232592582703, -0.024247894063591957, -0.2322314977645874, 0.12384329736232758, 0.3070622682571411, -0.1834370493888855, 0.2642301321029663, -0.19733351469039917, -0.1624179184436798, 0.28723999857902527, 0.0941048189997673, 0.765194296836853, -0.19461572170257568, 0.21938233077526093, 0.2629304528236389, -0.6695581078529358, 0.41567814350128174, -0.023288890719413757, 0.07633382081985474, -0.5609092712402344, -0.17624449729919434, 0.061668626964092255, -0.14102762937545776, 0.15161627531051636, -0.03993093594908714, -0.15997399389743805, 0.2994805872440338, 0.19837811589241028, -0.17284375429153442, -0.11634263396263123, 0.10042873024940491, -0.37660306692123413, -0.033899493515491486, -0.2025260329246521, 0.06433345377445221, -0.07333080470561981, -0.04401330277323723, -0.359864741563797, 0.025051847100257874, -0.2385808527469635, -0.319742351770401, -0.5098589062690735, 0.11293096840381622, -0.32217082381248474, 0.48940399289131165, -0.21673661470413208, -0.4875052571296692, -0.10482218861579895, 0.4659350514411926, 0.11672069132328033, -0.07033257186412811, -0.05260344594717026, 0.14830684661865234, -0.2599064111709595, 0.07399009168148041, 0.23822827637195587, 0.07513122260570526, 0.406380832195282, -0.18612028658390045, -0.25677716732025146, 0.10416039824485779, -0.13340067863464355, -0.25402581691741943, 0.19766081869602203, 0.3267972469329834, 0.02954133413732052, 0.1672433465719223, 0.14217452704906464, -0.06746795773506165, 0.02292739599943161, -0.20545147359371185, 0.10246561467647552, -0.1184937059879303, -0.015132442116737366, 0.1883534938097, -0.36151546239852905, -0.09170612692832947, -0.00940210372209549, 0.4540847837924957, 0.1781865954399109, 0.033309146761894226, 0.3013489246368408, 0.4097002148628235, -0.16756367683410645, -0.11065319180488586, -0.1421387940645218, -0.07619597017765045, -0.302916944026947, 0.04012405872344971, -0.23728850483894348, -0.33357077836990356, 0.19557040929794312, -0.11576797068119049, 0.29591745138168335, 0.16778163611888885, -0.14779256284236908, -0.22189533710479736, -0.19261914491653442, 0.2818378806114197, -0.0012616603635251522, 0.10903303325176239, 0.04998330771923065, -0.16273382306098938, 0.008539192378520966, 0.0037392787635326385, -0.2560281753540039, 0.0450468435883522, 0.03474406152963638, 0.04577440768480301, -0.2286445051431656, -0.22687678039073944, -0.05602312833070755, -0.016348347067832947, 0.06369461119174957, 0.043188806623220444, -0.18422237038612366, -0.14358097314834595, -0.09725097566843033, 0.0764719545841217, -0.12262013554573059, -0.07263077795505524, 0.03816689923405647, -0.1919175088405609, 0.0075616054236888885, -0.0446782112121582, 0.25699055194854736, 0.34683743119239807, -0.04555678367614746, 0.1929791420698166, 0.010371966287493706, 0.34006181359291077, -0.06105643883347511, 0.3775181472301483, -0.39473384618759155, 0.27417901158332825, -0.026732895523309708, 0.26541954278945923, 0.19565467536449432, -0.19381508231163025, -0.23012813925743103, -0.23516565561294556, 0.03409070149064064, 0.1824125349521637, 0.11415231227874756, -0.07436364889144897, -0.3154502511024475, -0.18037264049053192, 0.438332736492157, 0.47273504734039307, -0.19173049926757812, -0.17601320147514343, 0.10828346759080887, 0.19086907804012299, -0.04529036581516266, -0.04799827188253403, -0.19009357690811157, -0.2165502905845642, 0.025227516889572144, 0.14416328072547913, 0.055130377411842346, -0.23532059788703918, -0.03225810453295708, 0.26940399408340454, 0.32457539439201355, 0.12447157502174377, 0.17001409828662872, 0.10338111221790314, 0.14543932676315308, 0.05915640667080879, 0.018998244777321815, -0.16364198923110962, 0.3589986562728882, 0.2417306900024414, -0.16611671447753906, 0.5554064512252808, 0.15928368270397186, 0.1337069571018219, 0.25330308079719543, -0.36687979102134705, 0.19161364436149597, 0.06873992830514908, 0.013430632650852203, 0.2976340353488922, 0.17632119357585907, 0.4059865176677704, -0.14008885622024536, -0.22744446992874146, -0.1628204584121704, 0.057888563722372055, -0.23731234669685364, 0.05595254898071289, 0.06896498054265976, -0.0652487576007843, 0.009325340390205383, 0.11338634788990021, -0.06334297358989716, -0.04259244352579117, 0.6586321592330933, 0.11763317883014679, -0.11156928539276123, -0.5573937892913818, 0.16992102563381195, -0.0749812126159668, 0.03731466829776764, -0.14834024012088776, 0.3278828561306, 0.3710869252681732, -0.050970375537872314, -0.11297827959060669, 0.2483445107936859, 0.38660672307014465, 0.3550364375114441, -0.09246516972780228, -0.09056989848613739, 0.3481724262237549, 0.1405484974384308, -0.10176379978656769, 0.11658675968647003, 0.08886778354644775, 0.3704560399055481, 0.3659951388835907, 0.11035175621509552, -0.12912976741790771, -0.14404872059822083, 0.26321515440940857, 0.1234126165509224, -0.150333970785141, 0.37296414375305176, -0.32014787197113037, -0.24544286727905273, 0.23154544830322266, 0.20461243391036987, -0.5852034091949463, 0.052107203751802444, 0.33335089683532715, 0.0007150024175643921, 0.07244613766670227, -0.07060056179761887, 0.07748168706893921, 0.05067291110754013, 0.22053205966949463, 0.49148350954055786, 0.29941898584365845, -0.03687635809183121, -0.18451407551765442, -0.45427054166793823, 0.37370461225509644, 0.005573068745434284, 0.008625537157058716, -0.17059749364852905, -0.014979273080825806, 0.08291797339916229, 0.009768888354301453, 0.36610549688339233, 0.15548662841320038, 0.08628775179386139, 0.32818958163261414, -0.7888344526290894, -0.21233096718788147, 0.14902348816394806, -0.2827439308166504, 0.14295600354671478, -0.4316948652267456, 0.14588439464569092, -0.08712272346019745, -0.03741520270705223, -0.1757674366235733, -0.09484419226646423, 0.45433980226516724, -0.16314399242401123, 0.41922375559806824, 0.0067166853696107864, 0.3638207018375397, -0.1259152740240097, -0.43873050808906555, -0.09132690727710724, -0.022951219230890274, -0.023209884762763977, 0.05191913992166519, -0.01934860646724701, 0.27226826548576355, -0.24137455224990845, 0.014264196157455444, -0.04081210121512413, 0.793780505657196, 0.05943445861339569, 0.32920029759407043, -0.22454801201820374, 0.04100329428911209, 0.12560509145259857, -0.13176129758358002, 0.04589792713522911, 0.32098856568336487, 0.015192385762929916, 0.3110525906085968, -0.425211101770401, -0.4065045118331909, 0.3265584111213684, -0.22359558939933777, -0.06751125305891037, -0.2110908329486847, 0.20542044937610626, -0.10588166117668152, 0.1319766789674759, -0.8719819188117981, -0.05846653878688812, 0.266402930021286, -0.0032498743385076523, -0.0685565322637558, 0.10371938347816467, -0.15297722816467285, -0.013613969087600708, -0.08368159830570221, 0.29597190022468567, -0.04015197232365608, -0.21831321716308594, 0.2512304186820984, -0.15569040179252625 ]
https://github.com/huggingface/datasets/issues/5613
I have made a workaround by forcing an install of the version of `multiprocess` version `0.70.15` (after installing `datasets` and `apache-beam`). I can confirm that (on Python 3.10 in [this colab notebook](https://colab.research.google.com/drive/1PTeGlshamFcJZix_GiS3vMXX_YzAhGv0?usp=sharing)) `datasets` can download pre-processed Wikipedia dumps and can download non-pre-processed dumps using `beam_runner="DirectRunner"`. I don't know if/how other `beam_runner`s can be made compatible.
Version mismatch with multiprocess and dill on Python 3.10
### Describe the bug Grabbing the latest version of `datasets` and `apache-beam` with `poetry` using Python 3.10 gives a crash at runtime. The crash is ``` File "/Users/adpauls/sc/git/DSI-transformers/data/NQ/create_NQ_train_vali.py", line 1, in <module> import datasets File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/__init__.py", line 43, in <module> from .arrow_dataset import Dataset File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 65, in <module> from .arrow_reader import ArrowReader File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_reader.py", line 30, in <module> from .download.download_config import DownloadConfig File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/__init__.py", line 9, in <module> from .download_manager import DownloadManager, DownloadMode File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/download_manager.py", line 35, in <module> from ..utils.py_utils import NestedDataStructure, map_nested, size_str File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 40, in <module> import multiprocess.pool File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 609, in <module> class ThreadPool(Pool): File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 611, in ThreadPool from .dummy import Process File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/dummy/__init__.py", line 87, in <module> class Condition(threading._Condition): AttributeError: module 'threading' has no attribute '_Condition'. Did you mean: 'Condition'? ``` I think this is a bad interaction of versions from `dill`, `multiprocess`, `apache-beam`, and `threading` from the Python (3.10) standard lib. Upgrading `multiprocess` to a version that does not crash like this is not possible because `apache-beam` pins `dill` to and old version: ``` Because multiprocess (0.70.10) depends on dill (>=0.3.2) and apache-beam (2.45.0) depends on dill (>=0.3.1.1,<0.3.2), multiprocess (0.70.10) is incompatible with apache-beam (2.45.0). And because no versions of apache-beam match >2.45.0,<3.0.0, multiprocess (0.70.10) is incompatible with apache-beam (>=2.45.0,<3.0.0). So, because yyy depends on both apache-beam (^2.45.0) and multiprocess (0.70.10), version solving failed. ``` Perhaps it is not right to file a bug here, but I'm not totally sure whose fault it is. And in any case, this is an immediate blocker to using `datasets` out of the box. Possibly related to https://github.com/huggingface/datasets/issues/5232. ### Steps to reproduce the bug Steps to reproduce: 1. Make a poetry project with this configuration ``` [tool.poetry] name = "yyy" version = "0.1.0" description = "" authors = ["Adam Pauls <adpauls@gmail.com>"] readme = "README.md" packages = [{ include = "xxx" }] [tool.poetry.dependencies] python = ">=3.10,<3.11" datasets = "^2.10.1" apache-beam = "^2.45.0" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" ``` 2. `poetry install`. 3. `poetry run python -c "import datasets"`. ### Expected behavior Script runs. ### Environment info Python 3.10. Here are the versions installed by `poetry`: ``` β€’β€’ Installing frozenlist (1.3.3) β€’ Installing idna (3.4) β€’ Installing multidict (6.0.4) β€’ Installing aiosignal (1.3.1) β€’ Installing async-timeout (4.0.2) β€’ Installing attrs (22.2.0) β€’ Installing certifi (2022.12.7) β€’ Installing charset-normalizer (3.1.0) β€’ Installing six (1.16.0) β€’ Installing urllib3 (1.26.14) β€’ Installing yarl (1.8.2) β€’ Installing aiohttp (3.8.4) β€’ Installing dill (0.3.1.1) β€’ Installing docopt (0.6.2) β€’ Installing filelock (3.9.0) β€’ Installing numpy (1.22.4) β€’ Installing pyparsing (3.0.9) β€’ Installing protobuf (3.19.4) β€’ Installing packaging (23.0) β€’ Installing python-dateutil (2.8.2) β€’ Installing pytz (2022.7.1) β€’ Installing pyyaml (6.0) β€’ Installing requests (2.28.2) β€’ Installing tqdm (4.65.0) β€’ Installing typing-extensions (4.5.0) β€’ Installing cloudpickle (2.2.1) β€’ Installing crcmod (1.7) β€’ Installing fastavro (1.7.2) β€’ Installing fasteners (0.18) β€’ Installing fsspec (2023.3.0) β€’ Installing grpcio (1.51.3) β€’ Installing hdfs (2.7.0) β€’ Installing httplib2 (0.20.4) β€’ Installing huggingface-hub (0.12.1) β€’ Installing multiprocess (0.70.9) β€’ Installing objsize (0.6.1) β€’ Installing orjson (3.8.7) β€’ Installing pandas (1.5.3) β€’ Installing proto-plus (1.22.2) β€’ Installing pyarrow (9.0.0) β€’ Installing pydot (1.4.2) β€’ Installing pymongo (3.13.0) β€’ Installing regex (2022.10.31) β€’ Installing responses (0.18.0) β€’ Installing xxhash (3.2.0) β€’ Installing zstandard (0.20.0) β€’ Installing apache-beam (2.45.0) β€’ Installing datasets (2.10.1) ```
55
Version mismatch with multiprocess and dill on Python 3.10 ### Describe the bug Grabbing the latest version of `datasets` and `apache-beam` with `poetry` using Python 3.10 gives a crash at runtime. The crash is ``` File "/Users/adpauls/sc/git/DSI-transformers/data/NQ/create_NQ_train_vali.py", line 1, in <module> import datasets File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/__init__.py", line 43, in <module> from .arrow_dataset import Dataset File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 65, in <module> from .arrow_reader import ArrowReader File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/arrow_reader.py", line 30, in <module> from .download.download_config import DownloadConfig File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/__init__.py", line 9, in <module> from .download_manager import DownloadManager, DownloadMode File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/download/download_manager.py", line 35, in <module> from ..utils.py_utils import NestedDataStructure, map_nested, size_str File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 40, in <module> import multiprocess.pool File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 609, in <module> class ThreadPool(Pool): File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 611, in ThreadPool from .dummy import Process File "/Users/adpauls/Library/Caches/pypoetry/virtualenvs/yyy-oPbZ7mKM-py3.10/lib/python3.10/site-packages/multiprocess/dummy/__init__.py", line 87, in <module> class Condition(threading._Condition): AttributeError: module 'threading' has no attribute '_Condition'. Did you mean: 'Condition'? ``` I think this is a bad interaction of versions from `dill`, `multiprocess`, `apache-beam`, and `threading` from the Python (3.10) standard lib. Upgrading `multiprocess` to a version that does not crash like this is not possible because `apache-beam` pins `dill` to and old version: ``` Because multiprocess (0.70.10) depends on dill (>=0.3.2) and apache-beam (2.45.0) depends on dill (>=0.3.1.1,<0.3.2), multiprocess (0.70.10) is incompatible with apache-beam (2.45.0). And because no versions of apache-beam match >2.45.0,<3.0.0, multiprocess (0.70.10) is incompatible with apache-beam (>=2.45.0,<3.0.0). So, because yyy depends on both apache-beam (^2.45.0) and multiprocess (0.70.10), version solving failed. ``` Perhaps it is not right to file a bug here, but I'm not totally sure whose fault it is. And in any case, this is an immediate blocker to using `datasets` out of the box. Possibly related to https://github.com/huggingface/datasets/issues/5232. ### Steps to reproduce the bug Steps to reproduce: 1. Make a poetry project with this configuration ``` [tool.poetry] name = "yyy" version = "0.1.0" description = "" authors = ["Adam Pauls <adpauls@gmail.com>"] readme = "README.md" packages = [{ include = "xxx" }] [tool.poetry.dependencies] python = ">=3.10,<3.11" datasets = "^2.10.1" apache-beam = "^2.45.0" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" ``` 2. `poetry install`. 3. `poetry run python -c "import datasets"`. ### Expected behavior Script runs. ### Environment info Python 3.10. Here are the versions installed by `poetry`: ``` β€’β€’ Installing frozenlist (1.3.3) β€’ Installing idna (3.4) β€’ Installing multidict (6.0.4) β€’ Installing aiosignal (1.3.1) β€’ Installing async-timeout (4.0.2) β€’ Installing attrs (22.2.0) β€’ Installing certifi (2022.12.7) β€’ Installing charset-normalizer (3.1.0) β€’ Installing six (1.16.0) β€’ Installing urllib3 (1.26.14) β€’ Installing yarl (1.8.2) β€’ Installing aiohttp (3.8.4) β€’ Installing dill (0.3.1.1) β€’ Installing docopt (0.6.2) β€’ Installing filelock (3.9.0) β€’ Installing numpy (1.22.4) β€’ Installing pyparsing (3.0.9) β€’ Installing protobuf (3.19.4) β€’ Installing packaging (23.0) β€’ Installing python-dateutil (2.8.2) β€’ Installing pytz (2022.7.1) β€’ Installing pyyaml (6.0) β€’ Installing requests (2.28.2) β€’ Installing tqdm (4.65.0) β€’ Installing typing-extensions (4.5.0) β€’ Installing cloudpickle (2.2.1) β€’ Installing crcmod (1.7) β€’ Installing fastavro (1.7.2) β€’ Installing fasteners (0.18) β€’ Installing fsspec (2023.3.0) β€’ Installing grpcio (1.51.3) β€’ Installing hdfs (2.7.0) β€’ Installing httplib2 (0.20.4) β€’ Installing huggingface-hub (0.12.1) β€’ Installing multiprocess (0.70.9) β€’ Installing objsize (0.6.1) β€’ Installing orjson (3.8.7) β€’ Installing pandas (1.5.3) β€’ Installing proto-plus (1.22.2) β€’ Installing pyarrow (9.0.0) β€’ Installing pydot (1.4.2) β€’ Installing pymongo (3.13.0) β€’ Installing regex (2022.10.31) β€’ Installing responses (0.18.0) β€’ Installing xxhash (3.2.0) β€’ Installing zstandard (0.20.0) β€’ Installing apache-beam (2.45.0) β€’ Installing datasets (2.10.1) ``` I have made a workaround by forcing an install of the version of `multiprocess` version `0.70.15` (after installing `datasets` and `apache-beam`). I can confirm that (on Python 3.10 in [this colab notebook](https://colab.research.google.com/drive/1PTeGlshamFcJZix_GiS3vMXX_YzAhGv0?usp=sharing)) `datasets` can download pre-processed Wikipedia dumps and can download non-pre-processed dumps using `beam_runner="DirectRunner"`. I don't know if/how other `beam_runner`s can be made compatible.
[ -0.3771491050720215, 0.05075012147426605, -0.0677495002746582, 0.3744870722293854, 0.14260713756084442, -0.14788541197776794, 0.1988992542028427, 0.3340210020542145, -0.2787078619003296, 0.07854893803596497, -0.10015977919101715, 0.5905037522315979, -0.30559566617012024, -0.24437648057937622, 0.034758809953927994, -0.3059857487678528, 0.17927229404449463, -0.024392273277044296, -0.26562806963920593, 0.10068636387586594, -0.20694118738174438, 0.4414686858654022, -0.18588438630104065, 0.1186429113149643, 0.11099053919315338, -0.17321382462978363, -0.109010711312294, 0.471102237701416, -0.1678667813539505, -0.35548120737075806, 0.09256860613822937, -0.0627022236585617, 0.1993485987186432, 0.46068626642227173, -0.00011645458289422095, 0.014273226261138916, 0.25311845541000366, -0.004719652235507965, -0.0787554383277893, -0.32511788606643677, -0.0379839763045311, -0.29523491859436035, 0.29448819160461426, -0.2466374784708023, 0.23078951239585876, 0.04641485586762428, -0.15387694537639618, -0.5855278372764587, 0.4000190496444702, 0.26268723607063293, 0.2108204960823059, 0.5566229820251465, 0.2645672857761383, 0.062321312725543976, 0.3858068585395813, -0.27792662382125854, -0.144562229514122, 0.3000940978527069, 0.47174397110939026, -0.19341802597045898, -0.2364504039287567, 0.37835782766342163, -0.09898190200328827, -0.06089708209037781, 0.24347244203090668, -0.17108792066574097, 0.19381387531757355, 0.05071767047047615, -0.08306194841861725, 0.0799616128206253, 0.318152517080307, -0.5332954525947571, -0.5185448527336121, -0.05555492639541626, -0.08744659274816513, -0.13847284018993378, 0.17303186655044556, 0.02480042353272438, -0.19108784198760986, -0.007703850977122784, -0.09441782534122467, -0.2323417067527771, -0.001021556556224823, 0.1407811939716339, -0.032397039234638214, 0.42305251955986023, 0.13243001699447632, 0.11619878560304642, 0.18598045408725739, -0.008739027194678783, 0.19841168820858002, 0.18343062698841095, 0.038103096187114716, -0.10025951266288757, -0.5236876010894775, 0.028180301189422607, -0.04662034660577774, -0.4686957001686096, -0.06649869680404663, 0.2146214097738266, 0.06593786925077438, 0.02649715170264244, 0.1816551685333252, -0.07066027820110321, 0.268893301486969, 0.011092934757471085, 0.1624245047569275, 0.10751040279865265, 0.277981698513031, 0.05913400650024414, 0.1470235288143158, 0.1777699738740921, 0.1277209222316742, -0.42593836784362793, -0.004444889724254608, 0.33384281396865845, 0.24817080795764923, -0.020884178578853607, -0.21985694766044617, -0.02022601291537285, -0.034029461443424225, -0.14992167055606842, -0.15055790543556213, 0.31546375155448914, -0.005792681127786636, 0.6994984149932861, 0.23452165722846985, 0.33138638734817505, -0.37033793330192566, 0.09669221937656403, -0.03803326189517975, -0.007760604843497276, -0.09806415438652039, -0.009366508573293686, 0.08247074484825134, 0.07782186567783356, 0.2409972846508026, 0.053916968405246735, -0.35119661688804626, -0.0632229745388031, 0.2758978605270386, -0.05122148245573044, -0.25019022822380066, 0.09302616119384766, -0.12462964653968811, 0.2478582113981247, -0.04940158873796463, -0.007034115493297577, -0.12431572377681732, 0.15940751135349274, -0.02677891030907631, -0.30467358231544495, -0.35844776034355164, 0.20549336075782776, 0.1649722456932068, 0.11778299510478973, 0.2680194675922394, -0.037194810807704926, 0.31983092427253723, -0.05087437108159065, 0.06688746064901352, -0.3055233061313629, -0.18569408357143402, -0.3872925043106079, 0.09304264932870865, 0.37670332193374634, -0.48286473751068115, -0.12508031725883484, -0.2500394284725189, -0.051939211785793304, 0.022847743704915047, 0.010737424716353416, -0.10082399100065231, -0.06256026029586792, -0.04162249714136124, -0.27856218814849854, 0.5358603000640869, -0.7454887628555298, -0.21449045836925507, 0.2793681025505066, 0.013429000973701477, 0.0008905753493309021, 0.13734816014766693, 0.09480143338441849, 0.1945262849330902, 0.10826367884874344, 0.2240496277809143, 0.21739034354686737, 0.12036001682281494, 0.11721640080213547, -0.2870672345161438, -0.2450360208749771, -0.1673867255449295, 0.2454981803894043, 0.2528204619884491, -0.3055920898914337, -0.038738541305065155, -0.023754369467496872, 0.5423850417137146, 0.011250699870288372, 0.08950144797563553, 0.5178016424179077, 0.1702137142419815, 0.1677747368812561, 0.08879968523979187, -0.4460298418998718, -0.3364255130290985, 0.2767446041107178, -0.2195151150226593, -0.12941154837608337, -0.13311563432216644, -0.10043836385011673, -0.1831875741481781, 0.2298242151737213, -0.02753942832350731, -0.1389571726322174, 0.10585971176624298, 0.13771259784698486, -0.13519328832626343, 0.17733561992645264, -0.18252280354499817, 0.2920025587081909, 0.14693549275398254, 0.24312761425971985, -0.4735557436943054, 0.027312107384204865, -0.47360479831695557, -0.3215184807777405, 0.07130968570709229, 0.25088226795196533, 0.0062172082252800465, -0.022921491414308548, -0.07272431999444962, 0.49770545959472656, 0.08008936792612076, 0.0668584555387497, -0.22058197855949402, -0.2920799255371094, 0.250310480594635, -0.15245002508163452, 0.16769227385520935, 0.12040232121944427, -0.1086689680814743, 0.02378656715154648, 0.5575590133666992, 0.15297016501426697, 0.08380038291215897, 0.1515342742204666, 0.17745715379714966, 0.08168290555477142, -0.06569169461727142, 0.020358309149742126, 0.07902701199054718, -0.22479423880577087, 0.20728890597820282, 0.09709110856056213, 0.5005661249160767, -0.2339233160018921, 0.001776285469532013, 0.02086116373538971, 0.4147734045982361, 0.05353695899248123, 0.1654985249042511, -0.11589924991130829, -0.29906198382377625, 0.12219524383544922, 0.43034347891807556, 0.28035223484039307, 0.3795764446258545, 0.15474191308021545, 0.034141361713409424, 0.1295773983001709, -0.18363994359970093, -0.16573895514011383, 0.21657592058181763, 0.12124933302402496, 0.49100539088249207, -0.01824246719479561, 0.05444347485899925, 0.04581281542778015, 0.041256487369537354, -0.1646757870912552, -0.024996623396873474, 0.1092512235045433, -0.385162353515625, 0.18985864520072937, -0.44358691573143005, -0.014785461127758026, -0.3277777433395386, -0.21293452382087708, -0.24198876321315765, -0.2568108141422272, 0.0016634641215205193, 0.2016770988702774, -0.27398109436035156, 0.1928558349609375, 0.026364929974079132, -0.2384607493877411, 0.06460029631853104, -0.06942937523126602, 0.013156779110431671, -0.1808205544948578, -0.4354940950870514, 0.0582447350025177, 0.24513453245162964, -0.16523118317127228, 0.29278290271759033, -0.09629009664058685, -0.2278265357017517, -0.08930142223834991, -0.22454726696014404, 0.0315655842423439, 0.11868706345558167, 0.1535857915878296, 0.30154621601104736, -0.12439247220754623, 0.006410650908946991, -0.1916271150112152, 0.09468643367290497, -0.17299117147922516, -0.2166089415550232, -0.07629623264074326, 0.07777491211891174, 0.13672643899917603, -0.22969244420528412, -0.546476423740387, -0.2638646960258484, -0.520150363445282, 0.08080200850963593, -0.14611968398094177, 0.24416983127593994, 0.031104817986488342, 0.23564715683460236, 0.0720849484205246, 0.1625538319349289, 0.21405228972434998, 0.15217772126197815, 0.39621609449386597, -0.10309718549251556, -0.2003723680973053, -0.3482798933982849, -0.10068560391664505, -0.029122095555067062, 0.134439617395401, 0.2907693684101105, -0.4502798020839691, -0.3411259651184082, -0.2608399987220764, 0.27910593152046204, -0.24616393446922302, 0.11252464354038239, 0.30660754442214966, 0.33844107389450073, -0.08039265871047974, -0.13746613264083862, -0.10484077036380768, 0.0873730406165123, -0.31661126017570496, 0.2529044449329376, 0.19046464562416077, 0.2045145481824875, 0.02969019114971161, 0.8358369469642639, 0.15267398953437805, -0.11870816349983215, 0.37266093492507935, 0.09307355433702469, 0.34395721554756165, 0.022852525115013123, -0.06234534829854965, -0.37554943561553955, -0.11882318556308746, 0.37209203839302063, -0.11984539031982422, 0.06414718925952911, -0.16686993837356567, -0.3047024607658386, 0.2631981670856476, -0.27342694997787476, -0.21706625819206238, 0.03545331209897995, -0.5674179792404175, 0.014453493058681488, 0.0685013085603714, 0.3219606280326843, 0.06465774774551392, 0.12294487655162811, 0.19578342139720917, 0.14348840713500977, -0.3685207664966583, -0.12608745694160461, 0.3632216453552246, 0.2565246522426605, -0.38574251532554626, 0.3568084239959717, 0.15482228994369507, 0.42658472061157227, 0.1461251676082611, -0.17941245436668396, -0.06311476230621338, -0.15082775056362152, 0.6748195886611938, -0.3834206163883209, -0.1291162669658661, 0.19674934446811676, -0.1126568540930748, -0.7937095761299133, -0.07786611467599869, -0.3117222785949707, -0.12542687356472015, 0.340170681476593, 0.2552216649055481, -0.17362958192825317, -0.08016061782836914, 0.01766442507505417, -0.09780111908912659, 0.006134815514087677, -0.03446514904499054, -0.29949742555618286, -0.1816469132900238, -0.2709381580352783, -0.1122959554195404, -0.12423527240753174, 0.11540812253952026, -0.2170202136039734, -0.2210947573184967, 0.011888479813933372, -0.14874698221683502, -0.10027141869068146, 0.04171769693493843, 0.20608380436897278, -0.40325015783309937, 0.19246149063110352, -0.17872384190559387, 0.2873303294181824, 0.08003276586532593, 0.31787070631980896, -0.3074937164783478, -0.35662075877189636, 0.04890820384025574, -0.0356970876455307, -0.009452831000089645, 0.3175303637981415, 0.03025367110967636, 0.18310537934303284, -0.027773389592766762, -0.18171946704387665, 0.12408801913261414, -0.06322531402111053, 0.3538017272949219, 0.12059232592582703, -0.024247894063591957, -0.2322314977645874, 0.12384329736232758, 0.3070622682571411, -0.1834370493888855, 0.2642301321029663, -0.19733351469039917, -0.1624179184436798, 0.28723999857902527, 0.0941048189997673, 0.765194296836853, -0.19461572170257568, 0.21938233077526093, 0.2629304528236389, -0.6695581078529358, 0.41567814350128174, -0.023288890719413757, 0.07633382081985474, -0.5609092712402344, -0.17624449729919434, 0.061668626964092255, -0.14102762937545776, 0.15161627531051636, -0.03993093594908714, -0.15997399389743805, 0.2994805872440338, 0.19837811589241028, -0.17284375429153442, -0.11634263396263123, 0.10042873024940491, -0.37660306692123413, -0.033899493515491486, -0.2025260329246521, 0.06433345377445221, -0.07333080470561981, -0.04401330277323723, -0.359864741563797, 0.025051847100257874, -0.2385808527469635, -0.319742351770401, -0.5098589062690735, 0.11293096840381622, -0.32217082381248474, 0.48940399289131165, -0.21673661470413208, -0.4875052571296692, -0.10482218861579895, 0.4659350514411926, 0.11672069132328033, -0.07033257186412811, -0.05260344594717026, 0.14830684661865234, -0.2599064111709595, 0.07399009168148041, 0.23822827637195587, 0.07513122260570526, 0.406380832195282, -0.18612028658390045, -0.25677716732025146, 0.10416039824485779, -0.13340067863464355, -0.25402581691741943, 0.19766081869602203, 0.3267972469329834, 0.02954133413732052, 0.1672433465719223, 0.14217452704906464, -0.06746795773506165, 0.02292739599943161, -0.20545147359371185, 0.10246561467647552, -0.1184937059879303, -0.015132442116737366, 0.1883534938097, -0.36151546239852905, -0.09170612692832947, -0.00940210372209549, 0.4540847837924957, 0.1781865954399109, 0.033309146761894226, 0.3013489246368408, 0.4097002148628235, -0.16756367683410645, -0.11065319180488586, -0.1421387940645218, -0.07619597017765045, -0.302916944026947, 0.04012405872344971, -0.23728850483894348, -0.33357077836990356, 0.19557040929794312, -0.11576797068119049, 0.29591745138168335, 0.16778163611888885, -0.14779256284236908, -0.22189533710479736, -0.19261914491653442, 0.2818378806114197, -0.0012616603635251522, 0.10903303325176239, 0.04998330771923065, -0.16273382306098938, 0.008539192378520966, 0.0037392787635326385, -0.2560281753540039, 0.0450468435883522, 0.03474406152963638, 0.04577440768480301, -0.2286445051431656, -0.22687678039073944, -0.05602312833070755, -0.016348347067832947, 0.06369461119174957, 0.043188806623220444, -0.18422237038612366, -0.14358097314834595, -0.09725097566843033, 0.0764719545841217, -0.12262013554573059, -0.07263077795505524, 0.03816689923405647, -0.1919175088405609, 0.0075616054236888885, -0.0446782112121582, 0.25699055194854736, 0.34683743119239807, -0.04555678367614746, 0.1929791420698166, 0.010371966287493706, 0.34006181359291077, -0.06105643883347511, 0.3775181472301483, -0.39473384618759155, 0.27417901158332825, -0.026732895523309708, 0.26541954278945923, 0.19565467536449432, -0.19381508231163025, -0.23012813925743103, -0.23516565561294556, 0.03409070149064064, 0.1824125349521637, 0.11415231227874756, -0.07436364889144897, -0.3154502511024475, -0.18037264049053192, 0.438332736492157, 0.47273504734039307, -0.19173049926757812, -0.17601320147514343, 0.10828346759080887, 0.19086907804012299, -0.04529036581516266, -0.04799827188253403, -0.19009357690811157, -0.2165502905845642, 0.025227516889572144, 0.14416328072547913, 0.055130377411842346, -0.23532059788703918, -0.03225810453295708, 0.26940399408340454, 0.32457539439201355, 0.12447157502174377, 0.17001409828662872, 0.10338111221790314, 0.14543932676315308, 0.05915640667080879, 0.018998244777321815, -0.16364198923110962, 0.3589986562728882, 0.2417306900024414, -0.16611671447753906, 0.5554064512252808, 0.15928368270397186, 0.1337069571018219, 0.25330308079719543, -0.36687979102134705, 0.19161364436149597, 0.06873992830514908, 0.013430632650852203, 0.2976340353488922, 0.17632119357585907, 0.4059865176677704, -0.14008885622024536, -0.22744446992874146, -0.1628204584121704, 0.057888563722372055, -0.23731234669685364, 0.05595254898071289, 0.06896498054265976, -0.0652487576007843, 0.009325340390205383, 0.11338634788990021, -0.06334297358989716, -0.04259244352579117, 0.6586321592330933, 0.11763317883014679, -0.11156928539276123, -0.5573937892913818, 0.16992102563381195, -0.0749812126159668, 0.03731466829776764, -0.14834024012088776, 0.3278828561306, 0.3710869252681732, -0.050970375537872314, -0.11297827959060669, 0.2483445107936859, 0.38660672307014465, 0.3550364375114441, -0.09246516972780228, -0.09056989848613739, 0.3481724262237549, 0.1405484974384308, -0.10176379978656769, 0.11658675968647003, 0.08886778354644775, 0.3704560399055481, 0.3659951388835907, 0.11035175621509552, -0.12912976741790771, -0.14404872059822083, 0.26321515440940857, 0.1234126165509224, -0.150333970785141, 0.37296414375305176, -0.32014787197113037, -0.24544286727905273, 0.23154544830322266, 0.20461243391036987, -0.5852034091949463, 0.052107203751802444, 0.33335089683532715, 0.0007150024175643921, 0.07244613766670227, -0.07060056179761887, 0.07748168706893921, 0.05067291110754013, 0.22053205966949463, 0.49148350954055786, 0.29941898584365845, -0.03687635809183121, -0.18451407551765442, -0.45427054166793823, 0.37370461225509644, 0.005573068745434284, 0.008625537157058716, -0.17059749364852905, -0.014979273080825806, 0.08291797339916229, 0.009768888354301453, 0.36610549688339233, 0.15548662841320038, 0.08628775179386139, 0.32818958163261414, -0.7888344526290894, -0.21233096718788147, 0.14902348816394806, -0.2827439308166504, 0.14295600354671478, -0.4316948652267456, 0.14588439464569092, -0.08712272346019745, -0.03741520270705223, -0.1757674366235733, -0.09484419226646423, 0.45433980226516724, -0.16314399242401123, 0.41922375559806824, 0.0067166853696107864, 0.3638207018375397, -0.1259152740240097, -0.43873050808906555, -0.09132690727710724, -0.022951219230890274, -0.023209884762763977, 0.05191913992166519, -0.01934860646724701, 0.27226826548576355, -0.24137455224990845, 0.014264196157455444, -0.04081210121512413, 0.793780505657196, 0.05943445861339569, 0.32920029759407043, -0.22454801201820374, 0.04100329428911209, 0.12560509145259857, -0.13176129758358002, 0.04589792713522911, 0.32098856568336487, 0.015192385762929916, 0.3110525906085968, -0.425211101770401, -0.4065045118331909, 0.3265584111213684, -0.22359558939933777, -0.06751125305891037, -0.2110908329486847, 0.20542044937610626, -0.10588166117668152, 0.1319766789674759, -0.8719819188117981, -0.05846653878688812, 0.266402930021286, -0.0032498743385076523, -0.0685565322637558, 0.10371938347816467, -0.15297722816467285, -0.013613969087600708, -0.08368159830570221, 0.29597190022468567, -0.04015197232365608, -0.21831321716308594, 0.2512304186820984, -0.15569040179252625 ]
https://github.com/huggingface/datasets/issues/5612
I'm attaching a minimal reproducible example: ```python from datasets import load_dataset import pyarrow as pa import pyarrow.parquet as pq table_with_map = pa.Table.from_pydict( {"a": [1, 2], "b": [[("a", 2)], [("b", 4)]]}, schema=pa.schema({"a": pa.int32(), "b": pa.map_(pa.string(), pa.int32())}) ) pq.write_table(table_with_map, "parquet_with_map.parquet") dset = load_dataset("parquet", data_files="parquet_with_map.parquet", split="train") # error unless streaming=True ``` For a dataset generated with the packaged loaders (CSV, JSON, Parquet), `streaming=True` sets the dataset's features to `None` (unless explicitly provided in `load_dataset`), hence no error will be thrown as long as the features stay "unresolved" (resolving the features with `_resolve_features` will lead to an error).
Arrow map type in parquet files unsupported
### Describe the bug When I try to load parquet files that were processed with Spark, I get the following issue: `ValueError: Arrow type map<string, string ('warc_headers')> does not have a datasets dtype equivalent.` Strangely, loading the dataset with `streaming=True` solves the issue. ### Steps to reproduce the bug The dataset is private, but this can be reproduced with any dataset that has Arrow maps. ### Expected behavior Loading the dataset no matter whether streaming is True or not. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-5.15.0-1029-gcp-x86_64-with-glibc2.31 - Python version: 3.10.7 - PyArrow version: 8.0.0 - Pandas version: 1.4.2
94
Arrow map type in parquet files unsupported ### Describe the bug When I try to load parquet files that were processed with Spark, I get the following issue: `ValueError: Arrow type map<string, string ('warc_headers')> does not have a datasets dtype equivalent.` Strangely, loading the dataset with `streaming=True` solves the issue. ### Steps to reproduce the bug The dataset is private, but this can be reproduced with any dataset that has Arrow maps. ### Expected behavior Loading the dataset no matter whether streaming is True or not. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-5.15.0-1029-gcp-x86_64-with-glibc2.31 - Python version: 3.10.7 - PyArrow version: 8.0.0 - Pandas version: 1.4.2 I'm attaching a minimal reproducible example: ```python from datasets import load_dataset import pyarrow as pa import pyarrow.parquet as pq table_with_map = pa.Table.from_pydict( {"a": [1, 2], "b": [[("a", 2)], [("b", 4)]]}, schema=pa.schema({"a": pa.int32(), "b": pa.map_(pa.string(), pa.int32())}) ) pq.write_table(table_with_map, "parquet_with_map.parquet") dset = load_dataset("parquet", data_files="parquet_with_map.parquet", split="train") # error unless streaming=True ``` For a dataset generated with the packaged loaders (CSV, JSON, Parquet), `streaming=True` sets the dataset's features to `None` (unless explicitly provided in `load_dataset`), hence no error will be thrown as long as the features stay "unresolved" (resolving the features with `_resolve_features` will lead to an error).
[ -0.31641244888305664, -0.40829914808273315, 0.0928356721997261, 0.32059523463249207, 0.042756788432598114, 0.006339341402053833, 0.08654135465621948, 0.15762928128242493, 0.18134143948554993, -0.03863963484764099, 0.34447041153907776, 0.9050392508506775, -0.24311761558055878, 0.19016627967357635, -0.24239575862884521, -0.2282877117395401, 0.18258102238178253, 0.06548982858657837, 0.028449004516005516, 0.26406601071357727, -0.23109407722949982, 0.162939190864563, -0.2653171718120575, 0.15698730945587158, 0.10733359307050705, -0.12282110750675201, 0.15326324105262756, -0.20539051294326782, -0.17326927185058594, -0.500139057636261, 0.4367524981498718, -0.5130137801170349, 0.24290095269680023, 0.37320980429649353, -0.0001232215581694618, 0.2359139621257782, 0.6532459259033203, 0.0010352283716201782, -0.011617302894592285, -0.3578277826309204, -0.09000503271818161, -0.11033710837364197, 0.44795793294906616, -0.002450808882713318, 0.04761562496423721, -0.1967451572418213, 0.09391628205776215, -0.389513224363327, 0.17063599824905396, 0.23275020718574524, 0.0751233696937561, 0.04083956778049469, 0.15254396200180054, 0.09906675666570663, 0.6158514618873596, 0.31440025568008423, -0.2044040709733963, 0.31486865878105164, 0.347741961479187, 0.030682221055030823, -0.10607461631298065, 0.09318336844444275, 0.003223419189453125, 0.07276873290538788, 0.193075031042099, 0.11521975696086884, 0.282564252614975, -0.19761930406093597, -0.07305890321731567, 0.19725725054740906, 0.5040167570114136, -0.1895773559808731, -0.3672313392162323, -0.2488996386528015, -0.13498356938362122, -0.19930380582809448, 0.2579171061515808, 0.04758521169424057, 0.1191851794719696, 0.09893010556697845, 0.32603752613067627, 0.0491192452609539, -0.06163851171731949, 0.10386642813682556, -0.10954614728689194, 0.2224007397890091, -0.09418464452028275, 0.25537607073783875, -0.22996535897254944, -0.34562742710113525, 0.010275095701217651, -0.15118417143821716, -0.20180612802505493, 0.09581661224365234, -0.13932085037231445, 0.000661507248878479, -0.21336843073368073, -0.28094029426574707, 0.04524289071559906, -0.09291145205497742, 0.06253670156002045, -0.04165927693247795, 0.03866545483469963, 0.3369203209877014, 0.3994000554084778, -0.2069128155708313, 0.012947827577590942, 0.26600202918052673, -0.10456052422523499, 0.0496770441532135, 0.05586038529872894, -0.06558309495449066, -0.0524563230574131, -0.13507919013500214, -0.10160869359970093, -0.06412553787231445, 0.3347775638103485, -0.09841403365135193, -0.22731827199459076, -0.0008541233837604523, -0.42355647683143616, 0.1428273618221283, 0.007080886512994766, 0.18171969056129456, 0.04729040339589119, 0.3661916255950928, -0.02152875065803528, 0.4181884229183197, 0.0038087740540504456, -0.28567594289779663, -0.01674092747271061, -0.17140251398086548, -0.2284705638885498, -0.2769722044467926, 0.025470003485679626, -0.00974726676940918, -0.030256938189268112, 0.3380451798439026, -0.21727825701236725, 0.16425076127052307, -0.0732504203915596, -0.08365458250045776, -0.24490627646446228, 0.09127728641033173, -0.3601929545402527, 0.2610898017883301, 0.25050613284111023, -0.03899411857128143, -0.17760315537452698, 0.15991422533988953, -0.6617382764816284, -0.04986296966671944, -0.13719378411769867, 0.023888293653726578, 0.021871887147426605, -0.23023423552513123, -0.9578611850738525, 0.17056429386138916, 0.023317687213420868, -0.38906705379486084, 0.11416705697774887, -0.31244096159935, -0.012445591390132904, -0.24712412059307098, 0.01595579832792282, 0.2504311203956604, -0.5126743316650391, -0.09739881008863449, -0.14799171686172485, -0.037448834627866745, 0.6282231211662292, 0.2203335165977478, -0.265328049659729, -0.2662748694419861, -0.10079991072416306, 0.2094431072473526, 0.48270317912101746, -0.09612677246332169, -0.1534654051065445, 0.30805596709251404, 0.10688847303390503, 0.3295811414718628, 0.17851993441581726, -0.4116097092628479, 0.5033209919929504, 0.1395704597234726, 0.18936912715435028, 0.028605833649635315, -0.15421728789806366, 0.11366118490695953, -0.3034292757511139, -0.2849407196044922, 0.47189033031463623, 0.05714930593967438, 0.005287910811603069, -0.10552029311656952, 0.25149834156036377, -0.3971323072910309, -0.008943945169448853, 0.15106764435768127, -0.008333612233400345, -0.03549651801586151, 0.2608625292778015, 0.2960410714149475, 0.02768898755311966, -0.11255526542663574, -0.5193532109260559, 0.27059224247932434, -0.046792976558208466, -0.2892773747444153, -0.2952778935432434, -0.048140883445739746, 0.014903195202350616, 0.23080644011497498, 0.10547348111867905, 0.0343208909034729, -0.015750620514154434, -0.21381805837154388, -0.3980270028114319, 0.023471452295780182, -0.08481146395206451, -0.19325749576091766, -0.13548129796981812, 0.12245772778987885, 0.07875363528728485, 0.30741411447525024, 0.06643810123205185, -0.39397934079170227, 0.047885648906230927, -0.1195702850818634, 0.11528198421001434, -0.09703568369150162, -0.03517448902130127, 0.27084723114967346, 0.3315635919570923, 0.18707333505153656, 0.03739532083272934, 0.14494416117668152, 0.2816855311393738, -0.4058457016944885, -0.1689799576997757, 0.3595253825187683, 0.18090151250362396, 0.04970088601112366, -0.09915105998516083, 0.25484123826026917, 0.197821706533432, 0.25465893745422363, -0.3452607989311218, 0.13071909546852112, 0.3257698118686676, 0.3936353325843811, -0.18999789655208588, 0.15176215767860413, -0.12715695798397064, 0.006749920547008514, 0.18293200433254242, 0.026935195550322533, -0.4085644483566284, -0.10359838604927063, 0.2868626117706299, 0.22853708267211914, 0.1377362310886383, 0.279666930437088, -0.3566560745239258, -0.0572991743683815, 0.3752034902572632, 0.02414727956056595, 0.1920837014913559, 0.21386204659938812, -0.01200408861041069, -0.3940415680408478, -0.10387833416461945, 0.027753662317991257, 0.20312988758087158, 0.1892414093017578, 0.26916757225990295, 0.06184474751353264, 0.2956594228744507, 0.30341023206710815, -0.05738933011889458, 0.18407902121543884, 0.0016958490014076233, 0.07618588209152222, -0.44657817482948303, 0.14983505010604858, -0.3966260552406311, 0.025697842240333557, -0.10151401162147522, 0.1628786325454712, -0.2495158463716507, -0.07192627340555191, -0.06261688470840454, 0.11453510075807571, -0.17936842143535614, 0.20740392804145813, -0.0227583646774292, 0.16189716756343842, 0.08764249086380005, -0.38793379068374634, -0.2672366499900818, -0.2774718403816223, -0.35423406958580017, -0.032895542681217194, 0.20860949158668518, -0.230146586894989, -0.009742632508277893, 0.3190426826477051, 0.24159175157546997, -0.48632460832595825, -0.29569417238235474, 0.019968369975686073, -0.22385099530220032, 0.10992627590894699, 0.157306969165802, 0.0626596063375473, -0.23441779613494873, -0.3128916323184967, 0.26230329275131226, -0.36793044209480286, -0.14819681644439697, 0.2136361300945282, -0.25770118832588196, 0.03251213580369949, -0.08822648972272873, -0.07580748200416565, -0.2177751362323761, -0.30331966280937195, 0.38351860642433167, 0.1583908200263977, -0.08283461630344391, -0.3264269530773163, 0.2521069347858429, -0.07234835624694824, -0.030967500060796738, -0.16738443076610565, 0.061998799443244934, 0.04438060522079468, 0.40057793259620667, 0.08951562643051147, -0.18644475936889648, 0.3191642761230469, -0.10183681547641754, -0.1124739944934845, 0.4083530306816101, -0.13637134432792664, 0.20855864882469177, -0.1241297721862793, 0.26117727160453796, -0.058280717581510544, -0.19909119606018066, 0.38372018933296204, 0.10382473468780518, 0.042251259088516235, -0.13888409733772278, -0.13032320141792297, 0.07415735721588135, 0.2434624582529068, 0.2975925803184509, 0.3322103023529053, 0.6230486035346985, 0.06303422152996063, 0.7655736804008484, 0.042122870683670044, -0.27109062671661377, 0.34929758310317993, -0.22185443341732025, 0.07838931679725647, -0.258438378572464, 0.174626424908638, -0.37517499923706055, -0.28376415371894836, 0.02728835493326187, 0.24200080335140228, -0.06782612204551697, -0.5428729057312012, 0.01256553828716278, 0.07482422888278961, -0.23537909984588623, -0.15430182218551636, 0.09076833724975586, -0.5511983633041382, 0.031443919986486435, -0.2823638319969177, -0.0006176531314849854, -0.19632187485694885, -0.08780361711978912, 0.30177032947540283, 0.16805259883403778, 0.2554628252983093, 0.08051857352256775, 0.1962732970714569, 0.0919998362660408, -0.06460696458816528, 0.24496901035308838, 0.007338415831327438, 0.44898879528045654, -0.04102625697851181, -0.09774663299322128, 0.0982908308506012, 0.11390360444784164, 0.5056543946266174, -0.18403995037078857, 0.14176979660987854, -0.01897374913096428, 0.20380644500255585, -0.3926021456718445, -0.22693653404712677, -0.2772442400455475, -0.01066422089934349, 0.029503554105758667, 0.6386117935180664, -0.5050070285797119, -0.05014408379793167, -0.2084970474243164, -0.238797128200531, 0.007169850170612335, 0.1276150494813919, -0.24893304705619812, 0.3166646361351013, -0.03155136853456497, 0.07817012071609497, 0.49623000621795654, 0.07928800582885742, 0.01986008882522583, -0.057305946946144104, -0.4851943850517273, -0.15739057958126068, -0.06642285734415054, 0.009607665240764618, 0.49903249740600586, -0.24476924538612366, -0.003564395010471344, 0.06469867378473282, 0.43124857544898987, 0.2532216012477875, 0.47057199478149414, 0.2999287545681, -0.7659513354301453, 0.22951868176460266, 0.06639114022254944, 0.2892026901245117, -0.034914977848529816, -0.1940489262342453, 0.17042607069015503, -0.2889891266822815, -0.30108150839805603, -0.3029232621192932, 0.04259160906076431, 0.3460336923599243, -0.17602168023586273, -0.17631873488426208, -0.20339179039001465, 0.5689114928245544, 0.14885982871055603, -0.12859037518501282, 0.5511182546615601, 0.4042360782623291, -0.21165969967842102, 0.6049389243125916, 0.1894184947013855, 0.7064838409423828, -0.19951768219470978, 0.052789852023124695, 0.31719353795051575, -0.4346766471862793, 0.21904157102108002, 0.019822485744953156, -0.004422347992658615, -0.27844083309173584, 0.03497539088129997, -0.09124051034450531, -0.1986876130104065, 0.22187580168247223, 0.2369362711906433, -0.10773320496082306, 0.1711343228816986, 0.13860659301280975, 0.5085911154747009, 0.10860050469636917, -0.04496167600154877, 0.1354524791240692, -0.09038101881742477, -0.17692367732524872, 0.002581503242254257, -0.08407396078109741, -0.2019004076719284, 0.0010716505348682404, -0.30895930528640747, -0.21557636559009552, -0.20770178735256195, -0.31190192699432373, 0.10388606041669846, -0.429840087890625, 0.13016101717948914, 0.22728563845157623, -0.3129117786884308, 0.382077693939209, 0.2901321053504944, -0.54721599817276, -0.1674392819404602, -0.28152012825012207, 0.21622297167778015, 0.27613186836242676, -0.11336271464824677, -0.1449975073337555, 0.0832890123128891, 0.04085212200880051, 0.14697138965129852, 0.10999001562595367, 0.182673379778862, -0.2782965302467346, -0.37114763259887695, 0.1247863620519638, 0.15102556347846985, 0.18032431602478027, -0.1911846548318863, -0.19856378436088562, -0.4815653860569, -0.0013339221477508545, 0.0675358846783638, 0.005398937966674566, -0.11056123673915863, 0.13542550802230835, -0.15558315813541412, 0.07971920073032379, -0.19441933929920197, 0.04359126463532448, 0.3804856240749359, -0.4276129901409149, 0.25682148337364197, 0.44226235151290894, 0.10570549964904785, -0.36174261569976807, -0.018103785812854767, 0.10714830458164215, 0.18214717507362366, -0.49407464265823364, 0.1281197965145111, -0.2274673730134964, -0.10622408241033554, 0.143468976020813, 0.19857174158096313, 0.3670281767845154, -0.11097216606140137, -0.11191877722740173, -0.29634809494018555, -0.10727006196975708, 0.4068721830844879, -0.4195106625556946, 0.04625823721289635, 0.08824809640645981, -0.22218409180641174, 0.10011781007051468, -0.4970910847187042, -0.13559582829475403, 0.25749093294143677, 0.16077736020088196, 0.20548400282859802, -0.07281861454248428, 0.2162296175956726, 0.2478971779346466, -0.14728586375713348, 0.05256488546729088, 0.00648447684943676, 0.11932684481143951, -0.0172521211206913, 0.08109143376350403, 0.18205904960632324, 0.21578580141067505, 0.0856565609574318, -0.2060038298368454, -0.05420771241188049, -0.14879325032234192, -0.07087637484073639, -0.06890827417373657, 0.028608404099941254, -0.30962440371513367, -0.08035348355770111, 0.6298564672470093, 0.20486348867416382, -0.37691789865493774, 0.17097675800323486, -0.0908551812171936, 0.13454602658748627, -0.12231321632862091, 0.03852805495262146, -0.04460294917225838, -0.01170235127210617, -0.05761592835187912, 0.14348360896110535, -0.011837683618068695, 0.25747087597846985, 0.4721015989780426, -0.3157918155193329, -0.06334826350212097, 0.1552632749080658, 0.07891789078712463, 0.31816554069519043, -0.04726561903953552, -0.3294121026992798, 0.2749359905719757, 0.062732994556427, -0.1001422107219696, 0.06545977294445038, 0.24793030321598053, 0.2212529331445694, -0.009222954511642456, 0.026537016034126282, 0.20646589994430542, 0.15205618739128113, -0.42841291427612305, 0.12097875773906708, 0.32942527532577515, -0.11948472261428833, 0.2114819884300232, 0.580011248588562, 0.13157227635383606, 0.13089050352573395, 0.11857226490974426, 0.11658138036727905, 0.17404019832611084, 0.15674641728401184, 0.17347513139247894, 0.08890824764966965, 0.44866943359375, -0.1462000459432602, 0.14158542454242706, -0.3882579505443573, -0.302430123090744, -0.06613142043352127, 0.1627347767353058, 0.21176274120807648, 0.4503874182701111, 0.2870689332485199, 0.18770287930965424, -0.32351934909820557, -0.12169872224330902, -0.24252042174339294, -0.08078190684318542, -0.11416606605052948, -0.07625063508749008, -0.14161711931228638, -0.18273669481277466, -0.07306336611509323, -0.28600993752479553, 0.2944967448711395, 0.3240395784378052, 0.196368008852005, 0.15783609449863434, -0.12474994361400604, -0.018190566450357437, 0.08716721087694168, 0.44155123829841614, -0.07205402851104736, 0.2795054316520691, -0.23122356832027435, -0.22058987617492676, 0.1887771189212799, -0.03555603325366974, 0.3571484088897705, 0.2885894179344177, -0.4346020519733429, -0.15683013200759888, -0.03370923921465874, -0.07624185085296631, 0.20894590020179749, 0.18991893529891968, -0.018746085464954376, 0.07808923721313477, 0.16255952417850494, 0.09356410801410675, 0.02473887801170349, -0.06408372521400452, -0.09151744842529297, 0.1529405117034912, 0.015559952706098557, 0.10817909240722656, -0.18895815312862396, -0.06414274871349335, 0.07994270324707031, 0.024065272882580757, -0.12928904592990875, -0.19631195068359375, 0.19063684344291687, 0.048439040780067444, -0.03529059886932373, 0.17769795656204224, 0.012776408344507217, 0.14466583728790283, 0.35230737924575806, 0.42975354194641113, -0.09076349437236786, -0.11152632534503937, 0.17043977975845337, -0.41672608256340027, 0.09890387952327728, -0.10946734249591827, 0.05454111844301224, 0.41360223293304443, 0.25764796137809753, 0.16917720437049866, 0.21960113942623138, 0.04275856912136078, 0.16105060279369354, -0.05052969977259636, 0.36741286516189575, -0.071161188185215, -0.13193722069263458, 0.172771155834198, -0.04803359508514404, -0.10265448689460754, -0.2776997685432434, 0.1095968559384346, 0.03719576448202133, -0.0567740835249424, 0.05010729283094406, -0.381438672542572, -0.09420739859342575, -0.2171163558959961, 0.37076613306999207, 0.06915543228387833, 0.15514704585075378, -0.09157539159059525, 0.021912649273872375, -0.2578717768192291, -0.3952946364879608, -0.1700422167778015, 0.35036301612854004, -0.4391263425350189, 0.3465926945209503, -0.2601853013038635, -0.010249853134155273, -0.26771873235702515, -0.13776811957359314, -0.2672250270843506, -0.22694337368011475, -0.5035206079483032, 0.2908002734184265, -0.1502155214548111, -0.141988143324852, -0.35582175850868225, -0.014684071764349937, 0.04660601168870926, 0.0018135905265808105, 0.03195104002952576, -0.19426411390304565, 0.3614218831062317, -0.6382489800453186, -0.1394038200378418, 0.046977076679468155, -0.043534889817237854, 0.6773227453231812, 0.25044137239456177, -0.44060230255126953, -0.15167272090911865, 0.350904643535614, -0.0802181288599968, 0.029523417353630066, -0.32178547978401184, 0.07959932088851929, -0.060409363359212875, -0.24606388807296753, 0.4106527864933014, -0.1915830373764038, 0.20717602968215942, -0.06598340719938278, -0.3754881024360657 ]
https://github.com/huggingface/datasets/issues/5612
I've also been wondering about datasets support for Arrow Map datatypes. I had a situation where I had a pandas series of dict[str, float] with hundreds of different possible key values (ie. not bounded), and this got converted to a sequence of structs where every single struct had the entire set of keys. I worked around it, by explicitly creating a sequence of [str, float], but given that pyarrow has an explicit Map datatype, it would be good to be able to explicitly cast/force this data type combination.
Arrow map type in parquet files unsupported
### Describe the bug When I try to load parquet files that were processed with Spark, I get the following issue: `ValueError: Arrow type map<string, string ('warc_headers')> does not have a datasets dtype equivalent.` Strangely, loading the dataset with `streaming=True` solves the issue. ### Steps to reproduce the bug The dataset is private, but this can be reproduced with any dataset that has Arrow maps. ### Expected behavior Loading the dataset no matter whether streaming is True or not. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-5.15.0-1029-gcp-x86_64-with-glibc2.31 - Python version: 3.10.7 - PyArrow version: 8.0.0 - Pandas version: 1.4.2
88
Arrow map type in parquet files unsupported ### Describe the bug When I try to load parquet files that were processed with Spark, I get the following issue: `ValueError: Arrow type map<string, string ('warc_headers')> does not have a datasets dtype equivalent.` Strangely, loading the dataset with `streaming=True` solves the issue. ### Steps to reproduce the bug The dataset is private, but this can be reproduced with any dataset that has Arrow maps. ### Expected behavior Loading the dataset no matter whether streaming is True or not. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-5.15.0-1029-gcp-x86_64-with-glibc2.31 - Python version: 3.10.7 - PyArrow version: 8.0.0 - Pandas version: 1.4.2 I've also been wondering about datasets support for Arrow Map datatypes. I had a situation where I had a pandas series of dict[str, float] with hundreds of different possible key values (ie. not bounded), and this got converted to a sequence of structs where every single struct had the entire set of keys. I worked around it, by explicitly creating a sequence of [str, float], but given that pyarrow has an explicit Map datatype, it would be good to be able to explicitly cast/force this data type combination.
[ -0.28700849413871765, -0.24090798199176788, 0.06536225229501724, 0.27144545316696167, 0.08346843719482422, 0.033068373799324036, 0.138669952750206, 0.16712042689323425, 0.1862376481294632, -0.14349836111068726, 0.24972888827323914, 0.8314013481140137, -0.24986690282821655, 0.28423213958740234, -0.18577608466148376, -0.21119891107082367, 0.21492785215377808, 0.06900960206985474, -0.008899379521608353, 0.23585672676563263, -0.2256547510623932, 0.08110922574996948, -0.23597466945648193, 0.08017060160636902, 0.0897064283490181, -0.14820218086242676, 0.05642160028219223, -0.35084155201911926, -0.21652819216251373, -0.5485013127326965, 0.455099493265152, -0.39881253242492676, 0.2415880560874939, 0.3667886257171631, -0.00012188991240691394, 0.2652629315853119, 0.5992493629455566, 0.0412822961807251, -0.017751045525074005, -0.27705320715904236, -0.20453763008117676, -0.0819331705570221, 0.5056891441345215, -0.0524589940905571, -0.000687427818775177, -0.33210891485214233, 0.15356284379959106, -0.33849191665649414, 0.28451335430145264, 0.2135951966047287, 0.07154132425785065, 0.0430191233754158, 0.22443023324012756, 0.1435374915599823, 0.6329588890075684, 0.3445993661880493, -0.25986766815185547, 0.23360086977481842, 0.4366946816444397, 0.037891581654548645, -0.06920302659273148, -0.0382106713950634, 0.03382129222154617, 0.051560621708631516, 0.21617180109024048, 0.03586302697658539, 0.18494004011154175, -0.3576480746269226, -0.1092386543750763, 0.3427993059158325, 0.6434764266014099, -0.21611477434635162, -0.49085843563079834, -0.271364688873291, -0.1088760644197464, -0.037481196224689484, 0.18160948157310486, 0.0698636844754219, 0.02825561910867691, 0.13573917746543884, 0.25349557399749756, 0.06379669904708862, -0.028413943946361542, 0.1577484905719757, -0.23599140346050262, 0.3002164959907532, -0.09386906027793884, 0.20560091733932495, -0.20018739998340607, -0.34068045020103455, 0.10572664439678192, -0.15361309051513672, -0.2178943157196045, 0.07542939484119415, -0.19281189143657684, -0.08795784413814545, -0.2755891978740692, -0.11593939363956451, 0.14115893840789795, -0.07731235027313232, 0.0811774730682373, 0.056446224451065063, -0.06213778629899025, 0.2542822062969208, 0.4893079102039337, -0.26828691363334656, 0.008829671889543533, 0.17979907989501953, 0.009729981422424316, -0.1490243673324585, 0.1343269795179367, -0.07577899098396301, -0.08992557227611542, -0.16571255028247833, -0.12124775350093842, -0.16979871690273285, 0.24001145362854004, -0.09237583726644516, -0.15282166004180908, -0.13205325603485107, -0.2962701916694641, 0.14361511170864105, 0.026249229907989502, 0.15789751708507538, 0.08254201710224152, 0.22535336017608643, -0.12323448061943054, 0.42339277267456055, 0.08593890815973282, -0.16946902871131897, 0.02785675600171089, -0.16497136652469635, -0.2081887125968933, -0.3256501257419586, 0.03325778990983963, 0.06484450399875641, -0.09784084558486938, 0.35673534870147705, -0.1797551065683365, 0.2656112313270569, -0.111085444688797, -0.024994708597660065, -0.16266398131847382, 0.16250702738761902, -0.3805004358291626, 0.23341752588748932, 0.1060478612780571, -0.05606308951973915, -0.229568749666214, 0.14117932319641113, -0.5808023810386658, 0.05056208372116089, -0.2072696089744568, -0.008493991568684578, -0.01206526905298233, -0.22544105350971222, -0.9129483699798584, 0.2327173948287964, -0.027965813875198364, -0.3931635022163391, 0.1435832530260086, -0.3709087073802948, 0.19752749800682068, -0.27158084511756897, -0.038724128156900406, 0.1268388330936432, -0.5294196605682373, -0.06103018298745155, -0.12510962784290314, 0.000504717230796814, 0.4882689118385315, 0.27513790130615234, -0.29462602734565735, -0.30442753434181213, -0.08668346703052521, 0.22771424055099487, 0.549372136592865, -0.011579930782318115, -0.14255446195602417, 0.28659844398498535, 0.18947146832942963, 0.1764594316482544, 0.11313620209693909, -0.3022596836090088, 0.5116521120071411, 0.09279562532901764, 0.05012478306889534, 0.0668218657374382, -0.20517103374004364, 0.11561643332242966, -0.15917202830314636, -0.26204460859298706, 0.3166314363479614, 0.12299878150224686, -0.018883205950260162, -0.15469756722450256, 0.2918764352798462, -0.34890416264533997, 0.010113087482750416, 0.06874102354049683, 0.07865205407142639, 0.01076044887304306, 0.20397566258907318, 0.1856423318386078, 0.03887687623500824, -0.16626939177513123, -0.5626901984214783, 0.28187939524650574, -0.04454111307859421, -0.20647287368774414, -0.2792767882347107, -0.09426777809858322, 0.07529710233211517, 0.2010411024093628, 0.11445289850234985, 0.1439756155014038, -0.027353575453162193, -0.3006914556026459, -0.23741008341312408, 0.06815160810947418, -0.16769737005233765, -0.20221960544586182, -0.012655049562454224, 0.13898631930351257, 0.13837045431137085, 0.33868706226348877, 0.11615299433469772, -0.38679972290992737, 0.07475292682647705, -0.08982591331005096, 0.024900274351239204, -0.1688518524169922, 0.04361550137400627, 0.2612680196762085, 0.2903035879135132, 0.18309789896011353, 0.004723086021840572, 0.21525132656097412, 0.2886841893196106, -0.3894922137260437, -0.12996041774749756, 0.24168795347213745, 0.11997060477733612, -0.02002979815006256, -0.17692111432552338, 0.24425891041755676, 0.14976149797439575, 0.2127307504415512, -0.262360155582428, 0.16931040585041046, 0.3298041522502899, 0.3382205069065094, -0.28313642740249634, 0.14372020959854126, -0.180841863155365, 0.030110087245702744, 0.1845298707485199, 0.05884629487991333, -0.4498625695705414, -0.12302518635988235, 0.2617705464363098, 0.2162281721830368, 0.2332058995962143, 0.2649818956851959, -0.45269453525543213, 0.00014529377222061157, 0.3584704101085663, 0.07892492413520813, 0.06265705078840256, 0.2741306722164154, 0.09334641695022583, -0.4691074788570404, -0.20154210925102234, -0.014686767011880875, 0.16240397095680237, 0.15178799629211426, 0.2821795642375946, -0.0023123687133193016, 0.2556133270263672, 0.2822474539279938, -0.12504498660564423, 0.16589036583900452, -0.04095473513007164, 0.02377885766327381, -0.33133000135421753, 0.16109445691108704, -0.46301475167274475, -0.0941123515367508, -0.011088553816080093, 0.17433887720108032, -0.19811934232711792, -0.13181670010089874, -0.041761599481105804, 0.0037167216651141644, -0.12074532359838486, 0.23061522841453552, -0.11709259450435638, 0.17903055250644684, 0.029196500778198242, -0.34540680050849915, -0.3628833591938019, -0.36776894330978394, -0.24870343506336212, 0.007996182888746262, 0.3142995536327362, -0.18813659250736237, 0.04571724683046341, 0.28314703702926636, 0.2184554487466812, -0.4493076801300049, -0.3211108446121216, 0.061474211513996124, -0.23022231459617615, 0.12268371880054474, 0.11395028233528137, 0.0876169204711914, -0.31080400943756104, -0.17076508700847626, 0.20627444982528687, -0.2855059802532196, -0.14331671595573425, 0.19256620109081268, -0.2754932641983032, 0.013304617255926132, -0.1056329607963562, 0.10317393392324448, -0.24972350895404816, -0.23781514167785645, 0.44723963737487793, 0.20205508172512054, -0.1629163771867752, -0.38397207856178284, 0.2816188633441925, -0.0801755040884018, -0.16168397665023804, -0.23542088270187378, 0.11706079542636871, 0.04169962555170059, 0.5459038019180298, 0.06164906546473503, -0.28029555082321167, 0.2779901623725891, -0.18221408128738403, -0.09557920694351196, 0.4511586129665375, -0.15001966059207916, 0.2742733359336853, -0.22938020527362823, 0.2861073911190033, 0.027932651340961456, -0.19905194640159607, 0.4273906946182251, 0.10176873207092285, 0.0522087924182415, -0.11780344694852829, -0.013413481414318085, 0.018319066613912582, 0.21496059000492096, 0.20056049525737762, 0.4232233464717865, 0.49460911750793457, 0.01935703307390213, 0.6828001141548157, 0.012067712843418121, -0.3758728504180908, 0.41189005970954895, -0.26966026425361633, 0.1308463215827942, -0.24928471446037292, 0.14974620938301086, -0.2859138250350952, -0.2600859999656677, 0.10599781572818756, 0.08927562832832336, -0.062486033886671066, -0.534919261932373, -0.013279303908348083, 0.19689063727855682, -0.17451748251914978, -0.1876528412103653, 0.0817050114274025, -0.5292017459869385, -0.038459330797195435, -0.30429011583328247, -0.10404478013515472, -0.12637867033481598, -0.11739017069339752, 0.2822628915309906, 0.1412035971879959, 0.2147330641746521, 0.05763423815369606, 0.15889732539653778, 0.12690526247024536, -0.10331250727176666, 0.20257891714572906, -0.003386508673429489, 0.258139967918396, -0.08507929742336273, -0.02241964265704155, 0.11708125472068787, 0.1076580137014389, 0.47260886430740356, -0.2569267749786377, 0.03369780257344246, 0.012641511857509613, 0.20589429140090942, -0.45708733797073364, -0.11228427290916443, -0.283889502286911, 0.02758025750517845, -0.03480657935142517, 0.5905731320381165, -0.5290105938911438, -0.0651492327451706, -0.1874598115682602, -0.12833981215953827, 0.055319540202617645, 0.10015549510717392, -0.08208151906728745, 0.28436213731765747, -0.01799096167087555, -0.04284762591123581, 0.5878379344940186, -0.10108219087123871, 0.07254266738891602, -0.15965351462364197, -0.5740940570831299, -0.10197717696428299, -0.06258834898471832, 0.014829374849796295, 0.43789592385292053, -0.20974990725517273, 0.018957771360874176, -0.022795090451836586, 0.3182702660560608, 0.3861730694770813, 0.47178351879119873, 0.33815181255340576, -0.6797975897789001, 0.20601414144039154, 0.027532778680324554, 0.29396089911460876, -0.08554844558238983, -0.14128153026103973, 0.0736929327249527, -0.27857768535614014, -0.2800648510456085, -0.2740282416343689, 0.0832858607172966, 0.3577929437160492, -0.148537740111351, -0.3102394938468933, -0.17303848266601562, 0.5934606194496155, 0.17268268764019012, -0.14643415808677673, 0.5847984552383423, 0.5241563320159912, -0.22148379683494568, 0.6126541495323181, 0.304288774728775, 0.7139866948127747, -0.32115453481674194, 0.07099325954914093, 0.2803521752357483, -0.39382922649383545, 0.35853439569473267, -0.009303629398345947, -0.0405346117913723, -0.22341206669807434, 0.12673303484916687, -0.1619860678911209, -0.2593514323234558, 0.20789936184883118, 0.33601582050323486, -0.08658250421285629, 0.081781305372715, 0.16284485161304474, 0.5217598080635071, 0.051548220217227936, 0.001242615282535553, 0.0796634703874588, -0.10382663458585739, -0.12974554300308228, 0.04317786544561386, -0.037385325878858566, -0.23388564586639404, 0.00587964802980423, -0.3083457946777344, -0.22918260097503662, -0.06454784423112869, -0.37692007422447205, -0.018790841102600098, -0.39419081807136536, 0.10871201753616333, 0.18889744579792023, -0.3824999928474426, 0.4329415261745453, 0.3968692719936371, -0.34561923146247864, -0.17221792042255402, -0.3339761793613434, 0.20283135771751404, 0.287509560585022, -0.16854605078697205, -0.169221431016922, 0.07517620921134949, 0.09891979396343231, 0.1500518023967743, 0.14632084965705872, 0.1430290937423706, -0.2177128791809082, -0.30109110474586487, 0.10209053754806519, 0.1278776228427887, 0.027860794216394424, -0.2078368365764618, -0.16974686086177826, -0.4348261058330536, 0.07022020220756531, 0.05541304498910904, 0.013698089867830276, -0.06738990545272827, 0.316520094871521, 0.003606203943490982, 0.0856950655579567, -0.10017210245132446, -0.04458247125148773, 0.3167829215526581, -0.40765032172203064, 0.24350586533546448, 0.40895789861679077, 0.1096329614520073, -0.3464716970920563, -0.017400622367858887, 0.1566663384437561, 0.31170332431793213, -0.49301403760910034, 0.12466752529144287, -0.2595685124397278, -0.11790526658296585, 0.0698675885796547, 0.1824866235256195, 0.4013550281524658, -0.21990717947483063, -0.07720021903514862, -0.27144789695739746, -0.056903403252363205, 0.5038770437240601, -0.3526376485824585, 0.10478818416595459, 0.05091923475265503, -0.15174518525600433, 0.12335582077503204, -0.4786723554134369, -0.1372990906238556, 0.2556096017360687, 0.216566801071167, 0.16047453880310059, -0.048456549644470215, 0.22183692455291748, 0.18867525458335876, -0.15482288599014282, 0.05307912081480026, -0.013971972279250622, 0.14028999209403992, -0.026416201144456863, 0.12532377243041992, 0.1711292713880539, 0.24037811160087585, 0.04499250650405884, -0.15041159093379974, -0.199497789144516, -0.16087526082992554, -0.10294563323259354, -0.0873587355017662, 0.01839398592710495, -0.2810967266559601, -0.00473456084728241, 0.7434006333351135, 0.11196756362915039, -0.2878093719482422, 0.21124285459518433, -0.04754691943526268, 0.11704500764608383, -0.1375955492258072, 0.07955018430948257, 0.06404189765453339, -0.03921530395746231, 0.024301160126924515, 0.22209563851356506, 0.032666198909282684, 0.04382520914077759, 0.4466348886489868, -0.2635693848133087, -0.0001487135887145996, 0.22406424582004547, 0.16352593898773193, 0.36221736669540405, -0.0336734876036644, -0.25222402811050415, 0.3166494369506836, 0.04820927232503891, -0.10066817700862885, -0.020983483642339706, 0.31427109241485596, 0.3231047987937927, 0.060701124370098114, 0.12812989950180054, 0.19312307238578796, 0.1779552400112152, -0.3405495882034302, 0.044211000204086304, 0.3138786554336548, -0.14420433342456818, 0.1499665230512619, 0.5955924987792969, 0.11466075479984283, 0.07180757820606232, 0.2505885660648346, 0.19370701909065247, 0.1942257285118103, 0.16397231817245483, 0.06853607296943665, 0.06854140758514404, 0.43372344970703125, -0.16713416576385498, 0.3252923786640167, -0.38606035709381104, -0.15236476063728333, -0.08084951341152191, 0.15746675431728363, 0.15761896967887878, 0.5338087677955627, 0.25892373919487, 0.26240676641464233, -0.3073763847351074, -0.18290993571281433, -0.127994567155838, -0.14899666607379913, -0.06487493962049484, -0.13723702728748322, -0.2086414396762848, -0.037803977727890015, -0.08544556051492691, -0.3630020320415497, 0.18720225989818573, 0.3966406583786011, 0.18285435438156128, 0.3224633038043976, -0.21221205592155457, 0.18188418447971344, -0.04475410282611847, 0.3563973009586334, -0.05553269013762474, 0.2141832411289215, -0.25016385316848755, -0.30482593178749084, 0.1557430922985077, 0.02258417196571827, 0.32549190521240234, 0.23474447429180145, -0.39675718545913696, -0.13568726181983948, -0.08420291543006897, -0.1711103916168213, 0.14421936869621277, 0.15463118255138397, -0.010849926620721817, 0.09146757423877716, 0.1807837039232254, 0.10349668562412262, 0.05539950728416443, -0.10155065357685089, -0.20144349336624146, 0.15659508109092712, -0.05044032633304596, 0.02564580924808979, -0.17894062399864197, -0.12385508418083191, 0.18619108200073242, -0.0083748959004879, -0.06762120127677917, -0.24656520783901215, 0.1943037062883377, -0.06832417100667953, -0.03426624462008476, 0.14717718958854675, 0.010543935000896454, 0.16654545068740845, 0.36493033170700073, 0.4323154091835022, 0.029326213523745537, -0.038679059594869614, 0.12753146886825562, -0.47075214982032776, 0.003941528499126434, -0.08768220245838165, -0.07385684549808502, 0.39031854271888733, 0.24047628045082092, 0.3157083988189697, 0.27460977435112, 0.10645148158073425, 0.13565698266029358, -0.09819884598255157, 0.2801661789417267, -0.08821064978837967, -0.12211890518665314, 0.09892158210277557, -0.002180514857172966, -0.08915092796087265, -0.19681647419929504, 0.21068555116653442, 0.08193337917327881, -0.03533756360411644, 0.01155024766921997, -0.31490492820739746, -0.0814678743481636, -0.31303101778030396, 0.3155822455883026, 0.09200543165206909, 0.19837599992752075, -0.05087903141975403, 0.06219661235809326, -0.1307530403137207, -0.40859854221343994, -0.18664756417274475, 0.45342230796813965, -0.45197951793670654, 0.28511130809783936, -0.3914346396923065, -0.09890968352556229, -0.2027682512998581, -0.2943546175956726, -0.2551186680793762, -0.0889991894364357, -0.4101177453994751, 0.22986756265163422, -0.12838757038116455, -0.1845323145389557, -0.20656563341617584, -0.03991401940584183, 0.07581789791584015, -0.03749430179595947, 0.1308489888906479, -0.2554587125778198, 0.23056066036224365, -0.6027926802635193, -0.12479160726070404, 0.0797514021396637, -0.2138846218585968, 0.5333003401756287, 0.20544874668121338, -0.3672221601009369, -0.13042761385440826, 0.39225712418556213, -0.0668485164642334, 0.09419791400432587, -0.27316921949386597, 0.07676179707050323, -0.09704651683568954, -0.3105901777744293, 0.4641011357307434, -0.1262933313846588, 0.15796221792697906, -0.21248923242092133, -0.3511139750480652 ]
https://github.com/huggingface/datasets/issues/5610
Same problem, transformers 4.28.1 datasets 2.12.0 leak around 100Mb per 10 seconds when use dataloader_num_werker > 0 in training argumennts for transformer train, possile bug in transformers repo, but still not found solution :(
use datasets streaming mode in trainer ddp mode cause memory leak
### Describe the bug use datasets streaming mode in trainer ddp mode cause memory leak ### Steps to reproduce the bug import os import time import datetime import sys import numpy as np import random import torch from torch.utils.data import Dataset, DataLoader, random_split, RandomSampler, SequentialSampler,DistributedSampler,BatchSampler torch.manual_seed(42) from transformers import GPT2LMHeadModel, GPT2Tokenizer, GPT2Config, GPT2Model,DataCollatorForLanguageModeling,AutoModelForCausalLM from transformers import AdamW, get_linear_schedule_with_warmup hf_model_path ='./Wenzhong-GPT2-110M' tokenizer = GPT2Tokenizer.from_pretrained(hf_model_path) tokenizer.add_special_tokens({'pad_token': '<|pad|>'}) from datasets import load_dataset gpus=8 max_len = 576 batch_size_node = 17 save_step = 5000 gradient_accumulation = 2 dataloader_num = 4 max_step = 351000*1000//batch_size_node//gradient_accumulation//gpus #max_step = -1 print("total_step:%d"%(max_step)) import datasets datasets.version dataset = load_dataset("text", data_files="./gpt_data_v1/*",split='train',cache_dir='./dataset_cache',streaming=True) print('load over') shuffled_dataset = dataset.shuffle(seed=42) print('shuffle over') def dataset_tokener(example,max_lenth=max_len): example['text'] = list(map(lambda x : x.strip()+'<|endoftext|>',example['text'] )) return tokenizer(example['text'], truncation=True, max_length=max_lenth, padding="longest") new_new_dataset = shuffled_dataset.map(dataset_tokener, batched=True, remove_columns=["text"]) print('map over') configuration = GPT2Config.from_pretrained(hf_model_path, output_hidden_states=False) model = AutoModelForCausalLM.from_pretrained(hf_model_path) model.resize_token_embeddings(len(tokenizer)) seed_val = 42 random.seed(seed_val) np.random.seed(seed_val) torch.manual_seed(seed_val) torch.cuda.manual_seed_all(seed_val) from transformers import Trainer,TrainingArguments import os print("strat train") training_args = TrainingArguments(output_dir="./test_trainer", num_train_epochs=1.0, report_to="none", do_train=True, dataloader_num_workers=dataloader_num, local_rank=int(os.environ.get('LOCAL_RANK', -1)), overwrite_output_dir=True, logging_strategy='steps', logging_first_step=True, logging_dir="./logs", log_on_each_node=False, per_device_train_batch_size=batch_size_node, warmup_ratio=0.03, save_steps=save_step, save_total_limit=5, gradient_accumulation_steps=gradient_accumulation, max_steps=max_step, disable_tqdm=False, data_seed=42 ) trainer = Trainer( model=model, args=training_args, train_dataset=new_new_dataset, eval_dataset=None, tokenizer=tokenizer, data_collator=DataCollatorForLanguageModeling(tokenizer,mlm=False), #compute_metrics=compute_metrics if training_args.do_eval and not is_torch_tpu_available() else None, #preprocess_logits_for_metrics=preprocess_logits_for_metrics #if training_args.do_eval and not is_torch_tpu_available() #else None, ) trainer.train(resume_from_checkpoint=True) ### Expected behavior use the train code uppper my dataset ./gpt_data_v1 have 1000 files, each file size is 120mb start cmd is : python -m torch.distributed.launch --nproc_per_node=8 my_train.py here is result: ![image](https://user-images.githubusercontent.com/15223544/223026042-1a81489f-897a-43e4-8339-65a202fd5dc7.png) here is memory usage monitor in 12 hours ![image](https://user-images.githubusercontent.com/15223544/223027076-14e32e8b-9608-4282-9a80-f15d0277026d.png) every dataloader work allocate over 24gb cpu memory according to memory usage monitor in 12 hours,sometime small memory releases, but total memory usage is increase. i think datasets streaming mode should not used so much memery,so maybe somewhere has memory leak. ### Environment info pytorch 1.11.0 py 3.8 cuda 11.3 transformers 4.26.1 datasets 2.9.0
34
use datasets streaming mode in trainer ddp mode cause memory leak ### Describe the bug use datasets streaming mode in trainer ddp mode cause memory leak ### Steps to reproduce the bug import os import time import datetime import sys import numpy as np import random import torch from torch.utils.data import Dataset, DataLoader, random_split, RandomSampler, SequentialSampler,DistributedSampler,BatchSampler torch.manual_seed(42) from transformers import GPT2LMHeadModel, GPT2Tokenizer, GPT2Config, GPT2Model,DataCollatorForLanguageModeling,AutoModelForCausalLM from transformers import AdamW, get_linear_schedule_with_warmup hf_model_path ='./Wenzhong-GPT2-110M' tokenizer = GPT2Tokenizer.from_pretrained(hf_model_path) tokenizer.add_special_tokens({'pad_token': '<|pad|>'}) from datasets import load_dataset gpus=8 max_len = 576 batch_size_node = 17 save_step = 5000 gradient_accumulation = 2 dataloader_num = 4 max_step = 351000*1000//batch_size_node//gradient_accumulation//gpus #max_step = -1 print("total_step:%d"%(max_step)) import datasets datasets.version dataset = load_dataset("text", data_files="./gpt_data_v1/*",split='train',cache_dir='./dataset_cache',streaming=True) print('load over') shuffled_dataset = dataset.shuffle(seed=42) print('shuffle over') def dataset_tokener(example,max_lenth=max_len): example['text'] = list(map(lambda x : x.strip()+'<|endoftext|>',example['text'] )) return tokenizer(example['text'], truncation=True, max_length=max_lenth, padding="longest") new_new_dataset = shuffled_dataset.map(dataset_tokener, batched=True, remove_columns=["text"]) print('map over') configuration = GPT2Config.from_pretrained(hf_model_path, output_hidden_states=False) model = AutoModelForCausalLM.from_pretrained(hf_model_path) model.resize_token_embeddings(len(tokenizer)) seed_val = 42 random.seed(seed_val) np.random.seed(seed_val) torch.manual_seed(seed_val) torch.cuda.manual_seed_all(seed_val) from transformers import Trainer,TrainingArguments import os print("strat train") training_args = TrainingArguments(output_dir="./test_trainer", num_train_epochs=1.0, report_to="none", do_train=True, dataloader_num_workers=dataloader_num, local_rank=int(os.environ.get('LOCAL_RANK', -1)), overwrite_output_dir=True, logging_strategy='steps', logging_first_step=True, logging_dir="./logs", log_on_each_node=False, per_device_train_batch_size=batch_size_node, warmup_ratio=0.03, save_steps=save_step, save_total_limit=5, gradient_accumulation_steps=gradient_accumulation, max_steps=max_step, disable_tqdm=False, data_seed=42 ) trainer = Trainer( model=model, args=training_args, train_dataset=new_new_dataset, eval_dataset=None, tokenizer=tokenizer, data_collator=DataCollatorForLanguageModeling(tokenizer,mlm=False), #compute_metrics=compute_metrics if training_args.do_eval and not is_torch_tpu_available() else None, #preprocess_logits_for_metrics=preprocess_logits_for_metrics #if training_args.do_eval and not is_torch_tpu_available() #else None, ) trainer.train(resume_from_checkpoint=True) ### Expected behavior use the train code uppper my dataset ./gpt_data_v1 have 1000 files, each file size is 120mb start cmd is : python -m torch.distributed.launch --nproc_per_node=8 my_train.py here is result: ![image](https://user-images.githubusercontent.com/15223544/223026042-1a81489f-897a-43e4-8339-65a202fd5dc7.png) here is memory usage monitor in 12 hours ![image](https://user-images.githubusercontent.com/15223544/223027076-14e32e8b-9608-4282-9a80-f15d0277026d.png) every dataloader work allocate over 24gb cpu memory according to memory usage monitor in 12 hours,sometime small memory releases, but total memory usage is increase. i think datasets streaming mode should not used so much memery,so maybe somewhere has memory leak. ### Environment info pytorch 1.11.0 py 3.8 cuda 11.3 transformers 4.26.1 datasets 2.9.0 Same problem, transformers 4.28.1 datasets 2.12.0 leak around 100Mb per 10 seconds when use dataloader_num_werker > 0 in training argumennts for transformer train, possile bug in transformers repo, but still not found solution :(
[ -0.5238248109817505, -0.242172971367836, -0.03627307713031769, 0.36496245861053467, 0.33794736862182617, -0.02110110968351364, 0.05534369871020317, 0.1988844871520996, -0.12573756277561188, 0.2688145041465759, -0.03869180381298065, 0.4365618824958801, -0.19929450750350952, -0.07650624215602875, 0.17474041879177094, -0.2316945344209671, -0.04112039506435394, -0.011579234153032303, -0.3504270911216736, -0.08601079136133194, 0.08904286473989487, -0.12588605284690857, -0.02354397624731064, -0.10606449842453003, -0.33872556686401367, -0.18696987628936768, 0.12103573977947235, 0.03286672756075859, -0.07760723680257797, -0.2645828127861023, -0.11057092994451523, 0.05297558382153511, 0.12855736911296844, 0.318522572517395, -0.00010254570952383801, 0.02435918152332306, 0.18956135213375092, 0.01334390789270401, -0.2501107454299927, 0.2729125916957855, -0.17936459183692932, 0.0751117691397667, 0.038499608635902405, -0.18668802082538605, -0.20802593231201172, -0.09302955120801926, 0.02046564780175686, -0.19067765772342682, 0.5827755331993103, 0.44812583923339844, 0.3021661937236786, 0.17764830589294434, -0.0152474045753479, -0.1604422777891159, 0.40540680289268494, -0.2958778738975525, 0.038315825164318085, 0.008746922016143799, 0.10594137012958527, -0.14901548624038696, -0.30046960711479187, 0.3181544542312622, -0.08513449877500534, 0.08407002687454224, 0.0918402299284935, 0.028991922736167908, 0.08012135326862335, -0.17360085248947144, 0.18640945851802826, -0.12757164239883423, 0.16904093325138092, -0.3531995415687561, -0.017847275361418724, -0.20708021521568298, -0.1845351904630661, -0.33568042516708374, 0.07080695778131485, 0.08798238635063171, -0.4268052279949188, 0.05339483916759491, -0.32756152749061584, -0.07960543781518936, -0.15675002336502075, -0.048536863178014755, -0.07982155680656433, 0.44761598110198975, 0.055659301578998566, -0.06639319658279419, -0.002565830945968628, 0.13651323318481445, 0.2150135040283203, -0.1309896558523178, -0.21477027237415314, -0.06581515818834305, -0.24602603912353516, -0.11282601207494736, 0.13284455239772797, -0.2138751596212387, 0.21888430416584015, -0.030760183930397034, 0.1050259992480278, -0.011135948821902275, 0.23474372923374176, 0.03201209753751755, 0.12357167154550552, 0.2808901369571686, -0.39432311058044434, 0.3868922293186188, 0.12658612430095673, -0.04034155234694481, -0.2689927816390991, -0.12206551432609558, 0.08228589594364166, -0.028756143525242805, 0.29945334792137146, -0.15119421482086182, -0.03468289598822594, 0.026187561452388763, -0.3710836172103882, 0.0008144937455654144, -0.18544119596481323, 0.2033795565366745, 0.12826545536518097, 0.267727255821228, -0.1274358630180359, 0.006140097975730896, 0.023743338882923126, -0.11936605721712112, -0.23678818345069885, -0.28273841738700867, -0.46695125102996826, 0.010989869013428688, -0.32220083475112915, 0.0670202374458313, -0.10773550719022751, 0.11071769893169403, 0.354388952255249, 0.007572922855615616, -0.11104173958301544, -0.0019542574882507324, 0.1249706968665123, -0.2932397425174713, 0.044968657195568085, 0.19364723563194275, 0.039817482233047485, 0.009391210973262787, 0.006081819999963045, 0.15357093513011932, 0.14467541873455048, 0.3255046010017395, -0.007296711206436157, -0.16684004664421082, 0.14403268694877625, 0.33287161588668823, 0.27772656083106995, -0.08935695886611938, -0.3797251582145691, 0.1751765012741089, 0.42652878165245056, 0.002749927341938019, 0.10508666932582855, -0.16867157816886902, -0.41701558232307434, -0.19360706210136414, 0.19403955340385437, 0.39327237010002136, 0.055505990982055664, -0.2562335133552551, 0.32618728280067444, -0.07842376828193665, 0.5382056832313538, 0.34604743123054504, -0.1989596039056778, 0.21910253167152405, -0.07124294340610504, -0.07449254393577576, 0.21613375842571259, -0.32391858100891113, -0.5035321712493896, 0.05583561211824417, -0.23436957597732544, 0.15258143842220306, 0.1336495578289032, -0.027120621874928474, 0.3287193775177002, 0.09589098393917084, 0.3118279278278351, 0.4121086597442627, -0.22441717982292175, 0.2505844533443451, -0.42355817556381226, -0.12334545701742172, 0.18680575489997864, 0.036165982484817505, 0.2796524465084076, -0.035494688898324966, -0.020271427929401398, 0.4380093812942505, 0.29947879910469055, 0.0019052624702453613, 0.12511694431304932, 0.04671965911984444, -0.016032356768846512, -0.0826260894536972, -0.24482350051403046, -0.20624908804893494, 0.002519892528653145, 0.009718932211399078, 0.044213853776454926, -0.06467755138874054, 0.11307947337627411, -0.07945199310779572, 0.11300887167453766, -0.11151222884654999, -0.05950187146663666, -0.34764692187309265, 0.2809717655181885, 0.3526118993759155, 0.017240814864635468, 0.0288383811712265, 0.04630417376756668, 0.380121648311615, -0.3839026689529419, 0.051581788808107376, -0.12271886318922043, 0.14336183667182922, -0.03774169832468033, -0.3953694701194763, 0.058382824063301086, 0.05192890390753746, 0.04513891041278839, 0.18571141362190247, -0.2941012680530548, 0.3158314526081085, 0.029196027666330338, 0.0464714840054512, -0.15879765152931213, 0.132039874792099, 0.16565842926502228, -0.15571169555187225, -0.11699911206960678, 0.28452926874160767, 0.13120165467262268, -0.016737274825572968, 0.042867597192525864, -0.016749754548072815, 0.3786350190639496, -0.19992715120315552, 0.11575241386890411, -0.12414562702178955, 0.018325090408325195, 0.027821481227874756, 0.24706792831420898, 0.09888291358947754, 0.03869092836976051, -0.1637687236070633, 0.21169625222682953, 0.0313187837600708, -0.41012606024742126, 0.1376752406358719, 0.48310256004333496, 0.11740656197071075, 0.027597986161708832, 0.11633013933897018, -0.27411240339279175, -0.22848114371299744, 0.04960576444864273, 0.12157054245471954, 0.42942267656326294, 0.2723368704319, 0.25241318345069885, -0.041628919541835785, -0.02154659852385521, -0.2337443232536316, 0.22648276388645172, 0.045070938766002655, -0.1773279309272766, 0.1469937264919281, 0.21352891623973846, -0.10790399461984634, -0.24641269445419312, 0.15047504007816315, 0.13688330352306366, 0.43455633521080017, -0.14111606776714325, 0.04011338949203491, -0.13121555745601654, -0.32193800806999207, 0.00910446047782898, 0.13592897355556488, 0.2614334225654602, -0.033462487161159515, 0.12469690293073654, 0.37216031551361084, 0.02553541213274002, 0.21393676102161407, 0.20685997605323792, 0.1735234409570694, 0.4322907030582428, 0.13475719094276428, -0.03388988971710205, -0.19517578184604645, -0.26758140325546265, 0.24189987778663635, 0.22327612340450287, -0.17435221374034882, 0.38874268531799316, 0.11950220167636871, -0.18737560510635376, -0.18620231747627258, 0.08404836058616638, 0.14345724880695343, 0.04058864712715149, 0.10709059238433838, -0.06208910048007965, 0.07320259511470795, -0.11125393211841583, -0.08693310618400574, 0.015369459986686707, -0.3967382609844208, -0.28066831827163696, -0.08767241984605789, 0.104274682700634, 0.038583189249038696, -0.1809978187084198, -0.2763577401638031, -0.19047720730304718, -0.41819143295288086, -0.21911299228668213, -0.021745745092630386, 0.15269069373607635, 0.30630582571029663, 0.04251030832529068, 0.24064500629901886, 0.16765478253364563, 0.10192843526601791, -0.2071378231048584, -0.30158498883247375, 0.22752419114112854, -0.18408352136611938, -0.24319104850292206, -0.2505839169025421, 0.012603759765625, 0.23506338894367218, 0.35809841752052307, -0.5205414891242981, -0.1267223209142685, -0.25282928347587585, 0.07435352355241776, -0.3276450037956238, -0.03318219631910324, 0.28696897625923157, -0.047942936420440674, -0.2612593472003937, -0.15919819474220276, -0.004817277193069458, 0.046205855906009674, -0.04672699794173241, 0.14237593114376068, -0.13035717606544495, 0.46857476234436035, 0.2434563934803009, 0.6973748803138733, 0.07959428429603577, -0.0941193476319313, 0.18585096299648285, -0.22355033457279205, 0.05637681856751442, -0.24288761615753174, -0.20638884603977203, 0.18081404268741608, -0.016876958310604095, -0.17833203077316284, 0.278964638710022, -0.14164835214614868, -0.3580877184867859, -0.08572354167699814, -0.022613249719142914, 0.2275850623846054, -0.2043399214744568, 0.046640537679195404, -0.06888449192047119, 0.1675693690776825, -0.017806850373744965, 0.20146344602108002, -0.09112077206373215, -0.21526461839675903, 0.06496240198612213, -0.04399443790316582, -0.009747058153152466, 0.09833908081054688, -0.15051552653312683, 0.1273408830165863, -0.4508565366268158, 0.06255023181438446, 0.09575465321540833, 0.4511182904243469, -0.341988742351532, -0.02762022614479065, 0.14191794395446777, -0.028494885191321373, 0.45648491382598877, -0.1211482509970665, 0.23750752210617065, 0.07681826502084732, -0.173394575715065, 0.07104704529047012, 0.05260200798511505, -0.40135669708251953, -0.008977513760328293, 0.1882556527853012, 0.15941554307937622, -0.10446777194738388, -0.2227056920528412, 0.022097021341323853, -0.23576034605503082, -0.13419775664806366, 0.1665976196527481, -0.2579326927661896, -0.22728000581264496, -0.14193078875541687, 0.2520701289176941, 0.3837739825248718, 0.15807844698429108, -0.04667419567704201, -0.15743398666381836, -0.10801281034946442, 0.04633362591266632, 0.046681731939315796, -0.04665101692080498, 0.2969582676887512, 0.11790284514427185, 0.11679479479789734, 0.06326751410961151, 0.2058250904083252, 0.1758522093296051, -0.022963037714362144, 0.1945725381374359, 0.07529507577419281, 0.14560970664024353, 0.20775267481803894, 0.13990676403045654, 0.2663869559764862, -0.061214007437229156, 0.3590647280216217, -0.23730309307575226, 0.36747318506240845, -0.1500346064567566, 0.351652055978775, 0.24435320496559143, -0.09983383119106293, -0.20122060179710388, -0.6812726259231567, 0.12492909282445908, 0.23587554693222046, -0.05821852385997772, 0.4039236605167389, -0.4270493984222412, -0.5233531594276428, 0.16116157174110413, 0.11395768821239471, 0.7996344566345215, -0.012834468856453896, 0.3096458613872528, 0.3780193328857422, -0.2554006576538086, 0.20653566718101501, -0.16012245416641235, 0.28591060638427734, -0.18352848291397095, -0.14180901646614075, 0.08015608787536621, -0.11308787018060684, 0.02584615722298622, -0.23541203141212463, -0.17994657158851624, 0.1167345941066742, -0.11002941429615021, 0.4293854236602783, 0.09368423372507095, 0.1703232377767563, -0.04559478908777237, -0.13274765014648438, -0.1618557572364807, 0.2747718393802643, -0.2873647212982178, -0.10639134049415588, -0.03827328979969025, -0.14092138409614563, 0.21253547072410583, -0.052195921540260315, -0.2389882206916809, -0.015862729400396347, -0.4953312575817108, 0.24902930855751038, -0.24372681975364685, -0.3399573564529419, -0.012731213122606277, 0.2841789424419403, -0.03834042325615883, 0.12524458765983582, -0.04462137818336487, 0.22466978430747986, -0.1817571520805359, 0.25763171911239624, -0.10113438963890076, 0.066916823387146, 0.3168546259403229, -0.09493350982666016, -0.21732138097286224, 0.34971508383750916, 0.03800046071410179, -0.36570417881011963, -0.2558440864086151, 0.060022905468940735, 0.4621847867965698, -0.15306562185287476, 0.09702424705028534, -0.1685730516910553, -0.22153271734714508, -0.30809134244918823, 0.25987884402275085, -0.10911504179239273, -0.36001986265182495, 0.25163522362709045, 0.008107537403702736, -0.23707926273345947, -0.1560339331626892, 0.46890515089035034, 0.11163531988859177, 0.4214690625667572, 0.33766868710517883, -0.007318146526813507, -0.16605696082115173, -0.28279954195022583, -0.04913196712732315, 0.2777256369590759, 0.08861739933490753, 0.23865869641304016, -0.15319722890853882, -0.12789636850357056, -0.04809921979904175, 0.0031552817672491074, -0.19923469424247742, 0.06490425765514374, 0.03856751322746277, -0.11518074572086334, -0.5987669825553894, -0.07143945246934891, -0.05767149105668068, 0.2826596200466156, 0.050683677196502686, 0.24597878754138947, -0.10256384313106537, 0.1877065896987915, -0.42881476879119873, 0.10252155363559723, -0.16767381131649017, 0.270313024520874, -0.23943385481834412, -0.25782838463783264, 0.14295437932014465, -0.04976275935769081, 0.1738257259130478, 0.34230858087539673, -0.11547788977622986, -0.3964124619960785, -0.05353115499019623, 0.04740648716688156, -0.022083932533860207, -0.15321418642997742, -0.16273540258407593, -0.12219172716140747, -0.12219858914613724, -0.060637593269348145, 0.49554434418678284, 0.2442677617073059, 0.03208743780851364, -0.05800008401274681, 0.16933687031269073, 0.10411767661571503, 0.2240411937236786, -0.12087830901145935, -0.07956081628799438, -0.06894069164991379, -0.045733802020549774, 0.005512400530278683, 0.05596015602350235, -0.1603790819644928, -0.23140688240528107, -0.042504776269197464, 0.36203667521476746, 0.10436424612998962, 0.04172160476446152, -0.32374557852745056, -0.25187617540359497, 0.1956571787595749, 0.1183997318148613, 0.058811087161302567, -0.33142200112342834, -0.29167237877845764, 0.2859770357608795, 0.33465075492858887, -0.018559996038675308, -0.004500940442085266, 0.01573239639401436, -0.0935150533914566, 0.15710800886154175, 0.2025553286075592, 0.03185299038887024, -0.19316208362579346, -0.25048860907554626, 0.1570129692554474, 0.17117539048194885, -0.17164191603660583, 0.00430784747004509, 0.18041934072971344, -0.0624997541308403, -0.13676640391349792, 0.04097285121679306, 0.27107930183410645, 0.07249873131513596, 0.5580583214759827, 0.13322877883911133, 0.4415341913700104, 0.11277688294649124, -0.08584083616733551, -0.1610175520181656, -0.11257736384868622, -0.5159136056900024, 0.4672248959541321, -0.3079605996608734, 0.23776400089263916, -0.12279731780290604, 0.2442811131477356, 0.0770823284983635, -0.3757055103778839, 0.02181994915008545, 0.021650811657309532, -0.3222939074039459, 0.011741206049919128, -0.0997730940580368, -0.0802246481180191, -0.24968686699867249, 0.23120638728141785, 0.08802445977926254, -0.036303598433732986, 0.08676967024803162, 0.046302616596221924, -0.14008858799934387, -0.09745059907436371, 0.020573178306221962, 0.36860859394073486, 0.08122110366821289, -0.36752548813819885, 0.36629360914230347, -0.05064190551638603, 0.10816004872322083, -0.1452498733997345, 0.21902868151664734, 0.21661633253097534, 0.3237355947494507, -0.17769840359687805, -0.049958735704422, 0.332376629114151, -0.12096494436264038, -0.1713360846042633, 0.20251904428005219, 0.14744384586811066, -0.02909797616302967, 0.07247599214315414, 0.24044804275035858, -0.2912118434906006, 0.06888601183891296, 0.2737821042537689, -0.08938443660736084, -0.21240359544754028, 0.34254106879234314, 0.03778280317783356, 0.005951419472694397, -0.020862065255641937, -0.10061514377593994, -0.4114533066749573, 0.07143044471740723, 0.19947567582130432, -0.021866001188755035, 0.2994562089443207, -0.08515313267707825, 0.12646901607513428, -0.1451091766357422, 0.4405645728111267, -0.061744943261146545, -0.06818613409996033, -0.40862172842025757, -0.2986992299556732, -0.2024202048778534, 0.24542945623397827, -0.06752745807170868, 0.030232101678848267, -0.22686202824115753, 0.19432011246681213, -0.26079171895980835, 0.020122315734624863, -0.14772234857082367, -0.13580229878425598, 0.22641433775424957, 0.2672234773635864, -0.46551868319511414, 0.050679437816143036, -0.23774781823158264, 0.10314756631851196, 0.19144171476364136, -0.44887036085128784, 0.3300665318965912, -0.18007636070251465, 0.27557504177093506, 0.03950498625636101, 0.13168475031852722, -0.029451798647642136, 0.24356770515441895, 0.28603431582450867, 0.018115272745490074, 0.35083943605422974, -0.13640150427818298, 0.10803653299808502, -0.0673893466591835, -0.23444803059101105, -0.2726666033267975, -0.18898947536945343, -0.04186655953526497, 0.5029819011688232, 0.05318678170442581, -0.176455557346344, -0.26131772994995117, 0.33273839950561523, 0.11603042483329773, -0.1764771044254303, -0.13164883852005005, 0.055753886699676514, 0.01689920574426651, 0.26058071851730347, -0.025912845507264137, 0.26998355984687805, -0.17080962657928467, 0.04022756218910217, -0.40856868028640747, -0.5611590147018433, 0.6138567924499512, -0.4815842807292938, -0.45056524872779846, -0.06473769247531891, 0.241222083568573, 0.5785302519798279, -0.14789487421512604, -0.3607475161552429, 0.009411230683326721, 0.151272714138031, -0.205269455909729, -0.30066484212875366, 0.4022475481033325, 0.09718810021877289, 0.22735455632209778, 0.086469866335392, 0.3437444269657135, 0.09077844768762589, -0.26182717084884644, 0.3750075697898865, -0.2718403935432434 ]
https://github.com/huggingface/datasets/issues/5610
found an article described a problem, may be helpful for somebody: https://ppwwyyxx.com/blog/2022/Demystify-RAM-Usage-in-Multiprocess-DataLoader/ I confirm, it`s not memory leak, after some time memory growing has stopped
use datasets streaming mode in trainer ddp mode cause memory leak
### Describe the bug use datasets streaming mode in trainer ddp mode cause memory leak ### Steps to reproduce the bug import os import time import datetime import sys import numpy as np import random import torch from torch.utils.data import Dataset, DataLoader, random_split, RandomSampler, SequentialSampler,DistributedSampler,BatchSampler torch.manual_seed(42) from transformers import GPT2LMHeadModel, GPT2Tokenizer, GPT2Config, GPT2Model,DataCollatorForLanguageModeling,AutoModelForCausalLM from transformers import AdamW, get_linear_schedule_with_warmup hf_model_path ='./Wenzhong-GPT2-110M' tokenizer = GPT2Tokenizer.from_pretrained(hf_model_path) tokenizer.add_special_tokens({'pad_token': '<|pad|>'}) from datasets import load_dataset gpus=8 max_len = 576 batch_size_node = 17 save_step = 5000 gradient_accumulation = 2 dataloader_num = 4 max_step = 351000*1000//batch_size_node//gradient_accumulation//gpus #max_step = -1 print("total_step:%d"%(max_step)) import datasets datasets.version dataset = load_dataset("text", data_files="./gpt_data_v1/*",split='train',cache_dir='./dataset_cache',streaming=True) print('load over') shuffled_dataset = dataset.shuffle(seed=42) print('shuffle over') def dataset_tokener(example,max_lenth=max_len): example['text'] = list(map(lambda x : x.strip()+'<|endoftext|>',example['text'] )) return tokenizer(example['text'], truncation=True, max_length=max_lenth, padding="longest") new_new_dataset = shuffled_dataset.map(dataset_tokener, batched=True, remove_columns=["text"]) print('map over') configuration = GPT2Config.from_pretrained(hf_model_path, output_hidden_states=False) model = AutoModelForCausalLM.from_pretrained(hf_model_path) model.resize_token_embeddings(len(tokenizer)) seed_val = 42 random.seed(seed_val) np.random.seed(seed_val) torch.manual_seed(seed_val) torch.cuda.manual_seed_all(seed_val) from transformers import Trainer,TrainingArguments import os print("strat train") training_args = TrainingArguments(output_dir="./test_trainer", num_train_epochs=1.0, report_to="none", do_train=True, dataloader_num_workers=dataloader_num, local_rank=int(os.environ.get('LOCAL_RANK', -1)), overwrite_output_dir=True, logging_strategy='steps', logging_first_step=True, logging_dir="./logs", log_on_each_node=False, per_device_train_batch_size=batch_size_node, warmup_ratio=0.03, save_steps=save_step, save_total_limit=5, gradient_accumulation_steps=gradient_accumulation, max_steps=max_step, disable_tqdm=False, data_seed=42 ) trainer = Trainer( model=model, args=training_args, train_dataset=new_new_dataset, eval_dataset=None, tokenizer=tokenizer, data_collator=DataCollatorForLanguageModeling(tokenizer,mlm=False), #compute_metrics=compute_metrics if training_args.do_eval and not is_torch_tpu_available() else None, #preprocess_logits_for_metrics=preprocess_logits_for_metrics #if training_args.do_eval and not is_torch_tpu_available() #else None, ) trainer.train(resume_from_checkpoint=True) ### Expected behavior use the train code uppper my dataset ./gpt_data_v1 have 1000 files, each file size is 120mb start cmd is : python -m torch.distributed.launch --nproc_per_node=8 my_train.py here is result: ![image](https://user-images.githubusercontent.com/15223544/223026042-1a81489f-897a-43e4-8339-65a202fd5dc7.png) here is memory usage monitor in 12 hours ![image](https://user-images.githubusercontent.com/15223544/223027076-14e32e8b-9608-4282-9a80-f15d0277026d.png) every dataloader work allocate over 24gb cpu memory according to memory usage monitor in 12 hours,sometime small memory releases, but total memory usage is increase. i think datasets streaming mode should not used so much memery,so maybe somewhere has memory leak. ### Environment info pytorch 1.11.0 py 3.8 cuda 11.3 transformers 4.26.1 datasets 2.9.0
25
use datasets streaming mode in trainer ddp mode cause memory leak ### Describe the bug use datasets streaming mode in trainer ddp mode cause memory leak ### Steps to reproduce the bug import os import time import datetime import sys import numpy as np import random import torch from torch.utils.data import Dataset, DataLoader, random_split, RandomSampler, SequentialSampler,DistributedSampler,BatchSampler torch.manual_seed(42) from transformers import GPT2LMHeadModel, GPT2Tokenizer, GPT2Config, GPT2Model,DataCollatorForLanguageModeling,AutoModelForCausalLM from transformers import AdamW, get_linear_schedule_with_warmup hf_model_path ='./Wenzhong-GPT2-110M' tokenizer = GPT2Tokenizer.from_pretrained(hf_model_path) tokenizer.add_special_tokens({'pad_token': '<|pad|>'}) from datasets import load_dataset gpus=8 max_len = 576 batch_size_node = 17 save_step = 5000 gradient_accumulation = 2 dataloader_num = 4 max_step = 351000*1000//batch_size_node//gradient_accumulation//gpus #max_step = -1 print("total_step:%d"%(max_step)) import datasets datasets.version dataset = load_dataset("text", data_files="./gpt_data_v1/*",split='train',cache_dir='./dataset_cache',streaming=True) print('load over') shuffled_dataset = dataset.shuffle(seed=42) print('shuffle over') def dataset_tokener(example,max_lenth=max_len): example['text'] = list(map(lambda x : x.strip()+'<|endoftext|>',example['text'] )) return tokenizer(example['text'], truncation=True, max_length=max_lenth, padding="longest") new_new_dataset = shuffled_dataset.map(dataset_tokener, batched=True, remove_columns=["text"]) print('map over') configuration = GPT2Config.from_pretrained(hf_model_path, output_hidden_states=False) model = AutoModelForCausalLM.from_pretrained(hf_model_path) model.resize_token_embeddings(len(tokenizer)) seed_val = 42 random.seed(seed_val) np.random.seed(seed_val) torch.manual_seed(seed_val) torch.cuda.manual_seed_all(seed_val) from transformers import Trainer,TrainingArguments import os print("strat train") training_args = TrainingArguments(output_dir="./test_trainer", num_train_epochs=1.0, report_to="none", do_train=True, dataloader_num_workers=dataloader_num, local_rank=int(os.environ.get('LOCAL_RANK', -1)), overwrite_output_dir=True, logging_strategy='steps', logging_first_step=True, logging_dir="./logs", log_on_each_node=False, per_device_train_batch_size=batch_size_node, warmup_ratio=0.03, save_steps=save_step, save_total_limit=5, gradient_accumulation_steps=gradient_accumulation, max_steps=max_step, disable_tqdm=False, data_seed=42 ) trainer = Trainer( model=model, args=training_args, train_dataset=new_new_dataset, eval_dataset=None, tokenizer=tokenizer, data_collator=DataCollatorForLanguageModeling(tokenizer,mlm=False), #compute_metrics=compute_metrics if training_args.do_eval and not is_torch_tpu_available() else None, #preprocess_logits_for_metrics=preprocess_logits_for_metrics #if training_args.do_eval and not is_torch_tpu_available() #else None, ) trainer.train(resume_from_checkpoint=True) ### Expected behavior use the train code uppper my dataset ./gpt_data_v1 have 1000 files, each file size is 120mb start cmd is : python -m torch.distributed.launch --nproc_per_node=8 my_train.py here is result: ![image](https://user-images.githubusercontent.com/15223544/223026042-1a81489f-897a-43e4-8339-65a202fd5dc7.png) here is memory usage monitor in 12 hours ![image](https://user-images.githubusercontent.com/15223544/223027076-14e32e8b-9608-4282-9a80-f15d0277026d.png) every dataloader work allocate over 24gb cpu memory according to memory usage monitor in 12 hours,sometime small memory releases, but total memory usage is increase. i think datasets streaming mode should not used so much memery,so maybe somewhere has memory leak. ### Environment info pytorch 1.11.0 py 3.8 cuda 11.3 transformers 4.26.1 datasets 2.9.0 found an article described a problem, may be helpful for somebody: https://ppwwyyxx.com/blog/2022/Demystify-RAM-Usage-in-Multiprocess-DataLoader/ I confirm, it`s not memory leak, after some time memory growing has stopped
[ -0.5238248109817505, -0.242172971367836, -0.03627307713031769, 0.36496245861053467, 0.33794736862182617, -0.02110110968351364, 0.05534369871020317, 0.1988844871520996, -0.12573756277561188, 0.2688145041465759, -0.03869180381298065, 0.4365618824958801, -0.19929450750350952, -0.07650624215602875, 0.17474041879177094, -0.2316945344209671, -0.04112039506435394, -0.011579234153032303, -0.3504270911216736, -0.08601079136133194, 0.08904286473989487, -0.12588605284690857, -0.02354397624731064, -0.10606449842453003, -0.33872556686401367, -0.18696987628936768, 0.12103573977947235, 0.03286672756075859, -0.07760723680257797, -0.2645828127861023, -0.11057092994451523, 0.05297558382153511, 0.12855736911296844, 0.318522572517395, -0.00010254570952383801, 0.02435918152332306, 0.18956135213375092, 0.01334390789270401, -0.2501107454299927, 0.2729125916957855, -0.17936459183692932, 0.0751117691397667, 0.038499608635902405, -0.18668802082538605, -0.20802593231201172, -0.09302955120801926, 0.02046564780175686, -0.19067765772342682, 0.5827755331993103, 0.44812583923339844, 0.3021661937236786, 0.17764830589294434, -0.0152474045753479, -0.1604422777891159, 0.40540680289268494, -0.2958778738975525, 0.038315825164318085, 0.008746922016143799, 0.10594137012958527, -0.14901548624038696, -0.30046960711479187, 0.3181544542312622, -0.08513449877500534, 0.08407002687454224, 0.0918402299284935, 0.028991922736167908, 0.08012135326862335, -0.17360085248947144, 0.18640945851802826, -0.12757164239883423, 0.16904093325138092, -0.3531995415687561, -0.017847275361418724, -0.20708021521568298, -0.1845351904630661, -0.33568042516708374, 0.07080695778131485, 0.08798238635063171, -0.4268052279949188, 0.05339483916759491, -0.32756152749061584, -0.07960543781518936, -0.15675002336502075, -0.048536863178014755, -0.07982155680656433, 0.44761598110198975, 0.055659301578998566, -0.06639319658279419, -0.002565830945968628, 0.13651323318481445, 0.2150135040283203, -0.1309896558523178, -0.21477027237415314, -0.06581515818834305, -0.24602603912353516, -0.11282601207494736, 0.13284455239772797, -0.2138751596212387, 0.21888430416584015, -0.030760183930397034, 0.1050259992480278, -0.011135948821902275, 0.23474372923374176, 0.03201209753751755, 0.12357167154550552, 0.2808901369571686, -0.39432311058044434, 0.3868922293186188, 0.12658612430095673, -0.04034155234694481, -0.2689927816390991, -0.12206551432609558, 0.08228589594364166, -0.028756143525242805, 0.29945334792137146, -0.15119421482086182, -0.03468289598822594, 0.026187561452388763, -0.3710836172103882, 0.0008144937455654144, -0.18544119596481323, 0.2033795565366745, 0.12826545536518097, 0.267727255821228, -0.1274358630180359, 0.006140097975730896, 0.023743338882923126, -0.11936605721712112, -0.23678818345069885, -0.28273841738700867, -0.46695125102996826, 0.010989869013428688, -0.32220083475112915, 0.0670202374458313, -0.10773550719022751, 0.11071769893169403, 0.354388952255249, 0.007572922855615616, -0.11104173958301544, -0.0019542574882507324, 0.1249706968665123, -0.2932397425174713, 0.044968657195568085, 0.19364723563194275, 0.039817482233047485, 0.009391210973262787, 0.006081819999963045, 0.15357093513011932, 0.14467541873455048, 0.3255046010017395, -0.007296711206436157, -0.16684004664421082, 0.14403268694877625, 0.33287161588668823, 0.27772656083106995, -0.08935695886611938, -0.3797251582145691, 0.1751765012741089, 0.42652878165245056, 0.002749927341938019, 0.10508666932582855, -0.16867157816886902, -0.41701558232307434, -0.19360706210136414, 0.19403955340385437, 0.39327237010002136, 0.055505990982055664, -0.2562335133552551, 0.32618728280067444, -0.07842376828193665, 0.5382056832313538, 0.34604743123054504, -0.1989596039056778, 0.21910253167152405, -0.07124294340610504, -0.07449254393577576, 0.21613375842571259, -0.32391858100891113, -0.5035321712493896, 0.05583561211824417, -0.23436957597732544, 0.15258143842220306, 0.1336495578289032, -0.027120621874928474, 0.3287193775177002, 0.09589098393917084, 0.3118279278278351, 0.4121086597442627, -0.22441717982292175, 0.2505844533443451, -0.42355817556381226, -0.12334545701742172, 0.18680575489997864, 0.036165982484817505, 0.2796524465084076, -0.035494688898324966, -0.020271427929401398, 0.4380093812942505, 0.29947879910469055, 0.0019052624702453613, 0.12511694431304932, 0.04671965911984444, -0.016032356768846512, -0.0826260894536972, -0.24482350051403046, -0.20624908804893494, 0.002519892528653145, 0.009718932211399078, 0.044213853776454926, -0.06467755138874054, 0.11307947337627411, -0.07945199310779572, 0.11300887167453766, -0.11151222884654999, -0.05950187146663666, -0.34764692187309265, 0.2809717655181885, 0.3526118993759155, 0.017240814864635468, 0.0288383811712265, 0.04630417376756668, 0.380121648311615, -0.3839026689529419, 0.051581788808107376, -0.12271886318922043, 0.14336183667182922, -0.03774169832468033, -0.3953694701194763, 0.058382824063301086, 0.05192890390753746, 0.04513891041278839, 0.18571141362190247, -0.2941012680530548, 0.3158314526081085, 0.029196027666330338, 0.0464714840054512, -0.15879765152931213, 0.132039874792099, 0.16565842926502228, -0.15571169555187225, -0.11699911206960678, 0.28452926874160767, 0.13120165467262268, -0.016737274825572968, 0.042867597192525864, -0.016749754548072815, 0.3786350190639496, -0.19992715120315552, 0.11575241386890411, -0.12414562702178955, 0.018325090408325195, 0.027821481227874756, 0.24706792831420898, 0.09888291358947754, 0.03869092836976051, -0.1637687236070633, 0.21169625222682953, 0.0313187837600708, -0.41012606024742126, 0.1376752406358719, 0.48310256004333496, 0.11740656197071075, 0.027597986161708832, 0.11633013933897018, -0.27411240339279175, -0.22848114371299744, 0.04960576444864273, 0.12157054245471954, 0.42942267656326294, 0.2723368704319, 0.25241318345069885, -0.041628919541835785, -0.02154659852385521, -0.2337443232536316, 0.22648276388645172, 0.045070938766002655, -0.1773279309272766, 0.1469937264919281, 0.21352891623973846, -0.10790399461984634, -0.24641269445419312, 0.15047504007816315, 0.13688330352306366, 0.43455633521080017, -0.14111606776714325, 0.04011338949203491, -0.13121555745601654, -0.32193800806999207, 0.00910446047782898, 0.13592897355556488, 0.2614334225654602, -0.033462487161159515, 0.12469690293073654, 0.37216031551361084, 0.02553541213274002, 0.21393676102161407, 0.20685997605323792, 0.1735234409570694, 0.4322907030582428, 0.13475719094276428, -0.03388988971710205, -0.19517578184604645, -0.26758140325546265, 0.24189987778663635, 0.22327612340450287, -0.17435221374034882, 0.38874268531799316, 0.11950220167636871, -0.18737560510635376, -0.18620231747627258, 0.08404836058616638, 0.14345724880695343, 0.04058864712715149, 0.10709059238433838, -0.06208910048007965, 0.07320259511470795, -0.11125393211841583, -0.08693310618400574, 0.015369459986686707, -0.3967382609844208, -0.28066831827163696, -0.08767241984605789, 0.104274682700634, 0.038583189249038696, -0.1809978187084198, -0.2763577401638031, -0.19047720730304718, -0.41819143295288086, -0.21911299228668213, -0.021745745092630386, 0.15269069373607635, 0.30630582571029663, 0.04251030832529068, 0.24064500629901886, 0.16765478253364563, 0.10192843526601791, -0.2071378231048584, -0.30158498883247375, 0.22752419114112854, -0.18408352136611938, -0.24319104850292206, -0.2505839169025421, 0.012603759765625, 0.23506338894367218, 0.35809841752052307, -0.5205414891242981, -0.1267223209142685, -0.25282928347587585, 0.07435352355241776, -0.3276450037956238, -0.03318219631910324, 0.28696897625923157, -0.047942936420440674, -0.2612593472003937, -0.15919819474220276, -0.004817277193069458, 0.046205855906009674, -0.04672699794173241, 0.14237593114376068, -0.13035717606544495, 0.46857476234436035, 0.2434563934803009, 0.6973748803138733, 0.07959428429603577, -0.0941193476319313, 0.18585096299648285, -0.22355033457279205, 0.05637681856751442, -0.24288761615753174, -0.20638884603977203, 0.18081404268741608, -0.016876958310604095, -0.17833203077316284, 0.278964638710022, -0.14164835214614868, -0.3580877184867859, -0.08572354167699814, -0.022613249719142914, 0.2275850623846054, -0.2043399214744568, 0.046640537679195404, -0.06888449192047119, 0.1675693690776825, -0.017806850373744965, 0.20146344602108002, -0.09112077206373215, -0.21526461839675903, 0.06496240198612213, -0.04399443790316582, -0.009747058153152466, 0.09833908081054688, -0.15051552653312683, 0.1273408830165863, -0.4508565366268158, 0.06255023181438446, 0.09575465321540833, 0.4511182904243469, -0.341988742351532, -0.02762022614479065, 0.14191794395446777, -0.028494885191321373, 0.45648491382598877, -0.1211482509970665, 0.23750752210617065, 0.07681826502084732, -0.173394575715065, 0.07104704529047012, 0.05260200798511505, -0.40135669708251953, -0.008977513760328293, 0.1882556527853012, 0.15941554307937622, -0.10446777194738388, -0.2227056920528412, 0.022097021341323853, -0.23576034605503082, -0.13419775664806366, 0.1665976196527481, -0.2579326927661896, -0.22728000581264496, -0.14193078875541687, 0.2520701289176941, 0.3837739825248718, 0.15807844698429108, -0.04667419567704201, -0.15743398666381836, -0.10801281034946442, 0.04633362591266632, 0.046681731939315796, -0.04665101692080498, 0.2969582676887512, 0.11790284514427185, 0.11679479479789734, 0.06326751410961151, 0.2058250904083252, 0.1758522093296051, -0.022963037714362144, 0.1945725381374359, 0.07529507577419281, 0.14560970664024353, 0.20775267481803894, 0.13990676403045654, 0.2663869559764862, -0.061214007437229156, 0.3590647280216217, -0.23730309307575226, 0.36747318506240845, -0.1500346064567566, 0.351652055978775, 0.24435320496559143, -0.09983383119106293, -0.20122060179710388, -0.6812726259231567, 0.12492909282445908, 0.23587554693222046, -0.05821852385997772, 0.4039236605167389, -0.4270493984222412, -0.5233531594276428, 0.16116157174110413, 0.11395768821239471, 0.7996344566345215, -0.012834468856453896, 0.3096458613872528, 0.3780193328857422, -0.2554006576538086, 0.20653566718101501, -0.16012245416641235, 0.28591060638427734, -0.18352848291397095, -0.14180901646614075, 0.08015608787536621, -0.11308787018060684, 0.02584615722298622, -0.23541203141212463, -0.17994657158851624, 0.1167345941066742, -0.11002941429615021, 0.4293854236602783, 0.09368423372507095, 0.1703232377767563, -0.04559478908777237, -0.13274765014648438, -0.1618557572364807, 0.2747718393802643, -0.2873647212982178, -0.10639134049415588, -0.03827328979969025, -0.14092138409614563, 0.21253547072410583, -0.052195921540260315, -0.2389882206916809, -0.015862729400396347, -0.4953312575817108, 0.24902930855751038, -0.24372681975364685, -0.3399573564529419, -0.012731213122606277, 0.2841789424419403, -0.03834042325615883, 0.12524458765983582, -0.04462137818336487, 0.22466978430747986, -0.1817571520805359, 0.25763171911239624, -0.10113438963890076, 0.066916823387146, 0.3168546259403229, -0.09493350982666016, -0.21732138097286224, 0.34971508383750916, 0.03800046071410179, -0.36570417881011963, -0.2558440864086151, 0.060022905468940735, 0.4621847867965698, -0.15306562185287476, 0.09702424705028534, -0.1685730516910553, -0.22153271734714508, -0.30809134244918823, 0.25987884402275085, -0.10911504179239273, -0.36001986265182495, 0.25163522362709045, 0.008107537403702736, -0.23707926273345947, -0.1560339331626892, 0.46890515089035034, 0.11163531988859177, 0.4214690625667572, 0.33766868710517883, -0.007318146526813507, -0.16605696082115173, -0.28279954195022583, -0.04913196712732315, 0.2777256369590759, 0.08861739933490753, 0.23865869641304016, -0.15319722890853882, -0.12789636850357056, -0.04809921979904175, 0.0031552817672491074, -0.19923469424247742, 0.06490425765514374, 0.03856751322746277, -0.11518074572086334, -0.5987669825553894, -0.07143945246934891, -0.05767149105668068, 0.2826596200466156, 0.050683677196502686, 0.24597878754138947, -0.10256384313106537, 0.1877065896987915, -0.42881476879119873, 0.10252155363559723, -0.16767381131649017, 0.270313024520874, -0.23943385481834412, -0.25782838463783264, 0.14295437932014465, -0.04976275935769081, 0.1738257259130478, 0.34230858087539673, -0.11547788977622986, -0.3964124619960785, -0.05353115499019623, 0.04740648716688156, -0.022083932533860207, -0.15321418642997742, -0.16273540258407593, -0.12219172716140747, -0.12219858914613724, -0.060637593269348145, 0.49554434418678284, 0.2442677617073059, 0.03208743780851364, -0.05800008401274681, 0.16933687031269073, 0.10411767661571503, 0.2240411937236786, -0.12087830901145935, -0.07956081628799438, -0.06894069164991379, -0.045733802020549774, 0.005512400530278683, 0.05596015602350235, -0.1603790819644928, -0.23140688240528107, -0.042504776269197464, 0.36203667521476746, 0.10436424612998962, 0.04172160476446152, -0.32374557852745056, -0.25187617540359497, 0.1956571787595749, 0.1183997318148613, 0.058811087161302567, -0.33142200112342834, -0.29167237877845764, 0.2859770357608795, 0.33465075492858887, -0.018559996038675308, -0.004500940442085266, 0.01573239639401436, -0.0935150533914566, 0.15710800886154175, 0.2025553286075592, 0.03185299038887024, -0.19316208362579346, -0.25048860907554626, 0.1570129692554474, 0.17117539048194885, -0.17164191603660583, 0.00430784747004509, 0.18041934072971344, -0.0624997541308403, -0.13676640391349792, 0.04097285121679306, 0.27107930183410645, 0.07249873131513596, 0.5580583214759827, 0.13322877883911133, 0.4415341913700104, 0.11277688294649124, -0.08584083616733551, -0.1610175520181656, -0.11257736384868622, -0.5159136056900024, 0.4672248959541321, -0.3079605996608734, 0.23776400089263916, -0.12279731780290604, 0.2442811131477356, 0.0770823284983635, -0.3757055103778839, 0.02181994915008545, 0.021650811657309532, -0.3222939074039459, 0.011741206049919128, -0.0997730940580368, -0.0802246481180191, -0.24968686699867249, 0.23120638728141785, 0.08802445977926254, -0.036303598433732986, 0.08676967024803162, 0.046302616596221924, -0.14008858799934387, -0.09745059907436371, 0.020573178306221962, 0.36860859394073486, 0.08122110366821289, -0.36752548813819885, 0.36629360914230347, -0.05064190551638603, 0.10816004872322083, -0.1452498733997345, 0.21902868151664734, 0.21661633253097534, 0.3237355947494507, -0.17769840359687805, -0.049958735704422, 0.332376629114151, -0.12096494436264038, -0.1713360846042633, 0.20251904428005219, 0.14744384586811066, -0.02909797616302967, 0.07247599214315414, 0.24044804275035858, -0.2912118434906006, 0.06888601183891296, 0.2737821042537689, -0.08938443660736084, -0.21240359544754028, 0.34254106879234314, 0.03778280317783356, 0.005951419472694397, -0.020862065255641937, -0.10061514377593994, -0.4114533066749573, 0.07143044471740723, 0.19947567582130432, -0.021866001188755035, 0.2994562089443207, -0.08515313267707825, 0.12646901607513428, -0.1451091766357422, 0.4405645728111267, -0.061744943261146545, -0.06818613409996033, -0.40862172842025757, -0.2986992299556732, -0.2024202048778534, 0.24542945623397827, -0.06752745807170868, 0.030232101678848267, -0.22686202824115753, 0.19432011246681213, -0.26079171895980835, 0.020122315734624863, -0.14772234857082367, -0.13580229878425598, 0.22641433775424957, 0.2672234773635864, -0.46551868319511414, 0.050679437816143036, -0.23774781823158264, 0.10314756631851196, 0.19144171476364136, -0.44887036085128784, 0.3300665318965912, -0.18007636070251465, 0.27557504177093506, 0.03950498625636101, 0.13168475031852722, -0.029451798647642136, 0.24356770515441895, 0.28603431582450867, 0.018115272745490074, 0.35083943605422974, -0.13640150427818298, 0.10803653299808502, -0.0673893466591835, -0.23444803059101105, -0.2726666033267975, -0.18898947536945343, -0.04186655953526497, 0.5029819011688232, 0.05318678170442581, -0.176455557346344, -0.26131772994995117, 0.33273839950561523, 0.11603042483329773, -0.1764771044254303, -0.13164883852005005, 0.055753886699676514, 0.01689920574426651, 0.26058071851730347, -0.025912845507264137, 0.26998355984687805, -0.17080962657928467, 0.04022756218910217, -0.40856868028640747, -0.5611590147018433, 0.6138567924499512, -0.4815842807292938, -0.45056524872779846, -0.06473769247531891, 0.241222083568573, 0.5785302519798279, -0.14789487421512604, -0.3607475161552429, 0.009411230683326721, 0.151272714138031, -0.205269455909729, -0.30066484212875366, 0.4022475481033325, 0.09718810021877289, 0.22735455632209778, 0.086469866335392, 0.3437444269657135, 0.09077844768762589, -0.26182717084884644, 0.3750075697898865, -0.2718403935432434 ]
https://github.com/huggingface/datasets/issues/5609
Hi! We've recently made some improvements to `save_to_disk`/`list_to_disk` (100x faster in some scenarios), so it would help if you could install `datasets` directly from `main` (`pip install git+https://github.com/huggingface/datasets.git`) and re-run the "benchmark".
`load_from_disk` vs `load_dataset` performance.
### Describe the bug I have downloaded `openwebtext` (~12GB) and filtered out a small amount of junk (it's still huge). Now, I would like to use this filtered version for future work. It seems I have two choices: 1. Use `load_dataset` each time, relying on the cache mechanism, and re-run my filtering. 2. `save_to_disk` and then use `load_from_disk` to load the filtered version. The performance of these two approaches is wildly different: * Using `load_dataset` takes about 20 seconds to load the dataset, and a few seconds to re-filter (thanks to the brilliant filter/map caching) * Using `load_from_disk` takes 14 minutes! And the second time I tried, the session just crashed (on a machine with 32GB of RAM) I don't know if you'd call this a bug, but it seems like there shouldn't need to be two methods to load from disk, or that they should not take such wildly different amounts of time, or that one should not crash. Or maybe that the docs could offer some guidance about when to pick which method and why two methods exist, or just how do most people do it? Something I couldn't work out from reading the docs was this: can I modify a dataset from the hub, save it (locally) and use `load_dataset` to load it? This [post seemed to suggest that the answer is no](https://discuss.huggingface.co/t/save-and-load-datasets/9260). ### Steps to reproduce the bug See above ### Expected behavior Load times should be about the same. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
32
`load_from_disk` vs `load_dataset` performance. ### Describe the bug I have downloaded `openwebtext` (~12GB) and filtered out a small amount of junk (it's still huge). Now, I would like to use this filtered version for future work. It seems I have two choices: 1. Use `load_dataset` each time, relying on the cache mechanism, and re-run my filtering. 2. `save_to_disk` and then use `load_from_disk` to load the filtered version. The performance of these two approaches is wildly different: * Using `load_dataset` takes about 20 seconds to load the dataset, and a few seconds to re-filter (thanks to the brilliant filter/map caching) * Using `load_from_disk` takes 14 minutes! And the second time I tried, the session just crashed (on a machine with 32GB of RAM) I don't know if you'd call this a bug, but it seems like there shouldn't need to be two methods to load from disk, or that they should not take such wildly different amounts of time, or that one should not crash. Or maybe that the docs could offer some guidance about when to pick which method and why two methods exist, or just how do most people do it? Something I couldn't work out from reading the docs was this: can I modify a dataset from the hub, save it (locally) and use `load_dataset` to load it? This [post seemed to suggest that the answer is no](https://discuss.huggingface.co/t/save-and-load-datasets/9260). ### Steps to reproduce the bug See above ### Expected behavior Load times should be about the same. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 Hi! We've recently made some improvements to `save_to_disk`/`list_to_disk` (100x faster in some scenarios), so it would help if you could install `datasets` directly from `main` (`pip install git+https://github.com/huggingface/datasets.git`) and re-run the "benchmark".
[ -0.33111828565597534, -0.14985620975494385, -0.025142420083284378, 0.25953447818756104, -0.1268291473388672, -0.03467244654893875, 0.3779498338699341, 0.11492869257926941, 0.4315916895866394, -0.02310255914926529, -0.20274633169174194, 0.21347078680992126, 0.07347792387008667, -0.03555326536297798, 0.06723693013191223, 0.17600557208061218, 0.3106195330619812, -0.1145804300904274, 0.049170028418302536, -0.051982734352350235, -0.07567038387060165, -0.09098318964242935, -0.041532039642333984, -0.18549780547618866, 0.04544292017817497, 0.02041739784181118, 0.008758902549743652, 0.4124290347099304, 0.08584874123334885, -0.16593460738658905, 0.520790159702301, 0.14106985926628113, -0.034989941865205765, 0.46526139974594116, -0.00012473584502004087, 0.17306873202323914, 0.0971880555152893, -0.0008350163698196411, -0.258548378944397, 0.01718028634786606, -0.11186005175113678, -0.11963533610105515, 0.06177177280187607, -0.0924685150384903, 0.18423885107040405, 0.20903010666370392, -0.13244199752807617, -0.4373900592327118, 0.2723410725593567, -0.0017433501780033112, 0.053805045783519745, 0.5326715111732483, -0.2706516981124878, -0.07608271390199661, 0.24861621856689453, 0.023108989000320435, -0.18424257636070251, 0.14619866013526917, 0.5378532409667969, 0.1991146206855774, -0.2522783577442169, 0.09381592273712158, -0.35908043384552, 0.031254030764102936, 0.4064524173736572, 0.13214950263500214, -0.10314753651618958, -0.0633709654211998, 0.0942990779876709, 0.2473735362291336, 0.6727886199951172, -0.0257954690605402, -0.4365227520465851, -0.4246278703212738, -0.41873687505722046, 0.004900060594081879, 0.34124326705932617, -0.014173239469528198, -0.11480800807476044, 0.2715095281600952, -0.34363454580307007, -0.3149222135543823, 0.03164958953857422, 0.11457358300685883, -0.2711177170276642, -0.05911080539226532, -0.0996079370379448, 0.24058669805526733, 0.1564243584871292, 0.2929988503456116, 0.48856648802757263, -0.4707778990268707, 0.08168916404247284, 0.03553807735443115, -0.12668560445308685, -0.019423335790634155, 0.2606043815612793, 0.19740015268325806, -0.15112659335136414, 0.4921872317790985, 0.40023577213287354, -0.07412044703960419, -0.21992520987987518, -0.10255569964647293, 0.2702628970146179, 0.2888566851615906, 0.17762428522109985, -0.05429362505674362, 0.32910868525505066, -0.19046783447265625, -0.08159806579351425, 0.013532564043998718, 0.26379454135894775, -0.039527907967567444, 0.3620119094848633, -0.4077029824256897, 0.12483367323875427, -0.2887009382247925, -0.34886181354522705, -0.19580873847007751, 0.2037137895822525, -0.28958964347839355, 0.13670024275779724, 0.14897188544273376, -0.07792642712593079, 0.27572235465049744, 0.11191558837890625, -0.04779806733131409, -0.20497849583625793, -0.07433844357728958, -0.20393520593643188, -0.029373621568083763, -0.0550973117351532, 0.29079365730285645, 0.16269682347774506, -0.42967987060546875, 0.22500818967819214, -0.08903580904006958, -0.2232050895690918, 0.0448022335767746, -0.19238077104091644, -0.18502025306224823, 0.0638330802321434, 0.21949301660060883, -0.0960804745554924, 0.18807071447372437, -0.08088294416666031, -0.0589991919696331, -0.3747469186782837, 0.43211981654167175, -0.30512934923171997, -0.5559337735176086, 0.2908690571784973, -0.015708090737462044, -0.16776148974895477, -0.13112737238407135, -0.3680327534675598, 0.25257858633995056, 0.0701943188905716, -0.16138537228107452, -0.11384235322475433, 0.21703962981700897, -0.3846356272697449, -0.3353208899497986, 0.15145793557167053, 0.3812575340270996, -0.490324467420578, 0.04778619110584259, -0.12485179305076599, 0.05153607949614525, -0.13090988993644714, 0.30100366473197937, -0.5141867995262146, 0.5063514709472656, -0.009705450385808945, 0.10447880625724792, 0.4968341886997223, -0.6766930818557739, -0.681167483329773, 0.3913046419620514, 0.16062141954898834, 0.2626839876174927, -0.008083224296569824, 0.18743905425071716, 0.21577303111553192, -0.5616732835769653, 0.15467211604118347, 0.35922127962112427, -0.08476751297712326, 0.11609286814928055, -0.3051431179046631, -0.3088770806789398, 0.30818018317222595, 0.11069508641958237, -0.14917251467704773, 0.10167229920625687, -0.003836248070001602, 0.2701094448566437, 0.149429053068161, 0.15425072610378265, -0.12935969233512878, 0.07387270033359528, 0.004897651262581348, -0.14932143688201904, -0.31099218130111694, -0.006360068917274475, -0.5125472545623779, 0.23101100325584412, 0.13577847182750702, -0.2003326267004013, 0.5238425135612488, 0.09988132119178772, -0.2505653202533722, -0.098167285323143, 0.020981699228286743, -0.07237580418586731, -0.12604092061519623, 0.05978759378194809, 0.19171243906021118, -0.25576335191726685, -0.3022627830505371, 0.5755269527435303, -0.012892156839370728, 0.06391636282205582, -0.29463016986846924, 0.3552502393722534, 0.18997667729854584, -0.05092718079686165, -0.1867549866437912, -0.3805745244026184, 0.011264331638813019, -0.054276272654533386, -0.22150689363479614, 0.6112112402915955, -0.07117588818073273, 0.4225350022315979, -0.21904030442237854, 0.16499990224838257, 0.31057262420654297, 0.2305825650691986, 0.3378233313560486, -0.061232294887304306, 0.25232288241386414, -0.16329893469810486, -0.4686344563961029, -0.0450417697429657, 0.028328511863946915, 0.152827650308609, 0.07614538073539734, -0.40473473072052, -0.0821785032749176, 0.018593065440654755, -0.04720886051654816, 0.012003213167190552, -0.0007343725301325321, 0.12566588819026947, 0.3328721225261688, 0.02412560023367405, -0.022618353366851807, 0.20817863941192627, 0.45607590675354004, -0.09420188516378403, -0.053038712590932846, 0.14826470613479614, 0.11334645748138428, -0.34551721811294556, 0.07707592099905014, 0.05789200961589813, 0.7755205035209656, 0.008694477379322052, 0.22123311460018158, -0.05003245174884796, -0.2066313475370407, -0.08983729779720306, 0.32109150290489197, 0.11329259723424911, 0.3349570035934448, 0.03881974518299103, 0.030098360031843185, 0.02279435470700264, -0.24062003195285797, -0.03571049124002457, -0.14021450281143188, -0.11425613611936569, -0.3018410801887512, -0.019310910254716873, -0.18653495609760284, 0.19324354827404022, 0.07078471779823303, 0.035053446888923645, -0.11161145567893982, -0.24288809299468994, -0.13469494879245758, 0.6499098539352417, -0.20449191331863403, -0.18741737306118011, -0.14506307244300842, 0.4919341802597046, -0.26564136147499084, 0.010253740474581718, -0.1454501748085022, 0.14903868734836578, -0.27170485258102417, -0.07084327191114426, 0.3007030785083771, 0.02828114852309227, 0.3894663453102112, -0.1599780023097992, -0.040311701595783234, -0.1368747353553772, -0.12144657969474792, 0.03999107703566551, 0.07552964985370636, 0.41300708055496216, -0.023079585283994675, 0.20424571633338928, -0.22998008131980896, -0.18378980457782745, 0.13002732396125793, -0.30035775899887085, -0.09049322456121445, -0.2110450118780136, 0.12094984948635101, 0.106125608086586, 0.1456412672996521, -0.25639182329177856, -0.2529444396495819, -0.34750038385391235, -0.26609697937965393, -0.12084125727415085, 0.12330569326877594, -0.12051737308502197, -0.13884849846363068, -0.05536305904388428, 0.3290141820907593, 0.17516417801380157, -0.26008033752441406, -0.6319187879562378, 0.2888832688331604, -0.11362931877374649, -0.2960757911205292, -0.1660308539867401, 0.20339328050613403, -0.12953270971775055, 0.28173694014549255, -0.5360133647918701, -0.14697495102882385, -0.17749837040901184, -0.2050866186618805, 0.07693779468536377, 0.26190775632858276, 0.4216817617416382, -0.06120985001325607, 0.034474052488803864, -0.1326901912689209, -0.524994969367981, 0.11982578039169312, 0.306225061416626, 0.1502668857574463, 0.17485995590686798, 0.135986328125, 0.12672051787376404, 0.1919792890548706, 0.10894982516765594, 0.33454960584640503, 0.29956889152526855, 0.45799365639686584, 0.32315540313720703, -0.5741491317749023, -0.1544039398431778, -0.2810715436935425, -0.24557246267795563, -0.11863288283348083, 0.29017341136932373, 0.33241990208625793, -0.20562265813350677, -0.348465234041214, -0.2857414782047272, -0.29579824209213257, -0.39681053161621094, 0.032326117157936096, 0.013227216899394989, -0.10729669779539108, 0.2421780824661255, 0.2156451940536499, -0.2924533784389496, -0.07989273220300674, 0.15896771848201752, 0.038463838398456573, 0.2843133211135864, -0.1603144109249115, -0.1520269215106964, 0.24505305290222168, -0.6792118549346924, 0.2654532194137573, -0.0789475217461586, 0.13172423839569092, 0.1741640865802765, -0.2025202512741089, 0.08381733298301697, -0.15844625234603882, 0.5974338054656982, -0.08645045757293701, 0.19754528999328613, 0.1848849654197693, -0.42490142583847046, -0.5857477784156799, -0.04758891463279724, -0.010771900415420532, 0.048401959240436554, 0.0005985833704471588, 0.21251210570335388, -0.37061697244644165, -0.2938106954097748, -0.026311703026294708, 0.3113425076007843, -0.18926140666007996, -0.11785008013248444, 0.07803495973348618, -0.4106234312057495, -0.27966490387916565, -0.2708132266998291, -0.07966010272502899, 0.20155200362205505, -0.013070367276668549, 0.08179228752851486, -0.09491510689258575, -0.10115306079387665, 0.23979023098945618, -0.07975402474403381, 0.1980261355638504, -0.040555618703365326, 0.3048784136772156, -0.07570415735244751, 0.23501884937286377, -0.085201695561409, 0.6473174095153809, -0.23514626920223236, 0.03929014131426811, 0.0634637102484703, 0.008419517427682877, -0.3181399405002594, 0.7787682414054871, 0.19144001603126526, -0.20491977035999298, 0.02185775712132454, -0.07795058190822601, -0.24482692778110504, 0.025700319558382034, -0.11634758859872818, -0.1265551894903183, -0.4097045063972473, -0.32142043113708496, 0.5862799882888794, 0.1562865972518921, -0.2836999297142029, 0.625557541847229, 0.13611240684986115, -0.345844030380249, 0.40824317932128906, -0.0012659430503845215, 1.0263969898223877, 0.07142782211303711, 0.17156802117824554, 0.30501672625541687, -0.0029341652989387512, 0.04316733032464981, -0.21707570552825928, -0.06409755349159241, 0.07189887762069702, -0.4252963066101074, -0.034319695085287094, -0.18644651770591736, 0.24246098101139069, 0.37303823232650757, 0.12178467214107513, 0.2902435064315796, 0.044706791639328, 0.3395252227783203, -0.11623621731996536, 0.14112553000450134, -0.33802345395088196, -0.2349085509777069, -0.4901595115661621, 0.015123508870601654, 0.048399556428194046, 0.16936883330345154, -0.011450845748186111, 0.20532096922397614, -0.1240713968873024, -0.17059394717216492, -0.08828483521938324, -0.10427019000053406, 0.15117046236991882, 0.3046509027481079, -0.2285592257976532, -0.2982703447341919, -0.08506246656179428, 0.09864096343517303, 0.16360096633434296, -0.11050572246313095, -0.1124110296368599, 0.06157561391592026, -0.12547874450683594, 0.5143856406211853, 0.054449547082185745, -0.23583245277404785, 0.505297064781189, -0.19148993492126465, -0.09972219169139862, -0.014258842915296555, -0.42153215408325195, -0.5993865728378296, 0.07718268036842346, 0.17260493338108063, 0.4765136241912842, -0.3556835651397705, -0.3462611734867096, 0.4144490659236908, 0.13910439610481262, -0.24297039210796356, -0.05182566121220589, 0.2316650003194809, 0.21635307371616364, 0.5495191216468811, -0.18988122045993805, -0.18481555581092834, -0.16673441231250763, 0.3605493903160095, 0.16734811663627625, -0.16510221362113953, 0.07797025144100189, -0.1807476133108139, -0.1630372703075409, -0.014565493911504745, 0.33846259117126465, 0.29437464475631714, -0.3435838222503662, 0.37637877464294434, -0.3561922609806061, 0.10042567551136017, 0.04745243862271309, 0.30107253789901733, 0.31088852882385254, 0.29480820894241333, -0.08653813600540161, -0.1809619665145874, 0.025899529457092285, 0.2890550494194031, 0.5125221610069275, 0.24292594194412231, 0.01122301071882248, -0.24572521448135376, -0.15309584140777588, 0.028428057208657265, -0.1534757912158966, 0.19374482333660126, 0.21891123056411743, 0.0828835517168045, -0.07426042854785919, 0.28598082065582275, 0.14555954933166504, -0.05385959893465042, -0.14384159445762634, -0.06162412837147713, -0.38125383853912354, -0.03278905898332596, -0.09235715866088867, 0.2789550721645355, -0.0700371116399765, -0.41125738620758057, 0.05516159161925316, -0.31107261776924133, 0.24164457619190216, -0.2174856960773468, 0.41451936960220337, 0.26030397415161133, -0.00046059489250183105, -0.47625601291656494, 0.3567800223827362, 0.2760103940963745, -0.11032035201787949, 0.5286290049552917, -0.06709957122802734, 0.34835201501846313, 0.024664510041475296, 0.37590327858924866, 0.17725642025470734, -0.20922234654426575, -0.06055063754320145, 0.020101916044950485, 0.15967848896980286, 0.22024795413017273, 0.259055495262146, -0.06606952846050262, 0.16894257068634033, 0.2701824903488159, 0.20542435348033905, 0.28839269280433655, -0.049149397760629654, -0.0670294240117073, -0.043752484023571014, 0.050642915070056915, 0.19940005242824554, -0.2745581567287445, 0.19864164292812347, -0.13249927759170532, -0.0792739987373352, 0.0676615834236145, 0.11459460854530334, 0.26295483112335205, -0.28220510482788086, 0.07256488502025604, 0.7180388569831848, 0.1671067327260971, 0.12832385301589966, 0.4442272484302521, -0.15816739201545715, 0.28058478236198425, -0.0054208217188715935, -0.0384688675403595, 0.09217262268066406, 0.1951594054698944, 0.08509600162506104, 0.38809701800346375, 0.06404948234558105, 0.4564427435398102, -0.05884542316198349, -0.5474145412445068, 0.3486257791519165, 0.29663771390914917, -0.12523096799850464, 0.09693644940853119, 0.05992003530263901, -0.2646996080875397, -0.2855801284313202, -0.22869029641151428, -0.16135182976722717, 0.3320697247982025, 0.08857221156358719, -0.229844331741333, 0.05780883878469467, -0.3221452236175537, 0.3201981484889984, 0.3877037465572357, -0.3498435616493225, -0.35224565863609314, 0.07598389685153961, 0.056528910994529724, -0.02927667275071144, 0.030982552096247673, 0.053774502128362656, -0.46171316504478455, 0.021920407190918922, -0.01498391479253769, 0.17667943239212036, 0.012367956340312958, -0.09881594777107239, 0.3309497833251953, 0.22688080370426178, -0.004208709113299847, 0.21743497252464294, 0.08261284232139587, 0.026965409517288208, 0.25283190608024597, -0.015079300850629807, -0.0947171151638031, 0.0899912640452385, -0.0714813619852066, 0.07646042108535767, 0.3121790885925293, 0.045277103781700134, -0.005069009959697723, -0.030584989115595818, -0.09401797503232956, 0.11091993749141693, -0.5028136968612671, 0.28826290369033813, -0.06971263885498047, -0.08677546679973602, 0.2633518576622009, 0.09653812646865845, 0.1521928608417511, -0.07518455386161804, 0.28886640071868896, -0.35864657163619995, 0.03315243870019913, 0.10030199587345123, 0.012160014361143112, 0.10474132001399994, 0.4097529649734497, 0.002187935635447502, -0.1082165539264679, -0.0414990596473217, -0.11665158718824387, -0.4124368131160736, -0.0867103785276413, 0.3105449974536896, 0.17226360738277435, 0.007007252424955368, 0.20792898535728455, 0.08515223860740662, 0.3403300642967224, 0.3108832836151123, -0.056556351482868195, -0.002522069960832596, 0.09458476305007935, -0.06874285638332367, -0.07898116111755371, 0.210639089345932, 0.2431928813457489, -0.19838254153728485, -0.5821885466575623, 0.231003537774086, 0.07883395254611969, -0.09937895834445953, -0.18930265307426453, -0.02319154143333435, 0.2648940086364746, 0.052737053483724594, 0.3790991008281708, 0.1904272884130478, 0.11358930170536041, 0.15797296166419983, -0.24748797714710236, -0.029955871403217316, -0.11062172055244446, -0.1210557371377945, -0.0010120365768671036, -0.21532666683197021, 0.3128502368927002, -0.3055419921875, 0.12814559042453766, -0.02682425081729889, 0.3569430410861969, -0.14761725068092346, 0.2569279372692108, -0.36990460753440857, -0.31629759073257446, -0.13479220867156982, -0.1554592251777649, 0.36718669533729553, 0.25912272930145264, -0.08493056893348694, 0.23907577991485596, -0.2882508933544159, -0.0792827233672142, 0.41943055391311646, -0.2988722324371338, 0.031578630208969116, -0.21272113919258118, 0.22734950482845306, 0.1581263244152069, -0.10958383977413177, -0.4211435317993164, -0.3517264723777771, 0.24133753776550293, -0.19620466232299805, -0.10244931280612946, 0.29788488149642944, -0.1643785834312439, -0.16380725800991058, 0.022168517112731934, 0.22689875960350037, -0.12115668505430222, -0.38753804564476013, -0.09927523136138916, -0.22601252794265747 ]
https://github.com/huggingface/datasets/issues/5609
@mariosasko is that fix released to pip in the meantime? Asking cause im facing still the same issue (regarding loading images from local paths): ``` dataset = load_dataset("csv", cache_dir="cache", data_files=["/STORAGE/DATA/mijam/vit/code/list_filtered.csv"], num_proc=16, split="train").cast_column("image", Image()) dataset = dataset.class_encode_column("label") ``` quite fast. Then I do `save_to_disk()` and some time later: ``` dataset = load_from_disk('/STORAGE/DATA/mijam/accel/saved_arrow_big') ``` really slow. In theory it should be quicked since it only loads arrow files, no conversions and so on.
`load_from_disk` vs `load_dataset` performance.
### Describe the bug I have downloaded `openwebtext` (~12GB) and filtered out a small amount of junk (it's still huge). Now, I would like to use this filtered version for future work. It seems I have two choices: 1. Use `load_dataset` each time, relying on the cache mechanism, and re-run my filtering. 2. `save_to_disk` and then use `load_from_disk` to load the filtered version. The performance of these two approaches is wildly different: * Using `load_dataset` takes about 20 seconds to load the dataset, and a few seconds to re-filter (thanks to the brilliant filter/map caching) * Using `load_from_disk` takes 14 minutes! And the second time I tried, the session just crashed (on a machine with 32GB of RAM) I don't know if you'd call this a bug, but it seems like there shouldn't need to be two methods to load from disk, or that they should not take such wildly different amounts of time, or that one should not crash. Or maybe that the docs could offer some guidance about when to pick which method and why two methods exist, or just how do most people do it? Something I couldn't work out from reading the docs was this: can I modify a dataset from the hub, save it (locally) and use `load_dataset` to load it? This [post seemed to suggest that the answer is no](https://discuss.huggingface.co/t/save-and-load-datasets/9260). ### Steps to reproduce the bug See above ### Expected behavior Load times should be about the same. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
71
`load_from_disk` vs `load_dataset` performance. ### Describe the bug I have downloaded `openwebtext` (~12GB) and filtered out a small amount of junk (it's still huge). Now, I would like to use this filtered version for future work. It seems I have two choices: 1. Use `load_dataset` each time, relying on the cache mechanism, and re-run my filtering. 2. `save_to_disk` and then use `load_from_disk` to load the filtered version. The performance of these two approaches is wildly different: * Using `load_dataset` takes about 20 seconds to load the dataset, and a few seconds to re-filter (thanks to the brilliant filter/map caching) * Using `load_from_disk` takes 14 minutes! And the second time I tried, the session just crashed (on a machine with 32GB of RAM) I don't know if you'd call this a bug, but it seems like there shouldn't need to be two methods to load from disk, or that they should not take such wildly different amounts of time, or that one should not crash. Or maybe that the docs could offer some guidance about when to pick which method and why two methods exist, or just how do most people do it? Something I couldn't work out from reading the docs was this: can I modify a dataset from the hub, save it (locally) and use `load_dataset` to load it? This [post seemed to suggest that the answer is no](https://discuss.huggingface.co/t/save-and-load-datasets/9260). ### Steps to reproduce the bug See above ### Expected behavior Load times should be about the same. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 @mariosasko is that fix released to pip in the meantime? Asking cause im facing still the same issue (regarding loading images from local paths): ``` dataset = load_dataset("csv", cache_dir="cache", data_files=["/STORAGE/DATA/mijam/vit/code/list_filtered.csv"], num_proc=16, split="train").cast_column("image", Image()) dataset = dataset.class_encode_column("label") ``` quite fast. Then I do `save_to_disk()` and some time later: ``` dataset = load_from_disk('/STORAGE/DATA/mijam/accel/saved_arrow_big') ``` really slow. In theory it should be quicked since it only loads arrow files, no conversions and so on.
[ -0.39497995376586914, -0.1679820865392685, -0.029321450740098953, 0.31953656673431396, -0.08276087045669556, -0.11662056297063828, 0.34465861320495605, 0.12127183377742767, 0.434459924697876, 0.03034638985991478, -0.15239641070365906, 0.2795904874801636, 0.02290482446551323, -0.08029060065746307, 0.04845201224088669, 0.12860296666622162, 0.27738749980926514, -0.10964704304933548, -0.0029785633087158203, -0.10250027477741241, -0.08454170823097229, -0.02917102538049221, -0.010781154036521912, -0.17019370198249817, 0.07326965034008026, 0.07390666753053665, 0.0568724125623703, 0.4485822319984436, 0.00939854234457016, -0.1939391940832138, 0.481462687253952, 0.10706895589828491, -0.05668240040540695, 0.4905299246311188, -0.0001257784606423229, 0.19438019394874573, 0.15146078169345856, -0.0028509944677352905, -0.209314227104187, -0.08069193363189697, -0.11956415325403214, -0.21201850473880768, 0.14374035596847534, -0.09530476480722427, 0.17216745018959045, 0.1684132218360901, -0.055240824818611145, -0.36649417877197266, 0.3683862090110779, 0.027737591415643692, 0.03441304340958595, 0.514249324798584, -0.2854055166244507, -0.014523336663842201, 0.2754451632499695, 0.03539639711380005, -0.18619298934936523, 0.17156872153282166, 0.5837605595588684, 0.17731046676635742, -0.17142707109451294, 0.16139556467533112, -0.38604745268821716, 0.13310661911964417, 0.3099645972251892, 0.12808376550674438, -0.05514143407344818, -0.07215319573879242, 0.06233590096235275, 0.2621576488018036, 0.5923986434936523, 0.01599683240056038, -0.47219908237457275, -0.41559261083602905, -0.4735870361328125, 0.04446166753768921, 0.3674743175506592, 0.10530658811330795, -0.211109459400177, 0.2610833942890167, -0.43377211689949036, -0.26049891114234924, -0.03348588943481445, 0.18036308884620667, -0.23261010646820068, -0.06250706315040588, -0.08180494606494904, 0.2718093693256378, 0.17609542608261108, 0.33173131942749023, 0.5485851764678955, -0.4189511835575104, 0.10227137804031372, 0.06686283648014069, -0.018163040280342102, 0.062359221279621124, 0.23222148418426514, 0.21634113788604736, -0.1728849560022354, 0.4670979678630829, 0.41419440507888794, 0.0030699782073497772, -0.2171308696269989, -0.037756580859422684, 0.2814381718635559, 0.20282849669456482, 0.044813528656959534, 0.06849248707294464, 0.32501888275146484, -0.22556035220623016, -0.10712907463312149, -0.02998294308781624, 0.23942986130714417, -0.08160990476608276, 0.24310500919818878, -0.42873430252075195, 0.12401020526885986, -0.27830207347869873, -0.32238301634788513, -0.2797991931438446, 0.30369770526885986, -0.2667544484138489, 0.14143936336040497, 0.15437453985214233, -0.09160013496875763, 0.27187758684158325, 0.12932884693145752, -0.06871213018894196, -0.24171601235866547, 0.014892254024744034, -0.17551226913928986, -0.0678878128528595, -0.05635429546236992, 0.21617937088012695, 0.14443038403987885, -0.36292192339897156, 0.2761400043964386, -0.10105867683887482, -0.23789887130260468, 0.0754101425409317, -0.14114022254943848, -0.22175954282283783, 0.1585157960653305, 0.3103821277618408, -0.10387498885393143, 0.17041461169719696, -0.013818653300404549, -0.0374002605676651, -0.3675130009651184, 0.4637753367424011, -0.352570503950119, -0.5762967467308044, 0.1875857710838318, -0.047232482582330704, -0.16724306344985962, -0.09059879183769226, -0.40246766805648804, 0.15805964171886444, 0.05543830245733261, -0.1795935332775116, -0.10417371988296509, 0.15274325013160706, -0.4004577398300171, -0.299541175365448, 0.13611936569213867, 0.349844753742218, -0.41113001108169556, 0.005411453545093536, -0.11835162341594696, 0.03618273138999939, -0.042543813586235046, 0.3227197825908661, -0.5172683000564575, 0.4794791340827942, -0.06441394984722137, -0.016582436859607697, 0.5085557699203491, -0.8151822686195374, -0.6723706722259521, 0.47726666927337646, 0.185383602976799, 0.23007570207118988, 0.0002985261380672455, 0.2049822360277176, 0.20973141491413116, -0.45928359031677246, 0.08811277151107788, 0.4451812207698822, -0.059564344584941864, 0.2053144872188568, -0.3283916711807251, -0.34845197200775146, 0.2524011433124542, 0.16327211260795593, -0.1295287162065506, 0.03388082981109619, 0.01192399486899376, 0.1673002988100052, 0.14168211817741394, 0.1296745240688324, -0.16175827383995056, 0.12796543538570404, 0.05093446746468544, -0.13178983330726624, -0.25310274958610535, 0.005083031952381134, -0.3973788917064667, 0.24321888387203217, 0.09229625761508942, -0.17124228179454803, 0.3435271084308624, 0.13959543406963348, -0.25018638372421265, -0.07249254733324051, -0.06405927240848541, -0.11750802397727966, -0.15474839508533478, 0.01410633698105812, 0.19981330633163452, -0.21644097566604614, -0.30368444323539734, 0.5945700407028198, -0.05745725706219673, 0.11497601866722107, -0.25095003843307495, 0.3683030605316162, 0.17758361995220184, -0.07785524427890778, -0.27598655223846436, -0.3478195071220398, -0.05150677263736725, -0.09902658313512802, -0.24096649885177612, 0.6560216546058655, -0.02421478182077408, 0.4263664484024048, -0.2163422703742981, 0.1039876714348793, 0.35345563292503357, 0.1340598464012146, 0.3177527189254761, -0.02827114425599575, 0.237418532371521, -0.09805211424827576, -0.5144978761672974, -0.09289843589067459, -0.08729774504899979, 0.17462295293807983, 0.09244586527347565, -0.42487940192222595, -0.10304626822471619, 0.029948435723781586, -0.1074608862400055, -0.002509281039237976, 0.04649411141872406, 0.13013558089733124, 0.4117829203605652, 0.0025682616978883743, 0.05822010338306427, 0.12420132011175156, 0.39289337396621704, -0.008865974843502045, -0.06855897605419159, 0.17771419882774353, 0.14557257294654846, -0.3013044595718384, 0.08104628324508667, 0.14949080348014832, 0.7765819430351257, 0.010140497237443924, 0.1943722665309906, -0.06224771589040756, -0.22003328800201416, -0.09971606731414795, 0.32518690824508667, 0.16118958592414856, 0.22222870588302612, 0.06833028793334961, 0.0883493721485138, -0.003226587548851967, -0.29700979590415955, 0.0654214397072792, -0.1698271781206131, -0.12401055544614792, -0.3023720383644104, 0.008264422416687012, -0.24509136378765106, 0.09611350297927856, 0.0022386275231838226, 0.022069353610277176, -0.11241373419761658, -0.17739364504814148, -0.11221984028816223, 0.5550404191017151, -0.2134723961353302, -0.13282251358032227, -0.09744764119386673, 0.39577221870422363, -0.25385990738868713, -0.05836901068687439, -0.12120358645915985, 0.12541145086288452, -0.23784232139587402, -0.11023467034101486, 0.3084544837474823, 0.06323707103729248, 0.3865613639354706, -0.21611416339874268, -0.08893263339996338, -0.12484247237443924, -0.1490524858236313, 0.05396580323576927, 0.11329366266727448, 0.5147413611412048, 0.013954788446426392, 0.19896259903907776, -0.21991585195064545, -0.17373287677764893, 0.19774606823921204, -0.29007524251937866, -0.08562788367271423, -0.23742620646953583, 0.11272389441728592, 0.12532725930213928, 0.10768834501504898, -0.2129376232624054, -0.3204638361930847, -0.3567177951335907, -0.1629476398229599, -0.07633254677057266, 0.182524174451828, -0.10747364163398743, -0.0259876549243927, -0.12524071335792542, 0.26450398564338684, 0.15876224637031555, -0.20572298765182495, -0.6710063815116882, 0.23840510845184326, -0.11466421186923981, -0.29220935702323914, -0.2282702475786209, 0.20647095143795013, -0.03632595017552376, 0.3031080961227417, -0.5500444173812866, -0.2657795250415802, -0.1717008799314499, -0.15315142273902893, 0.09706297516822815, 0.28601357340812683, 0.4339011311531067, -0.04313203692436218, 0.045721229165792465, -0.1893903911113739, -0.3724767565727234, 0.10922189056873322, 0.24472971260547638, 0.12881553173065186, 0.22966225445270538, 0.14587946236133575, 0.13420915603637695, 0.22494573891162872, 0.0898934006690979, 0.3560184836387634, 0.3662516176700592, 0.3444954454898834, 0.352985680103302, -0.5696244239807129, -0.17283174395561218, -0.2674589455127716, -0.20145481824874878, -0.16206039488315582, 0.21016211807727814, 0.4043412208557129, -0.14863504469394684, -0.35277318954467773, -0.19107210636138916, -0.3618529736995697, -0.35886767506599426, 0.02908671833574772, 0.09304118901491165, -0.07253779470920563, 0.25191864371299744, 0.1886095553636551, -0.30381497740745544, -0.08392636477947235, 0.15536612272262573, 0.0458182618021965, 0.29435229301452637, -0.19238364696502686, -0.08159522712230682, 0.21533744037151337, -0.6309293508529663, 0.22276116907596588, -0.037912704050540924, 0.11695925891399384, 0.16193130612373352, -0.17003333568572998, 0.1252889335155487, -0.17055024206638336, 0.580747127532959, -0.11232762783765793, 0.16992837190628052, 0.1476457566022873, -0.40989986062049866, -0.7131531238555908, -0.05163364112377167, 0.034765228629112244, 0.02486630529165268, -0.01768597774207592, 0.2725594639778137, -0.3793591856956482, -0.31047362089157104, 0.04334012418985367, 0.30092716217041016, -0.17839516699314117, -0.10843979567289352, -0.0232587531208992, -0.4025122821331024, -0.27941104769706726, -0.2820470929145813, -0.0776204764842987, 0.1504594087600708, -0.006785590201616287, 0.037387415766716, -0.09085707366466522, -0.007890984416007996, 0.10377885401248932, -0.10303648561239243, 0.24245837330818176, -0.1649979203939438, 0.31372931599617004, -0.04483029618859291, 0.1410229206085205, -0.06101808696985245, 0.6859374046325684, -0.31007441878318787, 0.1228860467672348, 0.03942256420850754, 0.020434074103832245, -0.3341807425022125, 0.7841882109642029, 0.16525836288928986, -0.31352168321609497, 0.03726029396057129, -0.05202918499708176, -0.29703161120414734, 0.09569840878248215, -0.07836645096540451, -0.1455537974834442, -0.23810359835624695, -0.3466971218585968, 0.6459760069847107, 0.23433220386505127, -0.29738566279411316, 0.6701779365539551, 0.08579309284687042, -0.3283314108848572, 0.4203900992870331, 0.040865153074264526, 0.9755067825317383, -0.003978803753852844, 0.22600284218788147, 0.2934553623199463, -0.022992946207523346, -0.03399975970387459, -0.18912307918071747, -0.10328904539346695, 0.039391838014125824, -0.3672977685928345, -0.03829073905944824, -0.18773500621318817, 0.2263718694448471, 0.3532986044883728, 0.16856379806995392, 0.31093889474868774, 0.15709838271141052, 0.3089601397514343, -0.12907734513282776, 0.08994275331497192, -0.3877938687801361, -0.24306364357471466, -0.4327307939529419, -0.002020556479692459, 0.0082022026181221, 0.18804022669792175, 0.013886585831642151, 0.21338720619678497, -0.1697424352169037, -0.22037753462791443, -0.12109292298555374, -0.1417301893234253, 0.026527244597673416, 0.3460829555988312, -0.21300505101680756, -0.40211915969848633, -0.21428793668746948, 0.11348246783018112, 0.08370000869035721, -0.1448996365070343, -0.12691161036491394, 0.16971886157989502, -0.08133074641227722, 0.4455009996891022, 0.024225499480962753, -0.21294084191322327, 0.42841842770576477, -0.19551542401313782, -0.0412910059094429, -0.13473159074783325, -0.4455706477165222, -0.5644141435623169, 0.13475748896598816, 0.24159258604049683, 0.5597785711288452, -0.28064313530921936, -0.3790653347969055, 0.34312883019447327, 0.1542186290025711, -0.22867369651794434, -0.05685782432556152, 0.22119085490703583, 0.24539430439472198, 0.5932288765907288, -0.14748512208461761, -0.23343682289123535, -0.12461596727371216, 0.40505251288414, 0.09213094413280487, -0.24902085959911346, 0.08837950229644775, -0.23669399321079254, -0.13632139563560486, -0.001020975410938263, 0.3587977886199951, 0.23417671024799347, -0.3940284252166748, 0.3805065155029297, -0.3087908625602722, 0.0747675895690918, 0.048306480050086975, 0.30433952808380127, 0.2945566177368164, 0.21475568413734436, -0.1109560877084732, -0.14145398139953613, -0.0040330663323402405, 0.3404378294944763, 0.4602969288825989, 0.2584459185600281, -0.020617999136447906, -0.3066021800041199, -0.08267922699451447, -0.03645549714565277, -0.13623693585395813, 0.2772713005542755, 0.2048203945159912, 0.12950477004051208, -0.01269270945340395, 0.28951942920684814, 0.15891069173812866, -0.06930700689554214, -0.17662349343299866, -0.04832348972558975, -0.38283610343933105, -0.03335319459438324, -0.0869334489107132, 0.29906654357910156, -0.06090366840362549, -0.48081472516059875, 0.030022546648979187, -0.34054338932037354, 0.23444589972496033, -0.20543387532234192, 0.37824422121047974, 0.2396744191646576, -0.06616126000881195, -0.4458828866481781, 0.31195977330207825, 0.29688945412635803, 0.029432110488414764, 0.5642827153205872, -0.13181744515895844, 0.4767089784145355, 0.044029708951711655, 0.34776580333709717, 0.1770898997783661, -0.2132095992565155, -0.005414940416812897, -0.01970449835062027, 0.21214492619037628, 0.21366359293460846, 0.29103243350982666, -0.10582117736339569, 0.15173621475696564, 0.21585479378700256, 0.2578215003013611, 0.25964927673339844, -0.10192722827196121, -0.09471546858549118, -0.0028700754046440125, 0.04071357846260071, 0.2588650584220886, -0.2688539922237396, 0.18034197390079498, -0.12575305998325348, -0.09160934388637543, 0.058508336544036865, 0.21235597133636475, 0.21195542812347412, -0.28418436646461487, 0.1093093752861023, 0.8044118881225586, 0.08410415798425674, 0.08459332585334778, 0.44756433367729187, -0.16359448432922363, 0.20964759588241577, -0.10775052011013031, -0.009151002392172813, 0.16710305213928223, 0.2410728931427002, 0.06089723855257034, 0.3626422584056854, 0.10256471484899521, 0.4690669775009155, -0.0866381973028183, -0.5324938297271729, 0.2842884361743927, 0.18179279565811157, -0.11430089175701141, 0.13693027198314667, 0.049732085317373276, -0.1562911719083786, -0.2749572694301605, -0.18513721227645874, -0.16528263688087463, 0.38377833366394043, 0.14256668090820312, -0.3014894127845764, 0.05472603440284729, -0.27622589468955994, 0.26987534761428833, 0.41238266229629517, -0.3443896770477295, -0.3067435026168823, 0.07827109098434448, 0.13518884778022766, -0.008929844945669174, 0.018381839618086815, 0.02986784279346466, -0.42218226194381714, 0.04163992404937744, -0.05640029534697533, 0.22491641342639923, 0.09229204058647156, -0.06862546503543854, 0.28688472509384155, 0.26706352829933167, 0.12910005450248718, 0.2531140148639679, 0.028630200773477554, -0.01194065622985363, 0.1566733419895172, 0.0033931657671928406, -0.12889569997787476, 0.16386188566684723, -0.09188412129878998, 0.16430462896823883, 0.28696542978286743, 0.03217895328998566, -0.03634845092892647, -0.08232435584068298, -0.16035465896129608, 0.14700958132743835, -0.45158523321151733, 0.2632688581943512, -0.08577591180801392, -0.07199491560459137, 0.22806744277477264, 0.07850031554698944, 0.05721312761306763, -0.016142936423420906, 0.2648847699165344, -0.31357359886169434, 0.04171723499894142, 0.1137491911649704, -0.00323638878762722, 0.09814948588609695, 0.43192896246910095, 0.06598879396915436, 0.030898844823241234, -0.06143637001514435, -0.20660489797592163, -0.4142783582210541, -0.13517983257770538, 0.19892753660678864, 0.15330171585083008, 0.003094639629125595, 0.20834234356880188, 0.03688875213265419, 0.3355582058429718, 0.3024715781211853, -0.017208252102136612, 0.07378353178501129, 0.15776266157627106, -0.04332701861858368, -0.0601927824318409, 0.23200450837612152, 0.22202570736408234, -0.17493420839309692, -0.6308372616767883, 0.17235705256462097, 0.032765477895736694, -0.12867218255996704, -0.10430413484573364, -0.04236710071563721, 0.2241421490907669, 0.04110502824187279, 0.41181814670562744, 0.22084735333919525, 0.07546202838420868, 0.17557141184806824, -0.2129606157541275, -0.05681672692298889, -0.1574045568704605, -0.12335574626922607, 0.02290593460202217, -0.2079986333847046, 0.3315117061138153, -0.32099759578704834, 0.05967274308204651, -0.09274100512266159, 0.3416063189506531, -0.19266566634178162, 0.21800631284713745, -0.25945091247558594, -0.3989710211753845, -0.1054694727063179, -0.157205730676651, 0.24979856610298157, 0.20164409279823303, -0.08766418695449829, 0.20835070312023163, -0.27327316999435425, -0.13293646275997162, 0.4484056234359741, -0.32624000310897827, 0.029813751578330994, -0.1685696691274643, 0.22113125026226044, 0.15942279994487762, -0.048719704151153564, -0.4399215281009674, -0.31573742628097534, 0.24576205015182495, -0.16477349400520325, -0.07120586931705475, 0.2942248284816742, -0.0805116593837738, -0.11408112198114395, 0.04335826635360718, 0.2530094087123871, -0.1480507254600525, -0.36440742015838623, -0.09654431790113449, -0.19270405173301697 ]
https://github.com/huggingface/datasets/issues/5609
@mjamroz I assume your CSV file stores image file paths. This means `save_to_disk` needs to embed the image bytes resulting in a much bigger Arrow file (than the initial one). Maybe specifying `num_shards` to make the Arrow files smaller can help (large Arrow files on some systems take a long time to load).
`load_from_disk` vs `load_dataset` performance.
### Describe the bug I have downloaded `openwebtext` (~12GB) and filtered out a small amount of junk (it's still huge). Now, I would like to use this filtered version for future work. It seems I have two choices: 1. Use `load_dataset` each time, relying on the cache mechanism, and re-run my filtering. 2. `save_to_disk` and then use `load_from_disk` to load the filtered version. The performance of these two approaches is wildly different: * Using `load_dataset` takes about 20 seconds to load the dataset, and a few seconds to re-filter (thanks to the brilliant filter/map caching) * Using `load_from_disk` takes 14 minutes! And the second time I tried, the session just crashed (on a machine with 32GB of RAM) I don't know if you'd call this a bug, but it seems like there shouldn't need to be two methods to load from disk, or that they should not take such wildly different amounts of time, or that one should not crash. Or maybe that the docs could offer some guidance about when to pick which method and why two methods exist, or just how do most people do it? Something I couldn't work out from reading the docs was this: can I modify a dataset from the hub, save it (locally) and use `load_dataset` to load it? This [post seemed to suggest that the answer is no](https://discuss.huggingface.co/t/save-and-load-datasets/9260). ### Steps to reproduce the bug See above ### Expected behavior Load times should be about the same. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
53
`load_from_disk` vs `load_dataset` performance. ### Describe the bug I have downloaded `openwebtext` (~12GB) and filtered out a small amount of junk (it's still huge). Now, I would like to use this filtered version for future work. It seems I have two choices: 1. Use `load_dataset` each time, relying on the cache mechanism, and re-run my filtering. 2. `save_to_disk` and then use `load_from_disk` to load the filtered version. The performance of these two approaches is wildly different: * Using `load_dataset` takes about 20 seconds to load the dataset, and a few seconds to re-filter (thanks to the brilliant filter/map caching) * Using `load_from_disk` takes 14 minutes! And the second time I tried, the session just crashed (on a machine with 32GB of RAM) I don't know if you'd call this a bug, but it seems like there shouldn't need to be two methods to load from disk, or that they should not take such wildly different amounts of time, or that one should not crash. Or maybe that the docs could offer some guidance about when to pick which method and why two methods exist, or just how do most people do it? Something I couldn't work out from reading the docs was this: can I modify a dataset from the hub, save it (locally) and use `load_dataset` to load it? This [post seemed to suggest that the answer is no](https://discuss.huggingface.co/t/save-and-load-datasets/9260). ### Steps to reproduce the bug See above ### Expected behavior Load times should be about the same. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 @mjamroz I assume your CSV file stores image file paths. This means `save_to_disk` needs to embed the image bytes resulting in a much bigger Arrow file (than the initial one). Maybe specifying `num_shards` to make the Arrow files smaller can help (large Arrow files on some systems take a long time to load).
[ -0.2890034317970276, -0.23153084516525269, -0.033875320106744766, 0.269248366355896, -0.11195113509893417, -0.013597823679447174, 0.43241366744041443, 0.08034706115722656, 0.4906601905822754, 0.027058865875005722, -0.1185513362288475, 0.11561432480812073, 0.09376581013202667, -0.01171865314245224, 0.10815010964870453, 0.21894356608390808, 0.32320934534072876, -0.04099391773343086, -0.03841789811849594, -0.06557347625494003, -0.1423407942056656, -0.08684246987104416, -0.08239099383354187, -0.19313670694828033, 0.03622258082032204, 0.02044045366346836, -0.03985380753874779, 0.4577237665653229, 0.07773394137620926, -0.13341623544692993, 0.4835425019264221, 0.12454397976398468, -0.046623826026916504, 0.4328361749649048, -0.00012405957386363298, 0.16424480080604553, 0.02581057697534561, -0.04533034563064575, -0.1842409074306488, -0.02685481309890747, -0.10709510743618011, -0.1877238154411316, 0.014613017439842224, -0.13803036510944366, 0.20696742832660675, 0.25657227635383606, -0.0593920573592186, -0.4015033543109894, 0.40855613350868225, 0.06429530680179596, 0.061963070183992386, 0.44744735956192017, -0.3505052328109741, 0.046348102390766144, 0.2545366585254669, 0.024415092542767525, -0.1916438341140747, 0.17695191502571106, 0.46028703451156616, 0.17622226476669312, -0.26132047176361084, 0.10679088532924652, -0.36081647872924805, 0.08026610314846039, 0.43959224224090576, 0.19494307041168213, -0.18989267945289612, -0.05107424035668373, 0.12517011165618896, 0.20262598991394043, 0.6142909526824951, 0.05491000786423683, -0.40273377299308777, -0.4055297374725342, -0.4133974313735962, -0.17084340751171112, 0.39501941204071045, 0.05780202895402908, -0.08567541837692261, 0.27376267313957214, -0.42847251892089844, -0.2543543577194214, -0.04817310720682144, 0.09830822050571442, -0.21421654522418976, -0.14790555834770203, -0.12809471786022186, 0.2511949837207794, 0.19939640164375305, 0.31211015582084656, 0.41182196140289307, -0.4728368818759918, 0.14632514119148254, 0.03898843750357628, -0.1362631469964981, -0.0016283094882965088, 0.21671245992183685, 0.15143990516662598, -0.12719212472438812, 0.42375966906547546, 0.4771609902381897, -0.10289803147315979, -0.22012154757976532, -0.027752991765737534, 0.21369218826293945, 0.3247152864933014, 0.08921301364898682, -0.13682274520397186, 0.4186388850212097, -0.17921726405620575, -0.07565837353467941, -0.028812555596232414, 0.23526062071323395, -0.15617862343788147, 0.3277055621147156, -0.34117743372917175, 0.14850395917892456, -0.2474411129951477, -0.37499794363975525, -0.1615850180387497, 0.2772648334503174, -0.22595955431461334, 0.07008028030395508, 0.19196610152721405, -0.10411833226680756, 0.2287013679742813, 0.154634028673172, -0.07781049609184265, -0.23644745349884033, -0.06842321157455444, -0.1516450047492981, 0.03659175708889961, -0.07918530702590942, 0.27243757247924805, 0.17205330729484558, -0.42496374249458313, 0.25486141443252563, -0.05659668147563934, -0.15031200647354126, 0.024860002100467682, -0.23880010843276978, -0.2116517722606659, 0.1327308714389801, 0.2530195116996765, -0.14036008715629578, 0.15606826543807983, -0.05086565017700195, -0.081714928150177, -0.36177754402160645, 0.3737865686416626, -0.35659924149513245, -0.5505623817443848, 0.2519509196281433, -0.04357825964689255, -0.19317451119422913, -0.09784112870693207, -0.4310024380683899, 0.2155739665031433, 0.016727805137634277, -0.1141815111041069, -0.10943501442670822, 0.23680956661701202, -0.43003928661346436, -0.34688398241996765, 0.1787930428981781, 0.4497120678424835, -0.589197039604187, 0.1514652520418167, -0.1375434398651123, 0.13328157365322113, -0.11828739941120148, 0.33800506591796875, -0.43776652216911316, 0.39568445086479187, -0.03109011985361576, 0.09955042600631714, 0.37431585788726807, -0.6582956910133362, -0.6283472776412964, 0.37397271394729614, 0.14274603128433228, 0.2533859610557556, 0.10304507613182068, 0.15058249235153198, 0.34953686594963074, -0.5131209492683411, 0.08700507879257202, 0.42136675119400024, -0.08556701987981796, 0.15121842920780182, -0.28128597140312195, -0.35855674743652344, 0.283732533454895, 0.07699050009250641, -0.2019203007221222, 0.020776277408003807, 0.03375890105962753, 0.011245187371969223, 0.1002785861492157, 0.049133770167827606, -0.10869064927101135, 0.044315919280052185, 0.01876961812376976, -0.1092500388622284, -0.27836108207702637, 0.04444874823093414, -0.5387828946113586, 0.25218287110328674, 0.21694335341453552, -0.18343092501163483, 0.37309131026268005, 0.038281552493572235, -0.2764446437358856, -0.1294579803943634, -0.0078022293746471405, -0.12139631807804108, -0.15288180112838745, 0.0344819538295269, 0.1864999383687973, -0.2448711395263672, -0.28507381677627563, 0.5875180959701538, -0.04874353110790253, 0.09949563443660736, -0.26625603437423706, 0.35196298360824585, 0.17188411951065063, -0.017871132120490074, -0.1436798870563507, -0.35175174474716187, -0.002098768949508667, -0.17299413681030273, -0.2068713903427124, 0.6806103587150574, -0.0394645594060421, 0.4780690371990204, -0.16290581226348877, 0.10548781603574753, 0.3233623206615448, 0.22163358330726624, 0.2950150668621063, -0.06401932239532471, 0.3024776577949524, -0.09319193661212921, -0.4630623757839203, 0.04668428376317024, -0.018442871049046516, 0.16813963651657104, 0.0896422490477562, -0.3686596751213074, -0.05066487193107605, 0.019762657582759857, -0.062216866761446, 0.028676167130470276, -0.039566636085510254, 0.12164098024368286, 0.2459043562412262, 0.035956256091594696, -0.0539974719285965, 0.1614387184381485, 0.5171104073524475, -0.08599994331598282, -0.12399217486381531, 0.20277908444404602, 0.11422909796237946, -0.3460236191749573, 0.17758773267269135, 0.0787782296538353, 0.7742658853530884, 0.03770895674824715, 0.0778818354010582, -0.03694676607847214, -0.2045755237340927, -0.091665118932724, 0.37537238001823425, 0.044466398656368256, 0.3390103578567505, 0.007682880386710167, 0.0013146176934242249, 0.0460972897708416, -0.31998682022094727, -0.0323270820081234, -0.15892302989959717, -0.12294755131006241, -0.32407402992248535, 0.04823193699121475, -0.24897757172584534, 0.1736770123243332, 0.02600686624646187, 0.20832081139087677, -0.12376277148723602, -0.13542214035987854, -0.16768932342529297, 0.6375998258590698, -0.2226271778345108, -0.19137722253799438, -0.1280554085969925, 0.5961546897888184, -0.18608105182647705, -0.013947956264019012, -0.11920790374279022, 0.12915901839733124, -0.26245105266571045, -0.0856848955154419, 0.3043442964553833, 0.05159369111061096, 0.41248205304145813, -0.16624191403388977, -0.013603009283542633, -0.08896170556545258, -0.1599428504705429, 0.011105095967650414, 0.04966820031404495, 0.4091126024723053, -0.035920727998018265, 0.2784920930862427, -0.24831601977348328, -0.23570549488067627, 0.08994227647781372, -0.2598852813243866, -0.12002700567245483, -0.15498130023479462, 0.15325485169887543, 0.03956456109881401, 0.08857675641775131, -0.3327103853225708, -0.25219234824180603, -0.3164069950580597, -0.19316020607948303, -0.132376030087471, 0.15145814418792725, -0.006283601745963097, -0.03741639107465744, -0.10078835487365723, 0.30207106471061707, 0.19264835119247437, -0.25108522176742554, -0.6491934657096863, 0.3381873071193695, -0.12154726684093475, -0.40010207891464233, -0.10346771031618118, 0.18567608296871185, -0.11503978073596954, 0.2808692753314972, -0.580031156539917, -0.17325563728809357, -0.16624809801578522, -0.19368351995944977, 0.13255184888839722, 0.25335922837257385, 0.4233984649181366, -0.035975392907857895, 0.029112227261066437, -0.16464439034461975, -0.5528068542480469, 0.06558108329772949, 0.36281484365463257, 0.13279321789741516, 0.22490446269512177, 0.17042994499206543, 0.14180207252502441, 0.28248533606529236, 0.036384135484695435, 0.3043324649333954, 0.3256209194660187, 0.3919987678527832, 0.38137736916542053, -0.5378556251525879, -0.20322951674461365, -0.16661371290683746, -0.32599756121635437, -0.1412079632282257, 0.33470556139945984, 0.31137025356292725, -0.1637154370546341, -0.37268972396850586, -0.20627939701080322, -0.37636175751686096, -0.38876837491989136, 0.07473089545965195, 0.054508306086063385, -0.10048415511846542, 0.261355996131897, 0.16113120317459106, -0.2887353301048279, -0.09436190128326416, 0.0961102545261383, 0.12583930790424347, 0.3163834810256958, -0.211699977517128, 0.037764713168144226, 0.16136913001537323, -0.6905099749565125, 0.2819215655326843, -0.08274015784263611, 0.10152631998062134, 0.17073455452919006, -0.13487277925014496, 0.17578130960464478, -0.18299272656440735, 0.6923949122428894, -0.08667655289173126, 0.17060603201389313, 0.06420532613992691, -0.39549005031585693, -0.5345118045806885, -0.026697970926761627, 0.022680044174194336, 0.017927397042512894, 0.002080518752336502, 0.28563860058784485, -0.3181684613227844, -0.26877307891845703, 0.000677039846777916, 0.33537328243255615, -0.212147057056427, -0.10179144144058228, 0.017523787915706635, -0.3779485821723938, -0.28780829906463623, -0.25648921728134155, -0.07565901428461075, 0.16931959986686707, -0.018984097987413406, 0.0581522136926651, -0.028723523020744324, -0.13231122493743896, 0.22002530097961426, -0.02228609472513199, 0.16270717978477478, -0.0485689714550972, 0.2565150260925293, -0.04100902006030083, 0.24503551423549652, -0.07332252711057663, 0.6389102339744568, -0.2153940498828888, -0.020350303500890732, 0.020540345460176468, -0.03687543421983719, -0.22621314227581024, 0.8362581133842468, 0.09313802421092987, -0.19342665374279022, 0.023899491876363754, -0.015332646667957306, -0.28446635603904724, 0.023453380912542343, -0.01025702990591526, -0.034832097589969635, -0.291456013917923, -0.31622278690338135, 0.5668888688087463, 0.11333093047142029, -0.26709556579589844, 0.5081748962402344, 0.19240815937519073, -0.3638906180858612, 0.42509716749191284, 0.043490126729011536, 1.051208257675171, 0.052991997450590134, 0.21615399420261383, 0.31100523471832275, -0.019554853439331055, 0.1500045359134674, -0.2295663058757782, -0.030494097620248795, 0.14220832288265228, -0.46339231729507446, -0.09106490015983582, -0.13179920613765717, 0.31586697697639465, 0.35875168442726135, 0.10805342346429825, 0.3293062746524811, 0.13597562909126282, 0.43229126930236816, -0.15854613482952118, 0.07824164628982544, -0.3100515305995941, -0.3141483962535858, -0.4589996039867401, 0.002987135201692581, 0.0782887414097786, 0.16343510150909424, 0.030495088547468185, 0.1931580752134323, -0.14031697809696198, -0.23249222338199615, -0.10056476294994354, -0.1767037808895111, 0.14358612895011902, 0.29301023483276367, -0.2868990898132324, -0.337741494178772, -0.06617727875709534, 0.09639334678649902, 0.1501730978488922, -0.13727730512619019, -0.1225685179233551, 0.06169292330741882, -0.10938476026058197, 0.5074667930603027, -0.03499419242143631, -0.2763347327709198, 0.437587708234787, -0.18210943043231964, -0.05744120478630066, -0.030736371874809265, -0.39329034090042114, -0.5683103799819946, 0.259596049785614, 0.2364976406097412, 0.36923420429229736, -0.2818278968334198, -0.35235920548439026, 0.32410770654678345, 0.10539043694734573, -0.23636528849601746, -0.05401643365621567, 0.13131722807884216, 0.2636490762233734, 0.5819799900054932, -0.1440775990486145, -0.19672858715057373, -0.17264503240585327, 0.35036030411720276, 0.12323184311389923, -0.15565481781959534, 0.06661822646856308, -0.184728741645813, -0.19527623057365417, -0.01442381739616394, 0.3643215298652649, 0.24814575910568237, -0.40075451135635376, 0.3829042911529541, -0.2532167434692383, 0.12233833968639374, -0.04086306318640709, 0.3283880949020386, 0.3658505976200104, 0.23953621089458466, -0.06997346878051758, -0.24980950355529785, -0.018288370221853256, 0.26325753331184387, 0.454313188791275, 0.23118221759796143, 0.03388994187116623, -0.20418024063110352, -0.11472385376691818, 0.045066170394420624, -0.1515170782804489, 0.21489933133125305, 0.23647943139076233, 0.11028963327407837, 0.083259716629982, 0.2923065423965454, 0.16543439030647278, -0.11096597462892532, -0.14928728342056274, -0.024894610047340393, -0.39644473791122437, -0.02945098839700222, -0.13509559631347656, 0.285112202167511, -0.10398142039775848, -0.44518324732780457, 0.08163778483867645, -0.32258594036102295, 0.17972992360591888, -0.23577190935611725, 0.4122981131076813, 0.20793402194976807, -0.05129122734069824, -0.4856715500354767, 0.14731843769550323, 0.23205268383026123, -0.04831938073039055, 0.4749273955821991, -0.19083274900913239, 0.52564537525177, 0.07172755897045135, 0.3425765335559845, 0.10417963564395905, -0.2114666998386383, -0.031332071870565414, 0.029747728258371353, 0.051898762583732605, 0.13031010329723358, 0.3399290442466736, -0.053970735520124435, 0.14584138989448547, 0.26884356141090393, 0.2745337188243866, 0.289253294467926, -0.045440975576639175, -0.0727848932147026, 0.026985354721546173, 0.02615923434495926, 0.11618310213088989, -0.17734718322753906, 0.15756285190582275, -0.16082198917865753, -0.0434437058866024, 0.07212746143341064, 0.15593275427818298, 0.2642122805118561, -0.28223538398742676, 0.07581105083227158, 0.7945429682731628, 0.1299840360879898, 0.16678538918495178, 0.4374624788761139, -0.15141451358795166, 0.32100996375083923, 0.013335732743144035, 0.0344410203397274, 0.1252036839723587, 0.2720206081867218, 0.042751237750053406, 0.25654861330986023, 0.07024167478084564, 0.486095130443573, -0.19236385822296143, -0.639465868473053, 0.4604680836200714, 0.3255246877670288, -0.2151728868484497, 0.14291545748710632, 0.1431989222764969, -0.0808870941400528, -0.33714067935943604, -0.22882482409477234, -0.2096623033285141, 0.39395871758461, 0.12532183527946472, -0.17929455637931824, 0.05921478569507599, -0.2736849784851074, 0.24980634450912476, 0.45330536365509033, -0.2960699796676636, -0.3627673089504242, 0.1577097773551941, 0.09965518116950989, -0.06349334120750427, 0.017865749076008797, 0.015700029209256172, -0.55170077085495, 0.10303446650505066, 0.006183810532093048, 0.18095113337039948, 0.03316185623407364, -0.052203334867954254, 0.31224656105041504, 0.19443555176258087, 0.08256866037845612, 0.23784008622169495, 0.1742410510778427, 0.034568239003419876, 0.21836283802986145, -0.024447690695524216, -0.061718303710222244, 0.09684520214796066, -0.06792773306369781, 0.10031865537166595, 0.2598896026611328, 0.03062276542186737, -0.009029252454638481, 0.018109403550624847, -0.051319967955350876, 0.07680340111255646, -0.4961727261543274, 0.07530950009822845, -0.019930560141801834, -0.05947006493806839, 0.17519648373126984, 0.04159602150321007, 0.12435341626405716, -0.08559980988502502, 0.2082524597644806, -0.36747047305107117, 0.0713491290807724, 0.1299750953912735, 0.006607625633478165, 0.1059839129447937, 0.39181292057037354, 0.03200078755617142, -0.08905159682035446, -0.09900414198637009, -0.09085658937692642, -0.5084213018417358, -0.16799691319465637, 0.25715649127960205, 0.13759315013885498, -0.06675336509943008, 0.19650670886039734, 0.07643112540245056, 0.3034055233001709, 0.3362005352973938, -0.04456370323896408, 0.11341588199138641, 0.05187907814979553, -0.027978606522083282, -0.0716809406876564, 0.19827917218208313, 0.2354842573404312, -0.24956850707530975, -0.6243058443069458, 0.2611675262451172, 0.07224768400192261, -0.11258892714977264, -0.17227226495742798, 0.08232493698596954, 0.12846332788467407, -0.03394625335931778, 0.41765058040618896, 0.15696363151073456, 0.13251331448554993, 0.08816242218017578, -0.19325195252895355, -0.05903922766447067, -0.07923653721809387, -0.1259673684835434, -0.010774388909339905, -0.09650252759456635, 0.3143603205680847, -0.2933593988418579, 0.03274756669998169, -0.042176831513643265, 0.455117791891098, -0.11686524748802185, 0.15652517974376678, -0.30452418327331543, -0.2777628004550934, -0.15832532942295074, -0.18268771469593048, 0.3170609474182129, 0.193318709731102, -0.18594622611999512, 0.12992772459983826, -0.25325337052345276, -0.1479732096195221, 0.4234715700149536, -0.3049528896808624, 0.013504266738891602, -0.1585056036710739, 0.293326735496521, 0.17582425475120544, -0.0498456135392189, -0.36994248628616333, -0.30634206533432007, 0.16470709443092346, -0.18524330854415894, -0.16058102250099182, 0.33404114842414856, -0.1807929128408432, -0.18933802843093872, 0.04232190549373627, 0.28569528460502625, -0.08930299431085587, -0.4284886121749878, -0.07323630899190903, -0.31498241424560547 ]
https://github.com/huggingface/datasets/issues/5608
Hi! > naming convention of mp3 files Yes, this could be the problem. MP3 files should end with `.mp3`/`.MP3` to be recognized as audio files. If the file names are not the culprit, can you paste the audio folder's directory structure to help us reproduce the error (e.g., by running the `tree "x"` command)?
audiofolder only creates dataset of 13 rows (files) when the data folder it's reading from has 20,000 mp3 files.
### Describe the bug x = load_dataset("audiofolder", data_dir="x") When running this, x is a dataset of 13 rows (files) when it should be 20,000 rows (files) as the data_dir "x" has 20,000 mp3 files. Does anyone know what could possibly cause this (naming convention of mp3 files, etc.) ### Steps to reproduce the bug x = load_dataset("audiofolder", data_dir="x") ### Expected behavior x = load_dataset("audiofolder", data_dir="x") should create a dataset of 20,000 rows (files). ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-3.10.0-1160.80.1.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
54
audiofolder only creates dataset of 13 rows (files) when the data folder it's reading from has 20,000 mp3 files. ### Describe the bug x = load_dataset("audiofolder", data_dir="x") When running this, x is a dataset of 13 rows (files) when it should be 20,000 rows (files) as the data_dir "x" has 20,000 mp3 files. Does anyone know what could possibly cause this (naming convention of mp3 files, etc.) ### Steps to reproduce the bug x = load_dataset("audiofolder", data_dir="x") ### Expected behavior x = load_dataset("audiofolder", data_dir="x") should create a dataset of 20,000 rows (files). ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-3.10.0-1160.80.1.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 Hi! > naming convention of mp3 files Yes, this could be the problem. MP3 files should end with `.mp3`/`.MP3` to be recognized as audio files. If the file names are not the culprit, can you paste the audio folder's directory structure to help us reproduce the error (e.g., by running the `tree "x"` command)?
[ -0.22282227873802185, 0.2703629732131958, -0.01823895424604416, 0.6708595156669617, 0.31988656520843506, -0.08301010727882385, 0.42038437724113464, 0.09908431768417358, -0.06525024771690369, 0.375069260597229, 0.04306960105895996, 0.20323845744132996, -0.2192631959915161, -0.12517456710338593, -0.06980392336845398, -0.01018720306456089, 0.1949259340763092, 0.09287509322166443, -0.13794240355491638, -0.12313683331012726, -0.43703511357307434, 0.0968674048781395, -0.2378470003604889, -0.1262601912021637, -0.478698194026947, -0.016326729208230972, -0.12456877529621124, 0.17138326168060303, -0.49403637647628784, -0.18967247009277344, 0.2144656628370285, -0.17595772445201874, 0.1480952352285385, 0.7753248810768127, -0.00011590660142246634, -0.28464555740356445, 0.44014036655426025, -0.1277087926864624, -0.2549060881137848, -0.12698906660079956, -0.4586237072944641, 0.00028588995337486267, -0.035788968205451965, -0.04777324199676514, 0.19384093582630157, -0.2981659173965454, -0.09058433771133423, -0.15014740824699402, -0.15442979335784912, 0.3691096603870392, 0.1760522723197937, 0.009935788810253143, 0.19692209362983704, 0.04196283966302872, 0.4627547264099121, 0.2823791205883026, -0.18236182630062103, 0.46651962399482727, 0.18594443798065186, -0.015564005821943283, -0.08029462397098541, -0.04005884379148483, 0.1693262755870819, 0.3213345408439636, 0.4785466194152832, 0.2898353934288025, -0.024709153920412064, -0.4501544237136841, 0.034342486411333084, 0.2622336745262146, 0.8999099731445312, -0.31132084131240845, -0.19770920276641846, -0.2615784704685211, 0.1269317865371704, -0.2789527177810669, 0.1545354574918747, 0.41714727878570557, -0.19923953711986542, -0.18445073068141937, 0.030917558819055557, 0.16965755820274353, -0.1346491575241089, 0.2497868835926056, 0.08576257526874542, -0.033991292119026184, -0.0429643951356411, 0.029034778475761414, 0.2714749872684479, -0.15313197672367096, 0.29560232162475586, -0.42382603883743286, -0.08730591833591461, 0.32047712802886963, -0.3713158965110779, 0.10579990595579147, 0.06680378317832947, 0.2083645462989807, 0.06713654100894928, 0.02346203848719597, 0.1384543478488922, -0.2635912001132965, -0.006356671452522278, 0.1670895665884018, 0.3422194719314575, 0.167080357670784, -0.11154566705226898, 0.15710705518722534, 0.2048058956861496, 0.0012668631970882416, 0.07082273066043854, -0.06847153604030609, -0.22268716990947723, -0.09353756904602051, 0.07939799129962921, -0.2359071969985962, 0.13588416576385498, -0.1329115927219391, -0.14102818071842194, 0.14085331559181213, -0.24317418038845062, -0.1864379495382309, 0.0814879983663559, 0.11225752532482147, 0.26052311062812805, 0.13379257917404175, -0.07452575117349625, 0.4854828417301178, -0.08417833596467972, 0.19213485717773438, -0.1016363650560379, 0.0009419061243534088, -0.2339768409729004, -0.21537820994853973, 0.18450891971588135, -0.11787599325180054, 0.18454761803150177, 0.30468255281448364, 0.08141089230775833, -0.4100914001464844, -0.0019297823309898376, -0.34417688846588135, -0.14348822832107544, 0.24550455808639526, 0.11660830676555634, 0.3380734920501709, -0.12738563120365143, -0.10686036944389343, 0.016938164830207825, 0.40158045291900635, -0.26617133617401123, 0.0181911438703537, -0.07223638147115707, 0.1810542345046997, -0.21285638213157654, 0.1312633454799652, -0.46106600761413574, -0.039831340312957764, 0.04367624595761299, -0.2538025677204132, 0.12819750607013702, -0.3202587068080902, 0.008046992123126984, -0.2881419360637665, 0.06658544391393661, 0.39557990431785583, -0.33006203174591064, 0.12480470538139343, -0.20572136342525482, -0.09821612387895584, 0.21448643505573273, 0.22818806767463684, 0.011995192617177963, 0.432563841342926, -0.30207282304763794, 0.17508547008037567, 0.28306153416633606, -0.04433427378535271, -0.44647476077079773, 0.13226667046546936, -0.024805948138237, 0.11787784099578857, 0.2086656242609024, 0.1667005568742752, 0.08881616592407227, -0.08841606974601746, 0.01878279261291027, 0.243553027510643, -0.06464196741580963, 0.15269237756729126, 0.020781680941581726, -0.07895038276910782, 0.1276680827140808, -0.0049474164843559265, -0.20007093250751495, 0.26187995076179504, 0.15342220664024353, -0.0203261561691761, 0.445279061794281, -0.19333887100219727, 0.25143885612487793, 0.1611853539943695, 0.22938770055770874, -0.033588338643312454, 0.026604901999235153, -0.11073270440101624, -0.24139633774757385, 0.014036647975444794, 0.0591089129447937, 0.16867174208164215, 0.10723330080509186, 0.05684193968772888, -0.17919158935546875, -0.13173836469650269, -0.268541544675827, -0.12893417477607727, 0.06605047732591629, 0.3639858663082123, -0.03542217239737511, -0.11236493289470673, 0.027512945234775543, -0.011720379814505577, -0.03930483013391495, 0.07351914048194885, -0.7145112752914429, 0.20499187707901, 0.13584695756435394, -0.30617979168891907, 0.2734305262565613, 0.002186354249715805, 0.14495185017585754, -0.039680950343608856, -0.13559295237064362, 0.32962754368782043, 0.42790186405181885, 0.10283257067203522, -0.19204366207122803, 0.28626590967178345, 0.07446782290935516, 0.16964098811149597, 0.11904777586460114, -0.0043477509170770645, 0.4089498817920685, -0.14149132370948792, -0.29259297251701355, 0.1540018767118454, -0.017961684614419937, 0.18978944420814514, -0.05684391409158707, -0.2944068908691406, 0.2166137397289276, 0.26722875237464905, 0.10498756170272827, 0.21875512599945068, 0.18891222774982452, 0.21521438658237457, 0.3301345109939575, 0.28630053997039795, -0.1810036152601242, -0.12741416692733765, 0.12420313060283661, -0.19651758670806885, 0.06889072060585022, 0.3251778781414032, -0.15651166439056396, -0.2596580982208252, -0.11246251314878464, 0.5829159021377563, 0.6670607924461365, 0.18820740282535553, 0.16816571354866028, -0.12946255505084991, 0.1107247844338417, -0.2126554548740387, 0.20059049129486084, 0.0544738806784153, 0.07368923723697662, 0.41104307770729065, 0.06519190967082977, -0.1486876904964447, -0.30848920345306396, -0.0217527374625206, 0.16336938738822937, 0.5587330460548401, -0.29462912678718567, -0.0855121910572052, -0.0459495410323143, -0.09376014024019241, -0.12240234017372131, -0.2738216817378998, -0.23270653188228607, -0.09991531819105148, -0.176702082157135, 0.37904787063598633, -0.11412841826677322, -0.03232971951365471, -0.027234170585870743, 0.11284860223531723, 0.07658021152019501, 0.002979874610900879, 0.03617434203624725, 0.3834478259086609, -0.10361215472221375, 0.07835160940885544, 0.2214067280292511, 0.30547863245010376, -0.007875312119722366, -0.0657368078827858, 0.11288004368543625, -0.14023597538471222, 0.18125416338443756, 0.12684939801692963, 0.03031303361058235, 0.38527268171310425, 0.02400916814804077, 0.14341384172439575, 0.16493967175483704, -0.4024030566215515, 0.09195523709058762, 0.0014785751700401306, -0.1640545129776001, 0.27701085805892944, 0.17839564383029938, 0.054228320717811584, -0.06854835152626038, -0.2959735095500946, -0.14816328883171082, -0.3910105228424072, 0.08933867514133453, 0.15996289253234863, 0.18751950562000275, 0.06185881420969963, 0.14392323791980743, -0.16319498419761658, 0.04263804852962494, -0.15007512271404266, -0.23588904738426208, -0.5147603750228882, 0.42854073643684387, -0.06748944520950317, -0.21165743470191956, -0.17500847578048706, -0.1841457635164261, -0.1090993583202362, 0.3636031448841095, -0.3128499984741211, 0.05442914739251137, -0.2694995701313019, -0.09062932431697845, -0.015049788169562817, 0.2661810517311096, 0.2689201235771179, -0.0668705552816391, 0.08003614097833633, -0.3924707770347595, -0.06627160310745239, -0.0776437520980835, 0.08398246765136719, 0.39599043130874634, -0.05915683135390282, 0.3153187036514282, -0.3380756974220276, 0.13798941671848297, 0.2257472574710846, 0.21284808218479156, 0.34201788902282715, -0.2248888611793518, 0.5608472228050232, -0.3857925832271576, -0.021329201757907867, 0.2980601489543915, -0.03393664211034775, -0.27421408891677856, 0.44644710421562195, 0.2677809000015259, -0.16348302364349365, -0.04280935972929001, 0.05207677185535431, -0.3016367554664612, -0.12567979097366333, 0.22968937456607819, -0.007963620126247406, 0.24324624240398407, -0.11071769893169403, 0.09466634690761566, 0.1068364828824997, -0.15158861875534058, -0.2542743682861328, 0.016372427344322205, 0.257485032081604, 0.11037188768386841, -0.28645604848861694, 0.15653064846992493, -0.16507190465927124, 0.014779668301343918, 0.17386531829833984, 0.6246906518936157, -0.0712645947933197, 0.021997570991516113, 0.0376797653734684, 0.05727996677160263, 0.6829018592834473, -0.09501801431179047, 0.1419825255870819, -0.03786950558423996, 0.37751317024230957, -0.21059241890907288, 0.04690183699131012, -0.4208819568157196, 0.0054448433220386505, -0.0877530574798584, 0.18043595552444458, -0.3162103593349457, 0.2212168276309967, -0.10244323313236237, 0.6436124444007874, -0.11643145978450775, -0.23174583911895752, -0.33939215540885925, -0.204063281416893, -0.06445584446191788, -0.019410952925682068, 0.02034240961074829, 0.10737036168575287, 0.058611609041690826, -0.030460506677627563, 0.18763719499111176, -0.24536970257759094, 0.15108177065849304, 0.02529311180114746, 0.5154749155044556, -0.031518369913101196, 0.2886848449707031, 0.16724154353141785, -0.334591805934906, 0.6098735332489014, 0.5608904957771301, -0.13102833926677704, -0.03128283843398094, 0.31323498487472534, -0.3890187740325928, 0.32328593730926514, 0.12956967949867249, -0.042952749878168106, 0.056150954216718674, -0.2310992181301117, -0.006439041346311569, -0.35409343242645264, -0.11585228145122528, 0.5697387456893921, -0.006596028804779053, -0.25391536951065063, -0.4980494976043701, 0.42214435338974, -0.13249421119689941, -0.08152426779270172, 0.45216110348701477, 0.21224230527877808, -0.21884053945541382, 0.14332862198352814, -0.3656828999519348, 0.8213536739349365, 0.3929559886455536, 0.08947417885065079, 0.3531173765659332, -0.3143622875213623, 0.10775331407785416, 0.05121447145938873, 0.08846884220838547, -0.294332355260849, -0.31444746255874634, 0.031077265739440918, -0.27708345651626587, 0.06858387589454651, 0.30444151163101196, 0.0736701488494873, 0.3141811192035675, -0.2936672568321228, -0.19060613214969635, 0.022891435772180557, 0.32684826850891113, -0.3499646484851837, -0.11071179807186127, -0.14254437386989594, 0.10563485324382782, -0.060562510043382645, 0.1055477187037468, -0.021559737622737885, 0.10841531306505203, -0.1841806024312973, -0.3648996353149414, -0.3788606822490692, -0.061935316771268845, -0.017921805381774902, -0.18558081984519958, 0.017923032864928246, -0.5355328321456909, -0.04355492815375328, 0.07413844764232635, -0.5217920541763306, 0.25596195459365845, -0.12272468209266663, 0.16368183493614197, -0.192612886428833, 0.47200143337249756, 0.07096301019191742, -0.14311879873275757, 0.002667844295501709, 0.042940959334373474, -0.1162702888250351, -0.25522056221961975, -0.16197609901428223, -0.17670588195323944, -0.11644193530082703, 0.022202173247933388, -0.04407157003879547, -0.3048301339149475, -0.3133380711078644, -0.161452516913414, -0.1573236584663391, -0.1859285831451416, 0.12318219989538193, 0.27297189831733704, -0.2425469607114792, 0.24961866438388824, -0.10897576063871384, -0.21514108777046204, -0.16776719689369202, 0.16220444440841675, 0.12231013178825378, 0.09886953979730606, 0.24006837606430054, 0.1597435623407364, -0.08197825402021408, -0.11430370807647705, 0.48335039615631104, 0.28212353587150574, -0.28168609738349915, 0.2301904559135437, 0.1429550051689148, 0.12175069749355316, -0.07087495923042297, -0.2217555046081543, 0.0463651604950428, -0.051264241337776184, -0.2776467204093933, -0.619731068611145, -0.21945539116859436, 0.22662340104579926, 0.07167577743530273, 0.20818324387073517, -0.30955150723457336, -0.34519386291503906, 0.31715360283851624, -0.02692914754152298, -0.20912638306617737, 0.07781766355037689, -0.05800805613398552, 0.3482986390590668, 0.03452526032924652, 0.028683196753263474, 0.11480020731687546, -0.2708017826080322, 0.02835536003112793, 0.005424376577138901, -0.11907431483268738, -0.10336534678936005, -0.15810269117355347, 0.15167157351970673, 0.2678668797016144, 0.08871017396450043, 0.06155843660235405, -0.27388572692871094, -0.28010767698287964, -0.30830058455467224, -0.06386477500200272, 0.20526494085788727, -0.2252764254808426, -0.22267574071884155, 0.281681090593338, -0.10739479959011078, 0.006925038993358612, 0.10331395268440247, -0.2469201385974884, -0.17595434188842773, 0.09270120412111282, 0.029653815552592278, 0.17539016902446747, -0.06287477165460587, -0.27826792001724243, 0.07269856333732605, -0.12586435675621033, -0.02109074406325817, 0.23910844326019287, -0.18149186670780182, 0.22828713059425354, 0.08393295854330063, 0.5565695762634277, 0.502316415309906, -0.046173401176929474, 0.022960588335990906, 0.24222636222839355, 0.15278278291225433, -0.2440655529499054, -0.3432139754295349, -0.3631887137889862, -0.09942270070314407, -0.009492218494415283, 0.09892313927412033, -0.19819822907447815, -0.348363995552063, -0.27942386269569397, -0.14986398816108704, 0.44612425565719604, -0.03535096347332001, 0.05097626522183418, 0.4496312141418457, -0.31401580572128296, 0.08176720142364502, 0.3329167664051056, -0.13283643126487732, -0.22950449585914612, 0.74671870470047, 0.0014118403196334839, 0.23653946816921234, 0.42234066128730774, -0.3898894190788269, 0.0835646539926529, -0.258394718170166, -0.44431987404823303, 0.3006209135055542, -0.03701058775186539, 0.13735704123973846, 0.1551240086555481, -0.00919586792588234, -0.2832033336162567, 0.27041739225387573, -0.14967206120491028, -0.3880033493041992, -0.19879162311553955, 0.09514501690864563, -0.0006361901760101318, -0.4085037112236023, -0.07181496918201447, -0.03847498819231987, -0.1446361392736435, -0.18944112956523895, 0.028044015169143677, 0.012956644408404827, -0.16175846755504608, -0.4261229634284973, 0.1258937269449234, 0.16098752617835999, -0.06593792140483856, -0.3670429587364197, 0.2669556140899658, 0.08111979067325592, 0.05806369334459305, 0.28019627928733826, 0.25081437826156616, 0.5217005610466003, 0.38793909549713135, 0.17987903952598572, 0.031520090997219086, -0.2041076421737671, -0.045974574983119965, -0.11788502335548401, 0.3244476914405823, 0.23687663674354553, 0.11370480060577393, 0.14730121195316315, 0.17021428048610687, -0.16561220586299896, 0.13132302463054657, 0.3542120158672333, 0.04425215721130371, -0.33190226554870605, 0.2587537169456482, -0.41696158051490784, -0.10916794091463089, -0.09911693632602692, -0.07910522818565369, -0.4896407127380371, 0.07304704189300537, 0.21651995182037354, -0.03134040907025337, 0.12756794691085815, -0.009466409683227539, 0.026646796613931656, -0.2280186265707016, 0.4325842261314392, 0.15968453884124756, 0.10787156224250793, -0.1642928123474121, -0.2671797275543213, -0.8934561014175415, 0.0750170350074768, -0.22454248368740082, -0.020171407610177994, -0.08518776297569275, 0.016517572104930878, 0.1285008043050766, 0.17670540511608124, 0.1678525060415268, 0.500460147857666, -0.23398207128047943, 0.33659660816192627, -0.4026426672935486, -0.13907170295715332, -0.14230144023895264, 0.304919570684433, -0.2767818570137024, -0.5434688925743103, 0.227155402302742, -0.2642550468444824, 0.0551401749253273, 0.03544555604457855, 0.00048182159662246704, -0.21288125216960907, 0.3135080337524414, 0.2213669717311859, 0.25094878673553467, 0.5473340153694153, -0.372918963432312, 0.07809756696224213, -0.4930064082145691, -0.1343764066696167, -0.08245435357093811, 0.11736491322517395, 0.0610802136361599, 0.44573014974594116, -0.1497018188238144, 0.049893032759428024, -0.2748550474643707, 0.09217013418674469, -0.12532909214496613, 0.357149213552475, -0.45351141691207886, 0.1912364661693573, -0.2430816888809204, 0.014066647738218307, 0.12004812061786652, -0.16753816604614258, -0.09215441346168518, -0.15090398490428925, -0.08752094209194183, -0.23265710473060608, 0.34942570328712463, -0.1931818127632141, -0.4714055061340332, -0.2419101744890213, 0.2646215558052063, 0.2843669652938843, 0.019505755975842476, -0.21418100595474243, 0.3183800280094147, 0.33735358715057373, 0.02763352543115616, -0.22084945440292358, 0.04765499383211136, -0.46732044219970703, -0.0754116028547287, 0.11648507416248322, 0.3860149085521698, 0.16306281089782715, -0.34159085154533386, 0.3625248074531555, -0.3185526132583618 ]
https://github.com/huggingface/datasets/issues/5608
Hi! I'm sorry, I don't want to reveal my entire dataset, but here's a snippet (all of the mp3 files below are some of the ones not being recognized by audiofolder. Also, for another dataset, audiofolder loaded zero mp3 files because "train" was in the name of one of the mp3 files. my_dataset β”œβ”€β”€ data β”‚Β Β  β”œβ”€β”€ VHA_Innovation_Stories_-_Day_2-123.mp3 β”‚Β Β  β”œβ”€β”€ VHA_Innovation_Stories_-_Day_2-124.mp3 β”‚Β Β  β”œβ”€β”€ ASSOCIATION_OF_GENERAL_PRACTITIONERS_OF_JAMAICA_NEPHROLOGY_CONFERENCE_-_JULY_3,_2022-93.mp3 β”‚Β Β  β”œβ”€β”€ ASSOCIATION_OF_GENERAL_PRACTITIONERS_OF_JAMAICA_NEPHROLOGY_CONFERENCE_-_JULY_3,_2022-94.mp3 β”‚Β Β  β”œβ”€β”€ ASSOCIATION_OF_GENERAL_PRACTITIONERS_OF_JAMAICA_NEPHROLOGY_CONFERENCE_-_JULY_3,_2022-95.mp3 β”‚Β Β  β”œβ”€β”€ Your_Impact\357\274\232_Neurosurgery_equipment-5.mp3 β”‚Β Β  └── Your_Impact\357\274\232_Neurosurgery_equipment-6.mp3 └── metadata.csv Here's a few of the 13 files recognized by the dataset: British_Heart_Foundation_-_Your_guide_to_a_Coronary_Angiogram,_a_test_for_heart_disease-1.mp3 British_Heart_Foundation_-_Your_guide_to_a_Coronary_Angiogram,_a_test_for_heart_disease-2.mp3 British_Heart_Foundation_-_Your_guide_to_a_Coronary_Angiogram,_a_test_for_heart_disease-3.mp3 IVP_β§Έ_IVU_test_Procedure_for_Kidneys_intravenous_pyelogram_-_medical_radiology_X-ray_ivp-1.mp3 IVP_β§Έ_IVU_test_Procedure_for_Kidneys_intravenous_pyelogram_-_medical_radiology_X-ray_ivp-2.mp3
audiofolder only creates dataset of 13 rows (files) when the data folder it's reading from has 20,000 mp3 files.
### Describe the bug x = load_dataset("audiofolder", data_dir="x") When running this, x is a dataset of 13 rows (files) when it should be 20,000 rows (files) as the data_dir "x" has 20,000 mp3 files. Does anyone know what could possibly cause this (naming convention of mp3 files, etc.) ### Steps to reproduce the bug x = load_dataset("audiofolder", data_dir="x") ### Expected behavior x = load_dataset("audiofolder", data_dir="x") should create a dataset of 20,000 rows (files). ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-3.10.0-1160.80.1.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
94
audiofolder only creates dataset of 13 rows (files) when the data folder it's reading from has 20,000 mp3 files. ### Describe the bug x = load_dataset("audiofolder", data_dir="x") When running this, x is a dataset of 13 rows (files) when it should be 20,000 rows (files) as the data_dir "x" has 20,000 mp3 files. Does anyone know what could possibly cause this (naming convention of mp3 files, etc.) ### Steps to reproduce the bug x = load_dataset("audiofolder", data_dir="x") ### Expected behavior x = load_dataset("audiofolder", data_dir="x") should create a dataset of 20,000 rows (files). ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-3.10.0-1160.80.1.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 Hi! I'm sorry, I don't want to reveal my entire dataset, but here's a snippet (all of the mp3 files below are some of the ones not being recognized by audiofolder. Also, for another dataset, audiofolder loaded zero mp3 files because "train" was in the name of one of the mp3 files. my_dataset β”œβ”€β”€ data β”‚Β Β  β”œβ”€β”€ VHA_Innovation_Stories_-_Day_2-123.mp3 β”‚Β Β  β”œβ”€β”€ VHA_Innovation_Stories_-_Day_2-124.mp3 β”‚Β Β  β”œβ”€β”€ ASSOCIATION_OF_GENERAL_PRACTITIONERS_OF_JAMAICA_NEPHROLOGY_CONFERENCE_-_JULY_3,_2022-93.mp3 β”‚Β Β  β”œβ”€β”€ ASSOCIATION_OF_GENERAL_PRACTITIONERS_OF_JAMAICA_NEPHROLOGY_CONFERENCE_-_JULY_3,_2022-94.mp3 β”‚Β Β  β”œβ”€β”€ ASSOCIATION_OF_GENERAL_PRACTITIONERS_OF_JAMAICA_NEPHROLOGY_CONFERENCE_-_JULY_3,_2022-95.mp3 β”‚Β Β  β”œβ”€β”€ Your_Impact\357\274\232_Neurosurgery_equipment-5.mp3 β”‚Β Β  └── Your_Impact\357\274\232_Neurosurgery_equipment-6.mp3 └── metadata.csv Here's a few of the 13 files recognized by the dataset: British_Heart_Foundation_-_Your_guide_to_a_Coronary_Angiogram,_a_test_for_heart_disease-1.mp3 British_Heart_Foundation_-_Your_guide_to_a_Coronary_Angiogram,_a_test_for_heart_disease-2.mp3 British_Heart_Foundation_-_Your_guide_to_a_Coronary_Angiogram,_a_test_for_heart_disease-3.mp3 IVP_β§Έ_IVU_test_Procedure_for_Kidneys_intravenous_pyelogram_-_medical_radiology_X-ray_ivp-1.mp3 IVP_β§Έ_IVU_test_Procedure_for_Kidneys_intravenous_pyelogram_-_medical_radiology_X-ray_ivp-2.mp3
[ -0.17356494069099426, 0.27854666113853455, -0.029778916388750076, 0.7486941814422607, 0.27932068705558777, -0.07498656213283539, 0.49054157733917236, 0.10613969713449478, -0.034692179411649704, 0.3665420711040497, 0.07218052446842194, 0.211817666888237, -0.23881110548973083, -0.11272311210632324, -0.04306723177433014, -0.046281471848487854, 0.19745801389217377, 0.10594666004180908, -0.06704650819301605, -0.09042813628911972, -0.4289769232273102, 0.11014548689126968, -0.26969432830810547, -0.12120847404003143, -0.4770034849643707, 0.041325218975543976, -0.11628291010856628, 0.2108791172504425, -0.45364752411842346, -0.19873954355716705, 0.2867547571659088, -0.15136347711086273, 0.19707649946212769, 0.7061999440193176, -0.00011606698535615578, -0.23862648010253906, 0.4627299904823303, -0.1595093011856079, -0.25139549374580383, -0.16079141199588776, -0.39381682872772217, -0.004150271415710449, -0.046986956149339676, -0.0018240809440612793, 0.166697695851326, -0.31157347559928894, -0.1095590740442276, -0.09333669394254684, -0.2255650758743286, 0.33293238282203674, 0.15155388414859772, 0.07783442735671997, 0.19243904948234558, 0.13187070190906525, 0.4708600640296936, 0.23350213468074799, -0.1890999674797058, 0.5088514685630798, 0.1578807234764099, -0.09181457757949829, -0.09606118500232697, -0.05360957235097885, 0.14782018959522247, 0.3378694951534271, 0.45782750844955444, 0.3002196252346039, 0.0016005802899599075, -0.4725564122200012, -0.010215896181762218, 0.2695852518081665, 0.8057031035423279, -0.2778262495994568, -0.1472051590681076, -0.3635530173778534, 0.07921348512172699, -0.3312227129936218, 0.14609350264072418, 0.34618619084358215, -0.15486189723014832, -0.1778196096420288, 0.06527350842952728, 0.2534240484237671, -0.12816642224788666, 0.2632274031639099, 0.0425390899181366, -0.0281280018389225, -0.029650462791323662, 0.04121837764978409, 0.3295588493347168, -0.15277333557605743, 0.31325647234916687, -0.42551156878471375, -0.03687138855457306, 0.3311002850532532, -0.36256977915763855, 0.07247878611087799, 0.04211467504501343, 0.22140389680862427, 0.09413036704063416, 0.09931531548500061, 0.06629963219165802, -0.24219100177288055, 0.006662547588348389, 0.16182231903076172, 0.3127901256084442, 0.15600761771202087, -0.19508880376815796, 0.1555081456899643, 0.16031135618686676, 0.07270388305187225, 0.057463452219963074, -0.054451119154691696, -0.31538403034210205, -0.08959229290485382, 0.05005396902561188, -0.2435392439365387, 0.11469078063964844, -0.07519331574440002, -0.14937826991081238, 0.09819935262203217, -0.3114529252052307, -0.21563740074634552, 0.09405852854251862, 0.11661854386329651, 0.2771376371383667, 0.1875273883342743, -0.07083898782730103, 0.5087314248085022, -0.10270141810178757, 0.2041940987110138, -0.11092577129602432, -0.042404308915138245, -0.2219303846359253, -0.2012329399585724, 0.20296435058116913, -0.08945022523403168, 0.19299408793449402, 0.2657523453235626, -0.016046077013015747, -0.42469918727874756, 0.01006743311882019, -0.35188183188438416, -0.19424232840538025, 0.2068697065114975, 0.09554330259561539, 0.3085089921951294, -0.10962429642677307, -0.11450323462486267, 0.01911918818950653, 0.3973025977611542, -0.29950782656669617, 0.046268366277217865, -0.05276074260473251, 0.16200938820838928, -0.21233829855918884, 0.12243302911520004, -0.505919873714447, -0.05832225829362869, 0.03275292366743088, -0.26857370138168335, 0.13001683354377747, -0.3627117872238159, 0.0030092597007751465, -0.24197661876678467, 0.07917720824480057, 0.41359490156173706, -0.27341708540916443, 0.06452791392803192, -0.16708199679851532, -0.10425674915313721, 0.2248212695121765, 0.26999014616012573, -0.0025576092302799225, 0.4512428641319275, -0.32959428429603577, 0.17369389533996582, 0.2926614582538605, -0.07000100612640381, -0.4548439383506775, 0.07554242014884949, -0.09582601487636566, 0.22355766594409943, 0.24380649626255035, 0.15599766373634338, 0.07888470590114594, -0.10765329748392105, 0.06379568576812744, 0.2973731756210327, -0.013152687810361385, 0.1558067947626114, -0.028040163218975067, -0.09419780969619751, 0.169321209192276, 0.013983145356178284, -0.1626019924879074, 0.31484466791152954, 0.09086079150438309, -0.009466677904129028, 0.4902711510658264, -0.17098911106586456, 0.2291308045387268, 0.09598429501056671, 0.23776784539222717, 0.03106645867228508, 0.04767784848809242, -0.013214752078056335, -0.2865792512893677, 0.04730711877346039, 0.011534541845321655, 0.06505933403968811, 0.11522071063518524, 0.11247885227203369, -0.17788070440292358, -0.1717987358570099, -0.28851643204689026, -0.1321774423122406, 0.04588986933231354, 0.44646406173706055, 0.033429935574531555, -0.10623262822628021, 0.05007182061672211, -0.01566040702164173, -0.04867149889469147, 0.13370643556118011, -0.7179315090179443, 0.26976704597473145, 0.16181939840316772, -0.26022160053253174, 0.3321033716201782, 0.02918836660683155, 0.1737927496433258, -0.026710696518421173, -0.04569456726312637, 0.25220122933387756, 0.4280897080898285, 0.10038883984088898, -0.2698289155960083, 0.29022929072380066, 0.05314666032791138, 0.18790476024150848, 0.171237051486969, -0.06486105173826218, 0.41239240765571594, -0.14463746547698975, -0.22182545065879822, 0.23785626888275146, -0.045573584735393524, 0.24193638563156128, -0.03602597862482071, -0.3373100161552429, 0.22333024442195892, 0.20383282005786896, 0.09340690076351166, 0.21300826966762543, 0.12404163181781769, 0.1852925419807434, 0.4180951714515686, 0.3237963020801544, -0.2172204554080963, -0.14103567600250244, 0.1733236163854599, -0.1736786663532257, -0.00952676311135292, 0.28890499472618103, -0.21870949864387512, -0.26432275772094727, -0.18078260123729706, 0.5590523481369019, 0.7153526544570923, 0.17438848316669464, 0.144968643784523, -0.17512920498847961, 0.10307623445987701, -0.24851253628730774, 0.18446411192417145, 0.05423807352781296, 0.05411563813686371, 0.4424351453781128, 0.09780017286539078, -0.12525758147239685, -0.29315412044525146, -0.06528797745704651, 0.16835135221481323, 0.5155889987945557, -0.3047202229499817, -0.01044556125998497, -0.06513404101133347, -0.11688250303268433, -0.19932319223880768, -0.29184821248054504, -0.1787211000919342, -0.061857569962739944, -0.1707710325717926, 0.4289403557777405, -0.10940831899642944, -0.0502488911151886, -0.0815986767411232, 0.13807539641857147, 0.014163866639137268, 0.004849324002861977, 0.057988330721855164, 0.420452356338501, -0.12423591315746307, 0.0650014877319336, 0.22957204282283783, 0.23056693375110626, -0.05955878645181656, -0.06602940708398819, 0.11814986169338226, -0.11190186440944672, 0.15302759408950806, 0.14880616962909698, -0.01659051515161991, 0.33988988399505615, -0.053379449993371964, 0.15470600128173828, 0.2419862449169159, -0.45819467306137085, 0.07270944863557816, 0.0825781524181366, -0.1551515758037567, 0.2306947410106659, 0.2013140469789505, 0.11477430164813995, -0.04240693524479866, -0.28677818179130554, -0.12880566716194153, -0.39475059509277344, 0.09932160377502441, 0.1411612182855606, 0.15496096014976501, 0.09469753503799438, 0.10761116445064545, -0.15897035598754883, 0.02772066369652748, -0.19050338864326477, -0.18781225383281708, -0.441616952419281, 0.4152311682701111, 0.00012802332639694214, -0.1475716531276703, -0.18718189001083374, -0.28882890939712524, -0.1533089578151703, 0.3352413475513458, -0.3179442882537842, 0.04404592886567116, -0.2030329555273056, -0.13319110870361328, 0.07620373368263245, 0.21306858956813812, 0.28224819898605347, -0.08969204127788544, 0.10656939446926117, -0.3942815959453583, -0.08911539614200592, -0.11133729666471481, 0.08361366391181946, 0.43844014406204224, -0.030790504068136215, 0.27391764521598816, -0.3227870762348175, 0.2617957592010498, 0.18342888355255127, 0.16759376227855682, 0.3205842673778534, -0.2025640457868576, 0.4970938265323639, -0.37457558512687683, 0.03459737449884415, 0.23550748825073242, -0.016424626111984253, -0.23829568922519684, 0.527303159236908, 0.24602335691452026, -0.25656482577323914, 0.004001393914222717, 0.01050923764705658, -0.3387874960899353, -0.11804187297821045, 0.27645906805992126, 0.0148294847458601, 0.19895589351654053, -0.09363894909620285, 0.08562949299812317, 0.1524239033460617, -0.161449134349823, -0.25758761167526245, 0.09272952377796173, 0.32545238733291626, 0.13881166279315948, -0.2227793037891388, 0.15641826391220093, -0.08902712166309357, -0.037493519484996796, 0.1624106615781784, 0.5935080647468567, -0.05240447074174881, -0.06126117706298828, 0.030060699209570885, 0.05873221904039383, 0.6803306341171265, -0.04690493643283844, 0.1895192712545395, -0.0045432597398757935, 0.4042699337005615, -0.14850148558616638, -0.0278455913066864, -0.41464272141456604, -0.14585164189338684, -0.08847613632678986, 0.1942257285118103, -0.29055824875831604, 0.2448318898677826, -0.06436261534690857, 0.6473463177680969, -0.09695475548505783, -0.17636066675186157, -0.33110374212265015, -0.1612536609172821, -0.07020942866802216, 0.048888906836509705, -0.03012920543551445, 0.09604991227388382, -0.022757017984986305, -0.014019407331943512, 0.16281758248806, -0.2893308997154236, 0.11492591351270676, 0.05452274903655052, 0.5111877918243408, -0.011551901698112488, 0.3287400007247925, 0.20083843171596527, -0.28479447960853577, 0.6409553289413452, 0.5845983028411865, -0.11400619149208069, -0.055003419518470764, 0.3269537687301636, -0.3353436291217804, 0.3200518488883972, 0.15743285417556763, -0.0030522048473358154, 0.03828687593340874, -0.2101181149482727, -0.021376028656959534, -0.37487804889678955, -0.10498921573162079, 0.5825966596603394, -0.07872620970010757, -0.2914329469203949, -0.4869719445705414, 0.4173790216445923, -0.15510323643684387, -0.10341828316450119, 0.4305934011936188, 0.19834333658218384, -0.23417413234710693, 0.154298335313797, -0.46064385771751404, 0.8403280973434448, 0.4144827723503113, 0.11034170538187027, 0.3475744128227234, -0.2871686518192291, 0.0022359080612659454, 0.025552034378051758, 0.11013209819793701, -0.29813480377197266, -0.24054734408855438, 0.02963872253894806, -0.27772676944732666, 0.0710793286561966, 0.33377188444137573, 0.12203647196292877, 0.30308711528778076, -0.26965510845184326, -0.20523664355278015, -0.008936246857047081, 0.3259463608264923, -0.2872532606124878, -0.11105453968048096, -0.18044917285442352, 0.07948213815689087, -0.012568935751914978, 0.20014537870883942, 0.010346543043851852, 0.10024484246969223, -0.21876387298107147, -0.3874993324279785, -0.30447447299957275, -0.024299699813127518, -0.11515796184539795, -0.2587234377861023, 0.08562202751636505, -0.49800366163253784, -0.10059091448783875, 0.01822027750313282, -0.5589703321456909, 0.226165771484375, -0.08999469876289368, 0.16852807998657227, -0.13554862141609192, 0.4455355107784271, 0.06030562147498131, -0.23697450757026672, 0.02921866811811924, 0.08475307375192642, -0.054573945701122284, -0.32677820324897766, -0.13783732056617737, -0.19826585054397583, -0.13133716583251953, 0.09179751574993134, -0.05108356475830078, -0.2897423207759857, -0.32159605622291565, -0.1238408237695694, -0.10038567334413528, -0.1922764778137207, 0.1231355220079422, 0.23679740726947784, -0.2030656784772873, 0.1300908625125885, -0.08631569147109985, -0.23458433151245117, -0.14523355662822723, 0.1455536037683487, 0.15447218716144562, 0.06021939218044281, 0.25547534227371216, 0.12882302701473236, -0.09846177697181702, -0.10082902014255524, 0.4661847949028015, 0.29986700415611267, -0.2948433756828308, 0.21566995978355408, 0.18722347915172577, 0.10812990367412567, -0.06635558605194092, -0.204982727766037, 0.00767245888710022, -0.11316323280334473, -0.3070134222507477, -0.6706640124320984, -0.1746821254491806, 0.27306777238845825, 0.03369547054171562, 0.18646882474422455, -0.3103989362716675, -0.32665082812309265, 0.26348525285720825, -0.022588346153497696, -0.18884101510047913, 0.09732162952423096, -0.03763788565993309, 0.3597450256347656, 0.027700219303369522, 0.02424800395965576, 0.15445545315742493, -0.23902998864650726, 0.024239875376224518, 0.01668151468038559, -0.12325693666934967, -0.09517449140548706, -0.23473693430423737, 0.17349886894226074, 0.27096888422966003, 0.11163872480392456, 0.051045216619968414, -0.2274710237979889, -0.2297547459602356, -0.3134433925151825, 0.034534260630607605, 0.15436190366744995, -0.19959154725074768, -0.24653714895248413, 0.27136972546577454, -0.09278459846973419, -0.03237687423825264, 0.060690850019454956, -0.2910514771938324, -0.18001140654087067, 0.22334149479866028, -0.014489922672510147, 0.11942870169878006, 0.026515372097492218, -0.2873610854148865, 0.04190797731280327, -0.11234219372272491, 0.019428398460149765, 0.27286332845687866, -0.16084420680999756, 0.1848154366016388, 0.08801482617855072, 0.4653512239456177, 0.48031219840049744, -0.03806987404823303, -0.006691008806228638, 0.21995995938777924, 0.13772878050804138, -0.23044374585151672, -0.3355098068714142, -0.37098708748817444, -0.17197056114673615, -0.014109060168266296, 0.10064229369163513, -0.1784687638282776, -0.31413400173187256, -0.3017144799232483, -0.1767817735671997, 0.4960770010948181, -0.0008700788021087646, 0.07900252193212509, 0.4191925823688507, -0.30988460779190063, 0.1133880615234375, 0.301201730966568, -0.15021732449531555, -0.23337800800800323, 0.6543762683868408, -0.021901633590459824, 0.19306698441505432, 0.3423263132572174, -0.38629430532455444, 0.054510265588760376, -0.28400930762290955, -0.46022701263427734, 0.3303021192550659, -0.06202338635921478, 0.14940519630908966, 0.12093496322631836, 0.0057544223964214325, -0.18292757868766785, 0.3328886032104492, -0.11650551855564117, -0.40630191564559937, -0.182214617729187, 0.011437036097049713, -0.012349247932434082, -0.41308507323265076, -0.13200506567955017, -0.022315163165330887, -0.14132824540138245, -0.23014679551124573, -0.026806216686964035, 0.042097534984350204, -0.19344866275787354, -0.3563973009586334, 0.03933289274573326, 0.20013834536075592, -0.06250077486038208, -0.3825092315673828, 0.3107379376888275, 0.0434618704020977, 0.01663241907954216, 0.3530232012271881, 0.14060138165950775, 0.49760693311691284, 0.3298252820968628, 0.23499034345149994, -0.032981134951114655, -0.255257785320282, -0.02352524921298027, -0.1406913697719574, 0.38097092509269714, 0.26133936643600464, 0.13032010197639465, 0.08305008709430695, 0.1529715359210968, -0.18377459049224854, 0.1026364266872406, 0.36046385765075684, 0.012000951915979385, -0.3893948197364807, 0.30801600217819214, -0.4635705351829529, -0.023036397993564606, -0.15323090553283691, -0.07984769344329834, -0.48111021518707275, 0.06010695919394493, 0.1892969012260437, 0.04056568071246147, 0.16613616049289703, 0.06460622698068619, 0.013918384909629822, -0.23593935370445251, 0.40157657861709595, 0.11997096240520477, 0.012093933299183846, -0.1394907832145691, -0.20939069986343384, -0.8902018070220947, 0.13835620880126953, -0.2836081385612488, 0.022708989679813385, -0.09848727285861969, 0.04557334631681442, 0.16839022934436798, 0.18225200474262238, 0.08671148121356964, 0.5228186845779419, -0.1655348241329193, 0.3038667142391205, -0.3845628499984741, -0.12273310124874115, -0.1269877701997757, 0.28306958079338074, -0.26590192317962646, -0.5466514229774475, 0.17559991776943207, -0.26405471563339233, 0.01959048956632614, 0.05863353982567787, -0.0066452473402023315, -0.18885304033756256, 0.3064940571784973, 0.24192741513252258, 0.19806918501853943, 0.6041924953460693, -0.3525349497795105, 0.05781138688325882, -0.5599793791770935, -0.12242203950881958, -0.09278471022844315, 0.07148328423500061, 0.07534147799015045, 0.494970440864563, -0.11116507649421692, -0.00026834243908524513, -0.27136868238449097, 0.0733005553483963, -0.1217326670885086, 0.30385032296180725, -0.44629183411598206, 0.15509343147277832, -0.22512519359588623, 0.028527408838272095, 0.13577872514724731, -0.16830667853355408, -0.05982522293925285, -0.16376487910747528, -0.10053476691246033, -0.24173465371131897, 0.32150524854660034, -0.2747577130794525, -0.4585053622722626, -0.240151047706604, 0.27021005749702454, 0.2513797879219055, 0.102936290204525, -0.21714827418327332, 0.36342597007751465, 0.3418392539024353, 0.05050045996904373, -0.17617399990558624, 0.053857237100601196, -0.3920435309410095, -0.04992910102009773, 0.10806290805339813, 0.33540108799934387, 0.1748398393392563, -0.32594794034957886, 0.32674938440322876, -0.30649811029434204 ]
https://github.com/huggingface/datasets/issues/5606
Hello, I have an interest in this issue. Is the `Dataset.to_dict` you are describing correct in the code here? https://github.com/huggingface/datasets/blob/35b789e8f6826b6b5a6b48fcc2416c890a1f326a/src/datasets/arrow_dataset.py#L4633-L4667
Add `Dataset.to_list` to the API
Since there is `Dataset.from_list` in the API, we should also add `Dataset.to_list` to be consistent. Regarding the implementation, we can re-use `Dataset.to_dict`'s code and replace the `to_pydict` calls with `to_pylist`.
20
Add `Dataset.to_list` to the API Since there is `Dataset.from_list` in the API, we should also add `Dataset.to_list` to be consistent. Regarding the implementation, we can re-use `Dataset.to_dict`'s code and replace the `to_pydict` calls with `to_pylist`. Hello, I have an interest in this issue. Is the `Dataset.to_dict` you are describing correct in the code here? https://github.com/huggingface/datasets/blob/35b789e8f6826b6b5a6b48fcc2416c890a1f326a/src/datasets/arrow_dataset.py#L4633-L4667
[ -0.20222854614257812, -0.03350897133350372, -0.12614166736602783, 0.05524768307805061, 0.21143868565559387, -0.11599999666213989, 0.17522993683815002, 0.22085413336753845, 0.06881460547447205, 0.06443381309509277, -0.1348755955696106, 0.6672619581222534, -0.01613602414727211, 0.37459641695022583, 0.06618475914001465, 0.010715458542108536, 0.03168858587741852, 0.2340562641620636, -0.29779183864593506, -0.09117700904607773, -0.09648888558149338, 0.150764599442482, -0.04100813716650009, 0.036258529871702194, 0.20817171037197113, -0.20266093313694, -0.013670220971107483, 0.09442541748285294, -0.11512137204408646, -0.32496607303619385, 0.2616034150123596, 0.26664164662361145, -0.11481893807649612, 0.11639691889286041, -0.00010260313138132915, 0.01344212144613266, 0.11655529588460922, -0.04183555766940117, -0.22878533601760864, -0.08271659165620804, -0.2909882962703705, -0.1787959486246109, 0.45344987511634827, -0.18327459692955017, -0.2715158462524414, -0.42833980917930603, -0.06450272351503372, -0.15413029491901398, 0.6674782633781433, 0.1449832022190094, 0.29409679770469666, 0.2018488049507141, 0.22610944509506226, -0.0009228475391864777, -0.057644493877887726, 0.22999900579452515, -0.07145553827285767, -0.024330727756023407, 0.18159934878349304, 0.04401324689388275, -0.08733051270246506, 0.3027258515357971, 0.02665361762046814, 0.030116014182567596, 0.1801476776599884, 0.0902341678738594, -0.39430850744247437, -0.3024553954601288, -0.08110527694225311, 0.1817333996295929, 0.4349072277545929, -0.4386759102344513, -0.40344172716140747, -0.24917693436145782, -0.23650358617305756, -0.3713778853416443, -0.14212322235107422, -0.13294324278831482, -0.10467921197414398, 0.163794606924057, 0.08323372900485992, -0.3110305666923523, -0.23967084288597107, 0.056088224053382874, -0.1531374156475067, 0.16251666843891144, -0.14598199725151062, 0.059120699763298035, 0.07226770371198654, -0.15639916062355042, -0.05520680546760559, 0.04658861830830574, 0.07349595427513123, 0.12927217781543732, -0.2906756103038788, -0.23087149858474731, 0.24976737797260284, -0.11747590452432632, 0.25206196308135986, 0.38442227244377136, 0.07115978002548218, 0.4146462082862854, -0.09826209396123886, 0.21573537588119507, 0.27937889099121094, -0.11812317371368408, 0.09655870497226715, 0.3315929174423218, 0.33550843596458435, 0.14186032116413116, 0.15841329097747803, -0.07059742510318756, -0.00621400773525238, -0.12891298532485962, 0.11156763136386871, 0.015685807913541794, 0.4106038808822632, -0.29299020767211914, -0.16288724541664124, -0.1575985848903656, 0.0015480592846870422, 0.009598884731531143, -0.05215919762849808, 0.33082664012908936, -0.001856338232755661, 0.20852941274642944, 0.13178323209285736, 0.1501183807849884, -0.005709439516067505, 0.10499657690525055, -0.25414225459098816, -0.0710987001657486, 0.12928429245948792, 0.12070240825414658, -0.09575941413640976, 0.11354728043079376, 0.2379695177078247, 0.00490870326757431, 0.17836783826351166, 0.24627143144607544, 0.17861229181289673, 0.1427815556526184, 0.27870211005210876, 0.022635649889707565, -0.06015206128358841, -0.022560469806194305, 0.20159997045993805, -0.13042373955249786, -0.337086021900177, -0.04214148595929146, -0.28748974204063416, -0.2884431481361389, -0.13370874524116516, 0.32971447706222534, 0.03804543614387512, -0.2725415527820587, -0.29798388481140137, 0.2632562816143036, 0.26798582077026367, -0.12481898069381714, -0.07813075184822083, -0.049774736166000366, 0.011239200830459595, -0.3573724925518036, 0.09284167736768723, 0.1475089192390442, -0.23338791728019714, 0.002051927149295807, 0.182761549949646, -0.26457491517066956, 0.10548368841409683, 0.193434476852417, -0.2733840346336365, -0.048113834112882614, -0.2300088256597519, 0.14658501744270325, 0.5366246700286865, -0.314861536026001, -0.16802069544792175, 0.0713176429271698, -0.07187467813491821, -0.035273369401693344, 0.05479690060019493, 0.05755544453859329, 0.28390514850616455, -0.03849087283015251, 0.03032182715833187, 0.4114345610141754, -0.038610294461250305, 0.11003012210130692, -0.0460793599486351, -0.2765057384967804, 0.0616309754550457, 0.1140265166759491, -0.17570091784000397, 0.08509879559278488, 0.08343745768070221, -0.26119720935821533, 0.5143952369689941, -0.2818032205104828, 0.16858527064323425, 0.12202893197536469, 0.6146824955940247, 0.01386733166873455, 0.05820106342434883, -0.10167821496725082, -0.31276464462280273, 0.000013805925846099854, -0.10555090010166168, 0.17408624291419983, -0.43098974227905273, -0.4141266345977783, -0.07614515721797943, 0.10966123640537262, -0.34024038910865784, 0.0017033899202942848, 0.2780269384384155, -0.006585694849491119, 0.1528862714767456, -0.04287639632821083, -0.31408047676086426, 0.06486722826957703, -0.06853406131267548, 0.2102418839931488, -0.4212673008441925, 0.22574958205223083, 0.03013443760573864, 0.016359340399503708, 0.12939797341823578, 0.23013874888420105, -0.04942067340016365, -0.09287657588720322, 0.1468597948551178, 0.1934785395860672, 0.21048609912395477, 0.13367187976837158, 0.05654066056013107, 0.14549683034420013, 0.12304744869470596, -0.3275891840457916, 0.02848641760647297, 0.18541219830513, 0.10268062353134155, -0.009576275944709778, -0.22414229810237885, 0.5372011661529541, 0.27140843868255615, 0.25673049688339233, 0.19662553071975708, 0.061267316341400146, 0.34479519724845886, 0.08959928154945374, -0.08718791604042053, -0.20425927639007568, -0.31923729181289673, -0.051504287868738174, 0.3102489709854126, -0.2063210904598236, -0.4280397891998291, 0.3909807801246643, 0.3450533449649811, 0.08301852643489838, 0.09099449217319489, 0.11007184535264969, -0.12276026606559753, -0.0998792052268982, 0.16169539093971252, 0.12517626583576202, 0.18055382370948792, 0.37037020921707153, 0.1275739073753357, -0.059851087629795074, 0.01751018315553665, -0.04212711378931999, 0.1505870223045349, 0.07577195018529892, 0.16888092458248138, -0.0462302640080452, 0.3131938576698303, -0.1463148295879364, -0.4076520800590515, -0.24767327308654785, -0.28424859046936035, 0.0034034810960292816, -0.1851043403148651, 0.1585790067911148, -0.18149861693382263, -0.4084281325340271, -0.1377744823694229, -0.3311031460762024, -0.15281566977500916, -0.4257993996143341, 0.10662705451250076, 0.04785096272826195, -0.2679389417171478, 0.24392051994800568, -0.01829729974269867, 0.054736897349357605, 0.031174369156360626, -0.23920121788978577, -0.07103963941335678, -0.181625097990036, -0.13652169704437256, 0.2390381544828415, 0.023447033017873764, -0.051832567900419235, 0.4852769374847412, -0.021509308367967606, 0.04184010252356529, -0.20878711342811584, -0.4308173656463623, 0.2669556736946106, -0.10577498376369476, 0.05313225835561752, 0.32459360361099243, 0.2338356375694275, 0.2571588158607483, -0.026995228603482246, 0.19252777099609375, -0.11367104202508926, -0.3299064040184021, -0.04672403633594513, -0.11950476467609406, 0.04345228523015976, -0.0361061654984951, -0.3432617783546448, -0.33970603346824646, -0.3624892234802246, 0.19668112695217133, 0.25041696429252625, 0.28116661310195923, 0.1697482317686081, -0.04655155539512634, 0.09912474453449249, -0.15434624254703522, 0.11967873573303223, -0.18857671320438385, -0.052277859300374985, 0.1987176239490509, -0.2861596941947937, -0.3710867464542389, -0.0768941342830658, -0.10867570340633392, 0.193876713514328, 0.07318828999996185, -0.19917774200439453, -0.5704187154769897, -0.15935859084129333, 0.3680793046951294, 0.036468297243118286, 0.17015793919563293, 0.30659425258636475, 0.3432149887084961, -0.21640774607658386, -0.16213589906692505, -0.09437045454978943, 0.32137173414230347, 0.016853608191013336, -0.04619887098670006, 0.16505169868469238, 0.2538895606994629, -0.05568001791834831, 0.5588089227676392, 0.21864554286003113, -0.26134392619132996, 0.242826908826828, -0.37905681133270264, 0.31674954295158386, -0.0012180395424365997, -0.10548897087574005, -0.22962264716625214, -0.028290674090385437, 0.05306345969438553, 0.026272933930158615, 0.04703473299741745, -0.08109210431575775, -0.07520303130149841, 0.22515177726745605, -0.3669697642326355, -0.32632237672805786, 0.024253083392977715, 0.01563471183180809, 0.03371414914727211, 0.050387248396873474, 0.009946927428245544, -0.2468477338552475, 0.112785205245018, 0.11563168466091156, 0.04555869475007057, 0.21859516203403473, -0.15315750241279602, -0.3891475200653076, -0.13472159206867218, -0.5970029234886169, 0.3319338858127594, -0.03889881446957588, -0.03661558777093887, 0.06485837697982788, -0.2737710475921631, -0.16136065125465393, -0.3017810881137848, 0.3492211699485779, 0.06198137253522873, -0.19432255625724792, 0.025109775364398956, 0.005518309772014618, -0.15201857686042786, 0.3314858078956604, -0.21114596724510193, 0.08097401261329651, -0.10487887263298035, 0.3101966977119446, -0.6905209422111511, -0.1904064565896988, 0.07159559428691864, 0.2700570225715637, -0.23753558099269867, 0.20982618629932404, -0.04268573224544525, -0.47335535287857056, -0.3504130244255066, -0.04486006125807762, 0.09744539856910706, 0.21982014179229736, -0.10537202656269073, -0.20460790395736694, 0.04035995155572891, -0.21461446583271027, 0.037328943610191345, 0.2885074317455292, 0.36865389347076416, -0.2040228247642517, 0.04133716970682144, -0.15325571596622467, 0.23998156189918518, 0.5433366298675537, 0.6388727426528931, -0.1525329053401947, -0.4676288962364197, -0.3068493902683258, 0.09110786765813828, 0.3483067750930786, 0.1001872792840004, -0.0383199118077755, 0.3860113024711609, 0.09996829181909561, 0.08840073645114899, -0.03414789214730263, -0.0730610191822052, 0.06283353269100189, 0.10979156196117401, -0.14920946955680847, -0.44965189695358276, 0.3661108911037445, 0.05856931954622269, -0.10009795427322388, 0.4436403214931488, 0.2874590754508972, -0.3381635248661041, 0.3877428472042084, 0.18690049648284912, 0.867958664894104, 0.09755970537662506, 0.25622838735580444, 0.5173935890197754, -0.29647502303123474, 0.5520361065864563, 0.24808886647224426, 0.029688216745853424, -0.5807887315750122, 0.12110153585672379, -0.04755336046218872, -0.05045659467577934, -0.00776839442551136, 0.07634197175502777, -0.024267010390758514, 0.25462305545806885, -0.0556187778711319, 0.09996655583381653, -0.14629611372947693, 0.17324425280094147, -0.1477988362312317, -0.33042389154434204, -0.31287673115730286, 0.2601064443588257, -0.014790045097470284, -0.02803812362253666, -0.13249288499355316, -0.39767369627952576, -0.17733776569366455, -0.24337759613990784, -0.015967674553394318, 0.11243858933448792, -0.2804156541824341, 0.23860885202884674, 0.07016201317310333, -0.34479594230651855, -0.0820300355553627, 0.23459911346435547, 0.15905413031578064, -0.051709044724702835, -0.22071941196918488, -0.029274700209498405, -0.0072000473737716675, 0.17315588891506195, -0.006369601935148239, -0.01289183646440506, 0.3800903558731079, -0.16092602908611298, -0.19667723774909973, 0.0034526679664850235, 0.0898556336760521, -0.22477290034294128, 0.014435291290283203, -0.07468374073505402, 0.16451486945152283, -0.3240918219089508, 0.0099039226770401, 0.10849928110837936, -0.1104028970003128, -0.2957616448402405, 0.20371180772781372, 0.3281788229942322, -0.157669797539711, 0.1050969734787941, 0.13428354263305664, 0.11080925166606903, 0.0030525485053658485, 0.05867653340101242, 0.0039043156430125237, -0.05836178734898567, 0.3230334222316742, 0.09216928482055664, -0.21648234128952026, -0.32630831003189087, -0.13285145163536072, 0.33843809366226196, -0.2722878158092499, 0.11388575285673141, 0.04713087156414986, -0.014793097972869873, -0.14998266100883484, 0.37646251916885376, -0.10406900942325592, 0.02495107799768448, -0.16903457045555115, -0.2944243848323822, -0.4201897382736206, 0.37295597791671753, -0.04106440767645836, 0.27012336254119873, -0.14810195565223694, 0.12091043591499329, -0.1800350695848465, -0.024911843240261078, -0.47399142384529114, -0.06563246250152588, -0.010964736342430115, 0.01729065552353859, 0.15192332863807678, -0.07123096287250519, 0.21154989302158356, 0.008668564260005951, 0.2388790398836136, 0.005683610215783119, -0.20783807337284088, -0.3374411165714264, -0.03777800500392914, 0.06322766840457916, 0.033122312277555466, -0.1724502146244049, 0.03871539980173111, 0.005676306784152985, -0.28841879963874817, -0.15936188399791718, 0.2682048976421356, -0.03183549642562866, -0.06963935494422913, 0.07699541747570038, 0.23357249796390533, 0.03427758067846298, -0.0627683624625206, -0.011310070753097534, 0.08478065580129623, -0.04192564636468887, 0.005196806043386459, 0.17354993522167206, -0.36248520016670227, -0.2264097034931183, 0.34526875615119934, 0.23436090350151062, 0.4036397635936737, 0.03788445517420769, 0.29751598834991455, -0.2380630075931549, -0.24663306772708893, 0.05325056239962578, 0.7007204294204712, 0.37451034784317017, -0.07231676578521729, 0.29625973105430603, 0.03724284470081329, 0.36840739846229553, -0.45740413665771484, -0.01598035730421543, 0.0638093575835228, -0.20131945610046387, 0.07951878756284714, 0.33086639642715454, -0.003791309893131256, 0.1820148378610611, 0.008001463487744331, -0.010918091982603073, 0.2966260015964508, -0.21852140128612518, -0.026555493474006653, 0.18211093544960022, -0.17932048439979553, 0.036162618547677994, 0.39258113503456116, 0.3505774438381195, 0.3614766597747803, 0.18998831510543823, -0.19092246890068054, 0.49897342920303345, 0.2464447319507599, -0.14038412272930145, 0.20936864614486694, -0.2507579028606415, 0.14716117084026337, -0.06277893483638763, 0.25654518604278564, 0.046084195375442505, 0.21182048320770264, 0.3772754669189453, -0.060653574764728546, -0.1511419266462326, 0.12178102135658264, 0.4083203971385956, -0.0835191160440445, -0.19769015908241272, -0.11800305545330048, -0.1153479591012001, 0.1328536570072174, -0.30479198694229126, 0.0403263084590435, -0.41752028465270996, 0.04748113080859184, -0.19255565106868744, 0.054687730967998505, -0.48277783393859863, -0.11331988871097565, 0.0756482407450676, 0.2907310128211975, -0.006670892238616943, 0.07550141960382462, 0.28283989429473877, -0.10077724605798721, -0.05410407483577728, 0.2624747157096863, 0.30779218673706055, 0.06477219611406326, -0.1184084564447403, 0.1787818968296051, -0.07918761670589447, -0.14105956256389618, -0.2006157636642456, -0.007694395259022713, -0.10591979324817657, 0.02065093442797661, 0.28954634070396423, 0.28253835439682007, -0.2352108359336853, -0.05156032368540764, 0.030002813786268234, 0.04431281238794327, 0.0439685583114624, 0.4137764573097229, 0.06710723787546158, -0.3886203467845917, -0.16862472891807556, -0.0558847114443779, -0.2635554373264313, -0.0703907161951065, 0.2605377733707428, 0.008095256984233856, 0.09690158069133759, -0.11046983301639557, 0.17037342488765717, 0.0283966101706028, 0.18312695622444153, 0.1568847894668579, 0.4188462495803833, -0.012491203844547272, -0.10567639768123627, -0.4653741121292114, 0.09807270765304565, 0.10305333137512207, -0.38893160223960876, -0.20092540979385376, 0.24046096205711365, 0.278609037399292, 0.10526518523693085, -0.02839510142803192, -0.014211080968379974, 0.223054438829422, 0.034527555108070374, -0.30914080142974854, -0.04283367842435837, -0.08341439068317413, 0.05173137038946152, 0.07935117185115814, -0.2878679633140564, -0.03138057515025139, -0.02642195113003254, 0.21412113308906555, -0.13528819382190704, 0.20554295182228088, 0.10025830566883087, -0.37259042263031006, 0.23549425601959229, 0.17505469918251038, 0.20864400267601013, -0.2006138265132904, -0.16332648694515228, 0.10061586648225784, -0.24012517929077148, -0.4159773588180542, 0.31041768193244934, -0.0744304358959198, 0.24998298287391663, 0.10709987580776215, -0.22673332691192627, -0.3381679058074951, -0.0317557156085968, 0.1655641347169876, -0.13722503185272217, -0.21093755960464478, 0.4642389118671417, -0.036180540919303894, -0.09187716245651245, 0.027511723339557648, 0.19886252284049988, -0.014086209237575531, -0.07142337411642075, -0.11979451775550842, -0.47271403670310974, 0.47214120626449585, -0.3979918360710144, -0.13717782497406006, -0.007439471781253815, 0.35946527123451233, 0.04325494542717934, -0.16565151512622833, -0.5015999674797058, 0.11063621938228607, 0.2715311050415039, -0.27232825756073, -0.15100759267807007, 0.24667242169380188, 0.07871806621551514, -0.013535089790821075, -0.13512596487998962, 0.6582282185554504, 0.023768991231918335, -0.09007500112056732, -0.22445595264434814, -0.2524382472038269 ]
https://github.com/huggingface/datasets/issues/5604
Hi! You can specify `download_config=DownloadConfig(resume_download=True))` in `load_dataset` to resume the download when re-running the code after the timeout error: ```python from datasets import load_dataset, DownloadConfig dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets', download_config=DownloadConfig(resume_download=True)) ```
Problems with downloading The Pile
### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2
32
Problems with downloading The Pile ### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2 Hi! You can specify `download_config=DownloadConfig(resume_download=True))` in `load_dataset` to resume the download when re-running the code after the timeout error: ```python from datasets import load_dataset, DownloadConfig dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets', download_config=DownloadConfig(resume_download=True)) ```
[ -0.21374137699604034, 0.05478852987289429, -0.07777376472949982, 0.4795968234539032, 0.3535689115524292, 0.16597089171409607, 0.4100671410560608, 0.10658246278762817, -0.049914970993995667, 0.12421846389770508, -0.26922863721847534, 0.05224458500742912, 0.2304019331932068, 0.051737479865550995, -0.12390245497226715, -0.008002175949513912, -0.10578835010528564, -0.06769484281539917, -0.10364104807376862, -0.052790530025959015, -0.053107619285583496, -0.13335031270980835, -0.19309000670909882, -0.18606606125831604, -0.0019537582993507385, -0.2059493362903595, -0.25900912284851074, 0.03227159380912781, -0.13409796357154846, -0.289252370595932, 0.36139988899230957, 0.20501017570495605, 0.20608671009540558, 0.5958863496780396, -0.00011395763431210071, -0.08864161372184753, 0.23677676916122437, -0.0246100053191185, -0.06686123460531235, -0.2068444937467575, -0.11136295646429062, -0.3038949966430664, 0.012168094515800476, -0.26329973340034485, 0.3366994559764862, -0.14345279335975647, 0.18620945513248444, -0.005718804895877838, 0.26634228229522705, 0.32118213176727295, 0.14730483293533325, 0.44214940071105957, 0.2598598599433899, 0.008191440254449844, 0.18503478169441223, -0.3185122013092041, -0.017283674329519272, 0.48008108139038086, 0.4041898548603058, -0.008295051753520966, 0.05939331650733948, 0.24421964585781097, 0.14604279398918152, 0.09171232581138611, 0.09392593801021576, 0.17412182688713074, 0.19243371486663818, -0.4917284846305847, -0.35736972093582153, 0.06124694272875786, 0.5218487977981567, -0.15852127969264984, -0.45952266454696655, -0.5368379354476929, 0.15407519042491913, -0.1532329022884369, 0.23342491686344147, 0.3569500744342804, -0.1931431144475937, 0.14556187391281128, -0.020201651379466057, 0.1646074652671814, -0.14814171195030212, 0.5214914679527283, 0.14103394746780396, -0.2983291745185852, 0.04072793945670128, 0.02311963029205799, 0.13124631345272064, 0.15013596415519714, 0.38006848096847534, -0.30368131399154663, 0.04132317751646042, 0.21070556342601776, -0.39694276452064514, 0.023196734488010406, -0.05683283880352974, 0.2563406229019165, 0.15476524829864502, 0.06027787923812866, 0.1215299442410469, -0.023707274347543716, -0.17832428216934204, 0.11013270914554596, 0.7237299680709839, 0.08106322586536407, -0.4106284976005554, -0.011239096522331238, 0.25761547684669495, 0.44639790058135986, -0.0034427642822265625, -0.1721278727054596, -0.09671597182750702, -0.2965874671936035, 0.2951529026031494, -0.11629621684551239, 0.10755878686904907, -0.1870097815990448, -0.09646528214216232, 0.00572606548666954, -0.012922756373882294, 0.03762831166386604, -0.05334832891821861, 0.13520918786525726, -0.43657130002975464, 0.4143809676170349, 0.09073248505592346, 0.026062671095132828, -0.16945581138134003, -0.2181982547044754, -0.14088180661201477, 0.15535438060760498, -0.22049696743488312, -0.24280652403831482, 0.2016305774450302, -0.4043419063091278, 0.11538948118686676, -0.023086093366146088, 0.22966721653938293, -0.17517808079719543, 0.06808894872665405, -0.3088129162788391, 0.08567321300506592, 0.2681872546672821, 0.1992024928331375, 0.15257176756858826, -0.1114816963672638, 0.14107032120227814, -0.07121825218200684, 0.19538399577140808, -0.14204446971416473, -0.1516919881105423, -0.04751638323068619, 0.20273177325725555, -0.16449987888336182, -0.05684198439121246, -0.39322206377983093, -0.1995835155248642, 0.15259577333927155, 0.03898581862449646, 0.11613301932811737, -0.2693657875061035, 0.20777282118797302, -0.24307070672512054, 0.11192284524440765, 0.4105428457260132, -0.45731741189956665, 0.11890816688537598, -0.4514598846435547, -0.11664606630802155, 0.1933029592037201, 0.38081812858581543, -0.1406821608543396, 0.08919385075569153, -0.37207263708114624, -0.0022219866514205933, 0.4714319109916687, -0.26110929250717163, -0.7166253924369812, 0.2818661630153656, -0.05085059255361557, 0.1614447832107544, -0.051806699484586716, 0.46368029713630676, 0.34830230474472046, -0.21787835657596588, -0.00247931107878685, 0.3585736155509949, -0.36867791414260864, -0.08439566195011139, -0.2958601117134094, -0.38980159163475037, 0.031223617494106293, 0.26662805676460266, 0.2841693162918091, 0.020857132971286774, 0.08326666057109833, -0.12681519985198975, 0.3414134979248047, 0.44041651487350464, 0.13830168545246124, 0.14234516024589539, 0.193753182888031, 0.24752798676490784, 0.06176920607686043, -0.22223684191703796, -0.36476489901542664, 0.24147692322731018, -0.2354569137096405, -0.1163245439529419, -0.3625856935977936, -0.21623891592025757, -0.3581659197807312, -0.21733000874519348, -0.06299635767936707, 0.10098101943731308, 0.025105565786361694, -0.2246151864528656, -0.03624160587787628, 0.2402905821800232, 0.0567484125494957, 0.39264532923698425, -0.2775382101535797, 0.2738974392414093, -0.3143508732318878, 0.43672943115234375, -0.2119416445493698, -0.22705544531345367, -0.007281295955181122, -0.36224663257598877, 0.0006183665245771408, -0.21249334514141083, -0.07307118922472, 0.4518609941005707, -0.23458650708198547, 0.21057802438735962, -0.1523239016532898, 0.10999598354101181, 0.44461145997047424, -0.010013289749622345, -0.045848436653614044, 0.12067390978336334, 0.2588496208190918, -0.1660587191581726, -0.2757173776626587, 0.08649992942810059, -0.06996110081672668, -0.02751706913113594, 0.04465862363576889, -0.044657208025455475, 0.1240232065320015, -0.06811562180519104, 0.07055830210447311, 0.06680595874786377, 0.0984342098236084, -0.05197626352310181, -0.203776553273201, -0.08663075417280197, -0.32404154539108276, 0.22001473605632782, 0.47944170236587524, -0.10300794988870621, -0.10935162007808685, 0.16310584545135498, 0.19595438241958618, -0.0420602485537529, 0.04469811171293259, 0.019695758819580078, 0.24276086688041687, 0.22468098998069763, 0.2148006707429886, -0.025752253830432892, 0.0266716368496418, -0.16329112648963928, -0.03092944622039795, 0.3340107798576355, -0.06329184025526047, 0.15761743485927582, 0.1468995213508606, 0.0329367071390152, -0.08735556900501251, -0.2002769410610199, 0.16393280029296875, 0.27143651247024536, -0.1880623698234558, -0.10341018438339233, -0.10364048928022385, -0.3809230327606201, -0.15049901604652405, 0.028517134487628937, -0.13274520635604858, -0.38499292731285095, -0.16284975409507751, 0.46229562163352966, -0.05048076808452606, 0.23027107119560242, -0.2980221211910248, 0.12667468190193176, 0.2597729563713074, 0.15734197199344635, -0.1431022584438324, 0.12150910496711731, -0.1924043446779251, 0.043344974517822266, 0.34235984086990356, 0.05770315229892731, 0.3308447003364563, -0.06426035612821579, -0.14237888157367706, -0.16194623708724976, -0.18644919991493225, 0.005760932341217995, -0.009323610924184322, 0.4290178418159485, -0.05635755881667137, 0.3891828656196594, 0.04585644602775574, 0.038137663155794144, 0.08474838733673096, -0.10859545320272446, 0.05538759380578995, -0.22112493216991425, 0.05901503190398216, 0.01643223688006401, -0.1938595175743103, -0.5221582055091858, -0.3088837265968323, -0.33066996932029724, 0.06282396614551544, -0.07025843113660812, -0.08679533004760742, -0.12828895449638367, 0.24299249053001404, 0.12597261369228363, 0.0999678373336792, -0.1947481632232666, 0.009705472737550735, -0.4548054337501526, 0.5333778262138367, 0.00555068626999855, -0.35585540533065796, 0.10428211092948914, -0.04619409888982773, -0.3509092628955841, 0.22397078573703766, -0.6014102697372437, -0.17081871628761292, -0.500959575176239, 0.07941625267267227, -0.07272067666053772, 0.03193084895610809, 0.11669665575027466, -0.40580233931541443, -0.047246452420949936, 0.05206336826086044, 0.1134866327047348, 0.20773015916347504, 0.30023977160453796, 0.34552130103111267, -0.14386673271656036, 0.30954742431640625, 0.30804744362831116, 0.5057852268218994, -0.006854608654975891, -0.05914914980530739, 0.22345270216464996, 0.08619772642850876, 0.4399026930332184, 0.07749013602733612, -0.22628945112228394, 0.12258969992399216, -0.1584259420633316, -0.08793209493160248, 0.04022093117237091, 0.034493181854486465, -0.22348356246948242, -0.08523600548505783, -0.0698418915271759, -0.41283899545669556, -0.33946967124938965, -0.10051240026950836, 0.11619880795478821, -0.0010510515421628952, 0.28815507888793945, 0.04800540953874588, 0.01997675746679306, -0.2352149337530136, 0.017002619802951813, 0.28460827469825745, 0.07423483580350876, -0.0590369887650013, -0.06206824257969856, 0.18192246556282043, -0.3208589255809784, -0.025537073612213135, 0.0669107735157013, 0.19199424982070923, 0.10854171961545944, 0.1857346147298813, 0.3459678292274475, -0.04148564115166664, 1.0077767372131348, 0.022157231345772743, 0.2632905840873718, -0.02127886191010475, 0.35554876923561096, -0.20276996493339539, -0.1808994710445404, -0.2537316083908081, -0.3159012198448181, 0.48324620723724365, 0.14706026017665863, -0.30251309275627136, 0.062413863837718964, 0.13618004322052002, 0.21705186367034912, -0.12619683146476746, -0.2327108532190323, 0.10064491629600525, -0.4088582396507263, -0.23690932989120483, 0.2908574938774109, 0.35200852155685425, 0.05973481014370918, -0.2680456042289734, -0.3221195936203003, 0.06104407459497452, 0.30877846479415894, -0.03700625151395798, -0.12881575524806976, 0.13907790184020996, -0.007051039487123489, 0.5634720325469971, 0.10638701915740967, 0.04806627333164215, 0.483207643032074, 0.6092430353164673, 0.013821830973029137, -0.35543572902679443, 0.1200086921453476, -0.4464304745197296, -0.21044933795928955, 0.40005922317504883, -0.1192018985748291, -0.07196353375911713, 0.058366283774375916, 0.2536894679069519, -0.012149715796113014, 0.35269632935523987, 0.3130394518375397, -0.013337258249521255, -0.37236544489860535, -0.4407954216003418, 0.20469744503498077, -0.15018868446350098, -0.010686032474040985, 0.4403667151927948, -0.07615220546722412, -0.054009027779102325, 0.1179221123456955, -0.15576037764549255, 1.0107088088989258, -0.14563605189323425, 0.22861823439598083, 0.18741102516651154, -0.3540770411491394, 0.06524544954299927, -0.1466309279203415, 0.08281280100345612, -0.209538072347641, -0.4048232138156891, -0.06249373406171799, -0.13783836364746094, 0.054098568856716156, 0.45037901401519775, -0.04780492186546326, 0.38373589515686035, -0.15721790492534637, 0.005227238871157169, -0.24078071117401123, 0.12594401836395264, -0.2831982374191284, -0.12858866155147552, -0.21140918135643005, 0.13412317633628845, 0.1979268342256546, 0.2582911252975464, -0.1525958776473999, -0.12525516748428345, 0.003647811710834503, 0.07588151842355728, -0.3133656978607178, 0.13323427736759186, -0.11624843627214432, -0.08542273938655853, -0.2974570095539093, -0.1304987668991089, 0.18248939514160156, 0.2707222104072571, 0.07099278271198273, 0.08136792480945587, -0.09699255973100662, 0.3605616092681885, -0.09158544987440109, -0.07384486496448517, 0.26135557889938354, 0.20126065611839294, 0.29413852095603943, -0.008528970181941986, -0.28464969992637634, 0.0010425727814435959, -0.08906953036785126, -0.03498592972755432, 0.046646907925605774, 0.08077523857355118, 0.029483597725629807, -0.2410823404788971, -0.17733857035636902, -0.28661859035491943, 0.10150236636400223, -0.2573595941066742, 0.11615778505802155, 0.2092307060956955, 0.171896830201149, 0.3507610261440277, -0.16734883189201355, -0.06592507660388947, -0.3488665521144867, 0.5985847115516663, -0.13013115525245667, -0.12080444395542145, 0.2983871400356293, 0.3074650764465332, -0.45594522356987, -0.1181638240814209, -0.13795828819274902, -0.38585394620895386, -0.4347658157348633, 0.27950307726860046, -0.24621985852718353, 0.46882373094558716, -0.11800816655158997, 0.016303490847349167, 0.2460472136735916, -0.11642438173294067, 0.05552183836698532, -0.5426360368728638, -0.29473477602005005, -0.020783178508281708, 0.2173449546098709, 0.2704724669456482, -0.09223011136054993, -0.08096423745155334, 0.1988143026828766, -0.27050378918647766, -0.26929593086242676, 0.39652130007743835, -0.29202646017074585, 0.1038503497838974, -0.01599964126944542, 0.025519656017422676, 0.32309162616729736, -0.16299748420715332, 0.0430721640586853, 0.28330308198928833, -0.028383785858750343, -0.15084567666053772, -0.1713743507862091, 0.10691750049591064, 0.007192619144916534, -0.11271893233060837, 0.15113990008831024, -0.5777228474617004, -0.1847606599330902, 0.01758459582924843, 0.10966816544532776, 0.3058987855911255, 0.1355084329843521, -0.057088419795036316, 0.4670692980289459, 0.1333732306957245, -0.10482446104288101, 0.2444426268339157, -0.18936237692832947, 0.14042872190475464, 0.39764514565467834, 0.08521673083305359, 0.05695357918739319, 0.08559021353721619, -0.17927023768424988, -0.2470327913761139, 0.05638781189918518, 0.16760598123073578, 0.6359788179397583, -0.2125714123249054, 0.09898322820663452, 0.22290381789207458, 0.3442070782184601, 0.4376804828643799, -0.15532724559307098, -0.06117073819041252, 0.3278557360172272, 0.21658742427825928, -0.30529898405075073, 0.07995031774044037, 0.14692971110343933, 0.0330132357776165, -0.06255568563938141, 0.021787695586681366, -0.09153273701667786, -0.022021792829036713, -0.10941364616155624, 0.33513981103897095, 0.5633813738822937, 0.06871993839740753, -0.008192833513021469, 0.3376113176345825, 0.08553844690322876, -0.057801008224487305, 0.30001911520957947, 0.3066791296005249, 0.006573796272277832, 0.2890264391899109, 0.049317676573991776, -0.12213662266731262, -0.26166850328445435, 0.31120944023132324, -0.30965593457221985, -0.5780694484710693, -0.46884047985076904, 0.4588550329208374, -0.22484688460826874, 0.2793705463409424, 0.09733213484287262, 0.28677865862846375, 0.059549663215875626, -0.12951411306858063, -0.12814736366271973, -0.0009616352617740631, 0.14352568984031677, 0.18817102909088135, 0.2115882933139801, -0.19766658544540405, -0.07627830654382706, 0.1516818106174469, 0.1672057956457138, -0.3022072911262512, 0.19188599288463593, 0.25433647632598877, -0.15072885155677795, -0.4699130952358246, -0.11707029491662979, -0.024180030450224876, 0.3197259306907654, -0.35642433166503906, -0.09209293127059937, 0.14376215636730194, -0.24013009667396545, 0.0947517454624176, 0.12925225496292114, 0.26143574714660645, 0.08473462611436844, 0.12468908727169037, 0.07922615110874176, 0.2838091254234314, -0.032258640974760056, -0.08134102076292038, 0.24339862167835236, 0.1700691133737564, 0.21503011882305145, 0.33071228861808777, 0.1306965947151184, -0.27020832896232605, 0.08967063575983047, -0.010504355654120445, 0.03939797356724739, -0.4417389929294586, 0.5484939813613892, -0.0859370008111, -0.15488877892494202, -0.3690265119075775, -0.25502684712409973, -0.3575412929058075, -0.1590869277715683, 0.2573363780975342, -0.30336084961891174, 0.09940201044082642, -0.031126827001571655, 0.04153596609830856, -0.19853800535202026, 0.2643834352493286, 0.7344010472297668, 0.05803211033344269, -0.16731075942516327, -0.06282511353492737, -0.6488063335418701, 0.08329790830612183, -0.25399765372276306, 0.02912147343158722, 0.16023774445056915, 0.28944826126098633, -0.16815638542175293, -0.14874330163002014, 0.2917975187301636, 0.038330212235450745, -0.09326758980751038, 0.6316964626312256, -0.32724693417549133, -0.48827826976776123, -0.3263729214668274, 0.053495414555072784, 0.019889451563358307, -0.32166218757629395, 0.07741302996873856, -0.1721784472465515, 0.002175532281398773, 0.05341282859444618, -0.08885744214057922, 0.05044231563806534, -0.2162666916847229, 0.5005411505699158, 0.002636173740029335, 0.14532537758350372, 0.10841734707355499, -0.11391860991716385, -0.3895222246646881, -0.2275751829147339, -0.01190788671374321, 0.02324979193508625, 0.013660674914717674, 0.29187262058258057, -0.33874937891960144, 0.23561665415763855, -0.2361956536769867, 0.12262757122516632, 0.04979853332042694, -0.059693172574043274, -0.03599986433982849, -0.07370641082525253, -0.002122826874256134, 0.21627387404441833, 0.23230545222759247, 0.15714684128761292, -0.06511940062046051, 0.0018381550908088684, -0.15251705050468445, -0.2986208200454712, 0.4045059084892273, -0.252621054649353, -0.1862873136997223, -0.03780224546790123, 0.0750977173447609, 0.042455192655324936, 0.05352780222892761, -0.4311966896057129, 0.18439339101314545, 0.4126918911933899, -0.1675514578819275, -0.28259575366973877, 0.10621382296085358, -0.08678023517131805, 0.10405974090099335, -0.07300542294979095, 0.1500851809978485, -0.017180664464831352, -0.1848905384540558, 0.105314701795578, -0.19823086261749268 ]
https://github.com/huggingface/datasets/issues/5604
@mariosasko , I used your suggestion but its not saving anything , just stops and runs from the same point . below is the script to download and save on disk . ``` from datasets import load_dataset, DownloadConfig #load the Pile dataset from Hugging Face Datasets #dataset = load_dataset('the_pile') dataset = load_dataset('the_pile', split='train', cache_dir='datasets', download_config=DownloadConfig(resume_download=True)) # save each file in the dataset to disk for i, example in enumerate(dataset['train']): filename = f'pile_file_{i}.json' with open(filename, 'w') as f: f.write(str(example)) print("Finished saving Pile dataset files to disk.") ```
Problems with downloading The Pile
### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2
86
Problems with downloading The Pile ### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2 @mariosasko , I used your suggestion but its not saving anything , just stops and runs from the same point . below is the script to download and save on disk . ``` from datasets import load_dataset, DownloadConfig #load the Pile dataset from Hugging Face Datasets #dataset = load_dataset('the_pile') dataset = load_dataset('the_pile', split='train', cache_dir='datasets', download_config=DownloadConfig(resume_download=True)) # save each file in the dataset to disk for i, example in enumerate(dataset['train']): filename = f'pile_file_{i}.json' with open(filename, 'w') as f: f.write(str(example)) print("Finished saving Pile dataset files to disk.") ```
[ -0.176547110080719, 0.01336456835269928, -0.07301916927099228, 0.5572146773338318, 0.364185094833374, 0.21037419140338898, 0.36855781078338623, 0.13301701843738556, 0.030223362147808075, 0.12114676088094711, -0.2662605047225952, 0.022001158446073532, 0.17310266196727753, 0.07174300402402878, -0.13165205717086792, 0.053785186260938644, -0.039775993674993515, -0.04478325694799423, -0.012328952550888062, -0.04237088933587074, -0.06108992546796799, -0.05788562446832657, -0.1399305909872055, -0.2489333152770996, -0.07761558890342712, -0.20378342270851135, -0.2193768322467804, 0.016116512939333916, -0.09311892092227936, -0.23290878534317017, 0.33147671818733215, 0.1497751921415329, 0.22852371633052826, 0.667899489402771, -0.00011683605407597497, -0.1178189292550087, 0.255600243806839, -0.06669798493385315, -0.12458214908838272, -0.24711962044239044, 0.0014462321996688843, -0.3660031855106354, 0.02095889300107956, -0.33125847578048706, 0.2874210774898529, -0.20010967552661896, 0.21550911664962769, -0.06881555914878845, 0.3620929718017578, 0.29134538769721985, 0.112420454621315, 0.4077335298061371, 0.2998896837234497, 0.05547720566391945, 0.17572903633117676, -0.18939539790153503, -0.04444831982254982, 0.44014739990234375, 0.2579769194126129, -0.02053016796708107, 0.18532933294773102, 0.2570453882217407, 0.08694461733102798, -0.051895469427108765, 0.11623978614807129, 0.21577188372612, 0.13604438304901123, -0.5687707662582397, -0.251761257648468, -0.0003838660195469856, 0.46455127000808716, -0.2507610619068146, -0.4640335738658905, -0.5050816535949707, 0.13571810722351074, -0.1649778187274933, 0.24866822361946106, 0.4194970428943634, -0.22300370037555695, 0.13638746738433838, 0.0012688077986240387, 0.14503824710845947, -0.20726200938224792, 0.47851628065109253, 0.245989590883255, -0.3919602632522583, -0.02980896458029747, 0.020636966452002525, 0.2273176908493042, 0.11275428533554077, 0.34130918979644775, -0.3480786979198456, 0.01571141555905342, 0.19190719723701477, -0.4417533576488495, -0.02529965341091156, -0.1897430717945099, 0.18977737426757812, 0.15223269164562225, 0.045989811420440674, 0.18947932124137878, 0.006126426160335541, -0.1237577497959137, 0.12011350691318512, 0.7173060774803162, 0.12888596951961517, -0.3337618410587311, -0.09099343419075012, 0.34182679653167725, 0.48081839084625244, 0.06660695374011993, -0.1803680658340454, -0.08101442456245422, -0.27243688702583313, 0.36138439178466797, -0.17689159512519836, 0.15160033106803894, -0.17935150861740112, -0.051460765302181244, 0.12663087248802185, -0.00816790759563446, 0.003131754696369171, -0.08649572730064392, 0.21438394486904144, -0.36983105540275574, 0.38502389192581177, 0.11152535676956177, 0.1392313838005066, -0.10412424802780151, -0.1487145721912384, -0.0831194519996643, 0.1594502478837967, -0.1186138466000557, -0.1696879118680954, 0.22398407757282257, -0.3557198643684387, 0.14331310987472534, -0.047233112156391144, 0.21638916432857513, -0.19528350234031677, 0.0036747828125953674, -0.3417930603027344, 0.12240511178970337, 0.31174373626708984, 0.2988232970237732, 0.14543670415878296, -0.1710246354341507, 0.09787376970052719, -0.06209198385477066, 0.1949222981929779, -0.055402107536792755, -0.0862993597984314, -0.06456217169761658, 0.14915621280670166, -0.16109363734722137, 0.00600652489811182, -0.5302463173866272, -0.20286402106285095, 0.157393679022789, 0.09439261257648468, 0.1630719006061554, -0.23786437511444092, 0.18997925519943237, -0.2382175624370575, 0.15152201056480408, 0.41332876682281494, -0.37838655710220337, 0.10847800225019455, -0.3524339199066162, -0.10850372910499573, 0.14140558242797852, 0.39553073048591614, -0.06724312156438828, 0.06312833726406097, -0.3178197741508484, 0.033375486731529236, 0.4291023015975952, -0.1811002790927887, -0.701061487197876, 0.22090384364128113, -0.02052353322505951, 0.1887742429971695, 0.016837745904922485, 0.48441067337989807, 0.20975656807422638, -0.20479080080986023, -0.01817396655678749, 0.25566503405570984, -0.2865704596042633, -0.033467065542936325, -0.30308255553245544, -0.4205188751220703, -0.06733947992324829, 0.2837478518486023, 0.15796923637390137, 0.005387291312217712, 0.038313381373882294, -0.1858973205089569, 0.2892376780509949, 0.3190899193286896, 0.18663541972637177, 0.2570570707321167, 0.2477167844772339, 0.21380376815795898, 0.025253891944885254, -0.18625664710998535, -0.5671400427818298, 0.23773159086704254, -0.22012105584144592, -0.1869676411151886, -0.3831378221511841, -0.2233060896396637, -0.2670931816101074, -0.22089970111846924, -0.10080421715974808, 0.0576944574713707, -0.01988242194056511, -0.17189116775989532, 0.06876792013645172, 0.259677529335022, -0.10010932385921478, 0.38341063261032104, -0.23906193673610687, 0.20060862600803375, -0.3971884250640869, 0.5020409226417542, -0.23245669901371002, -0.31485268473625183, 0.0007882267236709595, -0.37007808685302734, -0.00028029270470142365, -0.2556207776069641, -0.09668615460395813, 0.441226601600647, -0.2169162631034851, 0.20130817592144012, -0.13932698965072632, 0.06341448426246643, 0.38868793845176697, 0.043362006545066833, -0.048084475100040436, 0.14542171359062195, 0.3039243221282959, -0.1802026629447937, -0.3246402144432068, 0.040064528584480286, -0.13017477095127106, 0.01225726306438446, 0.061299651861190796, -0.12865938246250153, 0.13557516038417816, -0.047599174082279205, 0.04610433429479599, 0.1109699159860611, 0.0881364643573761, 0.00006845779716968536, -0.18786031007766724, -0.15799295902252197, -0.3962939381599426, 0.20169979333877563, 0.5191546678543091, -0.09479814022779465, -0.03069193661212921, 0.2581276297569275, 0.22354191541671753, -0.03972630947828293, -0.034728556871414185, 0.04254049062728882, 0.3454110622406006, 0.18103834986686707, 0.13805240392684937, 0.02257746271789074, 0.11779704689979553, -0.17481248080730438, -0.011087030172348022, 0.35815784335136414, -0.02150179073214531, 0.23838555812835693, 0.1466062068939209, 0.0017597563564777374, -0.10665008425712585, -0.14890432357788086, 0.026604264974594116, 0.2183637171983719, -0.1422256976366043, -0.09268972277641296, -0.0426473394036293, -0.3208692967891693, -0.15810547769069672, 0.07431165874004364, -0.13756203651428223, -0.27882468700408936, -0.21895964443683624, 0.5839213728904724, -0.0548943392932415, 0.14751547574996948, -0.1731829047203064, 0.22271476686000824, 0.19677889347076416, 0.08719124644994736, -0.2327602058649063, 0.10917115211486816, -0.22405582666397095, -0.04083837568759918, 0.34913724660873413, 0.052481360733509064, 0.29113784432411194, -0.05836908519268036, -0.19592680037021637, -0.1860138177871704, -0.08905230462551117, -0.03514034301042557, 0.0025524161756038666, 0.38618022203445435, -0.08202359080314636, 0.5015374422073364, -0.008093021810054779, 0.05796205252408981, 0.10160137712955475, -0.15144237875938416, -0.03508761525154114, -0.2179441750049591, 0.1779167801141739, -0.022204985842108727, -0.17404988408088684, -0.41028618812561035, -0.34680646657943726, -0.3825429677963257, 0.20673608779907227, -0.0675046294927597, -0.049282606691122055, -0.19803723692893982, 0.2660368084907532, 0.1483643651008606, 0.10246767103672028, -0.19257229566574097, -0.01776004768908024, -0.5207725763320923, 0.5932230949401855, -0.013933535665273666, -0.4346041679382324, 0.19247613847255707, -0.05348517745733261, -0.3684350848197937, 0.13611453771591187, -0.6471436023712158, -0.20738756656646729, -0.45803162455558777, 0.024304114282131195, -0.0612238384783268, 0.11054065078496933, 0.19002965092658997, -0.40385496616363525, 0.008279003202915192, 0.05420242249965668, -0.038033828139305115, 0.22893235087394714, 0.3440234959125519, 0.42498067021369934, -0.11432528495788574, 0.36431974172592163, 0.263502299785614, 0.4612574279308319, 0.08032682538032532, -0.04845752939581871, 0.29427555203437805, 0.13272462785243988, 0.45488405227661133, -0.01563311368227005, -0.298838347196579, -0.011041544377803802, -0.20541419088840485, -0.15805798768997192, 0.016720250248908997, 0.056208960711956024, -0.1157698705792427, -0.16577813029289246, -0.15054291486740112, -0.3612200915813446, -0.3106517791748047, -0.0667695477604866, 0.23256908357143402, 0.0005857590585947037, 0.19970808923244476, 0.06385184824466705, 0.09910564124584198, -0.19819390773773193, 0.04998532310128212, 0.3967859745025635, 0.07897743582725525, -0.013786667957901955, -0.15551871061325073, 0.14681459963321686, -0.3527267277240753, 0.04152706265449524, 0.006947681307792664, 0.13977256417274475, 0.03973647207021713, 0.19965147972106934, 0.3093019127845764, -0.15252883732318878, 1.0549898147583008, 0.016812702640891075, 0.1677521914243698, -0.07147012650966644, 0.31394511461257935, -0.19598093628883362, -0.10732357949018478, -0.12893694639205933, -0.40092334151268005, 0.4746514856815338, 0.31695473194122314, -0.34481656551361084, 0.07399922609329224, 0.08989794552326202, 0.2482912242412567, -0.1818142831325531, -0.23754464089870453, 0.0130576491355896, -0.42079687118530273, -0.29688283801078796, 0.2543203830718994, 0.30273962020874023, -0.014722339808940887, -0.16231276094913483, -0.2671491801738739, 0.059137798845767975, 0.19408704340457916, -0.05210065096616745, -0.13471317291259766, 0.22638699412345886, -0.00047093629837036133, 0.5537655353546143, 0.15083041787147522, 0.08212544769048691, 0.49108028411865234, 0.6566938757896423, -0.01388568989932537, -0.37121298909187317, 0.12910526990890503, -0.4311533272266388, -0.12994927167892456, 0.4269125461578369, -0.09166907519102097, -0.18952904641628265, 0.055877938866615295, 0.2854389548301697, -0.049360647797584534, 0.24390894174575806, 0.28352174162864685, -0.005793210119009018, -0.3312835097312927, -0.380005806684494, 0.34113800525665283, -0.17272594571113586, 0.06712032854557037, 0.29669132828712463, -0.06111620366573334, -0.08298704028129578, 0.20903751254081726, -0.13694527745246887, 1.052627444267273, -0.07377202063798904, 0.3021585941314697, 0.12214019894599915, -0.4227902293205261, 0.0402216836810112, -0.1667093187570572, 0.05566220358014107, -0.20683464407920837, -0.34394827485084534, -0.09455282986164093, -0.11246044933795929, 0.05389447510242462, 0.42229509353637695, -0.08900506049394608, 0.41686543822288513, -0.23258861899375916, -0.053212832659482956, -0.24164733290672302, 0.20661965012550354, -0.29117611050605774, -0.22443129122257233, -0.28150075674057007, 0.09853716194629669, 0.15384089946746826, 0.36943426728248596, -0.07261454313993454, -0.18412268161773682, -0.0593833290040493, 0.0990225300192833, -0.27594780921936035, 0.16243551671504974, -0.08502183109521866, -0.12691937386989594, -0.3209740221500397, -0.16542667150497437, 0.10985641181468964, 0.27948907017707825, 0.14934834837913513, 0.017420031130313873, -0.046002618968486786, 0.2852427661418915, -0.0950378030538559, -0.06365185976028442, 0.21529340744018555, 0.10309506952762604, 0.2507619559764862, -0.06479000300168991, -0.19969600439071655, -0.002859855070710182, -0.08098055422306061, -0.04371263086795807, -0.05141337215900421, 0.08382096886634827, -0.05499383062124252, -0.1899155080318451, -0.2735324800014496, -0.2954277992248535, 0.02981119602918625, -0.2645210921764374, 0.10127902030944824, 0.26504117250442505, 0.14949610829353333, 0.36367934942245483, -0.22502437233924866, 0.010211512446403503, -0.36981964111328125, 0.6570149660110474, -0.1847257912158966, -0.1705022156238556, 0.3418814241886139, 0.27403122186660767, -0.4087747037410736, -0.12739941477775574, -0.07117179036140442, -0.32953566312789917, -0.375782310962677, 0.3698982894420624, -0.28321728110313416, 0.39736002683639526, -0.17895923554897308, 0.016025107353925705, 0.2576946020126343, -0.15962442755699158, 0.11563850939273834, -0.5554037690162659, -0.37508517503738403, -0.08371305465698242, 0.3900628387928009, 0.33705851435661316, 0.002452373504638672, -0.16792674362659454, 0.23801812529563904, -0.24959705770015717, -0.22534912824630737, 0.3702496886253357, -0.3170033097267151, 0.05953868851065636, 0.08099212497472763, -0.013992175459861755, 0.4005284309387207, -0.17314334213733673, 0.013248447328805923, 0.2886976897716522, -0.015676073729991913, -0.11750123649835587, -0.21250320971012115, 0.1289331316947937, -0.01957937702536583, -0.08152097463607788, 0.07551480829715729, -0.607560932636261, -0.16743555665016174, 0.05169706419110298, 0.044622331857681274, 0.28127843141555786, 0.12492300570011139, -0.08049324154853821, 0.354768842458725, 0.16540572047233582, -0.07837486267089844, 0.18863767385482788, -0.17666372656822205, 0.19028335809707642, 0.3710864782333374, 0.04550793766975403, 0.02739105001091957, 0.02610473334789276, -0.25444862246513367, -0.26249635219573975, 0.08377407491207123, 0.1805591732263565, 0.5747594833374023, -0.2769641876220703, 0.02098245918750763, 0.1777287870645523, 0.32893478870391846, 0.482195109128952, -0.17555426061153412, -0.021586377173662186, 0.34520605206489563, 0.17280422151088715, -0.23696638643741608, 0.07081543654203415, 0.18870213627815247, 0.010885190218687057, -0.11229316890239716, 0.07234353572130203, -0.11332970857620239, 0.021773293614387512, -0.14791446924209595, 0.33722490072250366, 0.5958437919616699, 0.012189473956823349, 0.02019016444683075, 0.23277968168258667, 0.08314456790685654, -0.0013506561517715454, 0.23279961943626404, 0.33953720331192017, 0.0861118733882904, 0.31692907214164734, 0.030941246077418327, -0.08034715056419373, -0.16315704584121704, 0.3151405453681946, -0.3202971816062927, -0.4988069534301758, -0.43849074840545654, 0.41799235343933105, -0.18506677448749542, 0.31219959259033203, 0.08470690250396729, 0.2518789768218994, 0.030319206416606903, -0.16051408648490906, -0.1348746418952942, 0.08635261654853821, 0.1711188554763794, 0.16576139628887177, 0.2445404827594757, -0.1505296677350998, -0.022894635796546936, 0.2066383808851242, 0.19824808835983276, -0.3746604919433594, 0.1255941241979599, 0.3350326716899872, -0.13955451548099518, -0.330760657787323, -0.16363121569156647, -0.048760343343019485, 0.32926300168037415, -0.33156394958496094, -0.054942838847637177, 0.1629645973443985, -0.22692742943763733, -0.047173935920000076, 0.09856382012367249, 0.2810005247592926, 0.18483251333236694, 0.13664565980434418, 0.1664818972349167, 0.274155855178833, -0.064276322722435, -0.07206457853317261, 0.23427672684192657, 0.13496538996696472, 0.19132311642169952, 0.3821891248226166, 0.10306023806333542, -0.2427385449409485, 0.07023774087429047, -0.019863085821270943, 0.13076406717300415, -0.414407342672348, 0.5394225120544434, -0.14021576941013336, -0.16145332157611847, -0.3898354172706604, -0.299539715051651, -0.3803849220275879, -0.20326243340969086, 0.22227297723293304, -0.2665238678455353, 0.13953804969787598, -0.034704677760601044, 0.027375023812055588, -0.24276241660118103, 0.2943703532218933, 0.6415458917617798, -0.054503168910741806, -0.22922828793525696, -0.020859062671661377, -0.6213935017585754, -0.015720397233963013, -0.23078906536102295, 0.05228929966688156, 0.09434404969215393, 0.33238574862480164, -0.1899935007095337, -0.13237784802913666, 0.30735719203948975, -0.014515448361635208, -0.07314187288284302, 0.6645628213882446, -0.3178679943084717, -0.36947429180145264, -0.29946571588516235, 0.16923071444034576, 0.10081794857978821, -0.3349640965461731, 0.1336975395679474, -0.13969625532627106, -0.01808960735797882, 0.07447580993175507, 0.0049429237842559814, -0.08572287857532501, -0.19192790985107422, 0.5205119848251343, -0.06343431025743484, 0.058423709124326706, 0.09438439458608627, -0.14102235436439514, -0.33457639813423157, -0.11197911202907562, 0.06621386110782623, 0.06332137435674667, 0.13124980032444, 0.39713263511657715, -0.39648494124412537, 0.24513724446296692, -0.3250788152217865, 0.05494057759642601, 0.04473349452018738, -0.11059603095054626, 0.03943301737308502, -0.03653429076075554, 0.09904895722866058, 0.1896834820508957, 0.2942498028278351, 0.15052351355552673, -0.09252738952636719, 0.021666139364242554, -0.2913217842578888, -0.18483299016952515, 0.41476064920425415, -0.22398221492767334, -0.22618582844734192, 0.054712846875190735, 0.11591087281703949, 0.031203657388687134, -0.0013815779238939285, -0.41967102885246277, 0.17960095405578613, 0.35473060607910156, -0.1837427020072937, -0.2841864824295044, 0.15072493255138397, -0.14195477962493896, 0.06232693791389465, -0.05219336599111557, 0.15309929847717285, 0.039452023804187775, -0.16300654411315918, 0.13233518600463867, -0.23706111311912537 ]
https://github.com/huggingface/datasets/issues/5604
@mariosasko , it shows nothing in dataset folder ``` du -sh /mnt/nlp/hugging_face/* 20K /mnt/nlp/hugging_face/datasets 4.0K /mnt/nlp/hugging_face/download_pile.py ```
Problems with downloading The Pile
### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2
17
Problems with downloading The Pile ### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2 @mariosasko , it shows nothing in dataset folder ``` du -sh /mnt/nlp/hugging_face/* 20K /mnt/nlp/hugging_face/datasets 4.0K /mnt/nlp/hugging_face/download_pile.py ```
[ -0.1546422690153122, -0.05474703013896942, -0.08510048687458038, 0.5633900761604309, 0.31484082341194153, 0.204816997051239, 0.3925068974494934, 0.12160326540470123, -0.009891565889120102, 0.09371975064277649, -0.23172801733016968, -0.0008945204317569733, 0.17912688851356506, 0.04699454456567764, -0.10437667369842529, -0.011846939101815224, -0.0715939998626709, -0.09425918757915497, -0.15106110274791718, -0.07841325551271439, -0.03492427244782448, -0.04164295643568039, -0.21503666043281555, -0.17260773479938507, -0.057018838822841644, -0.17701436579227448, -0.3075735569000244, 0.07349738478660583, -0.18846441805362701, -0.28093311190605164, 0.3470619320869446, 0.1822403371334076, 0.21176700294017792, 0.6302603483200073, -0.00011482891568448395, -0.049958325922489166, 0.2664792835712433, -0.03339449316263199, -0.044186390936374664, -0.2036495804786682, -0.04760481044650078, -0.3526839017868042, 0.032179467380046844, -0.2572315037250519, 0.29880011081695557, -0.1318422257900238, 0.19693145155906677, -0.008756160736083984, 0.29536792635917664, 0.3129769265651703, 0.14177721738815308, 0.46403956413269043, 0.28353822231292725, -0.013547230511903763, 0.18266013264656067, -0.21247658133506775, -0.048438798636198044, 0.427872896194458, 0.3118736743927002, 0.007875621318817139, 0.0842873752117157, 0.24495816230773926, 0.21045443415641785, 0.03951996564865112, 0.09865802526473999, 0.1925797462463379, 0.1661471128463745, -0.4788897633552551, -0.3335404694080353, 0.061113204807043076, 0.4500918984413147, -0.13522718846797943, -0.42387425899505615, -0.4919441044330597, 0.12393738329410553, -0.07563138008117676, 0.24703925848007202, 0.37324535846710205, -0.1855156272649765, 0.18993210792541504, -0.09667828679084778, 0.1714865118265152, -0.15699052810668945, 0.5173856616020203, 0.22409731149673462, -0.33330094814300537, 0.00022495537996292114, 0.0057845041155815125, 0.19363631308078766, 0.09124486893415451, 0.34029826521873474, -0.2691616117954254, -0.005985499359667301, 0.25006622076034546, -0.38935190439224243, 0.017678916454315186, -0.06623350828886032, 0.2513940930366516, 0.170612633228302, 0.01799338310956955, 0.12250944972038269, -0.03542123734951019, -0.20037168264389038, 0.07437825202941895, 0.7041223645210266, 0.1432603895664215, -0.4254583716392517, -0.010260313749313354, 0.2158627063035965, 0.4685434103012085, 0.05574865639209747, -0.11003319174051285, -0.18873746693134308, -0.30844593048095703, 0.1662333905696869, -0.14843232929706573, 0.11494401097297668, -0.18565525114536285, -0.0955609455704689, -0.008176509290933609, 0.08172094821929932, 0.0037929750978946686, -0.016806790605187416, 0.1952648162841797, -0.45074349641799927, 0.37869584560394287, 0.04355437308549881, 0.06922277063131332, -0.16836559772491455, -0.24274379014968872, -0.1900990605354309, 0.1532054841518402, -0.246101513504982, -0.28151264786720276, 0.20732057094573975, -0.38444072008132935, 0.17404671013355255, -0.04086116701364517, 0.2705630660057068, -0.19654437899589539, -0.0015458464622497559, -0.3062073588371277, 0.11865917593240738, 0.25012826919555664, 0.17030467092990875, 0.14626522362232208, -0.08004139363765717, 0.1821940690279007, -0.05004861205816269, 0.13216634094715118, -0.1473473757505417, -0.13376496732234955, -0.07096142321825027, 0.1776018738746643, -0.23187416791915894, 0.01737203635275364, -0.3938326835632324, -0.15286891162395477, 0.11969967186450958, 0.06328591704368591, 0.08222164958715439, -0.2438463270664215, 0.17127852141857147, -0.23508936166763306, 0.19040435552597046, 0.46346938610076904, -0.3853222727775574, 0.07841388881206512, -0.4504525065422058, -0.173023521900177, 0.15978506207466125, 0.3818438947200775, -0.1103832870721817, 0.05842182785272598, -0.45763903856277466, -0.007078252732753754, 0.4678613245487213, -0.20843340456485748, -0.726794958114624, 0.30227309465408325, -0.09971332550048828, 0.20437856018543243, 0.03364386409521103, 0.44808369874954224, 0.2072117179632187, -0.20542460680007935, 0.008101822808384895, 0.34134432673454285, -0.3274954855442047, -0.14878234267234802, -0.295373797416687, -0.4257280230522156, 0.04233181104063988, 0.22049380838871002, 0.20348356664180756, 0.043779920786619186, 0.12379240244626999, -0.15158052742481232, 0.3217649459838867, 0.42073124647140503, 0.1137538030743599, 0.19291682541370392, 0.17486289143562317, 0.21718554198741913, 0.06832179427146912, -0.16828903555870056, -0.4407038986682892, 0.2736285924911499, -0.276480108499527, -0.10916321724653244, -0.37968385219573975, -0.22384341061115265, -0.35412168502807617, -0.1942828893661499, -0.09524446725845337, 0.04654902219772339, 0.0055552758276462555, -0.18327315151691437, 0.029444575309753418, 0.2531889081001282, 0.04159623384475708, 0.406527578830719, -0.2739432156085968, 0.23671895265579224, -0.39491915702819824, 0.4294949173927307, -0.23938266932964325, -0.2407028079032898, 0.032653339207172394, -0.3282334506511688, -0.040252685546875, -0.2551670968532562, -0.06083151698112488, 0.4204099774360657, -0.20072762668132782, 0.1834448277950287, -0.10095599293708801, 0.05701734870672226, 0.4393209218978882, -0.07151445746421814, -0.027271632105112076, 0.14981377124786377, 0.21597908437252045, -0.17564073204994202, -0.27373579144477844, 0.08226923644542694, -0.15941861271858215, -0.03126955032348633, 0.04862777888774872, -0.0858704000711441, 0.12753644585609436, -0.013976432383060455, 0.06274107843637466, 0.021387435495853424, 0.13519209623336792, 0.023263514041900635, -0.10909580439329147, -0.04008612036705017, -0.34560859203338623, 0.1833353489637375, 0.49348974227905273, -0.05315297469496727, -0.1116822212934494, 0.2071869820356369, 0.1732589602470398, -0.0828711986541748, 0.03662166744470596, 0.0043758973479270935, 0.27138054370880127, 0.21964839100837708, 0.2175297886133194, 0.019569581374526024, 0.07104788720607758, -0.17158327996730804, -0.12002413719892502, 0.3109910488128662, -0.06002910062670708, 0.1626947522163391, 0.09763053059577942, 0.0174747034907341, -0.05124419927597046, -0.10901618003845215, 0.11923415958881378, 0.2805316746234894, -0.2018144428730011, -0.1178862601518631, -0.09235156327486038, -0.41885048151016235, -0.1511046290397644, 0.10518361628055573, -0.18705888092517853, -0.32860690355300903, -0.1884550154209137, 0.38896337151527405, -0.04393996298313141, 0.19796548783779144, -0.27045100927352905, 0.20412036776542664, 0.2586571276187897, 0.14573104679584503, -0.12499173730611801, 0.1753908097743988, -0.2614414393901825, 0.013660833239555359, 0.35306960344314575, 0.055765751749277115, 0.249965637922287, -0.1091279536485672, -0.1361924409866333, -0.141688734292984, -0.22461923956871033, 0.005152280442416668, -0.0023599588312208652, 0.4406941831111908, -0.06103448197245598, 0.41292279958724976, 0.048750072717666626, 0.018814507871866226, 0.14542382955551147, -0.15940839052200317, -0.03472156077623367, -0.2059786319732666, 0.10392002761363983, -0.02197469398379326, -0.1775207817554474, -0.544113039970398, -0.34026584029197693, -0.3619235157966614, 0.16994774341583252, -0.031130351126194, -0.04196004197001457, -0.1858849823474884, 0.27998673915863037, 0.17137065529823303, 0.04756954312324524, -0.1876385509967804, 0.009186957031488419, -0.4870221018791199, 0.5559679865837097, -0.006891366094350815, -0.4257672131061554, 0.12023042887449265, -0.05369424819946289, -0.33894678950309753, 0.15873819589614868, -0.6130843162536621, -0.16985230147838593, -0.4497389793395996, 0.045161522924900055, 0.004129576031118631, 0.029745610430836678, 0.11761073023080826, -0.4438139498233795, -0.012484110891819, 0.03987136483192444, 0.06308664381504059, 0.29095908999443054, 0.2899196743965149, 0.3420475423336029, -0.10363616049289703, 0.31149083375930786, 0.3205912411212921, 0.5434497594833374, 0.09571431577205658, -0.06131306290626526, 0.24020884931087494, 0.05313156545162201, 0.4803961217403412, 0.07521204650402069, -0.2556408941745758, 0.11079196631908417, -0.13014644384384155, -0.06142266094684601, 0.12386159598827362, 0.04752594232559204, -0.16006478667259216, -0.10992514342069626, -0.10235720872879028, -0.38692641258239746, -0.2536545991897583, -0.06416860967874527, 0.12682458758354187, -0.06886222958564758, 0.2525786757469177, 0.00010126084089279175, 0.07264745980501175, -0.26016780734062195, 0.06649632006883621, 0.3046020567417145, 0.056440308690071106, 0.024917636066675186, -0.17600582540035248, 0.21694797277450562, -0.3010827898979187, 0.003875911235809326, 0.017895855009555817, 0.21964505314826965, 0.00334235280752182, 0.11706814169883728, 0.3484375476837158, -0.07352357357740402, 1.0371471643447876, 0.03748460114002228, 0.2451430708169937, -0.04457617551088333, 0.3053874671459198, -0.21355843544006348, -0.15501199662685394, -0.25591427087783813, -0.29152098298072815, 0.5512241125106812, 0.24342508614063263, -0.3060547709465027, 0.03853936865925789, 0.18987131118774414, 0.2308986783027649, -0.14138248562812805, -0.25303593277931213, 0.011057324707508087, -0.3576260209083557, -0.17628610134124756, 0.24759873747825623, 0.3534804880619049, 0.055393967777490616, -0.1958223134279251, -0.2829282283782959, 0.029694141820073128, 0.25156810879707336, -0.04542076215147972, -0.12657389044761658, 0.19296377897262573, 0.0025764591991901398, 0.5484450459480286, 0.21152761578559875, 0.11795114725828171, 0.411861389875412, 0.6997905969619751, -0.0697224885225296, -0.4013458788394928, 0.1239161342382431, -0.4419153928756714, -0.15487462282180786, 0.422107070684433, -0.08762334287166595, -0.1381206512451172, 0.1006813794374466, 0.2450655698776245, -0.04417123645544052, 0.3972627818584442, 0.3679751455783844, -0.005427751690149307, -0.3627152740955353, -0.45613184571266174, 0.2326696366071701, -0.14318472146987915, 0.010645091533660889, 0.4354822635650635, -0.017939630895853043, -0.05782773345708847, 0.18023626506328583, -0.20739109814167023, 1.0483165979385376, -0.11820262670516968, 0.24600856006145477, 0.16583292186260223, -0.3030082583427429, 0.06707674264907837, -0.14684495329856873, 0.034204158931970596, -0.22586765885353088, -0.4263339042663574, -0.0651678815484047, -0.13760040700435638, 0.07391352206468582, 0.4605547785758972, -0.06618756055831909, 0.39311349391937256, -0.1918807178735733, -0.021511506289243698, -0.20795702934265137, 0.17873218655586243, -0.1914057731628418, -0.08957646787166595, -0.147664412856102, 0.12802723050117493, 0.22235628962516785, 0.3501961827278137, -0.10598845779895782, -0.14901979267597198, -0.060673464089632034, 0.04665657877922058, -0.26782751083374023, 0.2030632048845291, -0.1524295210838318, -0.11923733353614807, -0.236727774143219, -0.15988312661647797, 0.15973839163780212, 0.35231661796569824, 0.15182499587535858, 0.09293962270021439, -0.0830073133111, 0.34852784872055054, -0.08639264106750488, -0.10775145143270493, 0.23796314001083374, 0.18190661072731018, 0.27473101019859314, -0.020943641662597656, -0.2707805335521698, -0.01945555955171585, -0.09025324136018753, -0.011928342282772064, 0.017653167247772217, 0.07693110406398773, -0.03506045788526535, -0.2512139678001404, -0.2934951186180115, -0.31781435012817383, 0.09137654304504395, -0.1984272003173828, 0.11485513299703598, 0.27238011360168457, 0.11010447144508362, 0.21388673782348633, -0.09321431070566177, -0.08831754326820374, -0.3404649496078491, 0.635678768157959, -0.15134376287460327, -0.21364708244800568, 0.3047524392604828, 0.33792442083358765, -0.39058998227119446, -0.10867990553379059, -0.14271672070026398, -0.28913724422454834, -0.47279083728790283, 0.20174255967140198, -0.24850253760814667, 0.39965227246284485, -0.15396833419799805, 0.0028684986755251884, 0.26978638768196106, -0.11305512487888336, 0.05139130353927612, -0.5604729652404785, -0.3486942648887634, -0.024749144911766052, 0.19943132996559143, 0.24973025918006897, -0.03578389808535576, -0.22051569819450378, 0.24829193949699402, -0.20708811283111572, -0.25771671533584595, 0.33508625626564026, -0.28993338346481323, 0.06598687171936035, 0.03939810395240784, 0.004544722847640514, 0.37288159132003784, -0.14399734139442444, 0.05189879238605499, 0.22199177742004395, -0.045684151351451874, -0.13779838383197784, -0.15140070021152496, 0.10920041799545288, -0.04848947003483772, -0.08412833511829376, 0.11335192620754242, -0.5297455787658691, -0.19123628735542297, 0.01742527261376381, 0.11784637719392776, 0.2738116979598999, 0.13463273644447327, -0.04747289791703224, 0.37102264165878296, 0.05536870285868645, -0.11585558950901031, 0.2460588812828064, -0.17679020762443542, 0.173574298620224, 0.4026067554950714, 0.06890150904655457, 0.06257264316082001, 0.05214358866214752, -0.162789449095726, -0.21999406814575195, 0.038296714425086975, 0.11385422945022583, 0.5971192121505737, -0.2309202402830124, 0.13207998871803284, 0.13791361451148987, 0.3427221179008484, 0.39731842279434204, -0.1824747771024704, -0.03335103765130043, 0.37722110748291016, 0.19607484340667725, -0.3552995026111603, 0.059244200587272644, 0.20985952019691467, 0.06430591642856598, -0.07395099848508835, 0.04564126953482628, -0.05215534195303917, 0.06626665592193604, -0.11982520669698715, 0.32847315073013306, 0.6069905161857605, 0.043286509811878204, 0.05293361470103264, 0.2835196256637573, 0.11118707060813904, -0.05234673619270325, 0.24604974687099457, 0.33771517872810364, 0.0034821219742298126, 0.2912239730358124, -0.0027803368866443634, -0.13954229652881622, -0.27598756551742554, 0.33026736974716187, -0.2625928223133087, -0.5933709740638733, -0.4532681703567505, 0.5016142129898071, -0.23291492462158203, 0.2705630660057068, 0.06141509488224983, 0.36456653475761414, 0.06261232495307922, -0.16327524185180664, -0.16736051440238953, -0.0019498434849083424, 0.16351494193077087, 0.19732777774333954, 0.27749961614608765, -0.19793176651000977, -0.14065396785736084, 0.14569495618343353, 0.18049851059913635, -0.37375059723854065, 0.1528623402118683, 0.2497846484184265, -0.17866113781929016, -0.4360639750957489, -0.1294398009777069, 0.03450961410999298, 0.27110347151756287, -0.33576932549476624, 0.0594870001077652, 0.12953691184520721, -0.22011645138263702, 0.15857893228530884, 0.1544460952281952, 0.2785536050796509, 0.1352541595697403, 0.17360788583755493, 0.07854808866977692, 0.2772747576236725, -0.06112463399767876, -0.11234985291957855, 0.28519612550735474, 0.14554128050804138, 0.21946880221366882, 0.32241228222846985, 0.11688142269849777, -0.2599799335002899, 0.07001136243343353, -0.011893162503838539, 0.09826149791479111, -0.4294837415218353, 0.6007193326950073, -0.20972807705402374, -0.17722947895526886, -0.36533212661743164, -0.23337581753730774, -0.46118050813674927, -0.18502534925937653, 0.2873569130897522, -0.2920282185077667, 0.11706212162971497, -0.022326873615384102, 0.035324543714523315, -0.22373104095458984, 0.31485694646835327, 0.7435437440872192, 0.0401182658970356, -0.13995090126991272, -0.09573176503181458, -0.7333143353462219, 0.10428273677825928, -0.22620710730552673, 0.024329304695129395, 0.14305877685546875, 0.2645162045955658, -0.1769067496061325, -0.16217297315597534, 0.28633642196655273, 0.07597117125988007, -0.08998528122901917, 0.5838031768798828, -0.35948485136032104, -0.41805708408355713, -0.372467041015625, 0.12388791143894196, 0.03506935387849808, -0.2951435446739197, 0.07750123739242554, -0.1957790106534958, -0.022622928023338318, 0.09558191895484924, -0.003707587718963623, -0.058495230972766876, -0.23232921957969666, 0.41753092408180237, -0.015424428507685661, 0.17591388523578644, 0.14007309079170227, -0.07696230709552765, -0.4224361181259155, -0.233364999294281, 0.015697799623012543, 0.11067821085453033, 0.04227267950773239, 0.285055547952652, -0.3913457989692688, 0.19272801280021667, -0.2450607270002365, 0.0725710466504097, 0.07264669239521027, -0.09667670726776123, -0.03871282935142517, -0.00027100369334220886, -0.027898378670215607, 0.21006421744823456, 0.3648156225681305, 0.14774303138256073, -0.06129860505461693, -0.08164623379707336, -0.0997428297996521, -0.2232990562915802, 0.3606995940208435, -0.3021150529384613, -0.1261931210756302, -0.006775274872779846, 0.08577968925237656, 0.08667909353971481, 0.013822795823216438, -0.46695417165756226, 0.16833947598934174, 0.38685762882232666, -0.13651300966739655, -0.250750869512558, 0.12395630776882172, -0.15163975954055786, 0.07738570868968964, -0.056644611060619354, 0.15126945078372955, 0.012566639110445976, -0.2311292290687561, 0.181832417845726, -0.2076300084590912 ]
https://github.com/huggingface/datasets/issues/5604
@mariosasko ``` root@d20f0ab8f4f8:/mnt/hugging_face# python3 download_pile.py No config specified, defaulting to: the_pile/all Downloading and preparing dataset the_pile/all to /mnt/hugging_face/datasets/the_pile/all/0.0.0/6fadc480ecb32470826cbf5900a9558b791ce55d5e9a0fdc8ad653e7b64bb349... Downloading data files: 0%| | 0/3 [00:00<?, ?it/s] Downloading data: 70%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 10.7G/15.2G [12:09<11:53, 6.36MB/s] Downloading data: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 15.2G/15.2G [22:15<00:00, 7.25MB/s] Downloading data: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 15.2G/15.2G [46:17<00:00, 5.48MB/s] Downloading data: 40%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 6.07G/15.3G [50:49<1:17:02, 1.99MB/s] Traceback (most recent call last):β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 6.07G/15.3G [50:49<25:35:23, 99.9kB/s] File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 444, in _error_catcher yield File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 567, in read data = self._fp_read(amt) if not fp_closed else b"" File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 525, in _fp_read data = self._fp.read(chunk_amt) File "/usr/lib/python3.8/http/client.py", line 459, in read n = self.readinto(b) File "/usr/lib/python3.8/http/client.py", line 503, in readinto n = self.fp.readinto(b) File "/usr/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) ConnectionResetError: [Errno 104] Connection reset by peer During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 816, in generate yield from self.raw.stream(chunk_size, decode_content=True) File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 628, in stream data = self.read(amt=amt, decode_content=decode_content) File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 593, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ self.gen.throw(type, value, traceback) File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 461, in _error_catcher raise ProtocolError("Connection broken: %r" % e, e) urllib3.exceptions.ProtocolError: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_pile.py", line 6, in <module> dataset = load_dataset('the_pile', split='train', cache_dir='datasets', download_config=DownloadConfig(resume_download=True)) File "/usr/local/lib/python3.8/dist-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 945, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/the_pile/6fadc480ecb32470826cbf5900a9558b791ce55d5e9a0fdc8ad653e7b64bb349/the_pile.py", line 192, in _split_generators data_dir = dl_manager.download(_DATA_URLS[self.config.name]) File "/usr/local/lib/python3.8/dist-packages/datasets/download/download_manager.py", line 427, in download downloaded_path_or_paths = map_nested( File "/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py", line 443, in map_nested mapped = [ File "/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py", line 444, in <listcomp> _single_map_nested((function, obj, types, None, True, None)) File "/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py", line 363, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True, None)) for v in pbar] File "/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py", line 363, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True, None)) for v in pbar] File "/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py", line 346, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.8/dist-packages/datasets/download/download_manager.py", line 453, in _download return cached_path(url_or_filename, download_config=download_config) File "/usr/local/lib/python3.8/dist-packages/datasets/utils/file_utils.py", line 182, in cached_path output_path = get_from_cache( File "/usr/local/lib/python3.8/dist-packages/datasets/utils/file_utils.py", line 575, in get_from_cache http_get( File "/usr/local/lib/python3.8/dist-packages/datasets/utils/file_utils.py", line 379, in http_get for chunk in response.iter_content(chunk_size=1024): File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 818, in generate raise ChunkedEncodingError(e) requests.exceptions.ChunkedEncodingError: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer')) ```
Problems with downloading The Pile
### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2
417
Problems with downloading The Pile ### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2 @mariosasko ``` root@d20f0ab8f4f8:/mnt/hugging_face# python3 download_pile.py No config specified, defaulting to: the_pile/all Downloading and preparing dataset the_pile/all to /mnt/hugging_face/datasets/the_pile/all/0.0.0/6fadc480ecb32470826cbf5900a9558b791ce55d5e9a0fdc8ad653e7b64bb349... Downloading data files: 0%| | 0/3 [00:00<?, ?it/s] Downloading data: 70%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 10.7G/15.2G [12:09<11:53, 6.36MB/s] Downloading data: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 15.2G/15.2G [22:15<00:00, 7.25MB/s] Downloading data: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 15.2G/15.2G [46:17<00:00, 5.48MB/s] Downloading data: 40%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 6.07G/15.3G [50:49<1:17:02, 1.99MB/s] Traceback (most recent call last):β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 6.07G/15.3G [50:49<25:35:23, 99.9kB/s] File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 444, in _error_catcher yield File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 567, in read data = self._fp_read(amt) if not fp_closed else b"" File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 525, in _fp_read data = self._fp.read(chunk_amt) File "/usr/lib/python3.8/http/client.py", line 459, in read n = self.readinto(b) File "/usr/lib/python3.8/http/client.py", line 503, in readinto n = self.fp.readinto(b) File "/usr/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) ConnectionResetError: [Errno 104] Connection reset by peer During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 816, in generate yield from self.raw.stream(chunk_size, decode_content=True) File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 628, in stream data = self.read(amt=amt, decode_content=decode_content) File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 593, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__ self.gen.throw(type, value, traceback) File "/usr/local/lib/python3.8/dist-packages/urllib3/response.py", line 461, in _error_catcher raise ProtocolError("Connection broken: %r" % e, e) urllib3.exceptions.ProtocolError: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_pile.py", line 6, in <module> dataset = load_dataset('the_pile', split='train', cache_dir='datasets', download_config=DownloadConfig(resume_download=True)) File "/usr/local/lib/python3.8/dist-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 945, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/the_pile/6fadc480ecb32470826cbf5900a9558b791ce55d5e9a0fdc8ad653e7b64bb349/the_pile.py", line 192, in _split_generators data_dir = dl_manager.download(_DATA_URLS[self.config.name]) File "/usr/local/lib/python3.8/dist-packages/datasets/download/download_manager.py", line 427, in download downloaded_path_or_paths = map_nested( File "/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py", line 443, in map_nested mapped = [ File "/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py", line 444, in <listcomp> _single_map_nested((function, obj, types, None, True, None)) File "/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py", line 363, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True, None)) for v in pbar] File "/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py", line 363, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True, None)) for v in pbar] File "/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py", line 346, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.8/dist-packages/datasets/download/download_manager.py", line 453, in _download return cached_path(url_or_filename, download_config=download_config) File "/usr/local/lib/python3.8/dist-packages/datasets/utils/file_utils.py", line 182, in cached_path output_path = get_from_cache( File "/usr/local/lib/python3.8/dist-packages/datasets/utils/file_utils.py", line 575, in get_from_cache http_get( File "/usr/local/lib/python3.8/dist-packages/datasets/utils/file_utils.py", line 379, in http_get for chunk in response.iter_content(chunk_size=1024): File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 818, in generate raise ChunkedEncodingError(e) requests.exceptions.ChunkedEncodingError: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer')) ```
[ -0.1335558444261551, -0.10500872135162354, -0.07932735234498978, 0.5455506443977356, 0.3495665192604065, 0.1868852823972702, 0.3916177451610565, 0.13425707817077637, -0.07935824245214462, 0.11265601217746735, -0.24107596278190613, 0.014042399823665619, 0.20237833261489868, 0.035876885056495667, -0.16618624329566956, -0.008079816587269306, -0.047173116356134415, -0.061893150210380554, -0.11019880324602127, -0.018058545887470245, -0.0561751127243042, -0.031969137489795685, -0.18718791007995605, -0.23687785863876343, -0.02364586666226387, -0.13661468029022217, -0.26320961117744446, 0.05840437486767769, -0.15844978392124176, -0.2601490616798401, 0.3678058683872223, 0.1854923814535141, 0.1416536122560501, 0.6727839708328247, -0.00011260776955168694, -0.05762694031000137, 0.23535378277301788, -0.014774143695831299, -0.058514997363090515, -0.22097676992416382, -0.1007494330406189, -0.34464383125305176, 0.02291238307952881, -0.2348763644695282, 0.27243489027023315, -0.08622477203607559, 0.14785033464431763, -0.006647646427154541, 0.3701004981994629, 0.25492212176322937, 0.17116668820381165, 0.46212637424468994, 0.25907495617866516, -0.004715282469987869, 0.23397932946681976, -0.2100418210029602, -0.07300793379545212, 0.4754735231399536, 0.33298200368881226, 0.07292105257511139, 0.09632059931755066, 0.28879329562187195, 0.17072659730911255, 0.08006125688552856, 0.1312222182750702, 0.18297770619392395, 0.12370473891496658, -0.48443928360939026, -0.36107340455055237, 0.09722106158733368, 0.4121425449848175, -0.10504063963890076, -0.47833865880966187, -0.572892427444458, 0.0949346199631691, -0.17402654886245728, 0.24001836776733398, 0.3462703824043274, -0.20271363854408264, 0.1278957724571228, -0.10700465738773346, 0.18016764521598816, -0.1402631402015686, 0.46718844771385193, 0.16215039789676666, -0.2923215627670288, -0.046521659940481186, 0.023971430957317352, 0.19331404566764832, 0.07694266736507416, 0.33336693048477173, -0.2331509292125702, -0.0015226644463837147, 0.18446405231952667, -0.37689483165740967, -0.0017239823937416077, -0.08567247539758682, 0.19279780983924866, 0.11940795183181763, 0.03941190615296364, 0.10412827879190445, -0.0032138321548700333, -0.14079627394676208, 0.056859683245420456, 0.7025946378707886, 0.1111808568239212, -0.43546727299690247, 0.01700161024928093, 0.2389996349811554, 0.5215378999710083, 0.06876979768276215, -0.15739226341247559, -0.12117508798837662, -0.3005691170692444, 0.2374323159456253, -0.1353839933872223, 0.11883864551782608, -0.14854395389556885, -0.11021289229393005, -0.011213334277272224, 0.07990507781505585, 0.047043923288583755, -0.03638412803411484, 0.1875670850276947, -0.4184982478618622, 0.4009180963039398, 0.051191218197345734, 0.07328667491674423, -0.1668163388967514, -0.19085371494293213, -0.1547946035861969, 0.12742693722248077, -0.21504738926887512, -0.2288111001253128, 0.1733323037624359, -0.38215240836143494, 0.1624249815940857, -0.047611773014068604, 0.2456352859735489, -0.18112757802009583, -0.00725414976477623, -0.3485414981842041, 0.15236060321331024, 0.27071666717529297, 0.17993971705436707, 0.1774636209011078, -0.09378944337368011, 0.2250063717365265, -0.03615529090166092, 0.10415215790271759, -0.0935571938753128, -0.1424720138311386, -0.08342482894659042, 0.1967802196741104, -0.19225303828716278, 0.020434889942407608, -0.3777121901512146, -0.17817820608615875, 0.1685960739850998, 0.10799162834882736, 0.128325417637825, -0.2783498466014862, 0.1265246570110321, -0.2338743507862091, 0.15274164080619812, 0.48947298526763916, -0.36598026752471924, 0.12335297465324402, -0.4290601909160614, -0.1368911862373352, 0.15031608939170837, 0.366536408662796, -0.11353647708892822, 0.0134181659668684, -0.3966965079307556, -0.0035055726766586304, 0.35261690616607666, -0.2380249947309494, -0.6755240559577942, 0.3089762330055237, -0.08281610161066055, 0.26730120182037354, -0.0009146295487880707, 0.4058459997177124, 0.2026415467262268, -0.19928976893424988, -0.018049053847789764, 0.3451189398765564, -0.31376367807388306, -0.09418027102947235, -0.2757819890975952, -0.40275838971138, -0.05989377573132515, 0.22346635162830353, 0.1637243777513504, -0.0291905514895916, 0.08181944489479065, -0.16419026255607605, 0.31080499291419983, 0.3672580122947693, 0.14581350982189178, 0.21870605647563934, 0.24323037266731262, 0.24095019698143005, 0.01623094454407692, -0.16766542196273804, -0.4024880826473236, 0.28602367639541626, -0.2435114085674286, -0.11366161704063416, -0.3991750180721283, -0.19747808575630188, -0.3667437434196472, -0.1991475224494934, -0.1070251315832138, 0.028314542025327682, 0.019428469240665436, -0.16280582547187805, 0.02858094871044159, 0.20666499435901642, 0.03248538076877594, 0.38420769572257996, -0.2242143750190735, 0.27130192518234253, -0.3994956910610199, 0.3308528661727905, -0.22269892692565918, -0.23082290589809418, 0.02388932555913925, -0.36619529128074646, -0.05622747540473938, -0.24119612574577332, -0.06235475838184357, 0.4543273150920868, -0.16311782598495483, 0.22918732464313507, -0.1878209114074707, 0.05137529969215393, 0.4103040099143982, 0.0159091055393219, -0.07100661844015121, 0.1058553084731102, 0.22122131288051605, -0.15643732249736786, -0.24598416686058044, 0.08769816905260086, -0.1152925118803978, -0.02122511714696884, 0.04021846503019333, -0.09986026585102081, 0.1343858242034912, -0.031792499125003815, 0.04432202875614166, -0.04465299844741821, 0.08008607476949692, 0.053202491253614426, -0.12621232867240906, -0.05778658390045166, -0.3296436071395874, 0.17937606573104858, 0.4565892517566681, -0.027249202132225037, -0.13140547275543213, 0.22368094325065613, 0.17851942777633667, -0.02976510301232338, -0.027973756194114685, 0.04270687699317932, 0.265415757894516, 0.17903923988342285, 0.24430595338344574, 0.04370356351137161, 0.12992098927497864, -0.19174230098724365, -0.05015287548303604, 0.305109441280365, 0.07325999438762665, 0.1606791764497757, 0.11879006028175354, 0.003479141741991043, -0.04135597497224808, -0.1122029721736908, 0.12694954872131348, 0.23718012869358063, -0.20566067099571228, -0.06566490232944489, -0.08293710649013519, -0.39902257919311523, -0.18043479323387146, 0.03482988849282265, -0.1767694056034088, -0.35958269238471985, -0.23071442544460297, 0.46830156445503235, -0.07158905267715454, 0.16415564715862274, -0.28312718868255615, 0.14033479988574982, 0.3064212203025818, 0.12779605388641357, -0.13799133896827698, 0.2083776295185089, -0.2523435950279236, 0.011077199131250381, 0.31537577509880066, -0.0313640832901001, 0.26107242703437805, -0.09644769877195358, -0.12767495214939117, -0.12427953630685806, -0.20242621004581451, 0.03607664257287979, -0.047838397324085236, 0.46492916345596313, 0.003974217921495438, 0.41577816009521484, 0.022618085145950317, 0.0211331844329834, 0.15311378240585327, -0.16238287091255188, -0.028730139136314392, -0.22137242555618286, 0.11507698893547058, -0.004172619432210922, -0.16138751804828644, -0.475182443857193, -0.28988486528396606, -0.3737117052078247, 0.17907626926898956, -0.034725286066532135, -0.059813376516103745, -0.12856930494308472, 0.2848856449127197, 0.13582703471183777, -0.0021089091897010803, -0.16123828291893005, -0.02496097981929779, -0.520880937576294, 0.5441251397132874, -0.009229518473148346, -0.37141039967536926, 0.10134768486022949, -0.047396302223205566, -0.321946918964386, 0.1836712658405304, -0.6357538104057312, -0.22290542721748352, -0.5079670548439026, 0.04903329908847809, -0.03306080773472786, 0.03745156526565552, 0.08566883206367493, -0.44417235255241394, -0.042456455528736115, 0.001472964882850647, 0.05292239040136337, 0.2575426995754242, 0.2934094965457916, 0.3236188292503357, -0.09966304898262024, 0.33572325110435486, 0.344585657119751, 0.5538200736045837, 0.10976876318454742, -0.05221382901072502, 0.28240251541137695, 0.10330450534820557, 0.47345393896102905, 0.08413127064704895, -0.2598138749599457, 0.017760705202817917, -0.19383494555950165, -0.03809802606701851, 0.08115732669830322, 0.045664798468351364, -0.17472003400325775, -0.13766951858997345, -0.07540705054998398, -0.37769615650177, -0.2911607027053833, -0.07328019291162491, 0.10261910408735275, 0.006070244126021862, 0.24851080775260925, 0.07427685707807541, 0.06995856761932373, -0.23934823274612427, -0.0011351518332958221, 0.2619483470916748, 0.09898392111063004, -0.015153016895055771, -0.09632308036088943, 0.21024224162101746, -0.3695773780345917, 0.00798516720533371, 0.05492798984050751, 0.27196067571640015, 0.052900172770023346, 0.08546125888824463, 0.33167898654937744, -0.07315397262573242, 1.1041921377182007, 0.04342050105333328, 0.20715047419071198, -0.053012996912002563, 0.22697466611862183, -0.2826573848724365, -0.1573454886674881, -0.25916579365730286, -0.3602808713912964, 0.5284320712089539, 0.32427486777305603, -0.32964104413986206, 0.09190788120031357, 0.14637723565101624, 0.19098834693431854, -0.11033494025468826, -0.2585204541683197, -0.0006091371178627014, -0.40774449706077576, -0.1746399849653244, 0.23016169667243958, 0.36921489238739014, 0.05061621591448784, -0.18470512330532074, -0.28025317192077637, 0.10264018177986145, 0.27191612124443054, -0.0645274668931961, -0.10264793783426285, 0.1627412587404251, 0.042154643684625626, 0.573468804359436, 0.17856557667255402, 0.08757251501083374, 0.3984159231185913, 0.6926899552345276, -0.02578381821513176, -0.43501710891723633, 0.10101599246263504, -0.40595418214797974, -0.15503749251365662, 0.4555855393409729, -0.055284660309553146, -0.049514830112457275, 0.07876034080982208, 0.27397000789642334, -0.013582708314061165, 0.35825178027153015, 0.37446773052215576, -0.007724005728960037, -0.32329803705215454, -0.4223763942718506, 0.1970379501581192, -0.13311699032783508, 0.0502646267414093, 0.3674376308917999, -0.06632035970687866, -0.07242865860462189, 0.1283864676952362, -0.12467695772647858, 1.002943515777588, -0.11844108998775482, 0.2321527600288391, 0.20990262925624847, -0.37231239676475525, 0.08012741804122925, -0.04447615519165993, 0.07462027668952942, -0.24846802651882172, -0.4493449330329895, -0.03973621129989624, -0.16140322387218475, 0.04433154687285423, 0.3801248073577881, -0.03272222727537155, 0.35183021426200867, -0.20564714074134827, 0.024668434634804726, -0.24433068931102753, 0.16644449532032013, -0.3108401596546173, -0.1576128602027893, -0.1601765900850296, 0.14749573171138763, 0.2044321894645691, 0.3186444640159607, -0.11482642590999603, -0.16009607911109924, -0.05292259156703949, 0.09026221930980682, -0.29428794980049133, 0.1849176585674286, -0.10270196199417114, -0.10858187079429626, -0.20013193786144257, -0.18812869489192963, 0.15924851596355438, 0.2602825462818146, 0.11119264364242554, 0.06083305925130844, -0.08811343461275101, 0.34769758582115173, -0.006198909133672714, -0.10832469910383224, 0.24908702075481415, 0.14565657079219818, 0.28531089425086975, -0.036598771810531616, -0.25451165437698364, -0.008185777813196182, -0.08886419236660004, -0.04909523203969002, 0.03302426636219025, 0.08259296417236328, -0.05389855057001114, -0.2809750437736511, -0.221538245677948, -0.3259849548339844, 0.12562623620033264, -0.25210607051849365, 0.12432584166526794, 0.20298835635185242, 0.11343038827180862, 0.24456244707107544, -0.12809912860393524, -0.13595949113368988, -0.34109586477279663, 0.6256580948829651, -0.1903500258922577, -0.15497003495693207, 0.337268590927124, 0.3598884344100952, -0.42148885130882263, -0.08795393258333206, -0.12063293904066086, -0.33474794030189514, -0.4438481330871582, 0.23287136852741241, -0.2421051412820816, 0.43565690517425537, -0.11307620257139206, -0.013534590601921082, 0.2822384834289551, -0.13656498491764069, 0.10471639037132263, -0.5565922856330872, -0.28995269536972046, -0.09019708633422852, 0.20167285203933716, 0.2805480659008026, -0.07442358881235123, -0.19486616551876068, 0.2061958760023117, -0.23192913830280304, -0.2690616846084595, 0.3452271819114685, -0.2897627353668213, 0.09575071930885315, -0.016996067017316818, -0.05470752343535423, 0.3364968001842499, -0.12422613054513931, 0.06985031068325043, 0.2632209360599518, -0.10037291049957275, -0.16463011503219604, -0.15803542733192444, 0.09989378601312637, -0.05785898119211197, -0.1987503170967102, 0.13257306814193726, -0.5291017293930054, -0.19385197758674622, -0.023449502885341644, 0.13343873620033264, 0.3172222375869751, 0.1252603530883789, -0.07653969526290894, 0.32243770360946655, 0.11933226883411407, -0.048632699996232986, 0.2345307320356369, -0.18614771962165833, 0.1693890243768692, 0.4014971852302551, 0.08483324944972992, 0.04438721016049385, 0.04786764085292816, -0.11471670120954514, -0.1982935667037964, 0.09081144630908966, 0.12160864472389221, 0.607227087020874, -0.2530084252357483, 0.11422095447778702, 0.1684751808643341, 0.3955000340938568, 0.46535688638687134, -0.22766157984733582, -0.025265328586101532, 0.35726138949394226, 0.21789699792861938, -0.29699546098709106, 0.0793159008026123, 0.10088120400905609, 0.06928995251655579, -0.07156381756067276, 0.06082768738269806, -0.020537562668323517, 0.03779354691505432, -0.13961133360862732, 0.3580797612667084, 0.587693989276886, 0.12012123316526413, 0.033581629395484924, 0.3042299747467041, 0.06575813889503479, -0.06644266098737717, 0.30499267578125, 0.31261932849884033, 0.054281700402498245, 0.2881008982658386, 0.08097828924655914, -0.12127719819545746, -0.35525864362716675, 0.3380747139453888, -0.2607247531414032, -0.5905922055244446, -0.4213850796222687, 0.44955897331237793, -0.2297869473695755, 0.2837721109390259, 0.09091435372829437, 0.3153039515018463, 0.008851088583469391, -0.15606021881103516, -0.20629221200942993, 0.03448045626282692, 0.15508884191513062, 0.15073253214359283, 0.24699877202510834, -0.1811121553182602, -0.10558578372001648, 0.18826958537101746, 0.1539120227098465, -0.40294331312179565, 0.15575005114078522, 0.25869038701057434, -0.21251772344112396, -0.4446360468864441, -0.07681039720773697, -0.027895698323845863, 0.3164704740047455, -0.3823438882827759, 0.0133359394967556, 0.16459080576896667, -0.22914056479930878, 0.10662272572517395, 0.12789468467235565, 0.26600614190101624, 0.1338636428117752, 0.1357591301202774, 0.08734849095344543, 0.26923924684524536, -0.02769143506884575, -0.11991803348064423, 0.2833665609359741, 0.12699124217033386, 0.287874698638916, 0.36613819003105164, 0.13212667405605316, -0.2756868004798889, 0.03442256525158882, -0.016857601702213287, 0.14661189913749695, -0.46707621216773987, 0.5552085638046265, -0.21976326406002045, -0.0935593694448471, -0.34278956055641174, -0.20613685250282288, -0.43930110335350037, -0.15055646002292633, 0.30390477180480957, -0.31911274790763855, 0.1501602977514267, 0.002599559724330902, 0.04148253798484802, -0.2047569900751114, 0.3098781406879425, 0.7120797634124756, -0.02064952254295349, -0.16419371962547302, -0.09877816587686539, -0.6488808393478394, 0.10183665156364441, -0.23009777069091797, 0.025465816259384155, 0.12523359060287476, 0.254251092672348, -0.1538696438074112, -0.1472945362329483, 0.2504366338253021, 0.087013840675354, -0.15917335450649261, 0.6003636717796326, -0.3265016973018646, -0.4399559497833252, -0.3614729642868042, 0.08974631130695343, 0.04649125784635544, -0.30198439955711365, 0.08987836539745331, -0.20742374658584595, 0.006959877908229828, 0.06461189687252045, -0.05081447958946228, 0.00035509467124938965, -0.19008924067020416, 0.4564482867717743, 0.02325836382806301, 0.10622891783714294, 0.121973417699337, -0.12546926736831665, -0.43013980984687805, -0.2205791175365448, -0.0011447891592979431, 0.13315078616142273, -0.02440837025642395, 0.3031904101371765, -0.32717782258987427, 0.2225610911846161, -0.2697870433330536, 0.14233019948005676, 0.10120516270399094, -0.04625239595770836, -0.0029417574405670166, -0.015134796500205994, -0.013676054775714874, 0.19943726062774658, 0.34036657214164734, 0.14518162608146667, -0.05987466499209404, -0.06729843467473984, -0.14441248774528503, -0.2776702046394348, 0.38441914319992065, -0.29771867394447327, -0.17923568189144135, -0.021694762632250786, 0.05439957603812218, 0.03510267287492752, 0.013175608590245247, -0.45363056659698486, 0.190125972032547, 0.3937648832798004, -0.14992815256118774, -0.29609477519989014, 0.14356276392936707, -0.1378241777420044, 0.055030159652233124, -0.0700887069106102, 0.2455165982246399, -0.016382034868001938, -0.20830193161964417, 0.12336903810501099, -0.14752128720283508 ]
https://github.com/huggingface/datasets/issues/5604
Users with slow internet speed are doomed (4MB/s). The dataset downloads fine at minimum speed 10MB/s. Also, when the train splits were generated and then I removed the downloads folder to save up disk space, it started redownloading the whole dataset. Is there any way to use the already generated splits instead?
Problems with downloading The Pile
### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2
52
Problems with downloading The Pile ### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2 Users with slow internet speed are doomed (4MB/s). The dataset downloads fine at minimum speed 10MB/s. Also, when the train splits were generated and then I removed the downloads folder to save up disk space, it started redownloading the whole dataset. Is there any way to use the already generated splits instead?
[ -0.2212303876876831, 0.023591652512550354, -0.040609944611787796, 0.5593510866165161, 0.2633415758609772, 0.16378870606422424, 0.5128105878829956, 0.16554446518421173, -0.035118091851472855, 0.1043972373008728, -0.2665165066719055, 0.04112808033823967, 0.12867112457752228, 0.08655699342489243, -0.11717827618122101, -0.051545508205890656, -0.048367734998464584, -0.12812933325767517, -0.16665121912956238, -0.11081875115633011, -0.023726701736450195, -0.08657568693161011, -0.15881860256195068, -0.20358611643314362, -0.17042231559753418, -0.2018994837999344, -0.2847394049167633, 0.1067301481962204, -0.12315693497657776, -0.21627965569496155, 0.33903875946998596, 0.2045198678970337, 0.2395123839378357, 0.6603530645370483, -0.00011629489745246246, -0.027683764696121216, 0.16347172856330872, -0.01487739384174347, -0.019006576389074326, -0.09913447499275208, -0.07998741418123245, -0.2866038680076599, -0.038656435906887054, -0.3042151629924774, 0.3011351227760315, -0.0854710191488266, 0.1773788034915924, -0.005860261619091034, 0.36565250158309937, 0.32326740026474, 0.10869348794221878, 0.3954564929008484, 0.10895781219005585, -0.0074881576001644135, 0.25081244111061096, -0.24085617065429688, -0.09773211926221848, 0.49353694915771484, 0.28514179587364197, 0.0255914106965065, -0.08464644849300385, 0.2225588709115982, 0.2191268801689148, 0.0504005067050457, 0.10802142322063446, 0.19239011406898499, 0.15615856647491455, -0.48229438066482544, -0.3350396752357483, 0.15092718601226807, 0.5014104843139648, -0.10779504477977753, -0.3996551036834717, -0.4783617854118347, 0.06988338381052017, -0.1628206968307495, 0.3240572214126587, 0.38519150018692017, -0.2227325737476349, 0.19760307669639587, -0.05204059183597565, 0.11669456958770752, -0.20301662385463715, 0.5038461089134216, 0.19274958968162537, -0.3005801737308502, 0.048928458243608475, 0.01835590973496437, 0.23783540725708008, 0.18547837436199188, 0.4235527217388153, -0.2352554202079773, 0.03315913304686546, 0.197760209441185, -0.3869785964488983, 0.03136245161294937, -0.12929214537143707, 0.16746088862419128, 0.0934533029794693, 0.10045675933361053, 0.13552287220954895, 0.014348935335874557, -0.14002355933189392, 0.07100424915552139, 0.7636808156967163, 0.1038706973195076, -0.47741636633872986, 0.06223560869693756, 0.25129038095474243, 0.43418973684310913, -0.02043217420578003, -0.13509052991867065, -0.22024954855442047, -0.3064558804035187, 0.2458413988351822, -0.1631452441215515, 0.03454042226076126, -0.15689674019813538, -0.06895320117473602, -0.022171031683683395, -0.0168638676404953, -0.03244825825095177, -0.008933089673519135, 0.17396390438079834, -0.442188560962677, 0.3935772478580475, 0.01156509667634964, 0.0877099260687828, -0.1742985099554062, -0.19148209691047668, -0.1683422029018402, 0.15468548238277435, -0.32748231291770935, -0.16284191608428955, 0.20547020435333252, -0.3636269271373749, 0.10236762464046478, -0.01203424483537674, 0.22041524946689606, -0.19731035828590393, 0.0076896920800209045, -0.35791799426078796, 0.05027322843670845, 0.2402888536453247, 0.17156009376049042, 0.14849263429641724, -0.1586119681596756, 0.2612394690513611, -0.0939796194434166, 0.18405310809612274, -0.20437686145305634, -0.2286016345024109, -0.08868797868490219, 0.14920151233673096, -0.20499268174171448, 0.028990022838115692, -0.32390162348747253, -0.09748844802379608, 0.130727156996727, 0.0877334326505661, 0.04452113062143326, -0.2327597588300705, 0.1861049383878708, -0.23616160452365875, 0.15173164010047913, 0.40248245000839233, -0.42986613512039185, 0.104305699467659, -0.5343831777572632, -0.16410395503044128, 0.28516578674316406, 0.4808884859085083, -0.16811594367027283, 0.1592545062303543, -0.37424635887145996, 0.036450281739234924, 0.5428985953330994, -0.04807048663496971, -0.7166391611099243, 0.26292604207992554, -0.059947434812784195, 0.1875578612089157, 0.040665946900844574, 0.48706480860710144, 0.30058497190475464, -0.20879361033439636, 0.052914462983608246, 0.43904227018356323, -0.31642118096351624, -0.11875677108764648, -0.3220541477203369, -0.44318270683288574, 0.01965741068124771, 0.2926781177520752, 0.304063618183136, 0.044121935963630676, 0.11063806712627411, -0.08855797350406647, 0.298719584941864, 0.3681045174598694, 0.11130080372095108, 0.13487395644187927, 0.18073850870132446, 0.201149582862854, 0.07714115083217621, -0.1708487719297409, -0.4265696406364441, 0.259549081325531, -0.2977944314479828, -0.07942360639572144, -0.2371254414319992, -0.1777178794145584, -0.3788643479347229, -0.2737010419368744, -0.036832716315984726, 0.1721733957529068, -0.02559026889503002, -0.326275110244751, -0.01679413765668869, 0.1817314326763153, 0.012542061507701874, 0.3792836666107178, -0.35461682081222534, 0.24012282490730286, -0.2992008626461029, 0.43227827548980713, -0.2441360205411911, -0.26279789209365845, 0.0025355368852615356, -0.29571133852005005, -0.093548983335495, -0.2351536601781845, -0.07096610963344574, 0.4107176959514618, -0.14022468030452728, 0.20275719463825226, -0.15998786687850952, 0.1351923793554306, 0.43308374285697937, -0.10960222035646439, -0.004404216073453426, 0.09293824434280396, 0.2034052163362503, -0.16352957487106323, -0.3214220106601715, 0.08919830620288849, -0.19628649950027466, -0.05107840895652771, 0.0321308970451355, -0.08261990547180176, 0.07252906262874603, -0.08089571446180344, 0.12490338087081909, 0.06638982892036438, 0.09508009999990463, -0.08269169926643372, -0.12753266096115112, -0.0256480909883976, -0.30394381284713745, 0.1510985791683197, 0.529225766658783, -0.06268101185560226, -0.07761415839195251, 0.23907645046710968, 0.16177484393119812, -0.11041660606861115, 0.0051519908010959625, 0.040072038769721985, 0.2123005986213684, 0.1821814775466919, 0.2774197459220886, 0.042301297187805176, 0.029517777264118195, -0.19399471580982208, -0.034977562725543976, 0.3602112829685211, -0.013160444796085358, 0.19608533382415771, 0.06725434958934784, 0.006907287985086441, -0.08942820876836777, -0.1333829164505005, 0.16804680228233337, 0.29652848839759827, -0.25309818983078003, -0.08997353911399841, -0.08467897772789001, -0.3056192994117737, -0.2308516502380371, 0.056312453001737595, -0.1581398844718933, -0.3370537757873535, -0.14513513445854187, 0.40830135345458984, -0.12133218348026276, 0.24071571230888367, -0.2658160924911499, 0.19420243799686432, 0.21432814002037048, 0.18044888973236084, -0.13574740290641785, 0.11938519775867462, -0.2399572730064392, 0.027388930320739746, 0.3995569348335266, 0.16126669943332672, 0.24934077262878418, -0.10916079580783844, -0.16162124276161194, -0.06835778057575226, -0.12694302201271057, 0.024910887703299522, 0.002692955546081066, 0.4024117588996887, -0.0643443763256073, 0.39358949661254883, 0.02655765414237976, -0.054929010570049286, 0.10044478625059128, -0.1654268205165863, 0.036512382328510284, -0.2228361815214157, 0.05200431868433952, -0.0039711520075798035, -0.15724071860313416, -0.6111012101173401, -0.28479936718940735, -0.3295100927352905, 0.12306703627109528, -0.06332170963287354, 0.0039604427292943, -0.18560335040092468, 0.30352357029914856, 0.14973363280296326, 0.14136247336864471, -0.2349095642566681, -0.01840006187558174, -0.491904616355896, 0.5780395865440369, 0.05102447047829628, -0.3751249611377716, 0.1114153191447258, -0.11655395478010178, -0.41010692715644836, 0.25323477387428284, -0.6033610701560974, -0.0883229449391365, -0.45368316769599915, 0.07324457168579102, 0.00607716478407383, 0.05364527553319931, 0.12496450543403625, -0.4396411180496216, -0.02219220995903015, 0.03239010274410248, 0.11701780557632446, 0.3190886080265045, 0.3148147463798523, 0.35878315567970276, -0.09950851649045944, 0.29630565643310547, 0.29390889406204224, 0.7063814401626587, 0.07066260278224945, -0.04056289419531822, 0.1951143443584442, 0.08100861310958862, 0.4285646975040436, 0.09866809844970703, -0.20035023987293243, 0.14953391253948212, -0.23499439656734467, -0.11204652488231659, 0.10795781016349792, 0.015746135264635086, -0.27857938408851624, -0.08495009690523148, -0.016371339559555054, -0.30935031175613403, -0.33111411333084106, 0.036989688873291016, 0.07681001722812653, 0.0023850277066230774, 0.2315492182970047, 0.03972913324832916, 0.07335813343524933, -0.2276778221130371, 0.10164229571819305, 0.2392537146806717, 0.057552095502614975, -0.061259105801582336, -0.17351430654525757, 0.17631319165229797, -0.33606064319610596, -0.04039211571216583, 0.07325775176286697, 0.15923671424388885, 0.05474312603473663, 0.07938231527805328, 0.3578745126724243, -0.06154927611351013, 0.9806947708129883, -0.024248484522104263, 0.14979934692382812, -0.032729022204875946, 0.41779977083206177, -0.1365325152873993, -0.17893663048744202, -0.2704394459724426, -0.2985953986644745, 0.5945380926132202, 0.18718059360980988, -0.34327757358551025, 0.005965970456600189, 0.26624420285224915, 0.21525409817695618, -0.15542460978031158, -0.27844032645225525, 0.025133349001407623, -0.3510357141494751, -0.14614079892635345, 0.32296931743621826, 0.3456600308418274, 0.07299824059009552, -0.24779494106769562, -0.2795189619064331, 0.11405164748430252, 0.2966928482055664, 0.020847298204898834, -0.08930587768554688, 0.18600188195705414, -0.03310982882976532, 0.5578551888465881, 0.17731009423732758, 0.12987495958805084, 0.4489879906177521, 0.7177978157997131, -0.05605262145400047, -0.36383411288261414, 0.1684572696685791, -0.47042304277420044, -0.11804068833589554, 0.5005143284797668, -0.07183127850294113, -0.17470504343509674, 0.1081094890832901, 0.21021109819412231, -0.024169545620679855, 0.3965907096862793, 0.3148583471775055, -0.10543698072433472, -0.41636398434638977, -0.4834137260913849, 0.21482640504837036, -0.09736871719360352, 0.01932370662689209, 0.41013139486312866, -0.11905275285243988, -0.04035894572734833, 0.18271157145500183, -0.20584739744663239, 1.1201560497283936, -0.1247132271528244, 0.19206829369068146, 0.1610606461763382, -0.3152978718280792, 0.00596097856760025, -0.25956088304519653, 0.05897602438926697, -0.28188592195510864, -0.3933834135532379, -0.07177788764238358, -0.13599367439746857, 0.08356325328350067, 0.4741227626800537, -0.03434934467077255, 0.34728074073791504, -0.19988416135311127, 0.02747976779937744, -0.2722603976726532, 0.18088363111019135, -0.18711744248867035, -0.14597542583942413, -0.10341155529022217, 0.08919095247983932, 0.19819079339504242, 0.2856982946395874, -0.07816768437623978, -0.1872018575668335, -0.11614274233579636, 0.010894633829593658, -0.33758601546287537, 0.19697780907154083, -0.0735178142786026, -0.07149644196033478, -0.235983744263649, -0.13587822020053864, 0.2040206491947174, 0.2529856562614441, 0.10891297459602356, -0.0005582296289503574, -0.07315217703580856, 0.41001805663108826, -0.10515476763248444, -0.0804801881313324, 0.2859611511230469, 0.17557741701602936, 0.3261142671108246, 0.0037577003240585327, -0.27220848202705383, -0.007708502933382988, -0.12619349360466003, -0.06080952286720276, 0.011859983205795288, 0.03160275146365166, 0.1157069206237793, -0.2901066243648529, -0.17976532876491547, -0.2275293618440628, 0.04215245693922043, -0.2703670263290405, 0.09941445291042328, 0.203544482588768, 0.1579858362674713, 0.3807750344276428, -0.15001589059829712, -0.07814288884401321, -0.3470245897769928, 0.569163978099823, -0.06902417540550232, -0.13557277619838715, 0.3002239167690277, 0.32023876905441284, -0.4159677028656006, -0.12999999523162842, -0.07535046339035034, -0.2762554883956909, -0.5865585803985596, 0.2518985867500305, -0.29056769609451294, 0.3614027500152588, -0.1387021541595459, 0.004795207642018795, 0.2993777394294739, -0.08095972239971161, 0.003020152449607849, -0.48204898834228516, -0.30922049283981323, -0.00010350719094276428, 0.24633148312568665, 0.29966989159584045, -0.18593013286590576, -0.12276628613471985, 0.183709055185318, -0.15890087187290192, -0.24448728561401367, 0.3363812565803528, -0.24889931082725525, 0.11127854883670807, -0.07737360894680023, -0.05290612578392029, 0.3405299782752991, -0.13569417595863342, 0.018091000616550446, 0.2060358077287674, -0.03672344982624054, -0.11607479304075241, -0.20713350176811218, 0.1304609775543213, -0.03104873187839985, -0.14124806225299835, 0.07924956828355789, -0.5028394460678101, -0.21846625208854675, 0.012518450617790222, 0.13813477754592896, 0.28407520055770874, 0.11730244755744934, -0.06242629885673523, 0.46773192286491394, 0.08702796697616577, -0.19675549864768982, 0.20894008874893188, -0.16179265081882477, 0.2075716257095337, 0.35217681527137756, 0.08315028250217438, 0.07647223025560379, 0.03693653643131256, -0.12567764520645142, -0.2309724986553192, 0.15546022355556488, 0.14344897866249084, 0.5612725019454956, -0.1999349594116211, 0.09224164485931396, 0.1795469969511032, 0.30355143547058105, 0.5434659719467163, -0.1574660986661911, -0.08098908513784409, 0.347972571849823, 0.17951451241970062, -0.34131327271461487, 0.0806853324174881, 0.2038721889257431, -0.006852336227893829, -0.10746874660253525, 0.04794730991125107, -0.015590041875839233, 0.054416850209236145, -0.1797998547554016, 0.2532767653465271, 0.46111586689949036, 0.07487428188323975, 0.11828716099262238, 0.3890480697154999, 0.09407512843608856, -0.006749935448169708, 0.29350319504737854, 0.26787757873535156, 0.02232193574309349, 0.2931288480758667, 0.01036200299859047, -0.1423228234052658, -0.2547430992126465, 0.3674694299697876, -0.27081987261772156, -0.5932825803756714, -0.5040817260742188, 0.4845384359359741, -0.27033236622810364, 0.2595544457435608, 0.07486600428819656, 0.343683660030365, 0.01596032828092575, -0.14073807001113892, -0.2390061616897583, -0.05247192457318306, 0.15491430461406708, 0.21817301213741302, 0.2323426753282547, -0.191242516040802, -0.16541129350662231, 0.17653889954090118, 0.12679538130760193, -0.27913013100624084, 0.18758870661258698, 0.27033331990242004, -0.14336347579956055, -0.3622837960720062, -0.18728744983673096, -0.025830253958702087, 0.31522849202156067, -0.34168878197669983, -0.01983596570789814, 0.02941388450562954, -0.24866560101509094, 0.11373695731163025, 0.09588982164859772, 0.21665999293327332, 0.11770078539848328, 0.12094065546989441, 0.012024331837892532, 0.3221065402030945, -0.010334350168704987, -0.06325873732566833, 0.2933114767074585, 0.1887516975402832, 0.15609504282474518, 0.3373625576496124, 0.050839535892009735, -0.24993959069252014, 0.07213737070560455, -0.06989631056785583, 0.1257668137550354, -0.38433656096458435, 0.6109151840209961, -0.14408470690250397, -0.14455772936344147, -0.3231474757194519, -0.26719483733177185, -0.33489876985549927, -0.1783505380153656, 0.27450376749038696, -0.351430207490921, 0.09384121000766754, -0.002331480383872986, 0.016217321157455444, -0.2005707025527954, 0.4063540995121002, 0.6779578328132629, -0.055805858224630356, -0.16991901397705078, -0.07758897542953491, -0.6531817317008972, 0.08613160252571106, -0.2842031419277191, 0.09250959753990173, 0.1515234261751175, 0.3426043689250946, -0.2074327915906906, -0.06250511109828949, 0.3176720440387726, 0.09387541562318802, -0.10126882791519165, 0.6471821665763855, -0.37017133831977844, -0.322141170501709, -0.34393027424812317, 0.09424379467964172, -0.0028835460543632507, -0.37980279326438904, 0.1096172034740448, -0.10532917082309723, -0.07205019146203995, 0.1572362780570984, -0.1644270420074463, 0.03933347016572952, -0.17741234600543976, 0.4449726939201355, -0.022532187402248383, 0.2039835900068283, 0.17007113993167877, -0.046458665281534195, -0.44448477029800415, -0.3068975508213043, 0.00711638480424881, 0.06105725094676018, 0.0630725771188736, 0.2826794981956482, -0.3439490795135498, 0.2867431044578552, -0.2672223746776581, 0.09093014895915985, 0.06621566414833069, -0.03787991404533386, -0.04203275591135025, -0.04184512048959732, -0.043473631143569946, 0.27892598509788513, 0.34710395336151123, 0.15224331617355347, -0.08706243336200714, -0.10226242989301682, -0.1766737401485443, -0.25362586975097656, 0.3757624626159668, -0.26810944080352783, -0.1597951352596283, -0.10410916805267334, 0.07481765002012253, 0.18304631114006042, 0.08298846334218979, -0.4175424575805664, 0.15102893114089966, 0.35619688034057617, -0.18565328419208527, -0.2245294153690338, 0.06006534770131111, -0.08390675485134125, 0.0790388435125351, -0.06207447126507759, 0.14395034313201904, -0.03499632328748703, -0.2688184380531311, 0.1241150051355362, -0.21242713928222656 ]
https://github.com/huggingface/datasets/issues/5604
@sentialx @mariosasko , anytime on my above script , am I downloading and saving dataset correctly . Please suggest :)
Problems with downloading The Pile
### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2
20
Problems with downloading The Pile ### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2 @sentialx @mariosasko , anytime on my above script , am I downloading and saving dataset correctly . Please suggest :)
[ -0.2253861427307129, 0.005648359656333923, -0.06983593851327896, 0.6201370358467102, 0.279148668050766, 0.1703139990568161, 0.38560402393341064, 0.12183091044425964, -0.0490570068359375, 0.042198941111564636, -0.2723578214645386, -0.015813905745744705, 0.20061561465263367, 0.02020542323589325, -0.12111436575651169, 0.03552166372537613, -0.037614498287439346, -0.1134914979338646, -0.17844392359256744, -0.08770042657852173, -0.08130847662687302, -0.04421128332614899, -0.22867929935455322, -0.1612056940793991, -0.05591302365064621, -0.2511669099330902, -0.26995691657066345, 0.037420183420181274, -0.12214246392250061, -0.20621362328529358, 0.3072209060192108, 0.21771681308746338, 0.24382144212722778, 0.5911845564842224, -0.00011700926552293822, -0.13150812685489655, 0.23491743206977844, -0.06765560060739517, -0.03723464161157608, -0.14895139634609222, -0.10625364631414413, -0.30523157119750977, -0.026124898344278336, -0.29412537813186646, 0.2703179121017456, -0.12345847487449646, 0.21665053069591522, -0.020755335688591003, 0.3252619206905365, 0.3388209939002991, 0.1301587074995041, 0.41519472002983093, 0.30039724707603455, 0.04933292418718338, 0.2100169062614441, -0.24841231107711792, -0.05417998880147934, 0.4607568681240082, 0.2558133900165558, 0.06982716172933578, 0.09995049238204956, 0.23888185620307922, 0.18995076417922974, 0.014033306390047073, 0.13142332434654236, 0.21676240861415863, 0.1483621448278427, -0.5074781775474548, -0.3189065158367157, 0.05950801074504852, 0.5666469931602478, -0.18887121975421906, -0.46297138929367065, -0.42546284198760986, 0.12062303721904755, -0.1673981249332428, 0.286532461643219, 0.3922448754310608, -0.16775502264499664, 0.19908210635185242, -0.036947038024663925, 0.14679346978664398, -0.20820076763629913, 0.5225045084953308, 0.2263607382774353, -0.3523308038711548, -0.019069742411375046, 0.023925811052322388, 0.06861089169979095, 0.09772448241710663, 0.4211632013320923, -0.4067273736000061, -0.0006511005340144038, 0.20609521865844727, -0.4292696714401245, 0.0406033918261528, -0.18927429616451263, 0.25816452503204346, 0.1315992921590805, 0.06298096477985382, 0.16013619303703308, 0.046906303614377975, -0.16477946937084198, 0.08480412513017654, 0.76398104429245, 0.09701640158891678, -0.3608250319957733, 0.028277307748794556, 0.24248497188091278, 0.404506117105484, -0.01483415812253952, -0.12889333069324493, -0.16820062696933746, -0.3036549389362335, 0.30713415145874023, -0.14649346470832825, 0.14886295795440674, -0.20634496212005615, -0.06048606336116791, 0.05752040445804596, 0.055868297815322876, -0.06305058300495148, -0.07660941779613495, 0.19935455918312073, -0.4698139429092407, 0.3270776867866516, 0.03975941985845566, 0.10014952719211578, -0.1491360366344452, -0.24017691612243652, -0.14518976211547852, 0.17479711771011353, -0.20335690677165985, -0.24355795979499817, 0.14968247711658478, -0.35123273730278015, 0.11357719451189041, -0.07938532531261444, 0.2093367874622345, -0.222115620970726, -0.030665162950754166, -0.3784489929676056, 0.12271346896886826, 0.25160932540893555, 0.2589350938796997, 0.1425083875656128, -0.17764177918434143, 0.19305191934108734, -0.020602233707904816, 0.2307143211364746, -0.11402344703674316, -0.10918817669153214, -0.025500493124127388, 0.16145844757556915, -0.15898199379444122, 0.024594957008957863, -0.4377211034297943, -0.16342982649803162, 0.21445368230342865, 0.046938590705394745, 0.0778498649597168, -0.268276572227478, 0.17864003777503967, -0.2709951400756836, 0.11568915843963623, 0.42841628193855286, -0.3896440267562866, 0.13443832099437714, -0.3810632526874542, -0.19669201970100403, 0.2633274793624878, 0.4186205267906189, -0.10206092894077301, 0.10710915923118591, -0.38313451409339905, 0.024191617965698242, 0.5938275456428528, -0.1593904048204422, -0.7208989858627319, 0.2445615977048874, -0.014770112931728363, 0.153181791305542, -0.02679392322897911, 0.48000943660736084, 0.2849324941635132, -0.23963309824466705, -0.005112551152706146, 0.3317093253135681, -0.25846201181411743, -0.11652521789073944, -0.3220665752887726, -0.34911108016967773, 0.018599191680550575, 0.20324839651584625, 0.22535398602485657, 0.039307739585638046, 0.11037185788154602, -0.1930980384349823, 0.31632766127586365, 0.41464611887931824, 0.1447708159685135, 0.17912501096725464, 0.17522761225700378, 0.18757109344005585, 0.08036831021308899, -0.150152325630188, -0.47454261779785156, 0.20566600561141968, -0.30020615458488464, -0.16613516211509705, -0.3109414279460907, -0.18156054615974426, -0.29457104206085205, -0.21826164424419403, -0.10919569432735443, 0.17116232216358185, -0.019985564053058624, -0.20518839359283447, 0.0015088170766830444, 0.20372331142425537, 0.013339988887310028, 0.449290007352829, -0.32676488161087036, 0.2415148764848709, -0.3208855986595154, 0.4122892916202545, -0.2705044746398926, -0.278421550989151, 0.06817435473203659, -0.3723331093788147, -0.009235326200723648, -0.2462320476770401, -0.11618787050247192, 0.4167480766773224, -0.17079225182533264, 0.19121071696281433, -0.20770558714866638, 0.059668831527233124, 0.43307381868362427, -0.0345335528254509, 0.0006418861448764801, 0.0588308684527874, 0.2793939709663391, -0.20822134613990784, -0.2703678607940674, 0.10598397254943848, -0.1251792460680008, -0.10150088369846344, 0.04249954968690872, -0.12380380183458328, 0.0880422592163086, -0.06035229563713074, 0.07925339788198471, 0.060455240309238434, 0.05742126330733299, -0.010180545039474964, -0.13267919421195984, -0.08033398538827896, -0.3345022201538086, 0.18306556344032288, 0.5012191534042358, -0.09032819420099258, -0.0651000440120697, 0.23795855045318604, 0.18582019209861755, -0.09999875724315643, 0.028255639597773552, -0.02132292091846466, 0.29517048597335815, 0.17978516221046448, 0.22084754705429077, 0.015941200777888298, 0.12563186883926392, -0.1783168911933899, -0.03775215893983841, 0.3431837260723114, -0.051316503435373306, 0.21194583177566528, 0.07320494949817657, 0.025077082216739655, -0.04462927207350731, -0.06318578124046326, 0.13244503736495972, 0.27862298488616943, -0.2621431350708008, -0.12166790664196014, -0.04794333502650261, -0.3429802656173706, -0.17819947004318237, 0.1439538598060608, -0.08031288534402847, -0.33742281794548035, -0.21373984217643738, 0.4580962359905243, -0.06913895905017853, 0.22939449548721313, -0.2571081221103668, 0.14798632264137268, 0.246923565864563, 0.1481001377105713, -0.04851844534277916, 0.19766423106193542, -0.26709794998168945, 0.0027745813131332397, 0.3940736949443817, 0.11035075783729553, 0.2846200168132782, -0.1124926507472992, -0.0989864394068718, -0.18299412727355957, -0.09401272237300873, 0.04257715493440628, 0.05288664251565933, 0.38218411803245544, -0.12433184683322906, 0.3779459595680237, 0.04864749312400818, 0.08609595894813538, 0.10833024233579636, -0.13863414525985718, -0.006663668900728226, -0.19451352953910828, 0.0952838808298111, -0.10739532858133316, -0.12486045807600021, -0.5422288179397583, -0.38151809573173523, -0.29529234766960144, 0.05470085144042969, -0.0286131352186203, -0.011854635551571846, -0.2337629795074463, 0.2532885670661926, 0.07449007034301758, 0.08628667891025543, -0.1794208586215973, -0.03037380240857601, -0.4585868716239929, 0.5876205563545227, 0.0036631114780902863, -0.4540538191795349, 0.12202910333871841, -0.07842694222927094, -0.35808265209198, 0.20846864581108093, -0.5561359524726868, -0.17501074075698853, -0.35069358348846436, 0.052162736654281616, -0.02067137323319912, 0.06583132594823837, 0.13327021896839142, -0.44169551134109497, 0.015011496841907501, 0.04796937108039856, 0.08366920053958893, 0.30294322967529297, 0.26277196407318115, 0.3446063995361328, -0.04251847416162491, 0.3326473832130432, 0.21540051698684692, 0.584466814994812, 0.12638916075229645, -0.11757971346378326, 0.24162858724594116, 0.03777049481868744, 0.4032376706600189, 0.10638107359409332, -0.18856468796730042, 0.09322802722454071, -0.1653648018836975, -0.10043301433324814, 0.10744227468967438, 0.005832981318235397, -0.2175975888967514, -0.11311531066894531, -0.10226467996835709, -0.4336709976196289, -0.2963745892047882, -0.04364514350891113, 0.11295433342456818, 0.007452165707945824, 0.2916020452976227, 0.03718101978302002, 0.099545419216156, -0.27613523602485657, 0.07263253629207611, 0.30831092596054077, 0.06867832690477371, -0.05628690868616104, -0.13980598747730255, 0.18896818161010742, -0.3388573229312897, 0.06318669766187668, 0.02196381986141205, 0.23101797699928284, 0.0769338458776474, 0.1346142590045929, 0.3464551568031311, -0.08103208243846893, 0.964668869972229, -0.045351531356573105, 0.1684383898973465, -0.0619141161441803, 0.3698374629020691, -0.1208997517824173, -0.16976365447044373, -0.2442319095134735, -0.27899089455604553, 0.4992009699344635, 0.1662478893995285, -0.32496678829193115, 0.07187166810035706, 0.16101747751235962, 0.16735242307186127, -0.17852838337421417, -0.34093883633613586, 0.03561714291572571, -0.3408869206905365, -0.2180895209312439, 0.24580226838588715, 0.3165150284767151, 0.017991788685321808, -0.21969428658485413, -0.2982267737388611, 0.02475537545979023, 0.34130457043647766, 0.014877662062644958, -0.1397061049938202, 0.22199244797229767, -0.03100236877799034, 0.6100679636001587, 0.1439289003610611, 0.09792716801166534, 0.48885244131088257, 0.6562994122505188, -0.03420707583427429, -0.35067787766456604, 0.12513881921768188, -0.5080163478851318, -0.14028456807136536, 0.38332802057266235, -0.11289907991886139, -0.21764910221099854, 0.07049223780632019, 0.21364396810531616, 0.000385824590921402, 0.324935644865036, 0.3415313959121704, -0.018223576247692108, -0.4332149922847748, -0.4595225155353546, 0.24813802540302277, -0.12240241467952728, -0.018377572298049927, 0.39916786551475525, -0.11045640707015991, -0.09603839367628098, 0.14783687889575958, -0.16390231251716614, 1.0780731439590454, -0.13159877061843872, 0.21739666163921356, 0.16073033213615417, -0.344105064868927, -0.008419662714004517, -0.22859026491641998, 0.014190267771482468, -0.3371579647064209, -0.3963499963283539, -0.10127349197864532, -0.1527610868215561, 0.06133392080664635, 0.4900057315826416, -0.06086859107017517, 0.4326728880405426, -0.21318736672401428, 0.028981808573007584, -0.2502702474594116, 0.20089133083820343, -0.18567903339862823, -0.11025246977806091, -0.13269904255867004, 0.10007680952548981, 0.17250266671180725, 0.34756287932395935, -0.13173764944076538, -0.17662294209003448, -0.05730148032307625, 0.05147431790828705, -0.286227285861969, 0.204721599817276, -0.1083269864320755, -0.09055793285369873, -0.2757911682128906, -0.1395208239555359, 0.15844623744487762, 0.3097626566886902, 0.12314651906490326, 0.03839988261461258, -0.043061744421720505, 0.3159283399581909, -0.04534614086151123, -0.03295748680830002, 0.21739602088928223, 0.19170048832893372, 0.27116793394088745, -0.029755793511867523, -0.21784724295139313, -0.0338672436773777, -0.08443155884742737, 0.02045932412147522, 0.028545379638671875, 0.030282605439424515, 0.058487195521593094, -0.30670228600502014, -0.3027970790863037, -0.2762197256088257, 0.01905607432126999, -0.18960893154144287, 0.11031564325094223, 0.2893497943878174, 0.17879492044448853, 0.3870193660259247, -0.12135060131549835, -0.03745514899492264, -0.3665323853492737, 0.6232925057411194, -0.08763641119003296, -0.16427145898342133, 0.35331398248672485, 0.26979535818099976, -0.443620502948761, -0.08850912749767303, -0.11804051697254181, -0.33957159519195557, -0.46840205788612366, 0.19268807768821716, -0.2843271493911743, 0.4582219421863556, -0.1835172474384308, 0.06338466703891754, 0.2885465621948242, -0.09203622490167618, 0.07706877589225769, -0.52777099609375, -0.30584681034088135, -0.06902332603931427, 0.26421260833740234, 0.27484795451164246, -0.08793822675943375, -0.23997589945793152, 0.24965310096740723, -0.20957662165164948, -0.2387070655822754, 0.26213473081588745, -0.23917235434055328, 0.06707772612571716, 0.07358448207378387, 0.05750459432601929, 0.3072471022605896, -0.16121280193328857, 0.031239792704582214, 0.23781739175319672, -0.04443216323852539, -0.12712571024894714, -0.1439075469970703, 0.12752975523471832, -0.0064520277082920074, -0.12753668427467346, 0.04352607578039169, -0.5729324221611023, -0.20484387874603271, 0.005177676677703857, 0.047364749014377594, 0.27045738697052, 0.12456905841827393, -0.09275583177804947, 0.4274277985095978, 0.060934603214263916, -0.14264480769634247, 0.2583000659942627, -0.16727839410305023, 0.22522729635238647, 0.36057934165000916, 0.08501765131950378, 0.09585816413164139, 0.023346468806266785, -0.21275991201400757, -0.2524324655532837, 0.11600323766469955, 0.1333475261926651, 0.5726111531257629, -0.2775038480758667, 0.09306707978248596, 0.19388949871063232, 0.3281714916229248, 0.4892461597919464, -0.20224091410636902, -0.05698927491903305, 0.2910395860671997, 0.17946374416351318, -0.31268012523651123, 0.05805255100131035, 0.20190398395061493, 0.041795216500759125, -0.150705486536026, 0.04088165983557701, -0.030518829822540283, 0.0736529529094696, -0.14389869570732117, 0.29669567942619324, 0.5681295394897461, 0.030874919146299362, 0.03306031972169876, 0.2231426239013672, 0.09837141633033752, 0.07111616432666779, 0.32072970271110535, 0.3339402675628662, -0.025165528059005737, 0.28330785036087036, 0.05737272650003433, -0.1365574151277542, -0.19358764588832855, 0.34732869267463684, -0.27866289019584656, -0.6610251665115356, -0.41269350051879883, 0.4973892569541931, -0.26881638169288635, 0.2625722885131836, 0.10166680812835693, 0.2465868443250656, 0.12222769856452942, -0.16368386149406433, -0.19631612300872803, 0.019590411335229874, 0.13141268491744995, 0.20272228121757507, 0.23006880283355713, -0.19905057549476624, -0.07108858227729797, 0.137328639626503, 0.10432994365692139, -0.31577950716018677, 0.1586359441280365, 0.30502671003341675, -0.14326368272304535, -0.3380146622657776, -0.06705255806446075, -0.030097056180238724, 0.2735770046710968, -0.35758405923843384, 0.05609479546546936, 0.10507680475711823, -0.1640665978193283, 0.07852628827095032, 0.11170157790184021, 0.2751286029815674, 0.19406388700008392, 0.1849164217710495, 0.052320316433906555, 0.3485731780529022, -0.04242434352636337, -0.06883026659488678, 0.300098717212677, 0.16796238720417023, 0.17871053516864777, 0.37131190299987793, 0.0976874977350235, -0.22922293841838837, 0.13191044330596924, 0.006800806149840355, 0.09022290259599686, -0.3742655813694, 0.5769360065460205, -0.17691785097122192, -0.20424561202526093, -0.3679516613483429, -0.2722857892513275, -0.36408549547195435, -0.12251260876655579, 0.30896860361099243, -0.2897425889968872, 0.14307349920272827, -0.014420263469219208, 0.01740157976746559, -0.17449232935905457, 0.35131585597991943, 0.6979345679283142, 0.023580847308039665, -0.22786560654640198, -0.058943480253219604, -0.694726824760437, 0.121065154671669, -0.24961155652999878, 0.07580851763486862, 0.13259674608707428, 0.2881214916706085, -0.1633746176958084, -0.1394025981426239, 0.3337833285331726, -0.004485283046960831, -0.10754667222499847, 0.6711235046386719, -0.3677975833415985, -0.41085439920425415, -0.35067060589790344, 0.10723342001438141, 0.02849063277244568, -0.3625624477863312, 0.1666330099105835, -0.18782486021518707, -0.03902306407690048, 0.034705594182014465, -0.0506216436624527, -0.02893061190843582, -0.2173243761062622, 0.5143932104110718, -0.02073461189866066, 0.2277851551771164, 0.11955517530441284, -0.050378333777189255, -0.33778810501098633, -0.19414778053760529, 0.048357609659433365, 0.10454815626144409, 0.0430566631257534, 0.2837356925010681, -0.33276793360710144, 0.24135564267635345, -0.23126928508281708, 0.03878019377589226, 0.024702362716197968, -0.14245030283927917, 0.004498571157455444, -0.0929797887802124, 0.03918600082397461, 0.19164462387561798, 0.3373676538467407, 0.11141423881053925, -0.07699854671955109, -0.03591759130358696, -0.20664235949516296, -0.21661898493766785, 0.35870426893234253, -0.2292260378599167, -0.12753647565841675, -0.058785926550626755, 0.09134407341480255, 0.09991343319416046, 0.042267896234989166, -0.4541383981704712, 0.18362393975257874, 0.4426163136959076, -0.253097265958786, -0.1949266642332077, 0.11014976352453232, -0.06840668618679047, 0.12390320003032684, -0.0695141851902008, 0.19704434275627136, -0.05089179798960686, -0.2548767328262329, 0.0734836682677269, -0.23700280487537384 ]
https://github.com/huggingface/datasets/issues/5604
@sentialx probably worth noting that `resume_download=True` doesn't directly save the dataset to disk, but instead just helps in resuming the dataset resume on interruption as @mariosasko mentions. resolving resumptions after a crash is [an open issue](https://github.com/huggingface/datasets/issues/5380) at the moment.
Problems with downloading The Pile
### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2
39
Problems with downloading The Pile ### Describe the bug The downloads in the screenshot seem to be interrupted after some time and the last download throws a "Read timed out" error. ![image](https://user-images.githubusercontent.com/11065386/222687870-ec5fcb65-84e8-467d-9593-4ad7bdac4d50.png) Here are the downloaded files: ![image](https://user-images.githubusercontent.com/11065386/222688200-454c2288-49e5-4682-96e6-1eb69aca0852.png) They should be all 14GB like here (https://the-eye.eu/public/AI/pile/train/). Alternatively, can I somehow download the files by myself and use the datasets preparing script? ### Steps to reproduce the bug dataset = load_dataset('the_pile', split='train', cache_dir='F:\datasets') ### Expected behavior The files should be downloaded correctly. ### Environment info - `datasets` version: 2.10.1 - Platform: Windows-10-10.0.22623-SP0 - Python version: 3.10.5 - PyArrow version: 9.0.0 - Pandas version: 1.4.2 @sentialx probably worth noting that `resume_download=True` doesn't directly save the dataset to disk, but instead just helps in resuming the dataset resume on interruption as @mariosasko mentions. resolving resumptions after a crash is [an open issue](https://github.com/huggingface/datasets/issues/5380) at the moment.
[ -0.26946067810058594, 0.034809038043022156, -0.046287719160318375, 0.5411441922187805, 0.3386096954345703, 0.16489829123020172, 0.33127671480178833, 0.024363912642002106, 0.015573419630527496, 0.04616045206785202, -0.25977852940559387, -0.002310134470462799, 0.11378060281276703, 0.10530570149421692, -0.08930398523807526, -0.017462460324168205, -0.07314758002758026, -0.1122303381562233, -0.15473750233650208, -0.03682298958301544, -0.04517439007759094, -0.024158809334039688, -0.19246983528137207, -0.1734243929386139, -0.06326360255479813, -0.17732979357242584, -0.2611452341079712, 0.15544617176055908, -0.10872502624988556, -0.19033586978912354, 0.4304195046424866, 0.2411048710346222, 0.19203442335128784, 0.6310397982597351, -0.00011425395496189594, -0.06650660932064056, 0.1754535734653473, -0.01823572814464569, -0.10927058011293411, -0.17091883718967438, -0.07886254787445068, -0.2618037164211273, -0.02231379598379135, -0.20875504612922668, 0.36073002219200134, -0.03784467279911041, 0.17619556188583374, -0.018266752362251282, 0.28729477524757385, 0.21481953561306, 0.14368173480033875, 0.4669404625892639, 0.22934049367904663, -0.01014217734336853, 0.1966957151889801, -0.2147706001996994, -0.05514979362487793, 0.5229926705360413, 0.31146061420440674, -0.024668965488672256, 0.05266766995191574, 0.2397639900445938, 0.16433894634246826, 0.02146490290760994, 0.06415930390357971, 0.16427281498908997, 0.0344628170132637, -0.46650516986846924, -0.28842365741729736, 0.1739736646413803, 0.5259535908699036, -0.21157853305339813, -0.41832679510116577, -0.5053731799125671, 0.16882216930389404, -0.21957522630691528, 0.30285316705703735, 0.3346549868583679, -0.1690744012594223, 0.18433845043182373, 0.012026872485876083, 0.10386625677347183, -0.08511511236429214, 0.42400190234184265, 0.14797551929950714, -0.40878522396087646, -0.0339217372238636, 0.014210836961865425, 0.1980104297399521, 0.15303821861743927, 0.3091755211353302, -0.20655567944049835, 0.0852459967136383, 0.18222014605998993, -0.4659349024295807, 0.02403300255537033, -0.12748733162879944, 0.25890639424324036, 0.1776708960533142, 0.07735765725374222, 0.10128749907016754, 0.0774298906326294, -0.21071825921535492, 0.054325543344020844, 0.7389916777610779, 0.005641575902700424, -0.3352920114994049, -0.09521707892417908, 0.3127788007259369, 0.45016321539878845, 0.01049310714006424, -0.15038679540157318, -0.11278712749481201, -0.20999105274677277, 0.285747766494751, -0.16709479689598083, 0.10074503719806671, -0.1890389621257782, -0.08880850672721863, 0.08712606877088547, 0.02330154925584793, -0.0023176372051239014, -0.03964174538850784, 0.14868506789207458, -0.35232120752334595, 0.37484049797058105, 0.10408470779657364, 0.0368402861058712, -0.1389075517654419, -0.24534162878990173, -0.1581970900297165, 0.04725726321339607, -0.2020304799079895, -0.10715579241514206, 0.22964364290237427, -0.4539342522621155, 0.16457214951515198, -0.057215068489313126, 0.1178189069032669, -0.14355291426181793, 0.06908109784126282, -0.2958011031150818, 0.024296220391988754, 0.28337690234184265, 0.14770743250846863, 0.16515356302261353, -0.1154659241437912, 0.18651948869228363, -0.040950335562229156, 0.17417371273040771, -0.0502343587577343, -0.15918095409870148, -0.048995137214660645, 0.17493648827075958, -0.17023354768753052, -0.025797156617045403, -0.451642245054245, -0.05739870294928551, 0.07783826440572739, 0.13377749919891357, 0.10605242103338242, -0.19313263893127441, 0.138696551322937, -0.22992917895317078, 0.1391904652118683, 0.3656921982765198, -0.5321755409240723, 0.02302415668964386, -0.4030424654483795, -0.23219667375087738, 0.13463574647903442, 0.41417407989501953, -0.11777118593454361, 0.14764085412025452, -0.35243114829063416, 0.03195388615131378, 0.40762463212013245, -0.07240311801433563, -0.7454926371574402, 0.17978113889694214, -0.0688626766204834, 0.20374444127082825, -0.10164095461368561, 0.46266183257102966, 0.2366618812084198, -0.19954052567481995, 0.050138920545578, 0.3496403992176056, -0.30132198333740234, -0.10083894431591034, -0.26295578479766846, -0.3865431249141693, 0.024485915899276733, 0.3207423985004425, 0.25294381380081177, -0.05515911430120468, 0.09135052561759949, -0.13392160832881927, 0.2934979796409607, 0.39874738454818726, 0.13411806523799896, 0.21403250098228455, 0.2827908992767334, 0.18976785242557526, 0.03053823485970497, -0.24880442023277283, -0.4976350963115692, 0.29168403148651123, -0.207604318857193, -0.165988489985466, -0.26267343759536743, -0.22183826565742493, -0.31355541944503784, -0.1856054663658142, -0.03913075104355812, 0.13446320593357086, -0.0008762963116168976, -0.2531419098377228, -0.06942278146743774, 0.3007913827896118, -0.03691280260682106, 0.3933277726173401, -0.3738258183002472, 0.2718324363231659, -0.3740244209766388, 0.4871281385421753, -0.19033531844615936, -0.25192856788635254, -0.044665008783340454, -0.2908502519130707, -0.10267804563045502, -0.25604647397994995, -0.029290905222296715, 0.48383569717407227, -0.22020941972732544, 0.19373401999473572, -0.12927255034446716, 0.05873323976993561, 0.4223194122314453, 0.08356156945228577, -0.03355919569730759, 0.03180430829524994, 0.21695271134376526, -0.20460745692253113, -0.3304503858089447, 0.1000661551952362, -0.10518639534711838, -0.10294875502586365, 0.05053175985813141, -0.04958772659301758, 0.15027043223381042, -0.08259246498346329, -0.005349602550268173, 0.08297370374202728, 0.11434082686901093, -0.07182569801807404, -0.23074012994766235, -0.05662797391414642, -0.44021838903427124, 0.164992094039917, 0.5006446838378906, -0.1415591537952423, -0.040416255593299866, 0.19031864404678345, 0.10366679728031158, -0.0660821944475174, 0.079377181828022, 0.011424176394939423, 0.3223567008972168, 0.16240040957927704, 0.2621169090270996, 0.015511957928538322, -0.0151685681194067, -0.14541608095169067, -0.030404873192310333, 0.28556180000305176, -0.0652039423584938, 0.1869584321975708, 0.11762271821498871, 0.009920436888933182, -0.18389254808425903, -0.15751412510871887, 0.14505507051944733, 0.25208988785743713, -0.20436173677444458, -0.15945100784301758, -0.15291592478752136, -0.3686983585357666, -0.17409870028495789, -0.004336696118116379, -0.20463146269321442, -0.37629854679107666, -0.16808994114398956, 0.5117825865745544, -0.0837978720664978, 0.20895542204380035, -0.24476246535778046, 0.26201948523521423, 0.21902361512184143, 0.24319787323474884, -0.11908601969480515, 0.12791290879249573, -0.22581151127815247, 0.02160811424255371, 0.321311891078949, 0.125330850481987, 0.35779044032096863, -0.06726263463497162, -0.1626838743686676, -0.18180476129055023, -0.20886147022247314, 0.05863602086901665, -0.06334824860095978, 0.4026101231575012, -0.03761382773518562, 0.38828060030937195, -0.03633582219481468, -0.016166843473911285, 0.08382190763950348, -0.09240394830703735, 0.019788026809692383, -0.14893946051597595, 0.050071313977241516, -0.027434216812253, -0.1387224942445755, -0.4579719305038452, -0.27932795882225037, -0.324082612991333, 0.18379828333854675, -0.12379663437604904, -0.12020376324653625, -0.046945180743932724, 0.18926170468330383, 0.15393202006816864, 0.01700487732887268, -0.3013962209224701, -0.10718948394060135, -0.51865553855896, 0.47465842962265015, 0.047836389392614365, -0.4171457886695862, 0.14356660842895508, -0.07177016139030457, -0.3529742956161499, 0.23009854555130005, -0.6447573304176331, -0.2287435233592987, -0.4269147515296936, 0.08411821722984314, -0.03230927139520645, 0.08950983732938766, 0.09633834660053253, -0.41245025396347046, -0.02926122024655342, 0.08860532194375992, -0.03425288200378418, 0.2279476672410965, 0.3701292872428894, 0.390211284160614, -0.12437501549720764, 0.3287245035171509, 0.28222084045410156, 0.5796075463294983, 0.08459122478961945, -0.06900826096534729, 0.18098753690719604, 0.105880506336689, 0.5053561925888062, 0.07665431499481201, -0.20145484805107117, 0.16910240054130554, -0.20688949525356293, -0.07528944313526154, 0.06569112837314606, 0.04614284262061119, -0.21545127034187317, -0.03568201884627342, -0.032920848578214645, -0.3118283152580261, -0.3519914150238037, -0.07177136838436127, 0.15657778084278107, -0.05173301696777344, 0.28174102306365967, 0.053638383746147156, 0.06306609511375427, -0.2384369671344757, 0.09083215892314911, 0.336783766746521, 0.08767330646514893, -0.09589119255542755, -0.23453591763973236, 0.21369688212871552, -0.41867345571517944, -0.06382022798061371, -0.005858421325683594, 0.2256704866886139, 0.08759590238332748, 0.12317174673080444, 0.3323017358779907, 0.03985801339149475, 0.9752547144889832, -0.04025089740753174, 0.13208019733428955, -0.025138452649116516, 0.332408607006073, -0.2526699900627136, -0.15998566150665283, -0.2425551563501358, -0.2269720435142517, 0.5100828409194946, 0.2894103229045868, -0.30369770526885986, 0.08008361607789993, 0.17208066582679749, 0.24735566973686218, -0.14967994391918182, -0.2564101219177246, 0.07129145413637161, -0.38639721274375916, -0.23311468958854675, 0.31734156608581543, 0.3236568570137024, -0.0641854852437973, -0.28497737646102905, -0.3068790137767792, 0.07817306369543076, 0.2652888894081116, -0.0716194361448288, -0.10631799697875977, 0.1650664210319519, 0.0393512099981308, 0.6256833076477051, 0.17325261235237122, 0.07868197560310364, 0.3733076751232147, 0.667962908744812, -0.07175257802009583, -0.37023115158081055, 0.15444770455360413, -0.43482887744903564, -0.14215940237045288, 0.4756803512573242, -0.11211131513118744, -0.08981657773256302, 0.08456110209226608, 0.23458221554756165, -0.0965450257062912, 0.3584718108177185, 0.2899102568626404, 0.03328374773263931, -0.3729467988014221, -0.3528059720993042, 0.20622873306274414, -0.13877886533737183, -0.01780419796705246, 0.3994404077529907, -0.0002922937273979187, -0.01279013603925705, 0.17821425199508667, -0.18161346018314362, 1.0022963285446167, -0.18751028180122375, 0.20285755395889282, 0.15729808807373047, -0.2850695848464966, 0.08369721472263336, -0.12134584784507751, 0.09446734189987183, -0.21508991718292236, -0.4987108111381531, -0.07162860035896301, -0.08689172565937042, 0.010916182771325111, 0.41153964400291443, -0.060827046632766724, 0.4006965756416321, -0.015086367726325989, -0.01757681928575039, -0.28225356340408325, 0.09421558678150177, -0.26889359951019287, -0.18389849364757538, -0.1708153784275055, 0.14469358325004578, 0.20631952583789825, 0.3167119324207306, -0.16061925888061523, -0.06580816209316254, 0.06105770170688629, 0.0931621640920639, -0.3592466711997986, 0.12083612382411957, -0.1478375792503357, -0.12092740088701248, -0.16678299009799957, -0.11485540866851807, 0.11864422261714935, 0.2852216958999634, 0.2110879272222519, 0.043990690261125565, -0.06964729726314545, 0.3039688467979431, -0.14572808146476746, -0.08184683322906494, 0.2493859827518463, 0.12698635458946228, 0.3420257270336151, 0.02157503366470337, -0.2665075659751892, -0.05891337990760803, -0.07183296233415604, -0.05785750597715378, 0.04840065538883209, 0.00596088171005249, -0.021880004554986954, -0.25344908237457275, -0.21011246740818024, -0.2536594271659851, 0.10751092433929443, -0.26256170868873596, 0.10172057151794434, 0.2935324013233185, 0.21520288288593292, 0.31204450130462646, -0.1612299680709839, -0.011056490242481232, -0.3689543604850769, 0.6371201872825623, -0.1823248267173767, -0.15635791420936584, 0.2408822476863861, 0.3711806833744049, -0.40765583515167236, -0.11205041408538818, -0.14588603377342224, -0.25776737928390503, -0.4425753355026245, 0.23231352865695953, -0.2679365277290344, 0.3876219093799591, -0.12082107365131378, 0.07512354850769043, 0.27135801315307617, -0.24114838242530823, 0.011507228016853333, -0.5485202670097351, -0.40661460161209106, 0.014022164046764374, 0.2971577048301697, 0.33660420775413513, -0.0547303631901741, -0.23173558712005615, 0.16814740002155304, -0.2497292011976242, -0.25405433773994446, 0.40691712498664856, -0.2470489740371704, 0.04840359464287758, 0.06118936091661453, -0.023584870621562004, 0.3828268051147461, -0.20193609595298767, 0.03848792612552643, 0.3030598759651184, -0.0544004961848259, -0.14893127977848053, -0.19454710185527802, 0.11043941974639893, 0.018338296562433243, -0.125049889087677, 0.13058914244174957, -0.5367061495780945, -0.15124261379241943, -0.03076068125665188, 0.21749785542488098, 0.33840709924697876, 0.15446379780769348, -0.05897340923547745, 0.4452212452888489, 0.1669350415468216, -0.09459532797336578, 0.26516905426979065, -0.12801671028137207, 0.1683061122894287, 0.3564390540122986, 0.035681724548339844, 0.045936744660139084, 0.05287817120552063, -0.18670634925365448, -0.20684044063091278, 0.10548022389411926, 0.1828428953886032, 0.6265439391136169, -0.23257417976856232, -0.003774501383304596, 0.21715176105499268, 0.38988786935806274, 0.4592370092868805, -0.160895437002182, -0.061291150748729706, 0.3666248321533203, 0.19752362370491028, -0.31980475783348083, 0.08326415717601776, 0.22982706129550934, 0.06061818078160286, -0.0845864787697792, 0.020868584513664246, -0.0020631402730941772, 0.011539146304130554, -0.1241305023431778, 0.29724183678627014, 0.5313317179679871, 0.09623605757951736, 0.016132820397615433, 0.232102632522583, 0.12505847215652466, -0.048114340752363205, 0.27462729811668396, 0.31017419695854187, 0.08312015980482101, 0.24101576209068298, 0.13615697622299194, -0.10198607295751572, -0.2808404266834259, 0.35754382610321045, -0.25604215264320374, -0.6567227244377136, -0.3054356873035431, 0.4921655058860779, -0.27675607800483704, 0.2847740054130554, 0.07530331611633301, 0.3323173224925995, -0.07133248448371887, -0.13504573702812195, -0.1832992434501648, -0.013503508642315865, 0.08385869115591049, 0.13743002712726593, 0.2975274324417114, -0.18218910694122314, -0.028048112988471985, 0.18507081270217896, 0.10607080906629562, -0.32734039425849915, 0.24888107180595398, 0.2069845199584961, -0.19633951783180237, -0.48996415734291077, -0.20390290021896362, 0.02558126673102379, 0.23317652940750122, -0.271541029214859, -0.04005064070224762, 0.08172515034675598, -0.21860414743423462, 0.07772282510995865, 0.1650557518005371, 0.16019007563591003, 0.062408749014139175, 0.10557558387517929, 0.17168733477592468, 0.3823496103286743, -0.014135781675577164, -0.11819532513618469, 0.24494318664073944, 0.1321813464164734, 0.19306828081607819, 0.36182695627212524, 0.13204911351203918, -0.23213566839694977, 0.09887813776731491, -0.005447017028927803, 0.0996863842010498, -0.4421948790550232, 0.4728659689426422, -0.13481664657592773, -0.12390846014022827, -0.3630942404270172, -0.3127230405807495, -0.2872174084186554, -0.18601274490356445, 0.22710660099983215, -0.30618998408317566, 0.13631665706634521, -0.038558319211006165, 0.04654001072049141, -0.20906266570091248, 0.22890803217887878, 0.7545916438102722, -0.09320436418056488, -0.11506564915180206, -0.05754632502794266, -0.6512874364852905, 0.09173227846622467, -0.17597515881061554, 0.09633348882198334, 0.19397366046905518, 0.27831292152404785, -0.09288735687732697, -0.10888737440109253, 0.2594601809978485, -0.001792166382074356, -0.06692064553499222, 0.5751938819885254, -0.3864090144634247, -0.4669036269187927, -0.24445119500160217, 0.039785996079444885, 0.03564583510160446, -0.2853597402572632, 0.11187126487493515, -0.016785461455583572, -0.047290436923503876, 0.04639261215925217, -0.043891020119190216, -0.0636521428823471, -0.2740572988986969, 0.5194978713989258, -0.006616620346903801, 0.05587032064795494, 0.12883321940898895, -0.11840257793664932, -0.39867591857910156, -0.2076759785413742, -0.04767082631587982, -0.035694628953933716, -0.055738311260938644, 0.33306223154067993, -0.3107456564903259, 0.24523773789405823, -0.2602631151676178, 0.10029412806034088, 0.12828996777534485, 0.03581986576318741, -0.13910628855228424, 0.041753508150577545, -0.03540898859500885, 0.1959826648235321, 0.3394998610019684, 0.21984563767910004, -0.07758817076683044, 0.03537145256996155, -0.08192439377307892, -0.1959111988544464, 0.36471182107925415, -0.22861425578594208, -0.095020592212677, -0.06929764896631241, 0.017769891768693924, 0.03515669330954552, 0.005411779507994652, -0.5489898324012756, 0.14559951424598694, 0.36168521642684937, -0.24246995151042938, -0.23759248852729797, 0.11455505341291428, -0.09763166308403015, 0.09486547112464905, -0.051066651940345764, 0.27094894647598267, -0.028332408517599106, -0.2981107234954834, 0.16866865754127502, -0.18874874711036682 ]
https://github.com/huggingface/datasets/issues/5601
Hi! It's better to report this kind of issue in the `huggingface_hub` repo, so if you still haven't resolved it, I suggest you open an issue there.
Authorization error
### Describe the bug Get `Authorization error` when try to push data into hugginface datasets hub. ### Steps to reproduce the bug I did all steps in the [tutorial](https://huggingface.co/docs/datasets/share), 1. `huggingface-cli login` with WRITE token 2. `git lfs install` 3. `git clone https://huggingface.co/datasets/namespace/your_dataset_name` 4. ``` cp /somewhere/data/*.json . git lfs track *.json git add .gitattributes git add *.json git commit -m "add json files" ``` but when I execute `git push` I got the error: ``` Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done. batch response: Authorization error. error: failed to push some refs to 'https://huggingface.co/datasets/zeusfsx/ukrainian-news' ``` Size of data ~100Gb. I have five json files - different parts. ### Expected behavior All my data pushed into hub ### Environment info - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.10.10 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
27
Authorization error ### Describe the bug Get `Authorization error` when try to push data into hugginface datasets hub. ### Steps to reproduce the bug I did all steps in the [tutorial](https://huggingface.co/docs/datasets/share), 1. `huggingface-cli login` with WRITE token 2. `git lfs install` 3. `git clone https://huggingface.co/datasets/namespace/your_dataset_name` 4. ``` cp /somewhere/data/*.json . git lfs track *.json git add .gitattributes git add *.json git commit -m "add json files" ``` but when I execute `git push` I got the error: ``` Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done. batch response: Authorization error. error: failed to push some refs to 'https://huggingface.co/datasets/zeusfsx/ukrainian-news' ``` Size of data ~100Gb. I have five json files - different parts. ### Expected behavior All my data pushed into hub ### Environment info - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.10.10 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 Hi! It's better to report this kind of issue in the `huggingface_hub` repo, so if you still haven't resolved it, I suggest you open an issue there.
[ -0.08546455204486847, -0.33392900228500366, 0.02009483426809311, 0.39740851521492004, 0.05339289829134941, -0.0677020400762558, 0.0406976081430912, 0.14277559518814087, 0.01017710566520691, 0.00920780748128891, -0.2071445733308792, -0.07270222902297974, -0.13457798957824707, 0.31712326407432556, -0.035724297165870667, 0.1301346719264984, 0.25850775837898254, -0.21891003847122192, -0.06244578957557678, -0.08889278024435043, -0.0072808638215065, 0.08489403128623962, -0.10422156751155853, 0.08544348180294037, -0.17639639973640442, -0.08326759934425354, -0.05014711618423462, 0.12761034071445465, -0.14288827776908875, -0.09466513991355896, 0.17571265995502472, 0.05329066514968872, 0.05630618333816528, 0.5007019639015198, -0.00011764907685574144, -0.06312921643257141, 0.18520909547805786, -0.057630594819784164, -0.3727070689201355, -0.41030800342559814, -0.10454688221216202, -0.30598610639572144, -0.011954862624406815, 0.057191669940948486, -0.06307469308376312, -0.0007134638726711273, 0.14612780511379242, 0.13045251369476318, 0.46777552366256714, 0.19515694677829742, 0.18192702531814575, 0.27517497539520264, 0.35654422640800476, -0.07910126447677612, 0.10660340636968613, 0.385342538356781, -0.08856258541345596, 0.20928999781608582, 0.11742840707302094, 0.09095142781734467, 0.2031615972518921, 0.16124586760997772, 0.04428313672542572, -0.11052826046943665, 0.30142131447792053, -0.26154831051826477, -0.26071637868881226, -0.22259904444217682, -0.02569834142923355, -0.021846972405910492, 0.340016633272171, -0.37084272503852844, -0.6448855996131897, -0.3958725929260254, 0.07796511054039001, 0.18489018082618713, 0.2086489349603653, 0.34593528509140015, -0.0156906358897686, -0.01823258399963379, -0.31512650847435, -0.3076283931732178, -0.03261362761259079, 0.09993316978216171, 0.2131555676460266, -0.1730746328830719, -0.13189411163330078, 0.07760804891586304, -0.02900809422135353, -0.4596404433250427, -0.11220191419124603, -0.012128283269703388, -0.16306650638580322, 0.30248361825942993, -0.3373025059700012, -0.008938178420066833, 0.10151965916156769, 0.3286707401275635, 0.3452869653701782, 0.19432270526885986, -0.3565164804458618, -0.1647312194108963, -0.35121697187423706, 0.036810971796512604, 0.13065077364444733, 0.23249496519565582, 0.13804975152015686, 0.22721412777900696, 0.16427186131477356, 0.06082667037844658, 0.12428078055381775, -0.007592489011585712, -0.01887819916009903, -0.14936915040016174, -0.31968414783477783, -0.026009678840637207, 0.2898719608783722, -0.019962020218372345, -0.29566463828086853, 0.2456246018409729, -0.16741026937961578, 0.060000721365213394, 0.12401001900434494, 0.2735680639743805, -0.06581296771764755, -0.24192246794700623, 0.16044510900974274, 0.30158448219299316, -0.07026512920856476, 0.1580773890018463, -0.2566594183444977, 0.22048091888427734, -0.034647151827812195, 0.010001309216022491, 0.1627926230430603, -0.4779440462589264, 0.1352548897266388, 0.07454148679971695, 0.05472930893301964, -0.25015032291412354, -0.154051274061203, 0.1318928599357605, 0.011322803795337677, 0.2679831087589264, 0.18861064314842224, 0.17208053171634674, 0.10896462202072144, 0.08423403650522232, -0.10239438712596893, -0.0504513643682003, -0.5190591216087341, -0.24425825476646423, -0.11456514894962311, 0.054057538509368896, -0.17631405591964722, 0.2615443766117096, -0.5731008648872375, -0.05221359431743622, -0.2807311713695526, 0.12728850543498993, 0.1293800175189972, 0.2572645843029022, 0.17047609388828278, -0.0982450395822525, 0.1476455181837082, 0.5733329653739929, 0.054535359144210815, -0.06877146661281586, 0.2865898907184601, 0.031170029193162918, -0.08280424773693085, 0.2698296308517456, -0.0674951821565628, 0.3035604953765869, -0.2739035487174988, 0.5601387023925781, 0.14308631420135498, -0.9670231938362122, -0.2846042811870575, -0.10383544862270355, -0.1384083330631256, -0.047713860869407654, -0.23436912894248962, -0.10457400977611542, 0.15860307216644287, 0.08183860778808594, 0.013045616447925568, 0.1596243530511856, 0.12267481535673141, 0.3103445768356323, -0.13974890112876892, -0.4412845969200134, -0.07400694489479065, 0.10539279878139496, -0.18119023740291595, -0.04979517683386803, 0.31576770544052124, 0.15528327226638794, 0.08139422535896301, -0.024555422365665436, 0.17333173751831055, 0.2902173399925232, 0.379947304725647, 0.205321803689003, -0.01720968261361122, -0.0667383074760437, -0.4282147288322449, 0.0683487132191658, 0.0646972805261612, 0.16041305661201477, -0.31122249364852905, -0.08818309009075165, -0.09050388634204865, 0.04613618552684784, -0.18220815062522888, -0.005239811725914478, 0.13607671856880188, -0.2017815262079239, -0.011571303009986877, 0.15188519656658173, 0.1251034140586853, 0.591927170753479, -0.0705450028181076, 0.37482160329818726, -0.6716946363449097, 0.3732207119464874, -0.12229647487401962, -0.20571763813495636, 0.2799443304538727, 0.13944630324840546, 0.3728310167789459, -0.28922927379608154, -0.04380626231431961, 0.34045782685279846, -0.02929212898015976, 0.2524127960205078, 0.20991557836532593, 0.20276309549808502, 0.19998492300510406, 0.09916269779205322, -0.09462423622608185, -0.2066732794046402, 0.12373987585306168, 0.03683751821517944, -0.06717415153980255, 0.29226112365722656, -0.11245182156562805, -0.046202655881643295, -0.22347059845924377, 0.14830829203128815, 0.09214301407337189, 0.05695398896932602, -0.16190215945243835, -0.0065531134605407715, 0.3006591498851776, 0.07434108108282089, -0.05975744128227234, -0.1399330496788025, -0.03135811537504196, -0.0653899610042572, 0.4366796314716339, 0.18576791882514954, -0.001825207844376564, 0.15503346920013428, -0.11996712535619736, 0.14097242057323456, 0.42176902294158936, -0.07018549740314484, 0.0619744136929512, -0.02989872917532921, -0.3149260878562927, 0.1022496223449707, 0.21878735721111298, -0.037055883556604385, 0.14713309705257416, -0.2697407901287079, 0.09054140746593475, -0.07131621986627579, 0.1398955136537552, 0.2735244631767273, -0.29079368710517883, 0.011470168828964233, -0.039524927735328674, 0.5252465009689331, -0.3204229474067688, -0.17613881826400757, -0.028572332113981247, -0.011988013982772827, 0.10271728038787842, -0.4322682023048401, -0.6030826568603516, -0.3120710253715515, -0.1328604370355606, 0.49024009704589844, -0.02812447026371956, -0.007554415613412857, 0.2950071692466736, 0.23904354870319366, 0.06250941753387451, 0.10529570281505585, -0.31600332260131836, 0.16156181693077087, 0.046458650380373, -0.04836269095540047, 0.3447524905204773, -0.043367162346839905, 0.34132885932922363, 0.026893094182014465, 0.2581599950790405, -0.4105607271194458, -0.10256953537464142, -0.004560088738799095, -0.26005828380584717, 0.2125929892063141, 0.04514843225479126, 0.18280699849128723, -0.11732686311006546, -0.08174419403076172, 0.10634830594062805, 0.11183273792266846, -0.4195941686630249, 0.033603765070438385, -0.06263266503810883, -0.2114948034286499, -0.22452197968959808, 0.2091177999973297, -0.09622037410736084, -0.2979590892791748, 0.6275082230567932, 0.06529185175895691, 0.16003388166427612, 0.10453079640865326, 0.027296889573335648, 0.1656017005443573, -0.2005678415298462, -0.07984377443790436, -0.2857639789581299, -0.3791517913341522, 0.24138274788856506, -0.17440912127494812, -0.2482050210237503, 0.2037448137998581, 0.2988432049751282, 0.17568901181221008, -0.08921472728252411, -0.34057188034057617, -0.5080479979515076, -0.20061127841472626, 0.3758748173713684, -0.11912265419960022, 0.15820565819740295, 0.4439559578895569, -0.11506682634353638, 0.15047615766525269, -0.06327665597200394, -0.28371942043304443, -0.08190849423408508, 0.19714434444904327, -0.14745250344276428, -0.020812375470995903, 0.17837859690189362, 0.09581179171800613, 0.31061628460884094, 0.3987819254398346, 0.037448182702064514, 0.30854326486587524, -0.10036888718605042, 0.2958654463291168, -0.02871745452284813, -0.3493841290473938, 0.2831460237503052, 0.2371927797794342, 0.15130963921546936, 0.23919326066970825, 0.1604170799255371, 0.4642608165740967, -0.09510951489210129, -0.4783172011375427, -0.4312276542186737, -0.34134477376937866, -0.3307933807373047, -0.23833751678466797, -0.1756221055984497, -0.005236707627773285, -0.02585144340991974, -0.28769350051879883, -0.2757302522659302, 0.0547650083899498, 0.3325921297073364, 0.34919726848602295, 0.14842282235622406, -0.09115380793809891, -0.27441009879112244, -0.5144674181938171, 0.20202425122261047, -0.10270041227340698, 0.3652994930744171, -0.16024374961853027, 0.1799667477607727, 0.2794370651245117, -0.01183861494064331, 0.9475799798965454, -0.21440735459327698, 0.09895481169223785, -0.5523453950881958, 0.10792593657970428, -0.4345746636390686, -0.1197456568479538, -0.011296384036540985, 0.5341442227363586, 0.20707720518112183, 0.7551723718643188, -0.5172947645187378, -0.09998290240764618, -0.2922442555427551, -0.2515881657600403, 0.09195730090141296, -0.13484935462474823, -0.0388333685696125, -0.32331782579421997, -0.44220709800720215, 0.10756289958953857, 0.35015594959259033, 0.2159823775291443, 0.07215461134910583, 0.022419147193431854, 0.11822766065597534, 0.09143775701522827, 0.2616502046585083, -0.08267928659915924, 0.32305005192756653, 0.2996305525302887, 0.14437705278396606, 0.19151319563388824, 0.09480613470077515, 0.30366379022598267, 0.5552651286125183, 0.2708442509174347, -0.3045130968093872, -0.16141535341739655, -0.08395300060510635, 0.025045283138751984, 0.35713857412338257, 0.17601507902145386, 0.3817753493785858, -0.19923782348632812, 0.11497361212968826, -0.3972921073436737, -0.06417568773031235, 0.13188765943050385, 0.1180044487118721, -0.2764158844947815, 0.18459990620613098, 0.13649287819862366, -0.013782080262899399, -0.0019109398126602173, 0.507693886756897, 0.545316755771637, -0.3438529968261719, 0.1059688925743103, -0.07068391889333725, 0.9433223605155945, -0.0016010431572794914, 0.1375439316034317, 0.19576194882392883, -0.15709297358989716, 0.6297195553779602, -0.25096750259399414, 0.0007318183779716492, -0.37881842255592346, 0.06714329123497009, -0.03634728491306305, 0.025130048394203186, -0.018961112946271896, -0.25842082500457764, -0.08232280611991882, -0.059497736394405365, -0.15900765359401703, 0.30309340357780457, -0.2655881345272064, 0.2391243726015091, -0.33269232511520386, -0.26291903853416443, -0.1875278353691101, 0.15449076890945435, -0.09261086583137512, 0.3560066819190979, -0.03187418729066849, -0.24062955379486084, -0.2638785243034363, -0.13629835844039917, -0.5211551189422607, -0.0043490976095199585, -0.014923032373189926, -0.10447677969932556, 0.40462395548820496, 0.15386319160461426, 0.2055390477180481, -0.015375804156064987, 0.56492680311203, 0.2575722932815552, -0.5485023856163025, -0.033924467861652374, -0.27702271938323975, -0.05734100937843323, -0.3540151119232178, 0.06419926136732101, 0.29195231199264526, 0.016308292746543884, -0.19101794064044952, -0.0781078189611435, 0.08142213523387909, -0.28150272369384766, -0.3476185202598572, 0.3066270649433136, -0.4186214208602905, -0.2857629656791687, -0.1521884948015213, 0.10105982422828674, -0.01280520111322403, 0.1890173852443695, 0.05622086301445961, 0.155264750123024, -0.14672288298606873, 0.1379735767841339, 0.21750779449939728, -0.11998426914215088, 0.0542244091629982, 0.5042726993560791, -0.16445332765579224, -0.05293121561408043, 0.3836938738822937, 0.07377207279205322, -0.06725794821977615, -0.029030531644821167, -0.04519844800233841, 0.4544954299926758, -0.5515978336334229, -0.05264374241232872, 0.041777800768613815, 0.15902522206306458, -0.05045511573553085, 0.034062787890434265, 0.05896814912557602, -0.019078504294157028, 0.2630905210971832, -0.23227077722549438, -0.09488890320062637, 0.046439845114946365, -0.16483455896377563, -0.04883329197764397, 0.10202406346797943, 0.23108355700969696, 0.03745294362306595, 0.06496189534664154, -0.2500728368759155, 0.2796538770198822, -0.31903716921806335, 0.15187782049179077, -0.041735872626304626, -0.12563306093215942, 0.1594846546649933, -0.282779335975647, 0.004144500941038132, 0.1734306514263153, -0.352524995803833, -0.07517785578966141, -0.18721751868724823, 0.13084881007671356, 0.3181479871273041, -0.22473695874214172, -0.2174447476863861, -0.27171626687049866, -0.003810187801718712, -0.12131235748529434, 0.020744621753692627, 0.41691040992736816, -0.0462847463786602, -0.042493484914302826, 0.42685025930404663, 0.3184887170791626, 0.1121826022863388, 0.0790998637676239, 0.30570730566978455, 0.12747369706630707, -0.1419966220855713, 0.04016418009996414, -0.06952953338623047, 0.10468516498804092, -0.4173063039779663, 0.2581484317779541, 0.28674837946891785, 0.39167410135269165, 0.17914237082004547, -0.056549038738012314, -0.12367736548185349, -0.005675837397575378, 0.4196797013282776, -0.07867179065942764, -0.3528154492378235, -0.12928012013435364, 0.3215702772140503, 0.09533869475126266, 0.035525307059288025, -0.03341146185994148, 0.3689429461956024, -0.01729113608598709, -0.203545942902565, -0.010555878281593323, 0.20665493607521057, 0.1447659134864807, 0.08178354054689407, 0.008918829262256622, 0.5804638862609863, 0.048702411353588104, -0.00426856055855751, -0.1668418049812317, -0.2023756504058838, -0.02743937447667122, 0.481339693069458, 0.02450156956911087, -0.029282189905643463, 0.13305985927581787, -0.27850353717803955, 0.03752285987138748, -0.214814692735672, -0.29669612646102905, 0.12965252995491028, -0.2789228856563568, -0.08796066045761108, -0.0852004885673523, 0.12803460657596588, 0.04397384077310562, -0.10357679426670074, 0.4882822632789612, -0.17453262209892273, -0.40174487233161926, -0.31599095463752747, 0.21147605776786804, -0.2797951102256775, 0.07587309181690216, -0.21621496975421906, -0.14544576406478882, -0.03324219584465027, -0.21729212999343872, -0.1899549663066864, -0.46392396092414856, 0.12473322451114655, 0.08404233306646347, -0.1822870373725891, -0.21572750806808472, 0.02059469372034073, 0.27237147092819214, 0.26164504885673523, -0.1170605719089508, 0.21472331881523132, -0.1920698881149292, -0.18816371262073517, -0.09254966676235199, 0.29863497614860535, 0.42373281717300415, 0.20020082592964172, 0.2871965765953064, 0.296613484621048, 0.08822878450155258, 0.03784008324146271, 0.03591805696487427, 0.3308550715446472, -0.03006821870803833, -0.04041720926761627, 0.06621972471475601, 0.12095465511083603, -0.06349531561136246, 0.1453750729560852, 0.000030472874641418457, 0.10461953282356262, -0.04615599662065506, 0.15822190046310425, -0.5687962174415588, -0.22954848408699036, -0.2650163173675537, 0.004105869680643082, -0.186861053109169, 0.1818532645702362, 0.25950899720191956, -0.08723564445972443, 0.07146307826042175, -0.6284266114234924, 0.03176107257604599, -0.028608432039618492, 0.3563215434551239, 0.693764328956604, -0.05048886314034462, -0.17005839943885803, -0.046746626496315, -0.3046746850013733, 0.2267613410949707, -0.1054452434182167, 0.2508031129837036, 0.009646441787481308, -0.021186958998441696, -0.2325359433889389, -0.1949741244316101, -0.09396012127399445, -0.09279493987560272, -0.11401911824941635, 0.08094203472137451, -0.17512908577919006, 0.023389030247926712, -0.0756034255027771, -0.07050703465938568, 0.1201842874288559, 0.18008774518966675, 0.40858402848243713, -0.31221070885658264, 0.007536835968494415, -0.1771267056465149, 0.26508042216300964, -0.09506382048130035, 0.05690694972872734, 0.24443499743938446, 0.30434706807136536, -0.08815012872219086, 0.015692979097366333, -0.0455496609210968, -0.3908803164958954, -0.10120558738708496, -0.2442673146724701, -0.03678775206208229, -0.3337132930755615, 0.29035496711730957, -0.15725059807300568, -0.4685984253883362, -0.15428946912288666, 0.20068855583667755, -0.007883630692958832, 0.10029947757720947, 0.07334288209676743, 0.2296934425830841, -0.3081747591495514, 0.006473962217569351, 0.18571758270263672, 0.13671542704105377, 0.003348013386130333, 0.3355334401130676, -0.4567560851573944, -0.1908009946346283, 0.4099051058292389, -0.4536328911781311, -0.07766077667474747, 0.1637955904006958, 0.2224462926387787, 0.3230375647544861, -0.5448904037475586, -0.48876869678497314, 0.08239006996154785, 0.18848514556884766, -0.003910130821168423, -0.0441875085234642, 0.21570006012916565, -0.11080969870090485, -0.05265432968735695, 0.011797182261943817, 0.0364246629178524, 0.3030667006969452, -0.15392504632472992, 0.699029803276062, 0.08064273744821548 ]
https://github.com/huggingface/datasets/issues/5601
Yeah, I solved it. Problem was in osxkeychain. When I do `hugginface-cli login` it's add token with default account (username)`hg_user` but my repo contain other username. When I changed username in keychain - it works now.
Authorization error
### Describe the bug Get `Authorization error` when try to push data into hugginface datasets hub. ### Steps to reproduce the bug I did all steps in the [tutorial](https://huggingface.co/docs/datasets/share), 1. `huggingface-cli login` with WRITE token 2. `git lfs install` 3. `git clone https://huggingface.co/datasets/namespace/your_dataset_name` 4. ``` cp /somewhere/data/*.json . git lfs track *.json git add .gitattributes git add *.json git commit -m "add json files" ``` but when I execute `git push` I got the error: ``` Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done. batch response: Authorization error. error: failed to push some refs to 'https://huggingface.co/datasets/zeusfsx/ukrainian-news' ``` Size of data ~100Gb. I have five json files - different parts. ### Expected behavior All my data pushed into hub ### Environment info - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.10.10 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
36
Authorization error ### Describe the bug Get `Authorization error` when try to push data into hugginface datasets hub. ### Steps to reproduce the bug I did all steps in the [tutorial](https://huggingface.co/docs/datasets/share), 1. `huggingface-cli login` with WRITE token 2. `git lfs install` 3. `git clone https://huggingface.co/datasets/namespace/your_dataset_name` 4. ``` cp /somewhere/data/*.json . git lfs track *.json git add .gitattributes git add *.json git commit -m "add json files" ``` but when I execute `git push` I got the error: ``` Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done. batch response: Authorization error. error: failed to push some refs to 'https://huggingface.co/datasets/zeusfsx/ukrainian-news' ``` Size of data ~100Gb. I have five json files - different parts. ### Expected behavior All my data pushed into hub ### Environment info - `datasets` version: 2.10.1 - Platform: macOS-13.2.1-arm64-arm-64bit - Python version: 3.10.10 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 Yeah, I solved it. Problem was in osxkeychain. When I do `hugginface-cli login` it's add token with default account (username)`hg_user` but my repo contain other username. When I changed username in keychain - it works now.
[ 0.019521184265613556, -0.15236109495162964, 0.0309460312128067, 0.35841622948646545, 0.00794660672545433, -0.06153707951307297, 0.019243348389863968, 0.0950223058462143, -0.04392187297344208, 0.010656394064426422, -0.2241760790348053, -0.022301562130451202, -0.011560436338186264, 0.3594532012939453, -0.006917860358953476, 0.11831671744585037, 0.2584027051925659, -0.10413740575313568, 0.012579160742461681, -0.17606142163276672, -0.09563451260328293, 0.08547862619161606, -0.056102752685546875, 0.2390466332435608, -0.05224502459168434, -0.12472764402627945, -0.05075530707836151, 0.1979784071445465, -0.09423760324716568, -0.09572809189558029, 0.1955655962228775, 0.05204438790678978, -0.0709208995103836, 0.4567713737487793, -0.00011983502918155864, 0.017484530806541443, 0.2880212366580963, -0.07129547744989395, -0.35552650690078735, -0.41640469431877136, -0.09320991486310959, -0.18666931986808777, -0.0005730055272579193, -0.0637391060590744, -0.08545820415019989, -0.10502202063798904, 0.11575953662395477, 0.07800532877445221, 0.3843480348587036, 0.1389314830303192, 0.1384771466255188, 0.2868991196155548, 0.3757859468460083, 0.0945810079574585, 0.16273397207260132, 0.34555941820144653, -0.11569887399673462, 0.0944630429148674, 0.16002772748470306, 0.08933938294649124, 0.22358904778957367, 0.16085758805274963, 0.0909198597073555, -0.17115318775177002, 0.3496338725090027, -0.24438399076461792, -0.132142573595047, -0.1712847352027893, -0.06661862134933472, 0.1231163740158081, 0.1636754721403122, -0.2381546050310135, -0.6122941970825195, -0.30425524711608887, 0.08215966820716858, 0.10220280289649963, 0.3746461570262909, 0.34186500310897827, -0.03476808965206146, -0.019502652809023857, -0.4480404555797577, -0.20028051733970642, -0.008749671280384064, 0.1279355138540268, 0.10857295244932175, -0.022259678691625595, -0.10418237745761871, 0.1698703169822693, 0.0265659149736166, -0.4716290235519409, -0.1538315713405609, -0.019514843821525574, -0.15850666165351868, 0.13842922449111938, -0.3912658393383026, -0.015337914228439331, 0.1565639227628708, 0.37590524554252625, 0.4060874879360199, -0.0223894901573658, -0.4940190017223358, -0.16696971654891968, -0.43186837434768677, 0.02133796736598015, 0.006552532315254211, 0.3277292847633362, 0.15177352726459503, 0.20356841385364532, 0.27687206864356995, -0.06381843984127045, 0.08470404148101807, 0.025190670043230057, -0.07998625189065933, -0.02699674479663372, -0.2593793570995331, -0.01460820809006691, 0.22113336622714996, -0.003757677972316742, -0.28413403034210205, 0.25367656350135803, -0.1760810911655426, 0.11777309328317642, 0.16973891854286194, 0.4650906026363373, -0.1028120219707489, -0.2594985365867615, 0.1627197265625, 0.3577118515968323, -0.02645675092935562, 0.18646204471588135, -0.24380356073379517, 0.129752516746521, -0.014496132731437683, -0.027768192812800407, 0.06813795864582062, -0.6081998944282532, 0.15231987833976746, 0.13078320026397705, 0.014855450950562954, -0.25603699684143066, -0.1418529897928238, 0.29278722405433655, -0.04150030389428139, 0.17067024111747742, 0.21013563871383667, 0.12916935980319977, 0.10780735313892365, 0.10360291600227356, -0.11227889358997345, -0.04367027059197426, -0.6691755652427673, -0.24124489724636078, -0.18522588908672333, 0.029072128236293793, -0.15410280227661133, 0.16438055038452148, -0.452617883682251, -0.17946955561637878, -0.13922999799251556, 0.25687307119369507, 0.11201876401901245, 0.20501668751239777, 0.1676809936761856, -0.09158112108707428, 0.014588706195354462, 0.3505953550338745, 0.15783101320266724, -0.1791350394487381, 0.34840473532676697, 0.045800428837537766, -0.04411041736602783, 0.3842647671699524, -0.07728007435798645, 0.33815720677375793, -0.20810645818710327, 0.5297873020172119, 0.19131088256835938, -1.028687596321106, -0.24442023038864136, -0.16460002958774567, -0.1704522669315338, -0.04797283187508583, -0.14539863169193268, -0.1346869319677353, 0.18184642493724823, 0.1751284897327423, -0.0754869282245636, 0.1498681604862213, 0.1604672074317932, 0.3281210660934448, -0.07720672339200974, -0.5362962484359741, -0.06420858204364777, 0.07135136425495148, -0.2317890077829361, -0.04868448153138161, 0.2553444802761078, 0.07991471886634827, 0.13519863784313202, -0.1416439414024353, 0.19705042243003845, 0.3041961193084717, 0.2787154018878937, 0.15021494030952454, 0.0582452230155468, 0.12573286890983582, -0.23729613423347473, 0.03928232192993164, 0.1273321956396103, 0.10753272473812103, -0.3504771292209625, -0.14714699983596802, -0.14954301714897156, 0.09087889641523361, -0.31283748149871826, 0.021436423063278198, 0.07531297951936722, -0.09790533781051636, 0.10125415027141571, 0.17470777034759521, 0.1542835682630539, 0.4756142199039459, -0.07152541726827621, 0.35586902499198914, -0.6722095012664795, 0.2974741458892822, -0.10821478068828583, -0.11343419551849365, 0.1861010640859604, 0.3093557357788086, 0.36688509583473206, -0.43974265456199646, -0.03898563235998154, 0.4241696000099182, -0.11449021846055984, 0.12190121412277222, 0.05931278318166733, 0.22935953736305237, 0.24354323744773865, 0.07697070389986038, 0.0038093458861112595, -0.20037412643432617, 0.08057483285665512, -0.007507026195526123, -0.03354237973690033, 0.29356178641319275, 0.06926167011260986, -0.026500996202230453, -0.24385753273963928, 0.08275984227657318, 0.16538384556770325, -0.05616123974323273, -0.0555935874581337, -0.03111547976732254, 0.30157288908958435, -0.16838257014751434, -0.00339692085981369, -0.21557386219501495, -0.01748383790254593, -0.04409985616803169, 0.5186980962753296, 0.17948098480701447, 0.010349065065383911, 0.026234835386276245, -0.1152573749423027, 0.08162016421556473, 0.30456897616386414, -0.08667981624603271, 0.03831716254353523, -0.07761561870574951, -0.4509355425834656, 0.09910392761230469, 0.29979845881462097, -0.05876176059246063, 0.1700468361377716, -0.2802700400352478, 0.057842642068862915, -0.07543721795082092, 0.1344722956418991, 0.2000495195388794, -0.24344362318515778, -0.06290918588638306, 0.05264011025428772, 0.5931184887886047, -0.33087557554244995, -0.1816370040178299, -0.06700633466243744, -0.16678741574287415, 0.21220622956752777, -0.3696933686733246, -0.4988981783390045, -0.3691087067127228, -0.07807467132806778, 0.49970555305480957, -0.007907174527645111, 0.03489840775728226, 0.31156811118125916, 0.1127336323261261, 0.09277217090129852, 0.11951806396245956, -0.33049800992012024, 0.1041010394692421, 0.027367454022169113, -0.050348278135061264, 0.32755494117736816, -0.213951975107193, 0.34317904710769653, -0.14809764921665192, 0.1881544440984726, -0.47571879625320435, -0.18059393763542175, 0.14358200132846832, -0.21499250829219818, 0.0551428347826004, 0.08077707886695862, 0.10113859176635742, -0.087038554251194, -0.2007254660129547, 0.19807234406471252, -0.04285341873764992, -0.5456406474113464, 0.1493077576160431, -0.04797004535794258, -0.27763569355010986, -0.25554561614990234, 0.2529597282409668, -0.17257843911647797, -0.19211703538894653, 0.63140469789505, 0.07182452082633972, 0.23297002911567688, 0.18901056051254272, -0.03368833661079407, 0.2038082778453827, -0.2025558054447174, -0.04901757091283798, -0.2579117715358734, -0.4337559938430786, 0.19606776535511017, -0.1308879554271698, -0.2645210921764374, 0.19718937575817108, 0.18684718012809753, 0.19287678599357605, -0.09583030641078949, -0.4009227156639099, -0.5116088390350342, -0.14086802303791046, 0.47143080830574036, -0.1036868467926979, 0.22199539840221405, 0.34619447588920593, -0.09486295282840729, 0.19121293723583221, -0.13531288504600525, -0.3033657968044281, -0.05337647721171379, 0.16074548661708832, 0.000904671847820282, 0.0931650847196579, 0.396197110414505, -0.03154021129012108, 0.3811197876930237, 0.32887423038482666, 0.00044637639075517654, 0.3653832674026489, -0.14322808384895325, 0.3172626793384552, -0.019999627023935318, -0.3163146674633026, 0.27239400148391724, 0.3049399256706238, 0.1868695616722107, 0.29179847240448, 0.19538286328315735, 0.4194941818714142, -0.03583817183971405, -0.5245465040206909, -0.4011974334716797, -0.3556083142757416, -0.3089546263217926, -0.08075316250324249, -0.16529738903045654, 0.04179702699184418, 0.05541390925645828, -0.3006741404533386, -0.2597355544567108, 0.0679788663983345, 0.44037508964538574, 0.2675386369228363, 0.1217489168047905, -0.24561864137649536, -0.25694653391838074, -0.5175434947013855, 0.26785358786582947, -0.1419217735528946, 0.37320756912231445, -0.07899201661348343, 0.3012649118900299, 0.26729634404182434, 0.0032828226685523987, 0.8979366421699524, -0.22469429671764374, 0.1075039654970169, -0.5376700758934021, 0.04116031527519226, -0.3494865596294403, -0.12031197547912598, 0.025210537016391754, 0.4914984703063965, 0.3126448690891266, 0.8414916396141052, -0.45360612869262695, -0.09794029593467712, -0.27786463499069214, -0.24175599217414856, 0.04629287123680115, -0.2896733283996582, 0.03379824012517929, -0.36393341422080994, -0.49277156591415405, 0.12408764660358429, 0.20206528902053833, 0.2610394358634949, 0.12006021291017532, -0.004851259291172028, 0.08410687744617462, 0.0724901556968689, 0.19452491402626038, 0.02365221083164215, 0.340952068567276, 0.28506240248680115, 0.16305436193943024, 0.10716494917869568, 0.06570734083652496, 0.3760983943939209, 0.4957486391067505, 0.3127068877220154, -0.2558750808238983, -0.17879843711853027, -0.17095430195331573, -0.0207853801548481, 0.305611789226532, 0.12821543216705322, 0.35737621784210205, -0.12788166105747223, 0.1344948410987854, -0.1119924858212471, -0.03224007040262222, 0.022112775593996048, 0.19611963629722595, -0.35910293459892273, 0.20528726279735565, 0.036896463483572006, 0.03194233030080795, -0.05523169785737991, 0.41988909244537354, 0.6251695156097412, -0.3203872740268707, 0.2309567928314209, -0.17807534337043762, 0.9257135987281799, -0.01833166554570198, 0.09187330305576324, 0.15612207353115082, -0.07783916592597961, 0.6515153050422668, -0.28497403860092163, 0.017980296164751053, -0.45817580819129944, 0.1263357251882553, -0.04839194566011429, -0.020778298377990723, -0.060957398265600204, -0.33030596375465393, -0.02918456494808197, -0.08586825430393219, -0.10247379541397095, 0.29341426491737366, -0.28638583421707153, 0.27202537655830383, -0.2921438217163086, -0.29141199588775635, -0.05945199355483055, 0.11773104220628738, -0.004282823763787746, 0.3524240255355835, -0.004407923668622971, -0.2664547860622406, -0.3301582932472229, -0.17292430996894836, -0.39746373891830444, -0.012706756591796875, -0.173377126455307, -0.03904034197330475, 0.4413721263408661, 0.13304457068443298, 0.11765648424625397, -0.048676200211048126, 0.6685007810592651, 0.2358463853597641, -0.4864944517612457, -0.07073728740215302, -0.21805408596992493, 0.044908557087183, -0.23749946057796478, 0.04162666201591492, 0.26689302921295166, 0.0324099063873291, -0.19283367693424225, -0.07190033793449402, 0.018384572118520737, -0.36803436279296875, -0.29318907856941223, 0.24391025304794312, -0.2678493857383728, -0.23514685034751892, -0.02665106952190399, 0.08263184130191803, 0.04061362147331238, 0.09886734187602997, 0.0018583126366138458, 0.1933574378490448, -0.19955268502235413, 0.10189243406057358, 0.029033392667770386, -0.195488840341568, 0.02968185395002365, 0.2935468256473541, -0.02294965460896492, 0.046304598450660706, 0.4275963306427002, -0.08597438782453537, 0.03892378509044647, 0.05211222171783447, -0.044011861085891724, 0.47197869420051575, -0.49318718910217285, -0.1534300595521927, -0.00799974799156189, 0.04495720565319061, -0.06885434687137604, 0.11373461782932281, 0.035686563700437546, 0.1977546364068985, 0.26556670665740967, -0.27254611253738403, -0.14743909239768982, 0.019906098023056984, -0.1633324921131134, -0.09795556962490082, 0.11112628877162933, 0.32329705357551575, -0.12343519926071167, -0.06421148777008057, -0.19198977947235107, 0.0864613875746727, -0.2653321623802185, 0.08551354706287384, 0.12038986384868622, -0.04459888115525246, 0.21971547603607178, -0.27141252160072327, -0.0030830465257167816, 0.11179353296756744, -0.30196627974510193, -0.0319284126162529, -0.2576253414154053, 0.14035019278526306, 0.4109824001789093, -0.27439844608306885, -0.12724918127059937, -0.35114938020706177, 0.05995151773095131, -0.11281691491603851, 0.05139151215553284, 0.32226213812828064, -0.0015635453164577484, -0.09782037138938904, 0.41531816124916077, 0.3272964358329773, 0.030255965888500214, 0.1719883680343628, 0.24790050089359283, 0.07625167071819305, -0.26028329133987427, 0.08466283977031708, -0.1570669561624527, 0.15031105279922485, -0.403741717338562, 0.14829953014850616, 0.213169664144516, 0.43005117774009705, 0.12294042110443115, -0.012300679460167885, -0.14141841232776642, 0.14892281591892242, 0.32942789793014526, -0.03863973543047905, -0.3611987233161926, -0.17889538407325745, 0.3418389558792114, 0.05008629336953163, 0.12960228323936462, -0.06546914577484131, 0.4411751627922058, 0.05611354485154152, -0.17804676294326782, 0.14851823449134827, 0.2053465098142624, 0.05885431170463562, 0.253337562084198, -0.06385655701160431, 0.5280749797821045, 0.06318143755197525, 0.01908241957426071, -0.04942235350608826, -0.3665371835231781, -0.016819080337882042, 0.5724077224731445, 0.046103622764348984, -0.16744181513786316, 0.13578037917613983, -0.3201708495616913, -0.01928987167775631, -0.05968645215034485, -0.2617901861667633, 0.19227156043052673, -0.05693228542804718, -0.08283120393753052, -0.22117260098457336, 0.09369595348834991, -0.03490174934267998, -0.019266046583652496, 0.39553579688072205, -0.11832518875598907, -0.36042851209640503, -0.27381622791290283, 0.31096288561820984, -0.32866397500038147, 0.014184493571519852, -0.26158758997917175, -0.16040848195552826, 0.04653051495552063, -0.20514509081840515, -0.2590543031692505, -0.4244498312473297, 0.011199671775102615, 0.11944295465946198, -0.22602364420890808, -0.34371599555015564, -0.05473870038986206, 0.31424376368522644, 0.290554940700531, -0.11715924739837646, 0.28709301352500916, -0.06565780937671661, -0.08043058216571808, -0.00616005202755332, 0.3265017867088318, 0.4099944829940796, 0.19727890193462372, 0.3586052656173706, 0.19004693627357483, 0.12719759345054626, 0.06874776631593704, 0.045254431664943695, 0.2624501585960388, 0.04730459675192833, 0.014082565903663635, 0.02350546419620514, 0.05985848605632782, -0.014291148632764816, 0.08813975751399994, 0.03850827366113663, 0.13199862837791443, 0.014783311635255814, 0.08306892216205597, -0.5836787223815918, -0.19456154108047485, -0.2697923481464386, 0.08310505747795105, -0.1010972335934639, 0.2801286280155182, 0.2291991114616394, 0.021523240953683853, 0.10937594622373581, -0.680367648601532, 0.014754995703697205, -0.12315703928470612, 0.2505612373352051, 0.6758995056152344, -0.24813513457775116, -0.16706037521362305, -0.047927796840667725, -0.26837220788002014, 0.2874636948108673, -0.1407744288444519, -0.06933482736349106, -0.02917638048529625, 0.04725242406129837, -0.22452841699123383, -0.2996746301651001, -0.04232054203748703, -0.06945145130157471, -0.12337149679660797, 0.13092491030693054, -0.168371319770813, 0.06511473655700684, -0.004954151809215546, -0.13764691352844238, 0.16927655041217804, 0.08027131855487823, 0.48742565512657166, -0.186820849776268, -0.017056874930858612, -0.18808014690876007, 0.24099689722061157, -0.138017475605011, -0.050150297582149506, 0.2416865974664688, 0.30424100160598755, -0.07761490345001221, 0.02423928678035736, -0.0333172008395195, -0.30278873443603516, -0.16861431300640106, -0.3562658131122589, 0.08285286277532578, -0.18474380671977997, 0.220938578248024, -0.027809424325823784, -0.4623831808567047, -0.10882511734962463, 0.16862188279628754, -0.00020363181829452515, 0.028849292546510696, 0.07950140535831451, 0.41044318675994873, -0.3158459961414337, -0.021998753771185875, 0.29267418384552, 0.10927322506904602, 0.08831056952476501, 0.26166215538978577, -0.45831021666526794, -0.30562981963157654, 0.29848113656044006, -0.44183117151260376, -0.041429903358221054, 0.14474590122699738, 0.13616441190242767, 0.3456663489341736, -0.5737916231155396, -0.4120422601699829, 0.11736947298049927, 0.18545913696289062, -0.09343484044075012, -0.04331020265817642, 0.1044430285692215, -0.20311187207698822, 0.05756324529647827, 0.003169439733028412, -0.04261864349246025, 0.40351173281669617, -0.2846792936325073, 0.7448828816413879, 0.13190855085849762 ]
https://github.com/huggingface/datasets/issues/5600
Hi! > (see example of DreamboothDatasets) Could you please provide a link to it? If you are referring to the example in the `diffusers` repo, your issue is unrelated to `datasets` as that example uses `Dataset` from PyTorch to load data.
Dataloader getitem not working for DreamboothDatasets
### Describe the bug Dataloader getitem is not working as before (see example of [DreamboothDatasets](https://github.com/huggingface/peft/blob/main/examples/lora_dreambooth/train_dreambooth.py#L451C14-L529)) moving Datasets to 2.8.0 solved the issue. ### Steps to reproduce the bug 1- using DreamBoothDataset to load some images 2- error after loading when trying to visualise the images ### Expected behavior I was expecting a numpy array of the image ### Environment info - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5
41
Dataloader getitem not working for DreamboothDatasets ### Describe the bug Dataloader getitem is not working as before (see example of [DreamboothDatasets](https://github.com/huggingface/peft/blob/main/examples/lora_dreambooth/train_dreambooth.py#L451C14-L529)) moving Datasets to 2.8.0 solved the issue. ### Steps to reproduce the bug 1- using DreamBoothDataset to load some images 2- error after loading when trying to visualise the images ### Expected behavior I was expecting a numpy array of the image ### Environment info - Platform: Linux-5.10.147+-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 9.0.0 - Pandas version: 1.3.5 Hi! > (see example of DreamboothDatasets) Could you please provide a link to it? If you are referring to the example in the `diffusers` repo, your issue is unrelated to `datasets` as that example uses `Dataset` from PyTorch to load data.
[ -0.43487417697906494, 0.05399085581302643, 0.030207842588424683, 0.5625460147857666, 0.30811482667922974, -0.06847412884235382, 0.5493575930595398, 0.2516697645187378, 0.11080919206142426, 0.18487286567687988, -0.23793655633926392, 0.11405991017818451, -0.055332690477371216, -0.2742108106613159, 0.09485933929681778, -0.17118902504444122, 0.010446686297655106, 0.1012287363409996, -0.30680716037750244, -0.03946581482887268, -0.07002092897891998, 0.1913524568080902, -0.3028464615345001, 0.15888313949108124, -0.38215377926826477, 0.03008929453790188, -0.1968623399734497, 0.3531903624534607, 0.21974530816078186, -0.2055966854095459, 0.3408747911453247, -0.09779614210128784, 0.3190913200378418, 0.3745476305484772, -0.00011384297249605879, 0.19521844387054443, 0.38050028681755066, -0.09557487070560455, -0.08955419063568115, -0.21735920011997223, -0.10300612449645996, -0.1520228087902069, 0.03166962414979935, -0.231755793094635, -0.12203895300626755, -0.23259633779525757, -0.0902089923620224, 0.13777104020118713, 0.1828729808330536, 0.028551969677209854, 0.23428875207901, 0.05319812148809433, 0.0661223977804184, 0.11679151654243469, 0.2891988456249237, 0.2899232804775238, 0.026145361363887787, 0.35407131910324097, 0.19843611121177673, -0.1705876588821411, -0.28578275442123413, 0.29853421449661255, -0.21653962135314941, 0.45996952056884766, 0.14884862303733826, 0.07969217747449875, 0.05208016559481621, -0.26363205909729004, -0.0662710964679718, 0.24693447351455688, 0.5898844003677368, -0.2419777661561966, -0.1786205768585205, -0.4136284589767456, -0.2909553647041321, 0.0798644870519638, 0.3066558539867401, 0.21824507415294647, -0.20114222168922424, -0.03878556936979294, 0.007550247013568878, -0.007557850331068039, -0.32815301418304443, 0.3248630464076996, 0.11094127595424652, -0.216445654630661, -0.20692187547683716, 0.19656722247600555, 0.17808818817138672, 0.08460403233766556, 0.19194233417510986, -0.09140802919864655, -0.09802131354808807, 0.09941649436950684, -0.26225632429122925, 0.11139191687107086, -0.01111355796456337, -0.0339834950864315, -0.14349094033241272, -0.22012454271316528, 0.3014613091945648, 0.20312924683094025, -0.21489830315113068, 0.3089470863342285, 0.2768113315105438, 0.04407515004277229, -0.2116321176290512, 0.4580286145210266, 0.19496704638004303, 0.25516751408576965, 0.0010576844215393066, -0.06233056262135506, -0.32357728481292725, -0.09374803304672241, 0.023081012070178986, 0.0986146479845047, 0.10364878922700882, -0.3246471583843231, -0.13702130317687988, -0.18050028383731842, -0.09357709437608719, 0.08922310173511505, 0.097081258893013, 0.3474971055984497, -0.22364309430122375, 0.03558563068509102, 0.3024712800979614, 0.17832764983177185, -0.29830193519592285, 0.07372446358203888, -0.22353129088878632, 0.33389973640441895, -0.18461863696575165, 0.0026242174208164215, 0.1931791603565216, -0.5825101733207703, 0.3613893985748291, -0.026748303323984146, 0.23298008739948273, 0.08627069741487503, 0.05728930979967117, -0.207421213388443, -0.07044923305511475, 0.1673022210597992, -0.14463190734386444, -0.06253422796726227, 0.26074859499931335, 0.022989436984062195, 0.04973830282688141, 0.2541359066963196, -0.3414459526538849, -0.16406944394111633, -0.06638067960739136, 0.1491565704345703, -0.1450202465057373, 0.2384001612663269, -0.39008209109306335, -0.0450984351336956, 0.16407547891139984, -0.19651910662651062, -0.042972221970558167, -0.3234941363334656, 0.047296248376369476, -0.20542865991592407, 0.06529858708381653, 0.3205116391181946, -0.20730367302894592, -0.23488229513168335, -0.1349717676639557, -0.2924489676952362, 0.04063292592763901, -0.10343974083662033, -0.21978135406970978, 0.38704240322113037, -0.4707506000995636, 0.11676348745822906, 0.15011659264564514, -0.4478604793548584, -0.3656400144100189, 0.038500964641571045, 0.11337771266698837, 0.0799567773938179, -0.019970674067735672, 0.3625428378582001, 0.36210283637046814, 0.05253803730010986, 0.16433867812156677, 0.2565055191516876, 0.13323187828063965, 0.038998544216156006, -0.08072374761104584, -0.1417234241962433, -0.11662960797548294, 0.45858079195022583, 0.08475208282470703, 0.28859323263168335, 0.3584947884082794, 0.3759291470050812, 0.2509908676147461, 0.1589173823595047, -0.0204793531447649, 0.17916971445083618, 0.052956268191337585, -0.2316499650478363, 0.13809511065483093, -0.054474472999572754, -0.35395684838294983, 0.4082542359828949, 0.050621598958969116, -0.01227528229355812, -0.17006370425224304, 0.23156216740608215, 0.01632198691368103, 0.10592120885848999, -0.422178715467453, -0.48690080642700195, 0.05076614022254944, 0.24276085197925568, 0.18569213151931763, -0.18173711001873016, 0.10092750191688538, 0.4039058983325958, 0.0030624493956565857, 0.04570591077208519, -0.3323238492012024, 0.7860234379768372, 0.03168201446533203, -0.31524351239204407, -0.005986019968986511, 0.062450747936964035, -0.007699694484472275, -0.2287670224905014, -0.19036729633808136, 0.43578699231147766, 0.20748813450336456, -0.09909045696258545, -0.2717955708503723, 0.14337624609470367, 0.14077326655387878, 0.24032756686210632, 0.24209509789943695, 0.2885546088218689, 0.1364779770374298, -0.049986135214567184, -0.01819668896496296, 0.3602730333805084, -0.23633649945259094, 0.13849307596683502, 0.02218102663755417, 0.016837716102600098, 0.03930089622735977, 0.17285427451133728, 0.11301515996456146, -0.14854203164577484, 0.14119362831115723, 0.07344980537891388, 0.3538011610507965, -0.18874213099479675, -0.2952301502227783, -0.044591762125492096, 0.17368711531162262, 0.10900004208087921, 0.20437230169773102, 0.016214895993471146, -0.4036630392074585, -0.011649321764707565, 0.6278613805770874, 0.044534653425216675, 0.49690359830856323, 0.09747002273797989, -0.22128280997276306, 0.05411814898252487, -0.21981322765350342, -0.050272390246391296, 0.04438638314604759, 0.12300769984722137, 0.39999306201934814, 0.09671901166439056, -0.005727954208850861, -0.10919573903083801, -0.30544155836105347, -0.26360052824020386, -0.00948796421289444, 0.48967722058296204, -0.2811058759689331, -0.017155218869447708, -0.27883994579315186, -0.45809346437454224, -0.09358928352594376, -0.1602330058813095, -0.3099796175956726, -0.1969704031944275, -0.11351467669010162, 0.46075713634490967, 0.17095771431922913, 0.1782398521900177, -0.06357350945472717, -0.11934962868690491, 0.37366241216659546, 0.1883094161748886, -0.1791757196187973, 0.03722388297319412, -0.29770371317863464, 0.05636116862297058, 0.06835638731718063, -0.11634610593318939, 0.0933615118265152, 0.14073330163955688, 0.12017399072647095, -0.319469153881073, -0.12068583816289902, 0.27841517329216003, -0.00881943665444851, 0.37097564339637756, 0.10317878425121307, 0.18397849798202515, 0.17358742654323578, 0.023566897958517075, 0.35371145606040955, 0.09174179285764694, -0.32282838225364685, 0.264974445104599, 0.25725463032722473, -0.17946594953536987, -0.03927865996956825, 0.0737241804599762, -0.35371604561805725, -0.3813731074333191, -0.07714973390102386, 0.04178055375814438, 0.22124440968036652, 0.4076409339904785, 0.3174019157886505, 0.22267182171344757, -0.08461272716522217, -0.18901196122169495, -0.0535266250371933, -0.1311851143836975, 0.16863815486431122, -0.17386282980442047, -0.3665069043636322, -0.21997815370559692, -0.031448300927877426, 0.1275252401828766, 0.28899458050727844, -0.6326382160186768, -0.5692799687385559, -0.10177125036716461, 0.1653173565864563, 0.04018273949623108, -0.0009721089154481888, 0.09108631312847137, 0.12531743943691254, -0.05854416266083717, -0.11855453252792358, -0.07208491116762161, 0.07424680888652802, -0.06999265402555466, 0.04333021119236946, 0.19603142142295837, 0.2626016438007355, 0.02256815880537033, 0.3718537390232086, -0.005355872213840485, -0.27828603982925415, 0.3524722456932068, -0.1239163875579834, 0.35412073135375977, 0.023193031549453735, -0.5072596669197083, 0.36873680353164673, -0.12606655061244965, 0.054032862186431885, 0.03988254442811012, -0.104169100522995, -0.04639352485537529, -0.15221254527568817, 0.014047764241695404, -0.2220694124698639, -0.07678021490573883, -0.14596441388130188, 0.014880899339914322, -0.07198616862297058, -0.12235110998153687, 0.16464248299598694, -0.04698188602924347, -0.23299644887447357, -0.09265187382698059, 0.17414522171020508, 0.020929764956235886, -0.0077476538717746735, -0.2250259518623352, 0.051103074103593826, -0.051630597561597824, 0.273460328578949, 0.1406819373369217, 0.4140245318412781, 0.09604811668395996, 0.14354194700717926, 0.04574798420071602, 0.006197933107614517, 0.840802788734436, -0.034826915711164474, 0.23884834349155426, 0.15698570013046265, -0.07779938727617264, -0.3593933582305908, -0.26642662286758423, -0.16802257299423218, 0.5306476354598999, -0.20841990411281586, 0.2933329641819, -0.20780950784683228, -0.16198992729187012, -0.021594509482383728, 0.0906820297241211, -0.16206759214401245, -0.18803206086158752, -0.37856417894363403, 0.04691478610038757, -0.44881558418273926, -0.20413744449615479, -0.22140780091285706, 0.12021196633577347, -0.1490769386291504, -0.29883497953414917, 0.006321316584944725, -0.42366576194763184, -0.20715753734111786, 0.04988129436969757, 0.269433856010437, -0.14490602910518646, 0.3604139983654022, 0.18131494522094727, 0.3617543876171112, 0.13412140309810638, 0.5003924369812012, -0.03787311166524887, -0.29835939407348633, 0.2873844802379608, -0.07493392378091812, -0.1454889476299286, 0.25112268328666687, -0.24846124649047852, 0.09355615079402924, -0.2094448208808899, -0.05673656985163689, -0.22962066531181335, 0.20904923975467682, 0.22474166750907898, 0.022977657616138458, -0.18540632724761963, -0.653876006603241, 0.4035269320011139, -0.013366825878620148, -0.015666410326957703, 0.42730095982551575, -0.5268374085426331, -0.270953506231308, -0.07511940598487854, -0.011377889662981033, 0.6470746994018555, 0.14644452929496765, 0.1778581440448761, 0.36224305629730225, 0.05672068893909454, 0.27020302414894104, 0.21430256962776184, 0.15083488821983337, -0.5524003505706787, -0.14273978769779205, -0.1502751260995865, -0.33957886695861816, 0.24176952242851257, 0.2281372845172882, -0.10311264544725418, 0.24129639565944672, 0.145970419049263, 0.11897268891334534, -0.05875235050916672, 0.1798572987318039, -0.04459948465228081, -0.23537130653858185, -0.21283215284347534, 0.16229233145713806, -0.2776987552642822, 0.2426857054233551, -0.20204108953475952, 0.032557789236307144, -0.23872312903404236, 0.025920391082763672, -0.22882652282714844, 0.43111467361450195, -0.2417166531085968, 0.49407750368118286, 0.14279232919216156, -0.034156739711761475, -0.30261528491973877, 0.18196386098861694, -0.2909083068370819, -0.07650718092918396, -0.20785057544708252, 0.1247466504573822, -0.16396735608577728, 0.06568974256515503, 0.18959017097949982, -0.04795422777533531, 0.4112687110900879, -0.0808132067322731, -0.0928468108177185, 0.04783852398395538, -0.14207600057125092, -0.14244528114795685, -0.23207718133926392, 0.08416230976581573, 0.29456043243408203, -0.20841099321842194, -0.3562385141849518, -0.16139210760593414, -0.11083633452653885, -0.1681685745716095, 0.10448561608791351, 0.37108945846557617, -0.04378379508852959, 0.019717354327440262, -0.025416668504476547, -0.12283861637115479, 0.03072514757514, 0.581321120262146, -0.03851904720067978, -0.1425953358411789, 0.4396195709705353, 0.2570945620536804, -0.26720911264419556, -0.07856721431016922, 0.04591533541679382, 0.21437641978263855, -0.7670509815216064, 0.09321484714746475, -0.010680928826332092, 0.12641499936580658, 0.04289403557777405, 0.08102358132600784, -0.01906321570277214, -0.17040430009365082, -0.060081660747528076, -0.5911353230476379, -0.12309421598911285, 0.07538682222366333, -0.2684836983680725, 0.21602748334407806, -0.2127927839756012, -0.35653626918792725, -0.02615274488925934, 0.003338754177093506, -0.2646506428718567, 0.06802797317504883, -0.10055112838745117, 0.06943249702453613, -0.01315484382212162, 0.09689018875360489, 0.11506156623363495, -0.2239665985107422, 0.1039474830031395, 0.2099275290966034, -0.26173701882362366, -0.12565743923187256, -0.18368184566497803, 0.16043394804000854, 0.15734747052192688, -0.3527166545391083, -0.12486930191516876, -0.15299484133720398, -0.21008235216140747, -0.062385041266679764, 0.15404395759105682, -0.03480108082294464, -0.18043456971645355, 0.11099167168140411, 0.5982090830802917, 0.20026795566082, 0.15046676993370056, 0.13010704517364502, -0.21735887229442596, 0.19421738386154175, 0.1566937118768692, -0.013789643533527851, -0.029502656310796738, 0.011556334793567657, -0.25923123955726624, -0.033654212951660156, -0.13260188698768616, -0.004301233217120171, 0.6765510439872742, -0.2919335961341858, 0.19857773184776306, -0.16706222295761108, 0.5585616827011108, -0.029535148292779922, -0.20347115397453308, -0.02094203233718872, 0.3409085273742676, 0.15534840524196625, -0.38555461168289185, -0.0036142729222774506, 0.08335794508457184, -0.15792404115200043, -0.15247108042240143, 0.19273489713668823, -0.016817405819892883, 0.21149873733520508, -0.046082209795713425, 0.07710524648427963, 0.49342092871665955, -0.2560737431049347, -0.03786173462867737, 0.5598239898681641, -0.1339341700077057, 0.12144236266613007, 0.3599398732185364, 0.06875471770763397, 0.056900668889284134, 0.5533960461616516, 0.020087888464331627, 0.14150147140026093, 0.364607036113739, 0.08114106208086014, 0.10174930095672607, -0.580216646194458, 0.18736886978149414, 0.24431604146957397, 0.09014661610126495, 0.33105939626693726, -0.19312012195587158, 0.08510121703147888, -0.2713044285774231, 0.2377379834651947, 0.02750895917415619, 0.19275915622711182, -0.1506117880344391, 0.1075415164232254, 0.19070085883140564, -0.2417246252298355, -0.3323335647583008, 0.0639227107167244, -0.14726242423057556, -0.40757492184638977, 0.02832876332104206, 0.15679720044136047, -0.3902173936367035, -0.25483572483062744, 0.0633130595088005, 0.43763837218284607, -0.11106140166521072, -0.10933217406272888, 0.046522051095962524, 0.15918786823749542, 0.18526709079742432, 0.17939046025276184, 0.29240918159484863, 0.4314936697483063, 0.5062416791915894, -0.21738234162330627, -0.16953256726264954, 0.1442134529352188, -0.003636252135038376, -0.040320783853530884, 0.21285971999168396, -0.1228947564959526, 0.04333838075399399, 0.152507483959198, 0.1039838194847107, -0.1819411814212799, 0.06616415083408356, 0.1628568023443222, 0.08183319866657257, -0.0029025375843048096, 0.5711954236030579, -0.34100306034088135, -0.10590598732233047, -0.09021666646003723, -0.09032708406448364, -0.6098276376724243, -0.2515800893306732, 0.32387611269950867, -0.13944822549819946, 0.005129080265760422, -0.23213231563568115, 0.06038336455821991, -0.2904055118560791, 0.33211466670036316, 0.5542473196983337, 0.27526864409446716, -0.1715085804462433, 0.1467653512954712, -0.60011225938797, 0.17036184668540955, -0.007511173840612173, -0.46880829334259033, 0.0980241447687149, 0.1154802143573761, 0.09983706474304199, 0.07092735171318054, -0.025673218071460724, 0.04152790084481239, 0.5858005881309509, 0.1216634213924408, -0.45059940218925476, -0.17725980281829834, 0.10550623387098312, 0.19082292914390564, -0.09350121021270752, -0.442531943321228, 0.02771301567554474, 0.059172749519348145, 0.09639407694339752, -0.2245718240737915, -0.10520263761281967, -0.10168537497520447, -0.17001117765903473, 0.43629658222198486, -0.06673232465982437, 0.17333488166332245, -0.04157094284892082, -0.08180946856737137, -0.4138309061527252, -0.3755217492580414, -0.029943939298391342, 0.03241311013698578, -0.1086166501045227, 0.6171231865882874, 0.17422544956207275, -0.2807627320289612, -0.6193242073059082, 0.07082556933164597, -0.22228261828422546, 0.21941986680030823, -0.22981372475624084, 0.26505738496780396, -0.18635234236717224, 0.11874216794967651, -0.023185454308986664, 0.0065365019254386425, 0.00996709056198597, 0.12580832839012146, -0.359548956155777, -0.2916207015514374, 0.413212388753891, -0.23553548753261566, -0.11276146024465561, 0.06091093271970749, 0.014671530574560165, -0.2651437520980835, -0.013783395290374756, -0.4469531774520874, -0.01296660304069519, 0.5225229263305664, -0.048382941633462906, 0.00989840179681778, 0.052180077880620956, 0.14321781694889069, 0.3417951166629791, -0.0978827252984047, 0.2824772000312805, -0.11395052075386047, -0.3280780613422394, 0.3740309774875641, -0.07107949256896973 ]
https://github.com/huggingface/datasets/issues/5597
We won't support in-place modifications since `datasets` is based on the Apache Arrow format which doesn't support in-place modifications. In your case the old dataset is garbage collected pretty quickly so you won't have memory issues. Note that datasets loaded from disk (memory mapped) are not loaded in memory, and therefore the new dataset actually use the same buffers as the old one.
in-place dataset update
### Motivation For the circumstance that I creat an empty `Dataset` and keep appending new rows into it, I found that it leads to creating a new dataset at each call. It looks quite memory-consuming. I just wonder if there is any more efficient way to do this. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds = ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Feature request Call for in-place dataset update functions, that update the existing `Dataset` in place without creating a new copy. The interface is supposed to keep the same style as PyTorch, such as the in-place version of a `function` is named `function_`. For example, the in-pace version of `add_item`, i.e., `add_item_`, immediately updates the `Dataset`. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds.add_item_({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Related Functions * `.map` * `.filter` * `.add_item`
63
in-place dataset update ### Motivation For the circumstance that I creat an empty `Dataset` and keep appending new rows into it, I found that it leads to creating a new dataset at each call. It looks quite memory-consuming. I just wonder if there is any more efficient way to do this. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds = ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Feature request Call for in-place dataset update functions, that update the existing `Dataset` in place without creating a new copy. The interface is supposed to keep the same style as PyTorch, such as the in-place version of a `function` is named `function_`. For example, the in-pace version of `add_item`, i.e., `add_item_`, immediately updates the `Dataset`. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds.add_item_({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Related Functions * `.map` * `.filter` * `.add_item` We won't support in-place modifications since `datasets` is based on the Apache Arrow format which doesn't support in-place modifications. In your case the old dataset is garbage collected pretty quickly so you won't have memory issues. Note that datasets loaded from disk (memory mapped) are not loaded in memory, and therefore the new dataset actually use the same buffers as the old one.
[ -0.21349549293518066, -0.023723885416984558, -0.06979475915431976, -0.19454312324523926, 0.08698493987321854, -0.06579621136188507, 0.02204785868525505, 0.2518307566642761, 0.08775540441274643, 0.057103849947452545, -0.018981505185365677, 0.3782788813114166, -0.15507878363132477, 0.2564660608768463, 0.3700600862503052, 0.03374193608760834, 0.08439934998750687, 0.22480131685733795, -0.23731273412704468, 0.0019026100635528564, -0.33888036012649536, -0.465230256319046, -0.09459275752305984, -0.6790659427642822, -0.12354493886232376, -0.18406996130943298, -0.4112505316734314, -0.18712253868579865, 0.018504846841096878, -0.39049625396728516, 0.2158001959323883, 0.3654203414916992, -0.1884050965309143, 0.40070831775665283, -0.00010755518451333046, 0.045428238809108734, 0.04228413477540016, 0.0022403374314308167, -0.5995652675628662, -0.0021045878529548645, -0.031407181173563004, -0.5905991196632385, -0.05772202089428902, -0.2961640954017639, 0.14189983904361725, -0.4848884344100952, 0.0668874979019165, -0.484360933303833, 0.13005205988883972, -0.007228568196296692, 0.1806313693523407, 0.2956154942512512, -0.23252151906490326, -0.03782074525952339, -0.05822978541254997, 0.31299498677253723, 0.13393603265285492, -0.015480408445000648, 0.36549100279808044, -0.12776392698287964, 0.3164075016975403, 0.44610777497291565, -0.4700215458869934, -0.15307804942131042, 0.7385876774787903, -0.07200305163860321, -0.21761369705200195, -0.11644312739372253, 0.027893349528312683, 0.12957170605659485, 0.35303136706352234, -0.4301714301109314, -0.58070969581604, -0.3050188422203064, 0.17417016625404358, -0.21221646666526794, -0.24027812480926514, -0.020554261282086372, 0.008958123624324799, -0.07058897614479065, -0.23748332262039185, -0.34314587712287903, 0.01609581708908081, 0.16385318338871002, 0.17967000603675842, -0.07483525574207306, 0.29908642172813416, -0.07214091718196869, -0.007609483785927296, -0.30415835976600647, 0.00798574835062027, -0.402232825756073, -0.014135419391095638, 0.3104808032512665, -0.3171396553516388, -0.15317697823047638, 0.19944079220294952, 0.046994321048259735, 0.01749219000339508, 0.09558279812335968, 0.04425923153758049, 0.1738070249557495, -0.02254129946231842, 0.1723981499671936, 0.15612265467643738, -0.08498168736696243, 0.06795930117368698, -0.0006270073354244232, -0.1327001303434372, -0.19750088453292847, 0.22710055112838745, -0.04150756821036339, -0.031074658036231995, 0.27506884932518005, 0.4347566068172455, -0.2728355824947357, 0.21779629588127136, 0.3294150233268738, -0.052287839353084564, -0.03239873796701431, -0.2340439110994339, 0.13612845540046692, -0.15628734230995178, 0.14608517289161682, 0.0834733247756958, 0.13004855811595917, 0.20598407089710236, -0.17890943586826324, -0.23299407958984375, 0.046818457543849945, -0.21463075280189514, 0.24256284534931183, 0.053629182279109955, 0.08986500650644302, 0.1607322096824646, -0.07194197177886963, 0.014752805233001709, 0.16640125215053558, 0.108542300760746, 0.034643352031707764, 0.17370814085006714, -0.2082357108592987, 0.08549559116363525, 0.10579749941825867, -0.08638004213571548, -0.08946511149406433, -0.23270341753959656, 0.007448218762874603, -0.11947886645793915, 0.5556704998016357, 0.09991137683391571, -0.30367109179496765, -0.10967650264501572, 0.24512246251106262, 0.03583782911300659, -0.13033071160316467, -0.029649317264556885, 0.25867876410484314, -0.0053733401000499725, -0.258306622505188, 0.06161998584866524, -0.15982666611671448, -0.29549169540405273, -0.15167662501335144, 0.17986348271369934, 0.585306704044342, -0.2869073152542114, -0.12088969349861145, 0.07049092650413513, 0.31980636715888977, -0.07007414102554321, -0.027792319655418396, -0.03235667943954468, 0.18062296509742737, 0.15629911422729492, -0.2481253743171692, 0.22587908804416656, -0.1687794327735901, -0.38164156675338745, -0.10180097818374634, -0.1195545569062233, -0.030418135225772858, 0.03909251093864441, 0.7333033084869385, 0.21583886444568634, 0.18344205617904663, 0.2570860683917999, -0.018142003566026688, -0.01788392663002014, 0.12487603724002838, -0.1978551149368286, -0.24119985103607178, 0.18585604429244995, 0.0713038444519043, 0.04995587468147278, -0.18171609938144684, -0.20551513135433197, -0.023807868361473083, 0.23563405871391296, -0.14967237412929535, 0.0913933590054512, 0.20122867822647095, 0.4206060767173767, 0.3229394555091858, -0.154780775308609, -0.1457832157611847, -0.715826153755188, 0.13859613239765167, 0.4088888168334961, 0.08494342118501663, -0.2546078860759735, -0.419338196516037, -0.05666971579194069, 0.1518658995628357, 0.14931930601596832, 0.0541672483086586, 0.09167353063821793, 0.27558428049087524, 0.2217315137386322, -0.1734921932220459, -0.32091981172561646, 0.32853269577026367, 0.02942943572998047, 0.08668740093708038, -0.24976283311843872, 0.338163286447525, 0.326298326253891, -0.29989001154899597, -0.13776585459709167, 0.19153040647506714, 0.07775900512933731, -0.20507638156414032, 0.1607494354248047, 0.24090002477169037, 0.15332193672657013, 0.04664859548211098, -0.1587989330291748, 0.23845571279525757, 0.2587847411632538, 0.3706916272640228, 0.14706070721149445, -0.08733628690242767, 0.45033252239227295, 0.007557697594165802, -0.4022687077522278, 0.3858088254928589, 0.08040182292461395, 0.18394102156162262, 0.04183050990104675, 0.0011984631419181824, -0.18736478686332703, 0.0581897497177124, 0.061921022832393646, -0.25350701808929443, -0.20965035259723663, 0.22630448639392853, 0.35929107666015625, 0.22568820416927338, -0.21103256940841675, 0.37424707412719727, 0.10886585712432861, -0.08878261595964432, -0.004483260214328766, -0.04570414498448372, -0.05273721367120743, 0.038602329790592194, 0.0820397213101387, 0.1745249330997467, 0.11105149984359741, 0.28528130054473877, -0.13390496373176575, 0.21532920002937317, 0.4340769350528717, 0.1212010607123375, 0.10127241909503937, 0.19623573124408722, -0.03295435756444931, -0.024365752935409546, 0.3902342915534973, 0.11481886357069016, -0.11257372051477432, 0.018176019191741943, 0.1591293215751648, 0.2259390950202942, 0.15100312232971191, -0.05759016051888466, -0.2327384650707245, -0.1735009104013443, -0.18623702228069305, -0.019188644364476204, -0.029385995119810104, -0.22281695902347565, 0.03812992200255394, 0.22428177297115326, -0.13326194882392883, 0.3674243688583374, -0.11264015734195709, 0.2110067456960678, -0.03568459302186966, -0.6772585511207581, 0.029682010412216187, 0.008672520518302917, 0.20159155130386353, -0.009235929697751999, 0.08449870347976685, 0.2717118263244629, 0.5741594433784485, 0.21286989748477936, 0.041998490691185, -0.3970191478729248, -0.19062240421772003, -0.03724607825279236, 0.018233563750982285, -0.03088374435901642, 0.09268997609615326, -0.04260727018117905, -0.1431451141834259, -0.14321237802505493, -0.0148820411413908, -0.301217257976532, -0.09066436439752579, -0.11952893435955048, 0.14536751806735992, 0.041593194007873535, -0.1737358272075653, -0.2268291711807251, -0.2489876002073288, -0.2564893960952759, -0.11201015114784241, -0.004667848348617554, 0.22370555996894836, -0.08810868859291077, 0.08022770285606384, -0.13933467864990234, -0.013441521674394608, 0.08254043757915497, 0.031996723264455795, -0.1679764986038208, 0.23729006946086884, 0.041443757712841034, -0.08705553412437439, -0.14343664050102234, -0.5043011903762817, -0.13202859461307526, 0.4628440737724304, -0.33480972051620483, -0.593009889125824, -0.23832833766937256, 0.3424476683139801, 0.011978684924542904, 0.29868245124816895, 0.42835646867752075, 0.23534278571605682, -0.1338362693786621, 0.02531067281961441, -0.17279428243637085, 0.0032411105930805206, 0.19078920781612396, -0.39146170020103455, 0.0955875813961029, 0.04826701059937477, 0.024788692593574524, 0.2195815145969391, 0.27296939492225647, -0.1749340146780014, 0.07208262383937836, -0.2929302453994751, 0.3922376334667206, -0.13424625992774963, -0.27086901664733887, -0.20381630957126617, -0.014883942902088165, -0.053454577922821045, -0.1433422565460205, -0.02876940183341503, -0.041005972772836685, -0.004357561469078064, -0.07937676459550858, 0.043202877044677734, -0.11799072474241257, 0.28256550431251526, -0.07573249936103821, 0.41310083866119385, 0.25104403495788574, 0.156210258603096, -0.5135307312011719, 0.12858304381370544, -0.12832099199295044, -0.1383722424507141, 0.21881864964962006, -0.14996419847011566, -0.39435073733329773, 0.13366274535655975, -0.46302124857902527, 0.32114577293395996, 0.31670746207237244, 0.05626242235302925, 0.40200895071029663, -0.12648636102676392, -0.1766246259212494, 0.05932779237627983, 0.3017057478427887, 0.01672360487282276, -0.31780362129211426, 0.07643714547157288, -0.2551761865615845, -0.20817330479621887, 0.20986700057983398, -0.14798767864704132, 0.24726484715938568, 0.12723347544670105, 0.10087614506483078, -0.2857151925563812, -0.2619830369949341, 0.31862330436706543, 0.33064281940460205, -0.2579411268234253, -0.04998752474784851, 0.08723681420087814, -0.45368337631225586, -0.09595289826393127, 0.07278110831975937, -0.05733439326286316, 0.11759606003761292, 0.49882256984710693, 0.18049515783786774, -0.22065556049346924, 0.31039300560951233, 0.21898463368415833, -0.29571571946144104, 0.17992225289344788, 0.40970298647880554, 0.2701692283153534, 0.02465321496129036, -0.0007519703358411789, 0.4506996273994446, 0.4416213035583496, -0.4102883040904999, -0.3739468455314636, -0.4467265009880066, -0.03757556155323982, 0.539448082447052, 0.18841591477394104, 0.26739102602005005, 0.20653317868709564, 0.07807201147079468, 0.22115714848041534, -0.445182740688324, -0.18294811248779297, 0.25114214420318604, 0.009638279676437378, -0.10180217772722244, -0.8474791646003723, 0.1261439025402069, 0.0358678475022316, 0.05520552396774292, 0.3273983895778656, 0.3098587691783905, 0.06177997589111328, 0.2877645790576935, 0.10774543136358261, 0.8262937664985657, 0.27843165397644043, 0.28430604934692383, 0.622487485408783, -0.03663656860589981, 0.42799684405326843, 0.11913695931434631, 0.28933802247047424, -0.10133013874292374, -0.2836945056915283, -0.04021525755524635, 0.05001024901866913, -0.2258625030517578, -0.020288508385419846, -0.1351204663515091, 0.28401482105255127, -0.23686766624450684, 0.04514200985431671, -0.027512557804584503, -0.047243230044841766, -0.19039902091026306, -0.20858867466449738, -0.044263821095228195, 0.17789432406425476, 0.009367327205836773, -0.07840858399868011, -0.13424423336982727, 0.06837339699268341, 0.14946994185447693, -0.0740373283624649, -0.048936836421489716, -0.22362999618053436, -0.08911387622356415, 0.2712772786617279, -0.08518558740615845, -0.18458998203277588, -0.25967973470687866, -0.27341562509536743, -0.2407929003238678, 0.16511845588684082, 0.35761186480522156, -0.06522032618522644, 0.22436703741550446, 0.18988223373889923, 0.1222848892211914, -0.31529608368873596, 0.3078937232494354, 0.23981133103370667, -0.3714434504508972, 0.06677605956792831, -0.1524277925491333, -0.14600282907485962, 0.08754114806652069, -0.1286437064409256, -0.0663398951292038, -0.2636756896972656, -0.12044289708137512, 0.5869972705841064, -0.05274249613285065, -0.1989346742630005, 0.12029660493135452, 0.0728042721748352, -0.05968935415148735, 0.4140353202819824, -0.04607972875237465, -0.1255619376897812, -0.06065165996551514, 0.24676814675331116, 0.34576329588890076, -0.07246996462345123, 0.5079781413078308, -0.06359647959470749, -0.3107792139053345, -0.22844062745571136, 0.09404408931732178, -0.16494610905647278, 0.01570124179124832, 0.27779433131217957, -0.12041867524385452, 0.2552341818809509, 0.026889462023973465, -0.12053689360618591, -0.1351434290409088, 0.09429533779621124, -0.20858728885650635, -0.06146833673119545, -0.19491776823997498, 0.3470505177974701, 0.4665393829345703, 0.39829230308532715, 0.100886769592762, 0.05352748930454254, -0.10593677312135696, 0.2044564187526703, -0.3889126777648926, -0.026954133063554764, 0.08924701809883118, 0.1815129965543747, 0.09765486419200897, -0.021509826183319092, -0.22481027245521545, -0.36539918184280396, 0.1177975982427597, -0.06295146048069, -0.09120834618806839, -0.21471090614795685, -0.162432461977005, 0.08986354619264603, -0.12412864714860916, 0.09304872155189514, -0.06800512224435806, -0.3174077868461609, -0.03201381862163544, -0.2902851700782776, 0.2756689786911011, 0.2859684228897095, -0.2741716504096985, 0.10254160314798355, 0.25437983870506287, 0.04004160687327385, -0.176472008228302, 0.1541557013988495, 0.280509889125824, 0.0028408952057361603, -0.24796953797340393, 0.06216413155198097, 0.12393315136432648, -0.1001012772321701, 0.21242393553256989, 0.14141638576984406, 0.1331271529197693, -0.12850163877010345, 0.18902097642421722, -0.19052666425704956, -0.00184573233127594, 0.13751856982707977, 0.2997101843357086, 0.4887707829475403, -0.06955674290657043, 0.1727622002363205, 0.0010584518313407898, 0.26358935236930847, -0.4405060112476349, -0.2343607097864151, 0.2651771605014801, 0.052417729049921036, 0.43667852878570557, 0.32473206520080566, -0.17256781458854675, 0.009543344378471375, -0.01421438530087471, 0.031017202883958817, -0.05661609768867493, -0.48335516452789307, 0.1416357010602951, 0.3013187050819397, 0.032366976141929626, -0.38194939494132996, 0.163890078663826, 0.4678327441215515, 0.22056090831756592, 0.3217471241950989, 0.14075635373592377, 0.4971054494380951, 0.41531360149383545, -0.10489718616008759, -0.09622610360383987, -0.24349400401115417, 0.09796677529811859, 0.24492131173610687, 0.1203216165304184, -0.043305903673172, 0.2590912878513336, -0.34453579783439636, -0.06577141582965851, -0.23408526182174683, 0.03021623194217682, 0.2247694581747055, -0.058047935366630554, 0.11034002900123596, 0.10998433828353882, -0.1445205807685852, -0.1933608502149582, 0.04135271906852722, 0.029219308868050575, -0.3576119840145111, 0.3293095827102661, 0.020888423547148705, 0.18550074100494385, -0.22622136771678925, 0.1029132828116417, 0.016813738271594048, 0.4221704602241516, -0.23990356922149658, -0.32214128971099854, 0.5485613942146301, 0.009211101569235325, -0.20228633284568787, 0.5522702932357788, 0.22195729613304138, 0.0033653099089860916, -0.1087658554315567, 0.37291520833969116, -0.22520096600055695, -0.0038065090775489807, -0.25936564803123474, -0.05293385311961174, -0.23239699006080627, -0.1273912489414215, 0.0806475356221199, 0.17150551080703735, -0.15436212718486786, 0.30902358889579773, 0.09858331829309464, -0.1899261772632599, -0.5847111344337463, 0.5321871042251587, 0.2663392424583435, -0.3756253123283386, -0.06486411392688751, 0.021792108193039894, -0.019374854862689972, -0.12492439150810242, 0.533887505531311, -0.03951088339090347, -0.018100310117006302, 0.01407865434885025, 0.12930145859718323, -0.019398793578147888, 0.44494736194610596, 0.21487268805503845, 0.25694411993026733, -0.05240742117166519, -0.08954116702079773, -0.49175554513931274, -0.23640631139278412, -0.1920209676027298, -0.2574228048324585, 0.053552478551864624, 0.06698143482208252, 0.16102711856365204, 0.1472233533859253, 0.013958152383565903, -0.1497650295495987, -0.26602232456207275, -0.06832502037286758, -0.35162660479545593, 0.046850237995386124, -0.07517008483409882, -0.12839558720588684, 0.16661472618579865, -0.4129742681980133, -0.043995004147291183, -0.2500455379486084, 0.13148051500320435, -0.03943648189306259, -0.06563587486743927, 0.0829903781414032, 0.02192004956305027, 0.44969040155410767, -0.015535424463450909, -0.07004053890705109, -0.0028352364897727966, -0.14886689186096191, 0.014887787401676178, -0.0031565874814987183, -0.37250393629074097, 0.3846655786037445, 0.08908455818891525, 0.19386395812034607, -0.22493191063404083, -0.17717652022838593, 0.06888090819120407, 0.0056260451674461365, -0.016778483986854553, -0.2521832287311554, -0.27092674374580383, 0.03371024876832962, -0.20138216018676758, 0.23635432124137878, -0.22544607520103455, 0.35229015350341797, -0.07305853068828583, 0.08317097276449203, -0.14613541960716248, 0.012967683374881744, 0.4765227735042572, -0.08572934567928314, -0.22445915639400482, -0.38902807235717773, 0.03602585196495056, -0.016805797815322876, -0.07187062501907349, -0.10497570782899857, 0.0907159298658371, 0.3174574673175812, -0.07594867795705795, -0.046863555908203125, 0.3040402829647064, -0.13709546625614166, -0.17266973853111267, -0.134988933801651, 0.3883903920650482, -0.3493315577507019, -0.07517696171998978, -0.24044568836688995, -0.32351988554000854 ]
https://github.com/huggingface/datasets/issues/5597
Thank you for your detailed reply. > In your case the old dataset is garbage collected pretty quickly so you won't have memory issues. I understand this, but it still copies the old dataset to create the new one, is this correct? So maybe it is not memory-consuming, but time-consuming?
in-place dataset update
### Motivation For the circumstance that I creat an empty `Dataset` and keep appending new rows into it, I found that it leads to creating a new dataset at each call. It looks quite memory-consuming. I just wonder if there is any more efficient way to do this. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds = ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Feature request Call for in-place dataset update functions, that update the existing `Dataset` in place without creating a new copy. The interface is supposed to keep the same style as PyTorch, such as the in-place version of a `function` is named `function_`. For example, the in-pace version of `add_item`, i.e., `add_item_`, immediately updates the `Dataset`. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds.add_item_({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Related Functions * `.map` * `.filter` * `.add_item`
50
in-place dataset update ### Motivation For the circumstance that I creat an empty `Dataset` and keep appending new rows into it, I found that it leads to creating a new dataset at each call. It looks quite memory-consuming. I just wonder if there is any more efficient way to do this. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds = ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Feature request Call for in-place dataset update functions, that update the existing `Dataset` in place without creating a new copy. The interface is supposed to keep the same style as PyTorch, such as the in-place version of a `function` is named `function_`. For example, the in-pace version of `add_item`, i.e., `add_item_`, immediately updates the `Dataset`. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds.add_item_({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Related Functions * `.map` * `.filter` * `.add_item` Thank you for your detailed reply. > In your case the old dataset is garbage collected pretty quickly so you won't have memory issues. I understand this, but it still copies the old dataset to create the new one, is this correct? So maybe it is not memory-consuming, but time-consuming?
[ -0.2311348170042038, -0.033191755414009094, -0.07787804305553436, -0.1677912473678589, 0.056264039129018784, -0.040140725672245026, 0.0020927260629832745, 0.28402233123779297, 0.11320625245571136, 0.011603932827711105, -0.04796017333865166, 0.3844509422779083, -0.1661480963230133, 0.27561941742897034, 0.3071041703224182, 0.022623248398303986, 0.029603831470012665, 0.20647355914115906, -0.22306692600250244, -0.01743999868631363, -0.34502488374710083, -0.41690096259117126, -0.09358735382556915, -0.6821794509887695, -0.12066824734210968, -0.18257485330104828, -0.4174821674823761, -0.1458689570426941, 0.030344396829605103, -0.3675224184989929, 0.20619520545005798, 0.3356493413448334, -0.16076034307479858, 0.39558571577072144, -0.00010660370753612369, 0.01155111938714981, 0.037744127213954926, -0.02036689594388008, -0.5743505358695984, -0.014059595763683319, -0.047059062868356705, -0.5867291688919067, -0.07973361015319824, -0.30150508880615234, 0.09199095517396927, -0.47270068526268005, 0.033835090696811676, -0.47014594078063965, 0.15166136622428894, 0.0020016878843307495, 0.1903112679719925, 0.2710268497467041, -0.18184250593185425, -0.012002810835838318, -0.03747180104255676, 0.28762757778167725, 0.1642368882894516, -0.0008638408035039902, 0.36992114782333374, -0.10465335845947266, 0.2883492708206177, 0.4794026017189026, -0.49940407276153564, -0.14829480648040771, 0.7016012668609619, -0.0809750035405159, -0.17465099692344666, -0.10767859220504761, 0.017846547067165375, 0.11162902414798737, 0.3617744445800781, -0.4303668439388275, -0.5324802994728088, -0.2908054292201996, 0.16703984141349792, -0.2726195752620697, -0.2488904446363449, -0.020609460771083832, 0.005023039877414703, -0.08428231626749039, -0.21287783980369568, -0.37796178460121155, 0.0062058717012405396, 0.17517560720443726, 0.15379519760608673, -0.053969647735357285, 0.29269880056381226, -0.08369933068752289, -0.004060124978423119, -0.30837544798851013, 0.04440433531999588, -0.39273715019226074, 0.007606038823723793, 0.31538471579551697, -0.3125956952571869, -0.1778859943151474, 0.1974501758813858, 0.00645221583545208, -0.0019080787897109985, 0.09460754692554474, 0.021932199597358704, 0.19497375190258026, -0.02371494472026825, 0.18698297441005707, 0.14703291654586792, -0.08544410020112991, 0.10175701975822449, 0.010465189814567566, -0.1578550785779953, -0.1354352980852127, 0.1577049344778061, -0.050191979855298996, -0.01836465299129486, 0.27640262246131897, 0.46367108821868896, -0.21785956621170044, 0.2704952359199524, 0.2860921323299408, -0.06776787340641022, -0.00006539002060890198, -0.20321014523506165, 0.1350994110107422, -0.14823874831199646, 0.1804828643798828, 0.05476304143667221, 0.13594743609428406, 0.2203117460012436, -0.20108114182949066, -0.2351161241531372, 0.030924126505851746, -0.21562589704990387, 0.22708195447921753, 0.06992122530937195, 0.06388124823570251, 0.14244291186332703, -0.05644237995147705, 0.06334277987480164, 0.16994976997375488, 0.07188928127288818, 0.030870512127876282, 0.18490174412727356, -0.2175815850496292, 0.1090056300163269, 0.11355957388877869, -0.08868250995874405, -0.0878213495016098, -0.20606118440628052, 0.017540812492370605, -0.12164632976055145, 0.5644988417625427, 0.06017768755555153, -0.3031452000141144, -0.14038380980491638, 0.25393879413604736, 0.015860237181186676, -0.1140747219324112, -0.013353265821933746, 0.23028762638568878, -0.010983951389789581, -0.27820342779159546, 0.039792612195014954, -0.17194971442222595, -0.30154457688331604, -0.17276979982852936, 0.15287938714027405, 0.5832510590553284, -0.2937568724155426, -0.11159466952085495, 0.04797172173857689, 0.3000059425830841, -0.07362814247608185, -0.027272041887044907, -0.004732236266136169, 0.14614181220531464, 0.14254143834114075, -0.2570895850658417, 0.21442073583602905, -0.13156841695308685, -0.38709184527397156, -0.13251428306102753, -0.11426190286874771, 0.022326171398162842, -0.00952443853020668, 0.7113599181175232, 0.22856485843658447, 0.1724366396665573, 0.2449347823858261, -0.02596304565668106, -0.006778371520340443, 0.07905460149049759, -0.22990533709526062, -0.23074889183044434, 0.17320725321769714, 0.07327370345592499, 0.07691677659749985, -0.18900969624519348, -0.2253263145685196, -0.016838107258081436, 0.24744565784931183, -0.15488743782043457, 0.10915518552064896, 0.2284369170665741, 0.4552927017211914, 0.28405851125717163, -0.13735459744930267, -0.17940747737884521, -0.7026585936546326, 0.15260183811187744, 0.34178388118743896, 0.07919443398714066, -0.27135100960731506, -0.3977113962173462, -0.09061078727245331, 0.10435578972101212, 0.12408645451068878, 0.0648491308093071, 0.10393691062927246, 0.2851860225200653, 0.2020423412322998, -0.18230128288269043, -0.3008662760257721, 0.32755956053733826, 0.02703551948070526, 0.08044508099555969, -0.2602790594100952, 0.35451197624206543, 0.31316009163856506, -0.28819066286087036, -0.1217155009508133, 0.19226998090744019, 0.1448189914226532, -0.19509799778461456, 0.18460072576999664, 0.2315913736820221, 0.14395751059055328, 0.030771464109420776, -0.17500104010105133, 0.20166809856891632, 0.24956965446472168, 0.35185983777046204, 0.18013843894004822, -0.050130780786275864, 0.439367413520813, 0.03612157702445984, -0.35596829652786255, 0.4167563319206238, 0.06449482589960098, 0.16262993216514587, 0.04714207351207733, 0.0069432929158210754, -0.1897132843732834, 0.017535418272018433, 0.10005340725183487, -0.2489790916442871, -0.18474546074867249, 0.1806994080543518, 0.3020765781402588, 0.23795068264007568, -0.19976159930229187, 0.4107167720794678, 0.14188015460968018, -0.1047481894493103, -0.013214286416769028, -0.01423245295882225, -0.09713645279407501, 0.033065542578697205, 0.08745383471250534, 0.20938022434711456, 0.123857282102108, 0.3028578758239746, -0.13339844346046448, 0.22044850885868073, 0.45558640360832214, 0.14438830316066742, 0.10758815705776215, 0.17603076994419098, 0.01957099884748459, 0.0009826542809605598, 0.3572872281074524, 0.098910391330719, -0.10408735275268555, 0.026747919619083405, 0.1564893126487732, 0.2636577785015106, 0.17020010948181152, -0.0935230702161789, -0.21775110065937042, -0.15820303559303284, -0.21447287499904633, -0.0069697555154562, -0.056780919432640076, -0.2097524106502533, 0.03776860237121582, 0.2262672483921051, -0.13069814443588257, 0.3679346740245819, -0.11143296957015991, 0.17225117981433868, -0.01423194631934166, -0.6752380728721619, 0.03329165279865265, -0.029126876965165138, 0.20587293803691864, 0.018918126821517944, 0.07424740493297577, 0.28424161672592163, 0.5434425473213196, 0.193334698677063, 0.0398404523730278, -0.38927480578422546, -0.18578743934631348, -0.035346172749996185, 0.03615722432732582, -0.044030964374542236, 0.07102707773447037, 0.028450828045606613, -0.1289493888616562, -0.1592305302619934, -0.0178079791367054, -0.3388753831386566, -0.11435413360595703, -0.10714885592460632, 0.1599600911140442, 0.09260980784893036, -0.1340436041355133, -0.2393951565027237, -0.2668306827545166, -0.24906915426254272, -0.12707294523715973, 0.009956955909729004, 0.25144118070602417, -0.08870945870876312, 0.08235751837491989, -0.15484501421451569, -0.020191218703985214, 0.09334065765142441, -0.0037711001932621002, -0.16355018317699432, 0.23338103294372559, 0.045429687947034836, -0.09167017787694931, -0.11532609164714813, -0.49427226185798645, -0.13107849657535553, 0.4453528821468353, -0.35695165395736694, -0.5890804529190063, -0.21304942667484283, 0.32830697298049927, 0.012160052545368671, 0.26166388392448425, 0.43931373953819275, 0.2496543973684311, -0.14768707752227783, 0.012436367571353912, -0.16014568507671356, -0.021199695765972137, 0.1842660903930664, -0.34820714592933655, 0.07459686696529388, 0.04475671052932739, 0.03854411095380783, 0.2438584864139557, 0.27068158984184265, -0.16199593245983124, 0.06827889382839203, -0.2575686275959015, 0.3740212321281433, -0.1181420385837555, -0.2921692728996277, -0.21331793069839478, -0.03243641555309296, -0.03382612019777298, -0.13442464172840118, -0.024100355803966522, -0.04407457262277603, -0.01669050008058548, -0.14686070382595062, 0.007443368434906006, -0.14169685542583466, 0.2977593243122101, -0.06271577626466751, 0.42710399627685547, 0.27008628845214844, 0.15173985064029694, -0.5152163505554199, 0.08945338428020477, -0.10668211430311203, -0.1503905951976776, 0.195296972990036, -0.16328321397304535, -0.41483253240585327, 0.1499985009431839, -0.4614258110523224, 0.36686933040618896, 0.2929562032222748, 0.01579616218805313, 0.40981733798980713, -0.11974239349365234, -0.21994130313396454, 0.06129080057144165, 0.3115862011909485, 0.048659421503543854, -0.30398499965667725, 0.09553474187850952, -0.24783995747566223, -0.20878855884075165, 0.2411641776561737, -0.13837085664272308, 0.2229650765657425, 0.13502465188503265, 0.11741224676370621, -0.27744531631469727, -0.27264904975891113, 0.35555970668792725, 0.3481179475784302, -0.2518199682235718, 0.005766883492469788, 0.06447006016969681, -0.4521791338920593, -0.10712159425020218, 0.08721278607845306, -0.07045194506645203, 0.14385651051998138, 0.45694500207901, 0.1890268325805664, -0.2039324790239334, 0.2851414978504181, 0.23215487599372864, -0.2851826548576355, 0.23524680733680725, 0.41922637820243835, 0.24855265021324158, 0.016627438366413116, 0.006970252841711044, 0.4523882567882538, 0.4528311491012573, -0.39614227414131165, -0.3735140860080719, -0.44637560844421387, 0.0008064620196819305, 0.5444921255111694, 0.1970832645893097, 0.2867577373981476, 0.2060595005750656, 0.03596695140004158, 0.2220405787229538, -0.40271735191345215, -0.1803189218044281, 0.2196822464466095, 0.02086084708571434, -0.10270172357559204, -0.8089872598648071, 0.09874113649129868, 0.009550750255584717, 0.0651475340127945, 0.31244587898254395, 0.2680183947086334, 0.074802465736866, 0.28194618225097656, 0.08990145474672318, 0.8478459715843201, 0.25228360295295715, 0.2529142200946808, 0.588509738445282, -0.039042819291353226, 0.4391613304615021, 0.12203530222177505, 0.27189207077026367, -0.10642109811306, -0.31284162402153015, -0.03273686394095421, 0.06893676519393921, -0.2118930071592331, -0.018355028703808784, -0.13661345839500427, 0.3050575852394104, -0.2238682210445404, 0.04257085919380188, 0.003286130726337433, -0.0196525976061821, -0.15780037641525269, -0.1719329059123993, -0.07430174946784973, 0.1878199577331543, -0.02504701167345047, -0.06530514359474182, -0.12862266600131989, 0.05700654536485672, 0.1712103933095932, -0.07090836763381958, -0.029404081404209137, -0.19515135884284973, -0.10649514198303223, 0.2530563473701477, -0.10947266221046448, -0.22351808845996857, -0.28294429183006287, -0.2745618224143982, -0.2596052885055542, 0.15144319832324982, 0.34226033091545105, -0.023800641298294067, 0.22218775749206543, 0.20145176351070404, 0.1404043734073639, -0.30857786536216736, 0.30164170265197754, 0.22004172205924988, -0.37656500935554504, 0.1199360191822052, -0.15991583466529846, -0.15861788392066956, 0.10772529244422913, -0.10144710540771484, -0.0729731023311615, -0.26925891637802124, -0.15128874778747559, 0.5768488049507141, -0.055517956614494324, -0.22241094708442688, 0.13380861282348633, 0.06969818472862244, -0.0735093504190445, 0.41389787197113037, -0.03557741641998291, -0.1156846210360527, -0.07032471895217896, 0.25069573521614075, 0.3781037926673889, -0.07686914503574371, 0.5193170309066772, -0.05128202587366104, -0.2810768783092499, -0.2265074998140335, 0.08622618019580841, -0.13945135474205017, -0.004060409963130951, 0.28710395097732544, -0.1282844841480255, 0.2504473626613617, 0.029456809163093567, -0.13461929559707642, -0.1373623013496399, 0.12095168232917786, -0.19215691089630127, -0.08822109550237656, -0.2230469435453415, 0.3473535180091858, 0.4730531573295593, 0.4018023908138275, 0.1041758581995964, 0.05218230187892914, -0.12549643218517303, 0.2001161426305771, -0.4048142433166504, 0.025081627070903778, 0.08278009295463562, 0.19715909659862518, 0.10030511021614075, -0.055652741342782974, -0.22006206214427948, -0.37711191177368164, 0.122102752327919, -0.052652183920145035, -0.06186975538730621, -0.23761332035064697, -0.15680448710918427, 0.08037441968917847, -0.1346852332353592, 0.07373560220003128, -0.08609088510274887, -0.31147831678390503, -0.018856648355722427, -0.27264535427093506, 0.254806786775589, 0.27205753326416016, -0.2562202215194702, 0.13636359572410583, 0.242593452334404, 0.0029079653322696686, -0.15684857964515686, 0.12185446918010712, 0.2357872724533081, -0.013022013008594513, -0.2356756180524826, 0.054056450724601746, 0.12535765767097473, -0.09159889072179794, 0.2094644159078598, 0.12249919772148132, 0.1410268247127533, -0.1401839256286621, 0.23927469551563263, -0.18361856043338776, -0.057985324412584305, 0.11646364629268646, 0.33003681898117065, 0.47083956003189087, -0.05953780934214592, 0.17286711931228638, 0.004001215100288391, 0.2840486764907837, -0.5039814710617065, -0.21135513484477997, 0.2742841839790344, 0.0638258159160614, 0.41398483514785767, 0.27062445878982544, -0.20545193552970886, 0.024806752800941467, 0.036459214985370636, 0.06576326489448547, -0.058062177151441574, -0.4737585186958313, 0.17039616405963898, 0.28936925530433655, 0.10219953954219818, -0.3804069757461548, 0.18752232193946838, 0.44402095675468445, 0.24249181151390076, 0.30814090371131897, 0.11964917182922363, 0.4544888734817505, 0.3820270597934723, -0.10259290039539337, -0.10217902064323425, -0.27417346835136414, 0.06310846656560898, 0.26435792446136475, 0.08084865659475327, 0.004259276203811169, 0.25059187412261963, -0.3217408359050751, -0.031970731914043427, -0.29752838611602783, 0.036874920129776, 0.2755242586135864, -0.07169803977012634, 0.117214635014534, 0.13173732161521912, -0.1545025110244751, -0.17577482759952545, 0.03880910575389862, 0.023992596194148064, -0.36912959814071655, 0.30827197432518005, 0.001036597415804863, 0.12963925302028656, -0.22914469242095947, 0.08854198455810547, 0.04211750254034996, 0.416601300239563, -0.23828110098838806, -0.3092982769012451, 0.5706716775894165, -0.008782424032688141, -0.2005043923854828, 0.5700628161430359, 0.24398967623710632, -0.008015829138457775, -0.1454007476568222, 0.39970749616622925, -0.19255030155181885, -0.04026833921670914, -0.2758343815803528, -0.07553507387638092, -0.1829654425382614, -0.1343805193901062, 0.0790046751499176, 0.18368074297904968, -0.16531667113304138, 0.29489099979400635, 0.12042254209518433, -0.1851126104593277, -0.5643115639686584, 0.5326923727989197, 0.27785608172416687, -0.402130663394928, -0.0977957472205162, -0.038517870008945465, -0.04523162543773651, -0.14203128218650818, 0.5151142477989197, -0.04527720436453819, -0.003940459340810776, 0.03541029244661331, 0.1396130472421646, -0.04668043553829193, 0.41564932465553284, 0.2013828158378601, 0.22627398371696472, -0.08191262185573578, -0.0965239554643631, -0.5338625907897949, -0.24034123122692108, -0.20695100724697113, -0.2675532102584839, 0.08342839032411575, 0.04852886497974396, 0.1906992793083191, 0.12478596717119217, -0.002117566764354706, -0.1572055220603943, -0.24321918189525604, -0.09032677114009857, -0.4017724096775055, 0.06485097855329514, -0.053691014647483826, -0.11243235319852829, 0.18351630866527557, -0.4015822410583496, -0.03202572464942932, -0.2763265371322632, 0.13781596720218658, -0.01912999525666237, -0.08661845326423645, 0.0942779928445816, 0.04375071078538895, 0.4211745858192444, -0.03185483440756798, -0.07090163230895996, -0.032543785870075226, -0.13414627313613892, 0.027921263128519058, 0.0034153275191783905, -0.31708115339279175, 0.37059926986694336, 0.1412944495677948, 0.23868995904922485, -0.21957054734230042, -0.1652577966451645, 0.06487952917814255, 0.029780752956867218, -0.02593502402305603, -0.24224568903446198, -0.2879279851913452, 0.06098323315382004, -0.19417181611061096, 0.27091366052627563, -0.23339998722076416, 0.3946797251701355, -0.0796298086643219, 0.08947483450174332, -0.1857864260673523, 0.013883836567401886, 0.5024480819702148, -0.10890737175941467, -0.22937250137329102, -0.40100663900375366, 0.041542865335941315, -0.01426035538315773, -0.07416491955518723, -0.12186230719089508, 0.09718579053878784, 0.32210490107536316, -0.044947512447834015, -0.04942614957690239, 0.2886955142021179, -0.14607131481170654, -0.1571086198091507, -0.11578739434480667, 0.41404813528060913, -0.3077262341976166, -0.1238192617893219, -0.24191603064537048, -0.31360751390457153 ]
https://github.com/huggingface/datasets/issues/5597
Indeed, and because of that it is more efficient to add multiple rows at once instead of one by one, using `concatenate_datasets` for example.
in-place dataset update
### Motivation For the circumstance that I creat an empty `Dataset` and keep appending new rows into it, I found that it leads to creating a new dataset at each call. It looks quite memory-consuming. I just wonder if there is any more efficient way to do this. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds = ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Feature request Call for in-place dataset update functions, that update the existing `Dataset` in place without creating a new copy. The interface is supposed to keep the same style as PyTorch, such as the in-place version of a `function` is named `function_`. For example, the in-pace version of `add_item`, i.e., `add_item_`, immediately updates the `Dataset`. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds.add_item_({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Related Functions * `.map` * `.filter` * `.add_item`
24
in-place dataset update ### Motivation For the circumstance that I creat an empty `Dataset` and keep appending new rows into it, I found that it leads to creating a new dataset at each call. It looks quite memory-consuming. I just wonder if there is any more efficient way to do this. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds = ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Feature request Call for in-place dataset update functions, that update the existing `Dataset` in place without creating a new copy. The interface is supposed to keep the same style as PyTorch, such as the in-place version of a `function` is named `function_`. For example, the in-pace version of `add_item`, i.e., `add_item_`, immediately updates the `Dataset`. ```python from datasets import Dataset ds = Dataset.from_list([]) ds.add_item({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: [], >>> num_rows: 0 >>> }) ds.add_item_({'a': [1, 2, 3], 'b': 4}) print(ds) >>> Dataset({ >>> features: ['a', 'b'], >>> num_rows: 1 >>> }) ``` ### Related Functions * `.map` * `.filter` * `.add_item` Indeed, and because of that it is more efficient to add multiple rows at once instead of one by one, using `concatenate_datasets` for example.
[ -0.21308299899101257, -0.023431017994880676, -0.07231559604406357, -0.1571052223443985, 0.07469698786735535, -0.07516613602638245, 0.02515171654522419, 0.24270622432231903, 0.08568120002746582, 0.04726593941450119, -0.003647174686193466, 0.3562851548194885, -0.16501127183437347, 0.2644031047821045, 0.4072064459323883, 0.01919662393629551, 0.09734933078289032, 0.21554046869277954, -0.21548859775066376, 0.005712687969207764, -0.35138654708862305, -0.46830815076828003, -0.11524555832147598, -0.6953068971633911, -0.1588028222322464, -0.1838708221912384, -0.41722798347473145, -0.18146085739135742, 0.05896533280611038, -0.3897789418697357, 0.19701798260211945, 0.3561166524887085, -0.18843220174312592, 0.42514485120773315, -0.00010823267803061754, 0.04508817195892334, 0.022396892309188843, -0.003691297024488449, -0.6032974123954773, 0.012852810323238373, -0.004585206508636475, -0.5983058214187622, -0.07295756042003632, -0.2848236560821533, 0.1526288390159607, -0.483578622341156, 0.06922192126512527, -0.48864996433258057, 0.06820505857467651, -0.011135902255773544, 0.16762228310108185, 0.2992079257965088, -0.2451586127281189, -0.009111106395721436, -0.03550614416599274, 0.30884045362472534, 0.13194870948791504, 0.01057247444987297, 0.3693404197692871, -0.14566895365715027, 0.2907913029193878, 0.466327965259552, -0.44306373596191406, -0.13770587742328644, 0.7385186553001404, -0.048169948160648346, -0.20845311880111694, -0.10300597548484802, 0.03677068650722504, 0.11494635045528412, 0.35275179147720337, -0.40011483430862427, -0.5652587413787842, -0.3064388036727905, 0.1903025507926941, -0.1970553994178772, -0.25849613547325134, -0.004146575927734375, -0.0008621513843536377, -0.0887560248374939, -0.23149323463439941, -0.35811907052993774, 0.0166645348072052, 0.17955517768859863, 0.18360748887062073, -0.09759501367807388, 0.3124840259552002, -0.07052592933177948, 0.03983457386493683, -0.30556240677833557, 0.035331785678863525, -0.3997231721878052, 0.012333232909440994, 0.3135507106781006, -0.31908097863197327, -0.1122915968298912, 0.21168045699596405, 0.06035798788070679, 0.012122280895709991, 0.07081301510334015, 0.05922090262174606, 0.1795041561126709, 0.009955625981092453, 0.1769258826971054, 0.13673549890518188, -0.10268764197826385, 0.044089678674936295, 0.01747327297925949, -0.1315847635269165, -0.2044021487236023, 0.2057214081287384, -0.03433966636657715, -0.044447161257267, 0.29176196455955505, 0.4445914030075073, -0.29505911469459534, 0.18990397453308105, 0.3362036943435669, -0.05903307721018791, -0.0365152433514595, -0.26982325315475464, 0.10028614103794098, -0.14610330760478973, 0.1590784639120102, 0.09370322525501251, 0.12686558067798615, 0.20934085547924042, -0.18017379939556122, -0.2345525026321411, 0.04616570100188255, -0.2139938622713089, 0.23680159449577332, 0.042702458798885345, 0.07603953778743744, 0.1712515950202942, -0.09765729308128357, 0.0007618851959705353, 0.16661040484905243, 0.10058704018592834, 0.032939836382865906, 0.17447687685489655, -0.20537975430488586, 0.0810481458902359, 0.1118633896112442, -0.07335842400789261, -0.12028348445892334, -0.23804980516433716, 0.03844641149044037, -0.09554385393857956, 0.5531808137893677, 0.09695345163345337, -0.32255297899246216, -0.09938777983188629, 0.2313895970582962, 0.0542888343334198, -0.11617246270179749, -0.04584372788667679, 0.28201642632484436, 0.01023140549659729, -0.2415352463722229, 0.0270247682929039, -0.1740172952413559, -0.320020467042923, -0.1541491150856018, 0.17105494439601898, 0.583270251750946, -0.2817898392677307, -0.12693153321743011, 0.09255827963352203, 0.31920474767684937, -0.07039036601781845, -0.004263837821781635, -0.05743066221475601, 0.20579341053962708, 0.14946341514587402, -0.2625461220741272, 0.22331111133098602, -0.16601838171482086, -0.3859196901321411, -0.09199944138526917, -0.11007070541381836, 0.002286352217197418, 0.063160240650177, 0.7262841463088989, 0.2546834945678711, 0.20105335116386414, 0.2851320803165436, -0.020591048523783684, -0.014034239575266838, 0.1262790858745575, -0.1990787386894226, -0.21705594658851624, 0.18375720083713531, 0.09059259295463562, 0.03180767968297005, -0.20255914330482483, -0.1844252645969391, -0.010480836033821106, 0.24914279580116272, -0.17388063669204712, 0.08616553246974945, 0.18195810914039612, 0.38119053840637207, 0.31440412998199463, -0.14815063774585724, -0.14314866065979004, -0.7459273934364319, 0.13385407626628876, 0.3759700357913971, 0.10167551040649414, -0.24153199791908264, -0.41508400440216064, -0.015978071838617325, 0.14250800013542175, 0.1467224508523941, 0.0704062432050705, 0.08099371194839478, 0.29884278774261475, 0.20694591104984283, -0.19005461037158966, -0.3107163906097412, 0.33914485573768616, 0.002442188560962677, 0.08766430616378784, -0.23236767947673798, 0.36260855197906494, 0.3353807330131531, -0.2925509214401245, -0.15029817819595337, 0.18771147727966309, 0.060030076652765274, -0.23004278540611267, 0.18215854465961456, 0.20963844656944275, 0.17183876037597656, 0.022682374343276024, -0.1720053255558014, 0.2367616593837738, 0.26211875677108765, 0.3918871581554413, 0.1525404155254364, -0.0822131484746933, 0.44358986616134644, -0.011887572705745697, -0.40841689705848694, 0.3654903769493103, 0.07103908061981201, 0.18750955164432526, 0.03603222966194153, -0.0032130256295204163, -0.18144245445728302, 0.08764442056417465, 0.0611775740981102, -0.2529381215572357, -0.19031445682048798, 0.24553175270557404, 0.33359307050704956, 0.23552103340625763, -0.212936133146286, 0.3856180012226105, 0.09482602775096893, -0.10130561888217926, -0.019465863704681396, -0.035910338163375854, -0.03446629270911217, 0.03264140337705612, 0.08605437725782394, 0.17762233316898346, 0.1309516727924347, 0.2798221707344055, -0.1378623992204666, 0.197336807847023, 0.419555127620697, 0.1238912045955658, 0.10755711793899536, 0.19759871065616608, -0.011208035051822662, -0.03936757147312164, 0.38266462087631226, 0.09855931997299194, -0.12415404617786407, -0.004981867969036102, 0.18758058547973633, 0.23687496781349182, 0.13746467232704163, -0.06598080694675446, -0.23140358924865723, -0.19696417450904846, -0.19108757376670837, -0.025335412472486496, -0.02541915513575077, -0.21662333607673645, 0.023575179278850555, 0.23404636979103088, -0.13027599453926086, 0.3458872437477112, -0.12340547144412994, 0.2060084491968155, -0.03931569308042526, -0.6619842052459717, 0.0532112643122673, 0.022799547761678696, 0.20027080178260803, -0.015657752752304077, 0.09188036620616913, 0.2643517851829529, 0.5618641972541809, 0.1899622082710266, 0.04326572269201279, -0.39546117186546326, -0.17732030153274536, -0.047186192125082016, 0.014420472085475922, -0.04757784307003021, 0.07668599486351013, -0.03988156467676163, -0.16112947463989258, -0.13622799515724182, -0.02154374122619629, -0.28558602929115295, -0.08198966085910797, -0.11122821271419525, 0.15190458297729492, 0.04329214617609978, -0.15765133500099182, -0.22921064496040344, -0.2556191682815552, -0.2457747757434845, -0.1129208654165268, -0.009142488241195679, 0.2503587603569031, -0.1225249394774437, 0.08229166269302368, -0.1298748403787613, -0.027701962739229202, 0.06819579750299454, 0.042186006903648376, -0.15095734596252441, 0.22636601328849792, 0.06229033321142197, -0.09602568298578262, -0.14379583299160004, -0.4992443323135376, -0.1479673683643341, 0.4789128005504608, -0.34311607480049133, -0.5925478935241699, -0.22378815710544586, 0.34594693779945374, 0.012481233105063438, 0.3026931881904602, 0.4166067838668823, 0.22305743396282196, -0.12212832272052765, 0.0368654727935791, -0.17362245917320251, -0.003340568393468857, 0.19849449396133423, -0.3808248043060303, 0.10190655291080475, 0.060589566826820374, 0.047600969672203064, 0.21080105006694794, 0.2887813150882721, -0.1659959852695465, 0.04846379533410072, -0.28978806734085083, 0.36075475811958313, -0.11697430908679962, -0.2981226444244385, -0.1962336003780365, -0.05319492518901825, -0.02188066765666008, -0.13477642834186554, -0.02771284617483616, -0.05163446068763733, 0.001062348484992981, -0.09552091360092163, 0.060361504554748535, -0.11214037239551544, 0.3139073848724365, -0.11048627644777298, 0.4303746223449707, 0.2579452693462372, 0.15632018446922302, -0.5049008727073669, 0.14863252639770508, -0.1583453267812729, -0.1669011414051056, 0.22819656133651733, -0.1679999828338623, -0.3794263005256653, 0.11370164155960083, -0.5003219842910767, 0.32958555221557617, 0.3405855894088745, 0.04766087979078293, 0.4221794009208679, -0.10867414623498917, -0.1492939442396164, 0.08103664219379425, 0.3362036347389221, 0.029696160927414894, -0.359338641166687, 0.08147627115249634, -0.2892204225063324, -0.20995795726776123, 0.23187744617462158, -0.16770276427268982, 0.24017420411109924, 0.13046851754188538, 0.09991742670536041, -0.2995759844779968, -0.24873466789722443, 0.3356871008872986, 0.3273000717163086, -0.2517954111099243, -0.04390312731266022, 0.07711827754974365, -0.4437445104122162, -0.09360355883836746, 0.10386238992214203, -0.0599440336227417, 0.1349439024925232, 0.5160699486732483, 0.17390979826450348, -0.18558569252490997, 0.2967884838581085, 0.2237911820411682, -0.2791314125061035, 0.18429189920425415, 0.4217325747013092, 0.27040451765060425, 0.040495313704013824, -0.025224857032299042, 0.4726773500442505, 0.4606339931488037, -0.43706807494163513, -0.3869876563549042, -0.4439865052700043, -0.03741190582513809, 0.5480825901031494, 0.19683748483657837, 0.284278929233551, 0.21325728297233582, 0.05551360547542572, 0.21436753869056702, -0.4007504880428314, -0.19159412384033203, 0.2469216287136078, -0.0008977986872196198, -0.08246397972106934, -0.8549294471740723, 0.10738067328929901, 0.024374626576900482, 0.07195720076560974, 0.30792492628097534, 0.3071160912513733, 0.07655466347932816, 0.2851563096046448, 0.09375283867120743, 0.8069103956222534, 0.26244425773620605, 0.2928355634212494, 0.6288487911224365, -0.03905272111296654, 0.40716081857681274, 0.11336557567119598, 0.3098490834236145, -0.06873822957277298, -0.2947673499584198, -0.03299979865550995, 0.04803302884101868, -0.23983147740364075, -0.008433547802269459, -0.13154709339141846, 0.2850629985332489, -0.21819442510604858, 0.03835626691579819, -0.03995487466454506, -0.0501309335231781, -0.15600889921188354, -0.21268703043460846, -0.049901969730854034, 0.16605836153030396, 0.007789776660501957, -0.09058921784162521, -0.13572512567043304, 0.08752408623695374, 0.1777397096157074, -0.07759423553943634, -0.051492638885974884, -0.23848013579845428, -0.08526159822940826, 0.2730254530906677, -0.08262483775615692, -0.19920574128627777, -0.26845720410346985, -0.29530417919158936, -0.28664541244506836, 0.1302589476108551, 0.36324143409729004, -0.0872139036655426, 0.2370121330022812, 0.20020297169685364, 0.11949572712182999, -0.34105974435806274, 0.3033589720726013, 0.24277958273887634, -0.39784055948257446, 0.0851324051618576, -0.14860165119171143, -0.19212305545806885, 0.09628747403621674, -0.08377766609191895, -0.0836959034204483, -0.24914129078388214, -0.11714738607406616, 0.6013484001159668, -0.08332669734954834, -0.2126142978668213, 0.11106270551681519, 0.08789177983999252, -0.0532134510576725, 0.4454679489135742, -0.0395953543484211, -0.12444079667329788, -0.06870850920677185, 0.245445117354393, 0.3495495915412903, -0.07714816927909851, 0.48910969495773315, -0.0543118491768837, -0.32576707005500793, -0.21746620535850525, 0.10988476872444153, -0.16711145639419556, 0.004111766815185547, 0.2770175337791443, -0.11091305315494537, 0.2647455334663391, 0.03418206423521042, -0.13636425137519836, -0.14824484288692474, 0.10347361117601395, -0.22313940525054932, -0.041648589074611664, -0.1980750560760498, 0.357731431722641, 0.4799455404281616, 0.3882724940776825, 0.11564690619707108, 0.04273436591029167, -0.10592781007289886, 0.24837231636047363, -0.3743080198764801, -0.00908883661031723, 0.11303969472646713, 0.1928805261850357, 0.10233898460865021, -0.0414779931306839, -0.2048153579235077, -0.3392193019390106, 0.11770246922969818, -0.0599103644490242, -0.07405820488929749, -0.20474311709403992, -0.14777308702468872, 0.09458481520414352, -0.12782326340675354, 0.08319684118032455, -0.0734635517001152, -0.30567288398742676, -0.03764680027961731, -0.29425370693206787, 0.289401113986969, 0.2837202548980713, -0.2864904999732971, 0.07085786759853363, 0.2753197252750397, -0.0019050035625696182, -0.15702302753925323, 0.15563707053661346, 0.292489230632782, -0.007604684680700302, -0.24667857587337494, 0.06396635621786118, 0.11909407377243042, -0.10369761288166046, 0.20295359194278717, 0.14383582770824432, 0.13247407972812653, -0.1304301619529724, 0.20479196310043335, -0.18986345827579498, -0.009663708508014679, 0.10862287878990173, 0.29529869556427, 0.49443650245666504, -0.052645258605480194, 0.16165705025196075, -0.011365186423063278, 0.24101686477661133, -0.43897417187690735, -0.27177509665489197, 0.2601495683193207, 0.04889875650405884, 0.43174824118614197, 0.3261152505874634, -0.16372667253017426, 0.010395929217338562, 0.011496337130665779, 0.014063447713851929, -0.05611547827720642, -0.46881937980651855, 0.12283806502819061, 0.28721481561660767, 0.04248957335948944, -0.39358291029930115, 0.18672583997249603, 0.44856876134872437, 0.22942358255386353, 0.33376553654670715, 0.1458364576101303, 0.4635838568210602, 0.3994814157485962, -0.0962994396686554, -0.12523925304412842, -0.2382729947566986, 0.07748747617006302, 0.2761285901069641, 0.08483360707759857, -0.03939267620444298, 0.2519911825656891, -0.3610813319683075, -0.05303966999053955, -0.23935580253601074, 0.032804831862449646, 0.22620628774166107, -0.06297488510608673, 0.10756613314151764, 0.11524659395217896, -0.14149707555770874, -0.18245621025562286, 0.052784234285354614, 0.00526247126981616, -0.3573209047317505, 0.3237175941467285, 0.02579040452837944, 0.1724475473165512, -0.2177720069885254, 0.1012204959988594, 0.011311111971735954, 0.42707380652427673, -0.24603785574436188, -0.29377999901771545, 0.5474491715431213, 0.025993242859840393, -0.20361392199993134, 0.5521661639213562, 0.2349000722169876, -0.025013839825987816, -0.07797671854496002, 0.3657865822315216, -0.23282265663146973, 0.007711179554462433, -0.2656984329223633, -0.06104472279548645, -0.2446596622467041, -0.13649436831474304, 0.09587013721466064, 0.1552944928407669, -0.14430010318756104, 0.33663052320480347, 0.11663635075092316, -0.197483092546463, -0.5907789468765259, 0.5149435997009277, 0.2440262734889984, -0.37704306840896606, -0.0638878345489502, 0.03771647810935974, -0.016808971762657166, -0.11992590874433517, 0.5087998509407043, -0.07572568953037262, -0.029021061956882477, 0.0278470478951931, 0.12373042851686478, -0.03664977476000786, 0.4639441668987274, 0.19841799139976501, 0.26752567291259766, -0.06803307682275772, -0.09658060222864151, -0.4824712574481964, -0.24560508131980896, -0.24889954924583435, -0.24383102357387543, 0.06814941018819809, 0.0795719251036644, 0.16633471846580505, 0.1461249142885208, 0.026318658143281937, -0.17612779140472412, -0.24891605973243713, -0.06890909373760223, -0.35140469670295715, 0.05467312037944794, -0.07939259707927704, -0.11761251091957092, 0.1472744345664978, -0.4144626259803772, -0.026250604540109634, -0.2728773057460785, 0.12077891826629639, -0.045189373195171356, -0.07458419352769852, 0.08146379888057709, 0.0630030483007431, 0.426847904920578, -0.02172183431684971, -0.06021703779697418, 0.017743289470672607, -0.1388668268918991, 0.002395923249423504, 0.0076713040471076965, -0.348870187997818, 0.387613445520401, 0.11390037834644318, 0.19782018661499023, -0.22394317388534546, -0.1821141391992569, 0.1030743345618248, 0.04469338431954384, -0.017156966030597687, -0.2528674006462097, -0.23472103476524353, 0.06054401397705078, -0.2102620154619217, 0.2219393253326416, -0.2407991886138916, 0.3495965898036957, -0.07943818718194962, 0.05920032411813736, -0.14306943118572235, 0.034583620727062225, 0.45013102889060974, -0.07708130031824112, -0.22215677797794342, -0.40216419100761414, 0.042059995234012604, -0.03958495706319809, -0.06058860570192337, -0.09981011599302292, 0.06287403404712677, 0.31727346777915955, -0.0658927857875824, -0.08314722776412964, 0.32790377736091614, -0.1406535506248474, -0.196763277053833, -0.14003562927246094, 0.3876611888408661, -0.36467915773391724, -0.08724468946456909, -0.23445956408977509, -0.3224939703941345 ]
https://github.com/huggingface/datasets/issues/5596
Apparently some JSON objects have a `"labels"` field. Since this field is not present in every object, you must specify all the fields types in the README.md EDIT: actually specifying the feature types doesn’t solve the issue, it raises an error because β€œlabels” is missing in the data
[TypeError: Couldn't cast array of type] Can only load a subset of the dataset
### Describe the bug I'm trying to load this [dataset](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues) which consists of jsonl files and I get the following error: ``` casted_values = _c(array.values, feature[0]) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 1839, in wrapper return func(array, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 2132, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type struct<type: string, action: string, datetime: timestamp[s], author: string, title: string, description: string, comment_id: int64, comment: string, labels: list<item: string>> to {'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)} ``` But I can succesfully load a subset of the dataset, for example this works: ```python ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train", data_files=[f"data/data-{x}.jsonl" for x in range(10)]) ``` and `ds.features` returns: ``` {'repo': Value(dtype='string', id=None), 'org': Value(dtype='string', id=None), 'issue_id': Value(dtype='int64', id=None), 'issue_number': Value(dtype='int64', id=None), 'pull_request': {'user_login': Value(dtype='string', id=None), 'repo': Value(dtype='string', id=None), 'number': Value(dtype='int64', id=None)}, 'events': [{'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)}]} ``` So I'm not sure if there's an issue with just some of the files. Grateful if you have any suggestions to fix the issue. Side note: I saw this related [issue](https://github.com/huggingface/datasets/issues/3637) and tried to write a loading script to have `events` as a `Sequence` and not `list` [here](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/blob/main/loading.py) (the script was renamed). It worked with a subset locally but doesn't for the remote dataset it can't find https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/resolve/main/data. ### Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train") ``` ### Expected behavior Load the entire dataset succesfully. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-4.19.0-23-cloud-amd64-x86_64-with-debian-10.13 - Python version: 3.7.12 - PyArrow version: 9.0.0 - Pandas version: 1.3.4
48
[TypeError: Couldn't cast array of type] Can only load a subset of the dataset ### Describe the bug I'm trying to load this [dataset](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues) which consists of jsonl files and I get the following error: ``` casted_values = _c(array.values, feature[0]) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 1839, in wrapper return func(array, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 2132, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type struct<type: string, action: string, datetime: timestamp[s], author: string, title: string, description: string, comment_id: int64, comment: string, labels: list<item: string>> to {'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)} ``` But I can succesfully load a subset of the dataset, for example this works: ```python ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train", data_files=[f"data/data-{x}.jsonl" for x in range(10)]) ``` and `ds.features` returns: ``` {'repo': Value(dtype='string', id=None), 'org': Value(dtype='string', id=None), 'issue_id': Value(dtype='int64', id=None), 'issue_number': Value(dtype='int64', id=None), 'pull_request': {'user_login': Value(dtype='string', id=None), 'repo': Value(dtype='string', id=None), 'number': Value(dtype='int64', id=None)}, 'events': [{'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)}]} ``` So I'm not sure if there's an issue with just some of the files. Grateful if you have any suggestions to fix the issue. Side note: I saw this related [issue](https://github.com/huggingface/datasets/issues/3637) and tried to write a loading script to have `events` as a `Sequence` and not `list` [here](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/blob/main/loading.py) (the script was renamed). It worked with a subset locally but doesn't for the remote dataset it can't find https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/resolve/main/data. ### Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train") ``` ### Expected behavior Load the entire dataset succesfully. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-4.19.0-23-cloud-amd64-x86_64-with-debian-10.13 - Python version: 3.7.12 - PyArrow version: 9.0.0 - Pandas version: 1.3.4 Apparently some JSON objects have a `"labels"` field. Since this field is not present in every object, you must specify all the fields types in the README.md EDIT: actually specifying the feature types doesn’t solve the issue, it raises an error because β€œlabels” is missing in the data
[ -0.17818355560302734, -0.10365805774927139, -0.07276815176010132, 0.42764705419540405, 0.4102259576320648, 0.15316441655158997, 0.2850619852542877, 0.5654890537261963, 0.17911650240421295, -0.04942840337753296, -0.07908794283866882, 0.37559065222740173, -0.15938591957092285, 0.3405279517173767, 0.033302970230579376, -0.08496909588575363, -0.015251260250806808, 0.10918955504894257, -0.1212596446275711, 0.04029516130685806, -0.21663177013397217, -0.09835462272167206, -0.24384552240371704, 0.07710403203964233, 0.12842173874378204, -0.02114233747124672, 0.3520960211753845, 0.2275000512599945, -0.14972516894340515, -0.2784441113471985, 0.30832719802856445, -0.33668312430381775, 0.26875442266464233, 0.31646397709846497, -0.00010941471555270255, 0.22916314005851746, 0.3681133985519409, -0.19376108050346375, -0.3725648820400238, -0.22912950813770294, -0.269769549369812, -0.36261773109436035, 0.19788667559623718, -0.2148648500442505, 0.04489988088607788, -0.5417377352714539, -0.13186120986938477, -0.23782019317150116, 0.22384987771511078, 0.31287410855293274, 0.23272345960140228, 0.20673787593841553, 0.09633079171180725, -0.05479011684656143, 0.04500845819711685, 0.19447430968284607, -0.1638188660144806, 0.18075546622276306, 0.1972290575504303, 0.3694196343421936, 0.06044419854879379, -0.07788430154323578, -0.17023520171642303, -0.060211941599845886, 0.20275360345840454, -0.12787339091300964, -0.12642809748649597, -0.31896254420280457, 0.0209499504417181, 0.10640878975391388, 0.689046323299408, 0.03327827900648117, -0.4146274924278259, -0.19086748361587524, -0.015160156413912773, -0.015479747205972672, -0.009859774261713028, 0.23440825939178467, -0.07822086662054062, 0.051582563668489456, -0.24746081233024597, 0.36806267499923706, -0.06464201956987381, 0.2440290004014969, -0.15356121957302094, -0.02687125653028488, -0.1648292988538742, 0.21339315176010132, 0.10034994781017303, -0.2043704390525818, 0.10227358341217041, 0.03891165554523468, -0.19473940134048462, 0.2533332109451294, -0.1507093906402588, 0.03785049915313721, 0.08695492148399353, -0.3270587623119354, 0.24137961864471436, 0.06310687959194183, 0.08255034685134888, 0.20225206017494202, -0.15389981865882874, 0.1606258600950241, 0.5542967319488525, 0.16872410476207733, 0.01579119823873043, 0.004695121198892593, 0.15737295150756836, -0.04583553224802017, -0.041537102311849594, 0.10212685912847519, -0.25293368101119995, -0.0690411627292633, -0.1442137509584427, -0.02646838128566742, 0.15643846988677979, -0.2488832026720047, -0.30483341217041016, 0.08353812992572784, -0.2950909733772278, -0.07641377300024033, 0.23579667508602142, 0.4286303222179413, 0.16544467210769653, 0.45986220240592957, 0.09190458059310913, 0.3494837284088135, -0.014161910861730576, -0.20311671495437622, -0.17962774634361267, 0.11209192872047424, 0.014080286026000977, -0.4417771100997925, 0.16284309327602386, 0.19354824721813202, 0.1813381016254425, -0.08106774836778641, -0.071221262216568, -0.1922226846218109, -0.2111809104681015, 0.06256687641143799, -0.09629648923873901, 0.2956693768501282, 0.19211851060390472, 0.29026520252227783, 0.4229966402053833, -0.026368185877799988, -0.2896231412887573, 0.2114776223897934, -0.2489878237247467, 0.012584634125232697, -0.10880967229604721, 0.2170516699552536, -0.16555020213127136, -0.028317434713244438, -0.9540913701057434, -0.14200301468372345, 0.13848969340324402, -0.28926336765289307, -0.13518433272838593, -0.2612864077091217, 0.14573538303375244, -0.2843490540981293, 0.13039521872997284, 0.07732588052749634, -0.3002766966819763, 0.05249251425266266, -0.02585470676422119, -0.06390853226184845, 0.14666278660297394, 0.267723947763443, -0.3395651876926422, 0.4423886239528656, -0.17669112980365753, 0.007790133357048035, 0.6412485241889954, 0.10666238516569138, -0.23436880111694336, 0.3455043137073517, -0.017532899975776672, 0.046042874455451965, -0.003748524934053421, 0.13307107985019684, 0.11647853255271912, -0.034180089831352234, -0.01443684846162796, 0.45645204186439514, 0.14765332639217377, 0.0581187829375267, -0.04780234396457672, -0.06444988399744034, 0.027567364275455475, 0.2570596933364868, 0.06991048157215118, 0.32155507802963257, 0.12377741932868958, -0.01120513305068016, 0.3071914613246918, -0.17952290177345276, 0.23480406403541565, 0.11987462639808655, 0.24173584580421448, -0.2331707626581192, 0.01255054771900177, -0.09100019186735153, -0.34570151567459106, 0.19995975494384766, 0.25673210620880127, -0.3645208775997162, -0.06533250212669373, 0.23633213341236115, -0.3551439940929413, 0.043970927596092224, -0.10951665043830872, 0.1046549379825592, 0.04333294928073883, 0.09616750478744507, -0.015886738896369934, -0.08221732825040817, -0.26504307985305786, 0.05479096621274948, 0.07718119025230408, -0.10856257379055023, -0.3273792862892151, 0.18795007467269897, -0.05818819999694824, -0.12334927916526794, 0.06265684962272644, 0.007965201511979103, 0.024552620947360992, -0.2626154124736786, -0.20931324362754822, 0.010666219517588615, 0.07434062659740448, -0.17353419959545135, -0.37793299555778503, 0.06761529296636581, -0.21849551796913147, -0.05237002670764923, -0.0870213657617569, 0.14883796870708466, 0.2570101022720337, -0.049889035522937775, -0.04068375751376152, 0.3916792869567871, -0.051836468279361725, 0.3982259929180145, -0.0045698583126068115, 0.04614071547985077, 0.38623175024986267, 0.0007613301277160645, 0.16111336648464203, -0.10088586807250977, 0.060687292367219925, 0.011912122368812561, -0.04302524775266647, 0.14174695312976837, -0.2733830213546753, 0.10927344858646393, 0.2949393391609192, 0.00828772783279419, -0.00003691762685775757, 0.2901131212711334, 0.04620297998189926, 0.12148533761501312, -0.20317772030830383, -0.02809048444032669, 0.3196951746940613, 0.06739133596420288, -0.19496990740299225, -0.28022655844688416, 0.36974993348121643, -0.0758529007434845, 0.15898753702640533, -0.07124932110309601, 0.09160721302032471, 0.020620644092559814, 0.17627224326133728, -0.046678636223077774, 0.006841525435447693, -0.21280482411384583, 0.15042069554328918, 0.2237001210451126, -0.3888023793697357, 0.30984529852867126, -0.3744460940361023, -0.15176397562026978, -0.16952669620513916, 0.11826660484075546, 0.22062259912490845, -0.3986722528934479, -0.24119620025157928, 0.30758583545684814, -0.3698132336139679, 0.08323001116514206, -0.34447839856147766, -0.02997748553752899, 0.18079981207847595, -0.21320444345474243, 0.03969430923461914, -0.007279511541128159, -0.20695237815380096, 0.07564486563205719, 0.433084100484848, -0.05748054012656212, 0.07678928971290588, -0.021244462579488754, -0.14827993512153625, -0.10946951061487198, -0.060732487589120865, 0.10527712106704712, -0.09004968404769897, 0.2353915274143219, 0.11213414371013641, 0.42939189076423645, -0.03328961133956909, -0.4521790146827698, 0.3367644250392914, -0.08145643770694733, -0.3247222900390625, 0.3844374716281891, 0.11394207179546356, -0.03166530281305313, -0.11863996088504791, -0.24180644750595093, -0.2250976860523224, -0.6536903381347656, 0.4102863073348999, -0.046043358743190765, 0.25147372484207153, -0.07966172695159912, 0.2595388889312744, -0.005084365606307983, 0.17333748936653137, 0.11380597203969955, 0.040907122194767, 0.1502513289451599, 0.2864012122154236, -0.005085702985525131, -0.35842669010162354, -0.22258299589157104, -0.01173589751124382, 0.05516001209616661, 0.004152290523052216, -0.563576340675354, 0.07938028872013092, -0.2522321343421936, 0.03899101912975311, -0.2607312500476837, -0.09617136418819427, -0.10424765944480896, -0.15420430898666382, -0.07357263565063477, -0.16881652176380157, -0.05820572376251221, -0.13243317604064941, 0.058389127254486084, 0.2195894867181778, 0.059185341000556946, 0.5051448345184326, -0.05454137921333313, 0.2510189414024353, 0.17907653748989105, -0.3462344706058502, 0.5417789816856384, -0.015249999240040779, 0.08276613056659698, -0.30216559767723083, -0.37398603558540344, 0.08836937695741653, -0.0617496594786644, -0.1858803629875183, 0.11164510250091553, -0.23060277104377747, -0.5471045970916748, -0.060038961470127106, -0.08769028633832932, -0.3857564330101013, -0.16124320030212402, 0.3794032335281372, 0.038764044642448425, -0.2500832974910736, -0.13215526938438416, -0.0011658817529678345, -0.04302924871444702, 0.07019917666912079, -0.09848162531852722, 0.024069100618362427, 0.11089256405830383, 0.08241631835699081, -0.4105532765388489, -0.5193336009979248, 0.2062980830669403, 0.20984284579753876, -0.022171538323163986, 0.6087417602539062, 0.0617026686668396, -0.24566049873828888, -0.01292550191283226, -0.04258040711283684, 0.7768685221672058, 0.169401153922081, 0.3241720199584961, 0.2752424478530884, 0.16698980331420898, -0.5314438939094543, -0.0723407045006752, 0.047866396605968475, 0.2290232628583908, 0.3588830828666687, 0.20290927588939667, -0.29069051146507263, 0.061490464955568314, 0.037738170474767685, 0.4733458161354065, -0.05348045006394386, 0.06388832628726959, -0.14205485582351685, -0.5181752443313599, -0.3034282326698303, -0.0684397965669632, 0.23217269778251648, 0.40586620569229126, 0.047735780477523804, 0.1018463671207428, -0.22749069333076477, -0.2879795432090759, -0.06557053327560425, 0.1566624641418457, 0.36518171429634094, 0.03632019832730293, 0.3777318596839905, -0.35699892044067383, 0.20038704574108124, 0.3507029116153717, 0.7705328464508057, 0.2370491921901703, 0.13283668458461761, 0.3557787835597992, 0.16721639037132263, 0.3394782543182373, 0.07752041518688202, -0.181732177734375, -0.002683740109205246, -0.021233025938272476, 0.11255165934562683, -0.06566067039966583, 0.09890268743038177, -0.06471690535545349, -0.12815557420253754, -0.3951013684272766, -0.515343964099884, 0.484018474817276, 0.011028975248336792, 0.08472718298435211, 0.07270924746990204, -0.002752494066953659, -0.14453643560409546, 0.5553170442581177, -0.03583107516169548, 0.6011927723884583, 0.09996022284030914, 0.17471352219581604, 0.28767886757850647, 0.1994442343711853, 0.1614491194486618, -0.042880911380052567, 0.1452927589416504, -0.49416619539260864, -0.06310328841209412, 0.020970351994037628, -0.29236656427383423, -0.2379104346036911, 0.07914736866950989, 0.006881736218929291, -0.050163183361291885, -0.3341163396835327, 0.3400000035762787, 0.005201403051614761, 0.02198603004217148, -0.11099659651517868, -0.16521301865577698, -0.49538397789001465, 0.12891925871372223, -0.1451234668493271, -0.08460350334644318, 0.14149844646453857, -0.371852308511734, -0.4071168899536133, -0.23718145489692688, -0.32108914852142334, 0.20959588885307312, 0.004473857581615448, 0.31048813462257385, 0.18549101054668427, -0.1834079921245575, 0.22432614862918854, 0.2595151364803314, -0.06561493128538132, 0.17817477881908417, -0.0698012262582779, -0.03822677582502365, 0.12747959792613983, 0.17429733276367188, -0.014589857310056686, 0.11215367168188095, 0.2553318440914154, 0.044239342212677, -0.004750743508338928, -0.03606506064534187, -0.12992045283317566, -0.057669878005981445, -0.04467873275279999, 0.5194913744926453, -0.5828983187675476, -0.5726549625396729, -0.49929046630859375, -0.11436094343662262, 0.1262996792793274, -0.1403500884771347, 0.12499269098043442, 0.19529379904270172, -0.19404640793800354, 0.16472023725509644, 0.20927056670188904, -0.2676781415939331, 0.08264148235321045, 0.4259032905101776, 0.214944988489151, 0.1522946059703827, 0.505256175994873, 0.1760033369064331, -0.100267693400383, -0.16301289200782776, 0.3334997296333313, 0.3644890785217285, -0.32217925786972046, 0.20748397707939148, -0.28959381580352783, -0.22886568307876587, 0.11785867810249329, 0.225438192486763, -0.10049749910831451, 0.19012883305549622, -0.05899089574813843, -0.5626335144042969, -0.22780059278011322, 0.518314778804779, -0.10266299545764923, -0.00016187550500035286, -0.31709396839141846, 0.2037462592124939, -0.283024400472641, 0.01373235322535038, -0.2644259035587311, 0.012295279651880264, -0.38304704427719116, 0.30674272775650024, -0.28384163975715637, 0.0631817877292633, 0.10771331191062927, -0.05769822373986244, 0.15747439861297607, 0.045724086463451385, -0.2989494800567627, -0.1695677489042282, -0.044082462787628174, 0.1386810839176178, 0.16752314567565918, -0.06914077699184418, -0.056138332933187485, -0.20288392901420593, -0.16978558897972107, -0.17846304178237915, 0.07560306042432785, -0.03721964731812477, 0.006926575675606728, -0.23105645179748535, 0.16573847830295563, -0.03192947432398796, 0.07958804816007614, 0.2960800528526306, -0.28435060381889343, 0.15204890072345734, 0.24208781123161316, 0.1511417031288147, 0.05035818740725517, 0.1411905586719513, -0.27616357803344727, 0.018035851418972015, 0.10842238366603851, 0.16751927137374878, 0.28900861740112305, -0.3925434350967407, 0.14663165807724, 0.09087884426116943, 0.3725403845310211, 0.48512348532676697, -0.2730560302734375, 0.21409937739372253, -0.007872471585869789, 0.1968107670545578, -0.08398072421550751, -0.18164204061031342, 0.20073336362838745, -0.0919661670923233, -0.05664801970124245, 0.4159700274467468, -0.011826999485492706, -0.41519641876220703, -0.026585515588521957, -0.08258822560310364, 0.6081091165542603, 0.22977140545845032, 0.08629198372364044, 0.26160889863967896, -0.28034284710884094, -0.2327277958393097, -0.09516254812479019, 0.1321500539779663, 0.3880217969417572, 0.33241596817970276, -0.15132425725460052, -0.0804777517914772, 0.09804842621088028, 0.04185924679040909, -0.05648528039455414, -0.43468090891838074, 0.17869645357131958, 0.27571988105773926, 0.06413702666759491, 0.18183696269989014, -0.11503151059150696, 0.014276433736085892, -0.20088712871074677, -0.05605480074882507, 0.01055920124053955, 0.005339236930012703, -0.126276895403862, -0.00664825364947319, -0.20964224636554718, -0.3057301342487335, -0.2610456347465515, -0.08870202302932739, -0.09573658555746078, -0.2701946496963501, -0.014257680624723434, 0.12790830433368683, -0.2165713906288147, -0.34501349925994873, 0.14604109525680542, 0.0064323898404836655, 0.1073150709271431, -0.33787524700164795, 0.3518320322036743, 0.11814091354608536, -0.05380427837371826, 0.2007160484790802, -0.03761278837919235, 0.4067792594432831, 0.5188493132591248, 0.20052458345890045, -0.17834430932998657, -0.10791373252868652, -0.27077174186706543, -0.3827826678752899, 0.13246504962444305, 0.12965230643749237, 0.20879550278186798, 0.30713319778442383, 0.18387475609779358, -0.08162389695644379, 0.15321838855743408, 0.056359902024269104, 0.1505613774061203, -0.0949474573135376, 0.4016478657722473, -0.33208680152893066, -0.13567310571670532, -0.06392001360654831, -0.18759770691394806, -0.40915533900260925, -0.22578127682209015, 0.12888653576374054, 0.0038420893251895905, 0.39121559262275696, 0.19672468304634094, 0.0853426530957222, -0.17330323159694672, 0.5396345853805542, -0.007819628342986107, 0.1445154994726181, -0.16046170890331268, 0.2097107619047165, -0.16315343976020813, 0.15237760543823242, -0.23418250679969788, -0.000429302453994751, 0.28810176253318787, 0.19909727573394775, 0.2289344072341919, -0.0018988922238349915, 0.005171261727809906, 0.1557319462299347, -0.00789736956357956, 0.4110308885574341, -0.3447287082672119, -0.5288046598434448, 0.12819503247737885, 0.36861827969551086, -0.10753719508647919, -0.3436298370361328, 0.2005372792482376, -0.29884645342826843, 0.2224658876657486, -0.0512118861079216, -0.3293076455593109, 0.0731906145811081, -0.1745913326740265, 0.35079288482666016, 0.07701373100280762, 0.45005130767822266, -0.06434595584869385, -0.2789005637168884, -0.3835008442401886, -0.6112735271453857, -0.17951256036758423, 0.3404887318611145, 0.0977153480052948, 0.5955262780189514, -0.1621585190296173, 0.3150216341018677, -0.277752161026001, -0.05560947209596634, -0.2839173674583435, 0.13089440762996674, 0.040352962911129, 0.15990447998046875, -0.3800525963306427, 0.020376157015562057, -0.031703345477581024, 0.08959674835205078, 0.04797038808465004, 0.14304406940937042, -0.2902653217315674, -0.487911581993103, 0.6028251051902771, -0.2925850450992584, -0.3177359700202942, 0.2625300884246826, -0.01453562080860138, -0.19574114680290222, 0.18823286890983582, -0.465964138507843, 0.02785642445087433, 0.3573474586009979, -0.06340812146663666, -0.1371324211359024, 0.06668022274971008, -0.021505070850253105, -0.2397741973400116, -0.07522900402545929, 0.3942936062812805, -0.007528411690145731, -0.2938465476036072, 0.01661093533039093, -0.050848737359046936 ]
https://github.com/huggingface/datasets/issues/5596
We've updated the dataset to remove the extra `labels` field from some files, closing this issue. Thanks!
[TypeError: Couldn't cast array of type] Can only load a subset of the dataset
### Describe the bug I'm trying to load this [dataset](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues) which consists of jsonl files and I get the following error: ``` casted_values = _c(array.values, feature[0]) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 1839, in wrapper return func(array, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 2132, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type struct<type: string, action: string, datetime: timestamp[s], author: string, title: string, description: string, comment_id: int64, comment: string, labels: list<item: string>> to {'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)} ``` But I can succesfully load a subset of the dataset, for example this works: ```python ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train", data_files=[f"data/data-{x}.jsonl" for x in range(10)]) ``` and `ds.features` returns: ``` {'repo': Value(dtype='string', id=None), 'org': Value(dtype='string', id=None), 'issue_id': Value(dtype='int64', id=None), 'issue_number': Value(dtype='int64', id=None), 'pull_request': {'user_login': Value(dtype='string', id=None), 'repo': Value(dtype='string', id=None), 'number': Value(dtype='int64', id=None)}, 'events': [{'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)}]} ``` So I'm not sure if there's an issue with just some of the files. Grateful if you have any suggestions to fix the issue. Side note: I saw this related [issue](https://github.com/huggingface/datasets/issues/3637) and tried to write a loading script to have `events` as a `Sequence` and not `list` [here](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/blob/main/loading.py) (the script was renamed). It worked with a subset locally but doesn't for the remote dataset it can't find https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/resolve/main/data. ### Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train") ``` ### Expected behavior Load the entire dataset succesfully. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-4.19.0-23-cloud-amd64-x86_64-with-debian-10.13 - Python version: 3.7.12 - PyArrow version: 9.0.0 - Pandas version: 1.3.4
17
[TypeError: Couldn't cast array of type] Can only load a subset of the dataset ### Describe the bug I'm trying to load this [dataset](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues) which consists of jsonl files and I get the following error: ``` casted_values = _c(array.values, feature[0]) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 1839, in wrapper return func(array, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 2132, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type struct<type: string, action: string, datetime: timestamp[s], author: string, title: string, description: string, comment_id: int64, comment: string, labels: list<item: string>> to {'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)} ``` But I can succesfully load a subset of the dataset, for example this works: ```python ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train", data_files=[f"data/data-{x}.jsonl" for x in range(10)]) ``` and `ds.features` returns: ``` {'repo': Value(dtype='string', id=None), 'org': Value(dtype='string', id=None), 'issue_id': Value(dtype='int64', id=None), 'issue_number': Value(dtype='int64', id=None), 'pull_request': {'user_login': Value(dtype='string', id=None), 'repo': Value(dtype='string', id=None), 'number': Value(dtype='int64', id=None)}, 'events': [{'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)}]} ``` So I'm not sure if there's an issue with just some of the files. Grateful if you have any suggestions to fix the issue. Side note: I saw this related [issue](https://github.com/huggingface/datasets/issues/3637) and tried to write a loading script to have `events` as a `Sequence` and not `list` [here](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/blob/main/loading.py) (the script was renamed). It worked with a subset locally but doesn't for the remote dataset it can't find https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/resolve/main/data. ### Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train") ``` ### Expected behavior Load the entire dataset succesfully. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-4.19.0-23-cloud-amd64-x86_64-with-debian-10.13 - Python version: 3.7.12 - PyArrow version: 9.0.0 - Pandas version: 1.3.4 We've updated the dataset to remove the extra `labels` field from some files, closing this issue. Thanks!
[ -0.17818355560302734, -0.10365805774927139, -0.07276815176010132, 0.42764705419540405, 0.4102259576320648, 0.15316441655158997, 0.2850619852542877, 0.5654890537261963, 0.17911650240421295, -0.04942840337753296, -0.07908794283866882, 0.37559065222740173, -0.15938591957092285, 0.3405279517173767, 0.033302970230579376, -0.08496909588575363, -0.015251260250806808, 0.10918955504894257, -0.1212596446275711, 0.04029516130685806, -0.21663177013397217, -0.09835462272167206, -0.24384552240371704, 0.07710403203964233, 0.12842173874378204, -0.02114233747124672, 0.3520960211753845, 0.2275000512599945, -0.14972516894340515, -0.2784441113471985, 0.30832719802856445, -0.33668312430381775, 0.26875442266464233, 0.31646397709846497, -0.00010941471555270255, 0.22916314005851746, 0.3681133985519409, -0.19376108050346375, -0.3725648820400238, -0.22912950813770294, -0.269769549369812, -0.36261773109436035, 0.19788667559623718, -0.2148648500442505, 0.04489988088607788, -0.5417377352714539, -0.13186120986938477, -0.23782019317150116, 0.22384987771511078, 0.31287410855293274, 0.23272345960140228, 0.20673787593841553, 0.09633079171180725, -0.05479011684656143, 0.04500845819711685, 0.19447430968284607, -0.1638188660144806, 0.18075546622276306, 0.1972290575504303, 0.3694196343421936, 0.06044419854879379, -0.07788430154323578, -0.17023520171642303, -0.060211941599845886, 0.20275360345840454, -0.12787339091300964, -0.12642809748649597, -0.31896254420280457, 0.0209499504417181, 0.10640878975391388, 0.689046323299408, 0.03327827900648117, -0.4146274924278259, -0.19086748361587524, -0.015160156413912773, -0.015479747205972672, -0.009859774261713028, 0.23440825939178467, -0.07822086662054062, 0.051582563668489456, -0.24746081233024597, 0.36806267499923706, -0.06464201956987381, 0.2440290004014969, -0.15356121957302094, -0.02687125653028488, -0.1648292988538742, 0.21339315176010132, 0.10034994781017303, -0.2043704390525818, 0.10227358341217041, 0.03891165554523468, -0.19473940134048462, 0.2533332109451294, -0.1507093906402588, 0.03785049915313721, 0.08695492148399353, -0.3270587623119354, 0.24137961864471436, 0.06310687959194183, 0.08255034685134888, 0.20225206017494202, -0.15389981865882874, 0.1606258600950241, 0.5542967319488525, 0.16872410476207733, 0.01579119823873043, 0.004695121198892593, 0.15737295150756836, -0.04583553224802017, -0.041537102311849594, 0.10212685912847519, -0.25293368101119995, -0.0690411627292633, -0.1442137509584427, -0.02646838128566742, 0.15643846988677979, -0.2488832026720047, -0.30483341217041016, 0.08353812992572784, -0.2950909733772278, -0.07641377300024033, 0.23579667508602142, 0.4286303222179413, 0.16544467210769653, 0.45986220240592957, 0.09190458059310913, 0.3494837284088135, -0.014161910861730576, -0.20311671495437622, -0.17962774634361267, 0.11209192872047424, 0.014080286026000977, -0.4417771100997925, 0.16284309327602386, 0.19354824721813202, 0.1813381016254425, -0.08106774836778641, -0.071221262216568, -0.1922226846218109, -0.2111809104681015, 0.06256687641143799, -0.09629648923873901, 0.2956693768501282, 0.19211851060390472, 0.29026520252227783, 0.4229966402053833, -0.026368185877799988, -0.2896231412887573, 0.2114776223897934, -0.2489878237247467, 0.012584634125232697, -0.10880967229604721, 0.2170516699552536, -0.16555020213127136, -0.028317434713244438, -0.9540913701057434, -0.14200301468372345, 0.13848969340324402, -0.28926336765289307, -0.13518433272838593, -0.2612864077091217, 0.14573538303375244, -0.2843490540981293, 0.13039521872997284, 0.07732588052749634, -0.3002766966819763, 0.05249251425266266, -0.02585470676422119, -0.06390853226184845, 0.14666278660297394, 0.267723947763443, -0.3395651876926422, 0.4423886239528656, -0.17669112980365753, 0.007790133357048035, 0.6412485241889954, 0.10666238516569138, -0.23436880111694336, 0.3455043137073517, -0.017532899975776672, 0.046042874455451965, -0.003748524934053421, 0.13307107985019684, 0.11647853255271912, -0.034180089831352234, -0.01443684846162796, 0.45645204186439514, 0.14765332639217377, 0.0581187829375267, -0.04780234396457672, -0.06444988399744034, 0.027567364275455475, 0.2570596933364868, 0.06991048157215118, 0.32155507802963257, 0.12377741932868958, -0.01120513305068016, 0.3071914613246918, -0.17952290177345276, 0.23480406403541565, 0.11987462639808655, 0.24173584580421448, -0.2331707626581192, 0.01255054771900177, -0.09100019186735153, -0.34570151567459106, 0.19995975494384766, 0.25673210620880127, -0.3645208775997162, -0.06533250212669373, 0.23633213341236115, -0.3551439940929413, 0.043970927596092224, -0.10951665043830872, 0.1046549379825592, 0.04333294928073883, 0.09616750478744507, -0.015886738896369934, -0.08221732825040817, -0.26504307985305786, 0.05479096621274948, 0.07718119025230408, -0.10856257379055023, -0.3273792862892151, 0.18795007467269897, -0.05818819999694824, -0.12334927916526794, 0.06265684962272644, 0.007965201511979103, 0.024552620947360992, -0.2626154124736786, -0.20931324362754822, 0.010666219517588615, 0.07434062659740448, -0.17353419959545135, -0.37793299555778503, 0.06761529296636581, -0.21849551796913147, -0.05237002670764923, -0.0870213657617569, 0.14883796870708466, 0.2570101022720337, -0.049889035522937775, -0.04068375751376152, 0.3916792869567871, -0.051836468279361725, 0.3982259929180145, -0.0045698583126068115, 0.04614071547985077, 0.38623175024986267, 0.0007613301277160645, 0.16111336648464203, -0.10088586807250977, 0.060687292367219925, 0.011912122368812561, -0.04302524775266647, 0.14174695312976837, -0.2733830213546753, 0.10927344858646393, 0.2949393391609192, 0.00828772783279419, -0.00003691762685775757, 0.2901131212711334, 0.04620297998189926, 0.12148533761501312, -0.20317772030830383, -0.02809048444032669, 0.3196951746940613, 0.06739133596420288, -0.19496990740299225, -0.28022655844688416, 0.36974993348121643, -0.0758529007434845, 0.15898753702640533, -0.07124932110309601, 0.09160721302032471, 0.020620644092559814, 0.17627224326133728, -0.046678636223077774, 0.006841525435447693, -0.21280482411384583, 0.15042069554328918, 0.2237001210451126, -0.3888023793697357, 0.30984529852867126, -0.3744460940361023, -0.15176397562026978, -0.16952669620513916, 0.11826660484075546, 0.22062259912490845, -0.3986722528934479, -0.24119620025157928, 0.30758583545684814, -0.3698132336139679, 0.08323001116514206, -0.34447839856147766, -0.02997748553752899, 0.18079981207847595, -0.21320444345474243, 0.03969430923461914, -0.007279511541128159, -0.20695237815380096, 0.07564486563205719, 0.433084100484848, -0.05748054012656212, 0.07678928971290588, -0.021244462579488754, -0.14827993512153625, -0.10946951061487198, -0.060732487589120865, 0.10527712106704712, -0.09004968404769897, 0.2353915274143219, 0.11213414371013641, 0.42939189076423645, -0.03328961133956909, -0.4521790146827698, 0.3367644250392914, -0.08145643770694733, -0.3247222900390625, 0.3844374716281891, 0.11394207179546356, -0.03166530281305313, -0.11863996088504791, -0.24180644750595093, -0.2250976860523224, -0.6536903381347656, 0.4102863073348999, -0.046043358743190765, 0.25147372484207153, -0.07966172695159912, 0.2595388889312744, -0.005084365606307983, 0.17333748936653137, 0.11380597203969955, 0.040907122194767, 0.1502513289451599, 0.2864012122154236, -0.005085702985525131, -0.35842669010162354, -0.22258299589157104, -0.01173589751124382, 0.05516001209616661, 0.004152290523052216, -0.563576340675354, 0.07938028872013092, -0.2522321343421936, 0.03899101912975311, -0.2607312500476837, -0.09617136418819427, -0.10424765944480896, -0.15420430898666382, -0.07357263565063477, -0.16881652176380157, -0.05820572376251221, -0.13243317604064941, 0.058389127254486084, 0.2195894867181778, 0.059185341000556946, 0.5051448345184326, -0.05454137921333313, 0.2510189414024353, 0.17907653748989105, -0.3462344706058502, 0.5417789816856384, -0.015249999240040779, 0.08276613056659698, -0.30216559767723083, -0.37398603558540344, 0.08836937695741653, -0.0617496594786644, -0.1858803629875183, 0.11164510250091553, -0.23060277104377747, -0.5471045970916748, -0.060038961470127106, -0.08769028633832932, -0.3857564330101013, -0.16124320030212402, 0.3794032335281372, 0.038764044642448425, -0.2500832974910736, -0.13215526938438416, -0.0011658817529678345, -0.04302924871444702, 0.07019917666912079, -0.09848162531852722, 0.024069100618362427, 0.11089256405830383, 0.08241631835699081, -0.4105532765388489, -0.5193336009979248, 0.2062980830669403, 0.20984284579753876, -0.022171538323163986, 0.6087417602539062, 0.0617026686668396, -0.24566049873828888, -0.01292550191283226, -0.04258040711283684, 0.7768685221672058, 0.169401153922081, 0.3241720199584961, 0.2752424478530884, 0.16698980331420898, -0.5314438939094543, -0.0723407045006752, 0.047866396605968475, 0.2290232628583908, 0.3588830828666687, 0.20290927588939667, -0.29069051146507263, 0.061490464955568314, 0.037738170474767685, 0.4733458161354065, -0.05348045006394386, 0.06388832628726959, -0.14205485582351685, -0.5181752443313599, -0.3034282326698303, -0.0684397965669632, 0.23217269778251648, 0.40586620569229126, 0.047735780477523804, 0.1018463671207428, -0.22749069333076477, -0.2879795432090759, -0.06557053327560425, 0.1566624641418457, 0.36518171429634094, 0.03632019832730293, 0.3777318596839905, -0.35699892044067383, 0.20038704574108124, 0.3507029116153717, 0.7705328464508057, 0.2370491921901703, 0.13283668458461761, 0.3557787835597992, 0.16721639037132263, 0.3394782543182373, 0.07752041518688202, -0.181732177734375, -0.002683740109205246, -0.021233025938272476, 0.11255165934562683, -0.06566067039966583, 0.09890268743038177, -0.06471690535545349, -0.12815557420253754, -0.3951013684272766, -0.515343964099884, 0.484018474817276, 0.011028975248336792, 0.08472718298435211, 0.07270924746990204, -0.002752494066953659, -0.14453643560409546, 0.5553170442581177, -0.03583107516169548, 0.6011927723884583, 0.09996022284030914, 0.17471352219581604, 0.28767886757850647, 0.1994442343711853, 0.1614491194486618, -0.042880911380052567, 0.1452927589416504, -0.49416619539260864, -0.06310328841209412, 0.020970351994037628, -0.29236656427383423, -0.2379104346036911, 0.07914736866950989, 0.006881736218929291, -0.050163183361291885, -0.3341163396835327, 0.3400000035762787, 0.005201403051614761, 0.02198603004217148, -0.11099659651517868, -0.16521301865577698, -0.49538397789001465, 0.12891925871372223, -0.1451234668493271, -0.08460350334644318, 0.14149844646453857, -0.371852308511734, -0.4071168899536133, -0.23718145489692688, -0.32108914852142334, 0.20959588885307312, 0.004473857581615448, 0.31048813462257385, 0.18549101054668427, -0.1834079921245575, 0.22432614862918854, 0.2595151364803314, -0.06561493128538132, 0.17817477881908417, -0.0698012262582779, -0.03822677582502365, 0.12747959792613983, 0.17429733276367188, -0.014589857310056686, 0.11215367168188095, 0.2553318440914154, 0.044239342212677, -0.004750743508338928, -0.03606506064534187, -0.12992045283317566, -0.057669878005981445, -0.04467873275279999, 0.5194913744926453, -0.5828983187675476, -0.5726549625396729, -0.49929046630859375, -0.11436094343662262, 0.1262996792793274, -0.1403500884771347, 0.12499269098043442, 0.19529379904270172, -0.19404640793800354, 0.16472023725509644, 0.20927056670188904, -0.2676781415939331, 0.08264148235321045, 0.4259032905101776, 0.214944988489151, 0.1522946059703827, 0.505256175994873, 0.1760033369064331, -0.100267693400383, -0.16301289200782776, 0.3334997296333313, 0.3644890785217285, -0.32217925786972046, 0.20748397707939148, -0.28959381580352783, -0.22886568307876587, 0.11785867810249329, 0.225438192486763, -0.10049749910831451, 0.19012883305549622, -0.05899089574813843, -0.5626335144042969, -0.22780059278011322, 0.518314778804779, -0.10266299545764923, -0.00016187550500035286, -0.31709396839141846, 0.2037462592124939, -0.283024400472641, 0.01373235322535038, -0.2644259035587311, 0.012295279651880264, -0.38304704427719116, 0.30674272775650024, -0.28384163975715637, 0.0631817877292633, 0.10771331191062927, -0.05769822373986244, 0.15747439861297607, 0.045724086463451385, -0.2989494800567627, -0.1695677489042282, -0.044082462787628174, 0.1386810839176178, 0.16752314567565918, -0.06914077699184418, -0.056138332933187485, -0.20288392901420593, -0.16978558897972107, -0.17846304178237915, 0.07560306042432785, -0.03721964731812477, 0.006926575675606728, -0.23105645179748535, 0.16573847830295563, -0.03192947432398796, 0.07958804816007614, 0.2960800528526306, -0.28435060381889343, 0.15204890072345734, 0.24208781123161316, 0.1511417031288147, 0.05035818740725517, 0.1411905586719513, -0.27616357803344727, 0.018035851418972015, 0.10842238366603851, 0.16751927137374878, 0.28900861740112305, -0.3925434350967407, 0.14663165807724, 0.09087884426116943, 0.3725403845310211, 0.48512348532676697, -0.2730560302734375, 0.21409937739372253, -0.007872471585869789, 0.1968107670545578, -0.08398072421550751, -0.18164204061031342, 0.20073336362838745, -0.0919661670923233, -0.05664801970124245, 0.4159700274467468, -0.011826999485492706, -0.41519641876220703, -0.026585515588521957, -0.08258822560310364, 0.6081091165542603, 0.22977140545845032, 0.08629198372364044, 0.26160889863967896, -0.28034284710884094, -0.2327277958393097, -0.09516254812479019, 0.1321500539779663, 0.3880217969417572, 0.33241596817970276, -0.15132425725460052, -0.0804777517914772, 0.09804842621088028, 0.04185924679040909, -0.05648528039455414, -0.43468090891838074, 0.17869645357131958, 0.27571988105773926, 0.06413702666759491, 0.18183696269989014, -0.11503151059150696, 0.014276433736085892, -0.20088712871074677, -0.05605480074882507, 0.01055920124053955, 0.005339236930012703, -0.126276895403862, -0.00664825364947319, -0.20964224636554718, -0.3057301342487335, -0.2610456347465515, -0.08870202302932739, -0.09573658555746078, -0.2701946496963501, -0.014257680624723434, 0.12790830433368683, -0.2165713906288147, -0.34501349925994873, 0.14604109525680542, 0.0064323898404836655, 0.1073150709271431, -0.33787524700164795, 0.3518320322036743, 0.11814091354608536, -0.05380427837371826, 0.2007160484790802, -0.03761278837919235, 0.4067792594432831, 0.5188493132591248, 0.20052458345890045, -0.17834430932998657, -0.10791373252868652, -0.27077174186706543, -0.3827826678752899, 0.13246504962444305, 0.12965230643749237, 0.20879550278186798, 0.30713319778442383, 0.18387475609779358, -0.08162389695644379, 0.15321838855743408, 0.056359902024269104, 0.1505613774061203, -0.0949474573135376, 0.4016478657722473, -0.33208680152893066, -0.13567310571670532, -0.06392001360654831, -0.18759770691394806, -0.40915533900260925, -0.22578127682209015, 0.12888653576374054, 0.0038420893251895905, 0.39121559262275696, 0.19672468304634094, 0.0853426530957222, -0.17330323159694672, 0.5396345853805542, -0.007819628342986107, 0.1445154994726181, -0.16046170890331268, 0.2097107619047165, -0.16315343976020813, 0.15237760543823242, -0.23418250679969788, -0.000429302453994751, 0.28810176253318787, 0.19909727573394775, 0.2289344072341919, -0.0018988922238349915, 0.005171261727809906, 0.1557319462299347, -0.00789736956357956, 0.4110308885574341, -0.3447287082672119, -0.5288046598434448, 0.12819503247737885, 0.36861827969551086, -0.10753719508647919, -0.3436298370361328, 0.2005372792482376, -0.29884645342826843, 0.2224658876657486, -0.0512118861079216, -0.3293076455593109, 0.0731906145811081, -0.1745913326740265, 0.35079288482666016, 0.07701373100280762, 0.45005130767822266, -0.06434595584869385, -0.2789005637168884, -0.3835008442401886, -0.6112735271453857, -0.17951256036758423, 0.3404887318611145, 0.0977153480052948, 0.5955262780189514, -0.1621585190296173, 0.3150216341018677, -0.277752161026001, -0.05560947209596634, -0.2839173674583435, 0.13089440762996674, 0.040352962911129, 0.15990447998046875, -0.3800525963306427, 0.020376157015562057, -0.031703345477581024, 0.08959674835205078, 0.04797038808465004, 0.14304406940937042, -0.2902653217315674, -0.487911581993103, 0.6028251051902771, -0.2925850450992584, -0.3177359700202942, 0.2625300884246826, -0.01453562080860138, -0.19574114680290222, 0.18823286890983582, -0.465964138507843, 0.02785642445087433, 0.3573474586009979, -0.06340812146663666, -0.1371324211359024, 0.06668022274971008, -0.021505070850253105, -0.2397741973400116, -0.07522900402545929, 0.3942936062812805, -0.007528411690145731, -0.2938465476036072, 0.01661093533039093, -0.050848737359046936 ]
https://github.com/huggingface/datasets/issues/5596
A similar error occurs in the Pile dataset (EleutherAI/the_pile) Loading the dataset produces the following error. ``` TypeError: Couldn't cast array of type struct<file: string, id: string> to {'id': Value(dtype='string', id=None)} ```
[TypeError: Couldn't cast array of type] Can only load a subset of the dataset
### Describe the bug I'm trying to load this [dataset](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues) which consists of jsonl files and I get the following error: ``` casted_values = _c(array.values, feature[0]) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 1839, in wrapper return func(array, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 2132, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type struct<type: string, action: string, datetime: timestamp[s], author: string, title: string, description: string, comment_id: int64, comment: string, labels: list<item: string>> to {'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)} ``` But I can succesfully load a subset of the dataset, for example this works: ```python ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train", data_files=[f"data/data-{x}.jsonl" for x in range(10)]) ``` and `ds.features` returns: ``` {'repo': Value(dtype='string', id=None), 'org': Value(dtype='string', id=None), 'issue_id': Value(dtype='int64', id=None), 'issue_number': Value(dtype='int64', id=None), 'pull_request': {'user_login': Value(dtype='string', id=None), 'repo': Value(dtype='string', id=None), 'number': Value(dtype='int64', id=None)}, 'events': [{'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)}]} ``` So I'm not sure if there's an issue with just some of the files. Grateful if you have any suggestions to fix the issue. Side note: I saw this related [issue](https://github.com/huggingface/datasets/issues/3637) and tried to write a loading script to have `events` as a `Sequence` and not `list` [here](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/blob/main/loading.py) (the script was renamed). It worked with a subset locally but doesn't for the remote dataset it can't find https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/resolve/main/data. ### Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train") ``` ### Expected behavior Load the entire dataset succesfully. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-4.19.0-23-cloud-amd64-x86_64-with-debian-10.13 - Python version: 3.7.12 - PyArrow version: 9.0.0 - Pandas version: 1.3.4
32
[TypeError: Couldn't cast array of type] Can only load a subset of the dataset ### Describe the bug I'm trying to load this [dataset](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues) which consists of jsonl files and I get the following error: ``` casted_values = _c(array.values, feature[0]) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 1839, in wrapper return func(array, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 2132, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type struct<type: string, action: string, datetime: timestamp[s], author: string, title: string, description: string, comment_id: int64, comment: string, labels: list<item: string>> to {'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)} ``` But I can succesfully load a subset of the dataset, for example this works: ```python ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train", data_files=[f"data/data-{x}.jsonl" for x in range(10)]) ``` and `ds.features` returns: ``` {'repo': Value(dtype='string', id=None), 'org': Value(dtype='string', id=None), 'issue_id': Value(dtype='int64', id=None), 'issue_number': Value(dtype='int64', id=None), 'pull_request': {'user_login': Value(dtype='string', id=None), 'repo': Value(dtype='string', id=None), 'number': Value(dtype='int64', id=None)}, 'events': [{'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)}]} ``` So I'm not sure if there's an issue with just some of the files. Grateful if you have any suggestions to fix the issue. Side note: I saw this related [issue](https://github.com/huggingface/datasets/issues/3637) and tried to write a loading script to have `events` as a `Sequence` and not `list` [here](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/blob/main/loading.py) (the script was renamed). It worked with a subset locally but doesn't for the remote dataset it can't find https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/resolve/main/data. ### Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train") ``` ### Expected behavior Load the entire dataset succesfully. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-4.19.0-23-cloud-amd64-x86_64-with-debian-10.13 - Python version: 3.7.12 - PyArrow version: 9.0.0 - Pandas version: 1.3.4 A similar error occurs in the Pile dataset (EleutherAI/the_pile) Loading the dataset produces the following error. ``` TypeError: Couldn't cast array of type struct<file: string, id: string> to {'id': Value(dtype='string', id=None)} ```
[ -0.17818355560302734, -0.10365805774927139, -0.07276815176010132, 0.42764705419540405, 0.4102259576320648, 0.15316441655158997, 0.2850619852542877, 0.5654890537261963, 0.17911650240421295, -0.04942840337753296, -0.07908794283866882, 0.37559065222740173, -0.15938591957092285, 0.3405279517173767, 0.033302970230579376, -0.08496909588575363, -0.015251260250806808, 0.10918955504894257, -0.1212596446275711, 0.04029516130685806, -0.21663177013397217, -0.09835462272167206, -0.24384552240371704, 0.07710403203964233, 0.12842173874378204, -0.02114233747124672, 0.3520960211753845, 0.2275000512599945, -0.14972516894340515, -0.2784441113471985, 0.30832719802856445, -0.33668312430381775, 0.26875442266464233, 0.31646397709846497, -0.00010941471555270255, 0.22916314005851746, 0.3681133985519409, -0.19376108050346375, -0.3725648820400238, -0.22912950813770294, -0.269769549369812, -0.36261773109436035, 0.19788667559623718, -0.2148648500442505, 0.04489988088607788, -0.5417377352714539, -0.13186120986938477, -0.23782019317150116, 0.22384987771511078, 0.31287410855293274, 0.23272345960140228, 0.20673787593841553, 0.09633079171180725, -0.05479011684656143, 0.04500845819711685, 0.19447430968284607, -0.1638188660144806, 0.18075546622276306, 0.1972290575504303, 0.3694196343421936, 0.06044419854879379, -0.07788430154323578, -0.17023520171642303, -0.060211941599845886, 0.20275360345840454, -0.12787339091300964, -0.12642809748649597, -0.31896254420280457, 0.0209499504417181, 0.10640878975391388, 0.689046323299408, 0.03327827900648117, -0.4146274924278259, -0.19086748361587524, -0.015160156413912773, -0.015479747205972672, -0.009859774261713028, 0.23440825939178467, -0.07822086662054062, 0.051582563668489456, -0.24746081233024597, 0.36806267499923706, -0.06464201956987381, 0.2440290004014969, -0.15356121957302094, -0.02687125653028488, -0.1648292988538742, 0.21339315176010132, 0.10034994781017303, -0.2043704390525818, 0.10227358341217041, 0.03891165554523468, -0.19473940134048462, 0.2533332109451294, -0.1507093906402588, 0.03785049915313721, 0.08695492148399353, -0.3270587623119354, 0.24137961864471436, 0.06310687959194183, 0.08255034685134888, 0.20225206017494202, -0.15389981865882874, 0.1606258600950241, 0.5542967319488525, 0.16872410476207733, 0.01579119823873043, 0.004695121198892593, 0.15737295150756836, -0.04583553224802017, -0.041537102311849594, 0.10212685912847519, -0.25293368101119995, -0.0690411627292633, -0.1442137509584427, -0.02646838128566742, 0.15643846988677979, -0.2488832026720047, -0.30483341217041016, 0.08353812992572784, -0.2950909733772278, -0.07641377300024033, 0.23579667508602142, 0.4286303222179413, 0.16544467210769653, 0.45986220240592957, 0.09190458059310913, 0.3494837284088135, -0.014161910861730576, -0.20311671495437622, -0.17962774634361267, 0.11209192872047424, 0.014080286026000977, -0.4417771100997925, 0.16284309327602386, 0.19354824721813202, 0.1813381016254425, -0.08106774836778641, -0.071221262216568, -0.1922226846218109, -0.2111809104681015, 0.06256687641143799, -0.09629648923873901, 0.2956693768501282, 0.19211851060390472, 0.29026520252227783, 0.4229966402053833, -0.026368185877799988, -0.2896231412887573, 0.2114776223897934, -0.2489878237247467, 0.012584634125232697, -0.10880967229604721, 0.2170516699552536, -0.16555020213127136, -0.028317434713244438, -0.9540913701057434, -0.14200301468372345, 0.13848969340324402, -0.28926336765289307, -0.13518433272838593, -0.2612864077091217, 0.14573538303375244, -0.2843490540981293, 0.13039521872997284, 0.07732588052749634, -0.3002766966819763, 0.05249251425266266, -0.02585470676422119, -0.06390853226184845, 0.14666278660297394, 0.267723947763443, -0.3395651876926422, 0.4423886239528656, -0.17669112980365753, 0.007790133357048035, 0.6412485241889954, 0.10666238516569138, -0.23436880111694336, 0.3455043137073517, -0.017532899975776672, 0.046042874455451965, -0.003748524934053421, 0.13307107985019684, 0.11647853255271912, -0.034180089831352234, -0.01443684846162796, 0.45645204186439514, 0.14765332639217377, 0.0581187829375267, -0.04780234396457672, -0.06444988399744034, 0.027567364275455475, 0.2570596933364868, 0.06991048157215118, 0.32155507802963257, 0.12377741932868958, -0.01120513305068016, 0.3071914613246918, -0.17952290177345276, 0.23480406403541565, 0.11987462639808655, 0.24173584580421448, -0.2331707626581192, 0.01255054771900177, -0.09100019186735153, -0.34570151567459106, 0.19995975494384766, 0.25673210620880127, -0.3645208775997162, -0.06533250212669373, 0.23633213341236115, -0.3551439940929413, 0.043970927596092224, -0.10951665043830872, 0.1046549379825592, 0.04333294928073883, 0.09616750478744507, -0.015886738896369934, -0.08221732825040817, -0.26504307985305786, 0.05479096621274948, 0.07718119025230408, -0.10856257379055023, -0.3273792862892151, 0.18795007467269897, -0.05818819999694824, -0.12334927916526794, 0.06265684962272644, 0.007965201511979103, 0.024552620947360992, -0.2626154124736786, -0.20931324362754822, 0.010666219517588615, 0.07434062659740448, -0.17353419959545135, -0.37793299555778503, 0.06761529296636581, -0.21849551796913147, -0.05237002670764923, -0.0870213657617569, 0.14883796870708466, 0.2570101022720337, -0.049889035522937775, -0.04068375751376152, 0.3916792869567871, -0.051836468279361725, 0.3982259929180145, -0.0045698583126068115, 0.04614071547985077, 0.38623175024986267, 0.0007613301277160645, 0.16111336648464203, -0.10088586807250977, 0.060687292367219925, 0.011912122368812561, -0.04302524775266647, 0.14174695312976837, -0.2733830213546753, 0.10927344858646393, 0.2949393391609192, 0.00828772783279419, -0.00003691762685775757, 0.2901131212711334, 0.04620297998189926, 0.12148533761501312, -0.20317772030830383, -0.02809048444032669, 0.3196951746940613, 0.06739133596420288, -0.19496990740299225, -0.28022655844688416, 0.36974993348121643, -0.0758529007434845, 0.15898753702640533, -0.07124932110309601, 0.09160721302032471, 0.020620644092559814, 0.17627224326133728, -0.046678636223077774, 0.006841525435447693, -0.21280482411384583, 0.15042069554328918, 0.2237001210451126, -0.3888023793697357, 0.30984529852867126, -0.3744460940361023, -0.15176397562026978, -0.16952669620513916, 0.11826660484075546, 0.22062259912490845, -0.3986722528934479, -0.24119620025157928, 0.30758583545684814, -0.3698132336139679, 0.08323001116514206, -0.34447839856147766, -0.02997748553752899, 0.18079981207847595, -0.21320444345474243, 0.03969430923461914, -0.007279511541128159, -0.20695237815380096, 0.07564486563205719, 0.433084100484848, -0.05748054012656212, 0.07678928971290588, -0.021244462579488754, -0.14827993512153625, -0.10946951061487198, -0.060732487589120865, 0.10527712106704712, -0.09004968404769897, 0.2353915274143219, 0.11213414371013641, 0.42939189076423645, -0.03328961133956909, -0.4521790146827698, 0.3367644250392914, -0.08145643770694733, -0.3247222900390625, 0.3844374716281891, 0.11394207179546356, -0.03166530281305313, -0.11863996088504791, -0.24180644750595093, -0.2250976860523224, -0.6536903381347656, 0.4102863073348999, -0.046043358743190765, 0.25147372484207153, -0.07966172695159912, 0.2595388889312744, -0.005084365606307983, 0.17333748936653137, 0.11380597203969955, 0.040907122194767, 0.1502513289451599, 0.2864012122154236, -0.005085702985525131, -0.35842669010162354, -0.22258299589157104, -0.01173589751124382, 0.05516001209616661, 0.004152290523052216, -0.563576340675354, 0.07938028872013092, -0.2522321343421936, 0.03899101912975311, -0.2607312500476837, -0.09617136418819427, -0.10424765944480896, -0.15420430898666382, -0.07357263565063477, -0.16881652176380157, -0.05820572376251221, -0.13243317604064941, 0.058389127254486084, 0.2195894867181778, 0.059185341000556946, 0.5051448345184326, -0.05454137921333313, 0.2510189414024353, 0.17907653748989105, -0.3462344706058502, 0.5417789816856384, -0.015249999240040779, 0.08276613056659698, -0.30216559767723083, -0.37398603558540344, 0.08836937695741653, -0.0617496594786644, -0.1858803629875183, 0.11164510250091553, -0.23060277104377747, -0.5471045970916748, -0.060038961470127106, -0.08769028633832932, -0.3857564330101013, -0.16124320030212402, 0.3794032335281372, 0.038764044642448425, -0.2500832974910736, -0.13215526938438416, -0.0011658817529678345, -0.04302924871444702, 0.07019917666912079, -0.09848162531852722, 0.024069100618362427, 0.11089256405830383, 0.08241631835699081, -0.4105532765388489, -0.5193336009979248, 0.2062980830669403, 0.20984284579753876, -0.022171538323163986, 0.6087417602539062, 0.0617026686668396, -0.24566049873828888, -0.01292550191283226, -0.04258040711283684, 0.7768685221672058, 0.169401153922081, 0.3241720199584961, 0.2752424478530884, 0.16698980331420898, -0.5314438939094543, -0.0723407045006752, 0.047866396605968475, 0.2290232628583908, 0.3588830828666687, 0.20290927588939667, -0.29069051146507263, 0.061490464955568314, 0.037738170474767685, 0.4733458161354065, -0.05348045006394386, 0.06388832628726959, -0.14205485582351685, -0.5181752443313599, -0.3034282326698303, -0.0684397965669632, 0.23217269778251648, 0.40586620569229126, 0.047735780477523804, 0.1018463671207428, -0.22749069333076477, -0.2879795432090759, -0.06557053327560425, 0.1566624641418457, 0.36518171429634094, 0.03632019832730293, 0.3777318596839905, -0.35699892044067383, 0.20038704574108124, 0.3507029116153717, 0.7705328464508057, 0.2370491921901703, 0.13283668458461761, 0.3557787835597992, 0.16721639037132263, 0.3394782543182373, 0.07752041518688202, -0.181732177734375, -0.002683740109205246, -0.021233025938272476, 0.11255165934562683, -0.06566067039966583, 0.09890268743038177, -0.06471690535545349, -0.12815557420253754, -0.3951013684272766, -0.515343964099884, 0.484018474817276, 0.011028975248336792, 0.08472718298435211, 0.07270924746990204, -0.002752494066953659, -0.14453643560409546, 0.5553170442581177, -0.03583107516169548, 0.6011927723884583, 0.09996022284030914, 0.17471352219581604, 0.28767886757850647, 0.1994442343711853, 0.1614491194486618, -0.042880911380052567, 0.1452927589416504, -0.49416619539260864, -0.06310328841209412, 0.020970351994037628, -0.29236656427383423, -0.2379104346036911, 0.07914736866950989, 0.006881736218929291, -0.050163183361291885, -0.3341163396835327, 0.3400000035762787, 0.005201403051614761, 0.02198603004217148, -0.11099659651517868, -0.16521301865577698, -0.49538397789001465, 0.12891925871372223, -0.1451234668493271, -0.08460350334644318, 0.14149844646453857, -0.371852308511734, -0.4071168899536133, -0.23718145489692688, -0.32108914852142334, 0.20959588885307312, 0.004473857581615448, 0.31048813462257385, 0.18549101054668427, -0.1834079921245575, 0.22432614862918854, 0.2595151364803314, -0.06561493128538132, 0.17817477881908417, -0.0698012262582779, -0.03822677582502365, 0.12747959792613983, 0.17429733276367188, -0.014589857310056686, 0.11215367168188095, 0.2553318440914154, 0.044239342212677, -0.004750743508338928, -0.03606506064534187, -0.12992045283317566, -0.057669878005981445, -0.04467873275279999, 0.5194913744926453, -0.5828983187675476, -0.5726549625396729, -0.49929046630859375, -0.11436094343662262, 0.1262996792793274, -0.1403500884771347, 0.12499269098043442, 0.19529379904270172, -0.19404640793800354, 0.16472023725509644, 0.20927056670188904, -0.2676781415939331, 0.08264148235321045, 0.4259032905101776, 0.214944988489151, 0.1522946059703827, 0.505256175994873, 0.1760033369064331, -0.100267693400383, -0.16301289200782776, 0.3334997296333313, 0.3644890785217285, -0.32217925786972046, 0.20748397707939148, -0.28959381580352783, -0.22886568307876587, 0.11785867810249329, 0.225438192486763, -0.10049749910831451, 0.19012883305549622, -0.05899089574813843, -0.5626335144042969, -0.22780059278011322, 0.518314778804779, -0.10266299545764923, -0.00016187550500035286, -0.31709396839141846, 0.2037462592124939, -0.283024400472641, 0.01373235322535038, -0.2644259035587311, 0.012295279651880264, -0.38304704427719116, 0.30674272775650024, -0.28384163975715637, 0.0631817877292633, 0.10771331191062927, -0.05769822373986244, 0.15747439861297607, 0.045724086463451385, -0.2989494800567627, -0.1695677489042282, -0.044082462787628174, 0.1386810839176178, 0.16752314567565918, -0.06914077699184418, -0.056138332933187485, -0.20288392901420593, -0.16978558897972107, -0.17846304178237915, 0.07560306042432785, -0.03721964731812477, 0.006926575675606728, -0.23105645179748535, 0.16573847830295563, -0.03192947432398796, 0.07958804816007614, 0.2960800528526306, -0.28435060381889343, 0.15204890072345734, 0.24208781123161316, 0.1511417031288147, 0.05035818740725517, 0.1411905586719513, -0.27616357803344727, 0.018035851418972015, 0.10842238366603851, 0.16751927137374878, 0.28900861740112305, -0.3925434350967407, 0.14663165807724, 0.09087884426116943, 0.3725403845310211, 0.48512348532676697, -0.2730560302734375, 0.21409937739372253, -0.007872471585869789, 0.1968107670545578, -0.08398072421550751, -0.18164204061031342, 0.20073336362838745, -0.0919661670923233, -0.05664801970124245, 0.4159700274467468, -0.011826999485492706, -0.41519641876220703, -0.026585515588521957, -0.08258822560310364, 0.6081091165542603, 0.22977140545845032, 0.08629198372364044, 0.26160889863967896, -0.28034284710884094, -0.2327277958393097, -0.09516254812479019, 0.1321500539779663, 0.3880217969417572, 0.33241596817970276, -0.15132425725460052, -0.0804777517914772, 0.09804842621088028, 0.04185924679040909, -0.05648528039455414, -0.43468090891838074, 0.17869645357131958, 0.27571988105773926, 0.06413702666759491, 0.18183696269989014, -0.11503151059150696, 0.014276433736085892, -0.20088712871074677, -0.05605480074882507, 0.01055920124053955, 0.005339236930012703, -0.126276895403862, -0.00664825364947319, -0.20964224636554718, -0.3057301342487335, -0.2610456347465515, -0.08870202302932739, -0.09573658555746078, -0.2701946496963501, -0.014257680624723434, 0.12790830433368683, -0.2165713906288147, -0.34501349925994873, 0.14604109525680542, 0.0064323898404836655, 0.1073150709271431, -0.33787524700164795, 0.3518320322036743, 0.11814091354608536, -0.05380427837371826, 0.2007160484790802, -0.03761278837919235, 0.4067792594432831, 0.5188493132591248, 0.20052458345890045, -0.17834430932998657, -0.10791373252868652, -0.27077174186706543, -0.3827826678752899, 0.13246504962444305, 0.12965230643749237, 0.20879550278186798, 0.30713319778442383, 0.18387475609779358, -0.08162389695644379, 0.15321838855743408, 0.056359902024269104, 0.1505613774061203, -0.0949474573135376, 0.4016478657722473, -0.33208680152893066, -0.13567310571670532, -0.06392001360654831, -0.18759770691394806, -0.40915533900260925, -0.22578127682209015, 0.12888653576374054, 0.0038420893251895905, 0.39121559262275696, 0.19672468304634094, 0.0853426530957222, -0.17330323159694672, 0.5396345853805542, -0.007819628342986107, 0.1445154994726181, -0.16046170890331268, 0.2097107619047165, -0.16315343976020813, 0.15237760543823242, -0.23418250679969788, -0.000429302453994751, 0.28810176253318787, 0.19909727573394775, 0.2289344072341919, -0.0018988922238349915, 0.005171261727809906, 0.1557319462299347, -0.00789736956357956, 0.4110308885574341, -0.3447287082672119, -0.5288046598434448, 0.12819503247737885, 0.36861827969551086, -0.10753719508647919, -0.3436298370361328, 0.2005372792482376, -0.29884645342826843, 0.2224658876657486, -0.0512118861079216, -0.3293076455593109, 0.0731906145811081, -0.1745913326740265, 0.35079288482666016, 0.07701373100280762, 0.45005130767822266, -0.06434595584869385, -0.2789005637168884, -0.3835008442401886, -0.6112735271453857, -0.17951256036758423, 0.3404887318611145, 0.0977153480052948, 0.5955262780189514, -0.1621585190296173, 0.3150216341018677, -0.277752161026001, -0.05560947209596634, -0.2839173674583435, 0.13089440762996674, 0.040352962911129, 0.15990447998046875, -0.3800525963306427, 0.020376157015562057, -0.031703345477581024, 0.08959674835205078, 0.04797038808465004, 0.14304406940937042, -0.2902653217315674, -0.487911581993103, 0.6028251051902771, -0.2925850450992584, -0.3177359700202942, 0.2625300884246826, -0.01453562080860138, -0.19574114680290222, 0.18823286890983582, -0.465964138507843, 0.02785642445087433, 0.3573474586009979, -0.06340812146663666, -0.1371324211359024, 0.06668022274971008, -0.021505070850253105, -0.2397741973400116, -0.07522900402545929, 0.3942936062812805, -0.007528411690145731, -0.2938465476036072, 0.01661093533039093, -0.050848737359046936 ]
https://github.com/huggingface/datasets/issues/5596
i have the same problem ,how to solve : raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type list<item: string> to {'content': Value(dtype='string', id=None), 'role': Value(dtype='string', id=None)}
[TypeError: Couldn't cast array of type] Can only load a subset of the dataset
### Describe the bug I'm trying to load this [dataset](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues) which consists of jsonl files and I get the following error: ``` casted_values = _c(array.values, feature[0]) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 1839, in wrapper return func(array, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 2132, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type struct<type: string, action: string, datetime: timestamp[s], author: string, title: string, description: string, comment_id: int64, comment: string, labels: list<item: string>> to {'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)} ``` But I can succesfully load a subset of the dataset, for example this works: ```python ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train", data_files=[f"data/data-{x}.jsonl" for x in range(10)]) ``` and `ds.features` returns: ``` {'repo': Value(dtype='string', id=None), 'org': Value(dtype='string', id=None), 'issue_id': Value(dtype='int64', id=None), 'issue_number': Value(dtype='int64', id=None), 'pull_request': {'user_login': Value(dtype='string', id=None), 'repo': Value(dtype='string', id=None), 'number': Value(dtype='int64', id=None)}, 'events': [{'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)}]} ``` So I'm not sure if there's an issue with just some of the files. Grateful if you have any suggestions to fix the issue. Side note: I saw this related [issue](https://github.com/huggingface/datasets/issues/3637) and tried to write a loading script to have `events` as a `Sequence` and not `list` [here](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/blob/main/loading.py) (the script was renamed). It worked with a subset locally but doesn't for the remote dataset it can't find https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/resolve/main/data. ### Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train") ``` ### Expected behavior Load the entire dataset succesfully. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-4.19.0-23-cloud-amd64-x86_64-with-debian-10.13 - Python version: 3.7.12 - PyArrow version: 9.0.0 - Pandas version: 1.3.4
30
[TypeError: Couldn't cast array of type] Can only load a subset of the dataset ### Describe the bug I'm trying to load this [dataset](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues) which consists of jsonl files and I get the following error: ``` casted_values = _c(array.values, feature[0]) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 1839, in wrapper return func(array, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/table.py", line 2132, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type struct<type: string, action: string, datetime: timestamp[s], author: string, title: string, description: string, comment_id: int64, comment: string, labels: list<item: string>> to {'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)} ``` But I can succesfully load a subset of the dataset, for example this works: ```python ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train", data_files=[f"data/data-{x}.jsonl" for x in range(10)]) ``` and `ds.features` returns: ``` {'repo': Value(dtype='string', id=None), 'org': Value(dtype='string', id=None), 'issue_id': Value(dtype='int64', id=None), 'issue_number': Value(dtype='int64', id=None), 'pull_request': {'user_login': Value(dtype='string', id=None), 'repo': Value(dtype='string', id=None), 'number': Value(dtype='int64', id=None)}, 'events': [{'type': Value(dtype='string', id=None), 'action': Value(dtype='string', id=None), 'datetime': Value(dtype='timestamp[s]', id=None), 'author': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'comment_id': Value(dtype='int64', id=None), 'comment': Value(dtype='string', id=None)}]} ``` So I'm not sure if there's an issue with just some of the files. Grateful if you have any suggestions to fix the issue. Side note: I saw this related [issue](https://github.com/huggingface/datasets/issues/3637) and tried to write a loading script to have `events` as a `Sequence` and not `list` [here](https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/blob/main/loading.py) (the script was renamed). It worked with a subset locally but doesn't for the remote dataset it can't find https://huggingface.co/datasets/bigcode-data/the-stack-gh-issues/resolve/main/data. ### Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('bigcode-data/the-stack-gh-issues', split="train") ``` ### Expected behavior Load the entire dataset succesfully. ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-4.19.0-23-cloud-amd64-x86_64-with-debian-10.13 - Python version: 3.7.12 - PyArrow version: 9.0.0 - Pandas version: 1.3.4 i have the same problem ,how to solve : raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type list<item: string> to {'content': Value(dtype='string', id=None), 'role': Value(dtype='string', id=None)}
[ -0.17818355560302734, -0.10365805774927139, -0.07276815176010132, 0.42764705419540405, 0.4102259576320648, 0.15316441655158997, 0.2850619852542877, 0.5654890537261963, 0.17911650240421295, -0.04942840337753296, -0.07908794283866882, 0.37559065222740173, -0.15938591957092285, 0.3405279517173767, 0.033302970230579376, -0.08496909588575363, -0.015251260250806808, 0.10918955504894257, -0.1212596446275711, 0.04029516130685806, -0.21663177013397217, -0.09835462272167206, -0.24384552240371704, 0.07710403203964233, 0.12842173874378204, -0.02114233747124672, 0.3520960211753845, 0.2275000512599945, -0.14972516894340515, -0.2784441113471985, 0.30832719802856445, -0.33668312430381775, 0.26875442266464233, 0.31646397709846497, -0.00010941471555270255, 0.22916314005851746, 0.3681133985519409, -0.19376108050346375, -0.3725648820400238, -0.22912950813770294, -0.269769549369812, -0.36261773109436035, 0.19788667559623718, -0.2148648500442505, 0.04489988088607788, -0.5417377352714539, -0.13186120986938477, -0.23782019317150116, 0.22384987771511078, 0.31287410855293274, 0.23272345960140228, 0.20673787593841553, 0.09633079171180725, -0.05479011684656143, 0.04500845819711685, 0.19447430968284607, -0.1638188660144806, 0.18075546622276306, 0.1972290575504303, 0.3694196343421936, 0.06044419854879379, -0.07788430154323578, -0.17023520171642303, -0.060211941599845886, 0.20275360345840454, -0.12787339091300964, -0.12642809748649597, -0.31896254420280457, 0.0209499504417181, 0.10640878975391388, 0.689046323299408, 0.03327827900648117, -0.4146274924278259, -0.19086748361587524, -0.015160156413912773, -0.015479747205972672, -0.009859774261713028, 0.23440825939178467, -0.07822086662054062, 0.051582563668489456, -0.24746081233024597, 0.36806267499923706, -0.06464201956987381, 0.2440290004014969, -0.15356121957302094, -0.02687125653028488, -0.1648292988538742, 0.21339315176010132, 0.10034994781017303, -0.2043704390525818, 0.10227358341217041, 0.03891165554523468, -0.19473940134048462, 0.2533332109451294, -0.1507093906402588, 0.03785049915313721, 0.08695492148399353, -0.3270587623119354, 0.24137961864471436, 0.06310687959194183, 0.08255034685134888, 0.20225206017494202, -0.15389981865882874, 0.1606258600950241, 0.5542967319488525, 0.16872410476207733, 0.01579119823873043, 0.004695121198892593, 0.15737295150756836, -0.04583553224802017, -0.041537102311849594, 0.10212685912847519, -0.25293368101119995, -0.0690411627292633, -0.1442137509584427, -0.02646838128566742, 0.15643846988677979, -0.2488832026720047, -0.30483341217041016, 0.08353812992572784, -0.2950909733772278, -0.07641377300024033, 0.23579667508602142, 0.4286303222179413, 0.16544467210769653, 0.45986220240592957, 0.09190458059310913, 0.3494837284088135, -0.014161910861730576, -0.20311671495437622, -0.17962774634361267, 0.11209192872047424, 0.014080286026000977, -0.4417771100997925, 0.16284309327602386, 0.19354824721813202, 0.1813381016254425, -0.08106774836778641, -0.071221262216568, -0.1922226846218109, -0.2111809104681015, 0.06256687641143799, -0.09629648923873901, 0.2956693768501282, 0.19211851060390472, 0.29026520252227783, 0.4229966402053833, -0.026368185877799988, -0.2896231412887573, 0.2114776223897934, -0.2489878237247467, 0.012584634125232697, -0.10880967229604721, 0.2170516699552536, -0.16555020213127136, -0.028317434713244438, -0.9540913701057434, -0.14200301468372345, 0.13848969340324402, -0.28926336765289307, -0.13518433272838593, -0.2612864077091217, 0.14573538303375244, -0.2843490540981293, 0.13039521872997284, 0.07732588052749634, -0.3002766966819763, 0.05249251425266266, -0.02585470676422119, -0.06390853226184845, 0.14666278660297394, 0.267723947763443, -0.3395651876926422, 0.4423886239528656, -0.17669112980365753, 0.007790133357048035, 0.6412485241889954, 0.10666238516569138, -0.23436880111694336, 0.3455043137073517, -0.017532899975776672, 0.046042874455451965, -0.003748524934053421, 0.13307107985019684, 0.11647853255271912, -0.034180089831352234, -0.01443684846162796, 0.45645204186439514, 0.14765332639217377, 0.0581187829375267, -0.04780234396457672, -0.06444988399744034, 0.027567364275455475, 0.2570596933364868, 0.06991048157215118, 0.32155507802963257, 0.12377741932868958, -0.01120513305068016, 0.3071914613246918, -0.17952290177345276, 0.23480406403541565, 0.11987462639808655, 0.24173584580421448, -0.2331707626581192, 0.01255054771900177, -0.09100019186735153, -0.34570151567459106, 0.19995975494384766, 0.25673210620880127, -0.3645208775997162, -0.06533250212669373, 0.23633213341236115, -0.3551439940929413, 0.043970927596092224, -0.10951665043830872, 0.1046549379825592, 0.04333294928073883, 0.09616750478744507, -0.015886738896369934, -0.08221732825040817, -0.26504307985305786, 0.05479096621274948, 0.07718119025230408, -0.10856257379055023, -0.3273792862892151, 0.18795007467269897, -0.05818819999694824, -0.12334927916526794, 0.06265684962272644, 0.007965201511979103, 0.024552620947360992, -0.2626154124736786, -0.20931324362754822, 0.010666219517588615, 0.07434062659740448, -0.17353419959545135, -0.37793299555778503, 0.06761529296636581, -0.21849551796913147, -0.05237002670764923, -0.0870213657617569, 0.14883796870708466, 0.2570101022720337, -0.049889035522937775, -0.04068375751376152, 0.3916792869567871, -0.051836468279361725, 0.3982259929180145, -0.0045698583126068115, 0.04614071547985077, 0.38623175024986267, 0.0007613301277160645, 0.16111336648464203, -0.10088586807250977, 0.060687292367219925, 0.011912122368812561, -0.04302524775266647, 0.14174695312976837, -0.2733830213546753, 0.10927344858646393, 0.2949393391609192, 0.00828772783279419, -0.00003691762685775757, 0.2901131212711334, 0.04620297998189926, 0.12148533761501312, -0.20317772030830383, -0.02809048444032669, 0.3196951746940613, 0.06739133596420288, -0.19496990740299225, -0.28022655844688416, 0.36974993348121643, -0.0758529007434845, 0.15898753702640533, -0.07124932110309601, 0.09160721302032471, 0.020620644092559814, 0.17627224326133728, -0.046678636223077774, 0.006841525435447693, -0.21280482411384583, 0.15042069554328918, 0.2237001210451126, -0.3888023793697357, 0.30984529852867126, -0.3744460940361023, -0.15176397562026978, -0.16952669620513916, 0.11826660484075546, 0.22062259912490845, -0.3986722528934479, -0.24119620025157928, 0.30758583545684814, -0.3698132336139679, 0.08323001116514206, -0.34447839856147766, -0.02997748553752899, 0.18079981207847595, -0.21320444345474243, 0.03969430923461914, -0.007279511541128159, -0.20695237815380096, 0.07564486563205719, 0.433084100484848, -0.05748054012656212, 0.07678928971290588, -0.021244462579488754, -0.14827993512153625, -0.10946951061487198, -0.060732487589120865, 0.10527712106704712, -0.09004968404769897, 0.2353915274143219, 0.11213414371013641, 0.42939189076423645, -0.03328961133956909, -0.4521790146827698, 0.3367644250392914, -0.08145643770694733, -0.3247222900390625, 0.3844374716281891, 0.11394207179546356, -0.03166530281305313, -0.11863996088504791, -0.24180644750595093, -0.2250976860523224, -0.6536903381347656, 0.4102863073348999, -0.046043358743190765, 0.25147372484207153, -0.07966172695159912, 0.2595388889312744, -0.005084365606307983, 0.17333748936653137, 0.11380597203969955, 0.040907122194767, 0.1502513289451599, 0.2864012122154236, -0.005085702985525131, -0.35842669010162354, -0.22258299589157104, -0.01173589751124382, 0.05516001209616661, 0.004152290523052216, -0.563576340675354, 0.07938028872013092, -0.2522321343421936, 0.03899101912975311, -0.2607312500476837, -0.09617136418819427, -0.10424765944480896, -0.15420430898666382, -0.07357263565063477, -0.16881652176380157, -0.05820572376251221, -0.13243317604064941, 0.058389127254486084, 0.2195894867181778, 0.059185341000556946, 0.5051448345184326, -0.05454137921333313, 0.2510189414024353, 0.17907653748989105, -0.3462344706058502, 0.5417789816856384, -0.015249999240040779, 0.08276613056659698, -0.30216559767723083, -0.37398603558540344, 0.08836937695741653, -0.0617496594786644, -0.1858803629875183, 0.11164510250091553, -0.23060277104377747, -0.5471045970916748, -0.060038961470127106, -0.08769028633832932, -0.3857564330101013, -0.16124320030212402, 0.3794032335281372, 0.038764044642448425, -0.2500832974910736, -0.13215526938438416, -0.0011658817529678345, -0.04302924871444702, 0.07019917666912079, -0.09848162531852722, 0.024069100618362427, 0.11089256405830383, 0.08241631835699081, -0.4105532765388489, -0.5193336009979248, 0.2062980830669403, 0.20984284579753876, -0.022171538323163986, 0.6087417602539062, 0.0617026686668396, -0.24566049873828888, -0.01292550191283226, -0.04258040711283684, 0.7768685221672058, 0.169401153922081, 0.3241720199584961, 0.2752424478530884, 0.16698980331420898, -0.5314438939094543, -0.0723407045006752, 0.047866396605968475, 0.2290232628583908, 0.3588830828666687, 0.20290927588939667, -0.29069051146507263, 0.061490464955568314, 0.037738170474767685, 0.4733458161354065, -0.05348045006394386, 0.06388832628726959, -0.14205485582351685, -0.5181752443313599, -0.3034282326698303, -0.0684397965669632, 0.23217269778251648, 0.40586620569229126, 0.047735780477523804, 0.1018463671207428, -0.22749069333076477, -0.2879795432090759, -0.06557053327560425, 0.1566624641418457, 0.36518171429634094, 0.03632019832730293, 0.3777318596839905, -0.35699892044067383, 0.20038704574108124, 0.3507029116153717, 0.7705328464508057, 0.2370491921901703, 0.13283668458461761, 0.3557787835597992, 0.16721639037132263, 0.3394782543182373, 0.07752041518688202, -0.181732177734375, -0.002683740109205246, -0.021233025938272476, 0.11255165934562683, -0.06566067039966583, 0.09890268743038177, -0.06471690535545349, -0.12815557420253754, -0.3951013684272766, -0.515343964099884, 0.484018474817276, 0.011028975248336792, 0.08472718298435211, 0.07270924746990204, -0.002752494066953659, -0.14453643560409546, 0.5553170442581177, -0.03583107516169548, 0.6011927723884583, 0.09996022284030914, 0.17471352219581604, 0.28767886757850647, 0.1994442343711853, 0.1614491194486618, -0.042880911380052567, 0.1452927589416504, -0.49416619539260864, -0.06310328841209412, 0.020970351994037628, -0.29236656427383423, -0.2379104346036911, 0.07914736866950989, 0.006881736218929291, -0.050163183361291885, -0.3341163396835327, 0.3400000035762787, 0.005201403051614761, 0.02198603004217148, -0.11099659651517868, -0.16521301865577698, -0.49538397789001465, 0.12891925871372223, -0.1451234668493271, -0.08460350334644318, 0.14149844646453857, -0.371852308511734, -0.4071168899536133, -0.23718145489692688, -0.32108914852142334, 0.20959588885307312, 0.004473857581615448, 0.31048813462257385, 0.18549101054668427, -0.1834079921245575, 0.22432614862918854, 0.2595151364803314, -0.06561493128538132, 0.17817477881908417, -0.0698012262582779, -0.03822677582502365, 0.12747959792613983, 0.17429733276367188, -0.014589857310056686, 0.11215367168188095, 0.2553318440914154, 0.044239342212677, -0.004750743508338928, -0.03606506064534187, -0.12992045283317566, -0.057669878005981445, -0.04467873275279999, 0.5194913744926453, -0.5828983187675476, -0.5726549625396729, -0.49929046630859375, -0.11436094343662262, 0.1262996792793274, -0.1403500884771347, 0.12499269098043442, 0.19529379904270172, -0.19404640793800354, 0.16472023725509644, 0.20927056670188904, -0.2676781415939331, 0.08264148235321045, 0.4259032905101776, 0.214944988489151, 0.1522946059703827, 0.505256175994873, 0.1760033369064331, -0.100267693400383, -0.16301289200782776, 0.3334997296333313, 0.3644890785217285, -0.32217925786972046, 0.20748397707939148, -0.28959381580352783, -0.22886568307876587, 0.11785867810249329, 0.225438192486763, -0.10049749910831451, 0.19012883305549622, -0.05899089574813843, -0.5626335144042969, -0.22780059278011322, 0.518314778804779, -0.10266299545764923, -0.00016187550500035286, -0.31709396839141846, 0.2037462592124939, -0.283024400472641, 0.01373235322535038, -0.2644259035587311, 0.012295279651880264, -0.38304704427719116, 0.30674272775650024, -0.28384163975715637, 0.0631817877292633, 0.10771331191062927, -0.05769822373986244, 0.15747439861297607, 0.045724086463451385, -0.2989494800567627, -0.1695677489042282, -0.044082462787628174, 0.1386810839176178, 0.16752314567565918, -0.06914077699184418, -0.056138332933187485, -0.20288392901420593, -0.16978558897972107, -0.17846304178237915, 0.07560306042432785, -0.03721964731812477, 0.006926575675606728, -0.23105645179748535, 0.16573847830295563, -0.03192947432398796, 0.07958804816007614, 0.2960800528526306, -0.28435060381889343, 0.15204890072345734, 0.24208781123161316, 0.1511417031288147, 0.05035818740725517, 0.1411905586719513, -0.27616357803344727, 0.018035851418972015, 0.10842238366603851, 0.16751927137374878, 0.28900861740112305, -0.3925434350967407, 0.14663165807724, 0.09087884426116943, 0.3725403845310211, 0.48512348532676697, -0.2730560302734375, 0.21409937739372253, -0.007872471585869789, 0.1968107670545578, -0.08398072421550751, -0.18164204061031342, 0.20073336362838745, -0.0919661670923233, -0.05664801970124245, 0.4159700274467468, -0.011826999485492706, -0.41519641876220703, -0.026585515588521957, -0.08258822560310364, 0.6081091165542603, 0.22977140545845032, 0.08629198372364044, 0.26160889863967896, -0.28034284710884094, -0.2327277958393097, -0.09516254812479019, 0.1321500539779663, 0.3880217969417572, 0.33241596817970276, -0.15132425725460052, -0.0804777517914772, 0.09804842621088028, 0.04185924679040909, -0.05648528039455414, -0.43468090891838074, 0.17869645357131958, 0.27571988105773926, 0.06413702666759491, 0.18183696269989014, -0.11503151059150696, 0.014276433736085892, -0.20088712871074677, -0.05605480074882507, 0.01055920124053955, 0.005339236930012703, -0.126276895403862, -0.00664825364947319, -0.20964224636554718, -0.3057301342487335, -0.2610456347465515, -0.08870202302932739, -0.09573658555746078, -0.2701946496963501, -0.014257680624723434, 0.12790830433368683, -0.2165713906288147, -0.34501349925994873, 0.14604109525680542, 0.0064323898404836655, 0.1073150709271431, -0.33787524700164795, 0.3518320322036743, 0.11814091354608536, -0.05380427837371826, 0.2007160484790802, -0.03761278837919235, 0.4067792594432831, 0.5188493132591248, 0.20052458345890045, -0.17834430932998657, -0.10791373252868652, -0.27077174186706543, -0.3827826678752899, 0.13246504962444305, 0.12965230643749237, 0.20879550278186798, 0.30713319778442383, 0.18387475609779358, -0.08162389695644379, 0.15321838855743408, 0.056359902024269104, 0.1505613774061203, -0.0949474573135376, 0.4016478657722473, -0.33208680152893066, -0.13567310571670532, -0.06392001360654831, -0.18759770691394806, -0.40915533900260925, -0.22578127682209015, 0.12888653576374054, 0.0038420893251895905, 0.39121559262275696, 0.19672468304634094, 0.0853426530957222, -0.17330323159694672, 0.5396345853805542, -0.007819628342986107, 0.1445154994726181, -0.16046170890331268, 0.2097107619047165, -0.16315343976020813, 0.15237760543823242, -0.23418250679969788, -0.000429302453994751, 0.28810176253318787, 0.19909727573394775, 0.2289344072341919, -0.0018988922238349915, 0.005171261727809906, 0.1557319462299347, -0.00789736956357956, 0.4110308885574341, -0.3447287082672119, -0.5288046598434448, 0.12819503247737885, 0.36861827969551086, -0.10753719508647919, -0.3436298370361328, 0.2005372792482376, -0.29884645342826843, 0.2224658876657486, -0.0512118861079216, -0.3293076455593109, 0.0731906145811081, -0.1745913326740265, 0.35079288482666016, 0.07701373100280762, 0.45005130767822266, -0.06434595584869385, -0.2789005637168884, -0.3835008442401886, -0.6112735271453857, -0.17951256036758423, 0.3404887318611145, 0.0977153480052948, 0.5955262780189514, -0.1621585190296173, 0.3150216341018677, -0.277752161026001, -0.05560947209596634, -0.2839173674583435, 0.13089440762996674, 0.040352962911129, 0.15990447998046875, -0.3800525963306427, 0.020376157015562057, -0.031703345477581024, 0.08959674835205078, 0.04797038808465004, 0.14304406940937042, -0.2902653217315674, -0.487911581993103, 0.6028251051902771, -0.2925850450992584, -0.3177359700202942, 0.2625300884246826, -0.01453562080860138, -0.19574114680290222, 0.18823286890983582, -0.465964138507843, 0.02785642445087433, 0.3573474586009979, -0.06340812146663666, -0.1371324211359024, 0.06668022274971008, -0.021505070850253105, -0.2397741973400116, -0.07522900402545929, 0.3942936062812805, -0.007528411690145731, -0.2938465476036072, 0.01661093533039093, -0.050848737359046936 ]
https://github.com/huggingface/datasets/issues/5594
Hi! I cannot reproduce this error on my machine. The raised error could mean that one of the downloaded files is corrupted. To verify this is not the case, you can run `load_dataset` as follows: ```python train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload", verification_mode="all_checks") ```
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
45
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 Hi! I cannot reproduce this error on my machine. The raised error could mean that one of the downloaded files is corrupted. To verify this is not the case, you can run `load_dataset` as follows: ```python train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload", verification_mode="all_checks") ```
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
Hi! Apologies for the delayed response! I tried the above and it doesn't solve the issue. Actually, the dataset gets downloaded most times, but sometimes this error occurs (at random afaik). Is it possible that there is a server issue for this particular dataset? I am able to download other datasets using the same code on the same machine with no issues :( I get this error now : ``` Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ | 55.9M/355M [04:45<25:25, 196kB/s] Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 1107, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 439, in main en_dataset = load_dataset("xtreme", "udpos.English", split="train", download_mode="force_redownload", verification_mode="all_checks") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 949, in _download_and_prepare verify_checksums( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/utils/info_utils.py", line 62, in verify_checksums raise NonMatchingChecksumError( datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://lindat.mff.cuni.cz/repository/xmlui/bitstream/handle/11234/1-3105/ud-treebanks-v2.5.tgz'] Set `verification_mode='no_checks'` to skip checksums verification and ignore this error ```
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
158
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 Hi! Apologies for the delayed response! I tried the above and it doesn't solve the issue. Actually, the dataset gets downloaded most times, but sometimes this error occurs (at random afaik). Is it possible that there is a server issue for this particular dataset? I am able to download other datasets using the same code on the same machine with no issues :( I get this error now : ``` Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ | 55.9M/355M [04:45<25:25, 196kB/s] Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 1107, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 439, in main en_dataset = load_dataset("xtreme", "udpos.English", split="train", download_mode="force_redownload", verification_mode="all_checks") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 949, in _download_and_prepare verify_checksums( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/utils/info_utils.py", line 62, in verify_checksums raise NonMatchingChecksumError( datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://lindat.mff.cuni.cz/repository/xmlui/bitstream/handle/11234/1-3105/ud-treebanks-v2.5.tgz'] Set `verification_mode='no_checks'` to skip checksums verification and ignore this error ```
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
If this happens randomly, then this means the data file from the error message is not always downloaded correctly. The only solution in this scenario is to download the dataset again by passing `download_mode="force_redownload"` to the `load_dataset` call.
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
38
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 If this happens randomly, then this means the data file from the error message is not always downloaded correctly. The only solution in this scenario is to download the dataset again by passing `download_mode="force_redownload"` to the `load_dataset` call.
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
Wow. I effectively have to redownload a dataset of 1TB because of this now? Because 3% of its parts are broken? Why is this downloader library so sh*t and badly documented also? I found almost nothing on the net, at least finally this issue about the problem here. No words to express how disappointed I am by that dataset tool provided by Huggingface here, which I sadly have to use because HF is the only place where the Dataset I plan to work with is hosted.... I mean... checksum check after download... or hitting timeout of a part... and redownload if not matching... that's content of every junior developer training session. I added `verification_mode="all_checks"`. And it really calculated checksums for 4096 parts of ~350 MB... But then did nothing and tried to extract still, hitting the error again. EDIT: Apparently it is able to fix it by getting a little help: Just delete the broken parts and associated files from `~/.cache/huggingface/datasets/downloads`
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
161
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 Wow. I effectively have to redownload a dataset of 1TB because of this now? Because 3% of its parts are broken? Why is this downloader library so sh*t and badly documented also? I found almost nothing on the net, at least finally this issue about the problem here. No words to express how disappointed I am by that dataset tool provided by Huggingface here, which I sadly have to use because HF is the only place where the Dataset I plan to work with is hosted.... I mean... checksum check after download... or hitting timeout of a part... and redownload if not matching... that's content of every junior developer training session. I added `verification_mode="all_checks"`. And it really calculated checksums for 4096 parts of ~350 MB... But then did nothing and tried to extract still, hitting the error again. EDIT: Apparently it is able to fix it by getting a little help: Just delete the broken parts and associated files from `~/.cache/huggingface/datasets/downloads`
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
I'm getting it too, although just retrying fixed it. Nevertheless, the dataset is too large to have re-downloaded the whole thing, for it's probably just one file with an issue. It would be good to know if there's a way people could manually examine the files (first for sizes, then possibly checksums)... going to the web or elsewhere to compare and correct it by hand, if ever needed.
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
68
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 I'm getting it too, although just retrying fixed it. Nevertheless, the dataset is too large to have re-downloaded the whole thing, for it's probably just one file with an issue. It would be good to know if there's a way people could manually examine the files (first for sizes, then possibly checksums)... going to the web or elsewhere to compare and correct it by hand, if ever needed.
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
Okay, no, it got further but it is repeatedly giving me: ```/home/jaggz/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_11_0/3f27acf10f303eac5b6fbbbe02495aeddb46ecffdb0a2fe3507fcfbf89094631/common_voice_11_0.py", line 195, in _generate_examples result["audio"] = {"path": path, "bytes": file.read()} ^^^^^^^^^^^ File "/usr/lib/python3.11/tarfile.py", line 687, in read raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/jaggz/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 625, in <module> main() File "/home/jaggz/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 360, in main raw_datasets["train"] = load_dataset( ^^^^^^^^^^^^^ File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/load.py", line 2153, in load_dataset builder_instance.download_and_prepare( File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/builder.py", line 954, in download_and_prepare self._download_and_prepare( File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/builder.py", line 1717, in _download_and_prepare super()._download_and_prepare( File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/builder.py", line 1049, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/builder.py", line 1555, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/builder.py", line 1712, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the datase
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
137
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 Okay, no, it got further but it is repeatedly giving me: ```/home/jaggz/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_11_0/3f27acf10f303eac5b6fbbbe02495aeddb46ecffdb0a2fe3507fcfbf89094631/common_voice_11_0.py", line 195, in _generate_examples result["audio"] = {"path": path, "bytes": file.read()} ^^^^^^^^^^^ File "/usr/lib/python3.11/tarfile.py", line 687, in read raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/jaggz/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 625, in <module> main() File "/home/jaggz/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 360, in main raw_datasets["train"] = load_dataset( ^^^^^^^^^^^^^ File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/load.py", line 2153, in load_dataset builder_instance.download_and_prepare( File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/builder.py", line 954, in download_and_prepare self._download_and_prepare( File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/builder.py", line 1717, in _download_and_prepare super()._download_and_prepare( File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/builder.py", line 1049, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/builder.py", line 1555, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/jaggz/venvs/pynow/lib/python3.11/site-packages/datasets/builder.py", line 1712, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the datase
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
@RuntimeRacer > EDIT: Apparently it is able to fix it by getting a little help: Just delete the broken parts and associated files from `~/.cache/huggingface/datasets/downloads` How do you know the broken parts? Mine's consistently erroring and.. yeah, really this thing should be able to check the files (but where's that even done)... 2023-11-02 00:14:09.846055: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. /home/j/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py:299: FutureWarning: The `use_auth_token` argument is deprecated and will be removed in v4.34. Please use `token` instead. warnings.warn( 11/02/2023 00:14:37 - WARNING - __main__ - Process rank: 0, device: cuda:0, n_gpu: 1, distributed training: False, 16-bits training: True 11/02/2023 00:14:37 - INFO - __main__ - Training/evaluation parameters Seq2SeqTrainingArguments( _n_gpu=1, adafactor=False, adam_beta1=0.9, adam_beta2=0.999, ... logging_dir=./whisper-tiny-en/runs/Nov02_00-14-28_jsys, ... run_name=./whisper-tiny-en, ... weight_decay=0.0, ) 11/02/2023 00:14:37 - INFO - __main__ - Training/evaluation parameters Seq2SeqTrainingArguments( _n_gpu=1, adafactor=False, ... logging_dir=./whisper-tiny-en/runs/Nov02_00-14-28_jsys, ... weight_decay=0.0, ) Downloading data files: 0%| | 0/5 [00:00<?, ?it/s] Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 2426.42it/s] Extracting data files: 0%| | 0/5 [00:00<?, ?it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 421.16it/s] Downloading data files: 0%| | 0/5 [00:00<?, ?it/s] Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 18707.87it/s] Extracting data files: 0%| | 0/5 [00:00<?, ?it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 3754.97it/s] Generating train split: 0 examples [00:00, ? examples/s] Reading metadata...: 0it [00:00, ?it/s] ... Reading metadata...: 948736it [00:23, 40632.92it/s] Generating train split: 1 examples [00:23, 23.37s/ examples] ... Generating train split: 948736 examples [08:28, 1866.15 examples/s] Generating validation split: 0 examples [00:00, ? examples/s] Reading metadata...: 0it [00:00, ?it/s] Reading metadata...: 16089it [00:00, 157411.88it/s] Reading metadata...: 16354it [00:00, 158233.27it/s] Generating validation split: 1 examples [00:00, 7.60 examples/s] Generating validation split: 16354 examples [00:14, 1154.77 examples/s] Generating test split: 0 examples [00:00, ? examples/s] Reading metadata...: 0it [00:00, ?it/s] Reading metadata...: 16354it [00:00, 194855.03it/s] Generating test split: 1 examples [00:00, 4.53 examples/s] Generating test split: 16354 examples [00:07, 2105.43 examples/s] Generating other split: 0 examples [00:00, ? examples/s] Reading metadata...: 0it [00:00, ?it/s] Reading metadata...: 290846it [00:01, 235823.90it/s] Generating other split: 1 examples [00:01, 1.27s/ examples] ... Generating other split: 290846 examples [02:12, 2196.96 examples/s] Generating invalidated split: 0 examples [00:00, ? examples/s] Reading metadata...: 252599it [00:01, 241965.85it/s] Generating invalidated split: 1 examples [00:01, 1.08s/ examples] ... Generating invalidated split: 60130 examples [00:34, 1764.14 examples/s] Traceback (most recent call last): File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 1676, in _prepare_split_single for key, record in generator: File "/home/j/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_11_0/3f27acf10f303eac5b6fbbbe02495aeddb46ecffdb0a2fe3507fcfbf89094631/common_voice_11_0.py", line 195, in _generate_examples result["audio"] = {"path": path, "bytes": file.read()} ^^^^^^^^^^^ File "/usr/lib/python3.11/tarfile.py", line 687, in read raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/j/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 625, in <module> main() File "/home/j/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 360, in main raw_datasets["train"] = load_dataset( ^^^^^^^^^^^^^ File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/load.py", line 2153, in load_dataset builder_instance.download_and_prepare( File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 954, in download_and_prepare self._download_and_prepare( File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 1717, in _download_and_prepare super()._download_and_prepare( File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 1049, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 1555, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 1712, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
539
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 @RuntimeRacer > EDIT: Apparently it is able to fix it by getting a little help: Just delete the broken parts and associated files from `~/.cache/huggingface/datasets/downloads` How do you know the broken parts? Mine's consistently erroring and.. yeah, really this thing should be able to check the files (but where's that even done)... 2023-11-02 00:14:09.846055: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. /home/j/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py:299: FutureWarning: The `use_auth_token` argument is deprecated and will be removed in v4.34. Please use `token` instead. warnings.warn( 11/02/2023 00:14:37 - WARNING - __main__ - Process rank: 0, device: cuda:0, n_gpu: 1, distributed training: False, 16-bits training: True 11/02/2023 00:14:37 - INFO - __main__ - Training/evaluation parameters Seq2SeqTrainingArguments( _n_gpu=1, adafactor=False, adam_beta1=0.9, adam_beta2=0.999, ... logging_dir=./whisper-tiny-en/runs/Nov02_00-14-28_jsys, ... run_name=./whisper-tiny-en, ... weight_decay=0.0, ) 11/02/2023 00:14:37 - INFO - __main__ - Training/evaluation parameters Seq2SeqTrainingArguments( _n_gpu=1, adafactor=False, ... logging_dir=./whisper-tiny-en/runs/Nov02_00-14-28_jsys, ... weight_decay=0.0, ) Downloading data files: 0%| | 0/5 [00:00<?, ?it/s] Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 2426.42it/s] Extracting data files: 0%| | 0/5 [00:00<?, ?it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 421.16it/s] Downloading data files: 0%| | 0/5 [00:00<?, ?it/s] Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 18707.87it/s] Extracting data files: 0%| | 0/5 [00:00<?, ?it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 3754.97it/s] Generating train split: 0 examples [00:00, ? examples/s] Reading metadata...: 0it [00:00, ?it/s] ... Reading metadata...: 948736it [00:23, 40632.92it/s] Generating train split: 1 examples [00:23, 23.37s/ examples] ... Generating train split: 948736 examples [08:28, 1866.15 examples/s] Generating validation split: 0 examples [00:00, ? examples/s] Reading metadata...: 0it [00:00, ?it/s] Reading metadata...: 16089it [00:00, 157411.88it/s] Reading metadata...: 16354it [00:00, 158233.27it/s] Generating validation split: 1 examples [00:00, 7.60 examples/s] Generating validation split: 16354 examples [00:14, 1154.77 examples/s] Generating test split: 0 examples [00:00, ? examples/s] Reading metadata...: 0it [00:00, ?it/s] Reading metadata...: 16354it [00:00, 194855.03it/s] Generating test split: 1 examples [00:00, 4.53 examples/s] Generating test split: 16354 examples [00:07, 2105.43 examples/s] Generating other split: 0 examples [00:00, ? examples/s] Reading metadata...: 0it [00:00, ?it/s] Reading metadata...: 290846it [00:01, 235823.90it/s] Generating other split: 1 examples [00:01, 1.27s/ examples] ... Generating other split: 290846 examples [02:12, 2196.96 examples/s] Generating invalidated split: 0 examples [00:00, ? examples/s] Reading metadata...: 252599it [00:01, 241965.85it/s] Generating invalidated split: 1 examples [00:01, 1.08s/ examples] ... Generating invalidated split: 60130 examples [00:34, 1764.14 examples/s] Traceback (most recent call last): File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 1676, in _prepare_split_single for key, record in generator: File "/home/j/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_11_0/3f27acf10f303eac5b6fbbbe02495aeddb46ecffdb0a2fe3507fcfbf89094631/common_voice_11_0.py", line 195, in _generate_examples result["audio"] = {"path": path, "bytes": file.read()} ^^^^^^^^^^^ File "/usr/lib/python3.11/tarfile.py", line 687, in read raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/j/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 625, in <module> main() File "/home/j/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 360, in main raw_datasets["train"] = load_dataset( ^^^^^^^^^^^^^ File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/load.py", line 2153, in load_dataset builder_instance.download_and_prepare( File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 954, in download_and_prepare self._download_and_prepare( File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 1717, in _download_and_prepare super()._download_and_prepare( File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 1049, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 1555, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/j/venvs/pycur/lib/python3.11/site-packages/datasets/builder.py", line 1712, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
@jaggzh Hi, I actually came around with a fix for this, wasn't that easy to solve since there were a lot of hidden pitfalls in the code, and it's quite hacky, but I was able to download the full dataset. I just didn't create a PR for it yet since I was too lazy to create a fork and change my local repo's origin. πŸ˜… Let me try to do this tonight, I'll give you a ping once it's up. EDIT: And no, what I wrote above about adding a param to the download config does NOT solve it apparently. A code fix is required here.
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
106
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 @jaggzh Hi, I actually came around with a fix for this, wasn't that easy to solve since there were a lot of hidden pitfalls in the code, and it's quite hacky, but I was able to download the full dataset. I just didn't create a PR for it yet since I was too lazy to create a fork and change my local repo's origin. πŸ˜… Let me try to do this tonight, I'll give you a ping once it's up. EDIT: And no, what I wrote above about adding a param to the download config does NOT solve it apparently. A code fix is required here.
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
@mariosasko Can you re-open this? We really need some better diagnostics output, at the least, to locate which files are contributing, some checksum output, etc. I can't even tell if this is a mozilla...py issue or huggingface datasets or ....
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
40
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 @mariosasko Can you re-open this? We really need some better diagnostics output, at the least, to locate which files are contributing, some checksum output, etc. I can't even tell if this is a mozilla...py issue or huggingface datasets or ....
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
@RuntimeRacer Beautiful, thank you so much. I patched with your PR and am re-running now. (I'm running this script: https://github.com/huggingface/transformers/blob/main/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py) Okay, actually it failed; so now I'm running with verification_mode='all_checks' added to the load_data() call and it's re-running now. Wish me luck. (Note: It's generating checksums; I don't see an option that handles anything between basic_checks and all_checks -- Something checking dl'ed files' lengths would be a good common fix I'd think; corruption is more rare nowadays than a short file (although maybe your patch helps prevent that in the first place.) :}
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
93
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 @RuntimeRacer Beautiful, thank you so much. I patched with your PR and am re-running now. (I'm running this script: https://github.com/huggingface/transformers/blob/main/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py) Okay, actually it failed; so now I'm running with verification_mode='all_checks' added to the load_data() call and it's re-running now. Wish me luck. (Note: It's generating checksums; I don't see an option that handles anything between basic_checks and all_checks -- Something checking dl'ed files' lengths would be a good common fix I'd think; corruption is more rare nowadays than a short file (although maybe your patch helps prevent that in the first place.) :}
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
@RuntimeRacer No luck. Sigh. [Edit: My tmux copy didn't get some data. That was weird. I'm adding in the initial part of the output:] ``` Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 2190.69it/s] Computing checksums: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 41/41 [11:39<00:00, 17.05s/it] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 12.37it/s] Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 107.64it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 3149.82it/s] Reading metadata...: 948736it [00:03, 243227.36it/s]s/s] ... ``` ``` ... Reading metadata...: 252599it [00:01, 249267.71it/s]xamples/s] Generating invalidated split: 60130 examples [00:31, 1916.33 examples/s] Traceback (most recent call last): File "/home/j/src/py/datasets/src/datasets/builder.py", line 1676, in _prepare_split_single for key, record in generator: File "/home/j/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_11_0/3f27acf10f303eac5b6fbbbe02495aeddb46ecffdb0a2fe3507fcfbf89094631/common_voice_11_0.py", line 195, in _generate_examples result["audio"] = {"path": path, "bytes": file.read()} ^^^^^^^^^^^ File "/usr/lib/python3.11/tarfile.py", line 687, in read raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/j/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 627, in <module> main() File "/home/j/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 360, in main raw_datasets["train"] = load_dataset( ^^^^^^^^^^^^^ File "/home/j/src/py/datasets/src/datasets/load.py", line 2153, in load_dataset builder_instance.download_and_prepare( File "/home/j/src/py/datasets/src/datasets/builder.py", line 954, in download_and_prepare self._download_and_prepare( File "/home/j/src/py/datasets/src/datasets/builder.py", line 1717, in _download_and_prepare super()._download_and_prepare( File "/home/j/src/py/datasets/src/datasets/builder.py", line 1049, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/j/src/py/datasets/src/datasets/builder.py", line 1555, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/j/src/py/datasets/src/datasets/builder.py", line 1712 ```
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
205
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 @RuntimeRacer No luck. Sigh. [Edit: My tmux copy didn't get some data. That was weird. I'm adding in the initial part of the output:] ``` Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 2190.69it/s] Computing checksums: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 41/41 [11:39<00:00, 17.05s/it] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 12.37it/s] Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 107.64it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 3149.82it/s] Reading metadata...: 948736it [00:03, 243227.36it/s]s/s] ... ``` ``` ... Reading metadata...: 252599it [00:01, 249267.71it/s]xamples/s] Generating invalidated split: 60130 examples [00:31, 1916.33 examples/s] Traceback (most recent call last): File "/home/j/src/py/datasets/src/datasets/builder.py", line 1676, in _prepare_split_single for key, record in generator: File "/home/j/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_11_0/3f27acf10f303eac5b6fbbbe02495aeddb46ecffdb0a2fe3507fcfbf89094631/common_voice_11_0.py", line 195, in _generate_examples result["audio"] = {"path": path, "bytes": file.read()} ^^^^^^^^^^^ File "/usr/lib/python3.11/tarfile.py", line 687, in read raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/j/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 627, in <module> main() File "/home/j/src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py", line 360, in main raw_datasets["train"] = load_dataset( ^^^^^^^^^^^^^ File "/home/j/src/py/datasets/src/datasets/load.py", line 2153, in load_dataset builder_instance.download_and_prepare( File "/home/j/src/py/datasets/src/datasets/builder.py", line 954, in download_and_prepare self._download_and_prepare( File "/home/j/src/py/datasets/src/datasets/builder.py", line 1717, in _download_and_prepare super()._download_and_prepare( File "/home/j/src/py/datasets/src/datasets/builder.py", line 1049, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/j/src/py/datasets/src/datasets/builder.py", line 1555, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/j/src/py/datasets/src/datasets/builder.py", line 1712 ```
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
I'm unable to reproduce this error. Based on https://github.com/psf/requests/issues/4956, newer releases of `urllib3` check the returned content length by default, so perhaps updating `requests` and `urllib3` to the latest versions (`pip install -U requests urllib3`) and loading the dataset with `datasets.load_dataset("xtreme", "udpos.English", download_config=datasets.DownloadConfig(resume_download=True))` (re-run when it fails to resume the download) can fix the issue.
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
55
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 I'm unable to reproduce this error. Based on https://github.com/psf/requests/issues/4956, newer releases of `urllib3` check the returned content length by default, so perhaps updating `requests` and `urllib3` to the latest versions (`pip install -U requests urllib3`) and loading the dataset with `datasets.load_dataset("xtreme", "udpos.English", download_config=datasets.DownloadConfig(resume_download=True))` (re-run when it fails to resume the download) can fix the issue.
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
@jaggzh I think you will need to re-download the whole dataset with my patched code. Files which have already been downloaded and marked as complete by the broken downloader won't be detected even on re-run (I described that in the PR). I also had to download reazonspeech, which is over 1TB, twice. πŸ™ˆ For re-download, you need to manually delete the dataset files from your local machine's huggingface download cache. @mariosasko Not sure how you tested it, but it's not an issue in `requests` or `urllib`. The problem is the huggingface downloader, which generates a nested download thread for the actual download I think. The issue I had with the reazonspeech dataset (https://huggingface.co/datasets/reazon-research/reazonspeech/tree/main) basically was, that it started downloading a part, but sometimes the connection would 'starve' and only continue with a few kilobytes, and eventually stop receiving any data at all. Sometimes it would even recover during the download and finish properly. However, if it did not recover, the request would hit the really generous default timeout (which is 100 seconds I think), however the exception thrown by the failure inside `urllib`, isn't captured or handled by the upper level downloader code of the `datasets` library. `datasets` even has a retry mechanism, which would continue interrupted downloads if they have the `.incomplete` suffix, which isn't cleared if, for example, a manual `CTRL+C` is sent by the user to the python process. But: If it runs into that edge case I described above (TL;DR: connection starves after minutes + timeout exception which isn't captured), the cache downloader will consider the download as successful and remove the `.incomplete` suffix nevertheless, leaving the archive file in a corrupted state. Honestly, I spent hours on trying to figure out what was even going on and why the retry mechanics of the cache downloader didn't work at all. But it is indeed an issue caused by the download process itself not receiving any info about actual content size and filesize size on disk of the archive to be downloaded, thus, having no direct control in case something fails on the request level. IMHO, this requires a major refactor of the way this part of the downloader works. Yet I was able to quick-fix it by adding some synthetic Exception handling and explicit retry-handling in the code, als done in my PR.
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
387
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 @jaggzh I think you will need to re-download the whole dataset with my patched code. Files which have already been downloaded and marked as complete by the broken downloader won't be detected even on re-run (I described that in the PR). I also had to download reazonspeech, which is over 1TB, twice. πŸ™ˆ For re-download, you need to manually delete the dataset files from your local machine's huggingface download cache. @mariosasko Not sure how you tested it, but it's not an issue in `requests` or `urllib`. The problem is the huggingface downloader, which generates a nested download thread for the actual download I think. The issue I had with the reazonspeech dataset (https://huggingface.co/datasets/reazon-research/reazonspeech/tree/main) basically was, that it started downloading a part, but sometimes the connection would 'starve' and only continue with a few kilobytes, and eventually stop receiving any data at all. Sometimes it would even recover during the download and finish properly. However, if it did not recover, the request would hit the really generous default timeout (which is 100 seconds I think), however the exception thrown by the failure inside `urllib`, isn't captured or handled by the upper level downloader code of the `datasets` library. `datasets` even has a retry mechanism, which would continue interrupted downloads if they have the `.incomplete` suffix, which isn't cleared if, for example, a manual `CTRL+C` is sent by the user to the python process. But: If it runs into that edge case I described above (TL;DR: connection starves after minutes + timeout exception which isn't captured), the cache downloader will consider the download as successful and remove the `.incomplete` suffix nevertheless, leaving the archive file in a corrupted state. Honestly, I spent hours on trying to figure out what was even going on and why the retry mechanics of the cache downloader didn't work at all. But it is indeed an issue caused by the download process itself not receiving any info about actual content size and filesize size on disk of the archive to be downloaded, thus, having no direct control in case something fails on the request level. IMHO, this requires a major refactor of the way this part of the downloader works. Yet I was able to quick-fix it by adding some synthetic Exception handling and explicit retry-handling in the code, als done in my PR.
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
@RuntimeRacer Ugh. It took a day. I'm seeing if I can get some debug code in here to examine the files myself. (I'm not sure why checksum tests would fail, so, yeah, I think you're right -- this stuff needs some work. Going through ipdb right now to try to get some idea of what's going on in the code).
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
60
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 @RuntimeRacer Ugh. It took a day. I'm seeing if I can get some debug code in here to examine the files myself. (I'm not sure why checksum tests would fail, so, yeah, I think you're right -- this stuff needs some work. Going through ipdb right now to try to get some idea of what's going on in the code).
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
@RuntimeRacer Data can only be appended to the `.incomplete` files if `load_dataset` is called with `download_config=DownloadConfig(resume_download=True)`. Where exactly does this exception happen (in the code)? The error stack trace would help a lot.
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
33
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 @RuntimeRacer Data can only be appended to the `.incomplete` files if `load_dataset` is called with `download_config=DownloadConfig(resume_download=True)`. Where exactly does this exception happen (in the code)? The error stack trace would help a lot.
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
@mariosasko I do not have a trace of this exception nor do I know which type it is. I am honestly not even sure if an exception is thrown, or the process just aborts without error. > @RuntimeRacer Data can only be appended to the .incomplete files if load_dataset is called with download_config=DownloadConfig(resume_download=True). Well, I think I did a very clear explaination of the issue in the PR I shared, and the description above, but maybe I wasn't precise enough. Let me try to explain once more: What you mention here is the "normal" case, if the process is aborted. In this case, there will be files with `.incomplete` suffix, which the cache downloader can continue to download. That is correct. BUT: What I am talking about all the time is an edge case: if the download step crashes / timeouts internally, the cache downloader will NOT be aware of this, and REMOVES the `.incomplete` suffix. It does NOT know that the file is incomplete when the `http_get` function returns and will remove the `.incomplete` suffix in any case once `http_get` returns. But the problem is that `http_get` returns without failure, even if the download failed. And this is still a problem even with latest `urllib` and `requests` library.
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
209
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 @mariosasko I do not have a trace of this exception nor do I know which type it is. I am honestly not even sure if an exception is thrown, or the process just aborts without error. > @RuntimeRacer Data can only be appended to the .incomplete files if load_dataset is called with download_config=DownloadConfig(resume_download=True). Well, I think I did a very clear explaination of the issue in the PR I shared, and the description above, but maybe I wasn't precise enough. Let me try to explain once more: What you mention here is the "normal" case, if the process is aborted. In this case, there will be files with `.incomplete` suffix, which the cache downloader can continue to download. That is correct. BUT: What I am talking about all the time is an edge case: if the download step crashes / timeouts internally, the cache downloader will NOT be aware of this, and REMOVES the `.incomplete` suffix. It does NOT know that the file is incomplete when the `http_get` function returns and will remove the `.incomplete` suffix in any case once `http_get` returns. But the problem is that `http_get` returns without failure, even if the download failed. And this is still a problem even with latest `urllib` and `requests` library.
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
@RuntimeRacer Updating `urllib3` and `requests` to the latest versions fixes the issue explained in this [blog](https://blog.petrzemek.net/2018/04/22/on-incomplete-http-reads-and-the-requests-library-in-python/) post. However, the issue explained above seems more similar to [this](https://stackoverflow.com/questions/52731196/python-3-6-5-requests-with-streaming-getting-stuck-in-iter-content-even-if-chun) one. To address it, we can reduce the default timeout to 10 seconds (btw, this was the initial value, but it was causing problems for some users) and expose a config variable so that users can easily control it. Additionally, we can re-run `http_get` similarly to https://github.com/huggingface/huggingface_hub/pull/1766 when the connection/timeout error happens to make the logic even more robust. Would this work for you? The last part is what you did in the PR, right? @jaggzh From all the datasets mentioned in this issue, `xtreme` is the only one that stores the data file checksums in the metadata. So, the checksum check has no effect when enabled for the rest of the datasets.
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
140
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 @RuntimeRacer Updating `urllib3` and `requests` to the latest versions fixes the issue explained in this [blog](https://blog.petrzemek.net/2018/04/22/on-incomplete-http-reads-and-the-requests-library-in-python/) post. However, the issue explained above seems more similar to [this](https://stackoverflow.com/questions/52731196/python-3-6-5-requests-with-streaming-getting-stuck-in-iter-content-even-if-chun) one. To address it, we can reduce the default timeout to 10 seconds (btw, this was the initial value, but it was causing problems for some users) and expose a config variable so that users can easily control it. Additionally, we can re-run `http_get` similarly to https://github.com/huggingface/huggingface_hub/pull/1766 when the connection/timeout error happens to make the logic even more robust. Would this work for you? The last part is what you did in the PR, right? @jaggzh From all the datasets mentioned in this issue, `xtreme` is the only one that stores the data file checksums in the metadata. So, the checksum check has no effect when enabled for the rest of the datasets.
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
(I don't have any .incomplete files, just the extraction errors.) I was going through the code to try to relate filenames to the hex/hash files, but realized I might not need to. So instead I coded up a script in bash to examine the tar files for validity (had an issue with bash subshells not adding to my array so I had cgpt recode it in perl). ```perl #!/usr/bin/perl use strict; use warnings; # Initialize the array to store tar files my @tars; # Open the current directory opendir(my $dh, '.') or die "Cannot open directory: $!"; # Read files in the current directory while (my $f = readdir($dh)) { # Skip files ending with lock, json, or py next if $f =~ /\.(lock|json|py)$/; # Use the `file` command to determine the type of file my $ft = `file "$f"`; # If it's a tar archive, add it to the list if ($ft =~ /tar archive/) { push @tars, $f; } } closedir($dh); print "Final Tars count: " . scalar(@tars) . "\n"; # Iterate over the tar files and check them foreach my $i (0 .. $#tars) { my $f = $tars[$i]; printf '%d/%d ', $i+1, scalar(@tars); # Use `ls -lgG` to list the files, similar to the original bash script system("ls -lgG '$f'"); # Check the integrity of the tar file my $errfn = "/tmp/$f.tarerr"; if (system("tar tf '$f' > /dev/null 2> '$errfn'") != 0) { print " BAD $f\n"; print " ERR: "; system("cat '$errfn'"); } # Remove the error file if it exists unlink $errfn if -e $errfn; } ``` This found one hash file that errored in the tar extraction, and one small tmp* file that also was supposedly a tar and was erroring. I removed those two and re-data loaded.. it grabbed just what it needed and I'm on my way. Yay! So... is there a way for the datasets api to get file sizes? That would be a very easy and fast test, leaving checksum slowdowns for extra-messed-up situations.
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
335
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 (I don't have any .incomplete files, just the extraction errors.) I was going through the code to try to relate filenames to the hex/hash files, but realized I might not need to. So instead I coded up a script in bash to examine the tar files for validity (had an issue with bash subshells not adding to my array so I had cgpt recode it in perl). ```perl #!/usr/bin/perl use strict; use warnings; # Initialize the array to store tar files my @tars; # Open the current directory opendir(my $dh, '.') or die "Cannot open directory: $!"; # Read files in the current directory while (my $f = readdir($dh)) { # Skip files ending with lock, json, or py next if $f =~ /\.(lock|json|py)$/; # Use the `file` command to determine the type of file my $ft = `file "$f"`; # If it's a tar archive, add it to the list if ($ft =~ /tar archive/) { push @tars, $f; } } closedir($dh); print "Final Tars count: " . scalar(@tars) . "\n"; # Iterate over the tar files and check them foreach my $i (0 .. $#tars) { my $f = $tars[$i]; printf '%d/%d ', $i+1, scalar(@tars); # Use `ls -lgG` to list the files, similar to the original bash script system("ls -lgG '$f'"); # Check the integrity of the tar file my $errfn = "/tmp/$f.tarerr"; if (system("tar tf '$f' > /dev/null 2> '$errfn'") != 0) { print " BAD $f\n"; print " ERR: "; system("cat '$errfn'"); } # Remove the error file if it exists unlink $errfn if -e $errfn; } ``` This found one hash file that errored in the tar extraction, and one small tmp* file that also was supposedly a tar and was erroring. I removed those two and re-data loaded.. it grabbed just what it needed and I'm on my way. Yay! So... is there a way for the datasets api to get file sizes? That would be a very easy and fast test, leaving checksum slowdowns for extra-messed-up situations.
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
> @RuntimeRacer Updating `urllib3` and `requests` to the latest versions fixes the issue explained in this [blog](https://blog.petrzemek.net/2018/04/22/on-incomplete-http-reads-and-the-requests-library-in-python/) post. > > However, the issue explained above seems more similar to [this](https://stackoverflow.com/questions/52731196/python-3-6-5-requests-with-streaming-getting-stuck-in-iter-content-even-if-chun) one. To address it, we can reduce the default timeout to 10 seconds (btw, this was the initial value, but it was causing problems for some users) and expose a config variable so that users can easily control it. Additionally, we can re-run `http_get` similarly to [huggingface/huggingface_hub#1766](https://github.com/huggingface/huggingface_hub/pull/1766) when the connection/timeout error happens to make the logic even more robust. Would this work for you? The last part is what you did in the PR, right? > > @jaggzh From all the datasets mentioned in this issue, `xtreme` is the only one that stores the data file checksums in the metadata. So, the checksum check has no effect when enabled for the rest of the datasets. @mariosasko Well if you look at my commit date, you will see that I run into this problem still in October. The blog post you mention and the update in the pull request for `urllib` was from July: https://github.com/psf/requests/issues/4956#issuecomment-1648632935 But yeah the [issue on StackOverflow](https://stackoverflow.com/questions/52731196/python-3-6-5-requests-with-streaming-getting-stuck-in-iter-content-even-if-chun) you mentioned seems like that's the source issue I was running into there. I experimented with timeouts, but changing them didn't help to resolve the issue of the starving connection unfortunately. However, https://github.com/huggingface/huggingface_hub/pull/1766 seems like that could be working; it's very similar to my change. So yeah I think this would fix it probably. Also I can confirm the checksum option did not work for [reazonspeech](https://huggingface.co/datasets/reazon-research/reazonspeech/tree/main) as well. So maybe it's a double edge case that only occurs for some datasets. πŸ€·β€β™‚οΈ
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
272
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 > @RuntimeRacer Updating `urllib3` and `requests` to the latest versions fixes the issue explained in this [blog](https://blog.petrzemek.net/2018/04/22/on-incomplete-http-reads-and-the-requests-library-in-python/) post. > > However, the issue explained above seems more similar to [this](https://stackoverflow.com/questions/52731196/python-3-6-5-requests-with-streaming-getting-stuck-in-iter-content-even-if-chun) one. To address it, we can reduce the default timeout to 10 seconds (btw, this was the initial value, but it was causing problems for some users) and expose a config variable so that users can easily control it. Additionally, we can re-run `http_get` similarly to [huggingface/huggingface_hub#1766](https://github.com/huggingface/huggingface_hub/pull/1766) when the connection/timeout error happens to make the logic even more robust. Would this work for you? The last part is what you did in the PR, right? > > @jaggzh From all the datasets mentioned in this issue, `xtreme` is the only one that stores the data file checksums in the metadata. So, the checksum check has no effect when enabled for the rest of the datasets. @mariosasko Well if you look at my commit date, you will see that I run into this problem still in October. The blog post you mention and the update in the pull request for `urllib` was from July: https://github.com/psf/requests/issues/4956#issuecomment-1648632935 But yeah the [issue on StackOverflow](https://stackoverflow.com/questions/52731196/python-3-6-5-requests-with-streaming-getting-stuck-in-iter-content-even-if-chun) you mentioned seems like that's the source issue I was running into there. I experimented with timeouts, but changing them didn't help to resolve the issue of the starving connection unfortunately. However, https://github.com/huggingface/huggingface_hub/pull/1766 seems like that could be working; it's very similar to my change. So yeah I think this would fix it probably. Also I can confirm the checksum option did not work for [reazonspeech](https://huggingface.co/datasets/reazon-research/reazonspeech/tree/main) as well. So maybe it's a double edge case that only occurs for some datasets. πŸ€·β€β™‚οΈ
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5594
Also, the hf urls to files -- while I can't see a way of getting a listing from the hf site side -- do include the file size in the http header response. So we do have a quick way of just verifying lengths for resume. (This message may not be interesting to you all). First, a json clip (mozilla-foundation___common_voice_11_0/en/11.0.0/3f27acf10f303eac5b6fbbbe02495aeddb46ecffdb0a2fe3507fcfbf89094631/dataset_info.json): * I don't know how specific this .json is to mozilla common voice * Note that *dataset_size* is not the dataset size :) DatasetInfo class docs indicate it might be their "combined size in bytes of the Arrow tables for all splits." * *num_bytes*: does match the individual file size though, and matches the http header (further down) ``` { "builder_name" : "common_voice_11_0", ... "config_name" : "en", "dataset_name" : "common_voice_11_0", "dataset_size" : 1680793952, ... "download_checksums" : { ... "https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0/resolve/main/audio/en/invalidated/en_invalidated_3.tar" : { "checksum" : null, "num_bytes" : 2110853120 }, ... ``` ```bash ~/.cache/huggingface/datasets/downloads$ ls -lgG b45f82cb87bab2c35361857fcd46042ab658b42c37dc9a455248c2866c9b8f40* | cut -c 14- ``` ``` 2110853120 Nov 1 16:28 b45f82cb87bab2c35361857fcd46042ab658b42c37dc9a455248c2866c9b8f40 148 Nov 1 16:28 b45f82cb87bab2c35361857fcd46042ab658b42c37dc9a455248c2866c9b8f40.json 0 Nov 1 16:07 b45f82cb87bab2c35361857fcd46042ab658b42c37dc9a455248c2866c9b8f40.lock ``` * Note the -L to follow redirects. Two headers are below: ```bash $ curl -I -L https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0/resolve/main/audio/en/invalidated/en_invalidated_3.tar ``` ``` HTTP/2 302 content-type: text/plain; charset=utf-8 content-length: 1215 location: https://cdn-lfs.huggingface.co/repos/00/ce/00ce867b4ae70bd23a10b60c32a8626d87b2666fc088ad03f86b94788faff554/984086fc250badece2992e8be4d7c4430f7c1208fb8bf37dc7c4aecdc803b220?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27en_invalidated_3.tar%3B+filename%3D%22en_invalidated_3.tar%22%3B&response-content-type=application%2Fx-tar&Expires=1699389040&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY5OTM4OTA0MH19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy5odWdnaW5nZmFjZS5jby9yZXBvcy8wMC9jZS8wMGNlODY3YjRhZTcwYmQyM2ExMGI2MGMzMmE4NjI2ZDg3YjI2NjZmYzA4OGFkMDNmODZiOTQ3ODhmYWZmNTU0Lzk4NDA4NmZjMjUwYmFkZWNlMjk5MmU4YmU0ZDdjNDQzMGY3YzEyMDhmYjhiZjM3ZGM3YzRhZWNkYzgwM2IyMjA%7EcmVzcG9uc2UtY29udGVudC1kaXNwb3NpdGlvbj0qJnJlc3BvbnNlLWNvbnRlbnQtdHlwZT0qIn1dfQ__&Signature=WYc32e75PqbKSAv3KTpG86ooFT6oOyDDQpCt1i2B8gVS10J3qvpZlDmxaBgnGlCCl7SRiAvhIQctgwooNtWbUeDqK3T4bAo0-OOrGCuVi-%7EKWUBcoHce7nHWpl%7Ex9ubHS%7EFoYcGB2SCEqh5fIgGjNV-VKRX6TSXkRto5bclQq4VCJKHufDsJ114A1V4Qu%7EYiRIWKG4Gi93Xv4OFhyWY0uqykvP5c0x02F%7ELX0m3WbW-eXBk6Fw2xnV1XLrEkdR-9Ax2vHqMYIIw6yV0wWEc1hxE393P9mMG1TNDj%7EXDuCoOaA7LbrwBCxai%7Ew2MopdPamTXyOia5-FnSqEdsV29v4Q__&Key-Pair-Id=KVTP0A1DKRTAX date: Sat, 04 Nov 2023 20:30:40 GMT x-powered-by: huggingface-moon x-request-id: Root=1-6546a9f0-5e7f729d09bdb38e35649a7e access-control-allow-origin: https://huggingface.co vary: Origin, Accept access-control-expose-headers: X-Repo-Commit,X-Request-Id,X-Error-Code,X-Error-Message,ETag,Link,Accept-Ranges,Content-Range x-repo-commit: 23b4059922516c140711b91831aa3393a22e9b80 accept-ranges: bytes x-linked-size: 2110853120 x-linked-etag: "984086fc250badece2992e8be4d7c4430f7c1208fb8bf37dc7c4aecdc803b220" x-cache: Miss from cloudfront via: 1.1 f31a6426ebd75ce4393909b12f5cbdcc.cloudfront.net (CloudFront) x-amz-cf-pop: LAX53-P4 x-amz-cf-id: BcYMFcHVcxPome2IjAvx0ZU90G41QlNI_HEHDGDqCQaEPvrOsnsGXw== HTTP/2 200 content-type: application/x-tar content-length: 2110853120 date: Sat, 04 Nov 2023 20:19:35 GMT last-modified: Fri, 18 Nov 2022 15:08:22 GMT etag: "acac28988e2f7e73b68e865179fbd008" x-amz-storage-class: INTELLIGENT_TIERING x-amz-version-id: LgTuOcd9FGN4JnAXp26O.1v2VW42GPtF content-disposition: attachment; filename*=UTF-8''en_invalidated_3.tar; filename="en_invalidated_3.tar"; accept-ranges: bytes server: AmazonS3 x-cache: Hit from cloudfront via: 1.1 d07c8167eda81d307ca96358727f505e.cloudfront.net (CloudFront) x-amz-cf-pop: LAX50-P5 x-amz-cf-id: 6oNZg_V8U1M_JXsMHQAPuRmDfxbY2BnMUWcVH0nz3VnfEZCzF5lgkQ== age: 666 cache-control: public, max-age=604800, immutable, s-maxage=604800 vary: Origin ```
Error while downloading the xtreme udpos dataset
### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2
299
Error while downloading the xtreme udpos dataset ### Describe the bug Hi, I am facing an error while downloading the xtreme udpos dataset using load_dataset. I have datasets 2.10.1 installed ```Downloading and preparing dataset xtreme/udpos.Arabic to /compute/tir-1-18/skhanuja/multilingual_ft/cache/data/xtreme/udpos.Arabic/1.0.0/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4... Downloading data: 16%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 56.9M/355M [03:11<16:43, 297kB/s] Generating train split: 0%| | 0/6075 [00:00<?, ? examples/s]Traceback (most recent call last): File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 732, in _generate_examples yield from UdposParser.generate_examples(config=self.config, filepath=filepath, **kwargs) File "/home/skhanuja/.cache/huggingface/modules/datasets_modules/datasets/xtreme/29f5d57a48779f37ccb75cb8708d1095448aad0713b425bdc1ff9a4a128a56e4/xtreme.py", line 921, in generate_examples for path, file in filepath: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 158, in __iter__ yield from self.generator(*self.args, **self.kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 211, in _iter_from_path yield from cls._iter_tar(f) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/download/download_manager.py", line 167, in _iter_tar for tarinfo in stream: File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2475, in __iter__ tarinfo = self.next() File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/tarfile.py", line 2344, in next raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 855, in <module> main() File "/home/skhanuja/Optimal-Resource-Allocation-for-Multilingual-Finetuning/src/train_al.py", line 487, in main train_dataset = load_dataset(dataset_name, source_language, split="train", cache_dir=args.cache_dir, download_mode="force_redownload") File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/load.py", line 1782, in load_dataset builder_instance.download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 872, in download_and_prepare self._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1649, in _download_and_prepare super()._download_and_prepare( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 967, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1488, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/skhanuja/miniconda3/envs/multilingual_ft/lib/python3.10/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug ``` train_dataset = load_dataset('xtreme', 'udpos.English', split="train", cache_dir=args.cache_dir, download_mode="force_redownload") ``` ### Expected behavior Download the udpos dataset ### Environment info - `datasets` version: 2.10.1 - Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.17 - Python version: 3.10.8 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 Also, the hf urls to files -- while I can't see a way of getting a listing from the hf site side -- do include the file size in the http header response. So we do have a quick way of just verifying lengths for resume. (This message may not be interesting to you all). First, a json clip (mozilla-foundation___common_voice_11_0/en/11.0.0/3f27acf10f303eac5b6fbbbe02495aeddb46ecffdb0a2fe3507fcfbf89094631/dataset_info.json): * I don't know how specific this .json is to mozilla common voice * Note that *dataset_size* is not the dataset size :) DatasetInfo class docs indicate it might be their "combined size in bytes of the Arrow tables for all splits." * *num_bytes*: does match the individual file size though, and matches the http header (further down) ``` { "builder_name" : "common_voice_11_0", ... "config_name" : "en", "dataset_name" : "common_voice_11_0", "dataset_size" : 1680793952, ... "download_checksums" : { ... "https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0/resolve/main/audio/en/invalidated/en_invalidated_3.tar" : { "checksum" : null, "num_bytes" : 2110853120 }, ... ``` ```bash ~/.cache/huggingface/datasets/downloads$ ls -lgG b45f82cb87bab2c35361857fcd46042ab658b42c37dc9a455248c2866c9b8f40* | cut -c 14- ``` ``` 2110853120 Nov 1 16:28 b45f82cb87bab2c35361857fcd46042ab658b42c37dc9a455248c2866c9b8f40 148 Nov 1 16:28 b45f82cb87bab2c35361857fcd46042ab658b42c37dc9a455248c2866c9b8f40.json 0 Nov 1 16:07 b45f82cb87bab2c35361857fcd46042ab658b42c37dc9a455248c2866c9b8f40.lock ``` * Note the -L to follow redirects. Two headers are below: ```bash $ curl -I -L https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0/resolve/main/audio/en/invalidated/en_invalidated_3.tar ``` ``` HTTP/2 302 content-type: text/plain; charset=utf-8 content-length: 1215 location: https://cdn-lfs.huggingface.co/repos/00/ce/00ce867b4ae70bd23a10b60c32a8626d87b2666fc088ad03f86b94788faff554/984086fc250badece2992e8be4d7c4430f7c1208fb8bf37dc7c4aecdc803b220?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27en_invalidated_3.tar%3B+filename%3D%22en_invalidated_3.tar%22%3B&response-content-type=application%2Fx-tar&Expires=1699389040&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY5OTM4OTA0MH19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy5odWdnaW5nZmFjZS5jby9yZXBvcy8wMC9jZS8wMGNlODY3YjRhZTcwYmQyM2ExMGI2MGMzMmE4NjI2ZDg3YjI2NjZmYzA4OGFkMDNmODZiOTQ3ODhmYWZmNTU0Lzk4NDA4NmZjMjUwYmFkZWNlMjk5MmU4YmU0ZDdjNDQzMGY3YzEyMDhmYjhiZjM3ZGM3YzRhZWNkYzgwM2IyMjA%7EcmVzcG9uc2UtY29udGVudC1kaXNwb3NpdGlvbj0qJnJlc3BvbnNlLWNvbnRlbnQtdHlwZT0qIn1dfQ__&Signature=WYc32e75PqbKSAv3KTpG86ooFT6oOyDDQpCt1i2B8gVS10J3qvpZlDmxaBgnGlCCl7SRiAvhIQctgwooNtWbUeDqK3T4bAo0-OOrGCuVi-%7EKWUBcoHce7nHWpl%7Ex9ubHS%7EFoYcGB2SCEqh5fIgGjNV-VKRX6TSXkRto5bclQq4VCJKHufDsJ114A1V4Qu%7EYiRIWKG4Gi93Xv4OFhyWY0uqykvP5c0x02F%7ELX0m3WbW-eXBk6Fw2xnV1XLrEkdR-9Ax2vHqMYIIw6yV0wWEc1hxE393P9mMG1TNDj%7EXDuCoOaA7LbrwBCxai%7Ew2MopdPamTXyOia5-FnSqEdsV29v4Q__&Key-Pair-Id=KVTP0A1DKRTAX date: Sat, 04 Nov 2023 20:30:40 GMT x-powered-by: huggingface-moon x-request-id: Root=1-6546a9f0-5e7f729d09bdb38e35649a7e access-control-allow-origin: https://huggingface.co vary: Origin, Accept access-control-expose-headers: X-Repo-Commit,X-Request-Id,X-Error-Code,X-Error-Message,ETag,Link,Accept-Ranges,Content-Range x-repo-commit: 23b4059922516c140711b91831aa3393a22e9b80 accept-ranges: bytes x-linked-size: 2110853120 x-linked-etag: "984086fc250badece2992e8be4d7c4430f7c1208fb8bf37dc7c4aecdc803b220" x-cache: Miss from cloudfront via: 1.1 f31a6426ebd75ce4393909b12f5cbdcc.cloudfront.net (CloudFront) x-amz-cf-pop: LAX53-P4 x-amz-cf-id: BcYMFcHVcxPome2IjAvx0ZU90G41QlNI_HEHDGDqCQaEPvrOsnsGXw== HTTP/2 200 content-type: application/x-tar content-length: 2110853120 date: Sat, 04 Nov 2023 20:19:35 GMT last-modified: Fri, 18 Nov 2022 15:08:22 GMT etag: "acac28988e2f7e73b68e865179fbd008" x-amz-storage-class: INTELLIGENT_TIERING x-amz-version-id: LgTuOcd9FGN4JnAXp26O.1v2VW42GPtF content-disposition: attachment; filename*=UTF-8''en_invalidated_3.tar; filename="en_invalidated_3.tar"; accept-ranges: bytes server: AmazonS3 x-cache: Hit from cloudfront via: 1.1 d07c8167eda81d307ca96358727f505e.cloudfront.net (CloudFront) x-amz-cf-pop: LAX50-P5 x-amz-cf-id: 6oNZg_V8U1M_JXsMHQAPuRmDfxbY2BnMUWcVH0nz3VnfEZCzF5lgkQ== age: 666 cache-control: public, max-age=604800, immutable, s-maxage=604800 vary: Origin ```
[ -0.37543702125549316, -0.09867465496063232, 0.012532472610473633, 0.3179014325141907, 0.5317246317863464, 0.03992219269275665, 0.22063346207141876, 0.37211236357688904, 0.0342191606760025, 0.2489229142665863, -0.12505026161670685, 0.12539634108543396, 0.07052761316299438, 0.17246073484420776, 0.10126752406358719, -0.5167547464370728, -0.02975039929151535, -0.006558794528245926, -0.2326633185148239, 0.11926794052124023, -0.3099040985107422, 0.15905435383319855, -0.14739859104156494, 0.13659505546092987, -0.48880067467689514, 0.009161055088043213, -0.07417093962430954, 0.09524831175804138, -0.16289669275283813, -0.4543391764163971, 0.5132324695587158, -0.08307893574237823, 0.4022181034088135, 0.2796757221221924, -0.00010645883594406769, 0.01638065278530121, 0.3317488729953766, -0.17735493183135986, -0.005885384976863861, -0.305919349193573, -0.3874658942222595, -0.08658773452043533, -0.24140262603759766, -0.304986834526062, 0.04630453139543533, 0.18430858850479126, -0.11339017748832703, -0.18878206610679626, 0.16751205921173096, 0.44868093729019165, 0.2653075158596039, 0.23455265164375305, 0.046442389488220215, -0.2780391275882721, 0.5183539986610413, -0.09922128915786743, -0.11764031648635864, -0.0014991629868745804, 0.18512959778308868, 0.03140053153038025, 0.0032247118651866913, 0.19606024026870728, 0.030298464000225067, 0.0012318100780248642, -0.2642521560192108, -0.035461921244859695, 0.40165194869041443, -0.23866060376167297, 0.17473118007183075, 0.1735221892595291, 0.5636227130889893, -0.20940163731575012, -0.20523914694786072, 0.05777963995933533, 0.06836290657520294, -0.3608752489089966, 0.4212229549884796, 0.08793240785598755, -0.1798992156982422, 0.07822203636169434, 0.07924764603376389, 0.1363389492034912, 0.031256526708602905, 0.07225329428911209, -0.07040206342935562, 0.18195219337940216, -0.05341271683573723, -0.041245441883802414, 0.07454393059015274, -0.1575849950313568, 0.4088737964630127, 0.18865200877189636, -0.03228238224983215, 0.22014233469963074, -0.5290957093238831, -0.09618356078863144, -0.21109357476234436, -0.4092179536819458, 0.22209936380386353, -0.053941760212183, 0.17502857744693756, -0.06934408843517303, -0.09590042382478714, 0.07688300311565399, 0.3258199095726013, 0.21952755749225616, 0.055653154850006104, 0.15682034194469452, 0.050997428596019745, 0.404572457075119, -0.02031324803829193, -0.08931179344654083, -0.16552093625068665, -0.3409518599510193, 0.054577842354774475, 0.23425745964050293, 0.24632880091667175, -0.23526683449745178, -0.4976176917552948, 0.15369898080825806, -0.14925384521484375, 0.11214970052242279, 0.12242844700813293, 0.058712877333164215, -0.0392133966088295, 0.49622616171836853, 0.04784771054983139, 0.2308502495288849, -0.38263216614723206, -0.49890685081481934, -0.1767035573720932, 0.28174638748168945, -0.37485963106155396, -0.046148061752319336, 0.12099570780992508, -0.06129484251141548, 0.2866414189338684, 0.015877991914749146, 0.026564426720142365, -0.2607768774032593, 0.21231050789356232, -0.2534151077270508, -0.2975389063358307, 0.30268487334251404, 0.23353524506092072, 0.06580696254968643, -0.14453524351119995, -0.051269710063934326, 0.07965420186519623, 0.2605544924736023, -0.3252715766429901, -0.44383174180984497, -0.08222643285989761, 0.2692103981971741, -0.03038187325000763, 0.2699626088142395, -0.42843058705329895, 0.010506425984203815, 0.3262779712677002, 0.21884377300739288, 0.08006910979747772, -0.21231907606124878, -0.3835684657096863, -0.06379789113998413, 0.24163445830345154, 0.2474866807460785, -0.191680908203125, 0.09444685280323029, -0.09668615460395813, -0.2510238289833069, 0.3414765000343323, 0.04391209036111832, -0.08924359083175659, 0.2172071635723114, -0.25526162981987, 0.274688184261322, 0.17828267812728882, -0.615161657333374, -0.3276979625225067, 0.13611827790737152, -0.10241556167602539, -0.039259374141693115, 0.13402383029460907, -0.21606193482875824, 0.3883717656135559, -0.10845686495304108, 0.1730736345052719, 0.22526657581329346, -0.22639787197113037, 0.01209694892168045, -0.4278057813644409, -0.16132864356040955, -0.07202820479869843, 0.356995165348053, 0.21528512239456177, 0.01931784488260746, 0.17834490537643433, 0.7268000245094299, 0.21495869755744934, 0.17208890616893768, 0.23460279405117035, 0.19601084291934967, -0.058078281581401825, -0.22446949779987335, -0.10537742078304291, -0.28372830152511597, -0.34122490882873535, 0.15784762799739838, -0.08029530942440033, 0.023373492062091827, 0.20250023901462555, -0.037808820605278015, -0.39841580390930176, -0.055644694715738297, -0.2643953263759613, -0.26123854517936707, 0.14602026343345642, -0.09542520344257355, 0.02576471120119095, 0.05896556377410889, 0.02491515874862671, 0.10252179205417633, -0.17143793404102325, 0.06299497932195663, -0.40000003576278687, 0.3046453893184662, -0.02124241180717945, -0.12815600633621216, 0.12798382341861725, 0.12609875202178955, 0.16630367934703827, -0.16164883971214294, -0.33680060505867004, 0.3439589738845825, 0.5054296851158142, -0.05671488866209984, 0.13718672096729279, -0.04817536473274231, 0.22518379986286163, -0.41969743371009827, -0.0468410961329937, 0.019073382019996643, 0.06881701201200485, -0.02871287614107132, 0.2013663947582245, 0.29825177788734436, -0.18732401728630066, -0.13419553637504578, -0.21986886858940125, 0.17405757308006287, 0.5461616516113281, -0.16386806964874268, 0.12464774399995804, -0.28863388299942017, 0.32754677534103394, 0.2964130640029907, 0.1115325391292572, -0.10818805545568466, -0.14048266410827637, -0.07827964425086975, 0.08105726540088654, -0.04604325443506241, -0.14750701189041138, 0.0876719206571579, 0.09578633308410645, 0.009436137974262238, 0.05172475427389145, 0.4743339419364929, 0.4488295316696167, -0.0241260826587677, 0.16710849106311798, 0.1812732070684433, 0.11736008524894714, -0.087887704372406, 0.07153152674436569, 0.0364542119204998, -0.010831974446773529, 0.17332243919372559, -0.08699998259544373, 0.01987697184085846, -0.19111701846122742, 0.028521299362182617, 0.1716674566268921, 0.47465071082115173, -0.19510939717292786, -0.19939573109149933, -0.19975914061069489, -0.14346446096897125, -0.0538518950343132, 0.020451027899980545, -0.04676121473312378, -0.24697226285934448, -0.07099190354347229, 0.16736172139644623, 0.030501581728458405, 0.3251059055328369, -0.2213791012763977, -0.0015424937009811401, 0.20146098732948303, 0.2866120934486389, -0.06869063526391983, 0.04459955915808678, -0.1800186187028885, 0.07788114994764328, 0.19672845304012299, 0.24168479442596436, 0.19310379028320312, -0.31868767738342285, 0.1430538296699524, -0.23691987991333008, -0.04307454824447632, 0.1791525036096573, -0.02349117584526539, 0.08436984568834305, 0.3582507073879242, 0.02274227701127529, -0.12316091358661652, -0.025414464995265007, 0.3294261693954468, -0.08642373979091644, -0.17567187547683716, 0.16573001444339752, 0.1082594245672226, 0.012863818556070328, -0.10455001890659332, -0.24241642653942108, -0.16305509209632874, -0.375873327255249, -0.2674465477466583, -0.02189067006111145, 0.20390188694000244, -0.18723903596401215, -0.008615419268608093, 0.15576651692390442, 0.1536245495080948, -0.3954034447669983, -0.32763633131980896, -0.8885762095451355, 0.34258368611335754, -0.4550037086009979, -0.3654286563396454, 0.25077980756759644, -0.03659273684024811, 0.5077300071716309, 0.1756737232208252, -0.40739065408706665, 0.09103567898273468, -0.0748726949095726, 0.1627631038427353, -0.1568220555782318, 0.021410344168543816, 0.08133935928344727, -0.08545371890068054, -0.05658198520541191, -0.2181195765733719, 0.09805718064308167, 0.07631080597639084, -0.024040840566158295, 0.36165162920951843, -0.12624233961105347, 0.31044939160346985, 0.17686161398887634, 0.19789151847362518, 0.1577690839767456, 0.020241867750883102, 0.4961451590061188, 0.03184685856103897, -0.031966377049684525, -0.11243854463100433, -0.22006478905677795, -0.04686485975980759, -0.14148719608783722, 0.17211878299713135, -0.039297010749578476, -0.023186391219496727, 0.1505485624074936, -0.3218083083629608, 0.03439781814813614, -0.005778387188911438, -0.25126659870147705, -0.0666373074054718, -0.5359830856323242, 0.2361748218536377, -0.09245314449071884, 0.15493321418762207, -0.07997044920921326, 0.061805255711078644, 0.031735267490148544, 0.282736599445343, -0.14573153853416443, 0.14810538291931152, -0.15273036062717438, 0.4128536581993103, -0.4418720602989197, 0.1623208373785019, 0.2081604152917862, 0.5526971220970154, -0.04265378788113594, 0.23753131926059723, 0.12460131198167801, 0.008176129311323166, 0.512183666229248, -0.3589029610157013, 0.17704904079437256, 0.13070198893547058, -0.24924896657466888, 0.16655504703521729, -0.15190698206424713, -0.07858537882566452, -0.178233802318573, 0.2132459133863449, 0.2230394333600998, -0.2553456425666809, -0.037069473415613174, 0.1423589438199997, -0.016876107081770897, -0.11265560984611511, -0.29753026366233826, -0.2531494200229645, -0.5202251672744751, -0.10911372303962708, 0.036996107548475266, 0.31522247195243835, 0.3569616675376892, 0.02452176809310913, -0.15330515801906586, -0.09342990070581436, -0.07579351216554642, 0.021862424910068512, -0.041693806648254395, 0.14745700359344482, -0.1199834793806076, 0.4965122640132904, 0.10852357000112534, -0.1551150232553482, 0.6286643147468567, 0.4596504271030426, -0.1357758641242981, -0.3614640533924103, 0.14924605190753937, -0.24736221134662628, -0.06550414115190506, 0.00995156541466713, -0.17736002802848816, -0.00022865459322929382, -0.32153433561325073, 0.08063507080078125, 0.0410371758043766, 0.3186032474040985, 0.4282609522342682, 0.017932593822479248, -0.38789716362953186, -0.44981831312179565, 0.20566649734973907, -0.02271438017487526, 0.21461129188537598, 0.21335163712501526, -0.24068504571914673, -0.24795544147491455, 0.026993639767169952, 0.07952176034450531, 0.8255428075790405, -0.10169216245412827, -0.06964607536792755, 0.21221455931663513, -0.06497024744749069, 0.2946658730506897, -0.006010688841342926, -0.02647220343351364, -0.11845114082098007, -0.4059341847896576, -0.148244708776474, -0.09421326220035553, 0.22746041417121887, 0.14245003461837769, -0.12337823212146759, -0.027534786611795425, -0.15585435926914215, -0.18196547031402588, 0.005999226123094559, 0.11455849558115005, -0.2301931381225586, -0.2593148648738861, -0.40682342648506165, 0.1889897584915161, -0.25434303283691406, 0.21009968221187592, -0.07035630196332932, -0.11072956025600433, 0.03869926929473877, -0.1443951427936554, -0.17425934970378876, 0.3126591742038727, -0.15004993975162506, 0.22966110706329346, -0.11636777222156525, -0.09575144946575165, 0.1930622160434723, 0.1651657670736313, 0.18309257924556732, -0.03448060527443886, -0.060171253979206085, 0.2799973487854004, 0.23334622383117676, -0.17592105269432068, 0.1331527680158615, -0.009477701038122177, 0.20508453249931335, -0.20206797122955322, -0.1194438636302948, 0.15301619470119476, -0.06520728766918182, 0.0593324676156044, 0.018517956137657166, -0.09651222825050354, 0.0380091518163681, -0.21510116755962372, -0.08808355033397675, -0.1904086172580719, 0.017294153571128845, -0.3192257285118103, 0.17587092518806458, 0.1804148554801941, -0.27728521823883057, -0.06118325889110565, -0.08882759511470795, -0.22388321161270142, 0.01739959418773651, 0.5768741369247437, 0.061716798692941666, -0.19133424758911133, 0.2875872552394867, 0.04878217726945877, -0.16464418172836304, -0.1533004641532898, 0.41650429368019104, 0.20263230800628662, -0.5755167603492737, 0.0703282281756401, -0.22721944749355316, 0.18184643983840942, -0.040067367255687714, 0.23836591839790344, 0.22754475474357605, -0.1599145233631134, 0.44235992431640625, -0.47124993801116943, -0.478199303150177, -0.05299074947834015, -0.011312517337501049, 0.21387961506843567, -0.10485495626926422, 0.4432981014251709, -0.10194219648838043, 0.031190862879157066, -0.2858439087867737, 0.24957692623138428, -0.2689565420150757, 0.10123061388731003, 0.09262804687023163, -0.1324530690908432, 0.010973431169986725, 0.035879217088222504, 0.12918461859226227, 0.3498947322368622, -0.23144268989562988, -0.19735167920589447, -0.32923978567123413, 0.11000874638557434, 0.10168653726577759, -0.3206523656845093, 0.17164351046085358, 0.015063188970088959, -0.255467027425766, 0.08012115955352783, 0.06357479840517044, 0.38442283868789673, -0.1345839649438858, 0.07325625419616699, 0.23283794522285461, 0.11710122972726822, -0.21683335304260254, 0.17958319187164307, 0.03247418627142906, 0.19618138670921326, 0.0062173642218112946, 0.18174920976161957, -0.09579013288021088, -0.16433805227279663, -0.24934692680835724, -0.09119945764541626, 0.04553500562906265, 0.017316212877631187, 0.20398059487342834, -0.3111359775066376, 0.29359009861946106, 0.14597484469413757, 0.13428768515586853, 0.31206393241882324, -0.3041704595088959, -0.14117670059204102, 0.3298965096473694, 0.2417260855436325, -0.29095494747161865, 0.08054199069738388, 0.0035012252628803253, 0.09070774912834167, -0.21891245245933533, 0.07925961166620255, 0.18976925313472748, -0.04731627553701401, -0.08224188536405563, 0.0440899096429348, 0.21906627714633942, -0.19820794463157654, 0.25453001260757446, 0.6976861953735352, -0.14029377698898315, 0.2872927486896515, 0.0031838882714509964, 0.02267714962363243, 0.04747312515974045, 0.6353990435600281, -0.13671450316905975, 0.6869064569473267, 0.08435901999473572, 0.16219377517700195, -0.2805509865283966, -0.5913834571838379, -0.2843018174171448, 0.3855757713317871, -0.34219107031822205, -0.022424165159463882, -0.07161356508731842, 0.32199203968048096, -0.20352602005004883, 0.005353767424821854, -0.23769091069698334, 0.07470040023326874, -0.13973097503185272, 0.0879112035036087, -0.07721997052431107, -0.11528366804122925, -0.48977047204971313, 0.02117796242237091, 0.052990447729825974, 0.252697616815567, 0.369099885225296, 0.15479619801044464, -0.236844003200531, -0.1290408968925476, -0.2547057867050171, 0.1431550234556198, -0.13313154876232147, -0.3965011537075043, 0.21691925823688507, 0.12211255729198456, -0.07906395941972733, 0.05145055428147316, 0.0667722225189209, 0.31961607933044434, 0.4048793911933899, -0.0024280771613121033, -0.21177372336387634, 0.2033005952835083, 0.2261589914560318, 0.188534215092659, 0.24310824275016785, 0.2059258371591568, 0.20409861207008362, 0.40804725885391235, 0.09362190961837769, -0.1640651375055313, -0.08803708106279373, 0.2418287694454193, -0.14867070317268372, -0.06065548211336136, 0.13915547728538513, -0.11753924190998077, 0.15569019317626953, -0.2771402895450592, 0.006088104099035263, -0.20806346833705902, 0.019583046436309814, 0.11406217515468597, -0.1118568480014801, 0.15506982803344727, -0.0863712728023529, 0.10049721598625183, -0.2805628180503845, 0.3321114480495453, 0.260778546333313, -0.18654228746891022, -0.4334549903869629, -0.35408449172973633, -0.612899661064148, 0.252189040184021, -0.1776026040315628, -0.13166439533233643, 0.12325574457645416, -0.03832502290606499, -0.22972238063812256, 0.195091113448143, 0.051376260817050934, 0.08311380445957184, 0.18236234784126282, 0.3362433910369873, -0.2728034257888794, -0.15958762168884277, -0.0003039613366127014, -0.087077297270298, 0.002246759831905365, -0.5085715055465698, 0.07010204344987869, 0.20018985867500305, 0.08887752890586853, -0.06063584238290787, -0.12653660774230957, 0.0032804086804389954, 0.4442872405052185, 0.09326823055744171, 0.0713445320725441, 0.430076539516449, -0.062169384211301804, 0.07308109849691391, -0.2530655860900879, -0.37982168793678284, -0.040156781673431396, 0.19781246781349182, 0.17698194086551666, 0.15033286809921265, 0.04652149975299835, 0.14658744633197784, -0.49607330560684204, 0.5225290656089783, -0.1063937395811081, 0.019221756607294083, -0.3280642628669739, 0.2300223410129547, -0.09987856447696686, 0.1226452961564064, 0.38063740730285645, 0.11550700664520264, -0.02241431176662445, 0.26589640974998474, -0.2791171371936798, -0.4109160602092743, 0.33472344279289246, -0.08097795397043228, -0.33360153436660767, -0.1208176463842392, 0.05976583808660507, 0.13983765244483948, -0.1179342195391655, -0.5407843589782715, 0.12949654459953308, 0.2830866277217865, -0.1346137672662735, -0.29409903287887573, 0.17681986093521118, 0.023112647235393524, 0.04602840542793274, 0.04209580272436142, 0.5088889598846436, 0.03781447559595108, -0.05028402805328369, 0.3773099184036255, -0.1406601518392563 ]
https://github.com/huggingface/datasets/issues/5586
Thanks for reporting and thanks @mariosasko for fixing ! We just did a patch release `2.10.1` with the fix
.sort() is broken when used after .filter(), only in 2.10.0
### Describe the bug Hi, thank you for your support! It seems like the addition of multiple key sort (#5502) in 2.10.0 broke the `.sort()` method. After filtering a dataset with `.filter()`, the `.sort()` seems to refer to the query_table index of the previous unfiltered dataset, resulting in an IndexError. This only happens with the 2.10.0 release. ### Steps to reproduce the bug ```Python from datasets import load_dataset # dataset with length of 1104 ds = load_dataset('glue', 'ax')['test'] ds = ds.filter(lambda x: x['idx'] > 1100) ds.sort('premise') print('Done') ``` File "/home/dongkeun/datasets_test/test.py", line 5, in <module> ds.sort('premise') File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 528, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/fingerprint.py", line 511, in wrapper out = func(dataset, *args, **kwargs) File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 3959, in sort sort_table = query_table( File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/formatting/formatting.py", line 588, in query_table _check_valid_index_key(key, size) File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/formatting/formatting.py", line 537, in _check_valid_index_key _check_valid_index_key(max(key), size=size) File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/formatting/formatting.py", line 531, in _check_valid_index_key raise IndexError(f"Invalid key: {key} is out of bounds for size {size}") IndexError: Invalid key: 1103 is out of bounds for size 3 ### Expected behavior It should sort the dataset and print "Done". Which it does on 2.9.0. ### Environment info - `datasets` version: 2.10.0 - Platform: Linux-5.15.0-41-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
19
.sort() is broken when used after .filter(), only in 2.10.0 ### Describe the bug Hi, thank you for your support! It seems like the addition of multiple key sort (#5502) in 2.10.0 broke the `.sort()` method. After filtering a dataset with `.filter()`, the `.sort()` seems to refer to the query_table index of the previous unfiltered dataset, resulting in an IndexError. This only happens with the 2.10.0 release. ### Steps to reproduce the bug ```Python from datasets import load_dataset # dataset with length of 1104 ds = load_dataset('glue', 'ax')['test'] ds = ds.filter(lambda x: x['idx'] > 1100) ds.sort('premise') print('Done') ``` File "/home/dongkeun/datasets_test/test.py", line 5, in <module> ds.sort('premise') File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 528, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/fingerprint.py", line 511, in wrapper out = func(dataset, *args, **kwargs) File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 3959, in sort sort_table = query_table( File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/formatting/formatting.py", line 588, in query_table _check_valid_index_key(key, size) File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/formatting/formatting.py", line 537, in _check_valid_index_key _check_valid_index_key(max(key), size=size) File "/home/dongkeun/miniconda3/envs/datasets_test/lib/python3.9/site-packages/datasets/formatting/formatting.py", line 531, in _check_valid_index_key raise IndexError(f"Invalid key: {key} is out of bounds for size {size}") IndexError: Invalid key: 1103 is out of bounds for size 3 ### Expected behavior It should sort the dataset and print "Done". Which it does on 2.9.0. ### Environment info - `datasets` version: 2.10.0 - Platform: Linux-5.15.0-41-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 Thanks for reporting and thanks @mariosasko for fixing ! We just did a patch release `2.10.1` with the fix
[ -0.06971172988414764, 0.064520925283432, -0.06005880609154701, 0.07854977995157242, 0.07061471045017242, -0.12157415598630905, 0.13628517091274261, 0.12003520876169205, -0.09659769386053085, -0.05778472125530243, -0.19042475521564484, 0.589008092880249, -0.10441306233406067, 0.12997740507125854, -0.10588202625513077, -0.1621847152709961, -0.03686670958995819, 0.0910402312874794, 0.13203632831573486, 0.35733240842819214, -0.17211057245731354, 0.09689939022064209, -0.47352227568626404, -0.06488747894763947, 0.15714013576507568, -0.2986808121204376, -0.12247757613658905, 0.24991944432258606, -0.0051520876586437225, -0.6322802901268005, 0.027391716837882996, 0.03816947713494301, 0.027963273227214813, 0.6111829280853271, -0.00012398410763125867, -0.024327009916305542, 0.2564557194709778, -0.06600384414196014, -0.2010737657546997, -0.28565114736557007, 0.06239542365074158, -0.051574379205703735, 0.0022662952542304993, -0.06261198967695236, 0.0762564167380333, -0.053257670253515244, -0.26997533440589905, -0.2230980396270752, 0.09701405465602875, 0.2280055433511734, 0.19194108247756958, 0.09685830771923065, 0.30608096718788147, -0.0010919161140918732, 0.1820458471775055, -0.060996491461992264, -0.08285265415906906, -0.10343028604984283, 0.4149801731109619, -0.09067976474761963, 0.16321328282356262, 0.3814924955368042, -0.31848689913749695, -0.3400760293006897, 0.12500867247581482, -0.2670672833919525, 0.25154972076416016, -0.17186114192008972, 0.2588845193386078, 0.17756584286689758, 0.1658165156841278, -0.10122516006231308, -0.5562487840652466, -0.11193696409463882, -0.014154922217130661, 0.03427766263484955, 0.20102716982364655, 0.05275227874517441, 0.107307069003582, -0.15732413530349731, 0.08586464822292328, -0.04284166544675827, 0.047344788908958435, 0.14146122336387634, -0.2443711906671524, 0.5939303040504456, -0.18022455275058746, -0.02842066064476967, -0.05446629971265793, -0.2541135251522064, 0.07615157961845398, 0.002971457317471504, -0.27855145931243896, 0.10016334056854248, -0.24109093844890594, 0.10083437711000443, 0.5170109272003174, 0.047009892761707306, -0.012504734098911285, 0.047856610268354416, -0.08969875425100327, 0.008853964507579803, 0.2036064714193344, -0.1868405044078827, 0.20024575293064117, 0.31869232654571533, 0.3251182734966278, 0.36325353384017944, 0.22942116856575012, 0.11538279056549072, -0.060167551040649414, -0.0774308443069458, 0.4555395245552063, -0.18618077039718628, -0.05557471513748169, 0.15946614742279053, 0.10204446315765381, 0.08340064436197281, -0.20010358095169067, -0.15365929901599884, 0.021093152463436127, -0.15830837190151215, 0.2864047884941101, 0.3372625708580017, 0.15158376097679138, 0.09769169986248016, 0.04545111954212189, 0.14440354704856873, -0.011446546763181686, 0.08994904160499573, -0.04288357123732567, -0.2299424111843109, 0.18027853965759277, -0.11460795253515244, -0.18066200613975525, -0.8784019351005554, -0.015782255679368973, 0.05618815869092941, -0.18748228251934052, -0.035382624715566635, 0.03129609674215317, 0.05463678017258644, 0.34329625964164734, 0.4687550663948059, -0.025534939020872116, -0.008365798741579056, 0.08972479403018951, -0.45937246084213257, -0.0338151678442955, 0.3974580466747284, -0.7224687933921814, -0.2622107267379761, -0.10078268498182297, 0.1105559766292572, 0.11810757219791412, 0.12655329704284668, 0.07820932567119598, 0.07010114192962646, 0.5109956860542297, -0.3307693302631378, 0.07286147773265839, -0.1580129861831665, -0.27088499069213867, -0.2359815090894699, -0.003653325140476227, 0.15982049703598022, -0.6974028944969177, 0.17658725380897522, -0.30543550848960876, 0.33026233315467834, -0.14268377423286438, -0.019969359040260315, -0.14955481886863708, 0.10830296576023102, -0.17672479152679443, -0.004111766815185547, 0.35121822357177734, -0.2711503505706787, -0.2587798535823822, 0.10960341989994049, -0.056153301149606705, 0.2314767837524414, -0.06757806241512299, -0.0528462678194046, 0.2849601209163666, -0.12158436328172684, 0.33212774991989136, -0.0741293728351593, -0.05695506930351257, -0.05737050622701645, -0.20095771551132202, 0.05086510628461838, 0.33337482810020447, -0.16995683312416077, 0.30191195011138916, 0.19741803407669067, 0.011401217430830002, -0.2487608790397644, 0.2887858748435974, 0.07304157316684723, -0.1497330367565155, 0.04912015050649643, 0.39208707213401794, 0.09988836944103241, 0.4787394106388092, -0.5815708637237549, 0.3242940902709961, 0.3141326904296875, 0.08987845480442047, -0.23681318759918213, -0.23113948106765747, 0.021822422742843628, -0.11472214758396149, 0.11711176484823227, -0.21883134543895721, -0.11778906732797623, 0.05205943062901497, -0.16562706232070923, -0.22005654871463776, 0.1471504420042038, -0.24876286089420319, 0.2738328278064728, -0.28317418694496155, 0.048432089388370514, -0.22696401178836823, 0.5111321806907654, -0.23924954235553741, 0.04459720477461815, -0.38128697872161865, -0.025441527366638184, 0.15341651439666748, 0.05357629433274269, -0.23109564185142517, 0.5122880339622498, 0.2371215969324112, -0.3746601641178131, -0.2744012475013733, -0.08885326981544495, -0.0448346883058548, -0.06792832911014557, 0.039132848381996155, 0.3035220503807068, 0.05305973440408707, 0.029862508177757263, 0.1971435546875, 0.5724785923957825, -0.2745194733142853, 0.3503650426864624, 0.09602831304073334, 0.06339078396558762, 0.11459866911172867, 0.25786393880844116, 0.006814390420913696, -0.032171331346035004, 0.2812553942203522, -0.12062177062034607, -0.017060190439224243, -0.28435543179512024, 0.10599271953105927, 0.3420153558254242, 0.16812115907669067, 0.1675863265991211, 0.2014850378036499, 0.04874010011553764, 0.08105812966823578, 0.06609798967838287, -0.0014697406440973282, 0.18723031878471375, 0.23735611140727997, 0.1761983335018158, -0.0726085677742958, -0.03703651949763298, -0.018438709899783134, -0.04223528504371643, 0.2991787791252136, 0.17862944304943085, -0.11495187133550644, 0.24794602394104004, 0.22955480217933655, 0.2154812514781952, -0.08312106877565384, -0.010900966823101044, -0.000647764652967453, 0.15184728801250458, -0.5489946603775024, 0.24126023054122925, -0.1898764669895172, -0.26858675479888916, 0.09747681021690369, 0.282601535320282, -0.2494431883096695, -0.13013575971126556, -0.04608979821205139, 0.15639573335647583, -0.03993420675396919, -0.02915928140282631, -0.11967095732688904, 0.08638136833906174, 0.30031558871269226, -0.05265689641237259, 0.0651281550526619, -0.050957079976797104, -0.1502900868654251, -0.00434146448969841, 0.1268085241317749, -0.10415339469909668, 0.2710569500923157, 0.09528683125972748, -0.2361079603433609, -0.004926709458231926, -0.7437901496887207, -0.374332994222641, -0.043770480901002884, 0.26989027857780457, 0.28123393654823303, -0.12164153158664703, -0.05972875654697418, -0.15896286070346832, 0.15563341975212097, -0.004956915974617004, -0.2050338238477707, 0.5372875332832336, -0.03676164895296097, 0.06812845915555954, -0.12177558988332748, -0.18970778584480286, 0.05406583845615387, -0.11015520989894867, -0.06775647401809692, -0.14682824909687042, 0.2318662703037262, 0.3262019157409668, -0.08687470853328705, -0.12613506615161896, -0.21548478305339813, 0.09609246999025345, 0.03708373382687569, -0.07683540135622025, 0.03623144328594208, -0.08642162382602692, -0.03548242524266243, 0.02606603503227234, 0.03235337883234024, -0.549504816532135, 0.09233160316944122, -0.2616524398326874, -0.18351459503173828, -0.1299585998058319, -0.112034372985363, -0.06015481427311897, 0.15568964183330536, 0.2658604681491852, -0.05172160267829895, 0.0031762495636940002, -0.12297563254833221, -0.321127325296402, -0.0575065053999424, 0.40157973766326904, 0.15370522439479828, 0.1531340777873993, 0.5664441585540771, 0.46291959285736084, 0.3150493800640106, 0.17814390361309052, 0.3123592138290405, 0.2982691824436188, 0.1801350712776184, 0.4072642922401428, -0.2924218773841858, -0.515211284160614, -0.21240653097629547, 0.1344609558582306, 0.06360739469528198, -0.10636430978775024, 0.4627266526222229, -0.12288892269134521, -0.1383158266544342, -0.13266827166080475, -0.032570719718933105, 0.06256477534770966, -0.1662888377904892, -0.3512803018093109, 0.17855782806873322, -0.07117689400911331, 0.23999562859535217, -0.12857437133789062, -0.20828992128372192, -0.2584662437438965, 0.13729557394981384, 0.016058778390288353, -0.194374680519104, -0.29242974519729614, -0.35684144496917725, -0.2094213217496872, 0.07005014270544052, 0.3622451424598694, 0.3358380198478699, 0.10973895341157913, 0.02226617932319641, -0.04310586676001549, -0.22533833980560303, 0.7479727268218994, -0.29118409752845764, 0.04157750681042671, 0.41349926590919495, -0.3576173782348633, -0.5901235342025757, 0.03753285855054855, 0.004931092262268066, 0.2389715015888214, 0.2514162063598633, 0.11503651738166809, 0.18599456548690796, -0.004607431590557098, -0.131182461977005, 0.005597840994596481, 0.0036231577396392822, -0.10062174499034882, -0.49185651540756226, -0.2844282388687134, 0.3380034863948822, 0.044958893209695816, -0.04381128400564194, 0.139804869890213, -0.18203145265579224, -0.03210502862930298, -0.0118786646053195, -0.381512314081192, -0.30825120210647583, -0.19382783770561218, 0.21597036719322205, -0.0113723985850811, 0.09372662007808685, 0.07416360080242157, 0.15498127043247223, -0.037181753665208817, 0.23570939898490906, -0.19930854439735413, -0.15319326519966125, -0.3413141667842865, -0.05048258602619171, -0.23327754437923431, 0.2596348524093628, -0.2821037471294403, 0.3012169599533081, -0.134354829788208, 0.0046553052961826324, 0.09202452003955841, -0.45725440979003906, 0.29914870858192444, -0.2627895474433899, -0.5122875571250916, -0.1153826117515564, 0.18884918093681335, -0.19790124893188477, -0.022879287600517273, 0.48160889744758606, 0.3984658718109131, -0.3445906937122345, 0.3198552429676056, 0.08742374181747437, 0.550572395324707, -0.008012887090444565, -0.059287481009960175, 0.055041417479515076, -0.3286771774291992, 0.3709426522254944, 0.1760910600423813, 0.3541593849658966, -0.20084580779075623, -0.4252976179122925, -0.10979387164115906, -0.05091114714741707, 0.2970215678215027, -0.18455661833286285, -0.21253612637519836, 0.17394202947616577, -0.5727442502975464, 0.14561133086681366, -0.1345933973789215, 0.04612221568822861, 0.07785413414239883, 0.39916762709617615, -0.16908159852027893, 0.058647893369197845, 0.190669983625412, -0.24297180771827698, -0.16205798089504242, 0.18923038244247437, 0.4261421859264374, -0.17387208342552185, -0.4308878779411316, -0.010221481323242188, -0.027713336050510406, 0.07251567393541336, -0.08811460435390472, -0.4275444746017456, 0.47763216495513916, 0.20332658290863037, 0.17230898141860962, -0.0037175104953348637, -0.048192109912633896, 0.19736020267009735, 0.059851475059986115, 0.5098332762718201, 0.5898239612579346, -0.0033340975642204285, 0.20463281869888306, 0.011518307030200958, -0.18139517307281494, 0.046046238392591476, 0.10629801452159882, -0.595924973487854, -0.1868305504322052, 0.5114291906356812, -0.034393273293972015, 0.08121255040168762, 0.26358360052108765, 0.17346344888210297, 0.32552599906921387, -0.32750195264816284, 0.09056554734706879, -0.0028332900255918503, -0.05385499820113182, 0.3609338104724884, -0.3580853044986725, -0.13842613995075226, 0.10984732210636139, 0.7312732338905334, -0.00901523232460022, 0.13512228429317474, 0.08154411613941193, 0.1838299036026001, -0.32982581853866577, -0.008289307355880737, 0.20613440871238708, -0.017753317952156067, 0.10087604820728302, 0.13382954895496368, -0.19835780560970306, 0.22714146971702576, 0.346744179725647, 0.016589147970080376, 0.04859571158885956, 0.07948682457208633, -0.3613691031932831, -0.15527114272117615, 0.182228684425354, 0.029383225366473198, 0.6481455564498901, -0.30468451976776123, -0.19343066215515137, 0.05594155192375183, -0.06271406263113022, 0.10732971131801605, -0.2110493779182434, 0.3097005784511566, 0.2348608821630478, 0.028733231127262115, -0.42405465245246887, 0.3141358494758606, -0.07150973379611969, -0.06911906599998474, 0.006434224545955658, -0.1930851936340332, -0.020524941384792328, -0.1752210557460785, -0.04316996783018112, 0.0892946869134903, 0.04031824693083763, -0.35891780257225037, -0.050071172416210175, -0.7228000164031982, -0.2766440212726593, -0.04889996722340584, 0.0341394767165184, 0.39612773060798645, 0.020719967782497406, 0.007965963333845139, 0.036689892411231995, -0.03514469414949417, 0.14099058508872986, 0.4568803310394287, -0.2771698236465454, -0.18156956136226654, 0.2587113380432129, 0.5313844084739685, -0.003508191555738449, 0.08800387382507324, -0.3951522409915924, 0.0474468432366848, -0.28420037031173706, 0.10792888700962067, 0.47234201431274414, -0.5320819616317749, -0.03200402110815048, -0.012882046401500702, 0.5083789229393005, 0.33379510045051575, -0.0618869923055172, -0.011013712733983994, -0.0015003792941570282, 0.08496148884296417, -0.22610507905483246, -0.2786809802055359, -0.0005001798272132874, 0.4220083951950073, -0.050406210124492645, 0.12874874472618103, -0.3342340588569641, 0.11074356734752655, 0.3871445655822754, 0.18379557132720947, 0.39361587166786194, -0.09591393917798996, 0.35096827149391174, 0.3786419928073883, 0.276654988527298, 0.014160105027258396, 0.04913083463907242, -0.1434226632118225, -0.1535910815000534, 0.6573869585990906, 0.3491024971008301, 0.4592756927013397, 0.25744712352752686, 0.03270222619175911, 0.0016935542225837708, -0.3097184896469116, 0.0012596864253282547, 0.2096095085144043, -0.17823612689971924, -0.28710025548934937, 0.24416713416576385, 0.08178741484880447, -0.2880092263221741, -0.4826664328575134, -0.19438493251800537, 0.07214464247226715, -0.09140707552433014, 0.12626364827156067, -0.2538720965385437, -0.2484733760356903, 0.42647451162338257, -0.16709206998348236, 0.1057167500257492, 0.06107280030846596, 0.0035317838191986084, 0.030560694634914398, -0.20824302732944489, -0.7269660830497742, -0.314920037984848, 0.03834865614771843, 0.46457499265670776, -0.022587686777114868, 0.04205223172903061, 0.34241345524787903, 0.08325832337141037, 0.2235211879014969, 0.07703789323568344, 0.36337801814079285, 0.21540962159633636, -0.1448933184146881, -0.05841263011097908, 0.11310719698667526, -0.05407322943210602, 0.1196696013212204, 0.08505129814147949, -0.169078528881073, 0.1909501552581787, 0.19405636191368103, 0.03986237198114395, -0.07136747986078262, 0.22830694913864136, 0.4158917963504791, 0.4768470227718353, -0.41785481572151184, 0.3687567412853241, -0.3725816607475281, 0.10359373688697815, 0.17116013169288635, -0.032720666378736496, -0.08533085882663727, 0.15532255172729492, 0.17658156156539917, -0.06032445281744003, 0.03978512063622475, 0.03513271361589432, 0.04042597860097885, 0.06080786511301994, -0.147531196475029, 0.4670599102973938, -0.12725602090358734, -0.14128339290618896, -0.18549074232578278, -0.23224717378616333, -0.07100751996040344, -0.00019418331794440746, 0.21151119470596313, 0.11717157065868378, 0.023704327642917633, -0.008589059114456177, -0.2891196012496948, 0.20725077390670776, -0.5121487379074097, 0.11783348768949509, 0.1337832510471344, -0.3053954243659973, -0.16498717665672302, -0.053514737635850906, 0.06936077773571014, -0.4176733195781708, -0.2416752576828003, -0.0345442071557045, -0.0240246020257473, 0.026420041918754578, -0.04420687258243561, 0.015490159392356873, 0.15998783707618713, -0.06844672560691833, -0.04024363309144974, 0.10835813730955124, 0.33271268010139465, 0.1350851058959961, 0.08684593439102173, -0.08063067495822906, -0.2216726690530777, -0.2636982500553131, 0.03220687806606293, -0.041953474283218384, 0.44676506519317627, -0.31905674934387207, -0.47075265645980835, 0.036619506776332855, 0.31463608145713806, -0.2022150456905365, 0.4417058825492859, -0.6656242609024048, 0.19057367742061615, 0.10550642013549805, 0.08845873177051544, -0.20119702816009521, -0.039068806916475296, 0.015718873590230942, 0.3004615306854248, -0.04475753754377365, -0.12099271267652512, 0.3295924961566925, -0.32487228512763977, -0.07565261423587799, -0.047946128994226456, 0.23215246200561523, 0.049271613359451294, -0.011950653046369553, 0.17691953480243683, -0.419047087430954, 0.44856223464012146, 0.17241248488426208, -0.17524787783622742, 0.2755849361419678, -0.12805460393428802, 0.21230930089950562, -0.1670386642217636, -0.4748496413230896, 0.05081287398934364, -0.23058655858039856, 0.15151843428611755, 0.03462713956832886 ]
https://github.com/huggingface/datasets/issues/5585
Hi ! No the cache is not transportable in general. It will work on a shared filesystem if you use the same python environment, but not across machines/os/environments. In particular, reloading cached datasets does work, but reloading cached processed datasets (e.g. from `map`) may not work. This is because some hashes used by caching are based on pickle dumps of the function you pass to `map`. Finally you may copy the cache to another machine, but all the `cached-*.arrow` files are unlikely to be reloaded.
Cache is not transportable
### Describe the bug I would like to share cache between two machines (a Windows host machine and a WSL instance). I run most my code in WSL. I have just run out of space in the virtual drive. Rather than expand the drive size, I plan to move to cache to the host Windows machine, thereby sharing the downloads. I'm hoping that I can just copy/paste the cache files, but I notice that a lot of the file names start with the path name, e.g. `_home_davidg_.cache_huggingface_datasets_conll2003_default-451...98.lock` where `home/davidg` is where the cache is in WSL. This seems to suggest that the cache is not portable/cannot be centralised or shared. Is this the case, or are the files that start with path names not integral to the caching mechanism? Because copying the cache files _seems_ to work, but I'm not filled with confidence that something isn't going to break. A related issue, when trying to load a dataset that should come from cache (running in WSL, pointing to cache on the Windows host) it seemed to work fine, but it still uses a WSL directory for `.cache\huggingface\modules\datasets_modules`. I see nothing in the docs about this, or how to point it to a different place. I have asked a related question on the forum: https://discuss.huggingface.co/t/is-datasets-cache-operating-system-agnostic/32656 ### Steps to reproduce the bug View the cache directory in WSL/Windows. ### Expected behavior Cache can be shared between (virtual) machines and be transportable. It would be nice to have a simple way to say "Dear Hugging Face packages, please put ALL your cache in `blah/de/blah`" and have all the Hugging Face packages respect that single location. ### Environment info ``` - `datasets` version: 2.9.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 - ```
85
Cache is not transportable ### Describe the bug I would like to share cache between two machines (a Windows host machine and a WSL instance). I run most my code in WSL. I have just run out of space in the virtual drive. Rather than expand the drive size, I plan to move to cache to the host Windows machine, thereby sharing the downloads. I'm hoping that I can just copy/paste the cache files, but I notice that a lot of the file names start with the path name, e.g. `_home_davidg_.cache_huggingface_datasets_conll2003_default-451...98.lock` where `home/davidg` is where the cache is in WSL. This seems to suggest that the cache is not portable/cannot be centralised or shared. Is this the case, or are the files that start with path names not integral to the caching mechanism? Because copying the cache files _seems_ to work, but I'm not filled with confidence that something isn't going to break. A related issue, when trying to load a dataset that should come from cache (running in WSL, pointing to cache on the Windows host) it seemed to work fine, but it still uses a WSL directory for `.cache\huggingface\modules\datasets_modules`. I see nothing in the docs about this, or how to point it to a different place. I have asked a related question on the forum: https://discuss.huggingface.co/t/is-datasets-cache-operating-system-agnostic/32656 ### Steps to reproduce the bug View the cache directory in WSL/Windows. ### Expected behavior Cache can be shared between (virtual) machines and be transportable. It would be nice to have a simple way to say "Dear Hugging Face packages, please put ALL your cache in `blah/de/blah`" and have all the Hugging Face packages respect that single location. ### Environment info ``` - `datasets` version: 2.9.0 - Platform: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 - Python version: 3.10.8 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 - ``` Hi ! No the cache is not transportable in general. It will work on a shared filesystem if you use the same python environment, but not across machines/os/environments. In particular, reloading cached datasets does work, but reloading cached processed datasets (e.g. from `map`) may not work. This is because some hashes used by caching are based on pickle dumps of the function you pass to `map`. Finally you may copy the cache to another machine, but all the `cached-*.arrow` files are unlikely to be reloaded.
[ 0.02894795686006546, -0.2566605806350708, 0.06475161015987396, 0.24238498508930206, 0.22143937647342682, 0.23452602326869965, 0.12862366437911987, -0.003426472656428814, 0.3582428991794586, 0.05773172900080681, 0.19717276096343994, -0.08908256888389587, 0.010916858911514282, -0.3016570210456848, 0.34591132402420044, -0.16456395387649536, 0.341976523399353, -0.22889649868011475, 0.05573700740933418, 0.058234214782714844, -0.017667919397354126, 0.07500205188989639, 0.1880994290113449, -0.08382484316825867, -0.05352494865655899, 0.01941218040883541, -0.23580169677734375, 0.1008291244506836, 0.28201618790626526, 0.025005079805850983, 0.4612710475921631, -0.007555849384516478, 0.21840018033981323, 0.4910898804664612, -0.00012318651715759188, 0.017846286296844482, 0.205560564994812, -0.17791050672531128, -0.25015881657600403, -0.2759525179862976, -0.0008316859602928162, -0.18480125069618225, 0.0007016286253929138, -0.1493424028158188, 0.15307556092739105, 0.18841785192489624, 0.1784505993127823, -0.5266827344894409, 0.4056081175804138, -0.021470196545124054, 0.10729151219129562, 0.19042682647705078, -0.19962510466575623, 0.08315269649028778, 0.3289569020271301, -0.1863970160484314, -0.3885011374950409, 0.38266220688819885, 0.26620134711265564, 0.07140925526618958, -0.01171274483203888, 0.3560083508491516, -0.2594122290611267, 0.2576826810836792, 0.4453100860118866, 0.08791804313659668, -0.5344035029411316, 0.23104985058307648, 0.2991545498371124, 0.23661434650421143, 0.494659423828125, -0.18701140582561493, -0.3666309714317322, -0.27348554134368896, -0.27965444326400757, -0.2045060247182846, 0.5140954852104187, 0.12038011848926544, 0.17062334716320038, 0.20850597321987152, -0.13394764065742493, 0.008808497339487076, -0.06985710561275482, -0.047896336764097214, 0.12133482098579407, -0.06766059994697571, -0.22192184627056122, 0.011120307259261608, 0.21591539680957794, -0.030657144263386726, 0.26476815342903137, -0.10038650035858154, 0.0642084926366806, 0.05820653960108757, -0.050754446536302567, 0.3234270215034485, -0.12728442251682281, 0.6914792060852051, 0.03009115904569626, 0.025196973234415054, 0.14411699771881104, -0.27573180198669434, 0.22387854754924774, 0.16824862360954285, 0.07429778575897217, 0.6953250169754028, -0.382860392332077, -0.1431267261505127, -0.0019798744469881058, 0.10486868023872375, -0.19349592924118042, -0.2402569055557251, -0.094612717628479, -0.34291234612464905, 0.009624898433685303, -0.08274678140878677, -0.02949690818786621, -0.13276931643486023, -0.24304169416427612, -0.2339404970407486, 0.1580551564693451, -0.1066645011305809, 0.231149822473526, 0.3608381748199463, 0.016665738075971603, 0.29447782039642334, -0.01137746125459671, -0.040907829999923706, 0.08595667034387589, -0.1698545217514038, -0.2242383062839508, -0.04951971024274826, -0.214344784617424, 0.37120717763900757, -0.03472944721579552, -0.13982857763767242, -0.0018729530274868011, -0.25492745637893677, 0.5404219627380371, 0.08345605432987213, -0.10332675278186798, -0.006803780794143677, 0.3489964008331299, 0.09261339902877808, -0.14661185443401337, 0.43260908126831055, 0.24436940252780914, -0.09733662009239197, -0.3489629626274109, -0.13496282696723938, -0.3933258354663849, -0.16283446550369263, 0.3241947591304779, -0.021899648010730743, -0.09849797189235687, 0.1747571974992752, 0.14201797544956207, -0.15574291348457336, 0.3928777575492859, 0.16996267437934875, 0.38763609528541565, 0.3246676027774811, -0.12218515574932098, -0.3258090615272522, 0.23092275857925415, 0.6857455968856812, -0.04579048603773117, -0.24052481353282928, 0.48627859354019165, 0.3456419110298157, -0.060159482061862946, 0.5650785565376282, 0.034388914704322815, -0.22280634939670563, -0.1281735897064209, -0.10008031129837036, 0.1382313221693039, -0.4616299569606781, -0.3984243869781494, 0.3433064818382263, -0.27834171056747437, -0.02082030475139618, 0.39413225650787354, -0.09194111824035645, -0.11924400925636292, -0.08048969507217407, 0.09703149646520615, 0.3526054620742798, -0.20749162137508392, -0.15847834944725037, -0.367703914642334, -0.5992467403411865, 0.3087504506111145, -0.11519600450992584, -0.06948268413543701, 0.12025360763072968, -0.01773391291499138, 0.288907527923584, 0.00658046267926693, 0.08425642549991608, 0.21578633785247803, 0.2709083557128906, 0.11573250591754913, 0.21630176901817322, 0.013850592076778412, 0.09694363176822662, -0.35818368196487427, 0.2513682246208191, 0.09875872731208801, -0.5007659196853638, 0.15741795301437378, -0.275054007768631, 0.08848398923873901, -0.08322027325630188, -0.18650031089782715, -0.02734282985329628, 0.0018933489918708801, 0.08100150525569916, 0.32383543252944946, -0.04311179369688034, -0.21055595576763153, 0.4858822822570801, -0.058229826390743256, -0.12615330517292023, -0.2694537043571472, 0.04425256699323654, -0.2487458735704422, 0.057998236268758774, -0.21669456362724304, 0.2518598735332489, 0.35963431000709534, -0.23283523321151733, -0.09645049273967743, 0.13207314908504486, -0.2639911472797394, 0.4922512173652649, 0.10550829768180847, 0.5207942128181458, 0.11358051747083664, -0.07879236340522766, 0.41401615738868713, 0.01889803260564804, -0.08947861194610596, -0.03376545011997223, -0.17810875177383423, -0.16540704667568207, -0.2539670169353485, 0.2987116277217865, 0.15108875930309296, 0.12035933136940002, 0.22652283310890198, -0.1647825986146927, -0.06153355538845062, -0.11801616102457047, 0.4526465833187103, -0.36684533953666687, 0.456236869096756, -0.10100127756595612, 0.08211196959018707, 0.1286417543888092, 0.10837133228778839, 0.27378541231155396, 0.15649238228797913, -0.03894186019897461, -0.1877390444278717, -0.14720232784748077, 0.09656018763780594, 0.18188217282295227, 0.3500296175479889, 0.020155400037765503, 0.5605763792991638, -0.0027232710272073746, 0.30631381273269653, -0.18875843286514282, -0.05012813210487366, -0.11210384219884872, -0.15328943729400635, -0.09981809556484222, -0.24786508083343506, 0.30455100536346436, 0.028009049594402313, 0.15208637714385986, -0.08920924365520477, -0.47533538937568665, -0.10432315617799759, 0.27437320351600647, -0.2991795539855957, -0.08768382668495178, -0.4740545153617859, 0.15308260917663574, -0.4717259109020233, -0.1304038017988205, -0.10090918838977814, 0.21453961730003357, -0.19341030716896057, -0.09325681626796722, -0.19893494248390198, 0.40899789333343506, -0.2637260854244232, -0.20462416112422943, -0.31970536708831787, -0.22642268240451813, -0.15322484076023102, -0.10828843712806702, 0.25061872601509094, -0.3097476065158844, 0.2120375782251358, -0.24168306589126587, 0.20829711854457855, -0.49300986528396606, -0.03152339160442352, 0.08983200043439865, 0.25648626685142517, 0.024416835978627205, 0.054788462817668915, 0.19053959846496582, -0.20183247327804565, -0.10869114100933075, 0.30761057138442993, -0.3676462769508362, 0.09001721441745758, -0.12865719199180603, -0.046156417578458786, -0.18347890675067902, -0.07129836827516556, 0.0997110903263092, -0.42167454957962036, -0.1908479779958725, 0.32451364398002625, -0.05098120868206024, -0.10708175599575043, 0.2869759798049927, -0.2234833687543869, -0.13276827335357666, -0.15300026535987854, 0.1227356344461441, -0.26312416791915894, -0.5767170190811157, 0.11397334933280945, -0.054522186517715454, -0.2884785830974579, 0.10077841579914093, 0.28730303049087524, 0.03805992379784584, 0.26431804895401, -0.32868635654449463, -0.12531717121601105, 0.022677944973111153, 0.16078324615955353, 0.22275064885616302, 0.1797722727060318, 0.30293095111846924, -0.09408949315547943, 0.09612098336219788, -0.24172443151474, -0.23256082832813263, -0.043424755334854126, 0.2630635201931, 0.358884334564209, 0.32479292154312134, -0.08732447028160095, 0.18306387960910797, 0.8576656579971313, 0.29487520456314087, 0.1960122287273407, 0.5429884195327759, 0.28223276138305664, 0.5677747130393982, -0.17086338996887207, -0.2835488021373749, 0.34970688819885254, -0.2669491469860077, -0.4867086410522461, 0.14414511620998383, 0.34181609749794006, 0.238554447889328, -0.12196020036935806, -0.12127251923084259, -0.03849160298705101, -0.12617647647857666, 0.0653366670012474, -0.03086366504430771, 0.1980750858783722, 0.0751701146364212, -0.15934845805168152, -0.3684227168560028, -0.11315633356571198, 0.4117733836174011, 0.5559737682342529, 0.002507925033569336, 0.37228667736053467, -0.11087235063314438, -0.09469090402126312, -0.1982043981552124, 0.09313499182462692, -0.12246197462081909, 0.14411067962646484, -0.46683740615844727, -0.2768338620662689, -0.172123521566391, -0.12674236297607422, 0.5757585167884827, 0.0285357479006052, 0.008556457236409187, -0.017882034182548523, 0.06266750395298004, 0.22676493227481842, -0.09273136407136917, 0.39980873465538025, -0.34885892271995544, -0.042399145662784576, -0.15729926526546478, -0.12880703806877136, -0.1583063155412674, -0.3313136398792267, 0.39651572704315186, -0.31004661321640015, 0.016646381467580795, -0.2433328628540039, -0.2642933130264282, -0.04426188766956329, -0.1940305531024933, 0.002280719578266144, -0.026909636333584785, 0.002587653696537018, 0.3284662961959839, -0.08740532398223877, 0.2091573178768158, 0.017741277813911438, -0.1058969646692276, 0.325971782207489, -0.047653019428253174, 0.12971898913383484, 0.45070216059684753, 0.7662279009819031, -0.13727407157421112, 0.3283567726612091, -0.38991212844848633, 0.08104389160871506, -0.21896801888942719, -0.0549551360309124, -0.0909029021859169, 0.37523984909057617, -0.34893086552619934, 0.0786699429154396, 0.26767390966415405, -0.06868506968021393, -0.4555351734161377, -0.2288208305835724, -0.008428297936916351, 0.06183354929089546, 0.22318944334983826, -0.10762548446655273, 0.2631644606590271, 0.29127755761146545, -0.08822684735059738, 0.3118506669998169, 0.0706324428319931, -0.27315035462379456, -0.0421128086745739, 0.08863140642642975, 1.032359004020691, -0.09354245662689209, 0.360175222158432, -0.22281497716903687, -0.1631956249475479, 0.24401699006557465, -0.06962033361196518, 0.06137501448392868, 0.09471967071294785, -0.3145950734615326, -0.18629872798919678, -0.10159701108932495, 0.16823506355285645, 0.006489194929599762, -0.17869549989700317, 0.2361556589603424, -0.027651548385620117, 0.7812483310699463, -0.11515039950609207, -0.293953001499176, -0.14962568879127502, -0.23667699098587036, -0.17534321546554565, 0.04415697604417801, 0.02991723082959652, 0.35541242361068726, -0.10467561334371567, -0.1864590346813202, 0.05037970840930939, -0.16467085480690002, -0.10109469294548035, 0.029930151998996735, -0.413186252117157, 0.15172745287418365, -0.04282308369874954, -0.2576897442340851, -0.06456853449344635, 0.008429520763456821, 0.7314473390579224, -0.2785148620605469, -0.39997443556785583, 0.037816476076841354, 0.04683152958750725, -0.010404516011476517, -0.23785175383090973, -0.11838790029287338, 0.020901290699839592, -0.012935101985931396, 0.298280268907547, -0.3665042221546173, -0.153548926115036, -0.12329988181591034, 0.023586705327033997, -0.010808411985635757, 0.3954889178276062, -0.020006008446216583, -0.1595892608165741, 0.18036627769470215, 0.1789882928133011, -0.19849470257759094, 0.01790732890367508, 0.15388713777065277, 0.06488467752933502, -0.053825732320547104, -0.2010015994310379, 0.050939276814460754, -0.004120286554098129, 0.3736235499382019, -0.22135654091835022, -0.5732585787773132, 0.21919305622577667, -0.11033206433057785, -0.3371655344963074, 0.03625357896089554, 0.0806916356086731, -0.07495789229869843, -0.4574388265609741, 0.017681457102298737, 0.04637329280376434, -0.2698516845703125, -0.33714982867240906, 0.08468574285507202, 0.5941929221153259, 0.24464470148086548, -0.17655223608016968, -0.09463146328926086, -0.11209021508693695, 0.2593648135662079, -0.05729949101805687, 0.09419992566108704, -0.10839415341615677, -0.37427324056625366, 0.36326444149017334, 0.08303964138031006, -0.17405928671360016, -0.1407238245010376, -0.18626302480697632, -0.25013700127601624, 0.053432997316122055, -0.13121537864208221, 0.2761894464492798, -0.0387551374733448, -0.16054247319698334, -0.18085181713104248, -0.03398444131016731, -0.04334283620119095, -0.24430732429027557, 0.19052915275096893, 0.21923376619815826, -0.02056444250047207, 0.00917668268084526, -0.38464683294296265, 0.1954902559518814, -0.33990055322647095, 0.14902959764003754, 0.3766458034515381, -0.028961535543203354, -0.1230589896440506, -0.160690575838089, 0.4276232421398163, -0.45429879426956177, 0.25331878662109375, 0.15987971425056458, 0.36672645807266235, -0.041791852563619614, -0.08109419047832489, -0.02481445111334324, 0.22950512170791626, -0.017447184771299362, -0.026006042957305908, 0.2808592617511749, -0.05253467336297035, 0.13927233219146729, -0.01833556592464447, -0.2593822181224823, 0.34304362535476685, -0.0029175356030464172, 0.17712999880313873, -0.15394999086856842, 0.17477378249168396, 0.3956955373287201, 0.0069522010162472725, -0.050217024981975555, -0.034189000725746155, 0.12340675294399261, -0.10207939147949219, -0.0764201432466507, 0.13179239630699158, 0.4616081416606903, -0.11031799018383026, 0.1956404447555542, -0.07921197265386581, 0.5336569547653198, -0.14131158590316772, 0.21647796034812927, 0.1342819631099701, 0.4172441065311432, 0.5113130807876587, 0.03623826801776886, 0.42383337020874023, 0.16187307238578796, 0.03718318045139313, -0.1396847814321518, 0.2729642987251282, 0.02368300035595894, 0.14025206863880157, 0.1115524023771286, -0.40557974576950073, -0.18116775155067444, -0.23967701196670532, 0.21206961572170258, 0.16309207677841187, -0.574859082698822, 0.06390910595655441, -0.23498481512069702, -0.29093602299690247, -0.04631322622299194, -0.12513181567192078, 0.0035556452348828316, -0.3662734627723694, 0.1468127816915512, 0.0895373672246933, -0.0432431623339653, -0.07006998360157013, 0.21424153447151184, 0.008535103872418404, 0.4734998345375061, -0.17179326713085175, 0.4661741852760315, -0.03063249960541725, -0.19008204340934753, 0.30944982171058655, 0.1377313733100891, -0.21626022458076477, 0.06382834166288376, 0.1412976086139679, -0.11919815838336945, -0.14062878489494324, 0.20291784405708313, 0.11739352345466614, 0.17837946116924286, -0.054787084460258484, 0.06428985297679901, 0.12288770079612732, 0.005700491368770599, -0.22166533768177032, 0.16216473281383514, -0.3555154800415039, -0.24305355548858643, 0.24446333944797516, 0.014247503131628036, -0.0549110472202301, 0.27648016810417175, -0.27274832129478455, 0.08063126355409622, -0.08640012890100479, 0.03699449449777603, -0.34434089064598083, -0.020575128495693207, -0.12944132089614868, 0.2141396552324295, -0.37452232837677, 0.4232056736946106, 0.38372498750686646, -0.10085352510213852, 0.08406165987253189, -0.06589601933956146, 0.009147971868515015, 0.46820494532585144, 0.490901380777359, 0.4085288643836975, 0.366131067276001, -0.33198684453964233, -0.20579136908054352, -0.3496466875076294, 0.29850149154663086, -0.17654316127300262, 0.14911717176437378, -0.2343333512544632, 0.18530789017677307, -0.026239193975925446, -0.1363687813282013, -0.028799615800380707, 0.09783594310283661, 0.2756507396697998, -0.09058631956577301, -0.04099772870540619, -0.21050262451171875, 0.4128827154636383, 0.21467219293117523, 0.21856728196144104, -0.2614130973815918, 0.13604965806007385, 0.43039074540138245, -0.17030510306358337, -0.33840814232826233, 0.06341029703617096, -0.14078186452388763, 0.04505321756005287, 0.09878242015838623, -0.18083477020263672, -0.2423257827758789, 0.1954571157693863, -0.23362377285957336, -0.341124564409256, -0.07301028072834015, 0.13373753428459167, -0.2072843760251999, -0.10165674984455109, -0.14960819482803345, -0.5695594549179077, -0.08592788875102997, -0.551599383354187, 0.07442036271095276, -0.017922021448612213, 0.05656535178422928, -0.019084099680185318, 0.05477795749902725, -0.06829147040843964, 0.299848735332489, 0.6751077175140381, 0.16965152323246002, -0.34739798307418823, -0.09932812303304672, -0.2067418396472931, -0.1269547939300537, 0.34842193126678467, -0.45787855982780457, -0.0796574205160141, -0.13704532384872437, 0.2346302568912506, -0.017211508005857468, -0.14382438361644745, -0.35202357172966003, 0.0844491571187973, 0.07715128362178802, 0.17480769753456116, -0.11047957092523575, -0.11587834358215332, -0.16084928810596466, -0.03602474927902222, -0.03756506368517876, 0.16867664456367493, 0.1751948595046997, 0.03817548602819443, 0.11315473914146423, -0.17127686738967896 ]
https://github.com/huggingface/datasets/issues/5584
Hi @manuaero Thank you for your interest in the COYO dataset. Our dataset provides the img-url and alt-text in the form of a parquet, so to utilize the coyo dataset you will need to download it directly. We provide a [guide](https://github.com/kakaobrain/coyo-dataset/blob/main/download/README.md) to download, so check it out. Thank you.
Unable to load coyo700M dataset
### Describe the bug Seeing this error when downloading https://huggingface.co/datasets/kakaobrain/coyo-700m: ```ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.``` Full stack trace ```Downloading and preparing dataset parquet/kakaobrain--coyo-700m to /root/.cache/huggingface/datasets/kakaobrain___parquet/kakaobrain--coyo-700m-ae729692ae3e0073/0.0.0/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec... Downloading data files: 100% 1/1 [00:00<00:00, 63.35it/s] Extracting data files: 100% 1/1 [00:00<00:00, 5.00it/s] --------------------------------------------------------------------------- ArrowInvalid Traceback (most recent call last) [/usr/local/lib/python3.8/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1859 _time = time.time() -> 1860 for _, table in generator: 1861 if max_shard_size is not None and writer._num_bytes > max_shard_size: 9 frames ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file. The above exception was the direct cause of the following exception: DatasetGenerationError Traceback (most recent call last) [/usr/local/lib/python3.8/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1890 if isinstance(e, SchemaInferenceError) and e.__context__ is not None: 1891 e = e.__context__ -> 1892 raise DatasetGenerationError("An error occurred while generating the dataset") from e 1893 1894 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths) DatasetGenerationError: An error occurred while generating the dataset``` ### Steps to reproduce the bug ``` from datasets import load_dataset hf_dataset = load_dataset("kakaobrain/coyo-700m") ``` ### Expected behavior The above commands load the dataset successfully. Or handles exception and continue loading the remainder. ### Environment info colab. any
49
Unable to load coyo700M dataset ### Describe the bug Seeing this error when downloading https://huggingface.co/datasets/kakaobrain/coyo-700m: ```ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.``` Full stack trace ```Downloading and preparing dataset parquet/kakaobrain--coyo-700m to /root/.cache/huggingface/datasets/kakaobrain___parquet/kakaobrain--coyo-700m-ae729692ae3e0073/0.0.0/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec... Downloading data files: 100% 1/1 [00:00<00:00, 63.35it/s] Extracting data files: 100% 1/1 [00:00<00:00, 5.00it/s] --------------------------------------------------------------------------- ArrowInvalid Traceback (most recent call last) [/usr/local/lib/python3.8/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1859 _time = time.time() -> 1860 for _, table in generator: 1861 if max_shard_size is not None and writer._num_bytes > max_shard_size: 9 frames ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file. The above exception was the direct cause of the following exception: DatasetGenerationError Traceback (most recent call last) [/usr/local/lib/python3.8/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id) 1890 if isinstance(e, SchemaInferenceError) and e.__context__ is not None: 1891 e = e.__context__ -> 1892 raise DatasetGenerationError("An error occurred while generating the dataset") from e 1893 1894 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths) DatasetGenerationError: An error occurred while generating the dataset``` ### Steps to reproduce the bug ``` from datasets import load_dataset hf_dataset = load_dataset("kakaobrain/coyo-700m") ``` ### Expected behavior The above commands load the dataset successfully. Or handles exception and continue loading the remainder. ### Environment info colab. any Hi @manuaero Thank you for your interest in the COYO dataset. Our dataset provides the img-url and alt-text in the form of a parquet, so to utilize the coyo dataset you will need to download it directly. We provide a [guide](https://github.com/kakaobrain/coyo-dataset/blob/main/download/README.md) to download, so check it out. Thank you.
[ -0.21805712580680847, -0.5286858081817627, 0.060260649770498276, 0.561558723449707, 0.11471913754940033, 0.1807262897491455, -0.2395106554031372, 0.4662606120109558, 0.04442295432090759, -0.05450949817895889, 0.1742170751094818, 0.2901957333087921, 0.05578949674963951, 0.13511259853839874, 0.207706019282341, 0.1971742808818817, 0.207182377576828, 0.01672060787677765, 0.11300855875015259, 0.02801401913166046, -0.1802278608083725, 0.14139871299266815, -0.10281196236610413, 0.26456591486930847, -0.16909663379192352, -0.08305419236421585, -0.03984324261546135, 0.2815351188182831, -0.5781556367874146, -0.580722451210022, 0.4061400294303894, -0.014080706983804703, 0.1305658519268036, 0.2437901645898819, -0.000119509466458112, 0.041976869106292725, 0.5428801774978638, -0.21470391750335693, -0.31582000851631165, -0.29715496301651, -0.5901641249656677, -0.32120946049690247, 0.01090635359287262, -0.09404876828193665, -0.10095540434122086, 0.131056547164917, -0.02766706980764866, 0.022723808884620667, 0.4963513910770416, 0.4692973792552948, 0.1253570020198822, 0.09670525044202805, 0.5082178115844727, 0.012322559952735901, 0.31892794370651245, 0.34400472044944763, -0.13919790089130402, 0.7258427739143372, 0.17127522826194763, 0.2170867621898651, 0.11663003265857697, 0.2427985668182373, 0.04966151714324951, -0.19128558039665222, 0.170525461435318, -0.10504201799631119, 0.31346070766448975, -0.10506610572338104, 0.2840190827846527, 0.2740901708602905, -0.02984267845749855, -0.23818179965019226, -0.30588632822036743, -0.09306039661169052, 0.1544327437877655, -0.5172455906867981, 0.27240365743637085, 0.5660251379013062, -0.23086553812026978, 0.20855851471424103, -0.0018667951226234436, -0.2536602020263672, -0.2344927191734314, 0.03289448097348213, -0.12917502224445343, 0.021996095776557922, -0.21986311674118042, 0.08766746520996094, 0.022203724831342697, -0.036440782248973846, -0.26654332876205444, 0.08749320358037949, -0.38688188791275024, 0.0679299533367157, -0.2501150071620941, -0.015661761164665222, -0.25494185090065, 0.3163056969642639, 0.2957584261894226, -0.31299522519111633, 0.27380451560020447, -0.010079133324325085, 0.3360418379306793, 0.2775106728076935, 0.18293572962284088, 0.023735590279102325, -0.18891248106956482, 0.0136803537607193, -0.06848399341106415, 0.508103609085083, 0.06505817174911499, -0.09361527860164642, -0.020240481942892075, -0.07048054784536362, -0.427465558052063, -0.15545836091041565, 0.3103051781654358, -0.45574072003364563, -0.5021217465400696, 0.15414926409721375, 0.20366886258125305, 0.18423472344875336, 0.24852833151817322, 0.5122474431991577, -0.028437837958335876, -0.0975022092461586, -0.04169527068734169, 0.3300844132900238, 0.014507725834846497, -0.6397998929023743, -0.17351645231246948, 0.2297734022140503, -0.24650833010673523, 0.21697214245796204, 0.18280987441539764, -0.22436028718948364, 0.3114165663719177, 0.1844261735677719, 0.04506000876426697, -0.31999754905700684, -0.20827344059944153, -0.15487709641456604, -0.13107654452323914, 0.2035188525915146, -0.33424389362335205, 0.04823845624923706, 0.2587750554084778, 0.1323791742324829, -0.06874042749404907, 0.026393920183181763, -0.5318061709403992, -0.2835259437561035, -0.023462476208806038, 0.11959715187549591, -0.24547895789146423, 0.021651916205883026, -0.6077723503112793, -0.06352696567773819, 0.21740099787712097, -0.1416793167591095, 0.02845592051744461, -0.18621835112571716, 0.09950493276119232, -0.23769576847553253, 0.20001155138015747, 0.3736268877983093, -0.1850297451019287, -0.10864798724651337, -0.08080531656742096, 0.0935981422662735, 0.2580658197402954, 0.2209712564945221, -0.3082578480243683, 0.07671255618333817, -0.272339403629303, -0.07968627661466599, 0.4936695992946625, -0.10313389450311661, -0.3571625351905823, -0.14942055940628052, -0.049911946058273315, 0.12451346218585968, 0.10315011441707611, -0.3723490238189697, 0.25106993317604065, 0.02962355688214302, 0.0019894391298294067, -0.022406309843063354, -0.10149962455034256, -0.15748627483844757, -0.45552709698677063, -0.4082316756248474, 0.16641665995121002, 0.190144345164299, 0.08529479801654816, -0.10712474584579468, 0.21542564034461975, -0.148639515042305, 0.19149284064769745, -0.039185114204883575, 0.11414948105812073, 0.2782352566719055, 0.08063439279794693, 0.12033838778734207, 0.01436099037528038, 0.09249109029769897, -0.16680817306041718, 0.42075860500335693, -0.13342541456222534, -0.039698343724012375, -0.6328863501548767, -0.00843898206949234, -0.41495129466056824, 0.2365894913673401, -0.3175058662891388, -0.3208455443382263, 0.08767706900835037, -0.02872948721051216, 0.2402072250843048, 0.09171955287456512, -0.2875714898109436, 0.46814125776290894, -0.15131182968616486, 0.2858056128025055, -0.3750218152999878, 0.2803286015987396, -0.09261902421712875, -0.17047443985939026, 0.07344631105661392, 0.3429029583930969, 0.26098284125328064, -0.3123897314071655, -0.1584620475769043, 0.3327575922012329, -0.07432262599468231, 0.0551932230591774, -0.09637418389320374, -0.26798129081726074, 0.23865902423858643, -0.28290605545043945, -0.007593807764351368, 0.09586510807275772, 0.1753663569688797, 0.15164150297641754, 0.01594342291355133, 0.3867057263851166, 0.14302918314933777, 0.156717449426651, 0.001297593116760254, -0.0697079598903656, 0.4070875644683838, 0.12765081226825714, 0.05676928907632828, -0.21942560374736786, 0.28905993700027466, -0.09060486406087875, 0.13100183010101318, -0.12283927947282791, -0.17708824574947357, 0.002471882849931717, 0.33765727281570435, -0.003582090139389038, -0.005233408883213997, 0.29961270093917847, -0.10048235207796097, -0.04590962454676628, 0.0021171942353248596, 0.21447636187076569, 0.21938329935073853, 0.06055512651801109, -0.22658881545066833, -0.08007104694843292, -0.05679339915513992, -0.01595471054315567, 0.269128680229187, 0.18854661285877228, 0.1771797388792038, 0.16641409695148468, 0.07413363456726074, -0.14879903197288513, -0.38143327832221985, -0.1361636072397232, 0.09717158228158951, 0.3765702247619629, -0.3320687413215637, 0.12451596558094025, -0.3725915253162384, 0.09295034408569336, -0.4299890697002411, -0.02100657857954502, -0.45909011363983154, -0.22728367149829865, -0.021651247516274452, 0.21456146240234375, 0.051069408655166626, -0.10643912106752396, -0.32786667346954346, 0.12926405668258667, -0.036366015672683716, 0.21553035080432892, -0.32260459661483765, -0.24464157223701477, -0.20839112997055054, -0.06484410911798477, 0.3644631803035736, 0.0005846358835697174, 0.30384302139282227, -0.3110657036304474, 0.13906700909137726, -0.1985272318124771, -0.1717866063117981, 0.17162735760211945, -0.18105448782444, 0.1310141682624817, 0.0028711408376693726, 0.4494441747665405, -0.11958395689725876, -0.11864820122718811, 0.4259319305419922, -0.0363880880177021, -0.2633378207683563, 0.17676116526126862, -0.018366467207670212, -0.14056067168712616, -0.03143846616148949, -0.09944725036621094, -0.39950624108314514, -0.2793406844139099, 0.21060608327388763, 0.2125754952430725, 0.0478612557053566, -0.05222664773464203, 0.07182247936725616, 0.17797109484672546, -0.26352208852767944, 0.39110827445983887, -0.11719172447919846, -0.40790605545043945, 0.2886333465576172, -0.11217431724071503, -0.29215532541275024, 0.23772236704826355, 0.050789766013622284, 0.5456376671791077, -0.024112867191433907, -0.43779242038726807, 0.24949932098388672, 0.17247742414474487, -0.07468751817941666, -0.1245618611574173, -0.15654264390468597, 0.03577003628015518, -0.1533554345369339, 0.11034366488456726, -0.04501214995980263, 0.06795641034841537, -0.10405004769563675, 0.059221528470516205, 0.3871927857398987, -0.08074246346950531, 0.6091341972351074, -0.06880059838294983, 0.609640896320343, 0.23589417338371277, 0.01732744090259075, 0.390738844871521, 0.027235122397542, 0.1897112876176834, -0.21113207936286926, -0.32389330863952637, -0.14763174951076508, -0.19644704461097717, 0.14596208930015564, 0.3021581172943115, 0.13709065318107605, -0.08068414032459259, -0.21190330386161804, -0.2751085162162781, -0.37944144010543823, -0.38435614109039307, -0.07452995330095291, 0.3770209848880768, 0.13649654388427734, 0.092852383852005, -0.0066009461879730225, 0.01892004907131195, -0.17029227316379547, 0.18271423876285553, 0.4756682217121124, -0.04105508700013161, 0.23515422642230988, 0.22666366398334503, -0.5274940133094788, -0.3188503086566925, 0.14623448252677917, -0.05150921642780304, 0.362979918718338, 0.075374074280262, -0.016123749315738678, 0.2676595449447632, -0.31312572956085205, 0.740314245223999, 0.15421505272388458, 0.2816649079322815, -0.019316237419843674, 0.08464851975440979, -0.37147068977355957, -0.1470974087715149, 0.08305654674768448, -0.011408299207687378, 0.4586978554725647, 0.2648659944534302, -0.47040069103240967, -0.14011532068252563, 0.10030785202980042, 0.30804213881492615, -0.16484111547470093, -0.039539508521556854, -0.3221752941608429, -0.05112970247864723, -0.4902394413948059, 0.06131524220108986, -0.10031319409608841, 0.23818185925483704, 0.021142996847629547, 0.17201034724712372, -0.08537925034761429, 0.036298222839832306, -0.010952550917863846, 0.26461806893348694, 0.44666287302970886, -0.19235602021217346, 0.18774032592773438, 0.2287682294845581, 0.6071696281433105, 0.39279600977897644, 0.6349210143089294, 0.2894805073738098, -0.33863329887390137, -0.11676058173179626, -0.03695261478424072, 0.022752810269594193, 0.32280534505844116, -0.139956533908844, 0.0038352645933628082, -0.028479404747486115, 0.09597298502922058, -0.033153384923934937, -0.011418811976909637, 0.21154703199863434, -0.19510096311569214, -0.6364924907684326, -0.0040493011474609375, 0.5814428925514221, 0.07275766134262085, 0.017764046788215637, -0.1566007137298584, 0.7006419897079468, -0.2621627151966095, 0.32985520362854004, 0.15827497839927673, 1.1995134353637695, 0.030475545674562454, 0.2030942738056183, 0.43453651666641235, -0.12352540343999863, 0.27608662843704224, -0.2790243923664093, 0.01452217623591423, -0.3375508189201355, -0.09927411377429962, -0.04575009644031525, -0.0685238465666771, 0.28806072473526, 0.005919835064560175, -0.15063628554344177, 0.2624739110469818, 0.14842262864112854, 0.24039079248905182, -0.11089874058961868, -0.030660457909107208, 0.10743940621614456, 0.022330734878778458, -0.14928892254829407, 0.06310229003429413, -0.16911301016807556, 0.08332234621047974, -0.12974131107330322, -0.24154603481292725, -0.25982195138931274, -0.2553003430366516, -0.29219895601272583, 0.13221019506454468, -0.1205633208155632, 0.1617462933063507, 0.05900716036558151, -0.12400539964437485, 0.16873444616794586, -0.21845871210098267, 0.1957697570323944, 0.01379408873617649, -0.42949461936950684, 0.22326123714447021, 0.13526278734207153, -0.3709052503108978, -0.05260448530316353, 0.16477924585342407, 0.12071776390075684, -0.13205091655254364, -0.03166265785694122, -0.021871689707040787, -0.179193913936615, -0.023729339241981506, 0.23914551734924316, 0.05095317214727402, 0.013218680396676064, -0.1539859175682068, -0.40664640069007874, -0.2915283441543579, 0.24632224440574646, -0.3231704533100128, 0.06276082992553711, 0.1917838156223297, -0.18707595765590668, -0.26564347743988037, 0.04855789244174957, -0.288881778717041, -0.22706016898155212, 0.3361772894859314, -0.1588282585144043, -0.10931448638439178, 0.3466699421405792, 0.170229971408844, -0.2548972964286804, -0.10907185077667236, -0.05702769383788109, 0.15737256407737732, -0.8856262564659119, -0.01620003581047058, 0.07640723884105682, 0.18513989448547363, 0.023890133947134018, 0.18831689655780792, 0.4394863247871399, -0.24140481650829315, 0.10583889484405518, -0.7151409983634949, -0.16484668850898743, 0.1715218871831894, -0.03448181599378586, 0.0017439806833863258, 0.008147358894348145, -0.15326045453548431, -0.10628598928451538, -0.029690802097320557, -0.20897194743156433, 0.20939496159553528, 0.09773647040128708, 0.05897053703665733, 0.5963501930236816, 0.1173258125782013, 0.10983796417713165, 0.024997077882289886, 0.08482030034065247, 0.25036534667015076, -0.10156789422035217, -0.071052685379982, -0.02470606565475464, 0.1318303942680359, -0.06969565153121948, 0.05646134167909622, -0.07982462644577026, -0.014176987111568451, 0.036653339862823486, 0.06269200146198273, 0.10046736150979996, -0.18751627206802368, 0.04826094210147858, -0.3872632384300232, 0.17769943177700043, 0.12734416127204895, -0.30402204394340515, 0.227995365858078, 0.23368482291698456, 0.2598016560077667, -0.06196317449212074, 0.21708838641643524, -0.35208606719970703, -0.0388951376080513, -0.11975035071372986, 0.24568508565425873, -0.13071738183498383, -0.07025617361068726, 0.5256714224815369, -0.4471752643585205, 0.0771932452917099, 0.3769197463989258, 0.09806475043296814, 0.37258651852607727, -0.13860276341438293, 0.015928715467453003, 0.18858236074447632, 0.0994977056980133, -0.2631034255027771, -0.04304682835936546, 0.3070392310619354, -0.11616383492946625, -0.11696809530258179, 0.2886113226413727, 0.09663085639476776, -0.29277437925338745, -0.060790352523326874, 0.09744571149349213, 0.29157477617263794, 0.08626173436641693, 0.28336775302886963, 0.3798965811729431, 0.14940811693668365, -0.0448819175362587, 0.17238299548625946, 0.32667267322540283, 0.2779209315776825, 0.3686540424823761, -0.26825305819511414, 0.14290040731430054, 0.16866469383239746, 0.07694079726934433, -0.11429587006568909, -0.35315990447998047, 0.07010531425476074, 0.26525452733039856, -0.08154715597629547, -0.13159270584583282, -0.013221889734268188, 0.30878695845603943, 0.3095598816871643, -0.43867093324661255, -0.4303736686706543, 0.09411908686161041, -0.1756753772497177, -0.0009629055857658386, -0.08990088850259781, -0.41910314559936523, -0.43318718671798706, 0.06620635092258453, -0.07551009953022003, -0.037813056260347366, -0.22470484673976898, 0.3481389880180359, -0.008278299123048782, -0.2589997947216034, -0.036540813744068146, 0.33280256390571594, 0.07585900276899338, -0.27879777550697327, 0.36961403489112854, 0.15463361144065857, -0.28817296028137207, 0.17386001348495483, -0.11102908104658127, 0.4844735264778137, 0.20946265757083893, -0.009195365011692047, -0.01789509691298008, 0.09508635848760605, -0.060592975467443466, 0.06162650138139725, 0.27545028924942017, 0.15462036430835724, 0.13428783416748047, 0.33656030893325806, 0.09089759737253189, -0.10340690612792969, -0.1031540185213089, 0.06700421869754791, 0.3620114326477051, 0.08714719116687775, 0.14949831366539001, -0.37464070320129395, -0.156691312789917, -0.1344911754131317, -0.08783614635467529, -0.4209321141242981, -0.02432193234562874, 0.028201177716255188, 0.023597661405801773, 0.04119671508669853, -0.17190486192703247, 0.05329916253685951, -0.04777868464589119, 0.5108444094657898, 0.35594886541366577, -0.23670288920402527, -0.2922588586807251, -0.20501479506492615, -0.43303030729293823, 0.19408485293388367, -0.18393123149871826, 0.023383796215057373, 0.3270866870880127, -0.013199973851442337, -0.06681990623474121, 0.07941065728664398, 0.2218114584684372, 0.33961009979248047, 0.020359240472316742, 0.19823750853538513, -0.09324922412633896, -0.14050517976284027, 0.052340928465127945, -0.10887248069047928, -0.07234038412570953, -0.16916492581367493, 0.29758188128471375, -0.504633367061615, -0.027425169944763184, 0.06983201205730438, 0.0236760675907135, -0.34405481815338135, -0.5925655364990234, 0.3016349673271179, -0.03466477990150452, 0.25264787673950195, 0.059873491525650024, -0.24042382836341858, -0.3848623037338257, -0.23359401524066925, 0.09645427763462067, 0.7154852151870728, 0.07468245923519135, 0.5210121870040894, -0.002271752804517746, -0.32587331533432007, -0.23312358558177948, 0.058331768959760666, -0.08595871925354004, -0.4495479166507721, -0.13439619541168213, 0.053344592452049255, -0.09649868309497833, 0.04981237277388573, 0.10176826268434525, 0.017687790095806122, 0.027250558137893677, 0.07964112609624863, 0.0960882157087326, -0.3340567648410797, 0.4829387068748474, -0.392312228679657, -0.23563160002231598, 0.08279874920845032, 0.3920975625514984, 0.11442504823207855, -0.022122357040643692, -0.5014082193374634, 0.16636823117733002, 0.1088719293475151, 0.045210499316453934, -0.27166563272476196, 0.10982179641723633, -0.021859677508473396, -0.14954787492752075, -0.0754203200340271, 0.43232670426368713, 0.039150360971689224, -0.11999911069869995, 0.21367280185222626, -0.04250333458185196 ]
https://github.com/huggingface/datasets/issues/5577
Hi! I've merged a PR to use `int32` instead of `int8` for `reddit_scores`, so it should work now.
Cannot load `the_pile_openwebtext2`
### Describe the bug I met the same bug mentioned in #3053 which is never fixed. Because several `reddit_scores` are larger than `int8` even `int16`. https://huggingface.co/datasets/the_pile_openwebtext2/blob/main/the_pile_openwebtext2.py#L62 ### Steps to reproduce the bug ```python3 from datasets import load_dataset dataset = load_dataset("the_pile_openwebtext2") ``` ### Expected behavior load as normal. ### Environment info - `datasets` version: 2.10.0 - Platform: Linux-5.4.143.bsk.7-amd64-x86_64-with-glibc2.31 - Python version: 3.9.2 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
18
Cannot load `the_pile_openwebtext2` ### Describe the bug I met the same bug mentioned in #3053 which is never fixed. Because several `reddit_scores` are larger than `int8` even `int16`. https://huggingface.co/datasets/the_pile_openwebtext2/blob/main/the_pile_openwebtext2.py#L62 ### Steps to reproduce the bug ```python3 from datasets import load_dataset dataset = load_dataset("the_pile_openwebtext2") ``` ### Expected behavior load as normal. ### Environment info - `datasets` version: 2.10.0 - Platform: Linux-5.4.143.bsk.7-amd64-x86_64-with-glibc2.31 - Python version: 3.9.2 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 Hi! I've merged a PR to use `int32` instead of `int8` for `reddit_scores`, so it should work now.
[ -0.09743805229663849, -0.25990110635757446, -0.01666083186864853, 0.7843768000602722, 0.14893147349357605, 0.11092899739742279, 0.2464836984872818, 0.3751559257507324, 0.3685991168022156, -0.06786507368087769, -0.32115405797958374, 0.10087975114583969, 0.1531551480293274, 0.2092667520046234, -0.03954538702964783, 0.09370589256286621, -0.14504656195640564, -0.057242732495069504, -0.04493177309632301, 0.004570811986923218, -0.33043211698532104, 0.009150339290499687, -0.40116411447525024, 0.01859239488840103, -0.11238957196474075, 0.3674142062664032, 0.06821360439062119, 0.4223805367946625, -0.12075955420732498, -0.20134282112121582, 0.19017831981182098, -0.0675414651632309, 0.09606023132801056, 0.7093843817710876, -0.00011039967648684978, -0.1545494943857193, 0.21678751707077026, -0.013747498393058777, -0.1441517323255539, -0.35275018215179443, 0.13598234951496124, -0.3016226291656494, 0.00814734399318695, -0.2374948263168335, 0.07042352855205536, -0.34872952103614807, -0.08610472828149796, -0.03983920067548752, 0.2480754852294922, 0.12944462895393372, 0.21131402254104614, 0.3285462260246277, 0.35364532470703125, -0.025750476866960526, 0.45526599884033203, -0.15107078850269318, -0.06015670672059059, 0.4401257634162903, 0.05806785076856613, 0.2129000425338745, -0.011674344539642334, -0.03714864328503609, -0.04212228208780289, 0.010801531374454498, 0.015630187466740608, 0.05866928771138191, 0.1516476273536682, -0.06059302017092705, -0.006767189130187035, 0.2526121437549591, 0.21338734030723572, -0.041027750819921494, -0.2609071135520935, -0.1466619074344635, -0.1802080273628235, -0.21427156031131744, 0.19964691996574402, 0.2623976767063141, 0.20670202374458313, 0.14273184537887573, -0.08261017501354218, 0.12600508332252502, -0.15518420934677124, 0.29528433084487915, -0.01002655178308487, 0.1981974095106125, -0.2210523933172226, 0.1767394095659256, 0.19558177888393402, -0.1733488291501999, 0.045639537274837494, 0.24097992479801178, -0.0892195850610733, 0.1590641289949417, -0.24055828154087067, 0.06662338972091675, 0.08065435290336609, -0.056421421468257904, 0.25860264897346497, 0.09739378839731216, 0.1310867965221405, 0.22683711349964142, -0.2332099974155426, 0.08867307007312775, 0.3972318470478058, 0.1727023422718048, -0.21452641487121582, 0.05279199779033661, 0.33042988181114197, 0.1644565612077713, -0.14991843700408936, -0.18046003580093384, -0.19510817527770996, -0.43049415946006775, 0.11759737879037857, -0.17670780420303345, 0.44493693113327026, -0.271393358707428, -0.3711118698120117, 0.054169923067092896, 0.16180160641670227, -0.05174800381064415, 0.07243557274341583, 0.34666183590888977, -0.1513364613056183, 0.300729900598526, 0.17817160487174988, 0.4869798719882965, -0.047881606966257095, -0.0967826396226883, -0.15877032279968262, 0.00972031056880951, 0.07041431963443756, -0.0872114896774292, 0.3143841624259949, -0.4547252953052521, 0.5674077868461609, 0.14896801114082336, 0.6579990386962891, -0.3279643654823303, -0.31973764300346375, -0.018971804529428482, 0.16662666201591492, 0.20500223338603973, 0.014418244361877441, 0.07787266373634338, 0.2566035985946655, -0.028788864612579346, -0.014342516660690308, 0.10194440931081772, -0.20044732093811035, -0.2801936864852905, -0.18843922019004822, 0.10391589999198914, -0.2031383365392685, -0.03874393180012703, -0.34533068537712097, -0.16748586297035217, 0.023106517270207405, -0.03903194144368172, -0.03261162340641022, -0.12327045202255249, 0.06073473393917084, -0.18576088547706604, 0.122052401304245, 0.2162550687789917, -0.1212066113948822, 0.2277592122554779, 0.01404150202870369, 0.251835435628891, 0.011551663279533386, 0.3239942789077759, -0.20271311700344086, -0.3844032883644104, -0.2219316065311432, 0.025571808218955994, 0.31668996810913086, -0.28542277216911316, -0.549988865852356, 0.058492135256528854, 0.019983574748039246, 0.07244232296943665, 0.061418093740940094, -0.02584870718419552, -0.10948328673839569, -0.2541900873184204, 0.0584724098443985, 0.27137666940689087, 0.15624003112316132, 0.13408911228179932, -0.3803693354129791, -0.3329435884952545, 0.22678515315055847, 0.28568845987319946, 0.128501757979393, -0.21092307567596436, 0.07374007254838943, -0.10892230272293091, 0.32392972707748413, 0.10532356798648834, -0.05570710450410843, -0.23904018104076385, 0.2512313723564148, 0.20362600684165955, 0.10421299934387207, -0.3884763717651367, 0.010941652581095695, 0.22911497950553894, -0.10755924135446548, -0.17963933944702148, 0.45834434032440186, -0.018754050135612488, -0.6928477883338928, -0.01901867613196373, -0.006624625995755196, 0.06529193371534348, 0.037408918142318726, -0.08042467385530472, 0.17258140444755554, -0.2718666195869446, -0.3288264274597168, 0.017014795914292336, -0.186832994222641, 0.16273967921733856, 0.034952327609062195, 0.016202203929424286, -0.07869698852300644, -0.16990435123443604, 0.172382652759552, 0.05516543239355087, 0.1683824062347412, -0.07219168543815613, -0.1662764996290207, 0.2588440179824829, -0.33603575825691223, -0.12881851196289062, 0.004132844507694244, 0.0983312651515007, 0.18689541518688202, -0.3020077347755432, 0.2979259192943573, 0.36774152517318726, 0.14135369658470154, -0.017064452171325684, 0.08585180342197418, 0.20525075495243073, 0.14001919329166412, 0.054312821477651596, -0.05227254703640938, -0.14603102207183838, 0.13382771611213684, -0.04441644996404648, 0.10747327655553818, -0.15257586538791656, -0.014156661927700043, 0.04385412484407425, 0.2204766720533371, -0.023828446865081787, -0.03763871639966965, 0.045746371150016785, 0.25963035225868225, 0.15514853596687317, 0.14514127373695374, 0.4699530601501465, -0.10491593927145004, -0.04081493988633156, -0.5495645999908447, -0.33813896775245667, 0.3552949130535126, 0.20593199133872986, -0.019453205168247223, 0.03316842019557953, 0.051750507205724716, -0.16454999148845673, 0.25092655420303345, 0.20139743387699127, 0.3263702690601349, 0.24591387808322906, 0.3208458423614502, 0.06209553778171539, -0.30229589343070984, 0.011107496917247772, -0.06315367668867111, 0.08159958571195602, -0.42220020294189453, -0.011862579733133316, 0.03803443908691406, -0.0034800395369529724, -0.0056950245052576065, -0.08680219948291779, -0.18872499465942383, -0.20504961907863617, -0.12827403843402863, 0.23183301091194153, -0.10315699130296707, -0.11271900683641434, 0.09259752929210663, 0.24501186609268188, 0.14489102363586426, 0.4223650097846985, -0.1285208761692047, 0.09036393463611603, -0.2821023464202881, -0.030213894322514534, 0.19364693760871887, -0.2775171399116516, 0.22887161374092102, -0.07790809124708176, -0.1495053619146347, -0.16836243867874146, -0.5258381366729736, -0.1711394339799881, 0.051933255046606064, 0.49650079011917114, 0.04005984216928482, 0.3315609097480774, -0.1230587437748909, -0.1378374695777893, 0.3056774437427521, -0.2747514843940735, -0.049598291516304016, 0.0871405303478241, 0.04603863134980202, 0.17151886224746704, 0.004387266933917999, -0.4353415071964264, 0.06901305168867111, -0.4925398528575897, 0.5143952369689941, 0.11184268444776535, 0.06829343736171722, 0.18473157286643982, 0.16613520681858063, 0.1655053198337555, 0.24237172305583954, 0.2556045353412628, -0.31801941990852356, -0.502698540687561, 0.5486791729927063, -0.23231877386569977, -0.4882016181945801, -0.10732010006904602, 0.28184881806373596, -0.1194228082895279, -0.25730159878730774, -0.4120236039161682, -0.0003406219184398651, -0.2796427607536316, -0.1250823438167572, -0.16717524826526642, 0.3522650897502899, -0.1920202672481537, -0.3046877384185791, -0.15034246444702148, -0.017364077270030975, -0.22399818897247314, 0.007599793374538422, 0.3733904957771301, 0.08583979308605194, -0.13416936993598938, 0.34569424390792847, -0.1518934816122055, 0.165428027510643, 0.1633356660604477, 0.11979232728481293, 0.40187689661979675, 0.276835560798645, 0.21671077609062195, -0.10938400030136108, -0.25833860039711, 0.012354951351881027, -0.13953855633735657, 0.14423306286334991, 0.49598854780197144, 0.1337355226278305, 0.012881945818662643, -0.20837782323360443, -0.15996646881103516, -0.41945087909698486, -0.07423684746026993, 0.08021965622901917, 0.012756061740219593, -0.21497072279453278, 0.037112414836883545, -0.18387088179588318, -0.25559550523757935, -0.2365880012512207, -0.005743451416492462, -0.14133277535438538, 0.027208492159843445, -0.1316259503364563, 0.14539125561714172, 0.11457382142543793, -0.2477448433637619, 0.4071725606918335, -0.13111144304275513, 0.2158919721841812, 0.1805688738822937, -0.24368196725845337, 0.038349736481904984, 0.07005496323108673, 0.5168310403823853, 0.14965124428272247, 0.3526449203491211, 0.14276233315467834, 0.03438153862953186, -0.7929544448852539, -0.07049337774515152, -0.15807116031646729, 0.07134158909320831, 0.5958103537559509, 0.4786522388458252, -0.4324391484260559, 0.10495694726705551, 0.5158026218414307, 0.24209481477737427, -0.042464450001716614, -0.4930160343647003, -0.5140717625617981, -0.29167109727859497, -0.1811402440071106, -0.02448873594403267, 0.4802877902984619, 0.43060001730918884, -0.4685874283313751, -0.1668740212917328, -0.2871328592300415, -0.34071266651153564, 0.2874813675880432, -0.09737546741962433, 0.28589874505996704, 0.247088223695755, 0.1705729365348816, 0.019409045577049255, 0.05643695220351219, -0.2280653864145279, 0.5621803402900696, 0.33423444628715515, -0.37857988476753235, 0.045339640229940414, -0.0762995257973671, 0.30988389253616333, 0.3580304980278015, 0.023769166320562363, -0.20074883103370667, -0.29020580649375916, 0.2162398397922516, -0.1434081643819809, 0.13984179496765137, 0.10979516804218292, -0.09318239986896515, -0.11287447065114975, -0.2997692823410034, 0.6407526731491089, -0.11514447629451752, 0.06419934332370758, 0.475576788187027, 0.11558403819799423, -0.036792706698179245, 0.3842419385910034, 0.00529344379901886, 1.0793431997299194, -0.42536991834640503, -0.15797200798988342, 0.09754560887813568, -0.25835293531417847, -0.011151522397994995, -0.08727072924375534, -0.0729827955365181, -0.39610958099365234, -0.39076292514801025, 0.31319659948349, -0.12848663330078125, -0.1258380115032196, 0.4555928111076355, 0.05683853477239609, 0.08417890965938568, -0.28273242712020874, -0.15302801132202148, 0.050592102110385895, 0.2593446373939514, -0.1523772031068802, -0.07161102443933487, -0.7340555191040039, 0.07924588024616241, -0.03167540952563286, 0.033148426562547684, -0.14063356816768646, -0.002991132438182831, 0.023994892835617065, -0.17333221435546875, -0.18626445531845093, 0.1970364898443222, -0.030710091814398766, 0.28689780831336975, 0.08764161914587021, -0.11926370859146118, 0.16203847527503967, 0.28164172172546387, 0.45232558250427246, 0.1341613382101059, -0.1545630842447281, -0.016372153535485268, -0.05437185615301132, -0.2117728888988495, 0.17097532749176025, 0.2057795375585556, -0.026392944157123566, 0.008954480290412903, -0.4550934135913849, 0.1915341019630432, 0.0702136754989624, -0.26690858602523804, 0.2672988176345825, 0.24768534302711487, 0.2235562801361084, -0.32482969760894775, -0.1816350221633911, -0.22439444065093994, 0.20892971754074097, -0.2816164791584015, 0.11814756691455841, 0.2507404685020447, -0.04770030826330185, -0.008132487535476685, 0.3205675482749939, -0.580288827419281, -0.1377374231815338, 0.49280163645744324, -0.21600893139839172, 0.13985900580883026, 0.2584952116012573, 0.3332873284816742, -0.10145474970340729, -0.04939793050289154, 0.07174500823020935, -0.16681118309497833, -0.5157852172851562, 0.33564531803131104, 0.04397127777338028, -0.019140005111694336, -0.1599087119102478, 0.2135438174009323, 0.2558368444442749, 0.017959628254175186, 0.08226998150348663, -0.5563072562217712, -0.10956504940986633, -0.003550097346305847, 0.012063114903867245, 0.016193389892578125, 0.04208949953317642, -0.2035764902830124, -0.07394049316644669, 0.05158650875091553, -0.28370171785354614, 0.3746132254600525, -0.08746901154518127, -0.10942277312278748, -0.044312529265880585, -0.13237501680850983, 0.22753454744815826, 0.2474895417690277, 0.06346970051527023, 0.026191141456365585, -0.05031854286789894, -0.21437892317771912, -0.28419798612594604, 0.14791768789291382, -0.11312980949878693, -0.26960238814353943, -0.14953075349330902, -0.19518396258354187, -0.1011563241481781, -0.2236153781414032, 0.2268785834312439, 0.20456406474113464, 0.20658323168754578, -0.0006395615637302399, 0.1660318523645401, -0.0854489803314209, -0.07396526634693146, 0.12190690636634827, -0.006228059530258179, 0.376769483089447, 0.19946572184562683, 0.07199931889772415, 0.1902037411928177, 0.014146938920021057, -0.0504341684281826, -0.14844022691249847, 0.27047598361968994, -0.07396993786096573, 0.3631729483604431, -0.3013758361339569, 0.017580904066562653, 0.5751029849052429, 0.08581459522247314, 0.416128933429718, -0.19342811405658722, 0.06573904305696487, -0.07319249212741852, 0.19733375310897827, -0.36163362860679626, 0.2574809491634369, -0.0477934330701828, 0.045980848371982574, -0.25387153029441833, 0.1577332317829132, 0.11652839928865433, -0.155026376247406, -0.2657645344734192, 0.24873991310596466, 0.390531986951828, 0.160769522190094, 0.11275267601013184, -0.007892189547419548, -0.07508291304111481, -0.2935600280761719, 0.28418824076652527, -0.03967615216970444, 0.3107141852378845, -0.14476068317890167, -0.039294227957725525, 0.0462181493639946, -0.5208279490470886, 0.2585557699203491, -0.18503668904304504, -0.28881561756134033, 0.1904798150062561, 0.5871045589447021, -0.026453275233507156, -0.0808696448802948, -0.058860357850790024, 0.5438184142112732, -0.19900500774383545, 0.1766776442527771, -0.5173319578170776, 0.14905664324760437, -0.08409992605447769, -0.10398896038532257, 0.2970162034034729, -0.3121887445449829, -0.1584409922361374, 0.19722603261470795, -0.13221263885498047, -0.14028337597846985, 0.12718850374221802, 0.17233721911907196, -0.21234217286109924, -0.5056359767913818, -0.03382113575935364, 0.2771170735359192, 0.23453707993030548, -0.38860177993774414, 0.10593143105506897, 0.37205970287323, -0.18523815274238586, 0.25771617889404297, 0.7170888185501099, 0.3047218918800354, 0.32648423314094543, -0.14523683488368988, 0.0452415831387043, 0.12333904206752777, -0.012792672961950302, -0.26273423433303833, 0.0632174015045166, 0.005877155810594559, 0.2955794930458069, 0.23566852509975433, 0.15176929533481598, -0.16404612362384796, -0.3534660041332245, 0.0027599669992923737, 0.3270304203033447, -0.45495346188545227, 0.11372122168540955, -0.2678930461406708, -0.13508456945419312, -0.01334735844284296, -0.11148740351200104, -0.3987303078174591, -0.1170906275510788, 0.23748275637626648, -0.04393963888287544, 0.14582256972789764, -0.06507709622383118, 0.08752961456775665, -0.04729229211807251, 0.5194424986839294, 0.40702176094055176, -0.2628244161605835, -0.2572600841522217, -0.29174357652664185, -0.6273718476295471, 0.35051658749580383, 0.16799743473529816, 0.16871404647827148, 0.24261757731437683, 0.30800339579582214, -0.02847161889076233, 0.0093738604336977, 0.16341274976730347, -0.04059186577796936, 0.01846282184123993, -0.09348277747631073, -0.28819525241851807, -0.12443242967128754, 0.0669751688838005, 0.2197725474834442, 0.09518088400363922, -0.12187909334897995, -0.04435375705361366, -0.25902557373046875, 0.030145034193992615, -0.3250746428966522, 0.12642091512680054, -0.1018320769071579, -0.07472459971904755, 0.6069633364677429, 0.02324202097952366, 0.12223681062459946, 0.009226188063621521, -0.11652444303035736, -0.22028225660324097, -0.3011099696159363, 0.14097745716571808, 0.43378570675849915, -0.17163212597370148, 0.05729108303785324, -0.19724774360656738, -0.14594286680221558, -0.014296121895313263, 0.08436818420886993, -0.19752077758312225, -0.3192426860332489, -0.2287750542163849, -0.25092464685440063, -0.0913233608007431, -0.06994651257991791, -0.03123939037322998, 0.08998280763626099, -0.1893191635608673, -0.03367139399051666, 0.07813535630702972, -0.4558643400669098, 0.47230562567710876, -0.21089625358581543, -0.339594304561615, -0.1359744369983673, 0.5322199463844299, -0.1145186722278595, 0.03262384980916977, -0.5003728270530701, 0.3420119881629944, 0.3607112467288971, 0.3470225930213928, -0.34384697675704956, 0.29128870368003845, -0.4892379939556122, -0.10786011070013046, -0.1097298115491867, 0.3985700309276581, 0.14680644869804382, -0.09291161596775055, -0.021121010184288025, -0.05167108401656151 ]
https://github.com/huggingface/datasets/issues/5575
Hi! Indeed it would be useful to support this. PyArrow natively supports schema-level and column-level metadata, so implementing this should be straightforward. The API I have in mind would work as follows: ```python col_feature = Value("string", metadata="Some column-level metadata") features = Features({"col": col_feature}, metadata="Some schema-level metadata") ``` WDYT?
Metadata for each column
### Feature request Being able to put some metadata for each column as a string or any other type. ### Motivation I will bring the motivation by an example, lets say we are experimenting with embedding produced by some image encoder network, and we want to iterate through a couple of preprocessing and see which one works better in our downstream task, here as workaround right now what I do is the compute the hash of the preprocessing that the images went through as part of the new columns name, it would be nice to attach some kinda meta data in these scenarios to the each columns. metadata ### Your contribution Maybe we could map another relational like database as the metadata?
48
Metadata for each column ### Feature request Being able to put some metadata for each column as a string or any other type. ### Motivation I will bring the motivation by an example, lets say we are experimenting with embedding produced by some image encoder network, and we want to iterate through a couple of preprocessing and see which one works better in our downstream task, here as workaround right now what I do is the compute the hash of the preprocessing that the images went through as part of the new columns name, it would be nice to attach some kinda meta data in these scenarios to the each columns. metadata ### Your contribution Maybe we could map another relational like database as the metadata? Hi! Indeed it would be useful to support this. PyArrow natively supports schema-level and column-level metadata, so implementing this should be straightforward. The API I have in mind would work as follows: ```python col_feature = Value("string", metadata="Some column-level metadata") features = Features({"col": col_feature}, metadata="Some schema-level metadata") ``` WDYT?
[ 0.31374505162239075, 0.2043984830379486, -0.048340342938899994, -0.16208288073539734, 0.5069149136543274, 0.16051575541496277, 0.2171948254108429, 0.3599666655063629, -0.4245319068431854, 0.15107259154319763, 0.16561932861804962, 0.3521379828453064, -0.23885691165924072, 0.4132704734802246, 0.1671866774559021, -0.508068323135376, 0.09846772998571396, 0.20880702137947083, 0.09775052219629288, 0.34851694107055664, -0.07810649275779724, -0.030970875173807144, 0.21595340967178345, 0.09751112014055252, -0.23759698867797852, 0.07128117978572845, -0.36306577920913696, -0.19098347425460815, -0.2717289328575134, -0.39055660367012024, -0.3463227152824402, 0.051209524273872375, 0.09739869087934494, -0.04405941069126129, -0.00011602112499531358, -0.16312561929225922, 0.01646346226334572, -0.09719283878803253, -0.19057300686836243, -0.28849220275878906, 0.18879938125610352, -0.21654532849788666, 0.04011114686727524, -0.31581124663352966, 0.11060067266225815, -0.1937730610370636, -0.172939270734787, -0.16843971610069275, -0.21897906064987183, -0.06717593222856522, 0.15221506357192993, -0.03788568452000618, 0.18351104855537415, 0.142720028758049, 0.6907684206962585, 0.3538394570350647, -0.43060776591300964, 0.15064600110054016, 0.4342365264892578, -0.29367122054100037, 0.19053006172180176, 0.35492807626724243, -0.17565438151359558, -0.15978631377220154, 0.2843455374240875, 0.47720402479171753, 0.24242310225963593, -0.03109317272901535, 0.0375492163002491, 0.09753778576850891, 0.48840945959091187, -0.4235036075115204, -0.38361987471580505, -0.07049407064914703, 0.04722132161259651, -0.32528942823410034, -0.1486814171075821, 0.5607176423072815, 0.08393296599388123, 0.146561861038208, 0.022621046751737595, 0.16072651743888855, -0.1171884536743164, 0.0765700563788414, -0.13988414406776428, 0.4515034258365631, 0.10049217194318771, -0.006327509880065918, -0.1451195776462555, -0.06717386841773987, -0.02681121975183487, 0.11731553077697754, 0.08129991590976715, 0.283311665058136, 0.11219320446252823, -0.21559417247772217, -0.03070520982146263, -0.10990793257951736, 0.017033658921718597, 0.05920266732573509, 0.08177973330020905, -0.11869543790817261, 0.06165245175361633, 0.23427817225456238, 0.0704791247844696, -0.30972421169281006, 0.14807458221912384, -0.27367451786994934, 0.21656091511249542, -0.3229295015335083, 0.19432976841926575, -0.20293457806110382, 0.051547177135944366, 0.6057823896408081, 0.20733928680419922, -0.072602778673172, 0.25157955288887024, 0.07847876846790314, 0.03795687109231949, 0.12985137104988098, -0.33442068099975586, -0.02565605938434601, -0.28302237391471863, 0.026170536875724792, 0.014160264283418655, -0.14661091566085815, -0.10280553251504898, 0.16961508989334106, 0.45426151156425476, -0.10396793484687805, 0.05088725686073303, 0.1970493495464325, -0.111671082675457, 0.40317389369010925, 0.13384495675563812, -0.055541906505823135, 0.05132348835468292, 0.08742327988147736, 0.06433645635843277, -0.22209808230400085, 0.11241079121828079, -0.009327694773674011, -0.04509928822517395, 0.22823764383792877, -0.18559536337852478, -0.09605886042118073, -0.013810050673782825, -0.015511520206928253, -0.5228541493415833, 0.2197791337966919, -0.23035643994808197, -0.1771492063999176, -0.44288188219070435, 0.09359666705131531, 0.04929960519075394, -0.10490790009498596, 0.06433749943971634, 0.04223501682281494, 0.11305919289588928, 0.1374635547399521, 0.15588673949241638, 0.32760149240493774, 0.009567156434059143, -0.4783717393875122, -0.1799352467060089, -0.12365975975990295, -0.33215802907943726, -0.05921729654073715, 0.5393032431602478, 0.22290775179862976, -0.09771740436553955, -0.1555064469575882, -0.0022184811532497406, 0.15289539098739624, 0.21814748644828796, 0.3580889105796814, 0.17351354658603668, -0.2958722412586212, 0.26118966937065125, 0.09364946186542511, 0.1050926223397255, 0.08166514337062836, 0.18393990397453308, 0.21194829046726227, 0.13661901652812958, 0.007200650870800018, 0.21897363662719727, 0.3821462392807007, -0.17420624196529388, 0.2521929144859314, 0.18563073873519897, -0.29379647970199585, -0.1282263696193695, 0.2663728594779968, -0.08397112786769867, -0.08003506064414978, 0.042094744741916656, -0.47109538316726685, 0.1456865817308426, -0.35114312171936035, 0.1612645536661148, -0.006017521023750305, 0.308407187461853, 0.3865871727466583, -0.05525321140885353, -0.5132189989089966, -0.2572164833545685, -0.012486211955547333, 0.23657874763011932, 0.37289413809776306, -0.6054108142852783, -0.6016435027122498, 0.09107553213834763, 0.15002688765525818, 0.18339942395687103, 0.20063860714435577, 0.13108795881271362, -0.08449359238147736, -0.12297245860099792, -0.05146114528179169, -0.3406595289707184, -0.06524316221475601, 0.005291014909744263, 0.05729495733976364, 0.12618154287338257, 0.16615426540374756, 0.0697055384516716, -0.27181434631347656, -0.1558384895324707, 0.44613948464393616, -0.10679533332586288, 0.09768591821193695, 0.42165935039520264, 0.1586480587720871, 0.021317623555660248, 0.04944537952542305, -0.18855500221252441, 0.8389530181884766, 0.024285366758704185, 0.1685526818037033, 0.14343605935573578, -0.3034120500087738, 0.017430413514375687, -0.13758069276809692, -0.29096564650535583, 0.4719701409339905, -0.0488777756690979, 0.2722826600074768, -0.08182047307491302, 0.0233880877494812, 0.08830027282238007, 0.03410685062408447, -0.36775335669517517, -0.17570124566555023, -0.295320063829422, 0.07062111794948578, -0.17231285572052002, 0.052958160638809204, -0.26181870698928833, 0.18062318861484528, 0.37765416502952576, -0.20573708415031433, 0.272737592458725, -0.013942870311439037, -0.1447598934173584, 0.06143276393413544, -0.028620414435863495, -0.4656098186969757, 0.2622619867324829, 0.18682700395584106, -0.04370195046067238, 0.06232565641403198, -0.0661134123802185, 0.09519992023706436, 0.08683124929666519, 0.11984427273273468, 0.20889732241630554, 0.00009727105498313904, 0.4655112624168396, 0.15369924902915955, 0.06260591000318527, -0.07905811071395874, -0.013436682522296906, -0.02141696773469448, -0.2615894079208374, 0.11160177737474442, -0.10885404050350189, 0.18471069633960724, 0.12547354400157928, -0.7706856727600098, -0.06899160146713257, -0.2918958067893982, 0.17470774054527283, 0.032117124646902084, -0.06031752750277519, -0.0877886712551117, -0.22024375200271606, 0.4431167244911194, -0.014221951365470886, -0.3509550392627716, -0.11794287711381912, -0.5098469257354736, 0.28337162733078003, 0.006217453628778458, -0.04835353046655655, -0.20823922753334045, 0.45822563767433167, 0.11825985461473465, 0.12876886129379272, -0.2360256165266037, -0.6518945097923279, 0.1451403945684433, -0.31695225834846497, 0.1710927039384842, 0.16658058762550354, 0.18140166997909546, 0.29684674739837646, -0.24105201661586761, 0.1975199580192566, 0.2631761133670807, -0.08094356209039688, 0.06586959213018417, 0.1609317809343338, -0.0007564723491668701, -0.1675841063261032, 0.17603369057178497, -0.4358987510204315, -0.11643950641155243, 0.3996148407459259, -0.08403587341308594, 0.2936186194419861, -0.20702672004699707, -0.15773743391036987, -0.4579883813858032, -0.3738888204097748, 0.17173278331756592, 0.017644647508859634, -0.2441030591726303, 0.15312033891677856, -0.23504549264907837, -0.0754406675696373, 0.007201366126537323, 0.0856274962425232, -0.07675614953041077, 0.19186441600322723, 0.034666769206523895, -0.4219196140766144, 0.1329885721206665, 0.4875245690345764, 0.05580984428524971, -0.03532155975699425, 0.3110882639884949, 0.4567369520664215, -0.014882799237966537, 0.15258009731769562, -0.24658699333667755, -0.16929538547992706, 0.17981265485286713, -0.22569343447685242, 0.17413288354873657, 0.22264833748340607, 0.09392211586236954, 0.04488534480333328, -0.482615202665329, -0.17941728234291077, 0.2769906222820282, -0.3255016505718231, -0.07635167241096497, -0.034577589482069016, -0.12281405925750732, -0.25366562604904175, -0.3506314754486084, 0.09274810552597046, 0.24731361865997314, 0.0848204642534256, -0.13202035427093506, -0.031054336577653885, 0.18325382471084595, -0.36045384407043457, -0.1169654130935669, 0.38661929965019226, -0.06272764503955841, 0.45235884189605713, -0.23350708186626434, -0.1262928545475006, -0.2317865490913391, -0.24140611290931702, 0.22936685383319855, 0.040618896484375, -0.008666452020406723, -0.1606571227312088, -0.05143140256404877, -0.11978721618652344, 0.004500474780797958, 0.05960117653012276, 0.3142508864402771, -0.17103558778762817, 0.03857031464576721, -0.17432162165641785, 0.12929601967334747, 0.011036798357963562, 0.21565203368663788, -0.21944354474544525, -0.28496360778808594, -0.025670304894447327, 0.06328539550304413, 0.09275251626968384, -0.22884055972099304, -0.12733471393585205, -0.0216064490377903, -0.06871853768825531, 0.703930139541626, -0.2474617213010788, -0.040327541530132294, 0.5249209403991699, -0.23008494079113007, -0.12395191192626953, -0.33909082412719727, -0.16246569156646729, -0.200076162815094, 0.03217795491218567, -0.17707553505897522, -0.013422094285488129, 0.2836242616176605, 0.1102408692240715, -0.03833669051527977, -0.10227333009243011, 0.15374228358268738, 0.25645673274993896, 0.11654800176620483, -0.2691817283630371, -0.09781232476234436, -0.031144224107265472, -0.11790823936462402, 0.18437573313713074, 0.10483521223068237, 0.13030065596103668, -0.12248591333627701, -0.14898169040679932, -0.12472112476825714, -0.38796332478523254, 0.6633895635604858, 0.11959169805049896, 0.23495322465896606, 0.41231048107147217, -0.46695563197135925, -0.13167843222618103, -0.712916910648346, -0.32191696763038635, 0.32349005341529846, -0.15552008152008057, -0.04519423097372055, -0.2713516652584076, 0.8301069736480713, 0.25933998823165894, -0.14610280096530914, -0.1519993245601654, 0.3963320851325989, -0.20443207025527954, 0.41110336780548096, 0.42298001050949097, 1.123007893562317, -0.27724671363830566, 0.4527410864830017, 0.042144253849983215, -0.3617790639400482, 0.24771469831466675, -0.5346396565437317, 0.1496739387512207, -0.4131448268890381, -0.1207161694765091, -0.3043821454048157, 0.00996987521648407, 0.17034152150154114, 0.2117684781551361, -0.16518138349056244, -0.17893943190574646, -0.259135901927948, 0.4631647765636444, 0.202198326587677, -0.11835763603448868, -0.07997456938028336, -0.3157823383808136, -0.3101257383823395, 0.03364931419491768, -0.031193170696496964, -0.24555853009223938, -0.02909955009818077, -0.20704428851604462, -0.2757667303085327, 0.13036735355854034, -0.135682612657547, -0.13040536642074585, 0.222256600856781, -0.08348701894283295, 0.06001397222280502, 0.11345076560974121, -0.29352056980133057, -0.26163458824157715, 0.0511176772415638, -0.06669110059738159, -0.04783744737505913, -0.08023476600646973, -0.03116483986377716, 0.0060921646654605865, 0.053398195654153824, 0.025208525359630585, 0.08969241380691528, 0.16136434674263, -0.1927015334367752, 0.42426303029060364, 0.17935477197170258, -0.18488503992557526, -0.46636849641799927, -0.07769656926393509, 0.03190585970878601, -0.2807351052761078, -0.07112958282232285, -0.08101163059473038, 0.09130572527647018, -0.030636798590421677, 0.11721403151750565, -0.0022762883454561234, -0.05220748111605644, 0.40161532163619995, -0.18900981545448303, -0.029195688664913177, -0.024454543367028236, -0.003747355192899704, 0.04580772668123245, 0.0177202969789505, -0.01840873807668686, -0.027596183121204376, -0.255077600479126, -0.029276546090841293, 0.01027090847492218, -0.05728999525308609, -0.08066202700138092, -0.21040642261505127, 0.25407999753952026, -0.15270724892616272, -0.09228219091892242, 0.28773626685142517, 0.1596095710992813, 0.004133308306336403, -0.04884929582476616, -0.2324097752571106, -0.02963188663125038, 0.47050124406814575, 0.25556594133377075, 0.19163107872009277, -0.06656710058450699, 0.14759251475334167, -0.2448761761188507, 0.3865852952003479, -0.2979021668434143, -0.24496445059776306, 0.21567440032958984, 0.131663978099823, 0.30466142296791077, 0.07376634329557419, -0.11315488815307617, 0.06840161979198456, 0.1514822542667389, 0.047330647706985474, 0.21388357877731323, -0.11012528091669083, -0.19094382226467133, 0.1344630867242813, 0.05040273815393448, 0.4019530117511749, 0.06219250336289406, 0.04814199358224869, -0.21062906086444855, -0.2911631166934967, 0.11412683129310608, 0.20131546258926392, -0.03607363626360893, 0.14658145606517792, 0.2722638249397278, 0.2712820768356323, -0.07443858683109283, 0.08287806808948517, 0.0928950309753418, 0.22670795023441315, 0.154462993144989, 0.09731865674257278, -0.4550424814224243, 0.1197746992111206, 0.3174643814563751, 0.36595526337623596, 0.09489236772060394, -0.3651595711708069, 0.4044739007949829, 0.09352262318134308, -0.01606137305498123, -0.16958212852478027, 0.2656485140323639, 0.041281986981630325, -0.17633824050426483, 0.03545676916837692, 0.08731775730848312, 0.17838087677955627, -0.15392142534255981, -0.14102593064308167, -0.06553959101438522, 0.021759305149316788, 0.1035567969083786, 0.4179518222808838, 0.4069991111755371, 0.43647831678390503, -0.2294600009918213, -0.18210352957248688, 0.35372087359428406, -0.002778405323624611, -0.5180045366287231, 0.32662755250930786, 0.2184353619813919, 0.0227963924407959, 0.40092289447784424, 0.19469135999679565, 0.20476041734218597, -0.15766984224319458, 0.013690587133169174, 0.1594364047050476, 0.2785709500312805, -0.2953718304634094, 0.14716732501983643, 0.1592395305633545, 0.08590175956487656, 0.08711179345846176, 0.5711952447891235, -0.001711975783109665, 0.10256139934062958, 0.18788321316242218, 0.4614489674568176, -0.017107635736465454, -0.13845911622047424, 0.3784615695476532, 0.06663264334201813, -0.35173526406288147, -0.03718055039644241, -0.10623518377542496, -0.11247654259204865, -0.2711789309978485, -0.050954416394233704, -0.37508606910705566, 0.6289636492729187, -0.05882882699370384, 0.41526997089385986, -0.16191095113754272, -0.008163133636116982, 0.03657090663909912, 0.4250333309173584, -0.10631383955478668, -0.023363523185253143, 0.016365524381399155, 0.0389808714389801, -0.02898302488029003, -0.09308509528636932, 0.295962393283844, 0.367468923330307, -0.08369715511798859, 0.3787808418273926, -0.6709490418434143, -0.10389332473278046, 0.20279225707054138, 0.07143644988536835, 0.2873194217681885, 0.1332586109638214, -0.02703862637281418, 0.11736997216939926, -0.02722792699933052, 0.05678996443748474, 0.14542698860168457, 0.17072787880897522, 0.17340660095214844, 0.2241142988204956, 0.38652417063713074, -0.4884510338306427, 0.2852049171924591, -0.01819446310400963, -0.24486282467842102, -0.30587467551231384, 0.35662344098091125, 0.37244200706481934, 0.009106706827878952, 0.3536111116409302, 0.06027562543749809, 0.3089316785335541, 0.15849976241588593, 0.3927229344844818, 0.20755401253700256, -0.14632579684257507, 0.011556923389434814, -0.1536368578672409, -0.13116954267024994, -0.4038659334182739, -0.4983553886413574, 0.15732990205287933, -0.005666475743055344, 0.5706349015235901, 0.2120741605758667, -0.2981119155883789, -0.21917378902435303, -0.11678434163331985, 0.2624826431274414, -0.3499969244003296, -0.050452571362257004, 0.22757989168167114, 0.0328017920255661, -0.1652582585811615, 0.11135473847389221, -0.04407968744635582, 0.1417136937379837, 0.06623398512601852, -0.6235387325286865, 0.2192699909210205, 0.1448473334312439, 0.0878390371799469, 0.25585219264030457, -0.4727157652378082, 0.2660748362541199, -0.042102064937353134, -0.05748634412884712, -0.10488799214363098, 0.08131370693445206, -0.11005367338657379, 0.08132091164588928, 0.03371906653046608, -0.2429279237985611, 0.005775719881057739, -0.1504993438720703, -0.21803635358810425, 0.10556132346391678, -0.3883981704711914, -0.16008353233337402, -0.16397321224212646, -0.04631843417882919, 0.12191827595233917, -0.11482270807027817, -0.2764773964881897, -0.026484616100788116, -0.06696190685033798, 0.3026891052722931, -0.05359971523284912, -0.30563151836395264, 0.2706215977668762, -0.0176001638174057, -0.37420418858528137, 0.1217648908495903, 0.04958869144320488, -0.12830513715744019, 0.2560425102710724, -0.5302765369415283, 0.0302288681268692, 0.3913145661354065, 0.016950909048318863, 0.028280287981033325, 0.29974040389060974, 0.1813448965549469, -0.16634654998779297, -0.27433761954307556, -0.3138290345668793, -0.2522094249725342, 0.2623579204082489, -0.7603424787521362, -0.45036762952804565 ]
https://github.com/huggingface/datasets/issues/5575
Sorry for the late reply, Yes, I think this is the most straight-forward approach with the things that we already have.
Metadata for each column
### Feature request Being able to put some metadata for each column as a string or any other type. ### Motivation I will bring the motivation by an example, lets say we are experimenting with embedding produced by some image encoder network, and we want to iterate through a couple of preprocessing and see which one works better in our downstream task, here as workaround right now what I do is the compute the hash of the preprocessing that the images went through as part of the new columns name, it would be nice to attach some kinda meta data in these scenarios to the each columns. metadata ### Your contribution Maybe we could map another relational like database as the metadata?
21
Metadata for each column ### Feature request Being able to put some metadata for each column as a string or any other type. ### Motivation I will bring the motivation by an example, lets say we are experimenting with embedding produced by some image encoder network, and we want to iterate through a couple of preprocessing and see which one works better in our downstream task, here as workaround right now what I do is the compute the hash of the preprocessing that the images went through as part of the new columns name, it would be nice to attach some kinda meta data in these scenarios to the each columns. metadata ### Your contribution Maybe we could map another relational like database as the metadata? Sorry for the late reply, Yes, I think this is the most straight-forward approach with the things that we already have.
[ 0.24853646755218506, 0.05798083543777466, -0.11101071536540985, -0.08875061571598053, 0.36890140175819397, 0.15508343279361725, 0.2225860208272934, 0.3699958920478821, -0.23646439611911774, 0.3051261901855469, 0.299186646938324, 0.33115407824516296, -0.2217434048652649, 0.43635693192481995, 0.09814361482858658, -0.38717854022979736, 0.08052153885364532, 0.1804276704788208, -0.09749048948287964, 0.3854849338531494, -0.03984386846423149, -0.04643978178501129, 0.2894974946975708, -0.05488262325525284, -0.26902127265930176, 0.12952914834022522, -0.3396812379360199, -0.3541456460952759, -0.20722895860671997, -0.4101434648036957, -0.5343252420425415, 0.2584686279296875, 0.11454416811466217, -0.012536346912384033, -0.00010650781041476876, -0.29146814346313477, 0.0053535024635493755, -0.1492067575454712, -0.27657100558280945, -0.196536123752594, -0.22662578523159027, -0.3084724545478821, 0.04459647089242935, -0.30658620595932007, 0.0630057081580162, 0.05722266808152199, -0.1414785087108612, -0.3552156686782837, -0.26795530319213867, -0.19117142260074615, 0.24434229731559753, -0.18144604563713074, -0.05137079209089279, -0.01860167272388935, 0.47408974170684814, 0.5058497190475464, -0.4284192621707916, 0.03541329503059387, 0.5151964426040649, -0.060120001435279846, 0.12198473513126373, 0.6304017305374146, -0.03253231570124626, -0.1873910129070282, 0.2123168557882309, 0.31654730439186096, 0.2970353960990906, 0.06962954998016357, 0.09195288270711899, 0.272219717502594, 0.6086829900741577, -0.18595518171787262, -0.27206143736839294, 0.0027806460857391357, 0.13923019170761108, -0.27758869528770447, -0.15776172280311584, 0.34707319736480713, 0.2503700852394104, 0.1354798972606659, -0.05594368278980255, -0.011079501360654831, -0.11492204666137695, -0.06997151672840118, 0.048354923725128174, 0.21863144636154175, 0.002811439335346222, -0.11536596715450287, -0.20784246921539307, -0.02319185622036457, -0.046012993901968, 0.12453238666057587, 0.011090104468166828, 0.028679843991994858, 0.10970400273799896, -0.298576295375824, -0.17764586210250854, -0.1394583284854889, 0.046857915818691254, 0.1426682025194168, 0.17360465228557587, -0.06343486905097961, 0.016966231167316437, 0.1494298130273819, 0.049237385392189026, -0.24429702758789062, 0.24061280488967896, -0.2207009196281433, 0.1562461405992508, -0.2475392073392868, 0.014519155025482178, -0.2747456729412079, 0.14792728424072266, 0.6815193295478821, -0.07165729999542236, -0.04381953179836273, 0.08764572441577911, 0.03984236717224121, -0.030557863414287567, 0.15353290736675262, 0.024363242089748383, -0.0256105475127697, -0.09785071015357971, 0.0823761522769928, -0.002266194671392441, -0.04964224621653557, 0.020343661308288574, 0.023219607770442963, 0.5372834205627441, -0.278023898601532, 0.04495510086417198, 0.1492213010787964, -0.1836777925491333, 0.36075347661972046, 0.11876147985458374, -0.17777708172798157, 0.04784417152404785, 0.01976395770907402, 0.03996210917830467, -0.31927114725112915, 0.14381751418113708, -0.009262196719646454, 0.13201618194580078, 0.021505199372768402, -0.279927134513855, -0.136813223361969, -0.02015712484717369, 0.15171468257904053, -0.46190303564071655, 0.013111516833305359, -0.256532222032547, -0.1147092878818512, -0.49307993054389954, 0.18525050580501556, 0.24220086634159088, -0.026808911934494972, 0.19477444887161255, 0.2527076005935669, -0.0023608021438121796, 0.13086725771427155, 0.20392455160617828, 0.47459885478019714, -0.07822445780038834, -0.2982492744922638, -0.2882468104362488, 0.03296270966529846, -0.19883893430233002, 0.0967353880405426, 0.2681714594364166, 0.15399233996868134, -0.14232459664344788, -0.29404428601264954, -0.007837701588869095, 0.1413196623325348, 0.18873843550682068, 0.140947163105011, 0.132882758975029, -0.15692220628261566, 0.42984259128570557, 0.23018765449523926, 0.00628034770488739, -0.0417964793741703, 0.275448203086853, 0.3916396200656891, 0.19682931900024414, -0.06529116630554199, 0.038742583245038986, 0.18874233961105347, -0.27097731828689575, 0.2351718246936798, 0.17265720665454865, -0.37802654504776, -0.2482604831457138, 0.19168958067893982, -0.09982526302337646, 0.02130032703280449, 0.10634619742631912, -0.2881200909614563, -0.0037568267434835434, -0.22925448417663574, 0.16032184660434723, -0.03660892695188522, 0.10057525336742401, 0.3118458390235901, -0.12788744270801544, -0.4176613986492157, -0.26652997732162476, -0.09193690866231918, 0.2586956024169922, 0.1725214272737503, -0.16685038805007935, -0.5518924593925476, 0.03932391107082367, 0.15255248546600342, 0.31786787509918213, 0.1972055286169052, 0.2757996618747711, -0.03914112597703934, -0.37488192319869995, -0.17307351529598236, -0.39687681198120117, 0.2621593177318573, -0.24403250217437744, -0.06089365482330322, 0.0995442122220993, -0.08209140598773956, 0.04391442984342575, -0.07061011344194412, -0.06962020695209503, 0.4465145170688629, -0.11166152358055115, 0.14472204446792603, 0.2988690733909607, 0.13384561240673065, -0.040680840611457825, 0.10225234180688858, 0.03710860386490822, 0.681452214717865, 0.05057898908853531, 0.12591920793056488, 0.14878761768341064, -0.41122156381607056, -0.07189048826694489, -0.12760844826698303, -0.4850277006626129, 0.358955055475235, -0.1871386468410492, 0.30506405234336853, -0.07827958464622498, 0.05212409049272537, 0.09894901514053345, -0.014566734433174133, -0.3672342002391815, -0.3969331979751587, -0.2720312774181366, 0.16057109832763672, -0.15309590101242065, 0.10533013939857483, -0.21923840045928955, 0.21979647874832153, 0.2967110276222229, -0.02440963312983513, 0.27530062198638916, 0.18354158103466034, -0.007296871393918991, -0.018577344715595245, -0.01714930310845375, -0.2369215041399002, 0.19197267293930054, 0.21874341368675232, 0.04110000282526016, -0.0399707555770874, -0.001535750925540924, 0.024214737117290497, 0.17514601349830627, 0.09782124310731888, 0.017886031419038773, -0.0008451351895928383, 0.18967102468013763, 0.16412201523780823, 0.10837996006011963, -0.18990784883499146, 0.01779741793870926, -0.009069707244634628, -0.08547753840684891, -0.037156425416469574, -0.1348668336868286, 0.08553879708051682, 0.1792416274547577, -0.4931073784828186, 0.004947777837514877, -0.3288646340370178, 0.24534285068511963, -0.07895149290561676, -0.13785189390182495, -0.10711023956537247, -0.25149568915367126, 0.733060359954834, -0.15373578667640686, 0.1342359185218811, -0.19841930270195007, -0.47244715690612793, 0.3336487412452698, 0.07849977165460587, -0.0939367413520813, -0.10620486736297607, 0.6449030637741089, 0.0861513614654541, 0.2961675524711609, -0.37376487255096436, -0.5499106645584106, 0.10703054815530777, -0.17954808473587036, 0.008801097050309181, 0.11918798089027405, 0.24235107004642487, 0.18536078929901123, -0.31275200843811035, -0.01986660249531269, 0.23101285099983215, -0.02487180009484291, -0.0028762705624103546, 0.24234145879745483, 0.04437265172600746, -0.13489678502082825, 0.014662303030490875, -0.2647053599357605, -0.28383952379226685, 0.2420378476381302, -0.24143224954605103, 0.3588445782661438, -0.23560281097888947, -0.23741501569747925, -0.3296409845352173, -0.4386543333530426, 0.37799280881881714, -0.18192782998085022, -0.25152289867401123, -0.017184562981128693, -0.3065275549888611, 0.015235396102070808, -0.05318755656480789, 0.17731912434101105, 0.03789626061916351, 0.041266847401857376, 0.0061370208859443665, -0.1354070007801056, 0.22313137352466583, 0.17557549476623535, 0.06930616497993469, -0.1022096797823906, 0.2717630863189697, 0.3916708528995514, -0.16075268387794495, 0.11421617120504379, -0.1658666729927063, -0.11629411578178406, 0.004440838471055031, -0.1431765854358673, 0.20300845801830292, 0.2790861427783966, 0.008457332849502563, -0.10244132578372955, -0.24360151588916779, -0.25362083315849304, 0.24156732857227325, -0.1547863483428955, 0.1372741013765335, -0.07706169784069061, -0.11391840875148773, -0.2086053043603897, -0.1338033676147461, 0.17869022488594055, 0.2833717465400696, 0.06320376694202423, -0.07359305024147034, -0.07694271206855774, 0.30135828256607056, -0.27205994725227356, -0.03355266526341438, 0.40501639246940613, -0.29415163397789, 0.4102460741996765, -0.32960355281829834, -0.2281889021396637, -0.20560544729232788, -0.08047348260879517, 0.21247002482414246, 0.1425505131483078, 0.07009386271238327, -0.303259015083313, -0.019202329218387604, -0.09685260057449341, 0.0916413813829422, 0.06507845222949982, 0.25596657395362854, 0.02086017280817032, -0.2040509730577469, -0.14049430191516876, 0.047311920672655106, 0.19336891174316406, 0.11254553496837616, -0.4473801851272583, -0.5133545994758606, -0.10534265637397766, 0.0405399352312088, 0.3473536968231201, -0.05662982165813446, 0.040258243680000305, -0.06374204903841019, -0.08660487085580826, 0.6394205093383789, -0.1997743844985962, -0.12883782386779785, 0.7682368755340576, -0.27257809042930603, -0.12442709505558014, -0.3948141038417816, 0.012204758822917938, 0.043182507157325745, 0.09943391382694244, -0.1373956799507141, -0.058330245316028595, 0.04747558757662773, 0.12302259355783463, -0.16889414191246033, -0.15774348378181458, 0.07433907687664032, 0.23425541818141937, 0.11681473255157471, -0.2766629457473755, 0.11869192123413086, 0.040061600506305695, -0.045479919761419296, 0.2101629078388214, -0.04311728850007057, -0.04684606194496155, -0.3028964102268219, 0.06450113654136658, 0.05383184924721718, -0.5319132804870605, 0.5768338441848755, 0.30899518728256226, 0.2874253988265991, 0.5617595911026001, -0.44329512119293213, -0.137357696890831, -0.68601393699646, -0.27012109756469727, 0.17890730500221252, -0.23288406431674957, -0.05288231745362282, -0.2835713028907776, 0.7822741866111755, 0.13980069756507874, -0.143577441573143, 0.021382275968790054, 0.21170079708099365, -0.12535613775253296, 0.34613633155822754, 0.3905355930328369, 1.102666974067688, -0.20177821815013885, 0.1797625720500946, -0.19563359022140503, -0.33948200941085815, 0.2123349905014038, -0.5112844109535217, -0.028767233714461327, -0.3109893202781677, -0.298469215631485, -0.2695056200027466, 0.06700621545314789, 0.19397398829460144, 0.2206181138753891, -0.24088135361671448, -0.2201300859451294, -0.07879301905632019, 0.34325137734413147, 0.019841741770505905, 0.10365524142980576, -0.10624745488166809, -0.43884074687957764, -0.13802725076675415, 0.11085600405931473, -0.0857917070388794, -0.37570101022720337, -0.04932403936982155, -0.12953685224056244, -0.0011256933212280273, 0.23730672895908356, -0.169086754322052, -0.1813512146472931, 0.37829071283340454, -0.08903320878744125, -0.02201182395219803, 0.1572703719139099, -0.09582071006298065, -0.3119546175003052, 0.34620070457458496, 0.10190662741661072, -0.12667444348335266, -0.10929110646247864, -0.03444170951843262, 0.16160228848457336, 0.014039229601621628, -0.08521047234535217, 0.15012580156326294, 0.15518037974834442, -0.05217403173446655, 0.3030640482902527, 0.1725015789270401, -0.25653958320617676, -0.35582590103149414, -0.07585707306861877, 0.13520115613937378, -0.24571926891803741, -0.014379683881998062, 0.12630747258663177, -0.09792426973581314, -0.10504171252250671, 0.19910813868045807, 0.12491655349731445, -0.0386497899889946, 0.39939188957214355, 0.013918881304562092, -0.021893367171287537, -0.02977539226412773, 0.01977158710360527, 0.08903975784778595, -0.2778126299381256, -0.15177926421165466, -0.08000626415014267, -0.28445544838905334, -0.21916019916534424, 0.12550431489944458, 0.006635524332523346, -0.013735756278038025, -0.1445445716381073, 0.12936043739318848, -0.3356137275695801, -0.07099197804927826, 0.23156198859214783, 0.25879624485969543, 0.05860470235347748, -0.05612698569893837, -0.09323775768280029, -0.18021658062934875, 0.4017091393470764, 0.07919543981552124, 0.36990559101104736, -0.23532824218273163, -0.21884685754776, -0.2566797733306885, 0.48680028319358826, -0.38713061809539795, -0.3304060101509094, 0.14764776825904846, 0.20944459736347198, 0.3148230016231537, 0.0925029069185257, -0.19401000440120697, 0.03393579646945, 0.16672629117965698, -0.015447367914021015, 0.13055585324764252, -0.171075701713562, -0.14540353417396545, 0.11156488955020905, -0.007970405742526054, 0.5035524964332581, -0.1086789071559906, 0.06322100758552551, -0.3055610656738281, -0.289760023355484, 0.036724433302879333, 0.052822768688201904, -0.0907835066318512, 0.10141383856534958, 0.11005328595638275, 0.2353895753622055, 0.04750250279903412, 0.10299979150295258, 0.1656656265258789, 0.33113807439804077, 0.12352119386196136, -0.09302295744419098, -0.48436471819877625, 0.003281533718109131, 0.19005605578422546, 0.4072357416152954, 0.021864935755729675, -0.33220726251602173, 0.38906124234199524, 0.33131125569343567, 0.0919903814792633, 0.09108664095401764, 0.07868152111768723, -0.06750515103340149, -0.1696084439754486, -0.006255641579627991, 0.0868455171585083, 0.27820754051208496, -0.033494118601083755, -0.027678176760673523, -0.08160416036844254, -0.023838456720113754, 0.19693845510482788, 0.39168640971183777, 0.5035289525985718, 0.40833061933517456, -0.01722896844148636, -0.17370393872261047, 0.14196301996707916, -0.2711559534072876, -0.33635231852531433, 0.17329739034175873, 0.2534911632537842, 0.054721102118492126, 0.3553522527217865, 0.20664861798286438, 0.1152309849858284, -0.1989234983921051, 0.0832967609167099, 0.24320150911808014, 0.3746075928211212, -0.11681140959262848, 0.23921076953411102, 0.1968512237071991, 0.31800520420074463, 0.17228513956069946, 0.35682329535484314, 0.08291062712669373, 0.1480683535337448, -0.03953629732131958, 0.20559477806091309, 0.02109091728925705, -0.28667160868644714, 0.16116663813591003, 0.03825181722640991, -0.2561401426792145, -0.14006341993808746, -0.0628490224480629, -0.17806494235992432, -0.3367273807525635, 0.09573907405138016, -0.12767481803894043, 0.5893818736076355, 0.10322656482458115, 0.4092708230018616, -0.05096222832798958, 0.1383811980485916, 0.08319379389286041, 0.48158448934555054, -0.26523756980895996, -0.10102464258670807, -0.09123867750167847, 0.19240087270736694, 0.16846826672554016, 0.13902221620082855, -0.01240226998925209, 0.3592778146266937, 0.1178540289402008, 0.23294466733932495, -0.4686395227909088, -0.19062787294387817, 0.15911218523979187, 0.07838724553585052, 0.17012466490268707, 0.13849736750125885, -0.014576122164726257, 0.1793883889913559, -0.0557275153696537, 0.15030016005039215, 0.12586000561714172, 0.19704201817512512, 0.21137544512748718, 0.1109747663140297, 0.5635755062103271, -0.4165596067905426, 0.18841271102428436, -0.01954304799437523, -0.31026846170425415, -0.38547953963279724, 0.3070339858531952, 0.09869888424873352, 0.039361026138067245, 0.30160048604011536, 0.12867480516433716, 0.3668576776981354, 0.1689496487379074, 0.2965039908885956, -0.18030138313770294, -0.23813782632350922, -0.13057421147823334, -0.04410877078771591, -0.25140392780303955, -0.06657096743583679, -0.3239780366420746, 0.2159760296344757, 0.03539673238992691, 0.421976238489151, 0.20847047865390778, -0.36504048109054565, -0.4340449571609497, 0.0076010264456272125, 0.24450959265232086, -0.3779680132865906, -0.10470089316368103, 0.3712897300720215, 0.029960820451378822, -0.10446511954069138, 0.2487201690673828, -0.0444963164627552, 0.3923444449901581, 0.10929088294506073, -0.47823989391326904, 0.2018311321735382, 0.11241704970598221, 0.16894808411598206, 0.1093129813671112, -0.45094460248947144, 0.11766714602708817, -0.1625744104385376, -0.05478869751095772, -0.14690633118152618, -0.06947387009859085, -0.013478010892868042, 0.10663282871246338, 0.17442624270915985, -0.1966395378112793, 0.11517661809921265, -0.07415569573640823, -0.19579006731510162, -0.024673331528902054, -0.41917550563812256, -0.005617514252662659, -0.2901727557182312, -0.07968375831842422, 0.16543594002723694, 0.038455039262771606, -0.18158799409866333, -0.09887991845607758, -0.0023217350244522095, 0.290358304977417, -0.07401254028081894, -0.3378179967403412, 0.06689716875553131, 0.2227436900138855, -0.3051152229309082, 0.1574215441942215, 0.20635876059532166, -0.019490011036396027, 0.33111900091171265, -0.5344470739364624, -0.06791645288467407, 0.38161399960517883, -0.18430988490581512, 0.0821118950843811, 0.39848557114601135, 0.11597275733947754, -0.0675155520439148, -0.30943506956100464, -0.23567025363445282, -0.17581933736801147, 0.24815967679023743, -0.7285662889480591, -0.38104426860809326 ]
https://github.com/huggingface/datasets/issues/5575
Hi, is this feature to be implemented in the near future? It would be really nice if that would be the case!
Metadata for each column
### Feature request Being able to put some metadata for each column as a string or any other type. ### Motivation I will bring the motivation by an example, lets say we are experimenting with embedding produced by some image encoder network, and we want to iterate through a couple of preprocessing and see which one works better in our downstream task, here as workaround right now what I do is the compute the hash of the preprocessing that the images went through as part of the new columns name, it would be nice to attach some kinda meta data in these scenarios to the each columns. metadata ### Your contribution Maybe we could map another relational like database as the metadata?
22
Metadata for each column ### Feature request Being able to put some metadata for each column as a string or any other type. ### Motivation I will bring the motivation by an example, lets say we are experimenting with embedding produced by some image encoder network, and we want to iterate through a couple of preprocessing and see which one works better in our downstream task, here as workaround right now what I do is the compute the hash of the preprocessing that the images went through as part of the new columns name, it would be nice to attach some kinda meta data in these scenarios to the each columns. metadata ### Your contribution Maybe we could map another relational like database as the metadata? Hi, is this feature to be implemented in the near future? It would be really nice if that would be the case!
[ 0.2490365356206894, 0.025175973773002625, -0.076130211353302, -0.033065203577280045, 0.40545156598091125, 0.1947934329509735, 0.21851715445518494, 0.3180506229400635, -0.2768431305885315, 0.30030229687690735, 0.33207106590270996, 0.2996111214160919, -0.2119441032409668, 0.368570476770401, 0.06748026609420776, -0.44339942932128906, 0.09232078492641449, 0.19219191372394562, -0.06954468786716461, 0.4071895480155945, -0.06450921297073364, -0.01421015989035368, 0.2296772003173828, -0.05748152360320091, -0.29409343004226685, 0.1313546597957611, -0.3432018756866455, -0.4078902006149292, -0.2560975253582001, -0.34776878356933594, -0.47120124101638794, 0.20996138453483582, 0.10117381811141968, 0.01716187223792076, -0.00011283857747912407, -0.2852376401424408, 0.04503534361720085, -0.12514445185661316, -0.24017329514026642, -0.25537359714508057, -0.22825634479522705, -0.22746562957763672, -0.007744781672954559, -0.2269090712070465, 0.06969673186540604, 0.11993777006864548, -0.23961690068244934, -0.40778693556785583, -0.3476685881614685, -0.14933794736862183, 0.20592565834522247, -0.20484301447868347, -0.06400617212057114, -0.010901503264904022, 0.5345171689987183, 0.598034143447876, -0.41707611083984375, 0.022343121469020844, 0.5206426978111267, -0.07638850808143616, 0.2375742644071579, 0.6223509907722473, -0.04947659373283386, -0.21107491850852966, 0.24413931369781494, 0.31243130564689636, 0.3403468430042267, 0.04357370734214783, 0.14116336405277252, 0.2847554087638855, 0.7054305076599121, -0.17632438242435455, -0.27305009961128235, 0.052786797285079956, 0.12008310854434967, -0.29835429787635803, -0.11322548985481262, 0.37713414430618286, 0.2703065872192383, 0.11758427321910858, -0.05048220977187157, 0.0255364291369915, -0.038600899279117584, -0.0517418347299099, -0.02193377912044525, 0.25758087635040283, -0.06813846528530121, -0.11147014796733856, -0.15349625051021576, -0.1139417439699173, -0.09578026831150055, 0.06860007345676422, -0.048837173730134964, 0.12939319014549255, 0.10525131970643997, -0.285858690738678, -0.19178488850593567, -0.17922548949718475, 0.0021546632051467896, 0.12068979442119598, 0.145082026720047, -0.09748867154121399, -0.02462894096970558, 0.16857941448688507, 0.03269883617758751, -0.2902623116970062, 0.25078827142715454, -0.21000465750694275, 0.13603492081165314, -0.2742733359336853, 0.014973878860473633, -0.3105756938457489, 0.1398927867412567, 0.7205010056495667, -0.11811059713363647, -0.06516242027282715, 0.09929323196411133, -0.0336880162358284, -0.05581033602356911, 0.14415432512760162, -0.019548051059246063, -0.029414311051368713, -0.1474238932132721, 0.04319695755839348, 0.029855091124773026, -0.04518112540245056, 0.007149443030357361, 0.07673728466033936, 0.5554776787757874, -0.23044107854366302, 0.040850698947906494, 0.176094651222229, -0.18861429393291473, 0.3798378109931946, 0.08440697193145752, -0.12204296141862869, 0.004146061837673187, 0.07861927151679993, 0.016057413071393967, -0.38554203510284424, 0.09907188266515732, -0.042804569005966187, 0.0745076835155487, 0.10014238953590393, -0.32449665665626526, -0.09050584584474564, 0.03791537880897522, 0.17995548248291016, -0.4612566828727722, 0.04721802473068237, -0.259734183549881, -0.07685817778110504, -0.5169216394424438, 0.14071927964687347, 0.22335238754749298, -0.01925821788609028, 0.17710141837596893, 0.1650112271308899, 0.011012200266122818, 0.09610360860824585, 0.2209686040878296, 0.4760556221008301, -0.10086439549922943, -0.2864744961261749, -0.30504685640335083, 0.06430000066757202, -0.20811805129051208, 0.055983930826187134, 0.3010086417198181, 0.2110050618648529, -0.10909982025623322, -0.29767003655433655, -0.004960678517818451, 0.13936099410057068, 0.16458570957183838, 0.14078520238399506, 0.13392290472984314, -0.16547533869743347, 0.38249388337135315, 0.2892584204673767, -0.03176268935203552, 0.0028580576181411743, 0.2647436261177063, 0.37077081203460693, 0.16566602885723114, -0.019669905304908752, 0.0868147760629654, 0.22238193452358246, -0.20106036961078644, 0.19689226150512695, 0.17389768362045288, -0.362760990858078, -0.25377097725868225, 0.13452556729316711, -0.09185722470283508, 0.12519823014736176, 0.10708741098642349, -0.28763121366500854, -0.0076938048005104065, -0.20914103090763092, 0.17281854152679443, 0.002117786556482315, 0.08808678388595581, 0.3452835977077484, -0.09222989529371262, -0.4669002294540405, -0.2302490770816803, -0.11157844960689545, 0.3446650505065918, 0.16277194023132324, -0.18561631441116333, -0.5388010740280151, 0.05975683033466339, 0.11433608829975128, 0.24682492017745972, 0.251179963350296, 0.1947212815284729, 0.020628109574317932, -0.3214114308357239, -0.13199126720428467, -0.4297662377357483, 0.2589510977268219, -0.2147359848022461, -0.06001502275466919, 0.12046335637569427, -0.037909358739852905, 0.10248489677906036, -0.09831595420837402, -0.15876621007919312, 0.40972837805747986, -0.06950994580984116, 0.20056584477424622, 0.264801025390625, 0.12541630864143372, -0.05032157897949219, 0.0510837621986866, 0.012038386426866055, 0.7089433670043945, 0.022945066913962364, 0.10898612439632416, 0.15695373713970184, -0.4444931149482727, -0.028075162321329117, -0.20947393774986267, -0.49965453147888184, 0.316195011138916, -0.22659946978092194, 0.34364452958106995, -0.0967899039387703, 0.02893049269914627, 0.07368389517068863, 0.009462431073188782, -0.3845739960670471, -0.42255568504333496, -0.24816380441188812, 0.15307793021202087, -0.19649557769298553, 0.05026558041572571, -0.19849613308906555, 0.1315770149230957, 0.25595206022262573, -0.006831221282482147, 0.3385402262210846, 0.16947919130325317, -0.019842777401208878, 0.04558166116476059, -0.07172183692455292, -0.3149558901786804, 0.32320332527160645, 0.14515146613121033, 0.07716850191354752, -0.03253903612494469, 0.041491784155368805, 0.005336344242095947, 0.14570119976997375, 0.07842676341533661, 0.03650771081447601, 0.017865866422653198, 0.23868754506111145, 0.21562126278877258, 0.09370473027229309, -0.16466385126113892, 0.03768625855445862, -0.0005144253373146057, -0.1188909187912941, -0.046264126896858215, -0.21686328947544098, 0.07960356771945953, 0.09798066318035126, -0.5929257869720459, 0.005490493029356003, -0.2853595018386841, 0.15595640242099762, -0.08280754834413528, -0.024959921836853027, -0.14610347151756287, -0.23735731840133667, 0.7532358169555664, -0.1454804539680481, 0.09426690638065338, -0.1620793640613556, -0.3882765471935272, 0.3355149030685425, 0.030088894069194794, -0.1436046063899994, -0.15485253930091858, 0.56117844581604, 0.1299774944782257, 0.29172465205192566, -0.3606126010417938, -0.5600813031196594, 0.04782789200544357, -0.15512341260910034, -0.01882508397102356, 0.1429843008518219, 0.2605539560317993, 0.2458478808403015, -0.25173258781433105, -0.009678874164819717, 0.3333132266998291, -0.029636632651090622, 0.0017460733652114868, 0.23152939975261688, 0.07701346278190613, -0.15102164447307587, 0.1431608647108078, -0.26713669300079346, -0.2079160064458847, 0.314514696598053, -0.27360090613365173, 0.31792551279067993, -0.18153885006904602, -0.24708271026611328, -0.3758631944656372, -0.5112975239753723, 0.3092600405216217, -0.13308469951152802, -0.30479010939598083, -0.015520073473453522, -0.29143279790878296, 0.03371598944067955, -0.01284334808588028, 0.19621971249580383, 0.009301441721618176, 0.04376361519098282, -0.03091619908809662, -0.1120467260479927, 0.19400882720947266, 0.1531529575586319, 0.012224571779370308, -0.09011519700288773, 0.2878989577293396, 0.36041271686553955, -0.09508590400218964, 0.08592004328966141, -0.2591739594936371, -0.13989436626434326, 0.024597320705652237, -0.09974166005849838, 0.2540077567100525, 0.3363676965236664, 0.02499517798423767, -0.13976064324378967, -0.2986559271812439, -0.2559700608253479, 0.23748691380023956, -0.13698157668113708, 0.11254001408815384, -0.09609812498092651, -0.16024193167686462, -0.2531105577945709, -0.12474920600652695, 0.20274963974952698, 0.262735515832901, 0.053734805434942245, -0.04107314348220825, -0.10726197808980942, 0.29510974884033203, -0.15891379117965698, 0.04393794387578964, 0.35070133209228516, -0.3673045337200165, 0.44334036111831665, -0.3410438895225525, -0.20190857350826263, -0.23005005717277527, -0.09196518361568451, 0.19343414902687073, 0.1920938491821289, 0.09555965662002563, -0.28583353757858276, -0.02092485874891281, -0.1374746561050415, 0.16071602702140808, 0.05965988337993622, 0.23453903198242188, 0.05173264816403389, -0.2541402280330658, -0.05517956614494324, 0.06619373708963394, 0.24033398926258087, 0.15414434671401978, -0.47944602370262146, -0.43734264373779297, -0.014284558594226837, 0.0709289163351059, 0.35546645522117615, -0.12780091166496277, 0.07205654680728912, -0.05830876901745796, -0.1087423712015152, 0.788870632648468, -0.14491698145866394, -0.08801139891147614, 0.7640016674995422, -0.3427465558052063, -0.10010130703449249, -0.43681880831718445, -0.025018498301506042, 0.010788440704345703, 0.17329804599285126, -0.07519502937793732, -0.003791138529777527, 0.1257689744234085, 0.12475000321865082, -0.18668100237846375, -0.1742035150527954, 0.08300173282623291, 0.23203858733177185, -0.026075314730405807, -0.2851406931877136, 0.1836852878332138, 0.05029557645320892, -0.06851701438426971, 0.17840829491615295, -0.031465306878089905, -0.04342611879110336, -0.29927679896354675, 0.059313029050827026, 0.09197360277175903, -0.5453420281410217, 0.601776659488678, 0.32651016116142273, 0.30441972613334656, 0.6239737868309021, -0.45862430334091187, -0.16254347562789917, -0.721592128276825, -0.2787398397922516, 0.24135076999664307, -0.2513798475265503, -0.10226663947105408, -0.28576159477233887, 0.868506669998169, 0.2088669240474701, -0.10040809214115143, 0.03323867917060852, 0.21088241040706635, -0.15028603374958038, 0.28272122144699097, 0.4187900125980377, 1.181283950805664, -0.169465571641922, 0.17432641983032227, -0.3056001663208008, -0.37265801429748535, 0.20573954284191132, -0.5380773544311523, -0.0031470637768507004, -0.3131108582019806, -0.33928704261779785, -0.3077132999897003, 0.015143163502216339, 0.3187532424926758, 0.2973710298538208, -0.26373398303985596, -0.2638920545578003, -0.18606838583946228, 0.4369944930076599, 0.11881852895021439, 0.04415878653526306, -0.07057836651802063, -0.39574936032295227, -0.0920679122209549, 0.07061354070901871, -0.04922092333436012, -0.27722036838531494, -0.032627448439598083, -0.14501334726810455, -0.020019203424453735, 0.18735215067863464, -0.2378292977809906, -0.1726507544517517, 0.3695982098579407, -0.08761060237884521, -0.03084908239543438, 0.21424928307533264, -0.05569613352417946, -0.3254542648792267, 0.33365359902381897, 0.1287553608417511, -0.09920212626457214, -0.06667788326740265, -0.02549532800912857, 0.10265671461820602, -0.02525029145181179, -0.013773605227470398, 0.08474622666835785, 0.15789790451526642, -0.07370153069496155, 0.37537723779678345, 0.1764676719903946, -0.22072309255599976, -0.44427746534347534, -0.09561941027641296, 0.1509048044681549, -0.2475484311580658, -0.08341976255178452, 0.11011682450771332, 0.06147666275501251, -0.0993502289056778, 0.15924882888793945, 0.13866589963436127, -0.07767779380083084, 0.4510318636894226, -0.05880913510918617, -0.07116328179836273, -0.022496260702610016, 0.08914376050233841, 0.0778094232082367, -0.3094705045223236, -0.145315021276474, -0.055535633116960526, -0.27901336550712585, -0.1828022301197052, 0.1788848638534546, -0.04783881455659866, -0.008272074162960052, -0.12968851625919342, 0.16196683049201965, -0.24948854744434357, -0.0697394460439682, 0.2522207498550415, 0.15298882126808167, -0.008500073105096817, -0.08380116522312164, -0.14800897240638733, -0.09094079583883286, 0.35031598806381226, 0.007828077301383018, 0.3256224989891052, -0.23537619411945343, -0.21980157494544983, -0.23637494444847107, 0.516795814037323, -0.32375532388687134, -0.2417851984500885, 0.1545221209526062, 0.1600128412246704, 0.3812994360923767, 0.1526126116514206, -0.2205614298582077, 0.08034293353557587, 0.11151856184005737, 0.05500563234090805, 0.16836196184158325, -0.10770266503095627, -0.12969133257865906, 0.14623457193374634, 0.03055129200220108, 0.5241844058036804, -0.08818326890468597, 0.04781864583492279, -0.3281596302986145, -0.25322017073631287, 0.034561365842819214, 0.028562471270561218, -0.07507027685642242, 0.06403513252735138, 0.13103148341178894, 0.30104953050613403, 0.03197231888771057, 0.11823111772537231, 0.21366989612579346, 0.311614990234375, 0.10368476063013077, -0.10266513377428055, -0.42774397134780884, 0.016764208674430847, 0.11687923967838287, 0.3501014709472656, 0.01112411543726921, -0.41073372960090637, 0.413690447807312, 0.19811207056045532, 0.15290436148643494, 0.07809867709875107, 0.04156554490327835, -0.0626191720366478, -0.15189354121685028, 0.009526662528514862, 0.07585780322551727, 0.19518963992595673, -0.005698852241039276, -0.07351639121770859, -0.03913559019565582, 0.05209682136774063, 0.09911380708217621, 0.34099361300468445, 0.4800128936767578, 0.4648588299751282, -0.05026095733046532, -0.16785681247711182, 0.21178266406059265, -0.22220858931541443, -0.34816035628318787, 0.2620123624801636, 0.32483145594596863, 0.03161652386188507, 0.37540021538734436, 0.24152261018753052, 0.13127389550209045, -0.21534192562103271, 0.09622777253389359, 0.20352578163146973, 0.4115048348903656, -0.16975432634353638, 0.21158117055892944, 0.08131515979766846, 0.3363376259803772, 0.20988500118255615, 0.3539297878742218, 0.09429638087749481, 0.08781532198190689, -0.08468615263700485, 0.15000516176223755, 0.0528411790728569, -0.2500721216201782, 0.23190151154994965, -0.007842573337256908, -0.2666177749633789, -0.12416252493858337, -0.07747334241867065, -0.1743798851966858, -0.31142428517341614, 0.0858125388622284, -0.09794989228248596, 0.5961380004882812, -0.010241620242595673, 0.423801064491272, -0.04276163503527641, 0.0771370530128479, 0.08444485068321228, 0.4571477174758911, -0.25958070158958435, -0.009516539052128792, -0.17693929374217987, 0.24188019335269928, 0.21937362849712372, 0.09947220236063004, 0.04272335395216942, 0.4302706718444824, 0.1478901505470276, 0.24710427224636078, -0.5951899290084839, -0.22332867980003357, 0.23632100224494934, 0.18674229085445404, 0.21056637167930603, 0.1110089123249054, -0.030788715928792953, 0.13579373061656952, -0.018113764002919197, 0.1396138221025467, 0.11920343339443207, 0.29948005080223083, 0.13617143034934998, 0.13235105574131012, 0.4661720395088196, -0.38387948274612427, 0.19314146041870117, -0.014165021479129791, -0.2990843653678894, -0.4064209759235382, 0.3548414409160614, 0.12210521101951599, 0.0067789070308208466, 0.3376588523387909, 0.08833301812410355, 0.35695287585258484, 0.16525499522686005, 0.3480681777000427, -0.2199004888534546, -0.24343380331993103, -0.14955618977546692, -0.0322350338101387, -0.2787971496582031, -0.11839471757411957, -0.33828631043434143, 0.2164899706840515, 0.04376711696386337, 0.477422833442688, 0.13926458358764648, -0.35870057344436646, -0.45079827308654785, -0.009189538657665253, 0.3029625415802002, -0.3678993582725525, -0.06551994383335114, 0.3678520917892456, 0.06190730631351471, -0.1590641587972641, 0.24536114931106567, -0.047370634973049164, 0.4217166602611542, 0.0631127655506134, -0.5100682377815247, 0.20657901465892792, 0.07309205085039139, 0.16782309114933014, 0.12119148671627045, -0.46063315868377686, 0.19988606870174408, -0.0725269764661789, -0.06844915449619293, -0.13730184733867645, -0.041687749326229095, 0.007917582988739014, 0.08658397197723389, 0.1420384645462036, -0.16064026951789856, 0.05345384031534195, -0.03370409458875656, -0.21620559692382812, -0.049931593239307404, -0.4506995379924774, -0.0030177272856235504, -0.27630814909935, -0.10384022444486618, 0.14108648896217346, -0.00624345988035202, -0.13655802607536316, -0.1544678658246994, 0.01843010075390339, 0.3365996778011322, -0.07767260074615479, -0.3498280942440033, 0.12177664786577225, 0.1839606910943985, -0.3391849398612976, 0.15693551301956177, 0.1924886256456375, -0.08505464345216751, 0.28093281388282776, -0.5761931538581848, -0.06642337143421173, 0.43592017889022827, -0.13453981280326843, 0.11603698134422302, 0.33755671977996826, 0.15931862592697144, -0.05155694857239723, -0.2850935757160187, -0.3141683340072632, -0.1768229603767395, 0.3066824972629547, -0.7665977478027344, -0.4006420969963074 ]
https://github.com/huggingface/datasets/issues/5575
Hi, I also need this feature for tell my customer if any of the feature is encrypted with a certain key.
Metadata for each column
### Feature request Being able to put some metadata for each column as a string or any other type. ### Motivation I will bring the motivation by an example, lets say we are experimenting with embedding produced by some image encoder network, and we want to iterate through a couple of preprocessing and see which one works better in our downstream task, here as workaround right now what I do is the compute the hash of the preprocessing that the images went through as part of the new columns name, it would be nice to attach some kinda meta data in these scenarios to the each columns. metadata ### Your contribution Maybe we could map another relational like database as the metadata?
21
Metadata for each column ### Feature request Being able to put some metadata for each column as a string or any other type. ### Motivation I will bring the motivation by an example, lets say we are experimenting with embedding produced by some image encoder network, and we want to iterate through a couple of preprocessing and see which one works better in our downstream task, here as workaround right now what I do is the compute the hash of the preprocessing that the images went through as part of the new columns name, it would be nice to attach some kinda meta data in these scenarios to the each columns. metadata ### Your contribution Maybe we could map another relational like database as the metadata? Hi, I also need this feature for tell my customer if any of the feature is encrypted with a certain key.
[ 0.22968310117721558, 0.017547860741615295, -0.0709906592965126, -0.042882371693849564, 0.3917068839073181, 0.21746885776519775, 0.2968088984489441, 0.2860753834247589, -0.298023521900177, 0.25014781951904297, 0.3787517249584198, 0.31236323714256287, -0.2613549530506134, 0.4659387469291687, 0.05418040230870247, -0.3759874403476715, 0.09011007100343704, 0.17146801948547363, -0.051939476281404495, 0.40233945846557617, -0.029102873057127, -0.007950816303491592, 0.2546344995498657, 0.0008214078843593597, -0.2616705298423767, 0.07232603430747986, -0.35778698325157166, -0.40485960245132446, -0.17637225985527039, -0.41625291109085083, -0.4982512295246124, 0.1967233568429947, 0.06610572338104248, -0.13205298781394958, -0.00011276465374976397, -0.25639232993125916, -0.03985486552119255, -0.13255590200424194, -0.2778974771499634, -0.20927006006240845, -0.2512749135494232, -0.29965829849243164, -0.009738557040691376, -0.337185263633728, 0.05547401309013367, 0.11161597818136215, -0.26875078678131104, -0.3887244760990143, -0.3312521278858185, -0.10203626751899719, 0.19160029292106628, -0.19664865732192993, -0.04211454093456268, 0.03612169995903969, 0.5380833745002747, 0.5350099802017212, -0.4439578354358673, -0.07311052083969116, 0.4364335536956787, -0.07132847607135773, 0.25257179141044617, 0.6823329329490662, -0.042916812002658844, -0.21553084254264832, 0.2646220922470093, 0.3124634027481079, 0.3304055333137512, 0.0887337327003479, 0.09904469549655914, 0.273956835269928, 0.6579696536064148, -0.19083690643310547, -0.26548704504966736, 0.035444244742393494, 0.12881363928318024, -0.29943138360977173, -0.13767993450164795, 0.4033706784248352, 0.26773130893707275, 0.10119961202144623, -0.05589720606803894, 0.09794456511735916, -0.0015207603573799133, -0.13657155632972717, -0.041088737547397614, 0.21064047515392303, -0.07398615777492523, -0.06605172157287598, -0.1716708242893219, -0.19847337901592255, -0.22340388596057892, 0.05023260787129402, -0.028043074533343315, 0.0909951776266098, 0.18920156359672546, -0.3382570743560791, -0.15816986560821533, -0.2743869125843048, 0.03998260200023651, 0.0858677476644516, 0.13021786510944366, -0.09005770087242126, 0.00031433627009391785, 0.11537384986877441, -0.011225393041968346, -0.28282827138900757, 0.33425742387771606, -0.22972515225410461, 0.0784377008676529, -0.24595335125923157, -0.025868654251098633, -0.29508841037750244, 0.122764453291893, 0.7513282299041748, -0.010325834155082703, 0.0036525800824165344, 0.13408958911895752, -0.014134727418422699, -0.0936855673789978, 0.23006482422351837, -0.04569374397397041, -0.060797955840826035, -0.1120203509926796, 0.1092364639043808, 0.04232548549771309, -0.19658759236335754, -0.0770481750369072, 0.0793876200914383, 0.5250938534736633, -0.22625179588794708, 0.02974315732717514, 0.25231897830963135, -0.17375633120536804, 0.3716743588447571, 0.07731275260448456, -0.10005397349596024, -0.004269406199455261, 0.05018884688615799, 0.004211181774735451, -0.3786035180091858, 0.10820776224136353, -0.05738960951566696, 0.04963972046971321, 0.05853918939828873, -0.2926732897758484, -0.09850138425827026, 0.040153924375772476, 0.20972570776939392, -0.490492582321167, 0.03786087408661842, -0.23124948143959045, -0.031505510210990906, -0.45485249161720276, 0.13849738240242004, 0.11540839076042175, -0.020821712911128998, 0.26357248425483704, 0.21386906504631042, -0.05003339424729347, 0.17704768478870392, 0.22077131271362305, 0.5246526598930359, -0.08719250559806824, -0.2866052985191345, -0.2603038251399994, 0.15620438754558563, -0.14503014087677002, -0.006691575050354004, 0.33872130513191223, 0.12696585059165955, -0.15546196699142456, -0.36732181906700134, 0.02434621751308441, 0.17126986384391785, 0.16643056273460388, 0.19805973768234253, 0.21971529722213745, -0.13092049956321716, 0.29450973868370056, 0.31837841868400574, -0.050355397164821625, -0.005404561758041382, 0.28729069232940674, 0.3771531581878662, 0.1302507519721985, 0.026236940175294876, 0.0529356449842453, 0.15271569788455963, -0.16349029541015625, 0.19069252908229828, 0.24041296541690826, -0.40555721521377563, -0.22837549448013306, 0.1706324815750122, -0.07829874753952026, 0.11273356527090073, 0.10617031157016754, -0.2787221074104309, -0.02777073159813881, -0.21007834374904633, 0.12019748985767365, 0.0238514207303524, 0.12716986238956451, 0.34054309129714966, -0.11701929569244385, -0.4766607880592346, -0.20743022859096527, -0.05397043377161026, 0.34774085879325867, 0.15215550363063812, -0.3627759516239166, -0.5357195138931274, 0.10201112926006317, 0.1276341676712036, 0.20712149143218994, 0.21257023513317108, 0.21261128783226013, 0.055864498019218445, -0.33924293518066406, -0.09647153317928314, -0.3015696108341217, 0.1901007443666458, -0.07255084067583084, -0.12971524894237518, 0.1335395872592926, -0.07447948306798935, 0.12273812294006348, -0.1394829899072647, -0.16798153519630432, 0.4151247441768646, 0.040531888604164124, 0.2197175920009613, 0.24428309500217438, 0.0522601380944252, -0.05646815150976181, 0.0882926881313324, 0.017324838787317276, 0.796550989151001, -0.04868693649768829, 0.09755951166152954, 0.1730818897485733, -0.4765614867210388, -0.016910241916775703, -0.13843728601932526, -0.48156043887138367, 0.44527262449264526, -0.12853826582431793, 0.25773945450782776, -0.10380333662033081, 0.06182526797056198, 0.10274295508861542, -0.0244901105761528, -0.3545542061328888, -0.43765556812286377, -0.2635878920555115, 0.11117275059223175, -0.31340956687927246, 0.016154689714312553, -0.19621065258979797, 0.1820281445980072, 0.3219967484474182, -0.010690540075302124, 0.3882293999195099, 0.10328987240791321, -0.06287097930908203, 0.13094653189182281, -0.04949476569890976, -0.3941633105278015, 0.27697959542274475, 0.11696366220712662, 0.08389867842197418, -0.010847322642803192, 0.05018805339932442, 0.09728498756885529, 0.1130189448595047, 0.027476860210299492, -0.07127949595451355, 0.006547323428094387, 0.1816074550151825, 0.21473316848278046, 0.09641224145889282, -0.1696958839893341, 0.0983612984418869, -0.03355865180492401, -0.12312684953212738, 0.018046118319034576, -0.2531895637512207, 0.06677663326263428, 0.14219580590724945, -0.544601321220398, 0.07076464593410492, -0.25844648480415344, 0.15594808757305145, -0.06768843531608582, -0.029764018952846527, -0.18016919493675232, -0.2850068211555481, 0.6774824857711792, -0.05859167128801346, 0.017316902056336403, -0.12232951074838638, -0.3776323199272156, 0.34245067834854126, 0.032491203397512436, -0.1293652504682541, -0.07074782252311707, 0.5897908806800842, 0.1667085736989975, 0.3014034926891327, -0.4254826605319977, -0.5223566293716431, 0.07743799686431885, -0.17737410962581635, -0.040652234107255936, 0.1705978512763977, 0.2529670000076294, 0.15262995660305023, -0.23129603266716003, 0.05046003684401512, 0.37475448846817017, -0.04245525971055031, 0.05088470131158829, 0.22819949686527252, 0.02269889786839485, -0.1596142053604126, 0.11394302546977997, -0.2677564322948456, -0.18865631520748138, 0.2691541314125061, -0.23871804773807526, 0.31516703963279724, -0.1839410364627838, -0.2940918207168579, -0.34745749831199646, -0.43186095356941223, 0.32328158617019653, -0.17621782422065735, -0.24889832735061646, 0.0031494107097387314, -0.2997845411300659, 0.03478162735700607, 0.023550257086753845, 0.13007000088691711, -0.061793576925992966, 0.05385690927505493, -0.10029487311840057, -0.10944576561450958, 0.16833899915218353, 0.1981128454208374, -0.0008724993094801903, -0.145191952586174, 0.2456669956445694, 0.3632868826389313, -0.07149391621351242, 0.1012703999876976, -0.2878055274486542, -0.05719204619526863, 0.005167651921510696, -0.14545202255249023, 0.1560381054878235, 0.36053961515426636, 0.05276436358690262, -0.0800415575504303, -0.3049815893173218, -0.33730366826057434, 0.20246809720993042, -0.22241735458374023, 0.02575349621474743, -0.03633552044630051, -0.1619892716407776, -0.2508613169193268, -0.07938192784786224, 0.254610538482666, 0.28472888469696045, -0.024231204763054848, 0.024345790967345238, -0.06450821459293365, 0.29115885496139526, -0.17765043675899506, -0.08247866481542587, 0.3791649043560028, -0.4289121925830841, 0.4440568685531616, -0.4121902287006378, -0.11165454983711243, -0.28692156076431274, -0.06277543306350708, 0.2580825090408325, 0.17226487398147583, 0.043193161487579346, -0.25585734844207764, -0.04233045503497124, -0.14787742495536804, 0.15052714943885803, 0.04108346253633499, 0.22250664234161377, 0.04516221210360527, -0.3216908574104309, -0.07142825424671173, 0.01749633625149727, 0.19372835755348206, 0.07396045327186584, -0.4221894443035126, -0.3358697295188904, 0.0016596689820289612, -0.0236048623919487, 0.37672141194343567, -0.23268233239650726, 0.02613767236471176, -0.050563886761665344, -0.15211209654808044, 0.8328136801719666, -0.18088336288928986, -0.009947225451469421, 0.6925455927848816, -0.3267483413219452, -0.13191033899784088, -0.4019821882247925, 0.00635942816734314, 0.00712142139673233, 0.1300678253173828, -0.014784891158342361, -0.08269794285297394, 0.10016582906246185, 0.151804119348526, -0.17728841304779053, -0.16315004229545593, 0.09532801806926727, 0.2657691240310669, 0.046834416687488556, -0.2651507556438446, 0.19903430342674255, 0.10325407981872559, -0.10247509181499481, 0.15958751738071442, -0.07592437416315079, -0.013465982861816883, -0.13182367384433746, 0.047196805477142334, 0.02573206275701523, -0.5297614336013794, 0.5039911866188049, 0.32062771916389465, 0.29068970680236816, 0.6494691371917725, -0.47511985898017883, -0.17337769269943237, -0.7577323913574219, -0.27070704102516174, 0.23599371314048767, -0.20287644863128662, -0.08861587941646576, -0.2320537120103836, 0.839385449886322, 0.16409388184547424, -0.09894737601280212, -0.02459893561899662, 0.16053476929664612, -0.1333814561367035, 0.2821444571018219, 0.4403481185436249, 1.1701619625091553, -0.17416241765022278, 0.09746140241622925, -0.22826868295669556, -0.20566660165786743, 0.19742552936077118, -0.5447788834571838, -0.04286270961165428, -0.3183012008666992, -0.39921796321868896, -0.32860180735588074, -0.0008030012249946594, 0.3142542839050293, 0.23695920407772064, -0.29602697491645813, -0.2671460509300232, -0.16051743924617767, 0.458532452583313, 0.10844766348600388, -0.0004118308424949646, -0.06160924583673477, -0.34370481967926025, -0.038352712988853455, 0.06529437005519867, -0.014318142086267471, -0.22465357184410095, 0.0008732490241527557, -0.19712692499160767, 0.010442115366458893, 0.1757439523935318, -0.26679831743240356, -0.11641911417245865, 0.34636420011520386, -0.04645121097564697, -0.062421705573797226, 0.2566003203392029, -0.05693277716636658, -0.3638552725315094, 0.36732444167137146, 0.14787185192108154, -0.10321149975061417, -0.07056796550750732, 0.019653314724564552, 0.08248622715473175, -0.05414512753486633, 0.008354444056749344, 0.08504656702280045, 0.12642599642276764, -0.101117342710495, 0.37178078293800354, 0.2257024049758911, -0.1659044772386551, -0.39657461643218994, -0.13063910603523254, 0.12175272405147552, -0.2661967873573303, -0.07785150408744812, 0.12599638104438782, -0.0035945549607276917, -0.10097804665565491, 0.13499991595745087, 0.19737575948238373, -0.12008348852396011, 0.41638898849487305, -0.06966524571180344, -0.0436796173453331, -0.020886417478322983, 0.004527796059846878, 0.036560237407684326, -0.18698666989803314, -0.11176270991563797, -0.11641063541173935, -0.23883889615535736, -0.18133264780044556, 0.12605701386928558, -0.08495482802391052, 0.11933663487434387, -0.20365148782730103, 0.16387301683425903, -0.26663607358932495, -0.06162632629275322, 0.27653592824935913, 0.06571897864341736, 0.08977377414703369, -0.06335881352424622, -0.18026727437973022, -0.12491685152053833, 0.33314037322998047, 0.0012915097177028656, 0.30313822627067566, -0.21025338768959045, -0.1372942328453064, -0.3086627721786499, 0.47994765639305115, -0.327265202999115, -0.25243687629699707, 0.09076645970344543, 0.13913291692733765, 0.4211636781692505, 0.1760222613811493, -0.2063177078962326, 0.10728231072425842, 0.11656095087528229, 0.06585776805877686, 0.1181688904762268, -0.10257432609796524, -0.11163412034511566, 0.14772024750709534, 0.02748074010014534, 0.5491579174995422, -0.16221415996551514, 0.07067450881004333, -0.22327429056167603, -0.2647392153739929, 0.06459126621484756, 0.09127186238765717, -0.10029387474060059, 0.16443520784378052, 0.06353571265935898, 0.30850350856781006, -0.06633923947811127, 0.07193035632371902, 0.15201407670974731, 0.24259793758392334, 0.1101936399936676, -0.06801151484251022, -0.46534207463264465, 0.04780334234237671, 0.005017679184675217, 0.3495869040489197, 0.00417129322886467, -0.40227288007736206, 0.3933255672454834, 0.26524603366851807, 0.17096854746341705, 0.12518098950386047, -0.0536179319024086, -0.08742852509021759, -0.2164730727672577, 0.023904696106910706, 0.086149662733078, 0.2016262263059616, -0.04018142819404602, -0.09746815264225006, -0.09955350309610367, 0.030062049627304077, 0.1666279435157776, 0.3290729224681854, 0.4960241913795471, 0.4686949849128723, -0.03883581608533859, -0.20083901286125183, 0.12875571846961975, -0.15405355393886566, -0.3290027976036072, 0.37984326481819153, 0.2913466691970825, 0.040353186428546906, 0.3667075037956238, 0.23490726947784424, 0.16980186104774475, -0.19120661914348602, 0.017364267259836197, 0.18854312598705292, 0.4387429654598236, -0.22318360209465027, 0.22056737542152405, 0.07758153975009918, 0.34814900159835815, 0.2204698920249939, 0.361267626285553, 0.06487336754798889, 0.106486015021801, -0.1689765453338623, 0.1860436350107193, 0.06656750291585922, -0.2682570815086365, 0.254300057888031, -0.01717296987771988, -0.24376511573791504, -0.05846800655126572, -0.020613566040992737, -0.22763799130916595, -0.30728641152381897, 0.09502214193344116, -0.12716980278491974, 0.5519965291023254, -0.05549135431647301, 0.4261947572231293, 0.06979762762784958, 0.10286656022071838, 0.14652840793132782, 0.46339961886405945, -0.2925514578819275, -0.058548733592033386, -0.1234138086438179, 0.2248445749282837, 0.2135971635580063, 0.05119916796684265, 0.055237557739019394, 0.35019370913505554, 0.1843438297510147, 0.2905712127685547, -0.5422438979148865, -0.2287694811820984, 0.21851634979248047, 0.11292523145675659, 0.18097622692584991, 0.160288006067276, 0.01998356357216835, 0.12391208112239838, -0.023173203691840172, 0.19210711121559143, 0.10236760973930359, 0.2218790054321289, 0.13797764480113983, 0.12032502889633179, 0.45640864968299866, -0.36605164408683777, 0.2017480432987213, 0.025215553119778633, -0.24790629744529724, -0.4988902807235718, 0.3695061504840851, 0.22130697965621948, 0.055294133722782135, 0.32494544982910156, 0.0880880355834961, 0.2982851266860962, 0.14146654307842255, 0.3300430476665497, -0.19296759366989136, -0.23176689445972443, -0.04164305329322815, -0.06945399194955826, -0.24657265841960907, -0.0951211228966713, -0.46404823660850525, 0.25393474102020264, 0.04278656095266342, 0.5257877707481384, 0.16172194480895996, -0.39599156379699707, -0.42222145199775696, -0.01593787968158722, 0.3412630259990692, -0.42610839009284973, -0.05365961417555809, 0.37153005599975586, 0.1047414094209671, -0.1339077651500702, 0.2782132625579834, 0.005189031362533569, 0.3788485825061798, 0.08085570484399796, -0.48680442571640015, 0.11746875941753387, 0.03862982243299484, 0.13392961025238037, 0.1630999743938446, -0.49562761187553406, 0.3192765712738037, -0.12818366289138794, -0.009392637759447098, -0.08610831201076508, 0.014034491032361984, 0.024945735931396484, 0.04303043335676193, 0.1548386812210083, -0.1779858022928238, 0.12965580821037292, 0.10786373168230057, -0.20496928691864014, -0.011244643479585648, -0.4431523382663727, -0.12721359729766846, -0.2295709252357483, -0.05432973429560661, 0.12558332085609436, 0.009930282831192017, -0.16491752862930298, -0.08111197501420975, 0.020833121612668037, 0.3102452754974365, 0.017584070563316345, -0.3309348225593567, 0.1252002716064453, 0.19283699989318848, -0.3393990695476532, 0.14931732416152954, 0.18287137150764465, -0.06665419042110443, 0.3174222707748413, -0.5863173604011536, -0.0199856236577034, 0.4090452790260315, -0.10540394484996796, 0.10580861568450928, 0.2601490318775177, 0.19644911587238312, 0.0019021853804588318, -0.26624128222465515, -0.29909050464630127, -0.15843111276626587, 0.33713746070861816, -0.7423805594444275, -0.39325711131095886 ]
https://github.com/huggingface/datasets/issues/5574
Also encountering this issue for every dataset I try to stream! Installed datasets from main: ``` - `datasets` version: 2.10.1.dev0 - Platform: macOS-13.1-arm64-arm-64bit - Python version: 3.9.13 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 ``` Repro: ```python from datasets import load_dataset spigi = load_dataset("kensho/spgispeech", "dev", split="validation", streaming=True, use_auth_token=True) sample = next(iter(spigi)) ``` <details> <summary> Traceback </summary> ```python --------------------------------------------------------------------------- ClientResponseError Traceback (most recent call last) File ~/venv/lib/python3.9/site-packages/fsspec/implementations/http.py:407, in HTTPFileSystem._info(self, url, **kwargs) 405 try: 406 info.update( --> 407 await _file_info( 408 self.encode_url(url), 409 size_policy=policy, 410 session=session, 411 **self.kwargs, 412 **kwargs, 413 ) 414 ) 415 if info.get("size") is not None: File ~/venv/lib/python3.9/site-packages/fsspec/implementations/http.py:792, in _file_info(url, session, size_policy, **kwargs) 791 async with r: --> 792 r.raise_for_status() 794 # TODO: 795 # recognise lack of 'Accept-Ranges', 796 # or 'Accept-Ranges': 'none' (not 'bytes') 797 # to mean streaming only, no random access => return None File ~/venv/lib/python3.9/site-packages/aiohttp/client_reqrep.py:1005, in ClientResponse.raise_for_status(self) 1004 self.release() -> 1005 raise ClientResponseError( 1006 self.request_info, 1007 self.history, 1008 status=self.status, 1009 message=self.reason, 1010 headers=self.headers, 1011 ) ClientResponseError: 403, message='Forbidden', url=URL('[https://cdn-lfs.huggingface.co/repos/e2/89/e28905247d6f48bb4edad5baf9b1bb4158e897a13fdf18bf3b8ee89ff8387ab8/46eca7431a7b6bad344bf451800e5b10cea1dd168f26d1027a6d9eb374b7fac3?response-content-disposition=attachment%3B+filename*%3DUTF-8''dev.csv%3B+filename%3D%22dev.csv%22%3B&response-content-type=text/csv&Expires=1677494732&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2UyLzg5L2UyODkwNTI0N2Q2ZjQ4YmI0ZWRhZDViYWY5YjFiYjQxNThlODk3YTEzZmRmMThiZjNiOGVlODlmZjgzODdhYjgvNDZlY2E3NDMxYTdiNmJhZDM0NGJmNDUxODAwZTViMTBjZWExZGQxNjhmMjZkMTAyN2E2ZDllYjM3NGI3ZmFjMz9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPXRleHQlMkZjc3YiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2Nzc0OTQ3MzJ9fX1dfQ__&Signature=EzQB9f7xPckvqfFB6LzcyR-wzTnQCqtPDdWtQUzZ3QJ-gY-IHG5mxQITJgMr1nVTbJZrPmGAaDngMcPFUfSQa8RmCqYH~dZl-UGE8CO4neKNUT1DvA2WEvLDS4WaAJ3SN-9rX0uFb03~c1QS78cIgIRboYvf6ugKiJz86Bd7Vs~tcp201JFR0A6jIMseqApOnkb9d8dHMP3Ny~F6gO3Qf2QpEWM-QsDIyw2Kz2QV55nq8TsDpRYZCZo50~WwD~73Hej0PoDhEA1K37d19pa0CQhkaN-gjCrbT9xLabbvhJWa~ZkWcMdD0teCgjYqv1wKyvFXDAxukxLGEc7OBXVbYw__&Key-Pair-Id=KVTP0A1DKRTAX](https://cdn-lfs.huggingface.co/repos/e2/89/e28905247d6f48bb4edad5baf9b1bb4158e897a13fdf18bf3b8ee89ff8387ab8/46eca7431a7b6bad344bf451800e5b10cea1dd168f26d1027a6d9eb374b7fac3?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27dev.csv%3B+filename%3D%22dev.csv%22%3B&response-content-type=text/csv&Expires=1677494732&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2UyLzg5L2UyODkwNTI0N2Q2ZjQ4YmI0ZWRhZDViYWY5YjFiYjQxNThlODk3YTEzZmRmMThiZjNiOGVlODlmZjgzODdhYjgvNDZlY2E3NDMxYTdiNmJhZDM0NGJmNDUxODAwZTViMTBjZWExZGQxNjhmMjZkMTAyN2E2ZDllYjM3NGI3ZmFjMz9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPXRleHQlMkZjc3YiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2Nzc0OTQ3MzJ9fX1dfQ__&Signature=EzQB9f7xPckvqfFB6LzcyR-wzTnQCqtPDdWtQUzZ3QJ-gY-IHG5mxQITJgMr1nVTbJZrPmGAaDngMcPFUfSQa8RmCqYH~dZl-UGE8CO4neKNUT1DvA2WEvLDS4WaAJ3SN-9rX0uFb03~c1QS78cIgIRboYvf6ugKiJz86Bd7Vs~tcp201JFR0A6jIMseqApOnkb9d8dHMP3Ny~F6gO3Qf2QpEWM-QsDIyw2Kz2QV55nq8TsDpRYZCZo50~WwD~73Hej0PoDhEA1K37d19pa0CQhkaN-gjCrbT9xLabbvhJWa~ZkWcMdD0teCgjYqv1wKyvFXDAxukxLGEc7OBXVbYw__&Key-Pair-Id=KVTP0A1DKRTAX)') The above exception was the direct cause of the following exception: FileNotFoundError Traceback (most recent call last) Cell In[5], line 4 1 from datasets import load_dataset 3 spigi = load_dataset("kensho/spgispeech", "dev", split="validation", streaming=True) ----> 4 sample = next(iter(spigi)) File ~/datasets/src/datasets/iterable_dataset.py:937, in IterableDataset.__iter__(self) 934 yield from self._iter_pytorch(ex_iterable) 935 return --> 937 for key, example in ex_iterable: 938 if self.features: 939 # `IterableDataset` automatically fills missing columns with None. 940 # This is done with `_apply_feature_types_on_example`. 941 yield _apply_feature_types_on_example( 942 example, self.features, token_per_repo_id=self._token_per_repo_id 943 ) File ~/datasets/src/datasets/iterable_dataset.py:113, in ExamplesIterable.__iter__(self) 112 def __iter__(self): --> 113 yield from self.generate_examples_fn(**self.kwargs) File ~/.cache/huggingface/modules/datasets_modules/datasets/kensho--spgispeech/5fbf75dd9ef795a9b5a673457d2cbaf0b8fa0de8fb62acbd1da338d83a41e2f0/spgispeech.py:186, in Spgispeech._generate_examples(self, local_extracted_archive_paths, archives, meta_path) 183 dict_keys = ["wav_filename", "wav_filesize", "transcript"] 185 logging.info("Reading metadata...") --> 186 with open(meta_path, encoding="utf-8") as f: 187 csvreader = csv.DictReader(f, delimiter="|") 188 metadata = {x["wav_filename"]: dict((k, x[k]) for k in dict_keys) for x in csvreader} File ~/datasets/src/datasets/streaming.py:70, in extend_module_for_streaming.<locals>.wrap_auth.<locals>.wrapper(*args, **kwargs) 68 @wraps(function) 69 def wrapper(*args, **kwargs): ---> 70 return function(*args, use_auth_token=use_auth_token, **kwargs) File ~/datasets/src/datasets/download/streaming_download_manager.py:495, in xopen(file, mode, use_auth_token, *args, **kwargs) 493 kwargs = {**kwargs, **new_kwargs} 494 try: --> 495 file_obj = fsspec.open(file, mode=mode, *args, **kwargs).open() 496 except ValueError as e: 497 if str(e) == "Cannot seek streaming HTTP file": File ~/venv/lib/python3.9/site-packages/fsspec/core.py:135, in OpenFile.open(self) 128 def open(self): 129 """Materialise this as a real open file without context 130 131 The OpenFile object should be explicitly closed to avoid enclosed file 132 instances persisting. You must, therefore, keep a reference to the OpenFile 133 during the life of the file-like it generates. 134 """ --> 135 return self.__enter__() File ~/venv/lib/python3.9/site-packages/fsspec/core.py:103, in OpenFile.__enter__(self) 100 def __enter__(self): 101 mode = self.mode.replace("t", "").replace("b", "") + "b" --> 103 f = self.fs.open(self.path, mode=mode) 105 self.fobjects = [f] 107 if self.compression is not None: File ~/venv/lib/python3.9/site-packages/fsspec/spec.py:1106, in AbstractFileSystem.open(self, path, mode, block_size, cache_options, compression, **kwargs) 1104 else: 1105 ac = kwargs.pop("autocommit", not self._intrans) -> 1106 f = self._open( 1107 path, 1108 mode=mode, 1109 block_size=block_size, 1110 autocommit=ac, 1111 cache_options=cache_options, 1112 **kwargs, 1113 ) 1114 if compression is not None: 1115 from fsspec.compression import compr File ~/venv/lib/python3.9/site-packages/fsspec/implementations/http.py:346, in HTTPFileSystem._open(self, path, mode, block_size, autocommit, cache_type, cache_options, size, **kwargs) 344 kw["asynchronous"] = self.asynchronous 345 kw.update(kwargs) --> 346 size = size or self.info(path, **kwargs)["size"] 347 session = sync(self.loop, self.set_session) 348 if block_size and size: File ~/venv/lib/python3.9/site-packages/fsspec/asyn.py:113, in sync_wrapper.<locals>.wrapper(*args, **kwargs) 110 @functools.wraps(func) 111 def wrapper(*args, **kwargs): 112 self = obj or args[0] --> 113 return sync(self.loop, func, *args, **kwargs) File ~/venv/lib/python3.9/site-packages/fsspec/asyn.py:98, in sync(loop, func, timeout, *args, **kwargs) 96 raise FSTimeoutError from return_result 97 elif isinstance(return_result, BaseException): ---> 98 raise return_result 99 else: 100 return return_result File ~/venv/lib/python3.9/site-packages/fsspec/asyn.py:53, in _runner(event, coro, result, timeout) 51 coro = asyncio.wait_for(coro, timeout=timeout) 52 try: ---> 53 result[0] = await coro 54 except Exception as ex: 55 result[0] = ex File ~/venv/lib/python3.9/site-packages/fsspec/implementations/http.py:420, in HTTPFileSystem._info(self, url, **kwargs) 417 except Exception as exc: 418 if policy == "get": 419 # If get failed, then raise a FileNotFoundError --> 420 raise FileNotFoundError(url) from exc 421 logger.debug(str(exc)) 423 return {"name": url, "size": None, **info, "type": "file"} FileNotFoundError: https://huggingface.co/datasets/kensho/spgispeech/resolve/main/data/meta/dev.csv ``` </details>
c4 dataset streaming fails with `FileNotFoundError`
### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
655
c4 dataset streaming fails with `FileNotFoundError` ### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 Also encountering this issue for every dataset I try to stream! Installed datasets from main: ``` - `datasets` version: 2.10.1.dev0 - Platform: macOS-13.1-arm64-arm-64bit - Python version: 3.9.13 - PyArrow version: 10.0.1 - Pandas version: 1.5.2 ``` Repro: ```python from datasets import load_dataset spigi = load_dataset("kensho/spgispeech", "dev", split="validation", streaming=True, use_auth_token=True) sample = next(iter(spigi)) ``` <details> <summary> Traceback </summary> ```python --------------------------------------------------------------------------- ClientResponseError Traceback (most recent call last) File ~/venv/lib/python3.9/site-packages/fsspec/implementations/http.py:407, in HTTPFileSystem._info(self, url, **kwargs) 405 try: 406 info.update( --> 407 await _file_info( 408 self.encode_url(url), 409 size_policy=policy, 410 session=session, 411 **self.kwargs, 412 **kwargs, 413 ) 414 ) 415 if info.get("size") is not None: File ~/venv/lib/python3.9/site-packages/fsspec/implementations/http.py:792, in _file_info(url, session, size_policy, **kwargs) 791 async with r: --> 792 r.raise_for_status() 794 # TODO: 795 # recognise lack of 'Accept-Ranges', 796 # or 'Accept-Ranges': 'none' (not 'bytes') 797 # to mean streaming only, no random access => return None File ~/venv/lib/python3.9/site-packages/aiohttp/client_reqrep.py:1005, in ClientResponse.raise_for_status(self) 1004 self.release() -> 1005 raise ClientResponseError( 1006 self.request_info, 1007 self.history, 1008 status=self.status, 1009 message=self.reason, 1010 headers=self.headers, 1011 ) ClientResponseError: 403, message='Forbidden', url=URL('[https://cdn-lfs.huggingface.co/repos/e2/89/e28905247d6f48bb4edad5baf9b1bb4158e897a13fdf18bf3b8ee89ff8387ab8/46eca7431a7b6bad344bf451800e5b10cea1dd168f26d1027a6d9eb374b7fac3?response-content-disposition=attachment%3B+filename*%3DUTF-8''dev.csv%3B+filename%3D%22dev.csv%22%3B&response-content-type=text/csv&Expires=1677494732&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2UyLzg5L2UyODkwNTI0N2Q2ZjQ4YmI0ZWRhZDViYWY5YjFiYjQxNThlODk3YTEzZmRmMThiZjNiOGVlODlmZjgzODdhYjgvNDZlY2E3NDMxYTdiNmJhZDM0NGJmNDUxODAwZTViMTBjZWExZGQxNjhmMjZkMTAyN2E2ZDllYjM3NGI3ZmFjMz9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPXRleHQlMkZjc3YiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2Nzc0OTQ3MzJ9fX1dfQ__&Signature=EzQB9f7xPckvqfFB6LzcyR-wzTnQCqtPDdWtQUzZ3QJ-gY-IHG5mxQITJgMr1nVTbJZrPmGAaDngMcPFUfSQa8RmCqYH~dZl-UGE8CO4neKNUT1DvA2WEvLDS4WaAJ3SN-9rX0uFb03~c1QS78cIgIRboYvf6ugKiJz86Bd7Vs~tcp201JFR0A6jIMseqApOnkb9d8dHMP3Ny~F6gO3Qf2QpEWM-QsDIyw2Kz2QV55nq8TsDpRYZCZo50~WwD~73Hej0PoDhEA1K37d19pa0CQhkaN-gjCrbT9xLabbvhJWa~ZkWcMdD0teCgjYqv1wKyvFXDAxukxLGEc7OBXVbYw__&Key-Pair-Id=KVTP0A1DKRTAX](https://cdn-lfs.huggingface.co/repos/e2/89/e28905247d6f48bb4edad5baf9b1bb4158e897a13fdf18bf3b8ee89ff8387ab8/46eca7431a7b6bad344bf451800e5b10cea1dd168f26d1027a6d9eb374b7fac3?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27dev.csv%3B+filename%3D%22dev.csv%22%3B&response-content-type=text/csv&Expires=1677494732&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2UyLzg5L2UyODkwNTI0N2Q2ZjQ4YmI0ZWRhZDViYWY5YjFiYjQxNThlODk3YTEzZmRmMThiZjNiOGVlODlmZjgzODdhYjgvNDZlY2E3NDMxYTdiNmJhZDM0NGJmNDUxODAwZTViMTBjZWExZGQxNjhmMjZkMTAyN2E2ZDllYjM3NGI3ZmFjMz9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPXRleHQlMkZjc3YiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2Nzc0OTQ3MzJ9fX1dfQ__&Signature=EzQB9f7xPckvqfFB6LzcyR-wzTnQCqtPDdWtQUzZ3QJ-gY-IHG5mxQITJgMr1nVTbJZrPmGAaDngMcPFUfSQa8RmCqYH~dZl-UGE8CO4neKNUT1DvA2WEvLDS4WaAJ3SN-9rX0uFb03~c1QS78cIgIRboYvf6ugKiJz86Bd7Vs~tcp201JFR0A6jIMseqApOnkb9d8dHMP3Ny~F6gO3Qf2QpEWM-QsDIyw2Kz2QV55nq8TsDpRYZCZo50~WwD~73Hej0PoDhEA1K37d19pa0CQhkaN-gjCrbT9xLabbvhJWa~ZkWcMdD0teCgjYqv1wKyvFXDAxukxLGEc7OBXVbYw__&Key-Pair-Id=KVTP0A1DKRTAX)') The above exception was the direct cause of the following exception: FileNotFoundError Traceback (most recent call last) Cell In[5], line 4 1 from datasets import load_dataset 3 spigi = load_dataset("kensho/spgispeech", "dev", split="validation", streaming=True) ----> 4 sample = next(iter(spigi)) File ~/datasets/src/datasets/iterable_dataset.py:937, in IterableDataset.__iter__(self) 934 yield from self._iter_pytorch(ex_iterable) 935 return --> 937 for key, example in ex_iterable: 938 if self.features: 939 # `IterableDataset` automatically fills missing columns with None. 940 # This is done with `_apply_feature_types_on_example`. 941 yield _apply_feature_types_on_example( 942 example, self.features, token_per_repo_id=self._token_per_repo_id 943 ) File ~/datasets/src/datasets/iterable_dataset.py:113, in ExamplesIterable.__iter__(self) 112 def __iter__(self): --> 113 yield from self.generate_examples_fn(**self.kwargs) File ~/.cache/huggingface/modules/datasets_modules/datasets/kensho--spgispeech/5fbf75dd9ef795a9b5a673457d2cbaf0b8fa0de8fb62acbd1da338d83a41e2f0/spgispeech.py:186, in Spgispeech._generate_examples(self, local_extracted_archive_paths, archives, meta_path) 183 dict_keys = ["wav_filename", "wav_filesize", "transcript"] 185 logging.info("Reading metadata...") --> 186 with open(meta_path, encoding="utf-8") as f: 187 csvreader = csv.DictReader(f, delimiter="|") 188 metadata = {x["wav_filename"]: dict((k, x[k]) for k in dict_keys) for x in csvreader} File ~/datasets/src/datasets/streaming.py:70, in extend_module_for_streaming.<locals>.wrap_auth.<locals>.wrapper(*args, **kwargs) 68 @wraps(function) 69 def wrapper(*args, **kwargs): ---> 70 return function(*args, use_auth_token=use_auth_token, **kwargs) File ~/datasets/src/datasets/download/streaming_download_manager.py:495, in xopen(file, mode, use_auth_token, *args, **kwargs) 493 kwargs = {**kwargs, **new_kwargs} 494 try: --> 495 file_obj = fsspec.open(file, mode=mode, *args, **kwargs).open() 496 except ValueError as e: 497 if str(e) == "Cannot seek streaming HTTP file": File ~/venv/lib/python3.9/site-packages/fsspec/core.py:135, in OpenFile.open(self) 128 def open(self): 129 """Materialise this as a real open file without context 130 131 The OpenFile object should be explicitly closed to avoid enclosed file 132 instances persisting. You must, therefore, keep a reference to the OpenFile 133 during the life of the file-like it generates. 134 """ --> 135 return self.__enter__() File ~/venv/lib/python3.9/site-packages/fsspec/core.py:103, in OpenFile.__enter__(self) 100 def __enter__(self): 101 mode = self.mode.replace("t", "").replace("b", "") + "b" --> 103 f = self.fs.open(self.path, mode=mode) 105 self.fobjects = [f] 107 if self.compression is not None: File ~/venv/lib/python3.9/site-packages/fsspec/spec.py:1106, in AbstractFileSystem.open(self, path, mode, block_size, cache_options, compression, **kwargs) 1104 else: 1105 ac = kwargs.pop("autocommit", not self._intrans) -> 1106 f = self._open( 1107 path, 1108 mode=mode, 1109 block_size=block_size, 1110 autocommit=ac, 1111 cache_options=cache_options, 1112 **kwargs, 1113 ) 1114 if compression is not None: 1115 from fsspec.compression import compr File ~/venv/lib/python3.9/site-packages/fsspec/implementations/http.py:346, in HTTPFileSystem._open(self, path, mode, block_size, autocommit, cache_type, cache_options, size, **kwargs) 344 kw["asynchronous"] = self.asynchronous 345 kw.update(kwargs) --> 346 size = size or self.info(path, **kwargs)["size"] 347 session = sync(self.loop, self.set_session) 348 if block_size and size: File ~/venv/lib/python3.9/site-packages/fsspec/asyn.py:113, in sync_wrapper.<locals>.wrapper(*args, **kwargs) 110 @functools.wraps(func) 111 def wrapper(*args, **kwargs): 112 self = obj or args[0] --> 113 return sync(self.loop, func, *args, **kwargs) File ~/venv/lib/python3.9/site-packages/fsspec/asyn.py:98, in sync(loop, func, timeout, *args, **kwargs) 96 raise FSTimeoutError from return_result 97 elif isinstance(return_result, BaseException): ---> 98 raise return_result 99 else: 100 return return_result File ~/venv/lib/python3.9/site-packages/fsspec/asyn.py:53, in _runner(event, coro, result, timeout) 51 coro = asyncio.wait_for(coro, timeout=timeout) 52 try: ---> 53 result[0] = await coro 54 except Exception as ex: 55 result[0] = ex File ~/venv/lib/python3.9/site-packages/fsspec/implementations/http.py:420, in HTTPFileSystem._info(self, url, **kwargs) 417 except Exception as exc: 418 if policy == "get": 419 # If get failed, then raise a FileNotFoundError --> 420 raise FileNotFoundError(url) from exc 421 logger.debug(str(exc)) 423 return {"name": url, "size": None, **info, "type": "file"} FileNotFoundError: https://huggingface.co/datasets/kensho/spgispeech/resolve/main/data/meta/dev.csv ``` </details>
[ -0.24674591422080994, 0.13279850780963898, 0.040042098611593246, 0.32442140579223633, 0.1723439246416092, 0.11456883698701859, 0.14179402589797974, 0.27800270915031433, -0.08522552996873856, 0.06967851519584656, -0.07468800991773605, -0.08705082535743713, -0.08886299282312393, 0.10009609907865524, 0.06160685792565346, 0.027806447818875313, -0.09655937552452087, 0.19019478559494019, 0.031760405749082565, 0.15858371555805206, -0.010184787213802338, 0.09507498145103455, -0.2483242154121399, -0.053817857056856155, -0.18987928330898285, -0.13213887810707092, 0.040765680372714996, 0.3170546889305115, -0.1137586385011673, -0.3029361069202423, 0.35685479640960693, -0.0902591273188591, 0.22927530109882355, 0.5055239796638489, -0.00011665171768981963, 0.13374143838882446, 0.30966201424598694, -0.16429492831230164, -0.20611068606376648, -0.2514600157737732, -0.47318217158317566, -0.04302406683564186, -0.2491292953491211, -0.09240731596946716, -0.047344595193862915, -0.05731898546218872, 0.1745145171880722, -0.4100087881088257, 0.3812447190284729, 0.5148965716362, 0.10202879458665848, 0.22239035367965698, -0.1284903585910797, 0.15287470817565918, -0.1823309063911438, -0.2142828404903412, -0.08021394908428192, 0.28004807233810425, -0.0665726512670517, 0.16675910353660583, -0.05099395290017128, 0.18356050550937653, -0.10023293644189835, -0.08552324771881104, 0.20828594267368317, -0.036381080746650696, -0.08648170530796051, -0.26736655831336975, 0.16529978811740875, 0.31590601801872253, 0.7408332228660583, -0.32909777760505676, -0.43626609444618225, -0.02088860422372818, 0.24007633328437805, -0.2947309613227844, 0.27932122349739075, 0.28933003544807434, -0.06849851459264755, 0.20271876454353333, -0.21325063705444336, -0.04583464190363884, -0.3832428753376007, 0.14924004673957825, -0.042087674140930176, -0.0571136400103569, -0.03317303955554962, -0.04581158980727196, -0.06490067392587662, 0.0373309850692749, -0.028730478137731552, -0.4330829977989197, -0.28172537684440613, 0.28500890731811523, -0.24725449085235596, -0.01606803387403488, -0.04550224170088768, 0.26849350333213806, 0.012613832950592041, 0.14114102721214294, 0.33579713106155396, -0.04241316765546799, -0.27079132199287415, 0.12728646397590637, 0.04236430674791336, 0.1877591609954834, 0.09706978499889374, -0.09918469935655594, 0.36070144176483154, 0.3305165767669678, -0.04302264004945755, -0.29922524094581604, 0.0817597433924675, -0.12616083025932312, -0.2838232219219208, -0.06033249571919441, 0.2967720031738281, -0.31146857142448425, -0.5887153148651123, 0.21858982741832733, -0.7019351124763489, -0.0014178752899169922, -0.0213322676718235, 0.506765604019165, -0.23274113237857819, 0.10391131788492203, 0.07359664142131805, 0.20150288939476013, 0.0010894984006881714, -0.38615530729293823, -0.1270834058523178, -0.1528317779302597, -0.030597954988479614, 0.19865183532238007, 0.19666290283203125, -0.3244635760784149, 0.2735459506511688, 0.038484059274196625, 0.21742688119411469, 0.0932360291481018, -0.013154711574316025, -0.0573376789689064, -0.12895925343036652, 0.19556951522827148, -0.04352903738617897, 0.09557364881038666, 0.1676395982503891, -0.31850072741508484, 0.047634780406951904, -0.09468836337327957, -0.01587391272187233, -0.10598946362733841, 0.042311638593673706, 0.10096141695976257, -0.30695879459381104, -0.07276160269975662, -0.19828756153583527, -0.050681889057159424, -0.2695266306400299, -0.3888098895549774, 0.16269831359386444, -0.05521892383694649, 0.11192651093006134, -0.2257494330406189, 0.23529493808746338, 0.7646642923355103, -0.280204713344574, -0.18464869260787964, -0.11372765153646469, -0.16401934623718262, 0.34095868468284607, 0.2769830524921417, -0.10479710251092911, 0.019311148673295975, -0.267783522605896, 0.40866681933403015, 0.21925511956214905, -0.193113774061203, -0.6291776895523071, 0.5631682872772217, -0.19646534323692322, 0.6119541525840759, 0.209344744682312, 0.06432723999023438, -0.05952168628573418, -0.18049675226211548, 0.16535398364067078, 0.25187990069389343, -0.027336888015270233, -0.035223398357629776, -0.22846561670303345, -0.1035553589463234, 0.3411962389945984, 0.031351782381534576, -0.021206742152571678, 0.14885009825229645, 0.3272896409034729, -0.025998178869485855, 0.41606253385543823, -0.2120276689529419, -0.0012864582240581512, -0.007101778872311115, 0.4763604402542114, -0.03675896301865578, -0.16989782452583313, 0.10066904127597809, -0.6074482798576355, 0.23923102021217346, 0.16325435042381287, -0.17657536268234253, -0.03365805745124817, -0.09012715518474579, -0.027928318828344345, -0.13434582948684692, -0.3375191390514374, -0.36893290281295776, 0.08227873593568802, 0.2043689638376236, 0.006776086986064911, 0.21912629902362823, -0.19478526711463928, 0.8216493129730225, -0.4222235083580017, 0.010109428316354752, -0.03835560753941536, 0.2734585404396057, 0.02752547897398472, -0.061410821974277496, 0.049076423048973083, -0.06341008841991425, 0.23409846425056458, -0.13357429206371307, -0.08236485719680786, 0.5615682601928711, -0.055334459990262985, 0.29508620500564575, -0.1069149374961853, 0.08125236630439758, 0.43685564398765564, -0.2516924738883972, 0.00744323804974556, 0.5023475289344788, 0.2338283658027649, 0.02167949080467224, 0.04421946033835411, 0.35877907276153564, 0.07097876816987991, 0.08141371607780457, 0.28478115797042847, -0.003402233123779297, 0.20224958658218384, 0.08997076749801636, -0.23544281721115112, 0.0940500944852829, 0.4511277973651886, -0.3855784833431244, 0.32700008153915405, -0.173448845744133, -0.41256070137023926, -0.04538608342409134, 0.2711711823940277, -0.08672787249088287, -0.21076519787311554, -0.0628109872341156, -0.2558000683784485, 0.0916113331913948, 0.4675676226615906, 0.3024216890335083, 0.4392612874507904, 0.06820529699325562, -0.13268396258354187, 0.1980845034122467, -0.10682014375925064, -0.18183405697345734, 0.16543163359165192, -0.21031299233436584, -0.11768637597560883, 0.27095305919647217, -0.05011570453643799, 0.06094178929924965, -0.2687233090400696, -0.4471788704395294, -0.06406038254499435, 0.0006424449384212494, -0.48724228143692017, 0.21120169758796692, -0.3642650246620178, -0.2230176329612732, -0.07438664883375168, -0.062309786677360535, -0.16031630337238312, -0.11078359186649323, -0.1855875849723816, 0.3693571984767914, -0.10465790331363678, 0.025225620716810226, -0.8260205984115601, 0.02523466944694519, -0.01327449083328247, -0.31963691115379333, -0.1709110140800476, 0.16814196109771729, -0.22076231241226196, 0.06438338756561279, 0.47011497616767883, -0.13558925688266754, 0.21940556168556213, -0.21755468845367432, -0.09454178810119629, -0.3899039030075073, -0.176279217004776, 0.09338326007127762, -0.07612979412078857, 0.1792287677526474, -0.23388555645942688, 0.37256166338920593, -0.1618686020374298, -0.3543159067630768, -0.007720932364463806, -0.1387401670217514, -0.10681143403053284, 0.12521855533123016, -0.014008734375238419, -0.0970151424407959, -0.11198841780424118, -0.39950811862945557, -0.1454065889120102, -0.35105106234550476, 0.26427164673805237, -0.1719004213809967, 0.010369135066866875, 0.40081214904785156, 0.11057280004024506, 0.29947349429130554, 0.10752752423286438, -0.17394551634788513, -0.007570244371891022, -0.24086591601371765, 0.4674311578273773, -0.022617297247052193, -0.36916545033454895, 0.2096189260482788, 0.08432985097169876, -0.06399407237768173, 0.37871745228767395, -0.36694586277008057, 0.29028695821762085, -0.11964810639619827, 0.2584116756916046, -0.07022443413734436, -0.2072044312953949, 0.19460293650627136, -0.2807166278362274, 0.08727709949016571, -0.2538697123527527, 0.10635330528020859, -0.06807161867618561, 0.2817385792732239, 0.4405920207500458, -0.06615228950977325, 0.37335914373397827, 0.1821441948413849, 0.5030515789985657, 0.33333855867385864, -0.14474116265773773, 0.494977205991745, -0.046924468129873276, 0.48988109827041626, 0.09671016037464142, -0.021917220205068588, 0.21092376112937927, -0.07143813371658325, -0.23888586461544037, 0.18571466207504272, -0.05955967307090759, -0.11733856052160263, -0.32470378279685974, 0.05678386241197586, -0.33530014753341675, -0.15100356936454773, 0.04701194912195206, -0.046284694224596024, 0.1390511691570282, 0.10295882076025009, 0.2039237916469574, 0.2588067650794983, -0.18477699160575867, 0.1013566106557846, 0.6303926706314087, 0.34443408250808716, 0.1472349762916565, -0.09011507034301758, -0.32927191257476807, -0.4260959029197693, 0.40447133779525757, 0.27845311164855957, 0.3510299026966095, -0.13401059806346893, -0.1468486487865448, -0.0816459059715271, -0.18911704421043396, 0.5461323261260986, -0.2006642371416092, 0.14058011770248413, 0.1294146180152893, 0.20293647050857544, 0.003830753266811371, -0.12068644165992737, -0.04415952041745186, 0.24062329530715942, 0.4243500232696533, 0.2068154513835907, -0.19260349869728088, 0.009018529206514359, -0.22709298133850098, -0.015159130096435547, 0.1268855333328247, 0.03617486357688904, -0.15880966186523438, -0.1292187124490738, -0.1440449357032776, -0.060872603207826614, -0.043131180107593536, 0.07953675091266632, -0.20847338438034058, 0.1955895721912384, 0.023120565339922905, 0.06246595084667206, 0.2545427083969116, 0.23770856857299805, 0.19763457775115967, 0.000494539737701416, 0.13283386826515198, 0.29775670170783997, 0.11113427579402924, 0.5374557971954346, 0.5015860795974731, 0.3258614242076874, -0.3276033401489258, -0.051683954894542694, 0.18064212799072266, 0.06356167048215866, 0.36201971769332886, 0.03963243588805199, -0.11139514297246933, 0.36321622133255005, 0.00010435469448566437, -0.06050604581832886, 0.21385706961154938, 0.31250905990600586, -0.20250417292118073, -0.45945075154304504, -0.4426804184913635, 0.4259542226791382, -0.19747531414031982, 0.08712558448314667, 0.539544939994812, 0.37628093361854553, -0.1448122262954712, -0.04598572477698326, -0.19865211844444275, 0.6673847436904907, 0.2108585089445114, 0.16781221330165863, 0.41156259179115295, -0.06498706340789795, 0.2511215806007385, -0.5093105435371399, 0.2791634798049927, -0.07036393880844116, -0.2707412838935852, -0.1809658408164978, -0.13096439838409424, 0.3981800675392151, 0.0845392495393753, -0.14743322134017944, 0.29735082387924194, 0.07149411737918854, 0.3795415759086609, 0.22432991862297058, -0.13453039526939392, -0.5341125726699829, 0.052410826086997986, -0.4589903652667999, 0.11229444295167923, -0.11275596916675568, 0.22009329497814178, -0.10963450372219086, -0.31313472986221313, -0.22502005100250244, -0.1420184075832367, -0.3320109248161316, 0.4367016553878784, -0.3807063102722168, -0.09972669929265976, -0.18795578181743622, -0.26866042613983154, 0.20013092458248138, 0.2089671492576599, -0.2123231738805771, 0.021704470738768578, -0.3878674805164337, 0.239304319024086, -0.1301879733800888, -0.0467909500002861, -0.00015890970826148987, -0.021716155111789703, 0.20118412375450134, -0.05334228277206421, -0.08571265637874603, 0.2670663893222809, -0.10205544531345367, -0.4851556122303009, 0.39969900250434875, -0.05655098333954811, -0.19144080579280853, 0.08738948404788971, -0.1711709201335907, 0.11444329470396042, 0.034642286598682404, -0.08096618950366974, 0.07494864612817764, -0.21587887406349182, -0.16919073462486267, -0.22207067906856537, 0.019049370661377907, -0.11564917862415314, -0.12492190301418304, 0.494538277387619, -0.2481376975774765, 0.02179025113582611, 0.3826906681060791, 0.04467085003852844, -0.1298367977142334, -0.19934411346912384, -0.02080754190683365, -0.045450497418642044, -0.009270995855331421, -0.0589417889714241, -0.11375189572572708, 0.2521289885044098, -0.33611711859703064, 0.13704456388950348, 0.1217673122882843, -0.13819651305675507, 0.04927702248096466, -0.4791683256626129, -0.19215694069862366, 0.116594597697258, -0.14037305116653442, 0.1662994772195816, -0.053851980715990067, 0.28692933917045593, 0.06458786875009537, -0.18195335566997528, -0.208290234208107, 0.01129104197025299, -0.05162835121154785, -0.09221842885017395, 0.2739124894142151, 0.3151569366455078, 0.5544480085372925, -0.07922877371311188, 0.09241856634616852, 0.2115279585123062, -0.2162851095199585, -0.12283279001712799, -0.11556945741176605, 0.20164689421653748, 0.34677591919898987, -0.2658436894416809, 0.01345512643456459, -0.21983376145362854, -0.10459927469491959, -0.06739984452724457, 0.1867256760597229, 0.2010083794593811, -0.039192311465740204, -0.03182271122932434, 0.1556113213300705, 0.11428087949752808, -0.3225093483924866, -0.0017671789973974228, -0.0664738118648529, 0.37251555919647217, 0.15871332585811615, 0.08929253369569778, -0.12892372906208038, 0.11799588799476624, -0.09783178567886353, -0.02075793221592903, -0.03301738202571869, 0.21228155493736267, 0.3940542936325073, -0.4751182794570923, 0.09360983967781067, -0.05096229538321495, 0.08167850226163864, 0.4724433720111847, -0.20521408319473267, 0.008502379059791565, 0.2781928777694702, 0.11942265182733536, -0.03131914138793945, 0.04302052780985832, 0.1823088526725769, -0.041301459074020386, -0.059893060475587845, -0.09673437476158142, -0.058348581194877625, -0.2807616591453552, -0.06959840655326843, 0.06027363985776901, 0.248338982462883, 0.08516115695238113, 0.18966051936149597, 0.44485148787498474, 0.0379403680562973, 0.1966792494058609, -0.1022331565618515, -0.06512603163719177, 0.18373702466487885, 0.2699832618236542, -0.25609636306762695, -0.22846275568008423, -0.15082940459251404, 0.11247774958610535, -0.21081584692001343, -0.5837599635124207, -0.3741249740123749, 0.1367514729499817, -0.24426688253879547, 0.39939165115356445, 0.19652159512043, 0.07425196468830109, -0.16143369674682617, 0.05576939508318901, -0.32434171438217163, -0.16240212321281433, -0.02239689975976944, 0.2272508442401886, -0.13990354537963867, -0.29846131801605225, 0.02820277214050293, 0.15970022976398468, 0.008529427461326122, -0.0549740307033062, 0.10398170351982117, 0.21661117672920227, -0.17479944229125977, -0.1756558120250702, 0.03896709531545639, 0.14087677001953125, 0.24339041113853455, -0.27267977595329285, 0.13330940902233124, 0.18458525836467743, -0.04436032474040985, 0.1830577701330185, -0.07467897981405258, 0.42534545063972473, 0.23505957424640656, 0.03925760090351105, 0.15417441725730896, 0.18553869426250458, -0.09270977973937988, 0.14326514303684235, 0.3272571861743927, 0.20650579035282135, -0.21433813869953156, 0.2518347501754761, 0.09707748144865036, -0.1172056496143341, 0.2109106183052063, -0.14883677661418915, 0.28762033581733704, -0.4688102602958679, 0.30672121047973633, -0.4334774315357208, 0.10325704514980316, -0.14719204604625702, -0.17319761216640472, -0.20473164319992065, 0.29166993498802185, 0.09842118620872498, -0.12995143234729767, 0.13238754868507385, 0.12089092284440994, 0.023868832737207413, -0.11856105923652649, 0.15571153163909912, 0.3497001528739929, 0.10535275936126709, -0.24232448637485504, -0.19692359864711761, -0.643887996673584, 0.1382269710302353, -0.09636702388525009, 0.16456015408039093, -0.19771315157413483, 0.1629336178302765, -0.03372706100344658, 0.08452645689249039, 0.2139347940683365, 0.09984862804412842, 0.21732468903064728, 0.2653210163116455, -0.11745846271514893, -0.2823590040206909, 0.026598012074828148, 0.11500166356563568, -0.24666129052639008, -0.4413090944290161, 0.07846684008836746, -0.227406844496727, 0.04725673049688339, 0.11268839240074158, -0.12910757958889008, -0.12330031394958496, -0.2741156816482544, 0.6556935906410217, 0.12865082919597626, 0.43148332834243774, -0.14341896772384644, -0.28353235125541687, -0.4107497036457062, -0.03240198642015457, -0.06375695765018463, -0.21496433019638062, -0.14534270763397217, 0.6507196426391602, -0.13838236033916473, -0.004225567914545536, -0.28873035311698914, 0.634502649307251, 0.23974141478538513, -0.010851982980966568, -0.2587587833404541, 0.020687080919742584, -0.5742632150650024, 0.20704658329486847, -0.1069621592760086, 0.16414430737495422, -0.1554752141237259, 0.014037154614925385, -0.17266644537448883, -0.17264902591705322, 0.6431185603141785, -0.8920931816101074, -0.05727532505989075, 0.11844651401042938, 0.25401657819747925, 0.15828993916511536, -0.037408675998449326, -0.22734767198562622, 0.29581621289253235, 0.2916668653488159, -0.16808083653450012, -0.2898518443107605, 0.01413569226861, -0.0060684047639369965, -0.04722493514418602, 0.06299513578414917, 0.42493683099746704, 0.10372039675712585, -0.3597126007080078, 0.29651010036468506, -0.3112955689430237 ]
https://github.com/huggingface/datasets/issues/5574
This problem now appears again, this time with an underlying HTTP 502 status code: ``` aiohttp.client_exceptions.ClientResponseError: 502, message='Bad Gateway', url=URL('https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-validation.00002-of-00008.json.gz') ```
c4 dataset streaming fails with `FileNotFoundError`
### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
21
c4 dataset streaming fails with `FileNotFoundError` ### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 This problem now appears again, this time with an underlying HTTP 502 status code: ``` aiohttp.client_exceptions.ClientResponseError: 502, message='Bad Gateway', url=URL('https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-validation.00002-of-00008.json.gz') ```
[ -0.24674591422080994, 0.13279850780963898, 0.040042098611593246, 0.32442140579223633, 0.1723439246416092, 0.11456883698701859, 0.14179402589797974, 0.27800270915031433, -0.08522552996873856, 0.06967851519584656, -0.07468800991773605, -0.08705082535743713, -0.08886299282312393, 0.10009609907865524, 0.06160685792565346, 0.027806447818875313, -0.09655937552452087, 0.19019478559494019, 0.031760405749082565, 0.15858371555805206, -0.010184787213802338, 0.09507498145103455, -0.2483242154121399, -0.053817857056856155, -0.18987928330898285, -0.13213887810707092, 0.040765680372714996, 0.3170546889305115, -0.1137586385011673, -0.3029361069202423, 0.35685479640960693, -0.0902591273188591, 0.22927530109882355, 0.5055239796638489, -0.00011665171768981963, 0.13374143838882446, 0.30966201424598694, -0.16429492831230164, -0.20611068606376648, -0.2514600157737732, -0.47318217158317566, -0.04302406683564186, -0.2491292953491211, -0.09240731596946716, -0.047344595193862915, -0.05731898546218872, 0.1745145171880722, -0.4100087881088257, 0.3812447190284729, 0.5148965716362, 0.10202879458665848, 0.22239035367965698, -0.1284903585910797, 0.15287470817565918, -0.1823309063911438, -0.2142828404903412, -0.08021394908428192, 0.28004807233810425, -0.0665726512670517, 0.16675910353660583, -0.05099395290017128, 0.18356050550937653, -0.10023293644189835, -0.08552324771881104, 0.20828594267368317, -0.036381080746650696, -0.08648170530796051, -0.26736655831336975, 0.16529978811740875, 0.31590601801872253, 0.7408332228660583, -0.32909777760505676, -0.43626609444618225, -0.02088860422372818, 0.24007633328437805, -0.2947309613227844, 0.27932122349739075, 0.28933003544807434, -0.06849851459264755, 0.20271876454353333, -0.21325063705444336, -0.04583464190363884, -0.3832428753376007, 0.14924004673957825, -0.042087674140930176, -0.0571136400103569, -0.03317303955554962, -0.04581158980727196, -0.06490067392587662, 0.0373309850692749, -0.028730478137731552, -0.4330829977989197, -0.28172537684440613, 0.28500890731811523, -0.24725449085235596, -0.01606803387403488, -0.04550224170088768, 0.26849350333213806, 0.012613832950592041, 0.14114102721214294, 0.33579713106155396, -0.04241316765546799, -0.27079132199287415, 0.12728646397590637, 0.04236430674791336, 0.1877591609954834, 0.09706978499889374, -0.09918469935655594, 0.36070144176483154, 0.3305165767669678, -0.04302264004945755, -0.29922524094581604, 0.0817597433924675, -0.12616083025932312, -0.2838232219219208, -0.06033249571919441, 0.2967720031738281, -0.31146857142448425, -0.5887153148651123, 0.21858982741832733, -0.7019351124763489, -0.0014178752899169922, -0.0213322676718235, 0.506765604019165, -0.23274113237857819, 0.10391131788492203, 0.07359664142131805, 0.20150288939476013, 0.0010894984006881714, -0.38615530729293823, -0.1270834058523178, -0.1528317779302597, -0.030597954988479614, 0.19865183532238007, 0.19666290283203125, -0.3244635760784149, 0.2735459506511688, 0.038484059274196625, 0.21742688119411469, 0.0932360291481018, -0.013154711574316025, -0.0573376789689064, -0.12895925343036652, 0.19556951522827148, -0.04352903738617897, 0.09557364881038666, 0.1676395982503891, -0.31850072741508484, 0.047634780406951904, -0.09468836337327957, -0.01587391272187233, -0.10598946362733841, 0.042311638593673706, 0.10096141695976257, -0.30695879459381104, -0.07276160269975662, -0.19828756153583527, -0.050681889057159424, -0.2695266306400299, -0.3888098895549774, 0.16269831359386444, -0.05521892383694649, 0.11192651093006134, -0.2257494330406189, 0.23529493808746338, 0.7646642923355103, -0.280204713344574, -0.18464869260787964, -0.11372765153646469, -0.16401934623718262, 0.34095868468284607, 0.2769830524921417, -0.10479710251092911, 0.019311148673295975, -0.267783522605896, 0.40866681933403015, 0.21925511956214905, -0.193113774061203, -0.6291776895523071, 0.5631682872772217, -0.19646534323692322, 0.6119541525840759, 0.209344744682312, 0.06432723999023438, -0.05952168628573418, -0.18049675226211548, 0.16535398364067078, 0.25187990069389343, -0.027336888015270233, -0.035223398357629776, -0.22846561670303345, -0.1035553589463234, 0.3411962389945984, 0.031351782381534576, -0.021206742152571678, 0.14885009825229645, 0.3272896409034729, -0.025998178869485855, 0.41606253385543823, -0.2120276689529419, -0.0012864582240581512, -0.007101778872311115, 0.4763604402542114, -0.03675896301865578, -0.16989782452583313, 0.10066904127597809, -0.6074482798576355, 0.23923102021217346, 0.16325435042381287, -0.17657536268234253, -0.03365805745124817, -0.09012715518474579, -0.027928318828344345, -0.13434582948684692, -0.3375191390514374, -0.36893290281295776, 0.08227873593568802, 0.2043689638376236, 0.006776086986064911, 0.21912629902362823, -0.19478526711463928, 0.8216493129730225, -0.4222235083580017, 0.010109428316354752, -0.03835560753941536, 0.2734585404396057, 0.02752547897398472, -0.061410821974277496, 0.049076423048973083, -0.06341008841991425, 0.23409846425056458, -0.13357429206371307, -0.08236485719680786, 0.5615682601928711, -0.055334459990262985, 0.29508620500564575, -0.1069149374961853, 0.08125236630439758, 0.43685564398765564, -0.2516924738883972, 0.00744323804974556, 0.5023475289344788, 0.2338283658027649, 0.02167949080467224, 0.04421946033835411, 0.35877907276153564, 0.07097876816987991, 0.08141371607780457, 0.28478115797042847, -0.003402233123779297, 0.20224958658218384, 0.08997076749801636, -0.23544281721115112, 0.0940500944852829, 0.4511277973651886, -0.3855784833431244, 0.32700008153915405, -0.173448845744133, -0.41256070137023926, -0.04538608342409134, 0.2711711823940277, -0.08672787249088287, -0.21076519787311554, -0.0628109872341156, -0.2558000683784485, 0.0916113331913948, 0.4675676226615906, 0.3024216890335083, 0.4392612874507904, 0.06820529699325562, -0.13268396258354187, 0.1980845034122467, -0.10682014375925064, -0.18183405697345734, 0.16543163359165192, -0.21031299233436584, -0.11768637597560883, 0.27095305919647217, -0.05011570453643799, 0.06094178929924965, -0.2687233090400696, -0.4471788704395294, -0.06406038254499435, 0.0006424449384212494, -0.48724228143692017, 0.21120169758796692, -0.3642650246620178, -0.2230176329612732, -0.07438664883375168, -0.062309786677360535, -0.16031630337238312, -0.11078359186649323, -0.1855875849723816, 0.3693571984767914, -0.10465790331363678, 0.025225620716810226, -0.8260205984115601, 0.02523466944694519, -0.01327449083328247, -0.31963691115379333, -0.1709110140800476, 0.16814196109771729, -0.22076231241226196, 0.06438338756561279, 0.47011497616767883, -0.13558925688266754, 0.21940556168556213, -0.21755468845367432, -0.09454178810119629, -0.3899039030075073, -0.176279217004776, 0.09338326007127762, -0.07612979412078857, 0.1792287677526474, -0.23388555645942688, 0.37256166338920593, -0.1618686020374298, -0.3543159067630768, -0.007720932364463806, -0.1387401670217514, -0.10681143403053284, 0.12521855533123016, -0.014008734375238419, -0.0970151424407959, -0.11198841780424118, -0.39950811862945557, -0.1454065889120102, -0.35105106234550476, 0.26427164673805237, -0.1719004213809967, 0.010369135066866875, 0.40081214904785156, 0.11057280004024506, 0.29947349429130554, 0.10752752423286438, -0.17394551634788513, -0.007570244371891022, -0.24086591601371765, 0.4674311578273773, -0.022617297247052193, -0.36916545033454895, 0.2096189260482788, 0.08432985097169876, -0.06399407237768173, 0.37871745228767395, -0.36694586277008057, 0.29028695821762085, -0.11964810639619827, 0.2584116756916046, -0.07022443413734436, -0.2072044312953949, 0.19460293650627136, -0.2807166278362274, 0.08727709949016571, -0.2538697123527527, 0.10635330528020859, -0.06807161867618561, 0.2817385792732239, 0.4405920207500458, -0.06615228950977325, 0.37335914373397827, 0.1821441948413849, 0.5030515789985657, 0.33333855867385864, -0.14474116265773773, 0.494977205991745, -0.046924468129873276, 0.48988109827041626, 0.09671016037464142, -0.021917220205068588, 0.21092376112937927, -0.07143813371658325, -0.23888586461544037, 0.18571466207504272, -0.05955967307090759, -0.11733856052160263, -0.32470378279685974, 0.05678386241197586, -0.33530014753341675, -0.15100356936454773, 0.04701194912195206, -0.046284694224596024, 0.1390511691570282, 0.10295882076025009, 0.2039237916469574, 0.2588067650794983, -0.18477699160575867, 0.1013566106557846, 0.6303926706314087, 0.34443408250808716, 0.1472349762916565, -0.09011507034301758, -0.32927191257476807, -0.4260959029197693, 0.40447133779525757, 0.27845311164855957, 0.3510299026966095, -0.13401059806346893, -0.1468486487865448, -0.0816459059715271, -0.18911704421043396, 0.5461323261260986, -0.2006642371416092, 0.14058011770248413, 0.1294146180152893, 0.20293647050857544, 0.003830753266811371, -0.12068644165992737, -0.04415952041745186, 0.24062329530715942, 0.4243500232696533, 0.2068154513835907, -0.19260349869728088, 0.009018529206514359, -0.22709298133850098, -0.015159130096435547, 0.1268855333328247, 0.03617486357688904, -0.15880966186523438, -0.1292187124490738, -0.1440449357032776, -0.060872603207826614, -0.043131180107593536, 0.07953675091266632, -0.20847338438034058, 0.1955895721912384, 0.023120565339922905, 0.06246595084667206, 0.2545427083969116, 0.23770856857299805, 0.19763457775115967, 0.000494539737701416, 0.13283386826515198, 0.29775670170783997, 0.11113427579402924, 0.5374557971954346, 0.5015860795974731, 0.3258614242076874, -0.3276033401489258, -0.051683954894542694, 0.18064212799072266, 0.06356167048215866, 0.36201971769332886, 0.03963243588805199, -0.11139514297246933, 0.36321622133255005, 0.00010435469448566437, -0.06050604581832886, 0.21385706961154938, 0.31250905990600586, -0.20250417292118073, -0.45945075154304504, -0.4426804184913635, 0.4259542226791382, -0.19747531414031982, 0.08712558448314667, 0.539544939994812, 0.37628093361854553, -0.1448122262954712, -0.04598572477698326, -0.19865211844444275, 0.6673847436904907, 0.2108585089445114, 0.16781221330165863, 0.41156259179115295, -0.06498706340789795, 0.2511215806007385, -0.5093105435371399, 0.2791634798049927, -0.07036393880844116, -0.2707412838935852, -0.1809658408164978, -0.13096439838409424, 0.3981800675392151, 0.0845392495393753, -0.14743322134017944, 0.29735082387924194, 0.07149411737918854, 0.3795415759086609, 0.22432991862297058, -0.13453039526939392, -0.5341125726699829, 0.052410826086997986, -0.4589903652667999, 0.11229444295167923, -0.11275596916675568, 0.22009329497814178, -0.10963450372219086, -0.31313472986221313, -0.22502005100250244, -0.1420184075832367, -0.3320109248161316, 0.4367016553878784, -0.3807063102722168, -0.09972669929265976, -0.18795578181743622, -0.26866042613983154, 0.20013092458248138, 0.2089671492576599, -0.2123231738805771, 0.021704470738768578, -0.3878674805164337, 0.239304319024086, -0.1301879733800888, -0.0467909500002861, -0.00015890970826148987, -0.021716155111789703, 0.20118412375450134, -0.05334228277206421, -0.08571265637874603, 0.2670663893222809, -0.10205544531345367, -0.4851556122303009, 0.39969900250434875, -0.05655098333954811, -0.19144080579280853, 0.08738948404788971, -0.1711709201335907, 0.11444329470396042, 0.034642286598682404, -0.08096618950366974, 0.07494864612817764, -0.21587887406349182, -0.16919073462486267, -0.22207067906856537, 0.019049370661377907, -0.11564917862415314, -0.12492190301418304, 0.494538277387619, -0.2481376975774765, 0.02179025113582611, 0.3826906681060791, 0.04467085003852844, -0.1298367977142334, -0.19934411346912384, -0.02080754190683365, -0.045450497418642044, -0.009270995855331421, -0.0589417889714241, -0.11375189572572708, 0.2521289885044098, -0.33611711859703064, 0.13704456388950348, 0.1217673122882843, -0.13819651305675507, 0.04927702248096466, -0.4791683256626129, -0.19215694069862366, 0.116594597697258, -0.14037305116653442, 0.1662994772195816, -0.053851980715990067, 0.28692933917045593, 0.06458786875009537, -0.18195335566997528, -0.208290234208107, 0.01129104197025299, -0.05162835121154785, -0.09221842885017395, 0.2739124894142151, 0.3151569366455078, 0.5544480085372925, -0.07922877371311188, 0.09241856634616852, 0.2115279585123062, -0.2162851095199585, -0.12283279001712799, -0.11556945741176605, 0.20164689421653748, 0.34677591919898987, -0.2658436894416809, 0.01345512643456459, -0.21983376145362854, -0.10459927469491959, -0.06739984452724457, 0.1867256760597229, 0.2010083794593811, -0.039192311465740204, -0.03182271122932434, 0.1556113213300705, 0.11428087949752808, -0.3225093483924866, -0.0017671789973974228, -0.0664738118648529, 0.37251555919647217, 0.15871332585811615, 0.08929253369569778, -0.12892372906208038, 0.11799588799476624, -0.09783178567886353, -0.02075793221592903, -0.03301738202571869, 0.21228155493736267, 0.3940542936325073, -0.4751182794570923, 0.09360983967781067, -0.05096229538321495, 0.08167850226163864, 0.4724433720111847, -0.20521408319473267, 0.008502379059791565, 0.2781928777694702, 0.11942265182733536, -0.03131914138793945, 0.04302052780985832, 0.1823088526725769, -0.041301459074020386, -0.059893060475587845, -0.09673437476158142, -0.058348581194877625, -0.2807616591453552, -0.06959840655326843, 0.06027363985776901, 0.248338982462883, 0.08516115695238113, 0.18966051936149597, 0.44485148787498474, 0.0379403680562973, 0.1966792494058609, -0.1022331565618515, -0.06512603163719177, 0.18373702466487885, 0.2699832618236542, -0.25609636306762695, -0.22846275568008423, -0.15082940459251404, 0.11247774958610535, -0.21081584692001343, -0.5837599635124207, -0.3741249740123749, 0.1367514729499817, -0.24426688253879547, 0.39939165115356445, 0.19652159512043, 0.07425196468830109, -0.16143369674682617, 0.05576939508318901, -0.32434171438217163, -0.16240212321281433, -0.02239689975976944, 0.2272508442401886, -0.13990354537963867, -0.29846131801605225, 0.02820277214050293, 0.15970022976398468, 0.008529427461326122, -0.0549740307033062, 0.10398170351982117, 0.21661117672920227, -0.17479944229125977, -0.1756558120250702, 0.03896709531545639, 0.14087677001953125, 0.24339041113853455, -0.27267977595329285, 0.13330940902233124, 0.18458525836467743, -0.04436032474040985, 0.1830577701330185, -0.07467897981405258, 0.42534545063972473, 0.23505957424640656, 0.03925760090351105, 0.15417441725730896, 0.18553869426250458, -0.09270977973937988, 0.14326514303684235, 0.3272571861743927, 0.20650579035282135, -0.21433813869953156, 0.2518347501754761, 0.09707748144865036, -0.1172056496143341, 0.2109106183052063, -0.14883677661418915, 0.28762033581733704, -0.4688102602958679, 0.30672121047973633, -0.4334774315357208, 0.10325704514980316, -0.14719204604625702, -0.17319761216640472, -0.20473164319992065, 0.29166993498802185, 0.09842118620872498, -0.12995143234729767, 0.13238754868507385, 0.12089092284440994, 0.023868832737207413, -0.11856105923652649, 0.15571153163909912, 0.3497001528739929, 0.10535275936126709, -0.24232448637485504, -0.19692359864711761, -0.643887996673584, 0.1382269710302353, -0.09636702388525009, 0.16456015408039093, -0.19771315157413483, 0.1629336178302765, -0.03372706100344658, 0.08452645689249039, 0.2139347940683365, 0.09984862804412842, 0.21732468903064728, 0.2653210163116455, -0.11745846271514893, -0.2823590040206909, 0.026598012074828148, 0.11500166356563568, -0.24666129052639008, -0.4413090944290161, 0.07846684008836746, -0.227406844496727, 0.04725673049688339, 0.11268839240074158, -0.12910757958889008, -0.12330031394958496, -0.2741156816482544, 0.6556935906410217, 0.12865082919597626, 0.43148332834243774, -0.14341896772384644, -0.28353235125541687, -0.4107497036457062, -0.03240198642015457, -0.06375695765018463, -0.21496433019638062, -0.14534270763397217, 0.6507196426391602, -0.13838236033916473, -0.004225567914545536, -0.28873035311698914, 0.634502649307251, 0.23974141478538513, -0.010851982980966568, -0.2587587833404541, 0.020687080919742584, -0.5742632150650024, 0.20704658329486847, -0.1069621592760086, 0.16414430737495422, -0.1554752141237259, 0.014037154614925385, -0.17266644537448883, -0.17264902591705322, 0.6431185603141785, -0.8920931816101074, -0.05727532505989075, 0.11844651401042938, 0.25401657819747925, 0.15828993916511536, -0.037408675998449326, -0.22734767198562622, 0.29581621289253235, 0.2916668653488159, -0.16808083653450012, -0.2898518443107605, 0.01413569226861, -0.0060684047639369965, -0.04722493514418602, 0.06299513578414917, 0.42493683099746704, 0.10372039675712585, -0.3597126007080078, 0.29651010036468506, -0.3112955689430237 ]
https://github.com/huggingface/datasets/issues/5574
Re-executing a minute later, the underlying cause is an HTTP 403 status code, as reported yesterday: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/4bf6b248b0f910dcde2cdf2118d6369d8208c8f9515ec29ab73e531f380b18e2?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-validation.00002-of-00008.json.gz%3B+filename%3D%22c4-validation.00002-of-00008.json.gz%22%3B&response-content-type=application/gzip&Expires=1677571273&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvNGJmNmIyNDhiMGY5MTBkY2RlMmNkZjIxMThkNjM2OWQ4MjA4YzhmOTUxNWVjMjlhYjczZTUzMWYzODBiMThlMj9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzU3MTI3M319fV19&Signature=WW42NOKkLuX~xVB1QfbkqzdvGo2AOXpgbF3PjTXy6iKd~ffilr1N9ScPXfvTXqy5yvdhJg1G0xJy1zYtUjGAL8GEx3Av-0vIhpWMGYTM8XKEU5gYA9qt30oVtNph6TkTYSABrsYTaj-hzQL9WCgyapmjvG69ETMh4wj44r2rcbk4T3j0l6l4u76Gh~lyRSll3aK4qycdUwcyL7FECDu~0W1mJIJwKkCrWHhSpHJSshb-0ElwG71pq4eyQ5g2uxHdK6JbRF7loxUpRQQJ1vlk0EHXdw0wTMaQ9tqHy6xcrQd8Ep0Yvx3tUD8MR0vWOcbQKnL6LwPQByc8tkChlpjnig__&Key-Pair-Id=KVTP0A1DKRTAX') ```
c4 dataset streaming fails with `FileNotFoundError`
### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
22
c4 dataset streaming fails with `FileNotFoundError` ### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 Re-executing a minute later, the underlying cause is an HTTP 403 status code, as reported yesterday: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/4bf6b248b0f910dcde2cdf2118d6369d8208c8f9515ec29ab73e531f380b18e2?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-validation.00002-of-00008.json.gz%3B+filename%3D%22c4-validation.00002-of-00008.json.gz%22%3B&response-content-type=application/gzip&Expires=1677571273&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvNGJmNmIyNDhiMGY5MTBkY2RlMmNkZjIxMThkNjM2OWQ4MjA4YzhmOTUxNWVjMjlhYjczZTUzMWYzODBiMThlMj9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzU3MTI3M319fV19&Signature=WW42NOKkLuX~xVB1QfbkqzdvGo2AOXpgbF3PjTXy6iKd~ffilr1N9ScPXfvTXqy5yvdhJg1G0xJy1zYtUjGAL8GEx3Av-0vIhpWMGYTM8XKEU5gYA9qt30oVtNph6TkTYSABrsYTaj-hzQL9WCgyapmjvG69ETMh4wj44r2rcbk4T3j0l6l4u76Gh~lyRSll3aK4qycdUwcyL7FECDu~0W1mJIJwKkCrWHhSpHJSshb-0ElwG71pq4eyQ5g2uxHdK6JbRF7loxUpRQQJ1vlk0EHXdw0wTMaQ9tqHy6xcrQd8Ep0Yvx3tUD8MR0vWOcbQKnL6LwPQByc8tkChlpjnig__&Key-Pair-Id=KVTP0A1DKRTAX') ```
[ -0.24674591422080994, 0.13279850780963898, 0.040042098611593246, 0.32442140579223633, 0.1723439246416092, 0.11456883698701859, 0.14179402589797974, 0.27800270915031433, -0.08522552996873856, 0.06967851519584656, -0.07468800991773605, -0.08705082535743713, -0.08886299282312393, 0.10009609907865524, 0.06160685792565346, 0.027806447818875313, -0.09655937552452087, 0.19019478559494019, 0.031760405749082565, 0.15858371555805206, -0.010184787213802338, 0.09507498145103455, -0.2483242154121399, -0.053817857056856155, -0.18987928330898285, -0.13213887810707092, 0.040765680372714996, 0.3170546889305115, -0.1137586385011673, -0.3029361069202423, 0.35685479640960693, -0.0902591273188591, 0.22927530109882355, 0.5055239796638489, -0.00011665171768981963, 0.13374143838882446, 0.30966201424598694, -0.16429492831230164, -0.20611068606376648, -0.2514600157737732, -0.47318217158317566, -0.04302406683564186, -0.2491292953491211, -0.09240731596946716, -0.047344595193862915, -0.05731898546218872, 0.1745145171880722, -0.4100087881088257, 0.3812447190284729, 0.5148965716362, 0.10202879458665848, 0.22239035367965698, -0.1284903585910797, 0.15287470817565918, -0.1823309063911438, -0.2142828404903412, -0.08021394908428192, 0.28004807233810425, -0.0665726512670517, 0.16675910353660583, -0.05099395290017128, 0.18356050550937653, -0.10023293644189835, -0.08552324771881104, 0.20828594267368317, -0.036381080746650696, -0.08648170530796051, -0.26736655831336975, 0.16529978811740875, 0.31590601801872253, 0.7408332228660583, -0.32909777760505676, -0.43626609444618225, -0.02088860422372818, 0.24007633328437805, -0.2947309613227844, 0.27932122349739075, 0.28933003544807434, -0.06849851459264755, 0.20271876454353333, -0.21325063705444336, -0.04583464190363884, -0.3832428753376007, 0.14924004673957825, -0.042087674140930176, -0.0571136400103569, -0.03317303955554962, -0.04581158980727196, -0.06490067392587662, 0.0373309850692749, -0.028730478137731552, -0.4330829977989197, -0.28172537684440613, 0.28500890731811523, -0.24725449085235596, -0.01606803387403488, -0.04550224170088768, 0.26849350333213806, 0.012613832950592041, 0.14114102721214294, 0.33579713106155396, -0.04241316765546799, -0.27079132199287415, 0.12728646397590637, 0.04236430674791336, 0.1877591609954834, 0.09706978499889374, -0.09918469935655594, 0.36070144176483154, 0.3305165767669678, -0.04302264004945755, -0.29922524094581604, 0.0817597433924675, -0.12616083025932312, -0.2838232219219208, -0.06033249571919441, 0.2967720031738281, -0.31146857142448425, -0.5887153148651123, 0.21858982741832733, -0.7019351124763489, -0.0014178752899169922, -0.0213322676718235, 0.506765604019165, -0.23274113237857819, 0.10391131788492203, 0.07359664142131805, 0.20150288939476013, 0.0010894984006881714, -0.38615530729293823, -0.1270834058523178, -0.1528317779302597, -0.030597954988479614, 0.19865183532238007, 0.19666290283203125, -0.3244635760784149, 0.2735459506511688, 0.038484059274196625, 0.21742688119411469, 0.0932360291481018, -0.013154711574316025, -0.0573376789689064, -0.12895925343036652, 0.19556951522827148, -0.04352903738617897, 0.09557364881038666, 0.1676395982503891, -0.31850072741508484, 0.047634780406951904, -0.09468836337327957, -0.01587391272187233, -0.10598946362733841, 0.042311638593673706, 0.10096141695976257, -0.30695879459381104, -0.07276160269975662, -0.19828756153583527, -0.050681889057159424, -0.2695266306400299, -0.3888098895549774, 0.16269831359386444, -0.05521892383694649, 0.11192651093006134, -0.2257494330406189, 0.23529493808746338, 0.7646642923355103, -0.280204713344574, -0.18464869260787964, -0.11372765153646469, -0.16401934623718262, 0.34095868468284607, 0.2769830524921417, -0.10479710251092911, 0.019311148673295975, -0.267783522605896, 0.40866681933403015, 0.21925511956214905, -0.193113774061203, -0.6291776895523071, 0.5631682872772217, -0.19646534323692322, 0.6119541525840759, 0.209344744682312, 0.06432723999023438, -0.05952168628573418, -0.18049675226211548, 0.16535398364067078, 0.25187990069389343, -0.027336888015270233, -0.035223398357629776, -0.22846561670303345, -0.1035553589463234, 0.3411962389945984, 0.031351782381534576, -0.021206742152571678, 0.14885009825229645, 0.3272896409034729, -0.025998178869485855, 0.41606253385543823, -0.2120276689529419, -0.0012864582240581512, -0.007101778872311115, 0.4763604402542114, -0.03675896301865578, -0.16989782452583313, 0.10066904127597809, -0.6074482798576355, 0.23923102021217346, 0.16325435042381287, -0.17657536268234253, -0.03365805745124817, -0.09012715518474579, -0.027928318828344345, -0.13434582948684692, -0.3375191390514374, -0.36893290281295776, 0.08227873593568802, 0.2043689638376236, 0.006776086986064911, 0.21912629902362823, -0.19478526711463928, 0.8216493129730225, -0.4222235083580017, 0.010109428316354752, -0.03835560753941536, 0.2734585404396057, 0.02752547897398472, -0.061410821974277496, 0.049076423048973083, -0.06341008841991425, 0.23409846425056458, -0.13357429206371307, -0.08236485719680786, 0.5615682601928711, -0.055334459990262985, 0.29508620500564575, -0.1069149374961853, 0.08125236630439758, 0.43685564398765564, -0.2516924738883972, 0.00744323804974556, 0.5023475289344788, 0.2338283658027649, 0.02167949080467224, 0.04421946033835411, 0.35877907276153564, 0.07097876816987991, 0.08141371607780457, 0.28478115797042847, -0.003402233123779297, 0.20224958658218384, 0.08997076749801636, -0.23544281721115112, 0.0940500944852829, 0.4511277973651886, -0.3855784833431244, 0.32700008153915405, -0.173448845744133, -0.41256070137023926, -0.04538608342409134, 0.2711711823940277, -0.08672787249088287, -0.21076519787311554, -0.0628109872341156, -0.2558000683784485, 0.0916113331913948, 0.4675676226615906, 0.3024216890335083, 0.4392612874507904, 0.06820529699325562, -0.13268396258354187, 0.1980845034122467, -0.10682014375925064, -0.18183405697345734, 0.16543163359165192, -0.21031299233436584, -0.11768637597560883, 0.27095305919647217, -0.05011570453643799, 0.06094178929924965, -0.2687233090400696, -0.4471788704395294, -0.06406038254499435, 0.0006424449384212494, -0.48724228143692017, 0.21120169758796692, -0.3642650246620178, -0.2230176329612732, -0.07438664883375168, -0.062309786677360535, -0.16031630337238312, -0.11078359186649323, -0.1855875849723816, 0.3693571984767914, -0.10465790331363678, 0.025225620716810226, -0.8260205984115601, 0.02523466944694519, -0.01327449083328247, -0.31963691115379333, -0.1709110140800476, 0.16814196109771729, -0.22076231241226196, 0.06438338756561279, 0.47011497616767883, -0.13558925688266754, 0.21940556168556213, -0.21755468845367432, -0.09454178810119629, -0.3899039030075073, -0.176279217004776, 0.09338326007127762, -0.07612979412078857, 0.1792287677526474, -0.23388555645942688, 0.37256166338920593, -0.1618686020374298, -0.3543159067630768, -0.007720932364463806, -0.1387401670217514, -0.10681143403053284, 0.12521855533123016, -0.014008734375238419, -0.0970151424407959, -0.11198841780424118, -0.39950811862945557, -0.1454065889120102, -0.35105106234550476, 0.26427164673805237, -0.1719004213809967, 0.010369135066866875, 0.40081214904785156, 0.11057280004024506, 0.29947349429130554, 0.10752752423286438, -0.17394551634788513, -0.007570244371891022, -0.24086591601371765, 0.4674311578273773, -0.022617297247052193, -0.36916545033454895, 0.2096189260482788, 0.08432985097169876, -0.06399407237768173, 0.37871745228767395, -0.36694586277008057, 0.29028695821762085, -0.11964810639619827, 0.2584116756916046, -0.07022443413734436, -0.2072044312953949, 0.19460293650627136, -0.2807166278362274, 0.08727709949016571, -0.2538697123527527, 0.10635330528020859, -0.06807161867618561, 0.2817385792732239, 0.4405920207500458, -0.06615228950977325, 0.37335914373397827, 0.1821441948413849, 0.5030515789985657, 0.33333855867385864, -0.14474116265773773, 0.494977205991745, -0.046924468129873276, 0.48988109827041626, 0.09671016037464142, -0.021917220205068588, 0.21092376112937927, -0.07143813371658325, -0.23888586461544037, 0.18571466207504272, -0.05955967307090759, -0.11733856052160263, -0.32470378279685974, 0.05678386241197586, -0.33530014753341675, -0.15100356936454773, 0.04701194912195206, -0.046284694224596024, 0.1390511691570282, 0.10295882076025009, 0.2039237916469574, 0.2588067650794983, -0.18477699160575867, 0.1013566106557846, 0.6303926706314087, 0.34443408250808716, 0.1472349762916565, -0.09011507034301758, -0.32927191257476807, -0.4260959029197693, 0.40447133779525757, 0.27845311164855957, 0.3510299026966095, -0.13401059806346893, -0.1468486487865448, -0.0816459059715271, -0.18911704421043396, 0.5461323261260986, -0.2006642371416092, 0.14058011770248413, 0.1294146180152893, 0.20293647050857544, 0.003830753266811371, -0.12068644165992737, -0.04415952041745186, 0.24062329530715942, 0.4243500232696533, 0.2068154513835907, -0.19260349869728088, 0.009018529206514359, -0.22709298133850098, -0.015159130096435547, 0.1268855333328247, 0.03617486357688904, -0.15880966186523438, -0.1292187124490738, -0.1440449357032776, -0.060872603207826614, -0.043131180107593536, 0.07953675091266632, -0.20847338438034058, 0.1955895721912384, 0.023120565339922905, 0.06246595084667206, 0.2545427083969116, 0.23770856857299805, 0.19763457775115967, 0.000494539737701416, 0.13283386826515198, 0.29775670170783997, 0.11113427579402924, 0.5374557971954346, 0.5015860795974731, 0.3258614242076874, -0.3276033401489258, -0.051683954894542694, 0.18064212799072266, 0.06356167048215866, 0.36201971769332886, 0.03963243588805199, -0.11139514297246933, 0.36321622133255005, 0.00010435469448566437, -0.06050604581832886, 0.21385706961154938, 0.31250905990600586, -0.20250417292118073, -0.45945075154304504, -0.4426804184913635, 0.4259542226791382, -0.19747531414031982, 0.08712558448314667, 0.539544939994812, 0.37628093361854553, -0.1448122262954712, -0.04598572477698326, -0.19865211844444275, 0.6673847436904907, 0.2108585089445114, 0.16781221330165863, 0.41156259179115295, -0.06498706340789795, 0.2511215806007385, -0.5093105435371399, 0.2791634798049927, -0.07036393880844116, -0.2707412838935852, -0.1809658408164978, -0.13096439838409424, 0.3981800675392151, 0.0845392495393753, -0.14743322134017944, 0.29735082387924194, 0.07149411737918854, 0.3795415759086609, 0.22432991862297058, -0.13453039526939392, -0.5341125726699829, 0.052410826086997986, -0.4589903652667999, 0.11229444295167923, -0.11275596916675568, 0.22009329497814178, -0.10963450372219086, -0.31313472986221313, -0.22502005100250244, -0.1420184075832367, -0.3320109248161316, 0.4367016553878784, -0.3807063102722168, -0.09972669929265976, -0.18795578181743622, -0.26866042613983154, 0.20013092458248138, 0.2089671492576599, -0.2123231738805771, 0.021704470738768578, -0.3878674805164337, 0.239304319024086, -0.1301879733800888, -0.0467909500002861, -0.00015890970826148987, -0.021716155111789703, 0.20118412375450134, -0.05334228277206421, -0.08571265637874603, 0.2670663893222809, -0.10205544531345367, -0.4851556122303009, 0.39969900250434875, -0.05655098333954811, -0.19144080579280853, 0.08738948404788971, -0.1711709201335907, 0.11444329470396042, 0.034642286598682404, -0.08096618950366974, 0.07494864612817764, -0.21587887406349182, -0.16919073462486267, -0.22207067906856537, 0.019049370661377907, -0.11564917862415314, -0.12492190301418304, 0.494538277387619, -0.2481376975774765, 0.02179025113582611, 0.3826906681060791, 0.04467085003852844, -0.1298367977142334, -0.19934411346912384, -0.02080754190683365, -0.045450497418642044, -0.009270995855331421, -0.0589417889714241, -0.11375189572572708, 0.2521289885044098, -0.33611711859703064, 0.13704456388950348, 0.1217673122882843, -0.13819651305675507, 0.04927702248096466, -0.4791683256626129, -0.19215694069862366, 0.116594597697258, -0.14037305116653442, 0.1662994772195816, -0.053851980715990067, 0.28692933917045593, 0.06458786875009537, -0.18195335566997528, -0.208290234208107, 0.01129104197025299, -0.05162835121154785, -0.09221842885017395, 0.2739124894142151, 0.3151569366455078, 0.5544480085372925, -0.07922877371311188, 0.09241856634616852, 0.2115279585123062, -0.2162851095199585, -0.12283279001712799, -0.11556945741176605, 0.20164689421653748, 0.34677591919898987, -0.2658436894416809, 0.01345512643456459, -0.21983376145362854, -0.10459927469491959, -0.06739984452724457, 0.1867256760597229, 0.2010083794593811, -0.039192311465740204, -0.03182271122932434, 0.1556113213300705, 0.11428087949752808, -0.3225093483924866, -0.0017671789973974228, -0.0664738118648529, 0.37251555919647217, 0.15871332585811615, 0.08929253369569778, -0.12892372906208038, 0.11799588799476624, -0.09783178567886353, -0.02075793221592903, -0.03301738202571869, 0.21228155493736267, 0.3940542936325073, -0.4751182794570923, 0.09360983967781067, -0.05096229538321495, 0.08167850226163864, 0.4724433720111847, -0.20521408319473267, 0.008502379059791565, 0.2781928777694702, 0.11942265182733536, -0.03131914138793945, 0.04302052780985832, 0.1823088526725769, -0.041301459074020386, -0.059893060475587845, -0.09673437476158142, -0.058348581194877625, -0.2807616591453552, -0.06959840655326843, 0.06027363985776901, 0.248338982462883, 0.08516115695238113, 0.18966051936149597, 0.44485148787498474, 0.0379403680562973, 0.1966792494058609, -0.1022331565618515, -0.06512603163719177, 0.18373702466487885, 0.2699832618236542, -0.25609636306762695, -0.22846275568008423, -0.15082940459251404, 0.11247774958610535, -0.21081584692001343, -0.5837599635124207, -0.3741249740123749, 0.1367514729499817, -0.24426688253879547, 0.39939165115356445, 0.19652159512043, 0.07425196468830109, -0.16143369674682617, 0.05576939508318901, -0.32434171438217163, -0.16240212321281433, -0.02239689975976944, 0.2272508442401886, -0.13990354537963867, -0.29846131801605225, 0.02820277214050293, 0.15970022976398468, 0.008529427461326122, -0.0549740307033062, 0.10398170351982117, 0.21661117672920227, -0.17479944229125977, -0.1756558120250702, 0.03896709531545639, 0.14087677001953125, 0.24339041113853455, -0.27267977595329285, 0.13330940902233124, 0.18458525836467743, -0.04436032474040985, 0.1830577701330185, -0.07467897981405258, 0.42534545063972473, 0.23505957424640656, 0.03925760090351105, 0.15417441725730896, 0.18553869426250458, -0.09270977973937988, 0.14326514303684235, 0.3272571861743927, 0.20650579035282135, -0.21433813869953156, 0.2518347501754761, 0.09707748144865036, -0.1172056496143341, 0.2109106183052063, -0.14883677661418915, 0.28762033581733704, -0.4688102602958679, 0.30672121047973633, -0.4334774315357208, 0.10325704514980316, -0.14719204604625702, -0.17319761216640472, -0.20473164319992065, 0.29166993498802185, 0.09842118620872498, -0.12995143234729767, 0.13238754868507385, 0.12089092284440994, 0.023868832737207413, -0.11856105923652649, 0.15571153163909912, 0.3497001528739929, 0.10535275936126709, -0.24232448637485504, -0.19692359864711761, -0.643887996673584, 0.1382269710302353, -0.09636702388525009, 0.16456015408039093, -0.19771315157413483, 0.1629336178302765, -0.03372706100344658, 0.08452645689249039, 0.2139347940683365, 0.09984862804412842, 0.21732468903064728, 0.2653210163116455, -0.11745846271514893, -0.2823590040206909, 0.026598012074828148, 0.11500166356563568, -0.24666129052639008, -0.4413090944290161, 0.07846684008836746, -0.227406844496727, 0.04725673049688339, 0.11268839240074158, -0.12910757958889008, -0.12330031394958496, -0.2741156816482544, 0.6556935906410217, 0.12865082919597626, 0.43148332834243774, -0.14341896772384644, -0.28353235125541687, -0.4107497036457062, -0.03240198642015457, -0.06375695765018463, -0.21496433019638062, -0.14534270763397217, 0.6507196426391602, -0.13838236033916473, -0.004225567914545536, -0.28873035311698914, 0.634502649307251, 0.23974141478538513, -0.010851982980966568, -0.2587587833404541, 0.020687080919742584, -0.5742632150650024, 0.20704658329486847, -0.1069621592760086, 0.16414430737495422, -0.1554752141237259, 0.014037154614925385, -0.17266644537448883, -0.17264902591705322, 0.6431185603141785, -0.8920931816101074, -0.05727532505989075, 0.11844651401042938, 0.25401657819747925, 0.15828993916511536, -0.037408675998449326, -0.22734767198562622, 0.29581621289253235, 0.2916668653488159, -0.16808083653450012, -0.2898518443107605, 0.01413569226861, -0.0060684047639369965, -0.04722493514418602, 0.06299513578414917, 0.42493683099746704, 0.10372039675712585, -0.3597126007080078, 0.29651010036468506, -0.3112955689430237 ]
https://github.com/huggingface/datasets/issues/5574
> It's been resolved again ;) I'm experiencing the same issue when trying to load this dataset, `FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/realnewslike/c4-train.00000-of-00512.json.gz`
c4 dataset streaming fails with `FileNotFoundError`
### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
19
c4 dataset streaming fails with `FileNotFoundError` ### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 > It's been resolved again ;) I'm experiencing the same issue when trying to load this dataset, `FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/realnewslike/c4-train.00000-of-00512.json.gz`
[ -0.24674591422080994, 0.13279850780963898, 0.040042098611593246, 0.32442140579223633, 0.1723439246416092, 0.11456883698701859, 0.14179402589797974, 0.27800270915031433, -0.08522552996873856, 0.06967851519584656, -0.07468800991773605, -0.08705082535743713, -0.08886299282312393, 0.10009609907865524, 0.06160685792565346, 0.027806447818875313, -0.09655937552452087, 0.19019478559494019, 0.031760405749082565, 0.15858371555805206, -0.010184787213802338, 0.09507498145103455, -0.2483242154121399, -0.053817857056856155, -0.18987928330898285, -0.13213887810707092, 0.040765680372714996, 0.3170546889305115, -0.1137586385011673, -0.3029361069202423, 0.35685479640960693, -0.0902591273188591, 0.22927530109882355, 0.5055239796638489, -0.00011665171768981963, 0.13374143838882446, 0.30966201424598694, -0.16429492831230164, -0.20611068606376648, -0.2514600157737732, -0.47318217158317566, -0.04302406683564186, -0.2491292953491211, -0.09240731596946716, -0.047344595193862915, -0.05731898546218872, 0.1745145171880722, -0.4100087881088257, 0.3812447190284729, 0.5148965716362, 0.10202879458665848, 0.22239035367965698, -0.1284903585910797, 0.15287470817565918, -0.1823309063911438, -0.2142828404903412, -0.08021394908428192, 0.28004807233810425, -0.0665726512670517, 0.16675910353660583, -0.05099395290017128, 0.18356050550937653, -0.10023293644189835, -0.08552324771881104, 0.20828594267368317, -0.036381080746650696, -0.08648170530796051, -0.26736655831336975, 0.16529978811740875, 0.31590601801872253, 0.7408332228660583, -0.32909777760505676, -0.43626609444618225, -0.02088860422372818, 0.24007633328437805, -0.2947309613227844, 0.27932122349739075, 0.28933003544807434, -0.06849851459264755, 0.20271876454353333, -0.21325063705444336, -0.04583464190363884, -0.3832428753376007, 0.14924004673957825, -0.042087674140930176, -0.0571136400103569, -0.03317303955554962, -0.04581158980727196, -0.06490067392587662, 0.0373309850692749, -0.028730478137731552, -0.4330829977989197, -0.28172537684440613, 0.28500890731811523, -0.24725449085235596, -0.01606803387403488, -0.04550224170088768, 0.26849350333213806, 0.012613832950592041, 0.14114102721214294, 0.33579713106155396, -0.04241316765546799, -0.27079132199287415, 0.12728646397590637, 0.04236430674791336, 0.1877591609954834, 0.09706978499889374, -0.09918469935655594, 0.36070144176483154, 0.3305165767669678, -0.04302264004945755, -0.29922524094581604, 0.0817597433924675, -0.12616083025932312, -0.2838232219219208, -0.06033249571919441, 0.2967720031738281, -0.31146857142448425, -0.5887153148651123, 0.21858982741832733, -0.7019351124763489, -0.0014178752899169922, -0.0213322676718235, 0.506765604019165, -0.23274113237857819, 0.10391131788492203, 0.07359664142131805, 0.20150288939476013, 0.0010894984006881714, -0.38615530729293823, -0.1270834058523178, -0.1528317779302597, -0.030597954988479614, 0.19865183532238007, 0.19666290283203125, -0.3244635760784149, 0.2735459506511688, 0.038484059274196625, 0.21742688119411469, 0.0932360291481018, -0.013154711574316025, -0.0573376789689064, -0.12895925343036652, 0.19556951522827148, -0.04352903738617897, 0.09557364881038666, 0.1676395982503891, -0.31850072741508484, 0.047634780406951904, -0.09468836337327957, -0.01587391272187233, -0.10598946362733841, 0.042311638593673706, 0.10096141695976257, -0.30695879459381104, -0.07276160269975662, -0.19828756153583527, -0.050681889057159424, -0.2695266306400299, -0.3888098895549774, 0.16269831359386444, -0.05521892383694649, 0.11192651093006134, -0.2257494330406189, 0.23529493808746338, 0.7646642923355103, -0.280204713344574, -0.18464869260787964, -0.11372765153646469, -0.16401934623718262, 0.34095868468284607, 0.2769830524921417, -0.10479710251092911, 0.019311148673295975, -0.267783522605896, 0.40866681933403015, 0.21925511956214905, -0.193113774061203, -0.6291776895523071, 0.5631682872772217, -0.19646534323692322, 0.6119541525840759, 0.209344744682312, 0.06432723999023438, -0.05952168628573418, -0.18049675226211548, 0.16535398364067078, 0.25187990069389343, -0.027336888015270233, -0.035223398357629776, -0.22846561670303345, -0.1035553589463234, 0.3411962389945984, 0.031351782381534576, -0.021206742152571678, 0.14885009825229645, 0.3272896409034729, -0.025998178869485855, 0.41606253385543823, -0.2120276689529419, -0.0012864582240581512, -0.007101778872311115, 0.4763604402542114, -0.03675896301865578, -0.16989782452583313, 0.10066904127597809, -0.6074482798576355, 0.23923102021217346, 0.16325435042381287, -0.17657536268234253, -0.03365805745124817, -0.09012715518474579, -0.027928318828344345, -0.13434582948684692, -0.3375191390514374, -0.36893290281295776, 0.08227873593568802, 0.2043689638376236, 0.006776086986064911, 0.21912629902362823, -0.19478526711463928, 0.8216493129730225, -0.4222235083580017, 0.010109428316354752, -0.03835560753941536, 0.2734585404396057, 0.02752547897398472, -0.061410821974277496, 0.049076423048973083, -0.06341008841991425, 0.23409846425056458, -0.13357429206371307, -0.08236485719680786, 0.5615682601928711, -0.055334459990262985, 0.29508620500564575, -0.1069149374961853, 0.08125236630439758, 0.43685564398765564, -0.2516924738883972, 0.00744323804974556, 0.5023475289344788, 0.2338283658027649, 0.02167949080467224, 0.04421946033835411, 0.35877907276153564, 0.07097876816987991, 0.08141371607780457, 0.28478115797042847, -0.003402233123779297, 0.20224958658218384, 0.08997076749801636, -0.23544281721115112, 0.0940500944852829, 0.4511277973651886, -0.3855784833431244, 0.32700008153915405, -0.173448845744133, -0.41256070137023926, -0.04538608342409134, 0.2711711823940277, -0.08672787249088287, -0.21076519787311554, -0.0628109872341156, -0.2558000683784485, 0.0916113331913948, 0.4675676226615906, 0.3024216890335083, 0.4392612874507904, 0.06820529699325562, -0.13268396258354187, 0.1980845034122467, -0.10682014375925064, -0.18183405697345734, 0.16543163359165192, -0.21031299233436584, -0.11768637597560883, 0.27095305919647217, -0.05011570453643799, 0.06094178929924965, -0.2687233090400696, -0.4471788704395294, -0.06406038254499435, 0.0006424449384212494, -0.48724228143692017, 0.21120169758796692, -0.3642650246620178, -0.2230176329612732, -0.07438664883375168, -0.062309786677360535, -0.16031630337238312, -0.11078359186649323, -0.1855875849723816, 0.3693571984767914, -0.10465790331363678, 0.025225620716810226, -0.8260205984115601, 0.02523466944694519, -0.01327449083328247, -0.31963691115379333, -0.1709110140800476, 0.16814196109771729, -0.22076231241226196, 0.06438338756561279, 0.47011497616767883, -0.13558925688266754, 0.21940556168556213, -0.21755468845367432, -0.09454178810119629, -0.3899039030075073, -0.176279217004776, 0.09338326007127762, -0.07612979412078857, 0.1792287677526474, -0.23388555645942688, 0.37256166338920593, -0.1618686020374298, -0.3543159067630768, -0.007720932364463806, -0.1387401670217514, -0.10681143403053284, 0.12521855533123016, -0.014008734375238419, -0.0970151424407959, -0.11198841780424118, -0.39950811862945557, -0.1454065889120102, -0.35105106234550476, 0.26427164673805237, -0.1719004213809967, 0.010369135066866875, 0.40081214904785156, 0.11057280004024506, 0.29947349429130554, 0.10752752423286438, -0.17394551634788513, -0.007570244371891022, -0.24086591601371765, 0.4674311578273773, -0.022617297247052193, -0.36916545033454895, 0.2096189260482788, 0.08432985097169876, -0.06399407237768173, 0.37871745228767395, -0.36694586277008057, 0.29028695821762085, -0.11964810639619827, 0.2584116756916046, -0.07022443413734436, -0.2072044312953949, 0.19460293650627136, -0.2807166278362274, 0.08727709949016571, -0.2538697123527527, 0.10635330528020859, -0.06807161867618561, 0.2817385792732239, 0.4405920207500458, -0.06615228950977325, 0.37335914373397827, 0.1821441948413849, 0.5030515789985657, 0.33333855867385864, -0.14474116265773773, 0.494977205991745, -0.046924468129873276, 0.48988109827041626, 0.09671016037464142, -0.021917220205068588, 0.21092376112937927, -0.07143813371658325, -0.23888586461544037, 0.18571466207504272, -0.05955967307090759, -0.11733856052160263, -0.32470378279685974, 0.05678386241197586, -0.33530014753341675, -0.15100356936454773, 0.04701194912195206, -0.046284694224596024, 0.1390511691570282, 0.10295882076025009, 0.2039237916469574, 0.2588067650794983, -0.18477699160575867, 0.1013566106557846, 0.6303926706314087, 0.34443408250808716, 0.1472349762916565, -0.09011507034301758, -0.32927191257476807, -0.4260959029197693, 0.40447133779525757, 0.27845311164855957, 0.3510299026966095, -0.13401059806346893, -0.1468486487865448, -0.0816459059715271, -0.18911704421043396, 0.5461323261260986, -0.2006642371416092, 0.14058011770248413, 0.1294146180152893, 0.20293647050857544, 0.003830753266811371, -0.12068644165992737, -0.04415952041745186, 0.24062329530715942, 0.4243500232696533, 0.2068154513835907, -0.19260349869728088, 0.009018529206514359, -0.22709298133850098, -0.015159130096435547, 0.1268855333328247, 0.03617486357688904, -0.15880966186523438, -0.1292187124490738, -0.1440449357032776, -0.060872603207826614, -0.043131180107593536, 0.07953675091266632, -0.20847338438034058, 0.1955895721912384, 0.023120565339922905, 0.06246595084667206, 0.2545427083969116, 0.23770856857299805, 0.19763457775115967, 0.000494539737701416, 0.13283386826515198, 0.29775670170783997, 0.11113427579402924, 0.5374557971954346, 0.5015860795974731, 0.3258614242076874, -0.3276033401489258, -0.051683954894542694, 0.18064212799072266, 0.06356167048215866, 0.36201971769332886, 0.03963243588805199, -0.11139514297246933, 0.36321622133255005, 0.00010435469448566437, -0.06050604581832886, 0.21385706961154938, 0.31250905990600586, -0.20250417292118073, -0.45945075154304504, -0.4426804184913635, 0.4259542226791382, -0.19747531414031982, 0.08712558448314667, 0.539544939994812, 0.37628093361854553, -0.1448122262954712, -0.04598572477698326, -0.19865211844444275, 0.6673847436904907, 0.2108585089445114, 0.16781221330165863, 0.41156259179115295, -0.06498706340789795, 0.2511215806007385, -0.5093105435371399, 0.2791634798049927, -0.07036393880844116, -0.2707412838935852, -0.1809658408164978, -0.13096439838409424, 0.3981800675392151, 0.0845392495393753, -0.14743322134017944, 0.29735082387924194, 0.07149411737918854, 0.3795415759086609, 0.22432991862297058, -0.13453039526939392, -0.5341125726699829, 0.052410826086997986, -0.4589903652667999, 0.11229444295167923, -0.11275596916675568, 0.22009329497814178, -0.10963450372219086, -0.31313472986221313, -0.22502005100250244, -0.1420184075832367, -0.3320109248161316, 0.4367016553878784, -0.3807063102722168, -0.09972669929265976, -0.18795578181743622, -0.26866042613983154, 0.20013092458248138, 0.2089671492576599, -0.2123231738805771, 0.021704470738768578, -0.3878674805164337, 0.239304319024086, -0.1301879733800888, -0.0467909500002861, -0.00015890970826148987, -0.021716155111789703, 0.20118412375450134, -0.05334228277206421, -0.08571265637874603, 0.2670663893222809, -0.10205544531345367, -0.4851556122303009, 0.39969900250434875, -0.05655098333954811, -0.19144080579280853, 0.08738948404788971, -0.1711709201335907, 0.11444329470396042, 0.034642286598682404, -0.08096618950366974, 0.07494864612817764, -0.21587887406349182, -0.16919073462486267, -0.22207067906856537, 0.019049370661377907, -0.11564917862415314, -0.12492190301418304, 0.494538277387619, -0.2481376975774765, 0.02179025113582611, 0.3826906681060791, 0.04467085003852844, -0.1298367977142334, -0.19934411346912384, -0.02080754190683365, -0.045450497418642044, -0.009270995855331421, -0.0589417889714241, -0.11375189572572708, 0.2521289885044098, -0.33611711859703064, 0.13704456388950348, 0.1217673122882843, -0.13819651305675507, 0.04927702248096466, -0.4791683256626129, -0.19215694069862366, 0.116594597697258, -0.14037305116653442, 0.1662994772195816, -0.053851980715990067, 0.28692933917045593, 0.06458786875009537, -0.18195335566997528, -0.208290234208107, 0.01129104197025299, -0.05162835121154785, -0.09221842885017395, 0.2739124894142151, 0.3151569366455078, 0.5544480085372925, -0.07922877371311188, 0.09241856634616852, 0.2115279585123062, -0.2162851095199585, -0.12283279001712799, -0.11556945741176605, 0.20164689421653748, 0.34677591919898987, -0.2658436894416809, 0.01345512643456459, -0.21983376145362854, -0.10459927469491959, -0.06739984452724457, 0.1867256760597229, 0.2010083794593811, -0.039192311465740204, -0.03182271122932434, 0.1556113213300705, 0.11428087949752808, -0.3225093483924866, -0.0017671789973974228, -0.0664738118648529, 0.37251555919647217, 0.15871332585811615, 0.08929253369569778, -0.12892372906208038, 0.11799588799476624, -0.09783178567886353, -0.02075793221592903, -0.03301738202571869, 0.21228155493736267, 0.3940542936325073, -0.4751182794570923, 0.09360983967781067, -0.05096229538321495, 0.08167850226163864, 0.4724433720111847, -0.20521408319473267, 0.008502379059791565, 0.2781928777694702, 0.11942265182733536, -0.03131914138793945, 0.04302052780985832, 0.1823088526725769, -0.041301459074020386, -0.059893060475587845, -0.09673437476158142, -0.058348581194877625, -0.2807616591453552, -0.06959840655326843, 0.06027363985776901, 0.248338982462883, 0.08516115695238113, 0.18966051936149597, 0.44485148787498474, 0.0379403680562973, 0.1966792494058609, -0.1022331565618515, -0.06512603163719177, 0.18373702466487885, 0.2699832618236542, -0.25609636306762695, -0.22846275568008423, -0.15082940459251404, 0.11247774958610535, -0.21081584692001343, -0.5837599635124207, -0.3741249740123749, 0.1367514729499817, -0.24426688253879547, 0.39939165115356445, 0.19652159512043, 0.07425196468830109, -0.16143369674682617, 0.05576939508318901, -0.32434171438217163, -0.16240212321281433, -0.02239689975976944, 0.2272508442401886, -0.13990354537963867, -0.29846131801605225, 0.02820277214050293, 0.15970022976398468, 0.008529427461326122, -0.0549740307033062, 0.10398170351982117, 0.21661117672920227, -0.17479944229125977, -0.1756558120250702, 0.03896709531545639, 0.14087677001953125, 0.24339041113853455, -0.27267977595329285, 0.13330940902233124, 0.18458525836467743, -0.04436032474040985, 0.1830577701330185, -0.07467897981405258, 0.42534545063972473, 0.23505957424640656, 0.03925760090351105, 0.15417441725730896, 0.18553869426250458, -0.09270977973937988, 0.14326514303684235, 0.3272571861743927, 0.20650579035282135, -0.21433813869953156, 0.2518347501754761, 0.09707748144865036, -0.1172056496143341, 0.2109106183052063, -0.14883677661418915, 0.28762033581733704, -0.4688102602958679, 0.30672121047973633, -0.4334774315357208, 0.10325704514980316, -0.14719204604625702, -0.17319761216640472, -0.20473164319992065, 0.29166993498802185, 0.09842118620872498, -0.12995143234729767, 0.13238754868507385, 0.12089092284440994, 0.023868832737207413, -0.11856105923652649, 0.15571153163909912, 0.3497001528739929, 0.10535275936126709, -0.24232448637485504, -0.19692359864711761, -0.643887996673584, 0.1382269710302353, -0.09636702388525009, 0.16456015408039093, -0.19771315157413483, 0.1629336178302765, -0.03372706100344658, 0.08452645689249039, 0.2139347940683365, 0.09984862804412842, 0.21732468903064728, 0.2653210163116455, -0.11745846271514893, -0.2823590040206909, 0.026598012074828148, 0.11500166356563568, -0.24666129052639008, -0.4413090944290161, 0.07846684008836746, -0.227406844496727, 0.04725673049688339, 0.11268839240074158, -0.12910757958889008, -0.12330031394958496, -0.2741156816482544, 0.6556935906410217, 0.12865082919597626, 0.43148332834243774, -0.14341896772384644, -0.28353235125541687, -0.4107497036457062, -0.03240198642015457, -0.06375695765018463, -0.21496433019638062, -0.14534270763397217, 0.6507196426391602, -0.13838236033916473, -0.004225567914545536, -0.28873035311698914, 0.634502649307251, 0.23974141478538513, -0.010851982980966568, -0.2587587833404541, 0.020687080919742584, -0.5742632150650024, 0.20704658329486847, -0.1069621592760086, 0.16414430737495422, -0.1554752141237259, 0.014037154614925385, -0.17266644537448883, -0.17264902591705322, 0.6431185603141785, -0.8920931816101074, -0.05727532505989075, 0.11844651401042938, 0.25401657819747925, 0.15828993916511536, -0.037408675998449326, -0.22734767198562622, 0.29581621289253235, 0.2916668653488159, -0.16808083653450012, -0.2898518443107605, 0.01413569226861, -0.0060684047639369965, -0.04722493514418602, 0.06299513578414917, 0.42493683099746704, 0.10372039675712585, -0.3597126007080078, 0.29651010036468506, -0.3112955689430237 ]
https://github.com/huggingface/datasets/issues/5574
Experiencing the same issues as above : `FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz If the repo is private or gated, make sure to log in with `huggingface-cli login`.` Have made sure to login as well, issue persists.
c4 dataset streaming fails with `FileNotFoundError`
### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
33
c4 dataset streaming fails with `FileNotFoundError` ### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 Experiencing the same issues as above : `FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz If the repo is private or gated, make sure to log in with `huggingface-cli login`.` Have made sure to login as well, issue persists.
[ -0.24674591422080994, 0.13279850780963898, 0.040042098611593246, 0.32442140579223633, 0.1723439246416092, 0.11456883698701859, 0.14179402589797974, 0.27800270915031433, -0.08522552996873856, 0.06967851519584656, -0.07468800991773605, -0.08705082535743713, -0.08886299282312393, 0.10009609907865524, 0.06160685792565346, 0.027806447818875313, -0.09655937552452087, 0.19019478559494019, 0.031760405749082565, 0.15858371555805206, -0.010184787213802338, 0.09507498145103455, -0.2483242154121399, -0.053817857056856155, -0.18987928330898285, -0.13213887810707092, 0.040765680372714996, 0.3170546889305115, -0.1137586385011673, -0.3029361069202423, 0.35685479640960693, -0.0902591273188591, 0.22927530109882355, 0.5055239796638489, -0.00011665171768981963, 0.13374143838882446, 0.30966201424598694, -0.16429492831230164, -0.20611068606376648, -0.2514600157737732, -0.47318217158317566, -0.04302406683564186, -0.2491292953491211, -0.09240731596946716, -0.047344595193862915, -0.05731898546218872, 0.1745145171880722, -0.4100087881088257, 0.3812447190284729, 0.5148965716362, 0.10202879458665848, 0.22239035367965698, -0.1284903585910797, 0.15287470817565918, -0.1823309063911438, -0.2142828404903412, -0.08021394908428192, 0.28004807233810425, -0.0665726512670517, 0.16675910353660583, -0.05099395290017128, 0.18356050550937653, -0.10023293644189835, -0.08552324771881104, 0.20828594267368317, -0.036381080746650696, -0.08648170530796051, -0.26736655831336975, 0.16529978811740875, 0.31590601801872253, 0.7408332228660583, -0.32909777760505676, -0.43626609444618225, -0.02088860422372818, 0.24007633328437805, -0.2947309613227844, 0.27932122349739075, 0.28933003544807434, -0.06849851459264755, 0.20271876454353333, -0.21325063705444336, -0.04583464190363884, -0.3832428753376007, 0.14924004673957825, -0.042087674140930176, -0.0571136400103569, -0.03317303955554962, -0.04581158980727196, -0.06490067392587662, 0.0373309850692749, -0.028730478137731552, -0.4330829977989197, -0.28172537684440613, 0.28500890731811523, -0.24725449085235596, -0.01606803387403488, -0.04550224170088768, 0.26849350333213806, 0.012613832950592041, 0.14114102721214294, 0.33579713106155396, -0.04241316765546799, -0.27079132199287415, 0.12728646397590637, 0.04236430674791336, 0.1877591609954834, 0.09706978499889374, -0.09918469935655594, 0.36070144176483154, 0.3305165767669678, -0.04302264004945755, -0.29922524094581604, 0.0817597433924675, -0.12616083025932312, -0.2838232219219208, -0.06033249571919441, 0.2967720031738281, -0.31146857142448425, -0.5887153148651123, 0.21858982741832733, -0.7019351124763489, -0.0014178752899169922, -0.0213322676718235, 0.506765604019165, -0.23274113237857819, 0.10391131788492203, 0.07359664142131805, 0.20150288939476013, 0.0010894984006881714, -0.38615530729293823, -0.1270834058523178, -0.1528317779302597, -0.030597954988479614, 0.19865183532238007, 0.19666290283203125, -0.3244635760784149, 0.2735459506511688, 0.038484059274196625, 0.21742688119411469, 0.0932360291481018, -0.013154711574316025, -0.0573376789689064, -0.12895925343036652, 0.19556951522827148, -0.04352903738617897, 0.09557364881038666, 0.1676395982503891, -0.31850072741508484, 0.047634780406951904, -0.09468836337327957, -0.01587391272187233, -0.10598946362733841, 0.042311638593673706, 0.10096141695976257, -0.30695879459381104, -0.07276160269975662, -0.19828756153583527, -0.050681889057159424, -0.2695266306400299, -0.3888098895549774, 0.16269831359386444, -0.05521892383694649, 0.11192651093006134, -0.2257494330406189, 0.23529493808746338, 0.7646642923355103, -0.280204713344574, -0.18464869260787964, -0.11372765153646469, -0.16401934623718262, 0.34095868468284607, 0.2769830524921417, -0.10479710251092911, 0.019311148673295975, -0.267783522605896, 0.40866681933403015, 0.21925511956214905, -0.193113774061203, -0.6291776895523071, 0.5631682872772217, -0.19646534323692322, 0.6119541525840759, 0.209344744682312, 0.06432723999023438, -0.05952168628573418, -0.18049675226211548, 0.16535398364067078, 0.25187990069389343, -0.027336888015270233, -0.035223398357629776, -0.22846561670303345, -0.1035553589463234, 0.3411962389945984, 0.031351782381534576, -0.021206742152571678, 0.14885009825229645, 0.3272896409034729, -0.025998178869485855, 0.41606253385543823, -0.2120276689529419, -0.0012864582240581512, -0.007101778872311115, 0.4763604402542114, -0.03675896301865578, -0.16989782452583313, 0.10066904127597809, -0.6074482798576355, 0.23923102021217346, 0.16325435042381287, -0.17657536268234253, -0.03365805745124817, -0.09012715518474579, -0.027928318828344345, -0.13434582948684692, -0.3375191390514374, -0.36893290281295776, 0.08227873593568802, 0.2043689638376236, 0.006776086986064911, 0.21912629902362823, -0.19478526711463928, 0.8216493129730225, -0.4222235083580017, 0.010109428316354752, -0.03835560753941536, 0.2734585404396057, 0.02752547897398472, -0.061410821974277496, 0.049076423048973083, -0.06341008841991425, 0.23409846425056458, -0.13357429206371307, -0.08236485719680786, 0.5615682601928711, -0.055334459990262985, 0.29508620500564575, -0.1069149374961853, 0.08125236630439758, 0.43685564398765564, -0.2516924738883972, 0.00744323804974556, 0.5023475289344788, 0.2338283658027649, 0.02167949080467224, 0.04421946033835411, 0.35877907276153564, 0.07097876816987991, 0.08141371607780457, 0.28478115797042847, -0.003402233123779297, 0.20224958658218384, 0.08997076749801636, -0.23544281721115112, 0.0940500944852829, 0.4511277973651886, -0.3855784833431244, 0.32700008153915405, -0.173448845744133, -0.41256070137023926, -0.04538608342409134, 0.2711711823940277, -0.08672787249088287, -0.21076519787311554, -0.0628109872341156, -0.2558000683784485, 0.0916113331913948, 0.4675676226615906, 0.3024216890335083, 0.4392612874507904, 0.06820529699325562, -0.13268396258354187, 0.1980845034122467, -0.10682014375925064, -0.18183405697345734, 0.16543163359165192, -0.21031299233436584, -0.11768637597560883, 0.27095305919647217, -0.05011570453643799, 0.06094178929924965, -0.2687233090400696, -0.4471788704395294, -0.06406038254499435, 0.0006424449384212494, -0.48724228143692017, 0.21120169758796692, -0.3642650246620178, -0.2230176329612732, -0.07438664883375168, -0.062309786677360535, -0.16031630337238312, -0.11078359186649323, -0.1855875849723816, 0.3693571984767914, -0.10465790331363678, 0.025225620716810226, -0.8260205984115601, 0.02523466944694519, -0.01327449083328247, -0.31963691115379333, -0.1709110140800476, 0.16814196109771729, -0.22076231241226196, 0.06438338756561279, 0.47011497616767883, -0.13558925688266754, 0.21940556168556213, -0.21755468845367432, -0.09454178810119629, -0.3899039030075073, -0.176279217004776, 0.09338326007127762, -0.07612979412078857, 0.1792287677526474, -0.23388555645942688, 0.37256166338920593, -0.1618686020374298, -0.3543159067630768, -0.007720932364463806, -0.1387401670217514, -0.10681143403053284, 0.12521855533123016, -0.014008734375238419, -0.0970151424407959, -0.11198841780424118, -0.39950811862945557, -0.1454065889120102, -0.35105106234550476, 0.26427164673805237, -0.1719004213809967, 0.010369135066866875, 0.40081214904785156, 0.11057280004024506, 0.29947349429130554, 0.10752752423286438, -0.17394551634788513, -0.007570244371891022, -0.24086591601371765, 0.4674311578273773, -0.022617297247052193, -0.36916545033454895, 0.2096189260482788, 0.08432985097169876, -0.06399407237768173, 0.37871745228767395, -0.36694586277008057, 0.29028695821762085, -0.11964810639619827, 0.2584116756916046, -0.07022443413734436, -0.2072044312953949, 0.19460293650627136, -0.2807166278362274, 0.08727709949016571, -0.2538697123527527, 0.10635330528020859, -0.06807161867618561, 0.2817385792732239, 0.4405920207500458, -0.06615228950977325, 0.37335914373397827, 0.1821441948413849, 0.5030515789985657, 0.33333855867385864, -0.14474116265773773, 0.494977205991745, -0.046924468129873276, 0.48988109827041626, 0.09671016037464142, -0.021917220205068588, 0.21092376112937927, -0.07143813371658325, -0.23888586461544037, 0.18571466207504272, -0.05955967307090759, -0.11733856052160263, -0.32470378279685974, 0.05678386241197586, -0.33530014753341675, -0.15100356936454773, 0.04701194912195206, -0.046284694224596024, 0.1390511691570282, 0.10295882076025009, 0.2039237916469574, 0.2588067650794983, -0.18477699160575867, 0.1013566106557846, 0.6303926706314087, 0.34443408250808716, 0.1472349762916565, -0.09011507034301758, -0.32927191257476807, -0.4260959029197693, 0.40447133779525757, 0.27845311164855957, 0.3510299026966095, -0.13401059806346893, -0.1468486487865448, -0.0816459059715271, -0.18911704421043396, 0.5461323261260986, -0.2006642371416092, 0.14058011770248413, 0.1294146180152893, 0.20293647050857544, 0.003830753266811371, -0.12068644165992737, -0.04415952041745186, 0.24062329530715942, 0.4243500232696533, 0.2068154513835907, -0.19260349869728088, 0.009018529206514359, -0.22709298133850098, -0.015159130096435547, 0.1268855333328247, 0.03617486357688904, -0.15880966186523438, -0.1292187124490738, -0.1440449357032776, -0.060872603207826614, -0.043131180107593536, 0.07953675091266632, -0.20847338438034058, 0.1955895721912384, 0.023120565339922905, 0.06246595084667206, 0.2545427083969116, 0.23770856857299805, 0.19763457775115967, 0.000494539737701416, 0.13283386826515198, 0.29775670170783997, 0.11113427579402924, 0.5374557971954346, 0.5015860795974731, 0.3258614242076874, -0.3276033401489258, -0.051683954894542694, 0.18064212799072266, 0.06356167048215866, 0.36201971769332886, 0.03963243588805199, -0.11139514297246933, 0.36321622133255005, 0.00010435469448566437, -0.06050604581832886, 0.21385706961154938, 0.31250905990600586, -0.20250417292118073, -0.45945075154304504, -0.4426804184913635, 0.4259542226791382, -0.19747531414031982, 0.08712558448314667, 0.539544939994812, 0.37628093361854553, -0.1448122262954712, -0.04598572477698326, -0.19865211844444275, 0.6673847436904907, 0.2108585089445114, 0.16781221330165863, 0.41156259179115295, -0.06498706340789795, 0.2511215806007385, -0.5093105435371399, 0.2791634798049927, -0.07036393880844116, -0.2707412838935852, -0.1809658408164978, -0.13096439838409424, 0.3981800675392151, 0.0845392495393753, -0.14743322134017944, 0.29735082387924194, 0.07149411737918854, 0.3795415759086609, 0.22432991862297058, -0.13453039526939392, -0.5341125726699829, 0.052410826086997986, -0.4589903652667999, 0.11229444295167923, -0.11275596916675568, 0.22009329497814178, -0.10963450372219086, -0.31313472986221313, -0.22502005100250244, -0.1420184075832367, -0.3320109248161316, 0.4367016553878784, -0.3807063102722168, -0.09972669929265976, -0.18795578181743622, -0.26866042613983154, 0.20013092458248138, 0.2089671492576599, -0.2123231738805771, 0.021704470738768578, -0.3878674805164337, 0.239304319024086, -0.1301879733800888, -0.0467909500002861, -0.00015890970826148987, -0.021716155111789703, 0.20118412375450134, -0.05334228277206421, -0.08571265637874603, 0.2670663893222809, -0.10205544531345367, -0.4851556122303009, 0.39969900250434875, -0.05655098333954811, -0.19144080579280853, 0.08738948404788971, -0.1711709201335907, 0.11444329470396042, 0.034642286598682404, -0.08096618950366974, 0.07494864612817764, -0.21587887406349182, -0.16919073462486267, -0.22207067906856537, 0.019049370661377907, -0.11564917862415314, -0.12492190301418304, 0.494538277387619, -0.2481376975774765, 0.02179025113582611, 0.3826906681060791, 0.04467085003852844, -0.1298367977142334, -0.19934411346912384, -0.02080754190683365, -0.045450497418642044, -0.009270995855331421, -0.0589417889714241, -0.11375189572572708, 0.2521289885044098, -0.33611711859703064, 0.13704456388950348, 0.1217673122882843, -0.13819651305675507, 0.04927702248096466, -0.4791683256626129, -0.19215694069862366, 0.116594597697258, -0.14037305116653442, 0.1662994772195816, -0.053851980715990067, 0.28692933917045593, 0.06458786875009537, -0.18195335566997528, -0.208290234208107, 0.01129104197025299, -0.05162835121154785, -0.09221842885017395, 0.2739124894142151, 0.3151569366455078, 0.5544480085372925, -0.07922877371311188, 0.09241856634616852, 0.2115279585123062, -0.2162851095199585, -0.12283279001712799, -0.11556945741176605, 0.20164689421653748, 0.34677591919898987, -0.2658436894416809, 0.01345512643456459, -0.21983376145362854, -0.10459927469491959, -0.06739984452724457, 0.1867256760597229, 0.2010083794593811, -0.039192311465740204, -0.03182271122932434, 0.1556113213300705, 0.11428087949752808, -0.3225093483924866, -0.0017671789973974228, -0.0664738118648529, 0.37251555919647217, 0.15871332585811615, 0.08929253369569778, -0.12892372906208038, 0.11799588799476624, -0.09783178567886353, -0.02075793221592903, -0.03301738202571869, 0.21228155493736267, 0.3940542936325073, -0.4751182794570923, 0.09360983967781067, -0.05096229538321495, 0.08167850226163864, 0.4724433720111847, -0.20521408319473267, 0.008502379059791565, 0.2781928777694702, 0.11942265182733536, -0.03131914138793945, 0.04302052780985832, 0.1823088526725769, -0.041301459074020386, -0.059893060475587845, -0.09673437476158142, -0.058348581194877625, -0.2807616591453552, -0.06959840655326843, 0.06027363985776901, 0.248338982462883, 0.08516115695238113, 0.18966051936149597, 0.44485148787498474, 0.0379403680562973, 0.1966792494058609, -0.1022331565618515, -0.06512603163719177, 0.18373702466487885, 0.2699832618236542, -0.25609636306762695, -0.22846275568008423, -0.15082940459251404, 0.11247774958610535, -0.21081584692001343, -0.5837599635124207, -0.3741249740123749, 0.1367514729499817, -0.24426688253879547, 0.39939165115356445, 0.19652159512043, 0.07425196468830109, -0.16143369674682617, 0.05576939508318901, -0.32434171438217163, -0.16240212321281433, -0.02239689975976944, 0.2272508442401886, -0.13990354537963867, -0.29846131801605225, 0.02820277214050293, 0.15970022976398468, 0.008529427461326122, -0.0549740307033062, 0.10398170351982117, 0.21661117672920227, -0.17479944229125977, -0.1756558120250702, 0.03896709531545639, 0.14087677001953125, 0.24339041113853455, -0.27267977595329285, 0.13330940902233124, 0.18458525836467743, -0.04436032474040985, 0.1830577701330185, -0.07467897981405258, 0.42534545063972473, 0.23505957424640656, 0.03925760090351105, 0.15417441725730896, 0.18553869426250458, -0.09270977973937988, 0.14326514303684235, 0.3272571861743927, 0.20650579035282135, -0.21433813869953156, 0.2518347501754761, 0.09707748144865036, -0.1172056496143341, 0.2109106183052063, -0.14883677661418915, 0.28762033581733704, -0.4688102602958679, 0.30672121047973633, -0.4334774315357208, 0.10325704514980316, -0.14719204604625702, -0.17319761216640472, -0.20473164319992065, 0.29166993498802185, 0.09842118620872498, -0.12995143234729767, 0.13238754868507385, 0.12089092284440994, 0.023868832737207413, -0.11856105923652649, 0.15571153163909912, 0.3497001528739929, 0.10535275936126709, -0.24232448637485504, -0.19692359864711761, -0.643887996673584, 0.1382269710302353, -0.09636702388525009, 0.16456015408039093, -0.19771315157413483, 0.1629336178302765, -0.03372706100344658, 0.08452645689249039, 0.2139347940683365, 0.09984862804412842, 0.21732468903064728, 0.2653210163116455, -0.11745846271514893, -0.2823590040206909, 0.026598012074828148, 0.11500166356563568, -0.24666129052639008, -0.4413090944290161, 0.07846684008836746, -0.227406844496727, 0.04725673049688339, 0.11268839240074158, -0.12910757958889008, -0.12330031394958496, -0.2741156816482544, 0.6556935906410217, 0.12865082919597626, 0.43148332834243774, -0.14341896772384644, -0.28353235125541687, -0.4107497036457062, -0.03240198642015457, -0.06375695765018463, -0.21496433019638062, -0.14534270763397217, 0.6507196426391602, -0.13838236033916473, -0.004225567914545536, -0.28873035311698914, 0.634502649307251, 0.23974141478538513, -0.010851982980966568, -0.2587587833404541, 0.020687080919742584, -0.5742632150650024, 0.20704658329486847, -0.1069621592760086, 0.16414430737495422, -0.1554752141237259, 0.014037154614925385, -0.17266644537448883, -0.17264902591705322, 0.6431185603141785, -0.8920931816101074, -0.05727532505989075, 0.11844651401042938, 0.25401657819747925, 0.15828993916511536, -0.037408675998449326, -0.22734767198562622, 0.29581621289253235, 0.2916668653488159, -0.16808083653450012, -0.2898518443107605, 0.01413569226861, -0.0060684047639369965, -0.04722493514418602, 0.06299513578414917, 0.42493683099746704, 0.10372039675712585, -0.3597126007080078, 0.29651010036468506, -0.3112955689430237 ]
https://github.com/huggingface/datasets/issues/5574
> Experiencing the same issues as above : `FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz If the repo is private or gated, make sure to log in with `huggingface-cli login`.` > > Have made sure to login as well, issue persists. I meet the same issue
c4 dataset streaming fails with `FileNotFoundError`
### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3
41
c4 dataset streaming fails with `FileNotFoundError` ### Describe the bug Loading the `c4` dataset in streaming mode with `load_dataset("c4", "en", split="validation", streaming=True)` and then using it fails with a `FileNotFoundException`. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("c4", "en", split="train", streaming=True) next(iter(dataset)) ``` causes a ``` FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz ``` I can download this file manually though e.g. by entering this URL in a browser. There is an underlying HTTP 403 status code: ``` aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://cdn-lfs.huggingface.co/datasets/allenai/c4/8ef8d75b0e045dec4aa5123a671b4564466b0707086a7ed1ba8721626dfffbc9?response-content-disposition=attachment%3B+filename*%3DUTF-8''c4-train.00000-of-01024.json.gz%3B+filename%3D%22c4-train.00000-of-01024.json.gz%22%3B&response-content-type=application/gzip&Expires=1677483770&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL2RhdGFzZXRzL2FsbGVuYWkvYzQvOGVmOGQ3NWIwZTA0NWRlYzRhYTUxMjNhNjcxYjQ1NjQ0NjZiMDcwNzA4NmE3ZWQxYmE4NzIxNjI2ZGZmZmJjOT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPWFwcGxpY2F0aW9uJTJGZ3ppcCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTY3NzQ4Mzc3MH19fV19&Signature=yjL3UeY72cf2xpnvPvD68eAYOEe2qtaUJV55sB-jnPskBJEMwpMJcBZvg2~GqXZdM3O-GWV-Z3CI~d4u5VCb4YZ-HlmOjr3VBYkvox2EKiXnBIhjMecf2UVUPtxhTa9kBVlWjqu4qKzB9gKXZF2Cwpp5ctLzapEaT2nnqF84RAL-rsqMA3I~M8vWWfivQsbBK63hMfgZqqKMgdWM0iKMaItveDl0ufQ29azMFmsR7qd8V7sU2Z-F1fAeohS8HpN9OOnClW34yi~YJ2AbgZJJBXA~qsylfVA0Qp7Q~yX~q4P8JF1vmJ2BjkiSbGrj3bAXOGugpOVU5msI52DT88yMdA__&Key-Pair-Id=KVTP0A1DKRTAX') ``` ### Expected behavior This should retrieve the first example from the C4 validation set. This worked a few days ago but stopped working now. ### Environment info - `datasets` version: 2.9.0 - Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.31 - Python version: 3.9.16 - PyArrow version: 11.0.0 - Pandas version: 1.5.3 > Experiencing the same issues as above : `FileNotFoundError: https://huggingface.co/datasets/allenai/c4/resolve/1ddc917116b730e1859edef32896ec5c16be51d0/en/c4-train.00000-of-01024.json.gz If the repo is private or gated, make sure to log in with `huggingface-cli login`.` > > Have made sure to login as well, issue persists. I meet the same issue
[ -0.24674591422080994, 0.13279850780963898, 0.040042098611593246, 0.32442140579223633, 0.1723439246416092, 0.11456883698701859, 0.14179402589797974, 0.27800270915031433, -0.08522552996873856, 0.06967851519584656, -0.07468800991773605, -0.08705082535743713, -0.08886299282312393, 0.10009609907865524, 0.06160685792565346, 0.027806447818875313, -0.09655937552452087, 0.19019478559494019, 0.031760405749082565, 0.15858371555805206, -0.010184787213802338, 0.09507498145103455, -0.2483242154121399, -0.053817857056856155, -0.18987928330898285, -0.13213887810707092, 0.040765680372714996, 0.3170546889305115, -0.1137586385011673, -0.3029361069202423, 0.35685479640960693, -0.0902591273188591, 0.22927530109882355, 0.5055239796638489, -0.00011665171768981963, 0.13374143838882446, 0.30966201424598694, -0.16429492831230164, -0.20611068606376648, -0.2514600157737732, -0.47318217158317566, -0.04302406683564186, -0.2491292953491211, -0.09240731596946716, -0.047344595193862915, -0.05731898546218872, 0.1745145171880722, -0.4100087881088257, 0.3812447190284729, 0.5148965716362, 0.10202879458665848, 0.22239035367965698, -0.1284903585910797, 0.15287470817565918, -0.1823309063911438, -0.2142828404903412, -0.08021394908428192, 0.28004807233810425, -0.0665726512670517, 0.16675910353660583, -0.05099395290017128, 0.18356050550937653, -0.10023293644189835, -0.08552324771881104, 0.20828594267368317, -0.036381080746650696, -0.08648170530796051, -0.26736655831336975, 0.16529978811740875, 0.31590601801872253, 0.7408332228660583, -0.32909777760505676, -0.43626609444618225, -0.02088860422372818, 0.24007633328437805, -0.2947309613227844, 0.27932122349739075, 0.28933003544807434, -0.06849851459264755, 0.20271876454353333, -0.21325063705444336, -0.04583464190363884, -0.3832428753376007, 0.14924004673957825, -0.042087674140930176, -0.0571136400103569, -0.03317303955554962, -0.04581158980727196, -0.06490067392587662, 0.0373309850692749, -0.028730478137731552, -0.4330829977989197, -0.28172537684440613, 0.28500890731811523, -0.24725449085235596, -0.01606803387403488, -0.04550224170088768, 0.26849350333213806, 0.012613832950592041, 0.14114102721214294, 0.33579713106155396, -0.04241316765546799, -0.27079132199287415, 0.12728646397590637, 0.04236430674791336, 0.1877591609954834, 0.09706978499889374, -0.09918469935655594, 0.36070144176483154, 0.3305165767669678, -0.04302264004945755, -0.29922524094581604, 0.0817597433924675, -0.12616083025932312, -0.2838232219219208, -0.06033249571919441, 0.2967720031738281, -0.31146857142448425, -0.5887153148651123, 0.21858982741832733, -0.7019351124763489, -0.0014178752899169922, -0.0213322676718235, 0.506765604019165, -0.23274113237857819, 0.10391131788492203, 0.07359664142131805, 0.20150288939476013, 0.0010894984006881714, -0.38615530729293823, -0.1270834058523178, -0.1528317779302597, -0.030597954988479614, 0.19865183532238007, 0.19666290283203125, -0.3244635760784149, 0.2735459506511688, 0.038484059274196625, 0.21742688119411469, 0.0932360291481018, -0.013154711574316025, -0.0573376789689064, -0.12895925343036652, 0.19556951522827148, -0.04352903738617897, 0.09557364881038666, 0.1676395982503891, -0.31850072741508484, 0.047634780406951904, -0.09468836337327957, -0.01587391272187233, -0.10598946362733841, 0.042311638593673706, 0.10096141695976257, -0.30695879459381104, -0.07276160269975662, -0.19828756153583527, -0.050681889057159424, -0.2695266306400299, -0.3888098895549774, 0.16269831359386444, -0.05521892383694649, 0.11192651093006134, -0.2257494330406189, 0.23529493808746338, 0.7646642923355103, -0.280204713344574, -0.18464869260787964, -0.11372765153646469, -0.16401934623718262, 0.34095868468284607, 0.2769830524921417, -0.10479710251092911, 0.019311148673295975, -0.267783522605896, 0.40866681933403015, 0.21925511956214905, -0.193113774061203, -0.6291776895523071, 0.5631682872772217, -0.19646534323692322, 0.6119541525840759, 0.209344744682312, 0.06432723999023438, -0.05952168628573418, -0.18049675226211548, 0.16535398364067078, 0.25187990069389343, -0.027336888015270233, -0.035223398357629776, -0.22846561670303345, -0.1035553589463234, 0.3411962389945984, 0.031351782381534576, -0.021206742152571678, 0.14885009825229645, 0.3272896409034729, -0.025998178869485855, 0.41606253385543823, -0.2120276689529419, -0.0012864582240581512, -0.007101778872311115, 0.4763604402542114, -0.03675896301865578, -0.16989782452583313, 0.10066904127597809, -0.6074482798576355, 0.23923102021217346, 0.16325435042381287, -0.17657536268234253, -0.03365805745124817, -0.09012715518474579, -0.027928318828344345, -0.13434582948684692, -0.3375191390514374, -0.36893290281295776, 0.08227873593568802, 0.2043689638376236, 0.006776086986064911, 0.21912629902362823, -0.19478526711463928, 0.8216493129730225, -0.4222235083580017, 0.010109428316354752, -0.03835560753941536, 0.2734585404396057, 0.02752547897398472, -0.061410821974277496, 0.049076423048973083, -0.06341008841991425, 0.23409846425056458, -0.13357429206371307, -0.08236485719680786, 0.5615682601928711, -0.055334459990262985, 0.29508620500564575, -0.1069149374961853, 0.08125236630439758, 0.43685564398765564, -0.2516924738883972, 0.00744323804974556, 0.5023475289344788, 0.2338283658027649, 0.02167949080467224, 0.04421946033835411, 0.35877907276153564, 0.07097876816987991, 0.08141371607780457, 0.28478115797042847, -0.003402233123779297, 0.20224958658218384, 0.08997076749801636, -0.23544281721115112, 0.0940500944852829, 0.4511277973651886, -0.3855784833431244, 0.32700008153915405, -0.173448845744133, -0.41256070137023926, -0.04538608342409134, 0.2711711823940277, -0.08672787249088287, -0.21076519787311554, -0.0628109872341156, -0.2558000683784485, 0.0916113331913948, 0.4675676226615906, 0.3024216890335083, 0.4392612874507904, 0.06820529699325562, -0.13268396258354187, 0.1980845034122467, -0.10682014375925064, -0.18183405697345734, 0.16543163359165192, -0.21031299233436584, -0.11768637597560883, 0.27095305919647217, -0.05011570453643799, 0.06094178929924965, -0.2687233090400696, -0.4471788704395294, -0.06406038254499435, 0.0006424449384212494, -0.48724228143692017, 0.21120169758796692, -0.3642650246620178, -0.2230176329612732, -0.07438664883375168, -0.062309786677360535, -0.16031630337238312, -0.11078359186649323, -0.1855875849723816, 0.3693571984767914, -0.10465790331363678, 0.025225620716810226, -0.8260205984115601, 0.02523466944694519, -0.01327449083328247, -0.31963691115379333, -0.1709110140800476, 0.16814196109771729, -0.22076231241226196, 0.06438338756561279, 0.47011497616767883, -0.13558925688266754, 0.21940556168556213, -0.21755468845367432, -0.09454178810119629, -0.3899039030075073, -0.176279217004776, 0.09338326007127762, -0.07612979412078857, 0.1792287677526474, -0.23388555645942688, 0.37256166338920593, -0.1618686020374298, -0.3543159067630768, -0.007720932364463806, -0.1387401670217514, -0.10681143403053284, 0.12521855533123016, -0.014008734375238419, -0.0970151424407959, -0.11198841780424118, -0.39950811862945557, -0.1454065889120102, -0.35105106234550476, 0.26427164673805237, -0.1719004213809967, 0.010369135066866875, 0.40081214904785156, 0.11057280004024506, 0.29947349429130554, 0.10752752423286438, -0.17394551634788513, -0.007570244371891022, -0.24086591601371765, 0.4674311578273773, -0.022617297247052193, -0.36916545033454895, 0.2096189260482788, 0.08432985097169876, -0.06399407237768173, 0.37871745228767395, -0.36694586277008057, 0.29028695821762085, -0.11964810639619827, 0.2584116756916046, -0.07022443413734436, -0.2072044312953949, 0.19460293650627136, -0.2807166278362274, 0.08727709949016571, -0.2538697123527527, 0.10635330528020859, -0.06807161867618561, 0.2817385792732239, 0.4405920207500458, -0.06615228950977325, 0.37335914373397827, 0.1821441948413849, 0.5030515789985657, 0.33333855867385864, -0.14474116265773773, 0.494977205991745, -0.046924468129873276, 0.48988109827041626, 0.09671016037464142, -0.021917220205068588, 0.21092376112937927, -0.07143813371658325, -0.23888586461544037, 0.18571466207504272, -0.05955967307090759, -0.11733856052160263, -0.32470378279685974, 0.05678386241197586, -0.33530014753341675, -0.15100356936454773, 0.04701194912195206, -0.046284694224596024, 0.1390511691570282, 0.10295882076025009, 0.2039237916469574, 0.2588067650794983, -0.18477699160575867, 0.1013566106557846, 0.6303926706314087, 0.34443408250808716, 0.1472349762916565, -0.09011507034301758, -0.32927191257476807, -0.4260959029197693, 0.40447133779525757, 0.27845311164855957, 0.3510299026966095, -0.13401059806346893, -0.1468486487865448, -0.0816459059715271, -0.18911704421043396, 0.5461323261260986, -0.2006642371416092, 0.14058011770248413, 0.1294146180152893, 0.20293647050857544, 0.003830753266811371, -0.12068644165992737, -0.04415952041745186, 0.24062329530715942, 0.4243500232696533, 0.2068154513835907, -0.19260349869728088, 0.009018529206514359, -0.22709298133850098, -0.015159130096435547, 0.1268855333328247, 0.03617486357688904, -0.15880966186523438, -0.1292187124490738, -0.1440449357032776, -0.060872603207826614, -0.043131180107593536, 0.07953675091266632, -0.20847338438034058, 0.1955895721912384, 0.023120565339922905, 0.06246595084667206, 0.2545427083969116, 0.23770856857299805, 0.19763457775115967, 0.000494539737701416, 0.13283386826515198, 0.29775670170783997, 0.11113427579402924, 0.5374557971954346, 0.5015860795974731, 0.3258614242076874, -0.3276033401489258, -0.051683954894542694, 0.18064212799072266, 0.06356167048215866, 0.36201971769332886, 0.03963243588805199, -0.11139514297246933, 0.36321622133255005, 0.00010435469448566437, -0.06050604581832886, 0.21385706961154938, 0.31250905990600586, -0.20250417292118073, -0.45945075154304504, -0.4426804184913635, 0.4259542226791382, -0.19747531414031982, 0.08712558448314667, 0.539544939994812, 0.37628093361854553, -0.1448122262954712, -0.04598572477698326, -0.19865211844444275, 0.6673847436904907, 0.2108585089445114, 0.16781221330165863, 0.41156259179115295, -0.06498706340789795, 0.2511215806007385, -0.5093105435371399, 0.2791634798049927, -0.07036393880844116, -0.2707412838935852, -0.1809658408164978, -0.13096439838409424, 0.3981800675392151, 0.0845392495393753, -0.14743322134017944, 0.29735082387924194, 0.07149411737918854, 0.3795415759086609, 0.22432991862297058, -0.13453039526939392, -0.5341125726699829, 0.052410826086997986, -0.4589903652667999, 0.11229444295167923, -0.11275596916675568, 0.22009329497814178, -0.10963450372219086, -0.31313472986221313, -0.22502005100250244, -0.1420184075832367, -0.3320109248161316, 0.4367016553878784, -0.3807063102722168, -0.09972669929265976, -0.18795578181743622, -0.26866042613983154, 0.20013092458248138, 0.2089671492576599, -0.2123231738805771, 0.021704470738768578, -0.3878674805164337, 0.239304319024086, -0.1301879733800888, -0.0467909500002861, -0.00015890970826148987, -0.021716155111789703, 0.20118412375450134, -0.05334228277206421, -0.08571265637874603, 0.2670663893222809, -0.10205544531345367, -0.4851556122303009, 0.39969900250434875, -0.05655098333954811, -0.19144080579280853, 0.08738948404788971, -0.1711709201335907, 0.11444329470396042, 0.034642286598682404, -0.08096618950366974, 0.07494864612817764, -0.21587887406349182, -0.16919073462486267, -0.22207067906856537, 0.019049370661377907, -0.11564917862415314, -0.12492190301418304, 0.494538277387619, -0.2481376975774765, 0.02179025113582611, 0.3826906681060791, 0.04467085003852844, -0.1298367977142334, -0.19934411346912384, -0.02080754190683365, -0.045450497418642044, -0.009270995855331421, -0.0589417889714241, -0.11375189572572708, 0.2521289885044098, -0.33611711859703064, 0.13704456388950348, 0.1217673122882843, -0.13819651305675507, 0.04927702248096466, -0.4791683256626129, -0.19215694069862366, 0.116594597697258, -0.14037305116653442, 0.1662994772195816, -0.053851980715990067, 0.28692933917045593, 0.06458786875009537, -0.18195335566997528, -0.208290234208107, 0.01129104197025299, -0.05162835121154785, -0.09221842885017395, 0.2739124894142151, 0.3151569366455078, 0.5544480085372925, -0.07922877371311188, 0.09241856634616852, 0.2115279585123062, -0.2162851095199585, -0.12283279001712799, -0.11556945741176605, 0.20164689421653748, 0.34677591919898987, -0.2658436894416809, 0.01345512643456459, -0.21983376145362854, -0.10459927469491959, -0.06739984452724457, 0.1867256760597229, 0.2010083794593811, -0.039192311465740204, -0.03182271122932434, 0.1556113213300705, 0.11428087949752808, -0.3225093483924866, -0.0017671789973974228, -0.0664738118648529, 0.37251555919647217, 0.15871332585811615, 0.08929253369569778, -0.12892372906208038, 0.11799588799476624, -0.09783178567886353, -0.02075793221592903, -0.03301738202571869, 0.21228155493736267, 0.3940542936325073, -0.4751182794570923, 0.09360983967781067, -0.05096229538321495, 0.08167850226163864, 0.4724433720111847, -0.20521408319473267, 0.008502379059791565, 0.2781928777694702, 0.11942265182733536, -0.03131914138793945, 0.04302052780985832, 0.1823088526725769, -0.041301459074020386, -0.059893060475587845, -0.09673437476158142, -0.058348581194877625, -0.2807616591453552, -0.06959840655326843, 0.06027363985776901, 0.248338982462883, 0.08516115695238113, 0.18966051936149597, 0.44485148787498474, 0.0379403680562973, 0.1966792494058609, -0.1022331565618515, -0.06512603163719177, 0.18373702466487885, 0.2699832618236542, -0.25609636306762695, -0.22846275568008423, -0.15082940459251404, 0.11247774958610535, -0.21081584692001343, -0.5837599635124207, -0.3741249740123749, 0.1367514729499817, -0.24426688253879547, 0.39939165115356445, 0.19652159512043, 0.07425196468830109, -0.16143369674682617, 0.05576939508318901, -0.32434171438217163, -0.16240212321281433, -0.02239689975976944, 0.2272508442401886, -0.13990354537963867, -0.29846131801605225, 0.02820277214050293, 0.15970022976398468, 0.008529427461326122, -0.0549740307033062, 0.10398170351982117, 0.21661117672920227, -0.17479944229125977, -0.1756558120250702, 0.03896709531545639, 0.14087677001953125, 0.24339041113853455, -0.27267977595329285, 0.13330940902233124, 0.18458525836467743, -0.04436032474040985, 0.1830577701330185, -0.07467897981405258, 0.42534545063972473, 0.23505957424640656, 0.03925760090351105, 0.15417441725730896, 0.18553869426250458, -0.09270977973937988, 0.14326514303684235, 0.3272571861743927, 0.20650579035282135, -0.21433813869953156, 0.2518347501754761, 0.09707748144865036, -0.1172056496143341, 0.2109106183052063, -0.14883677661418915, 0.28762033581733704, -0.4688102602958679, 0.30672121047973633, -0.4334774315357208, 0.10325704514980316, -0.14719204604625702, -0.17319761216640472, -0.20473164319992065, 0.29166993498802185, 0.09842118620872498, -0.12995143234729767, 0.13238754868507385, 0.12089092284440994, 0.023868832737207413, -0.11856105923652649, 0.15571153163909912, 0.3497001528739929, 0.10535275936126709, -0.24232448637485504, -0.19692359864711761, -0.643887996673584, 0.1382269710302353, -0.09636702388525009, 0.16456015408039093, -0.19771315157413483, 0.1629336178302765, -0.03372706100344658, 0.08452645689249039, 0.2139347940683365, 0.09984862804412842, 0.21732468903064728, 0.2653210163116455, -0.11745846271514893, -0.2823590040206909, 0.026598012074828148, 0.11500166356563568, -0.24666129052639008, -0.4413090944290161, 0.07846684008836746, -0.227406844496727, 0.04725673049688339, 0.11268839240074158, -0.12910757958889008, -0.12330031394958496, -0.2741156816482544, 0.6556935906410217, 0.12865082919597626, 0.43148332834243774, -0.14341896772384644, -0.28353235125541687, -0.4107497036457062, -0.03240198642015457, -0.06375695765018463, -0.21496433019638062, -0.14534270763397217, 0.6507196426391602, -0.13838236033916473, -0.004225567914545536, -0.28873035311698914, 0.634502649307251, 0.23974141478538513, -0.010851982980966568, -0.2587587833404541, 0.020687080919742584, -0.5742632150650024, 0.20704658329486847, -0.1069621592760086, 0.16414430737495422, -0.1554752141237259, 0.014037154614925385, -0.17266644537448883, -0.17264902591705322, 0.6431185603141785, -0.8920931816101074, -0.05727532505989075, 0.11844651401042938, 0.25401657819747925, 0.15828993916511536, -0.037408675998449326, -0.22734767198562622, 0.29581621289253235, 0.2916668653488159, -0.16808083653450012, -0.2898518443107605, 0.01413569226861, -0.0060684047639369965, -0.04722493514418602, 0.06299513578414917, 0.42493683099746704, 0.10372039675712585, -0.3597126007080078, 0.29651010036468506, -0.3112955689430237 ]
https://github.com/huggingface/datasets/issues/5571
Hi! You need to pass an input json file explicitly as `data_files` to `load_dataset` to avoid this error: ```python ds = load_dataset("json", data_files=args.input_json) ```
load_dataset fails for JSON in windows
### Describe the bug Steps: 1. Created a dataset in a Linux VM and created a small sample using dataset.to_json() method. 2. Downloaded the JSON file to my local Windows machine for working and saved in say - r"C:\Users\name\file.json" 3. I am reading the file in my local PyCharm - the location of python file is different than the location of the JSON. 4. When I read using load_dataset("json",args.input_json), it throws and error from builder.py. raise InvalidConfigName( f"Bad characters from black list '{invalid_windows_characters}' found in '{self.name}'. " f"They could create issues when creating a directory for this config on Windows filesystem." 6. When I bring the data to the current directory, it works fine. ### Steps to reproduce the bug Steps: 1. Created a dataset in a Linux VM and created a small sample using dataset.to_json() method. 2. Downloaded the JSON file to my local Windows machine for working and saved in say - r"C:\Users\name\file.json" 3. I am reading the file in my local PyCharm - the location of python file is different than the location of the JSON. 4. When I read using load_dataset("json",args.input_json), it throws and error from builder.py. raise InvalidConfigName( f"Bad characters from black list '{invalid_windows_characters}' found in '{self.name}'. " f"They could create issues when creating a directory for this config on Windows filesystem." 6. When I bring the data to the current directory, it works fine. ### Expected behavior Should be able to read from a path different than current directory in Windows machine. ### Environment info datasets version: 2.3.1 python version: 3.8 Windows OS
24
load_dataset fails for JSON in windows ### Describe the bug Steps: 1. Created a dataset in a Linux VM and created a small sample using dataset.to_json() method. 2. Downloaded the JSON file to my local Windows machine for working and saved in say - r"C:\Users\name\file.json" 3. I am reading the file in my local PyCharm - the location of python file is different than the location of the JSON. 4. When I read using load_dataset("json",args.input_json), it throws and error from builder.py. raise InvalidConfigName( f"Bad characters from black list '{invalid_windows_characters}' found in '{self.name}'. " f"They could create issues when creating a directory for this config on Windows filesystem." 6. When I bring the data to the current directory, it works fine. ### Steps to reproduce the bug Steps: 1. Created a dataset in a Linux VM and created a small sample using dataset.to_json() method. 2. Downloaded the JSON file to my local Windows machine for working and saved in say - r"C:\Users\name\file.json" 3. I am reading the file in my local PyCharm - the location of python file is different than the location of the JSON. 4. When I read using load_dataset("json",args.input_json), it throws and error from builder.py. raise InvalidConfigName( f"Bad characters from black list '{invalid_windows_characters}' found in '{self.name}'. " f"They could create issues when creating a directory for this config on Windows filesystem." 6. When I bring the data to the current directory, it works fine. ### Expected behavior Should be able to read from a path different than current directory in Windows machine. ### Environment info datasets version: 2.3.1 python version: 3.8 Windows OS Hi! You need to pass an input json file explicitly as `data_files` to `load_dataset` to avoid this error: ```python ds = load_dataset("json", data_files=args.input_json) ```
[ -0.211417555809021, 0.492599755525589, -0.03301860764622688, 0.3481309115886688, 0.32010185718536377, 0.13950234651565552, 0.37376224994659424, 0.19964200258255005, 0.5069834589958191, 0.07556141912937164, 0.21943449974060059, 0.2802489101886749, 0.029630690813064575, -0.10699475556612015, 0.13115009665489197, -0.12328361719846725, 0.06983241438865662, 0.08920103311538696, 0.04922477528452873, -0.1289377063512802, -0.397922158241272, 0.23341457545757294, -0.19342303276062012, 0.08999812602996826, -0.03562047705054283, -0.2085879147052765, -0.06279632449150085, 0.44842734932899475, 0.02345823496580124, -0.4279002845287323, 0.09239787608385086, -0.3707648515701294, 0.12104421854019165, 0.5832433700561523, -0.00011635754344752058, 0.27777162194252014, 0.3161768317222595, 0.030852198600769043, -0.17110520601272583, -0.4643588662147522, -0.43914204835891724, -0.23228880763053894, -0.0021922439336776733, -0.17023266851902008, 0.034115441143512726, -0.33412688970565796, -0.1031818687915802, -0.22774338722229004, 0.356856107711792, 0.45832324028015137, 0.15713635087013245, 0.18157926201820374, -0.026132479310035706, 0.2713947892189026, 0.16183513402938843, 0.49321556091308594, -0.06470713019371033, 0.38291114568710327, 0.23752787709236145, -0.042984507977962494, -0.05616545304656029, -0.09535492956638336, -0.2137281596660614, 0.10105059295892715, 0.04417237639427185, 0.1416741907596588, -0.033741891384124756, 0.013236958533525467, -0.10699887573719025, 0.14944694936275482, 0.42700666189193726, -0.24872668087482452, -0.20237740874290466, -0.12369859963655472, -0.07919642329216003, -0.1299230456352234, 0.5280370712280273, 0.41759490966796875, -0.37274855375289917, 0.1753023862838745, -0.19664154946804047, -0.08458244800567627, -0.2558436393737793, 0.2506241798400879, 0.1764378547668457, 0.003822188824415207, 0.029666386544704437, 0.15528376400470734, -0.04582676663994789, -0.02216266840696335, 0.1979295164346695, -0.4004782438278198, -0.2236766368150711, 0.014332268387079239, -0.41606318950653076, 0.055931590497493744, -0.17317429184913635, 0.21743953227996826, 0.11913661658763885, 0.050400786101818085, 0.2275097817182541, -0.0564151294529438, 0.1712195724248886, 0.29269707202911377, 0.2087637037038803, 0.13650648295879364, -0.08709537982940674, 0.1631220281124115, 0.3345944583415985, 0.12296547740697861, -0.03835030645132065, -0.04397590830922127, -0.3397411108016968, -0.6542073488235474, 0.163161039352417, 0.1229926347732544, 0.33462685346603394, -0.19706350564956665, -0.3227388262748718, -0.029978420585393906, -0.1912323236465454, -0.06374108791351318, 0.2749464809894562, 0.2866046726703644, 0.0127897709608078, 0.007747188210487366, 0.19457243382930756, 0.39450621604919434, -0.11158697307109833, 0.2978421449661255, 0.06921415030956268, -0.04605851322412491, -0.22539310157299042, -0.10880323499441147, 0.4133140444755554, -0.04697214812040329, 0.4204637408256531, 0.0842592865228653, -0.04430544748902321, -0.1664840430021286, 0.06116430461406708, -0.0677657201886177, -0.012721795588731766, 0.17952044308185577, 0.04470895975828171, 0.2627439498901367, 0.037026599049568176, -0.27292048931121826, -0.1716964840888977, 0.3095756769180298, -0.45778822898864746, -0.05575175583362579, -0.008563372306525707, 0.11810680478811264, -0.011229470372200012, -0.027443666011095047, -0.42015984654426575, -0.14954189956188202, 0.03254328668117523, -0.009884893894195557, 0.014433763921260834, -0.24564550817012787, -0.08723976463079453, -0.20599204301834106, 0.008527204394340515, 0.23058778047561646, -0.42157599329948425, -0.008309856057167053, 0.2182963639497757, -0.07769802212715149, -0.11803700029850006, 0.30888164043426514, -0.2263438105583191, 0.3553819954395294, -0.32298922538757324, 0.1270909607410431, 0.20060038566589355, -0.37418630719184875, -0.41003838181495667, 0.4292699992656708, -0.1370404213666916, -0.10993386059999466, 0.1140429824590683, -0.0721486285328865, 0.18282313644886017, 0.05883365124464035, 0.18257462978363037, 0.37587058544158936, 0.12889213860034943, 0.25002723932266235, -0.0773860290646553, -0.27036547660827637, 0.25746381282806396, 0.18922767043113708, -0.49620017409324646, -0.10315167158842087, 0.39747536182403564, 0.13003189861774445, 0.3117952048778534, -0.15372680127620697, -0.011614756658673286, 0.5377256870269775, -0.10632528364658356, -0.14133872091770172, 0.07958510518074036, 0.012552142143249512, -0.22433245182037354, 0.058114081621170044, -0.030031390488147736, -0.05114093795418739, -0.2133515626192093, 0.07638150453567505, -0.10393372923135757, 0.1407969892024994, -0.47336798906326294, -0.03326551988720894, 0.074064239859581, 0.31664717197418213, 0.09887774288654327, -0.09368383884429932, 0.06583952903747559, 0.1198243796825409, -0.11028425395488739, 0.03922399878501892, -0.04670245945453644, 0.297360897064209, -0.12764610350131989, -0.05547225475311279, 0.15744338929653168, 0.07850658148527145, 0.3170921802520752, -0.08232925832271576, -0.28956425189971924, 0.1745794713497162, 0.12178224325180054, 0.21147754788398743, -0.0019247988238930702, -0.02082299441099167, 0.21550531685352325, -0.1836571991443634, 0.26283106207847595, 0.717827558517456, 0.21921738982200623, -0.10370606184005737, -0.21805712580680847, 0.21139031648635864, -0.22698645293712616, 0.3824520707130432, -0.11955831199884415, -0.0036086440086364746, 0.24471378326416016, -0.12312448024749756, -0.04983694106340408, -0.01148802787065506, 0.44474709033966064, 0.40861937403678894, 0.038556307554244995, -0.03506194427609444, -0.2706111669540405, -0.2513357996940613, 0.6141869425773621, -0.16265255212783813, 0.24341267347335815, 0.09979107975959778, -0.22015099227428436, 0.17151527106761932, 0.19405952095985413, 0.013700753450393677, 0.6532477140426636, 0.09153416752815247, -0.301555335521698, 0.1287355124950409, -0.1422470211982727, -0.22307494282722473, 0.23822511732578278, 0.007085375487804413, 0.1440243124961853, 0.394991934299469, 0.14654505252838135, -0.06939643621444702, -0.3121325969696045, -0.12201778590679169, 0.026903897523880005, -0.06831072270870209, -0.5234644412994385, 0.19426843523979187, -0.36556535959243774, 0.22427132725715637, -0.4953981041908264, -0.35029539465904236, -0.16782906651496887, 0.043300822377204895, -0.046058379113674164, 0.12092383205890656, 0.01574556529521942, 0.07073379307985306, -0.0871792584657669, 0.03569939732551575, 0.11026433855295181, -0.5568510890007019, -0.20623190701007843, 0.12683571875095367, -0.38276034593582153, -0.01927337236702442, 0.46991682052612305, 0.15546903014183044, 0.131348118185997, -0.2892085611820221, -0.10194920003414154, -0.03801234811544418, 0.0021104663610458374, 0.006922838278114796, 0.01355268619954586, 0.6341341137886047, 0.1837768256664276, 0.20143961906433105, 0.13735005259513855, -0.2732681334018707, 0.22225061058998108, -0.09105291217565536, -0.3952743411064148, 0.08500948548316956, 0.10049229860305786, -0.31588661670684814, 0.01008346676826477, -0.2983914017677307, -0.21452979743480682, -0.3174746632575989, 0.16721650958061218, 0.209163635969162, 0.09735102206468582, -0.0007497482001781464, 0.10376322269439697, 0.07088925689458847, 0.17378106713294983, 0.11880192160606384, 0.02109624072909355, -0.26579803228378296, 0.3147987127304077, -0.16552339494228363, -0.3422144651412964, 0.2020510733127594, 0.07330463081598282, -0.16353900730609894, -0.03685983270406723, -0.6214589476585388, 0.1163710281252861, 0.022095652297139168, 0.373329222202301, 0.048426102846860886, 0.07661401480436325, 0.07680550217628479, 0.13049978017807007, 0.07086067646741867, -0.2400481402873993, -0.5432384610176086, -0.030080974102020264, 0.0031375549733638763, 0.316868394613266, 0.3588213622570038, 0.3969932794570923, -0.2942636013031006, 0.08693996071815491, 0.25715577602386475, 0.09368254244327545, 0.2517498731613159, -0.23872889578342438, 0.13062450289726257, -0.0680561512708664, -0.28768953680992126, 0.36397024989128113, 0.019534379243850708, -0.12266172468662262, 0.10812900960445404, 0.19194909930229187, -0.00655730813741684, -0.02667064592242241, -0.299273282289505, -0.3727577328681946, -0.15422731637954712, 0.207126185297966, -0.036121610552072525, 0.031953077763319016, -0.12032528221607208, 0.1766703575849533, 0.04282490909099579, -0.21458354592323303, 0.14118269085884094, 0.5038254261016846, -0.2037889063358307, 0.18439096212387085, -0.4970126152038574, -0.3267669975757599, -0.23869308829307556, 0.0386834591627121, 0.01842191442847252, 0.5930967330932617, -0.14247970283031464, 0.3216935396194458, -0.04353414848446846, -0.22649547457695007, 0.5769920945167542, -0.11102445423603058, 0.21654218435287476, 0.18167650699615479, 0.24089214205741882, -0.3379918038845062, -0.009654529392719269, -0.10521291196346283, 0.40054842829704285, -0.379777193069458, 0.34248852729797363, 0.09921593964099884, -0.25103312730789185, -0.05847252532839775, 0.5610346794128418, -0.32188117504119873, -0.23559285700321198, -0.2288711667060852, -0.6186146140098572, -0.48792731761932373, -0.13803185522556305, -0.004572190344333649, 0.12493539601564407, -0.12818236649036407, -0.08368716388940811, 0.014703778550028801, 0.18854951858520508, -0.0415692962706089, 0.04248892515897751, 0.3301360011100769, -0.1384599208831787, 0.10527966171503067, 0.15299250185489655, 0.5667574405670166, 0.3726009726524353, 0.6522648334503174, 0.09020040929317474, -0.1725107729434967, 0.06005563959479332, -0.3147193193435669, 0.09057304263114929, 0.1687556505203247, -0.254960298538208, -0.16238445043563843, 0.16634288430213928, -0.08977450430393219, -0.38351690769195557, -0.1829833686351776, 0.45396095514297485, 0.30292925238609314, -0.035184334963560104, -0.3382871747016907, 0.34917309880256653, -0.16985833644866943, -0.020114555954933167, 0.16407884657382965, -0.19106429815292358, -0.5342181324958801, 0.3347823917865753, 0.128713920712471, 0.6406650543212891, 0.2255943864583969, 0.3189041018486023, 0.3593945801258087, -0.45098263025283813, -0.04942286014556885, -0.06542042642831802, 0.07651543617248535, -0.3682211637496948, 0.12424305081367493, -0.09764522314071655, -0.2980506420135498, 0.3182215690612793, 0.4352722764015198, -0.22776533663272858, 0.18350756168365479, 0.1205514669418335, -0.13412514328956604, 0.01820545643568039, 0.2399936020374298, -0.19028596580028534, -0.27360594272613525, -0.49265021085739136, 0.07957228273153305, 0.10296270251274109, 0.0847046971321106, -0.024882428348064423, -0.10125203430652618, -0.09017673134803772, -0.2595198154449463, -0.28250330686569214, 0.21649667620658875, -0.4703899621963501, 0.09189323335886002, 0.11867748200893402, -0.028638698160648346, 0.2228708565235138, 0.10741525143384933, 0.2125532627105713, 0.17229168117046356, -0.15807394683361053, 0.18829192221164703, 0.02771063894033432, 0.2273818999528885, 0.1041468009352684, -0.13738736510276794, 0.133967787027359, -0.11002889275550842, -0.4945456385612488, -0.10980503261089325, -0.2670828700065613, -0.304235577583313, -0.2182595580816269, 0.049307696521282196, 0.010309682227671146, -0.28786084055900574, -0.3043387234210968, -0.2722480893135071, 0.08494964987039566, -0.17589695751667023, 0.10492104291915894, 0.03467744216322899, 0.07888269424438477, 0.31924018263816833, -0.11821870505809784, -0.1688065528869629, 0.0037000151351094246, 0.017758328467607498, -0.22319677472114563, -0.008101753890514374, 0.5137462615966797, 0.15416549146175385, -0.10078170895576477, -0.3044227063655853, 0.5018637180328369, 0.1463499516248703, -0.11804415285587311, -0.1275371015071869, -0.01717538572847843, 0.07163426280021667, -0.04229998588562012, 0.28909918665885925, 0.10201963782310486, -0.07108277082443237, 0.04200991988182068, -0.7766286134719849, -0.18770501017570496, 0.21928612887859344, 0.20890456438064575, -0.013685058802366257, 0.2792941927909851, -0.08851496130228043, 0.0116768479347229, -0.3550183176994324, -0.22622637450695038, -0.031163498759269714, -0.10039686411619186, 0.023951750248670578, 0.021224480122327805, 0.12960290908813477, 0.2866757810115814, 0.00770905613899231, 0.10638857632875443, -0.09114459156990051, 0.21221493184566498, -0.12152304500341415, -0.23601078987121582, 0.10864558815956116, 0.04640722647309303, -0.1417502462863922, 0.00048782676458358765, -0.5105923414230347, 0.04184220731258392, 0.02701440081000328, 0.09550242125988007, 0.09494874626398087, -0.1462569534778595, 0.2832196354866028, -0.050351183861494064, -0.13195937871932983, -0.2556939721107483, 0.18904055655002594, -0.35092562437057495, 0.3347601294517517, -0.07303255796432495, 0.2882364094257355, 0.13230039179325104, 0.14933784306049347, -0.3761408030986786, 0.18592040240764618, -0.19505885243415833, 0.3677801191806793, 0.3061602711677551, -0.5196952819824219, 0.15057118237018585, 0.030095409601926804, 0.2896025776863098, 0.36216220259666443, -0.47021129727363586, 0.2537902593612671, 0.17559075355529785, 0.1670919507741928, -0.1882225126028061, -0.19950905442237854, 0.16125048696994781, -0.3132677972316742, -0.06336097419261932, 0.09122812002897263, 0.012077100574970245, -0.4012511372566223, -0.3289679288864136, -0.13780389726161957, 0.3195762634277344, 0.08342482149600983, -0.2249222695827484, 0.6576076149940491, -0.14474323391914368, 0.19397062063217163, 0.15242652595043182, 0.21698391437530518, 0.10348108410835266, 0.4145643711090088, 0.10096409916877747, 0.09870494157075882, 0.19169294834136963, 0.18281160295009613, -0.3189205229282379, -0.23009636998176575, 0.27947112917900085, -0.14828553795814514, 0.12230657786130905, 0.10449199378490448, 0.08255290985107422, 0.051867224276065826, -0.3003723621368408, 0.010645940899848938, -0.11707518249750137, -0.034541547298431396, -0.07426442950963974, -0.30898815393447876, -0.530231237411499, -0.07660073041915894, -0.016930565237998962, 0.002996206283569336, -0.055546727031469345, -0.1392744928598404, -0.029646579176187515, 0.24013730883598328, -0.15737657248973846, -0.44288113713264465, 0.18828195333480835, 0.2126924693584442, -0.2817190885543823, -0.23865576088428497, 0.4174191355705261, 0.17904779314994812, 0.19402746856212616, 0.1059282124042511, 0.1955036222934723, 0.5411970615386963, 0.36420193314552307, -0.16444505751132965, -0.1088215708732605, -0.15207095444202423, -0.02364320680499077, -0.03066399320960045, 0.37474653124809265, -0.06204470247030258, 0.030579067766666412, 0.33051007986068726, 0.12851320207118988, 0.011545438319444656, 0.21612191200256348, 0.23092208802700043, -0.11273925006389618, 0.07398887723684311, 0.11349057406187057, -0.03255300223827362, -0.06583721190690994, -0.2713697850704193, -0.1715395152568817, -0.202098086476326, -0.26620715856552124, 0.5955983400344849, -0.025876052677631378, 0.28706833720207214, -0.21072068810462952, 0.05094186216592789, 0.04898937791585922, 0.29844820499420166, 0.2792167067527771, 0.20838144421577454, -0.1692943572998047, 0.0737927258014679, -0.4314859211444855, 0.12544119358062744, -0.011642256751656532, -0.24243971705436707, 0.06963711977005005, -0.08289896696805954, -0.06337948143482208, 0.12111727893352509, 0.19853031635284424, 0.23836836218833923, -0.059623315930366516, 0.21664169430732727, -0.2774873673915863, -0.14569887518882751, 0.421632319688797, 0.4409942328929901, -0.05862373113632202, -0.6124241352081299, 0.2659592628479004, 0.18535295128822327, 0.01192241907119751, -0.34409549832344055, 0.15911506116390228, -0.007310368120670319, 0.11945994198322296, 0.20611917972564697, 0.11004327237606049, 0.289313405752182, -0.1692313253879547, -0.10275162756443024, -0.25229716300964355, -0.24706541001796722, -0.39577364921569824, 0.3313945531845093, -0.03715802729129791, 0.36614301800727844, -0.13222378492355347, -0.027630722150206566, -0.3368490934371948, -0.3774281144142151, -0.1664145290851593, -0.35052019357681274, -0.20227015018463135, 0.21966949105262756, -0.1165923997759819, 0.07894773036241531, 0.16715224087238312, 0.15116643905639648, -0.16410186886787415, 0.17722290754318237, -0.12296992540359497, -0.09035850316286087, 0.12699854373931885, -0.35918742418289185, -0.22971433401107788, 0.3001863360404968, 0.09357143193483353, -0.6091475486755371, 0.11705094575881958, -0.2588260769844055, 0.11583760380744934, 0.38433176279067993, -0.07350145280361176, -0.105503611266613, 0.07165384292602539, -0.0038073398172855377, 0.07369838654994965, 0.04662105441093445, 0.09446801990270615, 0.058016542345285416, -0.31613221764564514, 0.07467853277921677, -0.19083888828754425 ]
https://github.com/huggingface/datasets/issues/5570
Hi, thanks for the feedback! Would it help to add a tip or note saying the dataset is gated and you need to accept the license before downloading it?
load_dataset gives FileNotFoundError on imagenet-1k if license is not accepted on the hub
### Describe the bug When calling ```load_dataset('imagenet-1k')``` FileNotFoundError is raised, if not logged in and if logged in with huggingface-cli but not having accepted the licence on the hub. There is no error once accepting. ### Steps to reproduce the bug ``` from datasets import load_dataset imagenet = load_dataset("imagenet-1k", split="train", streaming=True) FileNotFoundError: Couldn't find a dataset script at /content/imagenet-1k/imagenet-1k.py or any data file in the same directory. Couldn't find 'imagenet-1k' on the Hugging Face Hub either: FileNotFoundError: Dataset 'imagenet-1k' doesn't exist on the Hub ``` tested on a colab notebook. ### Expected behavior I would expect a specific error indicating that I have to login then accept the dataset licence. I find this bug very relevant as this code is on a guide on the [Huggingface documentation for Datasets](https://huggingface.co/docs/datasets/about_mapstyle_vs_iterable) ### Environment info google colab cpu-only instance
29
load_dataset gives FileNotFoundError on imagenet-1k if license is not accepted on the hub ### Describe the bug When calling ```load_dataset('imagenet-1k')``` FileNotFoundError is raised, if not logged in and if logged in with huggingface-cli but not having accepted the licence on the hub. There is no error once accepting. ### Steps to reproduce the bug ``` from datasets import load_dataset imagenet = load_dataset("imagenet-1k", split="train", streaming=True) FileNotFoundError: Couldn't find a dataset script at /content/imagenet-1k/imagenet-1k.py or any data file in the same directory. Couldn't find 'imagenet-1k' on the Hugging Face Hub either: FileNotFoundError: Dataset 'imagenet-1k' doesn't exist on the Hub ``` tested on a colab notebook. ### Expected behavior I would expect a specific error indicating that I have to login then accept the dataset licence. I find this bug very relevant as this code is on a guide on the [Huggingface documentation for Datasets](https://huggingface.co/docs/datasets/about_mapstyle_vs_iterable) ### Environment info google colab cpu-only instance Hi, thanks for the feedback! Would it help to add a tip or note saying the dataset is gated and you need to accept the license before downloading it?
[ -0.35526418685913086, -0.3213687241077423, 0.09918774664402008, 0.2748076915740967, 0.020837444812059402, 0.08795338869094849, 0.525896430015564, 0.011118490248918533, 0.4931473731994629, 0.2004893571138382, -0.11338063329458237, 0.16971547901630402, -0.22929264605045319, 0.1972721517086029, 0.042492806911468506, 0.17294606566429138, 0.07574889808893204, -0.02632850408554077, -0.10490329563617706, -0.16648486256599426, -0.2955055236816406, 0.4242243468761444, -0.3724140524864197, -0.060220975428819656, -0.546259880065918, -0.07781227678060532, -0.14880487322807312, 0.4094110131263733, -0.002488553524017334, -0.05068445950746536, 0.42738932371139526, 0.16036096215248108, 0.1928999423980713, 0.47985583543777466, -0.00012514008267316967, -0.06056102365255356, 0.2666826844215393, -0.055936284363269806, -0.19028927385807037, -0.26849281787872314, -0.3428288698196411, -0.07322923094034195, -0.00462113693356514, -0.1004708781838417, -0.11219174414873123, 0.20767974853515625, 0.298247367143631, 0.13784489035606384, 0.4726983904838562, 0.14867916703224182, 0.05394456163048744, 0.09337224066257477, -0.022477738559246063, -0.1806093156337738, -0.10961959511041641, 0.16038620471954346, -0.03945600241422653, 0.5585575103759766, 0.02721049264073372, -0.1485700160264969, 0.028360744938254356, 0.4069023132324219, -0.16264194250106812, -0.24656324088573456, 0.6137469410896301, 0.036520183086395264, -0.30186086893081665, -0.48515671491622925, -0.007543562911450863, 0.27662354707717896, 0.10373459756374359, -0.30085891485214233, -0.3246643543243408, -0.5083263516426086, 0.2388458102941513, -0.04231659322977066, 0.3885716199874878, 0.18302741646766663, 0.017681285738945007, 0.333141565322876, -0.3168478310108185, -0.3685240149497986, -0.18095099925994873, 0.007080797106027603, -0.17390625178813934, 0.11707938462495804, -0.09920954704284668, 0.1731199026107788, 0.10155840218067169, 0.02546803280711174, -0.18481461703777313, -0.21737264096736908, -0.1360158622264862, 0.2610665559768677, -0.08622393012046814, 0.01940874755382538, 0.04809205234050751, 0.7139820456504822, 0.22252237796783447, 0.22356177866458893, -0.21506476402282715, -0.17903336882591248, -0.34837937355041504, 0.28792619705200195, 0.20340245962142944, -0.05374274402856827, 0.08906067907810211, 0.10486377030611038, 0.390537291765213, 0.2562522292137146, 0.14590218663215637, 0.03810623660683632, -0.08829905092716217, -0.14015735685825348, -0.14730286598205566, -0.17831291258335114, 0.43289053440093994, -0.12365218251943588, -0.39335644245147705, -0.08297605812549591, -0.06621378660202026, 0.2288474142551422, 0.361939013004303, 0.4395168423652649, -0.17671877145767212, -0.39400333166122437, 0.11227664351463318, 0.16715434193611145, -0.126962810754776, -0.20474889874458313, -0.22919316589832306, 0.07397158443927765, -0.04915456101298332, 0.2760120928287506, 0.17052380740642548, -0.3029427230358124, 0.2548184394836426, 0.06317868083715439, 0.14159688353538513, 0.07684941589832306, -0.15434136986732483, 0.03387994319200516, 0.012640906497836113, 0.361020565032959, -0.039026323705911636, 0.007801659405231476, 0.01606249436736107, -0.18705323338508606, -0.12032686918973923, 0.1638939082622528, -0.44800230860710144, -0.2486564815044403, 0.04216897487640381, -0.05148398503661156, -0.6383728981018066, -0.04048912227153778, -0.3130760192871094, 0.20319944620132446, -0.1927306354045868, -0.38963955640792847, 0.025754716247320175, 0.011122362688183784, -0.40290164947509766, -0.07584783434867859, 0.3392210900783539, 0.9185909032821655, -0.024167299270629883, -0.43913933634757996, -0.00013992562890052795, -0.25650671124458313, -0.06811332702636719, 0.17047220468521118, -0.12862643599510193, 0.23213018476963043, -0.5539731383323669, 0.13687096536159515, 0.052858565002679825, -0.6280088424682617, -0.657458484172821, 0.16042327880859375, -0.2981610894203186, 0.10545726865530014, 0.05667813494801521, 0.17386840283870697, -0.020423278212547302, -0.03936855494976044, 0.010717799887061119, 0.1008770614862442, 0.02020706795156002, 0.026933059096336365, -0.09604892134666443, -0.1178857684135437, 0.04275929927825928, 0.2127677947282791, 0.0444432757794857, 0.2542189657688141, 0.13921236991882324, 0.1436024308204651, 0.3089595437049866, -0.00272564310580492, -0.07368107885122299, 0.1342843770980835, 0.3947006165981293, 0.027942150831222534, -0.058608103543519974, 0.01895923912525177, -0.437634140253067, 0.3247136175632477, 0.10475590825080872, 0.22384288907051086, -0.1480213701725006, -0.2578275799751282, -0.185218945145607, -0.06087812781333923, -0.2289380431175232, -0.09186195582151413, -0.08529846370220184, -0.08003731071949005, -0.11028286814689636, 0.048130154609680176, -0.17311891913414001, 0.9723631739616394, -0.22725224494934082, 0.3271186947822571, -0.4441472887992859, 0.14813829958438873, 0.09426982700824738, -0.14987550675868988, -0.017862357199192047, 0.02842395007610321, 0.11793012917041779, -0.1281299740076065, 0.12195481359958649, 0.44514933228492737, 0.1336994469165802, 0.2804388999938965, 0.011057092808187008, -0.14589616656303406, 0.43685972690582275, -0.3046518564224243, -0.20341116189956665, -0.18241766095161438, 0.17756158113479614, -0.004000939428806305, -0.27338606119155884, 0.41808849573135376, -0.041010987013578415, 0.03947848454117775, -0.1360410749912262, 0.06265521794557571, -0.1459624320268631, 0.023689575493335724, -0.343409925699234, -0.07597796618938446, 0.030324798077344894, 0.18530963361263275, 0.1209760308265686, -0.022417061030864716, -0.07455343008041382, -0.06269553303718567, 0.18212378025054932, 0.03316797316074371, 0.012758146971464157, -0.06413353979587555, -0.11701609939336777, 0.1932026594877243, 0.5823221802711487, 0.1803075075149536, 0.4062179625034332, 0.06565495580434799, -0.3288525938987732, 0.22477707266807556, -0.20661291480064392, -0.11456824839115143, -0.02882574498653412, 0.08826762437820435, 0.1847163736820221, 0.01457333005964756, -0.05409316346049309, 0.03354855999350548, -0.31564420461654663, -0.48480820655822754, -0.08186831325292587, 0.037498220801353455, -0.46432822942733765, 0.034227728843688965, -0.2256300151348114, -0.19954541325569153, 0.03363577276468277, 0.301273912191391, -0.4277510941028595, -0.0988980382680893, -0.16302767395973206, 0.5961768627166748, 0.1871664971113205, 0.022459834814071655, -0.0912616178393364, 0.43106022477149963, -0.19601427018642426, -0.2073061615228653, -0.17817339301109314, -0.05488375574350357, -0.19803422689437866, -0.12807689607143402, 0.40378960967063904, -0.08310326933860779, 0.2540345788002014, -0.3889899253845215, 0.0036181360483169556, -0.21764439344406128, -0.316597044467926, 0.3037496507167816, -0.25700876116752625, 0.2888176441192627, 0.1536577045917511, 0.1925157904624939, -0.4321648180484772, 0.1340785175561905, 0.0697944164276123, 0.09746687114238739, -0.20965531468391418, -0.15580108761787415, -0.039810337126255035, -0.002949841320514679, -0.17899376153945923, 0.03674929961562157, -0.10390055924654007, -0.1418815553188324, 0.420414000749588, 0.11052148044109344, 0.08388300240039825, 0.5433374047279358, 0.17877912521362305, 0.3334873914718628, -0.18495230376720428, 0.02188793197274208, -0.10447687655687332, -0.21571946144104004, 0.23743052780628204, 0.0049921609461307526, -0.3141621947288513, 0.3019919693470001, -0.01105387881398201, 0.06862607598304749, 0.05177460238337517, -0.383172869682312, -0.3129402995109558, 0.09018104523420334, 0.3630527853965759, -0.11164674907922745, -0.06685063242912292, 0.37900489568710327, -0.053551822900772095, 0.27147263288497925, -0.1799044907093048, -0.15608586370944977, 0.02757192961871624, 0.08012574166059494, 0.2213585078716278, 0.08958160877227783, 0.15420949459075928, -0.26013585925102234, 0.3471028208732605, 0.2540661692619324, 0.1868314892053604, 0.3027200698852539, -0.18084633350372314, 0.5431641936302185, -0.01501321792602539, -0.12921717762947083, 0.05417013168334961, 0.3782932162284851, -0.17944231629371643, 0.15057066082954407, 0.08604404330253601, 0.32851701974868774, -0.3637372851371765, -0.26087284088134766, -0.21271613240242004, -0.2826806306838989, -0.21402718126773834, 0.23118573427200317, -0.022563088685274124, 0.16326205432415009, 0.2411489188671112, -0.08417455852031708, -0.18398907780647278, 0.21104085445404053, 0.7506949305534363, 0.49656397104263306, 0.1137438416481018, 0.01969262957572937, -0.15585993230342865, -0.4124543368816376, 0.11206318438053131, -0.049302149564027786, -0.031192142516374588, -0.22858604788780212, -0.10047625005245209, 0.16897422075271606, 0.09790793061256409, 0.7162104249000549, -0.17852464318275452, 0.019282756373286247, -0.2296699732542038, 0.06074652075767517, -0.35406237840652466, -0.1379149705171585, -0.19854208827018738, 0.15987125039100647, 0.11469518393278122, 0.6558489799499512, -0.20458728075027466, -0.06393913924694061, 0.1628299504518509, -0.0135297030210495, -0.10098531097173691, -0.2522977888584137, -0.319597452878952, -0.3458854556083679, -0.48193371295928955, 0.07580649852752686, 0.28014856576919556, 0.0707366093993187, -0.013021554797887802, 0.1449383646249771, -0.14368672668933868, -0.109108105301857, 0.1877630054950714, 0.3123599886894226, 0.3650203049182892, 0.1407497078180313, 0.2143210768699646, 0.26604926586151123, -0.018050745129585266, 0.20983655750751495, 0.6444060206413269, 0.19176846742630005, -0.3978888690471649, 0.23374012112617493, 0.05271758511662483, 0.12604446709156036, 0.4997774660587311, -0.17291294038295746, -0.19315147399902344, 0.2543184459209442, -0.003727603703737259, -0.37024208903312683, 0.12048051506280899, 0.10550818592309952, 0.023747410625219345, -0.1522919237613678, -0.15906402468681335, 0.3947312831878662, 0.2482166886329651, -0.16986891627311707, 0.3738470673561096, 0.43906623125076294, -0.2544155716896057, 0.19062647223472595, -0.09494507312774658, 1.063159704208374, 0.09879623353481293, 0.1549537032842636, 0.3763490319252014, 0.10691943764686584, 0.6814645528793335, 0.15163782238960266, 0.184316948056221, -0.2695201337337494, -0.27934274077415466, -0.14497503638267517, -0.06307074427604675, 0.11865465342998505, 0.0369245782494545, -0.1124381273984909, 0.21927160024642944, 0.16094881296157837, 0.32424867153167725, -0.03747166320681572, 0.03742101043462753, -0.5242586135864258, -0.19075797498226166, -0.16853323578834534, -0.011973876506090164, 0.11889144778251648, 0.8307415843009949, -0.2721216082572937, -0.1406201720237732, -0.4052911102771759, -0.09131023287773132, -0.284217894077301, 0.10739803314208984, -0.25924140214920044, -0.03754608333110809, 0.08143655955791473, -0.09412026405334473, 0.13247211277484894, 0.5355005264282227, 0.2695070505142212, 0.011284226551651955, -0.5172336101531982, 0.1430920511484146, -0.22718137502670288, -0.11511993408203125, -0.2581959664821625, -0.09237848222255707, 0.48867344856262207, -0.036028992384672165, -0.20217786729335785, -0.2435150444507599, -0.058376673609018326, -0.03176329284906387, -0.060155659914016724, 0.20248721539974213, -0.16453181207180023, -0.09936265647411346, -0.2529807388782501, 0.06808840483427048, 0.12394119054079056, -0.03178507089614868, -0.013561980798840523, 0.08095498383045197, 0.03772317245602608, -0.13631340861320496, 0.24350954592227936, -0.34676575660705566, -0.05257376283407211, 0.5896740555763245, -0.1472594141960144, -0.0005495771765708923, 0.2764647901058197, -0.05379348248243332, 0.0769033282995224, -0.0963040217757225, -0.07229354977607727, 0.22203168272972107, -0.6449501514434814, 0.07550057768821716, 0.19729305803775787, 0.2239387035369873, -0.2475915551185608, 0.22333328425884247, 0.2961805462837219, -0.2165679931640625, 0.11268285661935806, -0.36608976125717163, -0.27729979157447815, 0.29369890689849854, -0.2484610378742218, 0.01784616708755493, 0.27278414368629456, 0.08403970301151276, 0.20211461186408997, -0.40950095653533936, -0.15855088829994202, -0.07852624356746674, -0.009183041751384735, -0.2067604959011078, 0.3160109519958496, 0.2992028594017029, 0.10803951323032379, -0.2725687623023987, -0.04645589739084244, 0.2727709114551544, -0.13473162055015564, -0.026021495461463928, -0.13991817831993103, 0.2280406653881073, 0.1707513928413391, -0.027750903740525246, -0.2387031465768814, -0.12534785270690918, -0.13136212527751923, -0.13183511793613434, 0.41465723514556885, 0.29289761185646057, 0.10898330807685852, -0.13508303463459015, 0.17135246098041534, 0.43997302651405334, -0.23139725625514984, 0.1256885826587677, 0.037842608988285065, 0.08700939267873764, -0.044994790107011795, 0.12439745664596558, -0.025235503911972046, 0.11157584190368652, 0.10337188839912415, 0.118800088763237, 0.05399015545845032, 0.13805460929870605, 0.10303060710430145, -0.12266942858695984, 0.16953448951244354, -0.013838671147823334, 0.13439306616783142, 0.30226075649261475, -0.25054654479026794, -0.1252368986606598, 0.18879219889640808, 0.03821646422147751, -0.29830315709114075, 0.15460845828056335, 0.24761667847633362, 0.10921468585729599, 0.05360040068626404, 0.322762131690979, 0.05020667612552643, 0.24173954129219055, -0.30549630522727966, 0.13940250873565674, 0.41498658061027527, 0.17849400639533997, 0.22232219576835632, 0.26501497626304626, -0.14164482057094574, 0.3916855454444885, 0.2679544687271118, 0.12321992963552475, 0.10358729958534241, 0.20468318462371826, -0.40482598543167114, 0.2657230496406555, -0.40252485871315, 0.2540399730205536, 0.34044307470321655, -0.6765717267990112, -0.03329083323478699, 0.020257554948329926, 0.02439001575112343, -0.06284892559051514, -0.3062726557254791, 0.4700700640678406, -0.5500956773757935, -0.20530205965042114, -0.18128645420074463, 0.13968810439109802, -0.30866336822509766, 0.09965923428535461, -0.22297440469264984, -0.18226394057273865, -0.1452011913061142, 0.01493065059185028, 0.027628382667899132, -0.30626076459884644, 0.12674009799957275, 0.09590178728103638, -0.15183378756046295, -0.11108420044183731, -0.39459535479545593, 0.31106138229370117, 0.2500385046005249, -0.08366803824901581, 0.2638438642024994, -0.25713449716567993, 0.042867325246334076, 0.3193211555480957, 0.34340381622314453, 0.42212116718292236, 0.14087745547294617, 0.3070931136608124, 0.12171632051467896, 0.0482834167778492, 0.031594619154930115, -0.008060242980718613, 0.18549886345863342, 0.0500548854470253, 0.2923850417137146, 0.1609371155500412, 0.04606364667415619, 0.02651560679078102, 0.10735194385051727, -0.16158761084079742, 0.008748862892389297, -0.26206761598587036, 0.25035905838012695, -0.5802885890007019, -0.08801400661468506, -0.2863495349884033, 0.06960168480873108, -0.12243261933326721, 0.03143073990941048, 0.17269793152809143, -0.05060522258281708, 0.12803956866264343, -0.05281573906540871, -0.04580003023147583, 0.009409472346305847, 0.18810312449932098, 0.3636646866798401, 0.0031663570553064346, -0.2751222550868988, -0.138990581035614, -0.7475489377975464, 0.2551667094230652, -0.030641240999102592, -0.138761967420578, -0.14296302199363708, -0.08861958980560303, -0.2733600437641144, -0.019681725651025772, 0.07176549732685089, -0.05703986436128616, 0.2834038734436035, -0.0997765064239502, -0.0583425834774971, -0.2053755223751068, -0.11354927718639374, -0.15385672450065613, -0.010486342012882233, -0.13471892476081848, 0.33301419019699097, -0.1116524189710617, -0.17416810989379883, 0.06614045798778534, -0.024400420486927032, -0.26998695731163025, -0.33474913239479065, 0.505014955997467, -0.008928796276450157, 0.5299224853515625, -0.08332960307598114, -0.06296322494745255, -0.2504856288433075, -0.05835547670722008, -0.2910444438457489, 0.18527190387248993, -0.08543838560581207, 0.2193935364484787, 0.0019169449806213379, -0.11332741379737854, -0.13433393836021423, 0.4506072998046875, 0.3781879246234894, -0.0015507563948631287, -0.29745376110076904, -0.004477575421333313, -0.3806595206260681, 0.14920058846473694, 0.10731039941310883, 0.024190597236156464, -0.025134194642305374, 0.09642738848924637, -0.23369136452674866, -0.4202822148799896, 0.6822152137756348, -0.4783695340156555, 0.06029099225997925, -0.04662531614303589, 0.3183295726776123, 0.234276682138443, -0.3273042142391205, -0.5834221839904785, 0.09608401358127594, 0.13392484188079834, -0.04626708850264549, -0.10124024748802185, 0.159056156873703, -0.1089007556438446, -0.02043500542640686, 0.004981726408004761, 0.22382329404354095, -0.055105965584516525, -0.35719478130340576, 0.31695955991744995, -0.14122208952903748 ]