html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/2161
any possibility to download part of large datasets only?
oh, great, really awesome feature to have, thank you very much for the great, fabulous work
Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
16
any possibility to download part of large datasets only? Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks oh, great, really awesome feature to have, thank you very much for the great, fabulous work
[ -0.4569225609302521, -0.4417872130870819, -0.18960919976234436, 0.14840714633464813, 0.10390004515647888, 0.18816101551055908, -0.2670145630836487, 0.3661693334579468, 0.06326091289520264, 0.4351857900619507, -0.4470093250274658, -0.12800286710262299, -0.10398101806640625, 0.3638654053211212, 0.19023683667182922, -0.0035723932087421417, -0.14738315343856812, 0.25237709283828735, -0.2892184257507324, -0.19196100533008575, -0.06006385385990143, -0.1989700049161911, -0.23220454156398773, -0.27477145195007324, 0.11671745032072067, 0.0897206962108612, -0.04337926581501961, -0.17577549815177917, -0.5081450343132019, 0.09854475408792496, 0.14121130108833313, 0.24924787878990173, 0.10271783918142319, 0.09501086920499802, -0.00011070310574723408, -0.42093926668167114, 0.26686275005340576, -0.06257817894220352, -0.08437985181808472, -0.05196334421634674, -0.22100034356117249, 0.12849292159080505, -0.25075146555900574, -0.3328806459903717, -0.019608434289693832, 0.23395203053951263, 0.19929823279380798, 0.05253675580024719, 0.12392152845859528, 0.10562782734632492, 0.19302964210510254, 0.15194866061210632, -0.07237061858177185, -0.19024524092674255, 0.4425434470176697, 0.07756883651018143, -0.08182473480701447, 0.04597478359937668, 0.5918859243392944, 0.29434776306152344, 0.16676461696624756, 0.08494359254837036, 0.10341702401638031, 0.2473488748073578, -0.1054585799574852, -0.20397090911865234, -0.0984310731291771, -0.6417447328567505, 0.23372408747673035, 0.6659567952156067, 0.6920182108879089, 0.0556282103061676, -0.15061627328395844, -0.1202964261174202, 0.023658644407987595, -0.17436568439006805, -0.20180535316467285, 0.6123730540275574, -0.3871224820613861, 0.23489832878112793, -0.4387531280517578, -0.21169987320899963, -0.12346505373716354, 0.2909560799598694, -0.30182361602783203, 0.20004115998744965, -0.1299530565738678, -0.10543038696050644, 0.4078010320663452, 0.05969063192605972, 0.1735428422689438, 0.14333054423332214, -0.19636209309101105, 0.34200236201286316, -0.15677160024642944, -0.5366554260253906, -0.18377864360809326, 0.28871825337409973, 0.5101743936538696, 0.20400871336460114, 0.11404154449701309, 0.18945330381393433, -0.018495086580514908, -0.10158536583185196, 0.5733489394187927, -0.1129770427942276, -0.39236631989479065, 0.08092926442623138, 0.3171572685241699, -0.0752296969294548, -0.0010929219424724579, -0.06702505052089691, 0.046356234699487686, 0.16513173282146454, -0.5736995935440063, 0.0215225238353014, -0.13624952733516693, -0.4492551386356354, 0.09480131417512894, -0.28196579217910767, 0.34717074036598206, 0.034466687589883804, -0.08053718507289886, 0.19075614213943481, -0.02057906612753868, 0.04237937554717064, -0.46455156803131104, -0.1681990921497345, -0.016299672424793243, -0.19745300710201263, -0.09181804209947586, 0.022435683757066727, 0.041628237813711166, -0.08808203041553497, 0.3229667842388153, -0.18774592876434326, 0.2957334518432617, -0.19810649752616882, 0.3834773302078247, 0.22675547003746033, -0.11257433891296387, -0.2475355565547943, -0.0029424577951431274, 0.1985406130552292, 0.07005888223648071, 0.1578543782234192, -0.29345157742500305, 0.5020816326141357, -0.13492435216903687, 0.32605746388435364, -0.25353503227233887, -0.2201768308877945, -0.0583023726940155, 0.15157166123390198, -0.25621968507766724, -0.13334345817565918, -0.22880682349205017, 0.15761959552764893, -0.19317984580993652, 0.09394295513629913, 0.0799114778637886, 0.18320991098880768, -0.0579356886446476, -0.04381416365504265, 0.0031953342258930206, -0.011294752359390259, -0.15132586658000946, -0.07085830718278885, -0.1550825834274292, -0.29796087741851807, 0.359285444021225, 0.19995781779289246, -0.19715280830860138, -0.25213131308555603, -0.19482427835464478, -0.10178038477897644, 0.2613486647605896, 0.07872556149959564, -0.5193734765052795, 0.23326891660690308, 0.08850380778312683, -0.2687840759754181, 0.029589220881462097, 0.1556365042924881, 0.531599760055542, -0.020199578255414963, -0.26233404874801636, 0.5017805099487305, 0.05010797083377838, 0.09132009744644165, -0.09166501462459564, -0.2254313975572586, -0.19611801207065582, 0.2768271565437317, 0.2638244926929474, 0.34798645973205566, 0.4208671450614929, -0.012343584559857845, 0.5024281740188599, -0.18517418205738068, 0.23582716286182404, 0.05840707942843437, 0.27287793159484863, -0.17559784650802612, -0.01432887651026249, -0.4393555521965027, -0.12069927901029587, 0.16152000427246094, -0.09660285711288452, -0.2584321200847626, 0.3596484065055847, -0.14868907630443573, 0.04472948983311653, -0.31905046105384827, 0.2947392165660858, -0.04194125905632973, -0.02877059206366539, -0.29654040932655334, 0.409373939037323, -0.06764331459999084, -0.3393350839614868, -0.21348345279693604, -0.07331554591655731, 0.07369398325681686, 0.19954264163970947, -0.011014623567461967, 0.3500836491584778, 0.24856343865394592, 0.24411693215370178, -0.1814395785331726, 0.005632489919662476, -0.08230981975793839, 0.021813854575157166, 0.13096626102924347, 0.03956077992916107, 0.11802148818969727, 0.019910845905542374, -0.027047812938690186, 0.3809487521648407, -0.11380670219659805, 0.06397254019975662, 0.11266449093818665, 0.1333453506231308, 0.01939281076192856, -0.4595889747142792, 0.3454844355583191, -0.2954249382019043, 0.026413485407829285, 0.1687258630990982, -0.049125075340270996, 0.38970649242401123, -0.23405157029628754, 0.12799690663814545, 0.05504412204027176, 0.3604440987110138, 0.16309598088264465, 0.06753949820995331, -0.01706801913678646, -0.26959121227264404, -0.15037378668785095, 0.08790475130081177, -0.08909115195274353, -0.1837017834186554, 0.23623055219650269, -0.2942354083061218, 0.12833034992218018, 0.10566087067127228, 0.13321131467819214, 0.2384636104106903, 0.26144418120384216, 0.4191228747367859, -0.059698306024074554, 0.5338892340660095, -0.07989191263914108, 0.03449976444244385, -0.11120489239692688, -0.21858754754066467, 0.027137143537402153, 0.11925745010375977, -0.27208659052848816, -0.1960972547531128, 0.11855095624923706, 0.15994051098823547, 0.13137681782245636, 0.16105906665325165, -0.5328861474990845, -0.16141633689403534, -0.5867489576339722, 0.20143072307109833, 0.17655734717845917, 0.05894484370946884, -0.01027503702789545, 0.13664326071739197, 0.37286749482154846, -0.14437127113342285, -0.16074064373970032, -0.008977755904197693, 0.48629695177078247, -0.10677237063646317, 0.3569285273551941, -0.12091600149869919, 0.05338108912110329, 0.25838494300842285, 0.25248241424560547, 0.04109200835227966, 0.08167077600955963, 0.28679078817367554, 0.16027000546455383, -0.1303246021270752, -0.41614830493927, -0.007179535925388336, 0.08936856687068939, 0.31478065252304077, -0.14915816485881805, -0.0932759940624237, 0.2668725848197937, -0.02852230705320835, 0.10353334248065948, -0.20542852580547333, -0.12147808074951172, -0.20915839076042175, -0.14412876963615417, 0.09736767411231995, 0.06497136503458023, -0.22813963890075684, 0.005154058337211609, -0.5068330764770508, -0.32480743527412415, 0.531470000743866, 0.3946837782859802, 0.25373485684394836, -0.14947548508644104, -0.12426023930311203, -0.25178825855255127, -0.35731202363967896, -0.4232785701751709, -0.1491895318031311, -0.7825841307640076, 0.4113960564136505, -0.2570546865463257, -0.34388473629951477, -0.07557154446840286, 0.1506999284029007, -0.16085948050022125, 0.4088258743286133, -0.2474159449338913, 0.062127742916345596, -0.23876191675662994, 0.0257502980530262, 0.1554749608039856, 0.14341683685779572, -0.12403856217861176, -0.709616482257843, -0.10048101842403412, 0.1014399304986, 0.31396183371543884, -0.26145216822624207, 0.2509833872318268, 0.37130823731422424, -0.09021789580583572, -0.19036492705345154, 0.039954353123903275, 0.5214748978614807, -0.026835236698389053, 0.25385865569114685, 0.13070346415042877, -0.029028570279479027, 0.0504806786775589, -0.08628406375646591, 0.049552127718925476, 0.3566077947616577, -0.06476613879203796, -0.2368631511926651, 0.2402045875787735, 0.05472210422158241, -0.4161050617694855, -0.31596869230270386, 0.02951274812221527, 0.0245017409324646, -0.0842435359954834, -0.12554307281970978, 0.059254106134176254, -0.11053233593702316, 0.12624815106391907, -0.08902598172426224, 0.09321719408035278, -0.24663981795310974, 0.1455632597208023, -0.04366317391395569, 0.21795082092285156, -0.1918686479330063, -0.5488728880882263, -0.08801719546318054, -0.3732864260673523, 0.027545742690563202, -0.08879128098487854, -0.2204173058271408, 0.15404658019542694, 0.011821579188108444, 0.20025798678398132, 0.10467883199453354, 0.5495660305023193, 0.19242173433303833, 0.04418785125017166, -0.1874067485332489, -0.17722566425800323, 0.0666365846991539, 0.07635624706745148, -0.05161304026842117, -0.02969195321202278, 0.1616578847169876, -0.11882959306240082, -0.32170671224594116, 0.2123570442199707, 0.1185418888926506, 0.32807010412216187, -0.177350714802742, -0.16712704300880432, 0.21444572508335114, -0.11915475875139236, -0.29574689269065857, 0.21187782287597656, -0.0948873981833458, -0.13336774706840515, -0.09568195044994354, -0.20353716611862183, -0.09766934812068939, 0.04788050055503845, -0.056466713547706604, -0.09785991907119751, 0.04016827419400215, 0.1136263757944107, 0.4426667094230652, 0.03535819798707962, 0.014989055693149567, 0.16440720856189728, 0.5174335241317749, 0.2307387888431549, 0.043797560036182404, 0.046336837112903595, -0.2539518177509308, 0.03780402988195419, 0.19801057875156403, 0.09850335121154785, 0.2301355004310608, 0.014450631104409695, 0.3215954005718231, -0.12568636238574982, 0.0775858610868454, -0.42513981461524963, -0.16877399384975433, -0.451871395111084, -0.36954477429389954, 0.4214908182621002, 0.07016652822494507, 0.03336338698863983, 0.3626656234264374, -0.12929750978946686, 0.116496242582798, -0.10966469347476959, -0.05191416293382645, 0.9109147191047668, 0.0007674619555473328, 0.07578301429748535, -0.44421815872192383, 0.07257649302482605, 0.5207014679908752, -0.0016892515122890472, 0.060338109731674194, -0.2513402998447418, -0.4070742130279541, -0.16071230173110962, -0.04405476152896881, -0.12691345810890198, 0.12758168578147888, -0.030645346269011497, 0.21523332595825195, 0.0330473855137825, 0.06875927746295929, -0.10618960112333298, 0.013214219361543655, -0.25661611557006836, -0.2052280455827713, 0.2999652624130249, 0.11743257939815521, 0.009995892643928528, 0.4072090983390808, -0.008924784138798714, -0.02221062034368515, 0.0564134381711483, 0.08116234093904495, -0.1732972115278244, 0.07821249216794968, -0.24024024605751038, -0.12711820006370544, -0.21533387899398804, -0.14906349778175354, 0.011920604854822159, -0.2115807831287384, -0.0911346822977066, 0.28562143445014954, -0.40718841552734375, 0.2673168480396271, 0.2349710762500763, 0.14153029024600983, -0.04551183059811592, 0.1702989637851715, -0.24516481161117554, -0.13858264684677124, -0.06366758048534393, 0.13047879934310913, 0.06751473248004913, -0.22385664284229279, -0.15926481783390045, 0.16303208470344543, -0.001776278018951416, 0.072884701192379, -0.1480656862258911, 0.1476823389530182, -0.010742103680968285, -0.11843356490135193, 0.11711320281028748, 0.21892297267913818, -0.2218288630247116, 0.4116452932357788, 0.27766525745391846, -0.1695399284362793, -0.33473244309425354, 0.6299333572387695, 0.20157629251480103, -0.25798970460891724, -0.058895282447338104, -0.09497329592704773, -0.2412516176700592, -0.2029324471950531, 0.025439515709877014, -0.3619160056114197, -0.24896052479743958, 0.06841514259576797, -0.24310030043125153, 0.2482886165380478, -0.1463269293308258, 0.09542815387248993, 0.07262683659791946, 0.0065888091921806335, -0.1642005294561386, -0.20063553750514984, -0.41922006011009216, 0.015394143760204315, -0.06352166831493378, 0.25176385045051575, -0.21780100464820862, 0.009326128289103508, -0.007247358560562134, 0.19593669474124908, -0.27959173917770386, 0.3235083520412445, 0.10093589872121811, 0.1888236254453659, 0.44174832105636597, 0.2852608263492584, -0.2603094279766083, -0.09101109206676483, 0.022706488147377968, 0.37706905603408813, -0.011053543537855148, -0.22719091176986694, 0.02128613367676735, 0.17283786833286285, 0.07465434819459915, -0.24430188536643982, 0.24911698698997498, 0.008132219314575195, -0.12544533610343933, 0.09373404830694199, 0.17062826454639435, 0.06798259913921356, 0.2518121004104614, -0.3036065399646759, 0.5130079984664917, -0.35236793756484985, -0.4174022674560547, 0.5407010316848755, 0.012527115643024445, 0.08388203382492065, -0.0037674163468182087, 0.4048573970794678, 0.12924906611442566, -0.09923906624317169, -0.12005666643381119, -0.2527923882007599, 0.14530307054519653, -0.18953073024749756, 0.300219863653183, 0.31622833013534546, 0.1649172604084015, 0.302334725856781, 0.24577757716178894, 0.5084364414215088, -0.0152827687561512, 0.10851103067398071, 0.4348977208137512, 0.23777908086776733, -0.23178087174892426, -0.14985507726669312, -0.20366553962230682, -0.04850798472762108, 0.015582595020532608, 0.027326516807079315, -0.0010942965745925903, -0.2478482723236084, -0.06967051327228546, -0.29854580760002136, 0.11787818372249603, 0.2388332635164261, 0.026050714775919914, 0.7074025273323059, 0.15000338852405548, -0.3291204869747162, -0.04246940463781357, 0.17376293241977692, 0.20747528970241547, 0.4642716646194458, -0.12557828426361084, 0.26950520277023315, 0.2516717314720154, -0.06569844484329224, 0.02726304903626442, -0.6322482228279114, 0.04903452470898628, 0.4742773473262787, -0.155025452375412, 0.13335838913917542, 0.02812560275197029, 0.058310747146606445, 0.12929046154022217, -0.0616116039454937, -0.24365399777889252, 0.37225019931793213, 0.21696215867996216, -0.03862954303622246, -0.06118961423635483, -0.35696348547935486, 0.02983243018388748, 0.4323066174983978, -0.032956790179014206, -0.31655216217041016, 0.4121626615524292, 0.060423705726861954, 0.00550137460231781, -0.139183908700943, 0.040139660239219666, 0.019607413560152054, 0.17642557621002197, -0.4152514636516571, -0.17447802424430847, -0.061294302344322205, -0.00810636579990387, 0.2978869676589966, 0.1160275787115097, -0.17988590896129608, 0.10045311599969864, 0.2251490354537964, -0.040641941130161285, 0.11013500392436981, 0.04050455987453461, -0.27073150873184204, 0.06447450816631317, 0.30292993783950806, 0.03131131827831268, 0.41028180718421936, 0.0723477452993393, -0.11756446212530136, 0.25937986373901367, -0.06507056951522827, -0.17173106968402863, -0.3983205258846283, -0.2220226228237152, 0.27762752771377563, -0.016454804688692093, 0.008640117943286896, -0.18847855925559998, -0.09860847145318985, 0.029451366513967514, -0.36277344822883606, -0.45934802293777466, 0.2472180426120758, 0.30251362919807434, 0.055399663746356964, -0.302854061126709, 0.43057674169540405, 0.23268863558769226, 0.03045281209051609, -0.1031254306435585, -0.4151986837387085, -0.2457076758146286, 0.07949838787317276, -0.16264617443084717, 0.2742976248264313, -0.06324520707130432, 0.37348097562789917, 0.06517969816923141, 0.33388304710388184, -0.12835676968097687, 0.035248711705207825, 0.0676703006029129, 0.41447997093200684, -0.1857173889875412, -0.06400392949581146, 0.028461098670959473, 0.5671868920326233, -0.07031914591789246, -0.41272374987602234, 0.375357985496521, -0.11110451817512512, 0.003415413200855255, 0.2319038063287735, 0.12657736241817474, 0.06765380501747131, -0.21158280968666077, 0.2716365456581116, -0.21877826750278473, 0.1533116102218628, -0.14470991492271423, 0.12117347866296768, 0.02877715229988098, -0.09597338736057281, -0.19971832633018494, -0.19628944993019104, 0.3393843472003937, -0.13018709421157837, 0.22962641716003418, 0.11530378460884094, 0.08237636089324951, 0.1041032150387764, -0.055495768785476685, 0.25011131167411804, 0.036160051822662354, -0.46841755509376526, -0.05686041712760925, 0.00016441888874396682, 0.12684759497642517, -0.0011091381311416626, -0.27920058369636536, -0.3743989169597626, -0.19566218554973602, -0.12798233330249786, 0.5047439336776733, 0.02342100813984871, 0.14050430059432983, -0.43658682703971863, 0.2666720747947693, 0.19135746359825134, 0.02094329707324505, -0.23519399762153625, 0.11796443909406662, 0.40222588181495667, -0.3174345791339874, 0.2347787320613861, 0.2826935946941376, 0.14258219301700592, -0.22836661338806152, -0.14817845821380615, 0.26919981837272644, 0.3289661705493927, -0.3923662006855011, -0.23721317946910858, -0.24529127776622772 ]
https://github.com/huggingface/datasets/issues/2161
any possibility to download part of large datasets only?
We'll work on dataset streaming soon. This should allow you to only load the examples you need ;)
Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
18
any possibility to download part of large datasets only? Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks We'll work on dataset streaming soon. This should allow you to only load the examples you need ;)
[ -0.4160080850124359, -0.4227997362613678, -0.091212198138237, 0.22108852863311768, 0.11789212375879288, 0.20861417055130005, -0.21589182317256927, 0.3746378719806671, 0.10753139853477478, 0.3137335181236267, -0.2778739333152771, -0.22648507356643677, -0.09712009131908417, 0.3623841404914856, 0.2786150872707367, -0.13797996938228607, -0.13105621933937073, 0.24092607200145721, -0.19593405723571777, -0.13605836033821106, 0.03519512712955475, -0.3711942136287689, -0.15575170516967773, -0.2762486934661865, 0.1072826087474823, 0.0065378788858652115, -0.0016218237578868866, -0.15280231833457947, -0.32164567708969116, 0.17493529617786407, 0.1286831796169281, 0.09494218230247498, 0.29683658480644226, 0.02253139764070511, -0.00011449410521890968, -0.30126938223838806, 0.3300119638442993, -0.20182792842388153, -0.20408011972904205, -0.0629982203245163, -0.32631754875183105, 0.16331742703914642, -0.22837039828300476, -0.2755311131477356, 0.05554880201816559, 0.15588966012001038, 0.15598225593566895, -0.021303564310073853, 0.32706326246261597, 0.12922103703022003, 0.1475345492362976, 0.052724339067935944, -0.1914350539445877, -0.07623842358589172, 0.2807134687900543, 0.1402222216129303, 0.0194405410438776, 0.05669565498828888, 0.6661754846572876, 0.30042192339897156, 0.10561960935592651, 0.08313079178333282, 0.011873124167323112, 0.1913023144006729, -0.09425287693738937, -0.3307492733001709, -0.19417932629585266, -0.6230320930480957, 0.2782782316207886, 0.8252425193786621, 0.6387522220611572, 0.09393461048603058, -0.17607711255550385, -0.2948753833770752, 0.1539803445339203, -0.15872400999069214, -0.24630743265151978, 0.6292661428451538, -0.32679393887519836, 0.1728770136833191, -0.540204644203186, -0.23258820176124573, -0.18659140169620514, 0.25564587116241455, -0.21712836623191833, 0.08822538703680038, -0.07901574671268463, -0.03919117897748947, 0.31439462304115295, -0.037739016115665436, 0.31118044257164, -0.09386289119720459, -0.22397810220718384, 0.18005779385566711, -0.23691095411777496, -0.3743756413459778, -0.3241959512233734, 0.34732648730278015, 0.3826083540916443, 0.14675019681453705, 0.22073213756084442, 0.1960914134979248, 0.06985918432474136, 0.026721114292740822, 0.42401787638664246, -0.17316396534442902, -0.2814108431339264, 0.20351366698741913, 0.2531689405441284, 0.0371992401778698, 0.04587709531188011, -0.03510821610689163, -0.19920001924037933, 0.26057496666908264, -0.5001298785209656, -0.020025867968797684, -0.30184876918792725, -0.4213239848613739, -0.014969292096793652, -0.2645726501941681, 0.11187577992677689, 0.1028684750199318, -0.07452212274074554, 0.17718660831451416, -0.006078715436160564, 0.2028249204158783, -0.3606562614440918, 0.031138768419623375, 0.07468005269765854, -0.5046665072441101, -0.09341883659362793, -0.006317766383290291, 0.04336797818541527, 0.04934360086917877, 0.37721192836761475, -0.2916145920753479, 0.3798224925994873, -0.13538317382335663, 0.2860985994338989, 0.12165483832359314, -0.023139264434576035, -0.1652131825685501, -0.05646256357431412, 0.13201646506786346, 0.1193651556968689, 0.19572106003761292, -0.07567305862903595, 0.4238191843032837, -0.10837506502866745, 0.3343411087989807, -0.12002188712358475, -0.26653432846069336, 0.14576630294322968, 0.11892285943031311, -0.386033296585083, -0.08082529902458191, -0.5248146057128906, 0.24879205226898193, -0.19130238890647888, -0.030138548463582993, 0.010198906064033508, 0.06028950214385986, -0.06744074076414108, -0.06655027717351913, 0.2375759482383728, 0.09335605800151825, -0.22845777869224548, -0.07916129380464554, -0.1545649617910385, -0.12236756086349487, 0.3714398443698883, 0.2702900767326355, -0.27216410636901855, -0.2225675880908966, -0.14371587336063385, -0.2053646743297577, 0.2452467828989029, 0.053223129361867905, -0.4416378140449524, 0.4437437653541565, 0.07188715040683746, -0.07789257913827896, 0.00958321988582611, 0.18845224380493164, 0.6336511373519897, 0.07954800128936768, -0.26566311717033386, 0.6198099255561829, -0.12949344515800476, 0.10185537487268448, -0.04974925145506859, -0.2907519042491913, -0.1316675841808319, 0.2972228527069092, 0.24757468700408936, 0.39142346382141113, 0.1908111572265625, 0.014092759229242802, 0.3742016851902008, -0.20352131128311157, 0.2755429744720459, 0.14889012277126312, 0.10480459034442902, -0.12195537984371185, -0.10441908240318298, -0.3329707384109497, -0.24559664726257324, 0.201915442943573, 0.1670384407043457, -0.5572572350502014, 0.3659932613372803, -0.14571285247802734, 0.036295607686042786, -0.3327442407608032, 0.3766084909439087, 0.01406397670507431, -0.10433545708656311, -0.3237968981266022, 0.3023698627948761, -0.24434183537960052, -0.3178134262561798, -0.0696163922548294, -0.14883099496364594, 0.07942736148834229, 0.0792408287525177, 0.11608186364173889, 0.4168473780155182, 0.17950646579265594, 0.27770939469337463, -0.3217896819114685, -0.012096770107746124, -0.06773203611373901, 0.018138162791728973, 0.17624545097351074, 0.0013726935721933842, 0.22478139400482178, 0.11530952900648117, -0.01371835172176361, 0.2783602178096771, -0.1971493363380432, 0.0457344651222229, 0.22556985914707184, 0.14722469449043274, -0.06835158914327621, -0.445011168718338, 0.3316783905029297, -0.23764978349208832, 0.17825008928775787, 0.12208981812000275, 0.01741744764149189, 0.272870272397995, -0.13688412308692932, 0.07630185782909393, 0.13500933349132538, 0.4504815936088562, 0.07661455869674683, 0.21617044508457184, -0.024760985746979713, -0.43268656730651855, -0.2301253378391266, -0.02112676575779915, -0.263864129781723, -0.27991509437561035, 0.21159619092941284, -0.4132232367992401, 0.08179521560668945, 0.18872371315956116, 0.20745621621608734, 0.08139438927173615, 0.23288390040397644, 0.34954896569252014, -0.08283168077468872, 0.6517189145088196, -0.16662892699241638, -0.007118053734302521, -0.0003747418522834778, -0.19143645465373993, -0.1143667921423912, 0.0506458505988121, -0.27676424384117126, -0.07606121152639389, 0.14374108612537384, 0.20275890827178955, 0.07625848054885864, -0.008608624339103699, -0.34007877111434937, -0.2441241294145584, -0.671440601348877, 0.07629642635583878, 0.15191951394081116, 0.057785600423812866, 0.0029212385416030884, 0.019378822296857834, 0.4107503890991211, -0.026435209438204765, -0.08683165162801743, -0.0315062440931797, 0.5220625996589661, -0.09510646015405655, 0.2493908554315567, -0.10788014531135559, -0.03658359497785568, 0.08660060167312622, 0.2252970039844513, 0.11216431111097336, 0.178757444024086, 0.24417561292648315, -0.023283787071704865, -0.08037971705198288, -0.3961848020553589, 0.01188177615404129, -0.03684666007757187, 0.309323787689209, -0.09593388438224792, -0.1772039532661438, 0.42339879274368286, -0.16103923320770264, -0.017416873946785927, -0.2303730994462967, -0.1522228717803955, -0.03417747840285301, 0.022478919476270676, 0.06358607113361359, 0.26885899901390076, -0.16999554634094238, 0.1525304913520813, -0.41890037059783936, -0.34680643677711487, 0.34615063667297363, 0.13414832949638367, 0.16333574056625366, -0.24186252057552338, -0.0921136811375618, -0.23228906095027924, -0.2644004225730896, -0.3277681767940521, 0.09475274384021759, -0.848811149597168, 0.4130100607872009, -0.14862781763076782, -0.35363706946372986, -0.030391806736588478, 0.06459054350852966, -0.2282584309577942, 0.5403366088867188, -0.35212814807891846, 0.17871405184268951, -0.20253142714500427, -0.1195930689573288, 0.10850249975919724, 0.03184117004275322, -0.23242902755737305, -0.7003283500671387, 0.00024244561791419983, 0.006947845220565796, 0.21227629482746124, -0.18713149428367615, 0.14141470193862915, 0.3855126202106476, -0.06121204048395157, 0.04523058608174324, 0.11331672966480255, 0.6742666363716125, 0.12444128096103668, 0.1787569224834442, 0.02965186908841133, 0.0931016355752945, -0.01704508438706398, 0.03976045548915863, 0.09374646842479706, 0.316990464925766, -0.07642607390880585, -0.18420183658599854, 0.17324501276016235, 0.07695551216602325, -0.2560744881629944, -0.3300915062427521, 0.05185813084244728, -0.11992344260215759, -0.12671779096126556, -0.053718775510787964, -0.1582232415676117, -0.004713304340839386, 0.14840641617774963, -0.020493194460868835, 0.06211589649319649, -0.2487460970878601, 0.04925941303372383, 0.02878355234861374, 0.39282938838005066, -0.016277911141514778, -0.46902570128440857, -0.02552938088774681, -0.3079204857349396, 0.07580524682998657, -0.09531454741954803, -0.10002622753381729, 0.05221040919423103, 0.10066390782594681, 0.0733553096652031, 0.2640865445137024, 0.39891183376312256, 0.015619423240423203, 0.12007707357406616, -0.1917637288570404, -0.19500263035297394, -0.19734816253185272, 0.0358571894466877, -0.03273143619298935, -0.013455986976623535, 0.2429586797952652, -0.11972078680992126, -0.3848584294319153, 0.2900086045265198, -0.017188601195812225, 0.4906192719936371, -0.06990796327590942, -0.13221842050552368, 0.18030211329460144, -0.04938005656003952, -0.2061174362897873, 0.211107537150383, -0.08405392616987228, -0.21461254358291626, -0.25394076108932495, -0.07844095677137375, -0.1251194179058075, 0.1815260648727417, 0.056097835302352905, -0.12422987818717957, 0.05188644677400589, 0.13461896777153015, 0.3988800644874573, 0.14095650613307953, 0.11785881221294403, 0.2378038913011551, 0.42540642619132996, 0.2991865575313568, -0.11554880440235138, 0.04551682248711586, -0.08364742249250412, -0.04756360501050949, 0.16422170400619507, 0.029494166374206543, 0.2476631999015808, 0.3052615821361542, 0.26230278611183167, -0.11501003056764603, 0.11118077486753464, -0.4343545436859131, -0.11983289569616318, -0.49448251724243164, -0.6160655617713928, 0.44473588466644287, 0.1657906174659729, 0.042318254709243774, 0.4265918731689453, -0.28242188692092896, 0.1392945796251297, -0.1379765272140503, -0.1551317274570465, 0.7866645455360413, -0.04466794431209564, 0.05662465840578079, -0.44204181432724, 0.08234544098377228, 0.4862217605113983, 0.08888065814971924, -0.015609130263328552, -0.1864544004201889, -0.5498295426368713, -0.1266832947731018, -0.1424374282360077, -0.13486012816429138, 0.19109578430652618, -0.05130467936396599, 0.3555558919906616, -0.10166534781455994, 0.25235486030578613, 0.09638892114162445, -0.0012903064489364624, -0.3779735863208771, -0.22042877972126007, 0.09481687098741531, 0.07605604082345963, -0.12148353457450867, 0.3061077296733856, -0.0015228381380438805, -0.007503174245357513, -0.04856432229280472, 0.09611360728740692, -0.1955920159816742, 0.20648831129074097, -0.3052038252353668, -0.14306290447711945, -0.30391496419906616, -0.1405453383922577, 0.11907856166362762, -0.01097431406378746, -0.17447499930858612, 0.17680798470973969, -0.3655036389827728, 0.2938465178012848, 0.2110072374343872, 0.10514716804027557, -0.019024021923542023, 0.19186563789844513, -0.2770027220249176, -0.02214762195944786, -0.05500376969575882, 0.32918667793273926, 0.040917523205280304, -0.11036904156208038, -0.11555719375610352, -0.0003946274518966675, 0.10254426300525665, 0.0863652154803276, -0.19629035890102386, 0.031589776277542114, 0.07390899956226349, -0.13510985672473907, 0.07883601635694504, 0.19676193594932556, -0.16102759540081024, 0.3221873939037323, 0.2844255566596985, -0.12053419649600983, -0.24114207923412323, 0.5982012748718262, 0.11750409007072449, -0.19304727017879486, 0.05672205239534378, -0.024208463728427887, -0.2109343558549881, -0.14595894515514374, 0.12434948235750198, -0.2360052615404129, -0.12719741463661194, -0.05546833202242851, -0.2937462031841278, 0.31602901220321655, -0.0912456214427948, -0.0532970167696476, 0.1353043168783188, -0.056268759071826935, -0.02296404354274273, -0.2877103090286255, -0.3725253641605377, 0.2079886943101883, -0.005392838269472122, 0.1750866025686264, -0.143055722117424, -0.03720654174685478, -0.06963196396827698, 0.2916398048400879, -0.20892085134983063, 0.3644319772720337, 0.13040967285633087, 0.2831200361251831, 0.2882477343082428, 0.3495226204395294, -0.24434804916381836, -0.06333523988723755, -0.032983049750328064, 0.21730980277061462, -0.028455190360546112, -0.13300031423568726, 0.0020380187779664993, 0.19847151637077332, 0.10894699394702911, -0.3337971568107605, 0.17632335424423218, -0.19005273282527924, -0.09902074933052063, 0.043345432728528976, 0.13894964754581451, -0.015924258157610893, 0.20526473224163055, -0.35310250520706177, 0.5082843899726868, -0.1798100471496582, -0.5356283187866211, 0.46202340722084045, -0.11716318130493164, 0.13063138723373413, -0.07615101337432861, 0.3220212161540985, 0.32108771800994873, -0.12241596728563309, -0.21003885567188263, -0.22300639748573303, 0.21277114748954773, -0.13889670372009277, 0.35445618629455566, 0.16684934496879578, 0.3332599401473999, 0.2461368590593338, 0.24451762437820435, 0.5342566967010498, -0.043365515768527985, 0.21968011558055878, 0.4412214756011963, 0.21130670607089996, -0.09479197859764099, 0.01315227709710598, -0.07139338552951813, 0.07317592948675156, -0.0042212530970573425, 0.06840166449546814, -0.09282857924699783, -0.33672040700912476, -0.1804697960615158, -0.3591630160808563, 0.17659564316272736, 0.2496609389781952, 0.22800174355506897, 0.7436217665672302, 0.20740409195423126, -0.2657703757286072, -0.32918304204940796, 0.2548861801624298, 0.1826937198638916, 0.26315736770629883, -0.042387329041957855, 0.32296890020370483, 0.17796924710273743, -0.0002194419503211975, 0.0075092613697052, -0.734724223613739, -0.12779945135116577, 0.5495402216911316, -0.08632802963256836, 0.16957828402519226, -0.07509851455688477, 0.026684768497943878, 0.1294780820608139, -0.12928663194179535, -0.16577516496181488, 0.24648380279541016, 0.2347249686717987, 0.044692400842905045, -0.09856726229190826, -0.288452684879303, -0.010883249342441559, 0.4674575626850128, 0.02649775519967079, -0.31207048892974854, 0.27909988164901733, 0.24821382761001587, 0.0383431538939476, -0.26548779010772705, -0.018595635890960693, 0.15214303135871887, 0.14600341022014618, -0.41912779211997986, -0.12243808060884476, -0.03345538675785065, 0.0014858990907669067, 0.4145694077014923, 0.07359708845615387, -0.17405357956886292, 0.06901312619447708, 0.2184702455997467, 0.05765325948596001, 0.2066495269536972, 0.07223546504974365, -0.10619724541902542, 0.005466599017381668, 0.3811661899089813, -0.017997659742832184, 0.38229385018348694, 0.06616578251123428, -0.11204598844051361, 0.23473694920539856, -0.1527879387140274, -0.18837225437164307, -0.43210768699645996, -0.2551422417163849, 0.1460385024547577, 0.05448099225759506, -0.07767027616500854, -0.15922564268112183, -0.0845690667629242, 0.19610877335071564, -0.27168163657188416, -0.3965243697166443, 0.16756856441497803, 0.33518195152282715, 0.027568697929382324, -0.2927803695201874, 0.378639817237854, 0.2864265739917755, 0.15047253668308258, -0.23016642034053802, -0.5346700549125671, -0.1499333679676056, 0.01947445422410965, -0.2891177833080292, 0.3038632571697235, 0.054650936275720596, 0.1894908994436264, 0.01816953718662262, 0.20779655873775482, -0.23922036588191986, 0.193141371011734, -0.11284800618886948, 0.4548947215080261, -0.14576846361160278, -0.1725868135690689, -0.04973442107439041, 0.5787015557289124, -0.12782898545265198, -0.400983065366745, 0.35745030641555786, -0.04561876133084297, -0.023870736360549927, 0.27803194522857666, 0.04568569362163544, 0.0740414410829544, -0.22558236122131348, 0.12810981273651123, -0.18695665895938873, 0.299469530582428, -0.05364739149808884, 0.12349528819322586, 0.03354186564683914, -0.1741551160812378, -0.1832641214132309, -0.03155253082513809, 0.19471198320388794, -0.050250500440597534, 0.10122661292552948, 0.16534359753131866, 0.04384893178939819, 0.0073732901364564896, -0.10482726991176605, 0.23652704060077667, -0.13007745146751404, -0.48231977224349976, -0.18680676817893982, 0.18125268816947937, 0.18287695944309235, -0.04846494644880295, -0.38405323028564453, -0.35021480917930603, -0.1270211935043335, -0.05265326797962189, 0.5525503158569336, -0.13134029507637024, 0.16209538280963898, -0.41431960463523865, 0.32364150881767273, 0.23187649250030518, 0.16698384284973145, -0.1339515596628189, 0.1610235571861267, 0.4107992649078369, -0.34144774079322815, 0.2553165555000305, 0.16873206198215485, 0.20224598050117493, -0.18332894146442413, -0.12245413661003113, 0.17126938700675964, 0.2516169250011444, -0.4405367970466614, -0.2349565178155899, -0.3314545750617981 ]
https://github.com/huggingface/datasets/issues/2161
any possibility to download part of large datasets only?
thanks a lot Quentin, this would be really really a great feature to have On Wed, Apr 7, 2021 at 12:14 PM Quentin Lhoest ***@***.***> wrote: > We'll work on dataset streaming soon. This should allow you to only load > the examples you need ;) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2161#issuecomment-814791922>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMROD62QAKIJMAKWISTTHQWBVANCNFSM42IUI5JQ> > . >
Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
79
any possibility to download part of large datasets only? Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks thanks a lot Quentin, this would be really really a great feature to have On Wed, Apr 7, 2021 at 12:14 PM Quentin Lhoest ***@***.***> wrote: > We'll work on dataset streaming soon. This should allow you to only load > the examples you need ;) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2161#issuecomment-814791922>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMROD62QAKIJMAKWISTTHQWBVANCNFSM42IUI5JQ> > . >
[ -0.43335679173469543, -0.45348748564720154, -0.04873265326023102, 0.26677602529525757, 0.10812900960445404, 0.24318048357963562, -0.16233579814434052, 0.46737661957740784, 0.07347486913204193, 0.3738209009170532, -0.3642459213733673, -0.20177610218524933, -0.09591194242238998, 0.45779144763946533, 0.3195570707321167, -0.1472725123167038, -0.13571932911872864, 0.21948197484016418, -0.22383666038513184, -0.1688055396080017, 0.017404232174158096, -0.25931721925735474, -0.11237673461437225, -0.25326257944107056, 0.03506424278020859, 0.08985394984483719, -0.061715018004179, -0.08444967120885849, -0.3761279284954071, 0.17010344564914703, 0.19839590787887573, 0.21408545970916748, 0.23669633269309998, -0.004821605980396271, -0.00011845341941807419, -0.2889575958251953, 0.2554898262023926, -0.14321203529834747, -0.18646907806396484, -0.0577484667301178, -0.18172448873519897, 0.10636811703443527, -0.23725366592407227, -0.2628685534000397, -0.009160442277789116, 0.13481749594211578, 0.06906693428754807, -0.021883320063352585, 0.3579900562763214, 0.034551169723272324, 0.11371412873268127, 0.10120419412851334, -0.1499209851026535, -0.10758104920387268, 0.2725982964038849, 0.1650015115737915, -0.02922789752483368, 0.060077015310525894, 0.5326680541038513, 0.26699313521385193, 0.1294613480567932, 0.11736695468425751, -0.0027753710746765137, 0.28348755836486816, -0.09073413163423538, -0.18941183388233185, -0.26409459114074707, -0.6127959489822388, 0.21040338277816772, 0.8935748934745789, 0.5572634339332581, 0.0032647401094436646, -0.23654888570308685, -0.40163934230804443, 0.13027895987033844, -0.3426573574542999, -0.1672670841217041, 0.5966561436653137, -0.3093205690383911, 0.19207656383514404, -0.5190600156784058, -0.15758000314235687, -0.1254054605960846, 0.27230989933013916, -0.2245432287454605, -0.013928286731243134, -0.17685051262378693, -0.04589029401540756, 0.4784289300441742, -0.0008329898118972778, 0.1448497623205185, -0.04732782393693924, -0.18770486116409302, 0.2302684783935547, -0.21431438624858856, -0.4565869867801666, -0.21577000617980957, 0.2906160056591034, 0.5468571782112122, 0.24758675694465637, 0.08481848984956741, 0.14895768463611603, -0.017102237790822983, -0.06353944540023804, 0.49155402183532715, -0.21489077806472778, -0.280032217502594, 0.18189361691474915, 0.3234028220176697, 0.08305056393146515, 0.11061321198940277, -0.03765808790922165, -0.08445451408624649, 0.2453264743089676, -0.5971104502677917, -0.012254253029823303, -0.22035713493824005, -0.44160550832748413, 0.03250887244939804, -0.2539960741996765, 0.13853353261947632, 0.11375577747821808, -0.06862524151802063, 0.16529902815818787, 0.022754166275262833, 0.15924030542373657, -0.34008878469467163, 0.07052324712276459, -0.003873514011502266, -0.4409328103065491, -0.1329127997159958, -0.04322351887822151, 0.07125604152679443, 0.12385345995426178, 0.40136900544166565, -0.3420197665691376, 0.31700605154037476, -0.10577725619077682, 0.3391905426979065, 0.13961684703826904, -0.11072014272212982, -0.15961362421512604, -0.08811270445585251, 0.15613189339637756, 0.01690063253045082, 0.2920123040676117, -0.05512555316090584, 0.4835696220397949, -0.164366215467453, 0.2821948528289795, -0.16101416945457458, -0.24017088115215302, 0.14690431952476501, 0.04072359949350357, -0.3738722801208496, -0.061870865523815155, -0.5082558393478394, 0.35867175459861755, -0.16991880536079407, 0.018191512674093246, -0.018989920616149902, 0.16380806267261505, -0.21602243185043335, -0.0025570106226950884, 0.23222458362579346, 0.2576269507408142, -0.2118474841117859, -0.17525175213813782, -0.13129141926765442, -0.13958606123924255, 0.3125015199184418, 0.37739297747612, -0.2835659384727478, -0.22011539340019226, -0.22155576944351196, -0.060691386461257935, 0.19191551208496094, 0.045482877641916275, -0.4724434018135071, 0.36157262325286865, 0.009988538920879364, -0.030708592385053635, 0.047857023775577545, 0.1477382779121399, 0.6136125326156616, 0.030196616426110268, -0.16792072355747223, 0.5325429439544678, -0.08927105367183685, 0.08089347928762436, -0.04964905604720116, -0.3678530156612396, -0.15795662999153137, 0.275512158870697, 0.19511637091636658, 0.41642317175865173, 0.17270678281784058, -0.04025929793715477, 0.44300293922424316, -0.22019237279891968, 0.336823046207428, 0.18188142776489258, 0.16134217381477356, -0.08471773564815521, -0.1551969051361084, -0.4076613187789917, -0.296469122171402, 0.2118469476699829, 0.13212177157402039, -0.4998217821121216, 0.3217768669128418, -0.214811772108078, 0.039530880749225616, -0.32109928131103516, 0.40845781564712524, 0.005683764815330505, -0.15029633045196533, -0.3171791732311249, 0.3548719584941864, -0.15464486181735992, -0.3655126988887787, -0.07561574131250381, -0.11117348819971085, 0.14782798290252686, 0.0036147814244031906, 0.13950692117214203, 0.42772847414016724, 0.18419384956359863, 0.26959556341171265, -0.20783731341362, 0.012255813926458359, -0.1331464648246765, 0.04298596456646919, 0.14402300119400024, -0.024518685415387154, 0.13656166195869446, 0.09352853894233704, 0.08263499289751053, 0.32566094398498535, -0.07348461449146271, 0.010441029444336891, 0.08947703242301941, 0.10807837545871735, -0.04582243412733078, -0.49311432242393494, 0.43465912342071533, -0.2044019103050232, 0.1076001226902008, 0.05495177209377289, 0.046964921057224274, 0.27665385603904724, -0.1762055605649948, 0.05486273020505905, 0.05129842460155487, 0.47075706720352173, 0.008686519227921963, 0.18125703930854797, -0.049872025847435, -0.4779137074947357, -0.1523171365261078, 0.09505388140678406, -0.1897297501564026, -0.28675395250320435, 0.2613024115562439, -0.3662056624889374, 0.16682523488998413, 0.13730967044830322, 0.14990012347698212, 0.16335836052894592, 0.19199742376804352, 0.3767032027244568, -0.062453992664813995, 0.6231997013092041, -0.1187390387058258, -0.05564374476671219, -0.04441843181848526, -0.2490232139825821, -0.020435430109500885, 0.0649901032447815, -0.19890053570270538, -0.133872389793396, 0.17656108736991882, 0.19892624020576477, 0.11943912506103516, -0.030328819528222084, -0.34018474817276, -0.31561052799224854, -0.5664634704589844, 0.0017029941082000732, 0.1305921971797943, -0.030943796038627625, 0.00812801904976368, 0.07660089433193207, 0.4942076802253723, -0.08506235480308533, -0.12241170555353165, 0.01925865188241005, 0.5008317232131958, -0.11210788786411285, 0.21830108761787415, -0.13506779074668884, 0.026211751624941826, 0.17692750692367554, 0.17613469064235687, 0.09954138845205307, 0.15481480956077576, 0.2831909954547882, 0.009690837934613228, -0.1914438158273697, -0.4029521942138672, -0.01660480722784996, 0.045612383633852005, 0.19629505276679993, -0.044983454048633575, -0.09822101891040802, 0.39289313554763794, -0.12757861614227295, 0.0537223219871521, -0.15555277466773987, -0.14461645483970642, -0.13668902218341827, -0.016434265300631523, 0.05685024335980415, 0.30714115500450134, -0.2456604391336441, 0.12281891703605652, -0.3954453468322754, -0.3361864686012268, 0.5191752910614014, 0.20374959707260132, 0.13332581520080566, -0.1553136557340622, -0.12507639825344086, -0.19315993785858154, -0.37794044613838196, -0.35205668210983276, -0.006736244075000286, -0.8144292235374451, 0.36075055599212646, -0.12280718237161636, -0.3429988622665405, -0.09613227844238281, 0.040607526898384094, -0.2655556797981262, 0.4734802842140198, -0.4235662817955017, -0.007928594015538692, -0.24729155004024506, 0.02603597566485405, 0.13074252009391785, 0.06013330817222595, -0.09148305654525757, -0.7272817492485046, 0.01362532190978527, 0.04739286005496979, 0.09974066913127899, -0.16940253973007202, 0.18865200877189636, 0.3197813630104065, -0.0790269672870636, 0.0955645889043808, 0.060027796775102615, 0.7942323088645935, 0.20016996562480927, 0.23779071867465973, 0.025389887392520905, 0.009483514353632927, 0.10832160711288452, -0.08966886252164841, 0.02208727039396763, 0.31233087182044983, -0.08652891218662262, -0.12792909145355225, 0.1711137890815735, 0.09050112217664719, -0.1765899360179901, -0.28944265842437744, 0.11262097954750061, -0.06480251252651215, -0.22976863384246826, -0.08533032983541489, -0.03608894348144531, -0.048670694231987, 0.17731790244579315, -0.045042626559734344, 0.10113820433616638, -0.2055663764476776, 0.07687985897064209, 0.10304544866085052, 0.42612287402153015, -0.0032630176283419132, -0.5111988186836243, 0.025601480156183243, -0.4151404798030853, 0.029855579137802124, -0.10081648081541061, -0.17545844614505768, 0.0461762361228466, 0.10455179959535599, 0.14553676545619965, 0.2749376893043518, 0.6094440817832947, 0.12873536348342896, 0.07857778668403625, -0.19023029506206512, -0.3172524869441986, -0.18194147944450378, 0.07371260225772858, -0.006906084716320038, -0.053848281502723694, 0.22349099814891815, -0.036224812269210815, -0.4989299476146698, 0.21833091974258423, 0.11016690731048584, 0.4760243892669678, -0.08095920085906982, -0.12449626624584198, 0.13410095870494843, -0.08018911629915237, -0.3476266860961914, 0.2703021764755249, -0.0027729403227567673, -0.14743399620056152, -0.2224276214838028, -0.10434775054454803, -0.07866359502077103, 0.13698872923851013, -0.043347448110580444, -0.13676729798316956, 0.06292065232992172, 0.1720433384180069, 0.5014218091964722, 0.24240358173847198, 0.052743248641490936, 0.19367164373397827, 0.5433934926986694, 0.2950323224067688, -0.1828610599040985, -0.03814312070608139, -0.048464152961969376, -0.06363337486982346, 0.2625686526298523, -0.002588929608464241, 0.32133427262306213, 0.3059742748737335, 0.23162199556827545, -0.19258011877536774, 0.07937048375606537, -0.3739941716194153, -0.08208944648504257, -0.47092312574386597, -0.5614632368087769, 0.44754502177238464, 0.20287857949733734, 0.10621654987335205, 0.4346657693386078, -0.17954833805561066, 0.19824162125587463, -0.1883298009634018, -0.21632331609725952, 0.8998518586158752, -0.09033384919166565, 0.16447651386260986, -0.40761077404022217, 0.1434992551803589, 0.5279058814048767, 0.08857743442058563, 0.0377226248383522, -0.2836924195289612, -0.4837169051170349, -0.10546013712882996, -0.11520400643348694, -0.13061100244522095, 0.16322067379951477, 0.01448364183306694, 0.308094322681427, -0.013622969388961792, 0.23557895421981812, -0.10818390548229218, -0.05060410499572754, -0.32401594519615173, -0.29658445715904236, 0.03360512852668762, 0.04323800653219223, -0.053807713091373444, 0.4086197018623352, 0.048738993704319, -0.009885409846901894, -0.036771416664123535, -0.0023937374353408813, -0.26056280732154846, 0.11736803501844406, -0.3374474048614502, -0.16537944972515106, -0.17363928258419037, -0.1403455138206482, 0.08178164064884186, -0.06439852714538574, -0.06800836324691772, 0.22430305182933807, -0.41721948981285095, 0.19501306116580963, 0.08757926523685455, 0.048680443316698074, -0.028987476602196693, 0.1295095533132553, -0.2384096384048462, -0.016543861478567123, -0.027200013399124146, 0.2514556646347046, 0.08220142126083374, -0.18096280097961426, -0.05130470544099808, 0.027266085147857666, 0.06845352798700333, 0.003461170010268688, -0.15998663008213043, 0.0955803319811821, 0.14556004106998444, -0.17361176013946533, 0.029726482927799225, 0.23404912650585175, -0.2063104659318924, 0.2809704840183258, 0.20660769939422607, -0.08707587420940399, -0.23320402204990387, 0.6446017026901245, 0.05929049104452133, -0.11786194890737534, 0.05742861330509186, 0.033147964626550674, -0.19507870078086853, -0.15739598870277405, 0.03826283663511276, -0.2670312821865082, -0.2920297086238861, 0.08269444108009338, -0.15291093289852142, 0.3014318346977234, -0.1664445996284485, 0.08020827919244766, 0.12900596857070923, -0.08194484561681747, -0.01285184919834137, -0.2683207392692566, -0.37310996651649475, 0.17802336812019348, -0.0694722980260849, 0.258463054895401, -0.06438471376895905, 0.08845284581184387, -0.15602946281433105, 0.2733319103717804, -0.18313974142074585, 0.3751688599586487, 0.0650060772895813, 0.2167409062385559, 0.4075687825679779, 0.28547388315200806, -0.11377490311861038, -0.05648716911673546, -0.07383767515420914, 0.3291240334510803, -0.10990607738494873, -0.1135166585445404, -0.06403164565563202, 0.19949589669704437, 0.07892487198114395, -0.318459689617157, 0.3013942241668701, -0.07497747987508774, -0.17523923516273499, -0.016212092712521553, 0.2714846730232239, 0.07364483177661896, 0.28127506375312805, -0.3258123993873596, 0.48922374844551086, -0.15731418132781982, -0.5090848207473755, 0.5505740642547607, -0.09869763255119324, 0.10004771500825882, -0.049487173557281494, 0.308248370885849, 0.13025934994220734, -0.07716818898916245, -0.18665990233421326, -0.2183677852153778, 0.22845599055290222, -0.1828160285949707, 0.3463938236236572, 0.16962844133377075, 0.22446194291114807, 0.3715803027153015, 0.32639291882514954, 0.4821111559867859, -0.06765501201152802, 0.2630612552165985, 0.4612114429473877, 0.1509508490562439, -0.14445459842681885, 0.006238664500415325, -0.024389438331127167, 0.05592379719018936, 0.03690556809306145, 0.09735521674156189, -0.02701982669532299, -0.2763558626174927, -0.11155489087104797, -0.3886425495147705, 0.13203415274620056, 0.2663978934288025, 0.23233245313167572, 0.7065253257751465, 0.16356082260608673, -0.23930297791957855, -0.15098077058792114, 0.25234347581863403, 0.1701166331768036, 0.25355449318885803, -0.10033177584409714, 0.16286033391952515, 0.030978646129369736, -0.0316493920981884, -0.05845583230257034, -0.806546151638031, -0.019151944667100906, 0.5419057011604309, -0.03797373175621033, 0.1781443953514099, -0.15306325256824493, 0.18853455781936646, 0.02504277229309082, -0.10179043561220169, -0.20430338382720947, 0.37601184844970703, 0.24793431162834167, -0.05192631855607033, 0.024659637361764908, -0.259554922580719, 0.020593062043190002, 0.5150589942932129, 0.0020621605217456818, -0.3844749927520752, 0.3281678557395935, 0.17264071106910706, 0.020828813314437866, -0.3904663026332855, -0.09018947184085846, 0.1719796359539032, 0.18829502165317535, -0.3696434199810028, -0.1327730119228363, -0.07433024048805237, 0.004708863794803619, 0.4083341360092163, 0.1221458911895752, -0.19738319516181946, -0.08008939772844315, 0.31716838479042053, 0.07335031777620316, 0.11802981793880463, 0.1058226078748703, -0.11256582289934158, 0.05900819972157478, 0.25828492641448975, 0.029445292428135872, 0.45606091618537903, 0.005761804059147835, -0.09179128706455231, 0.1343684047460556, -0.17613893747329712, -0.12729470431804657, -0.5407750010490417, -0.20457234978675842, 0.12287459522485733, 0.05780075490474701, -0.1624273955821991, -0.16065967082977295, 0.011819444596767426, 0.09229736775159836, -0.2890811860561371, -0.37727370858192444, 0.1872643530368805, 0.3017646372318268, 0.00849125161767006, -0.2976926565170288, 0.3288998603820801, 0.33524686098098755, 0.04068294167518616, -0.23484839498996735, -0.40917080640792847, -0.16029025614261627, 0.004114657640457153, -0.2967251241207123, 0.30393123626708984, 0.012066956609487534, 0.23427732288837433, 0.06127079576253891, 0.21363265812397003, -0.24685750901699066, 0.11883073300123215, 0.026254691183567047, 0.411754846572876, -0.11587512493133545, -0.17258910834789276, -0.11437004804611206, 0.4909884035587311, -0.08078590780496597, -0.37513238191604614, 0.3062756657600403, 0.040498681366443634, -0.09828706830739975, 0.25376826524734497, 0.15082311630249023, -0.03265094384551048, -0.28812992572784424, 0.1547318547964096, -0.10464577376842499, 0.20126217603683472, -0.02960633486509323, 0.032739847898483276, -0.06946918368339539, -0.1801566481590271, -0.3215430676937103, -0.08716536313295364, 0.12650038301944733, 0.023267362266778946, 0.0851307213306427, 0.10312022268772125, -0.018384719267487526, 0.0764908492565155, -0.006339848041534424, 0.21281424164772034, -0.09353609383106232, -0.33864861726760864, -0.14269639551639557, 0.16227209568023682, 0.17842163145542145, 0.04366852715611458, -0.3368486166000366, -0.2921508252620697, -0.08951141685247421, -0.13959011435508728, 0.6184892654418945, -0.1524663269519806, 0.194783017039299, -0.399002343416214, 0.35057497024536133, 0.25272056460380554, 0.012109660543501377, -0.2960345447063446, 0.14545169472694397, 0.34030094742774963, -0.30480775237083435, 0.23260203003883362, 0.26218390464782715, 0.07207544893026352, -0.23932360112667084, -0.11054648458957672, 0.3002930283546448, 0.32262516021728516, -0.43344518542289734, -0.10088667273521423, -0.30000394582748413 ]
https://github.com/huggingface/datasets/issues/2161
any possibility to download part of large datasets only?
Is streaming completed? On the 1.8.0 docs it is mentioned (https://huggingface.co/docs/datasets/dataset_streaming.html), but when following the example I get the following error: ``` >>> dataset2 = load_dataset("amazon_us_reviews", "Pet_Products_v1_00", split='train', streaming=True) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-21-1eedab26cff1> in <module>() ----> 1 en_dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) 3 frames /usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs) 339 if value is not None: 340 if not hasattr(builder_config, key): --> 341 raise ValueError(f"BuilderConfig {builder_config} doesn't have a '{key}' key.") 342 setattr(builder_config, key, value) 343 ValueError: BuilderConfig OscarConfig(name='unshuffled_deduplicated_en', version=1.0.0, data_dir=None, data_files=None, description='Unshuffled and deduplicated, English OSCAR dataset') doesn't have a 'streaming' key. ``` UPDATE: Managed to get streaming working by building from source and installing the additional `datasets[streaming]` package: ``` !pip install git+https://github.com/huggingface/datasets.git !pip install datasets[streaming] ```
Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
123
any possibility to download part of large datasets only? Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks Is streaming completed? On the 1.8.0 docs it is mentioned (https://huggingface.co/docs/datasets/dataset_streaming.html), but when following the example I get the following error: ``` >>> dataset2 = load_dataset("amazon_us_reviews", "Pet_Products_v1_00", split='train', streaming=True) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-21-1eedab26cff1> in <module>() ----> 1 en_dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) 3 frames /usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs) 339 if value is not None: 340 if not hasattr(builder_config, key): --> 341 raise ValueError(f"BuilderConfig {builder_config} doesn't have a '{key}' key.") 342 setattr(builder_config, key, value) 343 ValueError: BuilderConfig OscarConfig(name='unshuffled_deduplicated_en', version=1.0.0, data_dir=None, data_files=None, description='Unshuffled and deduplicated, English OSCAR dataset') doesn't have a 'streaming' key. ``` UPDATE: Managed to get streaming working by building from source and installing the additional `datasets[streaming]` package: ``` !pip install git+https://github.com/huggingface/datasets.git !pip install datasets[streaming] ```
[ -0.4476092755794525, -0.3885074257850647, 0.009524688124656677, 0.3701239228248596, 0.1067446917295456, 0.19297054409980774, -0.03403494879603386, 0.5148776769638062, 0.08198735117912292, 0.23246878385543823, -0.4534534811973572, -0.19906364381313324, -0.1784168928861618, 0.40002313256263733, 0.32543131709098816, -0.17044977843761444, -0.11519605666399002, 0.1878737509250641, -0.08839792013168335, -0.17645537853240967, -0.0659908652305603, -0.06619977205991745, -0.16015462577342987, -0.1373351514339447, 0.08786839246749878, -0.01279371790587902, -0.00026009976863861084, -0.06068938970565796, -0.39527788758277893, -0.04828962683677673, 0.27918997406959534, 0.18990734219551086, 0.1114024817943573, 0.13634562492370605, -0.0001268418418476358, -0.16900502145290375, 0.3633391261100769, -0.16904525458812714, -0.3607495129108429, -0.18974797427654266, -0.17678865790367126, 0.08645641058683395, -0.02588912844657898, -0.19680622220039368, 0.0642867311835289, 0.05366537719964981, 0.019607406109571457, -0.02021215483546257, 0.4206509590148926, 0.07902728021144867, 0.07566117495298386, 0.2862718105316162, 0.1064426600933075, 0.10840705782175064, 0.18967115879058838, 0.18961645662784576, 0.042421646416187286, 0.17440135776996613, 0.26369959115982056, 0.2539021074771881, 0.05447807163000107, 0.2674317955970764, 0.02589663676917553, 0.312210351228714, 0.04941066354513168, -0.18325018882751465, -0.18268197774887085, -0.6686458587646484, 0.15874087810516357, 0.6345418095588684, 0.2820594906806946, -0.017611339688301086, -0.5097762942314148, -0.4816659390926361, 0.12849123775959015, -0.6643285751342773, -0.06808807700872421, 0.6299391388893127, -0.43620938062667847, 0.05158670246601105, -0.6224964261054993, -0.25770485401153564, -0.20824271440505981, 0.304395854473114, -0.1951342523097992, 0.1637154370546341, -0.21235023438930511, 0.13191911578178406, 0.26448723673820496, -0.010098818689584732, 0.09591956436634064, -0.23200014233589172, -0.04899672046303749, 0.36511826515197754, -0.1721380054950714, -0.323067843914032, -0.13007637858390808, 0.2823478877544403, 0.3912603259086609, 0.29195886850357056, -0.017113815993070602, 0.1264035999774933, 0.13186323642730713, -0.08209561556577682, 0.5853522419929504, -0.10748958587646484, -0.33326342701911926, 0.2814320921897888, 0.31892484426498413, 0.32651200890541077, 0.13559140264987946, -0.08955109864473343, -0.12136127799749374, 0.25518766045570374, -0.36150211095809937, -0.06698969751596451, 0.06411504000425339, -0.34080761671066284, -0.04593900591135025, -0.12804868817329407, 0.0305279940366745, -0.08644664287567139, 0.000025289133191108704, 0.22668200731277466, -0.0999818742275238, 0.24173429608345032, -0.22761927545070648, 0.06287774443626404, -0.0823989063501358, -0.2827226221561432, -0.09529950469732285, 0.0019262544810771942, 0.10598994791507721, 0.12427067756652832, 0.2675987780094147, -0.5731204152107239, 0.38853350281715393, -0.11377311497926712, 0.5026564598083496, 0.09646843373775482, -0.15547813475131989, -0.16048982739448547, 0.038918666541576385, 0.3139607608318329, 0.06505155563354492, 0.4057742655277252, 0.012490134686231613, 0.25475144386291504, -0.20024949312210083, 0.22391393780708313, -0.10989478975534439, -0.4199579060077667, 0.012407395988702774, 0.005358726251870394, -0.3765230178833008, -0.0404929518699646, -0.39703869819641113, 0.283844918012619, 0.028533414006233215, 0.10679519176483154, -0.06249336153268814, 0.11745235323905945, -0.09114371985197067, -0.02638976089656353, 0.37071508169174194, 0.34943413734436035, -0.09239185601472855, -0.20543748140335083, -0.15739966928958893, -0.07376633584499359, 0.2902516722679138, 0.44228237867355347, -0.30341777205467224, -0.1268008053302765, -0.2115473449230194, -0.25985485315322876, 0.3551356792449951, -0.08563470840454102, -0.35281237959861755, 0.38336488604545593, 0.1783616691827774, 0.15542788803577423, 0.14170418679714203, -0.01049109734594822, 0.64275062084198, 0.07842697203159332, 0.016719412058591843, 0.4966118335723877, -0.17280413210391998, -0.04365640506148338, -0.08874457329511642, -0.31991612911224365, -0.1930648386478424, 0.3292205035686493, 0.1675109714269638, 0.3437725901603699, -0.06550953537225723, 0.015857212245464325, 0.430468887090683, -0.09275239706039429, 0.44229236245155334, 0.1339256465435028, 0.223297581076622, 0.05173478275537491, -0.2251434475183487, -0.4198053777217865, -0.3900243043899536, 0.20230042934417725, 0.23021090030670166, -0.39736390113830566, 0.13226547837257385, -0.19382156431674957, -0.07035879790782928, -0.25236591696739197, 0.1331307739019394, -0.13788191974163055, -0.1556592881679535, -0.13282081484794617, 0.3140977621078491, -0.13433508574962616, -0.5509423613548279, -0.02449842356145382, -0.042094841599464417, 0.2612619400024414, -0.1101006418466568, 0.28218579292297363, 0.17815513908863068, -0.010213200934231281, 0.2728770673274994, -0.1592218577861786, -0.05083213001489639, -0.1912723034620285, -0.048191968351602554, 0.21640408039093018, -0.03732842206954956, 0.021638602018356323, -0.1655329465866089, 0.09648346900939941, 0.3940746784210205, -0.0028955191373825073, -0.028051884844899178, 0.15977032482624054, 0.09470207244157791, -0.05281612277030945, -0.2889882028102875, 0.589688777923584, -0.07937586307525635, 0.15611164271831512, 0.2797579765319824, 0.0629936009645462, 0.2583141624927521, 0.02459978684782982, -0.1124245822429657, -0.011121824383735657, 0.3463192880153656, -0.12931396067142487, 0.3581705391407013, -0.13276326656341553, -0.5335001945495605, -0.23083847761154175, 0.34534013271331787, -0.1733856350183487, -0.3991067111492157, 0.25807449221611023, -0.2973131537437439, 0.12247344106435776, 0.1615041345357895, 0.01037556305527687, 0.080376535654068, 0.11099112778902054, 0.3299809992313385, 0.05565842241048813, 0.450504869222641, -0.03249672055244446, 0.09743557125329971, 0.10505366325378418, -0.2600087821483612, 0.050579819828271866, 0.05766960605978966, -0.1339038461446762, -0.3236028254032135, -0.02941308543086052, 0.1493060439825058, 0.23425865173339844, -0.17115221917629242, -0.18212631344795227, -0.2360210120677948, -0.4625358283519745, -0.15647181868553162, -0.11586078256368637, -0.13088162243366241, -0.0992550402879715, -0.0840446949005127, 0.6108603477478027, 0.018610145896673203, 0.01074741967022419, -0.02535497024655342, 0.16569150984287262, 0.02543618716299534, 0.22909167408943176, -0.2243376523256302, 0.010529587976634502, 0.15500707924365997, 0.05687293782830238, 0.1393435150384903, -0.037501685321331024, 0.30748119950294495, -0.05997582525014877, -0.2525291442871094, -0.2569148540496826, -0.09061530232429504, 0.08302610367536545, 0.015033220872282982, -0.043983712792396545, 0.041710712015628815, 0.5142203569412231, -0.18079201877117157, -0.12340984493494034, 0.014885751530528069, -0.07610708475112915, -0.17660921812057495, -0.010460460558533669, -0.06917831301689148, 0.2297688126564026, -0.09461590647697449, 0.041985996067523956, -0.41502997279167175, -0.31445667147636414, 0.5148342847824097, 0.37652134895324707, 0.24716855585575104, 0.04150613397359848, -0.10720029473304749, -0.19119234383106232, -0.4565024673938751, -0.19222252070903778, 0.017526177689433098, -0.8641300797462463, 0.3706216812133789, -0.04801241308450699, -0.29785633087158203, 0.016930270940065384, 0.012265324592590332, -0.11070248484611511, 0.3640221357345581, -0.3850356936454773, 0.11719997972249985, -0.22120177745819092, 0.20639978349208832, 0.08811663091182709, 0.17451012134552002, 0.0010334253311157227, -0.5461443066596985, 0.10233327746391296, 0.09846767038106918, 0.01874847710132599, -0.25330299139022827, 0.2585524618625641, 0.28782132267951965, -0.11345427483320236, 0.3037968575954437, 0.010864950716495514, 1.048669457435608, 0.3577303886413574, 0.194234237074852, 0.11538606882095337, -0.014585675671696663, 0.18513309955596924, -0.1911918818950653, -0.14586177468299866, 0.34573858976364136, -0.07894717156887054, -0.06684499979019165, 0.10514677315950394, 0.041511572897434235, -0.1388581097126007, -0.39548060297966003, 0.24840328097343445, -0.04389117658138275, -0.252828985452652, -0.11722695827484131, -0.2193705141544342, 0.09959577023983002, 0.09064960479736328, 0.05423703044652939, 0.12590476870536804, -0.17675718665122986, -0.1605110466480255, 0.21121270954608917, 0.44977813959121704, 0.07694321125745773, -0.28067874908447266, -0.09418635815382004, -0.5484692454338074, -0.018381506204605103, -0.09681127220392227, 0.020768698304891586, 0.07167190313339233, 0.13695794343948364, 0.17761266231536865, 0.1999529004096985, 0.4251607656478882, 0.015051419846713543, -0.0851411372423172, -0.10038600862026215, -0.3912234902381897, -0.37929680943489075, -0.05833687633275986, -0.06163998693227768, 0.03257758542895317, 0.2290613055229187, 0.21590332686901093, -0.5989776253700256, 0.12835900485515594, 0.21327033638954163, 0.42959123849868774, -0.08556150645017624, -0.035985030233860016, -0.16128674149513245, -0.2517714202404022, -0.4768919348716736, 0.3392893970012665, -0.0018540024757385254, -0.008567393757402897, -0.13740384578704834, -0.1114349216222763, 0.06965004652738571, 0.20641416311264038, -0.03328254818916321, -0.07653777301311493, -0.05475278198719025, 0.16208726167678833, 0.5258147716522217, 0.20968925952911377, 0.1231713593006134, 0.15520833432674408, 0.5412434935569763, 0.29212063550949097, -0.3287694752216339, -0.12306759506464005, 0.13140244781970978, 0.03376349061727524, 0.2663983404636383, -0.07076238095760345, 0.2665623128414154, 0.4562004804611206, 0.21694901585578918, -0.05697806552052498, 0.043073620647192, -0.11177923530340195, -0.03144257515668869, -0.4366401731967926, -0.6649065017700195, 0.18338531255722046, 0.02895614132285118, 0.17199991643428802, 0.5021618604660034, -0.08935186266899109, 0.08722299337387085, -0.12498719990253448, -0.3470999300479889, 0.8403226733207703, 0.023059409111738205, 0.24638891220092773, -0.08385147899389267, -0.0915788859128952, 0.43627217411994934, 0.3076661229133606, 0.03024924173951149, -0.30094075202941895, -0.27916795015335083, -0.05449789762496948, -0.0897177904844284, 0.04757944494485855, 0.06085136905312538, 0.0047928765416145325, 0.4569302797317505, 0.023493990302085876, 0.44313377141952515, -0.1506613940000534, 0.09437905251979828, -0.3789505958557129, -0.28331053256988525, -0.19512951374053955, -0.0439591258764267, -0.2036372870206833, 0.5190582871437073, -0.02767886221408844, -0.05297423154115677, 0.09001396596431732, -0.10410121828317642, -0.26232585310935974, -0.030528198927640915, -0.3110877275466919, -0.0773405060172081, -0.1820988953113556, -0.3320746421813965, 0.04497981444001198, -0.20587989687919617, -0.18799148499965668, 0.05970385670661926, -0.2648638188838959, 0.1744457632303238, 0.07886014878749847, 0.05306831747293472, -0.08421428501605988, 0.16631434857845306, -0.15949618816375732, -0.09513378143310547, -0.07962700724601746, 0.28967684507369995, 0.026067234575748444, -0.1259269416332245, 0.013497933745384216, -0.04320588707923889, 0.22840553522109985, 0.049859583377838135, -0.07769672572612762, 0.011871017515659332, -0.002243742346763611, -0.24759942293167114, -0.012500323355197906, 0.06004537269473076, -0.2825707495212555, 0.21273860335350037, 0.1388472616672516, -0.026846230030059814, -0.23507250845432281, 0.7145012021064758, 0.09066615253686905, 0.02341025322675705, 0.2410629838705063, -0.06896565109491348, -0.23823481798171997, -0.06989723443984985, 0.06501958519220352, -0.16277645528316498, -0.32651519775390625, 0.10601899027824402, -0.0822255089879036, 0.4989001154899597, -0.3390575349330902, 0.08034951984882355, 0.1533050239086151, -0.045519739389419556, -0.05211744084954262, -0.28595006465911865, -0.4637411832809448, 0.23394952714443207, -0.031088922172784805, 0.14471854269504547, -0.20976626873016357, 0.21932636201381683, -0.014476098120212555, 0.20213937759399414, -0.14645853638648987, 0.1956729143857956, 0.009066814556717873, 0.22114217281341553, 0.3122568130493164, 0.1734316349029541, 0.04121910408139229, 0.03694172948598862, -0.045701250433921814, 0.13598257303237915, -0.10843934118747711, -0.04961748421192169, -0.03139543533325195, 0.23141300678253174, 0.13279634714126587, -0.5099073052406311, 0.3159250319004059, 0.006871160119771957, -0.30465763807296753, 0.021336320787668228, 0.31792956590652466, 0.057848334312438965, 0.20316152274608612, -0.16248048841953278, 0.4404972791671753, -0.0921647772192955, -0.4527807831764221, 0.27823710441589355, -0.11947990953922272, 0.28838175535202026, -0.06766890734434128, 0.26285165548324585, 0.20848500728607178, -0.11201085150241852, -0.2517087459564209, -0.22532886266708374, 0.08569879829883575, -0.11282166093587875, 0.48099204897880554, -0.027779914438724518, 0.1876184046268463, 0.20912010967731476, 0.5395694971084595, 0.6694290637969971, -0.05301671475172043, 0.2618055045604706, 0.4446735084056854, 0.0809476226568222, -0.18986576795578003, 0.1110777035355568, -0.0003321375697851181, -0.02318437024950981, 0.04120735451579094, 0.09320531040430069, -0.10434548556804657, -0.28288882970809937, -0.203403040766716, -0.28177234530448914, 0.13389115035533905, 0.2542668879032135, 0.242021843791008, 0.708977460861206, 0.17163166403770447, -0.12100358307361603, 0.041905149817466736, 0.26155489683151245, 0.13529656827449799, 0.23262536525726318, -0.22850698232650757, 0.14355438947677612, 0.04931773990392685, 0.010253697633743286, 0.02835613489151001, -0.6977858543395996, -0.1262255162000656, 0.349115788936615, 0.07340779900550842, 0.17991903424263, -0.15200583636760712, 0.2228635847568512, -0.07226137071847916, -0.08456145226955414, -0.2514718770980835, 0.48075810074806213, 0.20588603615760803, -0.12140808999538422, -0.05056682601571083, -0.22089117765426636, -0.0029642507433891296, 0.4985955059528351, -0.0006192363798618317, -0.38525617122650146, 0.36460819840431213, 0.23823297023773193, -0.005404636263847351, -0.5793507099151611, -0.07963020354509354, 0.1195179671049118, 0.2672905921936035, -0.37469127774238586, 0.12890271842479706, 0.16699229180812836, 0.02340245246887207, 0.20074735581874847, 0.26266729831695557, 0.005500040948390961, 0.0036873165518045425, 0.18972021341323853, 0.183210551738739, 0.2477826625108719, 0.015730230137705803, -0.05119767785072327, 0.0728418156504631, 0.2460760772228241, 0.18269877135753632, 0.4314577579498291, -0.074872225522995, -0.06866836547851562, 0.07530258595943451, -0.14665190875530243, -0.22830338776111603, -0.5099491477012634, 0.04235110804438591, -0.12179581820964813, -0.00973803922533989, -0.1389460563659668, -0.10625604540109634, -0.16948193311691284, 0.053488802164793015, -0.17334753274917603, -0.17761920392513275, 0.08983830362558365, 0.15357600152492523, -0.04052954167127609, -0.2815023362636566, 0.4673685133457184, 0.30161792039871216, 0.02662784606218338, -0.28788405656814575, -0.4712390899658203, -0.2998333275318146, -0.057735927402973175, -0.28566256165504456, 0.17771296203136444, 0.04572371020913124, 0.3271953761577606, -0.14263039827346802, 0.1498183012008667, -0.18285195529460907, 0.024161215871572495, 0.030470386147499084, 0.43487775325775146, -0.08607608079910278, -0.18516889214515686, -0.05834460258483887, 0.42656609416007996, -0.12826469540596008, -0.28107577562332153, 0.34877482056617737, -0.021672645583748817, -0.16899986565113068, 0.21715272963047028, 0.1006583422422409, 0.03646576777100563, -0.20010095834732056, 0.08565691858530045, -0.02344219572842121, 0.3311544358730316, -0.0020099543035030365, -0.07884137332439423, 0.0014256015419960022, -0.17744119465351105, -0.3367544412612915, 0.1356220692396164, 0.013405438512563705, 0.2751173973083496, 0.20301520824432373, -0.09706532955169678, -0.24720828235149384, 0.2357616126537323, -0.09300804138183594, -0.19594962894916534, -0.024399496614933014, -0.25969406962394714, -0.12722459435462952, 0.2460625320672989, 0.12971216440200806, 0.1128142923116684, -0.37088742852211, -0.294818252325058, -0.2648234963417053, -0.20041505992412567, 0.7916322946548462, -0.283984512090683, -0.009040353819727898, -0.38637855648994446, 0.29183074831962585, 0.24596697092056274, -0.06740352511405945, -0.3543948233127594, 0.27520737051963806, 0.41306841373443604, -0.3291517496109009, -0.0016184095293283463, 0.271563857793808, -0.0741298496723175, -0.06618689745664597, -0.06462956219911575, 0.3913552761077881, 0.20364323258399963, -0.4596031606197357, -0.108976349234581, -0.23078632354736328 ]
https://github.com/huggingface/datasets/issues/2161
any possibility to download part of large datasets only?
Hi ! Streaming is available on `master` only right now. We'll make a new release 1.9.0 on Monday :)
Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
19
any possibility to download part of large datasets only? Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks Hi ! Streaming is available on `master` only right now. We'll make a new release 1.9.0 on Monday :)
[ -0.47226279973983765, -0.4255565106868744, -0.11318700015544891, 0.13441985845565796, 0.08804666250944138, 0.17386451363563538, -0.35428866744041443, 0.375715434551239, -0.050258614122867584, 0.32865631580352783, -0.41292425990104675, -0.22793170809745789, -0.1485813707113266, 0.37937045097351074, 0.2008758783340454, -0.06608574837446213, -0.1095423474907875, 0.2192225456237793, -0.1483975052833557, -0.11359608173370361, 0.016390323638916016, -0.24935545027256012, -0.23752540349960327, -0.31789594888687134, 0.20180028676986694, 0.027764245867729187, -0.048512935638427734, -0.2904224991798401, -0.5257315039634705, 0.07570096105337143, 0.10521920025348663, 0.12333914637565613, 0.21342629194259644, 0.10938811302185059, -0.00011517098027979955, -0.34665006399154663, 0.41681891679763794, -0.12548010051250458, -0.049066346138715744, -0.1248016506433487, -0.30665525794029236, 0.1304214745759964, -0.1911243051290512, -0.16259020566940308, 0.05359276384115219, 0.15013688802719116, 0.2008933275938034, 0.06956459581851959, 0.18056240677833557, 0.1309279054403305, 0.14826451241970062, 0.06354428827762604, -0.1145860105752945, -0.024538975208997726, 0.2895705997943878, 0.0678122267127037, -0.029718711972236633, 0.006540269590914249, 0.5009746551513672, 0.3647524118423462, 0.11643418669700623, 0.043658312410116196, 0.052416153252124786, 0.12260496616363525, 0.010125793516635895, -0.3156892657279968, -0.17074033617973328, -0.6554211378097534, 0.3526366651058197, 0.7226449251174927, 0.6469683647155762, 0.1012226939201355, -0.20859743654727936, -0.043576233088970184, 0.17564235627651215, -0.2512713670730591, -0.1427432894706726, 0.6370518207550049, -0.3258792459964752, 0.14877690374851227, -0.5430159568786621, -0.31550174951553345, -0.16876718401908875, 0.3041641414165497, -0.25997257232666016, 0.3214051127433777, -0.0001989416778087616, -0.04999752342700958, 0.36034518480300903, -0.0020156130194664, 0.22640873491764069, 0.022802341729402542, -0.31246840953826904, 0.28536516427993774, -0.2960832715034485, -0.379488080739975, -0.3436775803565979, 0.2594527304172516, 0.29984280467033386, 0.08919935673475266, 0.1823873370885849, 0.23571527004241943, 0.08006607741117477, 0.015136811882257462, 0.5451428294181824, -0.10761730372905731, -0.3233257830142975, 0.0730130523443222, 0.3837718367576599, 0.010113295167684555, 0.16880467534065247, -0.02487095817923546, -0.002899281680583954, 0.2587714195251465, -0.507677435874939, -0.00036294758319854736, -0.2615731358528137, -0.4713284373283386, 0.1559983789920807, -0.2777478098869324, 0.13626369833946228, 0.07075907289981842, -0.08103214204311371, 0.10706613957881927, -0.09066970646381378, 0.24105414748191833, -0.4281463027000427, -0.07361026108264923, 0.09756942093372345, -0.32209092378616333, -0.1091439500451088, -0.010577056556940079, 0.028052624315023422, -0.0787927508354187, 0.26437923312187195, -0.5082529187202454, 0.3371802270412445, -0.07951781898736954, 0.33613526821136475, 0.1806771606206894, -0.18926990032196045, -0.1488175392150879, -0.08880894631147385, 0.21456696093082428, 0.10499468445777893, 0.24177555739879608, -0.20716124773025513, 0.504518449306488, -0.036805834621191025, 0.2993341088294983, -0.12071586400270462, -0.2835350036621094, 0.1389859914779663, 0.13096031546592712, -0.2674581706523895, -0.06298588216304779, -0.38696932792663574, 0.2854522168636322, -0.1779264211654663, 0.000047169625759124756, -0.014269664883613586, 0.07765704393386841, -0.043536219745874405, -0.11507769674062729, 0.23795002698898315, -0.13078539073467255, -0.2373151183128357, 0.006890490651130676, -0.16206197440624237, -0.17149969935417175, 0.4258081316947937, 0.35340216755867004, -0.17072872817516327, -0.3960532248020172, -0.06739994138479233, -0.15462616086006165, 0.2148633897304535, 0.04374953731894493, -0.5386925935745239, 0.39855480194091797, 0.13178595900535583, -0.2564820647239685, 0.08212985098361969, 0.15255267918109894, 0.6344276666641235, 0.11936815083026886, -0.2234911322593689, 0.5501546859741211, -0.058908767998218536, 0.05750097334384918, -0.09514055401086807, -0.32143211364746094, -0.21857886016368866, 0.16350041329860687, 0.3424955904483795, 0.4317511022090912, 0.29508817195892334, 0.09507766366004944, 0.41951626539230347, -0.08960892260074615, 0.28561273217201233, 0.17130213975906372, 0.18273484706878662, -0.13418832421302795, -0.08744111657142639, -0.30885353684425354, -0.08792818337678909, 0.1430228054523468, 0.12390884757041931, -0.36382949352264404, 0.40670931339263916, -0.19225776195526123, 0.08848125487565994, -0.29141104221343994, 0.40603429079055786, -0.06551811099052429, -0.06968779116868973, -0.1784229278564453, 0.2960863709449768, -0.2208673357963562, -0.37305784225463867, -0.20067691802978516, -0.0802236944437027, 0.08894120156764984, 0.07609525322914124, 0.04536793380975723, 0.2278524488210678, 0.18801483511924744, 0.3012548089027405, -0.3396291136741638, 0.018282704055309296, -0.07574144005775452, 0.03271770477294922, 0.2482905387878418, -0.0751577615737915, 0.1401793509721756, 0.055640894919633865, 0.04823286831378937, 0.4031479060649872, -0.14971159398555756, -0.02832709066569805, 0.3423364758491516, 0.12930281460285187, -0.03660983964800835, -0.3519749641418457, 0.2771194577217102, -0.217725470662117, 0.1233273595571518, 0.16993479430675507, -0.002215670421719551, 0.3464897572994232, -0.07572861015796661, 0.07701286673545837, 0.12729673087596893, 0.3411635458469391, 0.03728530555963516, 0.07226726412773132, -0.15664128959178925, -0.3699498474597931, -0.2574921250343323, 0.0630851462483406, -0.1521054208278656, -0.26229631900787354, 0.17612946033477783, -0.3542083203792572, 0.037774696946144104, 0.14323097467422485, 0.15736672282218933, 0.043484702706336975, 0.18283219635486603, 0.5009161233901978, -0.018932590261101723, 0.5529594421386719, -0.1913038194179535, 0.032306358218193054, 0.013521306216716766, -0.36775171756744385, 0.010849565267562866, 0.07767493277788162, -0.3239635229110718, -0.11856988072395325, 0.24153906106948853, 0.22910089790821075, 0.1548428237438202, 0.14947248995304108, -0.4640164375305176, -0.31058579683303833, -0.5512292981147766, 0.15153150260448456, 0.050273023545742035, -0.02467484027147293, -0.011874689720571041, 0.0819532722234726, 0.4645322859287262, 0.034257736057043076, -0.12360958009958267, 0.028705447912216187, 0.3785233795642853, -0.13204942643642426, 0.4409331679344177, -0.17683055996894836, -0.04130050912499428, 0.23562845587730408, 0.22115403413772583, 0.02182234823703766, 0.027051841840147972, 0.17836105823516846, 0.07616393268108368, -0.064681775867939, -0.33259570598602295, -0.06394863873720169, -0.009443391114473343, 0.26172736287117004, -0.19629798829555511, -0.1334729641675949, 0.3212755620479584, -0.06623287498950958, 0.0288735069334507, -0.21674813330173492, -0.31177055835723877, -0.14007161557674408, -0.06692139804363251, -0.005110228434205055, 0.1507520228624344, -0.18149423599243164, 0.14281411468982697, -0.4396062195301056, -0.3790428340435028, 0.3784823417663574, 0.22142742574214935, 0.16002461314201355, -0.3005805015563965, -0.12108809500932693, -0.18777748942375183, -0.293006032705307, -0.4380388557910919, 0.046203356236219406, -0.8105825781822205, 0.322945237159729, -0.1686304360628128, -0.3520538806915283, 0.14572423696517944, 0.20764298737049103, -0.12111613154411316, 0.47950172424316406, -0.4310849905014038, 0.25083664059638977, -0.11923283338546753, -0.10191018879413605, 0.18766818940639496, -0.03282763808965683, -0.21471500396728516, -0.6559683084487915, -0.039695560932159424, 0.03084283322095871, 0.21135902404785156, -0.32045069336891174, 0.3215065896511078, 0.3877243399620056, -0.07771895825862885, 0.0027179084718227386, 0.12302082777023315, 0.6648045182228088, 0.06102890893816948, 0.32368677854537964, 0.03483375161886215, 0.17357660830020905, 0.03902260214090347, -0.06267248839139938, 0.08752467483282089, 0.35053715109825134, -0.07656276226043701, -0.18017524480819702, 0.2538129687309265, 0.09234566986560822, -0.3871077299118042, -0.404689759016037, -0.04929426684975624, 0.055689677596092224, -0.04359055683016777, -0.1042502224445343, 0.030758220702409744, -0.027936719357967377, 0.11885091662406921, 0.059945546090602875, 0.16856105625629425, -0.3120358884334564, 0.0869189202785492, 0.07484389841556549, 0.30885279178619385, 0.007438176311552525, -0.3863288462162018, -0.14855892956256866, -0.36135199666023254, 0.06316252052783966, -0.10047323256731033, 0.08255739510059357, 0.06802529096603394, 0.16436251997947693, 0.2066703736782074, 0.14466041326522827, 0.3816035985946655, -0.03746645152568817, 0.05002226307988167, -0.1897473931312561, -0.2201116979122162, -0.08951157331466675, 0.026840101927518845, -0.041705694049596786, -0.0965520590543747, 0.32598763704299927, -0.14073829352855682, -0.3543400168418884, 0.2889573872089386, 0.005621897056698799, 0.3419516384601593, -0.0903489738702774, -0.04512679949402809, 0.1183282732963562, -0.04279064014554024, -0.18472199141979218, 0.25224030017852783, -0.2072150558233261, -0.16322606801986694, -0.15601162612438202, -0.10907366871833801, -0.03185480087995529, 0.021632391959428787, -0.0828889012336731, -0.10005152225494385, 0.030827721580863, 0.04532916471362114, 0.3428441882133484, 0.17782941460609436, 0.0819711983203888, 0.12840810418128967, 0.46950557827949524, 0.36583131551742554, -0.11564616858959198, 0.08671160787343979, -0.1306062936782837, -0.10158099979162216, 0.20938162505626678, 0.04373990744352341, 0.2808164358139038, 0.408555805683136, 0.21244966983795166, -0.031262610107660294, 0.06223003938794136, -0.2949730455875397, -0.0941510871052742, -0.5202359557151794, -0.5601614117622375, 0.31089749932289124, 0.09657925367355347, 0.08670800924301147, 0.495863676071167, -0.3096116781234741, 0.16381363570690155, -0.09905407577753067, -0.15063133835792542, 0.8891241550445557, 0.07540914416313171, -0.006490156054496765, -0.5325063467025757, -0.02849159575998783, 0.42001697421073914, 0.027641206979751587, 0.13561773300170898, -0.19750452041625977, -0.4614288806915283, -0.14234095811843872, -0.01670682802796364, -0.09320566803216934, 0.07164856791496277, -0.06629638373851776, 0.3452252447605133, 0.07348278164863586, 0.42623600363731384, 0.004112464375793934, 0.03176402300596237, -0.30031153559684753, -0.11157874763011932, 0.23465493321418762, 0.06934379786252975, -0.14333035051822662, 0.3273024559020996, -0.0557924322783947, -0.032708313316106796, 0.09005220234394073, 0.15346239507198334, -0.16263344883918762, 0.12209027260541916, -0.29196611046791077, -0.1220972090959549, -0.42849794030189514, -0.20952239632606506, -0.09000961482524872, -0.15981996059417725, -0.17676545679569244, 0.22457802295684814, -0.3927687406539917, 0.277068555355072, 0.22089529037475586, 0.061460334807634354, -0.009739629924297333, 0.2679329812526703, -0.3007403612136841, -0.1530027985572815, -0.1218152865767479, 0.3161700665950775, 0.016243450343608856, -0.26042982935905457, -0.1198071837425232, 0.009549930691719055, 0.04727506637573242, 0.20625890791416168, -0.07873590290546417, 0.06089545413851738, -0.06785736232995987, -0.13240359723567963, 0.08443653583526611, 0.14058631658554077, -0.2451874166727066, 0.2926473021507263, 0.28065308928489685, -0.20300820469856262, -0.31279224157333374, 0.706134021282196, 0.2217414379119873, -0.1477392613887787, -0.03090760111808777, -0.0348445288836956, -0.26916223764419556, -0.1094612404704094, 0.03441018611192703, -0.28474512696266174, -0.09704246371984482, -0.043613288551568985, -0.3754636347293854, 0.24512021243572235, -0.03665129840373993, 0.03636835515499115, 0.08636954426765442, -0.009860493242740631, -0.2653488218784332, -0.309307724237442, -0.3473716378211975, 0.13564099371433258, -0.03089001402258873, 0.13359272480010986, -0.1747770607471466, -0.013115152716636658, 0.00016885250806808472, 0.2695528566837311, -0.2037925273180008, 0.26945212483406067, 0.19992028176784515, 0.23872314393520355, 0.21729937195777893, 0.3061385154724121, -0.19173967838287354, -0.019398845732212067, -0.046709295362234116, 0.2147589474916458, -0.06515595316886902, -0.11164720356464386, 0.0771593302488327, 0.18652255833148956, 0.19707980751991272, -0.30181461572647095, 0.10859090089797974, -0.1156172826886177, -0.2113790214061737, 0.10276783257722855, 0.17672385275363922, -0.038238927721977234, 0.25156480073928833, -0.34630027413368225, 0.5911294221878052, -0.2328619658946991, -0.4693998694419861, 0.45425480604171753, 0.016507811844348907, 0.09747637808322906, -0.07871982455253601, 0.31400951743125916, 0.2915429174900055, -0.16839909553527832, -0.17227980494499207, -0.2812137305736542, 0.08527688682079315, -0.10301480442285538, 0.37498757243156433, 0.2042786329984665, 0.3214718997478485, 0.22365736961364746, 0.3470146954059601, 0.5542969703674316, 0.14615438878536224, 0.18567527830600739, 0.4167734980583191, 0.18807262182235718, -0.14973010122776031, -0.1000322476029396, -0.1143857091665268, 0.1440722495317459, -0.02574804238975048, 0.0018495842814445496, -0.022577013820409775, -0.3263656497001648, -0.05154901742935181, -0.2704432010650635, 0.08884899318218231, 0.1532997190952301, 0.17934085428714752, 0.8333563804626465, 0.15310446918010712, -0.23710964620113373, -0.18829336762428284, 0.2068771868944168, 0.1592475026845932, 0.3730365037918091, -0.047956667840480804, 0.30596235394477844, 0.30635231733322144, -0.03126438334584236, 0.003244847059249878, -0.5970541834831238, -0.21416793763637543, 0.4046417474746704, -0.014236852526664734, 0.2092544138431549, 0.034460972994565964, -0.04815886169672012, -0.01066222321242094, -0.09310523420572281, -0.1816471517086029, 0.26601600646972656, 0.21271052956581116, -0.003987228963524103, -0.11504063010215759, -0.2785252332687378, 0.10949714481830597, 0.5113760232925415, 0.13223211467266083, -0.19804467260837555, 0.26082757115364075, 0.24900786578655243, 0.03087415173649788, -0.26516127586364746, -0.13598021864891052, 0.03326932713389397, 0.1771014928817749, -0.3987109661102295, -0.1482173204421997, 0.023441389203071594, 0.06288588047027588, 0.43942683935165405, 0.06442029774188995, -0.16142897307872772, 0.0587649941444397, 0.21055427193641663, 0.056803423911333084, 0.1634787917137146, 0.03555624186992645, -0.13017144799232483, 0.07763722538948059, 0.4430594742298126, -0.009220678359270096, 0.29109281301498413, 0.05851537734270096, -0.09595362097024918, 0.3714143931865692, -0.20609457790851593, -0.06720632314682007, -0.3228951692581177, -0.13362205028533936, 0.1930321604013443, -0.039132699370384216, -0.0094224251806736, -0.1811574101448059, -0.1606295108795166, 0.18332746624946594, -0.34443140029907227, -0.46966227889060974, 0.16435468196868896, 0.18201805651187897, 0.019300594925880432, -0.23343801498413086, 0.4481793940067291, 0.15795736014842987, 0.010554615408182144, -0.09909765422344208, -0.4864680767059326, -0.25038692355155945, 0.09596439450979233, -0.13517992198467255, 0.3514741361141205, -0.004207930527627468, 0.24308030307292938, 0.01635562628507614, 0.2670601010322571, -0.1235208511352539, -0.013192350044846535, -0.04541678726673126, 0.4119946360588074, -0.16007716953754425, -0.0816611498594284, -0.014287315309047699, 0.5789079666137695, -0.15454880893230438, -0.27909648418426514, 0.44369468092918396, -0.13085050880908966, -0.009698890149593353, 0.31907033920288086, -0.050664227455854416, 0.13811556994915009, -0.19561652839183807, 0.10839284956455231, -0.22875061631202698, 0.16347888112068176, -0.12174096703529358, 0.09674571454524994, -0.004798520356416702, -0.1323552131652832, -0.2796781361103058, -0.04935295134782791, 0.22815245389938354, 0.08087433129549026, 0.16487881541252136, 0.07417663931846619, 0.01687648519873619, 0.11592485755681992, -0.19046060740947723, 0.15389426052570343, -0.01674479804933071, -0.5041580200195312, -0.21525609493255615, 0.09473882615566254, 0.15374572575092316, -0.05367853492498398, -0.2692042589187622, -0.5225881934165955, -0.18214266002178192, -0.07931656390428543, 0.5730479955673218, -0.09710370004177094, 0.24021147191524506, -0.4517633020877838, 0.12121458351612091, 0.3278100788593292, 0.1860436499118805, -0.1825706660747528, 0.13677683472633362, 0.27748262882232666, -0.24974197149276733, 0.2136402279138565, 0.13517095148563385, 0.06129135191440582, -0.11358079314231873, -0.17278435826301575, 0.09571091830730438, 0.34691789746284485, -0.47552990913391113, -0.25745782256126404, -0.25572213530540466 ]
https://github.com/huggingface/datasets/issues/2160
data_args.preprocessing_num_workers almost freezes
Hi. I cannot always reproduce this issue, and on later runs I did not see it so far. Sometimes also I set 8 processes but I see less being showed, is this normal, here only 5 are shown for 8 being set, thanks ``` #3: 11%|███████████████▊ | 172/1583 [00:46<06:21, 3.70ba/s] #4: 9%|█████████████▏ | 143/1583 [00:46<07:46, 3.09ba/s] #7: 6%|█████████ | 98/1583 [00:45<11:34, 2.14ba/s] #5: 8%|███████████▍ | 124/1583 [00:46<09:03, 2.68ba/s] #6: 7%|██████████▏ ```
Hi @lhoestq I am running this code from huggingface transformers https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py to speed up tokenization, since I am running on multiple datasets, I am using data_args.preprocessing_num_workers = 4 with opus100 corpus but this moves on till a point and then this freezes almost for sometime during tokenization steps and then this is back again, overall to me taking more time than normal case, I appreciate your advice on how I can use this option properly to speed up. thanks
71
data_args.preprocessing_num_workers almost freezes Hi @lhoestq I am running this code from huggingface transformers https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py to speed up tokenization, since I am running on multiple datasets, I am using data_args.preprocessing_num_workers = 4 with opus100 corpus but this moves on till a point and then this freezes almost for sometime during tokenization steps and then this is back again, overall to me taking more time than normal case, I appreciate your advice on how I can use this option properly to speed up. thanks Hi. I cannot always reproduce this issue, and on later runs I did not see it so far. Sometimes also I set 8 processes but I see less being showed, is this normal, here only 5 are shown for 8 being set, thanks ``` #3: 11%|███████████████▊ | 172/1583 [00:46<06:21, 3.70ba/s] #4: 9%|█████████████▏ | 143/1583 [00:46<07:46, 3.09ba/s] #7: 6%|█████████ | 98/1583 [00:45<11:34, 2.14ba/s] #5: 8%|███████████▍ | 124/1583 [00:46<09:03, 2.68ba/s] #6: 7%|██████████▏ ```
[ -0.25141069293022156, -0.24791891872882843, -0.16687612235546112, 0.06956738978624344, 0.12973299622535706, -0.18073782324790955, 0.43346989154815674, 0.0990600734949112, -0.35381627082824707, 0.2440420687198639, 0.0638788640499115, 0.2399452030658722, 0.09411600232124329, -0.13301894068717957, -0.047090522944927216, 0.15162259340286255, 0.15839485824108124, 0.011223956942558289, -0.10869921743869781, 0.1517171561717987, -0.3039168119430542, 0.29739126563072205, -0.1818714141845703, -0.14950014650821686, -0.3720235824584961, 0.07120022177696228, 0.10704286396503448, -0.03867713361978531, 0.12662626802921295, -0.3786483705043793, -0.3722396790981293, 0.2621738612651825, -0.17171530425548553, 0.39772674441337585, -0.0001282334269490093, 0.05515627562999725, 0.33100271224975586, 0.3341306149959564, -0.09938368201255798, 0.18547052145004272, 0.5246138572692871, -0.36839520931243896, 0.08927952498197556, 0.060153163969516754, -0.012781716883182526, 0.040518540889024734, -0.057785406708717346, -0.10246428847312927, 0.4945961833000183, -0.023532379418611526, 0.010640356689691544, 0.5192906856536865, -0.12195990979671478, 0.23355916142463684, -0.32055389881134033, 0.11530984938144684, -0.07880285382270813, 0.11737029254436493, 0.4010341167449951, 0.19734761118888855, 0.3235231339931488, 0.12976761162281036, -0.11783309280872345, -0.0455491729080677, -0.06722543388605118, 0.21812032163143158, 0.46640723943710327, -0.6463074684143066, 0.2540324330329895, 0.1169218122959137, -0.05746149271726608, 0.12873691320419312, -0.06596213579177856, -0.28026896715164185, -0.11096255481243134, -0.505287230014801, 0.04789719358086586, -0.28660139441490173, -0.0035857222974300385, -0.08456331491470337, -0.1638435572385788, -0.0343458391726017, 0.038055650889873505, 0.07459096610546112, 0.2919779121875763, 0.40238216519355774, -0.25799939036369324, 0.14129865169525146, 0.48592227697372437, 0.05207710713148117, -0.14399056136608124, -0.24333816766738892, 0.17482861876487732, 0.17393016815185547, -0.39679789543151855, 0.09487991034984589, -0.23608168959617615, 0.16596810519695282, -0.12084676325321198, 0.09117276966571808, -0.11026811599731445, 0.5134536623954773, 0.46658873558044434, -0.20042794942855835, -0.13143330812454224, -0.1684509664773941, 0.02312728762626648, -0.3938961625099182, 0.5149449110031128, 0.07730560004711151, 0.012577280402183533, 0.06597791612148285, -0.24289929866790771, -0.5354482531547546, 0.1613684445619583, 0.14075151085853577, 0.04159405082464218, -0.11968056857585907, 0.2090463489294052, 0.08007213473320007, 0.1907866895198822, -0.22903954982757568, 0.34542378783226013, 0.37521976232528687, -0.27895691990852356, 0.19921797513961792, -0.25751975178718567, 0.04506342113018036, -0.5872555375099182, -0.05578293651342392, 0.05185455083847046, -0.23113901913166046, -0.015339531004428864, 0.18878395855426788, 0.2071908563375473, -0.20204110443592072, 0.1966591477394104, 0.21440806984901428, 0.6740501523017883, -0.42260074615478516, 0.36319220066070557, -0.16366462409496307, -0.009650036692619324, 0.24473634362220764, -0.0727551281452179, 0.36243173480033875, 0.03528715670108795, 0.3586987853050232, -0.31108856201171875, 0.01506679505109787, 0.0074114203453063965, -0.22758857905864716, 0.16345886886119843, -0.04803517833352089, -0.03236575424671173, 0.24336828291416168, 0.005601286888122559, 0.14325068891048431, 0.5009930729866028, 0.38757091760635376, 0.030053645372390747, -0.11953578889369965, -0.42383137345314026, 0.025399478152394295, 0.2834201157093048, 0.4679896831512451, 0.5233030319213867, -0.04024776071310043, -0.0364375114440918, -0.022537928074598312, 0.7288457751274109, 0.2094699740409851, -0.02433861792087555, -0.022108294069767, -0.06772573292255402, 0.14436396956443787, -0.08108296245336533, 0.07232628762722015, 0.05671336501836777, 0.2270413488149643, -0.22406534850597382, -0.08603654056787491, 0.24141556024551392, 0.0726289376616478, 0.13471022248268127, -0.08776962012052536, 0.17004738748073578, 0.17612598836421967, 0.28238677978515625, 0.17342345416545868, -0.2352311909198761, 0.014629626646637917, -0.012833155691623688, 0.017170507460832596, -0.3240707218647003, -0.0673823282122612, -0.5180615186691284, -0.041616830974817276, 0.07033611834049225, 0.005442652851343155, 0.1118420958518982, 0.153781920671463, -0.08346717059612274, 0.056084416806697845, 0.327490895986557, 0.0175311379134655, -0.12218012660741806, -0.037940312176942825, -0.3193317949771881, 0.26696884632110596, 0.07846327871084213, -0.08422572165727615, 0.032065171748399734, 0.09097057580947876, -0.1867542564868927, -0.0062119849026203156, -0.13805176317691803, -0.03471950441598892, 0.1920592188835144, -0.06700512021780014, 0.0034453384578227997, -0.08312828838825226, 0.0475848987698555, 0.2688091993331909, -0.25749579071998596, 0.004419879987835884, 0.08328770846128464, -0.14555992186069489, -0.11000804603099823, 0.09419487416744232, 0.06143397465348244, -0.3610612750053406, 0.016560180112719536, 0.29662811756134033, 0.14660564064979553, 0.31101715564727783, -0.4479562044143677, 0.558302104473114, 0.21450930833816528, 0.12905798852443695, 0.08923162519931793, 0.009279225021600723, 0.021773431450128555, -0.14510414004325867, 0.43356624245643616, 0.4299767017364502, -0.29977792501449585, 0.3906126916408539, 0.10706070065498352, -0.182105153799057, -0.05600418895483017, 0.24892637133598328, -0.24397265911102295, -0.026175521314144135, 0.4540877640247345, -0.04775156453251839, 0.23011623322963715, 0.2223639339208603, -0.18363216519355774, 0.2125941514968872, 0.12373487651348114, 0.011179056018590927, -0.17037245631217957, 0.04037673771381378, -0.07345683127641678, -0.13347908854484558, -0.24998998641967773, -0.6115148663520813, 0.1777782291173935, -0.006928765214979649, -0.036560531705617905, -0.04785996675491333, 0.004237866960465908, -0.20610828697681427, 0.2798289656639099, 0.43721628189086914, 0.18675962090492249, 0.17119702696800232, -0.19493035972118378, -0.07323531061410904, -0.18251997232437134, -0.12971191108226776, 0.11869364231824875, 0.16722695529460907, -0.18958090245723724, 0.13663645088672638, -0.23871727287769318, 0.29389670491218567, -0.16629987955093384, -0.18490859866142273, -0.4397241175174713, -0.02572278305888176, -0.14998817443847656, 0.09831663966178894, 0.010331779718399048, 0.1029524952173233, 0.02423364296555519, 0.08819860219955444, -0.10022304952144623, 0.06225325167179108, -0.1612756848335266, 0.037160929292440414, -0.04911837726831436, -0.24530422687530518, 0.29891422390937805, 0.1687113642692566, -0.00803419016301632, 0.13532865047454834, -0.30700504779815674, -0.011072797700762749, -0.27499088644981384, 0.1400468796491623, 0.1708555668592453, 0.3440093696117401, -0.0735168606042862, 0.18973056972026825, 0.0009132549166679382, 0.027604788541793823, 0.10068603605031967, -0.15946930646896362, -0.06420620530843735, 0.021520916372537613, -0.1502985656261444, -0.12482894957065582, -0.13208423554897308, 0.01522432267665863, -0.24380774796009064, -0.18981830775737762, 0.15899217128753662, -0.0782172828912735, -0.04243297129869461, 0.13178707659244537, -0.013868180103600025, 0.1339336484670639, 0.2590218782424927, 0.1452917903661728, -0.16621346771717072, -0.0018486902117729187, 0.31866738200187683, -0.10285105556249619, -0.12152385711669922, -0.3235509991645813, -0.1072704866528511, 0.1314607709646225, -0.24452097713947296, -0.060911789536476135, -0.015192460268735886, -0.5067574381828308, -0.24232403934001923, -0.17239229381084442, 0.09723959118127823, 0.4248437285423279, -0.006683156359940767, -0.009941257536411285, 0.19227424263954163, -0.22691018879413605, 0.25702953338623047, -0.06192401796579361, -0.30973634123802185, 0.13964013755321503, 0.47080519795417786, -0.2967546880245209, 0.674112856388092, 0.07496535778045654, -0.19546137750148773, 0.050569042563438416, 0.03686884790658951, -0.1507924348115921, -0.055334679782390594, -0.08528532087802887, 0.13185188174247742, 0.2249402403831482, -0.05527162551879883, 0.3454119563102722, -0.10595863312482834, 0.08141616731882095, 0.12672992050647736, -0.08241717517375946, 0.017004292458295822, -0.30688661336898804, 0.32442545890808105, 0.1441497504711151, 0.40296512842178345, -0.023413022980093956, 0.11085870116949081, -0.08627286553382874, -0.4016609489917755, -0.09623663127422333, 0.11966809630393982, 0.2414519190788269, -0.16954705119132996, -0.616189181804657, 0.013722123578190804, -0.7858515977859497, 0.38282978534698486, -0.045890700072050095, 0.5199116468429565, 0.1082281768321991, 0.005662348121404648, 0.31451359391212463, -0.34670490026474, 0.7670847177505493, 0.18229077756404877, -0.12790389358997345, 0.09623660147190094, -0.7098240852355957, -0.058246202766895294, 0.007530223578214645, -0.09261944890022278, 0.27249714732170105, 0.3566781282424927, 0.7060555219650269, -0.30172109603881836, -0.3776777386665344, -0.07670915871858597, 0.05635160580277443, 0.0015053190290927887, -0.41661539673805237, -0.40195444226264954, 0.05019056797027588, -0.28636980056762695, 0.5134526491165161, 0.09065879136323929, 0.14054834842681885, -0.21094128489494324, -0.03323737904429436, 0.1202215775847435, -0.2873513996601105, 0.4236608147621155, 0.20795345306396484, -0.09130989760160446, -0.023702293634414673, 0.3806823194026947, 0.4786853492259979, -0.22901946306228638, 0.14899659156799316, -0.17072142660617828, -0.07795572280883789, -0.2364804744720459, 0.3810606002807617, -0.08679810911417007, 0.5450721383094788, 0.5472573041915894, 0.1362939029932022, 0.40631479024887085, 0.3780597150325775, 0.43740618228912354, -0.27497899532318115, 0.12596338987350464, 0.15476782619953156, 0.5308870673179626, -0.41304826736450195, -0.08188077807426453, 0.14028701186180115, 0.20813824236392975, -0.02293127030134201, 0.056150950491428375, -0.17624439299106598, -0.06340843439102173, 0.20713144540786743, 0.3916882574558258, 1.131955862045288, -0.3283148407936096, 0.18569616973400116, -0.43272462487220764, -0.0603083036839962, 0.5704900622367859, -0.3324195146560669, 0.23799625039100647, -0.36569058895111084, -0.27178627252578735, 0.18502187728881836, -0.3282359540462494, 0.30385997891426086, 0.11890409141778946, -0.26281875371932983, 0.15213969349861145, -0.33063286542892456, 0.043228838592767715, -0.4142540991306305, 0.31918036937713623, 0.04041367396712303, -0.6195268034934998, -0.04951035976409912, -0.028282437473535538, 0.07336127758026123, 0.2955295443534851, -0.1056535392999649, 0.08358746021986008, 0.010943491011857986, 0.049766093492507935, 0.08961142599582672, -0.13606631755828857, -0.1693645864725113, -0.038821518421173096, 0.5821492075920105, 0.03240630030632019, 0.31800705194473267, -0.07773575186729431, 0.5598851442337036, 0.24341635406017303, 0.07809266448020935, -0.03411181643605232, -0.1588766872882843, -0.14680656790733337, -0.05158815160393715, -0.06828829646110535, 0.012343032285571098, -0.21246781945228577, 0.051139943301677704, -0.23811540007591248, 0.08215378224849701, 0.005884349346160889, -0.1636517494916916, 0.016618017107248306, 0.023243915289640427, 0.046758025884628296, -0.18210096657276154, 0.30809447169303894, -0.32144540548324585, -0.11671335995197296, -0.04231492057442665, 0.24041037261486053, -0.4403895437717438, 0.33033493161201477, -0.02884022518992424, -0.17389360070228577, -0.11710532009601593, 0.08929136395454407, -0.026495594531297684, -0.40307432413101196, 0.6092655658721924, 0.21819941699504852, -0.2666137218475342, -0.0854160338640213, -0.2937757074832916, -0.10686648637056351, -0.34929418563842773, 0.37411555647850037, 0.32378658652305603, -0.22953003644943237, -0.07805836945772171, -0.19870010018348694, -0.35089170932769775, -0.11822459846735, -0.3102801740169525, -0.29507696628570557, -0.46650078892707825, -0.3801031708717346, 0.041147470474243164, 0.12332360446453094, -0.04716093838214874, 0.26443734765052795, -0.3896643817424774, 0.06245452165603638, -0.07857926934957504, -0.17252501845359802, -0.4062480032444, 0.0899815708398819, -0.11207491159439087, -0.5190094709396362, -0.028190769255161285, 0.11428855359554291, -0.07147900015115738, 0.44202661514282227, -0.15873973071575165, -0.06389810144901276, -0.22719432413578033, 0.23498165607452393, -0.2800927460193634, -0.44364190101623535, 0.3615059554576874, 0.3001590967178345, -0.2331467866897583, -0.27035683393478394, -0.15953949093818665, -0.16437670588493347, -0.19939865171909332, -0.5072794556617737, 0.3599967062473297, 0.11985617876052856, 0.01991940289735794, 0.19143512845039368, -0.06745238602161407, -0.0008582696318626404, 0.18648654222488403, 0.3077498972415924, 0.029404593631625175, -0.05588880181312561, -0.008452622219920158, 0.07327928394079208, 0.6394944190979004, -0.3363304138183594, 0.01888556405901909, 0.04336364567279816, -0.17313389480113983, 0.14656798541545868, -0.04777371138334274, 0.5118207335472107, 0.18133218586444855, -0.2633015811443329, 0.32500216364860535, -0.02170724980533123, 0.018075648695230484, -0.07004035264253616, 0.18655097484588623, -0.022742312401533127, -0.023857004940509796, 0.4588424861431122, 0.39220231771469116, 0.24053680896759033, 0.15288114547729492, 0.2555944323539734, 0.1636408567428589, -0.3829540014266968, -0.10786403715610504, -0.18121394515037537, -0.015402615070343018, 0.24504221975803375, 0.43654099106788635, 0.037535060197114944, 0.15058113634586334, -0.17976950109004974, 0.13358744978904724, 0.25076714158058167, 0.241634339094162, 0.49258020520210266, -0.13827982544898987, -0.2254938781261444, -0.41745513677597046, 0.5522563457489014, -0.005764193832874298, 0.379092812538147, -0.002813108265399933, 0.33594655990600586, -0.05546272173523903, -0.009885577484965324, -0.17457741498947144, 0.5061416625976562, -0.1261603832244873, -0.4475287199020386, 0.14269791543483734, 0.11120996624231339, -0.2979696989059448, 0.07718499004840851, 0.13186584413051605, 0.02568042278289795, -0.04230391979217529, 0.10804079473018646, 0.01195354014635086, -0.18286721408367157, -0.2537563145160675, -0.16722425818443298, 0.22786945104599, -0.09834681451320648, 0.012512478977441788, 0.0452592633664608, 0.009741712361574173, -0.019935667514801025, -0.02479618601500988, 0.512812614440918, 0.2004428654909134, -0.15374861657619476, 0.08116395771503448, -0.10682477056980133, 0.3018486201763153, -0.15130910277366638, 0.42706799507141113, 0.041899681091308594, 0.30012404918670654, -0.10478204488754272, -0.23058506846427917, -0.15402843058109283, -0.5271900296211243, -0.04196817800402641, -0.04314891993999481, 0.03327912464737892, 0.2451077103614807, 0.14595288038253784, -0.17569753527641296, -0.22532495856285095, 0.1532503366470337, -0.21531474590301514, -0.06143730878829956, 0.328603595495224, -0.33387523889541626, -0.11487389355897903, -0.006767999846488237, -0.020161394029855728, -0.11261105537414551, 0.613086998462677, -0.05898505821824074, 0.341598242521286, -0.16479498147964478, -0.14364367723464966, -0.396485298871994, -0.18605071306228638, 0.23747864365577698, 0.3587348759174347, 0.16471336781978607, -0.10602482408285141, 0.08674813061952591, 0.06717664748430252, -0.07128669321537018, -0.3454670310020447, -0.011450765654444695, 0.30947765707969666, -0.3384149670600891, 0.3538842499256134, -0.4342474341392517, 0.027209561318159103, 0.19708658754825592, -0.11753753572702408, 0.28732332587242126, 0.16830137372016907, -0.19996288418769836, -0.32453328371047974, 0.07584428787231445, -0.24537020921707153, 0.2596358358860016, 0.09639023244380951, 0.318460077047348, 0.14641594886779785, -0.015788935124874115, -0.010973659344017506, 0.09595190733671188, 0.26085418462753296, -0.06974421441555023, 0.07212002575397491, 0.10495010018348694, -0.16480378806591034, -0.14674589037895203, -0.131374791264534, -0.24522502720355988, 0.05675050616264343, -0.011805400252342224, -0.17454831302165985, -0.05684118717908859, 0.04691360145807266, -0.07687090337276459, 0.2094804346561432, 0.15926317870616913, 0.4812912940979004, 0.2651978135108948, -0.0506087988615036, -0.32238274812698364, -0.08048856258392334, 0.42547279596328735, -0.24996498227119446, -0.39294275641441345, -0.6206631660461426, 0.17666606605052948, 0.0027142688632011414, 0.11211904883384705, -0.23807001113891602, -0.11829882860183716, 0.015710968524217606, -0.13038286566734314, -0.28406473994255066, 0.4506072700023651, -0.11157697439193726, -0.2529275715351105, -0.24487072229385376, 0.15942668914794922, 0.14530211687088013, 0.17562612891197205, -0.11350172758102417, -0.2562186121940613 ]
https://github.com/huggingface/datasets/issues/2158
viewer "fake_news_english" error
Thanks for reporting ! The viewer doesn't have all the dependencies of the datasets. We may add openpyxl to be able to show this dataset properly
When I visit the [Huggingface - viewer](https://huggingface.co/datasets/viewer/) web site, under the dataset "fake_news_english" I've got this error: > ImportError: To be able to use this dataset, you need to install the following dependencies['openpyxl'] using 'pip install # noqa: requires this pandas optional dependency for reading xlsx files' for instance' as well as the error Traceback.
26
viewer "fake_news_english" error When I visit the [Huggingface - viewer](https://huggingface.co/datasets/viewer/) web site, under the dataset "fake_news_english" I've got this error: > ImportError: To be able to use this dataset, you need to install the following dependencies['openpyxl'] using 'pip install # noqa: requires this pandas optional dependency for reading xlsx files' for instance' as well as the error Traceback. Thanks for reporting ! The viewer doesn't have all the dependencies of the datasets. We may add openpyxl to be able to show this dataset properly
[ -0.14934374392032623, -0.18128108978271484, 0.03364313766360283, 0.34163230657577515, 0.2343083769083023, 0.2863430082798004, -0.015795189887285233, 0.22440673410892487, 0.16542792320251465, 0.07346697896718979, -0.2225697785615921, -0.12595094740390778, -0.030642274767160416, 0.3286093771457672, -0.08070302754640579, -0.20974424481391907, 0.22493185102939606, 0.19187550246715546, -0.03832000494003296, -0.21541520953178406, -0.17521564662456512, 0.24970711767673492, -0.2327597439289093, 0.03329961746931076, -0.16578128933906555, -0.005650246515870094, 0.04855570197105408, -0.1095101609826088, -0.24810563027858734, -0.22445356845855713, 0.25734806060791016, -0.07577264308929443, 0.00789504311978817, 0.49368107318878174, -0.00011687555524986237, 0.011285290122032166, 0.26212847232818604, 0.0009629707783460617, -0.07589781284332275, -0.17269189655780792, 0.15803688764572144, -0.5534414649009705, 0.2592310309410095, 0.005135469138622284, -0.12630313634872437, -0.6198987364768982, 0.134430393576622, -0.04431339353322983, 0.4444800615310669, 0.411857008934021, 0.21161802113056183, 0.41635385155677795, 0.42144298553466797, 0.059753552079200745, -0.17071714997291565, 0.07740069180727005, -0.033368684351444244, 0.24852555990219116, -0.11204001307487488, 0.25064587593078613, 0.04643926024436951, 0.35875204205513, -0.07225615531206131, -0.16721422970294952, -0.11821559816598892, -0.2060660421848297, -0.06682353466749191, -0.38775721192359924, 0.06501880288124084, 0.2956518232822418, 0.23388415575027466, -0.16021525859832764, -0.1942191869020462, -0.17102079093456268, -0.0075113484635949135, 0.15298499166965485, 0.23405495285987854, 0.34933847188949585, 0.03107767552137375, 0.24441437423229218, 0.08917350322008133, -0.3955402076244354, -0.020731180906295776, 0.15180116891860962, -0.28653815388679504, 0.27113860845565796, -0.21618610620498657, 0.14630526304244995, 0.285015344619751, -0.12319281697273254, 0.1981234848499298, -0.008001916110515594, -0.006617557257413864, 0.16877929866313934, -0.1542186737060547, 0.012571096420288086, 0.06832760572433472, 0.48234865069389343, -0.12096157670021057, -0.4073607325553894, -0.40501266717910767, 0.008703919127583504, -0.22417321801185608, 0.23805373907089233, 0.08416466414928436, 0.021071895956993103, -0.014195762574672699, 0.2033032476902008, 0.17958155274391174, 0.32110899686813354, 0.15277016162872314, 0.06792350113391876, 0.008302866481244564, -0.23801013827323914, -0.48056793212890625, -0.3320236802101135, 0.312183678150177, -0.25706344842910767, -0.3029879033565521, 0.2578766942024231, -0.0671018436551094, -0.02491741068661213, 0.011184712871909142, 0.18296083807945251, -0.15538211166858673, 0.4950971007347107, 0.2343169003725052, 0.11265984177589417, -0.22111132740974426, -0.4079149663448334, -0.17360076308250427, 0.27637454867362976, 0.05109215900301933, -0.16206075251102448, -0.03280773013830185, -0.686046838760376, 0.2591978907585144, 0.19574078917503357, 0.14804376661777496, 0.047656990587711334, -0.18887802958488464, -0.09195218980312347, -0.2200559377670288, 0.3047617971897125, 0.1786772459745407, 0.13181401789188385, 0.5532684326171875, -0.31430870294570923, -0.1588372439146042, 0.02556033805012703, -0.02471403032541275, -0.11938226222991943, -0.3907499611377716, 0.13786515593528748, -0.36982691287994385, -0.09511703252792358, 0.13832911849021912, 0.19524914026260376, -0.29211145639419556, -0.2234259992837906, -0.11635661870241165, 0.013262743130326271, -0.02022022381424904, 0.05338774621486664, 0.05041584372520447, 0.5927082896232605, -0.454547643661499, -0.3469182550907135, 0.09439994394779205, -0.21691034734249115, 0.09354034066200256, 0.10100941359996796, -0.012033688835799694, -0.0668993815779686, -0.16731585562229156, -0.3382665514945984, 0.260387659072876, -0.46532589197158813, -0.26593366265296936, 0.34731560945510864, 0.0669158548116684, 0.29507333040237427, 0.13591042160987854, -0.11641663312911987, -0.2745511829853058, 0.23451246321201324, -0.45408591628074646, 0.05521105229854584, 0.05204012989997864, -0.07514756172895432, -0.22160236537456512, -0.28084295988082886, 0.2575273811817169, 0.31789305806159973, 0.1873329132795334, 0.0692964717745781, -0.054350994527339935, -0.15542155504226685, 0.2374700903892517, 0.11475703120231628, 0.0038579381071031094, 0.10385654121637344, 0.1040421798825264, 0.3543665409088135, 0.05403422564268112, 0.0027961991727352142, 0.07325838506221771, -0.07160215079784393, -0.006469935178756714, 0.29058152437210083, -0.10620570182800293, -0.2331237941980362, -0.34943413734436035, 0.07605413347482681, -0.12885071337223053, -0.3132869601249695, 0.0632409006357193, 0.14119216799736023, -0.01407577283680439, 0.5048756003379822, -0.15752989053726196, 0.2717461884021759, -0.15713904798030853, 0.12404215335845947, -0.5752679109573364, 0.1061154454946518, -0.2694675624370575, 0.14001412689685822, 0.1747436821460724, 0.09701594710350037, -0.03467906266450882, -0.011221401393413544, 0.00916802417486906, 0.19165554642677307, -0.15174823999404907, 0.2544417977333069, 0.10075011849403381, 0.0872536450624466, 0.25027671456336975, -0.4632277488708496, 0.19770559668540955, 0.1617233157157898, 0.10718175023794174, 0.1465790867805481, -0.04175647348165512, 0.14848695695400238, 0.05354771763086319, 0.07592259347438812, -0.07912746071815491, 0.4016433656215668, 0.3749581575393677, 0.25919365882873535, -0.08777587860822678, -0.3721303641796112, 0.4974479377269745, -0.14686180651187897, 0.37759262323379517, -0.14147205650806427, -0.28332120180130005, -0.07372087985277176, 0.1207563579082489, 0.051217492669820786, 0.10601025819778442, 0.29260820150375366, -0.2328045666217804, 0.1253167986869812, 0.25615012645721436, -0.01758570596575737, 0.1818637251853943, 0.09544061124324799, -0.19698870182037354, 0.27252116799354553, 0.024692993611097336, -0.23986442387104034, 0.11882118135690689, 0.04078041389584541, -0.12911418080329895, -0.0179600790143013, -0.15010131895542145, -0.04856104031205177, -0.5117401480674744, 0.12478694319725037, 0.008886169642210007, 0.24971885979175568, -0.33371689915657043, 0.08101500570774078, -0.1943717747926712, -0.3811686336994171, -0.20976640284061432, -0.40996092557907104, -0.27095505595207214, -0.42241498827934265, -0.011939901858568192, 0.10517804324626923, -0.028001490980386734, 0.30396324396133423, -0.01885649561882019, 0.10065930336713791, -0.049809619784355164, 0.0785687044262886, -0.22767087817192078, -0.16529318690299988, -0.07615131884813309, 0.116373211145401, 0.16727305948734283, 0.07460806518793106, 0.13459978997707367, -0.5980014801025391, 0.17748156189918518, -0.4021347165107727, -0.3951077163219452, 0.1637864112854004, -0.32343143224716187, 0.4101296365261078, 0.29410579800605774, 0.12349554896354675, -0.06742715835571289, -0.0877377986907959, 0.2502644658088684, -0.1842283308506012, 0.18409812450408936, 0.0396200567483902, -0.14323224127292633, -0.1686987429857254, 0.08733139932155609, -0.14143916964530945, -0.2506597936153412, -0.31663286685943604, 0.22175779938697815, 0.10171818733215332, 0.10982998460531235, -0.04139389097690582, 0.19599755108356476, 0.24569809436798096, -0.09875199943780899, 0.2361408919095993, -0.2863526940345764, -0.524705171585083, 0.3783113658428192, -0.1568010002374649, -0.3085811734199524, 0.26516562700271606, 0.08600793033838272, 0.19515204429626465, -0.40931904315948486, -0.7332429885864258, -0.23081177473068237, -0.19231441617012024, -0.04156562685966492, 0.033482395112514496, 0.17544327676296234, 0.19460000097751617, 0.03580557927489281, 0.08474855870008469, -0.06240232288837433, -0.050844453275203705, -0.2867293655872345, -0.32710927724838257, 0.01631040871143341, -0.00009116530418395996, 0.5346376299858093, -0.056433241814374924, 0.25968873500823975, 0.4661255478858948, 0.18040584027767181, 0.3968821167945862, 0.10616249591112137, 0.7885674238204956, 0.0033060982823371887, -0.4935969412326813, -0.023189710453152657, 0.15832501649856567, 0.2208784520626068, 0.3041403293609619, -0.07541834563016891, 0.24685966968536377, -0.5103855133056641, -0.31599631905555725, -0.32764726877212524, -0.17066745460033417, -0.23633746802806854, -0.10833477973937988, 0.2060176432132721, 0.012945063412189484, 0.04673080891370773, 0.07876300811767578, -0.13665562868118286, 0.10777050256729126, 0.34799104928970337, 0.07709458470344543, 0.03654533252120018, -0.07380661368370056, -0.09121302515268326, -0.4185931384563446, 0.32425275444984436, -0.23333387076854706, 0.20124420523643494, -0.0008865930140018463, 0.1214456632733345, 0.16843906044960022, 0.03691446781158447, 0.7025109529495239, 0.030296634882688522, -0.32580769062042236, -0.05254041403532028, -0.12235037237405777, -0.6611142158508301, 0.1079372763633728, -0.25271549820899963, -0.18810458481311798, 0.024710888043045998, 0.0034358426928520203, -0.2656264305114746, -0.12438707053661346, 0.44128096103668213, 0.080468088388443, -0.20958340167999268, -0.238582581281662, -0.29162684082984924, -0.22143065929412842, -0.35254237055778503, -0.08454742282629013, -0.009030457586050034, 0.08042699843645096, -0.030180098488926888, 0.448398232460022, -0.0971265435218811, -0.02360367774963379, 0.30170053243637085, 0.050819579511880875, 0.008144082501530647, 0.020642712712287903, 0.00024724751710891724, 0.4754730463027954, 0.15005013346672058, -0.0532301589846611, 0.7757800221443176, -0.06311611831188202, -0.7709525227546692, -0.07538237422704697, 0.05363306775689125, 0.05313293635845184, 0.30701059103012085, -0.1265822798013687, 0.027493704110383987, 0.24377857148647308, 0.10178256034851074, -0.21099203824996948, 0.17637315392494202, 0.38139432668685913, 0.26764392852783203, -0.18150897324085236, -0.21407940983772278, 0.3380752503871918, 0.11588916182518005, 0.14630986750125885, 0.1849009245634079, 0.5283313989639282, -0.08419088274240494, 0.2648400664329529, -0.096995510160923, 0.9988309741020203, 0.1961125135421753, 0.24821817874908447, 0.4241090416908264, -0.24557682871818542, 0.4833489954471588, -0.07002613693475723, -0.029295820742845535, -0.1444127857685089, -0.30555835366249084, -0.24495600163936615, 0.05165502056479454, 0.48233047127723694, -0.2462417036294937, -0.3096328377723694, 0.3389141857624054, -0.12090429663658142, -0.07008813321590424, 0.12296739220619202, 0.15743319690227509, -0.38092514872550964, -0.07090537250041962, -0.3266376852989197, 0.13549260795116425, 0.037795841693878174, 0.3158825635910034, -0.16928976774215698, 0.11983226239681244, 0.018771376460790634, -0.1505928635597229, -0.28825628757476807, 0.05199584364891052, 0.027850091457366943, 0.01809712126851082, 0.06840525567531586, -0.0966806411743164, 0.24726206064224243, 0.5656707286834717, 0.36692315340042114, 0.1865287721157074, -0.48581773042678833, 0.16716539859771729, -0.04591567814350128, -0.4441518187522888, 0.1770741194486618, 0.20460796356201172, 0.31373944878578186, -0.011479143053293228, -0.2831752300262451, 0.32683825492858887, -0.12064523249864578, 0.2323896437883377, -0.19773361086845398, -0.011109933257102966, -0.05751143395900726, -0.3667595386505127, -0.3333871066570282, -0.1771247684955597, 0.057014595717191696, -0.18365217745304108, 0.11105760931968689, 0.010343633592128754, -0.12011925131082535, -0.02328445017337799, -0.05622280761599541, -0.14177227020263672, -0.24314536154270172, 0.19593104720115662, 0.03232523053884506, 0.014401908963918686, 0.2819167375564575, 0.2788679599761963, -0.366527259349823, -0.11690451949834824, 0.18774253129959106, 0.04548391327261925, -0.34566232562065125, -0.17015621066093445, 0.29141339659690857, -0.16068756580352783, -0.23839892446994781, 0.002734959125518799, 0.17468416690826416, -0.04112320393323898, 0.012688163667917252, -0.3946436941623688, -0.0076743559911847115, 0.19257932901382446, 0.10380715876817703, -0.12453392148017883, 0.17174634337425232, 0.2776165306568146, 0.13371562957763672, 0.18783214688301086, -0.2733457684516907, 0.37510132789611816, -0.16457843780517578, -0.03089616820216179, 0.1304585337638855, 0.23123222589492798, 0.32284876704216003, -0.11815203726291656, 0.037316180765628815, 0.11879869550466537, -0.11672241985797882, -0.12873424589633942, -0.15021999180316925, 0.12503403425216675, 0.2713005542755127, -0.4052729606628418, 0.2548583149909973, 0.08487265557050705, -0.20702052116394043, -0.031360357999801636, -0.19526636600494385, 0.3474896252155304, -0.07543778419494629, 0.13379789888858795, 0.02900424227118492, 0.04850401729345322, -0.0916021466255188, -0.07548128068447113, -0.04630154371261597, 0.19081413745880127, 0.042923472821712494, -0.06224064528942108, 0.031643882393836975, 0.009368263185024261, 0.08896258473396301, 0.2149970531463623, 0.20689930021762848, 0.0593179427087307, 0.3137523829936981, -0.13712720572948456, 0.1256198137998581, 0.1611730307340622, 0.4621785581111908, 0.28917455673217773, -0.42208731174468994, 0.1494947373867035, 0.4947502911090851, 0.04277874529361725, -0.5449191331863403, 0.013733969070017338, 0.29641610383987427, -0.0359671413898468, 0.0966339111328125, 0.014331944286823273, 0.18986119329929352, 0.038837045431137085, 0.19291549921035767, 0.10152371227741241, 0.1329612135887146, -0.032630499452352524, 0.3157619833946228, 0.2818041145801544, -0.14788319170475006, 0.11040328443050385, 0.24572715163230896, 0.16646923124790192, -0.016765467822551727, 0.2051967829465866, -0.3525443971157074, 0.027903949841856956, -0.29227614402770996, 0.08252416551113129, -0.03555230796337128, -0.14817538857460022, 0.2657369375228882, 0.0649838000535965, -0.14963743090629578, -0.040428124368190765, -0.12025992572307587, 0.456521600484848, -0.20543919503688812, 0.07489058375358582, -0.2444632649421692, 0.3438741862773895, 0.004921318963170052, 0.025891710072755814, 0.2523990273475647, -0.1254972368478775, -0.20778515934944153, 0.01259557530283928, 0.19293329119682312, -0.5256757736206055, -0.06269340217113495, 0.08379343897104263, -0.17488832771778107, -0.4093300700187683, -0.026211049407720566, 0.09827587008476257, 0.16244928538799286, -0.07063442468643188, 0.16526436805725098, 0.3033754229545593, 0.00847829133272171, 0.14736250042915344, 0.6045822501182556, 0.4527460038661957, 0.07021164149045944, 0.11585065722465515, 0.15780608355998993, -0.17197546362876892, -0.04609907045960426, 0.07828928530216217, 0.2830426096916199, -0.035197652876377106, 0.2945496737957001, 0.3073825240135193, 0.11828272044658661, -0.23520109057426453, -0.11926132440567017, -0.003358077257871628, 0.2711735665798187, -0.5004984140396118, 0.18157783150672913, -0.47644540667533875, 0.10206922143697739, -0.30319932103157043, -0.1503981649875641, -0.5871672630310059, 0.2847021222114563, 0.20141573250293732, -0.15573889017105103, -0.07610788941383362, -0.3292548954486847, 0.03499718755483627, 0.1634238362312317, 0.4378168284893036, 0.4837256073951721, 0.3563603162765503, -0.21458593010902405, -0.37596338987350464, -0.680629312992096, 0.27667859196662903, -0.035932254046201706, -0.18284687399864197, -0.0877021849155426, -0.242352694272995, 0.07954318821430206, 0.29018133878707886, -0.1649818867444992, 0.2002103179693222, -0.12998726963996887, -0.18706068396568298, -0.13121001422405243, -0.08867132663726807, -0.019061952829360962, 0.12774263322353363, -0.050192367285490036, 0.020972125232219696, 0.28315022587776184, -0.08129097521305084, 0.01037849485874176, 0.0650070309638977, 0.10381802916526794, -0.3491300642490387, -0.26016199588775635, 0.14184218645095825, 0.3700293302536011, 0.33236831426620483, -0.1182960495352745, -0.07882285118103027, 0.062220290303230286, -0.25419700145721436, -0.4052447974681854, 0.4564957618713379, 0.030064985156059265, 0.15833792090415955, -0.30104854702949524, -0.5846754312515259, -0.04358821362257004, 0.39000365138053894, 0.13141269981861115, 0.11658263206481934, -0.42647460103034973, 0.13343694806098938, -0.06662357598543167, 0.002129737986251712, 0.1974080502986908, 0.2926413118839264, -0.08006817102432251, 0.20344845950603485, -0.10255411267280579, -0.17170952260494232, 0.4758613407611847, -0.258990079164505, 0.0350629948079586, 0.00257004052400589, -0.04803796112537384, 0.23776006698608398, -0.42230939865112305, -0.6009994149208069, 0.227106511592865, 0.1251102089881897, 0.10895723104476929, -0.001215614378452301, 0.1362532526254654, -0.21369792520999908, -0.03758763521909714, -0.027938874438405037, 0.3252096474170685, 0.3717561662197113, -0.15754413604736328, 0.342512309551239, -0.016705133020877838 ]
https://github.com/huggingface/datasets/issues/2158
viewer "fake_news_english" error
This viewer tool is deprecated now and the new viewer at https://huggingface.co/datasets/fake_news_english works fine, so I'm closing this issue
When I visit the [Huggingface - viewer](https://huggingface.co/datasets/viewer/) web site, under the dataset "fake_news_english" I've got this error: > ImportError: To be able to use this dataset, you need to install the following dependencies['openpyxl'] using 'pip install # noqa: requires this pandas optional dependency for reading xlsx files' for instance' as well as the error Traceback.
19
viewer "fake_news_english" error When I visit the [Huggingface - viewer](https://huggingface.co/datasets/viewer/) web site, under the dataset "fake_news_english" I've got this error: > ImportError: To be able to use this dataset, you need to install the following dependencies['openpyxl'] using 'pip install # noqa: requires this pandas optional dependency for reading xlsx files' for instance' as well as the error Traceback. This viewer tool is deprecated now and the new viewer at https://huggingface.co/datasets/fake_news_english works fine, so I'm closing this issue
[ -0.1635521650314331, -0.12276920676231384, 0.05639152601361275, 0.2771100401878357, 0.2481093853712082, 0.2900730073451996, 0.0294981449842453, 0.24294890463352203, 0.1320478469133377, 0.10402478277683258, -0.24129076302051544, -0.14289021492004395, 0.03548241779208183, 0.299944669008255, -0.03929508849978447, -0.1886650174856186, 0.24474290013313293, 0.11973391473293304, 0.025636106729507446, -0.17683322727680206, -0.20794418454170227, 0.22488561272621155, -0.252449631690979, 0.07309093326330185, -0.15606321394443512, 0.06915608048439026, 0.04675769805908203, -0.11965370923280716, -0.20561623573303223, -0.2719607949256897, 0.2912880778312683, -0.13751773536205292, -0.010867156088352203, 0.5590506792068481, -0.00011585980246309191, 0.0036406517028808594, 0.32550346851348877, 0.04013149440288544, -0.17971934378147125, -0.1894543617963791, 0.1070634201169014, -0.5205990672111511, 0.17603322863578796, 0.04460453242063522, -0.15802013874053955, -0.6794711351394653, 0.14610591530799866, -0.05002030357718468, 0.37371015548706055, 0.44866248965263367, 0.23427638411521912, 0.4214347004890442, 0.461620569229126, -0.005293601658195257, -0.15883082151412964, 0.05490531399846077, -0.05967041850090027, 0.269630491733551, -0.11549408733844757, 0.25668489933013916, 0.04706697165966034, 0.32057252526283264, -0.07393092662096024, -0.18660607933998108, -0.11829722672700882, -0.20928528904914856, -0.010146073997020721, -0.33485114574432373, 0.0864817202091217, 0.3068985044956207, 0.2052205502986908, -0.13311994075775146, -0.25123974680900574, -0.18504031002521515, -0.0041431826539337635, 0.10770964622497559, 0.23376905918121338, 0.33860400319099426, 0.023429621011018753, 0.2573796808719635, 0.15466997027397156, -0.41505762934684753, -0.033536769449710846, 0.18309739232063293, -0.26860326528549194, 0.2842603325843811, -0.18821752071380615, 0.14534136652946472, 0.2837330996990204, -0.17313911020755768, 0.2052944451570511, 0.053110212087631226, -0.030118200927972794, 0.17470569908618927, -0.1735110878944397, 0.009134382009506226, 0.06435003876686096, 0.4557880461215973, -0.1189224123954773, -0.4141567349433899, -0.37835702300071716, 0.033651337027549744, -0.17949749529361725, 0.25993412733078003, 0.12344422936439514, 0.045676764100790024, 0.011557511985301971, 0.19706222414970398, 0.25571781396865845, 0.3116448223590851, 0.18690307438373566, 0.08934308588504791, 0.07767380028963089, -0.2535950541496277, -0.5057612657546997, -0.3236004710197449, 0.3355024456977844, -0.2501761019229889, -0.360887736082077, 0.27399492263793945, -0.042818717658519745, -0.007979987189173698, 0.00372460950165987, 0.18614858388900757, -0.11505011469125748, 0.5073230266571045, 0.21585668623447418, 0.10257763415575027, -0.26626017689704895, -0.4114832580089569, -0.1458357721567154, 0.3047994375228882, 0.023339126259088516, -0.1583101451396942, -0.0278470441699028, -0.6804260611534119, 0.21131037175655365, 0.18032920360565186, 0.1267622411251068, 0.005157679319381714, -0.22641491889953613, -0.07550172507762909, -0.19795846939086914, 0.276127427816391, 0.14470958709716797, 0.0809829980134964, 0.4483218491077423, -0.3236756920814514, -0.09756443649530411, 0.04262635111808777, -0.03359638899564743, -0.17710041999816895, -0.44051656126976013, 0.14693963527679443, -0.29770082235336304, -0.11039282381534576, 0.17220379412174225, 0.24529002606868744, -0.34470653533935547, -0.278459370136261, -0.11485501378774643, 0.045149583369493484, -0.011503629386425018, 0.07775221765041351, 0.013183670118451118, 0.5630930662155151, -0.4350294768810272, -0.26746097207069397, 0.07234927266836166, -0.20525597035884857, 0.038365453481674194, 0.08391103148460388, -0.03744225949048996, -0.12498439103364944, -0.16107764840126038, -0.33377373218536377, 0.232151597738266, -0.4859912395477295, -0.27011483907699585, 0.33644041419029236, 0.0956428050994873, 0.2249147742986679, 0.05503023415803909, -0.12242873758077621, -0.27146872878074646, 0.1898755133152008, -0.47501906752586365, 0.023427169770002365, 0.058499038219451904, -0.06275314837694168, -0.2319810837507248, -0.2896532416343689, 0.27692121267318726, 0.2530839145183563, 0.18086645007133484, 0.06548772752285004, -0.016404062509536743, -0.08096829801797867, 0.21493887901306152, 0.09861123561859131, -0.014337336644530296, 0.08194254338741302, 0.07242944091558456, 0.2900911271572113, 0.06073964387178421, -0.060328539460897446, 0.016119003295898438, -0.07825377583503723, -0.025728493928909302, 0.3205581307411194, -0.06855906546115875, -0.25534623861312866, -0.3526560962200165, 0.08571423590183258, -0.09999799728393555, -0.33705443143844604, 0.06064748018980026, 0.07523834705352783, 0.05903195962309837, 0.5546746253967285, -0.16265332698822021, 0.21373821794986725, -0.14463193714618683, 0.11508558690547943, -0.5992258787155151, 0.015415212139487267, -0.2659173905849457, 0.14882603287696838, 0.14721940457820892, 0.13588760793209076, -0.014889970421791077, -0.002737081376835704, -0.01762663759291172, 0.258563756942749, -0.14808689057826996, 0.282256543636322, 0.10300551354885101, 0.05125199258327484, 0.31197255849838257, -0.45785588026046753, 0.17626847326755524, 0.1958589255809784, 0.12247465550899506, 0.15594929456710815, -0.046260036528110504, 0.14553038775920868, 0.08536037802696228, 0.02333032339811325, -0.06210501492023468, 0.3918395936489105, 0.40277910232543945, 0.2413615882396698, -0.06835436820983887, -0.3867526948451996, 0.4504614472389221, -0.09720709919929504, 0.3257681727409363, -0.19295693933963776, -0.2698189616203308, -0.11736374348402023, 0.10538344085216522, 0.02118232101202011, 0.10643862932920456, 0.3420250415802002, -0.16640543937683105, 0.07167532294988632, 0.26477283239364624, 0.01714761182665825, 0.15143969655036926, 0.07658159732818604, -0.1610984355211258, 0.34576618671417236, -0.002802138216793537, -0.23328447341918945, 0.19995830953121185, 0.04761331155896187, -0.17780166864395142, -0.0003068186342716217, -0.09724642336368561, -0.06162393465638161, -0.534972608089447, 0.18375402688980103, -0.0237848199903965, 0.26378440856933594, -0.29437437653541565, 0.09584734588861465, -0.23314528167247772, -0.4145904779434204, -0.21205654740333557, -0.3924635350704193, -0.23532992601394653, -0.4296717643737793, -0.042215496301651, 0.15464161336421967, -0.1240973174571991, 0.29078030586242676, -0.051740407943725586, 0.1148209497332573, -0.08468850702047348, 0.09635745733976364, -0.2728005647659302, -0.13408584892749786, -0.11647393554449081, 0.10177946090698242, 0.18262572586536407, 0.03703613951802254, 0.18092161417007446, -0.5203337669372559, 0.15464694797992706, -0.49103236198425293, -0.40981051325798035, 0.17472213506698608, -0.27437424659729004, 0.4112767279148102, 0.27611464262008667, 0.07661204785108566, -0.08097968250513077, -0.07693656533956528, 0.25797319412231445, -0.25502127408981323, 0.18471692502498627, 0.0845850333571434, -0.08047152310609818, -0.12118028104305267, 0.07187306880950928, -0.14647161960601807, -0.22154118120670319, -0.33585792779922485, 0.19693194329738617, 0.05675609037280083, 0.08875185251235962, -0.031153764575719833, 0.16896627843379974, 0.2419011890888214, -0.048489801585674286, 0.1756272166967392, -0.31648534536361694, -0.47140684723854065, 0.37379369139671326, -0.18569280207157135, -0.31143954396247864, 0.30227142572402954, 0.1515563428401947, 0.17740680277347565, -0.3827611207962036, -0.6841483116149902, -0.1947917640209198, -0.18055884540081024, -0.03697778284549713, 0.08974999189376831, 0.16725386679172516, 0.18504953384399414, 0.012053074315190315, 0.04601723700761795, -0.014717068523168564, -0.053786613047122955, -0.33220547437667847, -0.34289059042930603, 0.06789503246545792, 0.05186566710472107, 0.5257769227027893, -0.02427825704216957, 0.17805010080337524, 0.4782787561416626, 0.21164806187152863, 0.4494056701660156, 0.08897516131401062, 0.8068341612815857, -0.044053979218006134, -0.46408283710479736, -0.06773710250854492, 0.08121063560247421, 0.2346697598695755, 0.306219220161438, -0.03988925740122795, 0.2054380625486374, -0.5607752799987793, -0.29087701439857483, -0.30054590106010437, -0.18040470778942108, -0.26679110527038574, -0.17595374584197998, 0.23044469952583313, 0.034877363592386246, 0.11608786135911942, 0.07259079813957214, -0.20666071772575378, 0.153260737657547, 0.2947138547897339, 0.03448408842086792, 0.03139704838395119, 0.006589949131011963, -0.0932188481092453, -0.48499220609664917, 0.3862754702568054, -0.20750707387924194, 0.23511992394924164, -0.017732854932546616, 0.11791334301233292, 0.17497846484184265, 0.016670875251293182, 0.6513710021972656, 0.00988432951271534, -0.33718985319137573, -0.06444951891899109, -0.05360165238380432, -0.6661550998687744, 0.11352866888046265, -0.18603761494159698, -0.19070924818515778, 0.00911412388086319, 0.006117977201938629, -0.2991393804550171, -0.1402266025543213, 0.47570738196372986, 0.07910764217376709, -0.18611939251422882, -0.16274318099021912, -0.23344498872756958, -0.2254677712917328, -0.32011154294013977, -0.10674599558115005, 0.018993424251675606, 0.08371729403734207, -0.035784490406513214, 0.4514305293560028, -0.07904570549726486, -0.029435046017169952, 0.3436572253704071, 0.0814286470413208, 0.02253090776503086, 0.0006033196114003658, -0.026992812752723694, 0.48955076932907104, 0.1364368498325348, -0.073715440928936, 0.7586212754249573, -0.03316519781947136, -0.7119711637496948, -0.11355122178792953, 0.04880863055586815, 0.059113141149282455, 0.33285969495773315, -0.0994902029633522, 0.01634141057729721, 0.20597615838050842, 0.01949971169233322, -0.22635850310325623, 0.057322610169649124, 0.3674125671386719, 0.27724117040634155, -0.1569090634584427, -0.19609840214252472, 0.3416593372821808, 0.05209541693329811, 0.17073304951190948, 0.16326072812080383, 0.5112335681915283, -0.07298748195171356, 0.26626503467559814, -0.10540526360273361, 0.983232319355011, 0.2516177296638489, 0.22985610365867615, 0.39686134457588196, -0.23117683827877045, 0.45707476139068604, -0.01071835309267044, 0.01063915528357029, -0.18985070288181305, -0.2154531478881836, -0.22430972754955292, 0.08140464127063751, 0.45033201575279236, -0.2508563995361328, -0.27327772974967957, 0.3267187774181366, -0.1522444784641266, -0.020919252187013626, 0.11415433138608932, 0.19515672326087952, -0.43585723638534546, -0.04338052123785019, -0.3506007194519043, 0.16649189591407776, 0.030317820608615875, 0.26906585693359375, -0.1868351697921753, 0.13154751062393188, 0.031243469566106796, -0.16034996509552002, -0.3240840435028076, 0.09188266843557358, 0.09538004547357559, 0.11462089419364929, 0.032841406762599945, -0.14555995166301727, 0.22871913015842438, 0.5416390895843506, 0.37850964069366455, 0.12631915509700775, -0.4917195439338684, 0.1369934380054474, -0.07878679782152176, -0.3929339349269867, 0.17248249053955078, 0.16712646186351776, 0.32352834939956665, -0.021594075486063957, -0.3176482021808624, 0.32614386081695557, -0.09120257198810577, 0.1724148988723755, -0.2251577377319336, -0.004194796085357666, -0.04730931669473648, -0.3193705677986145, -0.3271092474460602, -0.22245743870735168, 0.06092890724539757, -0.19864732027053833, 0.12188519537448883, -0.044771790504455566, -0.09285055100917816, -0.05251545459032059, -0.03744601830840111, -0.12822510302066803, -0.21535900235176086, 0.22419944405555725, 0.007836205884814262, 0.05706355720758438, 0.27637237310409546, 0.2924657464027405, -0.38123655319213867, -0.12344103306531906, 0.17018204927444458, -0.04027453437447548, -0.3180021345615387, -0.0707818865776062, 0.23689357936382294, -0.15640665590763092, -0.20840440690517426, -0.06692387163639069, 0.15073642134666443, -0.05028189718723297, -0.0017886124551296234, -0.36689862608909607, 0.02383606694638729, 0.14813175797462463, 0.14592929184436798, -0.05824929103255272, 0.12611263990402222, 0.3002779483795166, 0.1291312575340271, 0.09116684645414352, -0.2757437229156494, 0.3701103925704956, -0.14669139683246613, -0.056774742901325226, 0.11666015535593033, 0.25875645875930786, 0.3166128098964691, -0.11278697848320007, 0.017579255625605583, 0.17152291536331177, -0.13666431605815887, -0.11767677962779999, -0.19085824489593506, 0.11718785017728806, 0.2875852882862091, -0.4496876895427704, 0.2648271918296814, 0.06352557986974716, -0.20262031257152557, -0.0034402254968881607, -0.19847042858600616, 0.35216784477233887, -0.05807270109653473, 0.15780898928642273, 0.0009592995047569275, 0.054818544536828995, 0.04743243008852005, -0.0319833904504776, -0.01240241527557373, 0.3044798970222473, 0.03363867476582527, -0.05654314160346985, 0.031007595360279083, 0.012027740478515625, 0.026912355795502663, 0.19617706537246704, 0.15993696451187134, 0.031924474984407425, 0.291508287191391, -0.12252205610275269, 0.10605709254741669, 0.1695425659418106, 0.43822598457336426, 0.31907206773757935, -0.4295738637447357, 0.14522671699523926, 0.4860842525959015, 0.05349418520927429, -0.5471570491790771, 0.028029417619109154, 0.24532786011695862, -0.01481612492352724, 0.08115038275718689, -0.05115126818418503, 0.2155589461326599, 0.048736125230789185, 0.18181125819683075, 0.1017894446849823, 0.08181092888116837, -0.121896892786026, 0.3273102045059204, 0.2901928126811981, -0.12713304162025452, 0.0741041749715805, 0.23177938163280487, 0.12021200358867645, 0.03146751970052719, 0.25384050607681274, -0.35333120822906494, 0.03307458013296127, -0.24193567037582397, 0.1418359875679016, -0.02895684540271759, -0.1394611895084381, 0.28007590770721436, 0.0364256277680397, -0.1948034167289734, -0.04226403683423996, -0.043173640966415405, 0.4482724070549011, -0.29324430227279663, 0.1075008437037468, -0.28661149740219116, 0.3852328956127167, -0.04452621191740036, -0.011721564456820488, 0.22650349140167236, -0.12675943970680237, -0.15422546863555908, 0.0370328389108181, 0.17747630178928375, -0.49007272720336914, -0.058319151401519775, 0.05635291337966919, -0.1755252629518509, -0.4010339677333832, 0.023524703457951546, 0.04471392184495926, 0.2220674455165863, -0.03750704973936081, 0.11896912008523941, 0.31246277689933777, 0.03094637766480446, 0.1443547159433365, 0.6508995890617371, 0.47341448068618774, 0.10077470541000366, 0.017654502764344215, 0.1589120775461197, -0.24631591141223907, -0.023738298565149307, 0.07314709573984146, 0.34353041648864746, -0.051567479968070984, 0.26345691084861755, 0.3643134534358978, 0.10117485374212265, -0.2227344512939453, -0.12654565274715424, 0.016428373754024506, 0.29777440428733826, -0.48041877150535583, 0.16828420758247375, -0.439052551984787, 0.13509860634803772, -0.33478260040283203, -0.11609431356191635, -0.5434150099754333, 0.24600273370742798, 0.23720712959766388, -0.19290605187416077, -0.0687161237001419, -0.33559778332710266, 0.041612397879362106, 0.16733482480049133, 0.4701927602291107, 0.4800576865673065, 0.3164885342121124, -0.18919183313846588, -0.33063364028930664, -0.6855555772781372, 0.27085545659065247, -0.02998943254351616, -0.10164740681648254, -0.11065260320901871, -0.2343865931034088, -0.019593417644500732, 0.27936995029449463, -0.0879259705543518, 0.1944103240966797, -0.1419210284948349, -0.1863865852355957, -0.0997561514377594, -0.05677362158894539, -0.07243755459785461, 0.11250153928995132, -0.05087286978960037, -0.00493951141834259, 0.2888954281806946, -0.06528531759977341, -0.011444143950939178, 0.08471684902906418, 0.09022356569766998, -0.3323930501937866, -0.23239457607269287, 0.1822606921195984, 0.42635175585746765, 0.28006404638290405, -0.09520848095417023, -0.11448342353105545, -0.016610804945230484, -0.24182918667793274, -0.36899590492248535, 0.4573310613632202, 0.04526840150356293, 0.11664824187755585, -0.2374059110879898, -0.6158837080001831, -0.017198089510202408, 0.4475283622741699, 0.0801360011100769, 0.10018132627010345, -0.4567301869392395, 0.1645403355360031, -0.05213000625371933, -0.027648692950606346, 0.1807412952184677, 0.27093032002449036, -0.08419141173362732, 0.19023136794567108, -0.050198666751384735, -0.17095400393009186, 0.46717220544815063, -0.2722623646259308, 0.011671051383018494, -0.004362931940704584, -0.02215532958507538, 0.21764546632766724, -0.4594629108905792, -0.5640106201171875, 0.19922813773155212, 0.07435445487499237, 0.15704035758972168, 0.0017534978687763214, 0.11141158640384674, -0.2865309417247772, -0.04438738524913788, -0.043516647070646286, 0.3177618980407715, 0.36073365807533264, -0.13863514363765717, 0.4103706181049347, 0.004019156098365784 ]
https://github.com/huggingface/datasets/issues/2153
load_dataset ignoring features
Nice question which helped me a lot! I have wasted a lot of time to the `DatasetDict` creation from a csv file. Hope the document of this module add some simple examples.
First of all, I'm sorry if it is a repeated issue or the changes are already in master, I searched and I didn't find anything. I'm using datasets 1.5.0 ![image](https://user-images.githubusercontent.com/37592763/113114369-8f376580-920b-11eb-900d-94365b59f04b.png) As you can see, when I load the dataset, the ClassLabels are ignored, I have to cast the dataset in order to make it work. Code to reproduce: ```python import datasets data_location = "/data/prueba_multiclase" features = datasets.Features( {"texto": datasets.Value("string"), "label": datasets.features.ClassLabel(names=["false", "true"])} ) dataset = datasets.load_dataset( "csv", data_files=data_location, delimiter="\t", features=features ) ``` Dataset I used: [prueba_multiclase.zip](https://github.com/huggingface/datasets/files/6235022/prueba_multiclase.zip) (it has to be unzipped) Thank you! ❤️
32
load_dataset ignoring features First of all, I'm sorry if it is a repeated issue or the changes are already in master, I searched and I didn't find anything. I'm using datasets 1.5.0 ![image](https://user-images.githubusercontent.com/37592763/113114369-8f376580-920b-11eb-900d-94365b59f04b.png) As you can see, when I load the dataset, the ClassLabels are ignored, I have to cast the dataset in order to make it work. Code to reproduce: ```python import datasets data_location = "/data/prueba_multiclase" features = datasets.Features( {"texto": datasets.Value("string"), "label": datasets.features.ClassLabel(names=["false", "true"])} ) dataset = datasets.load_dataset( "csv", data_files=data_location, delimiter="\t", features=features ) ``` Dataset I used: [prueba_multiclase.zip](https://github.com/huggingface/datasets/files/6235022/prueba_multiclase.zip) (it has to be unzipped) Thank you! ❤️ Nice question which helped me a lot! I have wasted a lot of time to the `DatasetDict` creation from a csv file. Hope the document of this module add some simple examples.
[ -0.08561426401138306, -0.030491672456264496, 0.01294025033712387, 0.28421539068222046, 0.4256824851036072, 0.25316470861434937, 0.6406400203704834, -0.053947169333696365, 0.2234637588262558, 0.053324028849601746, 0.15432007610797882, 0.33632561564445496, -0.11442296952009201, 0.4599344730377197, -0.15191414952278137, -0.03122197836637497, 0.0632835105061531, 0.13892024755477905, 0.08680897951126099, -0.1416216790676117, -0.3790287673473358, 0.06614211946725845, -0.38107985258102417, -0.07480442523956299, -0.199522003531456, 0.2117881029844284, 0.02345568872988224, 0.07192091643810272, -0.02975841797888279, -0.5245151519775391, 0.41339054703712463, 0.2789027690887451, 0.3400851786136627, 0.2516961991786957, -0.00011324466322548687, -0.09074240922927856, 0.043993156403303146, -0.13357946276664734, -0.1930738389492035, -0.12581764161586761, -0.43779465556144714, -0.30494797229766846, 0.29355406761169434, -0.3018363416194916, -0.3062904477119446, 0.1707061380147934, -0.264893501996994, -0.213449627161026, -0.052928730845451355, 0.12106776982545853, 0.1923326700925827, 0.009252820163965225, -0.08710384368896484, 0.17581401765346527, 0.014390334486961365, -0.0617421418428421, -0.3258310854434967, 0.20433880388736725, 0.18565624952316284, 0.2550996243953705, -0.015344642102718353, 0.2552686631679535, -0.21436311304569244, 0.03635009378194809, 0.5101965665817261, -0.12772893905639648, -0.014543816447257996, -0.32829001545906067, 0.02382410690188408, 0.17384177446365356, 0.7974799871444702, -0.2552066445350647, -0.4845220148563385, -0.274153470993042, 0.1363135576248169, -0.4022519290447235, 0.1647413671016693, 0.09066364914178848, 0.2678413391113281, 0.18019120395183563, -0.40225300192832947, -0.06932158768177032, -0.1144450455904007, 0.04224260151386261, 0.03134901076555252, -0.023745253682136536, -0.15509596467018127, 0.13908743858337402, -0.1776060312986374, -0.016738664358854294, 0.36126837134361267, -0.2586157023906708, -0.07537323236465454, 0.23561136424541473, -0.2841075658798218, 0.16936349868774414, 0.09167472273111343, 0.13575440645217896, 0.07428809255361557, 0.13465815782546997, 0.01957990601658821, 0.2739369571208954, -0.31802448630332947, 0.12933316826820374, 0.14217925071716309, -0.002036621794104576, 0.519612193107605, 0.15705856680870056, 0.19804227352142334, 0.04850589483976364, -0.27418527007102966, 0.06496109813451767, -0.15629252791404724, -0.06747057288885117, 0.2910914123058319, 0.044810958206653595, 0.1363648772239685, -0.3723416030406952, -0.13899743556976318, 0.03186450153589249, -0.1400589644908905, -0.016248919069767, 0.11773587018251419, 0.2474845051765442, 0.0247122123837471, 0.424652099609375, 0.23545511066913605, 0.240078866481781, -0.28731387853622437, -0.328051894903183, -0.23017601668834686, -0.1649015098810196, -0.0516044944524765, 0.05369975417852402, 0.4024190306663513, 0.1722332388162613, 0.18890723586082458, -0.09355442970991135, -0.11972400546073914, -0.1503179371356964, -0.177323117852211, 0.06440392136573792, -0.012600339949131012, 0.21595965325832367, -0.10392314195632935, 0.15995553135871887, 0.18658636510372162, -0.20999383926391602, 0.020270995795726776, 0.18710239231586456, -0.20529121160507202, -0.09124832600355148, 0.1930447667837143, 0.16929134726524353, -0.3488236665725708, -0.0992196798324585, -0.46866145730018616, 0.17088019847869873, -0.03830403834581375, -0.0585591197013855, -0.0010498017072677612, -0.4762669801712036, -0.07439208775758743, -0.2339221090078354, 0.3303195834159851, 0.48010456562042236, -0.4956290125846863, -0.1252075880765915, 0.3033340871334076, -0.1631096750497818, -0.04238196462392807, -0.12867562472820282, -0.08791660517454147, 0.1719551384449005, -0.09555557370185852, -0.30045485496520996, 0.2273969054222107, -0.1882338672876358, -0.34850889444351196, -0.19453342258930206, 0.09810534119606018, 0.0058669354766607285, 0.16472944617271423, 0.30721908807754517, -0.013754501938819885, 0.0016857098089531064, -0.09815254807472229, 0.41301244497299194, 0.08150874078273773, -0.016189629212021828, -0.16480746865272522, -0.003902694210410118, 0.01530417799949646, 0.3275216519832611, -0.0128156878054142, 0.22360196709632874, 0.15353983640670776, 0.007015052251517773, 0.12344804406166077, -0.2657744288444519, 0.24171017110347748, 0.37343013286590576, 0.026252243667840958, 0.20919457077980042, 0.08030048757791519, -0.09961409121751785, -0.4244224429130554, 0.33361154794692993, 0.19694679975509644, -0.030136704444885254, 0.01432720571756363, -0.13352371752262115, 0.016488883644342422, -0.04204689711332321, -0.5998295545578003, -0.0444377101957798, 0.004373911768198013, 0.10814396291971207, -0.12825597822666168, -0.05614558607339859, -0.021124325692653656, 0.2936040163040161, -0.23297488689422607, 0.25683000683784485, -0.3175535500049591, 0.09847497940063477, 0.1104399561882019, -0.0933680385351181, -0.10498510301113129, 0.2762141227722168, 0.35932469367980957, -0.2134835124015808, -0.1395706832408905, 0.2520536482334137, 0.2794736325740814, -0.23957397043704987, -0.0033486783504486084, 0.0503886342048645, 0.15362097322940826, -0.3865441083908081, 0.03037765994668007, 0.0651872307062149, 0.25954458117485046, -0.13913699984550476, -0.4149834215641022, 0.42540597915649414, -0.1629064679145813, 0.14361241459846497, 0.07091299444437027, -0.07598457485437393, 0.39866700768470764, -0.05158502981066704, -0.12490351498126984, -0.08754867315292358, 0.01205383613705635, -0.006501290947198868, 0.25231945514678955, 0.2596166133880615, -0.42978185415267944, 0.1778022050857544, 0.338262140750885, 0.023080743849277496, -0.06864365190267563, -0.05024602264165878, -0.17786508798599243, 0.08489324152469635, 0.2156614363193512, 0.060967933386564255, 0.24900877475738525, 0.24346639215946198, -0.06819021701812744, 0.0026714615523815155, -0.05392053723335266, -0.08836271613836288, 0.26464569568634033, -0.027272477746009827, -0.05859227105975151, -0.04592110961675644, 0.12818795442581177, 0.07314120978116989, -0.29912057518959045, -0.1569279283285141, 0.08643251657485962, -0.05428825318813324, -0.558756411075592, -0.016246765851974487, -0.18954095244407654, 0.04460832476615906, -0.18004465103149414, -0.11814691871404648, -0.21307136118412018, -0.27180349826812744, -0.1732320785522461, 0.3825274705886841, 0.03054163232445717, 0.06273644417524338, -0.4193846583366394, 0.10776573419570923, 0.08943746984004974, -0.5412780046463013, 0.22050407528877258, 0.1355540007352829, -0.4152525067329407, -0.029872899875044823, -0.10848025232553482, 0.23680105805397034, 0.21618765592575073, -0.13246381282806396, 0.10838723927736282, -0.21846210956573486, -0.2653660178184509, 0.03878633677959442, -0.24682040512561798, 0.0459495484828949, 0.008916206657886505, -0.06799063086509705, -0.05514506250619888, 0.14206834137439728, 0.37854546308517456, 0.07632310688495636, 0.0598125234246254, 0.24378898739814758, 0.20707212388515472, -0.23850543797016144, -0.27696457505226135, -0.5045170783996582, -0.16148877143859863, -0.39608487486839294, 0.04137539491057396, 0.09468699991703033, -0.25164538621902466, 0.13890700042247772, 0.0573674775660038, 0.1830512285232544, 0.28097859025001526, 0.15401040017604828, -0.031025057658553123, -0.2355819046497345, 0.34941819310188293, -0.15011505782604218, -0.2869125306606293, 0.11171567440032959, -0.05878814309835434, -0.05398987606167793, 0.0010019484907388687, -0.3663872480392456, 0.08897589892148972, -0.08960501849651337, 0.39015600085258484, 0.21982726454734802, 0.1605474352836609, 0.3285787105560303, 0.24606510996818542, 0.10373625159263611, -0.239000141620636, -0.36633437871932983, 0.08325875550508499, -0.062027707695961, 0.19144225120544434, -0.07775340229272842, 0.11068134009838104, -0.24501009285449982, 0.3476117253303528, -0.013887316919863224, 0.002870555967092514, 0.475025475025177, -0.06421003490686417, 0.27767646312713623, -0.15576797723770142, -0.28773626685142517, 0.050753988325595856, -0.23032569885253906, 0.011908207088708878, 0.2468533217906952, 0.1611822247505188, 0.05019230395555496, -0.2115146517753601, 0.2637026309967041, -0.20981380343437195, -0.15819460153579712, -0.14512883126735687, -0.1216767430305481, 0.10397890210151672, 0.0837811529636383, 0.2170708179473877, -0.16753187775611877, -0.16316741704940796, -0.2661847174167633, 0.22136881947517395, -0.004587069153785706, 0.010226883925497532, -0.5514550805091858, -0.1828894168138504, -0.05533837527036667, 0.09381340444087982, -0.05803139507770538, 0.18722374737262726, 0.02611910179257393, 0.05608636885881424, 0.09337674826383591, 0.1057458221912384, 0.573401689529419, -0.3399973213672638, 0.29285305738449097, 0.39230790734291077, 0.11418108642101288, -0.22911685705184937, -0.21485348045825958, -0.1900697946548462, -0.10290314257144928, -0.08810779452323914, 0.09207430481910706, -0.10492869466543198, -0.26057955622673035, 0.13149195909500122, 0.49264129996299744, -0.20596195757389069, -0.061534564942121506, -0.272127240896225, -0.16462552547454834, -0.23559585213661194, -0.20330891013145447, 0.0396522581577301, 0.37048929929733276, -0.4324607849121094, -0.009145412594079971, -0.10533976554870605, -0.05230189859867096, 0.1303984820842743, 0.23260383307933807, 0.22243407368659973, 0.1291310340166092, 0.40589576959609985, -0.022981569170951843, 0.08526132255792618, 0.21547074615955353, 0.7898679375648499, -0.07791663706302643, -0.9518974423408508, 0.06846247613430023, -0.418226033449173, 0.52473384141922, -0.07628341019153595, -0.020366471260786057, -0.2259804904460907, -0.09069201350212097, -0.07321387529373169, -0.2362549602985382, 0.11951611936092377, 0.19828252494335175, 0.10512618720531464, -0.43629640340805054, -0.5934208631515503, 0.4223228991031647, -0.18479211628437042, -0.08754286170005798, 0.027515459805727005, 0.006517641246318817, -0.526380181312561, 0.3839452862739563, 0.004307791590690613, 0.5469953417778015, -0.06523410975933075, 0.20617078244686127, 0.1642446219921112, 0.13268013298511505, 0.5669637322425842, 0.16449767351150513, 0.12493162602186203, -0.3096994161605835, -0.2729046940803528, -0.08011677861213684, -0.04626496136188507, 0.2010447084903717, 0.537355899810791, -0.12475059926509857, 0.3956955373287201, -0.22903916239738464, -0.22708171606063843, -0.003567710518836975, 0.21816253662109375, 0.37147122621536255, -0.3578473627567291, -0.15284261107444763, 0.1190255731344223, -0.08800463378429413, 0.019283855333924294, 0.08275192230939865, 0.10176438838243484, -0.07919319719076157, -0.06933945417404175, -0.07847804576158524, 0.25885146856307983, 0.0013757473789155483, 0.08041909337043762, -0.006196744740009308, -0.0992327481508255, 0.33029142022132874, 0.44868332147598267, 0.35060983896255493, 0.11478573083877563, -0.16483144462108612, 0.11788417398929596, 0.06044511869549751, 0.1746527999639511, -0.012487282045185566, 0.09167514741420746, 0.45824480056762695, 0.14422816038131714, -0.2612520754337311, -0.08616051822900772, -0.18981193006038666, -0.16286534070968628, -0.025283455848693848, -0.08302874863147736, 0.20349913835525513, -0.5895332098007202, -0.20815911889076233, -0.14799855649471283, 0.2661505341529846, -0.3238857686519623, 0.1126798689365387, 0.09572634100914001, -0.020556408911943436, 0.16441327333450317, -0.01152566447854042, -0.3165322244167328, -0.1929319053888321, 0.25158756971359253, -0.045009978115558624, 0.034744635224342346, 0.5573703050613403, 0.35304543375968933, -0.03198939934372902, -0.14566081762313843, 0.2625562250614166, 0.3961200416088104, -0.39019718766212463, -0.10408525168895721, 0.4095885753631592, -0.1070692166686058, 0.22391071915626526, 0.5827166438102722, -0.1966194063425064, -0.1878962516784668, -0.014609474688768387, -0.4081912636756897, -0.19601351022720337, 0.005468577146530151, -0.08461718261241913, 0.1680944412946701, 0.22362470626831055, 0.16632243990898132, 0.2781645953655243, -0.2066335678100586, -0.21282744407653809, -0.16603124141693115, -0.2861819863319397, 0.01904226467013359, 0.351383775472641, 0.34765899181365967, -0.14036788046360016, -0.008921630680561066, 0.15203042328357697, -0.2583587169647217, -0.08689749985933304, -0.14228886365890503, -0.19358226656913757, 0.12732131779193878, 0.14298471808433533, 0.2857294976711273, -0.26401036977767944, -0.3534659743309021, -0.1489557921886444, -0.2576413154602051, 0.15264897048473358, 0.1386086642742157, 0.1096445769071579, 0.4580557942390442, -0.34826788306236267, 0.415503591299057, -0.20809292793273926, 0.006549732759594917, -0.1936618983745575, -0.07992762327194214, 0.24590976536273956, 0.006764020770788193, 0.14440208673477173, 0.06321452558040619, -0.3804647922515869, -0.03840119391679764, -0.23319052159786224, 0.04614127427339554, 0.28465405106544495, -0.39492857456207275, 0.4182248115539551, 0.3276236355304718, 0.17505885660648346, 0.19716599583625793, -0.06232919171452522, -0.06640472263097763, 0.14128679037094116, 0.2240268439054489, -0.4584304392337799, -0.36299288272857666, 0.1607580929994583, -0.007813750766217709, 0.03821069374680519, 0.3136923313140869, -0.11719514429569244, 0.10666301846504211, -0.06513319909572601, 0.034041404724121094, 0.6418434381484985, -0.04159355163574219, 0.21165482699871063, 0.3595905601978302, -0.04253130778670311, 0.17777176201343536, 0.3617371618747711, 0.36749041080474854, -0.048147521913051605, 0.4969021677970886, 0.06964728236198425, 0.11435604095458984, 0.14963161945343018, 0.34245723485946655, -0.12399127334356308, -0.4713839292526245, 0.292988657951355, -0.16534826159477234, -0.2640784978866577, 0.14711469411849976, -0.2910417318344116, 0.05639602616429329, -0.7303276062011719, -0.34485921263694763, -0.02919834665954113, -0.08535313606262207, -0.06686105579137802, -0.07544142007827759, -0.1401505470275879, -0.06523638963699341, 0.2003006935119629, -0.10637007653713226, -0.0792103260755539, -0.11534038186073303, 0.34156373143196106, -0.13856762647628784, -0.01844964176416397, -0.5109070539474487, -0.08918500691652298, -0.043059468269348145, 0.1336766928434372, -0.029396632686257362, 0.23399950563907623, -0.17499925196170807, -0.09568144381046295, 0.2588128447532654, 0.009280288591980934, 0.10541225969791412, 0.23173321783542633, 0.19319485127925873, -0.15063083171844482, -0.3097063899040222, -0.07959727942943573, -0.13945209980010986, 0.23788399994373322, 0.05474568158388138, 0.23465171456336975, 0.09779265522956848, 0.09976819902658463, -0.0947735458612442, 0.15362942218780518, 0.18206724524497986, 0.15230250358581543, -0.38203081488609314, 0.5445274114608765, 0.2070103883743286, -0.3416912257671356, -0.05597786605358124, -0.029506735503673553, -0.18540671467781067, -0.08748733997344971, 0.482420414686203, 0.09963585436344147, 0.11882776767015457, -0.004925629124045372, 0.061628326773643494, 0.20649366080760956, 0.24762795865535736, 0.27706336975097656, 0.005552895367145538, -0.15933316946029663, 0.3928474187850952, -0.7810739874839783, 0.06166689842939377, 0.2918813228607178, -0.29076236486434937, 0.31857359409332275, 0.04182653874158859, 0.33774077892303467, -0.02682679146528244, -0.08790820837020874, 0.0872555524110794, 0.35989296436309814, -0.05202972888946533, -0.18595582246780396, -0.1271452158689499, 0.046393975615501404, 0.34353217482566833, -0.2045232653617859, -0.416146844625473, 0.2103683352470398, -0.03271865099668503, -0.038015708327293396, 0.016593892127275467, 0.041206151247024536, 0.293100506067276, -0.09279750287532806, 0.18879829347133636, -0.13015104830265045, 0.5564446449279785, 0.003366362303495407, 0.08939933031797409, -0.11958062648773193, -0.15187925100326538, -0.08515312522649765, 0.30022311210632324, -0.10612313449382782, 0.5048049688339233, -0.2135784775018692, 0.15928667783737183, -0.160782590508461, 0.1998843103647232, 0.3464806079864502, 0.012696356512606144, -0.3018127977848053, 0.37847447395324707, -0.27027714252471924, 0.12058286368846893, 0.268062561750412, 0.11732606589794159, -0.10001733899116516, 0.04063369333744049, 0.04586562514305115, -0.3424758315086365, 0.29596614837646484, -0.4661598205566406, -0.3100437521934509, -0.10481110215187073, 0.2468157708644867, -0.1140739694237709, -0.054451629519462585, -0.6054851412773132, 0.052915506064891815, 0.44273656606674194, -0.03875619173049927, -0.5960952043533325, 0.3080439567565918, -0.17715899646282196, 0.009686816483736038, -0.06621310114860535, 0.2158689796924591, -0.051997505128383636, -0.034867435693740845, 0.09660699963569641, -0.06496099382638931 ]
https://github.com/huggingface/datasets/issues/2148
Add configurable options to `seqeval` metric
Hi @marrodion. Thanks for pointing this out. It would be great to incorporate this metric-specific enhancement. Another possibility would be to require the user to input the scheme as a string `mode="strict", scheme="IOB2"` and then dynamically import the corresponding module using Python `importlib`: ```python if scheme: scheme = importlib.import_module(f"seqeval.scheme.{scheme}") ``` Feel free to create a Pull Request to make this contribution.
Right now `load_metric("seqeval")` only works in the default mode of evaluation (equivalent to conll evaluation). However, seqeval library [supports](https://github.com/chakki-works/seqeval#support-features) different evaluation schemes (IOB1, IOB2, etc.), which can be plugged in just by supporting additional kwargs in `Seqeval._compute` https://github.com/huggingface/datasets/blob/85cf7ff920c90ca2e12bedca12b36d2a043c3da2/metrics/seqeval/seqeval.py#L109 Things that would be relevant are, for example, supporting `mode="strict", scheme=IOB2` to count only full entity match as a true positive and omit partial matches. The only problem I see is that the spirit of `metrics` seems to not require additional imports from user. `seqeval` only supports schemes as objects, without any string aliases. It can be solved naively with mapping like `{"IOB2": seqeval.scheme.IOB2}`. Or just left as is and require user to explicitly import scheme from `seqeval` if he wants to configure it past the default implementation. If that makes sense, I am happy to implement the change.
61
Add configurable options to `seqeval` metric Right now `load_metric("seqeval")` only works in the default mode of evaluation (equivalent to conll evaluation). However, seqeval library [supports](https://github.com/chakki-works/seqeval#support-features) different evaluation schemes (IOB1, IOB2, etc.), which can be plugged in just by supporting additional kwargs in `Seqeval._compute` https://github.com/huggingface/datasets/blob/85cf7ff920c90ca2e12bedca12b36d2a043c3da2/metrics/seqeval/seqeval.py#L109 Things that would be relevant are, for example, supporting `mode="strict", scheme=IOB2` to count only full entity match as a true positive and omit partial matches. The only problem I see is that the spirit of `metrics` seems to not require additional imports from user. `seqeval` only supports schemes as objects, without any string aliases. It can be solved naively with mapping like `{"IOB2": seqeval.scheme.IOB2}`. Or just left as is and require user to explicitly import scheme from `seqeval` if he wants to configure it past the default implementation. If that makes sense, I am happy to implement the change. Hi @marrodion. Thanks for pointing this out. It would be great to incorporate this metric-specific enhancement. Another possibility would be to require the user to input the scheme as a string `mode="strict", scheme="IOB2"` and then dynamically import the corresponding module using Python `importlib`: ```python if scheme: scheme = importlib.import_module(f"seqeval.scheme.{scheme}") ``` Feel free to create a Pull Request to make this contribution.
[ -0.4404144883155823, 0.1902088224887848, -0.08451555669307709, -0.16255803406238556, 0.07494734227657318, -0.16458293795585632, 0.14902140200138092, 0.24983249604701996, -0.08360864222049713, 0.3530946969985962, -0.4670088291168213, 0.248655304312706, -0.032320402562618256, 0.26938503980636597, 0.07189269363880157, 0.31659364700317383, -0.28188520669937134, -0.04262484610080719, 0.0006639808416366577, 0.10872995853424072, -0.552980899810791, -0.011778255924582481, -0.10303079336881638, -0.15207310020923615, 0.06098238751292229, 0.29063835740089417, 0.05605163425207138, -0.02262774109840393, -0.12544168531894684, -0.5280547142028809, 0.01759183220565319, 0.4460298717021942, -0.2212209552526474, -0.06015671044588089, -0.00010788365034386516, -0.15811295807361603, 0.1689361035823822, -0.22602076828479767, -0.20903313159942627, -0.08443450927734375, -0.3633290231227875, -0.2911672294139862, 0.30622437596321106, -0.2748050391674042, 0.038880854845047, 0.26600930094718933, -0.016556916758418083, -0.11616609245538712, 0.03702663630247116, 0.19915299117565155, 0.18335643410682678, 0.11829547584056854, -0.12182113528251648, -0.062190648168325424, -0.20977497100830078, -0.03935100883245468, -0.1454714685678482, 0.36636579036712646, 0.082575723528862, 0.2260628193616867, -0.147507905960083, 0.0548124834895134, -0.08253444731235504, -0.24244578182697296, 0.2761704921722412, -0.11937234550714493, 0.6835107207298279, -0.049072280526161194, -0.010148484259843826, 0.35307878255844116, 0.2922005355358124, -0.13816949725151062, -0.3030596971511841, -0.13828028738498688, 0.0993463322520256, -0.6759467124938965, 0.14662814140319824, -0.0960860550403595, -0.10308675467967987, -0.08269621431827545, -0.14796514809131622, -0.033458877354860306, -0.30226555466651917, 0.07470284402370453, -0.2574523687362671, 0.3939164876937866, 0.10316236317157745, -0.06494983285665512, 0.35413578152656555, -0.08736585825681686, -0.28090178966522217, 0.12702830135822296, -0.06658907234668732, 0.1656544953584671, -0.7408685088157654, -0.14774379134178162, -0.018347911536693573, -0.181503027677536, 0.2883768379688263, 0.16825497150421143, 0.17247551679611206, 0.4368014931678772, 0.2517397105693817, 0.35413092374801636, -0.021023225039243698, 0.34325170516967773, 0.31318601965904236, -0.011235248297452927, 0.2474580556154251, 0.02483762614428997, 0.37149015069007874, -0.000412527471780777, 0.009016809053719044, -0.6599246263504028, 0.06792086362838745, 0.11593921482563019, -0.14856331050395966, -0.23986436426639557, -0.4179396629333496, -0.15822289884090424, -0.0586346872150898, -0.11130063980817795, 0.5018103122711182, 0.12351004034280777, -0.11559959501028061, -0.08950788527727127, 0.019227799028158188, 0.43787920475006104, -0.145870640873909, -0.097955122590065, 0.016352739185094833, 0.041167162358760834, 0.20457667112350464, 0.06218712031841278, 0.24875207245349884, -0.36781662702560425, 0.13031825423240662, -0.049068596214056015, 0.4444541335105896, -0.16599135100841522, 0.14601291716098785, 0.10062648355960846, -0.20697373151779175, 0.07889670133590698, -0.1332622468471527, -0.42185500264167786, 0.09162834286689758, -0.2899059057235718, -0.40190163254737854, -0.07141876965761185, -0.1759268343448639, -0.4768916964530945, 0.06165316328406334, 0.22529542446136475, -0.5246812105178833, -0.013011552393436432, -0.00813271850347519, 0.8326739072799683, -0.3221266269683838, 0.014143947511911392, -0.047621481120586395, 0.12765246629714966, -0.4847739636898041, -0.08895383030176163, 0.5480531454086304, 0.3216397166252136, -0.22203126549720764, -0.2398311048746109, -0.25511419773101807, -0.07941368222236633, -0.2599940299987793, -0.20220452547073364, -0.06023933365941048, 0.08373403549194336, 0.031189708039164543, -0.028474118560552597, 0.7662082314491272, -0.42225754261016846, -0.021045254543423653, -0.08032412827014923, 0.11194546520709991, -0.22728629410266876, 0.132376030087471, -0.0373111329972744, 0.35767924785614014, 0.004909878131002188, 0.0843077152967453, 0.2205333560705185, 0.16161449253559113, -0.2613900303840637, -0.26687750220298767, -0.2711866796016693, -0.2316742092370987, 0.17849041521549225, 0.39565858244895935, -0.035117007791996, 0.3203667104244232, -0.006506326142698526, -0.21609151363372803, -0.035771097987890244, 0.11517597734928131, 0.06184771656990051, 0.20124895870685577, -0.11309082806110382, 0.0918780118227005, -0.12341244518756866, 0.06004934757947922, 0.21829631924629211, -0.09041959047317505, 0.04803222417831421, 0.1216682568192482, -0.11279582977294922, -0.4679357409477234, 0.05591750144958496, -0.18985091149806976, 0.0555301308631897, 0.20894722640514374, -0.326933890581131, -0.03425005078315735, 0.11590470373630524, 0.002093832939863205, 0.09133860468864441, 0.27931952476501465, 0.08629891276359558, -0.013988737016916275, -0.0003466792404651642, 0.2114744484424591, 0.056786663830280304, 0.20875144004821777, 0.41657647490501404, 0.1913338303565979, 0.25936368107795715, -0.10916413366794586, 0.4110059142112732, -0.0502910390496254, 0.18412810564041138, -0.015085749328136444, 0.5559143424034119, 0.06837759912014008, 0.006589684635400772, 0.05192907154560089, -0.051652561873197556, 0.061186835169792175, -0.0641515776515007, -0.23679858446121216, 0.5868174433708191, -0.07947596907615662, 0.23561587929725647, -0.34249556064605713, 0.06488263607025146, 0.13193757832050323, -0.09533125162124634, -0.5527427196502686, -0.30628108978271484, 0.10044801235198975, -0.013266753405332565, 0.2669742703437805, 0.056655824184417725, 0.05823740363121033, -0.377233624458313, -0.15560926496982574, 0.1259271502494812, 0.14135891199111938, 0.15817098319530487, 0.06610244512557983, -0.20525097846984863, 0.038220398128032684, -0.46629226207733154, 0.2903062701225281, 0.21502342820167542, 0.015453271567821503, -0.04703447222709656, -0.23438777029514313, -0.0794961079955101, 0.33403071761131287, 0.15727682411670685, 0.01582220010459423, 0.21306371688842773, 0.3205016255378723, -0.2190813273191452, -0.31358206272125244, -0.08005762845277786, 0.04091247171163559, -0.04224325716495514, -0.3572460114955902, -0.09431978315114975, -0.1978916972875595, 0.24500030279159546, 0.17177006602287292, 0.04603563994169235, -0.20257525146007538, -0.4122637212276459, 0.5190326571464539, 0.20285464823246002, -0.17206284403800964, 0.18028531968593597, -0.11512774229049683, 0.3317417502403259, -0.04430568963289261, -0.4356970489025116, -0.1409582942724228, -0.18177159130573273, 0.09405186027288437, 0.09569574892520905, 0.005735230632126331, 0.10297566652297974, 0.3749673366546631, -0.06758921593427658, 0.2991306781768799, 0.035555265843868256, -0.6364484429359436, -0.023980364203453064, 0.22682605683803558, 0.5722032189369202, 0.15523841977119446, -0.4056132435798645, -0.06925425678491592, -0.0509047657251358, 0.22313818335533142, 0.20376084744930267, -0.006118103861808777, 0.41361379623413086, -0.06096424534916878, 0.2502988576889038, -0.22197864949703217, 0.01780092716217041, 0.10002440959215164, -0.5327188372612, 0.24535667896270752, 0.05943910405039787, -0.007885463535785675, 0.0686219334602356, 0.1769716888666153, 0.05620783939957619, 0.11124169081449509, 0.1771617978811264, -0.14249946177005768, 0.19277408719062805, 0.4930689036846161, -0.2048598974943161, -0.03413974121212959, 0.07726140320301056, -0.27851903438568115, 0.45517969131469727, 0.07987501472234726, -0.1620343029499054, -0.5353209972381592, 0.3236711323261261, 0.21797862648963928, -0.06053028255701065, -0.4171500504016876, 0.031184352934360504, 0.18096187710762024, 0.023363454267382622, -0.05550920218229294, -0.1814022809267044, 0.29893025755882263, 0.15835031867027283, 0.13387329876422882, -0.011519070714712143, 0.21644097566604614, 0.16551251709461212, 0.05621337890625, -0.02088162861764431, 0.2980595827102661, 0.09869438409805298, 0.03524618595838547, 0.2259937822818756, 0.15113072097301483, -0.08410497009754181, 0.19948311150074005, 0.3487311899662018, -0.16577821969985962, 0.38281136751174927, 0.2678936719894409, 0.16506589949131012, -0.2781140208244324, -0.12243549525737762, 0.12283235043287277, -0.29812854528427124, 0.12245138734579086, -0.24936574697494507, 0.24791491031646729, -0.13628444075584412, -0.07326318323612213, -0.32058215141296387, -0.05068032070994377, 0.1360853761434555, 0.3659796118736267, -0.021237149834632874, 0.048064034432172775, 0.12034691870212555, 0.22674520313739777, -0.18174061179161072, 0.2449275106191635, -0.28223487734794617, -0.1319657415151596, 0.1585788130760193, 0.0025971196591854095, 0.1485467106103897, 0.09062837809324265, 0.4362584948539734, -0.16548943519592285, -0.20845328271389008, 0.18889956176280975, -0.0820997953414917, -0.5329557657241821, 0.03566213324666023, -0.034951984882354736, -0.4825756549835205, 0.2373020350933075, 0.23422706127166748, -0.6754449605941772, -0.05953343212604523, 0.12159375846385956, 0.1488146185874939, -0.24912600219249725, -0.3720692992210388, -0.24919477105140686, -0.16615030169487, -0.18504242599010468, 0.17674461007118225, -0.041234057396650314, 0.2086205929517746, 0.058241263031959534, 0.02782152220606804, -0.2370101362466812, -0.20623254776000977, 0.23507660627365112, 0.2506459653377533, 0.1796317994594574, -0.2191857099533081, 0.2529245615005493, 0.13439008593559265, -0.2753549814224243, -0.03824107348918915, 0.05609130859375, 0.11884933710098267, -0.5144648551940918, 0.1194530576467514, -0.09954847395420074, 0.4271163046360016, -0.014253586530685425, -0.08422742784023285, 0.10472577065229416, -0.41693544387817383, 0.0466156005859375, -0.24163377285003662, 0.23427025973796844, 0.10228508710861206, 0.13878360390663147, 0.07184011489152908, -0.23001158237457275, 0.7161650061607361, 0.03345710411667824, -0.3667720556259155, -0.340056836605072, -0.19412587583065033, -0.2762600779533386, 0.12698417901992798, 0.537196159362793, 0.6189165115356445, -0.2297580987215042, -0.42302268743515015, 0.19059541821479797, -0.15760275721549988, 0.17870867252349854, -0.2520563006401062, 0.06491097062826157, -0.16930672526359558, 0.30384641885757446, 0.11483976244926453, 0.09615740180015564, 0.1213558167219162, 0.0285857692360878, -0.32295531034469604, 0.26230135560035706, -0.08764491975307465, -0.12668126821517944, 0.07312832027673721, 0.1338576227426529, -0.1751510053873062, -0.3573802411556244, -0.18636950850486755, 0.15569762885570526, -0.06010553985834122, -0.1517748087644577, 0.09368079155683517, -0.11704793572425842, 0.13345886766910553, 0.05236615240573883, 0.07798153162002563, -0.33012786507606506, -0.14859813451766968, 0.07181066274642944, -0.1227504312992096, -0.13408184051513672, 0.1538655012845993, 0.367794394493103, 0.31590670347213745, 0.2506951689720154, -0.21920795738697052, 0.06880073249340057, -0.12068476527929306, 0.4233393967151642, 0.1289048194885254, 0.020571164786815643, 0.06752444803714752, -0.17250186204910278, -0.02508818358182907, 0.14015159010887146, 0.009818668477237225, -0.2661958932876587, 0.14127308130264282, 0.0608116015791893, 0.256672739982605, 0.0033594262786209583, 0.2854261100292206, -0.22577118873596191, 0.28389304876327515, -0.15380141139030457, 0.1529940664768219, 0.25566616654396057, 0.027881473302841187, 0.27983009815216064, -0.029474858194589615, -0.2504779100418091, -0.022610336542129517, 0.03596903383731842, -0.1192765012383461, -0.00341121107339859, 0.11091920733451843, -0.5640183687210083, -0.026992343366146088, -0.07855082303285599, -0.2152324914932251, -0.35892781615257263, -0.24812445044517517, 0.1937834620475769, 0.23457790911197662, -0.23137715458869934, 0.07457097619771957, 0.3725793957710266, 0.16769039630889893, -0.09971033781766891, 0.08976924419403076, -0.1951105296611786, -0.05834880471229553, 0.22835682332515717, -0.05347893014550209, 0.17990238964557648, -0.3127807080745697, 0.1394999921321869, -0.39117518067359924, 0.12892867624759674, -0.36970165371894836, -0.27735114097595215, -0.0878169983625412, 0.16679511964321136, -0.1807762235403061, 0.1421959102153778, -0.03884662315249443, 0.2374236136674881, 0.12205986678600311, 0.03819674998521805, -0.40782102942466736, -0.15035410225391388, -0.4157821536064148, 0.11823173612356186, -0.22598141431808472, 0.28529873490333557, 0.05478743091225624, 0.15163227915763855, -0.1848931908607483, -0.3355189859867096, -0.11514289677143097, 0.15122422575950623, -0.2504042983055115, 0.03277380391955376, -0.012063395231962204, 0.25323957204818726, 0.042680345475673676, 0.088467076420784, 0.07615317404270172, 0.0691099613904953, -0.24451994895935059, 0.4089045524597168, -0.4262245297431946, 0.0013447180390357971, 0.3232173025608063, 0.23788994550704956, 0.14437933266162872, -0.26533445715904236, 0.07359591871500015, 0.40129613876342773, -0.07278400659561157, 0.05489677935838699, 0.1699574738740921, 0.2629701495170593, 0.08510756492614746, -0.03242523595690727, 0.0058324020355939865, 0.21335527300834656, -0.20159202814102173, 0.11526444554328918, -0.37768256664276123, -0.13561023771762848, 0.3888047933578491, 0.40750622749328613, 0.499236136674881, -0.23985521495342255, 0.6050271391868591, -0.0692228376865387, 0.02704038843512535, 0.017913296818733215, 0.08923272788524628, 0.10727083683013916, -0.18238990008831024, 0.1261913925409317, 0.6123810410499573, -0.029622294008731842, 0.3305942714214325, -0.2045365422964096, -0.2899584472179413, 0.03316503390669823, -0.0681627169251442, 0.2578573226928711, 0.015705525875091553, 0.01740855723619461, 0.2866867482662201, 0.036859892308712006, -0.23323896527290344, 0.09286579489707947, 0.00509362667798996, 0.3247482478618622, -0.1984856277704239, 0.08082860708236694, -0.3066543638706207, 0.029047943651676178, 0.15744948387145996, -0.19035403430461884, -0.1305326521396637, -0.43495702743530273, -0.22365999221801758, -0.11163313686847687, 0.12099359929561615, -0.27704912424087524, -0.06106512248516083, 0.08204309642314911, 0.45538562536239624, -0.13701938092708588, -0.07929780334234238, 0.33570894598960876, 0.2150692641735077, -0.32426804304122925, -0.002811262384057045, 0.12782353162765503, 0.033507090061903, 0.4683332145214081, 0.33012527227401733, 0.08626710623502731, -0.027718622237443924, 0.09599292278289795, -0.2647828459739685, -0.19955842196941376, 0.05466144531965256, -0.25626522302627563, 0.079241082072258, 0.22680790722370148, -0.22331775724887848, 0.37836411595344543, 0.16491453349590302, -0.18772974610328674, 0.2148338407278061, -0.34577348828315735, 0.02386355772614479, -0.6392328143119812, 0.08739335834980011, 0.4923710823059082, 0.01242896169424057, 0.029332920908927917, -0.42526498436927795, 0.029337532818317413, -0.3556753695011139, -0.13384860754013062, -0.005188103765249252, 0.09812410175800323, -0.08434510231018066, 0.12542098760604858, 0.11431099474430084, -0.05389729514718056, -0.18149037659168243, -0.32653045654296875, -0.15672935545444489, 0.1709607094526291, -0.6458708047866821, 0.005264952778816223, 0.3642021715641022, 0.0321771502494812, 0.19042670726776123, 0.0564563050866127, -0.10808674246072769, 0.43742620944976807, -0.21797458827495575, -0.30415940284729004, 0.27445748448371887, -0.11279281973838806, -0.33866167068481445, -0.024566475301980972, 0.14906808733940125, -0.08366596698760986, 0.0014883633702993393, 0.02830979973077774, -0.00020322948694229126, -0.31065624952316284, 0.13917621970176697, -0.06634074449539185, -0.08546268194913864, 0.30350595712661743, 0.293544203042984, 0.1796833872795105, 0.15820369124412537, 0.31545817852020264, -0.13807442784309387, 0.30689311027526855, -0.03220965340733528, 0.09930266439914703, -0.1724684238433838, -0.0504155233502388, -0.12013091146945953, 0.12117937207221985, -0.025784168392419815, -0.14132672548294067, 0.043855056166648865, 0.5314905047416687, 0.0005546323955059052, -0.6094725131988525, -0.007051281165331602, 0.05451028048992157, 0.18061062693595886, 0.02970479428768158, -0.2594842314720154, 0.27967965602874756, 0.210225909948349, 0.1567273885011673, 0.06367355585098267, -0.18608088791370392, 0.2762586176395416, -0.17379485070705414, -0.03883237764239311, -0.056223832070827484, 0.3350421190261841, 0.4395313858985901, 0.15416495501995087, -0.14884375035762787, -0.030366450548171997, 0.4258216917514801, 0.24231678247451782, 0.13917550444602966, 0.43872109055519104, 0.03533557057380676, -0.022817770019173622, -0.249227836728096, -0.37566041946411133, 0.13600492477416992, 0.266622394323349, -0.028733231127262115, -0.21729542315006256 ]
https://github.com/huggingface/datasets/issues/2146
Dataset file size on disk is very large with 3D Array
Hi ! In the arrow file we store all the integers as uint8. So your arrow file should weigh around `height x width x n_channels x n_images` bytes. What feature type do your TFDS dataset have ? If it uses a `tfds.features.Image` type, then what is stored is the encoded data (as png or jpg for example). Since these encodings are made for compression, the resulting tfrecord is smaller that the arrow file. We are working on adding a similar feature in `datasets`: the ability to store the encoded data instead of the raw integers for images, but also for audio data. This way, arrow files will have similar sizes as tfrecords for images.
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
114
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. Hi ! In the arrow file we store all the integers as uint8. So your arrow file should weigh around `height x width x n_channels x n_images` bytes. What feature type do your TFDS dataset have ? If it uses a `tfds.features.Image` type, then what is stored is the encoded data (as png or jpg for example). Since these encodings are made for compression, the resulting tfrecord is smaller that the arrow file. We are working on adding a similar feature in `datasets`: the ability to store the encoded data instead of the raw integers for images, but also for audio data. This way, arrow files will have similar sizes as tfrecords for images.
[ -0.14527370035648346, -0.11326321959495544, -0.15441793203353882, 0.4201556444168091, 0.2135637104511261, 0.11391321569681168, 0.5066814422607422, 0.2730785608291626, 0.020523294806480408, 0.03584757447242737, -0.1937045007944107, 0.0874154344201088, -0.1694583147764206, 0.31504425406455994, 0.06775014847517014, 0.10068812966346741, -0.07451743632555008, 0.25139838457107544, -0.13347862660884857, -0.08572021126747131, -0.009700402617454529, 0.019117796793580055, -0.01790953427553177, -0.18380673229694366, -0.06156212463974953, -0.16138315200805664, 0.09134972095489502, -0.024185143411159515, -0.08309819549322128, 0.07972723245620728, 0.24497835338115692, -0.08801163733005524, 0.17819981276988983, 0.5363881587982178, -0.00011738437024177983, 0.05027664452791214, 0.10829384624958038, -0.16553199291229248, 0.07918661832809448, 0.28935059905052185, -0.0925559550523758, -0.409506231546402, -0.07466698437929153, -0.3576085567474365, 0.07695842534303665, -0.3249553143978119, -0.15211747586727142, -0.1535455584526062, 0.18488967418670654, 0.0791000947356224, 0.21104557812213898, 0.15330490469932556, -0.027113543823361397, 0.415045827627182, 0.0993780568242073, 0.5338883399963379, -0.15334609150886536, 0.12685570120811462, -0.14353875815868378, 0.4372022747993469, 0.0842975452542305, 0.07955045998096466, 0.16135886311531067, 0.2877248227596283, 0.5040508508682251, -0.05551759898662567, 0.23921135067939758, -0.24619188904762268, 0.12989374995231628, 0.4001131057739258, 0.8583661317825317, -0.2007373869419098, -0.18428057432174683, -0.3255719244480133, -0.10833020508289337, -0.032338786870241165, 0.022541038691997528, 0.38006338477134705, -0.04989016056060791, 0.021931223571300507, -0.6522027254104614, -0.13922472298145294, -0.22694167494773865, 0.1455020010471344, -0.21365340054035187, -0.4809679687023163, -0.13809022307395935, 0.1503390073776245, -0.18900111317634583, -0.2658364176750183, 0.260778546333313, -0.39559242129325867, 0.07343761622905731, -0.0997145026922226, -0.26596584916114807, -0.2101805955171585, -0.2905137836933136, -0.3803427219390869, 0.3530273139476776, -0.15380585193634033, -0.010828179307281971, -0.15199381113052368, -0.36489322781562805, -0.14774170517921448, 0.10398487746715546, 0.3860372304916382, -0.4768468737602234, -0.13859771192073822, -0.14186790585517883, -0.29509061574935913, -0.040881719440221786, -0.05229455977678299, -0.246537983417511, -0.09075739979743958, 0.19863338768482208, -0.4835403263568878, 0.06393661350011826, -0.06186700984835625, 0.04468098282814026, 0.023807507008314133, 0.08648129552602768, -0.09525539726018906, -0.07516320794820786, 0.13165313005447388, 0.14105096459388733, 0.13527607917785645, -0.1400613635778427, -0.0392034649848938, -0.18591508269309998, 0.041638053953647614, -0.12296696752309799, -0.10461106896400452, 0.0626312792301178, -0.08175503462553024, 0.11447358131408691, 0.15056823194026947, 0.05229140818119049, -0.19045662879943848, 0.09038849174976349, 0.2001006007194519, 0.26247406005859375, -0.3473193049430847, 0.40737587213516235, 0.35500890016555786, 0.15890657901763916, 0.19831866025924683, -0.28542065620422363, 0.1398649364709854, -0.19970837235450745, 0.4944946765899658, -0.5467606782913208, -0.04535999149084091, -0.4173414409160614, 0.09062182903289795, -0.22343425452709198, -0.054320186376571655, -0.5728363394737244, 0.009743422269821167, 0.33955323696136475, -0.11862145364284515, 0.06782428920269012, -0.21734552085399628, -0.3785403370857239, -0.2943599224090576, -0.03715432062745094, 0.03126554936170578, -0.756312370300293, 0.2612311542034149, -0.1514393389225006, 0.08173643052577972, 0.19522055983543396, 0.5952165126800537, -0.08995184302330017, 0.4252854585647583, -0.4255605936050415, -0.04847139120101929, 0.043004125356674194, -0.03839990124106407, -0.6611076593399048, 0.4873417615890503, 0.07067152857780457, 0.04850282520055771, 0.11241453886032104, 0.3201822340488434, 0.16368569433689117, -0.01637532375752926, -0.22282889485359192, 0.32660597562789917, 0.09104806184768677, 0.04266900569200516, -0.19083282351493835, -0.38112330436706543, 0.08823941648006439, 0.04598051682114601, -0.13749538362026215, -0.14053526520729065, 0.13144522905349731, 0.08348696678876877, 0.21072262525558472, -0.12922047078609467, 0.03605996072292328, 0.3705860376358032, 0.20966383814811707, -0.25567328929901123, -0.021589012816548347, 0.14236611127853394, -0.6317536234855652, 0.18338090181350708, 0.24726203083992004, -0.4363887906074524, 0.1557537168264389, -0.10444330424070358, 0.03820636123418808, -0.22964641451835632, -0.08958972990512848, 0.20130163431167603, 0.023702479898929596, -0.0005765855312347412, -0.009196780622005463, -0.01045583002269268, -0.008591700345277786, -0.14775262773036957, 0.11488443613052368, -0.18818457424640656, -0.41142240166664124, 0.3561541736125946, 0.21356528997421265, -0.03504231944680214, -0.10568706691265106, -0.07886184006929398, -0.3569895327091217, -0.341083288192749, -0.18653497099876404, 0.0800965279340744, 0.25110772252082825, 0.12124788761138916, -0.07733053714036942, 0.4837382435798645, 0.22343115508556366, 0.07611672580242157, 0.33786821365356445, -0.1210734099149704, 0.09457752853631973, -0.22061556577682495, -0.2020530104637146, 0.2165207862854004, -0.1918245553970337, 0.06590293347835541, 0.020288199186325073, -0.35931482911109924, 0.2857814431190491, 0.1333053708076477, 0.10505332052707672, -0.2576684355735779, -0.07694394886493683, 0.1929023116827011, 0.3467419743537903, 0.2029423862695694, 0.10765635967254639, 0.046753961592912674, 0.6398187875747681, -0.16672198474407196, 0.10701826214790344, 0.3645210564136505, -0.12654247879981995, -0.078327476978302, 0.10587126761674881, 0.24525152146816254, 0.5257766842842102, 0.21703128516674042, 0.045964647084474564, -0.04137390851974487, 0.492552787065506, -0.14437976479530334, 0.08119123429059982, 0.067896269261837, 0.5235670208930969, 0.2810913920402527, 0.1602385938167572, 0.002756701782345772, -0.2844558358192444, -0.11330659687519073, 0.20439422130584717, 0.24656642973423004, -0.30335262417793274, 0.1999262422323227, -0.16313476860523224, -0.2681359052658081, -0.09479992836713791, 0.19029898941516876, -0.060111891478300095, 0.12484109401702881, -0.3277064561843872, -0.19444815814495087, 0.025102030485868454, -0.07976765930652618, 0.1439216136932373, 0.08479763567447662, 0.29378432035446167, -0.0679318979382515, 0.27016887068748474, 0.34331822395324707, -0.08782481402158737, 0.03548768535256386, 0.41429078578948975, -0.1485612988471985, 0.30000248551368713, -0.1635025441646576, 0.20966565608978271, -0.1380714774131775, -0.251680850982666, 0.1204531267285347, 0.06055554002523422, 0.07064543664455414, -0.10957422852516174, 0.27406635880470276, -0.19955974817276, 0.2018909454345703, 0.028606519103050232, 0.04939958453178406, -0.2603565752506256, 0.00025307759642601013, -0.04818807914853096, -0.12865214049816132, -0.21747058629989624, 0.0934465229511261, -0.28394556045532227, -0.0509909950196743, 0.2078644335269928, 0.18168999254703522, 0.25755900144577026, 0.37056317925453186, 0.17234326899051666, 0.041228070855140686, 0.14932771027088165, -0.024330874904990196, -0.19408050179481506, -0.45916351675987244, 0.14596138894557953, -0.02829108200967312, -0.37252435088157654, 0.14329096674919128, 0.011465642601251602, 0.19203630089759827, 0.2045513242483139, -0.648036003112793, -0.03949093818664551, -0.2930952310562134, 0.03786661848425865, -0.17624440789222717, 0.12188394367694855, 0.020079180598258972, -0.2159731388092041, 0.08265312761068344, -0.040028706192970276, -0.12273268401622772, -0.08012617379426956, 0.15147355198860168, 0.12099539488554001, 0.12774229049682617, 0.5383259057998657, 0.2677578032016754, 0.41049420833587646, 0.12948672473430634, -0.3016063868999481, 0.12483558058738708, -0.12099257856607437, 0.37001103162765503, -0.24813148379325867, 0.051788605749607086, 0.34236663579940796, 0.1794077754020691, -0.20174653828144073, 0.24014659225940704, -0.004897335544228554, -0.07058312743902206, 0.33670368790626526, 0.028789985924959183, -0.1383412629365921, 0.023905973881483078, 0.19354945421218872, -0.06046877056360245, 0.010493889451026917, -0.07026940584182739, -0.09877236187458038, -0.15903790295124054, -0.3050753176212311, -0.08737368881702423, 0.19044625759124756, 0.21983382105827332, 0.03397126495838165, -0.3773391842842102, -0.11484960466623306, -0.3479648530483246, 0.18864358961582184, -0.16870826482772827, 0.30231955647468567, 0.03228389844298363, 0.2741389870643616, 0.24751806259155273, 0.16157130897045135, 0.9262680411338806, -0.09160742908716202, 0.07147286832332611, -0.19727422297000885, -0.04356754198670387, -0.5894105434417725, -0.15428103506565094, -0.07896403968334198, 0.027080368250608444, -0.05903949216008186, 0.5538499355316162, -0.0631091520190239, -0.06860706955194473, -0.26175931096076965, 0.29919442534446716, -0.3168807625770569, -0.38776543736457825, -0.2755340337753296, -0.29334232211112976, -0.13568750023841858, -0.3935823440551758, 0.01999417133629322, -0.08695642650127411, 0.07559957355260849, -0.31932640075683594, -0.2675706446170807, -0.1990126073360443, 0.054138362407684326, 0.014546068385243416, 0.37403565645217896, 0.3435079753398895, 0.2086752951145172, -0.08692565560340881, 0.3284696936607361, 0.36619988083839417, 0.25957685708999634, 0.07187548279762268, 0.05686691403388977, 0.20528674125671387, -0.21680012345314026, 0.08616207540035248, 0.10835637152194977, -0.025059252977371216, -0.28772228956222534, -0.06701871752738953, 0.11198984086513519, -0.2830272316932678, 0.10249471664428711, 0.37182655930519104, -0.15860742330551147, -0.0864219143986702, -0.3929763436317444, 0.3548668920993805, 0.012159876525402069, 0.09401418268680573, 0.03600536286830902, -0.05195213854312897, -0.14947330951690674, 0.14809554815292358, 0.28316643834114075, 0.5525878071784973, -0.35487741231918335, 0.30332136154174805, 0.297414094209671, 0.0017683878540992737, 0.011403330601751804, -0.026530837640166283, -0.16806504130363464, -0.1445065587759018, -0.31227147579193115, 0.0030846241861581802, -0.18780839443206787, -0.025493785738945007, 0.48494672775268555, 0.17509670555591583, 0.04391271620988846, 0.20670683681964874, 0.007127687335014343, -0.11497616767883301, 0.5293208956718445, 0.29954850673675537, -0.22830013930797577, 0.03250198811292648, 0.06393478065729141, -0.2548326849937439, -0.19034916162490845, -0.0622592493891716, -0.08637963235378265, -0.09849441051483154, 0.2215804010629654, -0.04033968597650528, -0.21266701817512512, -0.12389547377824783, 0.3679512143135071, -0.10822087526321411, -0.23162232339382172, 0.18157339096069336, 0.08386632800102234, -0.20102010667324066, 0.19662319123744965, -0.1573190689086914, 0.12797002494335175, 0.0030061081051826477, 0.3249222934246063, 0.14139866828918457, -0.11449889093637466, -0.0310454610735178, -0.09132418036460876, 0.02342749387025833, -0.19438666105270386, 0.1888035386800766, -0.14826920628547668, -0.06292624026536942, 0.04548884183168411, 0.02978927455842495, -0.09610990434885025, -0.6530036330223083, -0.3431917428970337, -0.20482373237609863, 0.4010300040245056, 0.08056295663118362, 0.13096123933792114, 0.21248281002044678, 0.49659663438796997, 0.024388862773776054, -0.37303629517555237, -0.14032654464244843, 0.18952691555023193, 0.2858310639858246, 0.179946631193161, 0.38669225573539734, -0.134108766913414, -0.13659395277500153, -0.07098942995071411, 0.6510814428329468, 0.10127315670251846, -0.19125443696975708, -0.057765986770391464, -0.04039056971669197, 0.3169393539428711, 0.02081495150923729, -0.334383100271225, 0.1883581578731537, -0.09391557425260544, -0.3599134385585785, -0.2077348530292511, -0.13730476796627045, 0.12147073447704315, -0.1601492017507553, 0.2943194508552551, 0.050438039004802704, -0.18645329773426056, 0.0016886014491319656, -0.07643193006515503, -0.2049328088760376, 0.1969459354877472, 0.29577845335006714, 0.0060842521488666534, -0.33286750316619873, 0.0645713210105896, -0.08767790347337723, -0.2682575583457947, -0.06693800538778305, -0.14714354276657104, -0.17147886753082275, -0.17536914348602295, 0.09678122401237488, 0.11153768002986908, 0.1287064254283905, -0.28011634945869446, 0.1016182228922844, -0.3750438094139099, -0.47884687781333923, -0.13488081097602844, 0.131956085562706, -0.06796924769878387, -0.09098751842975616, 0.10331325232982635, 0.02208055555820465, -0.2510053813457489, 0.007965411990880966, 0.141607865691185, 0.035423584282398224, 0.298848956823349, 0.18924468755722046, 0.16129356622695923, 0.17427374422550201, 0.04252886772155762, -0.47614455223083496, 0.017563149333000183, -0.058839350938797, 0.0995730310678482, 0.18741726875305176, -0.1962638944387436, 0.2503477931022644, 0.25902059674263, 0.3225477933883667, 0.10736005753278732, -0.43837615847587585, -0.2273103892803192, -0.07985477894544601, 0.12250033766031265, 0.051014624536037445, -0.1831589639186859, 0.194535493850708, 0.28687649965286255, -0.06883221119642258, 0.3184705674648285, 0.23520055413246155, 0.3476952016353607, -0.42014795541763306, 0.04682748019695282, 0.4110739231109619, 0.06719375401735306, -0.12977394461631775, 0.47173231840133667, -0.20362454652786255, 0.052364032715559006, 0.08460178226232529, 0.29466432332992554, 0.1201954334974289, 0.8587026596069336, 0.12909187376499176, 0.1891806423664093, 0.41398894786834717, -0.030338052660226822, 0.006845295429229736, -0.496672123670578, -0.09523263573646545, 0.19847539067268372, -0.16807547211647034, 0.27411210536956787, 0.170212060213089, -0.3590531349182129, 0.19098615646362305, -0.38527750968933105, -0.23369187116622925, -0.06202669069170952, -0.2622534930706024, 0.13358168303966522, -0.0030267611145973206, 0.02732478827238083, 0.16201022267341614, 0.23714059591293335, -0.3845198452472687, -0.3014770746231079, -0.24613088369369507, 0.188907653093338, -0.2023761123418808, 0.2124774158000946, 0.42143040895462036, 0.044442325830459595, -0.031524479389190674, -0.03910909593105316, 0.36462754011154175, 0.09868377447128296, 0.10106837749481201, -0.08815349638462067, 0.07781030237674713, 0.13030804693698883, 0.1942221075296402, 0.18647204339504242, -0.0245685838162899, 0.22991764545440674, -0.012341811321675777, -0.06380593776702881, 0.023079706355929375, -0.10071185231208801, -0.015063360333442688, 0.13520461320877075, 0.07699860632419586, -0.01952509954571724, -0.10237164795398712, 0.42258939146995544, -0.005134863778948784, -0.4866008162498474, -0.03334220498800278, -0.49772217869758606, -0.005053207278251648, -0.05147722363471985, 0.02874579280614853, -0.41164642572402954, -0.2353772521018982, 0.5690826773643494, -0.20133617520332336, 0.25594738125801086, 0.07746583968400955, 0.04566144198179245, -0.607974112033844, 0.6227495074272156, 0.16278289258480072, 0.09330430626869202, -0.06854064762592316, 0.15942402184009552, -0.550015926361084, 0.030385911464691162, -0.21666309237480164, -0.1015653982758522, 0.23399728536605835, 0.4140377938747406, -0.03086373209953308, -0.048687227070331573, 0.16508536040782928, 0.0038426839746534824, -0.19164393842220306, 0.08944238722324371, -0.2840999364852905, -0.1390908807516098, -0.14434120059013367, 0.11855494976043701, -0.17532485723495483, -0.40838733315467834, 0.3195689022541046, -0.009301329031586647, -0.07678812742233276, -0.10664582252502441, 0.21733948588371277, -0.1415831446647644, 0.4878299832344055, 0.40138325095176697, -0.04832315444946289, 0.346391886472702, 0.0004340857267379761, 0.017502708360552788, 0.04518915340304375, 0.12413051724433899, -0.027961868792772293, 0.7077247500419617, 0.004538282752037048, 0.1401190608739853, -0.08763258904218674, 0.09331700205802917, 0.11833634227514267, 0.09128612279891968, -0.0013902224600315094, -0.15837471187114716, -0.13585443794727325, 0.05082041770219803, -0.152741476893425, 0.026536881923675537, 0.1540861278772354, 0.12320549041032791, 0.03159166872501373, -0.0814918801188469, -0.02852340042591095, -0.07005331665277481, 0.31889036297798157, 0.025711506605148315, -0.08472740650177002, 0.05338430404663086, -0.015611335635185242, -0.02105534076690674, -0.01873060129582882, -0.2966987192630768, 0.20120888948440552, 0.4706385135650635, -0.24818527698516846, -0.009380742907524109, 0.3947991728782654, -0.2101583331823349, 0.005891464650630951, -0.07563087344169617, 0.7668739557266235, -0.15176337957382202, -0.3579002320766449, -0.1258624941110611, -0.04181227087974548 ]
https://github.com/huggingface/datasets/issues/2146
Dataset file size on disk is very large with 3D Array
Thanks for the prompt response. You're right about the encoding, I have the `tfds.features.Image` feature type you mentioned. However, as described in the `dataset_info.json`, my dataset is made of 1479 (224x224x3) images. 1479 x 224 x 224 x 3 = 222630912 bytes which is far from the actual size 520803408 bytes. Anyway I look forward to the Image feature type in `datasets`.
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
62
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. Thanks for the prompt response. You're right about the encoding, I have the `tfds.features.Image` feature type you mentioned. However, as described in the `dataset_info.json`, my dataset is made of 1479 (224x224x3) images. 1479 x 224 x 224 x 3 = 222630912 bytes which is far from the actual size 520803408 bytes. Anyway I look forward to the Image feature type in `datasets`.
[ -0.14527370035648346, -0.11326321959495544, -0.15441793203353882, 0.4201556444168091, 0.2135637104511261, 0.11391321569681168, 0.5066814422607422, 0.2730785608291626, 0.020523294806480408, 0.03584757447242737, -0.1937045007944107, 0.0874154344201088, -0.1694583147764206, 0.31504425406455994, 0.06775014847517014, 0.10068812966346741, -0.07451743632555008, 0.25139838457107544, -0.13347862660884857, -0.08572021126747131, -0.009700402617454529, 0.019117796793580055, -0.01790953427553177, -0.18380673229694366, -0.06156212463974953, -0.16138315200805664, 0.09134972095489502, -0.024185143411159515, -0.08309819549322128, 0.07972723245620728, 0.24497835338115692, -0.08801163733005524, 0.17819981276988983, 0.5363881587982178, -0.00011738437024177983, 0.05027664452791214, 0.10829384624958038, -0.16553199291229248, 0.07918661832809448, 0.28935059905052185, -0.0925559550523758, -0.409506231546402, -0.07466698437929153, -0.3576085567474365, 0.07695842534303665, -0.3249553143978119, -0.15211747586727142, -0.1535455584526062, 0.18488967418670654, 0.0791000947356224, 0.21104557812213898, 0.15330490469932556, -0.027113543823361397, 0.415045827627182, 0.0993780568242073, 0.5338883399963379, -0.15334609150886536, 0.12685570120811462, -0.14353875815868378, 0.4372022747993469, 0.0842975452542305, 0.07955045998096466, 0.16135886311531067, 0.2877248227596283, 0.5040508508682251, -0.05551759898662567, 0.23921135067939758, -0.24619188904762268, 0.12989374995231628, 0.4001131057739258, 0.8583661317825317, -0.2007373869419098, -0.18428057432174683, -0.3255719244480133, -0.10833020508289337, -0.032338786870241165, 0.022541038691997528, 0.38006338477134705, -0.04989016056060791, 0.021931223571300507, -0.6522027254104614, -0.13922472298145294, -0.22694167494773865, 0.1455020010471344, -0.21365340054035187, -0.4809679687023163, -0.13809022307395935, 0.1503390073776245, -0.18900111317634583, -0.2658364176750183, 0.260778546333313, -0.39559242129325867, 0.07343761622905731, -0.0997145026922226, -0.26596584916114807, -0.2101805955171585, -0.2905137836933136, -0.3803427219390869, 0.3530273139476776, -0.15380585193634033, -0.010828179307281971, -0.15199381113052368, -0.36489322781562805, -0.14774170517921448, 0.10398487746715546, 0.3860372304916382, -0.4768468737602234, -0.13859771192073822, -0.14186790585517883, -0.29509061574935913, -0.040881719440221786, -0.05229455977678299, -0.246537983417511, -0.09075739979743958, 0.19863338768482208, -0.4835403263568878, 0.06393661350011826, -0.06186700984835625, 0.04468098282814026, 0.023807507008314133, 0.08648129552602768, -0.09525539726018906, -0.07516320794820786, 0.13165313005447388, 0.14105096459388733, 0.13527607917785645, -0.1400613635778427, -0.0392034649848938, -0.18591508269309998, 0.041638053953647614, -0.12296696752309799, -0.10461106896400452, 0.0626312792301178, -0.08175503462553024, 0.11447358131408691, 0.15056823194026947, 0.05229140818119049, -0.19045662879943848, 0.09038849174976349, 0.2001006007194519, 0.26247406005859375, -0.3473193049430847, 0.40737587213516235, 0.35500890016555786, 0.15890657901763916, 0.19831866025924683, -0.28542065620422363, 0.1398649364709854, -0.19970837235450745, 0.4944946765899658, -0.5467606782913208, -0.04535999149084091, -0.4173414409160614, 0.09062182903289795, -0.22343425452709198, -0.054320186376571655, -0.5728363394737244, 0.009743422269821167, 0.33955323696136475, -0.11862145364284515, 0.06782428920269012, -0.21734552085399628, -0.3785403370857239, -0.2943599224090576, -0.03715432062745094, 0.03126554936170578, -0.756312370300293, 0.2612311542034149, -0.1514393389225006, 0.08173643052577972, 0.19522055983543396, 0.5952165126800537, -0.08995184302330017, 0.4252854585647583, -0.4255605936050415, -0.04847139120101929, 0.043004125356674194, -0.03839990124106407, -0.6611076593399048, 0.4873417615890503, 0.07067152857780457, 0.04850282520055771, 0.11241453886032104, 0.3201822340488434, 0.16368569433689117, -0.01637532375752926, -0.22282889485359192, 0.32660597562789917, 0.09104806184768677, 0.04266900569200516, -0.19083282351493835, -0.38112330436706543, 0.08823941648006439, 0.04598051682114601, -0.13749538362026215, -0.14053526520729065, 0.13144522905349731, 0.08348696678876877, 0.21072262525558472, -0.12922047078609467, 0.03605996072292328, 0.3705860376358032, 0.20966383814811707, -0.25567328929901123, -0.021589012816548347, 0.14236611127853394, -0.6317536234855652, 0.18338090181350708, 0.24726203083992004, -0.4363887906074524, 0.1557537168264389, -0.10444330424070358, 0.03820636123418808, -0.22964641451835632, -0.08958972990512848, 0.20130163431167603, 0.023702479898929596, -0.0005765855312347412, -0.009196780622005463, -0.01045583002269268, -0.008591700345277786, -0.14775262773036957, 0.11488443613052368, -0.18818457424640656, -0.41142240166664124, 0.3561541736125946, 0.21356528997421265, -0.03504231944680214, -0.10568706691265106, -0.07886184006929398, -0.3569895327091217, -0.341083288192749, -0.18653497099876404, 0.0800965279340744, 0.25110772252082825, 0.12124788761138916, -0.07733053714036942, 0.4837382435798645, 0.22343115508556366, 0.07611672580242157, 0.33786821365356445, -0.1210734099149704, 0.09457752853631973, -0.22061556577682495, -0.2020530104637146, 0.2165207862854004, -0.1918245553970337, 0.06590293347835541, 0.020288199186325073, -0.35931482911109924, 0.2857814431190491, 0.1333053708076477, 0.10505332052707672, -0.2576684355735779, -0.07694394886493683, 0.1929023116827011, 0.3467419743537903, 0.2029423862695694, 0.10765635967254639, 0.046753961592912674, 0.6398187875747681, -0.16672198474407196, 0.10701826214790344, 0.3645210564136505, -0.12654247879981995, -0.078327476978302, 0.10587126761674881, 0.24525152146816254, 0.5257766842842102, 0.21703128516674042, 0.045964647084474564, -0.04137390851974487, 0.492552787065506, -0.14437976479530334, 0.08119123429059982, 0.067896269261837, 0.5235670208930969, 0.2810913920402527, 0.1602385938167572, 0.002756701782345772, -0.2844558358192444, -0.11330659687519073, 0.20439422130584717, 0.24656642973423004, -0.30335262417793274, 0.1999262422323227, -0.16313476860523224, -0.2681359052658081, -0.09479992836713791, 0.19029898941516876, -0.060111891478300095, 0.12484109401702881, -0.3277064561843872, -0.19444815814495087, 0.025102030485868454, -0.07976765930652618, 0.1439216136932373, 0.08479763567447662, 0.29378432035446167, -0.0679318979382515, 0.27016887068748474, 0.34331822395324707, -0.08782481402158737, 0.03548768535256386, 0.41429078578948975, -0.1485612988471985, 0.30000248551368713, -0.1635025441646576, 0.20966565608978271, -0.1380714774131775, -0.251680850982666, 0.1204531267285347, 0.06055554002523422, 0.07064543664455414, -0.10957422852516174, 0.27406635880470276, -0.19955974817276, 0.2018909454345703, 0.028606519103050232, 0.04939958453178406, -0.2603565752506256, 0.00025307759642601013, -0.04818807914853096, -0.12865214049816132, -0.21747058629989624, 0.0934465229511261, -0.28394556045532227, -0.0509909950196743, 0.2078644335269928, 0.18168999254703522, 0.25755900144577026, 0.37056317925453186, 0.17234326899051666, 0.041228070855140686, 0.14932771027088165, -0.024330874904990196, -0.19408050179481506, -0.45916351675987244, 0.14596138894557953, -0.02829108200967312, -0.37252435088157654, 0.14329096674919128, 0.011465642601251602, 0.19203630089759827, 0.2045513242483139, -0.648036003112793, -0.03949093818664551, -0.2930952310562134, 0.03786661848425865, -0.17624440789222717, 0.12188394367694855, 0.020079180598258972, -0.2159731388092041, 0.08265312761068344, -0.040028706192970276, -0.12273268401622772, -0.08012617379426956, 0.15147355198860168, 0.12099539488554001, 0.12774229049682617, 0.5383259057998657, 0.2677578032016754, 0.41049420833587646, 0.12948672473430634, -0.3016063868999481, 0.12483558058738708, -0.12099257856607437, 0.37001103162765503, -0.24813148379325867, 0.051788605749607086, 0.34236663579940796, 0.1794077754020691, -0.20174653828144073, 0.24014659225940704, -0.004897335544228554, -0.07058312743902206, 0.33670368790626526, 0.028789985924959183, -0.1383412629365921, 0.023905973881483078, 0.19354945421218872, -0.06046877056360245, 0.010493889451026917, -0.07026940584182739, -0.09877236187458038, -0.15903790295124054, -0.3050753176212311, -0.08737368881702423, 0.19044625759124756, 0.21983382105827332, 0.03397126495838165, -0.3773391842842102, -0.11484960466623306, -0.3479648530483246, 0.18864358961582184, -0.16870826482772827, 0.30231955647468567, 0.03228389844298363, 0.2741389870643616, 0.24751806259155273, 0.16157130897045135, 0.9262680411338806, -0.09160742908716202, 0.07147286832332611, -0.19727422297000885, -0.04356754198670387, -0.5894105434417725, -0.15428103506565094, -0.07896403968334198, 0.027080368250608444, -0.05903949216008186, 0.5538499355316162, -0.0631091520190239, -0.06860706955194473, -0.26175931096076965, 0.29919442534446716, -0.3168807625770569, -0.38776543736457825, -0.2755340337753296, -0.29334232211112976, -0.13568750023841858, -0.3935823440551758, 0.01999417133629322, -0.08695642650127411, 0.07559957355260849, -0.31932640075683594, -0.2675706446170807, -0.1990126073360443, 0.054138362407684326, 0.014546068385243416, 0.37403565645217896, 0.3435079753398895, 0.2086752951145172, -0.08692565560340881, 0.3284696936607361, 0.36619988083839417, 0.25957685708999634, 0.07187548279762268, 0.05686691403388977, 0.20528674125671387, -0.21680012345314026, 0.08616207540035248, 0.10835637152194977, -0.025059252977371216, -0.28772228956222534, -0.06701871752738953, 0.11198984086513519, -0.2830272316932678, 0.10249471664428711, 0.37182655930519104, -0.15860742330551147, -0.0864219143986702, -0.3929763436317444, 0.3548668920993805, 0.012159876525402069, 0.09401418268680573, 0.03600536286830902, -0.05195213854312897, -0.14947330951690674, 0.14809554815292358, 0.28316643834114075, 0.5525878071784973, -0.35487741231918335, 0.30332136154174805, 0.297414094209671, 0.0017683878540992737, 0.011403330601751804, -0.026530837640166283, -0.16806504130363464, -0.1445065587759018, -0.31227147579193115, 0.0030846241861581802, -0.18780839443206787, -0.025493785738945007, 0.48494672775268555, 0.17509670555591583, 0.04391271620988846, 0.20670683681964874, 0.007127687335014343, -0.11497616767883301, 0.5293208956718445, 0.29954850673675537, -0.22830013930797577, 0.03250198811292648, 0.06393478065729141, -0.2548326849937439, -0.19034916162490845, -0.0622592493891716, -0.08637963235378265, -0.09849441051483154, 0.2215804010629654, -0.04033968597650528, -0.21266701817512512, -0.12389547377824783, 0.3679512143135071, -0.10822087526321411, -0.23162232339382172, 0.18157339096069336, 0.08386632800102234, -0.20102010667324066, 0.19662319123744965, -0.1573190689086914, 0.12797002494335175, 0.0030061081051826477, 0.3249222934246063, 0.14139866828918457, -0.11449889093637466, -0.0310454610735178, -0.09132418036460876, 0.02342749387025833, -0.19438666105270386, 0.1888035386800766, -0.14826920628547668, -0.06292624026536942, 0.04548884183168411, 0.02978927455842495, -0.09610990434885025, -0.6530036330223083, -0.3431917428970337, -0.20482373237609863, 0.4010300040245056, 0.08056295663118362, 0.13096123933792114, 0.21248281002044678, 0.49659663438796997, 0.024388862773776054, -0.37303629517555237, -0.14032654464244843, 0.18952691555023193, 0.2858310639858246, 0.179946631193161, 0.38669225573539734, -0.134108766913414, -0.13659395277500153, -0.07098942995071411, 0.6510814428329468, 0.10127315670251846, -0.19125443696975708, -0.057765986770391464, -0.04039056971669197, 0.3169393539428711, 0.02081495150923729, -0.334383100271225, 0.1883581578731537, -0.09391557425260544, -0.3599134385585785, -0.2077348530292511, -0.13730476796627045, 0.12147073447704315, -0.1601492017507553, 0.2943194508552551, 0.050438039004802704, -0.18645329773426056, 0.0016886014491319656, -0.07643193006515503, -0.2049328088760376, 0.1969459354877472, 0.29577845335006714, 0.0060842521488666534, -0.33286750316619873, 0.0645713210105896, -0.08767790347337723, -0.2682575583457947, -0.06693800538778305, -0.14714354276657104, -0.17147886753082275, -0.17536914348602295, 0.09678122401237488, 0.11153768002986908, 0.1287064254283905, -0.28011634945869446, 0.1016182228922844, -0.3750438094139099, -0.47884687781333923, -0.13488081097602844, 0.131956085562706, -0.06796924769878387, -0.09098751842975616, 0.10331325232982635, 0.02208055555820465, -0.2510053813457489, 0.007965411990880966, 0.141607865691185, 0.035423584282398224, 0.298848956823349, 0.18924468755722046, 0.16129356622695923, 0.17427374422550201, 0.04252886772155762, -0.47614455223083496, 0.017563149333000183, -0.058839350938797, 0.0995730310678482, 0.18741726875305176, -0.1962638944387436, 0.2503477931022644, 0.25902059674263, 0.3225477933883667, 0.10736005753278732, -0.43837615847587585, -0.2273103892803192, -0.07985477894544601, 0.12250033766031265, 0.051014624536037445, -0.1831589639186859, 0.194535493850708, 0.28687649965286255, -0.06883221119642258, 0.3184705674648285, 0.23520055413246155, 0.3476952016353607, -0.42014795541763306, 0.04682748019695282, 0.4110739231109619, 0.06719375401735306, -0.12977394461631775, 0.47173231840133667, -0.20362454652786255, 0.052364032715559006, 0.08460178226232529, 0.29466432332992554, 0.1201954334974289, 0.8587026596069336, 0.12909187376499176, 0.1891806423664093, 0.41398894786834717, -0.030338052660226822, 0.006845295429229736, -0.496672123670578, -0.09523263573646545, 0.19847539067268372, -0.16807547211647034, 0.27411210536956787, 0.170212060213089, -0.3590531349182129, 0.19098615646362305, -0.38527750968933105, -0.23369187116622925, -0.06202669069170952, -0.2622534930706024, 0.13358168303966522, -0.0030267611145973206, 0.02732478827238083, 0.16201022267341614, 0.23714059591293335, -0.3845198452472687, -0.3014770746231079, -0.24613088369369507, 0.188907653093338, -0.2023761123418808, 0.2124774158000946, 0.42143040895462036, 0.044442325830459595, -0.031524479389190674, -0.03910909593105316, 0.36462754011154175, 0.09868377447128296, 0.10106837749481201, -0.08815349638462067, 0.07781030237674713, 0.13030804693698883, 0.1942221075296402, 0.18647204339504242, -0.0245685838162899, 0.22991764545440674, -0.012341811321675777, -0.06380593776702881, 0.023079706355929375, -0.10071185231208801, -0.015063360333442688, 0.13520461320877075, 0.07699860632419586, -0.01952509954571724, -0.10237164795398712, 0.42258939146995544, -0.005134863778948784, -0.4866008162498474, -0.03334220498800278, -0.49772217869758606, -0.005053207278251648, -0.05147722363471985, 0.02874579280614853, -0.41164642572402954, -0.2353772521018982, 0.5690826773643494, -0.20133617520332336, 0.25594738125801086, 0.07746583968400955, 0.04566144198179245, -0.607974112033844, 0.6227495074272156, 0.16278289258480072, 0.09330430626869202, -0.06854064762592316, 0.15942402184009552, -0.550015926361084, 0.030385911464691162, -0.21666309237480164, -0.1015653982758522, 0.23399728536605835, 0.4140377938747406, -0.03086373209953308, -0.048687227070331573, 0.16508536040782928, 0.0038426839746534824, -0.19164393842220306, 0.08944238722324371, -0.2840999364852905, -0.1390908807516098, -0.14434120059013367, 0.11855494976043701, -0.17532485723495483, -0.40838733315467834, 0.3195689022541046, -0.009301329031586647, -0.07678812742233276, -0.10664582252502441, 0.21733948588371277, -0.1415831446647644, 0.4878299832344055, 0.40138325095176697, -0.04832315444946289, 0.346391886472702, 0.0004340857267379761, 0.017502708360552788, 0.04518915340304375, 0.12413051724433899, -0.027961868792772293, 0.7077247500419617, 0.004538282752037048, 0.1401190608739853, -0.08763258904218674, 0.09331700205802917, 0.11833634227514267, 0.09128612279891968, -0.0013902224600315094, -0.15837471187114716, -0.13585443794727325, 0.05082041770219803, -0.152741476893425, 0.026536881923675537, 0.1540861278772354, 0.12320549041032791, 0.03159166872501373, -0.0814918801188469, -0.02852340042591095, -0.07005331665277481, 0.31889036297798157, 0.025711506605148315, -0.08472740650177002, 0.05338430404663086, -0.015611335635185242, -0.02105534076690674, -0.01873060129582882, -0.2966987192630768, 0.20120888948440552, 0.4706385135650635, -0.24818527698516846, -0.009380742907524109, 0.3947991728782654, -0.2101583331823349, 0.005891464650630951, -0.07563087344169617, 0.7668739557266235, -0.15176337957382202, -0.3579002320766449, -0.1258624941110611, -0.04181227087974548 ]
https://github.com/huggingface/datasets/issues/2146
Dataset file size on disk is very large with 3D Array
@lhoestq I changed the data structure so I have a 2D Array feature type instead of a 3D Array by grouping the two last dimensions ( a 224x672 2D Array instead of a 224x224x3 3D Array). The file size is now 223973964 bytes, nearly half the previous size! Which is around of what I would expect. I found similar behavior in existing `datasets` collection, when comparing black and white vs color image, for example MNIST vs CIFAR.
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
77
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. @lhoestq I changed the data structure so I have a 2D Array feature type instead of a 3D Array by grouping the two last dimensions ( a 224x672 2D Array instead of a 224x224x3 3D Array). The file size is now 223973964 bytes, nearly half the previous size! Which is around of what I would expect. I found similar behavior in existing `datasets` collection, when comparing black and white vs color image, for example MNIST vs CIFAR.
[ -0.14527370035648346, -0.11326321959495544, -0.15441793203353882, 0.4201556444168091, 0.2135637104511261, 0.11391321569681168, 0.5066814422607422, 0.2730785608291626, 0.020523294806480408, 0.03584757447242737, -0.1937045007944107, 0.0874154344201088, -0.1694583147764206, 0.31504425406455994, 0.06775014847517014, 0.10068812966346741, -0.07451743632555008, 0.25139838457107544, -0.13347862660884857, -0.08572021126747131, -0.009700402617454529, 0.019117796793580055, -0.01790953427553177, -0.18380673229694366, -0.06156212463974953, -0.16138315200805664, 0.09134972095489502, -0.024185143411159515, -0.08309819549322128, 0.07972723245620728, 0.24497835338115692, -0.08801163733005524, 0.17819981276988983, 0.5363881587982178, -0.00011738437024177983, 0.05027664452791214, 0.10829384624958038, -0.16553199291229248, 0.07918661832809448, 0.28935059905052185, -0.0925559550523758, -0.409506231546402, -0.07466698437929153, -0.3576085567474365, 0.07695842534303665, -0.3249553143978119, -0.15211747586727142, -0.1535455584526062, 0.18488967418670654, 0.0791000947356224, 0.21104557812213898, 0.15330490469932556, -0.027113543823361397, 0.415045827627182, 0.0993780568242073, 0.5338883399963379, -0.15334609150886536, 0.12685570120811462, -0.14353875815868378, 0.4372022747993469, 0.0842975452542305, 0.07955045998096466, 0.16135886311531067, 0.2877248227596283, 0.5040508508682251, -0.05551759898662567, 0.23921135067939758, -0.24619188904762268, 0.12989374995231628, 0.4001131057739258, 0.8583661317825317, -0.2007373869419098, -0.18428057432174683, -0.3255719244480133, -0.10833020508289337, -0.032338786870241165, 0.022541038691997528, 0.38006338477134705, -0.04989016056060791, 0.021931223571300507, -0.6522027254104614, -0.13922472298145294, -0.22694167494773865, 0.1455020010471344, -0.21365340054035187, -0.4809679687023163, -0.13809022307395935, 0.1503390073776245, -0.18900111317634583, -0.2658364176750183, 0.260778546333313, -0.39559242129325867, 0.07343761622905731, -0.0997145026922226, -0.26596584916114807, -0.2101805955171585, -0.2905137836933136, -0.3803427219390869, 0.3530273139476776, -0.15380585193634033, -0.010828179307281971, -0.15199381113052368, -0.36489322781562805, -0.14774170517921448, 0.10398487746715546, 0.3860372304916382, -0.4768468737602234, -0.13859771192073822, -0.14186790585517883, -0.29509061574935913, -0.040881719440221786, -0.05229455977678299, -0.246537983417511, -0.09075739979743958, 0.19863338768482208, -0.4835403263568878, 0.06393661350011826, -0.06186700984835625, 0.04468098282814026, 0.023807507008314133, 0.08648129552602768, -0.09525539726018906, -0.07516320794820786, 0.13165313005447388, 0.14105096459388733, 0.13527607917785645, -0.1400613635778427, -0.0392034649848938, -0.18591508269309998, 0.041638053953647614, -0.12296696752309799, -0.10461106896400452, 0.0626312792301178, -0.08175503462553024, 0.11447358131408691, 0.15056823194026947, 0.05229140818119049, -0.19045662879943848, 0.09038849174976349, 0.2001006007194519, 0.26247406005859375, -0.3473193049430847, 0.40737587213516235, 0.35500890016555786, 0.15890657901763916, 0.19831866025924683, -0.28542065620422363, 0.1398649364709854, -0.19970837235450745, 0.4944946765899658, -0.5467606782913208, -0.04535999149084091, -0.4173414409160614, 0.09062182903289795, -0.22343425452709198, -0.054320186376571655, -0.5728363394737244, 0.009743422269821167, 0.33955323696136475, -0.11862145364284515, 0.06782428920269012, -0.21734552085399628, -0.3785403370857239, -0.2943599224090576, -0.03715432062745094, 0.03126554936170578, -0.756312370300293, 0.2612311542034149, -0.1514393389225006, 0.08173643052577972, 0.19522055983543396, 0.5952165126800537, -0.08995184302330017, 0.4252854585647583, -0.4255605936050415, -0.04847139120101929, 0.043004125356674194, -0.03839990124106407, -0.6611076593399048, 0.4873417615890503, 0.07067152857780457, 0.04850282520055771, 0.11241453886032104, 0.3201822340488434, 0.16368569433689117, -0.01637532375752926, -0.22282889485359192, 0.32660597562789917, 0.09104806184768677, 0.04266900569200516, -0.19083282351493835, -0.38112330436706543, 0.08823941648006439, 0.04598051682114601, -0.13749538362026215, -0.14053526520729065, 0.13144522905349731, 0.08348696678876877, 0.21072262525558472, -0.12922047078609467, 0.03605996072292328, 0.3705860376358032, 0.20966383814811707, -0.25567328929901123, -0.021589012816548347, 0.14236611127853394, -0.6317536234855652, 0.18338090181350708, 0.24726203083992004, -0.4363887906074524, 0.1557537168264389, -0.10444330424070358, 0.03820636123418808, -0.22964641451835632, -0.08958972990512848, 0.20130163431167603, 0.023702479898929596, -0.0005765855312347412, -0.009196780622005463, -0.01045583002269268, -0.008591700345277786, -0.14775262773036957, 0.11488443613052368, -0.18818457424640656, -0.41142240166664124, 0.3561541736125946, 0.21356528997421265, -0.03504231944680214, -0.10568706691265106, -0.07886184006929398, -0.3569895327091217, -0.341083288192749, -0.18653497099876404, 0.0800965279340744, 0.25110772252082825, 0.12124788761138916, -0.07733053714036942, 0.4837382435798645, 0.22343115508556366, 0.07611672580242157, 0.33786821365356445, -0.1210734099149704, 0.09457752853631973, -0.22061556577682495, -0.2020530104637146, 0.2165207862854004, -0.1918245553970337, 0.06590293347835541, 0.020288199186325073, -0.35931482911109924, 0.2857814431190491, 0.1333053708076477, 0.10505332052707672, -0.2576684355735779, -0.07694394886493683, 0.1929023116827011, 0.3467419743537903, 0.2029423862695694, 0.10765635967254639, 0.046753961592912674, 0.6398187875747681, -0.16672198474407196, 0.10701826214790344, 0.3645210564136505, -0.12654247879981995, -0.078327476978302, 0.10587126761674881, 0.24525152146816254, 0.5257766842842102, 0.21703128516674042, 0.045964647084474564, -0.04137390851974487, 0.492552787065506, -0.14437976479530334, 0.08119123429059982, 0.067896269261837, 0.5235670208930969, 0.2810913920402527, 0.1602385938167572, 0.002756701782345772, -0.2844558358192444, -0.11330659687519073, 0.20439422130584717, 0.24656642973423004, -0.30335262417793274, 0.1999262422323227, -0.16313476860523224, -0.2681359052658081, -0.09479992836713791, 0.19029898941516876, -0.060111891478300095, 0.12484109401702881, -0.3277064561843872, -0.19444815814495087, 0.025102030485868454, -0.07976765930652618, 0.1439216136932373, 0.08479763567447662, 0.29378432035446167, -0.0679318979382515, 0.27016887068748474, 0.34331822395324707, -0.08782481402158737, 0.03548768535256386, 0.41429078578948975, -0.1485612988471985, 0.30000248551368713, -0.1635025441646576, 0.20966565608978271, -0.1380714774131775, -0.251680850982666, 0.1204531267285347, 0.06055554002523422, 0.07064543664455414, -0.10957422852516174, 0.27406635880470276, -0.19955974817276, 0.2018909454345703, 0.028606519103050232, 0.04939958453178406, -0.2603565752506256, 0.00025307759642601013, -0.04818807914853096, -0.12865214049816132, -0.21747058629989624, 0.0934465229511261, -0.28394556045532227, -0.0509909950196743, 0.2078644335269928, 0.18168999254703522, 0.25755900144577026, 0.37056317925453186, 0.17234326899051666, 0.041228070855140686, 0.14932771027088165, -0.024330874904990196, -0.19408050179481506, -0.45916351675987244, 0.14596138894557953, -0.02829108200967312, -0.37252435088157654, 0.14329096674919128, 0.011465642601251602, 0.19203630089759827, 0.2045513242483139, -0.648036003112793, -0.03949093818664551, -0.2930952310562134, 0.03786661848425865, -0.17624440789222717, 0.12188394367694855, 0.020079180598258972, -0.2159731388092041, 0.08265312761068344, -0.040028706192970276, -0.12273268401622772, -0.08012617379426956, 0.15147355198860168, 0.12099539488554001, 0.12774229049682617, 0.5383259057998657, 0.2677578032016754, 0.41049420833587646, 0.12948672473430634, -0.3016063868999481, 0.12483558058738708, -0.12099257856607437, 0.37001103162765503, -0.24813148379325867, 0.051788605749607086, 0.34236663579940796, 0.1794077754020691, -0.20174653828144073, 0.24014659225940704, -0.004897335544228554, -0.07058312743902206, 0.33670368790626526, 0.028789985924959183, -0.1383412629365921, 0.023905973881483078, 0.19354945421218872, -0.06046877056360245, 0.010493889451026917, -0.07026940584182739, -0.09877236187458038, -0.15903790295124054, -0.3050753176212311, -0.08737368881702423, 0.19044625759124756, 0.21983382105827332, 0.03397126495838165, -0.3773391842842102, -0.11484960466623306, -0.3479648530483246, 0.18864358961582184, -0.16870826482772827, 0.30231955647468567, 0.03228389844298363, 0.2741389870643616, 0.24751806259155273, 0.16157130897045135, 0.9262680411338806, -0.09160742908716202, 0.07147286832332611, -0.19727422297000885, -0.04356754198670387, -0.5894105434417725, -0.15428103506565094, -0.07896403968334198, 0.027080368250608444, -0.05903949216008186, 0.5538499355316162, -0.0631091520190239, -0.06860706955194473, -0.26175931096076965, 0.29919442534446716, -0.3168807625770569, -0.38776543736457825, -0.2755340337753296, -0.29334232211112976, -0.13568750023841858, -0.3935823440551758, 0.01999417133629322, -0.08695642650127411, 0.07559957355260849, -0.31932640075683594, -0.2675706446170807, -0.1990126073360443, 0.054138362407684326, 0.014546068385243416, 0.37403565645217896, 0.3435079753398895, 0.2086752951145172, -0.08692565560340881, 0.3284696936607361, 0.36619988083839417, 0.25957685708999634, 0.07187548279762268, 0.05686691403388977, 0.20528674125671387, -0.21680012345314026, 0.08616207540035248, 0.10835637152194977, -0.025059252977371216, -0.28772228956222534, -0.06701871752738953, 0.11198984086513519, -0.2830272316932678, 0.10249471664428711, 0.37182655930519104, -0.15860742330551147, -0.0864219143986702, -0.3929763436317444, 0.3548668920993805, 0.012159876525402069, 0.09401418268680573, 0.03600536286830902, -0.05195213854312897, -0.14947330951690674, 0.14809554815292358, 0.28316643834114075, 0.5525878071784973, -0.35487741231918335, 0.30332136154174805, 0.297414094209671, 0.0017683878540992737, 0.011403330601751804, -0.026530837640166283, -0.16806504130363464, -0.1445065587759018, -0.31227147579193115, 0.0030846241861581802, -0.18780839443206787, -0.025493785738945007, 0.48494672775268555, 0.17509670555591583, 0.04391271620988846, 0.20670683681964874, 0.007127687335014343, -0.11497616767883301, 0.5293208956718445, 0.29954850673675537, -0.22830013930797577, 0.03250198811292648, 0.06393478065729141, -0.2548326849937439, -0.19034916162490845, -0.0622592493891716, -0.08637963235378265, -0.09849441051483154, 0.2215804010629654, -0.04033968597650528, -0.21266701817512512, -0.12389547377824783, 0.3679512143135071, -0.10822087526321411, -0.23162232339382172, 0.18157339096069336, 0.08386632800102234, -0.20102010667324066, 0.19662319123744965, -0.1573190689086914, 0.12797002494335175, 0.0030061081051826477, 0.3249222934246063, 0.14139866828918457, -0.11449889093637466, -0.0310454610735178, -0.09132418036460876, 0.02342749387025833, -0.19438666105270386, 0.1888035386800766, -0.14826920628547668, -0.06292624026536942, 0.04548884183168411, 0.02978927455842495, -0.09610990434885025, -0.6530036330223083, -0.3431917428970337, -0.20482373237609863, 0.4010300040245056, 0.08056295663118362, 0.13096123933792114, 0.21248281002044678, 0.49659663438796997, 0.024388862773776054, -0.37303629517555237, -0.14032654464244843, 0.18952691555023193, 0.2858310639858246, 0.179946631193161, 0.38669225573539734, -0.134108766913414, -0.13659395277500153, -0.07098942995071411, 0.6510814428329468, 0.10127315670251846, -0.19125443696975708, -0.057765986770391464, -0.04039056971669197, 0.3169393539428711, 0.02081495150923729, -0.334383100271225, 0.1883581578731537, -0.09391557425260544, -0.3599134385585785, -0.2077348530292511, -0.13730476796627045, 0.12147073447704315, -0.1601492017507553, 0.2943194508552551, 0.050438039004802704, -0.18645329773426056, 0.0016886014491319656, -0.07643193006515503, -0.2049328088760376, 0.1969459354877472, 0.29577845335006714, 0.0060842521488666534, -0.33286750316619873, 0.0645713210105896, -0.08767790347337723, -0.2682575583457947, -0.06693800538778305, -0.14714354276657104, -0.17147886753082275, -0.17536914348602295, 0.09678122401237488, 0.11153768002986908, 0.1287064254283905, -0.28011634945869446, 0.1016182228922844, -0.3750438094139099, -0.47884687781333923, -0.13488081097602844, 0.131956085562706, -0.06796924769878387, -0.09098751842975616, 0.10331325232982635, 0.02208055555820465, -0.2510053813457489, 0.007965411990880966, 0.141607865691185, 0.035423584282398224, 0.298848956823349, 0.18924468755722046, 0.16129356622695923, 0.17427374422550201, 0.04252886772155762, -0.47614455223083496, 0.017563149333000183, -0.058839350938797, 0.0995730310678482, 0.18741726875305176, -0.1962638944387436, 0.2503477931022644, 0.25902059674263, 0.3225477933883667, 0.10736005753278732, -0.43837615847587585, -0.2273103892803192, -0.07985477894544601, 0.12250033766031265, 0.051014624536037445, -0.1831589639186859, 0.194535493850708, 0.28687649965286255, -0.06883221119642258, 0.3184705674648285, 0.23520055413246155, 0.3476952016353607, -0.42014795541763306, 0.04682748019695282, 0.4110739231109619, 0.06719375401735306, -0.12977394461631775, 0.47173231840133667, -0.20362454652786255, 0.052364032715559006, 0.08460178226232529, 0.29466432332992554, 0.1201954334974289, 0.8587026596069336, 0.12909187376499176, 0.1891806423664093, 0.41398894786834717, -0.030338052660226822, 0.006845295429229736, -0.496672123670578, -0.09523263573646545, 0.19847539067268372, -0.16807547211647034, 0.27411210536956787, 0.170212060213089, -0.3590531349182129, 0.19098615646362305, -0.38527750968933105, -0.23369187116622925, -0.06202669069170952, -0.2622534930706024, 0.13358168303966522, -0.0030267611145973206, 0.02732478827238083, 0.16201022267341614, 0.23714059591293335, -0.3845198452472687, -0.3014770746231079, -0.24613088369369507, 0.188907653093338, -0.2023761123418808, 0.2124774158000946, 0.42143040895462036, 0.044442325830459595, -0.031524479389190674, -0.03910909593105316, 0.36462754011154175, 0.09868377447128296, 0.10106837749481201, -0.08815349638462067, 0.07781030237674713, 0.13030804693698883, 0.1942221075296402, 0.18647204339504242, -0.0245685838162899, 0.22991764545440674, -0.012341811321675777, -0.06380593776702881, 0.023079706355929375, -0.10071185231208801, -0.015063360333442688, 0.13520461320877075, 0.07699860632419586, -0.01952509954571724, -0.10237164795398712, 0.42258939146995544, -0.005134863778948784, -0.4866008162498474, -0.03334220498800278, -0.49772217869758606, -0.005053207278251648, -0.05147722363471985, 0.02874579280614853, -0.41164642572402954, -0.2353772521018982, 0.5690826773643494, -0.20133617520332336, 0.25594738125801086, 0.07746583968400955, 0.04566144198179245, -0.607974112033844, 0.6227495074272156, 0.16278289258480072, 0.09330430626869202, -0.06854064762592316, 0.15942402184009552, -0.550015926361084, 0.030385911464691162, -0.21666309237480164, -0.1015653982758522, 0.23399728536605835, 0.4140377938747406, -0.03086373209953308, -0.048687227070331573, 0.16508536040782928, 0.0038426839746534824, -0.19164393842220306, 0.08944238722324371, -0.2840999364852905, -0.1390908807516098, -0.14434120059013367, 0.11855494976043701, -0.17532485723495483, -0.40838733315467834, 0.3195689022541046, -0.009301329031586647, -0.07678812742233276, -0.10664582252502441, 0.21733948588371277, -0.1415831446647644, 0.4878299832344055, 0.40138325095176697, -0.04832315444946289, 0.346391886472702, 0.0004340857267379761, 0.017502708360552788, 0.04518915340304375, 0.12413051724433899, -0.027961868792772293, 0.7077247500419617, 0.004538282752037048, 0.1401190608739853, -0.08763258904218674, 0.09331700205802917, 0.11833634227514267, 0.09128612279891968, -0.0013902224600315094, -0.15837471187114716, -0.13585443794727325, 0.05082041770219803, -0.152741476893425, 0.026536881923675537, 0.1540861278772354, 0.12320549041032791, 0.03159166872501373, -0.0814918801188469, -0.02852340042591095, -0.07005331665277481, 0.31889036297798157, 0.025711506605148315, -0.08472740650177002, 0.05338430404663086, -0.015611335635185242, -0.02105534076690674, -0.01873060129582882, -0.2966987192630768, 0.20120888948440552, 0.4706385135650635, -0.24818527698516846, -0.009380742907524109, 0.3947991728782654, -0.2101583331823349, 0.005891464650630951, -0.07563087344169617, 0.7668739557266235, -0.15176337957382202, -0.3579002320766449, -0.1258624941110611, -0.04181227087974548 ]
https://github.com/huggingface/datasets/issues/2146
Dataset file size on disk is very large with 3D Array
Interesting ! This may be because of the offsets that are stored with the array data. Currently the offsets are stored even if the `shape` of the arrays is fixed. This was needed because of some issues with pyarrow a few months ago. I think these issues have been addressed now, so we can probably try to remove them to make the file lighter. Ideally in your case the floats data should be 220 MB for both Array2D and Array3D
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
80
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. Interesting ! This may be because of the offsets that are stored with the array data. Currently the offsets are stored even if the `shape` of the arrays is fixed. This was needed because of some issues with pyarrow a few months ago. I think these issues have been addressed now, so we can probably try to remove them to make the file lighter. Ideally in your case the floats data should be 220 MB for both Array2D and Array3D
[ -0.14527370035648346, -0.11326321959495544, -0.15441793203353882, 0.4201556444168091, 0.2135637104511261, 0.11391321569681168, 0.5066814422607422, 0.2730785608291626, 0.020523294806480408, 0.03584757447242737, -0.1937045007944107, 0.0874154344201088, -0.1694583147764206, 0.31504425406455994, 0.06775014847517014, 0.10068812966346741, -0.07451743632555008, 0.25139838457107544, -0.13347862660884857, -0.08572021126747131, -0.009700402617454529, 0.019117796793580055, -0.01790953427553177, -0.18380673229694366, -0.06156212463974953, -0.16138315200805664, 0.09134972095489502, -0.024185143411159515, -0.08309819549322128, 0.07972723245620728, 0.24497835338115692, -0.08801163733005524, 0.17819981276988983, 0.5363881587982178, -0.00011738437024177983, 0.05027664452791214, 0.10829384624958038, -0.16553199291229248, 0.07918661832809448, 0.28935059905052185, -0.0925559550523758, -0.409506231546402, -0.07466698437929153, -0.3576085567474365, 0.07695842534303665, -0.3249553143978119, -0.15211747586727142, -0.1535455584526062, 0.18488967418670654, 0.0791000947356224, 0.21104557812213898, 0.15330490469932556, -0.027113543823361397, 0.415045827627182, 0.0993780568242073, 0.5338883399963379, -0.15334609150886536, 0.12685570120811462, -0.14353875815868378, 0.4372022747993469, 0.0842975452542305, 0.07955045998096466, 0.16135886311531067, 0.2877248227596283, 0.5040508508682251, -0.05551759898662567, 0.23921135067939758, -0.24619188904762268, 0.12989374995231628, 0.4001131057739258, 0.8583661317825317, -0.2007373869419098, -0.18428057432174683, -0.3255719244480133, -0.10833020508289337, -0.032338786870241165, 0.022541038691997528, 0.38006338477134705, -0.04989016056060791, 0.021931223571300507, -0.6522027254104614, -0.13922472298145294, -0.22694167494773865, 0.1455020010471344, -0.21365340054035187, -0.4809679687023163, -0.13809022307395935, 0.1503390073776245, -0.18900111317634583, -0.2658364176750183, 0.260778546333313, -0.39559242129325867, 0.07343761622905731, -0.0997145026922226, -0.26596584916114807, -0.2101805955171585, -0.2905137836933136, -0.3803427219390869, 0.3530273139476776, -0.15380585193634033, -0.010828179307281971, -0.15199381113052368, -0.36489322781562805, -0.14774170517921448, 0.10398487746715546, 0.3860372304916382, -0.4768468737602234, -0.13859771192073822, -0.14186790585517883, -0.29509061574935913, -0.040881719440221786, -0.05229455977678299, -0.246537983417511, -0.09075739979743958, 0.19863338768482208, -0.4835403263568878, 0.06393661350011826, -0.06186700984835625, 0.04468098282814026, 0.023807507008314133, 0.08648129552602768, -0.09525539726018906, -0.07516320794820786, 0.13165313005447388, 0.14105096459388733, 0.13527607917785645, -0.1400613635778427, -0.0392034649848938, -0.18591508269309998, 0.041638053953647614, -0.12296696752309799, -0.10461106896400452, 0.0626312792301178, -0.08175503462553024, 0.11447358131408691, 0.15056823194026947, 0.05229140818119049, -0.19045662879943848, 0.09038849174976349, 0.2001006007194519, 0.26247406005859375, -0.3473193049430847, 0.40737587213516235, 0.35500890016555786, 0.15890657901763916, 0.19831866025924683, -0.28542065620422363, 0.1398649364709854, -0.19970837235450745, 0.4944946765899658, -0.5467606782913208, -0.04535999149084091, -0.4173414409160614, 0.09062182903289795, -0.22343425452709198, -0.054320186376571655, -0.5728363394737244, 0.009743422269821167, 0.33955323696136475, -0.11862145364284515, 0.06782428920269012, -0.21734552085399628, -0.3785403370857239, -0.2943599224090576, -0.03715432062745094, 0.03126554936170578, -0.756312370300293, 0.2612311542034149, -0.1514393389225006, 0.08173643052577972, 0.19522055983543396, 0.5952165126800537, -0.08995184302330017, 0.4252854585647583, -0.4255605936050415, -0.04847139120101929, 0.043004125356674194, -0.03839990124106407, -0.6611076593399048, 0.4873417615890503, 0.07067152857780457, 0.04850282520055771, 0.11241453886032104, 0.3201822340488434, 0.16368569433689117, -0.01637532375752926, -0.22282889485359192, 0.32660597562789917, 0.09104806184768677, 0.04266900569200516, -0.19083282351493835, -0.38112330436706543, 0.08823941648006439, 0.04598051682114601, -0.13749538362026215, -0.14053526520729065, 0.13144522905349731, 0.08348696678876877, 0.21072262525558472, -0.12922047078609467, 0.03605996072292328, 0.3705860376358032, 0.20966383814811707, -0.25567328929901123, -0.021589012816548347, 0.14236611127853394, -0.6317536234855652, 0.18338090181350708, 0.24726203083992004, -0.4363887906074524, 0.1557537168264389, -0.10444330424070358, 0.03820636123418808, -0.22964641451835632, -0.08958972990512848, 0.20130163431167603, 0.023702479898929596, -0.0005765855312347412, -0.009196780622005463, -0.01045583002269268, -0.008591700345277786, -0.14775262773036957, 0.11488443613052368, -0.18818457424640656, -0.41142240166664124, 0.3561541736125946, 0.21356528997421265, -0.03504231944680214, -0.10568706691265106, -0.07886184006929398, -0.3569895327091217, -0.341083288192749, -0.18653497099876404, 0.0800965279340744, 0.25110772252082825, 0.12124788761138916, -0.07733053714036942, 0.4837382435798645, 0.22343115508556366, 0.07611672580242157, 0.33786821365356445, -0.1210734099149704, 0.09457752853631973, -0.22061556577682495, -0.2020530104637146, 0.2165207862854004, -0.1918245553970337, 0.06590293347835541, 0.020288199186325073, -0.35931482911109924, 0.2857814431190491, 0.1333053708076477, 0.10505332052707672, -0.2576684355735779, -0.07694394886493683, 0.1929023116827011, 0.3467419743537903, 0.2029423862695694, 0.10765635967254639, 0.046753961592912674, 0.6398187875747681, -0.16672198474407196, 0.10701826214790344, 0.3645210564136505, -0.12654247879981995, -0.078327476978302, 0.10587126761674881, 0.24525152146816254, 0.5257766842842102, 0.21703128516674042, 0.045964647084474564, -0.04137390851974487, 0.492552787065506, -0.14437976479530334, 0.08119123429059982, 0.067896269261837, 0.5235670208930969, 0.2810913920402527, 0.1602385938167572, 0.002756701782345772, -0.2844558358192444, -0.11330659687519073, 0.20439422130584717, 0.24656642973423004, -0.30335262417793274, 0.1999262422323227, -0.16313476860523224, -0.2681359052658081, -0.09479992836713791, 0.19029898941516876, -0.060111891478300095, 0.12484109401702881, -0.3277064561843872, -0.19444815814495087, 0.025102030485868454, -0.07976765930652618, 0.1439216136932373, 0.08479763567447662, 0.29378432035446167, -0.0679318979382515, 0.27016887068748474, 0.34331822395324707, -0.08782481402158737, 0.03548768535256386, 0.41429078578948975, -0.1485612988471985, 0.30000248551368713, -0.1635025441646576, 0.20966565608978271, -0.1380714774131775, -0.251680850982666, 0.1204531267285347, 0.06055554002523422, 0.07064543664455414, -0.10957422852516174, 0.27406635880470276, -0.19955974817276, 0.2018909454345703, 0.028606519103050232, 0.04939958453178406, -0.2603565752506256, 0.00025307759642601013, -0.04818807914853096, -0.12865214049816132, -0.21747058629989624, 0.0934465229511261, -0.28394556045532227, -0.0509909950196743, 0.2078644335269928, 0.18168999254703522, 0.25755900144577026, 0.37056317925453186, 0.17234326899051666, 0.041228070855140686, 0.14932771027088165, -0.024330874904990196, -0.19408050179481506, -0.45916351675987244, 0.14596138894557953, -0.02829108200967312, -0.37252435088157654, 0.14329096674919128, 0.011465642601251602, 0.19203630089759827, 0.2045513242483139, -0.648036003112793, -0.03949093818664551, -0.2930952310562134, 0.03786661848425865, -0.17624440789222717, 0.12188394367694855, 0.020079180598258972, -0.2159731388092041, 0.08265312761068344, -0.040028706192970276, -0.12273268401622772, -0.08012617379426956, 0.15147355198860168, 0.12099539488554001, 0.12774229049682617, 0.5383259057998657, 0.2677578032016754, 0.41049420833587646, 0.12948672473430634, -0.3016063868999481, 0.12483558058738708, -0.12099257856607437, 0.37001103162765503, -0.24813148379325867, 0.051788605749607086, 0.34236663579940796, 0.1794077754020691, -0.20174653828144073, 0.24014659225940704, -0.004897335544228554, -0.07058312743902206, 0.33670368790626526, 0.028789985924959183, -0.1383412629365921, 0.023905973881483078, 0.19354945421218872, -0.06046877056360245, 0.010493889451026917, -0.07026940584182739, -0.09877236187458038, -0.15903790295124054, -0.3050753176212311, -0.08737368881702423, 0.19044625759124756, 0.21983382105827332, 0.03397126495838165, -0.3773391842842102, -0.11484960466623306, -0.3479648530483246, 0.18864358961582184, -0.16870826482772827, 0.30231955647468567, 0.03228389844298363, 0.2741389870643616, 0.24751806259155273, 0.16157130897045135, 0.9262680411338806, -0.09160742908716202, 0.07147286832332611, -0.19727422297000885, -0.04356754198670387, -0.5894105434417725, -0.15428103506565094, -0.07896403968334198, 0.027080368250608444, -0.05903949216008186, 0.5538499355316162, -0.0631091520190239, -0.06860706955194473, -0.26175931096076965, 0.29919442534446716, -0.3168807625770569, -0.38776543736457825, -0.2755340337753296, -0.29334232211112976, -0.13568750023841858, -0.3935823440551758, 0.01999417133629322, -0.08695642650127411, 0.07559957355260849, -0.31932640075683594, -0.2675706446170807, -0.1990126073360443, 0.054138362407684326, 0.014546068385243416, 0.37403565645217896, 0.3435079753398895, 0.2086752951145172, -0.08692565560340881, 0.3284696936607361, 0.36619988083839417, 0.25957685708999634, 0.07187548279762268, 0.05686691403388977, 0.20528674125671387, -0.21680012345314026, 0.08616207540035248, 0.10835637152194977, -0.025059252977371216, -0.28772228956222534, -0.06701871752738953, 0.11198984086513519, -0.2830272316932678, 0.10249471664428711, 0.37182655930519104, -0.15860742330551147, -0.0864219143986702, -0.3929763436317444, 0.3548668920993805, 0.012159876525402069, 0.09401418268680573, 0.03600536286830902, -0.05195213854312897, -0.14947330951690674, 0.14809554815292358, 0.28316643834114075, 0.5525878071784973, -0.35487741231918335, 0.30332136154174805, 0.297414094209671, 0.0017683878540992737, 0.011403330601751804, -0.026530837640166283, -0.16806504130363464, -0.1445065587759018, -0.31227147579193115, 0.0030846241861581802, -0.18780839443206787, -0.025493785738945007, 0.48494672775268555, 0.17509670555591583, 0.04391271620988846, 0.20670683681964874, 0.007127687335014343, -0.11497616767883301, 0.5293208956718445, 0.29954850673675537, -0.22830013930797577, 0.03250198811292648, 0.06393478065729141, -0.2548326849937439, -0.19034916162490845, -0.0622592493891716, -0.08637963235378265, -0.09849441051483154, 0.2215804010629654, -0.04033968597650528, -0.21266701817512512, -0.12389547377824783, 0.3679512143135071, -0.10822087526321411, -0.23162232339382172, 0.18157339096069336, 0.08386632800102234, -0.20102010667324066, 0.19662319123744965, -0.1573190689086914, 0.12797002494335175, 0.0030061081051826477, 0.3249222934246063, 0.14139866828918457, -0.11449889093637466, -0.0310454610735178, -0.09132418036460876, 0.02342749387025833, -0.19438666105270386, 0.1888035386800766, -0.14826920628547668, -0.06292624026536942, 0.04548884183168411, 0.02978927455842495, -0.09610990434885025, -0.6530036330223083, -0.3431917428970337, -0.20482373237609863, 0.4010300040245056, 0.08056295663118362, 0.13096123933792114, 0.21248281002044678, 0.49659663438796997, 0.024388862773776054, -0.37303629517555237, -0.14032654464244843, 0.18952691555023193, 0.2858310639858246, 0.179946631193161, 0.38669225573539734, -0.134108766913414, -0.13659395277500153, -0.07098942995071411, 0.6510814428329468, 0.10127315670251846, -0.19125443696975708, -0.057765986770391464, -0.04039056971669197, 0.3169393539428711, 0.02081495150923729, -0.334383100271225, 0.1883581578731537, -0.09391557425260544, -0.3599134385585785, -0.2077348530292511, -0.13730476796627045, 0.12147073447704315, -0.1601492017507553, 0.2943194508552551, 0.050438039004802704, -0.18645329773426056, 0.0016886014491319656, -0.07643193006515503, -0.2049328088760376, 0.1969459354877472, 0.29577845335006714, 0.0060842521488666534, -0.33286750316619873, 0.0645713210105896, -0.08767790347337723, -0.2682575583457947, -0.06693800538778305, -0.14714354276657104, -0.17147886753082275, -0.17536914348602295, 0.09678122401237488, 0.11153768002986908, 0.1287064254283905, -0.28011634945869446, 0.1016182228922844, -0.3750438094139099, -0.47884687781333923, -0.13488081097602844, 0.131956085562706, -0.06796924769878387, -0.09098751842975616, 0.10331325232982635, 0.02208055555820465, -0.2510053813457489, 0.007965411990880966, 0.141607865691185, 0.035423584282398224, 0.298848956823349, 0.18924468755722046, 0.16129356622695923, 0.17427374422550201, 0.04252886772155762, -0.47614455223083496, 0.017563149333000183, -0.058839350938797, 0.0995730310678482, 0.18741726875305176, -0.1962638944387436, 0.2503477931022644, 0.25902059674263, 0.3225477933883667, 0.10736005753278732, -0.43837615847587585, -0.2273103892803192, -0.07985477894544601, 0.12250033766031265, 0.051014624536037445, -0.1831589639186859, 0.194535493850708, 0.28687649965286255, -0.06883221119642258, 0.3184705674648285, 0.23520055413246155, 0.3476952016353607, -0.42014795541763306, 0.04682748019695282, 0.4110739231109619, 0.06719375401735306, -0.12977394461631775, 0.47173231840133667, -0.20362454652786255, 0.052364032715559006, 0.08460178226232529, 0.29466432332992554, 0.1201954334974289, 0.8587026596069336, 0.12909187376499176, 0.1891806423664093, 0.41398894786834717, -0.030338052660226822, 0.006845295429229736, -0.496672123670578, -0.09523263573646545, 0.19847539067268372, -0.16807547211647034, 0.27411210536956787, 0.170212060213089, -0.3590531349182129, 0.19098615646362305, -0.38527750968933105, -0.23369187116622925, -0.06202669069170952, -0.2622534930706024, 0.13358168303966522, -0.0030267611145973206, 0.02732478827238083, 0.16201022267341614, 0.23714059591293335, -0.3845198452472687, -0.3014770746231079, -0.24613088369369507, 0.188907653093338, -0.2023761123418808, 0.2124774158000946, 0.42143040895462036, 0.044442325830459595, -0.031524479389190674, -0.03910909593105316, 0.36462754011154175, 0.09868377447128296, 0.10106837749481201, -0.08815349638462067, 0.07781030237674713, 0.13030804693698883, 0.1942221075296402, 0.18647204339504242, -0.0245685838162899, 0.22991764545440674, -0.012341811321675777, -0.06380593776702881, 0.023079706355929375, -0.10071185231208801, -0.015063360333442688, 0.13520461320877075, 0.07699860632419586, -0.01952509954571724, -0.10237164795398712, 0.42258939146995544, -0.005134863778948784, -0.4866008162498474, -0.03334220498800278, -0.49772217869758606, -0.005053207278251648, -0.05147722363471985, 0.02874579280614853, -0.41164642572402954, -0.2353772521018982, 0.5690826773643494, -0.20133617520332336, 0.25594738125801086, 0.07746583968400955, 0.04566144198179245, -0.607974112033844, 0.6227495074272156, 0.16278289258480072, 0.09330430626869202, -0.06854064762592316, 0.15942402184009552, -0.550015926361084, 0.030385911464691162, -0.21666309237480164, -0.1015653982758522, 0.23399728536605835, 0.4140377938747406, -0.03086373209953308, -0.048687227070331573, 0.16508536040782928, 0.0038426839746534824, -0.19164393842220306, 0.08944238722324371, -0.2840999364852905, -0.1390908807516098, -0.14434120059013367, 0.11855494976043701, -0.17532485723495483, -0.40838733315467834, 0.3195689022541046, -0.009301329031586647, -0.07678812742233276, -0.10664582252502441, 0.21733948588371277, -0.1415831446647644, 0.4878299832344055, 0.40138325095176697, -0.04832315444946289, 0.346391886472702, 0.0004340857267379761, 0.017502708360552788, 0.04518915340304375, 0.12413051724433899, -0.027961868792772293, 0.7077247500419617, 0.004538282752037048, 0.1401190608739853, -0.08763258904218674, 0.09331700205802917, 0.11833634227514267, 0.09128612279891968, -0.0013902224600315094, -0.15837471187114716, -0.13585443794727325, 0.05082041770219803, -0.152741476893425, 0.026536881923675537, 0.1540861278772354, 0.12320549041032791, 0.03159166872501373, -0.0814918801188469, -0.02852340042591095, -0.07005331665277481, 0.31889036297798157, 0.025711506605148315, -0.08472740650177002, 0.05338430404663086, -0.015611335635185242, -0.02105534076690674, -0.01873060129582882, -0.2966987192630768, 0.20120888948440552, 0.4706385135650635, -0.24818527698516846, -0.009380742907524109, 0.3947991728782654, -0.2101583331823349, 0.005891464650630951, -0.07563087344169617, 0.7668739557266235, -0.15176337957382202, -0.3579002320766449, -0.1258624941110611, -0.04181227087974548 ]
https://github.com/huggingface/datasets/issues/2146
Dataset file size on disk is very large with 3D Array
Yeah for sure, can you be a bit more specific about where the offset is stored in the code base ? And any reference to pyarrow issues if you have some. I would be very interested in contributing to `datasets` by trying to fix this issue.
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
46
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. Yeah for sure, can you be a bit more specific about where the offset is stored in the code base ? And any reference to pyarrow issues if you have some. I would be very interested in contributing to `datasets` by trying to fix this issue.
[ -0.14527370035648346, -0.11326321959495544, -0.15441793203353882, 0.4201556444168091, 0.2135637104511261, 0.11391321569681168, 0.5066814422607422, 0.2730785608291626, 0.020523294806480408, 0.03584757447242737, -0.1937045007944107, 0.0874154344201088, -0.1694583147764206, 0.31504425406455994, 0.06775014847517014, 0.10068812966346741, -0.07451743632555008, 0.25139838457107544, -0.13347862660884857, -0.08572021126747131, -0.009700402617454529, 0.019117796793580055, -0.01790953427553177, -0.18380673229694366, -0.06156212463974953, -0.16138315200805664, 0.09134972095489502, -0.024185143411159515, -0.08309819549322128, 0.07972723245620728, 0.24497835338115692, -0.08801163733005524, 0.17819981276988983, 0.5363881587982178, -0.00011738437024177983, 0.05027664452791214, 0.10829384624958038, -0.16553199291229248, 0.07918661832809448, 0.28935059905052185, -0.0925559550523758, -0.409506231546402, -0.07466698437929153, -0.3576085567474365, 0.07695842534303665, -0.3249553143978119, -0.15211747586727142, -0.1535455584526062, 0.18488967418670654, 0.0791000947356224, 0.21104557812213898, 0.15330490469932556, -0.027113543823361397, 0.415045827627182, 0.0993780568242073, 0.5338883399963379, -0.15334609150886536, 0.12685570120811462, -0.14353875815868378, 0.4372022747993469, 0.0842975452542305, 0.07955045998096466, 0.16135886311531067, 0.2877248227596283, 0.5040508508682251, -0.05551759898662567, 0.23921135067939758, -0.24619188904762268, 0.12989374995231628, 0.4001131057739258, 0.8583661317825317, -0.2007373869419098, -0.18428057432174683, -0.3255719244480133, -0.10833020508289337, -0.032338786870241165, 0.022541038691997528, 0.38006338477134705, -0.04989016056060791, 0.021931223571300507, -0.6522027254104614, -0.13922472298145294, -0.22694167494773865, 0.1455020010471344, -0.21365340054035187, -0.4809679687023163, -0.13809022307395935, 0.1503390073776245, -0.18900111317634583, -0.2658364176750183, 0.260778546333313, -0.39559242129325867, 0.07343761622905731, -0.0997145026922226, -0.26596584916114807, -0.2101805955171585, -0.2905137836933136, -0.3803427219390869, 0.3530273139476776, -0.15380585193634033, -0.010828179307281971, -0.15199381113052368, -0.36489322781562805, -0.14774170517921448, 0.10398487746715546, 0.3860372304916382, -0.4768468737602234, -0.13859771192073822, -0.14186790585517883, -0.29509061574935913, -0.040881719440221786, -0.05229455977678299, -0.246537983417511, -0.09075739979743958, 0.19863338768482208, -0.4835403263568878, 0.06393661350011826, -0.06186700984835625, 0.04468098282814026, 0.023807507008314133, 0.08648129552602768, -0.09525539726018906, -0.07516320794820786, 0.13165313005447388, 0.14105096459388733, 0.13527607917785645, -0.1400613635778427, -0.0392034649848938, -0.18591508269309998, 0.041638053953647614, -0.12296696752309799, -0.10461106896400452, 0.0626312792301178, -0.08175503462553024, 0.11447358131408691, 0.15056823194026947, 0.05229140818119049, -0.19045662879943848, 0.09038849174976349, 0.2001006007194519, 0.26247406005859375, -0.3473193049430847, 0.40737587213516235, 0.35500890016555786, 0.15890657901763916, 0.19831866025924683, -0.28542065620422363, 0.1398649364709854, -0.19970837235450745, 0.4944946765899658, -0.5467606782913208, -0.04535999149084091, -0.4173414409160614, 0.09062182903289795, -0.22343425452709198, -0.054320186376571655, -0.5728363394737244, 0.009743422269821167, 0.33955323696136475, -0.11862145364284515, 0.06782428920269012, -0.21734552085399628, -0.3785403370857239, -0.2943599224090576, -0.03715432062745094, 0.03126554936170578, -0.756312370300293, 0.2612311542034149, -0.1514393389225006, 0.08173643052577972, 0.19522055983543396, 0.5952165126800537, -0.08995184302330017, 0.4252854585647583, -0.4255605936050415, -0.04847139120101929, 0.043004125356674194, -0.03839990124106407, -0.6611076593399048, 0.4873417615890503, 0.07067152857780457, 0.04850282520055771, 0.11241453886032104, 0.3201822340488434, 0.16368569433689117, -0.01637532375752926, -0.22282889485359192, 0.32660597562789917, 0.09104806184768677, 0.04266900569200516, -0.19083282351493835, -0.38112330436706543, 0.08823941648006439, 0.04598051682114601, -0.13749538362026215, -0.14053526520729065, 0.13144522905349731, 0.08348696678876877, 0.21072262525558472, -0.12922047078609467, 0.03605996072292328, 0.3705860376358032, 0.20966383814811707, -0.25567328929901123, -0.021589012816548347, 0.14236611127853394, -0.6317536234855652, 0.18338090181350708, 0.24726203083992004, -0.4363887906074524, 0.1557537168264389, -0.10444330424070358, 0.03820636123418808, -0.22964641451835632, -0.08958972990512848, 0.20130163431167603, 0.023702479898929596, -0.0005765855312347412, -0.009196780622005463, -0.01045583002269268, -0.008591700345277786, -0.14775262773036957, 0.11488443613052368, -0.18818457424640656, -0.41142240166664124, 0.3561541736125946, 0.21356528997421265, -0.03504231944680214, -0.10568706691265106, -0.07886184006929398, -0.3569895327091217, -0.341083288192749, -0.18653497099876404, 0.0800965279340744, 0.25110772252082825, 0.12124788761138916, -0.07733053714036942, 0.4837382435798645, 0.22343115508556366, 0.07611672580242157, 0.33786821365356445, -0.1210734099149704, 0.09457752853631973, -0.22061556577682495, -0.2020530104637146, 0.2165207862854004, -0.1918245553970337, 0.06590293347835541, 0.020288199186325073, -0.35931482911109924, 0.2857814431190491, 0.1333053708076477, 0.10505332052707672, -0.2576684355735779, -0.07694394886493683, 0.1929023116827011, 0.3467419743537903, 0.2029423862695694, 0.10765635967254639, 0.046753961592912674, 0.6398187875747681, -0.16672198474407196, 0.10701826214790344, 0.3645210564136505, -0.12654247879981995, -0.078327476978302, 0.10587126761674881, 0.24525152146816254, 0.5257766842842102, 0.21703128516674042, 0.045964647084474564, -0.04137390851974487, 0.492552787065506, -0.14437976479530334, 0.08119123429059982, 0.067896269261837, 0.5235670208930969, 0.2810913920402527, 0.1602385938167572, 0.002756701782345772, -0.2844558358192444, -0.11330659687519073, 0.20439422130584717, 0.24656642973423004, -0.30335262417793274, 0.1999262422323227, -0.16313476860523224, -0.2681359052658081, -0.09479992836713791, 0.19029898941516876, -0.060111891478300095, 0.12484109401702881, -0.3277064561843872, -0.19444815814495087, 0.025102030485868454, -0.07976765930652618, 0.1439216136932373, 0.08479763567447662, 0.29378432035446167, -0.0679318979382515, 0.27016887068748474, 0.34331822395324707, -0.08782481402158737, 0.03548768535256386, 0.41429078578948975, -0.1485612988471985, 0.30000248551368713, -0.1635025441646576, 0.20966565608978271, -0.1380714774131775, -0.251680850982666, 0.1204531267285347, 0.06055554002523422, 0.07064543664455414, -0.10957422852516174, 0.27406635880470276, -0.19955974817276, 0.2018909454345703, 0.028606519103050232, 0.04939958453178406, -0.2603565752506256, 0.00025307759642601013, -0.04818807914853096, -0.12865214049816132, -0.21747058629989624, 0.0934465229511261, -0.28394556045532227, -0.0509909950196743, 0.2078644335269928, 0.18168999254703522, 0.25755900144577026, 0.37056317925453186, 0.17234326899051666, 0.041228070855140686, 0.14932771027088165, -0.024330874904990196, -0.19408050179481506, -0.45916351675987244, 0.14596138894557953, -0.02829108200967312, -0.37252435088157654, 0.14329096674919128, 0.011465642601251602, 0.19203630089759827, 0.2045513242483139, -0.648036003112793, -0.03949093818664551, -0.2930952310562134, 0.03786661848425865, -0.17624440789222717, 0.12188394367694855, 0.020079180598258972, -0.2159731388092041, 0.08265312761068344, -0.040028706192970276, -0.12273268401622772, -0.08012617379426956, 0.15147355198860168, 0.12099539488554001, 0.12774229049682617, 0.5383259057998657, 0.2677578032016754, 0.41049420833587646, 0.12948672473430634, -0.3016063868999481, 0.12483558058738708, -0.12099257856607437, 0.37001103162765503, -0.24813148379325867, 0.051788605749607086, 0.34236663579940796, 0.1794077754020691, -0.20174653828144073, 0.24014659225940704, -0.004897335544228554, -0.07058312743902206, 0.33670368790626526, 0.028789985924959183, -0.1383412629365921, 0.023905973881483078, 0.19354945421218872, -0.06046877056360245, 0.010493889451026917, -0.07026940584182739, -0.09877236187458038, -0.15903790295124054, -0.3050753176212311, -0.08737368881702423, 0.19044625759124756, 0.21983382105827332, 0.03397126495838165, -0.3773391842842102, -0.11484960466623306, -0.3479648530483246, 0.18864358961582184, -0.16870826482772827, 0.30231955647468567, 0.03228389844298363, 0.2741389870643616, 0.24751806259155273, 0.16157130897045135, 0.9262680411338806, -0.09160742908716202, 0.07147286832332611, -0.19727422297000885, -0.04356754198670387, -0.5894105434417725, -0.15428103506565094, -0.07896403968334198, 0.027080368250608444, -0.05903949216008186, 0.5538499355316162, -0.0631091520190239, -0.06860706955194473, -0.26175931096076965, 0.29919442534446716, -0.3168807625770569, -0.38776543736457825, -0.2755340337753296, -0.29334232211112976, -0.13568750023841858, -0.3935823440551758, 0.01999417133629322, -0.08695642650127411, 0.07559957355260849, -0.31932640075683594, -0.2675706446170807, -0.1990126073360443, 0.054138362407684326, 0.014546068385243416, 0.37403565645217896, 0.3435079753398895, 0.2086752951145172, -0.08692565560340881, 0.3284696936607361, 0.36619988083839417, 0.25957685708999634, 0.07187548279762268, 0.05686691403388977, 0.20528674125671387, -0.21680012345314026, 0.08616207540035248, 0.10835637152194977, -0.025059252977371216, -0.28772228956222534, -0.06701871752738953, 0.11198984086513519, -0.2830272316932678, 0.10249471664428711, 0.37182655930519104, -0.15860742330551147, -0.0864219143986702, -0.3929763436317444, 0.3548668920993805, 0.012159876525402069, 0.09401418268680573, 0.03600536286830902, -0.05195213854312897, -0.14947330951690674, 0.14809554815292358, 0.28316643834114075, 0.5525878071784973, -0.35487741231918335, 0.30332136154174805, 0.297414094209671, 0.0017683878540992737, 0.011403330601751804, -0.026530837640166283, -0.16806504130363464, -0.1445065587759018, -0.31227147579193115, 0.0030846241861581802, -0.18780839443206787, -0.025493785738945007, 0.48494672775268555, 0.17509670555591583, 0.04391271620988846, 0.20670683681964874, 0.007127687335014343, -0.11497616767883301, 0.5293208956718445, 0.29954850673675537, -0.22830013930797577, 0.03250198811292648, 0.06393478065729141, -0.2548326849937439, -0.19034916162490845, -0.0622592493891716, -0.08637963235378265, -0.09849441051483154, 0.2215804010629654, -0.04033968597650528, -0.21266701817512512, -0.12389547377824783, 0.3679512143135071, -0.10822087526321411, -0.23162232339382172, 0.18157339096069336, 0.08386632800102234, -0.20102010667324066, 0.19662319123744965, -0.1573190689086914, 0.12797002494335175, 0.0030061081051826477, 0.3249222934246063, 0.14139866828918457, -0.11449889093637466, -0.0310454610735178, -0.09132418036460876, 0.02342749387025833, -0.19438666105270386, 0.1888035386800766, -0.14826920628547668, -0.06292624026536942, 0.04548884183168411, 0.02978927455842495, -0.09610990434885025, -0.6530036330223083, -0.3431917428970337, -0.20482373237609863, 0.4010300040245056, 0.08056295663118362, 0.13096123933792114, 0.21248281002044678, 0.49659663438796997, 0.024388862773776054, -0.37303629517555237, -0.14032654464244843, 0.18952691555023193, 0.2858310639858246, 0.179946631193161, 0.38669225573539734, -0.134108766913414, -0.13659395277500153, -0.07098942995071411, 0.6510814428329468, 0.10127315670251846, -0.19125443696975708, -0.057765986770391464, -0.04039056971669197, 0.3169393539428711, 0.02081495150923729, -0.334383100271225, 0.1883581578731537, -0.09391557425260544, -0.3599134385585785, -0.2077348530292511, -0.13730476796627045, 0.12147073447704315, -0.1601492017507553, 0.2943194508552551, 0.050438039004802704, -0.18645329773426056, 0.0016886014491319656, -0.07643193006515503, -0.2049328088760376, 0.1969459354877472, 0.29577845335006714, 0.0060842521488666534, -0.33286750316619873, 0.0645713210105896, -0.08767790347337723, -0.2682575583457947, -0.06693800538778305, -0.14714354276657104, -0.17147886753082275, -0.17536914348602295, 0.09678122401237488, 0.11153768002986908, 0.1287064254283905, -0.28011634945869446, 0.1016182228922844, -0.3750438094139099, -0.47884687781333923, -0.13488081097602844, 0.131956085562706, -0.06796924769878387, -0.09098751842975616, 0.10331325232982635, 0.02208055555820465, -0.2510053813457489, 0.007965411990880966, 0.141607865691185, 0.035423584282398224, 0.298848956823349, 0.18924468755722046, 0.16129356622695923, 0.17427374422550201, 0.04252886772155762, -0.47614455223083496, 0.017563149333000183, -0.058839350938797, 0.0995730310678482, 0.18741726875305176, -0.1962638944387436, 0.2503477931022644, 0.25902059674263, 0.3225477933883667, 0.10736005753278732, -0.43837615847587585, -0.2273103892803192, -0.07985477894544601, 0.12250033766031265, 0.051014624536037445, -0.1831589639186859, 0.194535493850708, 0.28687649965286255, -0.06883221119642258, 0.3184705674648285, 0.23520055413246155, 0.3476952016353607, -0.42014795541763306, 0.04682748019695282, 0.4110739231109619, 0.06719375401735306, -0.12977394461631775, 0.47173231840133667, -0.20362454652786255, 0.052364032715559006, 0.08460178226232529, 0.29466432332992554, 0.1201954334974289, 0.8587026596069336, 0.12909187376499176, 0.1891806423664093, 0.41398894786834717, -0.030338052660226822, 0.006845295429229736, -0.496672123670578, -0.09523263573646545, 0.19847539067268372, -0.16807547211647034, 0.27411210536956787, 0.170212060213089, -0.3590531349182129, 0.19098615646362305, -0.38527750968933105, -0.23369187116622925, -0.06202669069170952, -0.2622534930706024, 0.13358168303966522, -0.0030267611145973206, 0.02732478827238083, 0.16201022267341614, 0.23714059591293335, -0.3845198452472687, -0.3014770746231079, -0.24613088369369507, 0.188907653093338, -0.2023761123418808, 0.2124774158000946, 0.42143040895462036, 0.044442325830459595, -0.031524479389190674, -0.03910909593105316, 0.36462754011154175, 0.09868377447128296, 0.10106837749481201, -0.08815349638462067, 0.07781030237674713, 0.13030804693698883, 0.1942221075296402, 0.18647204339504242, -0.0245685838162899, 0.22991764545440674, -0.012341811321675777, -0.06380593776702881, 0.023079706355929375, -0.10071185231208801, -0.015063360333442688, 0.13520461320877075, 0.07699860632419586, -0.01952509954571724, -0.10237164795398712, 0.42258939146995544, -0.005134863778948784, -0.4866008162498474, -0.03334220498800278, -0.49772217869758606, -0.005053207278251648, -0.05147722363471985, 0.02874579280614853, -0.41164642572402954, -0.2353772521018982, 0.5690826773643494, -0.20133617520332336, 0.25594738125801086, 0.07746583968400955, 0.04566144198179245, -0.607974112033844, 0.6227495074272156, 0.16278289258480072, 0.09330430626869202, -0.06854064762592316, 0.15942402184009552, -0.550015926361084, 0.030385911464691162, -0.21666309237480164, -0.1015653982758522, 0.23399728536605835, 0.4140377938747406, -0.03086373209953308, -0.048687227070331573, 0.16508536040782928, 0.0038426839746534824, -0.19164393842220306, 0.08944238722324371, -0.2840999364852905, -0.1390908807516098, -0.14434120059013367, 0.11855494976043701, -0.17532485723495483, -0.40838733315467834, 0.3195689022541046, -0.009301329031586647, -0.07678812742233276, -0.10664582252502441, 0.21733948588371277, -0.1415831446647644, 0.4878299832344055, 0.40138325095176697, -0.04832315444946289, 0.346391886472702, 0.0004340857267379761, 0.017502708360552788, 0.04518915340304375, 0.12413051724433899, -0.027961868792772293, 0.7077247500419617, 0.004538282752037048, 0.1401190608739853, -0.08763258904218674, 0.09331700205802917, 0.11833634227514267, 0.09128612279891968, -0.0013902224600315094, -0.15837471187114716, -0.13585443794727325, 0.05082041770219803, -0.152741476893425, 0.026536881923675537, 0.1540861278772354, 0.12320549041032791, 0.03159166872501373, -0.0814918801188469, -0.02852340042591095, -0.07005331665277481, 0.31889036297798157, 0.025711506605148315, -0.08472740650177002, 0.05338430404663086, -0.015611335635185242, -0.02105534076690674, -0.01873060129582882, -0.2966987192630768, 0.20120888948440552, 0.4706385135650635, -0.24818527698516846, -0.009380742907524109, 0.3947991728782654, -0.2101583331823349, 0.005891464650630951, -0.07563087344169617, 0.7668739557266235, -0.15176337957382202, -0.3579002320766449, -0.1258624941110611, -0.04181227087974548 ]
https://github.com/huggingface/datasets/issues/2146
Dataset file size on disk is very large with 3D Array
Pyarrow has two types of lists: variable length lists and fixed size lists. Currently we store the ArrayXD data as variable length lists. They take more disk space because they must store both actual data and offsets. In the `datasets` code this is done here: https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L346-L352 To use a fixed length list, one should use the `list_size` argument of `pyarrow.list_()`. I believe this would work directly modulo some changes in the numpy conversion here: https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L381-L395
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
75
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. Pyarrow has two types of lists: variable length lists and fixed size lists. Currently we store the ArrayXD data as variable length lists. They take more disk space because they must store both actual data and offsets. In the `datasets` code this is done here: https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L346-L352 To use a fixed length list, one should use the `list_size` argument of `pyarrow.list_()`. I believe this would work directly modulo some changes in the numpy conversion here: https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L381-L395
[ -0.14527370035648346, -0.11326321959495544, -0.15441793203353882, 0.4201556444168091, 0.2135637104511261, 0.11391321569681168, 0.5066814422607422, 0.2730785608291626, 0.020523294806480408, 0.03584757447242737, -0.1937045007944107, 0.0874154344201088, -0.1694583147764206, 0.31504425406455994, 0.06775014847517014, 0.10068812966346741, -0.07451743632555008, 0.25139838457107544, -0.13347862660884857, -0.08572021126747131, -0.009700402617454529, 0.019117796793580055, -0.01790953427553177, -0.18380673229694366, -0.06156212463974953, -0.16138315200805664, 0.09134972095489502, -0.024185143411159515, -0.08309819549322128, 0.07972723245620728, 0.24497835338115692, -0.08801163733005524, 0.17819981276988983, 0.5363881587982178, -0.00011738437024177983, 0.05027664452791214, 0.10829384624958038, -0.16553199291229248, 0.07918661832809448, 0.28935059905052185, -0.0925559550523758, -0.409506231546402, -0.07466698437929153, -0.3576085567474365, 0.07695842534303665, -0.3249553143978119, -0.15211747586727142, -0.1535455584526062, 0.18488967418670654, 0.0791000947356224, 0.21104557812213898, 0.15330490469932556, -0.027113543823361397, 0.415045827627182, 0.0993780568242073, 0.5338883399963379, -0.15334609150886536, 0.12685570120811462, -0.14353875815868378, 0.4372022747993469, 0.0842975452542305, 0.07955045998096466, 0.16135886311531067, 0.2877248227596283, 0.5040508508682251, -0.05551759898662567, 0.23921135067939758, -0.24619188904762268, 0.12989374995231628, 0.4001131057739258, 0.8583661317825317, -0.2007373869419098, -0.18428057432174683, -0.3255719244480133, -0.10833020508289337, -0.032338786870241165, 0.022541038691997528, 0.38006338477134705, -0.04989016056060791, 0.021931223571300507, -0.6522027254104614, -0.13922472298145294, -0.22694167494773865, 0.1455020010471344, -0.21365340054035187, -0.4809679687023163, -0.13809022307395935, 0.1503390073776245, -0.18900111317634583, -0.2658364176750183, 0.260778546333313, -0.39559242129325867, 0.07343761622905731, -0.0997145026922226, -0.26596584916114807, -0.2101805955171585, -0.2905137836933136, -0.3803427219390869, 0.3530273139476776, -0.15380585193634033, -0.010828179307281971, -0.15199381113052368, -0.36489322781562805, -0.14774170517921448, 0.10398487746715546, 0.3860372304916382, -0.4768468737602234, -0.13859771192073822, -0.14186790585517883, -0.29509061574935913, -0.040881719440221786, -0.05229455977678299, -0.246537983417511, -0.09075739979743958, 0.19863338768482208, -0.4835403263568878, 0.06393661350011826, -0.06186700984835625, 0.04468098282814026, 0.023807507008314133, 0.08648129552602768, -0.09525539726018906, -0.07516320794820786, 0.13165313005447388, 0.14105096459388733, 0.13527607917785645, -0.1400613635778427, -0.0392034649848938, -0.18591508269309998, 0.041638053953647614, -0.12296696752309799, -0.10461106896400452, 0.0626312792301178, -0.08175503462553024, 0.11447358131408691, 0.15056823194026947, 0.05229140818119049, -0.19045662879943848, 0.09038849174976349, 0.2001006007194519, 0.26247406005859375, -0.3473193049430847, 0.40737587213516235, 0.35500890016555786, 0.15890657901763916, 0.19831866025924683, -0.28542065620422363, 0.1398649364709854, -0.19970837235450745, 0.4944946765899658, -0.5467606782913208, -0.04535999149084091, -0.4173414409160614, 0.09062182903289795, -0.22343425452709198, -0.054320186376571655, -0.5728363394737244, 0.009743422269821167, 0.33955323696136475, -0.11862145364284515, 0.06782428920269012, -0.21734552085399628, -0.3785403370857239, -0.2943599224090576, -0.03715432062745094, 0.03126554936170578, -0.756312370300293, 0.2612311542034149, -0.1514393389225006, 0.08173643052577972, 0.19522055983543396, 0.5952165126800537, -0.08995184302330017, 0.4252854585647583, -0.4255605936050415, -0.04847139120101929, 0.043004125356674194, -0.03839990124106407, -0.6611076593399048, 0.4873417615890503, 0.07067152857780457, 0.04850282520055771, 0.11241453886032104, 0.3201822340488434, 0.16368569433689117, -0.01637532375752926, -0.22282889485359192, 0.32660597562789917, 0.09104806184768677, 0.04266900569200516, -0.19083282351493835, -0.38112330436706543, 0.08823941648006439, 0.04598051682114601, -0.13749538362026215, -0.14053526520729065, 0.13144522905349731, 0.08348696678876877, 0.21072262525558472, -0.12922047078609467, 0.03605996072292328, 0.3705860376358032, 0.20966383814811707, -0.25567328929901123, -0.021589012816548347, 0.14236611127853394, -0.6317536234855652, 0.18338090181350708, 0.24726203083992004, -0.4363887906074524, 0.1557537168264389, -0.10444330424070358, 0.03820636123418808, -0.22964641451835632, -0.08958972990512848, 0.20130163431167603, 0.023702479898929596, -0.0005765855312347412, -0.009196780622005463, -0.01045583002269268, -0.008591700345277786, -0.14775262773036957, 0.11488443613052368, -0.18818457424640656, -0.41142240166664124, 0.3561541736125946, 0.21356528997421265, -0.03504231944680214, -0.10568706691265106, -0.07886184006929398, -0.3569895327091217, -0.341083288192749, -0.18653497099876404, 0.0800965279340744, 0.25110772252082825, 0.12124788761138916, -0.07733053714036942, 0.4837382435798645, 0.22343115508556366, 0.07611672580242157, 0.33786821365356445, -0.1210734099149704, 0.09457752853631973, -0.22061556577682495, -0.2020530104637146, 0.2165207862854004, -0.1918245553970337, 0.06590293347835541, 0.020288199186325073, -0.35931482911109924, 0.2857814431190491, 0.1333053708076477, 0.10505332052707672, -0.2576684355735779, -0.07694394886493683, 0.1929023116827011, 0.3467419743537903, 0.2029423862695694, 0.10765635967254639, 0.046753961592912674, 0.6398187875747681, -0.16672198474407196, 0.10701826214790344, 0.3645210564136505, -0.12654247879981995, -0.078327476978302, 0.10587126761674881, 0.24525152146816254, 0.5257766842842102, 0.21703128516674042, 0.045964647084474564, -0.04137390851974487, 0.492552787065506, -0.14437976479530334, 0.08119123429059982, 0.067896269261837, 0.5235670208930969, 0.2810913920402527, 0.1602385938167572, 0.002756701782345772, -0.2844558358192444, -0.11330659687519073, 0.20439422130584717, 0.24656642973423004, -0.30335262417793274, 0.1999262422323227, -0.16313476860523224, -0.2681359052658081, -0.09479992836713791, 0.19029898941516876, -0.060111891478300095, 0.12484109401702881, -0.3277064561843872, -0.19444815814495087, 0.025102030485868454, -0.07976765930652618, 0.1439216136932373, 0.08479763567447662, 0.29378432035446167, -0.0679318979382515, 0.27016887068748474, 0.34331822395324707, -0.08782481402158737, 0.03548768535256386, 0.41429078578948975, -0.1485612988471985, 0.30000248551368713, -0.1635025441646576, 0.20966565608978271, -0.1380714774131775, -0.251680850982666, 0.1204531267285347, 0.06055554002523422, 0.07064543664455414, -0.10957422852516174, 0.27406635880470276, -0.19955974817276, 0.2018909454345703, 0.028606519103050232, 0.04939958453178406, -0.2603565752506256, 0.00025307759642601013, -0.04818807914853096, -0.12865214049816132, -0.21747058629989624, 0.0934465229511261, -0.28394556045532227, -0.0509909950196743, 0.2078644335269928, 0.18168999254703522, 0.25755900144577026, 0.37056317925453186, 0.17234326899051666, 0.041228070855140686, 0.14932771027088165, -0.024330874904990196, -0.19408050179481506, -0.45916351675987244, 0.14596138894557953, -0.02829108200967312, -0.37252435088157654, 0.14329096674919128, 0.011465642601251602, 0.19203630089759827, 0.2045513242483139, -0.648036003112793, -0.03949093818664551, -0.2930952310562134, 0.03786661848425865, -0.17624440789222717, 0.12188394367694855, 0.020079180598258972, -0.2159731388092041, 0.08265312761068344, -0.040028706192970276, -0.12273268401622772, -0.08012617379426956, 0.15147355198860168, 0.12099539488554001, 0.12774229049682617, 0.5383259057998657, 0.2677578032016754, 0.41049420833587646, 0.12948672473430634, -0.3016063868999481, 0.12483558058738708, -0.12099257856607437, 0.37001103162765503, -0.24813148379325867, 0.051788605749607086, 0.34236663579940796, 0.1794077754020691, -0.20174653828144073, 0.24014659225940704, -0.004897335544228554, -0.07058312743902206, 0.33670368790626526, 0.028789985924959183, -0.1383412629365921, 0.023905973881483078, 0.19354945421218872, -0.06046877056360245, 0.010493889451026917, -0.07026940584182739, -0.09877236187458038, -0.15903790295124054, -0.3050753176212311, -0.08737368881702423, 0.19044625759124756, 0.21983382105827332, 0.03397126495838165, -0.3773391842842102, -0.11484960466623306, -0.3479648530483246, 0.18864358961582184, -0.16870826482772827, 0.30231955647468567, 0.03228389844298363, 0.2741389870643616, 0.24751806259155273, 0.16157130897045135, 0.9262680411338806, -0.09160742908716202, 0.07147286832332611, -0.19727422297000885, -0.04356754198670387, -0.5894105434417725, -0.15428103506565094, -0.07896403968334198, 0.027080368250608444, -0.05903949216008186, 0.5538499355316162, -0.0631091520190239, -0.06860706955194473, -0.26175931096076965, 0.29919442534446716, -0.3168807625770569, -0.38776543736457825, -0.2755340337753296, -0.29334232211112976, -0.13568750023841858, -0.3935823440551758, 0.01999417133629322, -0.08695642650127411, 0.07559957355260849, -0.31932640075683594, -0.2675706446170807, -0.1990126073360443, 0.054138362407684326, 0.014546068385243416, 0.37403565645217896, 0.3435079753398895, 0.2086752951145172, -0.08692565560340881, 0.3284696936607361, 0.36619988083839417, 0.25957685708999634, 0.07187548279762268, 0.05686691403388977, 0.20528674125671387, -0.21680012345314026, 0.08616207540035248, 0.10835637152194977, -0.025059252977371216, -0.28772228956222534, -0.06701871752738953, 0.11198984086513519, -0.2830272316932678, 0.10249471664428711, 0.37182655930519104, -0.15860742330551147, -0.0864219143986702, -0.3929763436317444, 0.3548668920993805, 0.012159876525402069, 0.09401418268680573, 0.03600536286830902, -0.05195213854312897, -0.14947330951690674, 0.14809554815292358, 0.28316643834114075, 0.5525878071784973, -0.35487741231918335, 0.30332136154174805, 0.297414094209671, 0.0017683878540992737, 0.011403330601751804, -0.026530837640166283, -0.16806504130363464, -0.1445065587759018, -0.31227147579193115, 0.0030846241861581802, -0.18780839443206787, -0.025493785738945007, 0.48494672775268555, 0.17509670555591583, 0.04391271620988846, 0.20670683681964874, 0.007127687335014343, -0.11497616767883301, 0.5293208956718445, 0.29954850673675537, -0.22830013930797577, 0.03250198811292648, 0.06393478065729141, -0.2548326849937439, -0.19034916162490845, -0.0622592493891716, -0.08637963235378265, -0.09849441051483154, 0.2215804010629654, -0.04033968597650528, -0.21266701817512512, -0.12389547377824783, 0.3679512143135071, -0.10822087526321411, -0.23162232339382172, 0.18157339096069336, 0.08386632800102234, -0.20102010667324066, 0.19662319123744965, -0.1573190689086914, 0.12797002494335175, 0.0030061081051826477, 0.3249222934246063, 0.14139866828918457, -0.11449889093637466, -0.0310454610735178, -0.09132418036460876, 0.02342749387025833, -0.19438666105270386, 0.1888035386800766, -0.14826920628547668, -0.06292624026536942, 0.04548884183168411, 0.02978927455842495, -0.09610990434885025, -0.6530036330223083, -0.3431917428970337, -0.20482373237609863, 0.4010300040245056, 0.08056295663118362, 0.13096123933792114, 0.21248281002044678, 0.49659663438796997, 0.024388862773776054, -0.37303629517555237, -0.14032654464244843, 0.18952691555023193, 0.2858310639858246, 0.179946631193161, 0.38669225573539734, -0.134108766913414, -0.13659395277500153, -0.07098942995071411, 0.6510814428329468, 0.10127315670251846, -0.19125443696975708, -0.057765986770391464, -0.04039056971669197, 0.3169393539428711, 0.02081495150923729, -0.334383100271225, 0.1883581578731537, -0.09391557425260544, -0.3599134385585785, -0.2077348530292511, -0.13730476796627045, 0.12147073447704315, -0.1601492017507553, 0.2943194508552551, 0.050438039004802704, -0.18645329773426056, 0.0016886014491319656, -0.07643193006515503, -0.2049328088760376, 0.1969459354877472, 0.29577845335006714, 0.0060842521488666534, -0.33286750316619873, 0.0645713210105896, -0.08767790347337723, -0.2682575583457947, -0.06693800538778305, -0.14714354276657104, -0.17147886753082275, -0.17536914348602295, 0.09678122401237488, 0.11153768002986908, 0.1287064254283905, -0.28011634945869446, 0.1016182228922844, -0.3750438094139099, -0.47884687781333923, -0.13488081097602844, 0.131956085562706, -0.06796924769878387, -0.09098751842975616, 0.10331325232982635, 0.02208055555820465, -0.2510053813457489, 0.007965411990880966, 0.141607865691185, 0.035423584282398224, 0.298848956823349, 0.18924468755722046, 0.16129356622695923, 0.17427374422550201, 0.04252886772155762, -0.47614455223083496, 0.017563149333000183, -0.058839350938797, 0.0995730310678482, 0.18741726875305176, -0.1962638944387436, 0.2503477931022644, 0.25902059674263, 0.3225477933883667, 0.10736005753278732, -0.43837615847587585, -0.2273103892803192, -0.07985477894544601, 0.12250033766031265, 0.051014624536037445, -0.1831589639186859, 0.194535493850708, 0.28687649965286255, -0.06883221119642258, 0.3184705674648285, 0.23520055413246155, 0.3476952016353607, -0.42014795541763306, 0.04682748019695282, 0.4110739231109619, 0.06719375401735306, -0.12977394461631775, 0.47173231840133667, -0.20362454652786255, 0.052364032715559006, 0.08460178226232529, 0.29466432332992554, 0.1201954334974289, 0.8587026596069336, 0.12909187376499176, 0.1891806423664093, 0.41398894786834717, -0.030338052660226822, 0.006845295429229736, -0.496672123670578, -0.09523263573646545, 0.19847539067268372, -0.16807547211647034, 0.27411210536956787, 0.170212060213089, -0.3590531349182129, 0.19098615646362305, -0.38527750968933105, -0.23369187116622925, -0.06202669069170952, -0.2622534930706024, 0.13358168303966522, -0.0030267611145973206, 0.02732478827238083, 0.16201022267341614, 0.23714059591293335, -0.3845198452472687, -0.3014770746231079, -0.24613088369369507, 0.188907653093338, -0.2023761123418808, 0.2124774158000946, 0.42143040895462036, 0.044442325830459595, -0.031524479389190674, -0.03910909593105316, 0.36462754011154175, 0.09868377447128296, 0.10106837749481201, -0.08815349638462067, 0.07781030237674713, 0.13030804693698883, 0.1942221075296402, 0.18647204339504242, -0.0245685838162899, 0.22991764545440674, -0.012341811321675777, -0.06380593776702881, 0.023079706355929375, -0.10071185231208801, -0.015063360333442688, 0.13520461320877075, 0.07699860632419586, -0.01952509954571724, -0.10237164795398712, 0.42258939146995544, -0.005134863778948784, -0.4866008162498474, -0.03334220498800278, -0.49772217869758606, -0.005053207278251648, -0.05147722363471985, 0.02874579280614853, -0.41164642572402954, -0.2353772521018982, 0.5690826773643494, -0.20133617520332336, 0.25594738125801086, 0.07746583968400955, 0.04566144198179245, -0.607974112033844, 0.6227495074272156, 0.16278289258480072, 0.09330430626869202, -0.06854064762592316, 0.15942402184009552, -0.550015926361084, 0.030385911464691162, -0.21666309237480164, -0.1015653982758522, 0.23399728536605835, 0.4140377938747406, -0.03086373209953308, -0.048687227070331573, 0.16508536040782928, 0.0038426839746534824, -0.19164393842220306, 0.08944238722324371, -0.2840999364852905, -0.1390908807516098, -0.14434120059013367, 0.11855494976043701, -0.17532485723495483, -0.40838733315467834, 0.3195689022541046, -0.009301329031586647, -0.07678812742233276, -0.10664582252502441, 0.21733948588371277, -0.1415831446647644, 0.4878299832344055, 0.40138325095176697, -0.04832315444946289, 0.346391886472702, 0.0004340857267379761, 0.017502708360552788, 0.04518915340304375, 0.12413051724433899, -0.027961868792772293, 0.7077247500419617, 0.004538282752037048, 0.1401190608739853, -0.08763258904218674, 0.09331700205802917, 0.11833634227514267, 0.09128612279891968, -0.0013902224600315094, -0.15837471187114716, -0.13585443794727325, 0.05082041770219803, -0.152741476893425, 0.026536881923675537, 0.1540861278772354, 0.12320549041032791, 0.03159166872501373, -0.0814918801188469, -0.02852340042591095, -0.07005331665277481, 0.31889036297798157, 0.025711506605148315, -0.08472740650177002, 0.05338430404663086, -0.015611335635185242, -0.02105534076690674, -0.01873060129582882, -0.2966987192630768, 0.20120888948440552, 0.4706385135650635, -0.24818527698516846, -0.009380742907524109, 0.3947991728782654, -0.2101583331823349, 0.005891464650630951, -0.07563087344169617, 0.7668739557266235, -0.15176337957382202, -0.3579002320766449, -0.1258624941110611, -0.04181227087974548 ]
https://github.com/huggingface/datasets/issues/2144
Loading wikipedia 20200501.en throws pyarrow related error
That's how I loaded the dataset ```python from datasets import load_dataset ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') ```
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
17
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] That's how I loaded the dataset ```python from datasets import load_dataset ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') ```
[ -0.10415402799844742, 0.352646142244339, 0.0340580977499485, 0.36331021785736084, 0.2745780944824219, 0.18020805716514587, 0.2762233018875122, 0.4623256325721741, -0.04348771274089813, -0.11378425359725952, 0.02473791502416134, 0.23602265119552612, 0.15206791460514069, -0.11780159920454025, 0.18410879373550415, -0.16831424832344055, 0.003877006471157074, 0.006880380213260651, 0.08479239046573639, 0.13284431397914886, -0.2001204937696457, 0.11467432230710983, -0.18248628079891205, 0.15551714599132538, -0.5857793688774109, 0.08811647444963455, -0.06601817160844803, 0.05404161661863327, 0.08332428336143494, -0.6138043999671936, 0.39048144221305847, -0.05005401745438576, 0.20109090209007263, 0.21213072538375854, -0.00012045967014273629, 0.0749957263469696, 0.46436500549316406, -0.004133081063628197, -0.29601338505744934, -0.08114446699619293, 0.18658027052879333, -0.020505348220467567, 0.31808799505233765, -0.3607695698738098, 0.10087858885526657, -0.2803390324115753, 0.22425971925258636, 0.04719962924718857, 0.18321740627288818, 0.008632385171949863, 0.16828584671020508, -0.18305319547653198, 0.3375391364097595, 0.030643785372376442, 0.7112433910369873, -0.13746890425682068, 0.08150545507669449, 0.4424608051776886, 0.12259737402200699, -0.16071586310863495, -0.1864345669746399, 0.23629744350910187, -0.2502577304840088, 0.12030893564224243, 0.2671842873096466, -0.07704272866249084, 0.38487616181373596, -0.20049546658992767, 0.3921535611152649, 0.2679576277732849, 0.7762547731399536, -0.4092205762863159, 0.1730331927537918, -0.23131239414215088, -0.03287096321582794, -0.02295958809554577, 0.09382501244544983, 0.23073698580265045, -0.2767694294452667, 0.054530069231987, 0.15718571841716766, -0.11887083202600479, -0.2609153985977173, 0.3013152778148651, -0.06424793601036072, 0.19972077012062073, 0.1399381458759308, 0.39106857776641846, 0.016335271298885345, -0.22688384354114532, 0.001935380045324564, 0.06326387822628021, 0.16725805401802063, 0.22086411714553833, -0.39311325550079346, 0.10725770890712738, -0.06830256432294846, 0.11390455067157745, 0.37786194682121277, -0.16936178505420685, -0.021595828235149384, 0.06594163179397583, 0.23917080461978912, 0.2064652144908905, 0.41922727227211, 0.12418486177921295, -0.32374146580696106, -0.29872196912765503, 0.27216607332229614, 0.19889992475509644, -0.25421392917633057, -0.036441683769226074, -0.06121199578046799, -0.11379503458738327, 0.13857287168502808, -0.17098379135131836, 0.4291737675666809, -0.26999127864837646, -0.22057977318763733, 0.11957686394453049, -0.14467985928058624, -0.07156772166490555, -0.15523026883602142, 0.38672035932540894, -0.09167885035276413, 0.24249956011772156, 0.06721020489931107, 0.062237806618213654, -0.1821434646844864, -0.18781425058841705, 0.005754290614277124, 0.11867770552635193, -0.21246717870235443, 0.17979326844215393, 0.29393061995506287, -0.15380379557609558, 0.25835418701171875, 0.14352211356163025, -0.1506108045578003, -0.12067554146051407, 0.17006435990333557, 0.013038394972682, -0.23267295956611633, 0.3098335862159729, 0.007501296699047089, 0.24687205255031586, -0.032895226031541824, -0.14496952295303345, -0.1790345311164856, 0.3182585537433624, -0.2848283350467682, -0.5152543783187866, -0.26225051283836365, 0.12090536206960678, -0.01166290882974863, 0.08445082604885101, 0.16168668866157532, 0.05765415355563164, 0.44134947657585144, -0.5136594772338867, -0.10032276064157486, -0.125785231590271, -0.18552809953689575, -0.4527529180049896, 0.17063751816749573, 0.33631300926208496, -0.5569391846656799, 0.07983213663101196, -0.05076465383172035, 0.08240383118391037, 0.2173675000667572, 0.4450020492076874, -0.22985583543777466, 0.1757661998271942, -0.16548635065555573, 0.19240181148052216, 0.10959093272686005, -0.3121567368507385, -0.5411022901535034, 0.21401341259479523, -0.061286814510822296, 0.195904940366745, 0.025957100093364716, 0.290603369474411, 0.009336834773421288, 0.17176248133182526, 0.40526461601257324, 0.2492511123418808, -0.04676523059606552, 0.0787922739982605, -0.40852680802345276, -0.3879692554473877, 0.3385644555091858, 0.2016654908657074, -0.004744876176118851, -0.19889840483665466, 0.19682517647743225, 0.3221476674079895, 0.2584797143936157, -0.20357933640480042, 0.12879593670368195, 0.02183905616402626, 0.07051767408847809, -0.012946635484695435, 0.232766255736351, -0.22382989525794983, -0.4262203276157379, 0.11144658178091049, -0.34314000606536865, -0.023589856922626495, -0.3043869733810425, -0.36122846603393555, -0.5231873989105225, 0.06636946648359299, -0.1714640110731125, -0.2400970160961151, 0.11505044996738434, -0.061333492398262024, 0.09534929692745209, 0.2569483518600464, 0.10278591513633728, -0.08967635035514832, -0.20426659286022186, -0.017557431012392044, -0.4030899107456207, 0.2405165284872055, -0.30879881978034973, -0.1786496341228485, -0.022190937772393227, 0.24512866139411926, 0.32460883259773254, 0.100293830037117, 0.04317528009414673, 0.15584319829940796, 0.14677709341049194, 0.09318695962429047, -0.1324363648891449, -0.01770065724849701, 0.2272266000509262, -0.2668777108192444, 0.2040075808763504, 0.12404495477676392, 0.18690048158168793, -0.22101736068725586, 0.05095229297876358, 0.13224133849143982, -0.001999247819185257, 0.17187607288360596, -0.08223791420459747, -0.0712243840098381, 0.1570296734571457, -0.0034187734127044678, 0.3967845141887665, -0.1355205923318863, 0.25990360975265503, 0.47116056084632874, 0.043001677840948105, 0.10370771586894989, -0.0057756006717681885, 0.010362029075622559, 0.11434650421142578, -0.04716102033853531, 0.15312199294567108, 0.1461280882358551, -0.3416615426540375, -0.28515684604644775, 0.21888338029384613, -0.14423483610153198, 0.07827353477478027, 0.09371290355920792, 0.028069298714399338, 0.13984856009483337, -0.06898146867752075, -0.19510327279567719, 0.13160237669944763, -0.11788009107112885, 0.4590723514556885, 0.31006789207458496, 0.30289050936698914, -0.029343727976083755, -0.37656718492507935, 0.0593944750726223, 0.08311354368925095, 0.37936586141586304, -0.30408960580825806, 0.0794890895485878, -0.17133255302906036, -0.24345919489860535, -0.07726670801639557, -0.013045373372733593, -0.29151108860969543, -0.3173157274723053, 0.08157077431678772, 0.5144311785697937, 0.03286776319146156, 0.009985928423702717, -0.05400341749191284, -0.048035070300102234, 0.07968820631504059, -0.13089154660701752, -0.05050622671842575, -0.7057316303253174, -0.3859115242958069, 0.005147717893123627, 0.2574864625930786, -0.13397926092147827, 0.25024619698524475, -0.025403445586562157, -0.19274650514125824, -0.37669235467910767, -0.5513481497764587, -0.003672514110803604, -0.11040599644184113, 0.31784409284591675, 0.01763325184583664, 0.3957710862159729, 0.07278908044099808, -0.21528814733028412, 0.21038687229156494, 0.013057740405201912, -0.02486507035791874, 0.2813802659511566, -0.36316877603530884, 0.08441372960805893, -0.008928319439291954, -0.22848138213157654, -0.2832891643047333, -0.14893357455730438, 0.19939664006233215, 0.06301672756671906, 0.18703152239322662, 0.23829995095729828, 0.06289266049861908, 0.1012382060289383, 0.275894433259964, 0.06764605641365051, -0.37171778082847595, -0.16083253920078278, 0.3060965836048126, -0.2184314727783203, -0.2773067355155945, 0.1912306547164917, 0.0027226507663726807, 0.12418611347675323, 0.22165098786354065, -0.5899147391319275, 0.007206401787698269, 0.08572177588939667, 0.32713669538497925, 0.031963929533958435, -0.1462099254131317, 0.23672053217887878, 0.021127372980117798, 0.0012417063117027283, 0.06205924600362778, 0.005652938038110733, -0.12062380462884903, -0.1537078320980072, 0.16624154150485992, 0.11402742564678192, 0.209468275308609, 0.16471755504608154, 0.7836130857467651, 0.08677175641059875, 0.04249550402164459, 0.4263209402561188, -0.18830694258213043, 0.06352781504392624, -0.1462811529636383, -0.09664621949195862, 0.03148462250828743, -0.3452984392642975, -0.23165059089660645, 0.12315385043621063, -0.12100306898355484, -0.3868955373764038, -0.05445365235209465, -0.24508599936962128, -0.2544873058795929, -0.23949287831783295, 0.04457443952560425, -0.038282833993434906, 0.37937283515930176, 0.10441631078720093, -0.168518528342247, -0.15148478746414185, -0.4424999952316284, -0.028786197304725647, 0.14633111655712128, -0.029248014092445374, -0.03678106516599655, -0.10056605935096741, -0.20292921364307404, -0.5161781907081604, 0.415593683719635, 0.28595471382141113, 0.11058668047189713, -0.17187555134296417, 0.08782283216714859, 0.44788652658462524, -0.18531781435012817, 0.659649133682251, -0.1708528995513916, 0.04381191357970238, 0.09848164021968842, 0.18375003337860107, -0.7251460552215576, -0.01941392943263054, 0.14754429459571838, 0.13427667319774628, 0.21531295776367188, -0.11666572093963623, -0.5139329433441162, 0.09796445816755295, 0.34410008788108826, 0.37327975034713745, -0.08862753957509995, -0.17929473519325256, -0.1912723183631897, -0.37672698497772217, -0.5138630270957947, -0.16492360830307007, -0.2111014872789383, 0.2683066129684448, -0.02556084841489792, 0.031048353761434555, 0.05038503557443619, 0.20147821307182312, -0.014731548726558685, 0.28214800357818604, 0.28590503334999084, 0.016502011567354202, 0.023509949445724487, 0.09593036770820618, 0.09910409152507782, 0.34707126021385193, 0.35393238067626953, 0.28819701075553894, -0.04237326979637146, -0.08899838477373123, 0.08530090004205704, -0.06382033973932266, 0.18121036887168884, -0.15028731524944305, 0.06661606580018997, -0.0016662832349538803, -0.1978694051504135, -0.07344729453325272, -0.15724757313728333, 0.3747444152832031, -0.22128529846668243, -0.2982095181941986, -0.23898150026798248, 0.7085092067718506, 0.15898987650871277, -0.09604402631521225, 0.1231103464961052, -0.10886882245540619, -0.1373424232006073, 0.3652403950691223, 0.11770670115947723, 0.9276623725891113, -0.1522068828344345, 0.328930139541626, 0.32865509390830994, -0.039698489010334015, 0.5044323801994324, -0.28250622749328613, 0.13398826122283936, -0.48441049456596375, 0.28564584255218506, -0.010888881981372833, -0.0980817973613739, -0.15467196702957153, 0.03108092211186886, -0.18278326094150543, 0.07330619543790817, -0.22070522606372833, 0.08858847618103027, 0.010632991790771484, 0.35674065351486206, -0.00835116021335125, 0.11068589985370636, -0.08427441865205765, 0.056264184415340424, -0.31955480575561523, 0.2571132779121399, -0.2615230679512024, -0.0009583858773112297, 0.09796135127544403, -0.1563691943883896, -0.45445483922958374, 0.07854865491390228, -0.1875041425228119, 0.45333564281463623, -0.3069444000720978, -0.31887853145599365, 0.0176071859896183, 0.059825241565704346, -0.04116499423980713, -0.09378336369991302, -0.3611283004283905, 0.18094317615032196, -0.22304823994636536, -0.1647403985261917, -0.10608786344528198, 0.07032877951860428, 0.22642485797405243, -0.07054483890533447, -0.46504631638526917, 0.31040725111961365, -0.03319042548537254, -0.2690659761428833, -0.19516658782958984, 0.0056175291538238525, 0.07666308432817459, -0.19385108351707458, -0.15716663002967834, -0.2530140280723572, -0.11918757855892181, -0.13580851256847382, 0.07341419160366058, -0.12955981492996216, 0.00849176850169897, 0.06465856730937958, 0.06856419891119003, -0.3869740068912506, 0.11556006968021393, 0.47190484404563904, 0.37674644589424133, 0.16866397857666016, 0.6754419803619385, 0.26835209131240845, -0.26639318466186523, -0.013630187138915062, -0.3504728674888611, -0.3611336648464203, -0.39338091015815735, -0.07509707659482956, 0.13296614587306976, 0.46066462993621826, -0.23611849546432495, 0.10578703135251999, 0.1565130054950714, -0.10045523196458817, 0.12894639372825623, -0.46690571308135986, -0.28564777970314026, 0.3458830714225769, -0.15585210919380188, 0.21506570279598236, 0.3333626687526703, 0.13716720044612885, 0.09419409185647964, 0.281773179769516, -0.20745447278022766, 0.475482314825058, -0.08086182922124863, 0.3691471219062805, 0.10227307677268982, -0.104517363011837, -0.16643249988555908, 0.0043664248660206795, 0.027808746322989464, 0.07330748438835144, -0.08420702069997787, -0.18736889958381653, -0.05974040925502777, 0.17696456611156464, 0.059537019580602646, -0.20684681832790375, -0.12213293462991714, -0.40882551670074463, 0.058077700436115265, -0.010987086221575737, 0.35906338691711426, 0.10428420454263687, -0.07778854668140411, 0.1733732968568802, 0.18054382503032684, 0.1427162140607834, -0.2289879024028778, 0.36195245385169983, -0.13345123827457428, 0.3957298994064331, 0.2669546604156494, 0.23853766918182373, -0.09472402930259705, -0.012623317539691925, -0.2449374496936798, 0.08050371706485748, 0.11544157564640045, -0.18867820501327515, 0.18522799015045166, -0.27769070863723755, -0.2030884474515915, -0.02137899212539196, 0.016403574496507645, 0.33968207240104675, -0.14176157116889954, -0.0548667386174202, -0.06082112342119217, 0.10058657079935074, -0.2835874557495117, 0.04606181010603905, 0.4852425158023834, -0.1776815950870514, -0.2785927355289459, 0.06876310706138611, 0.5847010612487793, -0.04389357194304466, 0.16632261872291565, 0.04665294289588928, 0.23935355246067047, 0.011582553386688232, 0.08544611930847168, 0.22191627323627472, 0.10981908440589905, -0.13773976266384125, 0.05679088830947876, 0.27208468317985535, 0.1866968274116516, 0.4535914659500122, -0.16573747992515564, 0.09753947705030441, -0.1927056908607483, 0.04721400886774063, -0.14114558696746826, -0.36018499732017517, 0.15975573658943176, 0.4120800793170929, 0.1318734586238861, 0.006587915122509003, 0.09148995578289032, 0.3713226616382599, 0.6368657946586609, 0.010277939960360527, -0.048384711146354675, 0.3622549772262573, -0.1486777663230896, -0.18041646480560303, -0.29789480566978455, -0.3707219958305359, 0.028532788157463074, 0.15082107484340668, -0.24044975638389587, -0.22331048548221588, 0.2616763710975647, 0.18587999045848846, -0.32082295417785645, -0.6472074389457703, 0.5188286900520325, 0.2831639051437378, 0.13512569665908813, -0.22257710993289948, 0.21158121526241302, 0.12483983486890793, -0.07370440661907196, 0.10121598839759827, 0.28946590423583984, 0.65751051902771, 0.32112184166908264, -0.7122469544410706, 0.024168431758880615, -0.1587843894958496, 0.09642986953258514, -0.09569407999515533, -0.025560412555933, 0.1547427773475647, -0.07263565063476562, 0.21759706735610962, 0.05578373372554779, -0.03133781999349594, -0.16374576091766357, 0.4401109218597412, 0.04797115921974182, -0.2145300954580307, -0.260204017162323, -0.18675494194030762, -0.21168383955955505, 0.004794461652636528, 0.08894665539264679, -0.3720794916152954, 0.22484789788722992, 0.4339291751384735, 0.007496915757656097, 0.14166748523712158, -0.08619131147861481, 0.03826569765806198, -0.28044405579566956, 0.4323861300945282, 0.2422131597995758, 0.10944607853889465, -0.4453442692756653, -0.2630239725112915, -0.6950755715370178, 0.3619225025177002, -0.4275679588317871, -0.004695780575275421, 0.32819864153862, 0.18192586302757263, -0.20074689388275146, 0.16651365160942078, 0.07209737598896027, -0.143596813082695, -0.1851031333208084, 0.33475539088249207, -0.22432272136211395, -0.10522006452083588, -0.12880386412143707, -0.2936495542526245, -0.25168824195861816, -0.3236354887485504, 0.21473664045333862, -0.19497977197170258, -0.04772339388728142, -0.2938644289970398, -0.14435803890228271, 0.1363731473684311, 0.1835705041885376, 0.5083595514297485, 0.08552888035774231, 0.6090761423110962, 0.07915817946195602, -0.03097018040716648, -0.20012545585632324, -0.1561926156282425, 0.17803461849689484, 0.2961328625679016, 0.04260917752981186, 0.11947676539421082, -0.09500981122255325, -0.1640063226222992, -0.1698608547449112, 0.5059784650802612, -0.018787428736686707, 0.07610147446393967, -0.0015462599694728851, -0.22567501664161682, 0.01262955367565155, 0.3037436604499817, -0.1414281278848648, 0.1818353831768036, -0.06938454508781433, 0.3124791979789734, -0.29226985573768616, -0.4456370174884796, 0.4373096227645874, -0.42842966318130493, -0.37101706862449646, 0.044043827801942825, 0.12372610718011856, -0.19838231801986694, -0.10032108426094055, -0.3580925464630127, 0.14545592665672302, 0.4109819829463959, -0.016089797019958496, -0.13795194029808044, -0.11225652694702148, -0.08490285277366638, -0.10420818626880646, -0.20671053230762482, 0.03155367448925972, 0.04200182855129242, -0.15446506440639496, -0.3315706253051758, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2144
Loading wikipedia 20200501.en throws pyarrow related error
Hi ! It looks like the arrow file in the folder `/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted. Can you take a look and check that it's 18.3GB ? If not, then maybe you need to redownload it: ```python from datasets import load_dataset ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload") ```
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
46
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] Hi ! It looks like the arrow file in the folder `/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted. Can you take a look and check that it's 18.3GB ? If not, then maybe you need to redownload it: ```python from datasets import load_dataset ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload") ```
[ -0.10415402799844742, 0.352646142244339, 0.0340580977499485, 0.36331021785736084, 0.2745780944824219, 0.18020805716514587, 0.2762233018875122, 0.4623256325721741, -0.04348771274089813, -0.11378425359725952, 0.02473791502416134, 0.23602265119552612, 0.15206791460514069, -0.11780159920454025, 0.18410879373550415, -0.16831424832344055, 0.003877006471157074, 0.006880380213260651, 0.08479239046573639, 0.13284431397914886, -0.2001204937696457, 0.11467432230710983, -0.18248628079891205, 0.15551714599132538, -0.5857793688774109, 0.08811647444963455, -0.06601817160844803, 0.05404161661863327, 0.08332428336143494, -0.6138043999671936, 0.39048144221305847, -0.05005401745438576, 0.20109090209007263, 0.21213072538375854, -0.00012045967014273629, 0.0749957263469696, 0.46436500549316406, -0.004133081063628197, -0.29601338505744934, -0.08114446699619293, 0.18658027052879333, -0.020505348220467567, 0.31808799505233765, -0.3607695698738098, 0.10087858885526657, -0.2803390324115753, 0.22425971925258636, 0.04719962924718857, 0.18321740627288818, 0.008632385171949863, 0.16828584671020508, -0.18305319547653198, 0.3375391364097595, 0.030643785372376442, 0.7112433910369873, -0.13746890425682068, 0.08150545507669449, 0.4424608051776886, 0.12259737402200699, -0.16071586310863495, -0.1864345669746399, 0.23629744350910187, -0.2502577304840088, 0.12030893564224243, 0.2671842873096466, -0.07704272866249084, 0.38487616181373596, -0.20049546658992767, 0.3921535611152649, 0.2679576277732849, 0.7762547731399536, -0.4092205762863159, 0.1730331927537918, -0.23131239414215088, -0.03287096321582794, -0.02295958809554577, 0.09382501244544983, 0.23073698580265045, -0.2767694294452667, 0.054530069231987, 0.15718571841716766, -0.11887083202600479, -0.2609153985977173, 0.3013152778148651, -0.06424793601036072, 0.19972077012062073, 0.1399381458759308, 0.39106857776641846, 0.016335271298885345, -0.22688384354114532, 0.001935380045324564, 0.06326387822628021, 0.16725805401802063, 0.22086411714553833, -0.39311325550079346, 0.10725770890712738, -0.06830256432294846, 0.11390455067157745, 0.37786194682121277, -0.16936178505420685, -0.021595828235149384, 0.06594163179397583, 0.23917080461978912, 0.2064652144908905, 0.41922727227211, 0.12418486177921295, -0.32374146580696106, -0.29872196912765503, 0.27216607332229614, 0.19889992475509644, -0.25421392917633057, -0.036441683769226074, -0.06121199578046799, -0.11379503458738327, 0.13857287168502808, -0.17098379135131836, 0.4291737675666809, -0.26999127864837646, -0.22057977318763733, 0.11957686394453049, -0.14467985928058624, -0.07156772166490555, -0.15523026883602142, 0.38672035932540894, -0.09167885035276413, 0.24249956011772156, 0.06721020489931107, 0.062237806618213654, -0.1821434646844864, -0.18781425058841705, 0.005754290614277124, 0.11867770552635193, -0.21246717870235443, 0.17979326844215393, 0.29393061995506287, -0.15380379557609558, 0.25835418701171875, 0.14352211356163025, -0.1506108045578003, -0.12067554146051407, 0.17006435990333557, 0.013038394972682, -0.23267295956611633, 0.3098335862159729, 0.007501296699047089, 0.24687205255031586, -0.032895226031541824, -0.14496952295303345, -0.1790345311164856, 0.3182585537433624, -0.2848283350467682, -0.5152543783187866, -0.26225051283836365, 0.12090536206960678, -0.01166290882974863, 0.08445082604885101, 0.16168668866157532, 0.05765415355563164, 0.44134947657585144, -0.5136594772338867, -0.10032276064157486, -0.125785231590271, -0.18552809953689575, -0.4527529180049896, 0.17063751816749573, 0.33631300926208496, -0.5569391846656799, 0.07983213663101196, -0.05076465383172035, 0.08240383118391037, 0.2173675000667572, 0.4450020492076874, -0.22985583543777466, 0.1757661998271942, -0.16548635065555573, 0.19240181148052216, 0.10959093272686005, -0.3121567368507385, -0.5411022901535034, 0.21401341259479523, -0.061286814510822296, 0.195904940366745, 0.025957100093364716, 0.290603369474411, 0.009336834773421288, 0.17176248133182526, 0.40526461601257324, 0.2492511123418808, -0.04676523059606552, 0.0787922739982605, -0.40852680802345276, -0.3879692554473877, 0.3385644555091858, 0.2016654908657074, -0.004744876176118851, -0.19889840483665466, 0.19682517647743225, 0.3221476674079895, 0.2584797143936157, -0.20357933640480042, 0.12879593670368195, 0.02183905616402626, 0.07051767408847809, -0.012946635484695435, 0.232766255736351, -0.22382989525794983, -0.4262203276157379, 0.11144658178091049, -0.34314000606536865, -0.023589856922626495, -0.3043869733810425, -0.36122846603393555, -0.5231873989105225, 0.06636946648359299, -0.1714640110731125, -0.2400970160961151, 0.11505044996738434, -0.061333492398262024, 0.09534929692745209, 0.2569483518600464, 0.10278591513633728, -0.08967635035514832, -0.20426659286022186, -0.017557431012392044, -0.4030899107456207, 0.2405165284872055, -0.30879881978034973, -0.1786496341228485, -0.022190937772393227, 0.24512866139411926, 0.32460883259773254, 0.100293830037117, 0.04317528009414673, 0.15584319829940796, 0.14677709341049194, 0.09318695962429047, -0.1324363648891449, -0.01770065724849701, 0.2272266000509262, -0.2668777108192444, 0.2040075808763504, 0.12404495477676392, 0.18690048158168793, -0.22101736068725586, 0.05095229297876358, 0.13224133849143982, -0.001999247819185257, 0.17187607288360596, -0.08223791420459747, -0.0712243840098381, 0.1570296734571457, -0.0034187734127044678, 0.3967845141887665, -0.1355205923318863, 0.25990360975265503, 0.47116056084632874, 0.043001677840948105, 0.10370771586894989, -0.0057756006717681885, 0.010362029075622559, 0.11434650421142578, -0.04716102033853531, 0.15312199294567108, 0.1461280882358551, -0.3416615426540375, -0.28515684604644775, 0.21888338029384613, -0.14423483610153198, 0.07827353477478027, 0.09371290355920792, 0.028069298714399338, 0.13984856009483337, -0.06898146867752075, -0.19510327279567719, 0.13160237669944763, -0.11788009107112885, 0.4590723514556885, 0.31006789207458496, 0.30289050936698914, -0.029343727976083755, -0.37656718492507935, 0.0593944750726223, 0.08311354368925095, 0.37936586141586304, -0.30408960580825806, 0.0794890895485878, -0.17133255302906036, -0.24345919489860535, -0.07726670801639557, -0.013045373372733593, -0.29151108860969543, -0.3173157274723053, 0.08157077431678772, 0.5144311785697937, 0.03286776319146156, 0.009985928423702717, -0.05400341749191284, -0.048035070300102234, 0.07968820631504059, -0.13089154660701752, -0.05050622671842575, -0.7057316303253174, -0.3859115242958069, 0.005147717893123627, 0.2574864625930786, -0.13397926092147827, 0.25024619698524475, -0.025403445586562157, -0.19274650514125824, -0.37669235467910767, -0.5513481497764587, -0.003672514110803604, -0.11040599644184113, 0.31784409284591675, 0.01763325184583664, 0.3957710862159729, 0.07278908044099808, -0.21528814733028412, 0.21038687229156494, 0.013057740405201912, -0.02486507035791874, 0.2813802659511566, -0.36316877603530884, 0.08441372960805893, -0.008928319439291954, -0.22848138213157654, -0.2832891643047333, -0.14893357455730438, 0.19939664006233215, 0.06301672756671906, 0.18703152239322662, 0.23829995095729828, 0.06289266049861908, 0.1012382060289383, 0.275894433259964, 0.06764605641365051, -0.37171778082847595, -0.16083253920078278, 0.3060965836048126, -0.2184314727783203, -0.2773067355155945, 0.1912306547164917, 0.0027226507663726807, 0.12418611347675323, 0.22165098786354065, -0.5899147391319275, 0.007206401787698269, 0.08572177588939667, 0.32713669538497925, 0.031963929533958435, -0.1462099254131317, 0.23672053217887878, 0.021127372980117798, 0.0012417063117027283, 0.06205924600362778, 0.005652938038110733, -0.12062380462884903, -0.1537078320980072, 0.16624154150485992, 0.11402742564678192, 0.209468275308609, 0.16471755504608154, 0.7836130857467651, 0.08677175641059875, 0.04249550402164459, 0.4263209402561188, -0.18830694258213043, 0.06352781504392624, -0.1462811529636383, -0.09664621949195862, 0.03148462250828743, -0.3452984392642975, -0.23165059089660645, 0.12315385043621063, -0.12100306898355484, -0.3868955373764038, -0.05445365235209465, -0.24508599936962128, -0.2544873058795929, -0.23949287831783295, 0.04457443952560425, -0.038282833993434906, 0.37937283515930176, 0.10441631078720093, -0.168518528342247, -0.15148478746414185, -0.4424999952316284, -0.028786197304725647, 0.14633111655712128, -0.029248014092445374, -0.03678106516599655, -0.10056605935096741, -0.20292921364307404, -0.5161781907081604, 0.415593683719635, 0.28595471382141113, 0.11058668047189713, -0.17187555134296417, 0.08782283216714859, 0.44788652658462524, -0.18531781435012817, 0.659649133682251, -0.1708528995513916, 0.04381191357970238, 0.09848164021968842, 0.18375003337860107, -0.7251460552215576, -0.01941392943263054, 0.14754429459571838, 0.13427667319774628, 0.21531295776367188, -0.11666572093963623, -0.5139329433441162, 0.09796445816755295, 0.34410008788108826, 0.37327975034713745, -0.08862753957509995, -0.17929473519325256, -0.1912723183631897, -0.37672698497772217, -0.5138630270957947, -0.16492360830307007, -0.2111014872789383, 0.2683066129684448, -0.02556084841489792, 0.031048353761434555, 0.05038503557443619, 0.20147821307182312, -0.014731548726558685, 0.28214800357818604, 0.28590503334999084, 0.016502011567354202, 0.023509949445724487, 0.09593036770820618, 0.09910409152507782, 0.34707126021385193, 0.35393238067626953, 0.28819701075553894, -0.04237326979637146, -0.08899838477373123, 0.08530090004205704, -0.06382033973932266, 0.18121036887168884, -0.15028731524944305, 0.06661606580018997, -0.0016662832349538803, -0.1978694051504135, -0.07344729453325272, -0.15724757313728333, 0.3747444152832031, -0.22128529846668243, -0.2982095181941986, -0.23898150026798248, 0.7085092067718506, 0.15898987650871277, -0.09604402631521225, 0.1231103464961052, -0.10886882245540619, -0.1373424232006073, 0.3652403950691223, 0.11770670115947723, 0.9276623725891113, -0.1522068828344345, 0.328930139541626, 0.32865509390830994, -0.039698489010334015, 0.5044323801994324, -0.28250622749328613, 0.13398826122283936, -0.48441049456596375, 0.28564584255218506, -0.010888881981372833, -0.0980817973613739, -0.15467196702957153, 0.03108092211186886, -0.18278326094150543, 0.07330619543790817, -0.22070522606372833, 0.08858847618103027, 0.010632991790771484, 0.35674065351486206, -0.00835116021335125, 0.11068589985370636, -0.08427441865205765, 0.056264184415340424, -0.31955480575561523, 0.2571132779121399, -0.2615230679512024, -0.0009583858773112297, 0.09796135127544403, -0.1563691943883896, -0.45445483922958374, 0.07854865491390228, -0.1875041425228119, 0.45333564281463623, -0.3069444000720978, -0.31887853145599365, 0.0176071859896183, 0.059825241565704346, -0.04116499423980713, -0.09378336369991302, -0.3611283004283905, 0.18094317615032196, -0.22304823994636536, -0.1647403985261917, -0.10608786344528198, 0.07032877951860428, 0.22642485797405243, -0.07054483890533447, -0.46504631638526917, 0.31040725111961365, -0.03319042548537254, -0.2690659761428833, -0.19516658782958984, 0.0056175291538238525, 0.07666308432817459, -0.19385108351707458, -0.15716663002967834, -0.2530140280723572, -0.11918757855892181, -0.13580851256847382, 0.07341419160366058, -0.12955981492996216, 0.00849176850169897, 0.06465856730937958, 0.06856419891119003, -0.3869740068912506, 0.11556006968021393, 0.47190484404563904, 0.37674644589424133, 0.16866397857666016, 0.6754419803619385, 0.26835209131240845, -0.26639318466186523, -0.013630187138915062, -0.3504728674888611, -0.3611336648464203, -0.39338091015815735, -0.07509707659482956, 0.13296614587306976, 0.46066462993621826, -0.23611849546432495, 0.10578703135251999, 0.1565130054950714, -0.10045523196458817, 0.12894639372825623, -0.46690571308135986, -0.28564777970314026, 0.3458830714225769, -0.15585210919380188, 0.21506570279598236, 0.3333626687526703, 0.13716720044612885, 0.09419409185647964, 0.281773179769516, -0.20745447278022766, 0.475482314825058, -0.08086182922124863, 0.3691471219062805, 0.10227307677268982, -0.104517363011837, -0.16643249988555908, 0.0043664248660206795, 0.027808746322989464, 0.07330748438835144, -0.08420702069997787, -0.18736889958381653, -0.05974040925502777, 0.17696456611156464, 0.059537019580602646, -0.20684681832790375, -0.12213293462991714, -0.40882551670074463, 0.058077700436115265, -0.010987086221575737, 0.35906338691711426, 0.10428420454263687, -0.07778854668140411, 0.1733732968568802, 0.18054382503032684, 0.1427162140607834, -0.2289879024028778, 0.36195245385169983, -0.13345123827457428, 0.3957298994064331, 0.2669546604156494, 0.23853766918182373, -0.09472402930259705, -0.012623317539691925, -0.2449374496936798, 0.08050371706485748, 0.11544157564640045, -0.18867820501327515, 0.18522799015045166, -0.27769070863723755, -0.2030884474515915, -0.02137899212539196, 0.016403574496507645, 0.33968207240104675, -0.14176157116889954, -0.0548667386174202, -0.06082112342119217, 0.10058657079935074, -0.2835874557495117, 0.04606181010603905, 0.4852425158023834, -0.1776815950870514, -0.2785927355289459, 0.06876310706138611, 0.5847010612487793, -0.04389357194304466, 0.16632261872291565, 0.04665294289588928, 0.23935355246067047, 0.011582553386688232, 0.08544611930847168, 0.22191627323627472, 0.10981908440589905, -0.13773976266384125, 0.05679088830947876, 0.27208468317985535, 0.1866968274116516, 0.4535914659500122, -0.16573747992515564, 0.09753947705030441, -0.1927056908607483, 0.04721400886774063, -0.14114558696746826, -0.36018499732017517, 0.15975573658943176, 0.4120800793170929, 0.1318734586238861, 0.006587915122509003, 0.09148995578289032, 0.3713226616382599, 0.6368657946586609, 0.010277939960360527, -0.048384711146354675, 0.3622549772262573, -0.1486777663230896, -0.18041646480560303, -0.29789480566978455, -0.3707219958305359, 0.028532788157463074, 0.15082107484340668, -0.24044975638389587, -0.22331048548221588, 0.2616763710975647, 0.18587999045848846, -0.32082295417785645, -0.6472074389457703, 0.5188286900520325, 0.2831639051437378, 0.13512569665908813, -0.22257710993289948, 0.21158121526241302, 0.12483983486890793, -0.07370440661907196, 0.10121598839759827, 0.28946590423583984, 0.65751051902771, 0.32112184166908264, -0.7122469544410706, 0.024168431758880615, -0.1587843894958496, 0.09642986953258514, -0.09569407999515533, -0.025560412555933, 0.1547427773475647, -0.07263565063476562, 0.21759706735610962, 0.05578373372554779, -0.03133781999349594, -0.16374576091766357, 0.4401109218597412, 0.04797115921974182, -0.2145300954580307, -0.260204017162323, -0.18675494194030762, -0.21168383955955505, 0.004794461652636528, 0.08894665539264679, -0.3720794916152954, 0.22484789788722992, 0.4339291751384735, 0.007496915757656097, 0.14166748523712158, -0.08619131147861481, 0.03826569765806198, -0.28044405579566956, 0.4323861300945282, 0.2422131597995758, 0.10944607853889465, -0.4453442692756653, -0.2630239725112915, -0.6950755715370178, 0.3619225025177002, -0.4275679588317871, -0.004695780575275421, 0.32819864153862, 0.18192586302757263, -0.20074689388275146, 0.16651365160942078, 0.07209737598896027, -0.143596813082695, -0.1851031333208084, 0.33475539088249207, -0.22432272136211395, -0.10522006452083588, -0.12880386412143707, -0.2936495542526245, -0.25168824195861816, -0.3236354887485504, 0.21473664045333862, -0.19497977197170258, -0.04772339388728142, -0.2938644289970398, -0.14435803890228271, 0.1363731473684311, 0.1835705041885376, 0.5083595514297485, 0.08552888035774231, 0.6090761423110962, 0.07915817946195602, -0.03097018040716648, -0.20012545585632324, -0.1561926156282425, 0.17803461849689484, 0.2961328625679016, 0.04260917752981186, 0.11947676539421082, -0.09500981122255325, -0.1640063226222992, -0.1698608547449112, 0.5059784650802612, -0.018787428736686707, 0.07610147446393967, -0.0015462599694728851, -0.22567501664161682, 0.01262955367565155, 0.3037436604499817, -0.1414281278848648, 0.1818353831768036, -0.06938454508781433, 0.3124791979789734, -0.29226985573768616, -0.4456370174884796, 0.4373096227645874, -0.42842966318130493, -0.37101706862449646, 0.044043827801942825, 0.12372610718011856, -0.19838231801986694, -0.10032108426094055, -0.3580925464630127, 0.14545592665672302, 0.4109819829463959, -0.016089797019958496, -0.13795194029808044, -0.11225652694702148, -0.08490285277366638, -0.10420818626880646, -0.20671053230762482, 0.03155367448925972, 0.04200182855129242, -0.15446506440639496, -0.3315706253051758, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2144
Loading wikipedia 20200501.en throws pyarrow related error
> Hi ! It looks like the arrow file in the folder > `/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted. > > Can you take a look and check that it's 18.3GB ? > > If not, then maybe you need to redownload it: > > ```python > from datasets import load_dataset > ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload") > ``` Hi Ihoestq, thanks for the reply! Actually i think my issue is i couldn't download the dataset beyond 10.7G. It feels like the whole dataset is split into different volumes and after the first one was downloaded it crashed before proceeding to the next one. I did try 'force_redownload' mode but still got the same issue.
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
113
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] > Hi ! It looks like the arrow file in the folder > `/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted. > > Can you take a look and check that it's 18.3GB ? > > If not, then maybe you need to redownload it: > > ```python > from datasets import load_dataset > ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload") > ``` Hi Ihoestq, thanks for the reply! Actually i think my issue is i couldn't download the dataset beyond 10.7G. It feels like the whole dataset is split into different volumes and after the first one was downloaded it crashed before proceeding to the next one. I did try 'force_redownload' mode but still got the same issue.
[ -0.10415402799844742, 0.352646142244339, 0.0340580977499485, 0.36331021785736084, 0.2745780944824219, 0.18020805716514587, 0.2762233018875122, 0.4623256325721741, -0.04348771274089813, -0.11378425359725952, 0.02473791502416134, 0.23602265119552612, 0.15206791460514069, -0.11780159920454025, 0.18410879373550415, -0.16831424832344055, 0.003877006471157074, 0.006880380213260651, 0.08479239046573639, 0.13284431397914886, -0.2001204937696457, 0.11467432230710983, -0.18248628079891205, 0.15551714599132538, -0.5857793688774109, 0.08811647444963455, -0.06601817160844803, 0.05404161661863327, 0.08332428336143494, -0.6138043999671936, 0.39048144221305847, -0.05005401745438576, 0.20109090209007263, 0.21213072538375854, -0.00012045967014273629, 0.0749957263469696, 0.46436500549316406, -0.004133081063628197, -0.29601338505744934, -0.08114446699619293, 0.18658027052879333, -0.020505348220467567, 0.31808799505233765, -0.3607695698738098, 0.10087858885526657, -0.2803390324115753, 0.22425971925258636, 0.04719962924718857, 0.18321740627288818, 0.008632385171949863, 0.16828584671020508, -0.18305319547653198, 0.3375391364097595, 0.030643785372376442, 0.7112433910369873, -0.13746890425682068, 0.08150545507669449, 0.4424608051776886, 0.12259737402200699, -0.16071586310863495, -0.1864345669746399, 0.23629744350910187, -0.2502577304840088, 0.12030893564224243, 0.2671842873096466, -0.07704272866249084, 0.38487616181373596, -0.20049546658992767, 0.3921535611152649, 0.2679576277732849, 0.7762547731399536, -0.4092205762863159, 0.1730331927537918, -0.23131239414215088, -0.03287096321582794, -0.02295958809554577, 0.09382501244544983, 0.23073698580265045, -0.2767694294452667, 0.054530069231987, 0.15718571841716766, -0.11887083202600479, -0.2609153985977173, 0.3013152778148651, -0.06424793601036072, 0.19972077012062073, 0.1399381458759308, 0.39106857776641846, 0.016335271298885345, -0.22688384354114532, 0.001935380045324564, 0.06326387822628021, 0.16725805401802063, 0.22086411714553833, -0.39311325550079346, 0.10725770890712738, -0.06830256432294846, 0.11390455067157745, 0.37786194682121277, -0.16936178505420685, -0.021595828235149384, 0.06594163179397583, 0.23917080461978912, 0.2064652144908905, 0.41922727227211, 0.12418486177921295, -0.32374146580696106, -0.29872196912765503, 0.27216607332229614, 0.19889992475509644, -0.25421392917633057, -0.036441683769226074, -0.06121199578046799, -0.11379503458738327, 0.13857287168502808, -0.17098379135131836, 0.4291737675666809, -0.26999127864837646, -0.22057977318763733, 0.11957686394453049, -0.14467985928058624, -0.07156772166490555, -0.15523026883602142, 0.38672035932540894, -0.09167885035276413, 0.24249956011772156, 0.06721020489931107, 0.062237806618213654, -0.1821434646844864, -0.18781425058841705, 0.005754290614277124, 0.11867770552635193, -0.21246717870235443, 0.17979326844215393, 0.29393061995506287, -0.15380379557609558, 0.25835418701171875, 0.14352211356163025, -0.1506108045578003, -0.12067554146051407, 0.17006435990333557, 0.013038394972682, -0.23267295956611633, 0.3098335862159729, 0.007501296699047089, 0.24687205255031586, -0.032895226031541824, -0.14496952295303345, -0.1790345311164856, 0.3182585537433624, -0.2848283350467682, -0.5152543783187866, -0.26225051283836365, 0.12090536206960678, -0.01166290882974863, 0.08445082604885101, 0.16168668866157532, 0.05765415355563164, 0.44134947657585144, -0.5136594772338867, -0.10032276064157486, -0.125785231590271, -0.18552809953689575, -0.4527529180049896, 0.17063751816749573, 0.33631300926208496, -0.5569391846656799, 0.07983213663101196, -0.05076465383172035, 0.08240383118391037, 0.2173675000667572, 0.4450020492076874, -0.22985583543777466, 0.1757661998271942, -0.16548635065555573, 0.19240181148052216, 0.10959093272686005, -0.3121567368507385, -0.5411022901535034, 0.21401341259479523, -0.061286814510822296, 0.195904940366745, 0.025957100093364716, 0.290603369474411, 0.009336834773421288, 0.17176248133182526, 0.40526461601257324, 0.2492511123418808, -0.04676523059606552, 0.0787922739982605, -0.40852680802345276, -0.3879692554473877, 0.3385644555091858, 0.2016654908657074, -0.004744876176118851, -0.19889840483665466, 0.19682517647743225, 0.3221476674079895, 0.2584797143936157, -0.20357933640480042, 0.12879593670368195, 0.02183905616402626, 0.07051767408847809, -0.012946635484695435, 0.232766255736351, -0.22382989525794983, -0.4262203276157379, 0.11144658178091049, -0.34314000606536865, -0.023589856922626495, -0.3043869733810425, -0.36122846603393555, -0.5231873989105225, 0.06636946648359299, -0.1714640110731125, -0.2400970160961151, 0.11505044996738434, -0.061333492398262024, 0.09534929692745209, 0.2569483518600464, 0.10278591513633728, -0.08967635035514832, -0.20426659286022186, -0.017557431012392044, -0.4030899107456207, 0.2405165284872055, -0.30879881978034973, -0.1786496341228485, -0.022190937772393227, 0.24512866139411926, 0.32460883259773254, 0.100293830037117, 0.04317528009414673, 0.15584319829940796, 0.14677709341049194, 0.09318695962429047, -0.1324363648891449, -0.01770065724849701, 0.2272266000509262, -0.2668777108192444, 0.2040075808763504, 0.12404495477676392, 0.18690048158168793, -0.22101736068725586, 0.05095229297876358, 0.13224133849143982, -0.001999247819185257, 0.17187607288360596, -0.08223791420459747, -0.0712243840098381, 0.1570296734571457, -0.0034187734127044678, 0.3967845141887665, -0.1355205923318863, 0.25990360975265503, 0.47116056084632874, 0.043001677840948105, 0.10370771586894989, -0.0057756006717681885, 0.010362029075622559, 0.11434650421142578, -0.04716102033853531, 0.15312199294567108, 0.1461280882358551, -0.3416615426540375, -0.28515684604644775, 0.21888338029384613, -0.14423483610153198, 0.07827353477478027, 0.09371290355920792, 0.028069298714399338, 0.13984856009483337, -0.06898146867752075, -0.19510327279567719, 0.13160237669944763, -0.11788009107112885, 0.4590723514556885, 0.31006789207458496, 0.30289050936698914, -0.029343727976083755, -0.37656718492507935, 0.0593944750726223, 0.08311354368925095, 0.37936586141586304, -0.30408960580825806, 0.0794890895485878, -0.17133255302906036, -0.24345919489860535, -0.07726670801639557, -0.013045373372733593, -0.29151108860969543, -0.3173157274723053, 0.08157077431678772, 0.5144311785697937, 0.03286776319146156, 0.009985928423702717, -0.05400341749191284, -0.048035070300102234, 0.07968820631504059, -0.13089154660701752, -0.05050622671842575, -0.7057316303253174, -0.3859115242958069, 0.005147717893123627, 0.2574864625930786, -0.13397926092147827, 0.25024619698524475, -0.025403445586562157, -0.19274650514125824, -0.37669235467910767, -0.5513481497764587, -0.003672514110803604, -0.11040599644184113, 0.31784409284591675, 0.01763325184583664, 0.3957710862159729, 0.07278908044099808, -0.21528814733028412, 0.21038687229156494, 0.013057740405201912, -0.02486507035791874, 0.2813802659511566, -0.36316877603530884, 0.08441372960805893, -0.008928319439291954, -0.22848138213157654, -0.2832891643047333, -0.14893357455730438, 0.19939664006233215, 0.06301672756671906, 0.18703152239322662, 0.23829995095729828, 0.06289266049861908, 0.1012382060289383, 0.275894433259964, 0.06764605641365051, -0.37171778082847595, -0.16083253920078278, 0.3060965836048126, -0.2184314727783203, -0.2773067355155945, 0.1912306547164917, 0.0027226507663726807, 0.12418611347675323, 0.22165098786354065, -0.5899147391319275, 0.007206401787698269, 0.08572177588939667, 0.32713669538497925, 0.031963929533958435, -0.1462099254131317, 0.23672053217887878, 0.021127372980117798, 0.0012417063117027283, 0.06205924600362778, 0.005652938038110733, -0.12062380462884903, -0.1537078320980072, 0.16624154150485992, 0.11402742564678192, 0.209468275308609, 0.16471755504608154, 0.7836130857467651, 0.08677175641059875, 0.04249550402164459, 0.4263209402561188, -0.18830694258213043, 0.06352781504392624, -0.1462811529636383, -0.09664621949195862, 0.03148462250828743, -0.3452984392642975, -0.23165059089660645, 0.12315385043621063, -0.12100306898355484, -0.3868955373764038, -0.05445365235209465, -0.24508599936962128, -0.2544873058795929, -0.23949287831783295, 0.04457443952560425, -0.038282833993434906, 0.37937283515930176, 0.10441631078720093, -0.168518528342247, -0.15148478746414185, -0.4424999952316284, -0.028786197304725647, 0.14633111655712128, -0.029248014092445374, -0.03678106516599655, -0.10056605935096741, -0.20292921364307404, -0.5161781907081604, 0.415593683719635, 0.28595471382141113, 0.11058668047189713, -0.17187555134296417, 0.08782283216714859, 0.44788652658462524, -0.18531781435012817, 0.659649133682251, -0.1708528995513916, 0.04381191357970238, 0.09848164021968842, 0.18375003337860107, -0.7251460552215576, -0.01941392943263054, 0.14754429459571838, 0.13427667319774628, 0.21531295776367188, -0.11666572093963623, -0.5139329433441162, 0.09796445816755295, 0.34410008788108826, 0.37327975034713745, -0.08862753957509995, -0.17929473519325256, -0.1912723183631897, -0.37672698497772217, -0.5138630270957947, -0.16492360830307007, -0.2111014872789383, 0.2683066129684448, -0.02556084841489792, 0.031048353761434555, 0.05038503557443619, 0.20147821307182312, -0.014731548726558685, 0.28214800357818604, 0.28590503334999084, 0.016502011567354202, 0.023509949445724487, 0.09593036770820618, 0.09910409152507782, 0.34707126021385193, 0.35393238067626953, 0.28819701075553894, -0.04237326979637146, -0.08899838477373123, 0.08530090004205704, -0.06382033973932266, 0.18121036887168884, -0.15028731524944305, 0.06661606580018997, -0.0016662832349538803, -0.1978694051504135, -0.07344729453325272, -0.15724757313728333, 0.3747444152832031, -0.22128529846668243, -0.2982095181941986, -0.23898150026798248, 0.7085092067718506, 0.15898987650871277, -0.09604402631521225, 0.1231103464961052, -0.10886882245540619, -0.1373424232006073, 0.3652403950691223, 0.11770670115947723, 0.9276623725891113, -0.1522068828344345, 0.328930139541626, 0.32865509390830994, -0.039698489010334015, 0.5044323801994324, -0.28250622749328613, 0.13398826122283936, -0.48441049456596375, 0.28564584255218506, -0.010888881981372833, -0.0980817973613739, -0.15467196702957153, 0.03108092211186886, -0.18278326094150543, 0.07330619543790817, -0.22070522606372833, 0.08858847618103027, 0.010632991790771484, 0.35674065351486206, -0.00835116021335125, 0.11068589985370636, -0.08427441865205765, 0.056264184415340424, -0.31955480575561523, 0.2571132779121399, -0.2615230679512024, -0.0009583858773112297, 0.09796135127544403, -0.1563691943883896, -0.45445483922958374, 0.07854865491390228, -0.1875041425228119, 0.45333564281463623, -0.3069444000720978, -0.31887853145599365, 0.0176071859896183, 0.059825241565704346, -0.04116499423980713, -0.09378336369991302, -0.3611283004283905, 0.18094317615032196, -0.22304823994636536, -0.1647403985261917, -0.10608786344528198, 0.07032877951860428, 0.22642485797405243, -0.07054483890533447, -0.46504631638526917, 0.31040725111961365, -0.03319042548537254, -0.2690659761428833, -0.19516658782958984, 0.0056175291538238525, 0.07666308432817459, -0.19385108351707458, -0.15716663002967834, -0.2530140280723572, -0.11918757855892181, -0.13580851256847382, 0.07341419160366058, -0.12955981492996216, 0.00849176850169897, 0.06465856730937958, 0.06856419891119003, -0.3869740068912506, 0.11556006968021393, 0.47190484404563904, 0.37674644589424133, 0.16866397857666016, 0.6754419803619385, 0.26835209131240845, -0.26639318466186523, -0.013630187138915062, -0.3504728674888611, -0.3611336648464203, -0.39338091015815735, -0.07509707659482956, 0.13296614587306976, 0.46066462993621826, -0.23611849546432495, 0.10578703135251999, 0.1565130054950714, -0.10045523196458817, 0.12894639372825623, -0.46690571308135986, -0.28564777970314026, 0.3458830714225769, -0.15585210919380188, 0.21506570279598236, 0.3333626687526703, 0.13716720044612885, 0.09419409185647964, 0.281773179769516, -0.20745447278022766, 0.475482314825058, -0.08086182922124863, 0.3691471219062805, 0.10227307677268982, -0.104517363011837, -0.16643249988555908, 0.0043664248660206795, 0.027808746322989464, 0.07330748438835144, -0.08420702069997787, -0.18736889958381653, -0.05974040925502777, 0.17696456611156464, 0.059537019580602646, -0.20684681832790375, -0.12213293462991714, -0.40882551670074463, 0.058077700436115265, -0.010987086221575737, 0.35906338691711426, 0.10428420454263687, -0.07778854668140411, 0.1733732968568802, 0.18054382503032684, 0.1427162140607834, -0.2289879024028778, 0.36195245385169983, -0.13345123827457428, 0.3957298994064331, 0.2669546604156494, 0.23853766918182373, -0.09472402930259705, -0.012623317539691925, -0.2449374496936798, 0.08050371706485748, 0.11544157564640045, -0.18867820501327515, 0.18522799015045166, -0.27769070863723755, -0.2030884474515915, -0.02137899212539196, 0.016403574496507645, 0.33968207240104675, -0.14176157116889954, -0.0548667386174202, -0.06082112342119217, 0.10058657079935074, -0.2835874557495117, 0.04606181010603905, 0.4852425158023834, -0.1776815950870514, -0.2785927355289459, 0.06876310706138611, 0.5847010612487793, -0.04389357194304466, 0.16632261872291565, 0.04665294289588928, 0.23935355246067047, 0.011582553386688232, 0.08544611930847168, 0.22191627323627472, 0.10981908440589905, -0.13773976266384125, 0.05679088830947876, 0.27208468317985535, 0.1866968274116516, 0.4535914659500122, -0.16573747992515564, 0.09753947705030441, -0.1927056908607483, 0.04721400886774063, -0.14114558696746826, -0.36018499732017517, 0.15975573658943176, 0.4120800793170929, 0.1318734586238861, 0.006587915122509003, 0.09148995578289032, 0.3713226616382599, 0.6368657946586609, 0.010277939960360527, -0.048384711146354675, 0.3622549772262573, -0.1486777663230896, -0.18041646480560303, -0.29789480566978455, -0.3707219958305359, 0.028532788157463074, 0.15082107484340668, -0.24044975638389587, -0.22331048548221588, 0.2616763710975647, 0.18587999045848846, -0.32082295417785645, -0.6472074389457703, 0.5188286900520325, 0.2831639051437378, 0.13512569665908813, -0.22257710993289948, 0.21158121526241302, 0.12483983486890793, -0.07370440661907196, 0.10121598839759827, 0.28946590423583984, 0.65751051902771, 0.32112184166908264, -0.7122469544410706, 0.024168431758880615, -0.1587843894958496, 0.09642986953258514, -0.09569407999515533, -0.025560412555933, 0.1547427773475647, -0.07263565063476562, 0.21759706735610962, 0.05578373372554779, -0.03133781999349594, -0.16374576091766357, 0.4401109218597412, 0.04797115921974182, -0.2145300954580307, -0.260204017162323, -0.18675494194030762, -0.21168383955955505, 0.004794461652636528, 0.08894665539264679, -0.3720794916152954, 0.22484789788722992, 0.4339291751384735, 0.007496915757656097, 0.14166748523712158, -0.08619131147861481, 0.03826569765806198, -0.28044405579566956, 0.4323861300945282, 0.2422131597995758, 0.10944607853889465, -0.4453442692756653, -0.2630239725112915, -0.6950755715370178, 0.3619225025177002, -0.4275679588317871, -0.004695780575275421, 0.32819864153862, 0.18192586302757263, -0.20074689388275146, 0.16651365160942078, 0.07209737598896027, -0.143596813082695, -0.1851031333208084, 0.33475539088249207, -0.22432272136211395, -0.10522006452083588, -0.12880386412143707, -0.2936495542526245, -0.25168824195861816, -0.3236354887485504, 0.21473664045333862, -0.19497977197170258, -0.04772339388728142, -0.2938644289970398, -0.14435803890228271, 0.1363731473684311, 0.1835705041885376, 0.5083595514297485, 0.08552888035774231, 0.6090761423110962, 0.07915817946195602, -0.03097018040716648, -0.20012545585632324, -0.1561926156282425, 0.17803461849689484, 0.2961328625679016, 0.04260917752981186, 0.11947676539421082, -0.09500981122255325, -0.1640063226222992, -0.1698608547449112, 0.5059784650802612, -0.018787428736686707, 0.07610147446393967, -0.0015462599694728851, -0.22567501664161682, 0.01262955367565155, 0.3037436604499817, -0.1414281278848648, 0.1818353831768036, -0.06938454508781433, 0.3124791979789734, -0.29226985573768616, -0.4456370174884796, 0.4373096227645874, -0.42842966318130493, -0.37101706862449646, 0.044043827801942825, 0.12372610718011856, -0.19838231801986694, -0.10032108426094055, -0.3580925464630127, 0.14545592665672302, 0.4109819829463959, -0.016089797019958496, -0.13795194029808044, -0.11225652694702148, -0.08490285277366638, -0.10420818626880646, -0.20671053230762482, 0.03155367448925972, 0.04200182855129242, -0.15446506440639496, -0.3315706253051758, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2144
Loading wikipedia 20200501.en throws pyarrow related error
I just tried on my side and got no issues. When downloading the dataset again, did it crash at 10.7GB as well ?
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
23
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] I just tried on my side and got no issues. When downloading the dataset again, did it crash at 10.7GB as well ?
[ -0.10415402799844742, 0.352646142244339, 0.0340580977499485, 0.36331021785736084, 0.2745780944824219, 0.18020805716514587, 0.2762233018875122, 0.4623256325721741, -0.04348771274089813, -0.11378425359725952, 0.02473791502416134, 0.23602265119552612, 0.15206791460514069, -0.11780159920454025, 0.18410879373550415, -0.16831424832344055, 0.003877006471157074, 0.006880380213260651, 0.08479239046573639, 0.13284431397914886, -0.2001204937696457, 0.11467432230710983, -0.18248628079891205, 0.15551714599132538, -0.5857793688774109, 0.08811647444963455, -0.06601817160844803, 0.05404161661863327, 0.08332428336143494, -0.6138043999671936, 0.39048144221305847, -0.05005401745438576, 0.20109090209007263, 0.21213072538375854, -0.00012045967014273629, 0.0749957263469696, 0.46436500549316406, -0.004133081063628197, -0.29601338505744934, -0.08114446699619293, 0.18658027052879333, -0.020505348220467567, 0.31808799505233765, -0.3607695698738098, 0.10087858885526657, -0.2803390324115753, 0.22425971925258636, 0.04719962924718857, 0.18321740627288818, 0.008632385171949863, 0.16828584671020508, -0.18305319547653198, 0.3375391364097595, 0.030643785372376442, 0.7112433910369873, -0.13746890425682068, 0.08150545507669449, 0.4424608051776886, 0.12259737402200699, -0.16071586310863495, -0.1864345669746399, 0.23629744350910187, -0.2502577304840088, 0.12030893564224243, 0.2671842873096466, -0.07704272866249084, 0.38487616181373596, -0.20049546658992767, 0.3921535611152649, 0.2679576277732849, 0.7762547731399536, -0.4092205762863159, 0.1730331927537918, -0.23131239414215088, -0.03287096321582794, -0.02295958809554577, 0.09382501244544983, 0.23073698580265045, -0.2767694294452667, 0.054530069231987, 0.15718571841716766, -0.11887083202600479, -0.2609153985977173, 0.3013152778148651, -0.06424793601036072, 0.19972077012062073, 0.1399381458759308, 0.39106857776641846, 0.016335271298885345, -0.22688384354114532, 0.001935380045324564, 0.06326387822628021, 0.16725805401802063, 0.22086411714553833, -0.39311325550079346, 0.10725770890712738, -0.06830256432294846, 0.11390455067157745, 0.37786194682121277, -0.16936178505420685, -0.021595828235149384, 0.06594163179397583, 0.23917080461978912, 0.2064652144908905, 0.41922727227211, 0.12418486177921295, -0.32374146580696106, -0.29872196912765503, 0.27216607332229614, 0.19889992475509644, -0.25421392917633057, -0.036441683769226074, -0.06121199578046799, -0.11379503458738327, 0.13857287168502808, -0.17098379135131836, 0.4291737675666809, -0.26999127864837646, -0.22057977318763733, 0.11957686394453049, -0.14467985928058624, -0.07156772166490555, -0.15523026883602142, 0.38672035932540894, -0.09167885035276413, 0.24249956011772156, 0.06721020489931107, 0.062237806618213654, -0.1821434646844864, -0.18781425058841705, 0.005754290614277124, 0.11867770552635193, -0.21246717870235443, 0.17979326844215393, 0.29393061995506287, -0.15380379557609558, 0.25835418701171875, 0.14352211356163025, -0.1506108045578003, -0.12067554146051407, 0.17006435990333557, 0.013038394972682, -0.23267295956611633, 0.3098335862159729, 0.007501296699047089, 0.24687205255031586, -0.032895226031541824, -0.14496952295303345, -0.1790345311164856, 0.3182585537433624, -0.2848283350467682, -0.5152543783187866, -0.26225051283836365, 0.12090536206960678, -0.01166290882974863, 0.08445082604885101, 0.16168668866157532, 0.05765415355563164, 0.44134947657585144, -0.5136594772338867, -0.10032276064157486, -0.125785231590271, -0.18552809953689575, -0.4527529180049896, 0.17063751816749573, 0.33631300926208496, -0.5569391846656799, 0.07983213663101196, -0.05076465383172035, 0.08240383118391037, 0.2173675000667572, 0.4450020492076874, -0.22985583543777466, 0.1757661998271942, -0.16548635065555573, 0.19240181148052216, 0.10959093272686005, -0.3121567368507385, -0.5411022901535034, 0.21401341259479523, -0.061286814510822296, 0.195904940366745, 0.025957100093364716, 0.290603369474411, 0.009336834773421288, 0.17176248133182526, 0.40526461601257324, 0.2492511123418808, -0.04676523059606552, 0.0787922739982605, -0.40852680802345276, -0.3879692554473877, 0.3385644555091858, 0.2016654908657074, -0.004744876176118851, -0.19889840483665466, 0.19682517647743225, 0.3221476674079895, 0.2584797143936157, -0.20357933640480042, 0.12879593670368195, 0.02183905616402626, 0.07051767408847809, -0.012946635484695435, 0.232766255736351, -0.22382989525794983, -0.4262203276157379, 0.11144658178091049, -0.34314000606536865, -0.023589856922626495, -0.3043869733810425, -0.36122846603393555, -0.5231873989105225, 0.06636946648359299, -0.1714640110731125, -0.2400970160961151, 0.11505044996738434, -0.061333492398262024, 0.09534929692745209, 0.2569483518600464, 0.10278591513633728, -0.08967635035514832, -0.20426659286022186, -0.017557431012392044, -0.4030899107456207, 0.2405165284872055, -0.30879881978034973, -0.1786496341228485, -0.022190937772393227, 0.24512866139411926, 0.32460883259773254, 0.100293830037117, 0.04317528009414673, 0.15584319829940796, 0.14677709341049194, 0.09318695962429047, -0.1324363648891449, -0.01770065724849701, 0.2272266000509262, -0.2668777108192444, 0.2040075808763504, 0.12404495477676392, 0.18690048158168793, -0.22101736068725586, 0.05095229297876358, 0.13224133849143982, -0.001999247819185257, 0.17187607288360596, -0.08223791420459747, -0.0712243840098381, 0.1570296734571457, -0.0034187734127044678, 0.3967845141887665, -0.1355205923318863, 0.25990360975265503, 0.47116056084632874, 0.043001677840948105, 0.10370771586894989, -0.0057756006717681885, 0.010362029075622559, 0.11434650421142578, -0.04716102033853531, 0.15312199294567108, 0.1461280882358551, -0.3416615426540375, -0.28515684604644775, 0.21888338029384613, -0.14423483610153198, 0.07827353477478027, 0.09371290355920792, 0.028069298714399338, 0.13984856009483337, -0.06898146867752075, -0.19510327279567719, 0.13160237669944763, -0.11788009107112885, 0.4590723514556885, 0.31006789207458496, 0.30289050936698914, -0.029343727976083755, -0.37656718492507935, 0.0593944750726223, 0.08311354368925095, 0.37936586141586304, -0.30408960580825806, 0.0794890895485878, -0.17133255302906036, -0.24345919489860535, -0.07726670801639557, -0.013045373372733593, -0.29151108860969543, -0.3173157274723053, 0.08157077431678772, 0.5144311785697937, 0.03286776319146156, 0.009985928423702717, -0.05400341749191284, -0.048035070300102234, 0.07968820631504059, -0.13089154660701752, -0.05050622671842575, -0.7057316303253174, -0.3859115242958069, 0.005147717893123627, 0.2574864625930786, -0.13397926092147827, 0.25024619698524475, -0.025403445586562157, -0.19274650514125824, -0.37669235467910767, -0.5513481497764587, -0.003672514110803604, -0.11040599644184113, 0.31784409284591675, 0.01763325184583664, 0.3957710862159729, 0.07278908044099808, -0.21528814733028412, 0.21038687229156494, 0.013057740405201912, -0.02486507035791874, 0.2813802659511566, -0.36316877603530884, 0.08441372960805893, -0.008928319439291954, -0.22848138213157654, -0.2832891643047333, -0.14893357455730438, 0.19939664006233215, 0.06301672756671906, 0.18703152239322662, 0.23829995095729828, 0.06289266049861908, 0.1012382060289383, 0.275894433259964, 0.06764605641365051, -0.37171778082847595, -0.16083253920078278, 0.3060965836048126, -0.2184314727783203, -0.2773067355155945, 0.1912306547164917, 0.0027226507663726807, 0.12418611347675323, 0.22165098786354065, -0.5899147391319275, 0.007206401787698269, 0.08572177588939667, 0.32713669538497925, 0.031963929533958435, -0.1462099254131317, 0.23672053217887878, 0.021127372980117798, 0.0012417063117027283, 0.06205924600362778, 0.005652938038110733, -0.12062380462884903, -0.1537078320980072, 0.16624154150485992, 0.11402742564678192, 0.209468275308609, 0.16471755504608154, 0.7836130857467651, 0.08677175641059875, 0.04249550402164459, 0.4263209402561188, -0.18830694258213043, 0.06352781504392624, -0.1462811529636383, -0.09664621949195862, 0.03148462250828743, -0.3452984392642975, -0.23165059089660645, 0.12315385043621063, -0.12100306898355484, -0.3868955373764038, -0.05445365235209465, -0.24508599936962128, -0.2544873058795929, -0.23949287831783295, 0.04457443952560425, -0.038282833993434906, 0.37937283515930176, 0.10441631078720093, -0.168518528342247, -0.15148478746414185, -0.4424999952316284, -0.028786197304725647, 0.14633111655712128, -0.029248014092445374, -0.03678106516599655, -0.10056605935096741, -0.20292921364307404, -0.5161781907081604, 0.415593683719635, 0.28595471382141113, 0.11058668047189713, -0.17187555134296417, 0.08782283216714859, 0.44788652658462524, -0.18531781435012817, 0.659649133682251, -0.1708528995513916, 0.04381191357970238, 0.09848164021968842, 0.18375003337860107, -0.7251460552215576, -0.01941392943263054, 0.14754429459571838, 0.13427667319774628, 0.21531295776367188, -0.11666572093963623, -0.5139329433441162, 0.09796445816755295, 0.34410008788108826, 0.37327975034713745, -0.08862753957509995, -0.17929473519325256, -0.1912723183631897, -0.37672698497772217, -0.5138630270957947, -0.16492360830307007, -0.2111014872789383, 0.2683066129684448, -0.02556084841489792, 0.031048353761434555, 0.05038503557443619, 0.20147821307182312, -0.014731548726558685, 0.28214800357818604, 0.28590503334999084, 0.016502011567354202, 0.023509949445724487, 0.09593036770820618, 0.09910409152507782, 0.34707126021385193, 0.35393238067626953, 0.28819701075553894, -0.04237326979637146, -0.08899838477373123, 0.08530090004205704, -0.06382033973932266, 0.18121036887168884, -0.15028731524944305, 0.06661606580018997, -0.0016662832349538803, -0.1978694051504135, -0.07344729453325272, -0.15724757313728333, 0.3747444152832031, -0.22128529846668243, -0.2982095181941986, -0.23898150026798248, 0.7085092067718506, 0.15898987650871277, -0.09604402631521225, 0.1231103464961052, -0.10886882245540619, -0.1373424232006073, 0.3652403950691223, 0.11770670115947723, 0.9276623725891113, -0.1522068828344345, 0.328930139541626, 0.32865509390830994, -0.039698489010334015, 0.5044323801994324, -0.28250622749328613, 0.13398826122283936, -0.48441049456596375, 0.28564584255218506, -0.010888881981372833, -0.0980817973613739, -0.15467196702957153, 0.03108092211186886, -0.18278326094150543, 0.07330619543790817, -0.22070522606372833, 0.08858847618103027, 0.010632991790771484, 0.35674065351486206, -0.00835116021335125, 0.11068589985370636, -0.08427441865205765, 0.056264184415340424, -0.31955480575561523, 0.2571132779121399, -0.2615230679512024, -0.0009583858773112297, 0.09796135127544403, -0.1563691943883896, -0.45445483922958374, 0.07854865491390228, -0.1875041425228119, 0.45333564281463623, -0.3069444000720978, -0.31887853145599365, 0.0176071859896183, 0.059825241565704346, -0.04116499423980713, -0.09378336369991302, -0.3611283004283905, 0.18094317615032196, -0.22304823994636536, -0.1647403985261917, -0.10608786344528198, 0.07032877951860428, 0.22642485797405243, -0.07054483890533447, -0.46504631638526917, 0.31040725111961365, -0.03319042548537254, -0.2690659761428833, -0.19516658782958984, 0.0056175291538238525, 0.07666308432817459, -0.19385108351707458, -0.15716663002967834, -0.2530140280723572, -0.11918757855892181, -0.13580851256847382, 0.07341419160366058, -0.12955981492996216, 0.00849176850169897, 0.06465856730937958, 0.06856419891119003, -0.3869740068912506, 0.11556006968021393, 0.47190484404563904, 0.37674644589424133, 0.16866397857666016, 0.6754419803619385, 0.26835209131240845, -0.26639318466186523, -0.013630187138915062, -0.3504728674888611, -0.3611336648464203, -0.39338091015815735, -0.07509707659482956, 0.13296614587306976, 0.46066462993621826, -0.23611849546432495, 0.10578703135251999, 0.1565130054950714, -0.10045523196458817, 0.12894639372825623, -0.46690571308135986, -0.28564777970314026, 0.3458830714225769, -0.15585210919380188, 0.21506570279598236, 0.3333626687526703, 0.13716720044612885, 0.09419409185647964, 0.281773179769516, -0.20745447278022766, 0.475482314825058, -0.08086182922124863, 0.3691471219062805, 0.10227307677268982, -0.104517363011837, -0.16643249988555908, 0.0043664248660206795, 0.027808746322989464, 0.07330748438835144, -0.08420702069997787, -0.18736889958381653, -0.05974040925502777, 0.17696456611156464, 0.059537019580602646, -0.20684681832790375, -0.12213293462991714, -0.40882551670074463, 0.058077700436115265, -0.010987086221575737, 0.35906338691711426, 0.10428420454263687, -0.07778854668140411, 0.1733732968568802, 0.18054382503032684, 0.1427162140607834, -0.2289879024028778, 0.36195245385169983, -0.13345123827457428, 0.3957298994064331, 0.2669546604156494, 0.23853766918182373, -0.09472402930259705, -0.012623317539691925, -0.2449374496936798, 0.08050371706485748, 0.11544157564640045, -0.18867820501327515, 0.18522799015045166, -0.27769070863723755, -0.2030884474515915, -0.02137899212539196, 0.016403574496507645, 0.33968207240104675, -0.14176157116889954, -0.0548667386174202, -0.06082112342119217, 0.10058657079935074, -0.2835874557495117, 0.04606181010603905, 0.4852425158023834, -0.1776815950870514, -0.2785927355289459, 0.06876310706138611, 0.5847010612487793, -0.04389357194304466, 0.16632261872291565, 0.04665294289588928, 0.23935355246067047, 0.011582553386688232, 0.08544611930847168, 0.22191627323627472, 0.10981908440589905, -0.13773976266384125, 0.05679088830947876, 0.27208468317985535, 0.1866968274116516, 0.4535914659500122, -0.16573747992515564, 0.09753947705030441, -0.1927056908607483, 0.04721400886774063, -0.14114558696746826, -0.36018499732017517, 0.15975573658943176, 0.4120800793170929, 0.1318734586238861, 0.006587915122509003, 0.09148995578289032, 0.3713226616382599, 0.6368657946586609, 0.010277939960360527, -0.048384711146354675, 0.3622549772262573, -0.1486777663230896, -0.18041646480560303, -0.29789480566978455, -0.3707219958305359, 0.028532788157463074, 0.15082107484340668, -0.24044975638389587, -0.22331048548221588, 0.2616763710975647, 0.18587999045848846, -0.32082295417785645, -0.6472074389457703, 0.5188286900520325, 0.2831639051437378, 0.13512569665908813, -0.22257710993289948, 0.21158121526241302, 0.12483983486890793, -0.07370440661907196, 0.10121598839759827, 0.28946590423583984, 0.65751051902771, 0.32112184166908264, -0.7122469544410706, 0.024168431758880615, -0.1587843894958496, 0.09642986953258514, -0.09569407999515533, -0.025560412555933, 0.1547427773475647, -0.07263565063476562, 0.21759706735610962, 0.05578373372554779, -0.03133781999349594, -0.16374576091766357, 0.4401109218597412, 0.04797115921974182, -0.2145300954580307, -0.260204017162323, -0.18675494194030762, -0.21168383955955505, 0.004794461652636528, 0.08894665539264679, -0.3720794916152954, 0.22484789788722992, 0.4339291751384735, 0.007496915757656097, 0.14166748523712158, -0.08619131147861481, 0.03826569765806198, -0.28044405579566956, 0.4323861300945282, 0.2422131597995758, 0.10944607853889465, -0.4453442692756653, -0.2630239725112915, -0.6950755715370178, 0.3619225025177002, -0.4275679588317871, -0.004695780575275421, 0.32819864153862, 0.18192586302757263, -0.20074689388275146, 0.16651365160942078, 0.07209737598896027, -0.143596813082695, -0.1851031333208084, 0.33475539088249207, -0.22432272136211395, -0.10522006452083588, -0.12880386412143707, -0.2936495542526245, -0.25168824195861816, -0.3236354887485504, 0.21473664045333862, -0.19497977197170258, -0.04772339388728142, -0.2938644289970398, -0.14435803890228271, 0.1363731473684311, 0.1835705041885376, 0.5083595514297485, 0.08552888035774231, 0.6090761423110962, 0.07915817946195602, -0.03097018040716648, -0.20012545585632324, -0.1561926156282425, 0.17803461849689484, 0.2961328625679016, 0.04260917752981186, 0.11947676539421082, -0.09500981122255325, -0.1640063226222992, -0.1698608547449112, 0.5059784650802612, -0.018787428736686707, 0.07610147446393967, -0.0015462599694728851, -0.22567501664161682, 0.01262955367565155, 0.3037436604499817, -0.1414281278848648, 0.1818353831768036, -0.06938454508781433, 0.3124791979789734, -0.29226985573768616, -0.4456370174884796, 0.4373096227645874, -0.42842966318130493, -0.37101706862449646, 0.044043827801942825, 0.12372610718011856, -0.19838231801986694, -0.10032108426094055, -0.3580925464630127, 0.14545592665672302, 0.4109819829463959, -0.016089797019958496, -0.13795194029808044, -0.11225652694702148, -0.08490285277366638, -0.10420818626880646, -0.20671053230762482, 0.03155367448925972, 0.04200182855129242, -0.15446506440639496, -0.3315706253051758, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2144
Loading wikipedia 20200501.en throws pyarrow related error
> I just tried on my side and got no issues. > When downloading the dataset again, did it crash at 10.7GB as well ? Yes i have tried it multiple times on different machines. I am wondering if you could share the screenshot of your dependency versions and i will try to make them the same as yours?
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
59
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] > I just tried on my side and got no issues. > When downloading the dataset again, did it crash at 10.7GB as well ? Yes i have tried it multiple times on different machines. I am wondering if you could share the screenshot of your dependency versions and i will try to make them the same as yours?
[ -0.10415402799844742, 0.352646142244339, 0.0340580977499485, 0.36331021785736084, 0.2745780944824219, 0.18020805716514587, 0.2762233018875122, 0.4623256325721741, -0.04348771274089813, -0.11378425359725952, 0.02473791502416134, 0.23602265119552612, 0.15206791460514069, -0.11780159920454025, 0.18410879373550415, -0.16831424832344055, 0.003877006471157074, 0.006880380213260651, 0.08479239046573639, 0.13284431397914886, -0.2001204937696457, 0.11467432230710983, -0.18248628079891205, 0.15551714599132538, -0.5857793688774109, 0.08811647444963455, -0.06601817160844803, 0.05404161661863327, 0.08332428336143494, -0.6138043999671936, 0.39048144221305847, -0.05005401745438576, 0.20109090209007263, 0.21213072538375854, -0.00012045967014273629, 0.0749957263469696, 0.46436500549316406, -0.004133081063628197, -0.29601338505744934, -0.08114446699619293, 0.18658027052879333, -0.020505348220467567, 0.31808799505233765, -0.3607695698738098, 0.10087858885526657, -0.2803390324115753, 0.22425971925258636, 0.04719962924718857, 0.18321740627288818, 0.008632385171949863, 0.16828584671020508, -0.18305319547653198, 0.3375391364097595, 0.030643785372376442, 0.7112433910369873, -0.13746890425682068, 0.08150545507669449, 0.4424608051776886, 0.12259737402200699, -0.16071586310863495, -0.1864345669746399, 0.23629744350910187, -0.2502577304840088, 0.12030893564224243, 0.2671842873096466, -0.07704272866249084, 0.38487616181373596, -0.20049546658992767, 0.3921535611152649, 0.2679576277732849, 0.7762547731399536, -0.4092205762863159, 0.1730331927537918, -0.23131239414215088, -0.03287096321582794, -0.02295958809554577, 0.09382501244544983, 0.23073698580265045, -0.2767694294452667, 0.054530069231987, 0.15718571841716766, -0.11887083202600479, -0.2609153985977173, 0.3013152778148651, -0.06424793601036072, 0.19972077012062073, 0.1399381458759308, 0.39106857776641846, 0.016335271298885345, -0.22688384354114532, 0.001935380045324564, 0.06326387822628021, 0.16725805401802063, 0.22086411714553833, -0.39311325550079346, 0.10725770890712738, -0.06830256432294846, 0.11390455067157745, 0.37786194682121277, -0.16936178505420685, -0.021595828235149384, 0.06594163179397583, 0.23917080461978912, 0.2064652144908905, 0.41922727227211, 0.12418486177921295, -0.32374146580696106, -0.29872196912765503, 0.27216607332229614, 0.19889992475509644, -0.25421392917633057, -0.036441683769226074, -0.06121199578046799, -0.11379503458738327, 0.13857287168502808, -0.17098379135131836, 0.4291737675666809, -0.26999127864837646, -0.22057977318763733, 0.11957686394453049, -0.14467985928058624, -0.07156772166490555, -0.15523026883602142, 0.38672035932540894, -0.09167885035276413, 0.24249956011772156, 0.06721020489931107, 0.062237806618213654, -0.1821434646844864, -0.18781425058841705, 0.005754290614277124, 0.11867770552635193, -0.21246717870235443, 0.17979326844215393, 0.29393061995506287, -0.15380379557609558, 0.25835418701171875, 0.14352211356163025, -0.1506108045578003, -0.12067554146051407, 0.17006435990333557, 0.013038394972682, -0.23267295956611633, 0.3098335862159729, 0.007501296699047089, 0.24687205255031586, -0.032895226031541824, -0.14496952295303345, -0.1790345311164856, 0.3182585537433624, -0.2848283350467682, -0.5152543783187866, -0.26225051283836365, 0.12090536206960678, -0.01166290882974863, 0.08445082604885101, 0.16168668866157532, 0.05765415355563164, 0.44134947657585144, -0.5136594772338867, -0.10032276064157486, -0.125785231590271, -0.18552809953689575, -0.4527529180049896, 0.17063751816749573, 0.33631300926208496, -0.5569391846656799, 0.07983213663101196, -0.05076465383172035, 0.08240383118391037, 0.2173675000667572, 0.4450020492076874, -0.22985583543777466, 0.1757661998271942, -0.16548635065555573, 0.19240181148052216, 0.10959093272686005, -0.3121567368507385, -0.5411022901535034, 0.21401341259479523, -0.061286814510822296, 0.195904940366745, 0.025957100093364716, 0.290603369474411, 0.009336834773421288, 0.17176248133182526, 0.40526461601257324, 0.2492511123418808, -0.04676523059606552, 0.0787922739982605, -0.40852680802345276, -0.3879692554473877, 0.3385644555091858, 0.2016654908657074, -0.004744876176118851, -0.19889840483665466, 0.19682517647743225, 0.3221476674079895, 0.2584797143936157, -0.20357933640480042, 0.12879593670368195, 0.02183905616402626, 0.07051767408847809, -0.012946635484695435, 0.232766255736351, -0.22382989525794983, -0.4262203276157379, 0.11144658178091049, -0.34314000606536865, -0.023589856922626495, -0.3043869733810425, -0.36122846603393555, -0.5231873989105225, 0.06636946648359299, -0.1714640110731125, -0.2400970160961151, 0.11505044996738434, -0.061333492398262024, 0.09534929692745209, 0.2569483518600464, 0.10278591513633728, -0.08967635035514832, -0.20426659286022186, -0.017557431012392044, -0.4030899107456207, 0.2405165284872055, -0.30879881978034973, -0.1786496341228485, -0.022190937772393227, 0.24512866139411926, 0.32460883259773254, 0.100293830037117, 0.04317528009414673, 0.15584319829940796, 0.14677709341049194, 0.09318695962429047, -0.1324363648891449, -0.01770065724849701, 0.2272266000509262, -0.2668777108192444, 0.2040075808763504, 0.12404495477676392, 0.18690048158168793, -0.22101736068725586, 0.05095229297876358, 0.13224133849143982, -0.001999247819185257, 0.17187607288360596, -0.08223791420459747, -0.0712243840098381, 0.1570296734571457, -0.0034187734127044678, 0.3967845141887665, -0.1355205923318863, 0.25990360975265503, 0.47116056084632874, 0.043001677840948105, 0.10370771586894989, -0.0057756006717681885, 0.010362029075622559, 0.11434650421142578, -0.04716102033853531, 0.15312199294567108, 0.1461280882358551, -0.3416615426540375, -0.28515684604644775, 0.21888338029384613, -0.14423483610153198, 0.07827353477478027, 0.09371290355920792, 0.028069298714399338, 0.13984856009483337, -0.06898146867752075, -0.19510327279567719, 0.13160237669944763, -0.11788009107112885, 0.4590723514556885, 0.31006789207458496, 0.30289050936698914, -0.029343727976083755, -0.37656718492507935, 0.0593944750726223, 0.08311354368925095, 0.37936586141586304, -0.30408960580825806, 0.0794890895485878, -0.17133255302906036, -0.24345919489860535, -0.07726670801639557, -0.013045373372733593, -0.29151108860969543, -0.3173157274723053, 0.08157077431678772, 0.5144311785697937, 0.03286776319146156, 0.009985928423702717, -0.05400341749191284, -0.048035070300102234, 0.07968820631504059, -0.13089154660701752, -0.05050622671842575, -0.7057316303253174, -0.3859115242958069, 0.005147717893123627, 0.2574864625930786, -0.13397926092147827, 0.25024619698524475, -0.025403445586562157, -0.19274650514125824, -0.37669235467910767, -0.5513481497764587, -0.003672514110803604, -0.11040599644184113, 0.31784409284591675, 0.01763325184583664, 0.3957710862159729, 0.07278908044099808, -0.21528814733028412, 0.21038687229156494, 0.013057740405201912, -0.02486507035791874, 0.2813802659511566, -0.36316877603530884, 0.08441372960805893, -0.008928319439291954, -0.22848138213157654, -0.2832891643047333, -0.14893357455730438, 0.19939664006233215, 0.06301672756671906, 0.18703152239322662, 0.23829995095729828, 0.06289266049861908, 0.1012382060289383, 0.275894433259964, 0.06764605641365051, -0.37171778082847595, -0.16083253920078278, 0.3060965836048126, -0.2184314727783203, -0.2773067355155945, 0.1912306547164917, 0.0027226507663726807, 0.12418611347675323, 0.22165098786354065, -0.5899147391319275, 0.007206401787698269, 0.08572177588939667, 0.32713669538497925, 0.031963929533958435, -0.1462099254131317, 0.23672053217887878, 0.021127372980117798, 0.0012417063117027283, 0.06205924600362778, 0.005652938038110733, -0.12062380462884903, -0.1537078320980072, 0.16624154150485992, 0.11402742564678192, 0.209468275308609, 0.16471755504608154, 0.7836130857467651, 0.08677175641059875, 0.04249550402164459, 0.4263209402561188, -0.18830694258213043, 0.06352781504392624, -0.1462811529636383, -0.09664621949195862, 0.03148462250828743, -0.3452984392642975, -0.23165059089660645, 0.12315385043621063, -0.12100306898355484, -0.3868955373764038, -0.05445365235209465, -0.24508599936962128, -0.2544873058795929, -0.23949287831783295, 0.04457443952560425, -0.038282833993434906, 0.37937283515930176, 0.10441631078720093, -0.168518528342247, -0.15148478746414185, -0.4424999952316284, -0.028786197304725647, 0.14633111655712128, -0.029248014092445374, -0.03678106516599655, -0.10056605935096741, -0.20292921364307404, -0.5161781907081604, 0.415593683719635, 0.28595471382141113, 0.11058668047189713, -0.17187555134296417, 0.08782283216714859, 0.44788652658462524, -0.18531781435012817, 0.659649133682251, -0.1708528995513916, 0.04381191357970238, 0.09848164021968842, 0.18375003337860107, -0.7251460552215576, -0.01941392943263054, 0.14754429459571838, 0.13427667319774628, 0.21531295776367188, -0.11666572093963623, -0.5139329433441162, 0.09796445816755295, 0.34410008788108826, 0.37327975034713745, -0.08862753957509995, -0.17929473519325256, -0.1912723183631897, -0.37672698497772217, -0.5138630270957947, -0.16492360830307007, -0.2111014872789383, 0.2683066129684448, -0.02556084841489792, 0.031048353761434555, 0.05038503557443619, 0.20147821307182312, -0.014731548726558685, 0.28214800357818604, 0.28590503334999084, 0.016502011567354202, 0.023509949445724487, 0.09593036770820618, 0.09910409152507782, 0.34707126021385193, 0.35393238067626953, 0.28819701075553894, -0.04237326979637146, -0.08899838477373123, 0.08530090004205704, -0.06382033973932266, 0.18121036887168884, -0.15028731524944305, 0.06661606580018997, -0.0016662832349538803, -0.1978694051504135, -0.07344729453325272, -0.15724757313728333, 0.3747444152832031, -0.22128529846668243, -0.2982095181941986, -0.23898150026798248, 0.7085092067718506, 0.15898987650871277, -0.09604402631521225, 0.1231103464961052, -0.10886882245540619, -0.1373424232006073, 0.3652403950691223, 0.11770670115947723, 0.9276623725891113, -0.1522068828344345, 0.328930139541626, 0.32865509390830994, -0.039698489010334015, 0.5044323801994324, -0.28250622749328613, 0.13398826122283936, -0.48441049456596375, 0.28564584255218506, -0.010888881981372833, -0.0980817973613739, -0.15467196702957153, 0.03108092211186886, -0.18278326094150543, 0.07330619543790817, -0.22070522606372833, 0.08858847618103027, 0.010632991790771484, 0.35674065351486206, -0.00835116021335125, 0.11068589985370636, -0.08427441865205765, 0.056264184415340424, -0.31955480575561523, 0.2571132779121399, -0.2615230679512024, -0.0009583858773112297, 0.09796135127544403, -0.1563691943883896, -0.45445483922958374, 0.07854865491390228, -0.1875041425228119, 0.45333564281463623, -0.3069444000720978, -0.31887853145599365, 0.0176071859896183, 0.059825241565704346, -0.04116499423980713, -0.09378336369991302, -0.3611283004283905, 0.18094317615032196, -0.22304823994636536, -0.1647403985261917, -0.10608786344528198, 0.07032877951860428, 0.22642485797405243, -0.07054483890533447, -0.46504631638526917, 0.31040725111961365, -0.03319042548537254, -0.2690659761428833, -0.19516658782958984, 0.0056175291538238525, 0.07666308432817459, -0.19385108351707458, -0.15716663002967834, -0.2530140280723572, -0.11918757855892181, -0.13580851256847382, 0.07341419160366058, -0.12955981492996216, 0.00849176850169897, 0.06465856730937958, 0.06856419891119003, -0.3869740068912506, 0.11556006968021393, 0.47190484404563904, 0.37674644589424133, 0.16866397857666016, 0.6754419803619385, 0.26835209131240845, -0.26639318466186523, -0.013630187138915062, -0.3504728674888611, -0.3611336648464203, -0.39338091015815735, -0.07509707659482956, 0.13296614587306976, 0.46066462993621826, -0.23611849546432495, 0.10578703135251999, 0.1565130054950714, -0.10045523196458817, 0.12894639372825623, -0.46690571308135986, -0.28564777970314026, 0.3458830714225769, -0.15585210919380188, 0.21506570279598236, 0.3333626687526703, 0.13716720044612885, 0.09419409185647964, 0.281773179769516, -0.20745447278022766, 0.475482314825058, -0.08086182922124863, 0.3691471219062805, 0.10227307677268982, -0.104517363011837, -0.16643249988555908, 0.0043664248660206795, 0.027808746322989464, 0.07330748438835144, -0.08420702069997787, -0.18736889958381653, -0.05974040925502777, 0.17696456611156464, 0.059537019580602646, -0.20684681832790375, -0.12213293462991714, -0.40882551670074463, 0.058077700436115265, -0.010987086221575737, 0.35906338691711426, 0.10428420454263687, -0.07778854668140411, 0.1733732968568802, 0.18054382503032684, 0.1427162140607834, -0.2289879024028778, 0.36195245385169983, -0.13345123827457428, 0.3957298994064331, 0.2669546604156494, 0.23853766918182373, -0.09472402930259705, -0.012623317539691925, -0.2449374496936798, 0.08050371706485748, 0.11544157564640045, -0.18867820501327515, 0.18522799015045166, -0.27769070863723755, -0.2030884474515915, -0.02137899212539196, 0.016403574496507645, 0.33968207240104675, -0.14176157116889954, -0.0548667386174202, -0.06082112342119217, 0.10058657079935074, -0.2835874557495117, 0.04606181010603905, 0.4852425158023834, -0.1776815950870514, -0.2785927355289459, 0.06876310706138611, 0.5847010612487793, -0.04389357194304466, 0.16632261872291565, 0.04665294289588928, 0.23935355246067047, 0.011582553386688232, 0.08544611930847168, 0.22191627323627472, 0.10981908440589905, -0.13773976266384125, 0.05679088830947876, 0.27208468317985535, 0.1866968274116516, 0.4535914659500122, -0.16573747992515564, 0.09753947705030441, -0.1927056908607483, 0.04721400886774063, -0.14114558696746826, -0.36018499732017517, 0.15975573658943176, 0.4120800793170929, 0.1318734586238861, 0.006587915122509003, 0.09148995578289032, 0.3713226616382599, 0.6368657946586609, 0.010277939960360527, -0.048384711146354675, 0.3622549772262573, -0.1486777663230896, -0.18041646480560303, -0.29789480566978455, -0.3707219958305359, 0.028532788157463074, 0.15082107484340668, -0.24044975638389587, -0.22331048548221588, 0.2616763710975647, 0.18587999045848846, -0.32082295417785645, -0.6472074389457703, 0.5188286900520325, 0.2831639051437378, 0.13512569665908813, -0.22257710993289948, 0.21158121526241302, 0.12483983486890793, -0.07370440661907196, 0.10121598839759827, 0.28946590423583984, 0.65751051902771, 0.32112184166908264, -0.7122469544410706, 0.024168431758880615, -0.1587843894958496, 0.09642986953258514, -0.09569407999515533, -0.025560412555933, 0.1547427773475647, -0.07263565063476562, 0.21759706735610962, 0.05578373372554779, -0.03133781999349594, -0.16374576091766357, 0.4401109218597412, 0.04797115921974182, -0.2145300954580307, -0.260204017162323, -0.18675494194030762, -0.21168383955955505, 0.004794461652636528, 0.08894665539264679, -0.3720794916152954, 0.22484789788722992, 0.4339291751384735, 0.007496915757656097, 0.14166748523712158, -0.08619131147861481, 0.03826569765806198, -0.28044405579566956, 0.4323861300945282, 0.2422131597995758, 0.10944607853889465, -0.4453442692756653, -0.2630239725112915, -0.6950755715370178, 0.3619225025177002, -0.4275679588317871, -0.004695780575275421, 0.32819864153862, 0.18192586302757263, -0.20074689388275146, 0.16651365160942078, 0.07209737598896027, -0.143596813082695, -0.1851031333208084, 0.33475539088249207, -0.22432272136211395, -0.10522006452083588, -0.12880386412143707, -0.2936495542526245, -0.25168824195861816, -0.3236354887485504, 0.21473664045333862, -0.19497977197170258, -0.04772339388728142, -0.2938644289970398, -0.14435803890228271, 0.1363731473684311, 0.1835705041885376, 0.5083595514297485, 0.08552888035774231, 0.6090761423110962, 0.07915817946195602, -0.03097018040716648, -0.20012545585632324, -0.1561926156282425, 0.17803461849689484, 0.2961328625679016, 0.04260917752981186, 0.11947676539421082, -0.09500981122255325, -0.1640063226222992, -0.1698608547449112, 0.5059784650802612, -0.018787428736686707, 0.07610147446393967, -0.0015462599694728851, -0.22567501664161682, 0.01262955367565155, 0.3037436604499817, -0.1414281278848648, 0.1818353831768036, -0.06938454508781433, 0.3124791979789734, -0.29226985573768616, -0.4456370174884796, 0.4373096227645874, -0.42842966318130493, -0.37101706862449646, 0.044043827801942825, 0.12372610718011856, -0.19838231801986694, -0.10032108426094055, -0.3580925464630127, 0.14545592665672302, 0.4109819829463959, -0.016089797019958496, -0.13795194029808044, -0.11225652694702148, -0.08490285277366638, -0.10420818626880646, -0.20671053230762482, 0.03155367448925972, 0.04200182855129242, -0.15446506440639496, -0.3315706253051758, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2144
Loading wikipedia 20200501.en throws pyarrow related error
I tried using `datasets` from `master` on macos with python 3.7.2 I also have `requests==2.23.0` and `tqdm==4.45.0`.
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
17
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] I tried using `datasets` from `master` on macos with python 3.7.2 I also have `requests==2.23.0` and `tqdm==4.45.0`.
[ -0.10415402799844742, 0.352646142244339, 0.0340580977499485, 0.36331021785736084, 0.2745780944824219, 0.18020805716514587, 0.2762233018875122, 0.4623256325721741, -0.04348771274089813, -0.11378425359725952, 0.02473791502416134, 0.23602265119552612, 0.15206791460514069, -0.11780159920454025, 0.18410879373550415, -0.16831424832344055, 0.003877006471157074, 0.006880380213260651, 0.08479239046573639, 0.13284431397914886, -0.2001204937696457, 0.11467432230710983, -0.18248628079891205, 0.15551714599132538, -0.5857793688774109, 0.08811647444963455, -0.06601817160844803, 0.05404161661863327, 0.08332428336143494, -0.6138043999671936, 0.39048144221305847, -0.05005401745438576, 0.20109090209007263, 0.21213072538375854, -0.00012045967014273629, 0.0749957263469696, 0.46436500549316406, -0.004133081063628197, -0.29601338505744934, -0.08114446699619293, 0.18658027052879333, -0.020505348220467567, 0.31808799505233765, -0.3607695698738098, 0.10087858885526657, -0.2803390324115753, 0.22425971925258636, 0.04719962924718857, 0.18321740627288818, 0.008632385171949863, 0.16828584671020508, -0.18305319547653198, 0.3375391364097595, 0.030643785372376442, 0.7112433910369873, -0.13746890425682068, 0.08150545507669449, 0.4424608051776886, 0.12259737402200699, -0.16071586310863495, -0.1864345669746399, 0.23629744350910187, -0.2502577304840088, 0.12030893564224243, 0.2671842873096466, -0.07704272866249084, 0.38487616181373596, -0.20049546658992767, 0.3921535611152649, 0.2679576277732849, 0.7762547731399536, -0.4092205762863159, 0.1730331927537918, -0.23131239414215088, -0.03287096321582794, -0.02295958809554577, 0.09382501244544983, 0.23073698580265045, -0.2767694294452667, 0.054530069231987, 0.15718571841716766, -0.11887083202600479, -0.2609153985977173, 0.3013152778148651, -0.06424793601036072, 0.19972077012062073, 0.1399381458759308, 0.39106857776641846, 0.016335271298885345, -0.22688384354114532, 0.001935380045324564, 0.06326387822628021, 0.16725805401802063, 0.22086411714553833, -0.39311325550079346, 0.10725770890712738, -0.06830256432294846, 0.11390455067157745, 0.37786194682121277, -0.16936178505420685, -0.021595828235149384, 0.06594163179397583, 0.23917080461978912, 0.2064652144908905, 0.41922727227211, 0.12418486177921295, -0.32374146580696106, -0.29872196912765503, 0.27216607332229614, 0.19889992475509644, -0.25421392917633057, -0.036441683769226074, -0.06121199578046799, -0.11379503458738327, 0.13857287168502808, -0.17098379135131836, 0.4291737675666809, -0.26999127864837646, -0.22057977318763733, 0.11957686394453049, -0.14467985928058624, -0.07156772166490555, -0.15523026883602142, 0.38672035932540894, -0.09167885035276413, 0.24249956011772156, 0.06721020489931107, 0.062237806618213654, -0.1821434646844864, -0.18781425058841705, 0.005754290614277124, 0.11867770552635193, -0.21246717870235443, 0.17979326844215393, 0.29393061995506287, -0.15380379557609558, 0.25835418701171875, 0.14352211356163025, -0.1506108045578003, -0.12067554146051407, 0.17006435990333557, 0.013038394972682, -0.23267295956611633, 0.3098335862159729, 0.007501296699047089, 0.24687205255031586, -0.032895226031541824, -0.14496952295303345, -0.1790345311164856, 0.3182585537433624, -0.2848283350467682, -0.5152543783187866, -0.26225051283836365, 0.12090536206960678, -0.01166290882974863, 0.08445082604885101, 0.16168668866157532, 0.05765415355563164, 0.44134947657585144, -0.5136594772338867, -0.10032276064157486, -0.125785231590271, -0.18552809953689575, -0.4527529180049896, 0.17063751816749573, 0.33631300926208496, -0.5569391846656799, 0.07983213663101196, -0.05076465383172035, 0.08240383118391037, 0.2173675000667572, 0.4450020492076874, -0.22985583543777466, 0.1757661998271942, -0.16548635065555573, 0.19240181148052216, 0.10959093272686005, -0.3121567368507385, -0.5411022901535034, 0.21401341259479523, -0.061286814510822296, 0.195904940366745, 0.025957100093364716, 0.290603369474411, 0.009336834773421288, 0.17176248133182526, 0.40526461601257324, 0.2492511123418808, -0.04676523059606552, 0.0787922739982605, -0.40852680802345276, -0.3879692554473877, 0.3385644555091858, 0.2016654908657074, -0.004744876176118851, -0.19889840483665466, 0.19682517647743225, 0.3221476674079895, 0.2584797143936157, -0.20357933640480042, 0.12879593670368195, 0.02183905616402626, 0.07051767408847809, -0.012946635484695435, 0.232766255736351, -0.22382989525794983, -0.4262203276157379, 0.11144658178091049, -0.34314000606536865, -0.023589856922626495, -0.3043869733810425, -0.36122846603393555, -0.5231873989105225, 0.06636946648359299, -0.1714640110731125, -0.2400970160961151, 0.11505044996738434, -0.061333492398262024, 0.09534929692745209, 0.2569483518600464, 0.10278591513633728, -0.08967635035514832, -0.20426659286022186, -0.017557431012392044, -0.4030899107456207, 0.2405165284872055, -0.30879881978034973, -0.1786496341228485, -0.022190937772393227, 0.24512866139411926, 0.32460883259773254, 0.100293830037117, 0.04317528009414673, 0.15584319829940796, 0.14677709341049194, 0.09318695962429047, -0.1324363648891449, -0.01770065724849701, 0.2272266000509262, -0.2668777108192444, 0.2040075808763504, 0.12404495477676392, 0.18690048158168793, -0.22101736068725586, 0.05095229297876358, 0.13224133849143982, -0.001999247819185257, 0.17187607288360596, -0.08223791420459747, -0.0712243840098381, 0.1570296734571457, -0.0034187734127044678, 0.3967845141887665, -0.1355205923318863, 0.25990360975265503, 0.47116056084632874, 0.043001677840948105, 0.10370771586894989, -0.0057756006717681885, 0.010362029075622559, 0.11434650421142578, -0.04716102033853531, 0.15312199294567108, 0.1461280882358551, -0.3416615426540375, -0.28515684604644775, 0.21888338029384613, -0.14423483610153198, 0.07827353477478027, 0.09371290355920792, 0.028069298714399338, 0.13984856009483337, -0.06898146867752075, -0.19510327279567719, 0.13160237669944763, -0.11788009107112885, 0.4590723514556885, 0.31006789207458496, 0.30289050936698914, -0.029343727976083755, -0.37656718492507935, 0.0593944750726223, 0.08311354368925095, 0.37936586141586304, -0.30408960580825806, 0.0794890895485878, -0.17133255302906036, -0.24345919489860535, -0.07726670801639557, -0.013045373372733593, -0.29151108860969543, -0.3173157274723053, 0.08157077431678772, 0.5144311785697937, 0.03286776319146156, 0.009985928423702717, -0.05400341749191284, -0.048035070300102234, 0.07968820631504059, -0.13089154660701752, -0.05050622671842575, -0.7057316303253174, -0.3859115242958069, 0.005147717893123627, 0.2574864625930786, -0.13397926092147827, 0.25024619698524475, -0.025403445586562157, -0.19274650514125824, -0.37669235467910767, -0.5513481497764587, -0.003672514110803604, -0.11040599644184113, 0.31784409284591675, 0.01763325184583664, 0.3957710862159729, 0.07278908044099808, -0.21528814733028412, 0.21038687229156494, 0.013057740405201912, -0.02486507035791874, 0.2813802659511566, -0.36316877603530884, 0.08441372960805893, -0.008928319439291954, -0.22848138213157654, -0.2832891643047333, -0.14893357455730438, 0.19939664006233215, 0.06301672756671906, 0.18703152239322662, 0.23829995095729828, 0.06289266049861908, 0.1012382060289383, 0.275894433259964, 0.06764605641365051, -0.37171778082847595, -0.16083253920078278, 0.3060965836048126, -0.2184314727783203, -0.2773067355155945, 0.1912306547164917, 0.0027226507663726807, 0.12418611347675323, 0.22165098786354065, -0.5899147391319275, 0.007206401787698269, 0.08572177588939667, 0.32713669538497925, 0.031963929533958435, -0.1462099254131317, 0.23672053217887878, 0.021127372980117798, 0.0012417063117027283, 0.06205924600362778, 0.005652938038110733, -0.12062380462884903, -0.1537078320980072, 0.16624154150485992, 0.11402742564678192, 0.209468275308609, 0.16471755504608154, 0.7836130857467651, 0.08677175641059875, 0.04249550402164459, 0.4263209402561188, -0.18830694258213043, 0.06352781504392624, -0.1462811529636383, -0.09664621949195862, 0.03148462250828743, -0.3452984392642975, -0.23165059089660645, 0.12315385043621063, -0.12100306898355484, -0.3868955373764038, -0.05445365235209465, -0.24508599936962128, -0.2544873058795929, -0.23949287831783295, 0.04457443952560425, -0.038282833993434906, 0.37937283515930176, 0.10441631078720093, -0.168518528342247, -0.15148478746414185, -0.4424999952316284, -0.028786197304725647, 0.14633111655712128, -0.029248014092445374, -0.03678106516599655, -0.10056605935096741, -0.20292921364307404, -0.5161781907081604, 0.415593683719635, 0.28595471382141113, 0.11058668047189713, -0.17187555134296417, 0.08782283216714859, 0.44788652658462524, -0.18531781435012817, 0.659649133682251, -0.1708528995513916, 0.04381191357970238, 0.09848164021968842, 0.18375003337860107, -0.7251460552215576, -0.01941392943263054, 0.14754429459571838, 0.13427667319774628, 0.21531295776367188, -0.11666572093963623, -0.5139329433441162, 0.09796445816755295, 0.34410008788108826, 0.37327975034713745, -0.08862753957509995, -0.17929473519325256, -0.1912723183631897, -0.37672698497772217, -0.5138630270957947, -0.16492360830307007, -0.2111014872789383, 0.2683066129684448, -0.02556084841489792, 0.031048353761434555, 0.05038503557443619, 0.20147821307182312, -0.014731548726558685, 0.28214800357818604, 0.28590503334999084, 0.016502011567354202, 0.023509949445724487, 0.09593036770820618, 0.09910409152507782, 0.34707126021385193, 0.35393238067626953, 0.28819701075553894, -0.04237326979637146, -0.08899838477373123, 0.08530090004205704, -0.06382033973932266, 0.18121036887168884, -0.15028731524944305, 0.06661606580018997, -0.0016662832349538803, -0.1978694051504135, -0.07344729453325272, -0.15724757313728333, 0.3747444152832031, -0.22128529846668243, -0.2982095181941986, -0.23898150026798248, 0.7085092067718506, 0.15898987650871277, -0.09604402631521225, 0.1231103464961052, -0.10886882245540619, -0.1373424232006073, 0.3652403950691223, 0.11770670115947723, 0.9276623725891113, -0.1522068828344345, 0.328930139541626, 0.32865509390830994, -0.039698489010334015, 0.5044323801994324, -0.28250622749328613, 0.13398826122283936, -0.48441049456596375, 0.28564584255218506, -0.010888881981372833, -0.0980817973613739, -0.15467196702957153, 0.03108092211186886, -0.18278326094150543, 0.07330619543790817, -0.22070522606372833, 0.08858847618103027, 0.010632991790771484, 0.35674065351486206, -0.00835116021335125, 0.11068589985370636, -0.08427441865205765, 0.056264184415340424, -0.31955480575561523, 0.2571132779121399, -0.2615230679512024, -0.0009583858773112297, 0.09796135127544403, -0.1563691943883896, -0.45445483922958374, 0.07854865491390228, -0.1875041425228119, 0.45333564281463623, -0.3069444000720978, -0.31887853145599365, 0.0176071859896183, 0.059825241565704346, -0.04116499423980713, -0.09378336369991302, -0.3611283004283905, 0.18094317615032196, -0.22304823994636536, -0.1647403985261917, -0.10608786344528198, 0.07032877951860428, 0.22642485797405243, -0.07054483890533447, -0.46504631638526917, 0.31040725111961365, -0.03319042548537254, -0.2690659761428833, -0.19516658782958984, 0.0056175291538238525, 0.07666308432817459, -0.19385108351707458, -0.15716663002967834, -0.2530140280723572, -0.11918757855892181, -0.13580851256847382, 0.07341419160366058, -0.12955981492996216, 0.00849176850169897, 0.06465856730937958, 0.06856419891119003, -0.3869740068912506, 0.11556006968021393, 0.47190484404563904, 0.37674644589424133, 0.16866397857666016, 0.6754419803619385, 0.26835209131240845, -0.26639318466186523, -0.013630187138915062, -0.3504728674888611, -0.3611336648464203, -0.39338091015815735, -0.07509707659482956, 0.13296614587306976, 0.46066462993621826, -0.23611849546432495, 0.10578703135251999, 0.1565130054950714, -0.10045523196458817, 0.12894639372825623, -0.46690571308135986, -0.28564777970314026, 0.3458830714225769, -0.15585210919380188, 0.21506570279598236, 0.3333626687526703, 0.13716720044612885, 0.09419409185647964, 0.281773179769516, -0.20745447278022766, 0.475482314825058, -0.08086182922124863, 0.3691471219062805, 0.10227307677268982, -0.104517363011837, -0.16643249988555908, 0.0043664248660206795, 0.027808746322989464, 0.07330748438835144, -0.08420702069997787, -0.18736889958381653, -0.05974040925502777, 0.17696456611156464, 0.059537019580602646, -0.20684681832790375, -0.12213293462991714, -0.40882551670074463, 0.058077700436115265, -0.010987086221575737, 0.35906338691711426, 0.10428420454263687, -0.07778854668140411, 0.1733732968568802, 0.18054382503032684, 0.1427162140607834, -0.2289879024028778, 0.36195245385169983, -0.13345123827457428, 0.3957298994064331, 0.2669546604156494, 0.23853766918182373, -0.09472402930259705, -0.012623317539691925, -0.2449374496936798, 0.08050371706485748, 0.11544157564640045, -0.18867820501327515, 0.18522799015045166, -0.27769070863723755, -0.2030884474515915, -0.02137899212539196, 0.016403574496507645, 0.33968207240104675, -0.14176157116889954, -0.0548667386174202, -0.06082112342119217, 0.10058657079935074, -0.2835874557495117, 0.04606181010603905, 0.4852425158023834, -0.1776815950870514, -0.2785927355289459, 0.06876310706138611, 0.5847010612487793, -0.04389357194304466, 0.16632261872291565, 0.04665294289588928, 0.23935355246067047, 0.011582553386688232, 0.08544611930847168, 0.22191627323627472, 0.10981908440589905, -0.13773976266384125, 0.05679088830947876, 0.27208468317985535, 0.1866968274116516, 0.4535914659500122, -0.16573747992515564, 0.09753947705030441, -0.1927056908607483, 0.04721400886774063, -0.14114558696746826, -0.36018499732017517, 0.15975573658943176, 0.4120800793170929, 0.1318734586238861, 0.006587915122509003, 0.09148995578289032, 0.3713226616382599, 0.6368657946586609, 0.010277939960360527, -0.048384711146354675, 0.3622549772262573, -0.1486777663230896, -0.18041646480560303, -0.29789480566978455, -0.3707219958305359, 0.028532788157463074, 0.15082107484340668, -0.24044975638389587, -0.22331048548221588, 0.2616763710975647, 0.18587999045848846, -0.32082295417785645, -0.6472074389457703, 0.5188286900520325, 0.2831639051437378, 0.13512569665908813, -0.22257710993289948, 0.21158121526241302, 0.12483983486890793, -0.07370440661907196, 0.10121598839759827, 0.28946590423583984, 0.65751051902771, 0.32112184166908264, -0.7122469544410706, 0.024168431758880615, -0.1587843894958496, 0.09642986953258514, -0.09569407999515533, -0.025560412555933, 0.1547427773475647, -0.07263565063476562, 0.21759706735610962, 0.05578373372554779, -0.03133781999349594, -0.16374576091766357, 0.4401109218597412, 0.04797115921974182, -0.2145300954580307, -0.260204017162323, -0.18675494194030762, -0.21168383955955505, 0.004794461652636528, 0.08894665539264679, -0.3720794916152954, 0.22484789788722992, 0.4339291751384735, 0.007496915757656097, 0.14166748523712158, -0.08619131147861481, 0.03826569765806198, -0.28044405579566956, 0.4323861300945282, 0.2422131597995758, 0.10944607853889465, -0.4453442692756653, -0.2630239725112915, -0.6950755715370178, 0.3619225025177002, -0.4275679588317871, -0.004695780575275421, 0.32819864153862, 0.18192586302757263, -0.20074689388275146, 0.16651365160942078, 0.07209737598896027, -0.143596813082695, -0.1851031333208084, 0.33475539088249207, -0.22432272136211395, -0.10522006452083588, -0.12880386412143707, -0.2936495542526245, -0.25168824195861816, -0.3236354887485504, 0.21473664045333862, -0.19497977197170258, -0.04772339388728142, -0.2938644289970398, -0.14435803890228271, 0.1363731473684311, 0.1835705041885376, 0.5083595514297485, 0.08552888035774231, 0.6090761423110962, 0.07915817946195602, -0.03097018040716648, -0.20012545585632324, -0.1561926156282425, 0.17803461849689484, 0.2961328625679016, 0.04260917752981186, 0.11947676539421082, -0.09500981122255325, -0.1640063226222992, -0.1698608547449112, 0.5059784650802612, -0.018787428736686707, 0.07610147446393967, -0.0015462599694728851, -0.22567501664161682, 0.01262955367565155, 0.3037436604499817, -0.1414281278848648, 0.1818353831768036, -0.06938454508781433, 0.3124791979789734, -0.29226985573768616, -0.4456370174884796, 0.4373096227645874, -0.42842966318130493, -0.37101706862449646, 0.044043827801942825, 0.12372610718011856, -0.19838231801986694, -0.10032108426094055, -0.3580925464630127, 0.14545592665672302, 0.4109819829463959, -0.016089797019958496, -0.13795194029808044, -0.11225652694702148, -0.08490285277366638, -0.10420818626880646, -0.20671053230762482, 0.03155367448925972, 0.04200182855129242, -0.15446506440639496, -0.3315706253051758, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2139
TypeError when using save_to_disk in a dataset loaded with ReadInstruction split
Hi ! I think this has been fixed recently on `master`. Can you try again by installing `datasets` from `master` ? ``` pip install git+https://github.com/huggingface/datasets.git ```
Hi, Loading a dataset with `load_dataset` using a split defined via `ReadInstruction` and then saving it to disk results in the following error: `TypeError: Object of type ReadInstruction is not JSON serializable`. Here is the minimal reproducible example: ```python from datasets import load_dataset from datasets import ReadInstruction data_1 = load_dataset( "wikiann", "en", split="validation", ) data_1.save_to_disk("temporary_path_1") print("Save with regular split works.") data_2 = load_dataset( "wikiann", "en", split=ReadInstruction("validation", to=50, unit="%"), ) data_2.save_to_disk("temporary_path_2") ``` and the corresponding output: ``` Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9) Save with regular split works. Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9) Traceback (most recent call last): File "bug.py", line 20, in <module> data_2.save_to_disk("temporary_path_2") File "/xxxxx/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 645, in save_to_disk json.dump(state, state_file, indent=2, sort_keys=True) File "/usr/lib/python3.7/json/__init__.py", line 179, in dump for chunk in iterable: File "/usr/lib/python3.7/json/encoder.py", line 431, in _iterencode yield from _iterencode_dict(o, _current_indent_level) File "/usr/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict yield from chunks File "/usr/lib/python3.7/json/encoder.py", line 438, in _iterencode o = _default(o) File "/usr/lib/python3.7/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type ReadInstruction is not JSON serializable ``` Let me know if there is some misuse from my end. Thanks in advance.
26
TypeError when using save_to_disk in a dataset loaded with ReadInstruction split Hi, Loading a dataset with `load_dataset` using a split defined via `ReadInstruction` and then saving it to disk results in the following error: `TypeError: Object of type ReadInstruction is not JSON serializable`. Here is the minimal reproducible example: ```python from datasets import load_dataset from datasets import ReadInstruction data_1 = load_dataset( "wikiann", "en", split="validation", ) data_1.save_to_disk("temporary_path_1") print("Save with regular split works.") data_2 = load_dataset( "wikiann", "en", split=ReadInstruction("validation", to=50, unit="%"), ) data_2.save_to_disk("temporary_path_2") ``` and the corresponding output: ``` Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9) Save with regular split works. Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9) Traceback (most recent call last): File "bug.py", line 20, in <module> data_2.save_to_disk("temporary_path_2") File "/xxxxx/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 645, in save_to_disk json.dump(state, state_file, indent=2, sort_keys=True) File "/usr/lib/python3.7/json/__init__.py", line 179, in dump for chunk in iterable: File "/usr/lib/python3.7/json/encoder.py", line 431, in _iterencode yield from _iterencode_dict(o, _current_indent_level) File "/usr/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict yield from chunks File "/usr/lib/python3.7/json/encoder.py", line 438, in _iterencode o = _default(o) File "/usr/lib/python3.7/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type ReadInstruction is not JSON serializable ``` Let me know if there is some misuse from my end. Thanks in advance. Hi ! I think this has been fixed recently on `master`. Can you try again by installing `datasets` from `master` ? ``` pip install git+https://github.com/huggingface/datasets.git ```
[ -0.1317063868045807, 0.2105596661567688, 0.043805260211229324, 0.39009201526641846, 0.3082848787307739, 0.25420820713043213, 0.4115683138370514, 0.21830546855926514, 0.15596695244312286, 0.0927029401063919, -0.18100275099277496, 0.38218122720718384, -0.18318778276443481, 0.46920594573020935, -0.3343833386898041, -0.226185142993927, 0.13148152828216553, 0.03249350190162659, 0.024783600121736526, 0.1516534984111786, -0.29177406430244446, 0.2401537448167801, -0.20969940721988678, -0.07223133742809296, -0.10239830613136292, -0.22373294830322266, -0.09009352326393127, 0.17841622233390808, -0.04790199548006058, -0.27007579803466797, 0.4981567859649658, -0.08637171983718872, 0.24845555424690247, 0.4595007598400116, -0.00011933254427276552, 0.24497397243976593, 0.27526307106018066, -0.12175513058900833, -0.4869106709957123, -0.14428241550922394, -0.11240723729133606, -0.3307708501815796, 0.22896002233028412, -0.2849003076553345, 0.2563340961933136, 0.03243119269609451, -0.09672053158283234, -0.2834964990615845, 0.5513246059417725, -0.14047664403915405, 0.131099671125412, 0.22010013461112976, 0.2116706222295761, -0.07647792994976044, -0.019652262330055237, 0.8181030750274658, -0.31167203187942505, 0.1208759993314743, -0.1681932806968689, 0.159480482339859, 0.18606048822402954, 0.13977506756782532, 0.07755107432603836, -0.1289096176624298, 0.10891024768352509, -0.08395660668611526, 0.04140614718198776, -0.16379310190677643, -0.07210923731327057, 0.03596000373363495, 0.6240738034248352, -0.23255935311317444, -0.5413184762001038, -0.5269168019294739, -0.09889286011457443, 0.10373151302337646, 0.18832196295261383, 0.05157727003097534, 0.10239388048648834, 0.11593960225582123, -0.07491303235292435, -0.18885374069213867, -0.1452779918909073, -0.055688776075839996, -0.0028695203363895416, -0.32649707794189453, -0.22336427867412567, 0.3309183716773987, 0.20391643047332764, -0.09455078840255737, 0.15492597222328186, -0.2039528340101242, -0.09271043539047241, -0.009542996995151043, -0.2591284215450287, -0.2582910656929016, -0.463026225566864, -0.11825830489397049, 0.05887739360332489, 0.23369751870632172, 0.10811275988817215, -0.13321128487586975, -0.22151634097099304, 0.1171836331486702, 0.6883972883224487, 0.19973841309547424, 0.14894971251487732, 0.4022561013698578, 0.02915777824819088, 0.1394938826560974, 0.005476590245962143, -0.08564865589141846, 0.16686347126960754, -0.0762731283903122, 0.3958079218864441, 0.0007775686681270599, 0.2863454818725586, -0.1103605106472969, -0.508463442325592, -0.023641109466552734, -0.36584728956222534, -0.20452722907066345, -0.09957627207040787, 0.11259213089942932, 0.29940855503082275, 0.2819698750972748, 0.17369291186332703, 0.44088810682296753, -0.0008397605270147324, -0.09512149542570114, -0.07271968573331833, -0.029254313558340073, 0.05498126521706581, 0.2533734142780304, 0.019507277756929398, -0.02734404429793358, 0.05280475318431854, 0.006748448126018047, -0.471418559551239, -0.21508722007274628, 0.1913159042596817, -0.26463863253593445, 0.0638190358877182, 0.2851463556289673, 0.2803843915462494, 0.15334732830524445, 0.1773775964975357, -0.3570285439491272, -0.31067365407943726, 0.12048141658306122, -0.09650091081857681, -0.048885904252529144, -0.04370066523551941, 0.09476493299007416, -0.12679657340049744, 0.06591333448886871, -0.5947529077529907, -0.018763341009616852, 0.4436033070087433, -0.26359823346138, -0.0719168409705162, -0.2288513034582138, -0.011602822691202164, -0.3403196334838867, 0.013840528205037117, 0.4004659652709961, -0.3379039168357849, -0.06816816329956055, -0.21696247160434723, -0.23341992497444153, 0.1664639413356781, 0.4936624765396118, -0.08353380858898163, 0.5169416666030884, -0.1955944448709488, 0.3982066512107849, 0.1584652066230774, -0.23795540630817413, -0.20002441108226776, 0.5022706389427185, -0.10377670079469681, 0.17348866164684296, -0.09525618702173233, -0.024152377620339394, 0.40803542733192444, -0.17352543771266937, 0.1406642198562622, 0.08123461157083511, -0.04054795950651169, -0.07774800807237625, -0.19406142830848694, -0.25553005933761597, 0.1296398937702179, 0.01264331117272377, -0.10063275694847107, 0.1342630833387375, 0.12605752050876617, 0.1880764216184616, 0.3111829161643982, -0.054151665419340134, 0.24933408200740814, 0.305450975894928, 0.11779819428920746, -0.135288268327713, -0.10753671079874039, -0.022127896547317505, -0.3029603958129883, -0.004443332552909851, 0.278095006942749, -0.2112734019756317, -0.09349080920219421, -0.17171142995357513, -0.259827584028244, 0.23033519089221954, -0.27634209394454956, 0.2911278307437897, 0.05297960340976715, 0.12080591917037964, -0.024832643568515778, 0.24894894659519196, -0.09195712208747864, 0.18968656659126282, -0.0352419912815094, 0.12810660898685455, -0.43894317746162415, 0.42382797598838806, -0.040912263095378876, -0.34513670206069946, 0.03026118129491806, 0.056988425552845, 0.26877206563949585, -0.13443408906459808, -0.004310150630772114, 0.3361165225505829, 0.23677942156791687, 0.13005299866199493, -0.22046908736228943, -0.05988192558288574, 0.2161560207605362, -0.07198948413133621, -0.11923340708017349, 0.21501651406288147, 0.3863374888896942, -0.17848902940750122, -0.18868035078048706, 0.304178386926651, -0.07058678567409515, 0.1873157024383545, 0.006308097392320633, 0.11262308806180954, 0.024100715294480324, -0.0023698993027210236, -0.0940752923488617, -0.40812593698501587, 0.014750394970178604, 0.02371533215045929, -0.11326929926872253, -0.2551978826522827, -0.09951254725456238, 0.11171089112758636, 0.4493328332901001, -0.26756155490875244, 0.2195771038532257, 0.018268190324306488, -0.1571047306060791, -0.002931429073214531, -0.05437895655632019, 0.46117499470710754, 0.5188758969306946, -0.07285252213478088, 0.21655474603176117, -0.166391983628273, 0.05609540268778801, -0.04090803116559982, 0.1319316327571869, 0.15092328190803528, 0.31511637568473816, 0.2516276240348816, 0.054951030761003494, 0.058858226984739304, -0.08039719611406326, 0.149933859705925, -0.0055815307423472404, 0.1412249058485031, -0.4040681719779968, 0.15118105709552765, -0.212968647480011, 0.3331798017024994, -0.1819787621498108, -0.22574973106384277, 0.0959368497133255, -0.6485624313354492, -0.4150823950767517, 0.48973724246025085, -0.18613401055335999, -0.03980723023414612, 0.006706681102514267, -0.04270033538341522, -0.016535695642232895, -0.06747782230377197, -0.12469468265771866, 0.11294201016426086, -0.2868056893348694, -0.07292412221431732, 0.2463182955980301, -0.20354227721691132, 0.22068369388580322, -0.1972501277923584, 0.012616908177733421, -0.20525693893432617, 0.03682485222816467, 0.11741812527179718, -0.15627717971801758, 0.17732183635234833, 0.1652359664440155, 0.2820572257041931, 0.02429044246673584, -0.27257728576660156, 0.09645049273967743, 0.1477794051170349, -0.18117590248584747, 0.11335662007331848, -0.002524647396057844, -0.05189506337046623, -0.12572652101516724, -0.15894588828086853, -0.3489077687263489, -0.18714283406734467, 0.5054351091384888, -0.12415792047977448, -0.25548410415649414, -0.14156177639961243, 0.11808252334594727, 0.13911834359169006, 0.28090834617614746, -0.29979023337364197, -0.18714207410812378, -0.12920190393924713, 0.3373071253299713, -0.07422076910734177, -0.14974349737167358, 0.1376180201768875, 0.04738648980855942, -0.21087411046028137, -0.025652717798948288, -0.43381786346435547, 0.2235618531703949, -0.1067928820848465, 0.0417158342897892, -0.185878723859787, 0.00720999576151371, 0.21493025124073029, 0.16702231764793396, 0.1195029467344284, -0.020179690793156624, -0.4066404104232788, 0.2743184268474579, -0.1029173955321312, 0.2617073059082031, -0.31793978810310364, 0.3655719459056854, 0.2267264425754547, -0.09362787008285522, 0.104267418384552, 0.1052587479352951, 0.4074469208717346, 0.40231388807296753, 0.22925303876399994, -0.27959123253822327, -0.04656808823347092, -0.03054361417889595, -0.4651511609554291, -0.3055945634841919, -0.07882796227931976, 0.005860255099833012, -0.4329887926578522, 0.0954168438911438, -0.41696271300315857, -0.07985083758831024, -0.4240087568759918, -0.06494569033384323, 0.04114128649234772, 0.26448747515678406, -0.12934023141860962, 0.3300025463104248, 0.12131501734256744, 0.26865097880363464, 0.08541738986968994, 0.442659854888916, 0.3040846586227417, -0.02259369194507599, -0.6052624583244324, -0.39878979325294495, -0.1494775116443634, 0.08517153561115265, -0.0030239017214626074, 0.3307611346244812, -0.11282026767730713, -0.1580200344324112, -0.06857307255268097, -0.0389399491250515, 0.5201875567436218, -0.05124053359031677, 0.0012258552014827728, 0.191623255610466, 0.04263632744550705, -0.37068551778793335, -0.08458571135997772, 0.12764546275138855, 0.26115643978118896, 0.09962910413742065, 0.7260845899581909, -0.28696727752685547, 0.084833063185215, 0.09860160946846008, 0.3608519732952118, -0.2686014771461487, -0.26066118478775024, 0.07621744275093079, -0.6618028283119202, -0.47345438599586487, -0.06540452688932419, 0.08913860470056534, 0.0840260237455368, 0.04456721991300583, 0.06137921288609505, -0.2863180637359619, -0.19745582342147827, -0.030964359641075134, 0.009402237832546234, 0.2691715657711029, -0.19097720086574554, 0.17440834641456604, 0.27347081899642944, 0.07857327908277512, 0.4405231177806854, 0.43885377049446106, -0.014715693891048431, -0.35255491733551025, 0.15238744020462036, -0.07161601632833481, 0.01876247674226761, 0.1555837243795395, 0.05087793245911598, -0.08212652057409286, 0.08837410062551498, -0.23655478656291962, -0.4633459746837616, -0.14884509146213531, 0.09042468667030334, -0.33749398589134216, -0.6183343529701233, -0.22286252677440643, 0.38307079672813416, 0.00043190643191337585, 0.09133593738079071, -0.0558941587805748, 0.2712641954421997, -0.2566215991973877, 0.44746607542037964, 0.12231270968914032, 0.6830675601959229, 0.0007452070713043213, 0.08545704185962677, 0.4916382133960724, -0.6043204069137573, -0.006089046597480774, 0.16411757469177246, -0.06000380963087082, -0.426559716463089, 0.19307231903076172, -0.08067990839481354, -0.06819789856672287, 0.1394302248954773, -0.023450851440429688, -0.35112375020980835, -0.11519268900156021, -0.3808242678642273, -0.20524755120277405, -0.1649700552225113, 0.13929666578769684, -0.49813318252563477, -0.3532392978668213, -0.12834490835666656, 0.1440776139497757, 0.009387563914060593, -0.019494440406560898, 0.14073994755744934, -0.3155277967453003, -0.02345232665538788, -0.09665694832801819, -0.39058393239974976, 0.02471233531832695, -0.07572916895151138, 0.34666240215301514, -0.17781972885131836, -0.17017638683319092, 0.28363561630249023, 0.2573934495449066, 0.5144733190536499, 0.0030208975076675415, -0.02011762745678425, -0.13840098679065704, -0.279415100812912, 0.0727895200252533, -0.01784771867096424, -0.23572005331516266, 0.4342162311077118, 0.1702369749546051, 0.019597448408603668, -0.2134181559085846, -0.14934323728084564, -0.12921005487442017, -0.1325332671403885, 0.054738178849220276, -0.2243581861257553, -0.5140143632888794, -0.2109903246164322, -0.11337012052536011, 0.038936879485845566, -0.30932942032814026, 0.01280559878796339, 0.120106041431427, -0.02748243883252144, 0.1266259253025055, -0.3678092956542969, -0.04749433696269989, 0.004526974633336067, 0.3145177364349365, 0.2062479555606842, 0.26346737146377563, 0.6696693897247314, -0.058399748057127, -0.12124235928058624, -0.23911553621292114, 0.7491883635520935, 0.267049103975296, -0.033200182020664215, 0.3828853666782379, -0.35667741298675537, 0.07910767197608948, -0.17618784308433533, 0.27472391724586487, 0.21441014111042023, -0.3028140664100647, -0.04599204286932945, -0.40615832805633545, -0.3587571084499359, 0.2031574547290802, 0.09739041328430176, 0.22660130262374878, 0.16823479533195496, 0.16134117543697357, -0.2150631994009018, -0.08410409092903137, -0.1487046629190445, -0.005113447085022926, -0.23405401408672333, -0.01382305845618248, -0.007967200130224228, -0.06169968098402023, 0.20666351914405823, -0.12188315391540527, 0.05263777822256088, 0.2026417851448059, 0.070156991481781, -0.04612116143107414, -0.17655830085277557, 0.13287347555160522, 0.11065799742937088, 0.0928320363163948, -0.1284506916999817, -0.20623089373111725, 0.07308357954025269, -0.13890543580055237, -0.12026584148406982, 0.2732166051864624, -0.08645540475845337, 0.1101708635687828, -0.011361140757799149, 0.3906763792037964, -0.14003440737724304, 0.11568187922239304, -0.018472187221050262, 0.19074729084968567, -0.02510657161474228, 0.2376376986503601, 0.05829845368862152, 0.030797280371189117, -0.39828547835350037, 0.01572355628013611, 0.3234843611717224, 0.3239726126194, 0.2735625207424164, -0.5291038751602173, 0.013644859194755554, -0.1279325783252716, 0.1995222121477127, 0.3046536445617676, -0.23593328893184662, -0.03232911601662636, -0.0842192992568016, 0.05975065380334854, 0.23790788650512695, -0.12449760735034943, 0.3456403315067291, -0.37017622590065, -0.2507575750350952, 0.19459262490272522, -0.0075360313057899475, 0.2263043224811554, -0.5040642023086548, 0.049018122255802155, 0.5732995867729187, 0.024519557133316994, 0.2739388644695282, 0.5586569905281067, -0.29723799228668213, 0.2062019258737564, -0.05512923747301102, -0.030328825116157532, 0.29929882287979126, 0.14851588010787964, -0.07369352132081985, 0.3769676387310028, 0.20461004972457886, 0.12151000648736954, 0.053081315010786057, -0.1914530247449875, -0.0007973574101924896, -0.054535359144210815, 0.10007600486278534, 0.38280537724494934, 0.15550681948661804, -0.03814663738012314, -0.6030407547950745, -0.1078900620341301, -0.17496411502361298, 0.07330875098705292, -0.22036513686180115, -0.09368515014648438, -0.08036316931247711, -0.24214160442352295, -0.050313256680965424, -0.017262136563658714, -0.17939826846122742, -0.14673607051372528, 0.24494466185569763, -0.052129268646240234, 0.09559017419815063, -0.11967931687831879, 0.054479315876960754, 0.15700024366378784, 0.07200238108634949, -0.3394526243209839, -0.11504992097616196, 0.07633745670318604, -0.02315548062324524, -0.051581982523202896, 0.026263060048222542, 0.46118223667144775, 0.22309643030166626, -0.2993928790092468, -0.16878041625022888, -0.04567255452275276, -0.08938714861869812, 0.1947801262140274, 0.16581140458583832, -0.216956228017807, 0.156227707862854, 0.5898364186286926, 0.05468893051147461, 0.0335579439997673, 0.21260511875152588, 0.20618712902069092, 0.16795794665813446, -0.13907591998577118, 0.373916894197464, -0.4525507092475891, -0.10579564422369003, 0.08173239976167679, -0.023393407464027405, -0.1923724114894867, -0.06865793466567993, 0.2831575274467468, -0.08895734697580338, 0.267744243144989, 0.10796854645013809, 0.030073076486587524, 0.00631316564977169, 0.4416626989841461, 0.20649932324886322, -0.35104694962501526, -0.1622363179922104, 0.1728041023015976, -0.14548757672309875, -0.1226273700594902, -0.018130522221326828, 0.010647768154740334, -0.007123196497559547, 0.1739092320203781, 0.16654033958911896, 0.14285540580749512, 0.026542678475379944, 0.015550754964351654, 0.14114083349704742, 0.44244182109832764, 0.017794184386730194, -0.33758512139320374, 0.5128380656242371, -0.1091880351305008, -0.013015980832278728, -0.420024573802948, 0.23378337919712067, 0.36123552918434143, -0.004031345248222351, 0.019701162353157997, -0.03657315671443939, -0.03311731666326523, 0.006479449570178986, 0.16038808226585388, 0.440967321395874, 0.23135514557361603, -0.0048696137964725494, -0.3268093466758728, 0.08472004532814026, -0.12124493718147278, -0.1091056689620018, 0.1739548146724701, -0.11566078662872314, 0.7781209945678711, -0.37919047474861145, 0.4145936369895935, -0.2927050292491913, -0.21533650159835815, -0.04633576050400734, 0.17837761342525482, -0.4962356686592102, 0.28537553548812866, -0.07748310267925262, 0.043246448040008545, 0.34458258748054504, 0.17972815036773682, 0.08497913926839828, 0.3774321675300598, -0.1755814403295517, -0.07922880351543427, 0.347864031791687, -0.0715024396777153, -0.34670186042785645, 0.41059061884880066, -0.15642353892326355, 0.3496384620666504, 0.24994449317455292, -0.693073570728302, -0.06690394878387451, 0.38437700271606445, -0.2654726505279541, -0.10024979710578918, 0.0628129094839096, 0.2828068733215332, -0.18782639503479004, 0.08147920668125153, 0.4868473410606384, 0.06446106731891632, -0.2565096616744995, 0.30858758091926575, -0.09355829656124115 ]
https://github.com/huggingface/datasets/issues/2135
en language data from MLQA dataset is missing
Hi ! Indeed only the languages of the `translate-train` data are included... I can't find a link to download the english train set on https://github.com/facebookresearch/MLQA though, do you know where we can download it ?
Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue.
35
en language data from MLQA dataset is missing Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue. Hi ! Indeed only the languages of the `translate-train` data are included... I can't find a link to download the english train set on https://github.com/facebookresearch/MLQA though, do you know where we can download it ?
[ -0.03446251153945923, 0.20468300580978394, -0.2271871715784073, 0.23080524802207947, 0.05782372131943703, 0.2997927963733673, -0.0395333357155323, -0.04611620679497719, -0.14981390535831451, 0.12646564841270447, 0.19589245319366455, -0.14981389045715332, 0.0673910528421402, 0.4813951253890991, 0.22510406374931335, -0.2650110125541687, -0.00978592038154602, -0.07944187521934509, -0.13427388668060303, -0.46653681993484497, 0.019814014434814453, 0.5020955204963684, -0.09568024426698685, -0.03146810829639435, -0.173967644572258, 0.17434775829315186, -0.35776975750923157, 0.09119821339845657, -0.14589372277259827, 0.05717780441045761, 0.1609996110200882, -0.325917512178421, 0.2097356617450714, -0.16472893953323364, -0.0001091283920686692, 0.04888460040092468, 0.02143177017569542, -0.274850994348526, -0.08664092421531677, -0.3655617833137512, -0.11914341896772385, -0.29563793540000916, -0.1769668459892273, -0.12987066805362701, -0.18384993076324463, -0.07363458722829819, 0.15599983930587769, -0.2765040695667267, 0.11904378980398178, 0.3667837679386139, 0.17888841032981873, -0.12546241283416748, 0.13276812434196472, -0.22150203585624695, 0.09606326371431351, -0.0015865638852119446, 0.12209906429052353, 0.08061084151268005, 0.3105129599571228, 0.042635828256607056, 0.16545835137367249, 0.5170336961746216, 0.3657611906528473, -0.19518180191516876, -0.27433618903160095, 0.0918552428483963, 0.43870508670806885, -0.6130286455154419, 0.24591121077537537, 0.2323864996433258, 0.39630308747291565, 0.06426048278808594, -0.2204282432794571, -0.0049440450966358185, 0.23528912663459778, 0.17124827206134796, 0.09739384055137634, 0.47045594453811646, -0.3319165110588074, 0.27809152007102966, -0.10697131603956223, -0.5191505551338196, -0.09311601519584656, 0.27022475004196167, -0.17118047177791595, 0.2614017724990845, 0.04094701260328293, -0.06822750717401505, -0.09803162515163422, 0.055103711783885956, 0.16833055019378662, 0.1132870763540268, -0.20436492562294006, 0.2074112892150879, -0.05962898209691048, -0.06944356113672256, -0.10718221217393875, -0.06284799426794052, 0.044222183525562286, -0.3017549514770508, -0.4466918110847473, 0.11759567260742188, -0.0982549786567688, 0.07661120593547821, 0.27567723393440247, -0.004286043345928192, 0.04518720507621765, -0.1117994487285614, -0.018272779881954193, -0.42218995094299316, -0.01672140322625637, -0.11264435201883316, -0.2181791067123413, 0.05490586534142494, -0.6116182804107666, 0.20762670040130615, -0.18562465906143188, -0.37175917625427246, -0.22710128128528595, -0.01784703880548477, -0.5481891632080078, -0.13297021389007568, -0.08423280715942383, 0.17080676555633545, 0.1391262263059616, 0.10973022878170013, 0.03871878981590271, 0.08760517835617065, -0.21270810067653656, -0.5654237270355225, -0.1886693686246872, 0.2166593223810196, -0.20044901967048645, -0.2025628238916397, -0.006059583276510239, 0.23429149389266968, 0.45918288826942444, -0.19830287992954254, 0.03679905831813812, 0.008918557316064835, 0.14237914979457855, -0.1521300971508026, 0.16307082772254944, 0.12730810046195984, 0.28198739886283875, 0.18407727777957916, -0.0005699358880519867, -0.21149219572544098, 0.014719665050506592, 0.21874654293060303, -0.37075552344322205, -0.1261291652917862, -0.3416650593280792, 0.20810247957706451, -0.015713822096586227, -0.2832201421260834, 0.22687214612960815, 0.7006775736808777, -0.051559336483478546, 0.017304450273513794, 0.20353813469409943, 0.03130035847425461, -0.0789007693529129, 0.08567702770233154, 0.20003516972064972, 0.2012118697166443, -0.6012542247772217, -0.4723476469516754, 0.13244353234767914, -0.14962637424468994, 0.21627289056777954, 0.3347104787826538, -0.30813756585121155, -0.005615688860416412, -0.28515735268592834, 0.1473451554775238, 0.3123137056827545, -0.09088367223739624, -0.3621457517147064, 0.07116232067346573, 0.03785136342048645, -0.18754510581493378, -0.16378188133239746, 0.25937825441360474, -0.011839991435408592, 0.11177860200405121, 0.26107561588287354, 0.4686022400856018, -0.12230373919010162, -0.18983036279678345, -0.10539267957210541, -0.22794122993946075, 0.6223265528678894, 0.22687961161136627, 0.21264053881168365, -0.12301894277334213, 0.10400762408971786, 0.11117170006036758, 0.2606932818889618, -0.079506054520607, 0.14332032203674316, 0.5985336303710938, -0.10206267237663269, 0.02159055694937706, 0.25365516543388367, -0.00019618868827819824, 0.018805265426635742, -0.013275837525725365, -0.6309722661972046, 0.20353272557258606, 0.009584836661815643, 0.021999217569828033, -0.043228112161159515, -0.10585250705480576, -0.19667677581310272, -0.2617293894290924, 0.13339096307754517, -0.29657840728759766, -0.07846333086490631, 0.4289409816265106, 0.049519363790750504, -0.008837653324007988, -0.24005736410617828, -0.13176067173480988, -0.05921114608645439, 0.4036957919597626, -0.2992989718914032, 0.04925154522061348, 0.22097551822662354, 0.4827614724636078, 0.0691576898097992, -0.0927278995513916, -0.05420964956283569, -0.09003571420907974, -0.018683698028326035, 0.07580466568470001, 0.2721100449562073, 0.1493702232837677, 0.5323988199234009, -0.26136156916618347, 0.20886017382144928, 0.1365317553281784, -0.040051184594631195, 0.0231650248169899, -0.0972544327378273, 0.2465905100107193, 0.3171749711036682, -0.02194209396839142, 0.05350853502750397, 0.3447536528110504, 0.33261963725090027, -0.0062589384615421295, -0.012357009574770927, -0.30737030506134033, 0.32016849517822266, -0.07266515493392944, 0.13652588427066803, -0.07575944066047668, -0.14694003760814667, 0.2850208878517151, 0.73870450258255, 0.12406580150127411, 0.20985588431358337, 0.08495762199163437, -0.42183980345726013, -0.20902791619300842, 0.29715457558631897, 0.04604380950331688, 0.07492975890636444, 0.18774841725826263, 0.3617950975894928, -0.07348298281431198, 0.4398927092552185, -0.1401202231645584, 0.2000078558921814, 0.15945406258106232, 0.1363021582365036, -0.2569347620010376, 0.06589304655790329, -0.005434717051684856, -0.4006046950817108, 0.15304690599441528, 0.2428847849369049, -0.01819312758743763, 0.12396730482578278, 0.13711397349834442, -0.3840939700603485, -0.8181414008140564, -0.12101952731609344, -0.32854223251342773, -0.2786877155303955, -0.16065357625484467, 0.17093679308891296, -0.7855654954910278, 0.004288647323846817, 0.24373330175876617, 0.3373643457889557, -0.014211192727088928, -0.11619502305984497, 0.1168830469250679, -0.07560387253761292, -0.12454691529273987, -0.4825124740600586, 0.17622783780097961, -0.02893233671784401, 0.10551411658525467, 0.0067068468779325485, -0.16091206669807434, 0.06973462551832199, -0.23605871200561523, -0.4895126521587372, 0.1627565622329712, -0.03367532789707184, 0.14492912590503693, -0.07222691178321838, -0.002054564654827118, -0.45956873893737793, 0.05614849925041199, 0.0869886502623558, 0.13139265775680542, -0.35895299911499023, -0.026495514437556267, -0.13337616622447968, -0.05395834892988205, -0.029646892100572586, -0.4481564462184906, -0.7942321300506592, 0.04710007086396217, -0.025444768369197845, 0.02357630431652069, 0.04552227258682251, -0.09602203965187073, -0.18118171393871307, -0.0012226495891809464, -0.08624986559152603, -0.05885504186153412, -0.41343605518341064, -0.18089862167835236, 0.19291383028030396, -0.08928903937339783, -0.4240903854370117, 0.33339840173721313, 0.05751372128725052, 0.16159017384052277, -0.22903351485729218, -0.49556732177734375, -0.250112384557724, 0.10384953767061234, 0.07569965720176697, -0.27342119812965393, -0.049129731953144073, 0.31737005710601807, -0.14974647760391235, -0.012167250737547874, -0.025745753198862076, -0.059624090790748596, 0.02757284790277481, 0.25830212235450745, 0.4377896189689636, -0.48496362566947937, 0.3810780644416809, 0.2894517779350281, 0.3349756598472595, 0.3354420065879822, 0.19287824630737305, 0.18511366844177246, 0.004976533353328705, 0.20483362674713135, 0.0775877833366394, -0.09396299719810486, 0.46271073818206787, 0.01535026729106903, 0.06789615005254745, 0.24502615630626678, -0.031082388013601303, -0.25952157378196716, -0.12820474803447723, -0.14487406611442566, -0.15777531266212463, -0.11850441992282867, 0.0035323407500982285, -0.3705379068851471, 0.44628041982650757, 0.2788814306259155, 0.28355392813682556, 0.23345977067947388, -0.004040825180709362, 0.31086063385009766, 0.05819351598620415, 0.10923261940479279, 0.14898453652858734, -0.5356494188308716, -0.67747563123703, -0.413774311542511, 0.0178145170211792, -0.04602045193314552, 0.34925633668899536, -0.20226894319057465, 0.3159268796443939, 0.12829840183258057, 0.06922423094511032, 0.6536633968353271, -0.1781608760356903, -0.37059181928634644, -0.06758526712656021, 0.03206180781126022, 0.025908539071679115, 0.021063391119241714, -0.06735113263130188, 0.31735050678253174, 0.504927933216095, -0.12715275585651398, -0.07509507238864899, -0.12993131577968597, 0.18972869217395782, 0.2722422480583191, -0.3018900454044342, 0.2110723853111267, -0.05285074561834335, -0.24360617995262146, -0.19801141321659088, -0.0069028958678245544, 0.10674092918634415, -0.007973084226250648, 0.06402330845594406, -0.008701205253601074, 0.24982988834381104, 0.23997926712036133, -0.09099391102790833, 0.02967175841331482, 0.2414083182811737, 0.24059364199638367, -0.006944332271814346, 0.11012014746665955, 0.16755080223083496, -0.04035021364688873, 0.3628755211830139, 0.11350101232528687, -0.33945226669311523, 0.27006494998931885, -0.26517295837402344, 0.38730573654174805, 0.14734908938407898, 0.07507362216711044, -0.020373113453388214, 0.5720806121826172, -0.3262431025505066, 0.03569258749485016, 0.0072494992054998875, 0.18779356777668, 0.11633190512657166, -0.19719043374061584, -0.3613515794277191, 0.10511060804128647, -0.16185694932937622, 0.11211845278739929, -0.22878104448318481, -0.015962816774845123, -0.19224028289318085, 0.4723278284072876, 0.11499923467636108, 0.8131115436553955, 0.17291785776615143, 0.2653675377368927, -0.21287912130355835, -0.14446333050727844, 0.18436893820762634, -0.2364000380039215, 0.1201043501496315, -0.07905889302492142, 0.008876864798367023, -0.20423546433448792, 0.09082762897014618, -0.04666702449321747, 0.20554287731647491, -0.05216226726770401, 0.3298265039920807, 0.38073664903640747, -0.3269473612308502, 0.18668250739574432, 0.06817924976348877, 0.04906819760799408, -0.1569548398256302, -0.13940179347991943, 0.12333652377128601, 0.10789255797863007, 0.4474699795246124, -0.15181517601013184, -0.19503241777420044, 0.04744695499539375, -0.010122783482074738, -0.4358280301094055, 0.03424037620425224, -0.6181280612945557, 0.26513296365737915, -0.20250888168811798, -0.45142340660095215, 0.19854646921157837, 0.2820284366607666, 0.36244410276412964, 0.2047533541917801, -0.32485878467559814, 0.565893828868866, 0.2798182964324951, -0.08650107681751251, 0.37339767813682556, -0.0790586918592453, 0.19026026129722595, -0.26977813243865967, -0.24345454573631287, 0.23967084288597107, -0.2098742127418518, 0.11433285474777222, -0.6147156953811646, 0.09833283722400665, 0.09748252481222153, 0.20140056312084198, -0.06436130404472351, 0.3105175793170929, 0.01407121866941452, -0.21110105514526367, 0.11878266930580139, 0.3033914566040039, -0.04536806046962738, 0.09301218390464783, 0.048072315752506256, -0.0674218013882637, -0.27744385600090027, 0.34926608204841614, 0.21167078614234924, -0.15945488214492798, 0.5841690301895142, 0.16498959064483643, 0.013045083731412888, -0.17733365297317505, 0.10236182063817978, 0.06914138793945312, -0.18566825985908508, -0.23988524079322815, 0.052186597138643265, 0.1877986341714859, -0.19636520743370056, 0.12875935435295105, -0.009637899696826935, -0.2768809497356415, -0.13185492157936096, -0.4883033037185669, -0.03309514746069908, 0.2231067270040512, 0.011503219604492188, -0.24655859172344208, 0.20719438791275024, 0.11461824178695679, 0.173796609044075, -0.017727917060256004, -0.2826579213142395, 0.0990179032087326, -0.34079045057296753, 0.117091104388237, -0.3109860122203827, -0.027356795966625214, 0.21079868078231812, 0.009888172149658203, 0.04109983891248703, -0.16705431044101715, 0.05565647408366203, -0.1659138798713684, 0.09442874789237976, 0.04423359036445618, 0.10193789005279541, 0.21099711954593658, 0.05323905125260353, -0.252596914768219, -0.1904028356075287, 0.26199766993522644, -0.06741683185100555, -0.027933422476053238, 0.037168122828006744, 0.2888009250164032, -0.09736977517604828, -0.0009419992566108704, -0.24738821387290955, 0.066141277551651, 0.23500292003154755, 0.14541885256767273, 0.26741936802864075, 0.26631635427474976, 0.3570345342159271, 0.044649600982666016, -0.11123770475387573, -0.13418462872505188, -0.16614730656147003, 0.00037916749715805054, 0.10762423276901245, -0.17786942422389984, 0.12298452854156494, 0.12103824317455292, -0.15322598814964294, 0.004413098096847534, -0.371791273355484, 0.2839586138725281, 0.41763225197792053, 0.22055114805698395, -0.479702353477478, -0.06641662120819092, 0.07751911133527756, -0.25235632061958313, -0.020406782627105713, -0.018194682896137238, 0.4070229232311249, 0.3347911834716797, 0.5049910545349121, 0.10841742902994156, -0.08666307479143143, -0.13226138055324554, 0.08333054184913635, -0.1251879185438156, 0.043809924274683, 0.11713752150535583, 0.11536978930234909, 0.15274906158447266, 0.012164078652858734, 0.47060316801071167, 0.17945480346679688, 0.24139203131198883, 0.32413527369499207, 0.1357879787683487, 0.04581949859857559, -0.11999139189720154, -0.14567671716213226, -0.004932671785354614, -0.10802151262760162, 0.10959848761558533, 0.013899751007556915, 0.14217019081115723, -0.004658752121031284, -0.30378174781799316, -0.13720031082630157, 0.24619142711162567, -0.2555314898490906, 0.10961189866065979, 0.05717824399471283, -0.11668883264064789, -0.06666439026594162, 0.06466269493103027, 0.05615604296326637, -0.20389024913311005, -0.2721973955631256, 0.2663775682449341, -0.2021348625421524, -0.0640048235654831, -0.06555268168449402, 0.2139689028263092, -0.2533402442932129, -0.0913541167974472, 0.4351050555706024, 0.09192493557929993, -0.1498565971851349, 0.10680137574672699, 0.11849509179592133, -0.11015123128890991, -0.15911921858787537, -0.30912715196609497, 0.06440386176109314, 0.25330260396003723, -0.18153215944766998, -0.1403745412826538, 0.2805757522583008, 0.5617465972900391, 0.20893219113349915, 0.2611389756202698, 0.11852709949016571, -0.09660167992115021, 0.025088844820857048, 0.27449795603752136, 0.026269976049661636, -0.17153345048427582, 0.17271284759044647, -0.16180047392845154, 0.07897032052278519, -0.4373007118701935, -0.11651680618524551, -0.44307824969291687, -0.03607665374875069, -0.09945517778396606, -0.16016177833080292, -0.10824983566999435, -0.1452091783285141, 0.09550134092569351, -0.17385333776474, 0.29529643058776855, 0.4899110794067383, 0.28076016902923584, -0.21859854459762573, -0.46582990884780884, -0.24787497520446777, -0.08615090698003769, -0.006959237158298492, 0.2598720192909241, 0.046769049018621445, 0.30839160084724426, 0.33729246258735657, 0.21347133815288544, 0.10283820331096649, 0.3506147265434265, -0.23405255377292633, -0.042821161448955536, -0.4953741431236267, -0.21086852252483368, -0.03116603195667267, 0.45085516571998596, -0.07756403088569641, 0.06452257186174393, 0.14777781069278717, 0.1814359575510025, -0.03058340772986412, -0.27441662549972534, -0.30533793568611145, -0.07245531678199768, 0.018418386578559875, 0.5293847322463989, 0.18153858184814453, 0.08556171506643295, -0.13950097560882568, 0.019793516024947166, 0.16578508913516998, -0.38206008076667786, -0.01411795150488615, 0.2694746255874634, 0.022281847894191742, 0.033462509512901306, -0.060196250677108765, -0.12952293455600739, 0.03925269469618797, 0.17523899674415588, 0.0319487527012825, -0.17242911458015442, -0.32609227299690247, 0.2349206805229187, 0.019137710332870483, 0.10853631794452667, 0.010862750001251698, 0.3288310468196869, -0.026960447430610657, -0.24706469476222992, -0.22329840064048767, 0.1386556178331375, 0.0727488175034523, -0.25535285472869873, 0.0324016772210598, -0.22190774977207184, -0.019335448741912842, 0.0205095075070858, -0.042710721492767334, -0.270452082157135, -0.004464946687221527, 0.37684938311576843, 0.13952811062335968, 0.02860632911324501, 0.24391646683216095, 0.06680671870708466, 0.18476028740406036, -0.13729999959468842, 0.3015006184577942, 0.21602889895439148, -0.28742024302482605, 0.05567995831370354, -0.10761798173189163 ]
https://github.com/huggingface/datasets/issues/2135
en language data from MLQA dataset is missing
Hi @lhoestq thank you very much for coming back to me, now I see, you are right, in the link you sent I see split of {split}-context-{context_language}-question-{question_language}.json with context_language=question_language=en, TFDS most probably has extracted english ones from these files as en language files, but translate-train/test do not have en indeed. thanks a lot for the great explanations
Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue.
57
en language data from MLQA dataset is missing Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue. Hi @lhoestq thank you very much for coming back to me, now I see, you are right, in the link you sent I see split of {split}-context-{context_language}-question-{question_language}.json with context_language=question_language=en, TFDS most probably has extracted english ones from these files as en language files, but translate-train/test do not have en indeed. thanks a lot for the great explanations
[ -0.040819600224494934, -0.03622056543827057, -0.17737701535224915, 0.3228134512901306, 0.13230319321155548, 0.2861722707748413, 0.09528294205665588, 0.1073279082775116, -0.23436099290847778, 0.11953604966402054, 0.09481564164161682, 0.051392845809459686, 0.16803961992263794, 0.5239025354385376, 0.20629683136940002, -0.4014202952384949, -0.0716603621840477, 0.0019192248582839966, -0.17600059509277344, -0.3533485531806946, 0.057527877390384674, 0.4546353816986084, -0.13368017971515656, 0.09774303436279297, -0.28359776735305786, 0.09724929928779602, -0.4078723192214966, 0.20861583948135376, 0.10868508368730545, 0.06070239841938019, 0.2069736272096634, -0.3061184585094452, 0.16482453048229218, 0.002482011914253235, -0.0001026441459544003, 0.03394486755132675, 0.056221771985292435, -0.33168134093284607, -0.12457151710987091, -0.3011196255683899, -0.293672651052475, -0.11660343408584595, -0.19136777520179749, -0.26697003841400146, -0.21002918481826782, -0.16008692979812622, 0.010259881615638733, -0.4025425910949707, 0.2945212423801422, 0.3969224989414215, 0.22444026172161102, 0.05971013754606247, 0.11150777339935303, -0.07509618252515793, 0.14726226031780243, 0.017958518117666245, 0.1538948118686676, 0.09096081554889679, 0.16661348938941956, 0.03427239507436752, 0.1306973397731781, 0.5047551989555359, 0.2061387002468109, -0.11007677018642426, -0.296697735786438, 0.13190092146396637, 0.2486952245235443, -0.6032835245132446, 0.2411039173603058, 0.37631314992904663, 0.5104184150695801, -0.04047797620296478, -0.24185095727443695, -0.14482566714286804, -0.01362581830471754, 0.09937143325805664, 0.1884407103061676, 0.21498750150203705, -0.12089981138706207, 0.28525346517562866, -0.01851908676326275, -0.312222957611084, -0.056426309049129486, 0.1563020646572113, -0.45071181654930115, 0.27811405062675476, 0.059865981340408325, -0.027246221899986267, -0.20763565599918365, 0.07203350961208344, 0.21417081356048584, 0.0857238620519638, -0.22549569606781006, 0.1790018379688263, -0.22127266228199005, -0.21234527230262756, 0.0013377219438552856, -0.20442593097686768, -0.07879441231489182, -0.1716722548007965, -0.5002164840698242, 0.06879137456417084, -0.07584067434072495, 0.05533977597951889, 0.1506582796573639, 0.14257806539535522, 0.07421170920133591, -0.00004095584154129028, -0.034567691385746, -0.503530740737915, -0.12696005403995514, -0.10954742878675461, -0.0571453720331192, -0.047424882650375366, -0.5842797160148621, 0.2645857632160187, -0.04893425852060318, -0.20185400545597076, -0.27475705742836, -0.055736348032951355, -0.6679559350013733, -0.26369813084602356, -0.16300691664218903, 0.05845461040735245, 0.20757956802845, 0.14288091659545898, 0.0831872895359993, 0.13119783997535706, -0.3226514160633087, -0.45297327637672424, -0.28331872820854187, 0.2836948037147522, -0.04524480924010277, -0.1650172472000122, -0.06615641713142395, 0.2656957805156708, 0.5278738737106323, -0.2556881606578827, -0.03661021590232849, -0.011000063270330429, 0.07452986389398575, -0.10673452913761139, 0.0769132599234581, 0.0889597237110138, 0.19627515971660614, 0.07636850327253342, 0.08432739973068237, -0.1846402883529663, 0.015257500112056732, 0.22904053330421448, -0.482300341129303, -0.039641305804252625, -0.1821138858795166, 0.2690196633338928, -0.10232321172952652, -0.23601868748664856, 0.15030354261398315, 0.6440025568008423, 0.11932185292243958, -0.017971694469451904, 0.13290522992610931, -0.04034356772899628, -0.19531528651714325, 0.08681957423686981, 0.20724429190158844, 0.2232121378183365, -0.70906001329422, -0.23520100116729736, 0.23119693994522095, -0.12557780742645264, 0.06491883099079132, 0.21927501261234283, -0.18164856731891632, 0.2974400222301483, -0.2996009588241577, 0.3631654977798462, 0.12459259480237961, -0.37405845522880554, -0.11854751408100128, 0.26198261976242065, 0.010662004351615906, -0.16342633962631226, -0.10580334812402725, -0.17108137905597687, 0.16010811924934387, 0.03185151517391205, 0.029290586709976196, 0.37161433696746826, -0.21976780891418457, -0.12560012936592102, -0.17326366901397705, -0.19235794246196747, 0.5057458281517029, 0.19417022168636322, 0.16414374113082886, -0.1853485107421875, 0.045119285583496094, 0.11443012207746506, 0.25569218397140503, -0.23230662941932678, 0.08955427259206772, 0.4553660750389099, -0.129288911819458, -0.06700679659843445, 0.23148439824581146, -0.1167258471250534, -0.2401210367679596, 0.030954807996749878, -0.5036655068397522, 0.20670004189014435, -0.0675952285528183, 0.04711339622735977, -0.11410404741764069, -0.16908960044384003, -0.15019012987613678, -0.2663765847682953, 0.2185668647289276, -0.1282702386379242, -0.1501292884349823, 0.5255808234214783, 0.12108065187931061, -0.032344840466976166, 0.03623543679714203, -0.10842396318912506, -0.1963130533695221, 0.48804599046707153, -0.18851980566978455, 0.03128816559910774, 0.14493145048618317, 0.3960084915161133, 0.1007944643497467, -0.23719413578510284, -0.19935697317123413, 0.03582695871591568, 0.010407708585262299, 0.2304919809103012, 0.012462276965379715, -0.05731114745140076, 0.4358994662761688, -0.2884271442890167, -0.039366476237773895, 0.12499001622200012, 0.057126015424728394, -0.01006229966878891, -0.16648957133293152, 0.3173390030860901, 0.14178873598575592, -0.015454202890396118, 0.08205777406692505, 0.15600071847438812, 0.27449217438697815, -0.2671564519405365, 0.15162117779254913, -0.24897757172584534, 0.13652774691581726, -0.1008695662021637, -0.026379788294434547, -0.015285497531294823, -0.050031889230012894, 0.3457331955432892, 0.9597118496894836, -0.03877672925591469, 0.03243526071310043, 0.10888075828552246, -0.24385473132133484, -0.2485952079296112, 0.33271434903144836, 0.22199709713459015, 0.3681362271308899, 0.25506651401519775, 0.27862223982810974, -0.059629619121551514, 0.38497820496559143, -0.21708233654499054, 0.24788212776184082, 0.10164166241884232, 0.1226855218410492, -0.06026523560285568, 0.011121440678834915, -0.11780989915132523, -0.37254422903060913, 0.2336735725402832, 0.28651437163352966, 0.20049649477005005, -0.029794223606586456, 0.2682926058769226, -0.5310760140419006, -0.633540153503418, -0.04197816923260689, -0.24323700368404388, -0.14279510080814362, -0.24815869331359863, 0.272582083940506, -0.5574785470962524, -0.10854692757129669, 0.2909504771232605, 0.44108664989471436, -0.09191180765628815, -0.17882336676120758, 0.13530147075653076, -0.23543263971805573, -0.27498775720596313, -0.5670448541641235, 0.2050752341747284, 0.09319218248128891, 0.17030833661556244, 0.12062554806470871, -0.2440241277217865, 0.08101790398359299, -0.04373525083065033, -0.4981168508529663, 0.17005865275859833, -0.20027244091033936, 0.28163275122642517, -0.063529372215271, 0.0004736557602882385, -0.45952898263931274, -0.04407956451177597, 0.07052545249462128, 0.17099529504776, -0.3872295916080475, 0.009373968467116356, -0.02627287246286869, -0.052197910845279694, -0.15762871503829956, -0.7814692258834839, -0.5482578277587891, -0.06360837072134018, -0.1323070526123047, -0.12322555482387543, 0.030701030045747757, -0.022132467478513718, -0.13140779733657837, 0.04219810664653778, 0.047283343970775604, -0.10798653215169907, -0.38932621479034424, -0.1267872452735901, 0.1431223303079605, -0.1554432064294815, -0.3047042787075043, 0.2366575300693512, 0.04817651957273483, 0.4225659966468811, -0.21960657835006714, -0.34729743003845215, -0.1204654797911644, 0.056391648948192596, 0.10773487389087677, -0.35342535376548767, -0.11920017004013062, 0.5090587139129639, -0.01792767271399498, -0.008925648406147957, -0.1515679508447647, 0.0382351316511631, 0.12335594743490219, 0.2782585024833679, 0.3900000751018524, -0.4099953770637512, 0.5990192890167236, 0.32426971197128296, 0.26913440227508545, 0.12650413811206818, 0.14265204966068268, 0.14329339563846588, -0.06588286906480789, 0.11404643952846527, -0.08234431594610214, -0.06945992261171341, 0.48283809423446655, 0.06370937079191208, 0.02725508064031601, 0.47881758213043213, -0.024517010897397995, -0.17131160199642181, -0.1844298094511032, -0.18770167231559753, -0.16594034433364868, -0.20197901129722595, -0.062282465398311615, -0.43255990743637085, 0.36461684107780457, 0.25517094135284424, 0.29610493779182434, 0.15276256203651428, 0.015542132779955864, 0.21429671347141266, 0.08512048423290253, 0.28499019145965576, 0.1448104828596115, -0.65915447473526, -0.45038533210754395, -0.18655481934547424, 0.12342606484889984, 0.08550826460123062, 0.23876400291919708, -0.2729608118534088, 0.1774846315383911, 0.2363274097442627, 0.03627348691225052, 0.6784838438034058, -0.25640901923179626, -0.29338860511779785, 0.09358091652393341, 0.11324435472488403, 0.05369625985622406, 0.006118815392255783, -0.08518553525209427, 0.30441004037857056, 0.33563902974128723, -0.07378014922142029, -0.2037019580602646, -0.2334938943386078, 0.07253509759902954, 0.27560651302337646, -0.36228734254837036, 0.0017341738566756248, 0.01830993965268135, -0.31846562027931213, -0.20575584471225739, -0.1192362979054451, 0.2498418241739273, -0.0027275944594293833, 0.055481165647506714, -0.08686533570289612, 0.21476687490940094, 0.032133713364601135, -0.026100754737854004, 0.12678241729736328, 0.25058236718177795, 0.022690465673804283, -0.04930676519870758, -0.006811227649450302, 0.13306087255477905, 0.013335565105080605, 0.19027818739414215, -0.044779758900403976, -0.1839902102947235, 0.1142016276717186, -0.38864731788635254, 0.4801161289215088, 0.1302582025527954, -0.022374454885721207, 0.02115383744239807, 0.22465412318706512, -0.1637258380651474, -0.06121270731091499, -0.056426309049129486, 0.31833744049072266, 0.054125238209962845, -0.08471234887838364, -0.25314563512802124, 0.015766866505146027, -0.1968725472688675, 0.07394154369831085, -0.13694609701633453, -0.07912051677703857, -0.3975171446800232, 0.45568275451660156, 0.1212804764509201, 0.7878760099411011, 0.13909943401813507, 0.13301590085029602, 0.1484571397304535, -0.21464186906814575, 0.3469112515449524, -0.19967520236968994, 0.05097579210996628, -0.08579088002443314, 0.08085520565509796, -0.16842053830623627, 0.21171054244041443, -0.01766202598810196, 0.34856241941452026, -0.15590432286262512, 0.32024455070495605, 0.3486591577529907, -0.2753966450691223, 0.30740904808044434, 0.0692003145813942, 0.2205926924943924, -0.09455883502960205, -0.057392820715904236, 0.17531579732894897, 0.1122526004910469, 0.2840496301651001, -0.04210532456636429, -0.25891250371932983, 0.08538985252380371, -0.05836852639913559, -0.22406017780303955, 0.040972523391246796, -0.35534122586250305, 0.21020540595054626, -0.11733084917068481, -0.4628447890281677, 0.3120925724506378, 0.290368914604187, 0.3461307883262634, 0.1490778774023056, -0.2801380157470703, 0.48505622148513794, 0.09237025678157806, 0.18337750434875488, 0.3302989900112152, -0.06014756113290787, 0.417502224445343, -0.21935966610908508, -0.24750575423240662, 0.13604241609573364, -0.22737789154052734, 0.10206338763237, -0.6504186391830444, 0.08046316355466843, 0.008220702409744263, 0.11275048553943634, -0.10604965686798096, 0.10847680270671844, 0.06698817014694214, -0.2709405720233917, 0.16266345977783203, 0.1567842662334442, -0.1053347960114479, 0.22857186198234558, -0.16228652000427246, -0.07243211567401886, -0.18190433084964752, 0.2074664682149887, 0.22942519187927246, 0.03506726771593094, 0.6080000400543213, 0.17757338285446167, -0.01418769545853138, -0.25412848591804504, 0.17963597178459167, -0.06657813489437103, -0.32519906759262085, -0.04794912412762642, 0.2189279943704605, 0.20516659319400787, -0.08501426875591278, 0.09719732403755188, -0.13671885430812836, -0.2769072353839874, -0.04898766055703163, -0.4096362292766571, -0.09449414163827896, 0.21288058161735535, -0.033742617815732956, -0.24005909264087677, 0.11490652710199356, 0.39874976873397827, 0.10661444067955017, 0.16299621760845184, -0.32917842268943787, 0.21558570861816406, -0.21831563115119934, 0.16081926226615906, -0.12145699560642242, -0.07087647169828415, 0.264353483915329, -0.011116918176412582, 0.08178126066923141, -0.12842272222042084, 0.06172637268900871, -0.21298998594284058, -0.06901796907186508, 0.03854861855506897, 0.10842247307300568, 0.15459507703781128, 0.09858434647321701, -0.1769917607307434, -0.09058259427547455, 0.2229059487581253, -0.03251936286687851, -0.08574103564023972, 0.003174886107444763, 0.38124921917915344, -0.05633833631873131, 0.0034467875957489014, -0.2623743712902069, 0.019189991056919098, 0.24125179648399353, -0.0005892887711524963, 0.12440432608127594, 0.1977640688419342, 0.2756619155406952, 0.0010225027799606323, -0.2014322280883789, -0.22187253832817078, -0.1708763986825943, 0.024308912456035614, 0.26979896426200867, -0.23741526901721954, 0.05731198564171791, 0.0547027662396431, -0.06519542634487152, -0.06075038015842438, -0.2839907109737396, 0.22370168566703796, 0.39254918694496155, 0.22493773698806763, -0.4344298243522644, 0.037756625562906265, 0.08203728497028351, -0.2965412139892578, -0.009194489568471909, -0.06636562198400497, 0.2731379270553589, 0.28483858704566956, 0.4747732877731323, 0.08647433668375015, 0.17846496403217316, -0.23622383177280426, 0.00686437776312232, 0.14353524148464203, -0.14364522695541382, 0.1766195148229599, 0.10103455185890198, -0.15975849330425262, 0.026766076683998108, 0.3241792917251587, 0.20220768451690674, 0.2690434753894806, 0.11702926456928253, 0.2710111737251282, 0.06894417852163315, -0.19395437836647034, -0.1826099157333374, -0.04390247166156769, 0.00420573353767395, 0.008567482233047485, 0.10694312304258347, 0.22343695163726807, 0.027610082179307938, -0.27712368965148926, -0.1273944228887558, 0.3374982476234436, -0.2935270071029663, -0.022501222789287567, 0.12566299736499786, -0.04539413005113602, -0.01668086275458336, -0.0035411007702350616, -0.11442606151103973, -0.0968780368566513, -0.2248789370059967, 0.2747928500175476, -0.27443820238113403, 0.08668661117553711, -0.23340639472007751, 0.01013164035975933, -0.2466106116771698, -0.022603146731853485, 0.5441877245903015, 0.112096406519413, -0.07895128428936005, 0.040185343474149704, -0.006308792158961296, 0.004629608243703842, -0.1731770783662796, -0.3625849783420563, -0.03655164688825607, 0.04425201565027237, -0.14448198676109314, 0.032533083111047745, 0.4947674870491028, 0.26125568151474, 0.1904449313879013, 0.26046401262283325, 0.17381513118743896, -0.14750029146671295, 0.17298132181167603, 0.3002623915672302, -0.07970905303955078, -0.2932742238044739, 0.1676613688468933, -0.08615788072347641, 0.07681841403245926, -0.3240533471107483, -0.25296729803085327, -0.4617140591144562, 0.0657508447766304, -0.1046212762594223, -0.16754725575447083, -0.09575407207012177, -0.09881860762834549, 0.11945521831512451, -0.14261704683303833, 0.3566012382507324, 0.3404727578163147, 0.13411465287208557, -0.1007142886519432, -0.25546789169311523, -0.360075443983078, -0.07836940139532089, 0.06680397689342499, 0.15858115255832672, -0.12925954163074493, 0.17155343294143677, 0.4762704372406006, 0.046480365097522736, 0.04918789863586426, 0.1647149622440338, -0.07087060064077377, -0.0575922355055809, -0.45692312717437744, -0.27590566873550415, -0.1950775533914566, 0.3763599395751953, -0.13804477453231812, -0.007304258644580841, 0.14547394216060638, 0.41150128841400146, -0.0047128573060035706, -0.335049569606781, -0.05863223224878311, 0.11860786378383636, -0.025545306503772736, 0.32351648807525635, 0.3283948600292206, 0.2939719557762146, -0.1925681233406067, 0.2201741486787796, 0.18696229159832, -0.24653922021389008, -0.09619870781898499, 0.28740668296813965, 0.08645099401473999, 0.1841493397951126, 0.0069165658205747604, -0.20390644669532776, -0.05430455505847931, 0.20429281890392303, 0.014711987227201462, -0.12213784456253052, -0.36916518211364746, 0.23346635699272156, 0.02797909826040268, -0.02481871470808983, 0.2751072943210602, 0.44263777136802673, -0.05972588062286377, -0.1823955774307251, -0.3170248568058014, -0.00016904808580875397, 0.1756589412689209, -0.21049237251281738, -0.13482801616191864, 0.04751759395003319, 0.005232423543930054, -0.008462518453598022, -0.10495822876691818, -0.2532355487346649, -0.03898727521300316, 0.4291750490665436, 0.11308059096336365, 0.13068749010562897, 0.45535773038864136, 0.34676849842071533, 0.1456327587366104, -0.05244855955243111, 0.12529480457305908, 0.2982234060764313, -0.22897718846797943, 0.16356778144836426, -0.12159019708633423 ]
https://github.com/huggingface/datasets/issues/2135
en language data from MLQA dataset is missing
I close the ticket, since I do not see any en existing, they have trained on "SQuAD V1.1" instead. Thanks.
Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue.
20
en language data from MLQA dataset is missing Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue. I close the ticket, since I do not see any en existing, they have trained on "SQuAD V1.1" instead. Thanks.
[ -0.0614049956202507, -0.05503930151462555, -0.18548378348350525, 0.08395913988351822, 0.14346198737621307, 0.2676544487476349, 0.18588906526565552, -0.04159093275666237, -0.18070121109485626, 0.14829403162002563, 0.22839900851249695, 0.19727568328380585, 0.17762549221515656, 0.3383447527885437, 0.3166697323322296, -0.24786928296089172, -0.048490650951862335, -0.017990678548812866, -0.048479825258255005, -0.42859339714050293, 0.0541551411151886, 0.23525911569595337, -0.3574395179748535, 0.005052186548709869, -0.21835485100746155, 0.15665484964847565, -0.3980647623538971, 0.1877375841140747, 0.05986558645963669, -0.1359647661447525, 0.2692224085330963, -0.33288484811782837, 0.31293785572052, -0.2540806531906128, -0.00010567741992417723, 0.012220285832881927, 0.08119823038578033, -0.4159368872642517, -0.1993287056684494, -0.1626037210226059, -0.28806212544441223, -0.28234538435935974, -0.23937469720840454, -0.2648055851459503, -0.21933406591415405, 0.22012026607990265, 0.3443271815776825, -0.508324146270752, 0.332084983587265, 0.38189369440078735, 0.1968885213136673, 0.0395648330450058, 0.0926605761051178, -0.15240751206874847, -0.009336620569229126, -0.07299864292144775, 0.14974449574947357, -0.001448037102818489, 0.2738122344017029, -0.06781980395317078, 0.15639887750148773, 0.40818244218826294, 0.2631131112575531, -0.2174045294523239, -0.09668181091547012, 0.13994064927101135, 0.4089861810207367, -0.5473690032958984, 0.1374903917312622, 0.0993199571967125, 0.37171539664268494, -0.10576064139604568, -0.37589311599731445, -0.01940382644534111, 0.26594364643096924, -0.015094147995114326, 0.1812553107738495, 0.3444671630859375, -0.13825978338718414, 0.20900970697402954, -0.02712317183613777, -0.3029959499835968, -0.1229965090751648, 0.1439061462879181, -0.3219054639339447, 0.27778470516204834, 0.18053215742111206, -0.06059560179710388, -0.15985913574695587, 0.12926362454891205, 0.23920512199401855, 0.2068473845720291, -0.12836068868637085, 0.2811943292617798, -0.3318513035774231, -0.2662263512611389, -0.06947671622037888, -0.170913428068161, -0.09412865340709686, -0.3655153512954712, -0.34248557686805725, 0.11826712638139725, 0.18252795934677124, 0.08522031456232071, 0.16514231264591217, 0.004415929317474365, 0.25541064143180847, 0.07121539115905762, -0.06916658580303192, -0.4249575436115265, -0.04058949276804924, -0.03161357343196869, -0.11650615930557251, -0.05573786050081253, -0.4660690724849701, 0.33233165740966797, -0.06073214113712311, -0.23914079368114471, -0.3966359794139862, 0.07304652780294418, -0.6150511503219604, -0.09287110716104507, -0.04603871330618858, 0.08604780584573746, 0.06892271339893341, -0.09857378154993057, -0.030765462666749954, 0.0924641415476799, -0.22743888199329376, -0.48222681879997253, -0.23625440895557404, 0.2626548111438751, -0.14905264973640442, -0.15552935004234314, -0.05121244490146637, 0.10217775404453278, 0.4211607873439789, -0.10785813629627228, -0.03330429643392563, 0.08050818741321564, 0.15421663224697113, -0.07778455317020416, 0.09426457434892654, -0.06500481069087982, 0.1820978820323944, 0.020961357280611992, -0.005597289651632309, -0.36662107706069946, 0.11885932832956314, 0.22239312529563904, -0.5026972889900208, -0.08695168048143387, -0.34096211194992065, 0.22059480845928192, -0.06341356039047241, -0.2909999489784241, 0.40008416771888733, 0.46453434228897095, -0.02909187227487564, -0.011688360944390297, 0.1916271448135376, 0.015274818986654282, -0.16553349792957306, 0.05871714651584625, 0.1839255690574646, 0.24792957305908203, -0.6743549108505249, -0.3153378665447235, 0.20346400141716003, -0.035210058093070984, 0.19682946801185608, 0.23015114665031433, -0.26156696677207947, 0.06961390376091003, -0.1940801441669464, 0.1121588945388794, 0.1704311966896057, -0.6116741299629211, -0.36770427227020264, 0.02228822000324726, -0.07799839973449707, -0.37764477729797363, -0.14486873149871826, 0.09988067299127579, 0.26107069849967957, -0.02369788847863674, 0.25798356533050537, 0.35302966833114624, -0.1783163696527481, -0.19712625443935394, -0.17388726770877838, -0.05279140546917915, 0.2627730369567871, 0.3654523491859436, 0.14844654500484467, -0.26311835646629333, 0.04851039499044418, 0.14260590076446533, 0.1779536008834839, -0.23172464966773987, 0.17254027724266052, 0.5178677439689636, -0.08054427802562714, -0.06350405514240265, 0.05848131701350212, 0.19553163647651672, -0.2065810263156891, 0.016348838806152344, -0.7800019979476929, 0.21386215090751648, -0.013261966407299042, -0.12106407433748245, -0.06127042695879936, -0.045379217714071274, -0.2260608822107315, -0.24951410293579102, 0.18184764683246613, -0.3295166790485382, -0.16325494647026062, 0.35720473527908325, 0.10284505784511566, 0.1105443686246872, -0.13550466299057007, 0.03496650978922844, -0.1937737762928009, 0.44841650128364563, -0.33516979217529297, 0.008216139860451221, 0.15370801091194153, 0.44598132371902466, 0.1235237568616867, -0.03442314639687538, -0.005125128664076328, -0.04972623288631439, -0.037259530276060104, 0.0708751231431961, 0.2649092972278595, -0.23188234865665436, 0.5788726806640625, -0.3073803186416626, 0.190938800573349, 0.12671098113059998, 0.016500968486070633, 0.03563269227743149, -0.3685258626937866, 0.3260648250579834, 0.24988846480846405, -0.28397756814956665, 0.007040251046419144, 0.35896363854408264, 0.13753464818000793, -0.14519090950489044, -0.058283038437366486, -0.11054324358701706, 0.11843352019786835, 0.011899464763700962, 0.004400797188282013, 0.07758248597383499, -0.11258196085691452, 0.11532513797283173, 0.7596584558486938, 0.23616474866867065, 0.24543830752372742, 0.051362425088882446, -0.20749735832214355, -0.17958134412765503, 0.30471980571746826, 0.08398710191249847, 0.23998990654945374, 0.16670720279216766, 0.09103133529424667, -0.0672457367181778, 0.28204426169395447, -0.09702733904123306, 0.21898680925369263, 0.022077206522226334, 0.12794803082942963, -0.21761834621429443, 0.0640217661857605, -0.0449230931699276, -0.35685408115386963, 0.06357811391353607, 0.23875144124031067, 0.1498514860868454, 0.021278928965330124, 0.07853125780820847, -0.3708966374397278, -0.5073177814483643, -0.13643032312393188, -0.2138952612876892, -0.2516544461250305, -0.11846526712179184, 0.20095330476760864, -0.7401015758514404, 0.12313732504844666, 0.3331768214702606, 0.3358401656150818, -0.04235459864139557, 0.02808563970029354, 0.08196084201335907, 0.009855009615421295, -0.14060457050800323, -0.34906741976737976, 0.12823840975761414, -0.04012245312333107, -0.0030066161416471004, -0.04626157134771347, 0.005860745906829834, 0.17686156928539276, -0.24862542748451233, -0.4871399700641632, 0.0777585506439209, 0.005794838070869446, 0.26824960112571716, -0.008645124733448029, 0.018880821764469147, -0.7526350617408752, 0.009931408800184727, 0.11845944076776505, 0.2236754447221756, -0.3405579626560211, -0.14095386862754822, -0.171223446726799, -0.10472690314054489, -0.024847418069839478, -0.6468250155448914, -0.7372845411300659, 0.03053097054362297, -0.1459037810564041, -0.009517723694443703, 0.007614094763994217, 0.045762430876493454, -0.07727639377117157, 0.07280750572681427, -0.03983495011925697, -0.21962116658687592, -0.42903217673301697, -0.2455872893333435, 0.2960585057735443, -0.031170886009931564, -0.3616073429584503, 0.1702853888273239, -0.01032921764999628, 0.4533654451370239, -0.1900147795677185, -0.3280900716781616, -0.17655174434185028, 0.3218614161014557, -0.020631466060876846, -0.3668644428253174, -0.0531160831451416, 0.5032517910003662, -0.03597316890954971, 0.007629888132214546, -0.11054198443889618, -0.23250845074653625, 0.0713728666305542, 0.3401715159416199, 0.5897241830825806, -0.5921168327331543, 0.45289283990859985, 0.27506694197654724, 0.2953698933124542, 0.11580941081047058, 0.1370680034160614, 0.15813204646110535, -0.02874605916440487, 0.13987934589385986, 0.16147324442863464, -0.15068215131759644, 0.5780956149101257, 0.07133381813764572, 0.052637360990047455, 0.3350733518600464, -0.027941543608903885, -0.3929459750652313, -0.16919094324111938, -0.12853705883026123, -0.07869403064250946, -0.11819136142730713, -0.0027435049414634705, -0.18994741141796112, 0.3600897192955017, 0.25669464468955994, 0.4055579900741577, -0.017104940488934517, -0.07360115647315979, -0.028591128066182137, 0.040048256516456604, 0.32477235794067383, 0.19031217694282532, -0.6184051632881165, -0.5788431167602539, -0.11884287744760513, 0.12252458184957504, -0.02855735272169113, 0.541516900062561, -0.10554081201553345, 0.2024659812450409, 0.26169729232788086, 0.14450305700302124, 0.5555581450462341, -0.2430681735277176, -0.3454246520996094, -0.13149000704288483, 0.2881125509738922, -0.19186241924762726, 0.000388316810131073, 0.02946353331208229, 0.39259466528892517, 0.43142569065093994, -0.23140251636505127, -0.008748583495616913, -0.08132941275835037, 0.3801348805427551, -0.03438175097107887, -0.2577848732471466, 0.03867470100522041, -0.2340865433216095, -0.1954461932182312, -0.22077129781246185, 0.1956864297389984, 0.0967210903763771, -0.12456174939870834, 0.2882355749607086, -0.18751296401023865, 0.2321537584066391, 0.1594732403755188, -0.006761729717254639, 0.11883041262626648, 0.2844279706478119, 0.09320227056741714, -0.057447344064712524, 0.14038781821727753, 0.23526631295681, -0.00036575086414813995, 0.1646575778722763, -0.02870720997452736, -0.26870423555374146, 0.30772334337234497, -0.3710041046142578, 0.6595480442047119, 0.22516298294067383, 0.09235634654760361, 0.1156468614935875, 0.3028036057949066, -0.26511967182159424, 0.07417633384466171, -0.23050791025161743, 0.2964479923248291, 0.25822901725769043, -0.2570074796676636, -0.23141199350357056, -0.0073864758014678955, -0.07778172194957733, 0.18711037933826447, -0.22830194234848022, -0.06875565648078918, -0.1671079397201538, 0.40205061435699463, 0.18256686627864838, 0.8222814798355103, 0.04118584096431732, 0.10292202979326248, -0.12513303756713867, -0.10520896315574646, 0.26316037774086, -0.19533047080039978, 0.28541046380996704, -0.2273685336112976, -0.05762258917093277, -0.1682812124490738, 0.017270077019929886, 0.19193106889724731, 0.4000086784362793, -0.3338610529899597, 0.29941779375076294, 0.3004612922668457, -0.17761152982711792, 0.21759794652462006, 0.060849547386169434, 0.06376104056835175, -0.210092231631279, -0.33789947628974915, 0.14084000885486603, 0.08053361624479294, 0.36424943804740906, -0.24495062232017517, -0.14196814596652985, 0.10688617825508118, -0.07848526537418365, -0.13260336220264435, 0.014489132910966873, -0.3802137076854706, 0.1874951422214508, -0.011334218084812164, -0.4910607933998108, 0.28702136874198914, 0.4773973226547241, 0.3643174171447754, 0.3550563156604767, -0.21713963150978088, 0.5245864391326904, 0.12626704573631287, 0.014424027875065804, 0.34236636757850647, 0.004778425209224224, 0.20609310269355774, -0.22442111372947693, -0.3705039322376251, 0.25669461488723755, -0.09615947306156158, -0.03234785795211792, -0.5521190166473389, 0.2968839406967163, 0.16793805360794067, 0.19473686814308167, 0.018163735046982765, 0.0970330610871315, 0.07224702835083008, -0.22226610779762268, 0.13372984528541565, 0.22411741316318512, -0.03781307861208916, 0.2564702332019806, 0.1661887764930725, -0.10437127947807312, -0.12689144909381866, 0.3687800467014313, 0.21474573016166687, -0.05326855927705765, 0.5588970184326172, 0.05924740806221962, 0.03426162153482437, -0.254069060087204, 0.12393411248922348, -0.07396852225065231, -0.13756868243217468, -0.26239174604415894, 0.1452254205942154, 0.199759379029274, -0.02929982729256153, -0.20722350478172302, -0.06446247547864914, -0.3883134126663208, -0.06224297732114792, -0.3872436583042145, -0.27528858184814453, 0.07541023194789886, -0.11338919401168823, -0.12293121218681335, 0.21240413188934326, 0.16497014462947845, 0.24959874153137207, 0.07818276435136795, -0.32275649905204773, 0.1679515242576599, -0.3973310589790344, 0.22395136952400208, -0.01567862555384636, -0.22132721543312073, 0.11067331582307816, -0.10903142392635345, 0.11548857390880585, -0.08905643224716187, -0.04440862312912941, -0.14644640684127808, 0.21218542754650116, 0.0551631897687912, -0.06510961055755615, 0.26404303312301636, 0.013386600650846958, -0.1056012213230133, -0.2285672128200531, 0.2656398415565491, -0.11581183969974518, -0.003250446170568466, 0.09551708400249481, 0.3260473310947418, -0.11002519726753235, 0.03831710293889046, -0.08060212433338165, -0.14500470459461212, 0.3147142231464386, -0.046280235052108765, 0.13287638127803802, 0.3403070569038391, 0.25512397289276123, -0.0365939736366272, -0.14408071339130402, -0.04597897082567215, -0.022745460271835327, 0.2281869649887085, 0.16985657811164856, -0.35228782892227173, 0.015906494110822678, 0.1860782951116562, -0.22501906752586365, -0.05645787715911865, -0.3032712936401367, 0.22723086178302765, 0.36371558904647827, 0.22699591517448425, -0.5343981981277466, 0.006671365350484848, 0.23716303706169128, -0.17295078933238983, -0.01365434005856514, 0.01147402822971344, 0.3277377486228943, 0.26388052105903625, 0.40617889165878296, 0.2645317018032074, 0.15140306949615479, -0.3466755151748657, 0.03029485233128071, -0.02752404287457466, 0.010751824826002121, -0.01510554924607277, 0.22585445642471313, -0.12222099304199219, -0.01299084722995758, 0.4565228223800659, 0.08381254225969315, 0.2531334161758423, 0.3350503742694855, 0.19937823712825775, 0.15436962246894836, -0.1966709941625595, -0.2339615672826767, 0.16652250289916992, -0.0543208122253418, -0.010510936379432678, 0.12048918753862381, 0.40635573863983154, 0.08767028898000717, -0.42919856309890747, -0.23038367927074432, 0.14840304851531982, -0.43810492753982544, 0.042876336723566055, 0.09610667824745178, -0.05719907209277153, 0.12846817076206207, -0.0854215919971466, 0.06446234881877899, -0.06120927631855011, -0.233671635389328, 0.19066467881202698, -0.18222586810588837, 0.10389985889196396, 0.02187412790954113, 0.25579598546028137, -0.20545336604118347, -0.10981094837188721, 0.38542571663856506, -0.1390032321214676, -0.12746387720108032, 0.06233750283718109, -0.051958464086055756, -0.015572745352983475, -0.17017239332199097, -0.16379104554653168, 0.15741807222366333, 0.11039607226848602, -0.1693788319826126, 0.00590253621339798, 0.3001664876937866, 0.4074697196483612, 0.057310231029987335, 0.19153332710266113, 0.17290088534355164, -0.06543557345867157, 0.05936179310083389, 0.2738454043865204, -0.07847106456756592, -0.12627282738685608, -0.023540489375591278, 0.06225723773241043, 0.021081306040287018, -0.3662446439266205, -0.1674964725971222, -0.380677729845047, -0.0889190137386322, 0.03848586976528168, -0.041764453053474426, -0.03417156636714935, -0.1998293697834015, 0.1103360503911972, -0.14576324820518494, 0.2659994661808014, 0.3386378884315491, 0.0957280695438385, -0.1506839394569397, -0.20722529292106628, -0.4805029034614563, -0.005846381187438965, 0.060765836387872696, 0.1942615956068039, -0.057673342525959015, 0.32676461338996887, 0.31329432129859924, 0.16762731969356537, 0.26925158500671387, 0.015854770317673683, -0.00965886376798153, -0.10150550305843353, -0.5356666445732117, -0.1428377628326416, 0.06025409698486328, 0.3365083932876587, -0.030146798118948936, -0.02764694206416607, 0.16689608991146088, 0.2043224275112152, 0.009737137705087662, -0.35361742973327637, -0.1598583161830902, -0.07633562386035919, -0.009777229279279709, 0.3959161043167114, 0.08369514346122742, 0.33920443058013916, -0.06689903140068054, 0.1712936908006668, 0.158992201089859, -0.19782614707946777, -0.02064693346619606, 0.24781155586242676, 0.18920297920703888, 0.11124472320079803, -0.06997775286436081, -0.23549975454807281, 0.01893007941544056, 0.3167828917503357, 0.1663198322057724, -0.1713152676820755, -0.4148257076740265, 0.36832448840141296, 0.06566689163446426, 0.12319120019674301, -0.10911215096712112, 0.23247632384300232, 0.015861358493566513, -0.06531824171543121, -0.21014630794525146, 0.005504060536623001, 0.30443018674850464, -0.15660496056079865, 0.013765018433332443, -0.3062789738178253, 0.081097811460495, -0.1050598993897438, 0.041187770664691925, -0.27892911434173584, -0.08960487693548203, 0.3944664001464844, 0.05177890509366989, 0.0519363172352314, 0.2999483346939087, 0.041810713708400726, 0.18555429577827454, -0.12168830633163452, 0.15291699767112732, 0.09193621575832367, -0.1553378850221634, 0.17836381494998932, -0.19173547625541687 ]
https://github.com/huggingface/datasets/issues/2134
Saving large in-memory datasets with save_to_disk crashes because of pickling
Hi ! Indeed `save_to_disk` doesn't call pickle anymore. Though the `OverflowError` can still appear for in-memory datasets bigger than 4GB. This happens when doing this for example: ```python import pyarrow as pa import pickle arr = pa.array([0] * ((4 * 8 << 30) // 64)) table = pa.Table.from_arrays([a], names=["foo"]) pickle.dumps(table) # fails with an OverflowError pickle.dumps(table, 4) # works ! ``` We'll do the change to use `protocol=4`. Moreover I've also seen other users complain about this error ``` struct.error: 'I' format requires 0 <= number <= 4294967295 ``` It looks like something related to the 4GB limit as well but I'm not able to reproduce on my side. Do you think you can provide a script that reproduces the issue ? How big is your dataset ? (number of bytes, number of rows)
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
134
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` Hi ! Indeed `save_to_disk` doesn't call pickle anymore. Though the `OverflowError` can still appear for in-memory datasets bigger than 4GB. This happens when doing this for example: ```python import pyarrow as pa import pickle arr = pa.array([0] * ((4 * 8 << 30) // 64)) table = pa.Table.from_arrays([a], names=["foo"]) pickle.dumps(table) # fails with an OverflowError pickle.dumps(table, 4) # works ! ``` We'll do the change to use `protocol=4`. Moreover I've also seen other users complain about this error ``` struct.error: 'I' format requires 0 <= number <= 4294967295 ``` It looks like something related to the 4GB limit as well but I'm not able to reproduce on my side. Do you think you can provide a script that reproduces the issue ? How big is your dataset ? (number of bytes, number of rows)
[ -0.3168884515762329, 0.09959512948989868, 0.11978000402450562, 0.3708881139755249, 0.2521231174468994, 0.00212947279214859, -0.28349772095680237, 0.4639681577682495, 0.19055654108524323, 0.09646503627300262, 0.08088354021310806, 0.5146645903587341, -0.39890947937965393, 0.29059863090515137, -0.15748004615306854, -0.08337220549583435, 0.22001703083515167, -0.10456165671348572, -0.261579692363739, 0.17103718221187592, -0.25197601318359375, -0.10099060088396072, 0.020541079342365265, -0.16596435010433197, -0.17123755812644958, -0.3141443729400635, -0.027155324816703796, 0.39561060070991516, -0.319368451833725, -0.3452959358692169, -0.14097623527050018, -0.22311538457870483, 0.2281503826379776, 0.327410489320755, -0.00012185026571387425, 0.03879228234291077, 0.13747429847717285, -0.14756669104099274, -0.4962763786315918, 0.004615411162376404, 0.02535482496023178, -0.5504595637321472, -0.19450446963310242, -0.25041088461875916, 0.33382725715637207, -0.0910535380244255, 0.11852937936782837, -0.37533146142959595, 0.23852257430553436, 0.20618152618408203, 0.14069923758506775, 0.3183521032333374, 0.2884148359298706, -0.02362566813826561, 0.08107957243919373, 0.25323885679244995, -0.2371629923582077, 0.21044452488422394, 0.2143966257572174, 0.09401008486747742, -0.06970564275979996, -0.10630910098552704, -0.048908524215221405, -0.2752487361431122, 0.009119849652051926, -0.07152273505926132, -0.3575339913368225, -0.2352924346923828, 0.1131325364112854, 0.13597288727760315, 0.2058553397655487, -0.4716518819332123, -0.6115646362304688, -0.4440334737300873, -0.09781660884618759, -0.2725955843925476, 0.06730226427316666, 0.2560085356235504, -0.08566631376743317, -0.009138479828834534, -0.14870890974998474, -0.5428614616394043, 0.06505155563354492, 0.09354306757450104, 0.31283387541770935, -0.26405686140060425, -0.2599281668663025, 0.21048051118850708, 0.48274943232536316, -0.2832579016685486, -0.24926990270614624, -0.19898612797260284, 0.024946844205260277, -0.014813547022640705, -0.010005731135606766, -0.16365809738636017, -0.06672852486371994, -0.05315779894590378, 0.2876332104206085, 0.12881994247436523, -0.026449229568243027, 0.16995099186897278, -0.31842851638793945, -0.0102006196975708, 0.3466801941394806, -0.05428563803434372, -0.21047478914260864, 0.3277967572212219, 0.3184903860092163, 0.05116243287920952, 0.1151701956987381, 0.08625688403844833, -0.024431947618722916, -0.19468644261360168, 0.04683777317404747, -0.13934466242790222, 0.14263735711574554, -0.12217148393392563, -0.029800137504935265, 0.17173153162002563, -0.14097046852111816, 0.20416699349880219, -0.032762497663497925, 0.2195822298526764, -0.025977738201618195, 0.06207725405693054, -0.28644317388534546, 0.0794292688369751, -0.15836898982524872, 0.07512909919023514, -0.11702459305524826, 0.19870248436927795, 0.024091962724924088, 0.23534464836120605, 0.13214896619319916, 0.024791831150650978, 0.20726539194583893, -0.015178829431533813, -0.2567569613456726, 0.10972036421298981, 0.06520064920186996, -0.4047945737838745, 0.12669503688812256, 0.2791752219200134, -0.04303266480565071, 0.11162268370389938, 0.0867825448513031, 0.04227375239133835, -0.24079349637031555, 0.1412680298089981, 0.009191393852233887, -0.21043114364147186, -0.04548240453004837, 0.008162172511219978, -0.19343909621238708, -0.1259145587682724, -0.5878509283065796, 0.0739087462425232, 0.3553922772407532, -0.17664086818695068, -0.1262132227420807, -0.2640079855918884, -0.17013627290725708, -0.3441281318664551, 0.0026653148233890533, 0.31275609135627747, -0.34855055809020996, 0.14305412769317627, -0.01811748370528221, 0.17683497071266174, 0.5048041343688965, 0.4281785190105438, 0.01709240861237049, -0.09400885552167892, -0.258446604013443, 0.4258437752723694, 0.20392414927482605, -0.03459269180893898, -0.48217129707336426, 0.1800985038280487, 0.005572415888309479, -0.03282276540994644, -0.12844061851501465, 0.1374111771583557, 0.027889827266335487, -0.020142845809459686, -0.08649356663227081, 0.17512205243110657, 0.020646993070840836, 0.18882836401462555, -0.32328659296035767, -0.42812061309814453, -0.056994855403900146, 0.022981982678174973, -0.06873832643032074, -0.06652335077524185, 0.04380662366747856, -0.2526405453681946, 0.15861600637435913, -0.16420631110668182, 0.2267967164516449, 0.36928313970565796, 0.3107091188430786, -0.14134126901626587, -0.24104301631450653, -0.25406667590141296, -0.3209952712059021, 0.29040586948394775, 0.134623721241951, -0.21288445591926575, -0.2942923307418823, 0.024815838783979416, -0.016007883474230766, 0.034479230642318726, -0.04616610333323479, 0.3929961621761322, -0.0561230406165123, -0.043241165578365326, 0.20988839864730835, 0.197490856051445, -0.09711091220378876, -0.16691923141479492, -0.21900248527526855, 0.12281877547502518, -0.24710287153720856, 0.13664597272872925, -0.05822254717350006, -0.44691383838653564, 0.05689474940299988, -0.025215044617652893, 0.011301256716251373, -0.19039347767829895, -0.056797049939632416, 0.11310446262359619, 0.2439713180065155, -0.03615294396877289, -0.08444570749998093, 0.16410106420516968, 0.047774381935596466, 0.05274393782019615, 0.1824994683265686, -0.01722930744290352, 0.28004372119903564, 0.01963689923286438, -0.18872249126434326, 0.34809744358062744, 0.09262287616729736, 0.14159882068634033, 0.3416215777397156, -0.11529770493507385, 0.051554158329963684, 0.07298299670219421, 0.21041220426559448, -0.17212313413619995, -0.15123170614242554, 0.1688513308763504, 0.3553534150123596, -0.03581855446100235, -0.35657986998558044, 0.04162895679473877, 0.5232874751091003, 0.007155902683734894, 0.41391831636428833, 0.2888953685760498, -0.030078627169132233, -0.17960357666015625, 0.04953775554895401, 0.14898240566253662, 0.48255133628845215, 0.07197792828083038, 0.2031985968351364, -0.04973405599594116, 0.09849527478218079, -0.0927230715751648, 0.04902380704879761, 0.1893739104270935, 0.21433278918266296, 0.2653186321258545, 0.18623629212379456, -0.02254512906074524, -0.39856308698654175, 0.006850820034742355, -0.010328108444809914, 0.24902808666229248, -0.1407553106546402, 0.12291178852319717, -0.3488911986351013, -0.09305749833583832, -0.17560085654258728, 0.0690053254365921, -0.0824645608663559, -0.3389725983142853, -0.29777991771698, 0.3980576694011688, -0.3791888654232025, 0.09527377039194107, -0.08240680396556854, 0.23964564502239227, 0.15884509682655334, 0.019331563264131546, 0.0811561644077301, 0.1053367480635643, -0.1719752848148346, -0.07530054450035095, 0.3932110369205475, -0.17836183309555054, 0.4449951648712158, 0.2942570447921753, -0.25156643986701965, -0.5642059445381165, -0.009631119668483734, 0.09723241627216339, -0.044640637934207916, 0.2913724184036255, 0.15691089630126953, 0.2594355344772339, -0.06370687484741211, 0.1674998551607132, 0.028589794412255287, 0.16790525615215302, -0.20486733317375183, -0.09654858708381653, 0.12497127056121826, 0.11484146118164062, 0.012095298618078232, -0.12148129194974899, -0.3409325182437897, -0.3965243995189667, 0.4174043536186218, -0.03257226198911667, 0.1087353304028511, 0.255563884973526, 0.3698804974555969, 0.33383235335350037, 0.1646704375743866, 0.013167605735361576, -0.07955893129110336, -0.20069007575511932, 0.2692919969558716, 0.07351712882518768, -0.28511470556259155, -0.16854093968868256, 0.11639511585235596, -0.17618894577026367, 0.19634884595870972, -0.29616132378578186, 0.2146085500717163, -0.5010900497436523, 0.17509135603904724, -0.07386953383684158, 0.1984628587961197, 0.3098812997341156, 0.06706657260656357, -0.023270513862371445, 0.09268379956483841, -0.06223033741116524, -0.024926483631134033, 0.3186882436275482, 0.21387121081352234, 0.0005779843777418137, 0.29532626271247864, 0.2987186014652252, 0.6582242250442505, 0.18573559820652008, -0.2299649864435196, 0.5270455479621887, 0.13816319406032562, 0.2322874516248703, -0.2867571711540222, -0.13933829963207245, 0.008317536674439907, -0.38387760519981384, -0.15290094912052155, -0.11361584067344666, -0.07684972137212753, -0.004623323678970337, 0.24871110916137695, -0.019593175500631332, 0.19590532779693604, -0.24337242543697357, 0.2963945269584656, -0.1548439860343933, 0.0354570597410202, -0.047251492738723755, 0.09713893383741379, -0.0689583495259285, 0.04044662043452263, 0.02640816941857338, -0.03123234212398529, 0.47336339950561523, 0.02138781175017357, -0.2703002989292145, -0.08479920774698257, -0.6920449137687683, 0.19753867387771606, 0.1649118959903717, 0.41105201840400696, -0.04303194582462311, -0.332548588514328, -0.19420169293880463, -0.09155000001192093, 0.42732447385787964, -0.08387749642133713, -0.18161579966545105, 0.12261320650577545, -0.06614126265048981, -0.3708953261375427, 0.014026671648025513, 0.04547463729977608, 0.5089049935340881, -0.07496456801891327, 0.6180590987205505, -0.27920347452163696, 0.03599872812628746, -0.06251168251037598, 0.5453645586967468, -0.07982046157121658, 0.06740546226501465, -0.17307215929031372, -0.36235788464546204, -0.42963099479675293, 0.04785008355975151, 0.0823841392993927, -0.02688072808086872, -0.18008999526500702, -0.023699814453721046, -0.1829955130815506, -0.19463777542114258, -0.03070606291294098, -0.2555563151836395, 0.19116336107254028, -0.23267051577568054, 0.2806384563446045, -0.08001285791397095, 0.1896321028470993, 0.6002485156059265, 0.4785459339618683, -0.06649066507816315, -0.10001745820045471, 0.05312121659517288, 0.290965735912323, 0.3145468533039093, 0.27139753103256226, -0.026556532829999924, 0.12825579941272736, 0.10297536849975586, 0.08966279774904251, -0.4230405390262604, 0.2618330717086792, 0.03760529309511185, -0.1594410389661789, -0.4124112129211426, -0.20015373826026917, 0.5952423810958862, 0.2829306125640869, 0.17781083285808563, 0.16295567154884338, 0.032745830714702606, -0.11134319752454758, 0.319530725479126, 0.04688233137130737, 0.7377001643180847, -0.04927350580692291, 0.3859351575374603, 0.14436441659927368, -0.13294140994548798, 0.329908549785614, 0.2714166045188904, -0.018504295498132706, -0.4534931778907776, 0.00808276329189539, 0.06999436020851135, -0.116073839366436, 0.2320917546749115, -0.07742063701152802, -0.22934290766716003, 0.23420512676239014, -0.24646635353565216, -0.34012627601623535, -0.20115403831005096, 0.29748696088790894, -0.45250993967056274, -0.32282575964927673, -0.0318484790623188, 0.0820498839020729, -0.18902787566184998, -0.05203411355614662, 0.038216482847929, -0.02600136771798134, -0.18168799579143524, 0.0875810980796814, -0.379772424697876, 0.07526238262653351, 0.018065741285681725, 0.4964675307273865, -0.20786473155021667, -0.09435906261205673, 0.13735751807689667, 0.033300891518592834, -0.019860468804836273, 0.17301106452941895, -0.12357605993747711, -0.12254641950130463, -0.19234398007392883, -0.025939760729670525, 0.1587093025445938, -0.17497220635414124, 0.35948503017425537, 0.11308873444795609, 0.05937270075082779, -0.018511734902858734, -0.20203353464603424, -0.05457591637969017, -0.17690271139144897, -0.14658524096012115, 0.05778687447309494, -0.287759929895401, -0.6232825517654419, -0.11155419051647186, -0.2177118957042694, -0.30207905173301697, -0.008435646072030067, 0.24675829708576202, 0.1524903029203415, 0.3774368166923523, -0.1662786900997162, -0.013862475752830505, -0.09604629874229431, 0.5426026582717896, -0.2170468270778656, 0.3648031949996948, 0.5068677663803101, 0.17999760806560516, -0.2064274251461029, -0.15997035801410675, 0.3782237768173218, 0.005458607338368893, 0.1507754623889923, 0.5503348708152771, -0.09911686182022095, 0.016937285661697388, -0.1889045238494873, 0.25383448600769043, 0.15056543052196503, -0.3707573115825653, -0.1609153002500534, -0.10646326839923859, -0.5591670274734497, 0.20673930644989014, 0.0927724540233612, 0.39673882722854614, -0.176373690366745, -0.12262508273124695, -0.290354460477829, -0.02800776995718479, -0.13918808102607727, 0.1578175276517868, -0.26768678426742554, 0.0016697347164154053, 0.16584040224552155, -0.01379377394914627, -0.05258902162313461, -0.10075391829013824, -0.05952996015548706, 0.1842210739850998, -0.04861818253993988, -0.07482574135065079, -0.0830293744802475, 0.11724545061588287, 0.22711077332496643, -0.17369142174720764, -0.026616424322128296, -0.3926929831504822, -0.01130148395895958, -0.1907859742641449, 0.02799227461218834, 0.25192466378211975, -0.08854250609874725, 0.11281022429466248, 0.12680618464946747, 0.077730193734169, 0.2172168642282486, 0.23223696649074554, 0.007180057466030121, 0.24556395411491394, 0.02331586927175522, 0.3543139696121216, 0.23113717138767242, -0.20541924238204956, -0.23438991606235504, 0.01848374307155609, 0.2907337546348572, 0.0028010383248329163, 0.30512404441833496, -0.25820302963256836, -0.14234282076358795, 0.25557607412338257, 0.15252576768398285, 0.6202743053436279, -0.13046793639659882, -0.22279587388038635, 0.29988929629325867, 0.08978129178285599, 0.06381441652774811, -0.3358577787876129, 0.09400136768817902, -0.19853182137012482, -0.07038392126560211, 0.03499618172645569, -0.12451338768005371, 0.16479434072971344, -0.8366090059280396, 0.06959997862577438, 0.2907014489173889, 0.08233889192342758, -0.015476778149604797, 0.14859189093112946, 0.02581377699971199, -0.016961563378572464, 0.18717962503433228, 0.06379763036966324, 0.5537105202674866, 0.5625133514404297, -0.08183293789625168, 0.609912097454071, 0.029685650020837784, 0.24464640021324158, -0.016588538885116577, -0.7433132529258728, 0.1946711391210556, 0.4049603343009949, 0.03611009567975998, 0.21617922186851501, 0.008266165852546692, 0.37521567940711975, -0.39508628845214844, -0.3191031515598297, -0.05067171901464462, 0.2922395169734955, -0.37021541595458984, -0.26988083124160767, 0.06887573003768921, -0.1035979837179184, 0.10867470502853394, 0.3668445348739624, -0.26123350858688354, -0.0977838784456253, 0.34558477997779846, -0.024921126663684845, 0.017914287745952606, -0.10972106456756592, 0.09591132402420044, -0.04204605519771576, 0.2890910804271698, -0.3097183406352997, 0.030630892142653465, 0.017491303384304047, -0.17209266126155853, -0.6128517389297485, -0.010683121159672737, 0.5050378441810608, 0.28199905157089233, -0.1961207389831543, -0.0660642459988594, 0.06855204701423645, 0.03033752180635929, -0.12914134562015533, 0.09921512007713318, -0.1238471120595932, 0.19700060784816742, 0.4543984532356262, -0.05041038244962692, -0.03480297699570656, -0.02346746250987053, 0.08829104155302048, 0.29303357005119324, -0.1039106696844101, -0.03219909220933914, -0.07016351819038391, -0.3222334682941437, 0.10691817104816437, 0.12194791436195374, -0.16032105684280396, 0.18983374536037445, 0.5680363178253174, -0.14743424952030182, 0.22582268714904785, 0.08844901621341705, 0.04049375653266907, -0.05267785117030144, 0.7015368342399597, 0.4067876636981964, -0.25606590509414673, -0.4636137783527374, 0.1385057419538498, -0.06901542842388153, -0.002116866409778595, -0.23066741228103638, 0.05363146960735321, -0.18550272285938263, 0.13727706670761108, 0.1532157063484192, 0.02369716390967369, -0.24603943526744843, 0.28593817353248596, -0.014923331327736378, 0.17220017313957214, -0.06512095034122467, -0.31668126583099365, -0.05370127409696579, -0.1375625729560852, 0.09100592136383057, -0.6348482966423035, 0.35380610823631287, 0.007176750339567661, -0.041339412331581116, -0.16188392043113708, -0.14757472276687622, -0.01805059425532818, 0.0729033499956131, 0.5200444459915161, 0.2168368697166443, 0.2093246877193451, -0.20436787605285645, -0.4473116993904114, 0.06675774604082108, -0.06123988702893257, -0.017217915505170822, 0.14868265390396118, -0.19696567952632904, 0.5546965599060059, -0.18386071920394897, 0.65162593126297, -0.3728136420249939, 0.06510579586029053, -0.07924269139766693, 0.019686071202158928, 0.02097615785896778, -0.05939808487892151, -0.0028049349784851074, -0.03364501893520355, 0.1575343757867813, 0.2505611479282379, -0.05955273658037186, 0.19217249751091003, -0.3644733428955078, -0.20292779803276062, 0.44653064012527466, 0.1169656291604042, -0.1790771484375, -0.0937827005982399, -0.034523606300354004, 0.2249455749988556, -0.053438566625118256, -0.5481229424476624, -0.027488574385643005, 0.22503133118152618, 0.006643928587436676, -0.2915824055671692, 0.22208011150360107, -0.019137397408485413, -0.13194414973258972, -0.06748330593109131, 1.1606013774871826, -0.26429060101509094, -0.22525140643119812, 0.22537833452224731, -0.03510931879281998 ]
https://github.com/huggingface/datasets/issues/2134
Saving large in-memory datasets with save_to_disk crashes because of pickling
Hi! So I've managed to created a minimum working (well technically crashing) example for the multiprocessing case, I create a huge list of zeros, like in your example, and then I try to .map(None, num_proc=2) over it, which then crashes, here's the code: ```python from datasets import Dataset if __name__ == '__main__': ton_of_zeroes = [0] * ((12 * 8 << 30) // 64) large_dataset = Dataset.from_dict({'col': ton_of_zeroes}) print("Start") large_dataset.map(function=None, num_proc=2) print("Done - should not print") ``` The amount of zeros could probably be reduced, I haven't tried to minimize it to find the breaking point, I just increased it from your code (which by quick glance I assumed tried to allocate over 4 GiB) Running this results in the following traceback: ``` Parameter 'indices'=[ 0 1 2 ... 805306365 805306366 805306367] of the transform datasets.arrow_dataset.Dataset.select couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed. Traceback (most recent call last): File "./crash_multiproc_pickle.py", line 7, in <module> large_dataset.map(function=None, num_proc=2) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` My datasets usually have hundreds of thousands to low millions of rows, with each row containing a list of 10 strings and list of vectors of different length (the strings tokenized), which in the worst case have 10\*512\*8 = 40960 bytes (but usually it is much smaller, as the vectors tend to be shorter. I need these groups of text lines to create training data for the Inverse Cloze Task. Anyway I don't think my particular dataset is relevant, as the tiny script I created also manages to crash. But I think the issue is the same as the save_to_disk, from the traceback it seems that in multiprocessing, it tries to use dill to return the result of the map workers, which tries to pickle the data and can't do it, probably because it's again using the older pickle protocol. That's my guess anyway.
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
832
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` Hi! So I've managed to created a minimum working (well technically crashing) example for the multiprocessing case, I create a huge list of zeros, like in your example, and then I try to .map(None, num_proc=2) over it, which then crashes, here's the code: ```python from datasets import Dataset if __name__ == '__main__': ton_of_zeroes = [0] * ((12 * 8 << 30) // 64) large_dataset = Dataset.from_dict({'col': ton_of_zeroes}) print("Start") large_dataset.map(function=None, num_proc=2) print("Done - should not print") ``` The amount of zeros could probably be reduced, I haven't tried to minimize it to find the breaking point, I just increased it from your code (which by quick glance I assumed tried to allocate over 4 GiB) Running this results in the following traceback: ``` Parameter 'indices'=[ 0 1 2 ... 805306365 805306366 805306367] of the transform datasets.arrow_dataset.Dataset.select couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed. Traceback (most recent call last): File "./crash_multiproc_pickle.py", line 7, in <module> large_dataset.map(function=None, num_proc=2) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` My datasets usually have hundreds of thousands to low millions of rows, with each row containing a list of 10 strings and list of vectors of different length (the strings tokenized), which in the worst case have 10\*512\*8 = 40960 bytes (but usually it is much smaller, as the vectors tend to be shorter. I need these groups of text lines to create training data for the Inverse Cloze Task. Anyway I don't think my particular dataset is relevant, as the tiny script I created also manages to crash. But I think the issue is the same as the save_to_disk, from the traceback it seems that in multiprocessing, it tries to use dill to return the result of the map workers, which tries to pickle the data and can't do it, probably because it's again using the older pickle protocol. That's my guess anyway.
[ -0.3168884515762329, 0.09959512948989868, 0.11978000402450562, 0.3708881139755249, 0.2521231174468994, 0.00212947279214859, -0.28349772095680237, 0.4639681577682495, 0.19055654108524323, 0.09646503627300262, 0.08088354021310806, 0.5146645903587341, -0.39890947937965393, 0.29059863090515137, -0.15748004615306854, -0.08337220549583435, 0.22001703083515167, -0.10456165671348572, -0.261579692363739, 0.17103718221187592, -0.25197601318359375, -0.10099060088396072, 0.020541079342365265, -0.16596435010433197, -0.17123755812644958, -0.3141443729400635, -0.027155324816703796, 0.39561060070991516, -0.319368451833725, -0.3452959358692169, -0.14097623527050018, -0.22311538457870483, 0.2281503826379776, 0.327410489320755, -0.00012185026571387425, 0.03879228234291077, 0.13747429847717285, -0.14756669104099274, -0.4962763786315918, 0.004615411162376404, 0.02535482496023178, -0.5504595637321472, -0.19450446963310242, -0.25041088461875916, 0.33382725715637207, -0.0910535380244255, 0.11852937936782837, -0.37533146142959595, 0.23852257430553436, 0.20618152618408203, 0.14069923758506775, 0.3183521032333374, 0.2884148359298706, -0.02362566813826561, 0.08107957243919373, 0.25323885679244995, -0.2371629923582077, 0.21044452488422394, 0.2143966257572174, 0.09401008486747742, -0.06970564275979996, -0.10630910098552704, -0.048908524215221405, -0.2752487361431122, 0.009119849652051926, -0.07152273505926132, -0.3575339913368225, -0.2352924346923828, 0.1131325364112854, 0.13597288727760315, 0.2058553397655487, -0.4716518819332123, -0.6115646362304688, -0.4440334737300873, -0.09781660884618759, -0.2725955843925476, 0.06730226427316666, 0.2560085356235504, -0.08566631376743317, -0.009138479828834534, -0.14870890974998474, -0.5428614616394043, 0.06505155563354492, 0.09354306757450104, 0.31283387541770935, -0.26405686140060425, -0.2599281668663025, 0.21048051118850708, 0.48274943232536316, -0.2832579016685486, -0.24926990270614624, -0.19898612797260284, 0.024946844205260277, -0.014813547022640705, -0.010005731135606766, -0.16365809738636017, -0.06672852486371994, -0.05315779894590378, 0.2876332104206085, 0.12881994247436523, -0.026449229568243027, 0.16995099186897278, -0.31842851638793945, -0.0102006196975708, 0.3466801941394806, -0.05428563803434372, -0.21047478914260864, 0.3277967572212219, 0.3184903860092163, 0.05116243287920952, 0.1151701956987381, 0.08625688403844833, -0.024431947618722916, -0.19468644261360168, 0.04683777317404747, -0.13934466242790222, 0.14263735711574554, -0.12217148393392563, -0.029800137504935265, 0.17173153162002563, -0.14097046852111816, 0.20416699349880219, -0.032762497663497925, 0.2195822298526764, -0.025977738201618195, 0.06207725405693054, -0.28644317388534546, 0.0794292688369751, -0.15836898982524872, 0.07512909919023514, -0.11702459305524826, 0.19870248436927795, 0.024091962724924088, 0.23534464836120605, 0.13214896619319916, 0.024791831150650978, 0.20726539194583893, -0.015178829431533813, -0.2567569613456726, 0.10972036421298981, 0.06520064920186996, -0.4047945737838745, 0.12669503688812256, 0.2791752219200134, -0.04303266480565071, 0.11162268370389938, 0.0867825448513031, 0.04227375239133835, -0.24079349637031555, 0.1412680298089981, 0.009191393852233887, -0.21043114364147186, -0.04548240453004837, 0.008162172511219978, -0.19343909621238708, -0.1259145587682724, -0.5878509283065796, 0.0739087462425232, 0.3553922772407532, -0.17664086818695068, -0.1262132227420807, -0.2640079855918884, -0.17013627290725708, -0.3441281318664551, 0.0026653148233890533, 0.31275609135627747, -0.34855055809020996, 0.14305412769317627, -0.01811748370528221, 0.17683497071266174, 0.5048041343688965, 0.4281785190105438, 0.01709240861237049, -0.09400885552167892, -0.258446604013443, 0.4258437752723694, 0.20392414927482605, -0.03459269180893898, -0.48217129707336426, 0.1800985038280487, 0.005572415888309479, -0.03282276540994644, -0.12844061851501465, 0.1374111771583557, 0.027889827266335487, -0.020142845809459686, -0.08649356663227081, 0.17512205243110657, 0.020646993070840836, 0.18882836401462555, -0.32328659296035767, -0.42812061309814453, -0.056994855403900146, 0.022981982678174973, -0.06873832643032074, -0.06652335077524185, 0.04380662366747856, -0.2526405453681946, 0.15861600637435913, -0.16420631110668182, 0.2267967164516449, 0.36928313970565796, 0.3107091188430786, -0.14134126901626587, -0.24104301631450653, -0.25406667590141296, -0.3209952712059021, 0.29040586948394775, 0.134623721241951, -0.21288445591926575, -0.2942923307418823, 0.024815838783979416, -0.016007883474230766, 0.034479230642318726, -0.04616610333323479, 0.3929961621761322, -0.0561230406165123, -0.043241165578365326, 0.20988839864730835, 0.197490856051445, -0.09711091220378876, -0.16691923141479492, -0.21900248527526855, 0.12281877547502518, -0.24710287153720856, 0.13664597272872925, -0.05822254717350006, -0.44691383838653564, 0.05689474940299988, -0.025215044617652893, 0.011301256716251373, -0.19039347767829895, -0.056797049939632416, 0.11310446262359619, 0.2439713180065155, -0.03615294396877289, -0.08444570749998093, 0.16410106420516968, 0.047774381935596466, 0.05274393782019615, 0.1824994683265686, -0.01722930744290352, 0.28004372119903564, 0.01963689923286438, -0.18872249126434326, 0.34809744358062744, 0.09262287616729736, 0.14159882068634033, 0.3416215777397156, -0.11529770493507385, 0.051554158329963684, 0.07298299670219421, 0.21041220426559448, -0.17212313413619995, -0.15123170614242554, 0.1688513308763504, 0.3553534150123596, -0.03581855446100235, -0.35657986998558044, 0.04162895679473877, 0.5232874751091003, 0.007155902683734894, 0.41391831636428833, 0.2888953685760498, -0.030078627169132233, -0.17960357666015625, 0.04953775554895401, 0.14898240566253662, 0.48255133628845215, 0.07197792828083038, 0.2031985968351364, -0.04973405599594116, 0.09849527478218079, -0.0927230715751648, 0.04902380704879761, 0.1893739104270935, 0.21433278918266296, 0.2653186321258545, 0.18623629212379456, -0.02254512906074524, -0.39856308698654175, 0.006850820034742355, -0.010328108444809914, 0.24902808666229248, -0.1407553106546402, 0.12291178852319717, -0.3488911986351013, -0.09305749833583832, -0.17560085654258728, 0.0690053254365921, -0.0824645608663559, -0.3389725983142853, -0.29777991771698, 0.3980576694011688, -0.3791888654232025, 0.09527377039194107, -0.08240680396556854, 0.23964564502239227, 0.15884509682655334, 0.019331563264131546, 0.0811561644077301, 0.1053367480635643, -0.1719752848148346, -0.07530054450035095, 0.3932110369205475, -0.17836183309555054, 0.4449951648712158, 0.2942570447921753, -0.25156643986701965, -0.5642059445381165, -0.009631119668483734, 0.09723241627216339, -0.044640637934207916, 0.2913724184036255, 0.15691089630126953, 0.2594355344772339, -0.06370687484741211, 0.1674998551607132, 0.028589794412255287, 0.16790525615215302, -0.20486733317375183, -0.09654858708381653, 0.12497127056121826, 0.11484146118164062, 0.012095298618078232, -0.12148129194974899, -0.3409325182437897, -0.3965243995189667, 0.4174043536186218, -0.03257226198911667, 0.1087353304028511, 0.255563884973526, 0.3698804974555969, 0.33383235335350037, 0.1646704375743866, 0.013167605735361576, -0.07955893129110336, -0.20069007575511932, 0.2692919969558716, 0.07351712882518768, -0.28511470556259155, -0.16854093968868256, 0.11639511585235596, -0.17618894577026367, 0.19634884595870972, -0.29616132378578186, 0.2146085500717163, -0.5010900497436523, 0.17509135603904724, -0.07386953383684158, 0.1984628587961197, 0.3098812997341156, 0.06706657260656357, -0.023270513862371445, 0.09268379956483841, -0.06223033741116524, -0.024926483631134033, 0.3186882436275482, 0.21387121081352234, 0.0005779843777418137, 0.29532626271247864, 0.2987186014652252, 0.6582242250442505, 0.18573559820652008, -0.2299649864435196, 0.5270455479621887, 0.13816319406032562, 0.2322874516248703, -0.2867571711540222, -0.13933829963207245, 0.008317536674439907, -0.38387760519981384, -0.15290094912052155, -0.11361584067344666, -0.07684972137212753, -0.004623323678970337, 0.24871110916137695, -0.019593175500631332, 0.19590532779693604, -0.24337242543697357, 0.2963945269584656, -0.1548439860343933, 0.0354570597410202, -0.047251492738723755, 0.09713893383741379, -0.0689583495259285, 0.04044662043452263, 0.02640816941857338, -0.03123234212398529, 0.47336339950561523, 0.02138781175017357, -0.2703002989292145, -0.08479920774698257, -0.6920449137687683, 0.19753867387771606, 0.1649118959903717, 0.41105201840400696, -0.04303194582462311, -0.332548588514328, -0.19420169293880463, -0.09155000001192093, 0.42732447385787964, -0.08387749642133713, -0.18161579966545105, 0.12261320650577545, -0.06614126265048981, -0.3708953261375427, 0.014026671648025513, 0.04547463729977608, 0.5089049935340881, -0.07496456801891327, 0.6180590987205505, -0.27920347452163696, 0.03599872812628746, -0.06251168251037598, 0.5453645586967468, -0.07982046157121658, 0.06740546226501465, -0.17307215929031372, -0.36235788464546204, -0.42963099479675293, 0.04785008355975151, 0.0823841392993927, -0.02688072808086872, -0.18008999526500702, -0.023699814453721046, -0.1829955130815506, -0.19463777542114258, -0.03070606291294098, -0.2555563151836395, 0.19116336107254028, -0.23267051577568054, 0.2806384563446045, -0.08001285791397095, 0.1896321028470993, 0.6002485156059265, 0.4785459339618683, -0.06649066507816315, -0.10001745820045471, 0.05312121659517288, 0.290965735912323, 0.3145468533039093, 0.27139753103256226, -0.026556532829999924, 0.12825579941272736, 0.10297536849975586, 0.08966279774904251, -0.4230405390262604, 0.2618330717086792, 0.03760529309511185, -0.1594410389661789, -0.4124112129211426, -0.20015373826026917, 0.5952423810958862, 0.2829306125640869, 0.17781083285808563, 0.16295567154884338, 0.032745830714702606, -0.11134319752454758, 0.319530725479126, 0.04688233137130737, 0.7377001643180847, -0.04927350580692291, 0.3859351575374603, 0.14436441659927368, -0.13294140994548798, 0.329908549785614, 0.2714166045188904, -0.018504295498132706, -0.4534931778907776, 0.00808276329189539, 0.06999436020851135, -0.116073839366436, 0.2320917546749115, -0.07742063701152802, -0.22934290766716003, 0.23420512676239014, -0.24646635353565216, -0.34012627601623535, -0.20115403831005096, 0.29748696088790894, -0.45250993967056274, -0.32282575964927673, -0.0318484790623188, 0.0820498839020729, -0.18902787566184998, -0.05203411355614662, 0.038216482847929, -0.02600136771798134, -0.18168799579143524, 0.0875810980796814, -0.379772424697876, 0.07526238262653351, 0.018065741285681725, 0.4964675307273865, -0.20786473155021667, -0.09435906261205673, 0.13735751807689667, 0.033300891518592834, -0.019860468804836273, 0.17301106452941895, -0.12357605993747711, -0.12254641950130463, -0.19234398007392883, -0.025939760729670525, 0.1587093025445938, -0.17497220635414124, 0.35948503017425537, 0.11308873444795609, 0.05937270075082779, -0.018511734902858734, -0.20203353464603424, -0.05457591637969017, -0.17690271139144897, -0.14658524096012115, 0.05778687447309494, -0.287759929895401, -0.6232825517654419, -0.11155419051647186, -0.2177118957042694, -0.30207905173301697, -0.008435646072030067, 0.24675829708576202, 0.1524903029203415, 0.3774368166923523, -0.1662786900997162, -0.013862475752830505, -0.09604629874229431, 0.5426026582717896, -0.2170468270778656, 0.3648031949996948, 0.5068677663803101, 0.17999760806560516, -0.2064274251461029, -0.15997035801410675, 0.3782237768173218, 0.005458607338368893, 0.1507754623889923, 0.5503348708152771, -0.09911686182022095, 0.016937285661697388, -0.1889045238494873, 0.25383448600769043, 0.15056543052196503, -0.3707573115825653, -0.1609153002500534, -0.10646326839923859, -0.5591670274734497, 0.20673930644989014, 0.0927724540233612, 0.39673882722854614, -0.176373690366745, -0.12262508273124695, -0.290354460477829, -0.02800776995718479, -0.13918808102607727, 0.1578175276517868, -0.26768678426742554, 0.0016697347164154053, 0.16584040224552155, -0.01379377394914627, -0.05258902162313461, -0.10075391829013824, -0.05952996015548706, 0.1842210739850998, -0.04861818253993988, -0.07482574135065079, -0.0830293744802475, 0.11724545061588287, 0.22711077332496643, -0.17369142174720764, -0.026616424322128296, -0.3926929831504822, -0.01130148395895958, -0.1907859742641449, 0.02799227461218834, 0.25192466378211975, -0.08854250609874725, 0.11281022429466248, 0.12680618464946747, 0.077730193734169, 0.2172168642282486, 0.23223696649074554, 0.007180057466030121, 0.24556395411491394, 0.02331586927175522, 0.3543139696121216, 0.23113717138767242, -0.20541924238204956, -0.23438991606235504, 0.01848374307155609, 0.2907337546348572, 0.0028010383248329163, 0.30512404441833496, -0.25820302963256836, -0.14234282076358795, 0.25557607412338257, 0.15252576768398285, 0.6202743053436279, -0.13046793639659882, -0.22279587388038635, 0.29988929629325867, 0.08978129178285599, 0.06381441652774811, -0.3358577787876129, 0.09400136768817902, -0.19853182137012482, -0.07038392126560211, 0.03499618172645569, -0.12451338768005371, 0.16479434072971344, -0.8366090059280396, 0.06959997862577438, 0.2907014489173889, 0.08233889192342758, -0.015476778149604797, 0.14859189093112946, 0.02581377699971199, -0.016961563378572464, 0.18717962503433228, 0.06379763036966324, 0.5537105202674866, 0.5625133514404297, -0.08183293789625168, 0.609912097454071, 0.029685650020837784, 0.24464640021324158, -0.016588538885116577, -0.7433132529258728, 0.1946711391210556, 0.4049603343009949, 0.03611009567975998, 0.21617922186851501, 0.008266165852546692, 0.37521567940711975, -0.39508628845214844, -0.3191031515598297, -0.05067171901464462, 0.2922395169734955, -0.37021541595458984, -0.26988083124160767, 0.06887573003768921, -0.1035979837179184, 0.10867470502853394, 0.3668445348739624, -0.26123350858688354, -0.0977838784456253, 0.34558477997779846, -0.024921126663684845, 0.017914287745952606, -0.10972106456756592, 0.09591132402420044, -0.04204605519771576, 0.2890910804271698, -0.3097183406352997, 0.030630892142653465, 0.017491303384304047, -0.17209266126155853, -0.6128517389297485, -0.010683121159672737, 0.5050378441810608, 0.28199905157089233, -0.1961207389831543, -0.0660642459988594, 0.06855204701423645, 0.03033752180635929, -0.12914134562015533, 0.09921512007713318, -0.1238471120595932, 0.19700060784816742, 0.4543984532356262, -0.05041038244962692, -0.03480297699570656, -0.02346746250987053, 0.08829104155302048, 0.29303357005119324, -0.1039106696844101, -0.03219909220933914, -0.07016351819038391, -0.3222334682941437, 0.10691817104816437, 0.12194791436195374, -0.16032105684280396, 0.18983374536037445, 0.5680363178253174, -0.14743424952030182, 0.22582268714904785, 0.08844901621341705, 0.04049375653266907, -0.05267785117030144, 0.7015368342399597, 0.4067876636981964, -0.25606590509414673, -0.4636137783527374, 0.1385057419538498, -0.06901542842388153, -0.002116866409778595, -0.23066741228103638, 0.05363146960735321, -0.18550272285938263, 0.13727706670761108, 0.1532157063484192, 0.02369716390967369, -0.24603943526744843, 0.28593817353248596, -0.014923331327736378, 0.17220017313957214, -0.06512095034122467, -0.31668126583099365, -0.05370127409696579, -0.1375625729560852, 0.09100592136383057, -0.6348482966423035, 0.35380610823631287, 0.007176750339567661, -0.041339412331581116, -0.16188392043113708, -0.14757472276687622, -0.01805059425532818, 0.0729033499956131, 0.5200444459915161, 0.2168368697166443, 0.2093246877193451, -0.20436787605285645, -0.4473116993904114, 0.06675774604082108, -0.06123988702893257, -0.017217915505170822, 0.14868265390396118, -0.19696567952632904, 0.5546965599060059, -0.18386071920394897, 0.65162593126297, -0.3728136420249939, 0.06510579586029053, -0.07924269139766693, 0.019686071202158928, 0.02097615785896778, -0.05939808487892151, -0.0028049349784851074, -0.03364501893520355, 0.1575343757867813, 0.2505611479282379, -0.05955273658037186, 0.19217249751091003, -0.3644733428955078, -0.20292779803276062, 0.44653064012527466, 0.1169656291604042, -0.1790771484375, -0.0937827005982399, -0.034523606300354004, 0.2249455749988556, -0.053438566625118256, -0.5481229424476624, -0.027488574385643005, 0.22503133118152618, 0.006643928587436676, -0.2915824055671692, 0.22208011150360107, -0.019137397408485413, -0.13194414973258972, -0.06748330593109131, 1.1606013774871826, -0.26429060101509094, -0.22525140643119812, 0.22537833452224731, -0.03510931879281998 ]
https://github.com/huggingface/datasets/issues/2134
Saving large in-memory datasets with save_to_disk crashes because of pickling
I just merged a fix #2150 that allows to pickle tables bigger than 4GiB Feel free to try it on the `master` branch !
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
24
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` I just merged a fix #2150 that allows to pickle tables bigger than 4GiB Feel free to try it on the `master` branch !
[ -0.3168884515762329, 0.09959512948989868, 0.11978000402450562, 0.3708881139755249, 0.2521231174468994, 0.00212947279214859, -0.28349772095680237, 0.4639681577682495, 0.19055654108524323, 0.09646503627300262, 0.08088354021310806, 0.5146645903587341, -0.39890947937965393, 0.29059863090515137, -0.15748004615306854, -0.08337220549583435, 0.22001703083515167, -0.10456165671348572, -0.261579692363739, 0.17103718221187592, -0.25197601318359375, -0.10099060088396072, 0.020541079342365265, -0.16596435010433197, -0.17123755812644958, -0.3141443729400635, -0.027155324816703796, 0.39561060070991516, -0.319368451833725, -0.3452959358692169, -0.14097623527050018, -0.22311538457870483, 0.2281503826379776, 0.327410489320755, -0.00012185026571387425, 0.03879228234291077, 0.13747429847717285, -0.14756669104099274, -0.4962763786315918, 0.004615411162376404, 0.02535482496023178, -0.5504595637321472, -0.19450446963310242, -0.25041088461875916, 0.33382725715637207, -0.0910535380244255, 0.11852937936782837, -0.37533146142959595, 0.23852257430553436, 0.20618152618408203, 0.14069923758506775, 0.3183521032333374, 0.2884148359298706, -0.02362566813826561, 0.08107957243919373, 0.25323885679244995, -0.2371629923582077, 0.21044452488422394, 0.2143966257572174, 0.09401008486747742, -0.06970564275979996, -0.10630910098552704, -0.048908524215221405, -0.2752487361431122, 0.009119849652051926, -0.07152273505926132, -0.3575339913368225, -0.2352924346923828, 0.1131325364112854, 0.13597288727760315, 0.2058553397655487, -0.4716518819332123, -0.6115646362304688, -0.4440334737300873, -0.09781660884618759, -0.2725955843925476, 0.06730226427316666, 0.2560085356235504, -0.08566631376743317, -0.009138479828834534, -0.14870890974998474, -0.5428614616394043, 0.06505155563354492, 0.09354306757450104, 0.31283387541770935, -0.26405686140060425, -0.2599281668663025, 0.21048051118850708, 0.48274943232536316, -0.2832579016685486, -0.24926990270614624, -0.19898612797260284, 0.024946844205260277, -0.014813547022640705, -0.010005731135606766, -0.16365809738636017, -0.06672852486371994, -0.05315779894590378, 0.2876332104206085, 0.12881994247436523, -0.026449229568243027, 0.16995099186897278, -0.31842851638793945, -0.0102006196975708, 0.3466801941394806, -0.05428563803434372, -0.21047478914260864, 0.3277967572212219, 0.3184903860092163, 0.05116243287920952, 0.1151701956987381, 0.08625688403844833, -0.024431947618722916, -0.19468644261360168, 0.04683777317404747, -0.13934466242790222, 0.14263735711574554, -0.12217148393392563, -0.029800137504935265, 0.17173153162002563, -0.14097046852111816, 0.20416699349880219, -0.032762497663497925, 0.2195822298526764, -0.025977738201618195, 0.06207725405693054, -0.28644317388534546, 0.0794292688369751, -0.15836898982524872, 0.07512909919023514, -0.11702459305524826, 0.19870248436927795, 0.024091962724924088, 0.23534464836120605, 0.13214896619319916, 0.024791831150650978, 0.20726539194583893, -0.015178829431533813, -0.2567569613456726, 0.10972036421298981, 0.06520064920186996, -0.4047945737838745, 0.12669503688812256, 0.2791752219200134, -0.04303266480565071, 0.11162268370389938, 0.0867825448513031, 0.04227375239133835, -0.24079349637031555, 0.1412680298089981, 0.009191393852233887, -0.21043114364147186, -0.04548240453004837, 0.008162172511219978, -0.19343909621238708, -0.1259145587682724, -0.5878509283065796, 0.0739087462425232, 0.3553922772407532, -0.17664086818695068, -0.1262132227420807, -0.2640079855918884, -0.17013627290725708, -0.3441281318664551, 0.0026653148233890533, 0.31275609135627747, -0.34855055809020996, 0.14305412769317627, -0.01811748370528221, 0.17683497071266174, 0.5048041343688965, 0.4281785190105438, 0.01709240861237049, -0.09400885552167892, -0.258446604013443, 0.4258437752723694, 0.20392414927482605, -0.03459269180893898, -0.48217129707336426, 0.1800985038280487, 0.005572415888309479, -0.03282276540994644, -0.12844061851501465, 0.1374111771583557, 0.027889827266335487, -0.020142845809459686, -0.08649356663227081, 0.17512205243110657, 0.020646993070840836, 0.18882836401462555, -0.32328659296035767, -0.42812061309814453, -0.056994855403900146, 0.022981982678174973, -0.06873832643032074, -0.06652335077524185, 0.04380662366747856, -0.2526405453681946, 0.15861600637435913, -0.16420631110668182, 0.2267967164516449, 0.36928313970565796, 0.3107091188430786, -0.14134126901626587, -0.24104301631450653, -0.25406667590141296, -0.3209952712059021, 0.29040586948394775, 0.134623721241951, -0.21288445591926575, -0.2942923307418823, 0.024815838783979416, -0.016007883474230766, 0.034479230642318726, -0.04616610333323479, 0.3929961621761322, -0.0561230406165123, -0.043241165578365326, 0.20988839864730835, 0.197490856051445, -0.09711091220378876, -0.16691923141479492, -0.21900248527526855, 0.12281877547502518, -0.24710287153720856, 0.13664597272872925, -0.05822254717350006, -0.44691383838653564, 0.05689474940299988, -0.025215044617652893, 0.011301256716251373, -0.19039347767829895, -0.056797049939632416, 0.11310446262359619, 0.2439713180065155, -0.03615294396877289, -0.08444570749998093, 0.16410106420516968, 0.047774381935596466, 0.05274393782019615, 0.1824994683265686, -0.01722930744290352, 0.28004372119903564, 0.01963689923286438, -0.18872249126434326, 0.34809744358062744, 0.09262287616729736, 0.14159882068634033, 0.3416215777397156, -0.11529770493507385, 0.051554158329963684, 0.07298299670219421, 0.21041220426559448, -0.17212313413619995, -0.15123170614242554, 0.1688513308763504, 0.3553534150123596, -0.03581855446100235, -0.35657986998558044, 0.04162895679473877, 0.5232874751091003, 0.007155902683734894, 0.41391831636428833, 0.2888953685760498, -0.030078627169132233, -0.17960357666015625, 0.04953775554895401, 0.14898240566253662, 0.48255133628845215, 0.07197792828083038, 0.2031985968351364, -0.04973405599594116, 0.09849527478218079, -0.0927230715751648, 0.04902380704879761, 0.1893739104270935, 0.21433278918266296, 0.2653186321258545, 0.18623629212379456, -0.02254512906074524, -0.39856308698654175, 0.006850820034742355, -0.010328108444809914, 0.24902808666229248, -0.1407553106546402, 0.12291178852319717, -0.3488911986351013, -0.09305749833583832, -0.17560085654258728, 0.0690053254365921, -0.0824645608663559, -0.3389725983142853, -0.29777991771698, 0.3980576694011688, -0.3791888654232025, 0.09527377039194107, -0.08240680396556854, 0.23964564502239227, 0.15884509682655334, 0.019331563264131546, 0.0811561644077301, 0.1053367480635643, -0.1719752848148346, -0.07530054450035095, 0.3932110369205475, -0.17836183309555054, 0.4449951648712158, 0.2942570447921753, -0.25156643986701965, -0.5642059445381165, -0.009631119668483734, 0.09723241627216339, -0.044640637934207916, 0.2913724184036255, 0.15691089630126953, 0.2594355344772339, -0.06370687484741211, 0.1674998551607132, 0.028589794412255287, 0.16790525615215302, -0.20486733317375183, -0.09654858708381653, 0.12497127056121826, 0.11484146118164062, 0.012095298618078232, -0.12148129194974899, -0.3409325182437897, -0.3965243995189667, 0.4174043536186218, -0.03257226198911667, 0.1087353304028511, 0.255563884973526, 0.3698804974555969, 0.33383235335350037, 0.1646704375743866, 0.013167605735361576, -0.07955893129110336, -0.20069007575511932, 0.2692919969558716, 0.07351712882518768, -0.28511470556259155, -0.16854093968868256, 0.11639511585235596, -0.17618894577026367, 0.19634884595870972, -0.29616132378578186, 0.2146085500717163, -0.5010900497436523, 0.17509135603904724, -0.07386953383684158, 0.1984628587961197, 0.3098812997341156, 0.06706657260656357, -0.023270513862371445, 0.09268379956483841, -0.06223033741116524, -0.024926483631134033, 0.3186882436275482, 0.21387121081352234, 0.0005779843777418137, 0.29532626271247864, 0.2987186014652252, 0.6582242250442505, 0.18573559820652008, -0.2299649864435196, 0.5270455479621887, 0.13816319406032562, 0.2322874516248703, -0.2867571711540222, -0.13933829963207245, 0.008317536674439907, -0.38387760519981384, -0.15290094912052155, -0.11361584067344666, -0.07684972137212753, -0.004623323678970337, 0.24871110916137695, -0.019593175500631332, 0.19590532779693604, -0.24337242543697357, 0.2963945269584656, -0.1548439860343933, 0.0354570597410202, -0.047251492738723755, 0.09713893383741379, -0.0689583495259285, 0.04044662043452263, 0.02640816941857338, -0.03123234212398529, 0.47336339950561523, 0.02138781175017357, -0.2703002989292145, -0.08479920774698257, -0.6920449137687683, 0.19753867387771606, 0.1649118959903717, 0.41105201840400696, -0.04303194582462311, -0.332548588514328, -0.19420169293880463, -0.09155000001192093, 0.42732447385787964, -0.08387749642133713, -0.18161579966545105, 0.12261320650577545, -0.06614126265048981, -0.3708953261375427, 0.014026671648025513, 0.04547463729977608, 0.5089049935340881, -0.07496456801891327, 0.6180590987205505, -0.27920347452163696, 0.03599872812628746, -0.06251168251037598, 0.5453645586967468, -0.07982046157121658, 0.06740546226501465, -0.17307215929031372, -0.36235788464546204, -0.42963099479675293, 0.04785008355975151, 0.0823841392993927, -0.02688072808086872, -0.18008999526500702, -0.023699814453721046, -0.1829955130815506, -0.19463777542114258, -0.03070606291294098, -0.2555563151836395, 0.19116336107254028, -0.23267051577568054, 0.2806384563446045, -0.08001285791397095, 0.1896321028470993, 0.6002485156059265, 0.4785459339618683, -0.06649066507816315, -0.10001745820045471, 0.05312121659517288, 0.290965735912323, 0.3145468533039093, 0.27139753103256226, -0.026556532829999924, 0.12825579941272736, 0.10297536849975586, 0.08966279774904251, -0.4230405390262604, 0.2618330717086792, 0.03760529309511185, -0.1594410389661789, -0.4124112129211426, -0.20015373826026917, 0.5952423810958862, 0.2829306125640869, 0.17781083285808563, 0.16295567154884338, 0.032745830714702606, -0.11134319752454758, 0.319530725479126, 0.04688233137130737, 0.7377001643180847, -0.04927350580692291, 0.3859351575374603, 0.14436441659927368, -0.13294140994548798, 0.329908549785614, 0.2714166045188904, -0.018504295498132706, -0.4534931778907776, 0.00808276329189539, 0.06999436020851135, -0.116073839366436, 0.2320917546749115, -0.07742063701152802, -0.22934290766716003, 0.23420512676239014, -0.24646635353565216, -0.34012627601623535, -0.20115403831005096, 0.29748696088790894, -0.45250993967056274, -0.32282575964927673, -0.0318484790623188, 0.0820498839020729, -0.18902787566184998, -0.05203411355614662, 0.038216482847929, -0.02600136771798134, -0.18168799579143524, 0.0875810980796814, -0.379772424697876, 0.07526238262653351, 0.018065741285681725, 0.4964675307273865, -0.20786473155021667, -0.09435906261205673, 0.13735751807689667, 0.033300891518592834, -0.019860468804836273, 0.17301106452941895, -0.12357605993747711, -0.12254641950130463, -0.19234398007392883, -0.025939760729670525, 0.1587093025445938, -0.17497220635414124, 0.35948503017425537, 0.11308873444795609, 0.05937270075082779, -0.018511734902858734, -0.20203353464603424, -0.05457591637969017, -0.17690271139144897, -0.14658524096012115, 0.05778687447309494, -0.287759929895401, -0.6232825517654419, -0.11155419051647186, -0.2177118957042694, -0.30207905173301697, -0.008435646072030067, 0.24675829708576202, 0.1524903029203415, 0.3774368166923523, -0.1662786900997162, -0.013862475752830505, -0.09604629874229431, 0.5426026582717896, -0.2170468270778656, 0.3648031949996948, 0.5068677663803101, 0.17999760806560516, -0.2064274251461029, -0.15997035801410675, 0.3782237768173218, 0.005458607338368893, 0.1507754623889923, 0.5503348708152771, -0.09911686182022095, 0.016937285661697388, -0.1889045238494873, 0.25383448600769043, 0.15056543052196503, -0.3707573115825653, -0.1609153002500534, -0.10646326839923859, -0.5591670274734497, 0.20673930644989014, 0.0927724540233612, 0.39673882722854614, -0.176373690366745, -0.12262508273124695, -0.290354460477829, -0.02800776995718479, -0.13918808102607727, 0.1578175276517868, -0.26768678426742554, 0.0016697347164154053, 0.16584040224552155, -0.01379377394914627, -0.05258902162313461, -0.10075391829013824, -0.05952996015548706, 0.1842210739850998, -0.04861818253993988, -0.07482574135065079, -0.0830293744802475, 0.11724545061588287, 0.22711077332496643, -0.17369142174720764, -0.026616424322128296, -0.3926929831504822, -0.01130148395895958, -0.1907859742641449, 0.02799227461218834, 0.25192466378211975, -0.08854250609874725, 0.11281022429466248, 0.12680618464946747, 0.077730193734169, 0.2172168642282486, 0.23223696649074554, 0.007180057466030121, 0.24556395411491394, 0.02331586927175522, 0.3543139696121216, 0.23113717138767242, -0.20541924238204956, -0.23438991606235504, 0.01848374307155609, 0.2907337546348572, 0.0028010383248329163, 0.30512404441833496, -0.25820302963256836, -0.14234282076358795, 0.25557607412338257, 0.15252576768398285, 0.6202743053436279, -0.13046793639659882, -0.22279587388038635, 0.29988929629325867, 0.08978129178285599, 0.06381441652774811, -0.3358577787876129, 0.09400136768817902, -0.19853182137012482, -0.07038392126560211, 0.03499618172645569, -0.12451338768005371, 0.16479434072971344, -0.8366090059280396, 0.06959997862577438, 0.2907014489173889, 0.08233889192342758, -0.015476778149604797, 0.14859189093112946, 0.02581377699971199, -0.016961563378572464, 0.18717962503433228, 0.06379763036966324, 0.5537105202674866, 0.5625133514404297, -0.08183293789625168, 0.609912097454071, 0.029685650020837784, 0.24464640021324158, -0.016588538885116577, -0.7433132529258728, 0.1946711391210556, 0.4049603343009949, 0.03611009567975998, 0.21617922186851501, 0.008266165852546692, 0.37521567940711975, -0.39508628845214844, -0.3191031515598297, -0.05067171901464462, 0.2922395169734955, -0.37021541595458984, -0.26988083124160767, 0.06887573003768921, -0.1035979837179184, 0.10867470502853394, 0.3668445348739624, -0.26123350858688354, -0.0977838784456253, 0.34558477997779846, -0.024921126663684845, 0.017914287745952606, -0.10972106456756592, 0.09591132402420044, -0.04204605519771576, 0.2890910804271698, -0.3097183406352997, 0.030630892142653465, 0.017491303384304047, -0.17209266126155853, -0.6128517389297485, -0.010683121159672737, 0.5050378441810608, 0.28199905157089233, -0.1961207389831543, -0.0660642459988594, 0.06855204701423645, 0.03033752180635929, -0.12914134562015533, 0.09921512007713318, -0.1238471120595932, 0.19700060784816742, 0.4543984532356262, -0.05041038244962692, -0.03480297699570656, -0.02346746250987053, 0.08829104155302048, 0.29303357005119324, -0.1039106696844101, -0.03219909220933914, -0.07016351819038391, -0.3222334682941437, 0.10691817104816437, 0.12194791436195374, -0.16032105684280396, 0.18983374536037445, 0.5680363178253174, -0.14743424952030182, 0.22582268714904785, 0.08844901621341705, 0.04049375653266907, -0.05267785117030144, 0.7015368342399597, 0.4067876636981964, -0.25606590509414673, -0.4636137783527374, 0.1385057419538498, -0.06901542842388153, -0.002116866409778595, -0.23066741228103638, 0.05363146960735321, -0.18550272285938263, 0.13727706670761108, 0.1532157063484192, 0.02369716390967369, -0.24603943526744843, 0.28593817353248596, -0.014923331327736378, 0.17220017313957214, -0.06512095034122467, -0.31668126583099365, -0.05370127409696579, -0.1375625729560852, 0.09100592136383057, -0.6348482966423035, 0.35380610823631287, 0.007176750339567661, -0.041339412331581116, -0.16188392043113708, -0.14757472276687622, -0.01805059425532818, 0.0729033499956131, 0.5200444459915161, 0.2168368697166443, 0.2093246877193451, -0.20436787605285645, -0.4473116993904114, 0.06675774604082108, -0.06123988702893257, -0.017217915505170822, 0.14868265390396118, -0.19696567952632904, 0.5546965599060059, -0.18386071920394897, 0.65162593126297, -0.3728136420249939, 0.06510579586029053, -0.07924269139766693, 0.019686071202158928, 0.02097615785896778, -0.05939808487892151, -0.0028049349784851074, -0.03364501893520355, 0.1575343757867813, 0.2505611479282379, -0.05955273658037186, 0.19217249751091003, -0.3644733428955078, -0.20292779803276062, 0.44653064012527466, 0.1169656291604042, -0.1790771484375, -0.0937827005982399, -0.034523606300354004, 0.2249455749988556, -0.053438566625118256, -0.5481229424476624, -0.027488574385643005, 0.22503133118152618, 0.006643928587436676, -0.2915824055671692, 0.22208011150360107, -0.019137397408485413, -0.13194414973258972, -0.06748330593109131, 1.1606013774871826, -0.26429060101509094, -0.22525140643119812, 0.22537833452224731, -0.03510931879281998 ]
https://github.com/huggingface/datasets/issues/2134
Saving large in-memory datasets with save_to_disk crashes because of pickling
awesome! I started getting this error as well when I tried to tokenize with a longer sequence length
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
18
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` awesome! I started getting this error as well when I tried to tokenize with a longer sequence length
[ -0.3168884515762329, 0.09959512948989868, 0.11978000402450562, 0.3708881139755249, 0.2521231174468994, 0.00212947279214859, -0.28349772095680237, 0.4639681577682495, 0.19055654108524323, 0.09646503627300262, 0.08088354021310806, 0.5146645903587341, -0.39890947937965393, 0.29059863090515137, -0.15748004615306854, -0.08337220549583435, 0.22001703083515167, -0.10456165671348572, -0.261579692363739, 0.17103718221187592, -0.25197601318359375, -0.10099060088396072, 0.020541079342365265, -0.16596435010433197, -0.17123755812644958, -0.3141443729400635, -0.027155324816703796, 0.39561060070991516, -0.319368451833725, -0.3452959358692169, -0.14097623527050018, -0.22311538457870483, 0.2281503826379776, 0.327410489320755, -0.00012185026571387425, 0.03879228234291077, 0.13747429847717285, -0.14756669104099274, -0.4962763786315918, 0.004615411162376404, 0.02535482496023178, -0.5504595637321472, -0.19450446963310242, -0.25041088461875916, 0.33382725715637207, -0.0910535380244255, 0.11852937936782837, -0.37533146142959595, 0.23852257430553436, 0.20618152618408203, 0.14069923758506775, 0.3183521032333374, 0.2884148359298706, -0.02362566813826561, 0.08107957243919373, 0.25323885679244995, -0.2371629923582077, 0.21044452488422394, 0.2143966257572174, 0.09401008486747742, -0.06970564275979996, -0.10630910098552704, -0.048908524215221405, -0.2752487361431122, 0.009119849652051926, -0.07152273505926132, -0.3575339913368225, -0.2352924346923828, 0.1131325364112854, 0.13597288727760315, 0.2058553397655487, -0.4716518819332123, -0.6115646362304688, -0.4440334737300873, -0.09781660884618759, -0.2725955843925476, 0.06730226427316666, 0.2560085356235504, -0.08566631376743317, -0.009138479828834534, -0.14870890974998474, -0.5428614616394043, 0.06505155563354492, 0.09354306757450104, 0.31283387541770935, -0.26405686140060425, -0.2599281668663025, 0.21048051118850708, 0.48274943232536316, -0.2832579016685486, -0.24926990270614624, -0.19898612797260284, 0.024946844205260277, -0.014813547022640705, -0.010005731135606766, -0.16365809738636017, -0.06672852486371994, -0.05315779894590378, 0.2876332104206085, 0.12881994247436523, -0.026449229568243027, 0.16995099186897278, -0.31842851638793945, -0.0102006196975708, 0.3466801941394806, -0.05428563803434372, -0.21047478914260864, 0.3277967572212219, 0.3184903860092163, 0.05116243287920952, 0.1151701956987381, 0.08625688403844833, -0.024431947618722916, -0.19468644261360168, 0.04683777317404747, -0.13934466242790222, 0.14263735711574554, -0.12217148393392563, -0.029800137504935265, 0.17173153162002563, -0.14097046852111816, 0.20416699349880219, -0.032762497663497925, 0.2195822298526764, -0.025977738201618195, 0.06207725405693054, -0.28644317388534546, 0.0794292688369751, -0.15836898982524872, 0.07512909919023514, -0.11702459305524826, 0.19870248436927795, 0.024091962724924088, 0.23534464836120605, 0.13214896619319916, 0.024791831150650978, 0.20726539194583893, -0.015178829431533813, -0.2567569613456726, 0.10972036421298981, 0.06520064920186996, -0.4047945737838745, 0.12669503688812256, 0.2791752219200134, -0.04303266480565071, 0.11162268370389938, 0.0867825448513031, 0.04227375239133835, -0.24079349637031555, 0.1412680298089981, 0.009191393852233887, -0.21043114364147186, -0.04548240453004837, 0.008162172511219978, -0.19343909621238708, -0.1259145587682724, -0.5878509283065796, 0.0739087462425232, 0.3553922772407532, -0.17664086818695068, -0.1262132227420807, -0.2640079855918884, -0.17013627290725708, -0.3441281318664551, 0.0026653148233890533, 0.31275609135627747, -0.34855055809020996, 0.14305412769317627, -0.01811748370528221, 0.17683497071266174, 0.5048041343688965, 0.4281785190105438, 0.01709240861237049, -0.09400885552167892, -0.258446604013443, 0.4258437752723694, 0.20392414927482605, -0.03459269180893898, -0.48217129707336426, 0.1800985038280487, 0.005572415888309479, -0.03282276540994644, -0.12844061851501465, 0.1374111771583557, 0.027889827266335487, -0.020142845809459686, -0.08649356663227081, 0.17512205243110657, 0.020646993070840836, 0.18882836401462555, -0.32328659296035767, -0.42812061309814453, -0.056994855403900146, 0.022981982678174973, -0.06873832643032074, -0.06652335077524185, 0.04380662366747856, -0.2526405453681946, 0.15861600637435913, -0.16420631110668182, 0.2267967164516449, 0.36928313970565796, 0.3107091188430786, -0.14134126901626587, -0.24104301631450653, -0.25406667590141296, -0.3209952712059021, 0.29040586948394775, 0.134623721241951, -0.21288445591926575, -0.2942923307418823, 0.024815838783979416, -0.016007883474230766, 0.034479230642318726, -0.04616610333323479, 0.3929961621761322, -0.0561230406165123, -0.043241165578365326, 0.20988839864730835, 0.197490856051445, -0.09711091220378876, -0.16691923141479492, -0.21900248527526855, 0.12281877547502518, -0.24710287153720856, 0.13664597272872925, -0.05822254717350006, -0.44691383838653564, 0.05689474940299988, -0.025215044617652893, 0.011301256716251373, -0.19039347767829895, -0.056797049939632416, 0.11310446262359619, 0.2439713180065155, -0.03615294396877289, -0.08444570749998093, 0.16410106420516968, 0.047774381935596466, 0.05274393782019615, 0.1824994683265686, -0.01722930744290352, 0.28004372119903564, 0.01963689923286438, -0.18872249126434326, 0.34809744358062744, 0.09262287616729736, 0.14159882068634033, 0.3416215777397156, -0.11529770493507385, 0.051554158329963684, 0.07298299670219421, 0.21041220426559448, -0.17212313413619995, -0.15123170614242554, 0.1688513308763504, 0.3553534150123596, -0.03581855446100235, -0.35657986998558044, 0.04162895679473877, 0.5232874751091003, 0.007155902683734894, 0.41391831636428833, 0.2888953685760498, -0.030078627169132233, -0.17960357666015625, 0.04953775554895401, 0.14898240566253662, 0.48255133628845215, 0.07197792828083038, 0.2031985968351364, -0.04973405599594116, 0.09849527478218079, -0.0927230715751648, 0.04902380704879761, 0.1893739104270935, 0.21433278918266296, 0.2653186321258545, 0.18623629212379456, -0.02254512906074524, -0.39856308698654175, 0.006850820034742355, -0.010328108444809914, 0.24902808666229248, -0.1407553106546402, 0.12291178852319717, -0.3488911986351013, -0.09305749833583832, -0.17560085654258728, 0.0690053254365921, -0.0824645608663559, -0.3389725983142853, -0.29777991771698, 0.3980576694011688, -0.3791888654232025, 0.09527377039194107, -0.08240680396556854, 0.23964564502239227, 0.15884509682655334, 0.019331563264131546, 0.0811561644077301, 0.1053367480635643, -0.1719752848148346, -0.07530054450035095, 0.3932110369205475, -0.17836183309555054, 0.4449951648712158, 0.2942570447921753, -0.25156643986701965, -0.5642059445381165, -0.009631119668483734, 0.09723241627216339, -0.044640637934207916, 0.2913724184036255, 0.15691089630126953, 0.2594355344772339, -0.06370687484741211, 0.1674998551607132, 0.028589794412255287, 0.16790525615215302, -0.20486733317375183, -0.09654858708381653, 0.12497127056121826, 0.11484146118164062, 0.012095298618078232, -0.12148129194974899, -0.3409325182437897, -0.3965243995189667, 0.4174043536186218, -0.03257226198911667, 0.1087353304028511, 0.255563884973526, 0.3698804974555969, 0.33383235335350037, 0.1646704375743866, 0.013167605735361576, -0.07955893129110336, -0.20069007575511932, 0.2692919969558716, 0.07351712882518768, -0.28511470556259155, -0.16854093968868256, 0.11639511585235596, -0.17618894577026367, 0.19634884595870972, -0.29616132378578186, 0.2146085500717163, -0.5010900497436523, 0.17509135603904724, -0.07386953383684158, 0.1984628587961197, 0.3098812997341156, 0.06706657260656357, -0.023270513862371445, 0.09268379956483841, -0.06223033741116524, -0.024926483631134033, 0.3186882436275482, 0.21387121081352234, 0.0005779843777418137, 0.29532626271247864, 0.2987186014652252, 0.6582242250442505, 0.18573559820652008, -0.2299649864435196, 0.5270455479621887, 0.13816319406032562, 0.2322874516248703, -0.2867571711540222, -0.13933829963207245, 0.008317536674439907, -0.38387760519981384, -0.15290094912052155, -0.11361584067344666, -0.07684972137212753, -0.004623323678970337, 0.24871110916137695, -0.019593175500631332, 0.19590532779693604, -0.24337242543697357, 0.2963945269584656, -0.1548439860343933, 0.0354570597410202, -0.047251492738723755, 0.09713893383741379, -0.0689583495259285, 0.04044662043452263, 0.02640816941857338, -0.03123234212398529, 0.47336339950561523, 0.02138781175017357, -0.2703002989292145, -0.08479920774698257, -0.6920449137687683, 0.19753867387771606, 0.1649118959903717, 0.41105201840400696, -0.04303194582462311, -0.332548588514328, -0.19420169293880463, -0.09155000001192093, 0.42732447385787964, -0.08387749642133713, -0.18161579966545105, 0.12261320650577545, -0.06614126265048981, -0.3708953261375427, 0.014026671648025513, 0.04547463729977608, 0.5089049935340881, -0.07496456801891327, 0.6180590987205505, -0.27920347452163696, 0.03599872812628746, -0.06251168251037598, 0.5453645586967468, -0.07982046157121658, 0.06740546226501465, -0.17307215929031372, -0.36235788464546204, -0.42963099479675293, 0.04785008355975151, 0.0823841392993927, -0.02688072808086872, -0.18008999526500702, -0.023699814453721046, -0.1829955130815506, -0.19463777542114258, -0.03070606291294098, -0.2555563151836395, 0.19116336107254028, -0.23267051577568054, 0.2806384563446045, -0.08001285791397095, 0.1896321028470993, 0.6002485156059265, 0.4785459339618683, -0.06649066507816315, -0.10001745820045471, 0.05312121659517288, 0.290965735912323, 0.3145468533039093, 0.27139753103256226, -0.026556532829999924, 0.12825579941272736, 0.10297536849975586, 0.08966279774904251, -0.4230405390262604, 0.2618330717086792, 0.03760529309511185, -0.1594410389661789, -0.4124112129211426, -0.20015373826026917, 0.5952423810958862, 0.2829306125640869, 0.17781083285808563, 0.16295567154884338, 0.032745830714702606, -0.11134319752454758, 0.319530725479126, 0.04688233137130737, 0.7377001643180847, -0.04927350580692291, 0.3859351575374603, 0.14436441659927368, -0.13294140994548798, 0.329908549785614, 0.2714166045188904, -0.018504295498132706, -0.4534931778907776, 0.00808276329189539, 0.06999436020851135, -0.116073839366436, 0.2320917546749115, -0.07742063701152802, -0.22934290766716003, 0.23420512676239014, -0.24646635353565216, -0.34012627601623535, -0.20115403831005096, 0.29748696088790894, -0.45250993967056274, -0.32282575964927673, -0.0318484790623188, 0.0820498839020729, -0.18902787566184998, -0.05203411355614662, 0.038216482847929, -0.02600136771798134, -0.18168799579143524, 0.0875810980796814, -0.379772424697876, 0.07526238262653351, 0.018065741285681725, 0.4964675307273865, -0.20786473155021667, -0.09435906261205673, 0.13735751807689667, 0.033300891518592834, -0.019860468804836273, 0.17301106452941895, -0.12357605993747711, -0.12254641950130463, -0.19234398007392883, -0.025939760729670525, 0.1587093025445938, -0.17497220635414124, 0.35948503017425537, 0.11308873444795609, 0.05937270075082779, -0.018511734902858734, -0.20203353464603424, -0.05457591637969017, -0.17690271139144897, -0.14658524096012115, 0.05778687447309494, -0.287759929895401, -0.6232825517654419, -0.11155419051647186, -0.2177118957042694, -0.30207905173301697, -0.008435646072030067, 0.24675829708576202, 0.1524903029203415, 0.3774368166923523, -0.1662786900997162, -0.013862475752830505, -0.09604629874229431, 0.5426026582717896, -0.2170468270778656, 0.3648031949996948, 0.5068677663803101, 0.17999760806560516, -0.2064274251461029, -0.15997035801410675, 0.3782237768173218, 0.005458607338368893, 0.1507754623889923, 0.5503348708152771, -0.09911686182022095, 0.016937285661697388, -0.1889045238494873, 0.25383448600769043, 0.15056543052196503, -0.3707573115825653, -0.1609153002500534, -0.10646326839923859, -0.5591670274734497, 0.20673930644989014, 0.0927724540233612, 0.39673882722854614, -0.176373690366745, -0.12262508273124695, -0.290354460477829, -0.02800776995718479, -0.13918808102607727, 0.1578175276517868, -0.26768678426742554, 0.0016697347164154053, 0.16584040224552155, -0.01379377394914627, -0.05258902162313461, -0.10075391829013824, -0.05952996015548706, 0.1842210739850998, -0.04861818253993988, -0.07482574135065079, -0.0830293744802475, 0.11724545061588287, 0.22711077332496643, -0.17369142174720764, -0.026616424322128296, -0.3926929831504822, -0.01130148395895958, -0.1907859742641449, 0.02799227461218834, 0.25192466378211975, -0.08854250609874725, 0.11281022429466248, 0.12680618464946747, 0.077730193734169, 0.2172168642282486, 0.23223696649074554, 0.007180057466030121, 0.24556395411491394, 0.02331586927175522, 0.3543139696121216, 0.23113717138767242, -0.20541924238204956, -0.23438991606235504, 0.01848374307155609, 0.2907337546348572, 0.0028010383248329163, 0.30512404441833496, -0.25820302963256836, -0.14234282076358795, 0.25557607412338257, 0.15252576768398285, 0.6202743053436279, -0.13046793639659882, -0.22279587388038635, 0.29988929629325867, 0.08978129178285599, 0.06381441652774811, -0.3358577787876129, 0.09400136768817902, -0.19853182137012482, -0.07038392126560211, 0.03499618172645569, -0.12451338768005371, 0.16479434072971344, -0.8366090059280396, 0.06959997862577438, 0.2907014489173889, 0.08233889192342758, -0.015476778149604797, 0.14859189093112946, 0.02581377699971199, -0.016961563378572464, 0.18717962503433228, 0.06379763036966324, 0.5537105202674866, 0.5625133514404297, -0.08183293789625168, 0.609912097454071, 0.029685650020837784, 0.24464640021324158, -0.016588538885116577, -0.7433132529258728, 0.1946711391210556, 0.4049603343009949, 0.03611009567975998, 0.21617922186851501, 0.008266165852546692, 0.37521567940711975, -0.39508628845214844, -0.3191031515598297, -0.05067171901464462, 0.2922395169734955, -0.37021541595458984, -0.26988083124160767, 0.06887573003768921, -0.1035979837179184, 0.10867470502853394, 0.3668445348739624, -0.26123350858688354, -0.0977838784456253, 0.34558477997779846, -0.024921126663684845, 0.017914287745952606, -0.10972106456756592, 0.09591132402420044, -0.04204605519771576, 0.2890910804271698, -0.3097183406352997, 0.030630892142653465, 0.017491303384304047, -0.17209266126155853, -0.6128517389297485, -0.010683121159672737, 0.5050378441810608, 0.28199905157089233, -0.1961207389831543, -0.0660642459988594, 0.06855204701423645, 0.03033752180635929, -0.12914134562015533, 0.09921512007713318, -0.1238471120595932, 0.19700060784816742, 0.4543984532356262, -0.05041038244962692, -0.03480297699570656, -0.02346746250987053, 0.08829104155302048, 0.29303357005119324, -0.1039106696844101, -0.03219909220933914, -0.07016351819038391, -0.3222334682941437, 0.10691817104816437, 0.12194791436195374, -0.16032105684280396, 0.18983374536037445, 0.5680363178253174, -0.14743424952030182, 0.22582268714904785, 0.08844901621341705, 0.04049375653266907, -0.05267785117030144, 0.7015368342399597, 0.4067876636981964, -0.25606590509414673, -0.4636137783527374, 0.1385057419538498, -0.06901542842388153, -0.002116866409778595, -0.23066741228103638, 0.05363146960735321, -0.18550272285938263, 0.13727706670761108, 0.1532157063484192, 0.02369716390967369, -0.24603943526744843, 0.28593817353248596, -0.014923331327736378, 0.17220017313957214, -0.06512095034122467, -0.31668126583099365, -0.05370127409696579, -0.1375625729560852, 0.09100592136383057, -0.6348482966423035, 0.35380610823631287, 0.007176750339567661, -0.041339412331581116, -0.16188392043113708, -0.14757472276687622, -0.01805059425532818, 0.0729033499956131, 0.5200444459915161, 0.2168368697166443, 0.2093246877193451, -0.20436787605285645, -0.4473116993904114, 0.06675774604082108, -0.06123988702893257, -0.017217915505170822, 0.14868265390396118, -0.19696567952632904, 0.5546965599060059, -0.18386071920394897, 0.65162593126297, -0.3728136420249939, 0.06510579586029053, -0.07924269139766693, 0.019686071202158928, 0.02097615785896778, -0.05939808487892151, -0.0028049349784851074, -0.03364501893520355, 0.1575343757867813, 0.2505611479282379, -0.05955273658037186, 0.19217249751091003, -0.3644733428955078, -0.20292779803276062, 0.44653064012527466, 0.1169656291604042, -0.1790771484375, -0.0937827005982399, -0.034523606300354004, 0.2249455749988556, -0.053438566625118256, -0.5481229424476624, -0.027488574385643005, 0.22503133118152618, 0.006643928587436676, -0.2915824055671692, 0.22208011150360107, -0.019137397408485413, -0.13194414973258972, -0.06748330593109131, 1.1606013774871826, -0.26429060101509094, -0.22525140643119812, 0.22537833452224731, -0.03510931879281998 ]
https://github.com/huggingface/datasets/issues/2134
Saving large in-memory datasets with save_to_disk crashes because of pickling
@prokopCerny does this fix work for you? I found that with the latest master, my container with 500GB RAM starts crashing when I try to map a large dataset using `num_proc`. @lhoestq would it be possible to implement some logic to keep the individual cache files small (say below 100mb)? I find this helps with loading large datasets, but the "hack" I was using (increasing `num_proc` to a large number) doesn't work anymore with the latest master; my container crashes even with `num_proc=200` now
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
84
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` @prokopCerny does this fix work for you? I found that with the latest master, my container with 500GB RAM starts crashing when I try to map a large dataset using `num_proc`. @lhoestq would it be possible to implement some logic to keep the individual cache files small (say below 100mb)? I find this helps with loading large datasets, but the "hack" I was using (increasing `num_proc` to a large number) doesn't work anymore with the latest master; my container crashes even with `num_proc=200` now
[ -0.3168884515762329, 0.09959512948989868, 0.11978000402450562, 0.3708881139755249, 0.2521231174468994, 0.00212947279214859, -0.28349772095680237, 0.4639681577682495, 0.19055654108524323, 0.09646503627300262, 0.08088354021310806, 0.5146645903587341, -0.39890947937965393, 0.29059863090515137, -0.15748004615306854, -0.08337220549583435, 0.22001703083515167, -0.10456165671348572, -0.261579692363739, 0.17103718221187592, -0.25197601318359375, -0.10099060088396072, 0.020541079342365265, -0.16596435010433197, -0.17123755812644958, -0.3141443729400635, -0.027155324816703796, 0.39561060070991516, -0.319368451833725, -0.3452959358692169, -0.14097623527050018, -0.22311538457870483, 0.2281503826379776, 0.327410489320755, -0.00012185026571387425, 0.03879228234291077, 0.13747429847717285, -0.14756669104099274, -0.4962763786315918, 0.004615411162376404, 0.02535482496023178, -0.5504595637321472, -0.19450446963310242, -0.25041088461875916, 0.33382725715637207, -0.0910535380244255, 0.11852937936782837, -0.37533146142959595, 0.23852257430553436, 0.20618152618408203, 0.14069923758506775, 0.3183521032333374, 0.2884148359298706, -0.02362566813826561, 0.08107957243919373, 0.25323885679244995, -0.2371629923582077, 0.21044452488422394, 0.2143966257572174, 0.09401008486747742, -0.06970564275979996, -0.10630910098552704, -0.048908524215221405, -0.2752487361431122, 0.009119849652051926, -0.07152273505926132, -0.3575339913368225, -0.2352924346923828, 0.1131325364112854, 0.13597288727760315, 0.2058553397655487, -0.4716518819332123, -0.6115646362304688, -0.4440334737300873, -0.09781660884618759, -0.2725955843925476, 0.06730226427316666, 0.2560085356235504, -0.08566631376743317, -0.009138479828834534, -0.14870890974998474, -0.5428614616394043, 0.06505155563354492, 0.09354306757450104, 0.31283387541770935, -0.26405686140060425, -0.2599281668663025, 0.21048051118850708, 0.48274943232536316, -0.2832579016685486, -0.24926990270614624, -0.19898612797260284, 0.024946844205260277, -0.014813547022640705, -0.010005731135606766, -0.16365809738636017, -0.06672852486371994, -0.05315779894590378, 0.2876332104206085, 0.12881994247436523, -0.026449229568243027, 0.16995099186897278, -0.31842851638793945, -0.0102006196975708, 0.3466801941394806, -0.05428563803434372, -0.21047478914260864, 0.3277967572212219, 0.3184903860092163, 0.05116243287920952, 0.1151701956987381, 0.08625688403844833, -0.024431947618722916, -0.19468644261360168, 0.04683777317404747, -0.13934466242790222, 0.14263735711574554, -0.12217148393392563, -0.029800137504935265, 0.17173153162002563, -0.14097046852111816, 0.20416699349880219, -0.032762497663497925, 0.2195822298526764, -0.025977738201618195, 0.06207725405693054, -0.28644317388534546, 0.0794292688369751, -0.15836898982524872, 0.07512909919023514, -0.11702459305524826, 0.19870248436927795, 0.024091962724924088, 0.23534464836120605, 0.13214896619319916, 0.024791831150650978, 0.20726539194583893, -0.015178829431533813, -0.2567569613456726, 0.10972036421298981, 0.06520064920186996, -0.4047945737838745, 0.12669503688812256, 0.2791752219200134, -0.04303266480565071, 0.11162268370389938, 0.0867825448513031, 0.04227375239133835, -0.24079349637031555, 0.1412680298089981, 0.009191393852233887, -0.21043114364147186, -0.04548240453004837, 0.008162172511219978, -0.19343909621238708, -0.1259145587682724, -0.5878509283065796, 0.0739087462425232, 0.3553922772407532, -0.17664086818695068, -0.1262132227420807, -0.2640079855918884, -0.17013627290725708, -0.3441281318664551, 0.0026653148233890533, 0.31275609135627747, -0.34855055809020996, 0.14305412769317627, -0.01811748370528221, 0.17683497071266174, 0.5048041343688965, 0.4281785190105438, 0.01709240861237049, -0.09400885552167892, -0.258446604013443, 0.4258437752723694, 0.20392414927482605, -0.03459269180893898, -0.48217129707336426, 0.1800985038280487, 0.005572415888309479, -0.03282276540994644, -0.12844061851501465, 0.1374111771583557, 0.027889827266335487, -0.020142845809459686, -0.08649356663227081, 0.17512205243110657, 0.020646993070840836, 0.18882836401462555, -0.32328659296035767, -0.42812061309814453, -0.056994855403900146, 0.022981982678174973, -0.06873832643032074, -0.06652335077524185, 0.04380662366747856, -0.2526405453681946, 0.15861600637435913, -0.16420631110668182, 0.2267967164516449, 0.36928313970565796, 0.3107091188430786, -0.14134126901626587, -0.24104301631450653, -0.25406667590141296, -0.3209952712059021, 0.29040586948394775, 0.134623721241951, -0.21288445591926575, -0.2942923307418823, 0.024815838783979416, -0.016007883474230766, 0.034479230642318726, -0.04616610333323479, 0.3929961621761322, -0.0561230406165123, -0.043241165578365326, 0.20988839864730835, 0.197490856051445, -0.09711091220378876, -0.16691923141479492, -0.21900248527526855, 0.12281877547502518, -0.24710287153720856, 0.13664597272872925, -0.05822254717350006, -0.44691383838653564, 0.05689474940299988, -0.025215044617652893, 0.011301256716251373, -0.19039347767829895, -0.056797049939632416, 0.11310446262359619, 0.2439713180065155, -0.03615294396877289, -0.08444570749998093, 0.16410106420516968, 0.047774381935596466, 0.05274393782019615, 0.1824994683265686, -0.01722930744290352, 0.28004372119903564, 0.01963689923286438, -0.18872249126434326, 0.34809744358062744, 0.09262287616729736, 0.14159882068634033, 0.3416215777397156, -0.11529770493507385, 0.051554158329963684, 0.07298299670219421, 0.21041220426559448, -0.17212313413619995, -0.15123170614242554, 0.1688513308763504, 0.3553534150123596, -0.03581855446100235, -0.35657986998558044, 0.04162895679473877, 0.5232874751091003, 0.007155902683734894, 0.41391831636428833, 0.2888953685760498, -0.030078627169132233, -0.17960357666015625, 0.04953775554895401, 0.14898240566253662, 0.48255133628845215, 0.07197792828083038, 0.2031985968351364, -0.04973405599594116, 0.09849527478218079, -0.0927230715751648, 0.04902380704879761, 0.1893739104270935, 0.21433278918266296, 0.2653186321258545, 0.18623629212379456, -0.02254512906074524, -0.39856308698654175, 0.006850820034742355, -0.010328108444809914, 0.24902808666229248, -0.1407553106546402, 0.12291178852319717, -0.3488911986351013, -0.09305749833583832, -0.17560085654258728, 0.0690053254365921, -0.0824645608663559, -0.3389725983142853, -0.29777991771698, 0.3980576694011688, -0.3791888654232025, 0.09527377039194107, -0.08240680396556854, 0.23964564502239227, 0.15884509682655334, 0.019331563264131546, 0.0811561644077301, 0.1053367480635643, -0.1719752848148346, -0.07530054450035095, 0.3932110369205475, -0.17836183309555054, 0.4449951648712158, 0.2942570447921753, -0.25156643986701965, -0.5642059445381165, -0.009631119668483734, 0.09723241627216339, -0.044640637934207916, 0.2913724184036255, 0.15691089630126953, 0.2594355344772339, -0.06370687484741211, 0.1674998551607132, 0.028589794412255287, 0.16790525615215302, -0.20486733317375183, -0.09654858708381653, 0.12497127056121826, 0.11484146118164062, 0.012095298618078232, -0.12148129194974899, -0.3409325182437897, -0.3965243995189667, 0.4174043536186218, -0.03257226198911667, 0.1087353304028511, 0.255563884973526, 0.3698804974555969, 0.33383235335350037, 0.1646704375743866, 0.013167605735361576, -0.07955893129110336, -0.20069007575511932, 0.2692919969558716, 0.07351712882518768, -0.28511470556259155, -0.16854093968868256, 0.11639511585235596, -0.17618894577026367, 0.19634884595870972, -0.29616132378578186, 0.2146085500717163, -0.5010900497436523, 0.17509135603904724, -0.07386953383684158, 0.1984628587961197, 0.3098812997341156, 0.06706657260656357, -0.023270513862371445, 0.09268379956483841, -0.06223033741116524, -0.024926483631134033, 0.3186882436275482, 0.21387121081352234, 0.0005779843777418137, 0.29532626271247864, 0.2987186014652252, 0.6582242250442505, 0.18573559820652008, -0.2299649864435196, 0.5270455479621887, 0.13816319406032562, 0.2322874516248703, -0.2867571711540222, -0.13933829963207245, 0.008317536674439907, -0.38387760519981384, -0.15290094912052155, -0.11361584067344666, -0.07684972137212753, -0.004623323678970337, 0.24871110916137695, -0.019593175500631332, 0.19590532779693604, -0.24337242543697357, 0.2963945269584656, -0.1548439860343933, 0.0354570597410202, -0.047251492738723755, 0.09713893383741379, -0.0689583495259285, 0.04044662043452263, 0.02640816941857338, -0.03123234212398529, 0.47336339950561523, 0.02138781175017357, -0.2703002989292145, -0.08479920774698257, -0.6920449137687683, 0.19753867387771606, 0.1649118959903717, 0.41105201840400696, -0.04303194582462311, -0.332548588514328, -0.19420169293880463, -0.09155000001192093, 0.42732447385787964, -0.08387749642133713, -0.18161579966545105, 0.12261320650577545, -0.06614126265048981, -0.3708953261375427, 0.014026671648025513, 0.04547463729977608, 0.5089049935340881, -0.07496456801891327, 0.6180590987205505, -0.27920347452163696, 0.03599872812628746, -0.06251168251037598, 0.5453645586967468, -0.07982046157121658, 0.06740546226501465, -0.17307215929031372, -0.36235788464546204, -0.42963099479675293, 0.04785008355975151, 0.0823841392993927, -0.02688072808086872, -0.18008999526500702, -0.023699814453721046, -0.1829955130815506, -0.19463777542114258, -0.03070606291294098, -0.2555563151836395, 0.19116336107254028, -0.23267051577568054, 0.2806384563446045, -0.08001285791397095, 0.1896321028470993, 0.6002485156059265, 0.4785459339618683, -0.06649066507816315, -0.10001745820045471, 0.05312121659517288, 0.290965735912323, 0.3145468533039093, 0.27139753103256226, -0.026556532829999924, 0.12825579941272736, 0.10297536849975586, 0.08966279774904251, -0.4230405390262604, 0.2618330717086792, 0.03760529309511185, -0.1594410389661789, -0.4124112129211426, -0.20015373826026917, 0.5952423810958862, 0.2829306125640869, 0.17781083285808563, 0.16295567154884338, 0.032745830714702606, -0.11134319752454758, 0.319530725479126, 0.04688233137130737, 0.7377001643180847, -0.04927350580692291, 0.3859351575374603, 0.14436441659927368, -0.13294140994548798, 0.329908549785614, 0.2714166045188904, -0.018504295498132706, -0.4534931778907776, 0.00808276329189539, 0.06999436020851135, -0.116073839366436, 0.2320917546749115, -0.07742063701152802, -0.22934290766716003, 0.23420512676239014, -0.24646635353565216, -0.34012627601623535, -0.20115403831005096, 0.29748696088790894, -0.45250993967056274, -0.32282575964927673, -0.0318484790623188, 0.0820498839020729, -0.18902787566184998, -0.05203411355614662, 0.038216482847929, -0.02600136771798134, -0.18168799579143524, 0.0875810980796814, -0.379772424697876, 0.07526238262653351, 0.018065741285681725, 0.4964675307273865, -0.20786473155021667, -0.09435906261205673, 0.13735751807689667, 0.033300891518592834, -0.019860468804836273, 0.17301106452941895, -0.12357605993747711, -0.12254641950130463, -0.19234398007392883, -0.025939760729670525, 0.1587093025445938, -0.17497220635414124, 0.35948503017425537, 0.11308873444795609, 0.05937270075082779, -0.018511734902858734, -0.20203353464603424, -0.05457591637969017, -0.17690271139144897, -0.14658524096012115, 0.05778687447309494, -0.287759929895401, -0.6232825517654419, -0.11155419051647186, -0.2177118957042694, -0.30207905173301697, -0.008435646072030067, 0.24675829708576202, 0.1524903029203415, 0.3774368166923523, -0.1662786900997162, -0.013862475752830505, -0.09604629874229431, 0.5426026582717896, -0.2170468270778656, 0.3648031949996948, 0.5068677663803101, 0.17999760806560516, -0.2064274251461029, -0.15997035801410675, 0.3782237768173218, 0.005458607338368893, 0.1507754623889923, 0.5503348708152771, -0.09911686182022095, 0.016937285661697388, -0.1889045238494873, 0.25383448600769043, 0.15056543052196503, -0.3707573115825653, -0.1609153002500534, -0.10646326839923859, -0.5591670274734497, 0.20673930644989014, 0.0927724540233612, 0.39673882722854614, -0.176373690366745, -0.12262508273124695, -0.290354460477829, -0.02800776995718479, -0.13918808102607727, 0.1578175276517868, -0.26768678426742554, 0.0016697347164154053, 0.16584040224552155, -0.01379377394914627, -0.05258902162313461, -0.10075391829013824, -0.05952996015548706, 0.1842210739850998, -0.04861818253993988, -0.07482574135065079, -0.0830293744802475, 0.11724545061588287, 0.22711077332496643, -0.17369142174720764, -0.026616424322128296, -0.3926929831504822, -0.01130148395895958, -0.1907859742641449, 0.02799227461218834, 0.25192466378211975, -0.08854250609874725, 0.11281022429466248, 0.12680618464946747, 0.077730193734169, 0.2172168642282486, 0.23223696649074554, 0.007180057466030121, 0.24556395411491394, 0.02331586927175522, 0.3543139696121216, 0.23113717138767242, -0.20541924238204956, -0.23438991606235504, 0.01848374307155609, 0.2907337546348572, 0.0028010383248329163, 0.30512404441833496, -0.25820302963256836, -0.14234282076358795, 0.25557607412338257, 0.15252576768398285, 0.6202743053436279, -0.13046793639659882, -0.22279587388038635, 0.29988929629325867, 0.08978129178285599, 0.06381441652774811, -0.3358577787876129, 0.09400136768817902, -0.19853182137012482, -0.07038392126560211, 0.03499618172645569, -0.12451338768005371, 0.16479434072971344, -0.8366090059280396, 0.06959997862577438, 0.2907014489173889, 0.08233889192342758, -0.015476778149604797, 0.14859189093112946, 0.02581377699971199, -0.016961563378572464, 0.18717962503433228, 0.06379763036966324, 0.5537105202674866, 0.5625133514404297, -0.08183293789625168, 0.609912097454071, 0.029685650020837784, 0.24464640021324158, -0.016588538885116577, -0.7433132529258728, 0.1946711391210556, 0.4049603343009949, 0.03611009567975998, 0.21617922186851501, 0.008266165852546692, 0.37521567940711975, -0.39508628845214844, -0.3191031515598297, -0.05067171901464462, 0.2922395169734955, -0.37021541595458984, -0.26988083124160767, 0.06887573003768921, -0.1035979837179184, 0.10867470502853394, 0.3668445348739624, -0.26123350858688354, -0.0977838784456253, 0.34558477997779846, -0.024921126663684845, 0.017914287745952606, -0.10972106456756592, 0.09591132402420044, -0.04204605519771576, 0.2890910804271698, -0.3097183406352997, 0.030630892142653465, 0.017491303384304047, -0.17209266126155853, -0.6128517389297485, -0.010683121159672737, 0.5050378441810608, 0.28199905157089233, -0.1961207389831543, -0.0660642459988594, 0.06855204701423645, 0.03033752180635929, -0.12914134562015533, 0.09921512007713318, -0.1238471120595932, 0.19700060784816742, 0.4543984532356262, -0.05041038244962692, -0.03480297699570656, -0.02346746250987053, 0.08829104155302048, 0.29303357005119324, -0.1039106696844101, -0.03219909220933914, -0.07016351819038391, -0.3222334682941437, 0.10691817104816437, 0.12194791436195374, -0.16032105684280396, 0.18983374536037445, 0.5680363178253174, -0.14743424952030182, 0.22582268714904785, 0.08844901621341705, 0.04049375653266907, -0.05267785117030144, 0.7015368342399597, 0.4067876636981964, -0.25606590509414673, -0.4636137783527374, 0.1385057419538498, -0.06901542842388153, -0.002116866409778595, -0.23066741228103638, 0.05363146960735321, -0.18550272285938263, 0.13727706670761108, 0.1532157063484192, 0.02369716390967369, -0.24603943526744843, 0.28593817353248596, -0.014923331327736378, 0.17220017313957214, -0.06512095034122467, -0.31668126583099365, -0.05370127409696579, -0.1375625729560852, 0.09100592136383057, -0.6348482966423035, 0.35380610823631287, 0.007176750339567661, -0.041339412331581116, -0.16188392043113708, -0.14757472276687622, -0.01805059425532818, 0.0729033499956131, 0.5200444459915161, 0.2168368697166443, 0.2093246877193451, -0.20436787605285645, -0.4473116993904114, 0.06675774604082108, -0.06123988702893257, -0.017217915505170822, 0.14868265390396118, -0.19696567952632904, 0.5546965599060059, -0.18386071920394897, 0.65162593126297, -0.3728136420249939, 0.06510579586029053, -0.07924269139766693, 0.019686071202158928, 0.02097615785896778, -0.05939808487892151, -0.0028049349784851074, -0.03364501893520355, 0.1575343757867813, 0.2505611479282379, -0.05955273658037186, 0.19217249751091003, -0.3644733428955078, -0.20292779803276062, 0.44653064012527466, 0.1169656291604042, -0.1790771484375, -0.0937827005982399, -0.034523606300354004, 0.2249455749988556, -0.053438566625118256, -0.5481229424476624, -0.027488574385643005, 0.22503133118152618, 0.006643928587436676, -0.2915824055671692, 0.22208011150360107, -0.019137397408485413, -0.13194414973258972, -0.06748330593109131, 1.1606013774871826, -0.26429060101509094, -0.22525140643119812, 0.22537833452224731, -0.03510931879281998 ]
https://github.com/huggingface/datasets/issues/2134
Saving large in-memory datasets with save_to_disk crashes because of pickling
Closing since the original issue was fixed in #2150 Feel free to reopen if you are still experiencing it. For the other problems, please open separate issues
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
27
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` Closing since the original issue was fixed in #2150 Feel free to reopen if you are still experiencing it. For the other problems, please open separate issues
[ -0.3168884515762329, 0.09959512948989868, 0.11978000402450562, 0.3708881139755249, 0.2521231174468994, 0.00212947279214859, -0.28349772095680237, 0.4639681577682495, 0.19055654108524323, 0.09646503627300262, 0.08088354021310806, 0.5146645903587341, -0.39890947937965393, 0.29059863090515137, -0.15748004615306854, -0.08337220549583435, 0.22001703083515167, -0.10456165671348572, -0.261579692363739, 0.17103718221187592, -0.25197601318359375, -0.10099060088396072, 0.020541079342365265, -0.16596435010433197, -0.17123755812644958, -0.3141443729400635, -0.027155324816703796, 0.39561060070991516, -0.319368451833725, -0.3452959358692169, -0.14097623527050018, -0.22311538457870483, 0.2281503826379776, 0.327410489320755, -0.00012185026571387425, 0.03879228234291077, 0.13747429847717285, -0.14756669104099274, -0.4962763786315918, 0.004615411162376404, 0.02535482496023178, -0.5504595637321472, -0.19450446963310242, -0.25041088461875916, 0.33382725715637207, -0.0910535380244255, 0.11852937936782837, -0.37533146142959595, 0.23852257430553436, 0.20618152618408203, 0.14069923758506775, 0.3183521032333374, 0.2884148359298706, -0.02362566813826561, 0.08107957243919373, 0.25323885679244995, -0.2371629923582077, 0.21044452488422394, 0.2143966257572174, 0.09401008486747742, -0.06970564275979996, -0.10630910098552704, -0.048908524215221405, -0.2752487361431122, 0.009119849652051926, -0.07152273505926132, -0.3575339913368225, -0.2352924346923828, 0.1131325364112854, 0.13597288727760315, 0.2058553397655487, -0.4716518819332123, -0.6115646362304688, -0.4440334737300873, -0.09781660884618759, -0.2725955843925476, 0.06730226427316666, 0.2560085356235504, -0.08566631376743317, -0.009138479828834534, -0.14870890974998474, -0.5428614616394043, 0.06505155563354492, 0.09354306757450104, 0.31283387541770935, -0.26405686140060425, -0.2599281668663025, 0.21048051118850708, 0.48274943232536316, -0.2832579016685486, -0.24926990270614624, -0.19898612797260284, 0.024946844205260277, -0.014813547022640705, -0.010005731135606766, -0.16365809738636017, -0.06672852486371994, -0.05315779894590378, 0.2876332104206085, 0.12881994247436523, -0.026449229568243027, 0.16995099186897278, -0.31842851638793945, -0.0102006196975708, 0.3466801941394806, -0.05428563803434372, -0.21047478914260864, 0.3277967572212219, 0.3184903860092163, 0.05116243287920952, 0.1151701956987381, 0.08625688403844833, -0.024431947618722916, -0.19468644261360168, 0.04683777317404747, -0.13934466242790222, 0.14263735711574554, -0.12217148393392563, -0.029800137504935265, 0.17173153162002563, -0.14097046852111816, 0.20416699349880219, -0.032762497663497925, 0.2195822298526764, -0.025977738201618195, 0.06207725405693054, -0.28644317388534546, 0.0794292688369751, -0.15836898982524872, 0.07512909919023514, -0.11702459305524826, 0.19870248436927795, 0.024091962724924088, 0.23534464836120605, 0.13214896619319916, 0.024791831150650978, 0.20726539194583893, -0.015178829431533813, -0.2567569613456726, 0.10972036421298981, 0.06520064920186996, -0.4047945737838745, 0.12669503688812256, 0.2791752219200134, -0.04303266480565071, 0.11162268370389938, 0.0867825448513031, 0.04227375239133835, -0.24079349637031555, 0.1412680298089981, 0.009191393852233887, -0.21043114364147186, -0.04548240453004837, 0.008162172511219978, -0.19343909621238708, -0.1259145587682724, -0.5878509283065796, 0.0739087462425232, 0.3553922772407532, -0.17664086818695068, -0.1262132227420807, -0.2640079855918884, -0.17013627290725708, -0.3441281318664551, 0.0026653148233890533, 0.31275609135627747, -0.34855055809020996, 0.14305412769317627, -0.01811748370528221, 0.17683497071266174, 0.5048041343688965, 0.4281785190105438, 0.01709240861237049, -0.09400885552167892, -0.258446604013443, 0.4258437752723694, 0.20392414927482605, -0.03459269180893898, -0.48217129707336426, 0.1800985038280487, 0.005572415888309479, -0.03282276540994644, -0.12844061851501465, 0.1374111771583557, 0.027889827266335487, -0.020142845809459686, -0.08649356663227081, 0.17512205243110657, 0.020646993070840836, 0.18882836401462555, -0.32328659296035767, -0.42812061309814453, -0.056994855403900146, 0.022981982678174973, -0.06873832643032074, -0.06652335077524185, 0.04380662366747856, -0.2526405453681946, 0.15861600637435913, -0.16420631110668182, 0.2267967164516449, 0.36928313970565796, 0.3107091188430786, -0.14134126901626587, -0.24104301631450653, -0.25406667590141296, -0.3209952712059021, 0.29040586948394775, 0.134623721241951, -0.21288445591926575, -0.2942923307418823, 0.024815838783979416, -0.016007883474230766, 0.034479230642318726, -0.04616610333323479, 0.3929961621761322, -0.0561230406165123, -0.043241165578365326, 0.20988839864730835, 0.197490856051445, -0.09711091220378876, -0.16691923141479492, -0.21900248527526855, 0.12281877547502518, -0.24710287153720856, 0.13664597272872925, -0.05822254717350006, -0.44691383838653564, 0.05689474940299988, -0.025215044617652893, 0.011301256716251373, -0.19039347767829895, -0.056797049939632416, 0.11310446262359619, 0.2439713180065155, -0.03615294396877289, -0.08444570749998093, 0.16410106420516968, 0.047774381935596466, 0.05274393782019615, 0.1824994683265686, -0.01722930744290352, 0.28004372119903564, 0.01963689923286438, -0.18872249126434326, 0.34809744358062744, 0.09262287616729736, 0.14159882068634033, 0.3416215777397156, -0.11529770493507385, 0.051554158329963684, 0.07298299670219421, 0.21041220426559448, -0.17212313413619995, -0.15123170614242554, 0.1688513308763504, 0.3553534150123596, -0.03581855446100235, -0.35657986998558044, 0.04162895679473877, 0.5232874751091003, 0.007155902683734894, 0.41391831636428833, 0.2888953685760498, -0.030078627169132233, -0.17960357666015625, 0.04953775554895401, 0.14898240566253662, 0.48255133628845215, 0.07197792828083038, 0.2031985968351364, -0.04973405599594116, 0.09849527478218079, -0.0927230715751648, 0.04902380704879761, 0.1893739104270935, 0.21433278918266296, 0.2653186321258545, 0.18623629212379456, -0.02254512906074524, -0.39856308698654175, 0.006850820034742355, -0.010328108444809914, 0.24902808666229248, -0.1407553106546402, 0.12291178852319717, -0.3488911986351013, -0.09305749833583832, -0.17560085654258728, 0.0690053254365921, -0.0824645608663559, -0.3389725983142853, -0.29777991771698, 0.3980576694011688, -0.3791888654232025, 0.09527377039194107, -0.08240680396556854, 0.23964564502239227, 0.15884509682655334, 0.019331563264131546, 0.0811561644077301, 0.1053367480635643, -0.1719752848148346, -0.07530054450035095, 0.3932110369205475, -0.17836183309555054, 0.4449951648712158, 0.2942570447921753, -0.25156643986701965, -0.5642059445381165, -0.009631119668483734, 0.09723241627216339, -0.044640637934207916, 0.2913724184036255, 0.15691089630126953, 0.2594355344772339, -0.06370687484741211, 0.1674998551607132, 0.028589794412255287, 0.16790525615215302, -0.20486733317375183, -0.09654858708381653, 0.12497127056121826, 0.11484146118164062, 0.012095298618078232, -0.12148129194974899, -0.3409325182437897, -0.3965243995189667, 0.4174043536186218, -0.03257226198911667, 0.1087353304028511, 0.255563884973526, 0.3698804974555969, 0.33383235335350037, 0.1646704375743866, 0.013167605735361576, -0.07955893129110336, -0.20069007575511932, 0.2692919969558716, 0.07351712882518768, -0.28511470556259155, -0.16854093968868256, 0.11639511585235596, -0.17618894577026367, 0.19634884595870972, -0.29616132378578186, 0.2146085500717163, -0.5010900497436523, 0.17509135603904724, -0.07386953383684158, 0.1984628587961197, 0.3098812997341156, 0.06706657260656357, -0.023270513862371445, 0.09268379956483841, -0.06223033741116524, -0.024926483631134033, 0.3186882436275482, 0.21387121081352234, 0.0005779843777418137, 0.29532626271247864, 0.2987186014652252, 0.6582242250442505, 0.18573559820652008, -0.2299649864435196, 0.5270455479621887, 0.13816319406032562, 0.2322874516248703, -0.2867571711540222, -0.13933829963207245, 0.008317536674439907, -0.38387760519981384, -0.15290094912052155, -0.11361584067344666, -0.07684972137212753, -0.004623323678970337, 0.24871110916137695, -0.019593175500631332, 0.19590532779693604, -0.24337242543697357, 0.2963945269584656, -0.1548439860343933, 0.0354570597410202, -0.047251492738723755, 0.09713893383741379, -0.0689583495259285, 0.04044662043452263, 0.02640816941857338, -0.03123234212398529, 0.47336339950561523, 0.02138781175017357, -0.2703002989292145, -0.08479920774698257, -0.6920449137687683, 0.19753867387771606, 0.1649118959903717, 0.41105201840400696, -0.04303194582462311, -0.332548588514328, -0.19420169293880463, -0.09155000001192093, 0.42732447385787964, -0.08387749642133713, -0.18161579966545105, 0.12261320650577545, -0.06614126265048981, -0.3708953261375427, 0.014026671648025513, 0.04547463729977608, 0.5089049935340881, -0.07496456801891327, 0.6180590987205505, -0.27920347452163696, 0.03599872812628746, -0.06251168251037598, 0.5453645586967468, -0.07982046157121658, 0.06740546226501465, -0.17307215929031372, -0.36235788464546204, -0.42963099479675293, 0.04785008355975151, 0.0823841392993927, -0.02688072808086872, -0.18008999526500702, -0.023699814453721046, -0.1829955130815506, -0.19463777542114258, -0.03070606291294098, -0.2555563151836395, 0.19116336107254028, -0.23267051577568054, 0.2806384563446045, -0.08001285791397095, 0.1896321028470993, 0.6002485156059265, 0.4785459339618683, -0.06649066507816315, -0.10001745820045471, 0.05312121659517288, 0.290965735912323, 0.3145468533039093, 0.27139753103256226, -0.026556532829999924, 0.12825579941272736, 0.10297536849975586, 0.08966279774904251, -0.4230405390262604, 0.2618330717086792, 0.03760529309511185, -0.1594410389661789, -0.4124112129211426, -0.20015373826026917, 0.5952423810958862, 0.2829306125640869, 0.17781083285808563, 0.16295567154884338, 0.032745830714702606, -0.11134319752454758, 0.319530725479126, 0.04688233137130737, 0.7377001643180847, -0.04927350580692291, 0.3859351575374603, 0.14436441659927368, -0.13294140994548798, 0.329908549785614, 0.2714166045188904, -0.018504295498132706, -0.4534931778907776, 0.00808276329189539, 0.06999436020851135, -0.116073839366436, 0.2320917546749115, -0.07742063701152802, -0.22934290766716003, 0.23420512676239014, -0.24646635353565216, -0.34012627601623535, -0.20115403831005096, 0.29748696088790894, -0.45250993967056274, -0.32282575964927673, -0.0318484790623188, 0.0820498839020729, -0.18902787566184998, -0.05203411355614662, 0.038216482847929, -0.02600136771798134, -0.18168799579143524, 0.0875810980796814, -0.379772424697876, 0.07526238262653351, 0.018065741285681725, 0.4964675307273865, -0.20786473155021667, -0.09435906261205673, 0.13735751807689667, 0.033300891518592834, -0.019860468804836273, 0.17301106452941895, -0.12357605993747711, -0.12254641950130463, -0.19234398007392883, -0.025939760729670525, 0.1587093025445938, -0.17497220635414124, 0.35948503017425537, 0.11308873444795609, 0.05937270075082779, -0.018511734902858734, -0.20203353464603424, -0.05457591637969017, -0.17690271139144897, -0.14658524096012115, 0.05778687447309494, -0.287759929895401, -0.6232825517654419, -0.11155419051647186, -0.2177118957042694, -0.30207905173301697, -0.008435646072030067, 0.24675829708576202, 0.1524903029203415, 0.3774368166923523, -0.1662786900997162, -0.013862475752830505, -0.09604629874229431, 0.5426026582717896, -0.2170468270778656, 0.3648031949996948, 0.5068677663803101, 0.17999760806560516, -0.2064274251461029, -0.15997035801410675, 0.3782237768173218, 0.005458607338368893, 0.1507754623889923, 0.5503348708152771, -0.09911686182022095, 0.016937285661697388, -0.1889045238494873, 0.25383448600769043, 0.15056543052196503, -0.3707573115825653, -0.1609153002500534, -0.10646326839923859, -0.5591670274734497, 0.20673930644989014, 0.0927724540233612, 0.39673882722854614, -0.176373690366745, -0.12262508273124695, -0.290354460477829, -0.02800776995718479, -0.13918808102607727, 0.1578175276517868, -0.26768678426742554, 0.0016697347164154053, 0.16584040224552155, -0.01379377394914627, -0.05258902162313461, -0.10075391829013824, -0.05952996015548706, 0.1842210739850998, -0.04861818253993988, -0.07482574135065079, -0.0830293744802475, 0.11724545061588287, 0.22711077332496643, -0.17369142174720764, -0.026616424322128296, -0.3926929831504822, -0.01130148395895958, -0.1907859742641449, 0.02799227461218834, 0.25192466378211975, -0.08854250609874725, 0.11281022429466248, 0.12680618464946747, 0.077730193734169, 0.2172168642282486, 0.23223696649074554, 0.007180057466030121, 0.24556395411491394, 0.02331586927175522, 0.3543139696121216, 0.23113717138767242, -0.20541924238204956, -0.23438991606235504, 0.01848374307155609, 0.2907337546348572, 0.0028010383248329163, 0.30512404441833496, -0.25820302963256836, -0.14234282076358795, 0.25557607412338257, 0.15252576768398285, 0.6202743053436279, -0.13046793639659882, -0.22279587388038635, 0.29988929629325867, 0.08978129178285599, 0.06381441652774811, -0.3358577787876129, 0.09400136768817902, -0.19853182137012482, -0.07038392126560211, 0.03499618172645569, -0.12451338768005371, 0.16479434072971344, -0.8366090059280396, 0.06959997862577438, 0.2907014489173889, 0.08233889192342758, -0.015476778149604797, 0.14859189093112946, 0.02581377699971199, -0.016961563378572464, 0.18717962503433228, 0.06379763036966324, 0.5537105202674866, 0.5625133514404297, -0.08183293789625168, 0.609912097454071, 0.029685650020837784, 0.24464640021324158, -0.016588538885116577, -0.7433132529258728, 0.1946711391210556, 0.4049603343009949, 0.03611009567975998, 0.21617922186851501, 0.008266165852546692, 0.37521567940711975, -0.39508628845214844, -0.3191031515598297, -0.05067171901464462, 0.2922395169734955, -0.37021541595458984, -0.26988083124160767, 0.06887573003768921, -0.1035979837179184, 0.10867470502853394, 0.3668445348739624, -0.26123350858688354, -0.0977838784456253, 0.34558477997779846, -0.024921126663684845, 0.017914287745952606, -0.10972106456756592, 0.09591132402420044, -0.04204605519771576, 0.2890910804271698, -0.3097183406352997, 0.030630892142653465, 0.017491303384304047, -0.17209266126155853, -0.6128517389297485, -0.010683121159672737, 0.5050378441810608, 0.28199905157089233, -0.1961207389831543, -0.0660642459988594, 0.06855204701423645, 0.03033752180635929, -0.12914134562015533, 0.09921512007713318, -0.1238471120595932, 0.19700060784816742, 0.4543984532356262, -0.05041038244962692, -0.03480297699570656, -0.02346746250987053, 0.08829104155302048, 0.29303357005119324, -0.1039106696844101, -0.03219909220933914, -0.07016351819038391, -0.3222334682941437, 0.10691817104816437, 0.12194791436195374, -0.16032105684280396, 0.18983374536037445, 0.5680363178253174, -0.14743424952030182, 0.22582268714904785, 0.08844901621341705, 0.04049375653266907, -0.05267785117030144, 0.7015368342399597, 0.4067876636981964, -0.25606590509414673, -0.4636137783527374, 0.1385057419538498, -0.06901542842388153, -0.002116866409778595, -0.23066741228103638, 0.05363146960735321, -0.18550272285938263, 0.13727706670761108, 0.1532157063484192, 0.02369716390967369, -0.24603943526744843, 0.28593817353248596, -0.014923331327736378, 0.17220017313957214, -0.06512095034122467, -0.31668126583099365, -0.05370127409696579, -0.1375625729560852, 0.09100592136383057, -0.6348482966423035, 0.35380610823631287, 0.007176750339567661, -0.041339412331581116, -0.16188392043113708, -0.14757472276687622, -0.01805059425532818, 0.0729033499956131, 0.5200444459915161, 0.2168368697166443, 0.2093246877193451, -0.20436787605285645, -0.4473116993904114, 0.06675774604082108, -0.06123988702893257, -0.017217915505170822, 0.14868265390396118, -0.19696567952632904, 0.5546965599060059, -0.18386071920394897, 0.65162593126297, -0.3728136420249939, 0.06510579586029053, -0.07924269139766693, 0.019686071202158928, 0.02097615785896778, -0.05939808487892151, -0.0028049349784851074, -0.03364501893520355, 0.1575343757867813, 0.2505611479282379, -0.05955273658037186, 0.19217249751091003, -0.3644733428955078, -0.20292779803276062, 0.44653064012527466, 0.1169656291604042, -0.1790771484375, -0.0937827005982399, -0.034523606300354004, 0.2249455749988556, -0.053438566625118256, -0.5481229424476624, -0.027488574385643005, 0.22503133118152618, 0.006643928587436676, -0.2915824055671692, 0.22208011150360107, -0.019137397408485413, -0.13194414973258972, -0.06748330593109131, 1.1606013774871826, -0.26429060101509094, -0.22525140643119812, 0.22537833452224731, -0.03510931879281998 ]
https://github.com/huggingface/datasets/issues/2133
bug in mlqa dataset
If you print those questions, you get readable texts: ```python >>> questions = [ ... "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", ... "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ... ] >>> print(questions) ['متى بدات المجلة المدرسية في نوتردام بالنشر?', 'كم مرة يتم نشرها في نوتردام?', 'ما هي الورقة اليومية للطلاب في نوتردام?', 'كم عدد الاوراق الاخبارية للطلاب التي وجدت في نوتردام?', 'في اي سنة بدات ورقة الطالب الحس السليم بالنشر في نوتردام?'] ``` I don't think we can change this
Hi Looking into MLQA dataset for langauge "ar": ``` "question": [ "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ] ``` the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq
111
bug in mlqa dataset Hi Looking into MLQA dataset for langauge "ar": ``` "question": [ "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ] ``` the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq If you print those questions, you get readable texts: ```python >>> questions = [ ... "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", ... "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ... ] >>> print(questions) ['متى بدات المجلة المدرسية في نوتردام بالنشر?', 'كم مرة يتم نشرها في نوتردام?', 'ما هي الورقة اليومية للطلاب في نوتردام?', 'كم عدد الاوراق الاخبارية للطلاب التي وجدت في نوتردام?', 'في اي سنة بدات ورقة الطالب الحس السليم بالنشر في نوتردام?'] ``` I don't think we can change this
[ -0.11585351824760437, -0.2315673530101776, -0.27340418100357056, 0.21121230721473694, 0.33214932680130005, 0.07119501382112503, 0.3524687886238098, 0.12133780121803284, -0.3227717876434326, 0.22545409202575684, 0.06188717484474182, 0.28176450729370117, 0.25186243653297424, 0.2561214864253998, 0.1166767030954361, -0.04778577387332916, 0.12920883297920227, 0.17945638298988342, 0.060086701065301895, -0.1977044641971588, -0.19647285342216492, 0.24537374079227448, -0.13372236490249634, 0.053979694843292236, -0.06799183040857315, -0.03350964933633804, -0.020740825682878494, 0.22089320421218872, -0.0425400510430336, 0.08301611244678497, -0.14338257908821106, -0.2492370307445526, -0.16391590237617493, 0.005175501108169556, -0.00010212913912255317, -0.10838392376899719, 0.17972105741500854, -0.053005658090114594, -0.2548292279243469, 0.3303484618663788, -0.44334957003593445, 0.05421408265829086, -0.31976374983787537, -0.3245653808116913, -0.18316909670829773, -0.1904889941215515, -0.05527585744857788, -0.5454846024513245, 0.31588509678840637, 0.39314496517181396, 0.3555620014667511, 0.11692884564399719, -0.009352631866931915, -0.059130970388650894, 0.23379281163215637, -0.00753437727689743, 0.053287968039512634, -0.012540120631456375, 0.009939931333065033, -0.01570655032992363, 0.06449958682060242, 0.5903979539871216, 0.15289662778377533, -0.07444129884243011, -0.2841552197933197, 0.09476903080940247, 0.2282184660434723, -0.14105750620365143, 0.3744460344314575, 0.22552284598350525, 0.20684678852558136, -0.23945188522338867, -0.11138617992401123, 0.07011029869318008, 0.03870144858956337, -0.19025185704231262, -0.05111318081617355, 0.2683143615722656, 0.04879981651902199, 0.08807045966386795, 0.14753228425979614, 0.1784595251083374, -0.19787243008613586, 0.02735505998134613, -0.4308958351612091, 0.4159482419490814, -0.1553923487663269, -0.03348657488822937, -0.11448521912097931, -0.2438466101884842, -0.10901953279972076, 0.11609092354774475, -0.1431102156639099, 0.10300873965024948, -0.1794523298740387, -0.1882237195968628, -0.12477307766675949, 0.26768815517425537, 0.013106189668178558, -0.031918950378894806, 0.13730867207050323, 0.14526453614234924, 0.2267719954252243, -0.055249057710170746, -0.1274060606956482, -0.0103748869150877, -0.10023131221532822, -0.1150464192032814, 0.22452284395694733, -0.1293274462223053, -0.07697482407093048, 0.01533423736691475, 0.06095654517412186, -0.21917971968650818, -0.1487826108932495, 0.22856175899505615, 0.13453778624534607, -0.14100009202957153, -0.32420048117637634, 0.0561232715845108, -0.3493766486644745, 0.05480695888400078, -0.16770048439502716, 0.3912617564201355, 0.22888290882110596, -0.02409634366631508, -0.1399516463279724, -0.07534544169902802, -0.19171255826950073, -0.3327365517616272, -0.38982725143432617, 0.12557201087474823, 0.12487171590328217, -0.27682235836982727, -0.01593380980193615, 0.3214123249053955, 0.2155393660068512, -0.0244428887963295, 0.12602421641349792, 0.0829230546951294, 0.09497123956680298, -0.1912810504436493, 0.23128202557563782, 0.2930067181587219, -0.10158313810825348, -0.04933854192495346, -0.03286885842680931, -0.05643000826239586, 0.009526759386062622, 0.14525727927684784, 0.07621370255947113, 0.007934223860502243, -0.3933088183403015, 0.3797927796840668, 0.3952752351760864, -0.09495672583580017, 0.1754637509584427, 0.23353680968284607, 0.21874788403511047, 0.0496399961411953, 0.11802259087562561, -0.1062789261341095, -0.021900206804275513, -0.15187638998031616, 0.06346055865287781, 0.0898393839597702, -0.526848554611206, 0.02840299904346466, -0.368958055973053, -0.09333442151546478, 0.3024437427520752, 0.30601856112480164, 0.09913089871406555, -0.0708538368344307, -0.17006193101406097, 0.3025592565536499, 0.16948270797729492, -0.07799117267131805, -0.3400382399559021, 0.204278364777565, -0.1599993109703064, -0.18757423758506775, 0.28392255306243896, 0.20888975262641907, -0.10377474874258041, -0.022784801200032234, 0.10188339650630951, 0.15119700133800507, -0.1055433452129364, 0.02768528275191784, -0.12312361598014832, -0.14238055050373077, 0.1725803166627884, 0.06851331889629364, -0.25836673378944397, -0.1137775108218193, 0.25951313972473145, 0.024177443236112595, 0.39153796434402466, -0.014793965965509415, -0.0749589279294014, 0.013518711552023888, 0.3583311140537262, -0.43176859617233276, 0.16254732012748718, -0.07220464199781418, -0.3222064673900604, -0.21903380751609802, -0.6098545789718628, 0.08099731802940369, -0.23343025147914886, -0.17786407470703125, -0.1760997772216797, -0.10318464785814285, 0.0356505885720253, 0.09664469957351685, 0.32509300112724304, 0.19809502363204956, -0.08059961348772049, 0.2429177314043045, 0.024463292211294174, -0.033551111817359924, -0.03823671117424965, -0.1474965214729309, -0.31759968400001526, 0.22702237963676453, -0.19531312584877014, 0.07061094045639038, 0.18792013823986053, 0.3434305787086487, 0.13906806707382202, -0.09449748694896698, 0.14143812656402588, 0.013698328286409378, 0.0952923372387886, 0.289717435836792, -0.17475634813308716, 0.18833580613136292, 0.29454001784324646, -0.2585286796092987, 0.02141892910003662, 0.3033980429172516, 0.31039977073669434, 0.004277020692825317, -0.11956954747438431, 0.371692955493927, 0.061512939631938934, -0.04083094745874405, 0.09714478254318237, 0.029448265209794044, 0.4241674542427063, -0.09360986948013306, 0.10243628174066544, -0.5371357202529907, 0.16895689070224762, 0.1346679925918579, 0.2095031440258026, 0.06240810453891754, -0.5084813237190247, 0.4397794306278229, 0.42080190777778625, -0.09660673141479492, 0.06767571717500687, -0.14447560906410217, -0.16399824619293213, 0.029398024082183838, 0.047122422605752945, 0.19109086692333221, 0.2587713897228241, 0.2780265808105469, 0.0747871920466423, 0.0024716928601264954, -0.005004873499274254, -0.40390294790267944, 0.34732308983802795, -0.0582331120967865, 0.04972248151898384, 0.24903807044029236, 0.11405183374881744, -0.07669073343276978, -0.38423091173171997, 0.12085951864719391, -0.07017925381660461, 0.08666019141674042, -0.24558573961257935, 0.19625480473041534, -0.36656391620635986, -0.5910028219223022, -0.31212830543518066, -0.2207440882921219, 0.1649775505065918, -0.2732044458389282, 0.2837464213371277, -0.1319199502468109, -0.2716565430164337, 0.23482577502727509, 0.1886441707611084, 0.356222540140152, 0.23863644897937775, 0.2746742069721222, -0.3108394742012024, -0.017715580761432648, -0.18423521518707275, 0.31075456738471985, 0.12670889496803284, 0.24907508492469788, 0.17867796123027802, -0.29897862672805786, -0.17302951216697693, -0.24677389860153198, -0.48173820972442627, 0.0892970934510231, -0.032913923263549805, 0.3612644374370575, 0.03691409155726433, -0.006159655749797821, -0.10153450816869736, -0.05938451364636421, -0.04759245738387108, 0.15540683269500732, -0.32171687483787537, -0.09997395426034927, -0.10669440031051636, -0.05647777393460274, -0.25866270065307617, -0.5629889965057373, -0.27105531096458435, -0.19098122417926788, -0.085001140832901, -0.011803844943642616, 0.24231690168380737, -0.18131230771541595, -0.03548145666718483, 0.11972365528345108, 0.0902569442987442, -0.08014567941427231, -0.3614611327648163, 0.29915961623191833, 0.36150047183036804, -0.1537986397743225, -0.44409406185150146, -0.13835127651691437, -0.10572017729282379, 0.22173559665679932, -0.30100101232528687, -0.39946144819259644, -0.08695939183235168, -0.14010976254940033, -0.22309786081314087, -0.01748424768447876, -0.07376942038536072, 0.21642398834228516, -0.1130889356136322, -0.23288697004318237, -0.017280682921409607, -0.19851207733154297, 0.11546391248703003, 0.13037146627902985, 0.16978970170021057, -0.17223048210144043, 0.5826885104179382, 0.052080851048231125, 0.14833012223243713, 0.1584414541721344, -0.12997668981552124, 0.17113438248634338, -0.16823658347129822, 0.1268298178911209, -0.0480327233672142, -0.04532524570822716, 0.36355385184288025, 0.15331019461154938, -0.018857795745134354, 0.36900848150253296, -0.05726388096809387, -0.26400405168533325, 0.10947844386100769, 0.006349943578243256, -0.06532201915979385, -0.10791948437690735, 0.029237838461995125, -0.29163989424705505, -0.019818492233753204, 0.08335910737514496, 0.09597421437501907, 0.1944291889667511, -0.15572398900985718, 0.11362320184707642, 0.015440896153450012, 0.026919305324554443, -0.13218055665493011, -0.5314317345619202, -0.24435043334960938, -0.29261207580566406, 0.3258083760738373, 0.07287613302469254, 0.37929338216781616, -0.2615157663822174, -0.13289523124694824, 0.18683499097824097, -0.11858298629522324, 0.5819466710090637, 0.13042056560516357, 0.19356215000152588, 0.2138528972864151, 0.18842124938964844, 0.07906492799520493, 0.15214574337005615, -0.46658143401145935, 0.30411678552627563, 0.12026673555374146, 0.26192784309387207, -0.1860758364200592, 0.010463489219546318, 0.13205991685390472, 0.27061134576797485, -0.41155901551246643, 0.031306348741054535, -0.3207562267780304, -0.2958228886127472, -0.032988712191581726, 0.14872534573078156, 0.12339010089635849, 0.31504639983177185, -0.08719013631343842, -0.06362259387969971, -0.11728771030902863, -0.4636467695236206, 0.04573482647538185, 0.20882494747638702, 0.30364152789115906, -0.08086557686328888, -0.0717988982796669, -0.10679182410240173, 0.31839415431022644, -0.11046923696994781, 0.33085837960243225, 0.13010640442371368, -0.09693722426891327, 0.009802499786019325, -0.4112185537815094, 0.29513904452323914, 0.036731258034706116, -0.17862604558467865, -0.009144321084022522, 0.4109274446964264, 0.07531090825796127, -0.1215834841132164, -0.13140125572681427, 0.0782289206981659, 0.15482832491397858, -0.1019289419054985, -0.06637094914913177, 0.21007248759269714, -0.23708540201187134, -0.1019979789853096, -0.026677168905735016, 0.3568894863128662, -0.3343978226184845, 0.4691636562347412, 0.2304178774356842, 0.9524291753768921, 0.23008792102336884, 0.004815787076950073, 0.20266643166542053, -0.27246904373168945, 0.04958974942564964, 0.2469625324010849, 0.3125799298286438, -0.3602142333984375, 0.08081012219190598, -0.1237330436706543, -0.02590075694024563, 0.14568427205085754, 0.2686609625816345, -0.23914474248886108, 0.03682716190814972, -0.09913896769285202, 0.018714547157287598, 0.05784565955400467, -0.042007751762866974, 0.01235412247478962, 0.06677626073360443, -0.30983301997184753, 0.24077698588371277, 0.16044703125953674, -0.1262231022119522, -0.10367401689291, -0.15535901486873627, 0.02299107238650322, -0.19152617454528809, -0.08918577432632446, 0.03449627012014389, -0.4054076373577118, 0.004430292174220085, 0.12543441355228424, -0.38095933198928833, -0.11013984680175781, 0.1247105598449707, 0.28794312477111816, 0.11208324134349823, 0.03557004779577255, 0.17542509734630585, 0.2798658311367035, 0.3331298530101776, 0.2754771411418915, 0.030088774859905243, 0.20483741164207458, -0.3041773736476898, -0.16244423389434814, 0.2047543227672577, 0.11769157648086548, -0.19247417151927948, -0.2655918002128601, 0.2533442974090576, 0.0037145838141441345, 0.020146938040852547, -0.12616071105003357, -0.04152767360210419, -0.04860483855009079, -0.25395095348358154, 0.2601625919342041, -0.12331178784370422, -0.12186314910650253, 0.3450837731361389, -0.015102270990610123, -0.22324056923389435, -0.1870572566986084, 0.2631909251213074, 0.09153991937637329, 0.27494069933891296, 0.4604129493236542, 0.07359923422336578, -0.270110547542572, -0.4670407176017761, -0.14413541555404663, -0.07376929372549057, -0.22798049449920654, 0.11916607618331909, -0.12238473445177078, -0.22545775771141052, -0.08951131254434586, 0.08051006495952606, -0.05820508301258087, 0.12743233144283295, -0.14900822937488556, -0.6126042008399963, -0.28258270025253296, -0.07354108989238739, 0.054380230605602264, 0.16072972118854523, 0.1171974316239357, 0.022654907777905464, -0.1883120834827423, 0.04753607511520386, -0.46556106209754944, 0.12057144194841385, -0.15251334011554718, 0.0682411789894104, -0.3576037287712097, 0.05175735428929329, -0.056235186755657196, 0.19456790387630463, 0.4125511348247528, -0.06486354023218155, -0.2503981590270996, -0.40531307458877563, -0.08304403722286224, 0.06755837053060532, -0.17613062262535095, -0.12990382313728333, 0.03537822887301445, -0.04161372035741806, -0.23317614197731018, 0.18567071855068207, 0.09967254102230072, -0.11405988782644272, 0.0705624371767044, 0.03623726963996887, 0.1259874850511551, -0.07547134906053543, -0.07761584222316742, -0.04893181473016739, 0.11213654279708862, -0.16207782924175262, 0.1734580546617508, 0.2188941240310669, -0.023411614820361137, -0.047646842896938324, 0.30971845984458923, -0.13098326325416565, -0.0507536381483078, 0.035770680755376816, 0.30905917286872864, -0.13891269266605377, -0.1823408305644989, 0.22131682932376862, 0.005936210975050926, 0.09234469383955002, -0.326761931180954, -0.13441495597362518, 0.04505180940032005, 0.4097961485385895, -0.5532667636871338, -0.07939806580543518, 0.06380417197942734, -0.008464147336781025, 0.15092605352401733, 0.14217467606067657, 0.26158347725868225, -0.13433155417442322, 0.12694191932678223, 0.220929354429245, 0.3258604109287262, -0.2247743457555771, -0.172853022813797, 0.050757698714733124, -0.12180939316749573, 0.16926634311676025, 0.11253197491168976, 0.09996448457241058, 0.11926419287919998, 0.6916361451148987, -0.043744392693042755, 0.2923963665962219, 0.11014111340045929, 0.06798281520605087, 0.08152272552251816, 0.13939619064331055, 0.1451893448829651, 0.4456789493560791, -0.29209768772125244, 0.15686389803886414, 0.5386682748794556, -0.11654122918844223, 0.20515599846839905, 0.024680597707629204, -0.28842777013778687, -0.1483183056116104, -0.2918521761894226, -0.2522682249546051, -0.02869887836277485, -0.16166239976882935, -0.029493369162082672, -0.11111858487129211, 0.0027754269540309906, 0.042116936296224594, 0.5325815081596375, -0.007182985544204712, -0.04432545602321625, -0.18299035727977753, -0.05253887176513672, -0.07526278495788574, -0.04564199596643448, -0.19992171227931976, 0.37465184926986694, 0.39403218030929565, -0.005907073616981506, 0.2505496144294739, -0.020257575437426567, 0.18695133924484253, 0.0737290233373642, -0.09906579554080963, 0.015818273648619652, -0.19970378279685974, -0.28168824315071106, -0.18426354229450226, 0.2646844983100891, 0.14951646327972412, 0.30461302399635315, 0.21485278010368347, 0.3038095533847809, -0.21715565025806427, 0.15800847113132477, 0.5882331132888794, 0.1517389714717865, -0.06937906891107559, 0.03921279311180115, -0.4237430989742279, -0.025701109319925308, -0.32096144556999207, 0.04784715175628662, -0.24645042419433594, 0.07781638950109482, 0.003450220450758934, -0.2867472171783447, 0.1594923734664917, 0.12016110122203827, 0.1503569483757019, 0.06048428267240524, 0.6015755534172058, 0.11335557699203491, -0.06610480695962906, -0.13377058506011963, -0.23466753959655762, -0.5674974322319031, 0.1958337426185608, 0.23631124198436737, -0.05194947123527527, -0.17133209109306335, 0.3429604768753052, 0.15972769260406494, -0.0710563063621521, 0.09021016955375671, 0.09624385833740234, -0.08218793570995331, -0.01622239500284195, -0.4123513400554657, -0.10679490864276886, 0.12349008023738861, 0.2328348606824875, -0.12816447019577026, -0.3708758056163788, 0.3792417645454407, 0.0888495072722435, 0.19488239288330078, -0.23140574991703033, -0.2158888727426529, -0.18241660296916962, 0.2466816008090973, 0.03180380165576935, 0.37994247674942017, 0.15268856287002563, -0.34981998801231384, 0.03619880974292755, 0.11207762360572815, 0.01476757787168026, -0.11144627630710602, 0.2188642919063568, 0.24352765083312988, 0.21731549501419067, 0.14159421622753143, 0.04350942745804787, 0.15227219462394714, 0.429747998714447, 0.04635893553495407, -0.11742229759693146, -0.2635607123374939, 0.554700493812561, -0.10080185532569885, -0.052082184702157974, -0.11782746016979218, 0.13969284296035767, 0.00851823017001152, -0.05329082906246185, -0.015746980905532837, -0.4543575942516327, 0.30822575092315674, -0.5355829000473022, -0.2539764940738678, -0.05916780233383179, 0.11821532249450684, 0.1231311708688736, -0.018041258677840233, -0.28144571185112, 0.09236335009336472, 0.350016713142395, -0.29090988636016846, 0.11027660965919495, 0.42041388154029846, 0.1702205389738083, -0.014279540628194809, -0.20484434068202972, 0.15361058712005615, 0.4446440041065216, -0.1842174082994461, -0.04859812930226326, -0.4758795499801636 ]
https://github.com/huggingface/datasets/issues/2133
bug in mlqa dataset
Hi @dorost1234. In Python 3, strings are sequences of Unicode _code points_. Unicode is a specification that maps all characters (and emoji symbols) with its unique representation in terms of code points. That is what you see: Unicode code points (represented by a \u escaped sequence of 16-bit hex values). Characters are usually represented (on screen and papers) with a graphical element called _glyph_. That is what you would like to see: glyphs. But Python does not care about glyphs: that is the job of the GUI or the terminal; glyphs are what you get with the `print` function (if your terminal is properly configured to display those glyphs). You have more detailed information about Unicode in the Python documentation: https://docs.python.org/3/howto/unicode.html
Hi Looking into MLQA dataset for langauge "ar": ``` "question": [ "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ] ``` the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq
121
bug in mlqa dataset Hi Looking into MLQA dataset for langauge "ar": ``` "question": [ "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ] ``` the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq Hi @dorost1234. In Python 3, strings are sequences of Unicode _code points_. Unicode is a specification that maps all characters (and emoji symbols) with its unique representation in terms of code points. That is what you see: Unicode code points (represented by a \u escaped sequence of 16-bit hex values). Characters are usually represented (on screen and papers) with a graphical element called _glyph_. That is what you would like to see: glyphs. But Python does not care about glyphs: that is the job of the GUI or the terminal; glyphs are what you get with the `print` function (if your terminal is properly configured to display those glyphs). You have more detailed information about Unicode in the Python documentation: https://docs.python.org/3/howto/unicode.html
[ -0.11585351824760437, -0.2315673530101776, -0.27340418100357056, 0.21121230721473694, 0.33214932680130005, 0.07119501382112503, 0.3524687886238098, 0.12133780121803284, -0.3227717876434326, 0.22545409202575684, 0.06188717484474182, 0.28176450729370117, 0.25186243653297424, 0.2561214864253998, 0.1166767030954361, -0.04778577387332916, 0.12920883297920227, 0.17945638298988342, 0.060086701065301895, -0.1977044641971588, -0.19647285342216492, 0.24537374079227448, -0.13372236490249634, 0.053979694843292236, -0.06799183040857315, -0.03350964933633804, -0.020740825682878494, 0.22089320421218872, -0.0425400510430336, 0.08301611244678497, -0.14338257908821106, -0.2492370307445526, -0.16391590237617493, 0.005175501108169556, -0.00010212913912255317, -0.10838392376899719, 0.17972105741500854, -0.053005658090114594, -0.2548292279243469, 0.3303484618663788, -0.44334957003593445, 0.05421408265829086, -0.31976374983787537, -0.3245653808116913, -0.18316909670829773, -0.1904889941215515, -0.05527585744857788, -0.5454846024513245, 0.31588509678840637, 0.39314496517181396, 0.3555620014667511, 0.11692884564399719, -0.009352631866931915, -0.059130970388650894, 0.23379281163215637, -0.00753437727689743, 0.053287968039512634, -0.012540120631456375, 0.009939931333065033, -0.01570655032992363, 0.06449958682060242, 0.5903979539871216, 0.15289662778377533, -0.07444129884243011, -0.2841552197933197, 0.09476903080940247, 0.2282184660434723, -0.14105750620365143, 0.3744460344314575, 0.22552284598350525, 0.20684678852558136, -0.23945188522338867, -0.11138617992401123, 0.07011029869318008, 0.03870144858956337, -0.19025185704231262, -0.05111318081617355, 0.2683143615722656, 0.04879981651902199, 0.08807045966386795, 0.14753228425979614, 0.1784595251083374, -0.19787243008613586, 0.02735505998134613, -0.4308958351612091, 0.4159482419490814, -0.1553923487663269, -0.03348657488822937, -0.11448521912097931, -0.2438466101884842, -0.10901953279972076, 0.11609092354774475, -0.1431102156639099, 0.10300873965024948, -0.1794523298740387, -0.1882237195968628, -0.12477307766675949, 0.26768815517425537, 0.013106189668178558, -0.031918950378894806, 0.13730867207050323, 0.14526453614234924, 0.2267719954252243, -0.055249057710170746, -0.1274060606956482, -0.0103748869150877, -0.10023131221532822, -0.1150464192032814, 0.22452284395694733, -0.1293274462223053, -0.07697482407093048, 0.01533423736691475, 0.06095654517412186, -0.21917971968650818, -0.1487826108932495, 0.22856175899505615, 0.13453778624534607, -0.14100009202957153, -0.32420048117637634, 0.0561232715845108, -0.3493766486644745, 0.05480695888400078, -0.16770048439502716, 0.3912617564201355, 0.22888290882110596, -0.02409634366631508, -0.1399516463279724, -0.07534544169902802, -0.19171255826950073, -0.3327365517616272, -0.38982725143432617, 0.12557201087474823, 0.12487171590328217, -0.27682235836982727, -0.01593380980193615, 0.3214123249053955, 0.2155393660068512, -0.0244428887963295, 0.12602421641349792, 0.0829230546951294, 0.09497123956680298, -0.1912810504436493, 0.23128202557563782, 0.2930067181587219, -0.10158313810825348, -0.04933854192495346, -0.03286885842680931, -0.05643000826239586, 0.009526759386062622, 0.14525727927684784, 0.07621370255947113, 0.007934223860502243, -0.3933088183403015, 0.3797927796840668, 0.3952752351760864, -0.09495672583580017, 0.1754637509584427, 0.23353680968284607, 0.21874788403511047, 0.0496399961411953, 0.11802259087562561, -0.1062789261341095, -0.021900206804275513, -0.15187638998031616, 0.06346055865287781, 0.0898393839597702, -0.526848554611206, 0.02840299904346466, -0.368958055973053, -0.09333442151546478, 0.3024437427520752, 0.30601856112480164, 0.09913089871406555, -0.0708538368344307, -0.17006193101406097, 0.3025592565536499, 0.16948270797729492, -0.07799117267131805, -0.3400382399559021, 0.204278364777565, -0.1599993109703064, -0.18757423758506775, 0.28392255306243896, 0.20888975262641907, -0.10377474874258041, -0.022784801200032234, 0.10188339650630951, 0.15119700133800507, -0.1055433452129364, 0.02768528275191784, -0.12312361598014832, -0.14238055050373077, 0.1725803166627884, 0.06851331889629364, -0.25836673378944397, -0.1137775108218193, 0.25951313972473145, 0.024177443236112595, 0.39153796434402466, -0.014793965965509415, -0.0749589279294014, 0.013518711552023888, 0.3583311140537262, -0.43176859617233276, 0.16254732012748718, -0.07220464199781418, -0.3222064673900604, -0.21903380751609802, -0.6098545789718628, 0.08099731802940369, -0.23343025147914886, -0.17786407470703125, -0.1760997772216797, -0.10318464785814285, 0.0356505885720253, 0.09664469957351685, 0.32509300112724304, 0.19809502363204956, -0.08059961348772049, 0.2429177314043045, 0.024463292211294174, -0.033551111817359924, -0.03823671117424965, -0.1474965214729309, -0.31759968400001526, 0.22702237963676453, -0.19531312584877014, 0.07061094045639038, 0.18792013823986053, 0.3434305787086487, 0.13906806707382202, -0.09449748694896698, 0.14143812656402588, 0.013698328286409378, 0.0952923372387886, 0.289717435836792, -0.17475634813308716, 0.18833580613136292, 0.29454001784324646, -0.2585286796092987, 0.02141892910003662, 0.3033980429172516, 0.31039977073669434, 0.004277020692825317, -0.11956954747438431, 0.371692955493927, 0.061512939631938934, -0.04083094745874405, 0.09714478254318237, 0.029448265209794044, 0.4241674542427063, -0.09360986948013306, 0.10243628174066544, -0.5371357202529907, 0.16895689070224762, 0.1346679925918579, 0.2095031440258026, 0.06240810453891754, -0.5084813237190247, 0.4397794306278229, 0.42080190777778625, -0.09660673141479492, 0.06767571717500687, -0.14447560906410217, -0.16399824619293213, 0.029398024082183838, 0.047122422605752945, 0.19109086692333221, 0.2587713897228241, 0.2780265808105469, 0.0747871920466423, 0.0024716928601264954, -0.005004873499274254, -0.40390294790267944, 0.34732308983802795, -0.0582331120967865, 0.04972248151898384, 0.24903807044029236, 0.11405183374881744, -0.07669073343276978, -0.38423091173171997, 0.12085951864719391, -0.07017925381660461, 0.08666019141674042, -0.24558573961257935, 0.19625480473041534, -0.36656391620635986, -0.5910028219223022, -0.31212830543518066, -0.2207440882921219, 0.1649775505065918, -0.2732044458389282, 0.2837464213371277, -0.1319199502468109, -0.2716565430164337, 0.23482577502727509, 0.1886441707611084, 0.356222540140152, 0.23863644897937775, 0.2746742069721222, -0.3108394742012024, -0.017715580761432648, -0.18423521518707275, 0.31075456738471985, 0.12670889496803284, 0.24907508492469788, 0.17867796123027802, -0.29897862672805786, -0.17302951216697693, -0.24677389860153198, -0.48173820972442627, 0.0892970934510231, -0.032913923263549805, 0.3612644374370575, 0.03691409155726433, -0.006159655749797821, -0.10153450816869736, -0.05938451364636421, -0.04759245738387108, 0.15540683269500732, -0.32171687483787537, -0.09997395426034927, -0.10669440031051636, -0.05647777393460274, -0.25866270065307617, -0.5629889965057373, -0.27105531096458435, -0.19098122417926788, -0.085001140832901, -0.011803844943642616, 0.24231690168380737, -0.18131230771541595, -0.03548145666718483, 0.11972365528345108, 0.0902569442987442, -0.08014567941427231, -0.3614611327648163, 0.29915961623191833, 0.36150047183036804, -0.1537986397743225, -0.44409406185150146, -0.13835127651691437, -0.10572017729282379, 0.22173559665679932, -0.30100101232528687, -0.39946144819259644, -0.08695939183235168, -0.14010976254940033, -0.22309786081314087, -0.01748424768447876, -0.07376942038536072, 0.21642398834228516, -0.1130889356136322, -0.23288697004318237, -0.017280682921409607, -0.19851207733154297, 0.11546391248703003, 0.13037146627902985, 0.16978970170021057, -0.17223048210144043, 0.5826885104179382, 0.052080851048231125, 0.14833012223243713, 0.1584414541721344, -0.12997668981552124, 0.17113438248634338, -0.16823658347129822, 0.1268298178911209, -0.0480327233672142, -0.04532524570822716, 0.36355385184288025, 0.15331019461154938, -0.018857795745134354, 0.36900848150253296, -0.05726388096809387, -0.26400405168533325, 0.10947844386100769, 0.006349943578243256, -0.06532201915979385, -0.10791948437690735, 0.029237838461995125, -0.29163989424705505, -0.019818492233753204, 0.08335910737514496, 0.09597421437501907, 0.1944291889667511, -0.15572398900985718, 0.11362320184707642, 0.015440896153450012, 0.026919305324554443, -0.13218055665493011, -0.5314317345619202, -0.24435043334960938, -0.29261207580566406, 0.3258083760738373, 0.07287613302469254, 0.37929338216781616, -0.2615157663822174, -0.13289523124694824, 0.18683499097824097, -0.11858298629522324, 0.5819466710090637, 0.13042056560516357, 0.19356215000152588, 0.2138528972864151, 0.18842124938964844, 0.07906492799520493, 0.15214574337005615, -0.46658143401145935, 0.30411678552627563, 0.12026673555374146, 0.26192784309387207, -0.1860758364200592, 0.010463489219546318, 0.13205991685390472, 0.27061134576797485, -0.41155901551246643, 0.031306348741054535, -0.3207562267780304, -0.2958228886127472, -0.032988712191581726, 0.14872534573078156, 0.12339010089635849, 0.31504639983177185, -0.08719013631343842, -0.06362259387969971, -0.11728771030902863, -0.4636467695236206, 0.04573482647538185, 0.20882494747638702, 0.30364152789115906, -0.08086557686328888, -0.0717988982796669, -0.10679182410240173, 0.31839415431022644, -0.11046923696994781, 0.33085837960243225, 0.13010640442371368, -0.09693722426891327, 0.009802499786019325, -0.4112185537815094, 0.29513904452323914, 0.036731258034706116, -0.17862604558467865, -0.009144321084022522, 0.4109274446964264, 0.07531090825796127, -0.1215834841132164, -0.13140125572681427, 0.0782289206981659, 0.15482832491397858, -0.1019289419054985, -0.06637094914913177, 0.21007248759269714, -0.23708540201187134, -0.1019979789853096, -0.026677168905735016, 0.3568894863128662, -0.3343978226184845, 0.4691636562347412, 0.2304178774356842, 0.9524291753768921, 0.23008792102336884, 0.004815787076950073, 0.20266643166542053, -0.27246904373168945, 0.04958974942564964, 0.2469625324010849, 0.3125799298286438, -0.3602142333984375, 0.08081012219190598, -0.1237330436706543, -0.02590075694024563, 0.14568427205085754, 0.2686609625816345, -0.23914474248886108, 0.03682716190814972, -0.09913896769285202, 0.018714547157287598, 0.05784565955400467, -0.042007751762866974, 0.01235412247478962, 0.06677626073360443, -0.30983301997184753, 0.24077698588371277, 0.16044703125953674, -0.1262231022119522, -0.10367401689291, -0.15535901486873627, 0.02299107238650322, -0.19152617454528809, -0.08918577432632446, 0.03449627012014389, -0.4054076373577118, 0.004430292174220085, 0.12543441355228424, -0.38095933198928833, -0.11013984680175781, 0.1247105598449707, 0.28794312477111816, 0.11208324134349823, 0.03557004779577255, 0.17542509734630585, 0.2798658311367035, 0.3331298530101776, 0.2754771411418915, 0.030088774859905243, 0.20483741164207458, -0.3041773736476898, -0.16244423389434814, 0.2047543227672577, 0.11769157648086548, -0.19247417151927948, -0.2655918002128601, 0.2533442974090576, 0.0037145838141441345, 0.020146938040852547, -0.12616071105003357, -0.04152767360210419, -0.04860483855009079, -0.25395095348358154, 0.2601625919342041, -0.12331178784370422, -0.12186314910650253, 0.3450837731361389, -0.015102270990610123, -0.22324056923389435, -0.1870572566986084, 0.2631909251213074, 0.09153991937637329, 0.27494069933891296, 0.4604129493236542, 0.07359923422336578, -0.270110547542572, -0.4670407176017761, -0.14413541555404663, -0.07376929372549057, -0.22798049449920654, 0.11916607618331909, -0.12238473445177078, -0.22545775771141052, -0.08951131254434586, 0.08051006495952606, -0.05820508301258087, 0.12743233144283295, -0.14900822937488556, -0.6126042008399963, -0.28258270025253296, -0.07354108989238739, 0.054380230605602264, 0.16072972118854523, 0.1171974316239357, 0.022654907777905464, -0.1883120834827423, 0.04753607511520386, -0.46556106209754944, 0.12057144194841385, -0.15251334011554718, 0.0682411789894104, -0.3576037287712097, 0.05175735428929329, -0.056235186755657196, 0.19456790387630463, 0.4125511348247528, -0.06486354023218155, -0.2503981590270996, -0.40531307458877563, -0.08304403722286224, 0.06755837053060532, -0.17613062262535095, -0.12990382313728333, 0.03537822887301445, -0.04161372035741806, -0.23317614197731018, 0.18567071855068207, 0.09967254102230072, -0.11405988782644272, 0.0705624371767044, 0.03623726963996887, 0.1259874850511551, -0.07547134906053543, -0.07761584222316742, -0.04893181473016739, 0.11213654279708862, -0.16207782924175262, 0.1734580546617508, 0.2188941240310669, -0.023411614820361137, -0.047646842896938324, 0.30971845984458923, -0.13098326325416565, -0.0507536381483078, 0.035770680755376816, 0.30905917286872864, -0.13891269266605377, -0.1823408305644989, 0.22131682932376862, 0.005936210975050926, 0.09234469383955002, -0.326761931180954, -0.13441495597362518, 0.04505180940032005, 0.4097961485385895, -0.5532667636871338, -0.07939806580543518, 0.06380417197942734, -0.008464147336781025, 0.15092605352401733, 0.14217467606067657, 0.26158347725868225, -0.13433155417442322, 0.12694191932678223, 0.220929354429245, 0.3258604109287262, -0.2247743457555771, -0.172853022813797, 0.050757698714733124, -0.12180939316749573, 0.16926634311676025, 0.11253197491168976, 0.09996448457241058, 0.11926419287919998, 0.6916361451148987, -0.043744392693042755, 0.2923963665962219, 0.11014111340045929, 0.06798281520605087, 0.08152272552251816, 0.13939619064331055, 0.1451893448829651, 0.4456789493560791, -0.29209768772125244, 0.15686389803886414, 0.5386682748794556, -0.11654122918844223, 0.20515599846839905, 0.024680597707629204, -0.28842777013778687, -0.1483183056116104, -0.2918521761894226, -0.2522682249546051, -0.02869887836277485, -0.16166239976882935, -0.029493369162082672, -0.11111858487129211, 0.0027754269540309906, 0.042116936296224594, 0.5325815081596375, -0.007182985544204712, -0.04432545602321625, -0.18299035727977753, -0.05253887176513672, -0.07526278495788574, -0.04564199596643448, -0.19992171227931976, 0.37465184926986694, 0.39403218030929565, -0.005907073616981506, 0.2505496144294739, -0.020257575437426567, 0.18695133924484253, 0.0737290233373642, -0.09906579554080963, 0.015818273648619652, -0.19970378279685974, -0.28168824315071106, -0.18426354229450226, 0.2646844983100891, 0.14951646327972412, 0.30461302399635315, 0.21485278010368347, 0.3038095533847809, -0.21715565025806427, 0.15800847113132477, 0.5882331132888794, 0.1517389714717865, -0.06937906891107559, 0.03921279311180115, -0.4237430989742279, -0.025701109319925308, -0.32096144556999207, 0.04784715175628662, -0.24645042419433594, 0.07781638950109482, 0.003450220450758934, -0.2867472171783447, 0.1594923734664917, 0.12016110122203827, 0.1503569483757019, 0.06048428267240524, 0.6015755534172058, 0.11335557699203491, -0.06610480695962906, -0.13377058506011963, -0.23466753959655762, -0.5674974322319031, 0.1958337426185608, 0.23631124198436737, -0.05194947123527527, -0.17133209109306335, 0.3429604768753052, 0.15972769260406494, -0.0710563063621521, 0.09021016955375671, 0.09624385833740234, -0.08218793570995331, -0.01622239500284195, -0.4123513400554657, -0.10679490864276886, 0.12349008023738861, 0.2328348606824875, -0.12816447019577026, -0.3708758056163788, 0.3792417645454407, 0.0888495072722435, 0.19488239288330078, -0.23140574991703033, -0.2158888727426529, -0.18241660296916962, 0.2466816008090973, 0.03180380165576935, 0.37994247674942017, 0.15268856287002563, -0.34981998801231384, 0.03619880974292755, 0.11207762360572815, 0.01476757787168026, -0.11144627630710602, 0.2188642919063568, 0.24352765083312988, 0.21731549501419067, 0.14159421622753143, 0.04350942745804787, 0.15227219462394714, 0.429747998714447, 0.04635893553495407, -0.11742229759693146, -0.2635607123374939, 0.554700493812561, -0.10080185532569885, -0.052082184702157974, -0.11782746016979218, 0.13969284296035767, 0.00851823017001152, -0.05329082906246185, -0.015746980905532837, -0.4543575942516327, 0.30822575092315674, -0.5355829000473022, -0.2539764940738678, -0.05916780233383179, 0.11821532249450684, 0.1231311708688736, -0.018041258677840233, -0.28144571185112, 0.09236335009336472, 0.350016713142395, -0.29090988636016846, 0.11027660965919495, 0.42041388154029846, 0.1702205389738083, -0.014279540628194809, -0.20484434068202972, 0.15361058712005615, 0.4446440041065216, -0.1842174082994461, -0.04859812930226326, -0.4758795499801636 ]
https://github.com/huggingface/datasets/issues/2132
TydiQA dataset is mixed and is not split per language
You can filter the languages this way: ```python tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english") ``` Otherwise maybe we can have one configuration per language ? What do you think of this for example ? ```python load_dataset("tydiqa", "primary_task.en") ```
Hi @lhoestq Currently TydiQA is mixed and user can only access the whole training set of all languages: https://www.tensorflow.org/datasets/catalog/tydi_qa for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this. Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot
39
TydiQA dataset is mixed and is not split per language Hi @lhoestq Currently TydiQA is mixed and user can only access the whole training set of all languages: https://www.tensorflow.org/datasets/catalog/tydi_qa for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this. Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot You can filter the languages this way: ```python tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english") ``` Otherwise maybe we can have one configuration per language ? What do you think of this for example ? ```python load_dataset("tydiqa", "primary_task.en") ```
[ -0.25920605659484863, -0.23528851568698883, -0.2044113427400589, 0.266545832157135, 0.2771573066711426, -0.025829043239355087, 0.34125858545303345, 0.33320724964141846, -0.1514981985092163, 0.0776812732219696, -0.33431538939476013, -0.0462719090282917, -0.01675352454185486, 0.42142000794410706, 0.04191828891634941, -0.3201330602169037, -0.11053764075040817, 0.05814666673541069, -0.13723787665367126, -0.00982266291975975, 0.02383454144001007, 0.15495717525482178, -0.18172237277030945, 0.131639301776886, 0.09155216813087463, -0.17362093925476074, -0.08096569031476974, -0.045580558478832245, 0.059033624827861786, -0.05857829004526138, 0.44642090797424316, 0.10730864107608795, 0.2670316696166992, 0.33416658639907837, -0.00010846377699635923, 0.1922285407781601, -0.04156382381916046, -0.3396547734737396, 0.11100205779075623, -0.23603571951389313, -0.11226288974285126, -0.3174518048763275, -0.09241607040166855, -0.20431646704673767, -0.5365700125694275, -0.1827823370695114, 0.029553499072790146, -0.3825768828392029, 0.38709568977355957, 0.29818272590637207, 0.1465834379196167, 0.16632619500160217, -0.18495874106884003, 0.22825908660888672, -0.05725704878568649, 0.05465169623494148, -0.10570912808179855, -0.053042810410261154, 0.5951899290084839, -0.07747448235750198, 0.3307022154331207, 0.2777237296104431, 0.1899046152830124, 0.0749688521027565, -0.4010956585407257, 0.11169752478599548, 0.043098896741867065, -0.5291076898574829, 0.003392379730939865, 0.5172396898269653, 0.4501475691795349, 0.054157938808202744, -0.32805338501930237, -0.13359230756759644, -0.030318256467580795, -0.2640715539455414, 0.12548351287841797, 0.3814416229724884, -0.18819180130958557, 0.24867214262485504, 0.3558288812637329, 0.0850682482123375, -0.2625574469566345, 0.1491752564907074, -0.29382166266441345, 0.3037576675415039, -0.03135448321700096, 0.060393840074539185, -0.0548037551343441, -0.14239519834518433, 0.23616430163383484, 0.24352747201919556, 0.06895216554403305, 0.2564908266067505, -0.473360538482666, -0.25447118282318115, -0.1434989869594574, -0.3753199279308319, -0.11927372217178345, -0.38477766513824463, 0.13792234659194946, 0.33406564593315125, -0.14630164206027985, -0.0021057389676570892, 0.2769569754600525, -0.0824468582868576, 0.23409071564674377, 0.36568957567214966, 0.2035246044397354, -0.1067955493927002, 0.010577172040939331, 0.07570956647396088, -0.19206230342388153, -0.3306027352809906, -0.428763747215271, 0.2712705731391907, 0.1740671843290329, 0.03941766545176506, -0.315944105386734, -0.18791352212429047, -0.12631748616695404, -0.22168686985969543, 0.10888068377971649, 0.34379491209983826, -0.027560077607631683, -0.00917041301727295, 0.07955989241600037, 0.4542487859725952, -0.3114558458328247, -0.37539899349212646, -0.14213110506534576, -0.05362742766737938, -0.1073867678642273, -0.16816304624080658, 0.084200918674469, 0.21487408876419067, -0.02484900876879692, 0.06672554463148117, -0.002511166036128998, -0.15741783380508423, 0.35177749395370483, -0.2013828009366989, 0.11753680557012558, 0.07318910956382751, 0.19003087282180786, 0.02277730591595173, 0.21915920078754425, -0.297534704208374, -0.34872573614120483, 0.058084070682525635, -0.2783568501472473, -0.24063827097415924, 0.0743740051984787, 0.16744890809059143, 0.3175937533378601, 0.14450109004974365, 0.026959046721458435, 0.7229225635528564, 0.34230414032936096, 0.04134409502148628, -0.028936095535755157, 0.04860292002558708, -0.2848920524120331, -0.055512599647045135, 0.2881777882575989, 0.16288302838802338, -0.5802621245384216, -0.12817957997322083, 0.21301482617855072, -0.3220677673816681, 0.2155674397945404, 0.21496669948101044, -0.1866123080253601, 0.37189045548439026, 0.09743259102106094, -0.20318162441253662, 0.7471083998680115, -0.20076048374176025, -0.3531038165092468, 0.039042480289936066, 0.12033809721469879, 0.11610995978116989, 0.03310453146696091, 0.06930721551179886, 0.13485592603683472, -0.025789374485611916, 0.20530591905117035, 0.5336029529571533, -0.23651593923568726, 0.029737098142504692, 0.04473549500107765, -0.06271620839834213, 0.37335437536239624, 0.4188767671585083, -0.05723327025771141, -0.2378854751586914, -0.012654677033424377, 0.23492765426635742, 0.38206830620765686, -0.1548730581998825, 0.09424217790365219, 0.06168414652347565, -0.30363985896110535, 0.15359455347061157, 0.03071773052215576, -0.21573090553283691, -0.2534972131252289, 0.22573551535606384, -0.3984823524951935, 0.21907013654708862, 0.01712667942047119, -0.18062131106853485, 0.13565009832382202, -0.1984938383102417, -0.3050161600112915, -0.24568986892700195, 0.18312805891036987, -0.11104652285575867, 0.020742755383253098, 0.16296179592609406, -0.10324977338314056, 0.09851258248090744, -0.15148977935314178, -0.08001260459423065, -0.19220681488513947, 0.020656703040003777, 0.021297991275787354, -0.071699358522892, 0.005819343030452728, 0.24501121044158936, -0.11347045749425888, -0.2013847976922989, -0.057463884353637695, -0.09355562180280685, 0.16421911120414734, 0.1159626841545105, -0.1913139522075653, -0.20855866372585297, 0.35578489303588867, -0.07331259548664093, -0.07679329812526703, 0.046979084610939026, 0.004005803726613522, -0.1576799750328064, 0.05841844156384468, 0.5854187607765198, -0.023630652576684952, 0.2771928012371063, 0.06996858865022659, -0.059058912098407745, 0.3816145956516266, -0.1984383761882782, -0.021212134510278702, -0.21913297474384308, 0.2769998013973236, -0.19637243449687958, 0.0008179135620594025, -0.04191947728395462, -0.44122180342674255, 0.16707980632781982, 0.4789671003818512, 0.1411518007516861, 0.22779446840286255, 0.0006076022982597351, 0.30511346459388733, 0.18920907378196716, -0.09412664920091629, 0.2189481109380722, 0.1907682865858078, 0.04797882214188576, 0.2750667929649353, -0.18517401814460754, 0.37417739629745483, -0.13624213635921478, 0.032060764729976654, -0.15833596885204315, 0.01589718461036682, 0.018829256296157837, -0.03132202476263046, -0.10628350079059601, -0.013290511444211006, 0.19758933782577515, 0.15034237504005432, 0.12886188924312592, -0.022720450535416603, 0.21009007096290588, -0.4768432378768921, -0.32736822962760925, -0.20234301686286926, -0.3072568476200104, 0.07339383661746979, 0.2087886780500412, 0.20617635548114777, -0.4034987986087799, -0.13597646355628967, 0.2662343382835388, 0.2984229028224945, -0.02509889006614685, -0.16834115982055664, -0.1758299171924591, 0.01695338636636734, -0.27631303668022156, -0.21650901436805725, 0.17927300930023193, 0.2920336425304413, -0.09062451124191284, 0.29813092947006226, -0.38471731543540955, -0.23443104326725006, 0.0706426277756691, -0.27073952555656433, 0.0934719368815422, -0.2213924080133438, 0.05471968650817871, -0.15958929061889648, 0.17464932799339294, 0.028035610914230347, -0.15562911331653595, 0.33260130882263184, 0.25981053709983826, -0.11413638293743134, 0.1519027203321457, -0.005475540645420551, 0.1311875879764557, 0.037113938480615616, -0.6562100648880005, -0.7368290424346924, -0.1958165466785431, -0.25453704595565796, -0.127378910779953, 0.3844643235206604, -0.4101479947566986, 0.05532917007803917, -0.12209467589855194, 0.05139568820595741, 0.18557655811309814, -0.018274830654263496, -0.1578797698020935, 0.13086609542369843, -0.34485629200935364, -0.3513144254684448, -0.07992138713598251, -0.05843920260667801, 0.6852418184280396, 0.043113719671964645, -0.12991085648536682, 0.3011079430580139, -0.17434273660182953, 0.055523697286844254, -0.1316673904657364, -0.016970032826066017, 0.29862475395202637, -0.09415671229362488, 0.12439583241939545, -0.02487904578447342, 0.29553645849227905, 0.19371625781059265, -0.2547277808189392, 0.24010148644447327, 0.013468008488416672, 0.3823545575141907, 0.19178332388401031, 0.7117959260940552, 0.2415476143360138, -0.009493295103311539, 0.26837247610092163, 0.06047447770833969, -0.20612405240535736, -0.09683281928300858, -0.39487993717193604, 0.012679670937359333, 0.2939452528953552, 0.16476894915103912, 0.2630425691604614, 0.05251486599445343, -0.4610903263092041, -0.38192999362945557, -0.21043790876865387, -0.3223952054977417, -0.4282872974872589, 0.3108155429363251, -0.2334425151348114, 0.3259696364402771, -0.11034053564071655, -0.10934785008430481, 0.041519761085510254, 0.019768541678786278, -0.20855996012687683, 0.2697064280509949, -0.2869633436203003, 0.1213245540857315, -0.15408745408058167, -0.3814830482006073, -0.19567102193832397, 0.26036614179611206, 0.027312282472848892, 0.2598653733730316, -0.3271666169166565, -0.06677649915218353, 0.25777098536491394, 0.012968495488166809, 0.46524739265441895, -0.0030342750251293182, -0.03461453318595886, -0.10496103763580322, -0.20775751769542694, -0.054785411804914474, 0.04575623944401741, -0.18515269458293915, -0.057743676006793976, 0.2859671711921692, 0.03545264154672623, -0.35588929057121277, -0.3494701385498047, -0.19352194666862488, 0.24995125830173492, -0.4031062126159668, 0.11497130244970322, -0.28288206458091736, -0.4181503355503082, -0.16014273464679718, 0.31748005747795105, 0.04293899983167648, 0.0426308698952198, 0.09489021450281143, -0.37938642501831055, -0.20593875646591187, 0.1876852810382843, 0.08740737289190292, 0.3865199387073517, 0.050149206072092056, -0.14241710305213928, 0.22289800643920898, -0.09536230564117432, -0.25375670194625854, 0.36691582202911377, 0.5436348915100098, -0.11358088254928589, -0.5056572556495667, 0.004432933405041695, -0.26939132809638977, 0.40424099564552307, 0.1753687560558319, -0.06476400792598724, 0.07083527743816376, -0.1406497210264206, -0.03175104409456253, -0.22240829467773438, 0.20092490315437317, 0.4544956386089325, 0.2071080058813095, -0.6362083554267883, -0.5407910346984863, 0.1689658910036087, -0.09180372953414917, -0.03408510982990265, 0.4179162383079529, 0.10669967532157898, -0.35160669684410095, 0.4943615198135376, 0.13783931732177734, 0.8109477162361145, -0.2904720902442932, 0.19127115607261658, 0.09463366121053696, 0.13528352975845337, 0.1510021984577179, -0.20281659066677094, -0.0893724262714386, -0.06997950375080109, -0.0036595510318875313, -0.12877154350280762, 0.07964958250522614, 0.2045089602470398, 0.37619519233703613, -0.3296666741371155, 0.041761986911296844, -0.18717795610427856, -0.5379319190979004, 0.016105949878692627, 0.21271061897277832, -0.20937763154506683, -0.1705773025751114, -0.2777918577194214, 0.08502940088510513, -0.16620884835720062, 0.14483557641506195, -0.07258892804384232, -0.07307625561952591, -0.08070363104343414, 0.060031138360500336, -0.12829041481018066, -0.029032502323389053, -0.34986037015914917, -0.14064151048660278, -0.16321484744548798, -0.5811940431594849, 0.41243699193000793, 0.5101847648620605, 0.3279881477355957, 0.22060216963291168, -0.041241355240345, 0.26687419414520264, 0.15071460604667664, 0.052930332720279694, 0.04140514135360718, -0.21504829823970795, 0.19185489416122437, -0.06832859665155411, -0.3392772972583771, 0.06168946623802185, 0.18487080931663513, 0.20144884288311005, -0.15834292769432068, 0.25123459100723267, 0.20510728657245636, -0.19458310306072235, -0.14195916056632996, 0.14696627855300903, 0.17153513431549072, -0.02413232810795307, 0.17228879034519196, 0.2702118158340454, -0.20652027428150177, 0.13380585610866547, -0.2121041864156723, -0.2760447859764099, -0.10112717747688293, -0.35002923011779785, 0.43224048614501953, 0.27984923124313354, 0.4518117308616638, 0.20380960404872894, -0.02895502746105194, -0.14223600924015045, 0.3866252899169922, 0.00027320627123117447, -0.18477538228034973, -0.10289695858955383, 0.30434754490852356, 0.05009160935878754, -0.05551913008093834, 0.24259477853775024, -0.26804476976394653, -0.13439124822616577, -0.05250487104058266, -0.371381551027298, -0.01479368470609188, 0.028418857604265213, -0.0023851729929447174, 0.021801376715302467, 0.2537812888622284, 0.22982408106327057, -0.06254179030656815, 0.6077545881271362, -0.2886662483215332, -0.01399976946413517, -0.08606429398059845, 0.3429328203201294, -0.20482352375984192, 0.11220216751098633, 0.15195728838443756, 0.17970512807369232, 0.037854887545108795, -0.15012025833129883, 0.058025043457746506, -0.30184024572372437, -0.17626702785491943, 0.13871754705905914, 0.01943434402346611, 0.1557263880968094, 0.0683932900428772, -0.28104615211486816, 0.0348380021750927, -0.12548790872097015, 0.1631980687379837, 0.061857178807258606, 0.1895330846309662, 0.4650208353996277, 0.24401125311851501, 0.18472757935523987, -0.24615155160427094, 0.1380324810743332, -0.1916905641555786, -0.03491531312465668, -0.01884676329791546, 0.049348071217536926, -0.12434469908475876, -0.20263202488422394, -0.11697905510663986, -0.005263134837150574, 0.120191290974617, -0.13953712582588196, -0.10642310231924057, 0.10432488471269608, 0.4723399579524994, -0.26470687985420227, -0.06821800768375397, 0.23735755681991577, -0.051893655210733414, 0.24954505264759064, 0.4482101500034332, 0.17848803102970123, -0.10834746062755585, 0.1239553913474083, -0.22264261543750763, -0.1907118856906891, 0.17146077752113342, 0.43202710151672363, -0.18843236565589905, 0.299778550863266, 0.43832606077194214, -0.2500913143157959, 0.025366656482219696, -0.563930869102478, 0.17257973551750183, 0.3753862679004669, -0.15605062246322632, 0.029416682198643684, 0.2055674046278, -0.11079438030719757, -0.03824272006750107, -0.0020994916558265686, -0.28236210346221924, 0.10478856414556503, -0.054616399109363556, -0.12410224974155426, 0.05818556994199753, -0.2883281111717224, -0.34894445538520813, -0.07009102404117584, -0.07387827336788177, -0.03018850088119507, 0.0473891980946064, 0.36432895064353943, -0.03868652880191803, -0.15703921020030975, 0.04218665510416031, 0.12856075167655945, 0.05724073201417923, -0.19228783249855042, -0.20620176196098328, 0.06785266846418381, -0.05016988143324852, -0.16085579991340637, 0.013661559671163559, -0.17357583343982697, -0.12098830938339233, 0.35143035650253296, 0.03437626734375954, -0.0936693325638771, 0.15172891318798065, 0.0024561509490013123, -0.17051243782043457, -0.035627592355012894, 0.37250855565071106, 0.18632635474205017, -0.04548102617263794, 0.06949280947446823, 0.14360010623931885, 0.020357269793748856, 0.010944217443466187, -0.3813978433609009, 0.37552163004875183, -0.1406777799129486, -0.14012476801872253, -0.10147538781166077, 0.39699822664260864, 0.18228203058242798, 0.38128721714019775, 0.25995558500289917, 0.1357993483543396, -0.12002860754728317, -0.17286239564418793, 0.21389099955558777, 0.005151432938873768, -0.22435428202152252, 0.5801808834075928, -0.10538055002689362, 0.17879965901374817, -0.17614997923374176, -0.0352080836892128, -0.5936296582221985, 0.0816388800740242, 0.1742512434720993, -0.25962916016578674, 0.13417771458625793, -0.20410001277923584, 0.05198795348405838, 0.1876402348279953, 0.36664754152297974, -0.19252519309520721, 0.5568442344665527, -0.24969929456710815, -0.035493895411491394, -0.23862464725971222, 0.09942859411239624, -0.13034206628799438, 0.0004955325275659561, -0.2024938464164734, 0.20770759880542755, 0.35628601908683777, 0.35902899503707886, 0.1907353699207306, -0.2272050529718399, 0.04116067662835121, 0.3413912355899811, -0.21849578619003296, -0.0689908117055893, -0.4191858172416687, 0.531970739364624, -0.11822335422039032, -0.29428842663764954, 0.2460460513830185, -0.04942815378308296, -0.07803669571876526, -0.07570139318704605, -0.07916460931301117, 0.39017659425735474, 0.25218093395233154, 0.14529675245285034, 0.2444942742586136, 0.177025705575943, -0.21142005920410156, 0.376709520816803, -0.07978907227516174, 0.021725298836827278, -0.40297946333885193, 0.2660863399505615, 0.2743578255176544, 0.059922851622104645, -0.4111658036708832, -0.29192161560058594, -0.12452070415019989, 0.3216744661331177, 0.014834713190793991, -0.14715473353862762, 0.19952361285686493, 0.03526808321475983, 0.4938175678253174, -0.09774566441774368, 0.32075807452201843, 0.5601400136947632, 0.04720735922455788, -0.13177141547203064, -0.39746809005737305, -0.09043712168931961, 0.10119771957397461, -0.12744897603988647, -0.24603982269763947, 0.17409224808216095, -0.040329709649086, 0.07711989432573318, 0.281256765127182, -0.35959938168525696, 0.08377308398485184, 0.3247872591018677, -0.10620426386594772, 0.020707525312900543, 0.28747430443763733, 0.38937920331954956, -0.10313372313976288, -0.28751519322395325, 0.3336114287376404, 0.16764292120933533, -0.04216979444026947, -0.2051711231470108, -0.2213898003101349 ]
https://github.com/huggingface/datasets/issues/2132
TydiQA dataset is mixed and is not split per language
Hi thank you very much for the great response, this will be really wonderful to have one configuration per language, as one need the dataset in majority of case per language for cross-lingual evaluations. This becomes also then more close to TFDS format, which is separated per language https://www.tensorflow.org/datasets/catalog/tydi_qa which will be really awesome to have. thanks On Mon, Mar 29, 2021 at 6:17 PM Quentin Lhoest ***@***.***> wrote: > You can filter the languages this way: > > tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english") > > Otherwise maybe we can have one configuration per language ? > What do you think of this for example ? > > load_dataset("tydiqa", "primary_task.en") > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2132#issuecomment-809516799>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMXPW2PWSQ2RHG73O7TTGCY4LANCNFSM4Z7ER7IA> > . >
Hi @lhoestq Currently TydiQA is mixed and user can only access the whole training set of all languages: https://www.tensorflow.org/datasets/catalog/tydi_qa for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this. Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot
145
TydiQA dataset is mixed and is not split per language Hi @lhoestq Currently TydiQA is mixed and user can only access the whole training set of all languages: https://www.tensorflow.org/datasets/catalog/tydi_qa for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this. Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot Hi thank you very much for the great response, this will be really wonderful to have one configuration per language, as one need the dataset in majority of case per language for cross-lingual evaluations. This becomes also then more close to TFDS format, which is separated per language https://www.tensorflow.org/datasets/catalog/tydi_qa which will be really awesome to have. thanks On Mon, Mar 29, 2021 at 6:17 PM Quentin Lhoest ***@***.***> wrote: > You can filter the languages this way: > > tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english") > > Otherwise maybe we can have one configuration per language ? > What do you think of this for example ? > > load_dataset("tydiqa", "primary_task.en") > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2132#issuecomment-809516799>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMXPW2PWSQ2RHG73O7TTGCY4LANCNFSM4Z7ER7IA> > . >
[ -0.3552146553993225, -0.232304185628891, -0.1865600347518921, 0.24706241488456726, 0.30515456199645996, -0.0820617824792862, 0.3825845420360565, 0.3362082242965698, -0.19145096838474274, 0.13157737255096436, -0.4605715274810791, -0.06283851712942123, 0.06377003341913223, 0.45318803191185, 0.03516579419374466, -0.2893121838569641, -0.16927900910377502, 0.09851354360580444, -0.2443101406097412, 0.00380876287817955, 0.14678338170051575, 0.23758362233638763, -0.10567773878574371, 0.08579275757074356, 0.053536366671323776, -0.2327953577041626, -0.08000418543815613, -0.05704137682914734, 0.04078058898448944, -0.08677501231431961, 0.41290101408958435, 0.22020505368709564, 0.23826098442077637, 0.3516659140586853, -0.00010266395838698372, 0.2214549332857132, -0.09191802144050598, -0.2966125011444092, 0.08622963726520538, -0.18340374529361725, -0.10130119323730469, -0.22732891142368317, -0.13100238144397736, -0.19618141651153564, -0.5325118899345398, -0.19058215618133545, -0.004492441192269325, -0.3459680378437042, 0.33969610929489136, 0.27319735288619995, 0.19801755249500275, 0.2754567563533783, -0.10900159925222397, 0.15922658145427704, -0.07580041140317917, 0.05415264517068863, -0.15060260891914368, -0.07469019293785095, 0.4563407897949219, -0.05222761631011963, 0.19660112261772156, 0.2734507620334625, 0.24798175692558289, 0.07265110313892365, -0.34807172417640686, 0.08708209544420242, -0.018537767231464386, -0.492968887090683, 0.030889641493558884, 0.658857524394989, 0.484563410282135, -0.027569010853767395, -0.3650476932525635, -0.1043434739112854, -0.11765840649604797, -0.2458564192056656, 0.12165715545415878, 0.2802470922470093, -0.13964107632637024, 0.3281906843185425, 0.32429206371307373, 0.18327215313911438, -0.22965314984321594, 0.15598799288272858, -0.365955114364624, 0.2008357048034668, -0.09079983830451965, -0.004171349108219147, 0.0995025634765625, -0.17709016799926758, 0.07828962802886963, 0.2008456438779831, 0.08257018774747849, 0.1947048157453537, -0.5239600539207458, -0.34350842237472534, 0.0030072107911109924, -0.4299476444721222, 0.021633367985486984, -0.37313759326934814, 0.18232844769954681, 0.3100448548793793, -0.22388584911823273, -0.02055317908525467, 0.16949737071990967, 0.04322906956076622, 0.3170819878578186, 0.29667261242866516, 0.1683044135570526, -0.07152626663446426, 0.11601920425891876, 0.0968121811747551, -0.10791698098182678, -0.2469833493232727, -0.5589659810066223, 0.19969961047172546, 0.08610900491476059, 0.061725277453660965, -0.29499250650405884, -0.2625299096107483, -0.07206995785236359, -0.19452907145023346, 0.14629046618938446, 0.31525105237960815, -0.011746721342206001, -0.05167224258184433, 0.04114548861980438, 0.3388170003890991, -0.3357955515384674, -0.3760804235935211, -0.20256884396076202, 0.015426915138959885, -0.07824559509754181, -0.12980201840400696, 0.07228238880634308, 0.15359395742416382, -0.029724258929491043, 0.09806054085493088, -0.013270273804664612, -0.03535950556397438, 0.23442819714546204, -0.19380025565624237, 0.12766078114509583, 0.08037776499986649, 0.1863417774438858, 0.006922191008925438, 0.16990388929843903, -0.3082529902458191, -0.28290945291519165, -0.014956042170524597, -0.13933399319648743, -0.1989017277956009, -0.0089010801166296, 0.22196930646896362, 0.1782561093568802, 0.11211740225553513, 0.04671251401305199, 0.8153554797172546, 0.29045793414115906, 0.011643856763839722, -0.030105434358119965, 0.030306685715913773, -0.3385448455810547, -0.014115524478256702, 0.33781203627586365, 0.17408213019371033, -0.6436677575111389, -0.07704444974660873, 0.3162018358707428, -0.3413240313529968, 0.16437387466430664, 0.25797146558761597, -0.18453526496887207, 0.2711561918258667, 0.03886105865240097, 0.03419870138168335, 0.5991306900978088, -0.18697123229503632, -0.3114599883556366, 0.06830959022045135, 0.06771023571491241, 0.012374097481369972, 0.029267601668834686, -0.06172605976462364, 0.23443198204040527, -0.08725868165493011, 0.09912349283695221, 0.4348350763320923, -0.2404681146144867, 0.029494239017367363, -0.009855154901742935, -0.12067478150129318, 0.29519450664520264, 0.35307708382606506, -0.18554244935512543, -0.29289403557777405, 0.06247562915086746, 0.26716938614845276, 0.3282119333744049, -0.2255350947380066, 0.07368375360965729, 0.10064304620027542, -0.2672345042228699, 0.08921961486339569, 0.07311920821666718, -0.23355340957641602, -0.3995298147201538, 0.2664978504180908, -0.32357367873191833, 0.25533661246299744, 0.09278412908315659, -0.2169160097837448, 0.12565836310386658, -0.27150020003318787, -0.18847571313381195, -0.22574383020401, 0.23869091272354126, -0.015327498316764832, 0.09809702634811401, 0.1489168405532837, -0.10532766580581665, -0.033154845237731934, -0.21751900017261505, -0.12769173085689545, -0.23525114357471466, -0.004217684268951416, 0.011516271159052849, -0.024569697678089142, 0.03362715244293213, 0.20560836791992188, -0.1945260763168335, -0.2773688733577728, -0.06866953521966934, -0.05546838790178299, 0.08433570712804794, 0.17624610662460327, -0.18675005435943604, -0.055704668164253235, 0.3607555031776428, -0.0796794444322586, -0.16045589745044708, 0.006556594744324684, -0.04394947737455368, -0.13471275568008423, -0.014206498861312866, 0.5713962316513062, -0.008273344486951828, 0.15343397855758667, 0.13843770325183868, -0.11139978468418121, 0.43904250860214233, -0.21189841628074646, -0.0669081062078476, -0.30668312311172485, 0.30751678347587585, -0.24053926765918732, -0.02505246177315712, -0.020658543333411217, -0.46672114729881287, 0.29388827085494995, 0.5241797566413879, 0.11954203248023987, 0.22750195860862732, 0.026045838370919228, 0.33988046646118164, 0.19098791480064392, -0.06138867884874344, 0.2351476401090622, 0.1668776273727417, 0.10935772955417633, 0.360439658164978, -0.21167244017124176, 0.32537123560905457, -0.17272169888019562, 0.041873253881931305, -0.22825144231319427, -0.0006566153024323285, 0.14246539771556854, 0.012185211293399334, -0.09229672700166702, -0.1998009979724884, 0.1816362589597702, 0.1531483232975006, 0.1381651610136032, 0.013818707317113876, 0.15291187167167664, -0.5816356539726257, -0.37613511085510254, -0.21043860912322998, -0.23786379396915436, 0.006317581981420517, 0.24828024208545685, 0.2964658737182617, -0.3051171600818634, -0.16779294610023499, 0.3162817656993866, 0.33926841616630554, 0.07441119849681854, -0.17506033182144165, -0.05386447161436081, -0.07185438275337219, -0.17943218350410461, -0.2444061040878296, 0.23883995413780212, 0.3472922146320343, -0.013521337881684303, 0.3145674765110016, -0.3366048038005829, -0.24143017828464508, 0.036231257021427155, -0.390402227640152, 0.1810482144355774, -0.272042453289032, 0.002211175858974457, -0.14683547616004944, 0.13551315665245056, -0.016885122284293175, -0.13808973133563995, 0.27350181341171265, 0.1713929921388626, -0.22110970318317413, 0.06858407706022263, -0.005579023621976376, 0.10132227838039398, -0.1264633685350418, -0.6710652709007263, -0.5951108336448669, -0.2512134909629822, -0.1333298236131668, -0.24518516659736633, 0.3593441843986511, -0.21963952481746674, 0.05702405050396919, -0.008357708342373371, 0.01646961271762848, 0.15442106127738953, -0.08931989222764969, -0.10754135251045227, 0.1558361053466797, -0.383759081363678, -0.38260188698768616, -0.1815674602985382, -0.0794028788805008, 0.6028251647949219, -0.01093054935336113, -0.16396084427833557, 0.14442017674446106, -0.2179676592350006, 0.03130197897553444, -0.13599282503128052, -0.046408943831920624, 0.38869085907936096, -0.15235114097595215, 0.07002653181552887, -0.0642264261841774, 0.21011707186698914, 0.246623694896698, -0.1676117181777954, 0.1926056295633316, 0.02133028768002987, 0.35070762038230896, 0.2853190004825592, 0.6870270371437073, 0.22253592312335968, -0.018700111657381058, 0.26119089126586914, 0.03761832416057587, -0.09730687737464905, -0.16409432888031006, -0.33055418729782104, 0.10457774996757507, 0.2790668308734894, 0.24949179589748383, 0.3200262486934662, 0.007569862529635429, -0.4194730222225189, -0.3046819269657135, -0.06820139288902283, -0.24973833560943604, -0.4224900007247925, 0.27975988388061523, -0.14859308302402496, 0.25896212458610535, -0.08078654110431671, -0.12018074095249176, 0.06585320830345154, 0.061125099658966064, -0.12720881402492523, 0.2753649353981018, -0.23563557863235474, 0.1366681009531021, -0.16383635997772217, -0.2549639344215393, -0.2577459216117859, 0.243210107088089, 0.13932159543037415, 0.12957029044628143, -0.4074017405509949, -0.03480558842420578, 0.2553427219390869, 0.010197555646300316, 0.4792654514312744, -0.01164337433874607, 0.033422812819480896, -0.056810442358255386, -0.24978439509868622, -0.04755105823278427, 0.051802728325128555, -0.24375270307064056, -0.2110763043165207, 0.27869683504104614, 0.048330314457416534, -0.48300600051879883, -0.4004105031490326, -0.18962650001049042, 0.22105050086975098, -0.3180151879787445, 0.10457233339548111, -0.15023750066757202, -0.4936712086200714, -0.1855926811695099, 0.24972841143608093, 0.13807135820388794, 0.07379446923732758, 0.11408990621566772, -0.34694528579711914, -0.09484237432479858, 0.027149617671966553, 0.0746498554944992, 0.3943498730659485, 0.03877841681241989, 0.0003892661479767412, 0.14791032671928406, -0.024258039891719818, -0.3104056119918823, 0.3375667333602905, 0.4441430866718292, -0.07141296565532684, -0.4775904417037964, 0.06897412240505219, -0.26353341341018677, 0.22579681873321533, 0.20283573865890503, -0.0787840187549591, 0.05084457993507385, -0.13943463563919067, -0.016405150294303894, -0.22628149390220642, 0.26643308997154236, 0.42545920610427856, 0.23974741995334625, -0.4981904923915863, -0.3799901604652405, 0.12703999876976013, -0.16619805991649628, -0.018814966082572937, 0.43649131059646606, 0.22362613677978516, -0.34341275691986084, 0.3876727223396301, 0.14852240681648254, 0.7250759601593018, -0.24464692175388336, 0.12869171798229218, 0.1899482011795044, 0.13150082528591156, 0.274650514125824, -0.13464368879795074, -0.051147252321243286, -0.07278173416852951, -0.0371355339884758, -0.0880490392446518, 0.1354050487279892, 0.1841680407524109, 0.36963534355163574, -0.2419297695159912, -0.019766230136156082, -0.0026526376605033875, -0.36829471588134766, 0.07598058134317398, 0.2364656627178192, -0.1546994298696518, -0.24060404300689697, -0.22741377353668213, 0.15212668478488922, -0.1377994865179062, 0.14219482243061066, -0.02449991926550865, -0.14415910840034485, 0.0232238732278347, 0.0637228861451149, -0.150936558842659, -0.04860168322920799, -0.44815999269485474, -0.06789445877075195, -0.09775027632713318, -0.5241671204566956, 0.42616838216781616, 0.4877750873565674, 0.353922963142395, 0.14107906818389893, -0.05832768231630325, 0.21231165528297424, 0.04951094835996628, 0.10840827226638794, -0.011424409225583076, -0.27227315306663513, 0.28642475605010986, -0.12151870876550674, -0.24562925100326538, -0.07009493559598923, 0.2272699624300003, 0.1699276566505432, -0.058795541524887085, 0.14548265933990479, 0.08730565756559372, -0.14102861285209656, -0.004675344098359346, 0.10796284675598145, 0.14134076237678528, -0.018748102709650993, 0.21283841133117676, 0.134555846452713, -0.19311891496181488, 0.0653739869594574, -0.12841631472110748, -0.18508312106132507, -0.07855568826198578, -0.2814275920391083, 0.37562620639801025, 0.23225468397140503, 0.33842727541923523, 0.30506351590156555, -0.06580512970685959, -0.1704980731010437, 0.3018074035644531, 0.02185896225273609, -0.2949538230895996, -0.03650026395916939, 0.2810050845146179, 0.0227462500333786, -0.024075012654066086, 0.3036063611507416, -0.28416550159454346, -0.06993906944990158, -0.08454591035842896, -0.2926841974258423, 0.0099825169891119, 0.04203697666525841, -0.12458015978336334, 0.10540366172790527, 0.27710750699043274, 0.3391002416610718, -0.1311744600534439, 0.5737299919128418, -0.369870126247406, 0.005886057857424021, -0.05654960870742798, 0.27600669860839844, -0.10364866256713867, 0.049920886754989624, 0.24134348332881927, 0.16799452900886536, 0.06675288081169128, -0.03819246590137482, -0.035104699432849884, -0.3488070070743561, -0.18297915160655975, 0.10075372457504272, 0.007105877622961998, 0.17590077221393585, 0.13139933347702026, -0.1661437749862671, -0.09255149960517883, -0.15097454190254211, 0.28554704785346985, -0.010573197156190872, 0.11092215776443481, 0.4425670802593231, 0.17389829456806183, 0.19732725620269775, -0.1370549201965332, 0.06307641416788101, -0.03707381337881088, -0.011081822216510773, -0.014212719164788723, 0.08215063810348511, -0.17569862306118011, -0.22096815705299377, -0.06530312448740005, 0.09669465571641922, 0.12557382881641388, -0.1968715786933899, -0.1459975242614746, 0.11833703517913818, 0.3806866407394409, -0.1864890456199646, 0.0730317234992981, 0.019579313695430756, -0.07360979169607162, 0.16592465341091156, 0.39012718200683594, 0.23546302318572998, -0.09509221464395523, 0.09664851427078247, -0.17058932781219482, -0.1390216201543808, 0.23273134231567383, 0.441173255443573, -0.13917867839336395, 0.29753273725509644, 0.5234043002128601, -0.2016005516052246, 0.023544464260339737, -0.570131778717041, 0.13584016263484955, 0.35800015926361084, -0.24829259514808655, 0.014758661389350891, 0.25655803084373474, -0.15802232921123505, 0.04891803115606308, -0.07461735606193542, -0.30176326632499695, 0.09023724496364594, -0.1508256196975708, -0.003172095865011215, 0.12900884449481964, -0.40520593523979187, -0.3348172903060913, -0.08263619244098663, -0.11716319620609283, -0.05090944468975067, 0.029620736837387085, 0.347979873418808, -0.07099684327840805, -0.13156700134277344, 0.0349305123090744, 0.19968543946743011, -0.008486416190862656, -0.17564713954925537, -0.22199518978595734, 0.06939498335123062, -0.023941852152347565, -0.07409994304180145, -0.04128735885024071, -0.10265298187732697, -0.07205447554588318, 0.22071677446365356, -0.04756659269332886, -0.10422512143850327, 0.04588913545012474, -0.05115114897489548, -0.13569891452789307, 0.0019164346158504486, 0.48354047536849976, 0.20260751247406006, -0.08615697920322418, -0.019256815314292908, 0.29334157705307007, 0.03287699818611145, -0.10852077603340149, -0.21729011833667755, 0.33037838339805603, -0.2242421954870224, -0.07977557927370071, -0.05269342288374901, 0.40487825870513916, 0.17228755354881287, 0.260753870010376, 0.23728789389133453, 0.15302833914756775, -0.15549898147583008, -0.1858929544687271, 0.16080176830291748, 0.023932287469506264, -0.1835125833749771, 0.43934938311576843, -0.09663993120193481, 0.31701168417930603, -0.2066836804151535, -0.05543791502714157, -0.5749290585517883, 0.1027122437953949, 0.1962309628725052, -0.2680199444293976, 0.13724878430366516, -0.18100860714912415, 0.10221883654594421, 0.09094510972499847, 0.41814303398132324, -0.18866148591041565, 0.3962576687335968, -0.11882742494344711, -0.0018162205815315247, -0.1924286037683487, 0.10124503821134567, -0.00042135268449783325, 0.135410338640213, -0.2290124148130417, 0.29736098647117615, 0.4049983322620392, 0.35526078939437866, 0.172969251871109, -0.26547110080718994, 0.09301861375570297, 0.21754752099514008, -0.20792190730571747, 0.046951260417699814, -0.49695295095443726, 0.4309389293193817, -0.09627514332532883, -0.21553221344947815, 0.2567341923713684, -0.038261108100414276, -0.04080014303326607, -0.07682494074106216, 0.04074244201183319, 0.36103352904319763, 0.07915876805782318, 0.00910564512014389, 0.2970997989177704, 0.15250897407531738, -0.17994844913482666, 0.31899964809417725, -0.06942859292030334, -0.02664298750460148, -0.5007228255271912, 0.25097545981407166, 0.2622112035751343, 0.13167491555213928, -0.3571837246417999, -0.3711138069629669, -0.12617738544940948, 0.3362698554992676, 0.04094422608613968, -0.11612360924482346, 0.22252534329891205, 0.07589758187532425, 0.45332688093185425, -0.1562904268503189, 0.3627397119998932, 0.6081723570823669, 0.06362561881542206, -0.13790984451770782, -0.3992077112197876, -0.2313997745513916, 0.13432800769805908, -0.16401700675487518, -0.1833183765411377, 0.25192487239837646, -0.03579553961753845, 0.17292553186416626, 0.18606726825237274, -0.430551141500473, 0.10407304018735886, 0.23736177384853363, -0.1121479794383049, -0.018777113407850266, 0.3154476284980774, 0.2885211706161499, -0.07826760411262512, -0.2783445715904236, 0.2762376070022583, 0.2643613815307617, -0.08760566264390945, -0.17605753242969513, -0.2279142290353775 ]
https://github.com/huggingface/datasets/issues/2131
When training with Multi-Node Multi-GPU the worker 2 has TypeError: 'NoneType' object
Hi ! Thanks for reporting I was able to reproduce this issue. This was caused by missing split infos if a worker reloads the cache of the other worker. I just opened https://github.com/huggingface/datasets/pull/2137 to fix this issue
version: 1.5.0 met a very strange error, I am training large scale language model, and need train on 2 machines(workers). And sometimes I will get this error `TypeError: 'NoneType' object is not iterable` This is traceback ``` 71 |   | Traceback (most recent call last): -- | -- | -- 72 |   | File "run_gpt.py", line 316, in <module> 73 |   | main() 74 |   | File "run_gpt.py", line 222, in main 75 |   | delimiter="\t", column_names=["input_ids", "attention_mask", "chinese_ref"]) 76 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/load.py", line 747, in load_dataset 77 |   | use_auth_token=use_auth_token, 78 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 513, in download_and_prepare 79 |   | self.download_post_processing_resources(dl_manager) 80 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 673, in download_post_processing_resources 81 |   | for split in self.info.splits: 82 |   | TypeError: 'NoneType' object is not iterable 83 |   | WARNING:datasets.builder:Reusing dataset csv (/usr/local/app/.cache/huggingface/datasets/csv/default-1c257ebd48e225e7/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2) 84 |   | Traceback (most recent call last): 85 |   | File "/data/miniconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main 86 |   | "__main__", mod_spec) 87 |   | File "/data/miniconda3/lib/python3.7/runpy.py", line 85, in _run_code 88 |   | exec(code, run_globals) 89 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 340, in <module> 90 |   | main() 91 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 326, in main 92 |   | sigkill_handler(signal.SIGTERM, None) # not coming back 93 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 301, in sigkill_handler 94 |   | raise subprocess.CalledProcessError(returncode=last_return_code, cmd=cmd) ``` On worker 1 it loads the dataset well, however on worker 2 will get this error. And I will meet this error from time to time, sometimes it just goes well.
37
When training with Multi-Node Multi-GPU the worker 2 has TypeError: 'NoneType' object version: 1.5.0 met a very strange error, I am training large scale language model, and need train on 2 machines(workers). And sometimes I will get this error `TypeError: 'NoneType' object is not iterable` This is traceback ``` 71 |   | Traceback (most recent call last): -- | -- | -- 72 |   | File "run_gpt.py", line 316, in <module> 73 |   | main() 74 |   | File "run_gpt.py", line 222, in main 75 |   | delimiter="\t", column_names=["input_ids", "attention_mask", "chinese_ref"]) 76 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/load.py", line 747, in load_dataset 77 |   | use_auth_token=use_auth_token, 78 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 513, in download_and_prepare 79 |   | self.download_post_processing_resources(dl_manager) 80 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 673, in download_post_processing_resources 81 |   | for split in self.info.splits: 82 |   | TypeError: 'NoneType' object is not iterable 83 |   | WARNING:datasets.builder:Reusing dataset csv (/usr/local/app/.cache/huggingface/datasets/csv/default-1c257ebd48e225e7/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2) 84 |   | Traceback (most recent call last): 85 |   | File "/data/miniconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main 86 |   | "__main__", mod_spec) 87 |   | File "/data/miniconda3/lib/python3.7/runpy.py", line 85, in _run_code 88 |   | exec(code, run_globals) 89 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 340, in <module> 90 |   | main() 91 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 326, in main 92 |   | sigkill_handler(signal.SIGTERM, None) # not coming back 93 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 301, in sigkill_handler 94 |   | raise subprocess.CalledProcessError(returncode=last_return_code, cmd=cmd) ``` On worker 1 it loads the dataset well, however on worker 2 will get this error. And I will meet this error from time to time, sometimes it just goes well. Hi ! Thanks for reporting I was able to reproduce this issue. This was caused by missing split infos if a worker reloads the cache of the other worker. I just opened https://github.com/huggingface/datasets/pull/2137 to fix this issue
[ -0.18061010539531708, -0.446809321641922, 0.01292378455400467, 0.5495144128799438, 0.1124853789806366, -0.009134151041507721, 0.5815144181251526, 0.29670119285583496, 0.11292426288127899, 0.23671099543571472, 0.33802884817123413, 0.017376592382788658, -0.11621580272912979, 0.16757316887378693, -0.04241079092025757, -0.2821589410305023, -0.17642155289649963, 0.04346711188554764, -0.22780531644821167, -0.21459224820137024, -0.3433730900287628, 0.13966605067253113, -0.13131707906723022, 0.18899211287498474, -0.5063354969024658, -0.4234544038772583, -0.10638223588466644, -0.03272625058889389, 0.2665303349494934, -0.2152223289012909, 0.2046152502298355, -0.33520039916038513, 0.1856163591146469, 0.8994954228401184, -0.00011864019325003028, 0.1483604460954666, 0.12082341313362122, 0.06245411932468414, -0.14421765506267548, -0.4792487621307373, 0.08363484591245651, -0.37933671474456787, 0.043894872069358826, -0.3725203275680542, -0.16402271389961243, -0.1153087317943573, 0.25082799792289734, 0.06836959719657898, 0.03812883049249649, 0.20970535278320312, 0.1652570366859436, 0.337975412607193, 0.11852909624576569, -0.09108633548021317, -0.12309224158525467, -0.07817523181438446, -0.12458138167858124, -0.057069484144449234, -0.14633263647556305, 0.21519812941551208, 0.14085263013839722, 0.3001517653465271, 0.06004410237073898, 0.05221255123615265, -0.09474021941423416, -0.04296452924609184, 0.5682384967803955, -0.4400100111961365, 0.04038911312818527, 0.34341663122177124, 0.08558811247348785, 0.007864657789468765, -0.20140483975410461, -0.13236013054847717, 0.1542741358280182, -0.1182243824005127, 0.18473711609840393, 0.36291173100471497, -0.053105082362890244, 0.15005987882614136, -0.13004641234874725, -0.0676264688372612, -0.23080213367938995, 0.05340017378330231, -0.11150968074798584, 0.09015562385320663, -0.13164974749088287, 0.4046877920627594, 0.1569739580154419, 0.042537420988082886, 0.14466826617717743, -0.1151813417673111, 0.1561761200428009, 0.037305451929569244, -0.4768412709236145, -0.2667485475540161, 0.08416637778282166, -0.15059638023376465, -0.15459299087524414, -0.12079499661922455, 0.12118667364120483, -0.17925140261650085, -0.13282924890518188, 0.3402725160121918, 0.22153240442276, -0.20896899700164795, -0.028037071228027344, 0.06677741557359695, 0.1572728306055069, -0.14404326677322388, -0.3448975682258606, 0.06565938889980316, -0.12342344969511032, -0.39756089448928833, 0.06721557676792145, 0.33139240741729736, 0.550983726978302, 0.08143405616283417, -0.255807489156723, -0.3254733085632324, -0.4844893217086792, 0.06348103284835815, 0.15919733047485352, 0.0715998187661171, -0.02156168222427368, 0.7668602466583252, -0.13800404965877533, 0.14253312349319458, -0.20154814422130585, -0.44330304861068726, -0.15091028809547424, 0.21171754598617554, -0.23164808750152588, 0.09888143837451935, -0.060881540179252625, 0.020904699340462685, -0.05376756936311722, 0.06693044304847717, 0.0066235363483428955, -0.0675479918718338, 0.2549969553947449, -0.6412527561187744, 0.026508145034313202, 0.2047787606716156, 0.18661054968833923, 0.12111916393041611, 0.19117595255374908, -0.08484809100627899, -0.17865923047065735, 0.057002343237400055, -0.4990593194961548, -0.26444488763809204, -0.04350957274436951, 0.07131529599428177, 0.13899466395378113, 0.22189658880233765, 0.06353209912776947, 0.1517142504453659, 0.533841073513031, -0.04460698366165161, 0.04140892252326012, -0.32423824071884155, -0.3369706869125366, -0.3063195049762726, -0.3215336203575134, 0.454039990901947, 0.08536094427108765, -0.0651734322309494, 0.20637959241867065, -0.05806640908122063, 0.37136876583099365, 0.4545203149318695, 0.0005993355880491436, 0.08373869955539703, -0.12341123074293137, 0.013895086944103241, 0.2660519778728485, -0.2399115115404129, 0.021565210074186325, 0.47630977630615234, -0.4028792381286621, 0.07887185364961624, 0.3922179341316223, -0.049655284732580185, -0.2771502733230591, -0.03727215901017189, 0.1895168125629425, 0.3423960208892822, -0.06283075362443924, 0.009341204538941383, -0.2271396368741989, -0.0792749673128128, 0.48159486055374146, -0.1569294035434723, 0.3270476460456848, 0.07039669901132584, -0.027674950659275055, -0.11343774944543839, 0.22753265500068665, -0.34706833958625793, -0.0631333738565445, 0.10201355814933777, 0.2154041975736618, -0.14629478752613068, 0.068694569170475, -0.168720543384552, -0.24634665250778198, 0.05420726537704468, -0.1364751160144806, 0.15165430307388306, 0.22258488833904266, -0.0803486704826355, 0.2349833846092224, -0.2266497015953064, -0.22339199483394623, 0.055360935628414154, 0.07523030042648315, 0.37200382351875305, -0.26367321610450745, 0.16320212185382843, 0.024580877274274826, 0.0021455250680446625, -0.39044904708862305, -0.27594178915023804, -0.10103431344032288, 0.20784930884838104, -0.029166104272007942, -0.10703641921281815, -0.08391106128692627, 0.2642500698566437, 0.44165655970573425, -0.21290934085845947, 0.24065348505973816, 0.14041046798229218, -0.10809029638767242, 0.049444377422332764, -0.052404724061489105, 0.18030814826488495, 0.35804811120033264, -0.18726150691509247, -0.1409420222043991, 0.20087827742099762, 0.13469916582107544, -0.14842432737350464, 0.3699091672897339, 0.4953468441963196, 0.09052152186632156, 0.20975245535373688, 0.044927142560482025, 0.07861249148845673, 0.12152308225631714, 0.02404746040701866, -0.016427602618932724, 0.08279387652873993, 0.0056441910564899445, 0.12759557366371155, -0.11251755058765411, 0.09204903244972229, -0.6476399302482605, 0.09566280990839005, 0.8060958385467529, 0.11738061904907227, 0.4062262773513794, 0.008644744753837585, 0.1291964054107666, 0.02775876224040985, -0.15448100864887238, -0.02851761132478714, 0.42291533946990967, -0.042285919189453125, 0.24655595421791077, -0.03929736465215683, -0.06261918693780899, -0.1413777470588684, 0.05222801864147186, -0.1825522929430008, 0.7166272401809692, 0.2830476760864258, 0.13272055983543396, -0.0022641653195023537, -0.005648497492074966, -0.2538818418979645, 0.2736295759677887, 0.450527548789978, -0.3334289789199829, 0.3502020239830017, -0.3673315942287445, -0.015990104526281357, -0.2581939101219177, 0.26614779233932495, -0.09382997453212738, -0.024577459320425987, -0.2472631186246872, 0.18640345335006714, 0.15038302540779114, 0.12232183665037155, 0.35891830921173096, 0.14576628804206848, 0.10719968378543854, 0.23171843588352203, 0.22993239760398865, 0.01116489339619875, -0.21773359179496765, -0.07255365699529648, 0.2922360301017761, -0.33589431643486023, 0.009064998477697372, -0.12266004085540771, -0.5176731944084167, -0.3514285385608673, -0.06382583826780319, 0.06567462533712387, 0.013568056747317314, 0.0029366128146648407, 0.2864254117012024, 0.07852572202682495, -0.012097032740712166, -0.06199922412633896, 0.15520569682121277, -0.4553331136703491, -0.11282819509506226, 0.24765491485595703, -0.38556474447250366, 0.10963668674230576, -0.12863832712173462, -0.2845996618270874, -0.29851654171943665, -0.16824354231357574, 0.633554220199585, 0.036101531237363815, 0.43266695737838745, 0.16279733180999756, 0.1140318363904953, 0.16086070239543915, 0.1367167979478836, 0.09560663253068924, -0.1563303917646408, -0.4536629021167755, 0.14690805971622467, 0.04631877690553665, -0.2639673054218292, -0.08131320774555206, 0.07793867588043213, 0.32593607902526855, 0.1940157264471054, -0.3016444444656372, -0.24737659096717834, 0.06989096850156784, -0.0073892176151275635, -0.08029404282569885, 0.043605875223875046, 0.3106845021247864, -0.08174808323383331, -0.07956492155790329, 0.10493674129247665, 0.16634705662727356, 0.1308562308549881, 0.2061450183391571, 0.259774774312973, 0.21585991978645325, 0.2530970573425293, 0.2540294826030731, 0.5351129770278931, 0.22063182294368744, -0.06744621694087982, 0.2258816659450531, -0.1522952914237976, -0.0044802092015743256, 0.15644364058971405, -0.35946160554885864, 0.14733687043190002, -0.23302710056304932, -0.13323038816452026, -0.04665479063987732, -0.44171732664108276, -0.5093238949775696, -0.16648736596107483, -0.17383098602294922, -0.3591645061969757, -0.1715165078639984, 0.22901099920272827, -0.2058074176311493, 0.3189738988876343, -0.2008255273103714, -0.06633176654577255, -0.24824118614196777, 0.02082366682589054, -0.04612523689866066, 0.2327273190021515, -0.02023869752883911, -0.08025188744068146, -0.4130922555923462, -0.5657936334609985, -0.04417097568511963, 0.26155322790145874, 0.011374721303582191, 0.44019052386283875, -0.10604767501354218, 0.019314613193273544, 0.1748601794242859, -0.00690056337043643, 0.8240174055099487, -0.23428888618946075, 0.024316882714629173, 0.2899027168750763, -0.5752906799316406, -0.08479855954647064, -0.03995734080672264, -0.2760019302368164, 0.42164376378059387, 0.5022406578063965, 0.3049764633178711, -0.1920868158340454, -0.3170812427997589, 0.2327643483877182, -0.173020139336586, -0.15133507549762726, -0.0994567722082138, -0.26819899678230286, -0.12675228714942932, 0.0031304769217967987, 0.09917514026165009, 0.04236342012882233, 0.4196646511554718, -0.422313392162323, -0.011067360639572144, -0.35940074920654297, 0.10356058925390244, 0.09924313426017761, 0.018377412110567093, -0.022020451724529266, -0.015782957896590233, -0.29335182905197144, 0.06660589575767517, 0.4181608259677887, 0.3456065356731415, 0.13525399565696716, 0.1237928718328476, -0.22204992175102234, 0.38663631677627563, -0.21939852833747864, 0.39985352754592896, 0.44144678115844727, -0.06890448182821274, 0.25939908623695374, 0.04642932116985321, 0.30887705087661743, 0.009954478591680527, -0.2134140431880951, 0.5013943910598755, 0.09648315608501434, -0.3567269742488861, -0.44057074189186096, 0.24178439378738403, 0.23087216913700104, 0.1443292200565338, 0.0753163993358612, -0.3131641745567322, -0.09207859635353088, -0.03643136844038963, -0.03488684445619583, 0.8628459572792053, 0.13031917810440063, 0.13191132247447968, 0.2637452483177185, 0.0648118183016777, 0.7199355959892273, -0.44223421812057495, 0.39176857471466064, -0.25687867403030396, -0.16638191044330597, -0.16409112513065338, -0.08176558464765549, 0.391442209482193, 0.20645736157894135, -0.23814043402671814, 0.3658711612224579, -0.10307816416025162, -0.16163906455039978, -0.15807712078094482, 0.114832803606987, -0.2505126893520355, -0.061388660222291946, -0.14965344965457916, -0.04961477592587471, 0.05776793509721756, 0.17044369876384735, -0.14700597524642944, -0.37253493070602417, 0.3594645857810974, -0.005059555172920227, -0.21959440410137177, -0.08866848796606064, -0.32480254769325256, 0.28756004571914673, 0.4124968349933624, -0.4293590784072876, 0.2377709448337555, 0.20760281383991241, 0.30870360136032104, -0.2606233060359955, -0.12209860980510712, -0.2071409821510315, -0.20247772336006165, -0.007219681981950998, -0.2808031737804413, -0.1926896572113037, 0.5347767472267151, -0.10140842199325562, -0.5287344455718994, 0.2500188946723938, -0.003134633880108595, -0.004328321665525436, 0.024158135056495667, 0.09921567887067795, -0.49704641103744507, 0.2518160343170166, -0.04583442211151123, 0.19434025883674622, -0.1678856611251831, -0.2178986519575119, 0.07154510170221329, -0.08303086459636688, -0.6331079006195068, -0.005031690001487732, -0.01597689464688301, -0.40664973855018616, 0.18846657872200012, 0.356263130903244, 0.5661859512329102, 0.4459781050682068, 0.4622502326965332, 0.3645583391189575, -0.08354755491018295, -0.3533835709095001, 0.2155156135559082, 0.3437524437904358, -0.3580477237701416, 0.2269231379032135, -0.01345869805663824, 0.05459851026535034, 0.033312540501356125, 0.10383722186088562, 0.04384353756904602, 0.594174861907959, -0.16777676343917847, -0.2888617515563965, 0.11383635550737381, -0.12441408634185791, -0.22115342319011688, -0.19147230684757233, 0.03181075304746628, 0.46785956621170044, 0.36961448192596436, 0.15604335069656372, -0.2256104052066803, 0.1832115203142166, -0.6862773895263672, 0.15642794966697693, -0.297635942697525, -0.18752869963645935, 0.03517280891537666, 0.2281865030527115, 0.01127604953944683, 0.031103946268558502, -0.015120794996619225, -0.11357136070728302, -0.10845550894737244, 0.1914587914943695, 0.07627414166927338, 0.20772381126880646, 0.21914240717887878, 0.001300666481256485, -0.26298561692237854, 0.08612509071826935, 0.10314597189426422, 0.02638375014066696, -0.012782320380210876, 0.3347819149494171, -0.1318499743938446, 0.14706172049045563, -0.051689065992832184, 0.01608162745833397, -0.166355162858963, -0.026443079113960266, 0.06842034310102463, 0.25990766286849976, 0.2681324779987335, 0.1051006019115448, -0.2012491226196289, -0.09052737802267075, -0.16902001202106476, 0.13104559481143951, -0.003156479448080063, -0.33795422315597534, -0.15375269949436188, -0.061039987951517105, -0.12874697148799896, 0.07865196466445923, -0.2081068754196167, 0.164284348487854, -0.00827617384493351, 0.07519019395112991, -0.17203664779663086, 0.01604941301047802, 0.39848026633262634, 0.04014306515455246, -0.05452357232570648, 0.3129579722881317, 0.19645847380161285, -0.014788731932640076, -0.22554878890514374, 0.09894125908613205, -0.17985646426677704, -0.5493919253349304, 0.1987306922674179, 0.0789998471736908, -0.17255514860153198, 0.1692458838224411, 0.23402343690395355, 0.1941283494234085, -0.010798521339893341, 0.19863222539424896, 0.15539801120758057, 0.25056660175323486, 0.011446425691246986, 0.06474978476762772, 0.18746238946914673, -0.34194546937942505, -0.18517667055130005, 0.10272439569234848, -0.18781444430351257, -0.07582137733697891, -0.24397051334381104, 0.10619457066059113, -0.3426975607872009, -0.23298801481723785, -0.13440696895122528, 0.10679307579994202, -0.3716104030609131, -0.07589632272720337, -0.48229390382766724, -0.03382529318332672, -0.2222220003604889, -0.06207043677568436, 0.11318828165531158, 0.0784958004951477, 0.36379674077033997, 0.2248344123363495, -0.1549205183982849, -0.30114346742630005, 0.09746386855840683, 0.16356191039085388, 0.2713884711265564, -0.22273573279380798, 0.011884568259119987, 0.10448747128248215, -0.0192575603723526, -0.2971428632736206, 0.4542776346206665, 0.3316575884819031, 0.3410502076148987, -0.22789332270622253, -0.1521064043045044, 0.12080910801887512, -0.14012673497200012, 0.016909126192331314, -0.08650805801153183, 0.1232793778181076, 0.24241231381893158, 0.2065562903881073, 0.000788537785410881, -0.05082514509558678, 0.37723004817962646, 0.14117246866226196, 0.015280219726264477, -0.39474302530288696, 0.4997740685939789, -0.3795517086982727, 0.04047895967960358, -0.09759679436683655, 0.31810563802719116, -0.5076950192451477, 0.1147274523973465, 0.6607000231742859, -0.20358750224113464, 0.2390410602092743, 0.005449630320072174, 0.024767901748418808, -0.15073074400424957, 0.48828092217445374, 0.05564531683921814, -0.026479572057724, -0.2904708683490753, 0.12167023122310638, -0.11697401106357574, 0.5847662687301636, -0.34550729393959045, 0.2629433572292328, -0.038188204169273376, 0.6029921174049377, -0.07868682593107224, -0.07410205155611038, 0.12735261023044586, 0.15748466551303864, 0.194841206073761, 0.39914268255233765, -0.41475915908813477, -0.22496186196804047, -0.3403022885322571, -0.13078700006008148, 0.16332390904426575, -0.3058508634567261, 0.16609394550323486, -0.11332972347736359, 0.016327813267707825, -0.03951166197657585, 0.0059385597705841064, -0.22463014721870422, 0.020087335258722305, 0.2809775471687317, 0.18725921213626862, 0.2327939122915268, 0.009996671229600906, -0.04241524636745453, 0.010122757405042648, -0.19675160944461823, -0.29974520206451416, 0.5487590432167053, 0.056880101561546326, 0.09977621585130692, -0.19396144151687622, 0.20670780539512634, -0.1505216807126999, 0.2600655257701874, -0.019350236281752586, 0.09635058790445328, 0.010075300931930542, 0.2616029977798462, -0.025961410254240036, -0.07445936650037766, 0.08255037665367126, 0.0806279331445694, 0.1278177946805954, -0.26724308729171753, -0.16669993102550507, -0.09586136788129807, 0.3261486887931824, -0.3049176037311554, -0.3767557740211487, -0.48742079734802246, 0.3538346588611603, 0.058023884892463684, 0.14175885915756226, -0.4789167046546936, -0.14948046207427979, 0.3774830102920532, -0.06847365945577621, -0.3998476564884186, -0.044130589812994, -0.08414863049983978, -0.1253637820482254, 0.07600975036621094, -0.21127748489379883, -0.12441589683294296, -0.2668003737926483, 0.12309519946575165, -0.3076862096786499 ]
https://github.com/huggingface/datasets/issues/2130
wikiann dataset is missing columns
Here please find TFDS format of this dataset: https://www.tensorflow.org/datasets/catalog/wikiann where there is a span column, this is really necessary to be able to use the data, and I appreciate your help @lhoestq
Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
32
wikiann dataset is missing columns Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq Here please find TFDS format of this dataset: https://www.tensorflow.org/datasets/catalog/wikiann where there is a span column, this is really necessary to be able to use the data, and I appreciate your help @lhoestq
[ 0.003892958164215088, -0.4387929141521454, -0.09474542737007141, 0.27633804082870483, 0.3197288513183594, 0.18333914875984192, 0.32081663608551025, 0.08076170086860657, 0.05312639847397804, 0.25700896978378296, 0.010993555188179016, -0.23808696866035461, 0.07030993700027466, 0.4205828011035919, 0.34807246923446655, -0.8203638792037964, 0.1133006364107132, 0.38760772347450256, -0.23017656803131104, -0.1201593205332756, -0.24213522672653198, 0.34456852078437805, -0.41372430324554443, -0.17267100512981415, -0.24903398752212524, -0.10222577303647995, -0.15134534239768982, -0.08968215435743332, -0.03396424651145935, -0.03080781176686287, 0.30402278900146484, -0.29346463084220886, 0.3014790713787079, 0.11419636011123657, -0.0001120764936786145, 0.10792724788188934, 0.013425085693597794, -0.11435134708881378, 0.0769588053226471, 0.26847028732299805, -0.03056936338543892, -0.3217630088329315, 0.012333323247730732, -0.39681556820869446, -0.35831305384635925, -0.18270573019981384, -0.17689207196235657, 0.11606454849243164, 0.11295430362224579, 0.2176230102777481, 0.1882001906633377, 0.7334351539611816, 0.32614684104919434, -0.02159268409013748, 0.07389482855796814, -0.25824809074401855, -0.24346861243247986, -0.36270517110824585, 0.23683986067771912, -0.09888525307178497, 0.23976486921310425, 0.34285181760787964, -0.014115164056420326, -0.19029447436332703, 0.2873823940753937, 0.15295587480068207, -0.2721426486968994, -0.5023329257965088, 0.29278630018234253, 0.7253634333610535, 0.8114991784095764, 0.09701597690582275, 0.145193949341774, -0.19723418354988098, 0.016599135473370552, 0.0472857803106308, 0.08048650622367859, 0.13411682844161987, -0.019667992368340492, 0.2952950894832611, -0.07298526912927628, -0.07818300276994705, -0.2694768011569977, 0.2836077809333801, -0.3395300507545471, 0.34843358397483826, -0.043236881494522095, -0.054571524262428284, -0.15881860256195068, -0.011112943291664124, -0.09229631721973419, 0.17392826080322266, 0.08843350410461426, 0.17107997834682465, -0.39398977160453796, -0.22444714605808258, -0.08043713122606277, 0.26540806889533997, 0.13047227263450623, -0.049379296600818634, -0.25673505663871765, -0.2637617886066437, 0.07724346220493317, -0.0034748055040836334, -0.08453249931335449, 0.08640164136886597, -0.0976356640458107, 0.14008668065071106, 0.033921901136636734, 0.19447866082191467, 0.1251032054424286, -0.1460150182247162, -0.18886606395244598, 0.04090272635221481, -0.10016047954559326, -0.2774035930633545, -0.12250664830207825, 0.0023712627589702606, 0.17781829833984375, 0.09476288408041, 0.12005739659070969, 0.07993896305561066, 0.02921423874795437, 0.2910700738430023, -0.03445344790816307, 0.5733729600906372, -0.018494291231036186, 0.08014927804470062, 0.07288210093975067, -0.10366661846637726, -0.31510207056999207, 0.16445046663284302, 0.1746063232421875, 0.06653141975402832, 0.14581021666526794, -0.26164716482162476, 0.4494471251964569, 0.0023812120780348778, -0.16791394352912903, 0.2190256118774414, -0.03887557238340378, 0.08149093389511108, -0.08575031906366348, 0.5386389493942261, 0.020741228014230728, 0.040184542536735535, 0.15538948774337769, 0.09844082593917847, -0.06840992718935013, 0.05215782672166824, -0.323591947555542, -0.07731388509273529, -0.37692990899086, 0.18127861618995667, -0.0029471274465322495, -0.32487553358078003, -0.10786985605955124, 0.10646696388721466, 0.07552242279052734, -0.2321738749742508, 0.2516082525253296, -0.03601083159446716, -0.12205332517623901, -0.15932218730449677, 0.44398725032806396, -0.05313844978809357, -0.36924707889556885, -0.29774364829063416, 0.2755213677883148, -0.17683911323547363, 0.2126060128211975, 0.38605090975761414, 0.1058010384440422, 0.17043252289295197, -0.09024457633495331, 0.4356480836868286, 0.24902179837226868, -0.22927263379096985, -0.2811495363712311, -0.12342211604118347, 0.18897579610347748, 0.18030641973018646, 0.049490056931972504, -0.07016292959451675, 0.35232457518577576, 0.10539992153644562, -0.07121218740940094, 0.2468883991241455, -0.15497121214866638, 0.020839078351855278, -0.05595756694674492, -0.2708706557750702, 0.15833637118339539, 0.1909637600183487, 0.31860482692718506, 0.11957188695669174, -0.23155969381332397, 0.14122356474399567, 0.21702933311462402, -0.3112366795539856, 0.09457607567310333, 0.31533509492874146, 0.10525587201118469, 0.25954669713974, 0.16628356277942657, -0.1629924774169922, -0.7005296349525452, 0.1809140145778656, 0.19239848852157593, 0.1310081034898758, 0.288563072681427, -0.15914282202720642, -0.08848962932825089, -0.16148512065410614, -0.13237696886062622, -0.1435147374868393, 0.14595143496990204, -0.16559834778308868, 0.057009559124708176, 0.2606689929962158, -0.2820783257484436, -0.22865810990333557, -0.34093257784843445, 0.11144493520259857, -0.17070239782333374, 0.29898518323898315, -0.008516782894730568, 0.14481304585933685, 0.04201894998550415, 0.3530823886394501, 0.09172601252794266, 0.00654746126383543, 0.24744415283203125, 0.03394279628992081, -0.3063536584377289, 0.11763754487037659, -0.16429072618484497, 0.3263200521469116, 0.23067684471607208, -0.2691124975681305, -0.26757222414016724, -0.17825190722942352, -0.0008585667237639427, -0.3207314610481262, -0.036940135061740875, 0.06252670288085938, 0.020167170092463493, 0.22637978196144104, 0.08984526991844177, 0.30090102553367615, 0.09668171405792236, -0.256610244512558, 0.08485551178455353, -0.22466571629047394, 0.13427263498306274, -0.5700149536132812, 0.23833046853542328, -0.10812491178512573, -0.5302505493164062, 0.13989965617656708, 0.5346270203590393, -0.13475178182125092, 0.2633163034915924, -0.010923165827989578, -0.3155108094215393, 0.18277999758720398, 0.18914639949798584, -0.047607116401195526, 0.12038304656744003, 0.1958453506231308, 0.2573871910572052, -0.018991047516465187, 0.023397743701934814, -0.20029112696647644, 0.15238702297210693, -0.13090574741363525, 0.2438170164823532, 0.23093989491462708, -0.08897644281387329, 0.1434015929698944, -0.14451664686203003, 0.3678421080112457, -0.19471146166324615, 0.3326028883457184, -0.19297967851161957, -0.2458500862121582, -0.20233996212482452, -0.2728334963321686, 0.17746113240718842, 0.014158539474010468, -0.04823961481451988, -0.24292583763599396, -0.013883993029594421, -0.045125823467969894, 0.07733415067195892, 0.12213081121444702, -0.11634843051433563, 0.2756810486316681, -0.006952159106731415, 0.10268920660018921, -0.4535602629184723, -0.023431966081261635, -0.20512795448303223, 0.17764844000339508, 0.005037527531385422, -0.10094310343265533, 0.16537180542945862, -0.2824867367744446, -0.011393740773200989, -0.4114503860473633, -0.39878419041633606, 0.15314412117004395, -0.257013738155365, -0.17821747064590454, 0.2222474366426468, 0.7760816216468811, -0.18088099360466003, -0.1068493127822876, 0.2203473597764969, -0.3107448220252991, -0.1329946517944336, 0.08504125475883484, -0.24693280458450317, -0.02711395174264908, -0.14790989458560944, -0.04569932073354721, -0.24690817296504974, -0.05443966016173363, 0.006320834159851074, -0.1434309035539627, -0.03313774615526199, 0.010850244201719761, -0.0731809139251709, 0.23825179040431976, 0.00967912282794714, -0.02236957661807537, -0.17646433413028717, -0.3380378484725952, 0.44217371940612793, -0.15146706998348236, -0.4279814064502716, 0.14773167669773102, -0.1339939534664154, 0.44142434000968933, 0.10188319534063339, -0.4725305438041687, -0.2244134396314621, -0.07656308263540268, 0.1601538062095642, -0.03375744819641113, 0.046072326600551605, 0.5994670391082764, -0.29071202874183655, 0.1441125124692917, -0.3438044786453247, 0.24651223421096802, -0.1237940713763237, -0.22747188806533813, 0.3126414120197296, -0.18423187732696533, 0.2806165814399719, 0.11962191760540009, 0.4372527599334717, 0.13403606414794922, 0.23358336091041565, 0.16424980759620667, -0.32732629776000977, 0.35055011510849, -0.055436231195926666, -0.14199484884738922, 0.33574286103248596, 0.05690673738718033, 0.3127402067184448, 0.3495141267776489, 0.08046308159828186, -0.13977228105068207, -0.1895391196012497, -0.13854879140853882, -0.3253615200519562, -0.03609304502606392, 0.005671435967087746, 0.3305637836456299, 0.36021149158477783, -0.06672972440719604, 0.14127960801124573, -0.09586536884307861, -0.29644569754600525, 0.11643749475479126, 0.43511563539505005, 0.184698224067688, 0.07685825973749161, -0.2016158550977707, 0.042506586760282516, -0.5353740453720093, -0.11995775997638702, -0.0783548355102539, 0.14306989312171936, -0.16109466552734375, 0.2194124460220337, 0.015373967587947845, 0.12390837073326111, 0.5483195781707764, -0.45867130160331726, -0.25113219022750854, -0.15146766602993011, 0.06942442059516907, -0.2658081650733948, 0.1500851958990097, -0.1759609580039978, -0.6598413586616516, 0.06332118809223175, 0.5552465319633484, -0.19455623626708984, -0.07611361891031265, 0.4672183692455292, 0.11090762913227081, -0.24049365520477295, -0.3276115357875824, -0.21757379174232483, -0.5198204517364502, -0.05980563163757324, -0.2966900169849396, 0.22844640910625458, 0.1514735221862793, 0.08127440512180328, 0.0186426043510437, -0.10388938337564468, 0.07226762175559998, -0.05594703555107117, 0.12643451988697052, 0.19701847434043884, 0.20996366441249847, -0.14621970057487488, 0.3026443421840668, 0.14114487171173096, 0.02287939377129078, 0.18729203939437866, -0.11131663620471954, -0.2668185830116272, -0.08939249813556671, -0.11488217115402222, 0.35278239846229553, -0.029358014464378357, -0.042898211628198624, 0.15967422723770142, 0.10222336649894714, 0.16110765933990479, -0.15563227236270905, 0.1408909261226654, 0.4840660095214844, 0.03064371645450592, -0.3259812891483307, -0.2197619527578354, 0.3390570878982544, 0.031009644269943237, 0.277232825756073, 0.3194665014743805, 0.6091132164001465, -0.21987324953079224, -0.07137162983417511, 0.08826423436403275, 0.6027914881706238, -0.08084966242313385, 0.2150682955980301, 0.6387684941291809, 0.10784822702407837, 0.5061591863632202, -0.1738472580909729, 0.08137567341327667, -0.13998298346996307, -0.20352093875408173, -0.20881356298923492, 0.11789348721504211, 0.15353597700595856, -0.1363845020532608, -0.13807551562786102, 0.23020285367965698, 0.1945403665304184, 0.6590555310249329, 0.2112267017364502, 0.0206189826130867, 0.19810792803764343, -0.3410155773162842, 0.003791564144194126, 0.050999872386455536, -0.18286313116550446, 0.22894583642482758, -0.18159028887748718, 0.027426984161138535, 0.10957261919975281, -0.052121683955192566, -0.38874393701553345, -0.046769335865974426, -0.30279985070228577, 0.08372344076633453, 0.2496720403432846, -0.4280474781990051, 0.026097744703292847, 0.5828907489776611, 0.29190874099731445, 0.07495220750570297, -0.4588286578655243, 0.3391946256160736, -0.2899726331233978, -0.1697789579629898, -0.10525994002819061, -0.018703775480389595, 0.14689767360687256, -0.3607313632965088, -0.2569969892501831, 0.08878376334905624, -0.19795437157154083, 0.11236061155796051, -0.5468317270278931, -0.1329643726348877, -0.2318887859582901, -0.1394217312335968, -0.20195801556110382, 0.028669394552707672, 0.20513106882572174, -0.1704583764076233, 0.10363611578941345, -0.23408342897891998, 0.03117046132683754, 0.002311818301677704, -0.014566689729690552, 0.11511629819869995, -0.04658626392483711, -0.008806854486465454, 0.15139228105545044, -0.1076870933175087, 0.5726299285888672, 0.22791333496570587, -0.20196224749088287, -0.20966947078704834, 0.15864843130111694, 0.3235655128955841, -0.11135140061378479, -0.22328700125217438, 0.3407530188560486, 0.06367824971675873, -0.22436463832855225, 0.4084559977054596, 0.05452917143702507, -0.3415662944316864, -0.09597167372703552, -0.2599239945411682, -0.32987910509109497, 0.284015953540802, -0.00957547128200531, 0.08503355085849762, -0.045758556574583054, 0.373096764087677, 0.03901320695877075, -0.006416786462068558, -0.26168709993362427, 0.053433798253536224, -0.15295027196407318, -0.07016409188508987, 0.1162124052643776, -0.07588394731283188, 0.21011507511138916, -0.06202691048383713, 0.06462383270263672, 0.06214278191328049, 0.14701947569847107, -0.17995506525039673, -0.16120755672454834, 0.0971435010433197, 0.13252505660057068, 0.08198139071464539, 0.11575482040643692, 0.07765407115221024, -0.30333036184310913, -0.0377342626452446, 0.23921212553977966, -0.06503477692604065, 0.12423567473888397, 0.4137269854545593, 0.26291418075561523, 0.10066244751214981, -0.4023759961128235, 0.0708327442407608, 0.045940373092889786, 0.0502920038998127, -0.07668593525886536, -0.017524510622024536, 0.37828725576400757, 0.003446131944656372, 0.36445122957229614, 0.13471803069114685, -0.026365548372268677, -0.010521616786718369, 0.4533821940422058, -0.07181334495544434, 0.19054225087165833, -0.012927157804369926, 0.004608942195773125, -0.13904421031475067, -0.15042711794376373, 0.2139180451631546, 0.1837681233882904, 0.17914313077926636, -0.3440064787864685, -0.01656244695186615, 0.6128947138786316, 0.2153342366218567, 0.05473507568240166, 0.08264154940843582, 0.012405086308717728, -0.21250960230827332, -0.08215749263763428, -0.06222689524292946, 0.37219908833503723, -0.24949438869953156, 0.11695443093776703, 0.29454588890075684, 0.16889207065105438, -0.05699032172560692, -0.10704559832811356, 0.055077724158763885, -0.1166195347905159, 0.012453500181436539, 0.1552194356918335, 0.15467247366905212, -0.3471734821796417, 0.08961150050163269, 0.30729323625564575, -0.21042755246162415, -0.17485980689525604, -0.18477067351341248, -0.14564187824726105, 0.007128473371267319, -0.2843005061149597, 0.12264066189527512, 0.2596568763256073, -0.1760377138853073, -0.11469598114490509, 0.2897743880748749, -0.42255857586860657, -0.03653701767325401, -0.5136740207672119, -0.09495671093463898, 0.46431800723075867, -0.01159999705851078, 0.21846888959407806, -0.07012075185775757, -0.297537237405777, 0.03583431616425514, -0.13051997125148773, 0.06328976899385452, -0.13090738654136658, 0.3346392512321472, 0.24438261985778809, 0.09629200398921967, 0.16498753428459167, 0.5131888389587402, -0.08271545171737671, -0.0653141438961029, 0.14177869260311127, 0.1540221869945526, -0.13016092777252197, 0.20385700464248657, 0.04238826036453247, -0.0868409126996994, -0.2127307504415512, 0.1242760717868805, 0.16564121842384338, 0.36612075567245483, 0.07145236432552338, 0.2031334638595581, 0.09163033217191696, -0.16078561544418335, 0.1727113276720047, -0.3102754056453705, 0.06273673474788666, -0.25258368253707886, -0.43148931860923767, -0.4790424406528473, -0.3664103150367737, -0.3255729675292969, 0.0700911283493042, -0.36678948998451233, 0.43938133120536804, 0.31424254179000854, 0.1522529572248459, 0.04962066560983658, 0.012073558755218983, 0.04081830009818077, -0.056560907512903214, 0.5336555242538452, 0.3753238618373871, 0.06522755324840546, -0.06319773197174072, -0.5100793242454529, -0.46041080355644226, 0.1406422108411789, -0.3310752809047699, -0.2809600532054901, 0.39919790625572205, 0.012190086767077446, 0.22461843490600586, -0.11209779977798462, 0.07124030590057373, 0.18188875913619995, -0.06115110218524933, -0.08496518433094025, -0.3626081943511963, -0.32412296533584595, -0.21028836071491241, 0.15752007067203522, -0.07810115814208984, 0.09945640712976456, 0.3338729739189148, 0.23367121815681458, 0.0444556325674057, -0.054985202848911285, 0.5272189378738403, -0.2992137670516968, -0.25616464018821716, -0.2594645321369171, 0.17922939360141754, 0.42752647399902344, -0.20123246312141418, 0.1252472996711731, 0.0064842589199543, -0.05520811676979065, -0.21333518624305725, 0.20918431878089905, -0.04205043986439705, 0.2689848244190216, -0.08637693524360657, -0.3895610570907593, -0.0416734553873539, 0.08302328735589981, 0.22974808514118195, 0.11482544243335724, -0.2521400451660156, 0.1560746431350708, 0.2910841703414917, -0.1661330759525299, 0.5159578919410706, 0.23524320125579834, -0.3428996205329895, -0.14565575122833252, -0.1788381040096283, -0.4296727478504181, 0.38565903902053833, -0.35162779688835144, -0.07092933356761932, -0.11475007981061935, -0.3248478174209595, 0.1656799614429474, 0.17176871001720428, -0.6097330451011658, -0.08521205931901932, 0.2544308006763458, -0.03008773922920227, -0.11701218783855438, 0.27733880281448364, 0.2003665417432785, 0.13672751188278198, 0.013195998966693878, -0.1779356598854065, 0.07764483988285065, -0.17689962685108185, -0.13117361068725586, -0.14220699667930603 ]
https://github.com/huggingface/datasets/issues/2130
wikiann dataset is missing columns
Hi ! Apparently you can get the spans from the NER tags using `tags_to_spans` defined here: https://github.com/tensorflow/datasets/blob/c7096bd38e86ed240b8b2c11ecab9893715a7d55/tensorflow_datasets/text/wikiann/wikiann.py#L81-L126 It would be nice to include the `spans` field in this dataset as in TFDS. This could be a good first issue for new contributors ! The objective is to use `tags_to_spans` in the `_generate_examples` method [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) to create he `spans` for each example.
Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
61
wikiann dataset is missing columns Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq Hi ! Apparently you can get the spans from the NER tags using `tags_to_spans` defined here: https://github.com/tensorflow/datasets/blob/c7096bd38e86ed240b8b2c11ecab9893715a7d55/tensorflow_datasets/text/wikiann/wikiann.py#L81-L126 It would be nice to include the `spans` field in this dataset as in TFDS. This could be a good first issue for new contributors ! The objective is to use `tags_to_spans` in the `_generate_examples` method [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) to create he `spans` for each example.
[ 0.009602747857570648, -0.34004926681518555, -0.04167193919420242, 0.22198952734470367, 0.2957081198692322, 0.15064075589179993, 0.34696078300476074, 0.038946013897657394, 0.09205073118209839, 0.2753717601299286, 0.04856792837381363, -0.0450659915804863, -0.008062279783189297, 0.36324483156204224, 0.34762609004974365, -0.7035671472549438, 0.031178392469882965, 0.2775576710700989, -0.16976508498191833, 0.012546807527542114, -0.23864524066448212, 0.43506762385368347, -0.3131059408187866, -0.1572517305612564, -0.4427958130836487, -0.01762295700609684, -0.2585737407207489, -0.08876553922891617, -0.00006193108856678009, -0.20985610783100128, 0.33938005566596985, -0.228644460439682, 0.2572212219238281, -0.11119093745946884, -0.0001127701616496779, 0.013566650450229645, 0.0615052729845047, -0.07877099514007568, 0.045372430235147476, -0.08413952589035034, 0.09221766144037247, -0.2578551173210144, -0.0348372757434845, -0.2561401128768921, -0.32840487360954285, -0.0753946453332901, -0.15175935626029968, 0.09517452120780945, -0.02475021779537201, 0.21802690625190735, 0.15046389400959015, 0.7661392688751221, 0.16678273677825928, -0.07798595726490021, 0.30549320578575134, -0.11181218922138214, -0.3342808187007904, -0.20918993651866913, 0.15715554356575012, -0.1502288579940796, 0.06483536958694458, 0.41551363468170166, 0.17557187378406525, -0.21078155934810638, 0.3825218975543976, 0.3127262592315674, -0.36832019686698914, -0.4562547206878662, 0.001371670514345169, 0.7677556872367859, 0.43280985951423645, 0.005635160952806473, -0.026445215567946434, -0.4336355924606323, 0.01052931509912014, -0.09540393948554993, 0.021644610911607742, 0.10075676441192627, -0.12407147884368896, 0.21779654920101166, -0.034652624279260635, -0.06193879246711731, -0.2247721552848816, 0.17988643050193787, -0.24146628379821777, 0.23270411789417267, 0.040529415011405945, -0.048533737659454346, 0.08541245013475418, -0.020481571555137634, -0.2247580587863922, 0.1801457703113556, 0.1715928167104721, 0.125405415892601, -0.42942821979522705, -0.033739373087882996, -0.018105074763298035, 0.3601997196674347, 0.21007806062698364, 0.050382718443870544, -0.06405999511480331, -0.2628416419029236, 0.05688733235001564, 0.12702012062072754, -0.15558353066444397, 0.052305418998003006, 0.008303292095661163, 0.1369299441576004, -0.046295300126075745, 0.2109607607126236, 0.08361108601093292, -0.18559569120407104, -0.059928424656391144, 0.09711220860481262, -0.3002229332923889, -0.3053972125053406, -0.14328765869140625, 0.04348934814333916, 0.004230232909321785, 0.19453035295009613, 0.06943053752183914, 0.10055649280548096, 0.013435491360723972, 0.29389381408691406, -0.027505602687597275, 0.46062934398651123, -0.0773591697216034, 0.21488989889621735, 0.025565652176737785, -0.08539149910211563, -0.36431485414505005, 0.19051966071128845, 0.024006176739931107, 0.18098577857017517, 0.25396957993507385, -0.3256501853466034, 0.4710211157798767, -0.03902524709701538, -0.0434679314494133, 0.157056525349617, -0.052610546350479126, 0.09930829703807831, -0.1652282178401947, 0.43950319290161133, -0.03499792143702507, 0.08344264328479767, 0.1697854995727539, -0.1075860857963562, -0.0663323774933815, -0.05483020097017288, -0.21662303805351257, -0.004096727818250656, -0.24548746645450592, 0.14365741610527039, -0.12518998980522156, -0.23136678338050842, -0.037250079214572906, 0.2354414314031601, 0.10804986208677292, -0.2084842026233673, 0.07123879343271255, 0.024890299886465073, -0.31702470779418945, -0.16831491887569427, 0.505608081817627, 0.03992185741662979, -0.3781883120536804, -0.398658812046051, 0.2939234972000122, -0.17543108761310577, 0.15525919198989868, 0.20944936573505402, 0.0846954882144928, 0.11716852337121964, -0.12442278861999512, 0.6250933408737183, 0.1958315372467041, -0.23565450310707092, -0.10094871371984482, -0.19652314484119415, 0.18298949301242828, 0.2725664973258972, 0.023528069257736206, -0.012019521556794643, 0.4229513108730316, 0.1425526887178421, -0.04571714252233505, 0.33679819107055664, -0.2082444280385971, -0.06570161879062653, -0.10004819929599762, -0.11013070493936539, 0.21906916797161102, 0.17819030582904816, 0.1841687113046646, 0.17686977982521057, -0.24323329329490662, 0.20721718668937683, 0.15695494413375854, -0.3025969862937927, 0.19992221891880035, 0.2825668752193451, 0.022987624630331993, 0.27747517824172974, 0.11824709177017212, -0.23885107040405273, -0.6610698699951172, 0.21676164865493774, -0.05922833830118179, 0.471974641084671, 0.2986927330493927, -0.205680251121521, -0.1835252344608307, -0.13109977543354034, 0.006914913654327393, -0.36161088943481445, 0.10885553061962128, -0.044766075909137726, 0.07056710124015808, 0.28407469391822815, -0.2449752390384674, -0.12019931524991989, -0.4714963734149933, 0.24849249422550201, -0.537261962890625, 0.31057608127593994, -0.0796104371547699, 0.06255270540714264, -0.030480973422527313, 0.48052284121513367, -0.02851507067680359, 0.009729408659040928, 0.1863795518875122, 0.004397392272949219, -0.20892752707004547, 0.2935678958892822, -0.14894422888755798, 0.38896092772483826, 0.21401971578598022, -0.344787061214447, -0.1804744154214859, -0.09576496481895447, -0.07770077139139175, -0.2883734703063965, -0.02098240703344345, 0.28863415122032166, 0.08698512613773346, 0.46309348940849304, 0.12348154187202454, 0.3386545777320862, -0.010827114805579185, -0.17758002877235413, -0.01938643492758274, -0.27880674600601196, 0.1496570110321045, -0.5367224216461182, 0.13657230138778687, -0.06459332257509232, -0.41960543394088745, 0.20428164303302765, 0.427975058555603, 0.06335064768791199, 0.07185961306095123, 0.06587021797895432, -0.4009689688682556, 0.10180697590112686, 0.032786086201667786, 0.049232255667448044, 0.19753015041351318, 0.18435107171535492, 0.37157097458839417, 0.09239009767770767, -0.05907081067562103, -0.20550692081451416, 0.23829343914985657, -0.00010038167238235474, 0.13137196004390717, 0.22001799941062927, -0.0017095333896577358, 0.05978735536336899, -0.17005479335784912, 0.1733991503715515, -0.24986393749713898, 0.3950415551662445, -0.36635705828666687, -0.04389350116252899, -0.14368107914924622, -0.2902812063694, 0.02887524850666523, -0.08730442076921463, -0.14152228832244873, -0.4789790213108063, 0.03467116504907608, -0.034824591130018234, 0.040136199444532394, 0.17122651636600494, -0.13274987041950226, 0.24577003717422485, -0.11718074977397919, 0.14246879518032074, -0.4899621605873108, -0.12824629247188568, -0.17699900269508362, 0.14871357381343842, -0.049628227949142456, -0.015270039439201355, 0.0834243968129158, -0.2558934688568115, 0.060629405081272125, -0.2867174744606018, -0.5384841561317444, 0.15358223021030426, -0.25467562675476074, -0.027770547196269035, 0.2747758626937866, 0.6557906866073608, -0.2294672578573227, -0.2044857144355774, 0.25663167238235474, -0.30070897936820984, -0.17790690064430237, 0.10821737349033356, -0.26395443081855774, 0.1515258401632309, -0.25195592641830444, -0.2615915536880493, -0.28218504786491394, -0.2204407900571823, 0.16459965705871582, -0.09157710522413254, -0.012906298041343689, 0.2366127371788025, -0.0878044068813324, 0.2831336557865143, -0.16922888159751892, 0.053938888013362885, -0.1425023227930069, -0.23120644688606262, 0.4616047739982605, -0.2854108512401581, -0.2608579099178314, 0.08070002496242523, -0.30579566955566406, 0.5293776392936707, 0.06934946030378342, -0.3885040879249573, -0.1409016251564026, 0.13901343941688538, 0.18035468459129333, 0.07909449189901352, 0.012541030533611774, 0.4569825828075409, -0.3402540981769562, 0.14178891479969025, -0.32574763894081116, 0.316938579082489, -0.023482918739318848, -0.2708434760570526, 0.14274577796459198, -0.15911096334457397, 0.18617680668830872, 0.10964176058769226, 0.2882341146469116, 0.2257869690656662, 0.05384230241179466, 0.25147491693496704, -0.41171762347221375, 0.2570097744464874, 0.0497901551425457, -0.10213825851678848, 0.33237215876579285, -0.02468027174472809, 0.36557692289352417, 0.3398318886756897, 0.1039028987288475, -0.03044561855494976, -0.12059912085533142, -0.06824085116386414, -0.24168187379837036, -0.1490652859210968, 0.05895814299583435, 0.23877835273742676, 0.3836188316345215, -0.06718665361404419, -0.04128384590148926, -0.011101452633738518, -0.33374693989753723, 0.025843940675258636, 0.2859095633029938, 0.23061653971672058, 0.08823835849761963, -0.2942480146884918, 0.16086795926094055, -0.49552589654922485, -0.12716203927993774, -0.03552873805165291, 0.1020803451538086, -0.0938200056552887, -0.035886649042367935, 0.01035027951002121, 0.1439751237630844, 0.6889333724975586, -0.4194602370262146, -0.4454326033592224, -0.1986941695213318, 0.18266414105892181, -0.4102359116077423, 0.15261012315750122, -0.15780656039714813, -0.6618088483810425, 0.186955064535141, 0.5838925242424011, -0.2288830280303955, -0.036923449486494064, 0.46109288930892944, 0.2755672037601471, -0.1745368242263794, -0.17389963567256927, -0.21414847671985626, -0.3961089253425598, -0.24897897243499756, -0.3374050557613373, 0.16748689115047455, 0.2511647343635559, -0.1050625815987587, -0.048342328518629074, 0.03093247301876545, 0.18778163194656372, 0.055779892951250076, 0.16097474098205566, 0.2917236387729645, -0.020262034609913826, -0.005404489114880562, 0.28128987550735474, 0.04750203341245651, 0.009625744074583054, 0.3408075273036957, -0.17274640500545502, -0.38932833075523376, 0.016514018177986145, -0.048098549246788025, 0.37334105372428894, -0.012025758624076843, -0.005497668869793415, 0.22150704264640808, 0.18003974854946136, 0.11335769295692444, -0.22928708791732788, 0.2550828754901886, 0.4812563359737396, -0.06788772344589233, -0.036930035799741745, -0.21905657649040222, 0.398131400346756, 0.1039309948682785, 0.28932470083236694, 0.2170252650976181, 0.575660765171051, -0.2040620744228363, -0.008824395015835762, 0.004337795078754425, 0.6888917684555054, 0.043171726167201996, 0.26044565439224243, 0.6488659381866455, 0.130082905292511, 0.6366928815841675, -0.16975092887878418, -0.024728406220674515, -0.32526475191116333, -0.1908981055021286, -0.13088668882846832, 0.0493108369410038, 0.14112600684165955, -0.054763063788414, -0.19426389038562775, 0.1737314909696579, 0.23983575403690338, 0.6364044547080994, 0.1294536590576172, 0.013268448412418365, -0.0044814907014369965, -0.46971094608306885, 0.035122230648994446, 0.04256288707256317, -0.17344751954078674, 0.2748550474643707, -0.08856803178787231, 0.05302344262599945, -0.05976918712258339, -0.1742841899394989, -0.3034944236278534, 0.12091545015573502, -0.16968712210655212, -0.05434524267911911, 0.4672948718070984, -0.2665230631828308, 0.08880001306533813, 0.5696344971656799, 0.28886526823043823, -0.05741862580180168, -0.42924925684928894, 0.31642836332321167, -0.3440205454826355, -0.13219833374023438, 0.16899745166301727, -0.0002473704516887665, 0.30266687273979187, -0.2705131769180298, -0.23580951988697052, -0.0012535899877548218, -0.05810900777578354, 0.254341721534729, -0.4965277910232544, -0.2070843130350113, -0.282722532749176, -0.10589786618947983, -0.07925005257129669, 0.16333043575286865, 0.1962469220161438, -0.2985827624797821, 0.11023099720478058, -0.169122576713562, -0.13285307586193085, -0.043723635375499725, -0.07695169746875763, 0.14351733028888702, -0.013253949582576752, -0.023325949907302856, 0.08211388438940048, -0.21839743852615356, 0.407465398311615, 0.3545239269733429, -0.2506157457828522, -0.10428354889154434, 0.0408610999584198, 0.39093446731567383, -0.42550867795944214, -0.18308889865875244, 0.3778044581413269, 0.1231880635023117, -0.19357773661613464, 0.4957159161567688, -0.08330948650836945, -0.2612079381942749, -0.09199732542037964, -0.27061736583709717, -0.3745499551296234, 0.31780919432640076, 0.003888312727212906, 0.15838681161403656, -0.1975407898426056, 0.35795480012893677, 0.0004280153661966324, 0.10562767088413239, -0.2790940999984741, -0.01423574984073639, -0.16627605259418488, 0.00831611454486847, 0.1782563030719757, -0.10545562952756882, 0.28390419483184814, 0.03248274326324463, 0.03076879121363163, 0.18145562708377838, 0.08522222936153412, -0.1257600635290146, -0.27367156744003296, 0.09761136025190353, 0.1399455964565277, 0.13974003493785858, 0.037319839000701904, 0.331020712852478, -0.2330460250377655, -0.18232715129852295, 0.280921995639801, -0.08356215059757233, 0.0644371435046196, 0.374758243560791, 0.13354294002056122, 0.22563764452934265, -0.16484999656677246, 0.07780863344669342, 0.060314446687698364, 0.10511982440948486, 0.048609089106321335, 0.0451044961810112, 0.11130620539188385, -0.03345172852277756, 0.16791631281375885, 0.2166936993598938, -0.028396569192409515, -0.02999323606491089, 0.3547173738479614, 0.01302441954612732, 0.04533557966351509, -0.11040899902582169, 0.19454602897167206, -0.2014462947845459, -0.0422600619494915, 0.31116172671318054, 0.18114912509918213, 0.1537889838218689, -0.28795236349105835, 0.0950944572687149, 0.5618886351585388, 0.009156592190265656, 0.16603600978851318, 0.286000519990921, 0.21871203184127808, -0.13946859538555145, -0.2600669860839844, -0.1360289305448532, 0.3661945164203644, -0.2573722004890442, 0.05484088882803917, 0.3716140687465668, 0.0797656923532486, -0.022191014140844345, -0.039551571011543274, -0.0004077441990375519, 0.04101380705833435, -0.02878878265619278, 0.05011672526597977, 0.3103124499320984, -0.5167761445045471, -0.016504336148500443, 0.414003849029541, -0.2651934325695038, -0.20289823412895203, -0.10844504833221436, -0.0689844936132431, -0.022491060197353363, -0.3505363166332245, 0.3023151457309723, 0.3013867735862732, -0.14376455545425415, -0.1384696364402771, 0.3903590738773346, -0.3028217852115631, -0.1124034970998764, -0.5327314734458923, -0.1758507490158081, 0.16970106959342957, -0.11447003483772278, 0.28997084498405457, -0.09803497791290283, -0.140726238489151, -0.004272662103176117, -0.023149296641349792, 0.04542753845453262, -0.14446493983268738, 0.26353347301483154, 0.172318696975708, 0.04406066611409187, 0.13369423151016235, 0.48793208599090576, 0.001955784857273102, -0.13724972307682037, 0.046944763511419296, 0.2296808958053589, -0.18723133206367493, 0.26906514167785645, 0.08053021878004074, -0.08104704320430756, -0.1450400948524475, 0.1178017258644104, 0.23520119488239288, 0.36595094203948975, 0.003822043538093567, 0.2268044799566269, 0.0050576310604810715, -0.16073593497276306, 0.06905519962310791, -0.1922190636396408, 0.07959060370922089, -0.1604686975479126, -0.10129750519990921, -0.3562685549259186, -0.2814125418663025, -0.3153088390827179, 0.10102558881044388, -0.4224948287010193, 0.32079261541366577, 0.313885360956192, 0.06360691785812378, 0.0019104760140180588, -0.016892924904823303, 0.04477722942829132, -0.049858417361974716, 0.5095522403717041, 0.28078487515449524, 0.24847084283828735, -0.15665538609027863, -0.47220295667648315, -0.5128247737884521, 0.12909558415412903, -0.293747216463089, -0.13785994052886963, 0.2778899371623993, 0.07129298150539398, 0.14935101568698883, 0.00808279775083065, -0.12777364253997803, 0.14973753690719604, 0.035192716866731644, -0.02619757503271103, -0.39167311787605286, -0.3891702890396118, -0.28486567735671997, -0.0568101704120636, -0.04990619421005249, 0.2799985408782959, 0.18067394196987152, 0.1084948480129242, -0.029675353318452835, -0.10627202689647675, 0.5135327577590942, -0.1903238445520401, -0.24123305082321167, -0.2446424663066864, 0.012043788097798824, 0.4205491542816162, -0.16206863522529602, -0.0037238989025354385, -0.04368343576788902, -0.10162229090929031, -0.23804253339767456, 0.16571560502052307, -0.12775614857673645, 0.43872198462486267, -0.015189040452241898, -0.47704771161079407, -0.08129479736089706, -0.014444452710449696, 0.3587682843208313, -0.09192348271608353, -0.28526976704597473, 0.2698577344417572, 0.13011232018470764, 0.022634997963905334, 0.4985993206501007, 0.20617640018463135, -0.14557543396949768, -0.031354546546936035, -0.037255559116601944, -0.5985197424888611, 0.4953225255012512, -0.18527741730213165, 0.006236962974071503, -0.16105811297893524, -0.2958182096481323, 0.23547664284706116, 0.11173926293849945, -0.8591643571853638, -0.06856593489646912, 0.2883363962173462, -0.0015766918659210205, 0.06519666314125061, 0.22772109508514404, 0.17332234978675842, 0.06473514437675476, -0.07278291136026382, -0.4401554763317108, 0.06141651049256325, 0.016477609053254128, 0.030113760381937027, -0.10974016785621643 ]
https://github.com/huggingface/datasets/issues/2130
wikiann dataset is missing columns
Hi @lhoestq thank you very much for the help, it would be very nice to have it included, here is the full code, one need to also convert tags to string first: ``` import datasets from datasets import load_dataset def tags_to_spans(tags): """Convert tags to spans.""" spans = set() span_start = 0 span_end = 0 active_conll_tag = None for index, string_tag in enumerate(tags): # Actual BIO tag. bio_tag = string_tag[0] assert bio_tag in ["B", "I", "O"], "Invalid Tag" conll_tag = string_tag[2:] if bio_tag == "O": # The span has ended. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = None # We don't care about tags we are # told to ignore, so we do nothing. continue elif bio_tag == "B": # We are entering a new span; reset indices and active tag to new span. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = conll_tag span_start = index span_end = index elif bio_tag == "I" and conll_tag == active_conll_tag: # We're inside a span. span_end += 1 else: # This is the case the bio label is an "I", but either: # 1) the span hasn't started - i.e. an ill formed span. # 2) We have IOB1 tagging scheme. # We'll process the previous span if it exists, but also include this # span. This is important, because otherwise, a model may get a perfect # F1 score whilst still including false positive ill-formed spans. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = conll_tag span_start = index span_end = index # Last token might have been a part of a valid span. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) # Return sorted list of spans return sorted(list(spans), key=lambda x: x[1][0]) dataset = load_dataset('wikiann', 'en', split="train") ner_tags = { 0:"O", 1:"B-PER", 2:"I-PER", 3:"B-ORG", 4:"I-ORG", 5:"B-LOC", 6:"I-LOC" } def get_spans(tokens, tags): """Convert tags to textspans.""" spans = tags_to_spans(tags) text_spans = [ x[0] + ": " + " ".join([tokens[i] for i in range(x[1][0], x[1][1] + 1)]) for x in spans ] if not text_spans: text_spans = ["None"] return text_spans for i, d in enumerate(dataset): tokens = d['tokens'] tags = d['ner_tags'] tags = [ner_tags[i] for i in tags] spans = get_spans(tokens, tags) print("spans ", spans) print(d) if i > 10: break; ``` I am not sure how to contribute to the repository and how things work, could you let me know how one can access the datasets to be able to contribute to the repository? Maybe I could do it then thanks
Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
402
wikiann dataset is missing columns Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq Hi @lhoestq thank you very much for the help, it would be very nice to have it included, here is the full code, one need to also convert tags to string first: ``` import datasets from datasets import load_dataset def tags_to_spans(tags): """Convert tags to spans.""" spans = set() span_start = 0 span_end = 0 active_conll_tag = None for index, string_tag in enumerate(tags): # Actual BIO tag. bio_tag = string_tag[0] assert bio_tag in ["B", "I", "O"], "Invalid Tag" conll_tag = string_tag[2:] if bio_tag == "O": # The span has ended. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = None # We don't care about tags we are # told to ignore, so we do nothing. continue elif bio_tag == "B": # We are entering a new span; reset indices and active tag to new span. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = conll_tag span_start = index span_end = index elif bio_tag == "I" and conll_tag == active_conll_tag: # We're inside a span. span_end += 1 else: # This is the case the bio label is an "I", but either: # 1) the span hasn't started - i.e. an ill formed span. # 2) We have IOB1 tagging scheme. # We'll process the previous span if it exists, but also include this # span. This is important, because otherwise, a model may get a perfect # F1 score whilst still including false positive ill-formed spans. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = conll_tag span_start = index span_end = index # Last token might have been a part of a valid span. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) # Return sorted list of spans return sorted(list(spans), key=lambda x: x[1][0]) dataset = load_dataset('wikiann', 'en', split="train") ner_tags = { 0:"O", 1:"B-PER", 2:"I-PER", 3:"B-ORG", 4:"I-ORG", 5:"B-LOC", 6:"I-LOC" } def get_spans(tokens, tags): """Convert tags to textspans.""" spans = tags_to_spans(tags) text_spans = [ x[0] + ": " + " ".join([tokens[i] for i in range(x[1][0], x[1][1] + 1)]) for x in spans ] if not text_spans: text_spans = ["None"] return text_spans for i, d in enumerate(dataset): tokens = d['tokens'] tags = d['ner_tags'] tags = [ner_tags[i] for i in tags] spans = get_spans(tokens, tags) print("spans ", spans) print(d) if i > 10: break; ``` I am not sure how to contribute to the repository and how things work, could you let me know how one can access the datasets to be able to contribute to the repository? Maybe I could do it then thanks
[ 0.054469432681798935, -0.32701295614242554, -0.04039037972688675, 0.13263115286827087, 0.29119884967803955, 0.24517232179641724, 0.40671688318252563, 0.10093860328197479, 0.38283053040504456, 0.15561622381210327, -0.044680334627628326, -0.21783438324928284, 0.02273806743323803, 0.5038778781890869, 0.31994616985321045, -0.550670862197876, 0.1787431836128235, 0.2836465835571289, 0.02729596197605133, -0.17172986268997192, -0.3373773396015167, 0.4151012599468231, -0.3747095465660095, -0.09135861694812775, -0.41986361145973206, -0.05216154456138611, -0.15583303570747375, 0.05846298485994339, -0.20343385636806488, -0.4034019410610199, 0.32941147685050964, -0.21701204776763916, 0.32020458579063416, -0.11546743661165237, -0.00011254103446844965, -0.10203171521425247, 0.11461438238620758, -0.07412762939929962, -0.035227157175540924, 0.10291282832622528, -0.002470698207616806, -0.30054110288619995, -0.03223498910665512, -0.2677302360534668, -0.2919100522994995, -0.12715652585029602, -0.3608506917953491, -0.08842536807060242, -0.1699061244726181, 0.11736074835062027, 0.15941977500915527, 0.4930121600627899, 0.18727736175060272, -0.021650435402989388, 0.3861594498157501, -0.35974961519241333, -0.2000511884689331, -0.22374404966831207, 0.2682071328163147, -0.16726912558078766, 0.26218611001968384, 0.5828676819801331, -0.0686730146408081, -0.23731230199337006, 0.3806413412094116, 0.18633727729320526, -0.09650122374296188, -0.35429811477661133, 0.14783990383148193, 0.4884116053581238, 0.468424916267395, -0.10651496797800064, -0.14495258033275604, -0.28834810853004456, 0.06576590240001678, -0.3216189444065094, 0.038179297000169754, 0.10771864652633667, 0.04943874850869179, 0.2737785279750824, -0.020107930526137352, 0.027978166937828064, -0.04240550100803375, 0.0508820004761219, -0.2102716714143753, 0.5055120587348938, 0.01226523146033287, -0.003794454038143158, 0.02703760750591755, 0.05421686917543411, -0.26723241806030273, 0.06040367856621742, -0.0002396106719970703, 0.1808324158191681, -0.4676637053489685, -0.014963462948799133, -0.06378444284200668, 0.7178285121917725, 0.32348692417144775, 0.12789428234100342, -0.26422548294067383, -0.4074224829673767, 0.20402462780475616, 0.06302078813314438, 0.016302544623613358, 0.21945230662822723, 0.017754364758729935, 0.13845780491828918, -0.10934437811374664, 0.2411254644393921, 0.13711027801036835, -0.17188459634780884, 0.12508268654346466, 0.011214986443519592, 0.04796677455306053, -0.09582667797803879, -0.0406203530728817, -0.17611704766750336, -0.19318024814128876, 0.128347247838974, -0.08581334352493286, 0.05732104182243347, 0.10378435254096985, 0.36757683753967285, 0.03578924015164375, 0.40573564171791077, -0.018197860568761826, 0.21093298494815826, 0.04149942845106125, -0.18490198254585266, -0.34562331438064575, 0.17237703502178192, -0.027871152386069298, 0.04120883718132973, 0.20614992082118988, -0.24255749583244324, 0.43080317974090576, -0.014153998345136642, -0.11441588401794434, 0.13342836499214172, -0.18529801070690155, -0.151362344622612, 0.0604235976934433, 0.49515554308891296, -0.130082905292511, 0.20439603924751282, 0.14345546066761017, -0.20344148576259613, -0.08407971262931824, 0.059536710381507874, -0.23391640186309814, 0.02015785500407219, -0.4020799398422241, 0.1664363592863083, -0.1108931228518486, -0.2205123007297516, -0.050650618970394135, 0.10654671490192413, 0.023996002972126007, -0.2974381446838379, 0.11265386641025543, -0.04707610607147217, -0.20155367255210876, -0.03069518879055977, 0.5745878219604492, 0.18985915184020996, -0.19301874935626984, -0.4148736000061035, 0.4360814392566681, -0.02636013552546501, 0.2025565207004547, 0.2573498785495758, 0.20174358785152435, 0.17202067375183105, -0.1324974149465561, 0.4924701452255249, 0.013494983315467834, -0.4078330993652344, -0.24259492754936218, -0.345808744430542, 0.22056017816066742, 0.3580062687397003, 0.11470930278301239, 0.06734413653612137, 0.32216259837150574, 0.025625331327319145, 0.014600403606891632, 0.32636523246765137, -0.09762217104434967, -0.020421285182237625, -0.23260575532913208, -0.14007358253002167, 0.23692946135997772, 0.1449742615222931, 0.08885206282138824, 0.02459769695997238, -0.20374509692192078, -0.005945892538875341, 0.238131582736969, -0.31631332635879517, 0.17252932488918304, 0.2288784235715866, 0.0828210860490799, 0.27350765466690063, 0.23266951739788055, -0.3583380877971649, -0.5895219445228577, 0.2272503674030304, 0.1954205483198166, 0.25563836097717285, 0.12911465764045715, -0.29004424810409546, -0.37286806106567383, -0.05944755673408508, -0.12544459104537964, -0.3232940137386322, 0.13207939267158508, 0.05307895690202713, 0.008488371968269348, 0.1862320452928543, -0.2948441207408905, -0.10740639269351959, -0.23570536077022552, 0.2480613738298416, -0.32083410024642944, 0.2400360256433487, -0.16866090893745422, -0.032818298786878586, 0.07634393125772476, 0.5403304100036621, 0.2565370798110962, 0.18975730240345, 0.22283360362052917, 0.09163492918014526, -0.14505232870578766, 0.027949847280979156, -0.01307937502861023, 0.32573026418685913, 0.12004207819700241, -0.30459684133529663, -0.19435295462608337, -0.10954312980175018, 0.1700194776058197, -0.20029997825622559, 0.010083943605422974, 0.09647567570209503, -0.08764263987541199, 0.35751107335090637, -0.010301906615495682, 0.2266387939453125, 0.144218310713768, -0.3177841007709503, -0.05870553106069565, -0.23315076529979706, 0.19520266354084015, -0.5777385234832764, 0.18493570387363434, -0.16405630111694336, -0.24647624790668488, 0.18137618899345398, 0.44938924908638, -0.09859628975391388, 0.07811547070741653, -0.16232264041900635, -0.4065582752227783, 0.19082212448120117, 0.09603492170572281, 0.008234839886426926, 0.20178578794002533, 0.24653001129627228, 0.19543150067329407, -0.08712361007928848, -0.023570973426103592, -0.04343290627002716, 0.20002731680870056, -0.014067590236663818, 0.0008671711548231542, 0.25761860609054565, 0.04264945909380913, 0.08363041281700134, -0.18426963686943054, 0.1168389618396759, -0.3363683819770813, 0.23148499429225922, -0.35054653882980347, -0.05406518280506134, -0.09175143390893936, -0.16737794876098633, 0.08898071199655533, -0.40409085154533386, -0.05545111373066902, -0.38708215951919556, 0.1263015866279602, -0.2790805995464325, 0.013931281864643097, 0.20270031690597534, -0.22386962175369263, 0.32225993275642395, -0.08657672256231308, 0.03737467899918556, -0.5950983762741089, -0.18426941335201263, -0.17424002289772034, 0.0743246078491211, -0.10245496034622192, 0.1173357143998146, 0.042894959449768066, -0.4117196500301361, -0.08020824193954468, -0.2833998203277588, -0.44946935772895813, 0.11663266271352768, -0.266651451587677, 0.16250164806842804, 0.31716516613960266, 0.4674125909805298, -0.09208938479423523, -0.15139730274677277, 0.31665265560150146, -0.18664275109767914, -0.038957253098487854, 0.15057605504989624, -0.07905562222003937, 0.01946699060499668, -0.18215680122375488, -0.16316986083984375, -0.35702064633369446, -0.07806049287319183, 0.13310116529464722, -0.015812044963240623, -0.13984902203083038, 0.11930865049362183, -0.08549109101295471, 0.12140323221683502, -0.16334478557109833, 0.15511219203472137, -0.1893157660961151, -0.3184942901134491, 0.357302188873291, -0.002875086385756731, -0.21223819255828857, 0.0864412933588028, -0.23476015031337738, 0.36108332872390747, -0.09300360083580017, -0.3724883794784546, -0.13309642672538757, 0.2365105152130127, 0.17864912748336792, 0.0681663230061531, 0.08320746570825577, 0.4093667268753052, -0.13399164378643036, 0.13130542635917664, -0.36680158972740173, 0.035303499549627304, -0.18060949444770813, -0.42327186465263367, 0.2840660512447357, -0.38438358902931213, 0.2557316720485687, 0.01646505668759346, 0.19180716574192047, 0.2065470963716507, 0.23428641259670258, 0.29820317029953003, -0.20273780822753906, 0.29332271218299866, -0.08031775802373886, -0.3152865469455719, 0.2866962254047394, -0.18736132979393005, 0.12700247764587402, 0.33595407009124756, 0.05128779634833336, -0.013339744880795479, -0.18115293979644775, -0.13293306529521942, -0.29792964458465576, -0.16390495002269745, -0.007874155417084694, 0.45735234022140503, 0.2752796709537506, -0.04866160452365875, -0.005723070353269577, -0.13975077867507935, -0.18360787630081177, 0.21871207654476166, 0.4127665162086487, 0.24516814947128296, 0.09931009262800217, -0.21736231446266174, 0.06964512914419174, -0.4181897044181824, -0.028740808367729187, 0.03396224230527878, 0.053468819707632065, 0.10746295750141144, -0.041008759289979935, 0.008900515735149384, 0.07779378443956375, 0.39494216442108154, -0.4277153015136719, -0.14201806485652924, -0.08597967028617859, 0.28546807169914246, -0.19880324602127075, 0.03942646458745003, -0.2738185226917267, -0.5508031249046326, 0.2807576358318329, 0.5836248397827148, -0.3903927206993103, -0.07570642232894897, 0.7279967069625854, 0.36084675788879395, -0.07636772096157074, -0.20266951620578766, -0.43036746978759766, -0.41827595233917236, -0.2724164128303528, -0.12231489270925522, 0.3240906000137329, 0.2643378973007202, -0.016725072637200356, -0.04652352258563042, -0.15712709724903107, 0.0003976002335548401, 0.07617244124412537, 0.21377034485340118, 0.32297471165657043, -0.11043563485145569, -0.05618912726640701, 0.27733469009399414, 0.0005995780229568481, 0.005744960159063339, 0.46902287006378174, -0.34934690594673157, -0.5048449635505676, -0.11133841425180435, -0.051256533712148666, 0.4775035083293915, -0.04905220866203308, 0.02555948868393898, 0.17226244509220123, 0.15638062357902527, 0.0661831647157669, -0.24906906485557556, -0.03859283775091171, 0.46470850706100464, 0.1458495706319809, -0.08206302672624588, -0.17977935075759888, 0.467560738325119, 0.1549694836139679, 0.10916872322559357, 0.2687053680419922, 0.6941234469413757, -0.2821182608604431, 0.1339607983827591, -0.0013887137174606323, 0.8452172875404358, -0.039743781089782715, 0.10423296689987183, 0.4053996205329895, -0.013236131519079208, 0.3032664954662323, 0.028162039816379547, 0.1390973925590515, -0.3000718355178833, -0.29212069511413574, -0.09083689749240875, 0.16666732728481293, 0.14810864627361298, -0.13182392716407776, -0.24589040875434875, 0.2755979597568512, 0.04523593187332153, 0.6778352856636047, 0.07460978627204895, -0.10339569300413132, -0.0017685145139694214, -0.4012656807899475, -0.27202531695365906, 0.08229149878025055, -0.1310526579618454, 0.18440473079681396, -0.20150786638259888, 0.19200237095355988, 0.08722738921642303, -0.24942193925380707, -0.23897212743759155, 0.06371208280324936, -0.2709907293319702, -0.1070006787776947, 0.33837783336639404, -0.3196055293083191, -0.04492880776524544, 0.435157835483551, 0.2685518264770508, 0.00041987374424934387, -0.278812050819397, 0.2626275420188904, -0.2549905478954315, -0.09739871323108673, -0.019149430096149445, -0.13521553575992584, 0.3243162930011749, -0.21110227704048157, -0.38433733582496643, 0.09038448333740234, -0.1274331957101822, 0.01822642982006073, -0.22871887683868408, -0.03584172576665878, -0.02699901908636093, -0.22967642545700073, 0.014278728514909744, 0.16403347253799438, 0.3964560627937317, -0.3822668492794037, 0.09318442642688751, -0.14062146842479706, -0.18953584134578705, 0.07791703939437866, -0.08040788769721985, 0.006508238613605499, -0.09411333501338959, 0.03423505276441574, 0.011029107496142387, 0.0023248791694641113, 0.5822218656539917, 0.1355505734682083, -0.3204783797264099, -0.15244635939598083, -0.1715671271085739, 0.3862130343914032, -0.26085174083709717, -0.07861106842756271, 0.2744740843772888, -0.08223232626914978, -0.08079636096954346, 0.5901305079460144, 0.16588716208934784, -0.38484662771224976, -0.07333013415336609, -0.4468894898891449, -0.19055505096912384, 0.46153634786605835, 0.05967651307582855, 0.10758114606142044, -0.015642762184143066, 0.2550133168697357, -0.03724036365747452, 0.14081762731075287, -0.3331299424171448, -0.1739228218793869, -0.3433172106742859, 0.09174196422100067, 0.048310622572898865, -0.10853733867406845, 0.20057357847690582, 0.018845094367861748, 0.10406705737113953, 0.04808767884969711, 0.2977733910083771, -0.16657611727714539, -0.2269820272922516, 0.10433465242385864, 0.09975159168243408, 0.25594863295555115, -0.03277160972356796, 0.19960229098796844, -0.1600096970796585, -0.20498882234096527, 0.33748385310173035, 0.018726181238889694, 0.16835224628448486, 0.23054423928260803, 0.1863614022731781, 0.1055728942155838, -0.30495643615722656, -0.021705295890569687, -0.04001561552286148, -0.06648369133472443, -0.018612781539559364, 0.02282833494246006, 0.12780341506004333, 0.051472008228302, 0.5048713088035583, 0.21363934874534607, 0.08308902382850647, 0.22588351368904114, 0.5083491802215576, -0.09645846486091614, 0.013008840382099152, 0.16354110836982727, 0.14992113411426544, -0.19235610961914062, -0.0679066926240921, 0.18516328930854797, 0.05916967615485191, 0.2319488823413849, -0.4967127740383148, 0.0002575523976702243, 0.47168785333633423, -0.03888990357518196, 0.20346277952194214, 0.24271631240844727, 0.2596534490585327, -0.24996474385261536, -0.14584790170192719, -0.10173012316226959, 0.48094454407691956, 0.028289522975683212, -0.02636413462460041, 0.30838942527770996, 0.07846632599830627, -0.06300117075443268, 0.10783267766237259, 0.05113176256418228, 0.11406079679727554, 0.08239558339118958, -0.04221823066473007, 0.3785288631916046, -0.26544395089149475, 0.2412339150905609, 0.06849093735218048, -0.04376024380326271, -0.013946235179901123, -0.17381682991981506, 0.025118887424468994, -0.12822985649108887, -0.3254924416542053, 0.2293955385684967, 0.1202787235379219, -0.13939788937568665, -0.20859381556510925, 0.36737552285194397, -0.2201184630393982, -0.059056591242551804, -0.5520493388175964, -0.1504020094871521, 0.1835421621799469, -0.24916157126426697, 0.08162608742713928, 0.015316322445869446, 0.07784675061702728, 0.09398464858531952, 0.040675729513168335, -0.0017695706337690353, -0.4534669816493988, 0.3404270112514496, 0.3654015064239502, -0.08186723291873932, 0.1732185184955597, 0.644507646560669, 0.07518302649259567, -0.036517467349767685, 0.35127317905426025, 0.2951740622520447, 0.023694299161434174, 0.20559409260749817, -0.14917869865894318, -0.13403242826461792, -0.29384106397628784, 0.09074413776397705, 0.3199097216129303, 0.20833158493041992, 0.03364178538322449, 0.17365677654743195, 0.07675503939390182, -0.19815878570079803, 0.06339683383703232, -0.22208906710147858, 0.10914906859397888, -0.2279447466135025, -0.23781457543373108, -0.39123061299324036, -0.31798791885375977, -0.46597352623939514, 0.029981717467308044, -0.3282492160797119, 0.3707672953605652, 0.17078304290771484, 0.06951361149549484, 0.03429045155644417, 0.1300942301750183, 0.05934527516365051, 0.10577504336833954, 0.4426099359989166, 0.29828011989593506, 0.08386854082345963, -0.30844101309776306, -0.3819875121116638, -0.523891270160675, -0.0934576615691185, -0.323594331741333, -0.4068910777568817, 0.2137569636106491, -0.017783544957637787, 0.1535547375679016, -0.010138928890228271, 0.10172177106142044, 0.35960379242897034, 0.1713932454586029, -0.08091606199741364, -0.4236363172531128, -0.297574520111084, 0.017414242029190063, -0.05180121213197708, -0.02538488805294037, 0.02513091266155243, 0.2179337441921234, 0.14919406175613403, 0.01738291233778, 0.11360933631658554, 0.249044269323349, -0.14167800545692444, -0.27482807636260986, -0.07986482977867126, 0.17482143640518188, 0.502814531326294, -0.266053169965744, -0.004917031154036522, -0.03485434874892235, -0.12817952036857605, -0.23218433558940887, 0.1482658088207245, -0.04696640744805336, 0.25442859530448914, 0.055398307740688324, -0.313145250082016, -0.03850024193525314, 0.15614597499370575, 0.34084099531173706, -0.05307748541235924, -0.452144056558609, 0.19793272018432617, 0.08032876998186111, -0.0011353434529155493, 0.3005707263946533, 0.21091267466545105, -0.1628841608762741, 0.13230521976947784, -0.18462514877319336, -0.559735119342804, 0.6108740568161011, -0.21025441586971283, -0.11149528622627258, -0.2517188787460327, -0.05120331048965454, 0.3974969983100891, 0.13149425387382507, -0.8236063718795776, 0.015470698475837708, 0.15679827332496643, 0.17457637190818787, -0.0727517306804657, 0.35724306106567383, 0.19744038581848145, 0.15121982991695404, 0.022446755319833755, -0.4629213511943817, 0.20206832885742188, 0.025484448298811913, -0.10141060501337051, -0.04727283865213394 ]
https://github.com/huggingface/datasets/issues/2130
wikiann dataset is missing columns
Cool ! Let me give you some context: #### Contribution guide You can find the contribution guide here: https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md It explains how to set up your dev environment in a few steps. #### Dataset loading Each Dataset is defined by a Table that have many rows (one row = one example) and columns (one column = one feature). To change how a dataset is constructed, you have to modify its dataset script that you can find here: https://github.com/huggingface/datasets/blob/master/datasets/wikiann/wikiann.py It includes everything needed to load the WikiANN dataset. You can load locally a modified version of `wikiann.py` with `load_dataset("path/to/wikiann.py")`. #### Define a new column Each column has a name and a type. You can see how the features of WikiANN are defined here: https://github.com/huggingface/datasets/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L245-L263 Ideally we would have one additional feature "spans": ```python "spans": datasets.Sequence(datasets.Value("string")), ``` #### Compute the content of each row To build the WikiANN rows, the _generate_examples method from [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) is used. This function `yield` one python dictionary for each example: ```python yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs} ``` The objective would be to return instead something like ```python spans = spans = get_spans(tokens, tags) yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs, "spans": spans} ``` Let me know if you have questions !
Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
208
wikiann dataset is missing columns Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq Cool ! Let me give you some context: #### Contribution guide You can find the contribution guide here: https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md It explains how to set up your dev environment in a few steps. #### Dataset loading Each Dataset is defined by a Table that have many rows (one row = one example) and columns (one column = one feature). To change how a dataset is constructed, you have to modify its dataset script that you can find here: https://github.com/huggingface/datasets/blob/master/datasets/wikiann/wikiann.py It includes everything needed to load the WikiANN dataset. You can load locally a modified version of `wikiann.py` with `load_dataset("path/to/wikiann.py")`. #### Define a new column Each column has a name and a type. You can see how the features of WikiANN are defined here: https://github.com/huggingface/datasets/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L245-L263 Ideally we would have one additional feature "spans": ```python "spans": datasets.Sequence(datasets.Value("string")), ``` #### Compute the content of each row To build the WikiANN rows, the _generate_examples method from [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) is used. This function `yield` one python dictionary for each example: ```python yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs} ``` The objective would be to return instead something like ```python spans = spans = get_spans(tokens, tags) yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs, "spans": spans} ``` Let me know if you have questions !
[ 0.00569504126906395, -0.2647256553173065, -0.04006781429052353, 0.09957055747509003, 0.3907710313796997, 0.10898145288228989, 0.2883937358856201, 0.10415686666965485, 0.013261456042528152, 0.14536996185779572, -0.03285917639732361, -0.012727663852274418, 0.022151105105876923, 0.42865046858787537, 0.2620583772659302, -0.7255475521087646, 0.1374140828847885, 0.26767706871032715, -0.20570218563079834, 0.0645836591720581, -0.32635194063186646, 0.39274322986602783, -0.31064528226852417, -0.13212858140468597, -0.34841489791870117, 0.013439053669571877, -0.2690921425819397, 0.12063457071781158, -0.09485074132680893, -0.2926415503025055, 0.3413373827934265, -0.22433075308799744, 0.18518555164337158, -0.09079564362764359, -0.00010316310363123193, -0.019561130553483963, 0.18804781138896942, -0.0933682844042778, -0.11299465596675873, 0.10428595542907715, 0.09639289230108261, -0.3275561034679413, -0.005889096297323704, -0.3028343617916107, -0.31556156277656555, -0.12207477539777756, -0.3141630291938782, -0.07531996816396713, 0.027985453605651855, 0.08260133862495422, 0.2585154175758362, 0.7911584377288818, 0.3671272397041321, -0.13081477582454681, 0.1523733139038086, -0.19124622642993927, -0.29923325777053833, -0.14423157274723053, 0.1775328516960144, -0.14323373138904572, 0.08461295813322067, 0.41011112928390503, -0.06428053975105286, -0.15497207641601562, 0.39059075713157654, 0.1574980467557907, -0.3582741618156433, -0.23135438561439514, 0.19769155979156494, 0.5012367367744446, 0.474783331155777, -0.13162463903427124, -0.10591602325439453, -0.3632464110851288, 0.07203959673643112, 0.013684825971722603, 0.12308365106582642, 0.1361769586801529, 0.01441631093621254, 0.2254359871149063, -0.05821757763624191, 0.026504257693886757, -0.06939906626939774, 0.11892977356910706, -0.21147572994232178, 0.20744985342025757, -0.10680462419986725, 0.06201395019888878, 0.010615915060043335, -0.06846775114536285, -0.2683206796646118, 0.18023286759853363, -0.04991791769862175, 0.14715538918972015, -0.33568304777145386, -0.004959624260663986, 0.038421712815761566, 0.6451612114906311, 0.31140661239624023, 0.1609734445810318, -0.14001475274562836, -0.1313830316066742, 0.12714433670043945, 0.032653383910655975, 0.023020802065730095, 0.12199214100837708, -0.061622150242328644, 0.09013649076223373, -0.10173763334751129, 0.4083089530467987, 0.13030369579792023, -0.2530056834220886, 0.06553658843040466, -0.000875597121194005, -0.23126354813575745, -0.28435003757476807, 0.026355553418397903, -0.06536398082971573, 0.08672752976417542, 0.020111417397856712, 0.20514994859695435, 0.11499830335378647, 0.08670815080404282, 0.4324638247489929, 0.021424826234579086, 0.41514331102371216, -0.09942460805177689, 0.2552134394645691, -0.04156194254755974, -0.13556478917598724, -0.3723390996456146, 0.14534077048301697, -0.018519114702939987, 0.1431322693824768, 0.25402405858039856, -0.2808768153190613, 0.5359508991241455, 0.04143177345395088, 0.03512577712535858, 0.09598933160305023, -0.10345762968063354, 0.09352479875087738, -0.21934577822685242, 0.3652415871620178, -0.07467760145664215, 0.06974270194768906, 0.2229984551668167, 0.00032786279916763306, -0.11974476277828217, -0.11450306326150894, -0.14947864413261414, -0.10888262093067169, -0.26685166358947754, 0.22365999221801758, -0.10431582480669022, -0.11337253451347351, -0.0867220088839531, 0.06677769124507904, 0.0291006937623024, -0.3127826750278473, 0.10170280188322067, 0.04855906963348389, -0.09214863181114197, -0.20886781811714172, 0.6047570109367371, 0.16544218361377716, -0.1434137225151062, -0.35744819045066833, 0.27276554703712463, -0.08809758722782135, 0.12591670453548431, 0.14657701551914215, 0.07177001982927322, -0.05799511820077896, -0.12176652252674103, 0.32336413860321045, -0.03362158685922623, -0.12681449949741364, -0.23493945598602295, -0.17813846468925476, 0.14389030635356903, 0.2943350076675415, 0.11855031549930573, -0.026824714615941048, 0.2524350881576538, 0.024933533743023872, -0.026023834943771362, 0.26778167486190796, -0.05225103348493576, 0.06856799870729446, -0.16529901325702667, -0.2542303502559662, -0.10064539313316345, 0.11496168375015259, 0.007087476551532745, 0.02175678312778473, -0.12432309240102768, 0.07911678403615952, 0.19178126752376556, -0.2824205458164215, 0.20723292231559753, 0.2506265938282013, 0.028379766270518303, 0.3811195492744446, 0.10866056382656097, -0.18137341737747192, -0.5586450099945068, 0.19941473007202148, 0.10364530980587006, 0.21834634244441986, 0.10758006572723389, -0.30855298042297363, -0.27117231488227844, -0.061095528304576874, -0.1522563397884369, -0.3668551743030548, 0.1992110013961792, 0.03982927277684212, 0.24032896757125854, 0.2699042856693268, -0.2106197029352188, 0.019898857921361923, -0.16379348933696747, 0.19986870884895325, -0.5162336826324463, 0.2422398179769516, -0.14438174664974213, 0.11276435852050781, 0.2207103669643402, 0.5053967237472534, 0.10982850193977356, 0.09564775973558426, 0.25388088822364807, 0.2179431915283203, -0.24606899917125702, 0.2443445473909378, -0.09617907553911209, 0.16830067336559296, 0.20362485945224762, -0.28581610321998596, 0.0485558956861496, -0.09389854967594147, 0.1242394894361496, -0.1547207236289978, -0.07268241792917252, 0.38290882110595703, -0.1319555640220642, 0.3680705726146698, 0.06716398894786835, 0.3307342827320099, 0.16896691918373108, -0.2372763752937317, -0.10554967075586319, -0.27224284410476685, 0.10917222499847412, -0.49105075001716614, 0.1773587465286255, -0.13227707147598267, -0.3371235430240631, 0.19535408914089203, 0.2848120927810669, 0.025427065789699554, 0.11829042434692383, -0.2042381465435028, -0.47535502910614014, 0.13897186517715454, 0.18409736454486847, 0.04357937350869179, 0.27434003353118896, 0.30232343077659607, 0.22592131793498993, 0.013656913302838802, -0.07354910671710968, -0.15430861711502075, 0.1365186721086502, 0.011246614158153534, -0.04557695984840393, 0.12259693443775177, 0.013839099556207657, -0.022747855633497238, -0.17495951056480408, 0.17512141168117523, -0.3515155017375946, 0.22647596895694733, -0.26884782314300537, -0.10259397327899933, -0.14799290895462036, -0.18916049599647522, 0.08743686228990555, -0.21975693106651306, -0.08824758231639862, -0.36519405245780945, -0.04173017293214798, -0.11947207152843475, -0.03199956566095352, 0.17057949304580688, -0.2978871762752533, 0.10588986426591873, -0.1315857172012329, -0.0018026363104581833, -0.4364801049232483, -0.1045142337679863, -0.1432972550392151, 0.1892446130514145, -0.022320980206131935, 0.05491200089454651, 0.1327006071805954, -0.20951609313488007, 0.006654858589172363, -0.3827694058418274, -0.4155876338481903, 0.02758864127099514, -0.35132598876953125, 0.048855796456336975, 0.31153976917266846, 0.517780065536499, -0.1577761471271515, -0.24823260307312012, 0.402525395154953, -0.25320419669151306, -0.0400603823363781, 0.1358630359172821, -0.04220995306968689, 0.06606417149305344, -0.16337376832962036, -0.15458270907402039, -0.1375986486673355, -0.22622187435626984, 0.2925007939338684, -0.03853311762213707, -0.13506168127059937, 0.0658271387219429, 0.06755489856004715, 0.21275725960731506, -0.24187064170837402, 0.03389107435941696, -0.21374310553073883, -0.301104873418808, 0.36033448576927185, -0.23659461736679077, -0.31189337372779846, 0.11413824558258057, -0.2673543095588684, 0.4330874979496002, 0.005281136836856604, -0.3415948152542114, -0.27193212509155273, 0.07598284631967545, 0.18833626806735992, 0.07124587148427963, 0.1267050951719284, 0.49805954098701477, -0.07801727950572968, 0.04732690751552582, -0.30992043018341064, 0.06941497325897217, -0.17271915078163147, -0.35172662138938904, 0.228716179728508, -0.2808220684528351, 0.25582635402679443, -0.00008693337440490723, 0.25964227318763733, 0.2716812491416931, 0.38245999813079834, 0.34101569652557373, -0.26256150007247925, 0.4241221249103546, -0.0869305208325386, -0.21079830825328827, 0.3139957785606384, -0.22130882740020752, 0.33670955896377563, 0.3756852149963379, 0.2335917353630066, 0.01586431823670864, -0.2065972238779068, -0.28528913855552673, -0.2803175449371338, -0.2121932953596115, 0.047461140900850296, 0.28530341386795044, 0.41068652272224426, -0.1406688392162323, -0.01920156180858612, -0.13284830749034882, -0.18602454662322998, 0.018293391913175583, 0.40521180629730225, 0.090530626475811, 0.09285101294517517, -0.3699907958507538, 0.10838080197572708, -0.5568279027938843, 0.01987534761428833, -0.10776840150356293, 0.0017427699640393257, 0.1339833289384842, -0.1440436840057373, 0.01117030531167984, -0.0008235946297645569, 0.4261741638183594, -0.1615867018699646, -0.31849366426467896, -0.1017037034034729, 0.15233004093170166, -0.4004541039466858, 0.1023612916469574, -0.10537973046302795, -0.3845585882663727, 0.05822206661105156, 0.498108446598053, -0.29205384850502014, -0.014146658591926098, 0.5848608016967773, 0.3693960905075073, -0.11003401130437851, -0.18002286553382874, -0.34223175048828125, -0.5269818902015686, -0.26196426153182983, -0.31197941303253174, 0.05010063946247101, 0.28874319791793823, 0.0004596394719555974, 0.04061635211110115, -0.08585961163043976, -0.10969198495149612, 0.005795702338218689, 0.1932646930217743, 0.37514156103134155, -0.08552195131778717, 0.08379858732223511, 0.318183571100235, 0.1286623179912567, 0.02768705226480961, 0.48462700843811035, -0.11699710786342621, -0.28624245524406433, -0.23411163687705994, -0.00153454951941967, 0.30494236946105957, -0.05037297308444977, -0.012148907408118248, 0.20310530066490173, 0.16401860117912292, 0.1740405559539795, -0.2772315442562103, 0.06533461809158325, 0.40793994069099426, 0.016123443841934204, -0.12119103223085403, -0.3104066848754883, 0.47745925188064575, -0.09097377955913544, 0.23457683622837067, 0.1480848491191864, 0.6963037252426147, -0.19087636470794678, 0.025710690766572952, -0.037463121116161346, 0.6728925704956055, -0.01564786583185196, 0.2137645035982132, 0.5228444337844849, 0.13788488507270813, 0.49208909273147583, 0.03220484405755997, 0.11364644020795822, -0.1365513652563095, -0.12442906200885773, -0.05576504021883011, 0.13193181157112122, 0.1979287564754486, -0.2405104786157608, -0.3001883327960968, 0.2108462005853653, 0.13029803335666656, 0.48154932260513306, -0.011563587933778763, -0.08405418694019318, -0.22994710505008698, -0.45891252160072327, -0.2244805544614792, 0.17633198201656342, -0.13109458982944489, 0.1835680454969406, -0.06123238429427147, 0.08350688219070435, -0.06201859936118126, -0.2151125818490982, -0.296289324760437, 0.04898873716592789, -0.17818152904510498, 0.001589495688676834, 0.27783724665641785, -0.31976550817489624, 0.04299763962626457, 0.3772459030151367, 0.2068168967962265, 0.08085432648658752, -0.37915733456611633, 0.29426729679107666, -0.3318919837474823, -0.30133387446403503, -0.08080505579710007, 0.02723107486963272, 0.15043334662914276, -0.20051252841949463, -0.3311747610569, -0.01757241040468216, -0.15383489429950714, 0.0748685821890831, -0.48229488730430603, -0.05507935583591461, -0.016440503299236298, -0.21659456193447113, -0.14266246557235718, 0.08829211443662643, 0.26690712571144104, -0.3419038653373718, 0.17306673526763916, -0.22975848615169525, -0.07076307386159897, 0.05598814785480499, -0.06467311084270477, 0.14254887402057648, -0.18781015276908875, 0.12355133891105652, -0.027756717056035995, -0.14791762828826904, 0.5038403272628784, 0.21571789681911469, -0.20839355885982513, -0.18333086371421814, -0.04209241271018982, 0.32372015714645386, -0.34415122866630554, -0.18370698392391205, 0.37450265884399414, 0.09781880676746368, -0.048091597855091095, 0.481538325548172, 0.07975837588310242, -0.30617672204971313, -0.10331323742866516, -0.2695041298866272, -0.39041754603385925, 0.4605475068092346, 0.04438202828168869, 0.08142504096031189, -0.05595923215150833, 0.4622199833393097, 0.04890141636133194, 0.1277223378419876, -0.3721939027309418, -0.104990653693676, -0.16507098078727722, 0.00572589598596096, 0.3218868374824524, -0.13054320216178894, 0.2574727237224579, 0.04980165883898735, 0.1919076293706894, 0.07730895280838013, 0.06297481060028076, -0.20805209875106812, -0.1677066683769226, 0.06260815262794495, 0.010498624294996262, 0.12526364624500275, -0.0322185717523098, 0.2193450927734375, -0.1892017424106598, -0.23814131319522858, 0.34897398948669434, 0.009107600897550583, 0.04808174818754196, 0.1124822273850441, 0.10101942718029022, 0.13932394981384277, -0.20980705320835114, 0.052563853561878204, -0.0510026216506958, -0.06017392873764038, -0.03579556569457054, -0.022945813834667206, 0.09291002154350281, -0.03986052796244621, 0.45347073674201965, 0.23005524277687073, -0.061867013573646545, 0.16808372735977173, 0.4504094123840332, 0.07789407670497894, -0.07243870198726654, -0.013013653457164764, 0.17943397164344788, -0.02959378808736801, 0.0005947648314759135, 0.242805615067482, 0.20903831720352173, 0.2586457133293152, -0.39368829131126404, -0.017888162285089493, 0.3326261341571808, 0.018603531643748283, 0.29084762930870056, 0.23932693898677826, 0.09453645348548889, -0.27921444177627563, -0.12217903137207031, -0.04535089433193207, 0.5128669738769531, -0.06476451456546783, 0.03490164875984192, 0.34823641180992126, 0.1782117336988449, -0.12404492497444153, 0.09599380940198898, 0.15471400320529938, 0.2134791761636734, 0.042370278388261795, -0.12384361773729324, 0.2358170747756958, -0.43169671297073364, 0.19548845291137695, 0.2507392466068268, -0.20448745787143707, -0.10446713864803314, -0.16910263895988464, -0.040526196360588074, -0.014434970915317535, -0.38374337553977966, 0.4010222852230072, 0.029653631150722504, -0.010831376537680626, -0.16227498650550842, 0.3016044497489929, -0.2187899649143219, -0.14999307692050934, -0.3768315613269806, -0.23811864852905273, 0.22730791568756104, -0.17940913140773773, 0.19085757434368134, -0.024697713553905487, 0.05618669465184212, -0.07107119262218475, -0.04032592475414276, -0.11018303036689758, -0.05874937027692795, 0.3492380976676941, 0.18898411095142365, 0.053325068205595016, 0.10896461457014084, 0.626031219959259, 0.1344873309135437, -0.005544550716876984, 0.08234265446662903, 0.34048140048980713, -0.10857421159744263, 0.293134868144989, -0.003108208067715168, -0.14260365068912506, -0.1822575181722641, 0.02277548238635063, 0.1597888320684433, 0.22542357444763184, 0.027329063042998314, 0.18004176020622253, 0.1658463329076767, -0.25066080689430237, -0.010702934116125107, -0.32706400752067566, 0.08994418382644653, -0.22414177656173706, -0.13980835676193237, -0.41701242327690125, -0.3447076678276062, -0.24722382426261902, 0.06058427318930626, -0.5223686695098877, 0.3943907916545868, 0.13228711485862732, 0.06999245285987854, -0.03468238562345505, 0.03189340606331825, 0.10357314348220825, 0.11478379368782043, 0.4758186340332031, 0.3135997951030731, 0.026363030076026917, -0.08118104189634323, -0.5944880247116089, -0.5643664598464966, -0.08044297248125076, -0.35598793625831604, -0.30428430438041687, 0.15985974669456482, 0.06431226432323456, 0.21710270643234253, -0.03596676141023636, -0.02090582251548767, 0.22596696019172668, -0.03243457153439522, -0.16103242337703705, -0.27617838978767395, -0.37867221236228943, 0.011264245957136154, -0.028295131400227547, -0.016216587275266647, 0.07630012184381485, 0.19753073155879974, 0.19731909036636353, 0.07024936378002167, -0.039860308170318604, 0.4521838426589966, -0.20783457159996033, -0.4676823914051056, -0.23009654879570007, 0.14232507348060608, 0.2826930284500122, -0.19486567378044128, -0.011449197307229042, -0.2692466974258423, -0.05112262815237045, -0.15389946103096008, 0.19396710395812988, -0.04712152108550072, 0.45370328426361084, -0.022663787007331848, -0.4011209011077881, -0.033879488706588745, 0.24504904448986053, 0.39729589223861694, 0.03733852133154869, -0.2113557755947113, 0.22956563532352448, 0.17386558651924133, -0.08695489168167114, 0.2598584294319153, 0.3310912549495697, -0.22410187125205994, 0.07925781607627869, -0.11266609281301498, -0.6037775278091431, 0.46619749069213867, -0.23145076632499695, -0.10070112347602844, -0.038811735808849335, -0.09094513952732086, 0.09953910857439041, 0.042309340089559555, -0.7625929713249207, 0.127469003200531, 0.2277509570121765, 0.16648101806640625, 0.008728232234716415, 0.2390075922012329, 0.006221783813089132, -0.018578168004751205, -0.03610209375619888, -0.2505781948566437, 0.12276396155357361, -0.0009987317025661469, 0.06485049426555634, -0.015444247052073479 ]
https://github.com/huggingface/datasets/issues/2129
How to train BERT model with next sentence prediction?
Hi ! We're not using `TextDatasetForNextSentencePrediction` in `datasets`. Although you can probably use the `TextDatasetForNextSentencePrediction.create_examples_from_document` on a dataset to prepare it for next sentence prediction.
Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
25
How to train BERT model with next sentence prediction? Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ? Hi ! We're not using `TextDatasetForNextSentencePrediction` in `datasets`. Although you can probably use the `TextDatasetForNextSentencePrediction.create_examples_from_document` on a dataset to prepare it for next sentence prediction.
[ 0.1917075365781784, -0.40764519572257996, -0.014769434928894043, -0.20032919943332672, 0.0005594715476036072, -0.2783760130405426, 0.14220675826072693, -0.0127168670296669, -0.025661932304501534, 0.1647021472454071, 0.15560103952884674, 0.049372412264347076, -0.15480922162532806, 0.061753615736961365, 0.32850590348243713, -0.695224404335022, 0.15740104019641876, 0.21883711218833923, 0.009745396673679352, -0.1505315601825714, -0.11787845939397812, 0.08061656355857849, -0.4232553243637085, 0.36828315258026123, -0.2839279770851135, 0.2008213996887207, -0.33343252539634705, -0.31639543175697327, 0.046060360968112946, -0.37538132071495056, 0.4582478106021881, 0.40703466534614563, 0.4587986171245575, 0.21507424116134644, -0.000123234698548913, -0.26396816968917847, 0.20253081619739532, -0.2711346745491028, 0.15492665767669678, -0.39701539278030396, -0.24933508038520813, -0.037374962121248245, 0.22429914772510529, -0.18159446120262146, -0.28389841318130493, 0.5994520783424377, 0.30693674087524414, -0.13437554240226746, 0.5240786075592041, 0.11737584322690964, 0.06447926163673401, -0.2960520386695862, 0.26344701647758484, -0.012157422490417957, 0.10680033266544342, 0.09455287456512451, -0.02850426733493805, -0.137149378657341, 0.5605086088180542, -0.33043912053108215, -0.21471896767616272, 0.18362723290920258, 0.00880291499197483, 0.03308524936437607, 0.16475176811218262, 0.2331249862909317, 0.08448582887649536, -0.3325140178203583, -0.26166847348213196, 0.4053134024143219, 0.6561757326126099, -0.24577808380126953, -0.503214418888092, -0.1677226722240448, 0.2668517231941223, 0.08863401412963867, 0.06607098877429962, -0.24558818340301514, -0.07422034442424774, 0.17297683656215668, 0.04707510396838188, -0.37539470195770264, -0.416792094707489, -0.03733312338590622, -0.18947376310825348, 0.45809492468833923, -0.0336560420691967, -0.21239733695983887, 0.2601468861103058, -0.21066497266292572, 0.07551706582307816, -0.09403067082166672, 0.12353411316871643, 0.4406595826148987, -0.20642687380313873, -0.364862859249115, -0.42545533180236816, 0.148919016122818, 0.020615309476852417, -0.13283459842205048, -0.19278305768966675, -0.015530332922935486, -0.37865781784057617, -0.12385956197977066, 0.3669157028198242, 0.25854840874671936, -0.14866843819618225, 0.15673509240150452, -0.2529692053794861, 0.040198374539613724, -0.2351614236831665, -0.18768185377120972, -0.14576564729213715, 0.040599524974823, 0.2635549306869507, -0.0009324904531240463, -0.21215610206127167, -0.26389190554618835, 0.09232063591480255, -0.012200110591948032, -0.297562837600708, -0.04376545175909996, -0.0768807902932167, -0.049599163234233856, -0.2629685699939728, 0.3475271165370941, -0.03411928191781044, 0.08408127725124359, 0.004310900345444679, -0.09522923827171326, 0.11463054269552231, -0.21631816029548645, -0.2744837999343872, 0.5209567546844482, 0.012285709381103516, 0.030962448567152023, 0.13239425420761108, -0.14718136191368103, -0.03248845785856247, 0.07978427410125732, -0.3151407539844513, -0.4305480420589447, -0.008303016424179077, -0.12755131721496582, -0.3998715281486511, 0.051289401948451996, -0.16206888854503632, 0.46763867139816284, -0.08284372836351395, -0.006180286407470703, -0.2025858461856842, -0.00966881588101387, -0.09749399125576019, -0.039380382746458054, -0.09254396706819534, -0.3396702706813812, 0.1031365916132927, 0.5064286589622498, -0.10846398025751114, -0.16338354349136353, 0.14131781458854675, 0.15757031738758087, -0.36783909797668457, 0.13895422220230103, 0.15899059176445007, 0.16439199447631836, -0.49272438883781433, -0.25934821367263794, 0.021333474665880203, 0.14557045698165894, 0.11357785016298294, -0.001780431717634201, 0.24182946979999542, 0.2236623764038086, 0.04718942940235138, 0.1285942643880844, -0.12163431197404861, -0.153840109705925, 0.005632560234516859, 0.02653714269399643, 0.12243705987930298, 0.37930312752723694, -0.13338500261306763, -0.0062224953435361385, 0.010716617107391357, -0.07676094770431519, -0.10994875431060791, 0.1562730222940445, -0.12322698533535004, -0.1303880512714386, 0.2724362313747406, -0.17734235525131226, -0.10980173945426941, -0.004552809521555901, 0.16017132997512817, 0.17073583602905273, -0.27392464876174927, 0.5601226091384888, 0.1560770720243454, -0.031237434595823288, 0.07056228816509247, -0.050620876252651215, 0.14085090160369873, 0.39644044637680054, 0.04886825755238533, -0.3296990990638733, -0.23310711979866028, 0.025221556425094604, 0.07320361584424973, -0.1738707274198532, 0.057333946228027344, 0.15671704709529877, 0.0682235136628151, 0.10226918756961823, -0.06198137626051903, -0.15378302335739136, -0.026200253516435623, 0.007966704666614532, -0.15673987567424774, 0.10419830679893494, -0.3908601403236389, 0.15720586478710175, 0.10156078636646271, 0.07801000773906708, -0.14008156955242157, 0.20632751286029816, -0.08074956387281418, -0.07088100910186768, 0.01695157214999199, 0.18487215042114258, 0.04696843773126602, 0.084228515625, 0.10614656656980515, 0.10188449919223785, 0.2673925757408142, 0.12567594647407532, -0.01657824218273163, -0.24331818521022797, 0.056021548807621, -0.3695036470890045, -0.06509990245103836, 0.04152744263410568, -0.12417876720428467, -0.07201748341321945, -0.15988874435424805, 0.06514347344636917, 0.458831787109375, 0.006385080516338348, -0.09043644368648529, -0.021364113315939903, -0.13949857652187347, 0.052906814962625504, -0.0706690326333046, -0.3643369972705841, 0.12671642005443573, 0.048170194029808044, 0.2527298033237457, -0.08660013973712921, -0.23993034660816193, -0.47917771339416504, 0.2228337675333023, -0.17428220808506012, 0.17736703157424927, 0.6320177912712097, -0.026693202555179596, 0.04553516209125519, -0.11154049634933472, -0.26950380206108093, -0.03339901566505432, 0.0742160901427269, -0.06777463853359222, -0.1553359478712082, -0.0478103905916214, 0.0303330160677433, -0.08550118654966354, -0.04840303957462311, 0.19880366325378418, -0.15075042843818665, -0.2564571499824524, 0.12404445558786392, 0.20820608735084534, -0.3337571322917938, -0.13252060115337372, -0.04187075048685074, -0.07908514142036438, -0.005233975127339363, -0.38154980540275574, -0.35191091895103455, -0.025970757007598877, -0.4334387183189392, -0.0323946587741375, 0.2949758768081665, -0.06536879390478134, -0.43615052103996277, 0.16827815771102905, -0.054602667689323425, 0.04821990057826042, 0.3473089337348938, 0.19471348822116852, 0.21387119591236115, -0.23059207201004028, -0.16089019179344177, -0.0018190927803516388, 0.014961965382099152, -0.19950036704540253, -0.18142648041248322, -0.32123863697052, -0.002615956589579582, 0.05615777522325516, -0.13473448157310486, -0.2250511348247528, 0.3262951672077179, -0.13611619174480438, 0.031976137310266495, 0.26025593280792236, -0.12329433858394623, -0.14761760830879211, 0.050693683326244354, -0.07176481932401657, -0.0051315221935510635, -0.058623529970645905, -0.17706145346164703, 0.20055460929870605, 0.1248713806271553, 0.2681867182254791, -0.011581823229789734, -0.23226191103458405, 0.3484326899051666, 0.2574886679649353, 0.18775807321071625, -0.05066309869289398, -0.09343002736568451, -0.013033529743552208, 0.15309008955955505, -0.3353320360183716, -0.12774141132831573, 0.1583465188741684, -0.6027777791023254, 0.18837758898735046, 0.16950824856758118, 0.03364481404423714, -0.3637564480304718, -0.037894491106271744, -0.12812235951423645, -0.3695199489593506, -0.03210301324725151, -0.23084628582000732, 0.0703088641166687, -0.11276325583457947, -0.09811174869537354, -0.1799510270357132, -0.032107457518577576, 0.10585080087184906, 0.12232282757759094, -0.1785278618335724, -0.03478040173649788, 0.31631460785865784, -0.03919094800949097, 0.34344613552093506, 0.05929987505078316, 0.09381857514381409, -0.2042820155620575, 0.40103399753570557, 0.10321652889251709, -0.2929140031337738, 0.38663554191589355, 0.22314636409282684, -0.11869317293167114, -0.07345543056726456, 0.020125532522797585, 0.024744708091020584, 0.06310833990573883, 0.09300647675991058, 0.42892885208129883, -0.11500545591115952, 0.043572813272476196, -0.15968436002731323, -0.17947818338871002, 0.060345105826854706, -0.07142843306064606, 0.0728939026594162, -0.25321951508522034, 0.23173213005065918, -0.2355695366859436, -0.10139401257038116, 0.04145752638578415, -0.10596418380737305, -0.06692777574062347, 0.017265059053897858, 0.7841863036155701, -0.11067371815443039, 0.6015788316726685, -0.10105521976947784, -0.34866616129875183, -0.060514599084854126, 0.2454376518726349, -0.06016041338443756, -0.12749581038951874, 0.23837602138519287, -0.06571868062019348, 0.12137069553136826, -0.006848521530628204, -0.06169220805168152, -0.056611254811286926, -0.09426933526992798, -0.32699307799339294, 0.30272191762924194, 0.16515511274337769, -0.301394522190094, -0.31714674830436707, 0.15215955674648285, 0.20694974064826965, 0.1803201138973236, -0.19597721099853516, 0.27994653582572937, 0.09346729516983032, -0.13976222276687622, -0.528535783290863, 0.043103788048028946, 0.803756833076477, -0.11655770987272263, 0.08363176882266998, -0.06479903310537338, -0.21234048902988434, 0.06516053527593613, -0.28470468521118164, 0.2285280078649521, 0.13642069697380066, -0.05408303439617157, 0.02945571020245552, -0.002811660058796406, -0.28848689794540405, 0.01432352140545845, 0.3151857554912567, 0.09623672068119049, 0.24239136278629303, -0.22520983219146729, -0.016093268990516663, -0.20570823550224304, 0.14254328608512878, 0.13462117314338684, 0.4665711522102356, -0.10371765494346619, 0.12353283166885376, 0.4220382273197174, 0.021460674703121185, -0.014451473951339722, -0.12367882579565048, -0.16148756444454193, 0.6815998554229736, 0.3218708038330078, -0.2997697591781616, -0.2854651212692261, 0.563461184501648, -0.11643776297569275, -0.2301303744316101, -0.43753451108932495, 0.6853528022766113, -0.32852837443351746, 0.22819043695926666, 0.551584005355835, 0.7926333546638489, -0.00965358316898346, 0.20658868551254272, -0.326347678899765, 0.14049242436885834, 0.5958322882652283, -0.12398383021354675, -0.1427014321088791, 0.03302345797419548, 0.2338632196187973, -0.3432447910308838, 0.22145262360572815, 0.06978349387645721, 0.25560420751571655, -0.7860973477363586, 0.33535632491111755, 0.18017275631427765, -0.15279830992221832, 0.11677122116088867, -0.008278336375951767, 0.3885195851325989, -0.46179941296577454, -0.004826799035072327, -0.007627250626683235, 0.1532493382692337, 0.19932939112186432, -0.18543580174446106, -0.032935984432697296, 0.5668464303016663, 0.11717759072780609, -0.43334704637527466, 0.0316883847117424, -0.25830796360969543, -0.36721742153167725, 0.07527785003185272, -0.00966750830411911, 0.7311249375343323, 0.4217287003993988, 0.6386289000511169, 0.227871373295784, -0.27663925290107727, -0.014521021395921707, 0.1028057113289833, -0.07189877331256866, -0.3596816956996918, -0.0008186884224414825, 0.47090089321136475, -0.1251448690891266, -0.3809984028339386, 0.22871440649032593, 0.08571809530258179, -0.26848411560058594, -0.1642097383737564, -0.281466007232666, 0.55778568983078, 0.0331193171441555, 0.02936306595802307, -0.011612921953201294, 0.17375914752483368, -0.11022885143756866, 0.0694144070148468, 0.1510995477437973, -0.16516296565532684, 0.06125079095363617, 0.20215709507465363, -0.34227240085601807, -0.02815784513950348, 0.06468835473060608, 0.09195519983768463, -0.08222811669111252, 0.5879974365234375, 0.26237422227859497, 0.020040273666381836, -0.1871553361415863, -0.008756417781114578, 0.24835173785686493, -0.1598694622516632, 0.16762030124664307, 0.09192292392253876, 0.16054989397525787, 0.17545774579048157, 0.6059983968734741, 0.2905310392379761, -0.28662607073783875, -0.24816258251667023, -0.03585461899638176, -0.27400854229927063, -0.14661112427711487, -0.1725732386112213, 0.15708836913108826, 0.2134372889995575, 0.05232807993888855, 0.49019280076026917, 0.4139156937599182, -0.12620466947555542, -0.23745638132095337, -0.20277155935764313, 0.16416633129119873, 0.08267004787921906, 0.02439839206635952, -0.13809965550899506, 0.042445775121450424, -0.039788175374269485, 0.2467680722475052, 0.3000510334968567, -0.03801656886935234, -0.15718311071395874, 0.11040328443050385, 0.00278439000248909, 0.045635491609573364, -0.18464729189872742, 0.10915137827396393, -0.008050840348005295, -0.0272236168384552, -0.19922952353954315, 0.054747067391872406, 0.3115120232105255, 0.47291168570518494, 0.43074432015419006, -0.15412962436676025, -0.37805765867233276, -0.2686289846897125, 0.2248028814792633, 0.047078508883714676, -0.0866398960351944, -0.0844637006521225, 0.008832973428070545, -0.14572003483772278, 0.03605882078409195, 0.19120492041110992, 0.5139393210411072, 0.1459176242351532, 0.06526783853769302, 0.09561876207590103, -0.09938666224479675, -0.13153599202632904, 0.046089597046375275, -0.1848788559436798, 0.16760273277759552, -0.3008459210395813, 0.5770235061645508, 0.02014213241636753, -0.22262994945049286, 0.0027382909320294857, 0.07281457632780075, 0.11605793237686157, -0.07620485126972198, 0.013838604092597961, -0.14626286923885345, 0.34637632966041565, 0.32393932342529297, -0.12837910652160645, -0.39202937483787537, 0.20330943167209625, 0.042639777064323425, 0.4159967303276062, 0.2745645046234131, 0.18922768533229828, 0.2468414604663849, 0.20122899115085602, 0.4515753984451294, 0.508741557598114, -0.11234024912118912, 0.08883999288082123, -0.21228823065757751, 0.2115274965763092, 0.5340942144393921, -0.1541149765253067, -0.13120727241039276, 0.030442073941230774, -0.012415006756782532, 0.18806222081184387, -0.01175006479024887, 0.5242722034454346, 0.2115658074617386, -0.18215548992156982, -0.3017670214176178, 0.1600116640329361, 0.0822909027338028, -0.4470413029193878, -0.18288153409957886, 0.12884566187858582, 0.2121819257736206, -0.08281898498535156, -0.07853493094444275, 0.04388994351029396, 0.12412601709365845, 0.2909134030342102, 0.3355189561843872, -0.12588320672512054, -0.07073154300451279, 0.036815520375967026, 0.33590832352638245, -0.03668367862701416, 0.3192496597766876, -0.1124023050069809, 0.10839687287807465, 0.09264060854911804, 0.4123353660106659, -0.08322829008102417, 0.15069225430488586, -0.12597835063934326, 0.14618249237537384, -0.07325096428394318, -0.013219209387898445, 0.3068973422050476, 0.016667356714606285, 0.1719355583190918, -0.07886743545532227, 0.3082800805568695, -0.020863577723503113, 0.002085065469145775, 0.31566154956817627, 0.04526433348655701, 0.3824547529220581, -0.33455103635787964, 0.1478634625673294, 0.34776827692985535, 0.387968510389328, -0.402108758687973, 0.3009830713272095, -0.48862555623054504, 0.47656017541885376, -0.340526819229126, -0.324518620967865, -0.1606910228729248, 0.23507334291934967, -0.023553503677248955, 0.06137420982122421, 0.41149085760116577, 0.5823994278907776, 0.2130088210105896, -0.04918952286243439, -0.2652750313282013, -0.11934977769851685, -0.14157801866531372, 0.05902747064828873, 0.045179277658462524, 0.060444142669439316, -0.29134809970855713, -0.041470788419246674, 0.03292994573712349, -0.04403981566429138, 0.003775317221879959, -0.6597328782081604, 0.21025028824806213, -0.2647411525249481, -0.01648922637104988, -0.09863640367984772, 0.2552074193954468, -0.09483253210783005, 0.28487563133239746, 0.006867777556180954, 0.25594624876976013, -0.18208551406860352, 0.23680618405342102, 0.06642498075962067, -0.16563786566257477, 0.18817667663097382, 0.19267785549163818, -0.19801732897758484, 0.18649113178253174, -0.16822245717048645, 0.36382725834846497, 0.015252254903316498, 0.062406349927186966, -0.21513478457927704, -0.2940658926963806, 0.1702280193567276, 0.23568308353424072, -0.1999233067035675, 0.23353809118270874, -0.00170764303766191, -0.1841314733028412, 0.10365866124629974, -0.0436885841190815, -0.5682258009910583, 0.05357702821493149, 0.11746152490377426, -0.21652072668075562, 0.12943203747272491, 0.11877786368131638, -0.15877419710159302, -0.010582060553133488, -0.38422465324401855, 0.05220726877450943, 0.3020174503326416, -0.09243955463171005, -0.1122981607913971, -0.37524357438087463, -0.35781511664390564, 0.29792338609695435, -0.21711820363998413, -1.1201764345169067, 0.14881783723831177, 0.30905047059059143, 0.3505091369152069, -0.10971373319625854, 0.213553786277771, 0.1350744515657425, 0.1876414567232132, -0.38543349504470825, 0.5604230165481567, 0.34212833642959595, 0.09885036945343018, -0.3323822617530823, -0.22069349884986877 ]
https://github.com/huggingface/datasets/issues/2129
How to train BERT model with next sentence prediction?
Thanks. Do you mean that `TextDatasetForNextSentencePrediction.create_exapmles_from_document` can be applied to dataset object other than `TextDatasetForNextSentencePrediction` e.g. a `Dataset` object which is loaded by `datasets.load_dataset`?
Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
24
How to train BERT model with next sentence prediction? Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ? Thanks. Do you mean that `TextDatasetForNextSentencePrediction.create_exapmles_from_document` can be applied to dataset object other than `TextDatasetForNextSentencePrediction` e.g. a `Dataset` object which is loaded by `datasets.load_dataset`?
[ 0.10564325749874115, -0.4607720673084259, 0.01556335762143135, -0.08984318375587463, 0.04743310809135437, -0.289905846118927, 0.15321087837219238, -0.005171705037355423, 0.0640043318271637, 0.12141864001750946, 0.18533101677894592, 0.12819233536720276, -0.15475186705589294, 0.12822146713733673, 0.3845977187156677, -0.6245173215866089, 0.1314675509929657, 0.29321831464767456, -0.05148877203464508, -0.24333293735980988, -0.16964438557624817, 0.07337737828493118, -0.35165584087371826, 0.3405377268791199, -0.2001279890537262, 0.27021393179893494, -0.28415876626968384, -0.24780741333961487, 0.00876955408602953, -0.334013968706131, 0.40475010871887207, 0.3907678723335266, 0.4258323311805725, 0.1643720418214798, -0.00012918474385514855, -0.232946515083313, 0.11473968625068665, -0.32738861441612244, 0.11378639936447144, -0.2843591570854187, -0.3555469810962677, -0.10609710216522217, 0.2643420398235321, -0.24600210785865784, -0.2422991693019867, 0.5384493470191956, 0.35819846391677856, -0.3058200776576996, 0.5242075324058533, 0.290845662355423, 0.014402046799659729, -0.25462061166763306, 0.31246504187583923, -0.020818976685404778, 0.23486831784248352, 0.16714642941951752, -0.025193845853209496, -0.22162263095378876, 0.54856938123703, -0.29866281151771545, -0.11388254910707474, 0.14427417516708374, -0.001834692433476448, 0.0014027003198862076, 0.25226396322250366, 0.2281709462404251, 0.17824792861938477, -0.4217784106731415, -0.19533035159111023, 0.37609973549842834, 0.8002336621284485, -0.32211777567863464, -0.4739645719528198, -0.24198663234710693, 0.3371286392211914, 0.09548819810152054, 0.12554077804088593, -0.3030332922935486, -0.123853400349617, 0.16312575340270996, 0.06125336512923241, -0.5166053771972656, -0.46741145849227905, -0.00057954341173172, -0.14903290569782257, 0.4557168483734131, 0.0035351619590073824, -0.15107524394989014, 0.28148841857910156, -0.16665887832641602, 0.09246090054512024, -0.09724382311105728, 0.053319353610277176, 0.482187420129776, -0.16326898336410522, -0.34540504217147827, -0.4761660099029541, 0.06776212155818939, 0.052934132516384125, -0.08090002089738846, -0.1527082324028015, -0.006581444293260574, -0.3215613067150116, -0.07093030959367752, 0.3516067862510681, 0.2880743741989136, -0.03828898072242737, 0.19145993888378143, -0.2848031520843506, 0.01971624605357647, -0.26817816495895386, -0.15379586815834045, -0.2019643634557724, 0.039913058280944824, 0.2256612926721573, -0.05068608373403549, -0.22892121970653534, -0.25900691747665405, 0.05848154425621033, 0.012056536041200161, -0.33750081062316895, -0.011746200732886791, -0.048863042145967484, -0.0032530948519706726, -0.1972683072090149, 0.3654836416244507, 0.06057700514793396, 0.10421645641326904, -0.04325941950082779, -0.11188221722841263, 0.15426109731197357, -0.1464899331331253, -0.3213076591491699, 0.5611475706100464, 0.015222471207380295, 0.08799467980861664, 0.1360878348350525, -0.2572857439517975, -0.09130726754665375, 0.035369180142879486, -0.24350126087665558, -0.414981871843338, -0.00021398812532424927, -0.06946960091590881, -0.3622317612171173, 0.06414276361465454, -0.14490479230880737, 0.4078865647315979, -0.18635207414627075, 0.04022260382771492, -0.17443406581878662, -0.08445273339748383, -0.18158704042434692, -0.0750281885266304, -0.04139365628361702, -0.2907979488372803, 0.04775003343820572, 0.5946682095527649, -0.010827705264091492, -0.20393821597099304, 0.2527201175689697, 0.09893334656953812, -0.46362271904945374, 0.14732453227043152, 0.15076418220996857, 0.23399817943572998, -0.5984504818916321, -0.3204490542411804, -0.13508880138397217, -0.02037322148680687, 0.02433782070875168, -0.13605961203575134, 0.22066189348697662, 0.355230450630188, 0.04204559326171875, 0.14959590137004852, -0.16228869557380676, -0.22584153711795807, -0.04679569602012634, 0.057461950927972794, 0.13851648569107056, 0.332161545753479, 0.0013425946235656738, 0.014306316152215004, 0.12120047956705093, -0.07266121357679367, -0.13351505994796753, 0.17920362949371338, -0.08563624322414398, -0.14146700501441956, 0.32056114077568054, -0.13843852281570435, -0.21361114084720612, 0.03851058706641197, 0.2292429804801941, 0.20227929949760437, -0.2451474964618683, 0.5747005939483643, 0.11565560102462769, -0.11700868606567383, 0.15359967947006226, 0.017829250544309616, 0.0713091641664505, 0.4100027084350586, 0.023902464658021927, -0.3240319490432739, -0.3736847937107086, -0.04771847277879715, 0.028667856007814407, -0.1072707325220108, 0.12747623026371002, 0.10546484589576721, 0.012154970318078995, 0.13287098705768585, -0.08563496172428131, -0.12180884182453156, -0.0996612012386322, 0.05310560017824173, -0.14227330684661865, 0.07668864727020264, -0.393629789352417, 0.18687929213047028, 0.12230737507343292, 0.10920672118663788, -0.1749439239501953, 0.15875369310379028, 0.02184983715415001, -0.03786254674196243, -0.05220397189259529, 0.11956004798412323, -0.009430386126041412, 0.12906551361083984, 0.0670817643404007, 0.09989798069000244, 0.28769752383232117, 0.108329176902771, -0.05229686200618744, -0.09488372504711151, 0.07587756961584091, -0.3679950535297394, -0.004335029050707817, 0.08375777304172516, -0.023058496415615082, -0.08894184976816177, -0.086956687271595, 0.09166467189788818, 0.5599467158317566, -0.06622534245252609, 0.015727877616882324, -0.025914378464221954, -0.15261265635490417, 0.06730122864246368, -0.09875690937042236, -0.4773171842098236, 0.05010629817843437, 0.14550937712192535, 0.33999353647232056, -0.12262378633022308, -0.189774751663208, -0.450778067111969, 0.2656010389328003, -0.12634864449501038, 0.2417231798171997, 0.6629160046577454, -0.07830788940191269, -0.023472845554351807, -0.19154438376426697, -0.3000424802303314, 0.07019074261188507, 0.061701953411102295, -0.05270526185631752, -0.046221278607845306, 0.021926505491137505, 0.021355509757995605, 0.043241292238235474, -0.06375987827777863, 0.2537963390350342, -0.08747892826795578, -0.30575957894325256, 0.04756753891706467, 0.13605591654777527, -0.33021023869514465, -0.11175922304391861, -0.009861033409833908, -0.1607450395822525, 0.03758525103330612, -0.23597119748592377, -0.2540566027164459, -0.14969494938850403, -0.42556118965148926, -0.08121608197689056, 0.3417150676250458, -0.003579646348953247, -0.30791032314300537, 0.10875856876373291, -0.07092124968767166, 0.0714121162891388, 0.4477219581604004, 0.16115707159042358, 0.18178212642669678, -0.24836353957653046, -0.1266445517539978, -0.005487706512212753, -0.056220583617687225, -0.18533198535442352, -0.11403653770685196, -0.2734884023666382, -0.005024639889597893, 0.09116616100072861, -0.18328572809696198, -0.23735976219177246, 0.2947242259979248, -0.10084547102451324, 0.040586311370134354, 0.3184698224067688, -0.23007310926914215, -0.11639078706502914, -0.04333144426345825, -0.08053173124790192, -0.07639986276626587, -0.12013161182403564, -0.3259270489215851, 0.15786094963550568, 0.16872638463974, 0.2795047461986542, -0.07273005694150925, -0.2464631050825119, 0.29167798161506653, 0.2228226214647293, 0.2209518402814865, 0.011041350662708282, -0.18089143931865692, -0.043218258768320084, 0.19671748578548431, -0.29123321175575256, -0.06640011072158813, 0.1601237952709198, -0.5610363483428955, 0.11959205567836761, 0.09515485167503357, 0.040879614651203156, -0.4551677405834198, -0.02613411284983158, -0.18338625133037567, -0.24684585630893707, -0.10039639472961426, -0.2364138960838318, 0.027385666966438293, -0.26669371128082275, -0.08475035429000854, -0.0711284801363945, 0.15646667778491974, 0.13628198206424713, 0.1602432131767273, -0.18972736597061157, -0.13249517977237701, 0.4403705596923828, -0.06295009702444077, 0.26739659905433655, -0.015151198953390121, 0.08114275336265564, -0.2939184904098511, 0.3493478298187256, 0.05869550630450249, -0.26864713430404663, 0.4846492409706116, 0.2132168710231781, -0.08820544183254242, -0.16517218947410583, -0.016185812652111053, -0.08670714497566223, 0.008297175168991089, 0.08325657993555069, 0.44895005226135254, -0.11400332301855087, -0.01298246718943119, -0.22463104128837585, -0.21170009672641754, -0.004385117441415787, -0.07870488613843918, 0.024018364027142525, -0.21559596061706543, 0.2518780529499054, -0.24020840227603912, -0.037371594458818436, -0.0661790668964386, -0.06095506250858307, -0.07660636305809021, -0.0004371926188468933, 0.702143132686615, -0.204072043299675, 0.4300750494003296, -0.15232668817043304, -0.3472488224506378, 0.043621331453323364, 0.29060518741607666, -0.03360556811094284, -0.11764323711395264, 0.16950753331184387, -0.01700686663389206, 0.11503958702087402, 0.14913690090179443, -0.1024862602353096, -0.1103028655052185, -0.06072389334440231, -0.3613393306732178, 0.3181832730770111, 0.1899961680173874, -0.27446913719177246, -0.3287582993507385, 0.16438400745391846, 0.2621650695800781, 0.049475736916065216, -0.15733136236667633, 0.23797662556171417, 0.07786215841770172, -0.15743094682693481, -0.41629844903945923, 0.10444441437721252, 0.6891815066337585, -0.14875906705856323, 0.10669946670532227, -0.1123586893081665, -0.11622704565525055, 0.1644563376903534, -0.1982581615447998, 0.09211571514606476, 0.1108333095908165, -0.05008824169635773, 0.03157226741313934, -0.025804854929447174, -0.2509801685810089, 0.06664420664310455, 0.22892938554286957, 0.18414652347564697, 0.31211671233177185, -0.11000379920005798, -0.14059598743915558, -0.25395405292510986, 0.07685735076665878, 0.13068963587284088, 0.5098464488983154, 0.019148625433444977, 0.18125398457050323, 0.3650161325931549, 0.02974531427025795, -0.07100154459476471, -0.11959586292505264, -0.07473491132259369, 0.6595308780670166, 0.21146942675113678, -0.3762807250022888, -0.356840044260025, 0.5436473488807678, -0.019671384245157242, -0.20510581135749817, -0.2914196252822876, 0.6835458278656006, -0.40777283906936646, 0.2534977197647095, 0.5497309565544128, 0.974449098110199, -0.03745938837528229, 0.2863144874572754, -0.26481616497039795, 0.19900332391262054, 0.5697479844093323, -0.14440566301345825, -0.07424415647983551, -0.09386299550533295, 0.14450761675834656, -0.3599349558353424, 0.19863930344581604, 0.14885248243808746, 0.32457661628723145, -0.7072691917419434, 0.2890150249004364, 0.1858673244714737, -0.08244124054908752, 0.0933632105588913, 0.07561004161834717, 0.33672264218330383, -0.560014545917511, -0.16596409678459167, -0.08314543217420578, 0.1920498013496399, 0.1824825406074524, -0.13492900133132935, -0.0879463404417038, 0.5826054811477661, -0.021004876121878624, -0.49900758266448975, 0.045283593237400055, -0.2814258337020874, -0.28888094425201416, 0.0005388632416725159, -0.034759555011987686, 0.6878594160079956, 0.3567858338356018, 0.6128692030906677, 0.22558969259262085, -0.2492450773715973, -0.0071975551545619965, 0.17214365303516388, -0.15049076080322266, -0.265272855758667, -0.07648655027151108, 0.5720115303993225, -0.13820400834083557, -0.32548215985298157, 0.2795313596725464, 0.10154559463262558, -0.33727580308914185, -0.08188661187887192, -0.39894384145736694, 0.5842716693878174, -0.014415627345442772, -0.12398725748062134, 0.05984430015087128, 0.10225656628608704, -0.1970912367105484, 0.0016728676855564117, 0.08719654381275177, -0.16829830408096313, 0.13068807125091553, 0.16201384365558624, -0.3973868489265442, -0.08148856461048126, 0.1589452028274536, 0.09320399910211563, -0.0849236398935318, 0.6222244501113892, 0.21377037465572357, 0.051998332142829895, -0.21644341945648193, 0.05645301938056946, 0.34216931462287903, -0.3368005156517029, 0.2119739055633545, 0.15990997850894928, -0.020101189613342285, 0.19365090131759644, 0.5828647613525391, 0.25298115611076355, -0.19698351621627808, -0.22642622888088226, -0.12625040113925934, -0.22130778431892395, -0.12932421267032623, -0.14378002285957336, 0.20005246996879578, 0.2188759446144104, 0.039912350475788116, 0.42167842388153076, 0.3823927342891693, -0.0677022933959961, -0.25100886821746826, -0.12766242027282715, 0.11367548257112503, 0.254812628030777, 0.14916643500328064, -0.03944527357816696, 0.09818917512893677, -0.06175531446933746, 0.2860836386680603, 0.21412785351276398, 0.03487883508205414, -0.1573134809732437, 0.20462428033351898, 0.0016042236238718033, 0.00943839643150568, -0.1703866571187973, -0.016973908990621567, -0.1362682282924652, -0.1141250878572464, -0.1313113272190094, 0.09859158843755722, 0.21231143176555634, 0.449203222990036, 0.39219337701797485, -0.058469273149967194, -0.28554534912109375, -0.188684344291687, 0.2176954448223114, 0.06276792287826538, -0.08515825122594833, -0.03326378017663956, -0.05417509004473686, -0.12859728932380676, -0.0343867689371109, 0.24485072493553162, 0.5551091432571411, 0.19816157221794128, 0.12985804677009583, 0.15632736682891846, -0.15945538878440857, -0.09692023694515228, 0.07317115366458893, -0.051152102649211884, 0.1640901267528534, -0.2559705674648285, 0.5922895073890686, -0.052408456802368164, -0.25679779052734375, -0.07708265632390976, 0.17800815403461456, -0.05819665640592575, -0.08122185617685318, 0.029809750616550446, -0.1027332991361618, 0.352180153131485, 0.2211386263370514, -0.11635391414165497, -0.4240359365940094, 0.28134042024612427, 0.08341957628726959, 0.5365972518920898, 0.250478595495224, 0.18999511003494263, 0.17431849241256714, 0.30439454317092896, 0.5802148580551147, 0.5396015644073486, -0.09466937929391861, 0.15692521631717682, -0.18804168701171875, 0.26276591420173645, 0.5272642374038696, -0.16578267514705658, -0.049009453505277634, 0.06623406708240509, 0.05099740996956825, 0.1888044774532318, 0.024065162986516953, 0.4067955017089844, 0.16843560338020325, -0.13464054465293884, -0.42313435673713684, 0.2094092071056366, 0.14487498998641968, -0.41330718994140625, -0.11386024951934814, 0.08265798538923264, 0.2206769585609436, -0.07437764108181, -0.11683984100818634, 0.02904020994901657, 0.1580934226512909, 0.2191915512084961, 0.3983948230743408, -0.046325430274009705, -0.07839497923851013, -0.054713793098926544, 0.2943122386932373, -0.08525412529706955, 0.2956569790840149, -0.2421523481607437, 0.1789085566997528, 0.14894245564937592, 0.4170621633529663, -0.11888261139392853, 0.2679029107093811, -0.15685029327869415, 0.08773431926965714, -0.1292562335729599, 0.04783221334218979, 0.18776117265224457, 0.060490306466817856, 0.23242324590682983, -0.06591154634952545, 0.34130606055259705, -0.0977269634604454, 0.05669969320297241, 0.2536099851131439, 0.12283216416835785, 0.32644832134246826, -0.25821155309677124, 0.20130446553230286, 0.3605731427669525, 0.36063235998153687, -0.3829970359802246, 0.3268387019634247, -0.4427746832370758, 0.3775328993797302, -0.24771231412887573, -0.29686635732650757, -0.15045499801635742, 0.2291051596403122, -0.06322228908538818, 0.04473871365189552, 0.4278225898742676, 0.5208466053009033, 0.23112881183624268, -0.05741555243730545, -0.2300032079219818, -0.21742881834506989, -0.0294765904545784, 0.15149959921836853, -0.11825814098119736, 0.0844169557094574, -0.28192803263664246, 0.059790994971990585, 0.016806894913315773, 0.04663180559873581, 0.0233677439391613, -0.5602827072143555, 0.1847175508737564, -0.15491662919521332, 0.0030541010200977325, -0.13520677387714386, 0.3056131899356842, -0.08230963349342346, 0.08964712172746658, -0.014675367623567581, 0.21000853180885315, -0.21709412336349487, 0.13301366567611694, 0.08214625716209412, -0.18455815315246582, 0.22502192854881287, 0.2851875126361847, -0.1943356692790985, 0.2990404963493347, -0.238591730594635, 0.3976640999317169, 0.07660295069217682, 0.058629486709833145, -0.3067622780799866, -0.18044781684875488, 0.3098561763763428, 0.1983596682548523, -0.27117466926574707, 0.28065404295921326, -0.072811059653759, -0.14151695370674133, 0.13558568060398102, 0.04005686566233635, -0.6012183427810669, 0.14385917782783508, 0.029227904975414276, -0.22438493371009827, 0.1326209008693695, 0.14171834290027618, -0.17053037881851196, -0.0256197527050972, -0.307881623506546, 0.060242488980293274, 0.32407504320144653, -0.15842220187187195, -0.12221124768257141, -0.38394445180892944, -0.29240310192108154, 0.24981063604354858, -0.3335629403591156, -1.1292833089828491, 0.1586366593837738, 0.34052711725234985, 0.2833717465400696, -0.22436228394508362, 0.19301706552505493, 0.07102921605110168, 0.12552419304847717, -0.35653358697891235, 0.5560401678085327, 0.24317803978919983, 0.10638275742530823, -0.33504098653793335, -0.2991436719894409 ]
https://github.com/huggingface/datasets/issues/2129
How to train BERT model with next sentence prediction?
It would probably require a bit of tweaking, but you can apply it to a dataset, yes. This should give you a new dataset with sentence pairs you can train a model on. You can find the documentation about dataset processing here: https://huggingface.co/docs/datasets/processing.html#processing-data-with-map
Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
43
How to train BERT model with next sentence prediction? Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ? It would probably require a bit of tweaking, but you can apply it to a dataset, yes. This should give you a new dataset with sentence pairs you can train a model on. You can find the documentation about dataset processing here: https://huggingface.co/docs/datasets/processing.html#processing-data-with-map
[ 0.22160710394382477, -0.4078705310821533, 0.02459127828478813, -0.12425923347473145, 0.03434937819838524, -0.18445855379104614, 0.09041324257850647, 0.022120527923107147, -0.051008470356464386, 0.0038792192935943604, 0.03292578458786011, 0.0937432050704956, -0.18824994564056396, 0.17367541790008545, 0.3407391905784607, -0.6513746976852417, 0.12976165115833282, 0.15538617968559265, -0.045797958970069885, -0.07448665052652359, -0.030396370217204094, 0.1138739138841629, -0.2975050210952759, 0.3866291642189026, -0.2856273055076599, 0.16757752001285553, -0.347952276468277, -0.1773996651172638, 0.0666724219918251, -0.29512956738471985, 0.4142338037490845, 0.4732448160648346, 0.44606873393058777, 0.2521961033344269, -0.0001230382767971605, -0.21527521312236786, 0.13028472661972046, -0.3177433907985687, 0.23018315434455872, -0.4261965751647949, -0.2667483985424042, 0.03936750441789627, 0.20274445414543152, -0.12609055638313293, -0.31134742498397827, 0.5966156721115112, 0.25583022832870483, -0.21176861226558685, 0.653779923915863, 0.07165642827749252, 0.0451868399977684, -0.16890551149845123, 0.2814650535583496, -0.009518999606370926, 0.14617125689983368, 0.16820403933525085, 0.05120787024497986, -0.07517474889755249, 0.6243177652359009, -0.36006805300712585, -0.2291097342967987, 0.19854117929935455, 0.006369723007082939, -0.0540352426469326, 0.2797683775424957, 0.2602440118789673, -0.014422796666622162, -0.3843037486076355, -0.28950873017311096, 0.42008644342422485, 0.5511068105697632, -0.31328609585762024, -0.45242324471473694, -0.2447676658630371, 0.22259695827960968, 0.14618916809558868, 0.06927869468927383, -0.2382967174053192, -0.13587862253189087, 0.21702760457992554, 0.07738259434700012, -0.4006274342536926, -0.34533390402793884, -0.031248651444911957, -0.10514121502637863, 0.3863508999347687, -0.05170325189828873, -0.1975739300251007, 0.3232114017009735, -0.1545155942440033, -0.038773681968450546, -0.03060920536518097, 0.08359275013208389, 0.5048007965087891, -0.2043062001466751, -0.43766045570373535, -0.3445560038089752, 0.20679917931556702, 0.05533459782600403, -0.12079481780529022, -0.22736738622188568, 0.07055483758449554, -0.4263336658477783, -0.1015721783041954, 0.42280831933021545, 0.2061460167169571, -0.07798530906438828, 0.16556155681610107, -0.26374202966690063, 0.032218240201473236, -0.22986455261707306, -0.1523417830467224, -0.09865588694810867, 0.026732996106147766, 0.0893845409154892, -0.08126679062843323, -0.2630622386932373, -0.24695831537246704, 0.11775166541337967, -0.016883838921785355, -0.2530957758426666, -0.03111012652516365, -0.0024541309103369713, -0.007882587611675262, -0.23937655985355377, 0.3082728683948517, 0.0032431744039058685, 0.15898223221302032, -0.027388278394937515, -0.0793849304318428, 0.12869158387184143, -0.2796347737312317, -0.2976548969745636, 0.5216553807258606, -0.000623948872089386, 0.01013944298028946, 0.1354135423898697, -0.1380981057882309, -0.05754038691520691, 0.09338782727718353, -0.328887939453125, -0.31229519844055176, -0.10335094481706619, -0.13624323904514313, -0.4028107821941376, 0.10464891046285629, -0.07668443024158478, 0.42500436305999756, -0.09738963097333908, -0.014191776514053345, -0.2520745098590851, -0.02861594595015049, -0.14065206050872803, -0.058814886957407, -0.18186692893505096, -0.3151637613773346, 0.10492070764303207, 0.5339121222496033, -0.048067621886730194, -0.22820144891738892, 0.08228639513254166, 0.230229452252388, -0.4096044600009918, 0.1246807649731636, 0.19779597222805023, 0.25218188762664795, -0.49101412296295166, -0.30780595541000366, 0.07364317029714584, 0.13200224936008453, 0.0859723910689354, 0.017237570136785507, 0.17391197383403778, 0.1844780445098877, 0.06578049808740616, 0.18158270418643951, -0.1284933090209961, -0.12418493628501892, 0.03655681014060974, 0.0787435844540596, 0.04174599051475525, 0.40492188930511475, -0.13438403606414795, 0.03249738737940788, 0.03137005865573883, -0.17050571739673615, -0.023556053638458252, 0.11465371400117874, -0.15726427733898163, -0.19150176644325256, 0.18699902296066284, -0.17935259640216827, -0.06077168881893158, -0.07136547565460205, 0.09585193544626236, 0.20799635350704193, -0.31592684984207153, 0.5599300265312195, 0.19242620468139648, -0.0377027653157711, 0.07847569137811661, 0.012663165107369423, 0.08054696768522263, 0.4914736747741699, -0.004199802875518799, -0.3462732136249542, -0.19723445177078247, 0.07380959391593933, -0.04339985549449921, -0.08618897199630737, 0.007264092564582825, 0.09662500023841858, 0.02378140389919281, 0.0962052047252655, -0.059168074280023575, -0.20678329467773438, -0.04116794466972351, -0.12932364642620087, -0.11540941894054413, 0.07587307691574097, -0.3743762671947479, 0.14794191718101501, 0.1461740881204605, 0.12460548430681229, -0.1697930097579956, 0.20566223561763763, -0.014930950477719307, -0.04435897246003151, -0.057247791439294815, 0.17984744906425476, 0.0025716982781887054, 0.08094744384288788, 0.13360252976417542, 0.1328282356262207, 0.18270935118198395, 0.1997072994709015, 0.0009616091847419739, -0.18049468100070953, 0.1244327500462532, -0.361966073513031, -0.1211429312825203, 0.021470559760928154, -0.10501299798488617, -0.1291610151529312, -0.13156136870384216, 0.11971645057201385, 0.4141707718372345, 0.04277767986059189, -0.10376742482185364, 0.013847405090928078, -0.15204620361328125, 0.027995068579912186, -0.09644708037376404, -0.34771114587783813, 0.08619436621665955, 0.054007045924663544, 0.25896257162094116, -0.0506213903427124, -0.1999683529138565, -0.39990395307540894, 0.20419159531593323, -0.09993787109851837, 0.09586650133132935, 0.6327773332595825, -0.14220812916755676, 0.06616534292697906, -0.1307602822780609, -0.2718034088611603, -0.01489768922328949, 0.10474821925163269, -0.06536597013473511, -0.09132667630910873, -0.016951195895671844, 0.03419244661927223, -0.16713792085647583, 0.031110089272260666, 0.19056813418865204, -0.20526039600372314, -0.2006828337907791, 0.14281120896339417, 0.2093745768070221, -0.2070283144712448, -0.1485775113105774, -0.019426042214035988, -0.14356639981269836, 0.06120806187391281, -0.3151901662349701, -0.4285084307193756, -0.12797409296035767, -0.49119269847869873, -0.1034008115530014, 0.25827476382255554, -0.0149436816573143, -0.3871529698371887, 0.15148986876010895, -0.049911513924598694, 0.15102362632751465, 0.2841989994049072, 0.1946389228105545, 0.12778089940547943, -0.20705048739910126, -0.22387909889221191, 0.023768894374370575, 0.04949900880455971, -0.059221088886260986, -0.17737025022506714, -0.2605481445789337, -0.09065059572458267, -0.03999558091163635, -0.0956396535038948, -0.3120403587818146, 0.28973594307899475, -0.24991904199123383, 0.12975838780403137, 0.2941756248474121, -0.0759725421667099, -0.20799246430397034, 0.043594591319561005, -0.018634064123034477, -0.009606696665287018, -0.07670722901821136, -0.22903893887996674, 0.24261364340782166, 0.24581652879714966, 0.18509283661842346, -0.03389012813568115, -0.21698874235153198, 0.3477906882762909, 0.352530300617218, 0.14448976516723633, -0.036968156695365906, -0.1149628683924675, 0.026241611689329147, 0.1613726168870926, -0.3884987533092499, -0.16418536007404327, 0.10815530270338058, -0.5920632481575012, 0.18305815756320953, 0.15767909586429596, -0.01292363554239273, -0.36627623438835144, 0.013202957808971405, -0.13702607154846191, -0.3882231116294861, -0.0276666097342968, -0.3468876779079437, 0.09628339111804962, -0.08107961714267731, -0.06874319165945053, -0.11579474806785583, 0.04566642642021179, 0.11589574813842773, 0.1434839963912964, -0.17672327160835266, 0.07955320179462433, 0.3418136537075043, -0.08829797804355621, 0.34239882230758667, 0.05960964411497116, 0.1252829134464264, -0.188926100730896, 0.4627276062965393, 0.12350280582904816, -0.2810501158237457, 0.381725549697876, 0.17427346110343933, -0.01531202718615532, -0.10777858644723892, -0.004732230678200722, -0.057310789823532104, -0.05847403407096863, 0.15139316022396088, 0.37000274658203125, 0.01918630674481392, 0.05587569624185562, -0.13860324025154114, -0.12502384185791016, 0.08580084890127182, -0.13679097592830658, 0.08017661422491074, -0.2657974064350128, 0.15148597955703735, -0.19070139527320862, -0.12607334554195404, 0.037777677178382874, -0.15975764393806458, -0.04737206548452377, -0.017587833106517792, 0.7697461247444153, -0.1035645455121994, 0.5713797807693481, -0.04006445035338402, -0.4635269045829773, -0.011037051677703857, 0.31628668308258057, -0.16767384111881256, -0.11237381398677826, 0.12196489423513412, 0.006117783486843109, 0.1712808609008789, 0.14379215240478516, 0.025767721235752106, -0.09486034512519836, -0.15732425451278687, -0.3071131408214569, 0.20701518654823303, 0.27262169122695923, -0.27480682730674744, -0.32592201232910156, 0.24376124143600464, 0.2212952971458435, 0.12800332903862, -0.17377302050590515, 0.20574630796909332, 0.07356800884008408, -0.09856186807155609, -0.46309390664100647, 0.03396499529480934, 0.729844868183136, -0.1961900293827057, 0.0703766793012619, 0.03745964914560318, -0.14567065238952637, 0.127628356218338, -0.22023098170757294, 0.28779783844947815, 0.08834769576787949, 0.062109190970659256, 0.0453324168920517, -0.026321865618228912, -0.27039045095443726, 0.01580299809575081, 0.3881344199180603, 0.04164017736911774, 0.11263687908649445, -0.0956169068813324, -0.0024823136627674103, -0.22618988156318665, 0.08594204485416412, 0.13393087685108185, 0.44899001717567444, -0.05248895287513733, 0.17001721262931824, 0.47621840238571167, 0.0810796394944191, -0.01876586675643921, -0.23459559679031372, -0.0024603207129985094, 0.6682594418525696, 0.32926273345947266, -0.4029553532600403, -0.2895728647708893, 0.5090538263320923, -0.11437444388866425, -0.23800918459892273, -0.4068024754524231, 0.6209009289741516, -0.32316383719444275, 0.19403210282325745, 0.4422946870326996, 0.8429118990898132, -0.08869342505931854, 0.311294823884964, -0.3545754849910736, 0.06246524304151535, 0.7213709950447083, -0.1341114044189453, -0.1559300273656845, 0.0058307163417339325, 0.21788878738880157, -0.3336974084377289, 0.248853862285614, 0.03433118015527725, 0.21943406760692596, -0.6571432948112488, 0.3025607764720917, 0.19460929930210114, 0.011152595281600952, 0.1594288945198059, -0.06426365673542023, 0.4093576669692993, -0.465417742729187, -0.08200512081384659, -0.02134966291487217, 0.16656893491744995, 0.27054405212402344, -0.1455814242362976, -0.15805819630622864, 0.44088152050971985, 0.05728142708539963, -0.5037372708320618, -0.027096984907984734, -0.2786685526371002, -0.40376943349838257, 0.08864037692546844, 0.0015838593244552612, 0.6850599646568298, 0.42003709077835083, 0.5400063395500183, 0.2962406277656555, -0.3583511710166931, -0.0038294941186904907, 0.0752434954047203, -0.0949680507183075, -0.2911287248134613, -0.024794023483991623, 0.5104466676712036, -0.10823782533407211, -0.3413865566253662, 0.2263132631778717, 0.07952096313238144, -0.3061786890029907, -0.2628554105758667, -0.24354811012744904, 0.5197247266769409, -0.008263222873210907, -0.0014373399317264557, 0.06986777484416962, 0.19548913836479187, -0.14849893748760223, 0.056469306349754333, 0.147427499294281, -0.23162631690502167, 0.012089148163795471, 0.12623101472854614, -0.26250821352005005, -0.04068630561232567, 0.16999337077140808, 0.07442067563533783, -0.1156330332159996, 0.5515830516815186, 0.3813835084438324, 0.023571960628032684, -0.1429358720779419, -0.04153112322092056, 0.2874452769756317, -0.3117372989654541, 0.1730518639087677, 0.14244461059570312, 0.10890187323093414, 0.11965394020080566, 0.5604647397994995, 0.31672072410583496, -0.2096681296825409, -0.1709754765033722, -0.0789634957909584, -0.42024046182632446, -0.15213219821453094, -0.13828511536121368, 0.08895188570022583, 0.20189374685287476, 0.22628827393054962, 0.43198567628860474, 0.48129892349243164, -0.13358113169670105, -0.18656787276268005, -0.1568320393562317, 0.18547606468200684, 0.16684381663799286, 0.050720758736133575, -0.035477787256240845, -0.03401774913072586, -0.04898103326559067, 0.34793055057525635, 0.24058298766613007, -0.03150774911046028, -0.16571582853794098, 0.11711160838603973, -0.08281628042459488, -0.019319206476211548, -0.10445162653923035, 0.1295056939125061, 0.00144941546022892, -0.056088030338287354, -0.13701938092708588, 0.12373494356870651, 0.3126099705696106, 0.3356463611125946, 0.4685323238372803, -0.16306176781654358, -0.3651552200317383, -0.23557469248771667, 0.2533027231693268, 0.0607486255466938, -0.06531129777431488, -0.11763565242290497, -0.04818648472428322, -0.10567259788513184, 0.05769042298197746, 0.2247023582458496, 0.5772356390953064, 0.0416005402803421, 0.0999540239572525, 0.10009262710809708, -0.14636282622814178, -0.07937820255756378, 0.1456751674413681, -0.15243366360664368, 0.27491259574890137, -0.25943586230278015, 0.6059513688087463, 0.013249505311250687, -0.2488042712211609, 0.12194252014160156, 0.156031534075737, 0.07124549895524979, -0.0755537822842598, 0.056312017142772675, -0.16634269058704376, 0.40835902094841003, 0.31187427043914795, -0.11102933436632156, -0.33721163868904114, 0.19570250809192657, 0.06593519449234009, 0.39421507716178894, 0.24622364342212677, 0.135949045419693, 0.23960618674755096, 0.15667851269245148, 0.4447755217552185, 0.4075520634651184, -0.22556853294372559, 0.10096902400255203, -0.27903059124946594, 0.20178954303264618, 0.5044291615486145, -0.1668916791677475, -0.20034120976924896, 0.13333012163639069, 0.12746533751487732, 0.22780296206474304, -0.07699848711490631, 0.7284395694732666, 0.16802911460399628, -0.24336421489715576, -0.22036586701869965, 0.31280410289764404, 0.0742325633764267, -0.4544348120689392, -0.12707257270812988, -0.015298381447792053, 0.1933591663837433, -0.11922882497310638, -0.08439010381698608, -0.019944079220294952, 0.19794681668281555, 0.2530481219291687, 0.3101107180118561, -0.18507114052772522, -0.139911949634552, -0.036539867520332336, 0.3561718761920929, -0.04652974009513855, 0.295549213886261, -0.13669972121715546, 0.06918875128030777, 0.20795699954032898, 0.3479253351688385, -0.07855208218097687, 0.15515631437301636, -0.09475967288017273, 0.1725803166627884, -0.16467241942882538, 0.06958501785993576, 0.2889028489589691, 0.05713016539812088, 0.18968218564987183, -0.045344654470682144, 0.29901549220085144, -0.0403403639793396, -0.02711595594882965, 0.254942923784256, 0.01242072880268097, 0.43692365288734436, -0.3256869912147522, 0.15496736764907837, 0.24384751915931702, 0.3556314706802368, -0.3943238854408264, 0.3008926510810852, -0.4989350736141205, 0.4902074635028839, -0.3825587332248688, -0.31781089305877686, -0.16491273045539856, 0.23184946179389954, -0.0218926090747118, 0.0985029935836792, 0.4464307427406311, 0.6065986156463623, 0.19102740287780762, -0.11231064051389694, -0.24408674240112305, -0.22961220145225525, -0.12215787917375565, 0.1418815404176712, 0.09937307238578796, -0.05586710572242737, -0.3151007890701294, 0.012243524193763733, 0.07616118341684341, -0.08001810312271118, -0.03888235613703728, -0.726643979549408, 0.12296722084283829, -0.22971732914447784, 0.04469151422381401, -0.252469003200531, 0.20733974874019623, -0.03671695664525032, 0.3225860297679901, -0.038611818104982376, 0.270069420337677, -0.1861475706100464, 0.18641887605190277, 0.04017627239227295, -0.22383764386177063, 0.07268203794956207, 0.13571561872959137, -0.11652109026908875, 0.1795518696308136, -0.1516769528388977, 0.33880192041397095, -0.021033678203821182, -0.01721847429871559, -0.2530869245529175, -0.3071562647819519, 0.12263135612010956, 0.2526155710220337, -0.24926933646202087, 0.17805233597755432, -0.09671372920274734, -0.16787856817245483, 0.1459290087223053, -0.018451763316988945, -0.603792667388916, 0.02453874610364437, 0.07237566262483597, -0.2292449176311493, 0.10549568384885788, 0.2302969992160797, -0.16588455438613892, 0.03614647686481476, -0.33561795949935913, 0.003944743424654007, 0.34552472829818726, -0.2045920193195343, -0.08469241857528687, -0.29765626788139343, -0.36606836318969727, 0.3209735155105591, -0.2705560326576233, -1.1808879375457764, 0.08074261993169785, 0.26809340715408325, 0.38067543506622314, -0.09402823448181152, 0.19796916842460632, 0.04885086789727211, 0.096183642745018, -0.3995484709739685, 0.5143040418624878, 0.33371782302856445, 0.11033393442630768, -0.21281252801418304, -0.2657097280025482 ]
https://github.com/huggingface/datasets/issues/2128
Dialogue action slot name and value are reversed in MultiWoZ 2.2
Hi Good catch ! Thanks for reporting If you are interested in contributing, feel free to open a PR to fix this :)
Hi @yjernite, thank you for adding MultiWoZ 2.2 in the huggingface datasets platform. It is beneficial! I spot an error that the order of Dialogue action slot names and values are reversed. https://github.com/huggingface/datasets/blob/649b2c469779bc4221e1b6969aa2496d63eb5953/datasets/multi_woz_v22/multi_woz_v22.py#L251-L262
23
Dialogue action slot name and value are reversed in MultiWoZ 2.2 Hi @yjernite, thank you for adding MultiWoZ 2.2 in the huggingface datasets platform. It is beneficial! I spot an error that the order of Dialogue action slot names and values are reversed. https://github.com/huggingface/datasets/blob/649b2c469779bc4221e1b6969aa2496d63eb5953/datasets/multi_woz_v22/multi_woz_v22.py#L251-L262 Hi Good catch ! Thanks for reporting If you are interested in contributing, feel free to open a PR to fix this :)
[ 0.4248685836791992, -0.3456929922103882, 0.017481699585914612, 0.48035550117492676, -0.21027417480945587, -0.0071411579847335815, 0.182797372341156, 0.11194004118442535, -0.10078853368759155, 0.23865000903606415, -0.3579907715320587, 0.13056449592113495, 0.023053431883454323, 0.39279112219810486, -0.023837924003601074, -0.27589964866638184, 0.09429141134023666, -0.013857029378414154, 0.049368396401405334, 0.13114520907402039, -0.4356462061405182, 0.5747423768043518, -0.5933912992477417, 0.6446861028671265, -0.10715942084789276, -0.014253368601202965, 0.06340228021144867, 0.11113493144512177, -0.019426902756094933, -0.057390037924051285, 0.02148493565618992, 0.0864022970199585, -0.06867863237857819, 0.3353700041770935, -0.00011619569704635069, -0.2951158285140991, 0.2519218921661377, 0.11386774480342865, 0.017650453373789787, -0.030799731612205505, -0.26422208547592163, 0.08479468524456024, -0.12489942461252213, -0.13705813884735107, 0.2321760654449463, 0.18954390287399292, -0.07462343573570251, -0.08015889674425125, 0.2754887342453003, -0.07842583954334259, 0.11571237444877625, 0.16482038795948029, 0.03574368730187416, -0.05805380269885063, -0.021584950387477875, 0.2198864370584488, -0.08244340121746063, 0.19959625601768494, 0.021218709647655487, 0.12683863937854767, 0.07498094439506531, 0.34179240465164185, -0.20100295543670654, 0.013220190070569515, -0.13651302456855774, 0.13743694126605988, -0.006453968584537506, 0.08071964979171753, -0.09426049143075943, 0.3944838345050812, 0.12800109386444092, -0.20432355999946594, -0.25424808263778687, -0.3739617168903351, 0.22522537410259247, 0.010792998597025871, 0.28980955481529236, 0.36225929856300354, 0.15706966817378998, 0.20739448070526123, 0.021898232400417328, 0.21236470341682434, 0.20155763626098633, -0.12399384379386902, 0.0848846584558487, 0.3029034733772278, -0.16209019720554352, 0.08765242993831635, -0.33110982179641724, -0.241779163479805, 0.006068370770663023, 0.24825076758861542, -0.2515793442726135, 0.11568997800350189, -0.42045214772224426, 0.20178744196891785, 0.033035218715667725, 0.3425072729587555, -0.009885022416710854, -0.11900173127651215, 0.2433527708053589, 0.1067768856883049, -0.19166626036167145, -0.12373360246419907, 0.2064363658428192, 0.36749324202537537, 0.321126788854599, -0.25410643219947815, -0.13708949089050293, 0.26936808228492737, 0.28844526410102844, 0.07144974172115326, -0.013193707913160324, -0.5080452561378479, -0.26497721672058105, 0.057498835027217865, 0.38581156730651855, 0.07275541126728058, -0.1866707056760788, -0.11297672986984253, -0.22948747873306274, 0.06043824553489685, 0.6087937355041504, 0.14586177468299866, -0.31651756167411804, 0.45591309666633606, 0.18282267451286316, 0.2985948920249939, -0.032791342586278915, 0.07395339012145996, -0.03953675553202629, -0.21161916851997375, -0.22458195686340332, 0.23889930546283722, 0.11425262689590454, 0.49801403284072876, 0.24823638796806335, 0.25652676820755005, 0.6652233004570007, -0.022322800010442734, -0.04907054454088211, 0.14316469430923462, -0.07278875261545181, -0.21910180151462555, 0.1980552077293396, 0.5540356040000916, -0.08750727772712708, 0.22384332120418549, 0.0393962636590004, -0.07648564130067825, -0.5501936078071594, -0.14358630776405334, 0.11709633469581604, 0.12500500679016113, 0.07817766070365906, 0.10162483155727386, -0.003858134150505066, -0.1853640228509903, 0.23740234971046448, -0.16186067461967468, 0.1959502100944519, 0.15656961500644684, -0.2136678695678711, -0.11770123988389969, -0.1799679547548294, 0.03353586792945862, 0.2766270339488983, 0.045483678579330444, 0.13982032239437103, 0.02601306512951851, 0.08690943568944931, 0.21264566481113434, -0.1619841456413269, -0.12176436930894852, -0.3524559736251831, 0.32362544536590576, -0.10488749295473099, -0.5939317345619202, -0.028927022591233253, -0.08068422973155975, -0.3253728747367859, 0.09640932083129883, 0.20777736604213715, -0.0007426718366332352, -0.052292030304670334, -0.23527123034000397, 0.32983386516571045, 0.05404093116521835, 0.25771480798721313, 0.27217912673950195, -0.14927008748054504, -0.2556462585926056, 0.4765300154685974, -0.3049315810203552, -0.25974392890930176, 0.06223064661026001, -0.3183143436908722, 0.16149640083312988, 0.5554068684577942, -0.024431180208921432, -0.14629773795604706, 0.05871471390128136, -0.13424205780029297, 0.18563303351402283, 0.40088996291160583, -0.05928393453359604, -0.2871945798397064, 0.17100098729133606, -0.7374215126037598, -0.19462206959724426, 0.2939942479133606, 0.02731756865978241, -0.02902890183031559, -0.029599374160170555, -0.38575613498687744, -0.10960806906223297, 0.10729588568210602, 0.07467212527990341, -0.18316037952899933, -0.37497830390930176, -0.20763562619686127, 0.7400954961776733, 0.05447698384523392, 0.14941082894802094, -0.09582535922527313, 0.03850577771663666, -0.001846184954047203, 0.09115622192621231, -0.028744149953126907, 0.3057425618171692, 0.4141569435596466, 0.1709284782409668, -0.04306359589099884, 0.6762663125991821, -0.01633274368941784, 0.20838434994220734, -0.023159995675086975, -0.21122072637081146, 0.08026834577322006, -0.08808287978172302, 0.22062066197395325, 0.07090415060520172, -0.19411441683769226, 0.10242211073637009, -0.10426848381757736, 0.6511005163192749, -0.241229847073555, 0.0029584020376205444, -0.07783187925815582, 0.06698372215032578, -0.024816233664751053, -0.05098443478345871, -0.414566308259964, -0.2964107096195221, 0.1980011761188507, 0.0032165106385946274, -0.14465118944644928, 0.1842007040977478, -0.46779197454452515, 0.01899529993534088, 0.5268548727035522, 0.0036458224058151245, 0.11615771055221558, -0.13444694876670837, 0.049361735582351685, -0.19658169150352478, 0.14016327261924744, 0.30953505635261536, 0.21365991234779358, 0.15535810589790344, -0.2179352343082428, 0.03338691219687462, -0.14881570637226105, 0.00756160169839859, 0.27909159660339355, -0.11654497683048248, -0.06713298708200455, 0.12576213479042053, 0.17859339714050293, 0.08130309730768204, -0.07080857455730438, 0.5163923501968384, 0.20127208530902863, -0.17686662077903748, -0.4543139338493347, -0.4007064700126648, -0.3898674547672272, -0.21145567297935486, -0.347146213054657, -0.5310074090957642, -0.2130122184753418, -0.049122557044029236, 0.09001713246107101, -0.1668146550655365, 0.17894385755062103, 0.2162971943616867, 0.22278743982315063, 0.0556245893239975, 0.009474540129303932, 0.4551241099834442, -0.14282011985778809, 0.1838771104812622, 0.025618547573685646, 0.0008188970386981964, -0.3795507848262787, 0.2141217291355133, 0.008938012644648552, -0.12963497638702393, -0.2861486077308655, -0.22016410529613495, -0.34706443548202515, 0.13661539554595947, 0.011150447651743889, -0.2331489622592926, 0.13790369033813477, -0.06103292107582092, 0.3058900833129883, -0.34601250290870667, 0.2869272530078888, 0.19757123291492462, -0.07331064343452454, 0.2513200044631958, -0.052349720150232315, -0.18828977644443512, -0.2862945795059204, -0.05198977142572403, 0.14918014407157898, -0.045723773539066315, 0.5657222270965576, -0.061018578708171844, 0.1535642445087433, 0.2129759043455124, -0.4396945536136627, -0.14460769295692444, -0.38625699281692505, 0.3639064431190491, -0.34919729828834534, -0.375995934009552, 0.2740385830402374, -0.2382829338312149, -0.007624644786119461, -0.28740447759628296, 0.08024374395608902, 0.08123068511486053, -0.24731646478176117, 0.23499710857868195, -0.4288897216320038, -0.24342943727970123, -0.22023721039295197, 0.2920055389404297, 0.014921596273779869, 0.14979827404022217, 0.16769737005233765, 0.03719478100538254, -0.2795479893684387, -0.35796475410461426, 0.4529719948768616, 0.4093858301639557, 0.31688475608825684, 0.14655770361423492, -0.3183184266090393, 0.14415088295936584, -0.1315051019191742, 0.191571906208992, 0.423749715089798, -0.04034418612718582, -0.05466388165950775, -0.1575854867696762, 0.09401841461658478, -0.4223296642303467, 0.42338553071022034, 0.09297597408294678, 0.25339174270629883, 0.1302947998046875, 0.18422731757164001, -0.005336541682481766, -0.03245589882135391, 0.26007869839668274, -0.5889778137207031, -0.2407674789428711, -0.4462684988975525, 0.16366079449653625, -0.0769675150513649, -0.0008848067373037338, -0.14934131503105164, -0.3815712332725525, -0.007777953986078501, 0.3646033704280853, -0.06823603808879852, -0.10933592170476913, -0.21076001226902008, -0.2921128571033478, 0.06834567338228226, 0.09841319918632507, 0.09794057160615921, -0.003086438402533531, 0.07323065400123596, 0.2095307856798172, -0.011197751387953758, 0.09096866846084595, -0.07229087501764297, 0.8490327596664429, 0.38086962699890137, 0.15896159410476685, -0.13715718686580658, 0.05859273672103882, -0.381862998008728, -0.3467118442058563, -0.20798063278198242, 0.2196669727563858, 0.10291486978530884, 0.22587253153324127, 0.013581827282905579, -0.3630974292755127, 0.38290494680404663, -0.42604294419288635, -0.14061976969242096, -0.2655019164085388, -0.0273053627461195, 0.34390220046043396, -0.18935300409793854, -0.4021933972835541, -0.16281166672706604, 0.19362111389636993, -0.07127340883016586, -0.20609548687934875, 0.28783315420150757, 0.019635960459709167, 0.12061537802219391, -0.06545285880565643, 0.2733003497123718, 0.37060943245887756, -0.07061254233121872, 0.12106472253799438, 0.2503654956817627, -0.1985103189945221, -0.09209907054901123, 0.2520003616809845, -0.16732001304626465, -0.19303259253501892, -0.31559017300605774, 0.07802793383598328, 0.5454142093658447, -0.3548979163169861, 0.19366513192653656, -0.05911312997341156, 0.3458316922187805, -0.18935559689998627, -0.17680400609970093, 0.6700121760368347, 0.21719136834144592, 0.05983204022049904, -0.28587087988853455, 0.07239288091659546, 0.044463206082582474, -0.39670342206954956, 0.16018620133399963, 0.3718762993812561, -0.22702908515930176, -0.39775902032852173, 0.06561367958784103, 0.9026184678077698, 0.07392217963933945, -0.02049737051129341, 0.5355343222618103, -0.2725104093551636, 0.18743599951267242, -0.008345536887645721, 0.01441337913274765, -0.027500122785568237, 0.2743517756462097, -0.025842145085334778, -0.08739692717790604, -0.07415721565485, -0.05257648974657059, -0.35749006271362305, 0.12987571954727173, -0.07735911756753922, -0.2054113745689392, -0.39219364523887634, -0.28168487548828125, -0.059048496186733246, -0.4611424207687378, -0.1275651603937149, 0.04061999171972275, 0.026417221873998642, -0.03528006002306938, -0.16283077001571655, -0.13201585412025452, 0.11652855575084686, -0.05374017730355263, -0.21623194217681885, 0.07811600714921951, -0.6180947422981262, -0.11730793118476868, 0.3643265962600708, 0.14410942792892456, 0.04893472418189049, 0.7493513822555542, 0.39921891689300537, 0.10049346834421158, -0.1019066721200943, -0.03467083349823952, 0.038058459758758545, 0.14689932763576508, -0.20573507249355316, 0.2596018612384796, 0.05005262792110443, -0.09483875334262848, -0.2738458514213562, -0.39008501172065735, 0.20317427814006805, 0.2213354855775833, -0.270295113325119, 0.14766263961791992, 0.1704067885875702, -0.15506891906261444, -0.13918976485729218, 0.24862168729305267, 0.39796164631843567, -0.11349080502986908, 0.07037337124347687, 0.03252546861767769, -0.285258024930954, -0.07500507682561874, -0.16046679019927979, -0.18529048562049866, -0.032634418457746506, 0.373966246843338, -0.09919843822717667, -0.20634032785892487, 0.2567950189113617, 0.3225002586841583, -0.09706657379865646, 0.04432182013988495, -0.042585670948028564, -0.22754067182540894, -0.13873764872550964, -0.027630534023046494, 0.23974259197711945, -0.3784753680229187, -0.13648037612438202, 0.060838986188173294, 0.2178943008184433, 0.36612313985824585, 0.0013340115547180176, -0.15553715825080872, -0.10576176643371582, 0.21930307149887085, 0.2386517971754074, -0.24830780923366547, -0.14749425649642944, 0.02291249670088291, 0.2719476819038391, -0.09555237740278244, -0.2666563093662262, 0.22501978278160095, -0.013728667050600052, 0.12349634617567062, 0.08066831529140472, -0.27127960324287415, 0.04725830629467964, 0.014039000496268272, 0.1686255931854248, -0.24455709755420685, -0.07759299129247665, -0.15665942430496216, -0.23033137619495392, 0.09860444813966751, -0.10597284883260727, -0.18054592609405518, 0.2839008569717407, -0.30587130784988403, -0.02579893171787262, -0.17839616537094116, 0.031036168336868286, 0.5340151786804199, 0.1980639547109604, 0.34273597598075867, 0.07379497587680817, -0.2695976197719574, -0.05488423630595207, -0.016934484243392944, -0.14950770139694214, -0.25835156440734863, -0.1543704718351364, -0.010880831629037857, -0.3470696806907654, -0.025542203336954117, 0.20651166141033173, 0.1599380373954773, -0.0566161572933197, 0.1992514431476593, 0.07566999644041061, -0.4159166216850281, -0.05556635558605194, 0.27460336685180664, 0.32026228308677673, -0.21265214681625366, 0.15993909537792206, -0.03793173283338547, -0.06892809271812439, 0.11960507929325104, -0.13381831347942352, -0.10151976346969604, 0.12735837697982788, -0.1396164745092392, -0.1532643437385559, 0.021179333329200745, -0.4035213589668274, -0.09856151789426804, 0.009617060422897339, -0.05312379449605942, 0.024526845663785934, -0.33159321546554565, 0.12228254973888397, 0.08533172309398651, -0.11640435457229614, 0.24020634591579437, 0.308359831571579, 0.11648385226726532, 0.16113917529582977, 0.13342732191085815, 0.3029756247997284, 0.023799307644367218, 0.08056452870368958, 0.46195346117019653, 0.4842873215675354, -0.12081438302993774, -0.4640149474143982, 0.2537318766117096, -0.2379835844039917, 0.16309581696987152, 0.15704429149627686, 0.6198302507400513, -0.12271524220705032, -0.08651002496480942, -0.3934357166290283, 0.32816675305366516, -0.20678198337554932, -0.3310201168060303, -0.28289347887039185, -0.03224080055952072, -0.13902780413627625, -0.28447702527046204, -0.07418902218341827, 0.2360832840204239, 0.4354279637336731, 0.1857910454273224, -0.12638431787490845, -0.58625727891922, -0.24767211079597473, 0.16148275136947632, 0.15319254994392395, -0.23232007026672363, 0.2458813488483429, 0.17504334449768066, -0.09987378120422363, 0.27785724401474, 0.4051594138145447, 0.19020608067512512, 0.3123471736907959, -0.09237802028656006, -0.036278512328863144, 0.08006815612316132, 0.04301408678293228, 0.0009690932929515839, -0.1873481571674347, 0.2856106162071228, 0.28955814242362976, -0.05679890140891075, 0.07398837059736252, -0.1955513209104538, 0.13645929098129272, -0.060853179544210434, 0.20528197288513184, -0.12298478186130524, 0.3780430853366852, -0.42408519983291626, -0.032069455832242966, -0.24608275294303894, 0.08475062251091003, -0.49779173731803894, 0.021752547472715378, -0.13380184769630432, 0.0879797488451004, -0.038384683430194855, 0.10691872984170914, 0.06770483404397964, 0.34950828552246094, 0.2672063410282135, 0.203305184841156, -0.05206688493490219, -0.01902509480714798, -0.08167751878499985, -0.2635883688926697, 0.06482148170471191, 0.5914782881736755, 0.4455239474773407, 0.10269919037818909, -0.03897992521524429, -0.06547800451517105, -0.25872403383255005, 0.33187171816825867, -0.0806487649679184, 0.0748647004365921, -0.015980154275894165, -0.39047157764434814, 0.3514469861984253, 0.4120180010795593, 0.10349053889513016, 0.29829099774360657, 0.04278811067342758, 0.13801473379135132, 0.09909667074680328, -0.06827344000339508, 0.10410426557064056, 0.3699244558811188, -0.2538019120693207, -0.46203872561454773, -0.05375976860523224, 0.07159590721130371, -0.10991592705249786, -0.06808976829051971, -0.06285510957241058, -0.06395342946052551, -0.05057579278945923, -0.17505627870559692, -0.22070959210395813, -0.3777938485145569, 0.32294514775276184, -0.26595497131347656, -0.05384461209177971, -0.13118673861026764, -0.1632922738790512, 0.08749864995479584, -0.1817832738161087, -0.48350989818573, 0.48680993914604187, 0.1875002682209015, -0.07769851386547089, 0.15755027532577515, -0.0747748389840126, -0.041098304092884064, 0.24361632764339447, -0.03568112105131149, -0.28094205260276794, 0.5687155723571777, -0.25218620896339417, -0.05591869726777077, -0.13198427855968475, 0.45106494426727295, -0.3866221308708191, -0.11061238497495651, -0.22379854321479797, -0.006584145128726959, 0.09025245159864426, 0.17364144325256348, -0.1896892935037613, 0.20940563082695007, -0.16016575694084167, -0.25733447074890137, -0.12313321232795715, -0.009901657700538635, 0.5217807292938232, -0.34924617409706116, 0.28182899951934814, 0.11117446422576904 ]
https://github.com/huggingface/datasets/issues/2123
Problem downloading GEM wiki_auto_asset_turk dataset
Hi, sadly I can't replicate the problem on my Windows machine. Try to update the library to the newest version with: ```bash pip install git+https://github.com/huggingface/datasets ```
@yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family
26
Problem downloading GEM wiki_auto_asset_turk dataset @yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family Hi, sadly I can't replicate the problem on my Windows machine. Try to update the library to the newest version with: ```bash pip install git+https://github.com/huggingface/datasets ```
[ -0.08168812096118927, -0.028080031275749207, -0.046475961804389954, 0.4495636820793152, 0.28069624304771423, 0.11595851927995682, 0.316194623708725, 0.17786093056201935, 0.24703964591026306, -0.11711551249027252, 0.17666424810886383, 0.1722976118326187, 0.11423490941524506, -0.0033528394997119904, -0.16862836480140686, -0.18245159089565277, -0.015406407415866852, -0.07302762567996979, 0.05976731330156326, -0.18034739792346954, -0.025909168645739555, 0.21450309455394745, -0.10212180763483047, -0.12988604605197906, -0.29962530732154846, 0.13920652866363525, 0.07057540863752365, -0.057968154549598694, -0.2835354506969452, -0.08461584895849228, 0.5160746574401855, 0.015269001945853233, 0.05412513017654419, 0.3606871962547302, -0.00011917751544388011, -0.08839105069637299, 0.4347233176231384, -0.07555488497018814, -0.09628988802433014, -0.41436517238616943, -0.17496958374977112, -0.48330792784690857, 0.10668952763080597, -0.21663212776184082, 0.12621518969535828, 0.3857175409793854, -0.08583442121744156, 0.18573278188705444, 0.05519983917474747, 0.006707523949444294, 0.18971320986747742, 0.3324498236179352, 0.10762177407741547, -0.012392808683216572, 0.17071616649627686, -0.44813573360443115, -0.22145366668701172, 0.0033139819279313087, -0.17965760827064514, 0.13151048123836517, 0.03956140950322151, 0.19444823265075684, -0.0939042940735817, 0.3865468502044678, 0.1432817578315735, 0.16569790244102478, -0.11273188143968582, -0.5313159227371216, 0.3458319902420044, 0.3503461182117462, 0.7223214507102966, -0.13621845841407776, -0.42949390411376953, -0.18293823301792145, 0.01097804307937622, 0.07251652330160141, 0.14563173055648804, 0.4450262784957886, -0.43671751022338867, 0.06262657046318054, -0.48042893409729004, -0.01081753522157669, -0.05043945461511612, 0.19699758291244507, -0.27798521518707275, 0.15387165546417236, -0.18021683394908905, 0.027547825127840042, 0.02240149863064289, -0.01934303343296051, -0.5223584771156311, -0.27525556087493896, -0.19004546105861664, 0.3314399719238281, -0.31892263889312744, 0.12277533113956451, 0.07557353377342224, 0.22142913937568665, 0.3313712179660797, 0.32134366035461426, 0.06061787158250809, 0.21028637886047363, -0.20321279764175415, 0.06879965215921402, 0.12377181649208069, 0.3406434953212738, -0.018902279436588287, -0.3897576332092285, 0.2435051053762436, 0.14552313089370728, -0.009431809186935425, 0.061248332262039185, -0.1362190544605255, -0.05310741066932678, 0.2008860558271408, -0.32214978337287903, 0.14963750541210175, -0.10727246850728989, -0.14800217747688293, 0.3196871280670166, 0.1803126037120819, -0.08442897349596024, -0.12697678804397583, 0.22174492478370667, -0.30379214882850647, -0.12069449573755264, -0.17476798593997955, 0.35996681451797485, -0.17787708342075348, 0.15025527775287628, -0.03833756223320961, -0.19554856419563293, -0.07614664733409882, -0.08926357328891754, 0.2936597764492035, -0.34653475880622864, 0.4333959221839905, 0.13677440583705902, -0.1526528149843216, -0.11691130697727203, -0.1287565380334854, -0.03904176875948906, 0.09819721430540085, 0.3059740364551544, 0.1316251903772354, 0.8464616537094116, -0.09537045657634735, -0.19500166177749634, -0.002344772219657898, -0.021980300545692444, -0.22240042686462402, -0.17219161987304688, -0.16156995296478271, 0.1161726713180542, -0.525388240814209, -0.2442702353000641, -0.0805344209074974, 0.2623376250267029, 0.18200713396072388, -0.13391219079494476, -0.049855656921863556, 0.05472170189023018, 0.03232382610440254, -0.20656031370162964, 0.5081894993782043, 0.6407998204231262, -0.18340687453746796, -0.0922175943851471, -0.06929750740528107, 0.049693360924720764, 0.47502827644348145, 0.02785920724272728, 0.056706879287958145, -0.26451951265335083, -0.07624585181474686, 0.3398240804672241, 0.1568063497543335, 0.04189999774098396, -0.6642845273017883, 0.2593204975128174, -0.11471398174762726, 0.3474901616573334, 0.045728959143161774, 0.14486560225486755, 0.07916874438524246, 0.21383357048034668, -0.2915181815624237, 0.21786610782146454, 0.07796718925237656, -0.16810911893844604, -0.3459096848964691, -0.5063449144363403, 0.03269997239112854, 0.06524056196212769, 0.10508370399475098, -0.03522585332393646, 0.09226859360933304, -0.029713667929172516, 0.3413633406162262, 0.27688777446746826, 0.27601271867752075, 0.10049400478601456, 0.16943389177322388, -0.19272325932979584, -0.03915625810623169, -0.15711238980293274, -0.0986688956618309, 0.43367043137550354, 0.5681735277175903, 0.07558286935091019, -0.04030589759349823, 0.05293340981006622, -0.23217463493347168, -0.09863641858100891, -0.2844690680503845, -0.061379265040159225, 0.03204116225242615, 0.13661521673202515, 0.27584314346313477, 0.3003489673137665, 0.06417587399482727, 0.05887544900178909, -0.02738356590270996, 0.07695230096578598, -0.03649738058447838, 0.1805671751499176, 0.11569780111312866, -0.15360812842845917, -0.1736178696155548, -0.03807526081800461, -0.02462083101272583, 0.1201031506061554, -0.1740359365940094, -0.0016026310622692108, -0.25246456265449524, 0.1376880258321762, -0.001199178397655487, -0.04219724237918854, 0.1814187914133072, 0.09248696267604828, -0.08200065791606903, 0.03425493463873863, 0.1587934046983719, 0.02406175434589386, -0.04824773967266083, 0.11658421158790588, 0.1964152306318283, 0.37608784437179565, -0.015662647783756256, 0.19761431217193604, 0.3015960156917572, -0.02306201495230198, -0.01015884056687355, -0.04835867881774902, 0.3486325442790985, -0.2917577922344208, -0.0928582102060318, -0.052928581833839417, -0.12221446633338928, 0.29721271991729736, 0.5440852046012878, 0.14406758546829224, 0.10427962988615036, 0.2706979513168335, -0.34047916531562805, 0.05801573395729065, 0.007461369037628174, 0.5212213397026062, 0.27173739671707153, 0.1254093050956726, 0.24124106764793396, -0.3357156813144684, 0.02278420887887478, -0.22539012134075165, 0.05044955015182495, 0.3411955237388611, 0.03101343661546707, 0.41006600856781006, 0.11522489041090012, 0.15890385210514069, -0.12920165061950684, -0.0007828697562217712, 0.09249410033226013, 0.10122901201248169, -0.06135707348585129, -0.08277609944343567, -0.2790413796901703, 0.25508028268814087, 0.01913311891257763, -0.4520638883113861, -0.1873599886894226, -0.16901659965515137, -0.1112913191318512, 0.06013556569814682, 0.01493147388100624, -0.08296243846416473, -0.12731404602527618, -0.18437324464321136, -0.0779942199587822, -0.4661279022693634, -0.376163512468338, -0.03931899741292, -0.33380961418151855, -0.05436793714761734, 0.13496960699558258, -0.10559839755296707, 0.3403267562389374, -0.12592333555221558, 0.08955389261245728, -0.15391360223293304, -0.2383001148700714, 0.03642037510871887, -0.03915572911500931, 0.4648870825767517, -0.22741186618804932, 0.4167217016220093, -0.21836380660533905, -0.0946405827999115, 0.20818856358528137, -0.011788558214902878, 0.011748554185032845, 0.16015326976776123, 0.10840034484863281, -0.18413978815078735, -0.12142537534236908, -0.24914491176605225, -0.33702483773231506, -0.36700671911239624, 0.05549514666199684, 0.17506691813468933, -0.06031522899866104, 0.12394936382770538, 0.2380947321653366, 0.050488248467445374, 0.07896914333105087, 0.05975468456745148, -0.05466727539896965, -0.31527814269065857, 0.7877447009086609, -0.0981069877743721, -0.45636186003685, 0.25282207131385803, 0.019449319690465927, 0.3236146867275238, 0.11902223527431488, -0.5418383479118347, 0.19383084774017334, -0.2075987160205841, 0.2528558373451233, 0.3119235932826996, 0.13340571522712708, 0.0659782662987709, -0.3006308972835541, 0.08505824953317642, -0.14488470554351807, -0.06482216715812683, -0.05182803422212601, 0.034530963748693466, 0.2522471845149994, 0.04487786442041397, 0.28089070320129395, 0.07305273413658142, 0.8497198224067688, 0.34719061851501465, -0.1278248280286789, 0.4330372214317322, 0.02226986177265644, 0.1222645565867424, 0.027523990720510483, -0.21620377898216248, -0.18812818825244904, -0.28012815117836, 0.19280478358268738, 0.1970997452735901, 0.256885290145874, -0.19272050261497498, -0.07057903707027435, -0.03548412024974823, -0.4562743604183197, -0.3566129803657532, -0.1564672738313675, 0.17494627833366394, 0.01985030248761177, 0.2528769373893738, 0.32527393102645874, 0.041968829929828644, -0.3157898485660553, 0.07094752788543701, 0.604226291179657, -0.018089547753334045, 0.13276207447052002, 0.09600579738616943, 0.09638477861881256, -0.6682866215705872, 0.0801897794008255, -0.07313453406095505, 0.05244389548897743, -0.05863283574581146, 0.07503273338079453, 0.15585018694400787, -0.1677348017692566, 0.21046623587608337, -0.16857373714447021, 0.11925002187490463, -0.18134291470050812, -0.15010082721710205, -0.2522382140159607, -0.18857556581497192, 0.030153561383485794, -0.01709958165884018, 0.4971936345100403, 0.06766065955162048, -0.3547152876853943, -0.046929337084293365, 0.031927440315485, 0.199007049202919, -0.13856488466262817, -0.24398018419742584, -0.2731685936450958, -0.45306527614593506, -0.31381356716156006, -0.16196200251579285, -0.1599067896604538, 0.3852408528327942, -0.18530449271202087, -0.2951054573059082, -0.07741528749465942, 0.24959895014762878, 0.17316433787345886, -0.033613596111536026, 0.3335488438606262, 0.12548735737800598, 0.46048471331596375, 0.09826365113258362, -0.049127548933029175, -0.20592191815376282, 0.5613113641738892, 0.28769567608833313, 0.0040212273597717285, 0.04033853858709335, -0.3094998598098755, 0.005994491279125214, 0.22278808057308197, -0.19435973465442657, 0.008887693285942078, -0.04279650002717972, 0.2556527853012085, -0.23047228157520294, 0.004415662493556738, 0.26769527792930603, -0.04390653595328331, -0.1657659262418747, -0.3439023494720459, 0.7110818028450012, -0.18708975613117218, 0.007371082901954651, 0.18144741654396057, 0.31931158900260925, 0.11084610968828201, 0.19710500538349152, -0.10536713153123856, 0.782394289970398, 0.031027883291244507, 0.00685090571641922, 0.09072401374578476, 0.006608627736568451, 0.42809340357780457, -0.1839735507965088, 0.10171694308519363, -0.29682865738868713, 0.16755405068397522, -0.11274558305740356, 0.06549869477748871, -0.11942913383245468, 0.0317777581512928, -0.11006636917591095, 0.10770601034164429, -0.10439770668745041, 0.22212404012680054, 0.0014605363830924034, 0.058844514191150665, -0.42587703466415405, -0.15709592401981354, -0.02717943862080574, 0.10529665648937225, 0.08115923404693604, 0.68558669090271, 0.022678568959236145, -0.24247516691684723, -0.26064959168434143, -0.10971958935260773, -0.6135619878768921, 0.10319047421216965, 0.05003383383154869, -0.10132504999637604, -0.1435425728559494, -0.4398384094238281, 0.01041964441537857, 0.40394654870033264, 0.010088525712490082, 0.14774246513843536, -0.38379818201065063, 0.2592805325984955, -0.3560682535171509, -0.08079465478658676, 0.15738970041275024, -0.09868357330560684, 0.09808508306741714, -0.222079336643219, -0.2630305588245392, -0.05209186673164368, -0.10264977067708969, 0.2872571349143982, -0.1842312216758728, 0.09939545392990112, 0.16687992215156555, -0.000977082410827279, -0.32649022340774536, 0.08992136269807816, -0.03641146793961525, -0.10962553322315216, 0.10866561532020569, 0.11197704821825027, 0.0754055306315422, 0.22908306121826172, 0.11395247280597687, -0.265391081571579, -0.2274807244539261, 0.4559677243232727, -0.2483862042427063, 0.12480200827121735, 0.31891772150993347, -0.03182809799909592, -0.2407342940568924, -0.09669067710638046, -0.10995347797870636, 0.03593423217535019, -0.7207139730453491, -0.24189628660678864, 0.05264884606003761, 0.31255823373794556, -0.11537785828113556, -0.11670143902301788, 0.13478517532348633, -0.4312649965286255, -0.2894401550292969, -0.45843619108200073, 0.18004648387432098, 0.10599382221698761, -0.040888961404561996, 0.10172706842422485, -0.4367370903491974, -0.4332710802555084, 0.3100471794605255, 0.07612980157136917, -0.17049406468868256, 0.0007380663882941008, -0.10806054621934891, -0.15161122381687164, 0.21512286365032196, 0.2728160321712494, 0.23047798871994019, 0.09916241466999054, -0.0150702940300107, 0.08015207946300507, -0.19008104503154755, -0.1383889615535736, -0.1702752709388733, 0.1958659291267395, 0.14055563509464264, 0.02118312008678913, 0.19880381226539612, -0.08945559710264206, -0.21010272204875946, -0.1073058545589447, 0.2127426266670227, 0.010834608227014542, -0.04499027878046036, 0.05385741963982582, 0.06547462195158005, 0.41790345311164856, -0.4134477972984314, 0.10119909048080444, -0.07695840299129486, 0.8318887948989868, 0.04983203485608101, -0.02286212146282196, 0.5013242363929749, 0.11817383766174316, -0.16987359523773193, -0.16427481174468994, -0.09662862122058868, -0.11652471870183945, 0.31936997175216675, -0.2874975800514221, 0.47920122742652893, 0.1438090056180954, 0.12565989792346954, 0.33021774888038635, -0.05931060016155243, -0.05044843256473541, 0.2003554403781891, 0.22628778219223022, -0.135941743850708, -0.14414513111114502, 0.01618734560906887, 0.02866721898317337, -0.019943054765462875, -0.08073960989713669, 0.12977653741836548, -0.2770054340362549, -0.21011652052402496, 0.041408322751522064, 0.5093355178833008, -0.13777512311935425, -0.17086340487003326, 0.4947830140590668, 0.055907491594552994, 0.3179508447647095, -0.04975094646215439, -0.053483691066503525, -0.15063533186912537, 0.3966699242591858, -0.1369427740573883, 0.3893028497695923, 0.02015608735382557, 0.12616245448589325, -0.4025039076805115, -0.479663223028183, -0.06442052125930786, 0.0733942836523056, -0.12306259572505951, 0.2888692617416382, 0.08237510919570923, 0.3891581892967224, 0.07586158812046051, 0.0047950297594070435, -0.4773789942264557, -0.015960685908794403, 0.040884893387556076, -0.08416822552680969, 0.05046705901622772, -0.35930439829826355, -0.18008890748023987, 0.36547359824180603, 0.07559690624475479, -0.16844019293785095, 0.3236733078956604, 0.10395773500204086, -0.17194129526615143, -0.6745164394378662, -0.04642828553915024, -0.07193724811077118, 0.06789293140172958, -0.27633827924728394, 0.06872997432947159, 0.213710755109787, -0.15656441450119019, -0.07317577302455902, 0.07832293957471848, 0.39244529604911804, 0.38570988178253174, 0.08320114016532898, -0.01416597981005907, 0.02950103208422661, -0.03734133765101433, -0.244428813457489, 0.3866623640060425, 0.2492734044790268, -0.03981136903166771, 0.11741702258586884, 0.09380852431058884, -0.2524934411048889, 0.137215718626976, 0.0313972607254982, -0.03664292395114899, -0.2242296189069748, 0.6495137214660645, -0.35688623785972595, 0.13878902792930603, -0.13060985505580902, -0.336353600025177, -0.3808217942714691, -0.029645338654518127, 0.3237256705760956, 0.0874636247754097, 0.06380800902843475, -0.32568177580833435, 0.034292273223400116, -0.21439574658870697, 0.25521141290664673, 0.10645744204521179, 0.14825622737407684, -0.2821871340274811, 0.08133825659751892, -0.7299492955207825, -0.017394699156284332, 0.13751667737960815, 0.021473949775099754, -0.058358706533908844, 0.29935675859451294, -0.2897752523422241, 0.1507229506969452, 0.2090246081352234, -0.09645475447177887, 0.2572149336338043, 0.3506224453449249, -0.2775309085845947, -0.03178128972649574, -0.31941211223602295, -0.013292508199810982, -0.0751289576292038, -0.26886817812919617, 0.2787606418132782, -0.5796875953674316, -0.06785954535007477, -0.06517549604177475, 0.0039571598172187805, 0.1840026080608368, -0.31041252613067627, 0.7294008135795593, 0.028062911704182625, 0.35491326451301575, -0.08167919516563416, -0.10186881572008133, -0.392945259809494, 0.052232325077056885, -0.000931168906390667, 0.19370315968990326, -0.1403043568134308, 0.29749342799186707, 0.07829787582159042, 0.09302563965320587, -0.13263171911239624, -0.11258377134799957, 0.12304596602916718, 0.28251275420188904, 0.00017707142978906631, -0.30038759112358093, -0.044505197554826736, 0.08815616369247437, 0.22078652679920197, 0.31692570447921753, -0.1306290626525879, 0.17513953149318695, -0.19640424847602844, -0.2953553795814514, 0.39677420258522034, -0.3647961914539337, -0.1716310828924179, -0.08752771466970444, 0.16228723526000977, 0.3407038152217865, -0.07468186318874359, -0.5330120325088501, 0.012223735451698303, 0.2591090500354767, -0.1060752347111702, -0.2506813108921051, 0.1562739908695221, 0.06404644250869751, -0.15459103882312775, -0.029387162998318672, 0.24503527581691742, 0.031132707372307777, -0.3094673752784729, 0.3645012378692627, -0.1493784487247467 ]
https://github.com/huggingface/datasets/issues/2123
Problem downloading GEM wiki_auto_asset_turk dataset
Is there an error message ? What stacktrace do you get if you interrupt the execution of the program while downloading ?
@yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family
22
Problem downloading GEM wiki_auto_asset_turk dataset @yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family Is there an error message ? What stacktrace do you get if you interrupt the execution of the program while downloading ?
[ -0.13216251134872437, 0.014239504933357239, -0.0815601497888565, 0.43999379873275757, 0.29924482107162476, 0.14021795988082886, 0.3794730305671692, 0.1477878987789154, 0.23201948404312134, -0.04262933135032654, 0.2344711571931839, 0.14406679570674896, 0.1074128970503807, -0.02187672257423401, -0.19619178771972656, -0.14184784889221191, -0.07749093323945999, -0.06995205581188202, 0.13318762183189392, -0.15730035305023193, -0.08628758788108826, 0.1746140867471695, -0.16014310717582703, -0.04029063135385513, -0.28225240111351013, 0.03166451305150986, 0.1252022683620453, 0.03063584305346012, -0.2620680332183838, -0.153347447514534, 0.5731250643730164, 0.05439630150794983, 0.07772883027791977, 0.41277188062667847, -0.00011594791430979967, -0.0370517335832119, 0.48388129472732544, -0.08064191788434982, -0.09328089654445648, -0.4343476891517639, -0.29294896125793457, -0.4289581775665283, 0.14034216105937958, -0.30423808097839355, 0.2589862048625946, 0.36995750665664673, -0.04719391465187073, 0.1229427307844162, 0.12231500446796417, 0.06046963855624199, 0.20332756638526917, 0.2653098404407501, 0.09522965550422668, 0.012695548124611378, 0.2613675892353058, -0.5051372051239014, -0.1550697386264801, 0.033941078931093216, -0.24033960700035095, 0.20697155594825745, 0.06135352700948715, 0.14254456758499146, -0.14775188267230988, 0.42205291986465454, 0.07426544278860092, 0.10518650710582733, -0.046268947422504425, -0.6357182264328003, 0.3205805718898773, 0.4154241979122162, 0.7859745621681213, -0.08363046497106552, -0.34442898631095886, -0.08041101694107056, 0.03736017271876335, 0.01711221970617771, 0.13685545325279236, 0.4656033217906952, -0.4767649173736572, 0.04954547807574272, -0.39803749322891235, 0.006769521161913872, -0.040577903389930725, 0.1948125958442688, -0.3115486204624176, 0.14012685418128967, -0.15466782450675964, 0.07386527210474014, -0.09895288944244385, 0.08637714385986328, -0.29810982942581177, -0.342728853225708, -0.11500406265258789, 0.28186720609664917, -0.46541768312454224, 0.11564372479915619, 0.1317998766899109, 0.02135707437992096, 0.2442517876625061, 0.2795459032058716, 0.06940886378288269, 0.21858260035514832, -0.17330750823020935, 0.10269398987293243, 0.20111699402332306, 0.2909262776374817, -0.10334209352731705, -0.37225794792175293, 0.25470060110092163, 0.11483263224363327, 0.0021219104528427124, 0.04270987957715988, -0.12068360298871994, 0.0035350467078387737, 0.2396792620420456, -0.2869569659233093, 0.23407162725925446, -0.12003986537456512, -0.20408356189727783, 0.3872780203819275, 0.031422004103660583, -0.06654290854930878, -0.18575187027454376, 0.25593701004981995, -0.16817066073417664, -0.08811232447624207, -0.14469224214553833, 0.30990922451019287, -0.15498539805412292, 0.10476266592741013, -0.08532427996397018, -0.1981690526008606, -0.03627739101648331, -0.13007183372974396, 0.21489204466342926, -0.2713959515094757, 0.34525394439697266, 0.12410546094179153, -0.15398506820201874, -0.1573801040649414, -0.008105725981295109, -0.11004222929477692, 0.1143709123134613, 0.3390209674835205, 0.16030411422252655, 0.8072770237922668, -0.07441037893295288, -0.10661325603723526, -0.0066185519099235535, 0.08227172493934631, -0.25628629326820374, -0.23049965500831604, -0.09002048522233963, 0.15751495957374573, -0.461428165435791, -0.19368112087249756, -0.042419783771038055, 0.215387761592865, 0.16265419125556946, -0.18992795050144196, -0.0849234089255333, -0.009952925145626068, 0.05806288495659828, -0.25180596113204956, 0.47880443930625916, 0.5534902811050415, -0.30834293365478516, -0.021537546068429947, -0.11117555946111679, -0.019427239894866943, 0.45095640420913696, 0.0034098047763109207, 0.0026830972637981176, -0.03429092466831207, -0.07464118301868439, 0.38151830434799194, 0.3053485155105591, 0.03751862421631813, -0.6943234801292419, 0.27038198709487915, -0.18996664881706238, 0.2698352038860321, -0.06332666426897049, 0.1415518969297409, 0.1329531967639923, 0.18154269456863403, -0.3257967531681061, 0.2547835409641266, 0.007314139977097511, -0.1606895923614502, -0.347820907831192, -0.5174865126609802, 0.1066836342215538, 0.09589749574661255, 0.14353877305984497, -0.044235460460186005, 0.10809087753295898, -0.02467982843518257, 0.31506893038749695, 0.2980014383792877, 0.20287220180034637, 0.1548968255519867, 0.1308109313249588, -0.22103549540042877, -0.093398317694664, -0.14038950204849243, -0.005631186068058014, 0.37072527408599854, 0.5322479009628296, 0.060158152133226395, -0.009159252047538757, 0.048692114651203156, -0.3059343695640564, -0.06592514365911484, -0.29117104411125183, -0.0881630927324295, 0.0756874680519104, 0.0847410187125206, 0.21083812415599823, 0.3549518883228302, 0.012400198727846146, 0.08669136464595795, -0.06555058062076569, 0.07275964319705963, 0.044524092227220535, 0.21004550158977509, 0.0401303693652153, -0.146933913230896, -0.21578535437583923, -0.1121002659201622, -0.035180315375328064, 0.046337809413671494, -0.261245995759964, 0.11823122948408127, -0.23261649906635284, 0.08062755316495895, -0.01748070865869522, -0.17994682490825653, 0.0855991542339325, 0.07203975319862366, -0.07704757899045944, 0.0010039061307907104, 0.2271563708782196, -0.020828675478696823, 0.06484168767929077, 0.04804809391498566, 0.22591829299926758, 0.380331426858902, -0.02491370402276516, 0.15953786671161652, 0.34193772077560425, -0.06403960287570953, 0.04537026584148407, 0.033249594271183014, 0.34000641107559204, -0.1862509846687317, -0.11970825493335724, -0.16744069755077362, -0.13240033388137817, 0.190777987241745, 0.5834674835205078, 0.07616570591926575, 0.07216949760913849, 0.21466585993766785, -0.29844531416893005, 0.04526866227388382, 0.009208771400153637, 0.581596314907074, 0.3240525722503662, 0.1171024963259697, 0.2098081111907959, -0.34706881642341614, 0.06776176393032074, -0.22484813630580902, 0.03454817086458206, 0.3847320079803467, 0.06527230143547058, 0.425638347864151, 0.12019195407629013, 0.15149368345737457, -0.08371813595294952, -0.11623047292232513, 0.1635286808013916, 0.14167414605617523, -0.0068453773856163025, -0.04290017858147621, -0.23254400491714478, 0.15404972434043884, 0.059820011258125305, -0.454224169254303, -0.16087564826011658, -0.27003633975982666, -0.11197414994239807, -0.011542346328496933, 0.012016598135232925, -0.03200891613960266, -0.19505682587623596, -0.17261789739131927, -0.027160856872797012, -0.30077338218688965, -0.3105887174606323, -0.14251288771629333, -0.3204442262649536, -0.05354655534029007, 0.13488426804542542, -0.059689395129680634, 0.30729037523269653, -0.10359562933444977, 0.09555263817310333, -0.05904027819633484, -0.19237300753593445, 0.15067210793495178, 0.020946519449353218, 0.36416783928871155, -0.19459882378578186, 0.4104298949241638, -0.14341866970062256, -0.14195489883422852, 0.15348529815673828, -0.016183849424123764, 0.009125348180532455, 0.23766827583312988, 0.1352461576461792, -0.17964985966682434, -0.1143890917301178, -0.3453751802444458, -0.3516606390476227, -0.38008686900138855, -0.08705203235149384, 0.15931907296180725, -0.03950142115354538, 0.01510453037917614, 0.19471608102321625, 0.14413069188594818, 0.09858933091163635, -0.036462098360061646, -0.08534716814756393, -0.34600427746772766, 0.7302368879318237, -0.15468592941761017, -0.3846495747566223, 0.29620057344436646, -0.07900954782962799, 0.2984311282634735, 0.13664838671684265, -0.557237982749939, 0.27801674604415894, -0.24170775711536407, 0.20900383591651917, 0.1866084486246109, 0.03987615555524826, 0.10154129564762115, -0.25533661246299744, 0.05487281084060669, -0.12689466774463654, -0.04964518919587135, 0.008050136268138885, 0.08816204965114594, 0.3132704794406891, 0.0028207506984472275, 0.31431591510772705, 0.021727323532104492, 0.9094243049621582, 0.2800850570201874, -0.11648152768611908, 0.37723928689956665, 0.05089610815048218, 0.07646454870700836, 0.0019647926092147827, -0.1339126080274582, -0.15276207029819489, -0.22878754138946533, 0.030707858502864838, 0.13792893290519714, 0.10207370668649673, -0.3040210008621216, -0.10349837690591812, 0.00829988345503807, -0.4625450074672699, -0.4070034325122833, -0.2032896876335144, 0.14943405985832214, 0.05583056062459946, 0.2711263597011566, 0.3171426057815552, 0.05343024805188179, -0.19460102915763855, -0.013960258103907108, 0.5690128207206726, -0.0494953915476799, 0.0350784957408905, 0.0990370661020279, 0.200350821018219, -0.5515705347061157, 0.10029733180999756, -0.04059926047921181, 0.07728535681962967, -0.07273496687412262, 0.09665977209806442, 0.16132903099060059, -0.16984505951404572, 0.18406857550144196, -0.26042163372039795, 0.08848825097084045, -0.07463037967681885, -0.05901006609201431, -0.30611729621887207, -0.26165804266929626, -0.06274893879890442, 0.00018017319962382317, 0.5773655772209167, -0.08712883293628693, -0.335807204246521, 0.04492045193910599, 0.09695503115653992, 0.1366337686777115, -0.1719820499420166, -0.2932935357093811, -0.2531767189502716, -0.48756295442581177, -0.3430597186088562, -0.09709691256284714, -0.1672287881374359, 0.2974105477333069, -0.242698535323143, -0.3157046437263489, -0.10757085680961609, 0.3118188977241516, 0.09277135133743286, 0.021772217005491257, 0.29375892877578735, 0.04718852788209915, 0.3761805593967438, 0.08467568457126617, -0.16189993917942047, -0.08903913199901581, 0.5246002674102783, 0.4296532869338989, 0.022898800671100616, 0.0954953134059906, -0.3499961495399475, 0.03995716571807861, 0.24792397022247314, -0.1904250979423523, 0.016061633825302124, -0.08250276744365692, 0.2524564266204834, -0.14524468779563904, 0.04140542820096016, 0.301632821559906, -0.04419247433543205, -0.20935817062854767, -0.34148094058036804, 0.6050921082496643, -0.24462474882602692, -0.045731134712696075, 0.11852719634771347, 0.14048133790493011, 0.15210674703121185, 0.2632787823677063, -0.07819946855306625, 0.8599668741226196, 0.07722911983728409, -0.07744541764259338, 0.09890061616897583, -0.008411344140768051, 0.40279704332351685, -0.29126548767089844, 0.17713072896003723, -0.2803226709365845, 0.013239710591733456, -0.12996096909046173, -0.015846040099859238, -0.10592801123857498, 0.06550386548042297, -0.1470300704240799, 0.06472963094711304, -0.1514596939086914, 0.1660875380039215, -0.028856860473752022, 0.04859168082475662, -0.3781793415546417, -0.12385052442550659, 0.06219389662146568, 0.14179378747940063, 0.010172266513109207, 0.6449923515319824, -0.031957805156707764, -0.25416773557662964, -0.23285610973834991, -0.09898477792739868, -0.5923770666122437, 0.11343648284673691, 0.0727085992693901, -0.08705845475196838, -0.25816407799720764, -0.45965397357940674, 0.05000564083456993, 0.3805048167705536, -0.021178029477596283, 0.16245104372501373, -0.31531327962875366, 0.21789680421352386, -0.30717217922210693, -0.06794795393943787, 0.14693698287010193, -0.07498572766780853, 0.14096179604530334, -0.15982601046562195, -0.3013410270214081, 0.04540221765637398, -0.11861921846866608, 0.29931408166885376, -0.06795291602611542, 0.08145339787006378, 0.2012619525194168, -0.11598257720470428, -0.36734461784362793, 0.13972297310829163, -0.04266931489109993, -0.1423516720533371, 0.12724536657333374, 0.10442095994949341, 0.03966398164629936, 0.2415798306465149, 0.14277586340904236, -0.31634849309921265, -0.259321928024292, 0.3870818614959717, -0.20762932300567627, 0.21820122003555298, 0.39413362741470337, -0.07090061902999878, -0.24791355431079865, -0.11537269502878189, -0.08830317854881287, -0.10541810840368271, -0.6121995449066162, -0.21860258281230927, -0.025192735716700554, 0.35615330934524536, -0.16149726510047913, -0.13363678753376007, 0.10485024005174637, -0.34908363223075867, -0.36283761262893677, -0.5235512256622314, 0.1306191235780716, 0.06568524986505508, -0.023399021476507187, 0.17819686233997345, -0.5028351545333862, -0.3716756999492645, 0.30241042375564575, 0.08826933801174164, -0.206058531999588, -0.006233907304704189, -0.23635314404964447, -0.13769970834255219, 0.23463046550750732, 0.2215421497821808, 0.18333850800991058, -0.0016464544460177422, 0.013803752139210701, 0.06701888144016266, -0.19243495166301727, -0.17753303050994873, -0.1876375824213028, 0.18687330186367035, 0.14358851313591003, -0.0046313004568219185, 0.22128444910049438, -0.1453615128993988, -0.18252576887607574, -0.004302572458982468, 0.13728587329387665, -0.06217194348573685, -0.04820917546749115, 0.1047595888376236, 0.023688599467277527, 0.5183144807815552, -0.5156227946281433, 0.1428278684616089, -0.1296878159046173, 0.8146846890449524, 0.08470847457647324, -0.004964031279087067, 0.5043003559112549, 0.12968096137046814, -0.22719673812389374, -0.23994505405426025, -0.06626959145069122, -0.06191854178905487, 0.31371212005615234, -0.37959837913513184, 0.5551665425300598, 0.15599404275417328, 0.1405552625656128, 0.4373144507408142, -0.11521094292402267, -0.10677723586559296, 0.18595951795578003, 0.2554095685482025, -0.13789626955986023, -0.0159417986869812, 0.1133425384759903, 0.016447940841317177, -0.10426943004131317, -0.08873047679662704, 0.05887174978852272, -0.17156687378883362, -0.2014305740594864, 0.09030327945947647, 0.4766492247581482, -0.13435229659080505, -0.11199100315570831, 0.4683970510959625, -0.04340038076043129, 0.3703645169734955, 0.010677517391741276, -0.07692646980285645, -0.11061426252126694, 0.44710659980773926, -0.11432897299528122, 0.37923312187194824, 0.05930126830935478, 0.14559616148471832, -0.38885298371315, -0.5082747340202332, -0.017625126987695694, 0.0917017012834549, -0.15101999044418335, 0.27232375741004944, 0.11233143508434296, 0.2418510913848877, 0.061675406992435455, 0.0401136688888073, -0.4717872738838196, 0.018560117110610008, -0.01904759556055069, 0.06522007286548615, 0.12120866775512695, -0.3413902819156647, -0.09843368083238602, 0.3095863163471222, 0.08073902875185013, -0.06618699431419373, 0.3439117670059204, 0.1642591655254364, -0.17806662619113922, -0.6546595692634583, 0.06325656175613403, -0.1167256161570549, 0.059652116149663925, -0.30463358759880066, 0.00011105090379714966, 0.2576379179954529, -0.11488918960094452, -0.04865056648850441, 0.17230449616909027, 0.31718015670776367, 0.4272041916847229, -0.09244593977928162, -0.0012718038633465767, 0.11565086245536804, -0.1001414954662323, -0.15696881711483002, 0.32863131165504456, 0.27415400743484497, 0.07447899878025055, 0.21325339376926422, 0.12761461734771729, -0.2593204081058502, 0.21500937640666962, 0.13190089166164398, 0.037473343312740326, -0.275009423494339, 0.6634896993637085, -0.2822514772415161, 0.14308041334152222, -0.18482083082199097, -0.34864234924316406, -0.3625609576702118, -0.04046225920319557, 0.31059107184410095, 0.04054702818393707, 0.04890342056751251, -0.2859015166759491, 0.04316461831331253, -0.2818430960178375, 0.2512693703174591, 0.12808291614055634, 0.20278489589691162, -0.3090595304965973, 0.1365201473236084, -0.7200747728347778, 0.0663314163684845, 0.07202896475791931, -0.07947957515716553, 0.013145895674824715, 0.3335932493209839, -0.2754959762096405, 0.26150304079055786, 0.3244893550872803, -0.13508570194244385, 0.13135281205177307, 0.48138129711151123, -0.28319868445396423, -0.07168737053871155, -0.3385828733444214, -0.11884254217147827, -0.11764506250619888, -0.2906942367553711, 0.2533257007598877, -0.5135529041290283, -0.04068522900342941, -0.036968301981687546, -0.10295984148979187, 0.22872456908226013, -0.33766859769821167, 0.7718419432640076, 0.02043287828564644, 0.41817188262939453, -0.06258873641490936, -0.04740065708756447, -0.2577987611293793, 0.024953283369541168, -0.04427320882678032, 0.1935827136039734, -0.07008743286132812, 0.2800271809101105, 0.09499365091323853, 0.1358511596918106, -0.15604905784130096, -0.11389289796352386, 0.07983660697937012, 0.33663034439086914, -0.07489408552646637, -0.30741822719573975, -0.011857032775878906, 0.07366230338811874, 0.3071090877056122, 0.26688000559806824, -0.08829373121261597, 0.2186746597290039, -0.18768158555030823, -0.24987369775772095, 0.36289530992507935, -0.2184954136610031, -0.1908559501171112, -0.07032381743192673, 0.10192593932151794, 0.27780628204345703, -0.029884008690714836, -0.49024498462677, 0.020685143768787384, 0.30254316329956055, -0.14893323183059692, -0.2680252492427826, 0.15092507004737854, 0.0631178766489029, -0.12213863432407379, -0.02239435352385044, 0.256605327129364, -0.02470981329679489, -0.2528833746910095, 0.2719270884990692, -0.0967395231127739 ]
https://github.com/huggingface/datasets/issues/2123
Problem downloading GEM wiki_auto_asset_turk dataset
Sorry for the long time since my last comment, I tried again and don't seem to have the problem anymore, thanks for your support!
@yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family
24
Problem downloading GEM wiki_auto_asset_turk dataset @yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family Sorry for the long time since my last comment, I tried again and don't seem to have the problem anymore, thanks for your support!
[ -0.069035604596138, -0.009997807443141937, -0.07155101001262665, 0.4162677526473999, 0.28227943181991577, 0.1222885325551033, 0.3851533532142639, 0.21341709792613983, 0.2334703803062439, -0.11339269578456879, 0.24285051226615906, 0.16283424198627472, 0.1382036805152893, -0.010502666234970093, -0.1870107203722, -0.1910439282655716, -0.03168896585702896, -0.06828989088535309, 0.13739411532878876, -0.22129152715206146, -0.05428183823823929, 0.15335990488529205, -0.12932516634464264, -0.0846194177865982, -0.29876306653022766, 0.13948719203472137, 0.10947981476783752, -0.08538753539323807, -0.33241933584213257, -0.08430597186088562, 0.5183299779891968, 0.03745691478252411, 0.09021320939064026, 0.29673564434051514, -0.00011769498087232932, -0.12622104585170746, 0.4400680661201477, -0.08007005602121353, -0.08587394654750824, -0.40321558713912964, -0.288153737783432, -0.4585101306438446, 0.1159152016043663, -0.25074058771133423, 0.15745329856872559, 0.3613405227661133, -0.08282356709241867, 0.20398184657096863, 0.060263700783252716, 0.0538334958255291, 0.20150522887706757, 0.22034411132335663, 0.11197303235530853, 0.0012683062814176083, 0.172088161110878, -0.5136725902557373, -0.196106418967247, -0.015646997839212418, -0.20564520359039307, 0.11592645943164825, 0.07598667591810226, 0.15384994447231293, -0.116021066904068, 0.44873446226119995, 0.10050985217094421, 0.1362585574388504, -0.03330367058515549, -0.5621498823165894, 0.3449826240539551, 0.3804033100605011, 0.8352511525154114, -0.04415375739336014, -0.38483595848083496, -0.09023936837911606, 0.029775403439998627, 0.07769005745649338, 0.10122553259134293, 0.47959989309310913, -0.40894052386283875, 0.05760675296187401, -0.4534147381782532, 0.0004346182104200125, -0.0540679395198822, 0.2307632863521576, -0.35058945417404175, 0.20536738634109497, -0.128136545419693, 0.054047971963882446, -0.05127095803618431, -0.02291785180568695, -0.38191962242126465, -0.31873735785484314, -0.18589481711387634, 0.3288646638393402, -0.3765307068824768, 0.08764727413654327, 0.08180249482393265, 0.10130215436220169, 0.3065653443336487, 0.3332841992378235, 0.05959504842758179, 0.20262306928634644, -0.24272388219833374, 0.09740407764911652, 0.13334618508815765, 0.34993767738342285, -0.04962768405675888, -0.3339034616947174, 0.23365283012390137, 0.08317676186561584, -0.04099944978952408, 0.08891385048627853, -0.13270001113414764, -0.027361925691366196, 0.2532707154750824, -0.29163557291030884, 0.11386515200138092, -0.12103523313999176, -0.1329978108406067, 0.3446778357028961, 0.13280829787254333, -0.10357460379600525, -0.1729872077703476, 0.2109661102294922, -0.2614230513572693, -0.07485008239746094, -0.15491732954978943, 0.37608253955841064, -0.1342863291501999, 0.12455456703901291, -0.05514739453792572, -0.19463090598583221, -0.03206407278776169, -0.13086159527301788, 0.23591752350330353, -0.23847952485084534, 0.39782190322875977, 0.11984527856111526, -0.2069479078054428, -0.16948667168617249, -0.04820377379655838, -0.0695439949631691, 0.08920393884181976, 0.3029324412345886, 0.15197008848190308, 0.8524779081344604, -0.10556195676326752, -0.15330803394317627, 0.027788259088993073, 0.02712322399020195, -0.26662853360176086, -0.2013559341430664, -0.13915371894836426, 0.14495982229709625, -0.48299771547317505, -0.26518309116363525, -0.055565811693668365, 0.2311144918203354, 0.22331726551055908, -0.14399442076683044, -0.08431646972894669, 0.00873708538711071, 0.06780697405338287, -0.2231287956237793, 0.44627121090888977, 0.5631445646286011, -0.2154606431722641, -0.027349568903446198, -0.10237940400838852, 0.08290284126996994, 0.5172896385192871, -0.013226237148046494, 0.017730217427015305, -0.1962210237979889, -0.05522897094488144, 0.3503422141075134, 0.2345133125782013, 0.06342872977256775, -0.6698724031448364, 0.2986479699611664, -0.11217184364795685, 0.2659199833869934, 0.035139553248882294, 0.17272357642650604, 0.08820338547229767, 0.22885924577713013, -0.27640843391418457, 0.3082549571990967, 0.07483033090829849, -0.18554244935512543, -0.3515210449695587, -0.4687908887863159, 0.09075790643692017, 0.07790276408195496, 0.1690833866596222, 0.009551800787448883, 0.06664223968982697, -0.054549455642700195, 0.3368753492832184, 0.29136043787002563, 0.22319307923316956, 0.05409549921751022, 0.14010311663150787, -0.26849591732025146, -0.03521668538451195, -0.10481055825948715, -0.01640966534614563, 0.4072795510292053, 0.5592124462127686, 0.061634957790374756, 0.010032854974269867, 0.09789703786373138, -0.26447051763534546, -0.12227383255958557, -0.32133999466896057, -0.019778206944465637, 0.05246325582265854, 0.09430865198373795, 0.21691127121448517, 0.29849421977996826, 0.03749774768948555, 0.04018937796354294, -0.04206771403551102, 0.052352674305438995, 0.04161932319402695, 0.19405430555343628, 0.06743989884853363, -0.13319575786590576, -0.179591566324234, -0.10607831925153732, 0.016391832381486893, 0.1452956646680832, -0.22919592261314392, -0.002815239131450653, -0.21875034272670746, 0.0633665919303894, -0.04340692609548569, -0.09142918884754181, 0.13793693482875824, 0.09818091988563538, -0.07668491452932358, 0.03280320391058922, 0.16982173919677734, -0.011578105390071869, -0.0029625147581100464, 0.08538248389959335, 0.2800174653530121, 0.375519335269928, -0.015011031180620193, 0.2399071753025055, 0.33558163046836853, -0.040627866983413696, 0.045428790152072906, -0.014503322541713715, 0.32555824518203735, -0.26566675305366516, -0.147652268409729, -0.06809863448143005, -0.09253527969121933, 0.27749067544937134, 0.5297242999076843, 0.1324799507856369, 0.1280040740966797, 0.2106359601020813, -0.3184189200401306, 0.01894678920507431, -0.014493783935904503, 0.5863616466522217, 0.2611166834831238, 0.09616076201200485, 0.207313671708107, -0.4086146056652069, 0.057014141231775284, -0.2168998271226883, 0.04579760879278183, 0.3264726996421814, 0.06444244086742401, 0.39822643995285034, 0.10197455435991287, 0.13288050889968872, -0.037161216139793396, -0.03821360692381859, 0.12550088763237, 0.13267996907234192, -0.04108675941824913, -0.08589805662631989, -0.293661892414093, 0.2567719519138336, 0.05996968224644661, -0.43998974561691284, -0.13027776777744293, -0.2698119580745697, -0.11212238669395447, -0.01980869099497795, 0.0327049158513546, -0.07706425338983536, -0.1244322657585144, -0.20143087208271027, -0.058891117572784424, -0.37382426857948303, -0.36778387427330017, -0.12521910667419434, -0.3382563591003418, -0.04270559176802635, 0.10715748369693756, -0.09832890331745148, 0.28735268115997314, -0.1204511895775795, 0.057370394468307495, -0.09588544070720673, -0.193048894405365, 0.039849162101745605, -0.004308607429265976, 0.3839709460735321, -0.23778656125068665, 0.45643919706344604, -0.16638058423995972, -0.05971730127930641, 0.1663665920495987, 0.02435135655105114, 0.036582425236701965, 0.2220621258020401, 0.10518001765012741, -0.21873493492603302, -0.09859012067317963, -0.2855588495731354, -0.37993550300598145, -0.3414304256439209, -0.08583280444145203, 0.20547367632389069, -0.043064795434474945, 0.08825783431529999, 0.26352664828300476, 0.034782081842422485, 0.17442557215690613, 0.025011856108903885, -0.04491668939590454, -0.2868688702583313, 0.8346584439277649, -0.0881899893283844, -0.406933456659317, 0.2835733890533447, -0.014773506671190262, 0.3148878514766693, 0.10195295512676239, -0.507225751876831, 0.21762581169605255, -0.20977650582790375, 0.19553938508033752, 0.2795874774456024, 0.065709687769413, 0.06109088659286499, -0.3151110112667084, 0.088106170296669, -0.13943055272102356, -0.014676488004624844, -0.0487377867102623, 0.1244143471121788, 0.2875227630138397, 0.012267207726836205, 0.28431466221809387, 0.03793897107243538, 0.839062511920929, 0.24179190397262573, -0.13251881301403046, 0.4327150285243988, 0.03403039276599884, 0.022341035306453705, 0.022423963993787766, -0.16501381993293762, -0.20180481672286987, -0.24948382377624512, 0.153734490275383, 0.1278742551803589, 0.19487419724464417, -0.271696537733078, -0.06612983345985413, 0.009020820260047913, -0.4472633898258209, -0.3024115264415741, -0.19007137417793274, 0.15511676669120789, 0.007588669657707214, 0.2950230836868286, 0.32357779145240784, 0.04505157843232155, -0.2776400148868561, 0.03658151999115944, 0.5699428915977478, 0.0019080564379692078, 0.10237734764814377, 0.13668718934059143, 0.11840146034955978, -0.5679135322570801, 0.0903751477599144, -0.09081930667161942, 0.0821964219212532, -0.09414748847484589, 0.11455517262220383, 0.14195989072322845, -0.1593448966741562, 0.13754166662693024, -0.31173643469810486, 0.13196781277656555, -0.1461319476366043, -0.10672514140605927, -0.2218559831380844, -0.25045204162597656, 0.04028191789984703, -0.0445275604724884, 0.5353953242301941, -0.013036265969276428, -0.3280193507671356, -0.0068013956770300865, 0.07557819783687592, 0.17264224588871002, -0.15903931856155396, -0.2739725410938263, -0.2760899066925049, -0.4223756790161133, -0.3200934827327728, -0.20106950402259827, -0.19570808112621307, 0.3888670802116394, -0.2165101319551468, -0.28297609090805054, -0.12788508832454681, 0.2633850574493408, 0.11659422516822815, -0.019234519451856613, 0.3295140266418457, 0.09847847372293472, 0.38842296600341797, 0.05324459820985794, -0.1283080279827118, -0.1797625869512558, 0.5015990734100342, 0.3309798538684845, 0.012375541031360626, 0.04137334227561951, -0.33065325021743774, 0.006159752607345581, 0.16304762661457062, -0.2309936136007309, -0.05417456477880478, -0.08373141288757324, 0.19610965251922607, -0.15591207146644592, -0.0053327372297644615, 0.23692554235458374, -0.07772065699100494, -0.18336665630340576, -0.4182693660259247, 0.6890943646430969, -0.2060822695493698, -0.013910256326198578, 0.15960071980953217, 0.1564730703830719, 0.146467924118042, 0.2997376322746277, -0.126112699508667, 0.772882878780365, 0.03466605022549629, -0.03544206544756889, 0.0785011351108551, 0.08715173602104187, 0.34268301725387573, -0.29029279947280884, 0.12753385305404663, -0.33534327149391174, 0.15320947766304016, -0.14065058529376984, 0.016548816114664078, -0.12936925888061523, 0.08474229276180267, -0.09100650250911713, 0.14999303221702576, -0.16777467727661133, 0.22578023374080658, 0.022239413112401962, 0.0446510836482048, -0.3492170572280884, -0.08177848160266876, 0.04473033919930458, 0.12728813290596008, 0.02697385661303997, 0.6393933296203613, 0.0258919820189476, -0.24098365008831024, -0.24646057188510895, -0.0886288732290268, -0.578968346118927, 0.1253206431865692, 0.11260738223791122, -0.07139163464307785, -0.20295323431491852, -0.45357364416122437, 0.013164132833480835, 0.45076802372932434, -0.05832374095916748, 0.17903798818588257, -0.3476180136203766, 0.2616402506828308, -0.29323846101760864, -0.08648848533630371, 0.15928447246551514, -0.08328337222337723, 0.09261796623468399, -0.19494616985321045, -0.28638410568237305, 0.027871504426002502, -0.08134287595748901, 0.3039560914039612, -0.14328593015670776, 0.1170966848731041, 0.22106187045574188, -0.004693140275776386, -0.37297824025154114, 0.1475708782672882, -0.05833524093031883, -0.11621850728988647, 0.13002803921699524, 0.11510762572288513, 0.0481414794921875, 0.23778125643730164, 0.12296752631664276, -0.2875978946685791, -0.2023490071296692, 0.40778571367263794, -0.17034342885017395, 0.20588120818138123, 0.3319360017776489, -0.06520907580852509, -0.23081041872501373, -0.11634527146816254, -0.10781414806842804, 0.019343268126249313, -0.6593106389045715, -0.22204847633838654, 0.015506992116570473, 0.3092421889305115, -0.14671051502227783, -0.14997032284736633, 0.07674824446439743, -0.3893273174762726, -0.3052191436290741, -0.5143171548843384, 0.1934581696987152, 0.053086504340171814, -0.08086621761322021, 0.10128185153007507, -0.4944116473197937, -0.46123799681663513, 0.31301626563072205, 0.12340305745601654, -0.17996768653392792, -0.013785971328616142, -0.16721269488334656, -0.14030106365680695, 0.1541430950164795, 0.2915666401386261, 0.12436144053936005, 0.06529214978218079, 0.0008927378803491592, 0.04524723440408707, -0.17028307914733887, -0.1682327687740326, -0.14930804073810577, 0.1990281641483307, 0.1847805678844452, 0.008066860027611256, 0.19103002548217773, -0.13205286860466003, -0.211307093501091, -0.04514305666089058, 0.12748831510543823, -0.059308670461177826, -0.030626773834228516, 0.09226729720830917, 0.08057625591754913, 0.40377992391586304, -0.4537477493286133, 0.11455394327640533, -0.10151468217372894, 0.8488929867744446, 0.08576391637325287, 0.015893619507551193, 0.5661733746528625, 0.1179385781288147, -0.23782466351985931, -0.20620188117027283, -0.12666356563568115, -0.09776382893323898, 0.3483300805091858, -0.3401978611946106, 0.5501440763473511, 0.11265092343091965, 0.08176412433385849, 0.34066447615623474, -0.12666000425815582, -0.06632829457521439, 0.17109861969947815, 0.2545170783996582, -0.1475621461868286, -0.12923161685466766, 0.059222184121608734, 0.09569820016622543, -0.05179329961538315, -0.11303100734949112, 0.13418881595134735, -0.290493905544281, -0.2642149329185486, 0.06581909209489822, 0.48882246017456055, -0.17143535614013672, -0.15584337711334229, 0.48055610060691833, 0.02781185880303383, 0.32257649302482605, -0.05047048628330231, -0.0692567378282547, -0.19129079580307007, 0.4133709669113159, -0.10413984209299088, 0.3994581699371338, 0.1184312105178833, 0.0900518149137497, -0.4028487801551819, -0.4876837730407715, -0.03911324962973595, 0.06210973858833313, -0.14854708313941956, 0.24713462591171265, 0.1171717643737793, 0.23747313022613525, 0.12965308129787445, 0.03208008408546448, -0.48504307866096497, -0.03978769853711128, 0.021189086139202118, -0.0166220311075449, 0.04589344561100006, -0.35210147500038147, -0.14652326703071594, 0.3644358813762665, 0.05292513966560364, -0.11006006598472595, 0.3075851798057556, 0.15325221419334412, -0.15214046835899353, -0.6718458533287048, 0.042618539184331894, -0.09222186356782913, 0.04422084242105484, -0.3201608955860138, 0.02636600099503994, 0.20775653421878815, -0.12011724710464478, -0.03956746682524681, 0.03112531639635563, 0.35771864652633667, 0.4340401291847229, 0.01242472231388092, -0.014276101253926754, 0.04835233837366104, -0.06983232498168945, -0.2068815380334854, 0.3337101638317108, 0.2554481625556946, 0.005975745618343353, 0.1312025785446167, 0.11211653053760529, -0.2471865564584732, 0.17611593008041382, 0.0823044553399086, 0.0013015791773796082, -0.20615702867507935, 0.6831786036491394, -0.2835204601287842, 0.11689341813325882, -0.15566204488277435, -0.33412817120552063, -0.3487708270549774, -0.019861627370119095, 0.3473851978778839, 0.15197813510894775, 0.0724639818072319, -0.31581437587738037, 0.03375954180955887, -0.28070390224456787, 0.2559371590614319, 0.07406172901391983, 0.17233914136886597, -0.359378457069397, 0.1387786716222763, -0.7013585567474365, -0.007882341742515564, 0.09284330904483795, -0.024514395743608475, -0.02348233014345169, 0.31374263763427734, -0.2782699763774872, 0.17132535576820374, 0.23884525895118713, -0.034712281078100204, 0.2462117075920105, 0.4393148124217987, -0.2718909680843353, -0.048283953219652176, -0.30860334634780884, 0.012658711522817612, -0.1189720556139946, -0.2704192101955414, 0.26984724402427673, -0.5997481346130371, -0.03560829535126686, -0.04181408882141113, -0.09727077186107635, 0.2781631052494049, -0.28218477964401245, 0.7650133967399597, 0.014741938561201096, 0.39809465408325195, -0.05678096413612366, -0.03825754672288895, -0.2995535135269165, 0.053539030253887177, 0.0010872120037674904, 0.17286700010299683, -0.10072003304958344, 0.27201423048973083, 0.11959328502416611, 0.1841217428445816, -0.14368216693401337, -0.14535929262638092, 0.05131540447473526, 0.29174622893333435, 0.004772461950778961, -0.3444969356060028, -0.02392485737800598, 0.08920634537935257, 0.23690107464790344, 0.24616342782974243, -0.12085103988647461, 0.17563429474830627, -0.1573685258626938, -0.2548573613166809, 0.3296074867248535, -0.27762848138809204, -0.21337437629699707, -0.10318110138177872, 0.13213986158370972, 0.3171694874763489, 0.01982397772371769, -0.47892147302627563, -0.0028055235743522644, 0.28053122758865356, -0.14065563678741455, -0.23521670699119568, 0.11493854224681854, 0.13226421177387238, -0.10278522968292236, -0.02495146542787552, 0.19478560984134674, 0.004422876983880997, -0.2891600728034973, 0.26588767766952515, -0.14130526781082153 ]
https://github.com/huggingface/datasets/issues/2123
Problem downloading GEM wiki_auto_asset_turk dataset
Great ! I'm closing the issue then. Feel free to re-open if you experience this issue again
@yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family
17
Problem downloading GEM wiki_auto_asset_turk dataset @yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family Great ! I'm closing the issue then. Feel free to re-open if you experience this issue again
[ -0.06359143555164337, 0.005496174097061157, -0.06998803466558456, 0.3975265622138977, 0.27048182487487793, 0.11177151650190353, 0.4051196277141571, 0.2125459611415863, 0.2219945788383484, -0.09807059168815613, 0.24230414628982544, 0.16528958082199097, 0.14376802742481232, -0.00943777896463871, -0.18495525419712067, -0.1691981852054596, -0.020927272737026215, -0.0780065655708313, 0.13971954584121704, -0.22872528433799744, -0.07188274711370468, 0.14549733698368073, -0.11852703243494034, -0.08834832906723022, -0.2948790192604065, 0.1466154009103775, 0.09713180363178253, -0.07873936742544174, -0.31266528367996216, -0.09903563559055328, 0.5155931115150452, 0.05686993896961212, 0.07888133078813553, 0.29513251781463623, -0.00011708815873134881, -0.12447450309991837, 0.4406697750091553, -0.07180173695087433, -0.11489059031009674, -0.38135409355163574, -0.2894219756126404, -0.46078452467918396, 0.10173463076353073, -0.2550837993621826, 0.15780091285705566, 0.35143348574638367, -0.06956760585308075, 0.1909140646457672, 0.041140176355838776, 0.0347973071038723, 0.2039114534854889, 0.2345372438430786, 0.07736904919147491, -0.009219050407409668, 0.16854345798492432, -0.50814288854599, -0.20099103450775146, -0.014971192926168442, -0.1961531639099121, 0.11306198686361313, 0.051840245723724365, 0.1712566465139389, -0.11127264052629471, 0.44505730271339417, 0.10927607864141464, 0.14754468202590942, -0.039033353328704834, -0.5593595504760742, 0.3386213481426239, 0.39142152667045593, 0.8110868334770203, -0.03492547571659088, -0.3909863233566284, -0.11639456450939178, 0.014440148137509823, 0.08834175765514374, 0.10945650935173035, 0.47317469120025635, -0.4042174816131592, 0.0580030158162117, -0.44301798939704895, 0.016205793246626854, -0.042405977845191956, 0.24012990295886993, -0.356535941362381, 0.2099103033542633, -0.12181518971920013, 0.049512650817632675, -0.050104428082704544, -0.01939615234732628, -0.3825845718383789, -0.3250645101070404, -0.1779283732175827, 0.3222630023956299, -0.359563410282135, 0.09452450275421143, 0.10821105539798737, 0.09445060789585114, 0.30449753999710083, 0.33845001459121704, 0.06502395868301392, 0.21793973445892334, -0.2423131912946701, 0.09105156362056732, 0.12575861811637878, 0.3379719853401184, -0.029796898365020752, -0.34286263585090637, 0.23741333186626434, 0.0910969078540802, -0.03903576359152794, 0.08945467323064804, -0.14213408529758453, -0.013625145889818668, 0.24004866182804108, -0.2997390329837799, 0.1066754013299942, -0.10618181526660919, -0.13551181554794312, 0.3545141816139221, 0.14365342259407043, -0.10089237987995148, -0.18195457756519318, 0.20962372422218323, -0.2602633237838745, -0.07936844974756241, -0.1583038866519928, 0.38324713706970215, -0.14806708693504333, 0.10889628529548645, -0.06466612219810486, -0.2023760974407196, -0.04305148497223854, -0.1350315362215042, 0.24246133863925934, -0.21531127393245697, 0.3975869417190552, 0.10822750627994537, -0.20192871987819672, -0.1622781604528427, -0.04827265441417694, -0.06005101278424263, 0.10397239029407501, 0.3016763925552368, 0.1376931220293045, 0.8678786754608154, -0.09837771952152252, -0.14865632355213165, 0.021130435168743134, 0.03382457047700882, -0.2486860752105713, -0.19275780022144318, -0.124355748295784, 0.14960533380508423, -0.5011076927185059, -0.261199951171875, -0.04761149734258652, 0.24386827647686005, 0.22101041674613953, -0.1569942831993103, -0.08826851099729538, 0.008346464484930038, 0.05727572366595268, -0.21883119642734528, 0.4434722661972046, 0.5722364187240601, -0.2253338247537613, -0.04570642113685608, -0.11192045360803604, 0.08972729742527008, 0.5085413455963135, -0.006721224635839462, 0.009111607447266579, -0.18665283918380737, -0.04923884570598602, 0.3607648015022278, 0.2355577051639557, 0.06138287112116814, -0.6746480464935303, 0.28660282492637634, -0.1267223209142685, 0.30461832880973816, 0.03365158289670944, 0.17984773218631744, 0.08866076916456223, 0.20867235958576202, -0.2679760158061981, 0.30602598190307617, 0.08443993330001831, -0.18121331930160522, -0.3593185842037201, -0.4738074243068695, 0.08326569199562073, 0.0717400461435318, 0.17198733985424042, 0.006771676242351532, 0.06627257913351059, -0.059156883507966995, 0.3414902091026306, 0.2777412235736847, 0.22468940913677216, 0.050394557416439056, 0.14146089553833008, -0.27387917041778564, -0.039967477321624756, -0.08558692783117294, -0.02413751184940338, 0.4271652400493622, 0.5506256818771362, 0.06388667225837708, 0.01442243903875351, 0.0955628752708435, -0.246963769197464, -0.12176164239645004, -0.32241377234458923, -0.04400680586695671, 0.05783671885728836, 0.1223813146352768, 0.20308373868465424, 0.3038417398929596, 0.04795664921402931, 0.03966572880744934, -0.041109971702098846, 0.05644476041197777, 0.0390905924141407, 0.17930632829666138, 0.08794500678777695, -0.1351894587278366, -0.20177118480205536, -0.09881598502397537, 0.005903016775846481, 0.13918638229370117, -0.2159440517425537, 0.0058312565088272095, -0.2344038337469101, 0.08205067366361618, -0.0509568527340889, -0.08719338476657867, 0.14150431752204895, 0.11490918695926666, -0.07094752043485641, 0.031120289117097855, 0.16031555831432343, -0.01568133383989334, -0.031179942190647125, 0.11398354917764664, 0.2691168487071991, 0.38148337602615356, -0.01162416860461235, 0.22204753756523132, 0.3370935022830963, -0.046846725046634674, 0.031752005219459534, -0.022921092808246613, 0.3230012059211731, -0.27104127407073975, -0.13944944739341736, -0.06853790581226349, -0.09483268111944199, 0.3044224679470062, 0.5473520159721375, 0.12828214466571808, 0.13619568943977356, 0.20581701397895813, -0.3219822645187378, 0.016042649745941162, -0.009026939049363136, 0.5947286486625671, 0.2657073736190796, 0.10152105987071991, 0.21871241927146912, -0.39832422137260437, 0.048816800117492676, -0.23003770411014557, 0.0376443937420845, 0.325257271528244, 0.05345463380217552, 0.4030184745788574, 0.11339361220598221, 0.13850781321525574, -0.049517203122377396, -0.027943946421146393, 0.12782838940620422, 0.1014389768242836, -0.041862957179546356, -0.06878278404474258, -0.2825426459312439, 0.2662617564201355, 0.06004231050610542, -0.43342268466949463, -0.13501784205436707, -0.28846922516822815, -0.1005190759897232, -0.014481887221336365, 0.0014507696032524109, -0.07701891660690308, -0.13645996153354645, -0.19269882142543793, -0.08020377904176712, -0.3923896849155426, -0.34975552558898926, -0.12595269083976746, -0.3521961569786072, -0.03853273764252663, 0.10137685388326645, -0.09394244104623795, 0.28791412711143494, -0.11684530973434448, 0.06566902250051498, -0.08932901918888092, -0.20687660574913025, 0.04480880871415138, -0.009204749017953873, 0.3843482732772827, -0.25536951422691345, 0.441450834274292, -0.16141656041145325, -0.058180250227451324, 0.1734229177236557, 0.028334127739071846, 0.04329075664281845, 0.22235746681690216, 0.10870932787656784, -0.19923612475395203, -0.09687837958335876, -0.29274341464042664, -0.3652939796447754, -0.3451601564884186, -0.07200093567371368, 0.19370949268341064, -0.049067944288253784, 0.08926893770694733, 0.25777241587638855, 0.027549471706151962, 0.163705974817276, 0.027468180283904076, -0.05242539942264557, -0.2859865427017212, 0.822867751121521, -0.09534935653209686, -0.4027892053127289, 0.27158528566360474, -0.03020794689655304, 0.31057050824165344, 0.1123725026845932, -0.5049176812171936, 0.2296980321407318, -0.2130984216928482, 0.2032734900712967, 0.2825911343097687, 0.055016495287418365, 0.07148301601409912, -0.31097212433815, 0.07583177089691162, -0.16275042295455933, -0.00429890863597393, -0.030058838427066803, 0.12573035061359406, 0.2862556576728821, -0.0014701038599014282, 0.2728950083255768, 0.05015363171696663, 0.8432103395462036, 0.23583835363388062, -0.1333761215209961, 0.42087888717651367, 0.04507532715797424, 0.039254769682884216, 0.022432275116443634, -0.15391871333122253, -0.19870568811893463, -0.2561720013618469, 0.14701108634471893, 0.14910411834716797, 0.19901606440544128, -0.26372042298316956, -0.05371018499135971, 0.017792847007513046, -0.4434630870819092, -0.33039841055870056, -0.16970479488372803, 0.15181005001068115, 0.00033129751682281494, 0.30406925082206726, 0.32810619473457336, 0.04036182910203934, -0.2667129337787628, 0.034316446632146835, 0.5420290231704712, 0.0001077800989151001, 0.0878889411687851, 0.12203799188137054, 0.12066995352506638, -0.5723162293434143, 0.08297240734100342, -0.08590228110551834, 0.07345607131719589, -0.0841364711523056, 0.07621000707149506, 0.14125917851924896, -0.16022154688835144, 0.14687587320804596, -0.3039342164993286, 0.13903644680976868, -0.14127758145332336, -0.10382678359746933, -0.22653566300868988, -0.24756018817424774, 0.03668671473860741, -0.05048185959458351, 0.544003963470459, -0.01324588805437088, -0.32849371433258057, -0.0015202488284558058, 0.06421267986297607, 0.18171373009681702, -0.14818337559700012, -0.25626105070114136, -0.2763037085533142, -0.4239402711391449, -0.31759023666381836, -0.19524475932121277, -0.19393110275268555, 0.37533992528915405, -0.23198950290679932, -0.27436214685440063, -0.12118536233901978, 0.2704649865627289, 0.12001045793294907, -0.019969094544649124, 0.3140403926372528, 0.096247598528862, 0.3911685645580292, 0.07290196418762207, -0.13467609882354736, -0.1737755835056305, 0.513611912727356, 0.3388259708881378, 0.01058487594127655, 0.042822010815143585, -0.33696460723876953, -0.00595913827419281, 0.2090999186038971, -0.21644115447998047, -0.06499398499727249, -0.07533950358629227, 0.19493524730205536, -0.15415790677070618, 0.0030708261765539646, 0.23793676495552063, -0.09631743282079697, -0.18464626371860504, -0.4083699882030487, 0.6840829849243164, -0.2124336212873459, -0.020392470061779022, 0.1748204529285431, 0.14948667585849762, 0.13983574509620667, 0.2975004315376282, -0.10814859718084335, 0.7885546088218689, 0.0302354134619236, -0.018023710697889328, 0.0893874242901802, 0.08929893374443054, 0.3508453071117401, -0.3062097430229187, 0.13403011858463287, -0.3522851765155792, 0.15353557467460632, -0.13159768283367157, 0.02130908891558647, -0.12815925478935242, 0.08694328367710114, -0.07770170271396637, 0.1317058950662613, -0.16336223483085632, 0.23567979037761688, 0.02975034900009632, 0.032385267317295074, -0.35337135195732117, -0.08884236216545105, 0.05738537013530731, 0.13102100789546967, 0.04159940779209137, 0.6429336071014404, 0.016747521236538887, -0.24317096173763275, -0.2635301649570465, -0.08838413655757904, -0.5674739480018616, 0.1350710690021515, 0.11715573817491531, -0.06638404726982117, -0.2022005319595337, -0.4554263949394226, -0.02100212126970291, 0.4356852173805237, -0.042197465896606445, 0.16824984550476074, -0.3473184406757355, 0.2733460068702698, -0.2823809087276459, -0.07076467573642731, 0.17024676501750946, -0.10230852663516998, 0.10108530521392822, -0.18925029039382935, -0.2828212082386017, 0.01594553515315056, -0.09885263442993164, 0.29944783449172974, -0.1585281491279602, 0.11146309971809387, 0.2126406729221344, -0.006798959337174892, -0.37082526087760925, 0.14549487829208374, -0.06500069051980972, -0.11681805551052094, 0.13535000383853912, 0.10497662425041199, 0.05661177635192871, 0.23033109307289124, 0.1094345897436142, -0.28935644030570984, -0.21703144907951355, 0.4203639030456543, -0.17404112219810486, 0.19371256232261658, 0.3277283012866974, -0.0734877660870552, -0.22770237922668457, -0.11944278329610825, -0.10668142139911652, 0.010008484125137329, -0.6670777201652527, -0.2200978398323059, 0.0030245818197727203, 0.29006218910217285, -0.13758067786693573, -0.13704237341880798, 0.07803519070148468, -0.40268462896347046, -0.3174937069416046, -0.49464449286460876, 0.2114560604095459, 0.06812386959791183, -0.07026726007461548, 0.09455910325050354, -0.49561813473701477, -0.45447030663490295, 0.3093894422054291, 0.11124390363693237, -0.1906251162290573, -0.020559335127472878, -0.14613908529281616, -0.1312694102525711, 0.14376480877399445, 0.3040229380130768, 0.15040454268455505, 0.06838276982307434, 0.0024420861154794693, 0.0444076843559742, -0.1790057122707367, -0.17652854323387146, -0.15098513662815094, 0.19629913568496704, 0.18605807423591614, 0.022452156990766525, 0.2005324810743332, -0.11814168095588684, -0.19939874112606049, -0.05830809473991394, 0.1348382979631424, -0.05637279525399208, -0.04422038793563843, 0.08189432322978973, 0.07006638497114182, 0.4368837773799896, -0.4313291907310486, 0.10963372886180878, -0.10901868343353271, 0.8408152461051941, 0.07981348037719727, 0.009366840124130249, 0.5487741827964783, 0.1110464483499527, -0.21439947187900543, -0.20232069492340088, -0.13576817512512207, -0.07938242703676224, 0.34217795729637146, -0.3432495594024658, 0.5485953688621521, 0.10368822515010834, 0.07684505730867386, 0.3453032374382019, -0.12197517603635788, -0.09082290530204773, 0.15421289205551147, 0.2604789733886719, -0.1336328238248825, -0.1416880041360855, 0.044836245477199554, 0.08193470537662506, -0.04256516322493553, -0.09728973358869553, 0.14318007230758667, -0.2931314706802368, -0.2391669899225235, 0.06096264719963074, 0.481363981962204, -0.17839041352272034, -0.13189508020877838, 0.4905305504798889, 0.011240217834711075, 0.3369816243648529, -0.05129154026508331, -0.08730015158653259, -0.1786280870437622, 0.4202342629432678, -0.0920410230755806, 0.406850129365921, 0.1251327097415924, 0.08253738284111023, -0.4138423800468445, -0.5052170157432556, -0.024068813771009445, 0.05521724373102188, -0.1465783417224884, 0.25937899947166443, 0.10925932228565216, 0.22993338108062744, 0.1215052381157875, 0.041403044015169144, -0.49751999974250793, -0.03218674287199974, 0.024567749351263046, -0.02784956432878971, 0.045226290822029114, -0.3645440340042114, -0.14286267757415771, 0.36637255549430847, 0.03849286586046219, -0.1033891886472702, 0.3109819293022156, 0.14311331510543823, -0.14732182025909424, -0.6717373728752136, 0.03650511056184769, -0.11647210270166397, 0.04977511987090111, -0.30637696385383606, 0.024019399657845497, 0.21314026415348053, -0.1313631236553192, -0.01785743236541748, 0.02480994164943695, 0.345533162355423, 0.42973122000694275, 0.016622472554445267, -0.023359060287475586, 0.027854178100824356, -0.06518500298261642, -0.22580917179584503, 0.3390023410320282, 0.25499409437179565, -0.010467123240232468, 0.14580313861370087, 0.12069013714790344, -0.26161542534828186, 0.17222563922405243, 0.09335868060588837, -0.010657766833901405, -0.21045784652233124, 0.6825149059295654, -0.2915143072605133, 0.12023388594388962, -0.1351344734430313, -0.34334811568260193, -0.3390800952911377, -0.030241545289754868, 0.3402217924594879, 0.1571630835533142, 0.08060992509126663, -0.31188175082206726, 0.038495779037475586, -0.2671254873275757, 0.26040950417518616, 0.04898332804441452, 0.15069840848445892, -0.3443179130554199, 0.13533461093902588, -0.7035648226737976, 0.007180802524089813, 0.0843350812792778, -0.026627294719219208, -0.029490239918231964, 0.3258945047855377, -0.2704501748085022, 0.17942266166210175, 0.2376696765422821, -0.036499809473752975, 0.23523682355880737, 0.4280109405517578, -0.2742733657360077, -0.05068470165133476, -0.30236124992370605, 0.006890072487294674, -0.12760314345359802, -0.28263550996780396, 0.2721913456916809, -0.594693124294281, -0.02793053165078163, -0.032748088240623474, -0.11321865022182465, 0.2861548960208893, -0.2838965952396393, 0.7775372862815857, 0.0201641246676445, 0.3910854756832123, -0.054441001266241074, -0.06426183134317398, -0.3234819173812866, 0.05633416399359703, 0.0065069133415818214, 0.1816595494747162, -0.11244036257266998, 0.29031118750572205, 0.11432590335607529, 0.17948302626609802, -0.13710343837738037, -0.14226648211479187, 0.07060079276561737, 0.2998565137386322, -0.00247136689722538, -0.3307429850101471, -0.020697422325611115, 0.09412312507629395, 0.23459795117378235, 0.26646187901496887, -0.11944296956062317, 0.18120181560516357, -0.16141533851623535, -0.2635100483894348, 0.32506850361824036, -0.28733527660369873, -0.21412867307662964, -0.11213648319244385, 0.13958369195461273, 0.2979428470134735, 0.01932351291179657, -0.4697851240634918, 0.001358136534690857, 0.2750636637210846, -0.1346328854560852, -0.22876515984535217, 0.10920089483261108, 0.12852132320404053, -0.11949092149734497, -0.028307152912020683, 0.1960529088973999, 0.004282696172595024, -0.2925716042518616, 0.2687162756919861, -0.14108195900917053 ]
https://github.com/huggingface/datasets/issues/2116
Creating custom dataset results in error while calling the map() function
Hi, the `_data` attribute is missing due to `MyDataset.__init__` not calling the parent `__init__`. However, I don't think it's a good idea to subclass the `datasets.Dataset` class (e.g. it's kind of dangerous to override `datasets.Dataset.__getitem__`). Instead, it's better to follow the "association over inheritance" approach with a simple wrapper class that delegates calls to a wrapped `Dataset` (map, etc.). Btw, the library offers the `datasets.Dataset.from_pandas` class method to directly create a `datasets.Dataset` from the dataframe.
calling `map()` of `datasets` library results into an error while defining a Custom dataset. Reproducible example: ``` import datasets class MyDataset(datasets.Dataset): def __init__(self, sentences): "Initialization" self.samples = sentences def __len__(self): "Denotes the total number of samples" return len(self.samples) def __getitem__(self, index): "Generates one sample of data" # Select sample # Load data and get label samples = self.samples[index] return samples def preprocess_function_train(examples): inputs = examples labels = [example+tokenizer.eos_token for example in examples ] inputs = tokenizer(inputs, max_length=30, padding=True, truncation=True) labels = tokenizer(labels, max_length=30, padding=True, truncation=True) model_inputs = inputs model_inputs["labels"] = labels["input_ids"] print("about to return") return model_inputs ##train["sentence"] is dataframe column train_dataset = MyDataset(train['sentence'].values.tolist()) train_dataset = train_dataset.map( preprocess_function, batched = True, batch_size=32 ) ``` Stack trace of error: ``` Traceback (most recent call last): File "dir/train_generate.py", line 362, in <module> main() File "dir/train_generate.py", line 245, in main train_dataset = train_dataset.map( File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1244, in map return self._map_single( File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 149, in wrapper unformatted_columns = set(self.column_names) - set(self._format_columns or []) File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 526, in column_names return self._data.column_names AttributeError: 'MyDataset' object has no attribute '_data' ```
75
Creating custom dataset results in error while calling the map() function calling `map()` of `datasets` library results into an error while defining a Custom dataset. Reproducible example: ``` import datasets class MyDataset(datasets.Dataset): def __init__(self, sentences): "Initialization" self.samples = sentences def __len__(self): "Denotes the total number of samples" return len(self.samples) def __getitem__(self, index): "Generates one sample of data" # Select sample # Load data and get label samples = self.samples[index] return samples def preprocess_function_train(examples): inputs = examples labels = [example+tokenizer.eos_token for example in examples ] inputs = tokenizer(inputs, max_length=30, padding=True, truncation=True) labels = tokenizer(labels, max_length=30, padding=True, truncation=True) model_inputs = inputs model_inputs["labels"] = labels["input_ids"] print("about to return") return model_inputs ##train["sentence"] is dataframe column train_dataset = MyDataset(train['sentence'].values.tolist()) train_dataset = train_dataset.map( preprocess_function, batched = True, batch_size=32 ) ``` Stack trace of error: ``` Traceback (most recent call last): File "dir/train_generate.py", line 362, in <module> main() File "dir/train_generate.py", line 245, in main train_dataset = train_dataset.map( File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1244, in map return self._map_single( File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 149, in wrapper unformatted_columns = set(self.column_names) - set(self._format_columns or []) File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 526, in column_names return self._data.column_names AttributeError: 'MyDataset' object has no attribute '_data' ``` Hi, the `_data` attribute is missing due to `MyDataset.__init__` not calling the parent `__init__`. However, I don't think it's a good idea to subclass the `datasets.Dataset` class (e.g. it's kind of dangerous to override `datasets.Dataset.__getitem__`). Instead, it's better to follow the "association over inheritance" approach with a simple wrapper class that delegates calls to a wrapped `Dataset` (map, etc.). Btw, the library offers the `datasets.Dataset.from_pandas` class method to directly create a `datasets.Dataset` from the dataframe.
[ -0.3095267713069916, 0.19198358058929443, -0.02808145247399807, 0.08091825246810913, 0.23226362466812134, 0.024453014135360718, 0.406316339969635, 0.37322136759757996, 0.2232668250799179, 0.057966846972703934, 0.10709253698587418, 0.4760224223136902, -0.3742125630378723, -0.051104895770549774, 0.07849191129207611, -0.008936136960983276, 0.055996790528297424, 0.18563318252563477, -0.18359148502349854, -0.0389980673789978, -0.3738662004470825, 0.19366396963596344, -0.1824551671743393, 0.205449640750885, -0.2108692079782486, -0.288471519947052, 0.11174656450748444, -0.08033276349306107, -0.29302412271499634, -0.3859242796897888, 0.3439580500125885, -0.06871114671230316, 0.005372477695345879, 0.7015196681022644, -0.00010453291179146618, 0.05418524146080017, 0.16063421964645386, -0.054436251521110535, -0.07146449387073517, -0.29468756914138794, -0.13007746636867523, -0.059729307889938354, 0.06532290577888489, -0.35534122586250305, -0.07086242735385895, -0.22665701806545258, -0.22048820555210114, -0.5003939867019653, 0.2376440465450287, 0.585727870464325, 0.3092917203903198, 0.006548753008246422, 0.015783976763486862, -0.2425519824028015, 0.2406724989414215, 0.27895694971084595, -0.16278651356697083, 0.12546223402023315, 0.10192646086215973, -0.43442630767822266, 0.021120578050613403, 0.2214975357055664, -0.05190260708332062, 0.017113860696554184, 0.22511178255081177, -0.07298179715871811, 0.024740930646657944, -0.35942745208740234, 0.033276356756687164, 0.13011449575424194, 0.4118056893348694, -0.5375846028327942, -0.3002355694770813, 0.06170045584440231, 0.017713116481900215, -0.1704159379005432, 0.25608816742897034, 0.07476004958152771, -0.15732510387897491, 0.052947551012039185, -0.07751386612653732, 0.13103164732456207, -0.09681015461683273, 0.369439959526062, 0.13062284886837006, 0.13703778386116028, -0.16369591653347015, 0.2666483223438263, 0.11021958291530609, -0.4297788143157959, 0.02327997237443924, -0.10806535184383392, 0.07952722162008286, 0.408001184463501, -0.36647406220436096, -0.16686511039733887, 0.05588047578930855, -0.44671884179115295, 0.14313551783561707, -0.15204769372940063, 0.022649485617876053, -0.12220454961061478, 0.14363083243370056, 0.13548794388771057, 0.23122863471508026, 0.1579551100730896, -0.020108655095100403, 0.4038412272930145, -0.08760760724544525, -0.0010178056545555592, -0.26957967877388, -0.08378828316926956, 0.02952031046152115, -0.2260691523551941, 0.0857027918100357, 0.06215012073516846, 0.16517972946166992, 0.020961914211511612, 0.09747210890054703, 0.09659243375062943, -0.31748324632644653, 0.13434721529483795, 0.14404572546482086, 0.21852245926856995, 0.15412037074565887, -0.16627976298332214, -0.0625314712524414, 0.12992921471595764, -0.11698009818792343, 0.2039194256067276, -0.24680599570274353, 0.14858606457710266, -0.38340267539024353, 0.00728653697296977, 0.176200732588768, 0.15443751215934753, 0.2860068082809448, -0.0002729687839746475, 0.022701721638441086, -0.14871947467327118, 0.18524959683418274, -0.348821222782135, 0.10498010367155075, 0.16054651141166687, -0.09926377981901169, 0.21236495673656464, 0.2893146872520447, -0.022547993808984756, -0.14825063943862915, 0.07649723440408707, -0.13015595078468323, -0.363864541053772, -0.19158558547496796, 0.24965262413024902, 0.08307835459709167, 0.239572212100029, -0.11764664202928543, 0.22862283885478973, 0.43396279215812683, -0.18812333047389984, 0.02698551118373871, -0.1968442052602768, -0.27002522349357605, -0.3524690568447113, -0.08463414758443832, 0.16187746822834015, -0.3914591670036316, 0.1544376164674759, -0.11991598457098007, -0.052884649485349655, -0.021493710577487946, 0.1791033148765564, -0.3845655918121338, 0.5214546918869019, -0.18569669127464294, 0.308544397354126, 0.47515082359313965, -0.19755592942237854, -0.46169668436050415, 0.10677548497915268, -0.042960070073604584, -0.08318951725959778, -0.3642084002494812, 0.019702153280377388, 0.35517361760139465, -0.06627476960420609, 0.19590312242507935, 0.01623617857694626, -0.06009992957115173, 0.15769684314727783, 0.048364993184804916, -0.051604561507701874, 0.11969060450792313, 0.01658124104142189, -0.013093691319227219, 0.12874361872673035, 0.22458142042160034, -0.10519954562187195, -0.035720497369766235, -0.2099781632423401, 0.09279832243919373, 0.30101698637008667, 0.3053903579711914, 0.14114117622375488, -0.10294623672962189, -0.1510808765888214, -0.26617977023124695, 0.1586989462375641, 0.16264978051185608, 0.17284196615219116, -0.2033347338438034, -0.1110055223107338, -0.20701709389686584, 0.08602050691843033, -0.18152400851249695, -0.04413991793990135, 0.26806312799453735, -0.05876941978931427, 0.10481999814510345, 0.006180275231599808, -0.06091346591711044, 0.037870731204748154, -0.3639877140522003, 0.10854627192020416, -0.13080404698848724, -0.05673186480998993, 0.028543751686811447, -0.20342612266540527, 0.00029257312417030334, 0.13456864655017853, 0.11349532753229141, 0.021104272454977036, -0.29433873295783997, 0.34830915927886963, 0.28062230348587036, -0.19801630079746246, -0.06840340048074722, 0.016223177313804626, -0.1527741551399231, -0.28389114141464233, 0.048885274678468704, 0.11197872459888458, 0.16515901684761047, -0.12410906702280045, 0.0026936866343021393, 0.1598966270685196, 0.0852554515004158, 0.04863934963941574, -0.08658331632614136, 0.18376246094703674, 0.2777928411960602, 0.15569421648979187, -0.1324806809425354, -0.26942795515060425, -0.16784769296646118, 0.06986884772777557, 0.32451286911964417, 0.01643538847565651, 0.03775594383478165, -0.2219957709312439, 0.4383484721183777, 0.13242670893669128, 0.17424069344997406, 0.12875166535377502, -0.05004938691854477, -0.06069552153348923, 0.04219238460063934, 0.393454909324646, 0.5440601110458374, 0.03579717501997948, -0.1568252146244049, 0.08574330806732178, -0.1568334549665451, 0.06005243957042694, 0.05515868589282036, 0.09215742349624634, 0.3318345844745636, -0.054145798087120056, 0.04165421053767204, 0.02443675696849823, -0.1346428096294403, -0.3162124454975128, 0.0016258414834737778, 0.2799021899700165, -0.1794581264257431, -0.05671372264623642, -0.06567233800888062, -0.057974714785814285, -0.07338958233594894, -0.22757236659526825, -0.04095122590661049, -0.18282493948936462, -0.24118350446224213, -0.04841896519064903, -0.037683453410863876, 0.2662052810192108, 0.004759848117828369, -0.03485842049121857, 0.16778524219989777, -0.32077211141586304, 0.32123589515686035, -0.39437535405158997, -0.12028246372938156, 0.11238466203212738, 0.09087763726711273, -0.042345549911260605, 0.33189210295677185, 0.13083356618881226, 0.040412116795778275, -0.2614419758319855, -0.19937056303024292, 0.08414791524410248, -0.09703803062438965, 0.10336548089981079, 0.36995261907577515, 0.014336369931697845, -0.21000006794929504, -0.18092094361782074, 0.3269989788532257, -0.15594343841075897, -0.0598934069275856, 0.02471122145652771, -0.1132063940167427, -0.1555878072977066, -0.17928332090377808, -0.3093281090259552, -0.23788048326969147, -0.25996267795562744, 0.08368435502052307, -0.01935475505888462, 0.18145570158958435, 0.19993047416210175, 0.27976059913635254, 0.32564446330070496, -0.017470667138695717, -0.18350380659103394, -0.2639644145965576, -0.28202104568481445, 0.1595141440629959, -0.5192967653274536, -0.18908332288265228, 0.15988889336585999, -0.11968639492988586, 0.4478082060813904, 0.3123953342437744, -0.36659109592437744, -0.03388771042227745, -0.09887946397066116, 0.13863970339298248, -0.09803862869739532, -0.11123837530612946, 0.4257834553718567, 0.13439074158668518, -0.024969233199954033, -0.297503262758255, -0.43572404980659485, 0.21858781576156616, -0.012027617543935776, 0.10790278762578964, 0.18711400032043457, 0.6236599087715149, -0.021652724593877792, 0.7203989624977112, 0.3328923285007477, -0.312632292509079, 0.28533995151519775, -0.1934003382921219, 0.24196594953536987, -0.27376484870910645, -0.3682575821876526, -0.007480734959244728, 0.009522750973701477, -0.08642418682575226, 0.06656268239021301, -0.17924723029136658, -0.309330552816391, 0.04039166867733002, 0.27014899253845215, -0.3075178265571594, -0.2517111003398895, 0.1083584874868393, -0.19754555821418762, 0.3764650225639343, 0.0067420825362205505, 0.14334174990653992, -0.48306402564048767, 0.07406563311815262, -0.03610655665397644, -0.05775517225265503, -0.04754593223333359, 0.03418419137597084, -0.5273028016090393, 0.09967120736837387, -0.3856765031814575, 0.19215025007724762, 0.16394920647144318, 0.43702375888824463, -0.1329730600118637, 0.16763654351234436, -0.16699106991291046, 0.2914549708366394, 0.34130042791366577, -0.5667745471000671, -0.3351866602897644, 0.22157786786556244, 0.03179343044757843, -0.5315789580345154, 0.05158504471182823, 0.058191683143377304, 0.4367116689682007, 0.03125433623790741, 0.45289257168769836, -0.16418397426605225, -0.09607796370983124, 0.1280757486820221, -0.07425345480442047, 0.037208233028650284, -0.13915061950683594, 0.08312346041202545, -0.3158685863018036, -0.23924490809440613, -0.07013299316167831, 0.11495307832956314, 0.15281037986278534, 0.2315308302640915, -0.18244235217571259, -0.04744841903448105, 0.03387647122144699, 0.03827282786369324, 0.13031625747680664, 0.2764236629009247, 0.04459229111671448, 0.1654510796070099, 0.0012382343411445618, -0.12202568352222443, 0.23663999140262604, 0.3606572151184082, -0.26677125692367554, -0.4080091714859009, -0.005506336688995361, -0.03550872579216957, 0.25810107588768005, 0.07406162470579147, -0.1869596242904663, -0.05645710974931717, -0.29637715220451355, 0.011171877384185791, -0.07145102322101593, 0.1902812123298645, 0.48042401671409607, -0.07788623869419098, -0.37689054012298584, -0.6103820204734802, 0.16139325499534607, 0.10025492310523987, 0.014490261673927307, 0.5090965032577515, -0.1684102863073349, -0.2636222541332245, 0.4866533875465393, 0.09405689686536789, 0.6123241186141968, -0.12722286581993103, -0.08780907094478607, 0.14264443516731262, 0.1132468432188034, 0.3553875982761383, -0.031267520040273666, 0.016754284501075745, -0.42920172214508057, -0.02133922278881073, -0.0667041689157486, -0.23316806554794312, 0.23041808605194092, 0.34857088327407837, -0.1894579380750656, 0.11646723747253418, 0.006588973104953766, 0.4110317826271057, -0.040114372968673706, 0.12077875435352325, 0.26150020956993103, -0.4369440972805023, -0.21263441443443298, 0.33019569516181946, -0.13079600036144257, 0.02711337059736252, -0.10175906866788864, -0.054617226123809814, -0.22105401754379272, -0.2838740646839142, -0.2676754593849182, -0.04280693829059601, -0.5681089758872986, 0.35808318853378296, -0.028971191495656967, 0.028407923877239227, 0.28312650322914124, 0.3539124131202698, 0.19210675358772278, 0.29027286171913147, -0.0644250139594078, -0.02876507118344307, 0.1674305945634842, 0.1439157873392105, -0.008014388382434845, -0.09168167412281036, 0.12531276047229767, 0.041778817772865295, -0.12906065583229065, 0.0896146222949028, -0.08457295596599579, -0.1493302583694458, -0.12743671238422394, -0.09916165471076965, 0.23952077329158783, -0.5454428195953369, -0.2835674583911896, -0.2808869779109955, -0.09224569797515869, -0.17476700246334076, 0.19645141065120697, 0.014883320778608322, 0.013983985409140587, 0.3123816251754761, -0.20659421384334564, -0.2695232629776001, 0.061765775084495544, 0.10664936900138855, -0.06982295960187912, 0.17050756514072418, 0.4268482029438019, 0.012101981788873672, -0.04653368517756462, -0.33609873056411743, 0.1795167326927185, 0.11918142437934875, -0.37741991877555847, 0.17382889986038208, -0.10107425600290298, -0.015217982232570648, 0.06079235300421715, 0.22857877612113953, 0.10354845225811005, 0.11699561774730682, 0.21952231228351593, -0.21816876530647278, -0.3500104248523712, -0.0041087716817855835, -0.20890019834041595, 0.36085841059684753, 0.1046222522854805, 0.27333760261535645, -0.05056107044219971, -0.03508472442626953, -0.3905481696128845, 0.12636873126029968, -0.13494522869586945, 0.1696079522371292, 0.2214270383119583, 0.1292126625776291, 0.1033269390463829, 0.0384703166782856, 0.1562616229057312, 0.35083627700805664, -0.2635570764541626, -0.273426353931427, -0.1393740475177765, 0.04894186556339264, 0.23699843883514404, -0.18488232791423798, 0.10326168686151505, -0.1323675513267517, -0.3075628876686096, -0.25865787267684937, -0.05603862553834915, 0.24638590216636658, -0.17265789210796356, 0.2121625393629074, 0.08827082812786102, 0.05334389954805374, 0.09318965673446655, 0.06737018376588821, -0.06312209367752075, 0.011818520724773407, 0.0031365924514830112, 0.15289083123207092, 0.1373865008354187, -0.12225993722677231, -0.11247885972261429, 0.10237853974103928, 0.011909149587154388, 0.08242613822221756, 0.1578250676393509, -0.23289908468723297, 0.07446253299713135, 0.21151699125766754, 0.27252206206321716, 0.10736396908760071, -0.40620508790016174, -0.0651642307639122, 0.3674580156803131, 0.3092103898525238, -0.15679813921451569, -0.07733310014009476, 0.4437192976474762, 0.0717485323548317, 0.14197741448879242, 0.2614399194717407, 0.11257652938365936, 0.1157526969909668, -0.25280600786209106, -0.1444798707962036, 0.13031046092510223, -0.1338517665863037, 0.3573175370693207, 0.48072266578674316, -0.1113092303276062, 0.07381266355514526, 0.23186925053596497, 0.21450404822826385, 0.17987526953220367, 0.6407538652420044, -0.1027308776974678, 0.4042496085166931, 0.15371984243392944, -0.08888401091098785, 0.2393779754638672, -0.4293387830257416, 0.32330122590065, 0.09970029443502426, -0.12099124491214752, 0.1440596878528595, -0.1215435266494751, 0.22683531045913696, -0.2595483362674713, 0.006333412602543831, -0.1651708483695984, 0.03484347462654114, -0.2834737300872803, -0.00035265740007162094, -0.09228088706731796, -0.04600776359438896, 0.14856992661952972, -0.2673057019710541, -0.10608027875423431, -0.18382146954536438, 0.2417488992214203, -0.11520592868328094, -0.008453436195850372, -0.21452558040618896, -0.12572944164276123, 0.11787446588277817, -0.0035539641976356506, -0.21240536868572235, 0.07510865479707718, -0.15163330733776093, 0.0578426755964756, -0.1489548534154892, 0.3527967929840088, 0.36544984579086304, 0.5458378791809082, -0.10880319774150848, 0.05832500383257866, 0.1497376263141632, -0.05262463912367821, 0.13730938732624054, 0.09949127584695816, 0.13393016159534454, 0.03249132260680199, 0.4296289086341858, 0.17087602615356445, -0.17307306826114655, -0.10641083121299744, 0.15638607740402222, 0.36006826162338257, -0.09987805783748627, 0.0602862685918808, -0.13641174137592316, -0.06251344084739685, -0.18647727370262146, 0.2816992700099945, -0.21341174840927124, -0.16224391758441925, 0.6050927042961121, 0.02696135640144348, 0.34532198309898376, -0.24748237431049347, 0.14591534435749054, -0.11328098177909851, 0.4964216947555542, 0.1137201115489006, -0.027394995093345642, -0.39463287591934204, -0.302386999130249, -0.4063783586025238, 0.102287657558918, -0.37662941217422485, 0.07846888899803162, -0.08807525783777237, 0.030101267620921135, -0.037029094994068146, 0.0664108619093895, 0.12079969048500061, -0.2222498655319214, -0.14651305973529816, 0.27605023980140686, -0.22534716129302979, -0.24995951354503632, -0.32561343908309937, -0.0829017162322998, 0.3331923186779022, -0.3161221742630005, -0.08584864437580109, 0.003405545838177204, 0.14386749267578125, -0.26194876432418823, 0.029976248741149902, 0.08298380672931671, -0.08846412599086761, 0.5856485962867737, 0.1630413681268692, 0.30993473529815674, 0.019262604415416718, -0.06434456259012222, -0.17921407520771027, -0.17159168422222137, -0.09057154506444931, 0.29272356629371643, 0.06168420612812042, 0.6076012849807739, -0.14915509521961212, -0.0012976489961147308, -0.3115741014480591, -0.10975019633769989, 0.16414202749729156, -0.08573736995458603, -0.26548174023628235, 0.24440395832061768, -0.01813589781522751, -0.04404807835817337, 0.1009715124964714, 0.24559485912322998, -0.08197207748889923, 0.5150864124298096, -0.008099988102912903, -0.2914104461669922, 0.5103007555007935, -0.5262159109115601, -0.35048753023147583, 0.1792103797197342, 0.002451688051223755, -0.07367124408483505, -0.22782419621944427, -0.5044872164726257, 0.09551344066858292, 0.3978458046913147, -0.07570884376764297, -0.09643547236919403, 0.05446185916662216, -0.24284031987190247, 0.16268718242645264, -0.02768496423959732, 0.2933388352394104, -0.20391064882278442, -0.10677396506071091, 0.21424296498298645, -0.2125304937362671 ]
https://github.com/huggingface/datasets/issues/2106
WMT19 Dataset for Kazakh-English is not formatted correctly
Hi ! Thanks for reporting By looking at the raw `news-commentary-v14.en-kk.tsv` file, it looks like there are at least 17 lines with this issue. Moreover these issues are not always the same: - L97 is only `kk` text and must be appended at the end of the `kk` text of the **next** line - L2897 is only `kk` text and must be appended at the end of the `kk` text of the **previous** line - L1247 and L1248 are only `kk` texts and must be inserted at the **beginning** of the `kk` text of the next line - (and there are many others) It would be nice to have a corrected version of this file ! The file is available in the `wmt/news-commentary` repository on the Datasets Hub here: https://huggingface.co/datasets/wmt/news-commentary/tree/main/v14/training Then maybe we can notify the WMT authors and host the corrected version somewhere
In addition to the bug of languages being switched from Issue @415, there are incorrect translations in the dataset because the English-Kazakh translations have a one off formatting error. The News Commentary v14 parallel data set for kk-en from http://www.statmt.org/wmt19/translation-task.html has a bug here: > Line 94. The Swiss National Bank, for its part, has been battling with the deflationary effects of the franc’s dramatic appreciation over the past few years. Швейцарияның Ұлттық банкі өз тарапынан, соңғы бірнеше жыл ішінде франк құнының қатты өсуінің дефляциялық әсерімен күресіп келеді. > > Line 95. Дефляциялық күштер 2008 жылы терең және ұзаққа созылған жаһандық дағдарысқа байланысты орын алған ірі экономикалық және қаржылық орын алмасулардың арқасында босатылды. Жеке қарыз қаражаты үлесінің қысқаруы орталық банктің рефляцияға жұмсалған күш-жігеріне тұрақты соққан қарсы желдей болды. > > Line 96. The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды. As you can see, line 95 has only the Kazakh translation which should be part of line 96. This causes all of the following English-Kazakh translation pairs to be one off rendering ALL of those translations incorrect. This issue was not fixed when the dataset was imported to Huggingface. By running this code ``` import datasets from datasets import load_dataset dataset = load_dataset('wmt19', 'kk-en') for key in dataset['train']['translation']: if 'The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008.' in key['kk']: print(key['en']) print(key['kk']) break ``` we get: > 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды. > The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. which shows that the issue still persists in the Huggingface dataset. The Kazakh sentence matches up to the next English sentence in the dataset instead of the current one. Please let me know if there's you have any ideas to fix this one-off error from the dataset or if this can be fixed by Huggingface.
144
WMT19 Dataset for Kazakh-English is not formatted correctly In addition to the bug of languages being switched from Issue @415, there are incorrect translations in the dataset because the English-Kazakh translations have a one off formatting error. The News Commentary v14 parallel data set for kk-en from http://www.statmt.org/wmt19/translation-task.html has a bug here: > Line 94. The Swiss National Bank, for its part, has been battling with the deflationary effects of the franc’s dramatic appreciation over the past few years. Швейцарияның Ұлттық банкі өз тарапынан, соңғы бірнеше жыл ішінде франк құнының қатты өсуінің дефляциялық әсерімен күресіп келеді. > > Line 95. Дефляциялық күштер 2008 жылы терең және ұзаққа созылған жаһандық дағдарысқа байланысты орын алған ірі экономикалық және қаржылық орын алмасулардың арқасында босатылды. Жеке қарыз қаражаты үлесінің қысқаруы орталық банктің рефляцияға жұмсалған күш-жігеріне тұрақты соққан қарсы желдей болды. > > Line 96. The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды. As you can see, line 95 has only the Kazakh translation which should be part of line 96. This causes all of the following English-Kazakh translation pairs to be one off rendering ALL of those translations incorrect. This issue was not fixed when the dataset was imported to Huggingface. By running this code ``` import datasets from datasets import load_dataset dataset = load_dataset('wmt19', 'kk-en') for key in dataset['train']['translation']: if 'The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008.' in key['kk']: print(key['en']) print(key['kk']) break ``` we get: > 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды. > The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. which shows that the issue still persists in the Huggingface dataset. The Kazakh sentence matches up to the next English sentence in the dataset instead of the current one. Please let me know if there's you have any ideas to fix this one-off error from the dataset or if this can be fixed by Huggingface. Hi ! Thanks for reporting By looking at the raw `news-commentary-v14.en-kk.tsv` file, it looks like there are at least 17 lines with this issue. Moreover these issues are not always the same: - L97 is only `kk` text and must be appended at the end of the `kk` text of the **next** line - L2897 is only `kk` text and must be appended at the end of the `kk` text of the **previous** line - L1247 and L1248 are only `kk` texts and must be inserted at the **beginning** of the `kk` text of the next line - (and there are many others) It would be nice to have a corrected version of this file ! The file is available in the `wmt/news-commentary` repository on the Datasets Hub here: https://huggingface.co/datasets/wmt/news-commentary/tree/main/v14/training Then maybe we can notify the WMT authors and host the corrected version somewhere
[ -0.0953303799033165, -0.5491964817047119, -0.043218035250902176, 0.31620585918426514, -0.08602659404277802, 0.010772205889225006, 0.18379093706607819, 0.172209694981575, -0.11406640708446503, 0.20220893621444702, 0.1289513260126114, 0.09879258275032043, 0.11172646284103394, 0.5228424668312073, 0.050247613340616226, -0.21062856912612915, 0.11432063579559326, -0.19415047764778137, -0.25926944613456726, -0.13412770628929138, -0.06606023013591766, 0.10563117265701294, -0.4930417537689209, -0.0548008531332016, -0.4117452800273895, -0.11516474932432175, -0.15023300051689148, -0.07856202870607376, -0.06588109582662582, -0.19561204314231873, 0.07030459493398666, 0.1335618495941162, -0.10531257838010788, 0.35102200508117676, -0.00011126763274660334, -0.2417628914117813, 0.02156425639986992, -0.029725098982453346, -0.16293762624263763, 0.0762895718216896, -0.12577760219573975, -0.8057078719139099, -0.21128955483436584, -0.12044310569763184, -0.10379718989133835, -0.4211288094520569, -0.1573447734117508, 0.04983622580766678, 0.30655527114868164, 0.10483569651842117, 0.18539251387119293, 0.28816869854927063, -0.0026123858988285065, -0.11872995644807816, -0.18591278791427612, -0.020366929471492767, -0.15856270492076874, 0.019885126501321793, 0.11007015407085419, 0.15269097685813904, -0.11945068091154099, 0.6587658524513245, 0.01184273324906826, -0.11081963777542114, -0.02994140237569809, -0.11550305038690567, -0.14760610461235046, 0.02715872973203659, 0.07761098444461823, 0.45032694935798645, 0.4413161277770996, 0.017042484134435654, -0.05189621448516846, -0.18494319915771484, 0.04044865444302559, -0.3243753910064697, 0.07022988051176071, 0.15095268189907074, -0.20879100263118744, 0.16877108812332153, 0.02220865711569786, 0.31000763177871704, 0.09863406419754028, 0.05401071161031723, -0.20075948536396027, 0.4679334759712219, -0.14769390225410461, 0.02706281468272209, 0.05422564968466759, -0.04148689657449722, -0.11182178556919098, -0.06095237284898758, -0.013524632900953293, -0.14183714985847473, -0.1481645256280899, -0.0013135746121406555, -0.09524042159318924, -0.21983835101127625, 0.1539943814277649, -0.5207995772361755, -0.11590416729450226, 0.35599660873413086, -0.2307443469762802, -0.17779406905174255, 0.19276006519794464, 0.5753378868103027, 0.05765741318464279, -0.34042856097221375, 0.14004264771938324, 0.16387130320072174, 0.005113668739795685, -0.00427652895450592, 0.0858227089047432, -0.4291132986545563, -0.28519490361213684, 0.13752838969230652, -0.055442050099372864, -0.03889727592468262, -0.0930313840508461, 0.12234721332788467, 0.19579356908798218, -0.14406029880046844, -0.23109184205532074, 0.019781779497861862, -0.11389200389385223, 0.42916274070739746, -0.16121351718902588, 0.06445667147636414, -0.1776588410139084, -0.1697155237197876, -0.17971941828727722, -0.13991476595401764, -0.3185175657272339, -0.03268750011920929, -0.1918262541294098, 0.12692534923553467, 0.25996431708335876, 0.23285850882530212, 0.010589547455310822, -0.08165714144706726, -0.3358830511569977, -0.07449153065681458, 0.47503480315208435, 0.23535127937793732, -0.10940663516521454, 0.18947739899158478, -0.06725338101387024, 0.08552423119544983, 0.001310497522354126, 0.018460769206285477, -0.30522552132606506, 0.2370878905057907, -0.01271406002342701, 0.12227334827184677, -0.12848110496997833, -0.09589079022407532, -0.27419209480285645, 0.5493564605712891, 0.023612283170223236, -0.01649807021021843, 0.1953630894422531, -0.10729336738586426, -0.39070889353752136, -0.12507987022399902, 0.260344535112381, 0.19206449389457703, -0.35595303773880005, -0.028467368334531784, 0.10109452903270721, -0.051799822598695755, 0.49394941329956055, 0.4126812815666199, 0.1056017279624939, 0.14405788481235504, -0.020315246656537056, 0.17872260510921478, -0.07873664051294327, 0.04091958329081535, -0.3128334879875183, 0.013483716174960136, -0.27290958166122437, 0.4639534056186676, -0.015617161989212036, 0.028868066146969795, 0.060427963733673096, 0.2915114164352417, 0.1621893346309662, 0.04575240612030029, 0.0671483725309372, 0.23639369010925293, -0.28661662340164185, -0.3670729100704193, 0.6842616200447083, -0.19204005599021912, 0.16208204627037048, -0.3465862572193146, 0.023774072527885437, -0.1346558779478073, 0.5904832482337952, 0.2387704998254776, 0.12028258293867111, -0.13349677622318268, -0.07767243683338165, 0.048344872891902924, 0.25634482502937317, 0.15257638692855835, -0.26150739192962646, 0.20690640807151794, 0.19942210614681244, 0.4913659989833832, 0.23914143443107605, 0.1307506412267685, -0.17878279089927673, -0.18405619263648987, -0.2560293972492218, -0.3216759264469147, 0.2132313847541809, 0.08678926527500153, -0.469619482755661, 0.35065004229545593, -0.06355763226747513, -0.044705234467983246, -0.06722386181354523, -0.02600216306746006, -0.2125886231660843, -0.029751013964414597, -0.008949829265475273, -0.028549309819936752, -0.15087944269180298, 0.2967284023761749, 0.2445807158946991, 0.18122093379497528, -0.2409954071044922, 0.09130042791366577, 0.0638270452618599, 0.6336420178413391, -0.11218737810850143, -0.24152155220508575, 0.2419116497039795, -0.7164648771286011, 0.03525293990969658, 0.11812643706798553, -0.05932898819446564, -0.0951412171125412, 0.12399663776159286, 0.4310067892074585, -0.015163198113441467, 0.06345444917678833, -0.1755179762840271, 0.08949179202318192, 0.25131598114967346, -0.059186819940805435, -0.07287188619375229, -0.2587551772594452, 0.16871409118175507, -0.23818399012088776, -0.21763545274734497, -0.03305315226316452, -0.14340366423130035, 0.39360281825065613, 0.5164347887039185, 0.2517269551753998, 0.2264307737350464, -0.10313291102647781, -0.41071590781211853, -0.1604110300540924, 0.3795117139816284, 0.21755538880825043, -0.08694085478782654, 0.09453634172677994, 0.17230413854122162, 0.29952794313430786, 0.11390726268291473, -0.13244113326072693, 0.1295519918203354, 0.020616959780454636, 0.09545975178480148, 0.28053390979766846, -0.10220945626497269, 0.020655445754528046, -0.26307976245880127, 0.5188570022583008, -0.13021567463874817, 0.044532109051942825, -0.18247103691101074, -0.17196673154830933, -0.43524879217147827, -0.08660471439361572, -0.5954184532165527, -0.38023874163627625, -0.1560969352722168, -0.4191433787345886, 0.021924706175923347, -0.21711063385009766, -0.28219830989837646, 0.273041307926178, 0.5708175301551819, 0.1382266879081726, -0.3288728594779968, 0.6834560036659241, -0.3291599452495575, -0.531125009059906, -0.190489262342453, 0.07646073400974274, 0.23307614028453827, 0.5193157196044922, 0.10680461674928665, -0.41996726393699646, -0.14015838503837585, -0.057606518268585205, -0.6339117884635925, 0.1419069617986679, -0.3691796064376831, -0.06520386040210724, -0.05829392373561859, 0.3191213607788086, -0.2513321042060852, -0.15171118080615997, 0.2821585536003113, -0.13809067010879517, -0.07859431952238083, 0.3749209940433502, -0.20439653098583221, -0.1959826648235321, -0.18057334423065186, -0.4409826099872589, -0.3408246338367462, -0.15625537931919098, 0.2199537754058838, -0.3337591886520386, -0.26535046100616455, 0.4110272526741028, 0.235520139336586, 0.014329859055578709, -0.30281326174736023, 0.13742192089557648, -0.229539155960083, -0.12518201768398285, 0.03687159717082977, -0.07913871854543686, -0.4876857101917267, 0.19587069749832153, 0.19557195901870728, -0.11935007572174072, -0.09728499501943588, -0.19420959055423737, 0.49391335248947144, -0.006794551387429237, -0.16694791615009308, 0.1840144395828247, 0.13531716167926788, 0.011821165680885315, -0.06235845014452934, -0.002810360863804817, -0.17534193396568298, -0.23689207434654236, -0.06167764216661453, -0.013280998915433884, 0.16507309675216675, -0.22056075930595398, 0.2217828333377838, 0.3598543703556061, 0.27680352330207825, 0.14675985276699066, 0.2321692854166031, -0.07834860682487488, -0.08498280495405197, 0.3804537355899811, -0.007025495171546936, -0.19662922620773315, -0.007207790389657021, -0.24643823504447937, 0.09876260906457901, 0.534259557723999, -0.036202654242515564, 0.3417961001396179, -0.09598690271377563, -0.43182042241096497, -0.32600510120391846, -0.300572007894516, 0.16341547667980194, 0.13657937943935394, 0.22032225131988525, 0.1938868761062622, 0.0029764994978904724, -0.01214274950325489, -0.25413861870765686, 0.011944429948925972, 0.18174758553504944, -0.3233281075954437, 0.14961396157741547, -0.6493251919746399, -0.3908015787601471, -0.21011587977409363, 0.17832055687904358, 0.19084645807743073, 0.5266019105911255, 0.021693307906389236, -0.08679138123989105, 0.014721877872943878, 0.0041496166959404945, 0.12252945452928543, 0.11750980466604233, -0.05267927050590515, 0.0036356505006551743, -0.10444548726081848, -0.2852305471897125, -0.19018226861953735, -0.18881107866764069, -0.27421286702156067, -0.1602446436882019, 0.38073354959487915, -0.01782645285129547, -0.05379652976989746, -0.034060288220644, 0.5762072205543518, -0.4829648435115814, 0.05474027618765831, -0.30976396799087524, -0.24681654572486877, -0.07788047194480896, 0.10562746971845627, -0.08282821625471115, -0.20355604588985443, -0.24679669737815857, 0.17389939725399017, 0.3307298719882965, 0.21223875880241394, -0.051181405782699585, 0.2393714338541031, 0.4279060959815979, 0.16973252594470978, -0.04597340524196625, 0.34365126490592957, -0.1851816326379776, 0.5676727294921875, 0.325920969247818, -0.10275055468082428, -0.016861185431480408, -0.4144355356693268, -0.4195939302444458, 0.4677900969982147, 0.4874897301197052, -0.14034579694271088, 0.25922730565071106, 0.5915625095367432, -0.007006615400314331, -0.2882351875305176, -0.06280145794153214, 0.35770484805107117, 0.402876615524292, -0.23601309955120087, -0.03688310831785202, 0.12287701666355133, -0.13774549961090088, 0.10441222786903381, 0.09242545068264008, 0.10913021117448807, -0.16216465830802917, 0.1848955601453781, -0.0433543398976326, 0.8865995407104492, 0.22568292915821075, 0.2615561783313751, 0.3602929413318634, 0.03307671099901199, 0.073906309902668, 0.13859300315380096, -0.1617923229932785, -0.0941576212644577, 0.004583185538649559, -0.04669180139899254, 0.22198385000228882, 0.15276771783828735, -0.07321122288703918, -0.3241305649280548, 0.2243204265832901, 0.10237421095371246, 0.5825107097625732, -0.14134927093982697, -0.1016586422920227, 0.29417291283607483, -0.06178208068013191, -0.2273467779159546, 0.08877454698085785, -0.1416039764881134, 0.0437636598944664, -0.12338662147521973, -0.18491044640541077, -0.10140731930732727, -0.15011727809906006, -0.32511764764785767, -0.0241002906113863, -0.2945803701877594, -0.10345079749822617, -0.21351423859596252, 0.017953090369701385, -0.0029564090073108673, 0.0186118446290493, 0.41010379791259766, 0.20338959991931915, -0.05462484806776047, -0.03765566274523735, 0.24043187499046326, 0.20631800591945648, 0.01485532708466053, -0.00659848190844059, 0.20286253094673157, -0.22637885808944702, -0.25335627794265747, 0.06463730335235596, -0.1127077266573906, 0.23606975376605988, -0.03395242989063263, -0.053327545523643494, -0.006304487586021423, 0.2633964717388153, 0.04964189603924751, 0.35282763838768005, 0.1620621681213379, -0.4291362464427948, 0.10873164236545563, -0.08651898801326752, -0.1663237363100052, 0.3700786232948303, 0.22349201142787933, -0.2619771361351013, -0.17548273503780365, 0.06725619733333588, 0.21988558769226074, 0.15499676764011383, 0.32927295565605164, 0.3228926360607147, -0.15894806385040283, -0.23085573315620422, 0.1641918122768402, 0.1783347874879837, -0.3057083487510681, 0.04981674998998642, -0.12268014997243881, 0.01450115442276001, -0.24617010354995728, 0.7356241941452026, 0.2438766211271286, -0.3041030466556549, -0.1008894294500351, -0.22220343351364136, -0.22467654943466187, 0.4648393988609314, 0.2148209661245346, 0.02231685072183609, 0.27170950174331665, 0.32226648926734924, 0.02779834158718586, 0.15682856738567352, -0.3618488609790802, 0.055300526320934296, 0.1475103199481964, 0.08929791301488876, -0.23312392830848694, 0.12359489500522614, 0.07840964943170547, -0.04598691686987877, -0.04910556226968765, 0.04902262985706329, -0.13689826428890228, -0.17570117115974426, -0.2522904574871063, 0.07033956795930862, 0.1060347929596901, -0.20248326659202576, 0.1298440396785736, -0.12092693150043488, -0.010206665843725204, -0.2606370151042938, -0.03911503404378891, 0.30323436856269836, 0.02140519767999649, 0.656204342842102, 0.5113464593887329, 0.37484011054039, -0.1676582247018814, 0.03063756600022316, 0.14141443371772766, 0.040830206125974655, -0.021517334505915642, -0.0742199644446373, 0.05764054134488106, -0.014035552740097046, 0.018179945647716522, 0.0019829794764518738, -0.07014165818691254, 0.3109591603279114, 0.03145731985569, -0.05690693110227585, 0.14990967512130737, -0.07563050091266632, 0.25674307346343994, 0.23281800746917725, -0.0061737000942230225, -0.13683108985424042, 0.13346827030181885, 0.1260898858308792, -0.35533249378204346, 0.06958720088005066, 0.2315458357334137, -0.24979089200496674, 0.2247118055820465, -0.05470789223909378, 0.6976215243339539, -0.171284019947052, 0.12964308261871338, -0.05975707992911339, -0.16111497581005096, -0.2872351408004761, 0.2644672691822052, 0.17096418142318726, -0.09302014112472534, 0.26800087094306946, -0.09163354337215424, -0.052560631185770035, -0.10023828595876694, 0.0008200518786907196, 0.18949413299560547, 0.36144062876701355, 0.32508349418640137, -0.006128881126642227, -0.07622047513723373, -0.17648355662822723, 0.3923090696334839, 0.2627929747104645, -0.5786653161048889, -0.011880718171596527, 0.31520360708236694, 0.4003911018371582, 0.026182331144809723, -0.2331155389547348, -0.196028932929039, 0.14542193710803986, -0.48167628049850464, 0.09716896712779999, -0.09881046414375305, -0.15273240208625793, -0.16370496153831482, -0.13874593377113342, -0.16914117336273193, 0.11892005056142807, 0.21135619282722473, -0.0596013218164444, -0.23627232015132904, 0.06460418552160263, -0.3638756275177002, -0.004196878522634506, 0.15477634966373444, -0.23151007294654846, 0.17448639869689941, 0.258504182100296, -0.05606567859649658, -0.02166476473212242, 0.4135412275791168, 0.14564016461372375, 0.2127303034067154, 0.020572945475578308, -0.15733496844768524, 0.21029412746429443, 0.031232768669724464, 0.045017898082733154, 0.2843783497810364, 0.2946202754974365, -0.07311417162418365, 0.1628483533859253, 0.14275553822517395, -0.24512192606925964, -0.10935844480991364, 0.4080248773097992, -0.07035993039608002, -0.14832773804664612, -0.3365430235862732, -0.22678354382514954, 0.010314606130123138, -0.16614575684070587, 0.010660447180271149, -0.062347542494535446, 0.044760819524526596, 0.44900667667388916, -0.07464610040187836, 0.08885348588228226, -0.15170694887638092, 0.12232935428619385, 0.22191542387008667, 0.690631091594696, 0.29634547233581543, -0.16482767462730408, -0.008999149315059185, -0.30205264687538147, -0.7928385734558105, 0.28977492451667786, -0.08511881530284882, 0.4469282329082489, -0.08661668002605438, -0.12004631757736206, 0.35751423239707947, 0.26405400037765503, 0.2136467546224594, 0.27240830659866333, -0.18451054394245148, -0.1393783688545227, -0.48093181848526, 0.09020248055458069, 0.3914106488227844, -0.03300119936466217, -0.0831681489944458, -0.10770326852798462, 0.30519506335258484, -0.11508706212043762, 0.0880974754691124, -0.003988649696111679, 0.04518307000398636, -0.3098979890346527, 0.20563986897468567, 0.22384776175022125, 0.07491392642259598, 0.3904035985469818, -0.07487183064222336, -0.15208593010902405, -0.1948975920677185, -0.11830082535743713, -0.013814624398946762, 0.3537478446960449, 0.01098613627254963, 0.23066246509552002, 0.18195012211799622, -0.009918324649333954, 0.015074486844241619, -0.009737547487020493, 0.19719789922237396, -0.08326640725135803, -0.33647459745407104, 0.2710092067718506, 0.19839295744895935, -0.23607005178928375, 0.1953924149274826, 0.5181952118873596, 0.13699164986610413, -0.08912622183561325, -0.26694321632385254, -0.2945525050163269, 0.100522480905056, -0.169259175658226, -0.2758890688419342, -0.2625383138656616, -0.13983461260795593, 0.33321958780288696, 0.04445015266537666, -0.19319573044776917, 0.004304505884647369, 0.09157351404428482, 0.3010493218898773, 0.025111529976129532, 0.10656856000423431, -0.2855905592441559, -0.13504831492900848, 0.05771462246775627, 0.20764704048633575, 0.35846689343452454, -0.2832905054092407, -0.17357578873634338, -0.09660134464502335 ]
https://github.com/huggingface/datasets/issues/2105
Request to remove S2ORC dataset
Hello @kyleclo! Currently, we are getting the data from your bucket, so if you remove it the HF script won't work anymore :) Until you solve things on your end, @lhoestq suggested we just return a warning message when people try to load that dataset from HF. What would you like it to say?
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
54
Request to remove S2ORC dataset Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! Hello @kyleclo! Currently, we are getting the data from your bucket, so if you remove it the HF script won't work anymore :) Until you solve things on your end, @lhoestq suggested we just return a warning message when people try to load that dataset from HF. What would you like it to say?
[ 0.24974586069583893, -0.3549622893333435, -0.015487640164792538, 0.21698696911334991, 0.050979260355234146, -0.05997943878173828, 0.01536288857460022, 0.17014701664447784, 0.30050936341285706, 0.06499674916267395, -0.31514471769332886, -0.24191626906394958, -0.39715227484703064, 0.36707907915115356, -0.20821347832679749, 0.1481843739748001, -0.12109033018350601, 0.047344956547021866, -0.2688438594341278, -0.021625638008117676, 0.10517264902591705, 0.24627205729484558, -0.05332852154970169, 0.3302410840988159, -0.220481276512146, -0.18248800933361053, 0.0003756992518901825, 0.2880861461162567, -0.16819624602794647, -0.3303513526916504, 0.3342997133731842, 0.34460699558258057, 0.19433578848838806, 0.478293776512146, -0.00011910362809430808, -0.225905641913414, -0.0449477955698967, 0.06342040002346039, -0.33630427718162537, -0.050386056303977966, -0.06390691548585892, 0.08309020847082138, -0.03904528170824051, 0.07060278207063675, -0.17678391933441162, -0.13289311528205872, 0.09462413936853409, -0.1127747893333435, 0.4514957666397095, 0.22375953197479248, 0.14729060232639313, 0.5189121961593628, -0.26798853278160095, 0.23563474416732788, 0.0838875100016594, 0.5844472050666809, -0.09682821482419968, 0.3613196015357971, -0.15073521435260773, -0.13441485166549683, 0.020634517073631287, 0.35446643829345703, -0.4820706248283386, -0.08086049556732178, 0.3423902690410614, -0.2815229892730713, -0.34630608558654785, -0.2894933819770813, 0.19050487875938416, 0.360924631357193, 0.5013285279273987, -0.18495142459869385, -0.008570457808673382, 0.032625965774059296, 0.05868334695696831, 0.07041529566049576, 0.0936761423945427, 0.1089068204164505, 0.06317408382892609, 0.4538690745830536, -0.2132693976163864, -0.5096264481544495, -0.23869581520557404, -0.17016646265983582, -0.1918974220752716, 0.27411216497421265, -0.23317541182041168, -0.04427517205476761, 0.07564873993396759, -0.012830562889575958, 0.12449373304843903, -0.1404351145029068, -0.1270952671766281, 0.2118844836950302, -0.123220294713974, -0.35875341296195984, -0.1462813913822174, 0.09784237295389175, 0.33823227882385254, -0.005484331399202347, -0.03390522673726082, -0.10314957052469254, -0.35795292258262634, 0.1639176905155182, 0.2696821093559265, -0.10689911246299744, 0.1650606244802475, 0.0802447721362114, 0.2007361352443695, 0.371096134185791, 0.268778532743454, 0.1058005839586258, 0.20097173750400543, 0.1437757909297943, -0.2677750587463379, 0.02069314382970333, 0.4212612509727478, -0.45055001974105835, -0.4954603314399719, 0.37647387385368347, -0.039621103554964066, -0.12548409402370453, 0.15023967623710632, 0.27727609872817993, 0.10187286138534546, -0.019523747265338898, 0.14541181921958923, 0.11652792245149612, -0.18445205688476562, -0.3579523265361786, -0.16027985513210297, 0.2095673680305481, -0.2512294352054596, 0.12039577215909958, 0.1802690327167511, -0.13129523396492004, 0.1287759244441986, 0.11436688154935837, 0.6399714946746826, 0.24060946702957153, -0.1666060835123062, -0.14662374556064606, 0.26038429141044617, 0.12038743495941162, -0.18112073838710785, 0.0802048072218895, 0.1370404213666916, 0.09619256854057312, -0.2488337755203247, 0.08905919641256332, -0.30992642045021057, -0.28022512793540955, -0.516004741191864, 0.04205421730875969, -0.1513458788394928, 0.048192091286182404, -0.35679787397384644, -0.05156751349568367, -0.3598997890949249, 0.10257205367088318, 0.24367189407348633, 0.1525045931339264, -0.4501982629299164, -0.003485517343506217, -0.19811905920505524, 0.5347216725349426, -0.06696978956460953, -0.00425676628947258, 0.37850654125213623, -0.34934210777282715, 0.012876071035861969, 0.4040500819683075, -0.23833151161670685, -0.25350916385650635, -0.4391377866268158, -0.14142049849033356, -0.5946816205978394, -0.1744574010372162, 0.09928765892982483, 0.5375519394874573, -0.2992703914642334, 0.21322859823703766, 0.009956233203411102, -0.20312608778476715, 0.01132228970527649, -0.556486189365387, -0.09735284745693207, -0.08954942971467972, 0.26819926500320435, -0.2259254902601242, -0.22788287699222565, -0.3242281377315521, 0.06123211234807968, -0.10262875258922577, 0.17503845691680908, 0.31182900071144104, 0.07676419615745544, -0.07386360317468643, 0.6009220480918884, 0.052162691950798035, 0.07974965125322342, 0.3716999888420105, 0.2853856384754181, 0.24550053477287292, -0.22530119121074677, 0.0560513436794281, -0.19605225324630737, -0.06475487351417542, -0.025065429508686066, -0.07495062053203583, 0.15512606501579285, -0.2883828282356262, -0.19028106331825256, 0.0183649193495512, 0.027183357626199722, 0.1615641713142395, -0.06297581642866135, -0.3182079792022705, -0.017934881150722504, -0.11124375462532043, -0.3682822585105896, 0.6763767004013062, -0.15070486068725586, 0.15776865184307098, -0.1715860366821289, 0.15686625242233276, 0.05887365713715553, 0.28092440962791443, 0.2297970950603485, 0.08757860958576202, 0.2233128547668457, -0.01500304602086544, 0.14292779564857483, 0.2585816979408264, -0.15373007953166962, 0.08226116746664047, 0.22341781854629517, 0.4290004372596741, 0.1444983184337616, -0.1048830971121788, 0.48097464442253113, -0.08274103701114655, -0.05404584854841232, 0.20352864265441895, 0.08712712675333023, 0.2614383101463318, -0.3357444107532501, 0.05263538658618927, -0.37714093923568726, -0.17904402315616608, 0.16474385559558868, -0.06153015047311783, -0.13909874856472015, 0.012875713407993317, 0.11432497203350067, 0.15384003520011902, -0.22779293358325958, -0.08457258343696594, -0.36207830905914307, -0.109086774289608, -0.16441231966018677, -0.2193993180990219, -0.23505127429962158, 0.22999265789985657, -0.015184447169303894, -0.0578249916434288, 0.41762039065361023, -0.01151612401008606, 0.2619347870349884, 0.1280820518732071, -0.14512543380260468, 0.241123765707016, 0.31636548042297363, -0.07468477636575699, 0.24932634830474854, 0.08661940693855286, -0.035513702780008316, -0.06475798040628433, 0.10313396900892258, 0.08496026694774628, -0.37300074100494385, -0.2814784348011017, -0.32630884647369385, -0.08156164735555649, -0.399069219827652, 0.17052492499351501, -0.18779440224170685, -0.39824673533439636, 0.03128061071038246, 0.4227202832698822, -0.6007091403007507, 0.07258522510528564, 0.32272207736968994, 0.29350990056991577, -0.10041996836662292, -0.054153814911842346, -0.29067930579185486, 0.3760780394077301, -0.36065545678138733, 0.004277974367141724, -0.15755486488342285, 0.155974879860878, -0.023097742348909378, 0.04896112158894539, -0.05923215299844742, -0.07559871673583984, 0.5918326377868652, 0.04839295893907547, -0.19539238512516022, -0.24204197525978088, -0.028611354529857635, 0.2571059763431549, 0.022235337644815445, -0.2735895812511444, 0.31103360652923584, 0.4664098620414734, -0.19589588046073914, 0.08880975097417831, -0.23065565526485443, -0.31529051065444946, -0.07529190927743912, -0.02219247817993164, -0.010112461633980274, 0.16650567948818207, -0.16605953872203827, 0.3509398400783539, -0.11940603703260422, -0.12063871324062347, -0.10058017075061798, -0.24982303380966187, 0.1017664447426796, 0.15613240003585815, -0.24233120679855347, -0.037789106369018555, -0.4389006495475769, -0.2412036955356598, -0.47839629650115967, -0.7775788307189941, 0.13222354650497437, 0.1551060974597931, 0.061939921230077744, 0.3001140058040619, 0.2907041311264038, 0.024334052577614784, -0.2453390210866928, -0.4676838517189026, -0.26667556166648865, 0.11083630472421646, 0.029954005032777786, -0.07119211554527283, -0.03879084438085556, 0.13166919350624084, -0.032535698264837265, -0.04441655054688454, 0.020417504012584686, -0.13656650483608246, -0.24442797899246216, -0.007504623383283615, 0.25179699063301086, 0.032537005841732025, 0.1261017620563507, 0.022792283445596695, 0.4973382353782654, 0.1448773592710495, 0.08416786044836044, 0.4559580385684967, 0.17179806530475616, 0.36627745628356934, 0.023787379264831543, -0.24252334237098694, 0.10335253924131393, 0.14164094626903534, -0.300575315952301, 0.24407263100147247, -0.03838097304105759, 0.30732834339141846, -0.00812181830406189, -0.28715959191322327, -0.028257187455892563, -0.33995404839515686, 0.00910470262169838, 0.12800274789333344, 0.20550301671028137, 0.02488499879837036, -0.2929007112979889, 0.2974544167518616, -0.40710553526878357, 0.2614757716655731, 0.2595376670360565, 0.5409590601921082, -0.06826651841402054, -0.3393147885799408, 0.046719975769519806, -0.6888617277145386, 0.2979678213596344, -0.2771044671535492, -0.28019922971725464, -0.2462523728609085, 0.1725996732711792, 0.2283552587032318, 0.24702763557434082, 0.49862051010131836, 0.2680112421512604, 0.023535791784524918, -0.2184678316116333, -0.1825604885816574, -0.05820543318986893, -0.03621511906385422, -0.10567644238471985, 0.1881689876317978, -0.10526387393474579, 0.05004251003265381, -0.3504539430141449, -0.5315479636192322, 0.25670677423477173, -0.022587567567825317, -0.17424137890338898, -0.23617853224277496, -0.29202380776405334, -0.1977841854095459, -0.34084343910217285, 0.16771841049194336, 0.30761632323265076, 0.015389399603009224, -0.12531238794326782, 0.10183210670948029, 0.4349921941757202, 0.14730492234230042, 0.6156091690063477, -0.21142037212848663, 0.01933370530605316, 0.34394192695617676, -0.13094305992126465, 0.16889728605747223, 0.3511146306991577, 0.4098881185054779, 0.5923309922218323, 0.14207199215888977, -0.08190576732158661, 0.014037266373634338, 0.17261990904808044, 0.37727534770965576, 0.531456708908081, 0.14445945620536804, 0.23394733667373657, 0.11103930324316025, 0.5215488076210022, -0.4326656460762024, -0.0630815327167511, 0.12062681466341019, -0.3773060441017151, -0.24970699846744537, -0.09899649769067764, 0.20306673645973206, -0.0780613124370575, -0.1188458651304245, -0.14108215272426605, 0.8098534345626831, -0.18671374022960663, 0.15599165856838226, 0.15090176463127136, 1.332016110420227, -0.24792827665805817, 0.2357519119977951, 0.27129483222961426, -0.12904012203216553, 0.43221715092658997, -0.3908831477165222, -0.1765436828136444, -0.21185143291950226, -0.01620841771364212, -0.1631900817155838, 0.10252867639064789, -0.062000907957553864, 0.1435307413339615, 0.26260846853256226, 0.32811740040779114, -0.4982752799987793, 0.12903347611427307, -0.2335585653781891, 0.27665701508522034, -0.14086782932281494, 0.0030515389516949654, -0.3498927354812622, 0.07449822872877121, -0.17133061587810516, 0.4168686866760254, -0.21911898255348206, -0.06716713309288025, 0.4257993996143341, -0.3778281807899475, -0.04246397316455841, 0.044732168316841125, 0.038837555795907974, -0.15591242909431458, -0.11129064857959747, 0.04250933229923248, 0.3011123239994049, -0.0560351125895977, 0.3512803316116333, 0.02783631533384323, -0.07267865538597107, 0.05138975381851196, -0.17093664407730103, -0.08419167995452881, -0.29529064893722534, 0.08704447746276855, -0.21911104023456573, 0.04863729327917099, -0.2608416974544525, 0.1357269138097763, 0.25659480690956116, -0.018095655366778374, -0.22274243831634521, -0.041224777698516846, -0.09896120429039001, -0.3706771433353424, 0.03188086673617363, 0.11671313643455505, 0.29109299182891846, 0.15579953789710999, 0.05641918256878853, 0.31691497564315796, -0.013824714347720146, -0.31450629234313965, 0.3934533894062042, -0.2551906704902649, -0.2107524573802948, 0.28866034746170044, -0.027212470769882202, -0.2627362906932831, 0.3052182197570801, 0.16966938972473145, -0.2657028138637543, -0.3482818305492401, -0.07542549073696136, 0.05892021209001541, -0.5973586440086365, 0.025417916476726532, 0.43549683690071106, -0.16204357147216797, -0.2526148855686188, -0.21097740530967712, 0.0568806417286396, -0.0889873132109642, 0.38488462567329407, -0.0449819341301918, -0.19267672300338745, 0.2018595039844513, -0.21693919599056244, 0.048233870416879654, 0.21394622325897217, 0.09330688416957855, -0.3710496425628662, -0.13202394545078278, -0.2644646167755127, 0.016320984810590744, 0.10535689443349838, -0.2173146903514862, 0.13357840478420258, 0.29354992508888245, 0.29100361466407776, -0.2786353528499603, -0.020313287153840065, -0.09932075440883636, -0.17703501880168915, -0.07488377392292023, -0.2910594046115875, 0.22159942984580994, -0.04490095376968384, -0.16855983436107635, -0.12218525260686874, -0.18832291662693024, 0.023531528189778328, -0.004813562147319317, 0.4513421654701233, 0.7438861727714539, 0.29886287450790405, 0.22163879871368408, -0.030044812709093094, -0.25974464416503906, -0.3106905221939087, 0.0058657824993133545, 0.28515326976776123, 0.43160367012023926, 0.23423375189304352, 0.03569521754980087, -0.13490404188632965, -0.15486258268356323, -0.07751145958900452, 0.46670836210250854, 0.3720102310180664, 0.19542574882507324, 0.03206438571214676, 0.042228251695632935, -0.1331796795129776, -0.05893528833985329, 0.28704196214675903, -0.16988371312618256, -0.2773602306842804, -0.5174630880355835, 0.09165781736373901, 0.09977903962135315, -0.2205554097890854, 0.00208100164309144, 0.12063391506671906, 0.09960398823022842, -0.22728437185287476, 0.25578635931015015, 0.03283507749438286, 0.29897958040237427, 0.234299898147583, 0.04975949227809906, 0.10362928360700607, 0.04579116404056549, 0.005617981776595116, -0.1631212830543518, -0.3256465792655945, -0.11764389276504517, 0.304412841796875, 0.14181974530220032, 0.29579243063926697, -0.10290960967540741, -0.001243092119693756, 0.2620547115802765, 0.11007137596607208, 0.343668133020401, 0.06411271542310715, -0.44044002890586853, -0.1973460167646408, 0.41403070092201233, 0.0036727190017700195, -0.03597398102283478, 0.21685639023780823, 0.19782640039920807, 0.07041531801223755, -0.3362603783607483, -0.25195807218551636, 0.38275426626205444, -0.017156794667243958, 0.16197988390922546, 0.14946839213371277, 0.0006607770919799805, -0.23707586526870728, 0.031693752855062485, 0.010173123329877853, -0.1894213706254959, 0.2951088547706604, 0.041058361530303955, -0.1641434282064438, -0.06305450201034546, -0.040724016726017, 0.2460591197013855, 0.1142047569155693, 0.08090956509113312, -0.18025252223014832, 0.1558295041322708, 0.1466405987739563, 0.4085492491722107, 0.30818790197372437, 0.21870949864387512, -0.19309481978416443, 0.3625761568546295, -0.03451646864414215, -0.19153514504432678, 0.1151142567396164, 0.129553884267807, 0.19884280860424042, -0.15664273500442505, 0.15492554008960724, 0.06917820870876312, 0.03446284681558609, 0.009970537386834621, -0.09981495141983032, -0.01117999479174614, 0.2621309161186218, -0.28027844429016113, 0.31535494327545166, 0.15434207022190094, 0.1042039766907692, -0.18665412068367004, -0.015701614320278168, -0.17925594747066498, 0.035777535289525986, 0.27297651767730713, 0.019893448799848557, 0.2161610722541809, -0.07569821178913116, 0.022973470389842987, -0.11125682294368744, 0.07743948698043823, 0.5089772939682007, 0.014896426349878311, -0.3831486999988556, -0.028235875070095062, -0.3676786720752716, 0.16428373754024506, -0.17477823793888092, -0.01075986959040165, -0.07930248230695724, -0.14459805190563202, 0.25987708568573, 0.019125934690237045, 0.0137534961104393, -0.454067200422287, -0.05592196807265282, -0.14356473088264465, 0.062194209545850754, 0.29410701990127563, -0.26627713441848755, 0.36071187257766724, 0.023232005536556244, -0.0668494701385498, 0.059865664690732956, 0.029787376523017883, -0.11445769667625427, -0.26415079832077026, 0.32470303773880005, -0.18466156721115112, -0.47627779841423035, 0.2907907962799072, 0.1561374068260193, 0.062075816094875336, -0.13174138963222504, -0.35184523463249207, 0.11718854308128357, -0.1519409716129303, -0.06257860362529755, -0.06014799326658249, 0.24169693887233734, 0.1981600672006607, 0.004298631101846695, -0.19566409289836884, -0.006511044222861528, 0.5049578547477722, -0.23570562899112701, 0.3362918198108673, -0.46275821328163147, 0.05054435133934021, -0.2155088186264038, 0.23785579204559326, -0.2511628568172455, 0.2846774458885193, 0.20501622557640076, 0.085860975086689, -0.2218780219554901, -0.037783183157444, 0.8010751008987427, -0.24895033240318298, -0.06273446977138519, 0.023047074675559998, 0.7974458932876587, -0.12557077407836914, -0.5456668138504028, -0.6729075908660889, 0.3868613541126251, -0.07422435283660889, 0.09238775074481964, -0.021473605185747147, 0.3568214476108551, -0.2921847403049469, 0.00044054165482521057, 0.13473094999790192, 0.3854477107524872, 0.11253513395786285, -0.11364955455064774, 0.21851110458374023, -0.08702123165130615 ]
https://github.com/huggingface/datasets/issues/2105
Request to remove S2ORC dataset
Hi @kyleclo, as of today, you have not removed your bucket data yet, and therefore HuggingFace can download it from there. Is it OK? Are you planning to eventually delete it? Thank you.
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
33
Request to remove S2ORC dataset Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! Hi @kyleclo, as of today, you have not removed your bucket data yet, and therefore HuggingFace can download it from there. Is it OK? Are you planning to eventually delete it? Thank you.
[ 0.49575960636138916, -0.3337315618991852, -0.08406227827072144, 0.515682578086853, 0.04385725036263466, -0.101533442735672, -0.03269386664032936, 0.03290487825870514, -0.06692101061344147, 0.03527095168828964, -0.4459504187107086, -0.15734665095806122, -0.40665990114212036, 0.30720457434654236, -0.21464045345783234, 0.10661356896162033, -0.07043527811765671, -0.025781184434890747, -0.2145421802997589, 0.10671672224998474, 0.21573269367218018, 0.2247689962387085, -0.16541609168052673, 0.053916629403829575, -0.21042385697364807, -0.23817327618598938, -0.11677757650613785, 0.1302070915699005, -0.3192276954650879, -0.03538534417748451, 0.35528719425201416, 0.2568555772304535, 0.018079537898302078, 0.5105399489402771, -0.00012078944564564154, -0.24995404481887817, -0.1819290816783905, 0.027342932298779488, -0.3482285141944885, -0.08508311212062836, -0.25392985343933105, 0.2486180067062378, -0.08003749698400497, 0.049421526491642, -0.02003961056470871, -0.08945054560899734, 0.06770728528499603, -0.08240152895450592, 0.4551747441291809, 0.3425406813621521, 0.17483024299144745, 0.4669798016548157, -0.21673357486724854, 0.36882153153419495, 0.04647408798336983, 0.5212650895118713, -0.10690136253833771, 0.44822555780410767, -0.07730059325695038, 0.1177879273891449, 0.2876632511615753, 0.2670899033546448, -0.45293989777565, 0.00945806223899126, 0.16811832785606384, -0.17489919066429138, -0.2927417457103729, -0.3420933485031128, 0.40421104431152344, 0.20005828142166138, 0.5567817687988281, -0.13562825322151184, -0.07953522354364395, 0.17098775506019592, 0.11036857962608337, 0.02622518129646778, 0.11019822955131531, 0.33645355701446533, 0.1220410168170929, 0.49642103910446167, -0.44708144664764404, -0.6174135804176331, -0.19879217445850372, -0.14570756256580353, -0.37372449040412903, 0.4520031809806824, -0.4058312773704529, -0.09163122624158859, -0.10524185001850128, 0.04178781062364578, 0.16572615504264832, -0.21527040004730225, -0.0421459935605526, 0.1711714118719101, -0.14798159897327423, -0.19339726865291595, -0.2669912576675415, 0.3302886486053467, 0.019349191337823868, 0.16992560029029846, 0.182871013879776, -0.26072588562965393, -0.2533016502857208, 0.10177186131477356, 0.2911594808101654, -0.0237627811729908, 0.03443062677979469, 0.16235820949077606, 0.1257820427417755, 0.16318856179714203, 0.32781073451042175, 0.1640237271785736, 0.11426540464162827, 0.341865599155426, -0.45614710450172424, -0.10957927256822586, 0.5117806196212769, -0.41405579447746277, -0.3980420231819153, 0.21770334243774414, -0.189453125, -0.05672846734523773, 0.29854175448417664, 0.037017688155174255, 0.043717171996831894, -0.1946987509727478, -0.002385154366493225, 0.029224518686532974, -0.10953797399997711, -0.2861465513706207, -0.1512727588415146, 0.14697690308094025, -0.07589475810527802, -0.042293138802051544, 0.30877867341041565, -0.28564396500587463, 0.21271026134490967, 0.1209731474518776, 0.5065147876739502, 0.19836723804473877, -0.13951228559017181, -0.10038785636425018, 0.13413293659687042, 0.09416645765304565, -0.27589890360832214, 0.19064882397651672, -0.057891663163900375, 0.029338136315345764, -0.16398566961288452, -0.004058897495269775, -0.4304199516773224, -0.25189128518104553, -0.5167291760444641, 0.02563384920358658, -0.16761694848537445, 0.02795281819999218, -0.28847062587738037, -0.13111327588558197, -0.15272802114486694, 0.04777168855071068, 0.20742987096309662, 0.2324850708246231, -0.30487221479415894, -0.10789427906274796, -0.14572346210479736, 0.23100775480270386, 0.011455494910478592, -0.04700379818677902, 0.40155643224716187, -0.16968372464179993, 0.13483060896396637, 0.4137633740901947, -0.14440937340259552, -0.2488923966884613, -0.30524173378944397, -0.1933334767818451, -0.5849940180778503, -0.17852047085762024, -0.21864184737205505, 0.30667126178741455, -0.2916368842124939, 0.065325066447258, 0.09078871458768845, -0.22503376007080078, 0.18677915632724762, -0.39711272716522217, -0.1050940454006195, 0.015019426122307777, 0.26155775785446167, -0.3209238648414612, -0.24464017152786255, -0.21601463854312897, 0.02131742052733898, -0.13899080455303192, -0.05299792066216469, 0.2530772089958191, -0.038851745426654816, 0.06552264839410782, 0.38611531257629395, 0.13721834123134613, 0.26755619049072266, 0.367946982383728, 0.3419262766838074, -0.0033928751945495605, -0.2892646789550781, 0.022899527102708817, -0.3031846284866333, -0.0008272528648376465, -0.10054260492324829, 0.01401231437921524, 0.10428138077259064, -0.2691430449485779, -0.10320830345153809, -0.06748020648956299, 0.12297797203063965, 0.055217236280441284, 0.00606970489025116, -0.3333393335342407, 0.13701318204402924, -0.2558974623680115, -0.2763424813747406, 0.5580837726593018, -0.05872339382767677, 0.16932426393032074, -0.37646153569221497, 0.12685473263263702, 0.09665504097938538, 0.23099347949028015, 0.29742366075515747, 0.08728498220443726, 0.05167970806360245, -0.14871779084205627, 0.016744812950491905, 0.2936429977416992, -0.19415561854839325, 0.2961033880710602, 0.19571474194526672, 0.5390327572822571, 0.21600095927715302, -0.07518526911735535, 0.377598375082016, -0.06701581180095673, 0.05536910146474838, 0.17122480273246765, -0.06781718879938126, 0.27587974071502686, -0.2441229671239853, 0.09979085624217987, -0.27666494250297546, -0.05352067947387695, 0.2998175621032715, -0.008476268500089645, -0.21499551832675934, 0.05585236847400665, 0.2065371572971344, 0.12288638949394226, -0.13819725811481476, 0.03919731453061104, -0.20547501742839813, -0.05513482540845871, -0.43981465697288513, -0.08224080502986908, -0.2566309869289398, 0.08570493012666702, -0.21975228190422058, -0.15749910473823547, 0.400541752576828, 0.06380598247051239, 0.3512212038040161, 0.1117025688290596, 0.05562610179185867, 0.10147945582866669, 0.6616277098655701, -0.13144820928573608, 0.39226633310317993, 0.15145474672317505, -0.0804908350110054, -0.20016491413116455, 0.3394487798213959, 0.15628036856651306, -0.28185367584228516, -0.04427330940961838, -0.23067893087863922, 0.04500345513224602, -0.21205323934555054, 0.166683167219162, -0.36806926131248474, -0.4625115692615509, 0.04667801409959793, 0.37355807423591614, -0.6214094758033752, 0.11931797862052917, 0.1495126336812973, 0.20714424550533295, 0.051523175090551376, -0.029418135061860085, -0.1133587658405304, 0.4791513681411743, -0.4406370520591736, -0.0066907331347465515, -0.14656254649162292, 0.09484251588582993, 0.01965596340596676, 0.10456593334674835, 0.043696239590644836, -0.022598419338464737, 0.5850799679756165, 0.08525334298610687, -0.03972090035676956, -0.28961944580078125, -0.14602357149124146, 0.21138030290603638, 0.0025427788496017456, -0.24891787767410278, 0.1970221847295761, 0.3608906865119934, -0.44284242391586304, 0.22806717455387115, -0.23991771042346954, -0.31196606159210205, -0.1648205816745758, -0.1356615126132965, 0.0246881190687418, 0.18585838377475739, -0.15129494667053223, 0.3677881360054016, -0.1659555286169052, -0.08513748645782471, 0.06244118511676788, -0.06266044080257416, 0.04104679450392723, 0.008538294583559036, -0.45048683881759644, 0.03011861816048622, -0.2970260977745056, -0.22892414033412933, -0.41134458780288696, -0.9189469814300537, 0.15236639976501465, 0.11676676571369171, 0.019330359995365143, 0.2935318350791931, 0.4042419195175171, 0.3140751123428345, -0.13401326537132263, -0.26615917682647705, -0.1224798858165741, 0.04876183718442917, 0.059524450451135635, 0.01180604100227356, 0.06520016491413116, 0.23543229699134827, -0.04996222257614136, 0.02741788513958454, 0.057130590081214905, -0.24747036397457123, -0.3330610692501068, 0.32177242636680603, 0.31638625264167786, 0.043249838054180145, -0.09048622101545334, 0.03233525529503822, 0.5703098177909851, 0.11930650472640991, 0.1081986129283905, 0.23371607065200806, 0.058444395661354065, 0.21079668402671814, 0.07743021845817566, -0.32033514976501465, 0.2461826056241989, 0.11410923302173615, -0.3820790648460388, 0.3038387894630432, 0.21079236268997192, 0.2345767617225647, -0.09998343884944916, -0.1175929605960846, -0.30735188722610474, -0.23891793191432953, -0.09669718891382217, 0.162318617105484, 0.381012499332428, 0.14555250108242035, -0.41439908742904663, 0.18382421135902405, -0.6200315952301025, 0.015312016010284424, 0.09938924759626389, 0.4457886517047882, -0.14236152172088623, -0.3448929488658905, 0.13891160488128662, -0.7456731200218201, 0.33482587337493896, -0.25920701026916504, -0.4012362062931061, -0.04209849238395691, 0.3280581533908844, 0.39231371879577637, 0.22052587568759918, 0.45721685886383057, 0.3931535482406616, -0.11581677198410034, -0.33113646507263184, -0.1643449366092682, -0.14898617565631866, 0.054398927837610245, -0.12028492987155914, 0.28280767798423767, 0.16601191461086273, 0.010346367955207825, -0.3399403393268585, -0.39818453788757324, 0.20158416032791138, 0.012711460702121258, -0.26893743872642517, -0.16030000150203705, -0.1998765468597412, -0.31155845522880554, -0.13548338413238525, -0.07023758441209793, 0.26718205213546753, 0.09041281044483185, 0.04116744548082352, 0.2658306360244751, 0.23427583277225494, 0.05487566441297531, 0.5304290056228638, -0.3897341787815094, 0.1439940333366394, 0.2950490713119507, -0.049928437918424606, 0.2139320969581604, 0.37598052620887756, 0.3007420301437378, 0.6087440848350525, 0.15272657573223114, -0.12227071821689606, 0.03996087983250618, 0.055612411350011826, 0.419064998626709, 0.49383267760276794, 0.08408979326486588, 0.22262626886367798, 0.0434638112783432, 0.42790573835372925, -0.3727276921272278, -0.1342260241508484, 0.16826766729354858, -0.33181607723236084, -0.19917312264442444, -0.06861362606287003, 0.19781900942325592, 0.11842235922813416, -0.17559927701950073, -0.10975617170333862, 0.718923032283783, -0.22718234360218048, 0.03849605843424797, -0.035574667155742645, 1.3941197395324707, -0.16022616624832153, 0.19494366645812988, 0.19412773847579956, -0.1110362857580185, 0.6845203638076782, -0.2874394655227661, -0.0362645760178566, -0.09688025712966919, 0.07661207765340805, -0.1713694930076599, 0.17458117008209229, 0.023401867598295212, 0.12553100287914276, 0.30821043252944946, 0.21513789892196655, -0.4961581230163574, 0.36871352791786194, -0.18465250730514526, 0.2205480933189392, -0.023817306384444237, 0.021894562989473343, -0.5131444334983826, 0.0759434625506401, -0.21000783145427704, 0.3007339537143707, -0.1663539707660675, -0.07313030958175659, 0.1509171426296234, -0.24811327457427979, -0.03938882797956467, -0.12086889147758484, 0.15615200996398926, -0.029119577258825302, -0.11156745254993439, -0.11623513698577881, 0.12378942966461182, 0.11806981265544891, 0.22667765617370605, -0.022031795233488083, -0.22989335656166077, 0.1466962695121765, -0.13104894757270813, -0.12860803306102753, -0.1485782414674759, 0.1618472784757614, -0.5426868200302124, -0.08907411992549896, -0.08154289424419403, 0.08444347977638245, 0.22416821122169495, -0.04649432748556137, -0.13402387499809265, 0.034478504210710526, -0.005843333899974823, -0.2914927005767822, -0.09736701846122742, 0.030326057225465775, 0.1702997386455536, 0.040191400796175, 0.07083961367607117, 0.3123107850551605, 0.0006763965357095003, -0.2959253787994385, 0.28669631481170654, -0.1537841558456421, -0.2394489198923111, 0.428718239068985, 0.19776397943496704, -0.32255008816719055, 0.2857300043106079, -0.019090261310338974, -0.19048050045967102, -0.27513402700424194, 0.20164576172828674, -0.3425220549106598, -0.5874431729316711, 0.11412861943244934, 0.3149663805961609, 0.036605075001716614, -0.29151350259780884, -0.19757771492004395, 0.11040059477090836, -0.02648979425430298, 0.3168044984340668, -0.05849534273147583, -0.1946902573108673, 0.165272518992424, -0.09269890189170837, -0.041447047144174576, 0.017605870962142944, 0.002785162068903446, -0.3060525357723236, -0.007844535633921623, -0.2347193956375122, 0.22582781314849854, 0.13536418974399567, -0.16502106189727783, 0.25140947103500366, 0.2690313458442688, 0.18967141211032867, -0.37529441714286804, 0.013990288600325584, -0.1579979956150055, -0.06285455077886581, -0.1252651810646057, -0.2023276835680008, 0.20922553539276123, 0.013712368905544281, -0.36525315046310425, -0.14087560772895813, 0.010653257369995117, -0.07876145839691162, 0.04493756592273712, 0.27075067162513733, 0.6551382541656494, 0.4446861743927002, 0.06954072415828705, -0.135701522231102, -0.11608517915010452, -0.20911458134651184, 0.12268014997243881, 0.28053146600723267, 0.36155539751052856, 0.2780155539512634, 0.183303564786911, 0.02108239196240902, -0.21382899582386017, -0.09889733046293259, 0.17728328704833984, 0.23022043704986572, 0.11336064338684082, 0.06414008885622025, -0.05040042847394943, 0.01625129207968712, -0.016579583287239075, 0.3196050524711609, 0.04195626080036163, -0.2212170511484146, -0.20519505441188812, 0.09416291862726212, 0.09664981812238693, -0.23906585574150085, 0.09124483168125153, 0.31668171286582947, 0.21786297857761383, -0.2466183751821518, 0.1899966597557068, 0.008090853691101074, 0.3711917996406555, -0.09919022023677826, -0.048371125012636185, 0.10391143709421158, 0.11596038937568665, 0.062234897166490555, -0.18576957285404205, -0.09825663268566132, -0.1045929342508316, 0.36793869733810425, 0.12112022936344147, 0.12774518132209778, -0.18706601858139038, 0.012502707540988922, 0.3199785649776459, 0.1332128345966339, 0.3787960410118103, 0.3281480073928833, -0.3077746629714966, -0.3909488022327423, 0.2668870687484741, -0.01826707273721695, 0.10243570804595947, 0.22938565909862518, 0.40268993377685547, -0.0670618787407875, -0.41687050461769104, -0.284401535987854, 0.5166845917701721, 0.04858967661857605, -0.03326234221458435, 0.11051695048809052, -0.2009190320968628, 0.05196255445480347, 0.11806149780750275, -0.15135522186756134, -0.2885623574256897, 0.3093552887439728, 0.030390392988920212, -0.1930825561285019, -0.2587173879146576, -0.13054853677749634, 0.25276267528533936, 0.144928440451622, 0.08356258273124695, -0.14495033025741577, 0.03332667052745819, 0.16585782170295715, 0.13708922266960144, 0.35445308685302734, 0.06753797829151154, -0.3148905634880066, 0.31634774804115295, -0.04514361917972565, -0.16011419892311096, 0.024189481511712074, 0.0345296673476696, 0.36219921708106995, -0.06356492638587952, 0.073947012424469, -0.07135944068431854, 0.01795072667300701, -0.015564674511551857, -0.025442976504564285, 0.08376927673816681, 0.31009575724601746, -0.3714370131492615, 0.19920766353607178, -0.07778431475162506, -0.0018284693360328674, -0.02051442116498947, -0.14329788088798523, -0.1920783817768097, 0.03056316077709198, 0.10919685661792755, 0.017296364530920982, 0.20126014947891235, 0.09178294986486435, 0.01723378151655197, -0.20659703016281128, 0.1258368194103241, 0.4229772984981537, 0.1077394038438797, -0.3011723756790161, -0.2894939184188843, -0.39034995436668396, 0.1269797533750534, -0.10874500870704651, 0.050603918731212616, -0.23557111620903015, -0.06452776491641998, 0.283037394285202, 0.1545533835887909, -0.2088690549135208, -0.40224921703338623, -0.017184710130095482, -0.06915344297885895, -0.006384178996086121, 0.36154410243034363, -0.278624951839447, 0.3093092143535614, 0.04462951421737671, -0.06584040075540543, 0.09287615120410919, -0.00680543715134263, -0.10917150229215622, -0.3168357014656067, 0.3109951615333557, -0.16541925072669983, -0.33873075246810913, 0.24038121104240417, 0.1307760626077652, -0.10461205244064331, -0.021196160465478897, -0.3472574055194855, -0.06991128623485565, -0.098599873483181, 0.10059717297554016, 0.054076019674539566, 0.2209932655096054, 0.15040241181850433, -0.03791170194745064, -0.010278157889842987, 0.04562258720397949, 0.5237253904342651, -0.21178242564201355, 0.2887277901172638, -0.4321364164352417, -0.09733408689498901, -0.2158827781677246, 0.24359801411628723, -0.17514896392822266, 0.24542835354804993, 0.06390581279993057, -0.16149023175239563, -0.285749614238739, 0.0038839206099510193, 0.7217821478843689, -0.32796522974967957, -0.05236915126442909, 0.08034273982048035, 0.7390753626823425, 0.048214539885520935, -0.4714955985546112, -0.605449914932251, 0.3153674304485321, 0.12547259032726288, -0.1929333209991455, -0.016486134380102158, 0.37647613883018494, -0.28785276412963867, -0.07118236273527145, 0.14213988184928894, 0.4748223125934601, 0.20327481627464294, -0.02972995676100254, 0.25864988565444946, 0.045095235109329224 ]
https://github.com/huggingface/datasets/issues/2105
Request to remove S2ORC dataset
Hi! Sorry I missed @yjernite 's previous message, thanks for responding! Is there an option where we can keep our data in our bucket, but the HF script no longer pulls data from it?
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
34
Request to remove S2ORC dataset Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! Hi! Sorry I missed @yjernite 's previous message, thanks for responding! Is there an option where we can keep our data in our bucket, but the HF script no longer pulls data from it?
[ 0.3147089183330536, -0.2077653408050537, -0.023903829976916313, 0.32826167345046997, -0.014094218611717224, -0.182902991771698, 0.01751887798309326, 0.1725749373435974, 0.17710097134113312, 0.16214822232723236, -0.403879314661026, -0.27868327498435974, -0.3127879798412323, 0.4572272002696991, -0.14338372647762299, 0.19450025260448456, -0.07027023285627365, 0.05244811996817589, -0.32020771503448486, 0.03244601935148239, 0.13017477095127106, 0.22618260979652405, -0.08846839517354965, 0.06617245078086853, -0.13803641498088837, -0.11288271099328995, -0.07820678502321243, 0.14498677849769592, -0.1255222111940384, 0.06940224766731262, 0.261051207780838, 0.47054314613342285, 0.08008413016796112, 0.43399283289909363, -0.0001245844323420897, -0.3209071457386017, -0.15400557219982147, 0.005615485832095146, -0.4018520712852478, -0.11300158500671387, -0.07829542458057404, 0.2641175389289856, -0.09085678309202194, 0.13977986574172974, -0.05340511351823807, -0.12628880143165588, 0.08416333049535751, -0.15273520350456238, 0.31870847940444946, 0.23425936698913574, 0.13144227862358093, 0.5757721662521362, -0.4303700923919678, 0.27414438128471375, 0.12326346337795258, 0.6085689067840576, -0.15168769657611847, 0.34924453496932983, -0.11992281675338745, -0.10974442213773727, 0.21398863196372986, 0.330299437046051, -0.43579328060150146, -0.09248083829879761, 0.24912607669830322, -0.15356531739234924, -0.39856860041618347, -0.2252967655658722, 0.4142614006996155, 0.28275030851364136, 0.4330861568450928, -0.21041330695152283, -0.09047811478376389, 0.10222888737916946, 0.04743083566427231, 0.049488700926303864, 0.011687535792589188, 0.21442028880119324, 0.09602247178554535, 0.42893731594085693, -0.31707921624183655, -0.6390435695648193, -0.23413953185081482, -0.11406157910823822, -0.3001757860183716, 0.3237961530685425, -0.2973465919494629, -0.06418605893850327, -0.07381971180438995, 0.09143169224262238, 0.17973250150680542, -0.23228353261947632, 0.012711949646472931, 0.15899595618247986, -0.0431554950773716, -0.3171839118003845, -0.21787872910499573, 0.31260138750076294, 0.244857519865036, 0.044557709246873856, 0.024387482553720474, -0.16243836283683777, -0.28454044461250305, 0.20509126782417297, 0.3105311095714569, -0.09216581284999847, 0.04197102412581444, 0.0940726175904274, 0.2771458625793457, 0.25181013345718384, 0.25290945172309875, 0.0715971440076828, 0.19327786564826965, 0.28978943824768066, -0.3893834948539734, -0.1564798653125763, 0.5164499282836914, -0.43009138107299805, -0.4166110157966614, 0.35954374074935913, -0.05528862029314041, -0.061981201171875, 0.15640778839588165, 0.3035780191421509, 0.11370983719825745, -0.0069998204708099365, 0.06980989873409271, 0.04365933686494827, -0.21035897731781006, -0.3135283887386322, -0.16770130395889282, 0.18024353682994843, -0.07917329668998718, -0.017009174451231956, 0.24895958602428436, -0.21333245933055878, 0.19535480439662933, 0.168676495552063, 0.57807856798172, 0.2631823718547821, -0.11073347926139832, -0.2234821915626526, 0.33620166778564453, 0.1756039559841156, -0.14830733835697174, 0.13141997158527374, 0.02251526340842247, 0.11812970042228699, -0.2510822117328644, 0.029849812388420105, -0.29222649335861206, -0.17873340845108032, -0.4848286509513855, 0.003008294850587845, -0.12139366567134857, 0.05653100460767746, -0.32289209961891174, -0.08960941433906555, -0.26259246468544006, 0.11477577686309814, 0.16497404873371124, 0.05994187295436859, -0.33812448382377625, -0.0675014853477478, -0.1339312046766281, 0.34477585554122925, -0.12912681698799133, -0.0032780803740024567, 0.44929051399230957, -0.21788239479064941, -0.020205222070217133, 0.3893570005893707, -0.18090641498565674, -0.21905982494354248, -0.3314695954322815, -0.1568554937839508, -0.4964420795440674, -0.2505912780761719, -0.02490955777466297, 0.3402803838253021, -0.17445553839206696, 0.07530049979686737, 0.11963348090648651, -0.23545433580875397, 0.21514230966567993, -0.45744913816452026, -0.25062525272369385, -0.016133952885866165, 0.18854589760303497, -0.27972084283828735, -0.11014880239963531, -0.3190248906612396, -0.006215091794729233, -0.11794532835483551, 0.11306224763393402, 0.13650555908679962, -0.023084640502929688, -0.09626061469316483, 0.4757194519042969, 0.03903811797499657, 0.2769920825958252, 0.3343994617462158, 0.25578761100769043, 0.19219695031642914, -0.24534359574317932, -0.0499250665307045, -0.29922252893447876, -0.09593759477138519, -0.1304718255996704, -0.12544603645801544, 0.16750185191631317, -0.320926308631897, -0.051122553646564484, -0.025298379361629486, 0.2593214511871338, 0.16864556074142456, -0.05022688955068588, -0.289798766374588, 0.005914267152547836, -0.18394869565963745, -0.455697625875473, 0.6220621466636658, 0.06635309010744095, 0.2031354010105133, -0.25507453083992004, 0.24252618849277496, 0.08209407329559326, 0.17925745248794556, 0.2667658030986786, 0.13728463649749756, 0.13393476605415344, -0.0780467763543129, 0.12096578627824783, 0.24988454580307007, -0.1223326176404953, 0.17203399538993835, 0.29787302017211914, 0.5357651710510254, 0.13796548545360565, 0.04157748445868492, 0.4445882737636566, -0.10420238971710205, -0.011414004489779472, 0.17282822728157043, -0.04464396834373474, 0.305593341588974, -0.24362225830554962, 0.21624287962913513, -0.15805378556251526, -0.13983815908432007, 0.24602636694908142, -0.13753573596477509, -0.16337880492210388, -0.10405196994543076, 0.23511457443237305, 0.053456854075193405, -0.1292937844991684, -0.027632052078843117, -0.31382977962493896, 0.0843920037150383, -0.0928235799074173, -0.11409442126750946, -0.23467153310775757, 0.10194201022386551, -0.21579617261886597, -0.1578468680381775, 0.4094683825969696, -0.06640032678842545, 0.294137567281723, 0.15214549005031586, -0.10299883782863617, 0.14436325430870056, 0.48861321806907654, -0.13575966656208038, 0.2988613545894623, 0.11981704831123352, -0.14398883283138275, -0.09774696081876755, 0.24507036805152893, 0.11413093656301498, -0.4201129078865051, -0.13390521705150604, -0.29444119334220886, -0.0589345246553421, -0.2316480129957199, 0.19914761185646057, -0.3803667426109314, -0.3432619571685791, 0.036362964659929276, 0.3859195411205292, -0.5940881967544556, -0.021153654903173447, 0.23785872757434845, 0.4233303666114807, -0.0320284478366375, -0.043642133474349976, -0.22107288241386414, 0.413210391998291, -0.5426181554794312, 0.020808229222893715, -0.1979375034570694, 0.08646120876073837, 0.04013081267476082, 0.036017898470163345, 0.037856947630643845, 0.04958504065871239, 0.6460418105125427, 0.19604936242103577, -0.27606093883514404, -0.2868872284889221, -0.07529476284980774, 0.2934107184410095, 0.008015159517526627, -0.27564945816993713, 0.23617732524871826, 0.42333918809890747, -0.3549842834472656, 0.26392465829849243, -0.2653571665287018, -0.4017898440361023, -0.11570967733860016, -0.029987461864948273, -0.03881560266017914, 0.2117656022310257, -0.12254571914672852, 0.39602845907211304, -0.07570736855268478, -0.19220437109470367, -0.07433484494686127, -0.1557214856147766, 0.10378280282020569, 0.03870801255106926, -0.3879113793373108, -0.04677005857229233, -0.4429834187030792, -0.2824511229991913, -0.4912324845790863, -0.7781985998153687, 0.12074662744998932, 0.06990687549114227, 0.05720803886651993, 0.3320271372795105, 0.345980703830719, 0.11149388551712036, -0.15483975410461426, -0.3589916229248047, -0.2789936065673828, 0.14497095346450806, 0.07919351756572723, -0.12495595216751099, 0.08728178590536118, 0.39094865322113037, -0.042765531688928604, -0.0010109487920999527, -0.0317494198679924, -0.13663449883460999, -0.21409431099891663, 0.2423258125782013, 0.19925129413604736, 0.04558708518743515, 0.02574724517762661, 0.010692842304706573, 0.6046021580696106, 0.10108613967895508, 0.18449187278747559, 0.3397408425807953, 0.19424395263195038, 0.3856179118156433, -0.05504428595304489, -0.23256701231002808, 0.20940560102462769, 0.15106931328773499, -0.35104018449783325, 0.4016522765159607, 0.15887442231178284, 0.3327522277832031, -0.04862837865948677, -0.29035401344299316, -0.16254417598247528, -0.35462963581085205, 0.042874500155448914, 0.1451779007911682, 0.32106325030326843, 0.11249716579914093, -0.25288698077201843, 0.16188815236091614, -0.47170355916023254, 0.19042406976222992, 0.16043341159820557, 0.5285866260528564, -0.1411280632019043, -0.36767667531967163, 0.07193413376808167, -0.7467412352561951, 0.3602396845817566, -0.30947330594062805, -0.39523154497146606, -0.10685214400291443, 0.2692244052886963, 0.274624228477478, 0.15114785730838776, 0.5630869269371033, 0.29094913601875305, -0.0957489162683487, -0.2798062860965729, -0.30135589838027954, -0.1552668958902359, 0.037573982030153275, -0.1183614581823349, 0.16190029680728912, 0.00039077363908290863, 0.0660543143749237, -0.3809041380882263, -0.5336230397224426, 0.3014358580112457, 0.004395277239382267, -0.27409568428993225, -0.17038275301456451, -0.12402813136577606, -0.3155558705329895, -0.22551009058952332, -0.10065775364637375, 0.23195792734622955, -0.11879190057516098, -0.0158959049731493, 0.17926552891731262, 0.270036906003952, -0.08345930278301239, 0.5575608611106873, -0.3295530676841736, 0.03932438790798187, 0.29722100496292114, -0.13383156061172485, 0.2257256805896759, 0.29999589920043945, 0.4112843871116638, 0.5585439801216125, 0.1418977975845337, -0.12390683591365814, -0.010241322219371796, 0.19798922538757324, 0.5615348219871521, 0.5556923151016235, 0.12847742438316345, 0.3664986193180084, 0.09188035130500793, 0.5001991987228394, -0.3880903720855713, -0.09563785046339035, 0.100004643201828, -0.408189058303833, -0.1625107228755951, -0.10494794696569443, 0.141770601272583, -0.06440851092338562, -0.1493145078420639, -0.20815852284431458, 0.7436941266059875, -0.22829143702983856, 0.2903295159339905, -0.03463040292263031, 1.4422253370285034, -0.15935008227825165, 0.3056579828262329, 0.21188539266586304, -0.25518664717674255, 0.5051161050796509, -0.41487354040145874, -0.20219628512859344, -0.22952227294445038, 0.00210382416844368, -0.1674164980649948, 0.1721377670764923, -0.013245157897472382, 0.027464404702186584, 0.31201300024986267, 0.3241528272628784, -0.5391014814376831, 0.3610619604587555, -0.25708505511283875, 0.24584996700286865, -0.10361377149820328, -0.06809666752815247, -0.38326287269592285, 0.040193475782871246, -0.19982026517391205, 0.2853233516216278, -0.21480077505111694, 0.008526302874088287, 0.30917268991470337, -0.29108595848083496, 0.09380994737148285, -0.10055384784936905, 0.05192353576421738, -0.17135201394557953, -0.16211658716201782, -0.1322748064994812, 0.1180652529001236, -0.05015633627772331, 0.3635021448135376, 0.03365982323884964, -0.1031588613986969, 0.11896692216396332, -0.11615889519453049, -0.08455674350261688, -0.1702689230442047, 0.11213193088769913, -0.3557923138141632, -0.016161760315299034, -0.12063665688037872, 0.0903090387582779, 0.3170483112335205, -0.07235926389694214, -0.17636381089687347, -0.08747883141040802, -0.017035752534866333, -0.34745562076568604, -0.03312152624130249, 0.08892965316772461, 0.2474774420261383, 0.016726810485124588, 0.024522563442587852, 0.3489469289779663, 0.04866722971200943, -0.20576179027557373, 0.29014095664024353, -0.08111222088336945, -0.3226550817489624, 0.4245260953903198, 0.17439988255500793, -0.21022985875606537, 0.27729332447052, 0.09304074943065643, -0.2425222247838974, -0.3035075068473816, 0.06781668215990067, -0.05458032339811325, -0.5354102849960327, 0.15623392164707184, 0.36953455209732056, -0.1622978150844574, -0.31220686435699463, -0.2166406810283661, -0.073520228266716, -0.1083325669169426, 0.1686464101076126, -0.06277715414762497, -0.21727213263511658, 0.2826790511608124, -0.059171099215745926, 0.021717382594943047, 0.21632015705108643, 0.10470174252986908, -0.46115922927856445, -0.014991933479905128, -0.23777474462985992, 0.05563022941350937, 0.19305367767810822, -0.12084901332855225, 0.19165930151939392, 0.2497820258140564, 0.2629218101501465, -0.41450759768486023, -0.014569757506251335, -0.19855934381484985, -0.07797929644584656, -0.10245846956968307, -0.33389145135879517, 0.24613189697265625, -0.006388897076249123, -0.18037353456020355, -0.1264832764863968, -0.08081468939781189, -0.05871779844164848, -0.10775454342365265, 0.36691001057624817, 0.7037879824638367, 0.39631444215774536, 0.10036914795637131, -0.03438691422343254, -0.17038774490356445, -0.16628505289554596, 0.10510943084955215, 0.30188432335853577, 0.4229617714881897, 0.13351958990097046, 0.0979771837592125, -0.025635607540607452, -0.17217621207237244, -0.11690355092287064, 0.3478451371192932, 0.36935240030288696, 0.1443406194448471, 0.08503511548042297, -0.006866931915283203, -0.15132179856300354, -0.07054408639669418, 0.3867638409137726, -0.07467330992221832, -0.19844675064086914, -0.32725921273231506, 0.18235546350479126, 0.0592765286564827, -0.2297750562429428, 0.09364937990903854, 0.23199529945850372, 0.1131344884634018, -0.16239897906780243, 0.24483510851860046, 0.04314408823847771, 0.3019334673881531, 0.06685245037078857, -0.017401117831468582, 0.08136824518442154, 0.11126361787319183, -0.015517180785536766, -0.21622434258460999, -0.14605370163917542, -0.04670920595526695, 0.2893083393573761, 0.20028401911258698, 0.2045658528804779, -0.14252984523773193, 0.06268509477376938, 0.2676781415939331, 0.15840566158294678, 0.3818684220314026, 0.25921979546546936, -0.31356674432754517, -0.38905152678489685, 0.32427820563316345, 0.04319872334599495, 0.038417235016822815, 0.13444772362709045, 0.32166218757629395, 0.03294401243329048, -0.42100751399993896, -0.18127350509166718, 0.5291785597801208, 0.0012196637690067291, 0.057516004890203476, 0.17242732644081116, -0.043388258665800095, -0.014376375824213028, 0.06847715377807617, -0.05630890652537346, -0.2920879125595093, 0.3737664222717285, 0.07835184037685394, -0.10122177004814148, -0.07714756578207016, 0.017835095524787903, 0.09916902333498001, 0.12109375, 0.167067751288414, -0.20264604687690735, -0.004234306514263153, 0.3194524645805359, 0.14136359095573425, 0.36630260944366455, 0.07718076556921005, -0.3462441563606262, 0.24149373173713684, -0.0717809796333313, -0.10553903877735138, 0.023887207731604576, 0.008083181455731392, 0.13347388803958893, -0.12411311268806458, 0.15681830048561096, -0.0017041293904185295, -0.020303811877965927, 0.024002376943826675, -0.05286600813269615, 0.05979594588279724, 0.23231826722621918, -0.3492250144481659, 0.34076130390167236, 0.1535462588071823, 0.0007399395108222961, -0.06732075661420822, -0.18136650323867798, -0.15667831897735596, -0.04612622782588005, 0.14955352246761322, -0.013755451887845993, 0.22112146019935608, 0.033427078276872635, 0.007947362959384918, -0.20615026354789734, 0.07599601149559021, 0.34856700897216797, -0.026400774717330933, -0.27041056752204895, -0.1542823612689972, -0.22709442675113678, 0.07946569472551346, -0.23774376511573792, 0.010471886023879051, -0.21417616307735443, -0.06898096948862076, 0.2982630431652069, 0.027128972113132477, 0.022167496383190155, -0.5149403214454651, 0.03917960077524185, -0.03401794284582138, 0.11773353815078735, 0.24467706680297852, -0.3900575041770935, 0.3240768015384674, 0.06454486399888992, -0.10555091500282288, 0.09179863333702087, 0.04277230426669121, -0.15580494701862335, -0.24958141148090363, 0.3124648630619049, -0.00829598493874073, -0.5492112636566162, 0.31670987606048584, 0.11644413322210312, -0.1666412651538849, -0.12112708389759064, -0.3616182208061218, 0.06606698781251907, -0.06311217695474625, -0.0784442126750946, -0.11201644688844681, 0.14492470026016235, 0.18899796903133392, -0.04453953355550766, -0.19064070284366608, 0.13069571554660797, 0.4611988067626953, -0.2786434590816498, 0.37867480516433716, -0.34877529740333557, 0.04601258039474487, -0.2282993495464325, 0.34093010425567627, -0.1601586788892746, 0.2992236912250519, 0.07375942170619965, -0.12084529548883438, -0.36328351497650146, 0.03204112499952316, 0.7371150255203247, -0.20606496930122375, -0.1711030751466751, 0.009422640316188335, 0.7621908783912659, -0.10841066390275955, -0.5149693489074707, -0.5980625152587891, 0.29918912053108215, -0.013980765827000141, -0.06373138725757599, -0.016962995752692223, 0.38329535722732544, -0.2985226511955261, -0.027507971972227097, 0.1987159550189972, 0.41874948143959045, 0.3243616223335266, -0.06272602081298828, 0.22104385495185852, 0.01811179891228676 ]
https://github.com/huggingface/datasets/issues/2104
Trouble loading wiki_movies
Hi ! `wiki_movies` was added in `datasets==1.2.0`. However it looks like you have `datasets==1.1.2`. To use `wiki_movies`, please update `datasets` with ``` pip install --upgrade datasets ```
Hello, I am trying to load_dataset("wiki_movies") and it gives me this error - `FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py` Trying to do `python run_mlm.py \ --model_name_or_path roberta-base \ --dataset_name wiki_movies \` also gives the same error. Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago. Thank you!
27
Trouble loading wiki_movies Hello, I am trying to load_dataset("wiki_movies") and it gives me this error - `FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py` Trying to do `python run_mlm.py \ --model_name_or_path roberta-base \ --dataset_name wiki_movies \` also gives the same error. Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago. Thank you! Hi ! `wiki_movies` was added in `datasets==1.2.0`. However it looks like you have `datasets==1.1.2`. To use `wiki_movies`, please update `datasets` with ``` pip install --upgrade datasets ```
[ -0.20739831030368805, -0.013514526188373566, -0.04422025382518768, 0.3873897194862366, 0.289176344871521, 0.19632765650749207, 0.16524067521095276, 0.290425568819046, 0.1623346507549286, -0.05911323428153992, -0.06512923538684845, 0.03987054526805878, 0.039082035422325134, 0.00956897996366024, 0.21804137527942657, -0.13361859321594238, 0.13193285465240479, -0.06776468455791473, 0.040993254631757736, -0.15195594727993011, -0.26095154881477356, 0.1905122548341751, -0.09478264302015305, 0.049363866448402405, -0.3012827932834625, -0.02132652886211872, -0.08608807623386383, 0.36719316244125366, -0.1554059237241745, -0.30686530470848083, 0.4555032253265381, -0.15636827051639557, 0.6124145984649658, 0.5570126175880432, -0.00011541084677446634, 0.07930617034435272, 0.4557095170021057, -0.04380381107330322, -0.3138124644756317, -0.23398567736148834, 0.19904282689094543, -0.3066936135292053, 0.30911916494369507, -0.07188601791858673, -0.11473660916090012, -0.03578292205929756, 0.14568191766738892, -0.1668715476989746, 0.1003156453371048, 0.08561690896749496, 0.17345137894153595, 0.2701098322868347, 0.28924715518951416, -0.09111221134662628, 0.2961936295032501, 0.1140340119600296, -0.02028723806142807, 0.4139380156993866, 0.2665453851222992, -0.48070600628852844, 0.2214951515197754, 0.32795950770378113, -0.31363600492477417, -0.07041634619235992, 0.5433493256568909, 0.153425395488739, 0.382413774728775, -0.3687496781349182, 0.18879759311676025, 0.3565349876880646, 0.6607329845428467, -0.08289080113172531, -0.39935067296028137, -0.09774435311555862, 0.10880176723003387, -0.13760873675346375, 0.22218307852745056, 0.2584238052368164, -0.05880148336291313, 0.18716154992580414, 0.09678159654140472, -0.333641916513443, 0.051521338522434235, 0.5347656011581421, 0.09726159274578094, 0.49518492817878723, -0.045864976942539215, 0.09776602685451508, 0.13483954966068268, -0.21229501068592072, -0.1636189967393875, 0.007070740684866905, -0.06413935124874115, 0.42425239086151123, 0.06844492256641388, 0.10384702682495117, -0.008985929191112518, 0.48571035265922546, -0.1439782977104187, -0.04112324118614197, -0.11506921052932739, -0.041440315544605255, 0.05864996090531349, 0.22673416137695312, 0.3234931528568268, 0.05523080751299858, -0.0866376981139183, 0.049781281501054764, 0.2694106101989746, 0.4145146310329437, -0.18214330077171326, -0.19867298007011414, -0.18518507480621338, -0.05721484497189522, -0.360475093126297, -0.2458052635192871, 0.3958008289337158, -0.11756482720375061, -0.2839038074016571, -0.013076544739305973, -0.2200169563293457, -0.2205563485622406, 0.2549140453338623, 0.5544278025627136, -0.21364840865135193, 0.18678537011146545, 0.03562716394662857, 0.20334331691265106, -0.23979051411151886, 0.19614405930042267, -0.1105700358748436, 0.19121220707893372, -0.19605207443237305, 0.2319418042898178, 0.3138677179813385, -0.07006528973579407, 0.4374934434890747, -0.11687633395195007, -0.0015970468521118164, -0.1212562769651413, -0.006461950950324535, 0.037849292159080505, -0.13490691781044006, 0.4637261927127838, -0.009282609447836876, 0.20721392333507538, 0.32470405101776123, -0.3109649419784546, -0.11529840528964996, 0.08317830413579941, -0.23769670724868774, -0.34915149211883545, -0.1643439382314682, 0.08720714598894119, 0.13240081071853638, -0.19918489456176758, -0.23507410287857056, 0.031006839126348495, 0.028178125619888306, -0.5631133317947388, -0.04732491821050644, 0.11319033056497574, 0.011842940002679825, -0.2234303206205368, 0.348065584897995, 0.6888163089752197, -0.255648672580719, -0.05857228860259056, -0.3802089989185333, -0.008437655866146088, -0.06837474554777145, 0.19906453788280487, -0.2756035625934601, 0.05930168926715851, -0.3056888282299042, -0.06498785316944122, 0.10980745404958725, -0.5922427773475647, -0.23337271809577942, 0.28458133339881897, -0.13655449450016022, 0.1409638524055481, 0.12516072392463684, 0.1688189059495926, -0.33574628829956055, -0.16600492596626282, 0.11067477613687515, -0.05125458538532257, 0.07355482131242752, -0.23409605026245117, -0.176921084523201, -0.15211232006549835, 0.1346909999847412, 0.1320296972990036, 0.028643697500228882, 0.04038551077246666, 0.08665939420461655, -0.028446760028600693, 0.24090850353240967, 0.048928868025541306, -0.14851924777030945, 0.16289740800857544, 0.349170058965683, 0.45640891790390015, -0.038400664925575256, -0.07419118285179138, -0.4570275545120239, 0.1895827054977417, -0.10701479017734528, 0.017346318811178207, -0.15451432764530182, -0.09614957869052887, -0.06145092472434044, 0.04108969867229462, -0.18083986639976501, -0.22536447644233704, 0.08509765565395355, 0.05477767437696457, -0.052999403327703476, 0.1655847281217575, -0.270904541015625, -0.1925833821296692, -0.0947699174284935, 0.24718093872070312, -0.40272992849349976, 0.2519996762275696, -0.14556440711021423, -0.006017335690557957, -0.03191538155078888, 0.20651262998580933, 0.2627584934234619, -0.1470629870891571, 0.1542285680770874, 0.390866756439209, -0.07810176908969879, 0.2508266568183899, 0.23394477367401123, 0.16453738510608673, 0.1641920506954193, -0.06356799602508545, 0.23681718111038208, 0.1799629181623459, 0.233920156955719, 0.02596856653690338, -0.14431709051132202, 0.33703136444091797, -0.009185601025819778, 0.25015494227409363, 0.21848486363887787, 0.008246997371315956, 0.18931344151496887, 0.05291270092129707, -0.039836108684539795, -0.2208697497844696, 0.43253636360168457, 0.2068348079919815, 0.11258941888809204, -0.08955707401037216, -0.25703543424606323, -0.04255449026823044, 0.027204856276512146, -0.08858672529459, 0.2019982635974884, 0.05288299545645714, -0.3966018855571747, 0.12875086069107056, -0.006254745647311211, 0.145724356174469, 0.35086315870285034, 0.1889483481645584, -0.17483589053153992, -0.06426480412483215, -0.012219450436532497, -0.20629997551441193, 0.26192596554756165, 0.1753787398338318, 0.07022923976182938, 0.1796756088733673, -0.020387738943099976, 0.02319509908556938, -0.26970282196998596, 0.031448233872652054, -0.11168506741523743, 0.149105504155159, -0.2536027431488037, 0.1608961820602417, -0.2967219054698944, -0.06861937046051025, -0.2333277314901352, -0.4196038246154785, -0.32678094506263733, -0.2818984389305115, -0.0361129567027092, 0.3151584267616272, 0.2061966359615326, 0.07268345355987549, 0.028804045170545578, -0.01888228952884674, -0.3148035407066345, -0.16474413871765137, -0.1038464605808258, -0.3200182020664215, -0.2616139054298401, -0.012988368980586529, 0.5495477318763733, -0.06113660708069801, 0.15792346000671387, -0.10743352025747299, -0.037561364471912384, -0.2795411944389343, -0.5420341491699219, -0.0647829994559288, -0.10129490494728088, 0.5056604146957397, 0.017039813101291656, 0.37762516736984253, -0.12833473086357117, -0.3390269875526428, 0.37703561782836914, -0.002507079392671585, 0.11156585812568665, -0.10314634442329407, -0.05452672019600868, -0.33542460203170776, 0.01824064552783966, -0.48759904503822327, -0.4276796281337738, -0.18540100753307343, 0.14093619585037231, 0.2385590523481369, -0.1262494921684265, 0.19269956648349762, 0.10578670352697372, 0.17270857095718384, -0.17612624168395996, 0.027730045840144157, -0.05713649466633797, -0.3297138214111328, 0.39981308579444885, -0.22612935304641724, -0.2458425611257553, 0.4008427560329437, 0.021222233772277832, 0.019961122423410416, -0.2964901328086853, -0.5815372467041016, -0.15690584480762482, 0.13532517850399017, 0.06779812276363373, 0.18001839518547058, 0.107784703373909, 0.199477881193161, -0.07318250089883804, 0.03348838537931442, 0.07572769373655319, -0.15392477810382843, -0.21853557229042053, -0.13573217391967773, 0.29192647337913513, -0.10594405978918076, 0.4867752492427826, -0.4204571843147278, 0.7676121592521667, 0.03659329190850258, 0.08023595809936523, 0.3636780381202698, -0.18587419390678406, 0.47160425782203674, -0.09900044649839401, -0.44133538007736206, -0.07748664170503616, -0.20610320568084717, -0.1245744526386261, 0.2974345088005066, 0.1417628824710846, -0.26839980483055115, -0.3975667357444763, -0.09123166650533676, -0.30862903594970703, -0.22111384570598602, 0.03522204980254173, 0.31111347675323486, 0.07724519073963165, 0.2566119134426117, 0.17546674609184265, -0.08015885949134827, -0.38206204771995544, 0.15397384762763977, 0.7092064619064331, 0.10751882195472717, 0.0038919979706406593, -0.45708441734313965, -0.4015655219554901, -0.2711562216281891, 0.33137810230255127, -0.007760676555335522, 0.06973433494567871, -0.1062440425157547, -0.0869513526558876, 0.17400139570236206, -0.16242313385009766, 0.6706096529960632, -0.08377127349376678, -0.13026072084903717, 0.020356912165880203, 0.05577918887138367, -0.28218719363212585, -0.1787356734275818, 0.06874479353427887, 0.26674720644950867, 0.025179250165820122, 0.46845030784606934, -0.08572755753993988, -0.1418095976114273, 0.23174236714839935, 0.14740195870399475, -0.2520613968372345, -0.16861563920974731, -0.4849328100681305, -0.2130194902420044, -0.32042545080184937, -0.2913612425327301, -0.1253482848405838, 0.23907923698425293, 0.011321318335831165, 0.15626390278339386, -0.01677161641418934, 0.07617168873548508, 0.18155187368392944, 0.04248505085706711, 0.328970730304718, 0.2473451942205429, 0.037546198815107346, 0.29490941762924194, 0.42703014612197876, 0.36454665660858154, 0.5436064600944519, -0.169758602976799, -0.07092463970184326, -0.12149108201265335, -0.028176285326480865, 0.23882564902305603, 0.39399075508117676, -0.0232047401368618, -0.17045465111732483, 0.3597782850265503, -0.10969531536102295, -0.39637911319732666, -0.25886431336402893, 0.3368563950061798, -0.09365276992321014, -0.13895124197006226, -0.42741039395332336, 0.7648711800575256, 0.024867568165063858, 0.08301006257534027, 0.05457271635532379, 0.2724698781967163, -0.16281644999980927, 0.0477629154920578, -0.02720636874437332, 1.032842993736267, -0.18555620312690735, 0.3174361288547516, 0.34545883536338806, 0.2381194680929184, 0.31557777523994446, -0.408205509185791, 0.17200039327144623, -0.2932627201080322, 0.058984704315662384, -0.15293830633163452, 0.00500020757317543, 0.2291627824306488, -0.02278311550617218, -0.22226861119270325, 0.38294222950935364, -0.0745873749256134, 0.19836634397506714, -0.20221814513206482, 0.12916240096092224, -0.047292694449424744, -0.03108401969075203, -0.5368956327438354, 0.07278364151716232, 0.17967547476291656, 0.48151805996894836, -0.28823399543762207, 0.0028444440104067326, -0.25579404830932617, -0.1622876077890396, -0.3092896342277527, -0.07660743594169617, -0.42547500133514404, 0.16060124337673187, 0.15784454345703125, -0.17427366971969604, -0.1863708794116974, 0.4830907881259918, -0.03147875517606735, -0.024061042815446854, -0.3653791546821594, 0.1742515116930008, -0.1446525752544403, -0.5440143346786499, -0.2830955982208252, 0.027885742485523224, 0.3291460871696472, -0.082562655210495, -0.22905078530311584, 0.07451724261045456, -0.21451041102409363, -0.03341348469257355, -0.2611871361732483, -0.048482850193977356, 0.19449810683727264, -0.06298509240150452, -0.5832723379135132, 0.04905068501830101, -0.010297315195202827, -0.05526287853717804, 0.08202806115150452, 0.06751925498247147, -0.0686376541852951, -0.19993650913238525, 0.21287019550800323, -0.06817372888326645, -0.1432759314775467, 0.6447442770004272, -0.2534943222999573, -0.022954337298870087, 0.6146335601806641, 0.4854164719581604, -0.164094477891922, -0.15414991974830627, 0.2329571545124054, 0.15656043589115143, -0.26749569177627563, -0.11976779252290726, 0.5612847208976746, 0.2112632542848587, 0.20646436512470245, 0.17242535948753357, 0.28253233432769775, -0.2618934214115143, -0.08205515146255493, -0.6242220997810364, -0.07084096968173981, 0.425201416015625, 0.03749549388885498, -0.05219798907637596, 0.024928011000156403, -0.07167766988277435, 0.19920845329761505, -0.09418320655822754, -0.24775628745555878, 0.13058963418006897, -0.008797945454716682, -0.02620406076312065, 0.5012266039848328, 0.14204514026641846, 0.32303741574287415, 0.1515270322561264, 0.09720735996961594, -0.12008078396320343, -0.14719083905220032, -0.14467141032218933, 0.03795643523335457, 0.18273840844631195, 0.03982612490653992, -0.16241449117660522, 0.009340294636785984, -0.28853607177734375, 0.014514855109155178, -0.14373169839382172, -0.17961058020591736, 0.01792646199464798, 0.14621451497077942, -0.05151824653148651, 0.11459316313266754, 0.05721514672040939, -0.26069968938827515, 0.15461084246635437, -0.12054014205932617, 0.2959589958190918, 0.1922038346529007, -0.20047050714492798, 0.2075011432170868, 0.06342069804668427, -0.006010418292135, -0.07796693593263626, -0.21884961426258087, 0.11231508105993271, 0.4374072253704071, -0.19604717195034027, 0.10596950352191925, 0.16385518014431, -0.0032021068036556244, 0.47944000363349915, -0.16350476443767548, 0.25603410601615906, 0.278272807598114, 0.12073791027069092, -0.4208909869194031, -0.009968160651624203, 0.392607182264328, -0.032233234494924545, -0.11577463150024414, 0.17495295405387878, 0.09175015985965729, 0.11051304638385773, -0.1610085517168045, 0.2474079728126526, 0.3215138912200928, -0.2639530301094055, 0.24765732884407043, 0.24899567663669586, 0.14601144194602966, 0.07429368048906326, -0.026991253718733788, 0.22594884037971497, 0.03211090713739395, 0.4658448100090027, -0.34811675548553467, 0.21853400766849518, -0.11391628533601761, 0.25910013914108276, -0.19015568494796753, -0.3677084743976593, 0.12504781782627106, 0.3036642372608185, 0.10841648280620575, 0.0828297883272171, -0.2962626814842224, 0.3766215443611145, -0.25663629174232483, 0.24351650476455688, -0.27051714062690735, 0.25574159622192383, -0.15649175643920898, -0.3460773825645447, -0.11840400844812393, -0.3570038378238678, 0.034263841807842255, 0.036369334906339645, 0.023547647520899773, -0.19799233973026276, -0.06233641505241394, 0.21271057426929474, -0.1376573145389557, -0.33414119482040405, -0.06505201756954193, 0.08431272953748703, 0.15630529820919037, -0.10541556775569916, 0.07102201133966446, 0.30028754472732544, -0.0058784931898117065, 0.16461068391799927, 0.04616851359605789, 0.5031883120536804, 0.4529598355293274, -0.3615341782569885, 0.1513344645500183, -0.07663241028785706, -0.1688949316740036, 0.043857041746377945, 0.20258155465126038, 0.16349230706691742, 0.1932380646467209, 0.023046188056468964, 0.13041748106479645, -0.10902343690395355, 0.3621739149093628, -0.055103424936532974, 0.27016642689704895, -0.274711549282074, 0.08971133828163147, -0.4953478276729584, -0.07871078699827194, -0.465494304895401, 0.130890354514122, -0.4352189600467682, 0.2043391466140747, 0.38183075189590454, 0.08591707050800323, -0.08244127780199051, -0.12149529904127121, 0.034888092428445816, -0.06095264479517937, 0.5068438649177551, 0.4655902087688446, -0.0042841024696826935, -0.31909310817718506, -0.04138685017824173, -0.8435491323471069, -0.033294521272182465, -0.10079298913478851, -0.09575540572404861, -0.1398041844367981, 0.1500566601753235, 0.16671043634414673, 0.040470246225595474, 0.040353842079639435, -0.5100941061973572, 0.1848674714565277, 0.024006903171539307, -0.12308546900749207, -0.21987713873386383, -0.2002836912870407, 0.2074136883020401, -0.027175206691026688, -0.004810396581888199, -0.10528433322906494, -0.43289023637771606, -0.10447679460048676, -0.2810298800468445, -0.00022338330745697021, -0.18935438990592957, 0.038328565657138824, 0.2756374180316925, -0.15593692660331726, 0.4702203869819641, 0.053578391671180725, -0.29733192920684814, -0.4378243088722229, -0.2957698702812195, -0.04275135323405266, 0.28429415822029114, 0.0013647079467773438, 0.48187580704689026, -0.4417453706264496, -0.0757947564125061, -0.3557061553001404, 0.1973000019788742, 0.012000150978565216, 0.05510247126221657, -0.21703174710273743, -0.1389431208372116, 0.057626523077487946, -0.07875330746173859, 0.2426237314939499, 0.22710862755775452, -0.05751694738864899, 0.2714572846889496, -0.08604968339204788, -0.1240004450082779, 0.6063531637191772, -0.6618576049804688, 0.04509681835770607, -0.021219465881586075, 0.0025196895003318787, -0.20476260781288147, -0.011348867788910866, -0.6350094079971313, 0.14991378784179688, 0.29583513736724854, 0.1970755159854889, -0.2056306153535843, 0.09557254612445831, -0.013336682692170143, -0.18130972981452942, -0.11739630997180939, -0.10598328709602356, -0.021905317902565002, -0.15658338367938995, -0.029998337849974632, -0.08643881231546402 ]
https://github.com/huggingface/datasets/issues/2104
Trouble loading wiki_movies
Thanks a lot! That solved it and I was able to upload a model trained on it as well :)
Hello, I am trying to load_dataset("wiki_movies") and it gives me this error - `FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py` Trying to do `python run_mlm.py \ --model_name_or_path roberta-base \ --dataset_name wiki_movies \` also gives the same error. Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago. Thank you!
20
Trouble loading wiki_movies Hello, I am trying to load_dataset("wiki_movies") and it gives me this error - `FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py` Trying to do `python run_mlm.py \ --model_name_or_path roberta-base \ --dataset_name wiki_movies \` also gives the same error. Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago. Thank you! Thanks a lot! That solved it and I was able to upload a model trained on it as well :)
[ -0.11215637624263763, -0.013994790613651276, 0.007302761077880859, 0.4026294946670532, 0.3210340142250061, 0.2078266143798828, 0.2428792268037796, 0.2546979784965515, 0.15914610028266907, -0.12934020161628723, -0.08096640557050705, -0.06365764886140823, -0.017483025789260864, 0.03714539110660553, 0.2689794898033142, -0.14649543166160583, 0.14409126341342926, -0.08042551577091217, 0.038645848631858826, -0.1759171485900879, -0.2859066128730774, 0.15602771937847137, -0.09588181972503662, 0.052304111421108246, -0.37314358353614807, -0.007069813087582588, -0.1327134519815445, 0.40598803758621216, -0.14150607585906982, -0.21471723914146423, 0.4609825611114502, -0.17467686533927917, 0.6153910160064697, 0.5836371779441833, -0.00011640711454674602, 0.1489437073469162, 0.35993677377700806, -0.11149127781391144, -0.21624478697776794, -0.19644944369792938, 0.20646944642066956, -0.20073455572128296, 0.27100515365600586, -0.09297041594982147, -0.12473712861537933, 0.0024904413148760796, 0.16381439566612244, -0.15822181105613708, 0.06038534641265869, 0.16671080887317657, 0.1763140708208084, 0.2521987557411194, 0.21799065172672272, -0.07627903670072556, 0.232539564371109, 0.15300138294696808, -0.056103646755218506, 0.4803476333618164, 0.19466154277324677, -0.522786557674408, 0.15772560238838196, 0.24669107794761658, -0.24177058041095734, -0.11983515322208405, 0.5773372650146484, 0.15895062685012817, 0.35790449380874634, -0.36345374584198, 0.19962698221206665, 0.40871673822402954, 0.613502025604248, 0.007712826132774353, -0.3705618679523468, -0.10674553364515305, 0.11707701534032822, -0.09478114545345306, 0.2538560926914215, 0.35915619134902954, -0.032333482056856155, 0.22140012681484222, 0.09570541977882385, -0.2623708248138428, -0.007684476673603058, 0.44805169105529785, 0.05972973257303238, 0.45611250400543213, -0.01884397119283676, 0.06589458882808685, 0.1543424427509308, -0.19141757488250732, -0.2707587778568268, -0.012047983705997467, -0.037583429366350174, 0.44954535365104675, 0.033393729478120804, 0.12868140637874603, -0.011118635535240173, 0.4703662097454071, -0.1006706953048706, -0.04719063639640808, -0.06577076762914658, -0.06878480315208435, 0.024542085826396942, 0.19411298632621765, 0.2931634485721588, 0.06721623241901398, -0.1521090269088745, -0.003302612341940403, 0.25219646096229553, 0.4258033037185669, -0.2807629108428955, -0.20498251914978027, -0.2595445513725281, -0.048532694578170776, -0.41006872057914734, -0.3608538508415222, 0.3782416582107544, -0.14591968059539795, -0.30068284273147583, 0.05371851474046707, -0.24057933688163757, -0.20091794431209564, 0.23331719636917114, 0.5762203335762024, -0.161189004778862, 0.172894686460495, 0.026618197560310364, 0.17844751477241516, -0.25354188680648804, 0.15133865177631378, -0.1137235164642334, 0.20676875114440918, -0.2304680347442627, 0.22178135812282562, 0.27406764030456543, -0.036896467208862305, 0.4466456174850464, -0.16664138436317444, 0.013137541711330414, -0.14063426852226257, 0.026450706645846367, -0.005662101320922375, -0.12386661022901535, 0.4525803327560425, -0.0446489192545414, 0.15155519545078278, 0.37360915541648865, -0.35365724563598633, -0.10879208147525787, 0.08376841992139816, -0.17769327759742737, -0.3517283499240875, -0.10603393614292145, 0.08905057609081268, 0.07011925429105759, -0.19326342642307281, -0.21204158663749695, 0.11351807415485382, 0.000012345612049102783, -0.4642561376094818, -0.06146661192178726, 0.1810545176267624, -0.07813647389411926, -0.22760049998760223, 0.39753252267837524, 0.7473241090774536, -0.28781840205192566, -0.049601685255765915, -0.2907516360282898, 0.0037929080426692963, -0.05797421187162399, 0.27029502391815186, -0.26918816566467285, 0.15152017772197723, -0.33905336260795593, 0.08292092382907867, 0.06626255810260773, -0.45363757014274597, -0.21665634214878082, 0.32757580280303955, -0.17369607090950012, 0.13872161507606506, 0.059236086905002594, 0.16503486037254333, -0.39824604988098145, -0.17465350031852722, 0.1784094274044037, 0.024727242067456245, 0.0772707387804985, -0.2549577057361603, -0.2193593531847, -0.17622911930084229, 0.19559577107429504, 0.21313165128231049, 0.041698627173900604, 0.03179258480668068, 0.05635490268468857, -0.06421396881341934, 0.2531672716140747, -0.019083548337221146, -0.2033088207244873, 0.14631983637809753, 0.3621000349521637, 0.3864983320236206, -0.004920655861496925, -0.009554054588079453, -0.4130251109600067, 0.2022416591644287, -0.10399407893419266, 0.03957173600792885, -0.09819342195987701, -0.07035224139690399, -0.042011067271232605, 0.07176776230335236, -0.26997023820877075, -0.22918343544006348, 0.0739767998456955, 0.010679155588150024, -0.14344847202301025, 0.20133477449417114, -0.31673553586006165, -0.20311026275157928, -0.21503199636936188, 0.24044930934906006, -0.390948623418808, 0.2344638556241989, -0.12048987299203873, 0.024204760789871216, -0.040911976248025894, 0.17397531867027283, 0.2111230194568634, -0.13631266355514526, 0.13316932320594788, 0.3344074487686157, -0.0879499614238739, 0.19926726818084717, 0.3177419602870941, 0.22899264097213745, 0.17114725708961487, -0.07943055033683777, 0.19901427626609802, 0.2143540233373642, 0.2429056018590927, -0.02939128503203392, -0.18890485167503357, 0.3995213508605957, -0.0126832015812397, 0.23035666346549988, 0.24644149839878082, 0.01908312551677227, 0.1926734745502472, 0.03690246865153313, -0.05329456925392151, -0.1471390426158905, 0.48257744312286377, 0.2494850903749466, 0.14423444867134094, -0.01294737122952938, -0.2999361753463745, -0.1178649291396141, -0.02639806643128395, -0.12275063991546631, 0.21492677927017212, 0.059158653020858765, -0.409338116645813, 0.08535180240869522, -0.043314576148986816, 0.10721001029014587, 0.39323168992996216, 0.12628428637981415, -0.1545923501253128, -0.07338139414787292, -0.003325393423438072, -0.2250158041715622, 0.27333834767341614, 0.13820263743400574, 0.07632850110530853, 0.20137953758239746, 0.012928098440170288, 0.010093829594552517, -0.3816264867782593, 0.009258441627025604, -0.07799948751926422, 0.08100731670856476, -0.22325384616851807, 0.17624682188034058, -0.1877775639295578, -0.02940550073981285, -0.2262086272239685, -0.3067164719104767, -0.32793405652046204, -0.2259715348482132, -0.037659868597984314, 0.2222726047039032, 0.13733190298080444, 0.027957603335380554, -0.07984112203121185, 0.07349209487438202, -0.28746140003204346, -0.18319645524024963, -0.03588186204433441, -0.29423847794532776, -0.2293562889099121, -0.015993505716323853, 0.6218867301940918, -0.13505014777183533, 0.1590103954076767, -0.09592477977275848, -0.08933209627866745, -0.21301549673080444, -0.5159599184989929, -0.04867524653673172, -0.014201246201992035, 0.4615415930747986, -0.03632901608943939, 0.4115786552429199, -0.1496352106332779, -0.3485875427722931, 0.400130033493042, 0.06156118959188461, 0.1341526359319687, -0.05452808365225792, -0.03583057224750519, -0.2908647954463959, -0.0004586055874824524, -0.4532819092273712, -0.39325258135795593, -0.13453753292560577, 0.1750050187110901, 0.2183777242898941, -0.13834117352962494, 0.25964346528053284, 0.0735042616724968, 0.20457956194877625, -0.21763849258422852, -0.005353784188628197, -0.044567473232746124, -0.37355104088783264, 0.4692230820655823, -0.18740537762641907, -0.33538317680358887, 0.4011887311935425, 0.005090927705168724, -0.03720453009009361, -0.3107057213783264, -0.5931294560432434, -0.09527050703763962, 0.12362809479236603, 0.06052586808800697, 0.20663577318191528, 0.042893052101135254, 0.18699443340301514, -0.16183686256408691, 0.04798610508441925, 0.09441164880990982, -0.12302534282207489, -0.10392055660486221, -0.09011383354663849, 0.30174535512924194, -0.15615221858024597, 0.44667550921440125, -0.4208751916885376, 0.7149729132652283, 0.00788591057062149, 0.05813812464475632, 0.3880026936531067, -0.14774589240550995, 0.43236973881721497, -0.14175757765769958, -0.39125919342041016, -0.019208533689379692, -0.2129061222076416, -0.20295026898384094, 0.37658607959747314, 0.2192344069480896, -0.28985050320625305, -0.3992305397987366, -0.16116859018802643, -0.2319955825805664, -0.21615104377269745, 0.08006037771701813, 0.34336012601852417, 0.04767617583274841, 0.2242881953716278, 0.16651791334152222, -0.027169935405254364, -0.3645155429840088, 0.1873084455728531, 0.7527636885643005, 0.2025977522134781, -0.03928067907691002, -0.403148353099823, -0.3619459569454193, -0.29747653007507324, 0.20643652975559235, -0.09983043372631073, 0.0445728562772274, -0.14027522504329681, -0.1308007687330246, 0.19768795371055603, -0.1495131403207779, 0.7062321901321411, -0.01510155014693737, -0.13036297261714935, -0.023795053362846375, 0.01011381670832634, -0.2143743485212326, -0.18739256262779236, 0.12637224793434143, 0.22558173537254333, 0.017589591443538666, 0.5091716647148132, -0.02200823277235031, -0.022552751004695892, 0.15746982395648956, 0.1466570496559143, -0.25930875539779663, -0.17712804675102234, -0.45651519298553467, -0.2402566373348236, -0.2624646723270416, -0.28557127714157104, -0.10595300048589706, 0.2425217479467392, 0.09593936055898666, 0.2101484090089798, -0.011729063466191292, 0.11879656463861465, 0.2532065510749817, 0.05920540168881416, 0.2856890857219696, 0.23650382459163666, 0.061085041612386703, 0.3171512484550476, 0.5217159986495972, 0.283380925655365, 0.571885347366333, -0.14913980662822723, -0.10940307378768921, -0.08250642567873001, -0.06907189637422562, 0.2677217125892639, 0.43278223276138306, 0.0016413433477282524, -0.18012875318527222, 0.4139869213104248, -0.08106419444084167, -0.4332713186740875, -0.17004965245723724, 0.32245972752571106, -0.13023149967193604, -0.20277227461338043, -0.3941424787044525, 0.7360112071037292, -0.07146729528903961, 0.12361538410186768, 0.037517692893743515, 0.24553519487380981, -0.16672764718532562, 0.13851484656333923, -0.03770522028207779, 1.121585726737976, -0.2203507274389267, 0.38000550866127014, 0.3796662986278534, 0.2959088087081909, 0.23635753989219666, -0.44493192434310913, 0.1420256495475769, -0.29013800621032715, -0.021332185715436935, -0.16979961097240448, 0.0020003914833068848, 0.15967965126037598, 0.03625832498073578, -0.13082388043403625, 0.3028576970100403, -0.11040790379047394, 0.28783032298088074, -0.16665484011173248, 0.09594056010246277, 0.05232065171003342, -0.03514375910162926, -0.5819414258003235, 0.049943335354328156, 0.21045152842998505, 0.43098196387290955, -0.27766352891921997, -0.0368850901722908, -0.2028917819261551, -0.10224178433418274, -0.28530827164649963, -0.047193024307489395, -0.3949618339538574, 0.1297578662633896, 0.13229860365390778, -0.15305128693580627, -0.1574644148349762, 0.5224308967590332, -0.02011692523956299, -0.006963741034269333, -0.41002020239830017, 0.1855686604976654, -0.1916390359401703, -0.5221066474914551, -0.27410343289375305, -0.014812213368713856, 0.33045250177383423, -0.08864007890224457, -0.1722719669342041, 0.03289809077978134, -0.24352483451366425, -0.021796008571982384, -0.31950148940086365, -0.06317117810249329, 0.17407475411891937, -0.09996607154607773, -0.622761607170105, 0.0590878501534462, 0.014593102037906647, -0.033476874232292175, 0.0772041380405426, 0.0882931649684906, -0.10703682154417038, -0.28597065806388855, 0.2736418843269348, -0.0845416784286499, -0.14450740814208984, 0.6002657413482666, -0.23568803071975708, 0.030729278922080994, 0.6164116859436035, 0.509624719619751, -0.16033262014389038, -0.15090617537498474, 0.2975330948829651, 0.2535952627658844, -0.30250319838523865, -0.08757483214139938, 0.5863988995552063, 0.19624723494052887, 0.09810727834701538, 0.18266092240810394, 0.3016437292098999, -0.3405369222164154, -0.05888582020998001, -0.6151735186576843, -0.11463668197393417, 0.36771082878112793, -0.019793879240751266, -0.04128582403063774, 0.01215103268623352, -0.08427426218986511, 0.2014104425907135, -0.08307401835918427, -0.22673006355762482, 0.12257790565490723, -0.05731254443526268, -0.09078206866979599, 0.45274943113327026, 0.141514852643013, 0.35293859243392944, 0.17074596881866455, 0.1157713532447815, -0.09363801777362823, -0.05376321077346802, -0.13795459270477295, -0.010354380123317242, 0.1959904134273529, 0.10636888444423676, -0.1523098349571228, 0.04141569137573242, -0.29550033807754517, -0.04077144339680672, -0.1386503279209137, -0.1851908564567566, 0.018731053918600082, 0.18798509240150452, -0.08984110504388809, 0.13966824114322662, 0.027204975485801697, -0.3407515287399292, 0.14794181287288666, -0.11706686019897461, 0.2890987992286682, 0.22246046364307404, -0.2969362139701843, 0.16971169412136078, 0.04259088635444641, -0.03842303901910782, -0.04394114017486572, -0.24816180765628815, 0.12284541130065918, 0.4163687229156494, -0.20343373715877533, 0.09299701452255249, 0.1349322646856308, 0.020909052342176437, 0.45376935601234436, -0.20055077970027924, 0.3117965757846832, 0.3188026249408722, 0.10283351689577103, -0.47114208340644836, -0.03224596008658409, 0.42853844165802, -0.09749343991279602, -0.1177176833152771, 0.13290613889694214, 0.02030426636338234, 0.1275995969772339, -0.25211066007614136, 0.20200997591018677, 0.24929292500019073, -0.1423901617527008, 0.1922290027141571, 0.22571176290512085, 0.13718272745609283, 0.09676706790924072, -0.018632398918271065, 0.17620854079723358, 0.04344179481267929, 0.483572781085968, -0.3364112079143524, 0.16389401257038116, -0.18986272811889648, 0.18456988036632538, -0.1459105908870697, -0.3627072274684906, 0.11229513585567474, 0.33810800313949585, 0.08422240614891052, 0.07790172100067139, -0.31573280692100525, 0.4324376881122589, -0.25587794184684753, 0.20310597121715546, -0.2942213714122772, 0.2279842495918274, -0.17957109212875366, -0.3268267512321472, -0.13941168785095215, -0.37546616792678833, 0.03630765527486801, 0.10294592380523682, 0.006125833839178085, -0.18196117877960205, -0.05573521554470062, 0.19912560284137726, -0.1180708259344101, -0.2143518626689911, 0.005897346884012222, 0.0865512490272522, 0.18423187732696533, -0.1216406375169754, 0.03189156949520111, 0.2790631651878357, 0.02430908754467964, 0.21110394597053528, 0.0075360257178545, 0.4232616722583771, 0.44219595193862915, -0.3254862427711487, 0.21908001601696014, -0.033356327563524246, -0.15364067256450653, 0.06188947707414627, 0.20943108201026917, 0.22209160029888153, 0.2221369445323944, 0.08088478446006775, 0.09967129677534103, -0.08422921597957611, 0.41986337304115295, -0.053138840943574905, 0.26802879571914673, -0.28026238083839417, 0.04591859504580498, -0.48685207962989807, -0.09233585000038147, -0.5042527914047241, 0.09258754551410675, -0.37060701847076416, 0.21900752186775208, 0.37532728910446167, 0.1103682816028595, -0.049560122191905975, -0.06061764433979988, 0.021388791501522064, -0.06462438404560089, 0.4957808554172516, 0.4861960709095001, -0.015335440635681152, -0.36406368017196655, -0.019830815494060516, -0.8502102494239807, 0.03214649111032486, -0.08404932916164398, -0.06414549797773361, -0.10652267187833786, 0.12824974954128265, 0.22961470484733582, -0.03547711670398712, -0.019413605332374573, -0.43987178802490234, 0.15875200927257538, 0.0537588931620121, -0.11370223760604858, -0.24702976644039154, -0.2540217638015747, 0.25035279989242554, -0.09197941422462463, -0.014309652149677277, -0.086722731590271, -0.415689080953598, -0.08616948127746582, -0.25710463523864746, -0.05742388591170311, -0.26726406812667847, 0.10490456223487854, 0.2118825912475586, -0.13446231186389923, 0.4210889935493469, 0.03998084366321564, -0.2676469683647156, -0.41607075929641724, -0.26148778200149536, -0.05432343855500221, 0.1965264081954956, -0.007715143263339996, 0.4464057683944702, -0.3979942202568054, -0.03115849569439888, -0.33300694823265076, 0.1670854389667511, -0.0031122304499149323, 0.0065230983309447765, -0.3167001008987427, -0.14738568663597107, 0.05370015650987625, -0.07882135361433029, 0.2945432662963867, 0.23429685831069946, -0.10156625509262085, 0.13171857595443726, -0.00737415999174118, -0.07934543490409851, 0.6290509700775146, -0.7522625923156738, 0.03839503601193428, 0.03585081547498703, -0.014808014035224915, -0.19589456915855408, 0.03641829639673233, -0.6877138018608093, 0.1022055521607399, 0.2648138105869293, 0.19691485166549683, -0.24377979338169098, 0.064104825258255, -0.018796125426888466, -0.17725017666816711, -0.08399397879838943, -0.09263718128204346, -0.06335107982158661, -0.19782721996307373, -0.035112299025058746, -0.11550848931074142 ]
https://github.com/huggingface/datasets/issues/2103
citation, homepage, and license fields of `dataset_info.json` are duplicated many times
Thanks for reporting :) Maybe we can concatenate fields only if they are different. Currently this is done here: https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/info.py#L180-L196 This can be a good first contribution to the library. Please comment if you'd like to improve this and open a PR :)
This happens after a `map` operation when `num_proc` is set to `>1`. I tested this by cleaning up the json before running the `map` op on the dataset so it's unlikely it's coming from an earlier concatenation. Example result: ``` "citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n ``` @lhoestq and I believe this is happening due to the fields being concatenated `num_proc` times.
43
citation, homepage, and license fields of `dataset_info.json` are duplicated many times This happens after a `map` operation when `num_proc` is set to `>1`. I tested this by cleaning up the json before running the `map` op on the dataset so it's unlikely it's coming from an earlier concatenation. Example result: ``` "citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n ``` @lhoestq and I believe this is happening due to the fields being concatenated `num_proc` times. Thanks for reporting :) Maybe we can concatenate fields only if they are different. Currently this is done here: https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/info.py#L180-L196 This can be a good first contribution to the library. Please comment if you'd like to improve this and open a PR :)
[ 0.13812312483787537, 0.013645768165588379, -0.06308358162641525, 0.39427804946899414, -0.00548119843006134, 0.07270941883325577, 0.22892536222934723, 0.3846514821052551, -0.06935502588748932, 0.043141402304172516, 0.07733909785747528, 0.6607298851013184, 0.4834607243537903, -0.11136778444051743, 0.09862891584634781, 0.25401490926742554, 0.07265372574329376, 0.037146538496017456, 0.1630941778421402, -0.024759776890277863, -0.14420396089553833, 0.347674161195755, -0.02845311537384987, 0.025611024349927902, -0.2232685089111328, -0.021375486627221107, -0.25901997089385986, 0.2612614333629608, -0.010787254199385643, -0.2939237058162689, -0.23025482892990112, 0.3371427059173584, -0.34432584047317505, 0.04096788167953491, -0.00011347101826686412, -0.10482057929039001, 0.09306271374225616, 0.09506334364414215, -0.11593499779701233, -0.1097438633441925, -0.331269234418869, 0.006782062351703644, 0.12330644577741623, -0.33014267683029175, 0.20310363173484802, -0.09640481323003769, -0.14377906918525696, 0.10154826939105988, 0.3578602075576782, 0.03147363290190697, 0.13444653153419495, -0.3486810326576233, -0.03641393780708313, 0.2117994874715805, 0.16706199944019318, 0.5066620707511902, 0.2788800895214081, -0.022538121789693832, 0.056787945330142975, 0.13726258277893066, -0.03728603571653366, 0.3509613275527954, -0.017438821494579315, 0.0689735859632492, -0.08893982321023941, 0.019865931943058968, 0.3704960346221924, -0.2638969421386719, 0.40294137597084045, 0.2036253809928894, 0.19983680546283722, -0.21526765823364258, -0.06498022377490997, -0.15083128213882446, 0.2594076991081238, 0.043361596763134, 0.011646166443824768, 0.12484273314476013, 0.29156818985939026, 0.09520908445119858, -0.1523612141609192, -0.12893247604370117, 0.01564866304397583, -0.2076677829027176, -0.10421867668628693, 0.1388814002275467, 0.05450386181473732, 0.2547236979007721, 0.4554470479488373, -0.17569826543331146, -0.009451265446841717, -0.37329959869384766, -0.36301785707473755, -0.14886067807674408, -0.1156102865934372, -0.25864851474761963, -0.046838849782943726, -0.06977201253175735, 0.12387057393789291, 0.11882127821445465, 0.11582667380571365, 0.25331437587738037, 0.004477348178625107, 0.19211196899414062, 0.4902763366699219, -0.1692834347486496, -0.016741111874580383, 0.1683240532875061, 0.16278988122940063, -0.1561908721923828, -0.3621462285518646, 0.2883543372154236, 0.23242861032485962, 0.2500542104244232, -0.2877441346645355, -0.2357923984527588, 0.2499602884054184, -0.12836894392967224, -0.16344057023525238, 0.16446873545646667, -0.2285560667514801, -0.2335815727710724, -0.07432514429092407, -0.012704163789749146, 0.2380666881799698, 0.031107278540730476, -0.08161938190460205, -0.07619418203830719, 0.06148536503314972, -0.12741471827030182, -0.13340270519256592, -0.05733748897910118, 0.024981748312711716, 0.04474019631743431, 0.21089477837085724, 0.195805624127388, 0.2852681577205658, 0.43871960043907166, -0.24924413859844208, -0.6506677269935608, 0.4075790047645569, 0.023532357066869736, 0.060932282358407974, 0.2766377031803131, -0.06460230052471161, 0.2921268343925476, 0.05614759773015976, -0.09859936684370041, -0.18497054278850555, 0.20499145984649658, -0.5609198808670044, -0.1700747013092041, -0.09849447011947632, 0.1963614523410797, 0.06908916682004929, 0.05841626226902008, 0.0691957101225853, 0.0430898480117321, 0.19062121212482452, 0.08878770470619202, -0.055913813412189484, 0.09770343452692032, -0.24199672043323517, -0.0013048623222857714, -0.217988520860672, 0.49135905504226685, -0.23443154990673065, 0.030189380049705505, -0.13521328568458557, 0.10473795235157013, 0.11585407704114914, 0.3253317177295685, -0.30035069584846497, 0.44139978289604187, -0.14080846309661865, 0.12484076619148254, 0.19135591387748718, -0.2989715039730072, -0.12609416246414185, 0.4549359977245331, -0.2909895181655884, -0.17406921088695526, 0.10849597305059433, 0.015191767364740372, 0.19847598671913147, 0.02995365858078003, 0.29033273458480835, -0.16297516226768494, 0.28470689058303833, 0.18261684477329254, -0.10787667334079742, 0.007740622386336327, 0.15976309776306152, 0.11049796640872955, -0.5287643671035767, -0.19303539395332336, 0.0745648518204689, 0.10356609523296356, -0.010088860988616943, -0.1794375628232956, -0.1288517862558365, 0.4532904624938965, -0.00804438441991806, -0.1855049878358841, 0.28046151995658875, 0.23614093661308289, -0.16173282265663147, -0.004741594195365906, -0.21216511726379395, -0.23743531107902527, 0.012613050639629364, -0.31039702892303467, 0.13634124398231506, 0.05770222097635269, -0.22587181627750397, -0.0005590096116065979, 0.17188815772533417, 0.21674157679080963, -0.18726328015327454, -0.0663008987903595, 0.03443645313382149, -0.00654195062816143, -0.22947852313518524, -0.05807231366634369, -0.3690659999847412, -0.22515718638896942, -0.19293005764484406, 0.2902039885520935, 0.10012641549110413, 0.05165901780128479, 0.4500667154788971, -0.07696349173784256, -0.00836939923465252, 0.12138953059911728, 0.4090747833251953, 0.2413637340068817, 0.33295169472694397, 0.21671074628829956, 0.5112670660018921, 0.10913507640361786, 0.06614968925714493, 0.032089926302433014, 0.037671077996492386, -0.38057076930999756, -0.31772005558013916, 0.28667178750038147, 0.03995381295681, 0.0024852603673934937, -0.0771474838256836, 0.027787527069449425, 0.46585172414779663, 0.1128014475107193, 0.03281019628047943, -0.46005499362945557, -0.018491800874471664, 0.6355437636375427, -0.2225131243467331, 0.4609513282775879, 0.06203579902648926, 0.5856896638870239, 0.45125189423561096, -0.34115877747535706, -0.1285099983215332, -0.012675955891609192, -0.12371178716421127, -0.4660649299621582, -0.02808566205203533, 0.3222881555557251, 0.2815459966659546, 0.14245013892650604, -0.0743342787027359, 0.13085204362869263, 0.15663999319076538, -0.2218484729528427, 0.35938066244125366, 0.0051239728927612305, 0.0784255862236023, 0.07616716623306274, 0.29855969548225403, -0.07614941895008087, -0.4390312433242798, -0.21051380038261414, 0.5419510006904602, 0.18281932175159454, -0.3398182988166809, -0.07417318969964981, -0.5753316879272461, 0.2566523849964142, -0.2085876166820526, 0.0790696069598198, -0.21994686126708984, -0.3306311070919037, 0.19158656895160675, 0.5351458191871643, -0.19175273180007935, 0.0248042531311512, 0.21897250413894653, 0.4054916501045227, -0.04783538356423378, 0.03786619380116463, -0.24211643636226654, -0.2526843845844269, -0.0021719932556152344, 0.000737801194190979, 0.16829271614551544, -0.16670337319374084, 0.09854026883840561, -0.0009677223861217499, -0.061815518885850906, -0.6569474935531616, -0.3852790296077728, 0.2029547393321991, -0.21768559515476227, -0.08809021860361099, 0.06047028303146362, -0.022923707962036133, -0.4931526780128479, -0.13603398203849792, -0.24911949038505554, 0.4120314419269562, -0.31686365604400635, 0.1458396315574646, -0.2303527295589447, -0.1695067137479782, -0.3084942698478699, -0.2869493067264557, 0.0622558668255806, 0.04284314438700676, 0.2375156730413437, 0.00926654040813446, 0.29034072160720825, 0.014732789248228073, -0.24078884720802307, -0.019458798691630363, -0.12928107380867004, 0.16809259355068207, -0.6054062843322754, -0.32653072476387024, -0.1008288562297821, -0.1986558884382248, -0.08405065536499023, -0.07537341862916946, 0.2982833981513977, -0.04947647824883461, -0.10833343863487244, -0.5357654094696045, -0.13310836255550385, 0.13645415008068085, 0.031063925474882126, -0.25958380103111267, -0.02663990668952465, 0.3220064640045166, 0.3555793762207031, -0.22427205741405487, 0.007575776427984238, -0.06703637540340424, 0.22025421261787415, 0.31027933955192566, 0.21861198544502258, -0.18070796132087708, -0.14282575249671936, -0.25036436319351196, 0.4967600107192993, 0.6802618503570557, -0.08722494542598724, -0.08124248683452606, 0.06481979787349701, 0.14083629846572876, 0.06725092232227325, 0.08753319084644318, -0.12584847211837769, -0.08808360993862152, 0.01613287627696991, 0.4707184433937073, -0.08531337976455688, -0.08353839069604874, 0.23745480179786682, 0.25000250339508057, -0.36856159567832947, -0.3060157597064972, -0.053465336561203, -0.16192376613616943, 0.13604217767715454, 0.15804795920848846, 0.23787331581115723, -0.004199753515422344, -0.037293389439582825, -0.06106105446815491, -0.0035315975546836853, 0.06074555963277817, -0.28183209896087646, -0.3054351210594177, -0.396785706281662, -0.38373225927352905, 0.18322822451591492, -0.10953832417726517, 0.04915745556354523, -0.12818917632102966, 0.11258415132761002, 0.07217845320701599, -0.10631125420331955, 0.8338925838470459, -0.4579748213291168, 0.1676812767982483, 0.16767902672290802, -0.20814891159534454, -0.12398247420787811, -0.08995883166790009, -0.2645115554332733, 0.2085202932357788, 0.4078376591205597, 0.48694369196891785, -0.1510309875011444, 0.2392732948064804, 0.11577942222356796, 0.005084302742034197, -0.16748696565628052, 0.03842862695455551, 0.06592896580696106, -0.38315320014953613, -0.3229147791862488, -0.15690544247627258, -0.1459067165851593, -0.017764607444405556, -0.11311335861682892, -0.2006794959306717, 0.20026910305023193, 0.15685725212097168, 0.13974569737911224, 0.23048681020736694, 0.1816810667514801, 0.18292027711868286, 0.15659141540527344, 0.013052640482783318, -0.05046156793832779, 0.18620291352272034, 0.33604520559310913, 0.1446375995874405, -0.09757418930530548, 0.06521616131067276, -0.33867108821868896, 0.07437759637832642, 0.2682870328426361, 0.2098904848098755, 0.17820528149604797, 0.04160632938146591, -0.1456059068441391, -0.14588482677936554, -0.2388180047273636, 0.2699168622493744, -0.02645466849207878, -0.11453519761562347, 0.0346522256731987, 0.16182813048362732, 0.22715964913368225, -0.3504944443702698, 0.4041938781738281, -0.23579971492290497, -0.12183232605457306, 0.3312457203865051, 0.0987783670425415, 1.0419567823410034, -0.2682441473007202, -0.20272263884544373, -0.2757572531700134, -0.3043019771575928, 0.6576958894729614, -0.2995235323905945, 0.11706175655126572, -0.5067403316497803, 0.008006695657968521, 0.11761985719203949, -0.07102689892053604, -0.12930408120155334, 0.09759408235549927, -0.46308600902557373, -0.20395557582378387, 0.1638483703136444, 0.3448336720466614, -0.1945910006761551, 0.4422995150089264, 0.3032675087451935, -0.1749410778284073, 0.07026705145835876, 0.1349467933177948, -0.19022022187709808, -0.2142542600631714, 0.05708981305360794, 0.032827917486429214, 0.1693001240491867, -0.2354007214307785, -0.3341635465621948, 0.1725386083126068, 0.07725521177053452, 0.5955440402030945, -0.20487776398658752, 0.006133638322353363, -0.22872492671012878, 0.017346590757369995, 0.20615090429782867, 0.2898864150047302, -0.24593693017959595, 0.12475843727588654, 0.13471296429634094, 0.38200491666793823, -0.13490590453147888, -0.11989447474479675, -0.08216339349746704, 0.002130981534719467, -0.34520184993743896, -0.3407835364341736, 0.19768084585666656, -0.11503782123327255, -0.33292466402053833, 0.09179726243019104, -0.23689626157283783, -0.02272365614771843, 0.08989651501178741, 0.298475980758667, -0.4994902014732361, -0.2512394189834595, 0.0576174296438694, -0.17962464690208435, -0.2918621897697449, 0.33025386929512024, 0.03613114729523659, -0.5448487997055054, -0.07784409821033478, 0.3736336827278137, 0.36029911041259766, 0.34969794750213623, 0.12379904836416245, -0.05006337910890579, -0.08679015189409256, -0.3264314532279968, 0.18014702200889587, -0.48740965127944946, 0.019855670630931854, 0.15202128887176514, -0.05633365362882614, -0.11887946724891663, 0.004814565181732178, 0.018650200217962265, -0.23424921929836273, 0.6001551151275635, -0.20112042129039764, -0.279007226228714, -0.09272956103086472, -0.08599421381950378, 0.01457817293703556, 0.2944096624851227, 0.38198864459991455, -0.07693502306938171, -0.2734096348285675, 0.3077002763748169, -0.28193265199661255, 0.34028807282447815, -0.12012289464473724, 0.19736000895500183, -0.16311125457286835, -0.054411113262176514, -0.09365465492010117, 0.08719675242900848, 0.19698768854141235, 0.2647095322608948, -0.07031809538602829, -0.22481438517570496, -0.055546101182699203, 0.156610369682312, 0.0011511165648698807, 0.13341236114501953, -0.29935672879219055, -0.0896676778793335, 0.09871305525302887, -0.18325750529766083, 0.144194096326828, -0.1658315658569336, 0.18171420693397522, -0.050769269466400146, -0.28671181201934814, -0.009659625589847565, 0.16973230242729187, -0.1586877405643463, -0.1601485013961792, 0.3902062177658081, 0.12444709241390228, 0.25721532106399536, -0.1888330578804016, -0.1511440873146057, -0.44230082631111145, 0.05011143535375595, 0.0833747535943985, -0.06577089428901672, 0.16481035947799683, 0.13095225393772125, -0.3424825668334961, 0.04701003059744835, 0.21618297696113586, 0.34475836157798767, -0.3605042099952698, -0.29732102155685425, -0.31675687432289124, 0.13498662412166595, -0.24027912318706512, -0.4959183633327484, 0.3653348386287689, 0.02293727546930313, -0.14228321611881256, 0.15553827583789825, 0.3599424362182617, -0.35768458247184753, -0.008019380271434784, -0.10600398480892181, 0.6999675631523132, -0.39428776502609253, 0.2264445424079895, 0.185657799243927, -0.2435830980539322, -0.23956941068172455, 0.16252896189689636, 0.15687282383441925, 0.10770774632692337, 0.13652968406677246, 0.1403699517250061, 0.19751590490341187, -0.028369612991809845, -0.02216917648911476, 0.41787484288215637, -0.1817903220653534, 0.7519586086273193, 0.4424464702606201, -0.03077779710292816, 0.2606293559074402, 0.40419435501098633, -0.14226868748664856, -0.14190860092639923, -0.21617284417152405, -0.3795582354068756, 0.36298438906669617, -0.29005056619644165, -0.014579206705093384, -0.0925820991396904, -0.10023720562458038, 0.19204702973365784, 0.34591221809387207, -0.01180317997932434, 0.03700222074985504, 0.4131365716457367, 0.1536707580089569, -0.24897189438343048, -0.5125792622566223, 0.33632344007492065, -0.330361545085907, 0.29230451583862305, -0.40099647641181946, 0.06024792790412903, 0.08622060716152191, -0.10403333604335785, 0.04167605936527252, 0.19909588992595673, 0.2763170897960663, 0.09480387717485428, -0.007472604513168335, 0.18016687035560608, -0.281105637550354, -0.054488405585289, 0.08672141283750534, 0.0831741988658905, -0.14208944141864777, -0.3626762330532074, 0.18027456104755402, 0.04745209217071533, 0.06002212315797806, -0.19081301987171173, 0.5934581756591797, 0.09974175691604614, 0.029735811054706573, 0.22936084866523743, 0.17298585176467896, -0.15887892246246338, 0.14030539989471436, 0.1661982536315918, -0.20624038577079773, -0.37196019291877747, 0.47161635756492615, 0.13924863934516907, 0.25310277938842773, -0.048862285912036896, 0.11163760721683502, 0.002211598679423332, 0.5143995881080627, 0.014408867806196213, -0.36471593379974365, -0.16576866805553436, -0.06493611633777618, -0.1773393452167511, 0.1294468492269516, -0.23140233755111694, 0.2702767252922058, 0.21816954016685486, 0.16084258258342743, -0.04471079260110855, 0.060246482491493225, 0.08025139570236206, -0.12262988090515137, -0.2659406363964081, 0.027537591755390167, -0.39321890473365784, 0.10510703921318054, -0.04939466714859009, -0.17228928208351135, 0.014040175825357437, -0.10841870307922363, 0.6255807876586914, -0.008961941115558147, -0.04298214614391327, -0.1360013782978058, -0.09318194538354874, -0.05058916285634041, 0.04106447845697403, 0.5731686353683472, 0.3952973186969757, 0.14022839069366455, -0.1946159303188324, -0.14874601364135742, 0.07404235750436783, 0.09888740628957748, -0.1760595738887787, 0.3726879358291626, 0.2469550520181656, -0.1355241984128952, 0.020072586834430695, -0.24884776771068573, -0.09504441171884537, 0.04444046691060066, 0.016676750034093857, -0.12456709891557693, -0.41535744071006775, -0.10745276510715485, -0.045963115990161896, 0.17186538875102997, -0.21515987813472748, 0.1535419225692749, 0.09296365082263947, 0.13795658946037292, -0.008823677897453308, -0.32025226950645447, 0.4107363224029541, -0.10498922318220139, -0.17414380609989166, -0.1306239515542984, 0.5648161172866821, -0.5690388083457947, 0.3015940189361572, -0.5685535073280334, -0.04662317782640457, 0.38929274678230286, -0.21565848588943481, -0.3872376084327698, 0.22500918805599213, -0.25005659461021423, -0.08173800259828568, -0.15711703896522522, -0.0951610654592514, 0.18954619765281677, -0.2068069875240326, 0.1089528352022171, -0.12320373207330704 ]
https://github.com/huggingface/datasets/issues/2099
load_from_disk takes a long time to load local dataset
Hi ! Can you share more information about the features of your dataset ? You can get them by printing `my_dataset.features` Can you also share the code of your `map` function ?
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
32
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) Hi ! Can you share more information about the features of your dataset ? You can get them by printing `my_dataset.features` Can you also share the code of your `map` function ?
[ -0.35002052783966064, -0.19821509718894958, -0.054451197385787964, 0.2700722813606262, 0.3246721625328064, 0.05014774948358536, 0.4278252124786377, 0.1963977962732315, 0.775204062461853, -0.012892335653305054, 0.1478898525238037, 0.5318041443824768, 0.08684638887643814, -0.08264333009719849, 0.11530651897192001, 0.09427003562450409, 0.358259379863739, 0.23026248812675476, 0.4533499479293823, -0.1887630820274353, -0.27041977643966675, -0.016207830980420113, -0.13637158274650574, 0.05246134102344513, -0.16783367097377777, -0.13370902836322784, -0.02351389080286026, 0.035262465476989746, -0.13845552504062653, -0.28633832931518555, 0.01620895229279995, -0.056752052158117294, 0.2766023576259613, 0.2574593424797058, -0.00012687049456872046, -0.2512072026729584, 0.031258724629879, 0.1771276593208313, -0.20250049233436584, 0.24496960639953613, 0.38639020919799805, -0.4697510600090027, 0.21211819350719452, -0.3534867465496063, 0.14570358395576477, -0.3091144561767578, -0.26630377769470215, -0.28100085258483887, -0.04313404858112335, -0.15224523842334747, 0.04581158235669136, 0.44396665692329407, -0.27800092101097107, 0.07485923916101456, -0.129398375749588, 0.34574198722839355, -0.1573244333267212, 0.04495947062969208, 0.5400739908218384, -0.07280779629945755, -0.1051316037774086, -0.08025851845741272, -0.1870916485786438, -0.10562969744205475, 0.379787802696228, 0.07649413496255875, 0.2742576599121094, 0.1065707579255104, 0.0830787867307663, 0.12696439027786255, 0.5899766683578491, -0.004145771265029907, 0.05856166034936905, -0.2526358664035797, -0.12502937018871307, -0.2961910367012024, 0.38865211606025696, 0.005405424162745476, -0.2881908714771271, 0.2031349092721939, -0.07143817842006683, -0.07309972494840622, 0.008851073682308197, 0.24375566840171814, -0.18031886219978333, -0.0990385115146637, 0.019584059715270996, 0.13288070261478424, 0.3168947398662567, -0.1614457666873932, 0.0230979286134243, -0.008251961320638657, 0.12345178425312042, 0.3986280858516693, -0.40989068150520325, -0.21139922738075256, 0.040018800646066666, 0.08357514441013336, -0.14352017641067505, 0.11203859001398087, 0.15146519243717194, 0.24894696474075317, -0.16304901242256165, 0.001630835235118866, 0.24220609664916992, 0.39721032977104187, -0.1217968687415123, 0.13010495901107788, 0.07318098843097687, -0.34190526604652405, -0.06997346132993698, -0.05604579299688339, -0.22599224746227264, -0.010649684816598892, 0.5112820863723755, -0.47840335965156555, -0.23394395411014557, -0.14483381807804108, -0.033380769193172455, 0.20677940547466278, 0.4317516088485718, -0.06417015194892883, 0.2521466612815857, 0.24105659127235413, 0.06419239938259125, 0.5306968688964844, -0.1165342628955841, 0.011717341840267181, -0.1896088570356369, -0.1619032472372055, -0.06514323502779007, -0.30716127157211304, -0.16844777762889862, 0.15985171496868134, 0.01811627298593521, 0.26190996170043945, -0.11744477599859238, 0.17264151573181152, -0.24809540808200836, 0.06744149327278137, -0.10356490314006805, -0.18663102388381958, 0.28975969552993774, 0.1619749516248703, -0.08319583535194397, 0.22045603394508362, 0.16585159301757812, -0.26048240065574646, -0.4331323206424713, 0.3641849458217621, -0.1685282588005066, -0.3845946192741394, -0.4457715153694153, 0.003989093471318483, -0.22792120277881622, -0.06108521670103073, -0.38548097014427185, -0.12087996304035187, 0.12009721249341965, 0.04422855004668236, -0.03434716910123825, -0.15244756639003754, -0.14449161291122437, -0.09936268627643585, -0.03918614238500595, 0.12161193042993546, -0.3704286813735962, 0.21216782927513123, -0.23642803728580475, 0.2569224536418915, 0.344753623008728, 0.6626858115196228, -0.25710099935531616, 0.3425367772579193, -0.2578446567058563, 0.3158115744590759, 0.5487070083618164, -0.05780714377760887, -0.38621339201927185, 0.7333583235740662, -0.100369893014431, -0.2248927801847458, 0.026534438133239746, 0.5490338802337646, 0.2924329340457916, -0.08520616590976715, 0.10039553046226501, 0.6558296084403992, 0.15121155977249146, 0.21053923666477203, -0.39109495282173157, -0.027924105525016785, 0.09193025529384613, 0.4662364721298218, -0.4127822518348694, 0.15882334113121033, 0.15381115674972534, -0.04416855424642563, 0.15450388193130493, 0.09075614809989929, -0.06596926599740982, 0.24322347342967987, 0.28316760063171387, -0.03184866905212402, 0.011217601597309113, 0.25627440214157104, -0.1681346595287323, 0.1245538517832756, 0.46425923705101013, -0.22457554936408997, 0.041568294167518616, -0.16816715896129608, -0.34454840421676636, 0.31477102637290955, -0.10547950863838196, 0.6033324599266052, -0.18210704624652863, 0.0020355135202407837, 0.0804637223482132, -0.14322683215141296, -0.14951276779174805, -0.11748675256967545, -0.253177672624588, -0.1158316433429718, -0.09024268388748169, 0.051842205226421356, 0.1564159244298935, -0.015110510401427746, -0.3498859703540802, -0.06259607523679733, 0.057498082518577576, 0.0494379960000515, -0.2109958529472351, 0.284045547246933, 0.15213529765605927, 0.04790319874882698, -0.04965250939130783, 0.170457661151886, 0.13361307978630066, 0.0028490275144577026, 0.34397441148757935, -0.0021681319922208786, 0.20819436013698578, -0.2890036404132843, -0.12185526639223099, 0.4259045124053955, -0.19429057836532593, 0.20476052165031433, -0.27101969718933105, -0.07095278799533844, 0.4258694648742676, 0.12621499598026276, 0.15765036642551422, -0.016415905207395554, 0.18653060495853424, 0.30950891971588135, 0.2882077693939209, 0.27374330163002014, -0.23974137008190155, 0.26176515221595764, 0.2991081178188324, -0.3452148735523224, -0.06125012785196304, 0.1969377100467682, 0.03676793724298477, -0.30070337653160095, 0.006216796115040779, -0.10396724939346313, 0.3100566864013672, 0.11593931913375854, 0.09584364295005798, -0.31760504841804504, -0.03478226065635681, -0.14462633430957794, 0.08700548112392426, -0.10017579793930054, -0.08375554531812668, 0.12993364036083221, -0.05377952754497528, -0.13647161424160004, -0.32597389817237854, 0.031815413385629654, 0.11181136220693588, 0.3960193991661072, -0.3259369432926178, 0.15387819707393646, -0.09075183421373367, 0.09902738779783249, 0.05599140375852585, -0.2581123113632202, 0.1266682893037796, -0.20272411406040192, -0.22375862300395966, 0.2324295938014984, -0.026160256937146187, -0.14113092422485352, -0.012471981346607208, 0.376232773065567, 0.191737100481987, -0.4314824044704437, -0.35575124621391296, -0.2873746156692505, -0.15344324707984924, -0.14268386363983154, 0.44073736667633057, 0.16974548995494843, 0.2259087860584259, -0.06290563195943832, -0.16029925644397736, -0.25041916966438293, -0.14633809030056, -0.09807394444942474, 0.05387850105762482, 0.15772175788879395, -0.1832672357559204, 0.338157594203949, -0.5823006629943848, -0.03293957561254501, 0.261730819940567, -0.3245379328727722, -0.24103912711143494, 0.37826457619667053, -0.13104970753192902, -0.32022184133529663, 0.013720721006393433, 0.11351503431797028, -0.13313578069210052, -0.23635143041610718, 0.2219306230545044, 0.03674168512225151, 0.1437612771987915, -0.2337399572134018, 0.11274461448192596, 0.025984246283769608, 0.4734174609184265, -0.2453036606311798, -0.194590762257576, -0.2775592803955078, 0.6613592505455017, 0.0028796843253076077, -0.25968000292778015, -0.07309920340776443, 0.11967599391937256, -0.09988446533679962, -0.024223871529102325, -0.5121884942054749, 0.2339356243610382, -0.4204593896865845, 0.46940863132476807, -0.2292630672454834, 0.06043156236410141, 0.130138099193573, -0.2692602872848511, 0.03770849108695984, 0.22355115413665771, -0.10826343297958374, 0.2056978940963745, 0.13674265146255493, 0.0834924578666687, 0.0862879827618599, 0.6676968932151794, -0.23784561455249786, 0.3274145722389221, -0.20570755004882812, -0.1607968509197235, 0.3523724377155304, -0.013551590964198112, 0.19727560877799988, -0.3578556776046753, -0.176505446434021, -0.24382241070270538, 0.12171491980552673, -0.32251280546188354, 0.19744032621383667, -0.03908446058630943, -0.35683533549308777, 0.02348717302083969, -0.05291864275932312, -0.055763985961675644, -0.05655882880091667, 0.25412875413894653, -0.002445220947265625, 0.08467906713485718, -0.13588041067123413, 0.20293718576431274, -0.38289445638656616, -0.23283538222312927, -0.07313646376132965, 0.0034166350960731506, 0.1737789511680603, -0.24962161481380463, -0.6529747247695923, -0.004441512748599052, -0.43162089586257935, 0.1233481764793396, -0.19623523950576782, 0.44782841205596924, 0.01738482341170311, -0.27790555357933044, 0.42959755659103394, 0.007991980761289597, 0.6057003736495972, 0.28461357951164246, 0.12633123993873596, 0.17928782105445862, -0.1738652139902115, -0.6647120118141174, 0.0659497082233429, 0.24270695447921753, -0.030417272821068764, 0.32633957266807556, 0.7139405608177185, -0.04325796663761139, -0.1389227658510208, -0.16244693100452423, 0.324459046125412, -0.21229569613933563, -0.48731905221939087, -0.11448356509208679, -0.3401411175727844, -0.09567154943943024, 0.16604313254356384, 0.17040616273880005, 0.47866615653038025, 0.4213184416294098, -0.049285564571619034, -0.21406929194927216, -0.10681262612342834, 0.07439074665307999, 0.08977867662906647, 0.35593244433403015, -0.08360947668552399, 0.43252575397491455, -0.30901065468788147, 0.16675181686878204, -0.13158665597438812, 0.4047929644584656, -0.12017226219177246, -0.03287261724472046, 0.34738826751708984, -0.20586390793323517, 0.027826055884361267, 0.35133957862854004, 0.20204363763332367, 0.041976556181907654, -0.11664265394210815, 0.19260269403457642, -0.22257831692695618, -0.022443918511271477, -0.19355252385139465, -0.01326218992471695, -0.018161503598093987, -0.13265840709209442, 0.2976231575012207, 0.03679801896214485, -0.033668797463178635, 0.2161802053451538, -0.13917315006256104, 0.0804777592420578, 0.7127652168273926, 0.20997977256774902, 1.1476421356201172, -0.47657859325408936, -0.036759015172719955, 0.10554978251457214, 0.18755479156970978, -0.09675439447164536, -0.15562523901462555, -0.3527746796607971, -0.37704718112945557, 0.10472222417593002, 0.12526868283748627, -0.2228829562664032, -0.13517162203788757, 0.4446426033973694, 0.14574892818927765, -0.12738768756389618, -0.20854081213474274, 0.3245827853679657, -0.33297616243362427, 0.471674382686615, 0.030498381704092026, -0.4644050896167755, -0.5360891222953796, -0.0256497822701931, 0.002109374850988388, -0.06254664063453674, 0.013471484184265137, 0.15044380724430084, 0.028022143989801407, -0.1613016128540039, -0.05559169501066208, -0.16837966442108154, 0.13113059103488922, 0.15939468145370483, 0.21325847506523132, -0.24297039210796356, -0.060092464089393616, 0.47836047410964966, 0.39221370220184326, -0.04883422330021858, -0.028553029522299767, 0.17562277615070343, 0.10712184011936188, 0.1411292552947998, 0.08806134760379791, -0.24716775119304657, 0.06472411006689072, -0.12289051711559296, 0.02960105985403061, -0.1266629993915558, -0.14927491545677185, -0.4715045690536499, -0.11046326160430908, 0.1728011518716812, 0.3435620069503784, -0.16787873208522797, -0.2620111107826233, -0.28043144941329956, 0.16876305639743805, -0.04698627069592476, 0.010830664075911045, 0.340267539024353, 0.19190558791160583, 0.2474282681941986, 0.00043902546167373657, -0.24706614017486572, 0.026228882372379303, 0.3180592656135559, 0.01753079704940319, -0.2553490996360779, 0.2725580930709839, 0.036964673548936844, -0.24495917558670044, -0.20934361219406128, 0.36053934693336487, 0.2967858612537384, -0.40772029757499695, 0.08610107004642487, -0.0421442911028862, 0.0005220621824264526, 0.08121862262487411, 0.07930134236812592, 0.19449347257614136, 0.0004833713173866272, -0.10940930992364883, -0.23805585503578186, -0.5587602257728577, -0.0532926470041275, 0.17409099638462067, 0.0981367751955986, 0.19417795538902283, -0.4832074046134949, -0.2332374006509781, 0.08594627678394318, -0.13559764623641968, 0.0622783824801445, -0.05956599861383438, 0.10919193178415298, 0.04016443341970444, -0.04157978296279907, 0.06777577102184296, -0.15008029341697693, 0.04654396325349808, -0.15257114171981812, -0.010093526914715767, -0.08015389740467072, 0.07200831174850464, 0.21140499413013458, -0.01653311401605606, -0.3091343343257904, -0.2002135068178177, -0.4752691984176636, -0.1812928169965744, -0.36019858717918396, -0.1456620842218399, 0.0568096786737442, -0.06762667000293732, -0.3485494554042816, 0.37513408064842224, 0.11533012986183167, -0.037848178297281265, 0.37070760130882263, -0.05080968141555786, 0.4025712013244629, -0.05549074336886406, 0.11913207918405533, 0.2175971120595932, -0.1941402554512024, -0.30111390352249146, 0.178386390209198, 0.3650396466255188, -0.153092622756958, 0.35157284140586853, -0.21737883985042572, 0.03927722945809364, 0.27981147170066833, -0.035938821732997894, 0.1138463169336319, -0.17386610805988312, -0.26875028014183044, 0.2702846825122833, 0.05839129537343979, -0.013030081987380981, -0.24069669842720032, 0.00544817466288805, -0.09607581049203873, -0.22358903288841248, 0.28462526202201843, 0.4409003257751465, -0.17945526540279388, -0.12389712035655975, 0.05017987638711929, 0.5539268851280212, 0.03413217142224312, -0.4526454210281372, 0.5829271674156189, -0.08260493725538254, 0.0033455826342105865, 0.17829664051532745, 0.21411189436912537, -0.00351821631193161, 0.5654759407043457, -0.20794391632080078, 0.09839701652526855, 0.3605998158454895, 0.586161732673645, -0.38806605339050293, -0.36004194617271423, 0.33705341815948486, 0.29442065954208374, -0.2477841079235077, -0.17212411761283875, 0.1744416058063507, 0.2293725311756134, -0.17460601031780243, -0.11719628423452377, -0.21015329658985138, 0.29084375500679016, -0.2680514454841614, 0.05058230459690094, -0.3962656855583191, -0.0038013681769371033, -0.026350237429142, 0.1709144413471222, -0.27335426211357117, 0.005703926086425781, -0.2857448160648346, 0.33777350187301636, 0.04373401403427124, 0.08742596954107285, 0.06786711513996124, 0.05169440805912018, -0.026132553815841675, -0.41818827390670776, 0.024077191948890686, -0.3533782958984375, -0.026627138257026672, 0.24782875180244446, -0.27461034059524536, 0.37193068861961365, 0.503490686416626, -0.006852822378277779, 0.055324144661426544, -0.01333070918917656, -0.06888405978679657, 0.022692766040563583, 0.13873150944709778, -0.1509947031736374, 0.24195589125156403, 0.17697995901107788, -0.1034574955701828, -0.04398338496685028, -0.41773873567581177, -0.15736889839172363, 0.41496357321739197, 0.092548668384552, 0.30434101819992065, 0.0882520079612732, -0.3174015283584595, -0.27171948552131653, 0.08084617555141449, -0.033029407262802124, -0.14504042267799377, 0.30158793926239014, 0.03791385516524315, 0.16235783696174622, -0.05672848969697952, -0.036408454179763794, -0.3725748658180237, 0.5649234056472778, 0.31928783655166626, -0.39516696333885193, -0.1880398541688919, -0.3771696090698242, -0.6647295355796814, 0.08342107385396957, 0.05583139881491661, -0.052723079919815063, 0.4076804220676422, 0.1982892006635666, 0.4616668224334717, 0.0610228069126606, -0.15379159152507782, 0.07701551169157028, -0.15672574937343597, 0.38891085982322693, -0.0518682636320591, 0.0534200444817543, 0.033990468829870224, 0.22813935577869415, -0.22263598442077637, -0.46974730491638184, 0.4194070100784302, 0.21801523864269257, -0.08978985249996185, -0.13300706446170807, 0.059248171746730804, -0.3414676785469055, 0.42561784386634827, 0.3861468732357025, 0.02569727599620819, 0.0922035276889801, 0.3125085234642029, 0.08798716962337494, 0.30150526762008667, -0.02704142965376377, 0.06978244334459305, 0.24206867814064026, -0.05613383278250694, -0.03937568515539169, -0.040464263409376144, 0.4130622446537018, -0.17332294583320618, -0.04441423714160919, -0.27785420417785645, -0.14210395514965057, -0.1402702033519745, -0.02587055042386055, -0.2182968556880951, 0.22998957335948944, 0.2676996886730194, -0.023984231054782867, 0.2052936553955078, 0.20322617888450623, -0.24721720814704895, -0.05097401142120361, 0.21245841681957245, -0.008321286179125309, -0.15520955622196198, 0.022493354976177216, 0.12438096106052399, 0.2134561538696289, 0.18659475445747375, -0.30397236347198486, -0.17450010776519775, 0.23322440683841705, -0.17034894227981567, -0.09615170955657959, 0.38763511180877686, -0.23462139070034027, 0.18991534411907196, -0.17160168290138245, 0.24274292588233948, -0.07725519686937332, -0.06954054534435272, -0.4443512558937073, -0.2711585760116577 ]
https://github.com/huggingface/datasets/issues/2099
load_from_disk takes a long time to load local dataset
It is actually just the tokenized `wikipedia` dataset with `input_ids`, `attention_mask`, etc, with one extra column which is a list of integers. The `text` column is removed during tokenization. ``` def add_len_and_seq(example): end_idx = example['input_ids'].index(SEP) example['actual_len'] = end_idx-1 seq_len = len(example['input_ids']) example['seq'] = [PAD_ID] + [np.uint8(example['some_integer'])]*(end_idx-1) + [PAD_ID]*(seq_len-end_idx) return example ```
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
51
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) It is actually just the tokenized `wikipedia` dataset with `input_ids`, `attention_mask`, etc, with one extra column which is a list of integers. The `text` column is removed during tokenization. ``` def add_len_and_seq(example): end_idx = example['input_ids'].index(SEP) example['actual_len'] = end_idx-1 seq_len = len(example['input_ids']) example['seq'] = [PAD_ID] + [np.uint8(example['some_integer'])]*(end_idx-1) + [PAD_ID]*(seq_len-end_idx) return example ```
[ -0.2723701596260071, -0.14686641097068787, -0.03886260837316513, 0.18744060397148132, 0.40003788471221924, 0.045344263315200806, 0.46414440870285034, 0.22945663332939148, 0.6530977487564087, -0.03941279649734497, 0.2031131535768509, 0.5122695565223694, -0.024183761328458786, -0.1652989536523819, 0.16992874443531036, 0.10534976422786713, 0.34358128905296326, 0.1828206479549408, 0.5284669399261475, -0.2227725088596344, -0.2088463455438614, -0.06002122908830643, -0.06578509509563446, -0.027685075998306274, -0.22054898738861084, -0.04520723223686218, -0.031301580369472504, 0.0227656289935112, -0.13431541621685028, -0.31946542859077454, 0.09288442134857178, 0.01930295117199421, 0.2287549376487732, 0.27818170189857483, -0.00012817523384001106, -0.1722034364938736, 0.004606850445270538, 0.15352000296115875, -0.1430976688861847, 0.26439663767814636, 0.4690808355808258, -0.5940459370613098, 0.23838865756988525, -0.3503424823284149, 0.061837583780288696, -0.28272560238838196, -0.3401739299297333, -0.214790940284729, -0.007552243769168854, -0.11950135976076126, 0.015857666730880737, 0.36168771982192993, -0.3337506055831909, 0.1539882868528366, -0.07433240860700607, 0.19389982521533966, -0.14342033863067627, 0.12581230700016022, 0.47293415665626526, -0.1927231401205063, 0.0029668286442756653, 0.02261466160416603, -0.2509934902191162, -0.09650200605392456, 0.3857632279396057, 0.07410271465778351, 0.1951773464679718, 0.04834155738353729, 0.05060982704162598, 0.14773115515708923, 0.5389367938041687, -0.0009464770555496216, -0.057760126888751984, -0.3210892081260681, -0.055464766919612885, -0.3969578444957733, 0.32127630710601807, 0.030139634385704994, -0.2767959535121918, 0.07596130669116974, -0.1086111068725586, -0.07882602512836456, 0.02981080859899521, 0.21881726384162903, -0.21573428809642792, 0.04223042353987694, 0.0866943746805191, 0.1933324635028839, 0.318870484828949, -0.10838037729263306, -0.09875155240297318, -0.008489243686199188, 0.1952892392873764, 0.43588507175445557, -0.32837405800819397, -0.24876748025417328, 0.032681435346603394, -0.0019630417227745056, -0.14442366361618042, 0.19642393290996552, 0.08892086893320084, 0.2106192708015442, -0.10545894503593445, 0.005110275000333786, 0.23942843079566956, 0.4608978033065796, -0.2296867072582245, 0.1211879625916481, 0.0778396874666214, -0.31749945878982544, -0.17822138965129852, -0.09161574393510818, -0.20832273364067078, 0.03591110184788704, 0.49787622690200806, -0.5051930546760559, -0.24282453954219818, -0.11873260140419006, -0.04305930808186531, 0.23675589263439178, 0.31780391931533813, 0.00380149157717824, 0.24058513343334198, 0.2986123561859131, 0.030292104929685593, 0.526880145072937, -0.07908337563276291, 0.14303487539291382, -0.21736560761928558, -0.023491444066166878, -0.07065965980291367, -0.26027774810791016, -0.10747749358415604, 0.1086401715874672, -0.028917845338582993, 0.33354514837265015, -0.07398515939712524, 0.15108072757720947, -0.13496588170528412, 0.009154412895441055, -0.06717127561569214, -0.16281050443649292, 0.23055019974708557, 0.20776845514774323, -0.16554252803325653, 0.2659238576889038, 0.25838494300842285, -0.3331993818283081, -0.46136683225631714, 0.2853637635707855, -0.1705411672592163, -0.413784384727478, -0.3964416980743408, -0.006731660105288029, -0.262655109167099, -0.09387363493442535, -0.4485412538051605, -0.04024184122681618, 0.17924129962921143, 0.043229591101408005, -0.04301094263792038, -0.21621745824813843, -0.1451561152935028, -0.13015824556350708, 0.05793078988790512, 0.07286518812179565, -0.2945600152015686, 0.11277724802494049, -0.2678595781326294, 0.35571953654289246, 0.3770868182182312, 0.718086838722229, -0.29196134209632874, 0.4202111065387726, -0.217220276594162, 0.2997385859489441, 0.536910355091095, -0.18845461308956146, -0.4042331278324127, 0.6187265515327454, -0.13438725471496582, 0.044535547494888306, 0.03612565994262695, 0.49751144647598267, 0.25840047001838684, -0.03947584703564644, 0.18378794193267822, 0.6960245966911316, 0.10998774319887161, 0.22766175866127014, -0.406432181596756, -0.026787174865603447, 0.21991799771785736, 0.3522609770298004, -0.3312675952911377, 0.15143737196922302, 0.06536315381526947, 0.09053486585617065, 0.20923131704330444, 0.06162281334400177, -0.10179413855075836, 0.2813985347747803, 0.2582947909832001, 0.16434836387634277, 0.043432820588350296, 0.2720755636692047, -0.1440773904323578, 0.20028206706047058, 0.5107893943786621, -0.07632103562355042, -0.05008740723133087, -0.24803707003593445, -0.3892805278301239, 0.2931812107563019, -0.14433366060256958, 0.3294908404350281, -0.1960774064064026, 0.04049531742930412, 0.13068018853664398, 0.01961842179298401, -0.10775281488895416, -0.27304407954216003, -0.25391560792922974, -0.031821612268686295, -0.014375630766153336, 0.049707502126693726, 0.1867201328277588, -0.004795648157596588, -0.4482586681842804, 0.11684872210025787, 0.05642988160252571, 0.03136034309864044, -0.22208651900291443, 0.2688150107860565, 0.2077789455652237, 0.06802435219287872, -0.04953327029943466, 0.20587608218193054, 0.1093478873372078, 0.03371038660407066, 0.2628694772720337, 0.07125900685787201, 0.19753219187259674, -0.221778005361557, -0.19142985343933105, 0.5089948177337646, -0.08551016449928284, 0.24814069271087646, -0.27290716767311096, -0.03966818377375603, 0.47736623883247375, 0.12427756190299988, 0.0985502302646637, -0.02501307800412178, 0.20527921617031097, 0.277895450592041, 0.27573245763778687, 0.11172039061784744, -0.16667461395263672, 0.2718946933746338, 0.29475295543670654, -0.28411242365837097, -0.030435480177402496, 0.20607417821884155, 0.027487579733133316, -0.31055185198783875, -0.011694928631186485, -0.13333222270011902, 0.2517815828323364, 0.11762760579586029, 0.10770098865032196, -0.30047643184661865, -0.06173616647720337, -0.09899777173995972, 0.17740701138973236, -0.0865199863910675, -0.1013621836900711, 0.1303020715713501, 0.019488293677568436, -0.08265238255262375, -0.37717652320861816, -0.05254533886909485, 0.06866265088319778, 0.4366832971572876, -0.22056138515472412, 0.27478304505348206, -0.0571819543838501, 0.19979989528656006, -0.01643909513950348, -0.30174124240875244, 0.025130081921815872, -0.31573110818862915, -0.2038695514202118, 0.29086679220199585, -0.04472062736749649, -0.13480517268180847, -0.06885936111211777, 0.25504153966903687, 0.2128169685602188, -0.4541468620300293, -0.27949634194374084, -0.3061750531196594, -0.11136338859796524, -0.19728556275367737, 0.3697754442691803, 0.04897687956690788, 0.30081263184547424, -0.01380050927400589, -0.19552873075008392, -0.22446689009666443, -0.3411595821380615, -0.10979431867599487, -0.04760012775659561, 0.21396979689598083, -0.18613484501838684, 0.3008183538913727, -0.548199474811554, -0.06546978652477264, 0.3417081832885742, -0.28815656900405884, -0.17169488966464996, 0.3768150210380554, -0.006420226767659187, -0.16055582463741302, 0.10094395279884338, 0.10476603358983994, -0.12692776322364807, -0.18982180953025818, 0.25123298168182373, 0.07064999639987946, 0.1390315145254135, -0.21855054795742035, 0.06980199366807938, 0.02188509702682495, 0.47880202531814575, -0.20522475242614746, -0.1983877271413803, -0.1957683265209198, 0.5628784894943237, 0.04496729001402855, -0.1830824613571167, -0.1186392530798912, 0.03673986718058586, -0.093570277094841, 0.015528499148786068, -0.5713310837745667, 0.16041900217533112, -0.38069844245910645, 0.43174484372138977, -0.18333113193511963, 0.04722967743873596, 0.16627097129821777, -0.2633865475654602, 0.04827534407377243, 0.18916073441505432, 0.020515866577625275, 0.10944616794586182, 0.07157112658023834, 0.030269280076026917, -0.007416963577270508, 0.7050039768218994, -0.1910778433084488, 0.5004668831825256, -0.2420659065246582, -0.04915094003081322, 0.36641937494277954, -0.11207070201635361, 0.25640326738357544, -0.3437129557132721, -0.23572519421577454, -0.24049796164035797, 0.09934060275554657, -0.36503589153289795, 0.1803107112646103, -0.010527217760682106, -0.3311646580696106, 0.08198085427284241, -0.04930603504180908, -0.01901300810277462, -0.15054424107074738, 0.34783846139907837, -0.15159651637077332, 0.03684379905462265, -0.11030589044094086, 0.2615600526332855, -0.42256587743759155, -0.24231001734733582, -0.11795815825462341, 0.02079484611749649, 0.12375368922948837, -0.2384306788444519, -0.7123932838439941, -0.12284036725759506, -0.542357325553894, 0.12104107439517975, -0.12563049793243408, 0.4711710512638092, 0.08129514753818512, -0.307666152715683, 0.4302409291267395, -0.028957724571228027, 0.6507672667503357, 0.12013205885887146, 0.09623371064662933, 0.19613386690616608, -0.26138949394226074, -0.7808226346969604, 0.025869105011224747, 0.17182914912700653, 0.03336753696203232, 0.34046676754951477, 0.7582914233207703, -0.07947387546300888, -0.13212479650974274, -0.19429130852222443, 0.40590500831604004, -0.23309753835201263, -0.28666505217552185, -0.25198787450790405, -0.33268314599990845, -0.2424202412366867, 0.21683135628700256, 0.11986816674470901, 0.5127634406089783, 0.36550918221473694, -0.054131925106048584, -0.26580920815467834, -0.07860510796308517, 0.11192367970943451, 0.10967108607292175, 0.3797813355922699, -0.0863724946975708, 0.33770036697387695, -0.28578266501426697, 0.06293126195669174, -0.18406963348388672, 0.426241934299469, -0.18519030511379242, -0.08629260957241058, 0.2065570056438446, -0.09059812128543854, 0.07268255949020386, 0.4006851315498352, 0.21373172104358673, 0.08087387681007385, -0.17397591471672058, 0.28016290068626404, -0.35010257363319397, 0.08600400388240814, -0.020465562120079994, 0.029995884746313095, -0.03419956564903259, -0.28593701124191284, 0.32740122079849243, 0.016708415001630783, -0.06746497750282288, 0.2595992684364319, -0.0951787531375885, 0.007013493217527866, 0.7409731149673462, 0.20203818380832672, 1.2241336107254028, -0.43617576360702515, 0.10460270941257477, 0.15660327672958374, 0.2955699563026428, 0.048845093697309494, -0.2537311315536499, -0.23290009796619415, -0.3573128581047058, 0.1385999321937561, 0.13614250719547272, -0.1821782886981964, -0.18076220154762268, 0.36628127098083496, 0.1105947345495224, -0.09532570838928223, -0.3047887682914734, 0.32988715171813965, -0.37554070353507996, 0.450991690158844, -0.03897641599178314, -0.3950835168361664, -0.5488097667694092, -0.04587534815073013, 0.09278526902198792, 0.01673390343785286, -0.04190504550933838, 0.2078908234834671, -0.0197339728474617, -0.2473612278699875, -0.15608569979667664, -0.12238983809947968, 0.18826884031295776, 0.3284364938735962, 0.07796651124954224, -0.33523666858673096, -0.20271886885166168, 0.4568589925765991, 0.32267624139785767, 0.017519772052764893, -0.04675734043121338, 0.21618928015232086, 0.03575529158115387, 0.07851351797580719, 0.16229985654354095, -0.26452431082725525, 0.11431899666786194, -0.07481266558170319, 0.03757268935441971, -0.14900970458984375, -0.2162976711988449, -0.5926703214645386, -0.08498340100049973, 0.18309348821640015, 0.36968547105789185, -0.21036297082901, -0.24647270143032074, -0.18207791447639465, 0.18991811573505402, -0.15196040272712708, -0.0263233482837677, 0.24441516399383545, 0.1326887160539627, 0.23227116465568542, -0.035508010536432266, -0.2975769340991974, 0.05613967031240463, 0.3613017499446869, 0.12190252542495728, -0.17635108530521393, 0.3943611979484558, -0.04588181525468826, -0.23342297971248627, -0.22979551553726196, 0.2831091582775116, 0.3257555365562439, -0.3678572475910187, 0.20204481482505798, -0.05971122905611992, -0.026154249906539917, 0.06124395132064819, 0.11170181632041931, 0.1226690486073494, -0.05267549306154251, -0.20482328534126282, -0.2920006513595581, -0.5180845856666565, -0.014269620180130005, 0.22126632928848267, 0.1805761158466339, 0.13493770360946655, -0.36288294196128845, -0.25611865520477295, 0.11215439438819885, -0.11351361125707626, 0.030167775228619576, -0.10332390666007996, 0.10160591453313828, 0.08811039477586746, -0.07948989421129227, 0.18998733162879944, -0.12109577655792236, 0.02479751966893673, -0.16552674770355225, 0.006371930707246065, -0.0626746118068695, -0.001817198470234871, 0.23469612002372742, -0.03139892965555191, -0.2769492566585541, -0.14272114634513855, -0.3840763568878174, -0.11960391700267792, -0.44055864214897156, -0.04668690264225006, 0.03089996427297592, -0.053001098334789276, -0.4075688123703003, 0.3622802793979645, 0.19740888476371765, -0.027323931455612183, 0.2847130298614502, -0.169236958026886, 0.3989354372024536, 0.02055249735713005, 0.015639374032616615, 0.27509692311286926, -0.15610730648040771, -0.316800981760025, 0.1873917281627655, 0.40504884719848633, -0.1289350688457489, 0.36073166131973267, -0.15520760416984558, 0.06984671950340271, 0.284545361995697, 0.012452330440282822, 0.21205450594425201, -0.17058557271957397, -0.3054560124874115, 0.3490543067455292, 0.034651823341846466, -0.01813087984919548, -0.3050709068775177, -0.04511374607682228, -0.15146827697753906, -0.21215444803237915, 0.3869553804397583, 0.436087965965271, -0.10362173616886139, -0.20266811549663544, 0.01858106255531311, 0.5638003349304199, 0.07442376762628555, -0.3574278652667999, 0.5144121050834656, -0.13183599710464478, -0.04457060620188713, 0.1361663043498993, 0.159079447388649, 0.08558332920074463, 0.5236287117004395, -0.14408233761787415, 0.1383867710828781, 0.2728661298751831, 0.45841318368911743, -0.413836270570755, -0.34180909395217896, 0.375952810049057, 0.30291593074798584, -0.1723511517047882, -0.05995342135429382, 0.10500336438417435, 0.2829165458679199, -0.24863167107105255, -0.0871201753616333, -0.21645596623420715, 0.40802860260009766, -0.2787196934223175, -0.00497093889862299, -0.21017949283123016, -0.008012913167476654, 0.00914396345615387, 0.19796042144298553, -0.2225671112537384, -0.010947205126285553, -0.3567081391811371, 0.29622435569763184, 0.038165416568517685, 0.04877873510122299, 0.10872162133455276, 0.042662497609853745, 0.10824194550514221, -0.43548232316970825, -0.03577934950590134, -0.2812235355377197, -0.005410477519035339, 0.2218608260154724, -0.2468222826719284, 0.4374466836452484, 0.4777423143386841, -0.007732786238193512, 0.0011959555558860302, -0.0068760402500629425, -0.016529196873307228, -0.060833439230918884, 0.17327937483787537, -0.17835792899131775, 0.28447574377059937, 0.14850091934204102, -0.12417332082986832, -0.07217853516340256, -0.4527173936367035, -0.11139486730098724, 0.36792218685150146, 0.12524577975273132, 0.30180883407592773, 0.12301149219274521, -0.2424144148826599, -0.33056125044822693, 0.1317329853773117, -0.04619773104786873, -0.1522236466407776, 0.1501564383506775, 0.09004219621419907, 0.1735495626926422, -0.043810728937387466, -0.04192031919956207, -0.2884940803050995, 0.5451469421386719, 0.28159597516059875, -0.3723646402359009, -0.2056155502796173, -0.3782559633255005, -0.6515107750892639, 0.07166595757007599, -0.10745801031589508, -0.17140215635299683, 0.36804381012916565, 0.24532954394817352, 0.40086665749549866, 0.0430515818297863, -0.14155812561511993, 0.026990432292222977, -0.18252862989902496, 0.3073928952217102, -0.05302286148071289, 0.11375978589057922, 0.0189640074968338, 0.18044106662273407, -0.17745576798915863, -0.5137280821800232, 0.378162682056427, 0.20775434374809265, -0.11003983020782471, -0.053973741829395294, 0.018824070692062378, -0.4160957634449005, 0.3677491247653961, 0.4663531184196472, 0.06756163388490677, 0.1766430288553238, 0.2604016959667206, 0.023668089881539345, 0.20306259393692017, -0.07681721448898315, -0.03920108079910278, 0.28843069076538086, -0.11659109592437744, 0.0287640243768692, -0.0811060443520546, 0.3949269950389862, -0.1959097534418106, 0.08130423724651337, -0.1703324168920517, -0.2662622928619385, -0.1360892802476883, -0.0353831946849823, -0.1896098256111145, 0.33248600363731384, 0.16491127014160156, 0.11203591525554657, 0.20560923218727112, 0.28850629925727844, -0.2644025981426239, -0.15474407374858856, 0.32503294944763184, -0.09142784029245377, -0.19286806881427765, -0.01041695848107338, 0.1300901472568512, 0.1925910860300064, 0.17209073901176453, -0.3801369369029999, -0.17498058080673218, 0.2354859858751297, -0.06093190610408783, -0.22688059508800507, 0.3500661551952362, -0.21221990883350372, 0.07296903431415558, -0.126305490732193, 0.2208830714225769, -0.14114481210708618, -0.06373727321624756, -0.38299643993377686, -0.23393379151821136 ]
https://github.com/huggingface/datasets/issues/2099
load_from_disk takes a long time to load local dataset
Is `PAD_ID` a python integer ? You need all the integers in `example['seq']` to have the same type. Does this work if you remove the `np.uint8` and use python integers instead ?
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
32
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) Is `PAD_ID` a python integer ? You need all the integers in `example['seq']` to have the same type. Does this work if you remove the `np.uint8` and use python integers instead ?
[ -0.2943399250507355, -0.22487963736057281, -0.057116106152534485, 0.30335327982902527, 0.31564873456954956, 0.049701251089572906, 0.44357821345329285, 0.2428751438856125, 0.6799737811088562, -0.018701255321502686, 0.15296578407287598, 0.5113553404808044, 0.08853216469287872, -0.10850348323583603, 0.1338360458612442, 0.09861044585704803, 0.3429255187511444, 0.20607751607894897, 0.4759642481803894, -0.16582438349723816, -0.25177350640296936, 0.0001300368458032608, -0.13068440556526184, 0.02348189428448677, -0.15882787108421326, -0.08299192041158676, -0.07518043369054794, 0.03506793826818466, -0.1523588001728058, -0.31554123759269714, 0.021622447296977043, -0.044831451028585434, 0.2884911298751831, 0.2051531821489334, -0.0001264279126189649, -0.2548459768295288, 0.02162795141339302, 0.11730501055717468, -0.24758288264274597, 0.2874676287174225, 0.42664074897766113, -0.4523157477378845, 0.2212570607662201, -0.36896413564682007, 0.13737168908119202, -0.3382210433483124, -0.3590541481971741, -0.20980511605739594, -0.018680930137634277, -0.1411031186580658, 0.04449901729822159, 0.43524280190467834, -0.2819194495677948, 0.03457831218838692, -0.052853234112262726, 0.2976848781108856, -0.16378608345985413, 0.046638160943984985, 0.5985649824142456, -0.07255786657333374, -0.10194536298513412, -0.081754669547081, -0.218245267868042, -0.1018446683883667, 0.38465166091918945, 0.07481075823307037, 0.25707775354385376, 0.16277378797531128, 0.0662124902009964, 0.14271840453147888, 0.5887860059738159, -0.03528174012899399, -0.000913490541279316, -0.24474847316741943, -0.0952467992901802, -0.2890894114971161, 0.36738091707229614, 0.012818840332329273, -0.2871282398700714, 0.1850772500038147, -0.06020035594701767, -0.0723915845155716, -0.050153642892837524, 0.23306818306446075, -0.12945181131362915, -0.07575301826000214, 0.04343514144420624, 0.1163351833820343, 0.3337875306606293, -0.15129347145557404, 0.06170264258980751, 0.035188134759664536, 0.1166578084230423, 0.3841657042503357, -0.403729110956192, -0.20786777138710022, -0.033136606216430664, 0.005369521677494049, -0.1448202133178711, 0.12784349918365479, 0.23209533095359802, 0.24858295917510986, -0.044929686933755875, 0.019750844687223434, 0.23991863429546356, 0.3678703308105469, -0.11983602494001389, 0.14694929122924805, 0.07683965563774109, -0.30855593085289, -0.02887643873691559, -0.04060908406972885, -0.25907403230667114, 0.0038079246878623962, 0.4785640835762024, -0.4682094156742096, -0.27038145065307617, -0.16323520243167877, -0.05246654897928238, 0.2429700791835785, 0.395481139421463, -0.043348219245672226, 0.24236458539962769, 0.27561697363853455, 0.046245262026786804, 0.4945332705974579, -0.04929882287979126, 0.03745731711387634, -0.15819036960601807, -0.11492202430963516, -0.06040980666875839, -0.29718828201293945, -0.17128735780715942, 0.1489873081445694, 0.04186549410223961, 0.35088181495666504, -0.12050537765026093, 0.1890941560268402, -0.232914999127388, 0.0578363835811615, -0.09105046093463898, -0.1327034831047058, 0.2696327865123749, 0.18069100379943848, -0.0991712212562561, 0.2365836352109909, 0.16987057030200958, -0.20173923671245575, -0.4431203305721283, 0.3833535313606262, -0.1958324909210205, -0.3932255804538727, -0.4349841773509979, 0.021875953301787376, -0.21197721362113953, -0.07928866147994995, -0.4514288008213043, -0.1795584112405777, 0.11826875060796738, 0.05899665877223015, -0.019751369953155518, -0.1308734267950058, -0.08217289298772812, -0.09233711659908295, -0.04740333557128906, 0.09292468428611755, -0.3962215483188629, 0.16686266660690308, -0.20801885426044464, 0.28909334540367126, 0.34770679473876953, 0.6229008436203003, -0.2996453642845154, 0.36213478446006775, -0.25233539938926697, 0.2976990342140198, 0.5223907232284546, -0.10041871666908264, -0.36436620354652405, 0.7189664244651794, -0.04725097492337227, -0.1865949183702469, 0.10760637372732162, 0.5277523994445801, 0.36156734824180603, -0.08061841875314713, 0.13155597448349, 0.6244170665740967, 0.16546647250652313, 0.20558464527130127, -0.40618896484375, -0.06124395132064819, 0.09190516173839569, 0.428331196308136, -0.3837229311466217, 0.12749040126800537, 0.14019085466861725, -0.029059529304504395, 0.16923484206199646, 0.044532231986522675, -0.07563542574644089, 0.2814269959926605, 0.2664143741130829, -0.05447797477245331, 0.06772550940513611, 0.22657546401023865, -0.19433823227882385, 0.15113893151283264, 0.39558836817741394, -0.1846630722284317, 0.03564517945051193, -0.20989347994327545, -0.35762709379196167, 0.31738272309303284, -0.06966027617454529, 0.5633524060249329, -0.16803699731826782, -0.016169600188732147, 0.13125793635845184, -0.16439127922058105, -0.15637058019638062, -0.10882434993982315, -0.2634980380535126, -0.09427832067012787, -0.09078161418437958, 0.06053883582353592, 0.17378492653369904, -0.046296387910842896, -0.329022616147995, -0.006932295858860016, 0.04908277094364166, 0.05802280828356743, -0.187486469745636, 0.30250778794288635, 0.21102939546108246, -0.0094977468252182, -0.008442055433988571, 0.2171441912651062, 0.12391502410173416, 0.04577014967799187, 0.29260334372520447, 0.047166913747787476, 0.1885792762041092, -0.2624531388282776, -0.1158251091837883, 0.4826081395149231, -0.2119683474302292, 0.26362571120262146, -0.21078725159168243, -0.057061754167079926, 0.40254369378089905, 0.17076922953128815, 0.13185858726501465, -0.01613631471991539, 0.18077290058135986, 0.31435325741767883, 0.2750588655471802, 0.2520090937614441, -0.22949080169200897, 0.2636447548866272, 0.24755753576755524, -0.32918888330459595, -0.07217986136674881, 0.22151827812194824, 0.03273710608482361, -0.2925547957420349, 0.0452849380671978, -0.0746011808514595, 0.3398675322532654, 0.1416780650615692, 0.03313158452510834, -0.3377312421798706, -0.08074934780597687, -0.1799662709236145, 0.15856480598449707, -0.0963614284992218, -0.1664719581604004, 0.07935287058353424, -0.10491430759429932, -0.14056776463985443, -0.3333319127559662, 0.04314759001135826, 0.11392765492200851, 0.43403249979019165, -0.3360695242881775, 0.1819750964641571, -0.13980017602443695, 0.10065460950136185, 0.021431313827633858, -0.31200599670410156, 0.0983557403087616, -0.20607729256153107, -0.16013112664222717, 0.2585887908935547, -0.056833416223526, -0.12737981975078583, -0.04570848494768143, 0.4071221351623535, 0.2142864167690277, -0.40445229411125183, -0.3806309103965759, -0.30443161725997925, -0.13848546147346497, -0.1443672627210617, 0.4448210895061493, 0.16310693323612213, 0.255179762840271, -0.05694470554590225, -0.10240761190652847, -0.2688094973564148, -0.1337062418460846, -0.1084032654762268, 0.02775389514863491, 0.13665488362312317, -0.14019466936588287, 0.34820234775543213, -0.5923084020614624, -0.06825452297925949, 0.28894931077957153, -0.3040880560874939, -0.24875488877296448, 0.431657612323761, -0.08981655538082123, -0.3463098406791687, 0.02128128707408905, 0.10752828419208527, -0.10652617365121841, -0.23461556434631348, 0.1980971395969391, 0.022373121231794357, 0.19705963134765625, -0.2903105914592743, 0.12006458640098572, 0.04754462093114853, 0.4194040596485138, -0.24965372681617737, -0.16063611209392548, -0.2298172116279602, 0.6143161058425903, 0.0052384729497134686, -0.2826808989048004, -0.03528787940740585, 0.16673775017261505, -0.06898970901966095, -0.004436129704117775, -0.5236112475395203, 0.21101094782352448, -0.3914632797241211, 0.38794055581092834, -0.25078827142715454, 0.1295180320739746, 0.10062425583600998, -0.27059856057167053, 0.027950366958975792, 0.2041378915309906, -0.04704461991786957, 0.20307469367980957, 0.05088801309466362, 0.08711741864681244, 0.01460135355591774, 0.5647197961807251, -0.2276453971862793, 0.3679971694946289, -0.24218739569187164, -0.11333717405796051, 0.3385270833969116, -0.045790426433086395, 0.21862396597862244, -0.3233051896095276, -0.18352754414081573, -0.25481221079826355, 0.11488393694162369, -0.3281369209289551, 0.2052338421344757, -0.047052495181560516, -0.32210978865623474, 0.018666334450244904, 0.038010116666555405, -0.020690951496362686, -0.0753713920712471, 0.29603326320648193, -0.01896044611930847, 0.015717804431915283, -0.15643543004989624, 0.2078140377998352, -0.3696018159389496, -0.23303177952766418, -0.08291767537593842, -0.049527883529663086, 0.14299964904785156, -0.26202285289764404, -0.6429178714752197, -0.07819314301013947, -0.4179563522338867, 0.17455726861953735, -0.17232735455036163, 0.499479740858078, 0.07360059022903442, -0.34190163016319275, 0.44591158628463745, 0.000009534880518913269, 0.6106882691383362, 0.26106712222099304, 0.03134196996688843, 0.18374541401863098, -0.14679691195487976, -0.7164685726165771, 0.044678401201963425, 0.20528540015220642, -0.06820926815271378, 0.27403831481933594, 0.6911302804946899, -0.09546208381652832, -0.12320328503847122, -0.17538996040821075, 0.330518513917923, -0.1972631812095642, -0.46101534366607666, -0.16125807166099548, -0.33329153060913086, -0.15775129199028015, 0.13620227575302124, 0.16247890889644623, 0.47644901275634766, 0.40367311239242554, -0.07952626794576645, -0.20109638571739197, -0.15141189098358154, 0.07692237198352814, 0.08575570583343506, 0.3958841860294342, -0.16498345136642456, 0.4091668725013733, -0.33340850472450256, 0.1923515796661377, -0.08311381191015244, 0.3989644944667816, -0.19174234569072723, -0.06479157507419586, 0.3708533048629761, -0.20738579332828522, 0.07603480666875839, 0.38807281851768494, 0.1935637891292572, 0.13679194450378418, -0.14039483666419983, 0.17520669102668762, -0.24539372324943542, -0.08063173294067383, -0.18746714293956757, -0.06697290390729904, 0.04248945787549019, -0.16777938604354858, 0.27203473448753357, 0.04392758384346962, -0.03317568078637123, 0.3123396933078766, -0.12325388193130493, 0.07115747034549713, 0.7600026726722717, 0.23390695452690125, 1.2246540784835815, -0.5035196542739868, 0.014371674507856369, 0.12161558866500854, 0.16561917960643768, -0.11796040087938309, -0.1760440319776535, -0.32698023319244385, -0.4070286750793457, 0.14823952317237854, 0.12771520018577576, -0.22698497772216797, -0.12355423718690872, 0.38870394229888916, 0.08601820468902588, -0.1470346599817276, -0.24622872471809387, 0.33355236053466797, -0.3722381293773651, 0.4040260910987854, -0.038187772035598755, -0.47419312596321106, -0.5782678723335266, -0.02098458632826805, 0.01572233811020851, -0.13927407562732697, -0.010478110983967781, 0.17384594678878784, -0.03619283437728882, -0.22240585088729858, -0.10365201532840729, -0.1861286163330078, 0.09071346372365952, 0.1817900389432907, 0.18823830783367157, -0.23401956260204315, -0.1706715226173401, 0.41671082377433777, 0.37554675340652466, -0.07008516788482666, -0.0401892215013504, 0.18236811459064484, 0.0647352933883667, 0.12248317152261734, 0.0813116505742073, -0.2595705986022949, 0.08288630843162537, -0.11897969990968704, 0.05726758390665054, -0.06650107353925705, -0.12958383560180664, -0.5366302728652954, -0.10993991792201996, 0.19924795627593994, 0.3654547333717346, -0.1988743543624878, -0.2844586670398712, -0.2924714982509613, 0.15570679306983948, -0.0658673346042633, 0.01628279872238636, 0.34010034799575806, 0.15908540785312653, 0.28238192200660706, -0.04733138158917427, -0.23567524552345276, 0.017501570284366608, 0.3600897192955017, 0.03810345381498337, -0.295987069606781, 0.22960397601127625, 0.034734468907117844, -0.22327323257923126, -0.22737747430801392, 0.3738379180431366, 0.3516620099544525, -0.465821236371994, 0.11344026029109955, -0.007306576706469059, -0.05890383571386337, 0.08035018295049667, 0.1580490618944168, 0.20229144394397736, 0.0176384299993515, -0.12114165723323822, -0.2088404893875122, -0.5282039046287537, 0.012262441217899323, 0.24074320495128632, 0.13404205441474915, 0.14193788170814514, -0.5530802011489868, -0.3032374382019043, 0.02765015698969364, -0.14650656282901764, 0.08462480455636978, -0.047065723687410355, 0.11702810972929001, 0.006662771105766296, -0.037165567278862, 0.10069725662469864, -0.1650076061487198, 0.05213215947151184, -0.12014582753181458, 0.004052021540701389, -0.09136107563972473, 0.0671669989824295, 0.2125338315963745, -0.03263314813375473, -0.26599061489105225, -0.25166255235671997, -0.454334020614624, -0.20500138401985168, -0.35306787490844727, -0.11673194169998169, 0.07792633026838303, -0.10972656309604645, -0.35467761754989624, 0.3384273946285248, 0.15328353643417358, -0.045458149164915085, 0.35765910148620605, -0.04943372309207916, 0.4739777445793152, -0.01629835180938244, 0.057773035019636154, 0.1461663693189621, -0.1894845962524414, -0.23029641807079315, 0.22830161452293396, 0.3283311724662781, -0.15122106671333313, 0.3985271751880646, -0.20345242321491241, 0.03279344365000725, 0.2581098675727844, 0.024083036929368973, 0.2060745507478714, -0.1661803275346756, -0.29034096002578735, 0.31532636284828186, 0.07676737755537033, -0.004793714731931686, -0.25005075335502625, -0.04211319610476494, -0.11861426383256912, -0.24424739181995392, 0.35063204169273376, 0.46113619208335876, -0.2066255509853363, -0.08877885341644287, 0.031730469316244125, 0.5728574395179749, 0.014148714952170849, -0.43938907980918884, 0.6040985584259033, -0.04661101475358009, -0.01924268528819084, 0.11247233301401138, 0.2082584798336029, 0.07880141586065292, 0.4882699251174927, -0.21552178263664246, 0.1153140589594841, 0.35415753722190857, 0.5426250696182251, -0.3740212619304657, -0.34266796708106995, 0.3637278974056244, 0.2706034481525421, -0.20076560974121094, -0.11849968880414963, 0.1577223539352417, 0.2770215570926666, -0.17849457263946533, -0.12857888638973236, -0.23225988447666168, 0.23740774393081665, -0.2579987347126007, 0.08929908275604248, -0.3661224842071533, -0.0265117809176445, -0.018316980451345444, 0.12051308155059814, -0.26065436005592346, 0.010732859373092651, -0.2762068510055542, 0.33234667778015137, 0.075963094830513, 0.04788784682750702, 0.028742972761392593, 0.07793163508176804, -0.01616765558719635, -0.4089174270629883, -0.003022974357008934, -0.3486035466194153, -0.05202490836381912, 0.2731178402900696, -0.2664616107940674, 0.39065784215927124, 0.5201632380485535, -0.003766292706131935, 0.05436301976442337, -0.044045016169548035, -0.03328251093626022, 0.006372459232807159, 0.20094099640846252, -0.10435226559638977, 0.23175516724586487, 0.15208207070827484, -0.1098472848534584, -0.06810593605041504, -0.41598156094551086, -0.1741548478603363, 0.41642171144485474, 0.14080727100372314, 0.3191125690937042, 0.08411569148302078, -0.3321051001548767, -0.25628143548965454, 0.0822451189160347, -0.09904740750789642, -0.16936802864074707, 0.265348345041275, 0.01219584234058857, 0.16192781925201416, -0.04051334038376808, -0.03017696738243103, -0.33131569623947144, 0.5836264491081238, 0.34145233035087585, -0.3722861111164093, -0.20832981169223785, -0.31581276655197144, -0.6785955429077148, 0.08260029554367065, 0.006199173629283905, -0.029148606583476067, 0.4067521095275879, 0.2453693002462387, 0.47985464334487915, 0.07384157180786133, -0.07451462745666504, 0.005891956854611635, -0.14937454462051392, 0.39935511350631714, -0.09187284111976624, 0.08013074100017548, 0.08654406666755676, 0.21330270171165466, -0.23683708906173706, -0.47474488615989685, 0.4323935806751251, 0.20449259877204895, -0.0929565280675888, -0.08721663057804108, 0.04338624328374863, -0.28848108649253845, 0.38380736112594604, 0.3971138596534729, 0.0027240999042987823, 0.1114625409245491, 0.3268878161907196, 0.0639132633805275, 0.24003471434116364, -0.06436267495155334, 0.09694012999534607, 0.22319245338439941, -0.07422320544719696, -0.07741374522447586, -0.04974524676799774, 0.3446447551250458, -0.23184612393379211, 0.01485372893512249, -0.23008808493614197, -0.2026834636926651, -0.13975034654140472, 0.02479657344520092, -0.21421408653259277, 0.26000747084617615, 0.24277569353580475, -0.002202678471803665, 0.17241236567497253, 0.2694129943847656, -0.24611219763755798, -0.06343424320220947, 0.23410774767398834, -0.0005451440811157227, -0.17809464037418365, 0.07496876269578934, 0.19974622130393982, 0.20118293166160583, 0.23281778395175934, -0.3857896327972412, -0.1835777759552002, 0.23232309520244598, -0.1316278874874115, -0.08513882756233215, 0.3760201632976532, -0.2066550999879837, 0.213658407330513, -0.1630478948354721, 0.2711828649044037, -0.08484344929456711, -0.047650545835494995, -0.4124529957771301, -0.30802416801452637 ]
https://github.com/huggingface/datasets/issues/2099
load_from_disk takes a long time to load local dataset
yup I casted it to `np.uint8` outside the function where it was defined. It was originally using python integers.
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
19
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) yup I casted it to `np.uint8` outside the function where it was defined. It was originally using python integers.
[ -0.2997466027736664, -0.2523108124732971, -0.04704419523477554, 0.2852839231491089, 0.3280438184738159, 0.021099500358104706, 0.426261305809021, 0.21776531636714935, 0.7503637671470642, -0.03946666419506073, 0.1555926650762558, 0.500048041343689, 0.08297247439622879, -0.08634067326784134, 0.14030911028385162, 0.11666949838399887, 0.354141503572464, 0.2110988050699234, 0.4538332223892212, -0.16082200407981873, -0.28068768978118896, 0.004252083599567413, -0.12419906258583069, 0.020842954516410828, -0.14993107318878174, -0.034160763025283813, -0.029953129589557648, 0.04786016047000885, -0.12425734847784042, -0.31274735927581787, 0.038653574883937836, -0.07079726457595825, 0.27238503098487854, 0.22555652260780334, -0.00012783777492586523, -0.24782732129096985, 0.013242539018392563, 0.154916912317276, -0.23426520824432373, 0.2983808219432831, 0.37650689482688904, -0.44815778732299805, 0.24350112676620483, -0.34456247091293335, 0.13206490874290466, -0.3008110523223877, -0.35291510820388794, -0.20314063131809235, -0.0605139285326004, -0.1430761218070984, 0.02955111302435398, 0.45549359917640686, -0.3025605380535126, 0.08236518502235413, -0.10583373159170151, 0.3159891366958618, -0.15447698533535004, 0.07755129039287567, 0.5621143579483032, -0.04887021332979202, -0.05324187129735947, -0.053940556943416595, -0.22005002200603485, -0.08033870160579681, 0.3734760880470276, 0.06147729605436325, 0.2543972432613373, 0.14958921074867249, 0.08073738217353821, 0.10822367668151855, 0.558426022529602, -0.017339780926704407, 0.0234147347509861, -0.24721762537956238, -0.08520819246768951, -0.30463942885398865, 0.3880220651626587, -0.0014711171388626099, -0.2571532130241394, 0.17644445598125458, -0.04758263751864433, -0.06876111775636673, -0.014575723558664322, 0.24240988492965698, -0.18652284145355225, -0.05277206003665924, 0.020485982298851013, 0.11471588909626007, 0.360621839761734, -0.10244715213775635, 0.057225026190280914, 0.05434086173772812, 0.1102677583694458, 0.3917825222015381, -0.41601064801216125, -0.19624581933021545, 0.007882155478000641, 0.07621093839406967, -0.1992872953414917, 0.10770097374916077, 0.21716634929180145, 0.22464832663536072, -0.11344090104103088, -0.0168442502617836, 0.2522181272506714, 0.35223111510276794, -0.11968415230512619, 0.1481119692325592, 0.07866299152374268, -0.27171972393989563, -0.06364660710096359, -0.03467147797346115, -0.26987430453300476, -0.044817470014095306, 0.5096763372421265, -0.46799445152282715, -0.24199944734573364, -0.15962570905685425, -0.08283479511737823, 0.23337635397911072, 0.4327569007873535, -0.05280659720301628, 0.25065234303474426, 0.22867557406425476, 0.03461678326129913, 0.5681980848312378, -0.03609799966216087, 0.02217869833111763, -0.19655412435531616, -0.1412777155637741, -0.04869520291686058, -0.2828444540500641, -0.17654819786548615, 0.14951206743717194, 0.045926351100206375, 0.28225478529930115, -0.11788482218980789, 0.18880364298820496, -0.21413658559322357, 0.023412130773067474, -0.11388593912124634, -0.14014750719070435, 0.29443448781967163, 0.20835860073566437, -0.11482566595077515, 0.22615885734558105, 0.17710958421230316, -0.23305536806583405, -0.4272058308124542, 0.41676682233810425, -0.1968296766281128, -0.4156869649887085, -0.48458051681518555, 0.0009357230737805367, -0.250071257352829, -0.08828312158584595, -0.4191102087497711, -0.17019180953502655, 0.12206314504146576, 0.03073767200112343, -0.011762283742427826, -0.16128571331501007, -0.11532086133956909, -0.09937635064125061, -0.04774845764040947, 0.14610148966312408, -0.42317989468574524, 0.17303499579429626, -0.2556329071521759, 0.2764596939086914, 0.32242631912231445, 0.6396907567977905, -0.28013187646865845, 0.3539848327636719, -0.24942727386951447, 0.2317921668291092, 0.5141878724098206, -0.09798267483711243, -0.40645307302474976, 0.7154763340950012, -0.0799034908413887, -0.1685018688440323, 0.08013121038675308, 0.5803714394569397, 0.3193608224391937, -0.07076781988143921, 0.1484784483909607, 0.6385694742202759, 0.18405576050281525, 0.2328275442123413, -0.3932380974292755, -0.029097381979227066, 0.07825019210577011, 0.446402370929718, -0.4105347990989685, 0.16327178478240967, 0.14069099724292755, -0.0007512439042329788, 0.19591355323791504, 0.05193157121539116, -0.08485058695077896, 0.26534533500671387, 0.24142955243587494, -0.01648031920194626, 0.03773926571011543, 0.23709967732429504, -0.16616055369377136, 0.13616767525672913, 0.4677138924598694, -0.2021823525428772, 0.03263731300830841, -0.1964568793773651, -0.3855074346065521, 0.32654374837875366, -0.09738171100616455, 0.5834558606147766, -0.20679034292697906, -0.02234634757041931, 0.09193901717662811, -0.16232722997665405, -0.169239804148674, -0.07819296419620514, -0.28376516699790955, -0.10431617498397827, -0.06295527517795563, 0.05521798133850098, 0.1984124779701233, -0.03769783303141594, -0.375663697719574, -0.022458523511886597, 0.023802701383829117, 0.057233862578868866, -0.20016148686408997, 0.27308204770088196, 0.18360628187656403, -0.031201764941215515, -0.029440276324748993, 0.22632329165935516, 0.10675971955060959, 0.06800822913646698, 0.3422229588031769, 0.013677340932190418, 0.21213506162166595, -0.25733065605163574, -0.07577932626008987, 0.46996480226516724, -0.19533109664916992, 0.21481676399707794, -0.23500443994998932, -0.09433732181787491, 0.37957972288131714, 0.1608310490846634, 0.14990167319774628, -0.021848950535058975, 0.19160327315330505, 0.29301950335502625, 0.23110957443714142, 0.30507779121398926, -0.25294777750968933, 0.26798132061958313, 0.2955797612667084, -0.34330984950065613, -0.059935398399829865, 0.23463201522827148, 0.02167246863245964, -0.29416486620903015, -0.02410614676773548, -0.08608590066432953, 0.36561325192451477, 0.10096392780542374, 0.023207563906908035, -0.3252740502357483, -0.050992030650377274, -0.19014227390289307, 0.15656787157058716, -0.08559399843215942, -0.15529756247997284, 0.12011466175317764, -0.0784914568066597, -0.1449505090713501, -0.33782240748405457, 0.05295800045132637, 0.11459941416978836, 0.40823376178741455, -0.35934925079345703, 0.20512747764587402, -0.11272027343511581, 0.11539366096258163, 0.00012968387454748154, -0.31077149510383606, 0.10942910611629486, -0.22159945964813232, -0.2033454030752182, 0.25411051511764526, -0.05174862593412399, -0.16136299073696136, -0.062143582850694656, 0.34968286752700806, 0.19647759199142456, -0.48542892932891846, -0.3430977165699005, -0.2745361626148224, -0.11072235554456711, -0.16612769663333893, 0.4014422297477722, 0.12671096622943878, 0.22307276725769043, -0.05987197160720825, -0.13149623572826385, -0.2171727865934372, -0.1485174596309662, -0.13815052807331085, 0.03046628087759018, 0.13910725712776184, -0.17232167720794678, 0.33418965339660645, -0.5773807764053345, -0.054647400975227356, 0.27611079812049866, -0.32742974162101746, -0.22200742363929749, 0.42105570435523987, -0.10175447165966034, -0.31896886229515076, 0.020626064389944077, 0.11821095645427704, -0.11741276830434799, -0.22526444494724274, 0.19395413994789124, 0.060111258178949356, 0.17464889585971832, -0.27029284834861755, 0.12876339256763458, 0.020170778036117554, 0.4685719907283783, -0.2537424564361572, -0.17099356651306152, -0.24629594385623932, 0.6392533183097839, 0.014165885746479034, -0.25465482473373413, -0.021695077419281006, 0.15612001717090607, -0.06782855093479156, -0.019214769825339317, -0.5329579710960388, 0.21371757984161377, -0.41072142124176025, 0.4174281656742096, -0.2403506338596344, 0.11014816164970398, 0.11097443103790283, -0.27082014083862305, 0.040113456547260284, 0.21738043427467346, -0.04778371751308441, 0.17580574750900269, 0.0863867849111557, 0.04552096128463745, 0.022664055228233337, 0.5955454707145691, -0.24430856108665466, 0.3329935669898987, -0.2710859775543213, -0.13617566227912903, 0.36351025104522705, -0.03905807435512543, 0.19483964145183563, -0.3454585671424866, -0.19800378382205963, -0.2656885087490082, 0.12326312065124512, -0.31891077756881714, 0.19594502449035645, -0.012941565364599228, -0.336069256067276, 0.016245748847723007, -0.00770794041454792, -0.050018493086099625, -0.052719227969646454, 0.2995041012763977, 0.009621486067771912, 0.044326286762952805, -0.1402284950017929, 0.20285189151763916, -0.3820977807044983, -0.242933452129364, -0.08646790683269501, 0.0005126819014549255, 0.13928022980690002, -0.27106529474258423, -0.5346099734306335, -0.0809866189956665, -0.40784165263175964, 0.16139908134937286, -0.17256411910057068, 0.45671647787094116, 0.0902639627456665, -0.3383499085903168, 0.465745210647583, -0.005345487501472235, 0.5948348045349121, 0.3084178864955902, 0.08276338875293732, 0.19233311712741852, -0.20196270942687988, -0.6922326683998108, 0.05362546071410179, 0.23208290338516235, -0.05324336141347885, 0.3043684959411621, 0.6459020972251892, -0.0255880206823349, -0.13513486087322235, -0.09985367953777313, 0.3506249785423279, -0.21396581828594208, -0.4529127776622772, -0.18064969778060913, -0.37299561500549316, -0.1395714432001114, 0.1319063901901245, 0.18394392728805542, 0.48202043771743774, 0.41244956851005554, -0.03133224695920944, -0.20820553600788116, -0.13885164260864258, 0.06311210989952087, 0.07521967589855194, 0.3415227234363556, -0.09433989226818085, 0.42655813694000244, -0.3278442919254303, 0.16689054667949677, -0.1639246642589569, 0.4506516754627228, -0.1249110996723175, -0.055145084857940674, 0.3552739918231964, -0.17892195284366608, 0.037383124232292175, 0.39456501603126526, 0.21304930746555328, 0.10879838466644287, -0.12930968403816223, 0.17535360157489777, -0.21597354114055634, -0.07544805109500885, -0.16391535103321075, -0.03658477962017059, 0.03982280194759369, -0.20665685832500458, 0.2804309129714966, 0.06470292806625366, -0.039706550538539886, 0.28369855880737305, -0.10288119316101074, 0.09373914450407028, 0.6956079006195068, 0.1971287876367569, 1.208737850189209, -0.4919818639755249, 0.033667631447315216, 0.12981873750686646, 0.18626730144023895, -0.1252056360244751, -0.13926678895950317, -0.32745039463043213, -0.4056123197078705, 0.11824049055576324, 0.13328640162944794, -0.22277818620204926, -0.11083989590406418, 0.37793707847595215, 0.14213909208774567, -0.14575637876987457, -0.28459832072257996, 0.3121122419834137, -0.3484484553337097, 0.37317803502082825, 0.00014207884669303894, -0.46626001596450806, -0.582854151725769, -0.03655441850423813, 0.017629526555538177, -0.10609374940395355, -0.015920104458928108, 0.18359337747097015, -0.01591121405363083, -0.17612095177173615, -0.06902199983596802, -0.14809563755989075, 0.18522730469703674, 0.17996950447559357, 0.17775708436965942, -0.22630980610847473, -0.1202375590801239, 0.4478645324707031, 0.38328075408935547, -0.0640566349029541, 0.007216781377792358, 0.19814378023147583, 0.07168625295162201, 0.14021821320056915, 0.11924433708190918, -0.2417062669992447, 0.09063408523797989, -0.10889552533626556, 0.008431851863861084, -0.07127002626657486, -0.12768371403217316, -0.5348028540611267, -0.09595049917697906, 0.22054974734783173, 0.34367549419403076, -0.21527409553527832, -0.27375203371047974, -0.2669525146484375, 0.19507275521755219, -0.06961751729249954, 0.0016729198396205902, 0.3451693654060364, 0.1746702343225479, 0.24702072143554688, -0.08030827343463898, -0.2670125961303711, 0.0034178681671619415, 0.35977423191070557, 0.05233881250023842, -0.24418377876281738, 0.22462975978851318, 0.04630575701594353, -0.23074227571487427, -0.2069212794303894, 0.34075823426246643, 0.2651689946651459, -0.49499058723449707, 0.13043105602264404, 0.03530208393931389, -0.041881002485752106, 0.06730332225561142, 0.1329653561115265, 0.15851733088493347, 0.015713196247816086, -0.13758744299411774, -0.201266348361969, -0.527533769607544, -0.029743880033493042, 0.23160351812839508, 0.0961122065782547, 0.1536247730255127, -0.5203178524971008, -0.2615034878253937, 0.012294040992856026, -0.12918329238891602, 0.06790624558925629, -0.02117205783724785, 0.13007131218910217, 0.02199232578277588, -0.054930634796619415, 0.1272866278886795, -0.17012611031532288, 0.04467522352933884, -0.12151777744293213, 0.035341404378414154, -0.07324670255184174, 0.059590552002191544, 0.22624625265598297, -0.01835869997739792, -0.28511178493499756, -0.22976648807525635, -0.4710471034049988, -0.2037379890680313, -0.354801744222641, -0.08404962718486786, 0.10967620462179184, -0.08294479548931122, -0.3674423098564148, 0.33247533440589905, 0.1370849311351776, 0.009759150445461273, 0.4062238037586212, -0.06025099754333496, 0.4979391098022461, -0.058613117784261703, 0.06563641130924225, 0.17789414525032043, -0.1666073352098465, -0.27065932750701904, 0.21734514832496643, 0.3430078625679016, -0.11296425014734268, 0.3921230733394623, -0.24535860121250153, 0.05556048825383186, 0.2345796525478363, 0.007281240075826645, 0.19702425599098206, -0.15959911048412323, -0.2889462411403656, 0.2770780324935913, 0.04972367733716965, -0.009357308968901634, -0.2795388102531433, -0.043236665427684784, -0.1091429740190506, -0.25316038727760315, 0.35296431183815, 0.4270124137401581, -0.20799404382705688, -0.08079114556312561, 0.04774750769138336, 0.5593770742416382, 0.014238140545785427, -0.4618855118751526, 0.5625967979431152, -0.028303463011980057, -0.01953257992863655, 0.15429337322711945, 0.2069476693868637, 0.06147795915603638, 0.5321909785270691, -0.203332781791687, 0.059836678206920624, 0.35358214378356934, 0.553202211856842, -0.42826756834983826, -0.33454757928848267, 0.35148611664772034, 0.25628897547721863, -0.26428526639938354, -0.1204351857304573, 0.17630073428153992, 0.1915050894021988, -0.2000458538532257, -0.09628968685865402, -0.24199993908405304, 0.28567615151405334, -0.22136831283569336, 0.06160277500748634, -0.3761417269706726, -0.003955565392971039, -0.02977003902196884, 0.1692759096622467, -0.25970932841300964, 0.017536085098981857, -0.2455751597881317, 0.3440791964530945, 0.06412188708782196, 0.04441378638148308, 0.058395206928253174, 0.060989633202552795, 0.0008987113833427429, -0.42273882031440735, -0.023253077641129494, -0.3469662666320801, -0.032526545226573944, 0.2949286699295044, -0.2910648584365845, 0.37086471915245056, 0.4920545220375061, 0.008085893467068672, 0.053411561995744705, -0.0598779059946537, -0.04628070071339607, 0.01904907077550888, 0.2101275622844696, -0.10836642980575562, 0.3407146632671356, 0.14415743947029114, -0.1136075034737587, -0.06548658758401871, -0.4170876145362854, -0.16914282739162445, 0.4294932186603546, 0.08753760159015656, 0.3718034029006958, 0.08222193270921707, -0.31478607654571533, -0.289388507604599, 0.08420541137456894, -0.09285789728164673, -0.18364489078521729, 0.23887141048908234, 0.0186642874032259, 0.13826227188110352, -0.05493926256895065, -0.044366732239723206, -0.33144888281822205, 0.5940251350402832, 0.31949302554130554, -0.36270368099212646, -0.1800251007080078, -0.31111156940460205, -0.6691557765007019, 0.07976114749908447, 0.056528449058532715, -0.0767393633723259, 0.3885864317417145, 0.22820480167865753, 0.4421893358230591, 0.05083906650543213, -0.1075010597705841, 0.011396538466215134, -0.11682424694299698, 0.3702002167701721, -0.03827137500047684, 0.037990421056747437, 0.04634448513388634, 0.2053324431180954, -0.2436438947916031, -0.4843665659427643, 0.4108665883541107, 0.1688498705625534, -0.10001076757907867, -0.1184423416852951, 0.0033152252435684204, -0.2772931754589081, 0.4129751920700073, 0.390255331993103, 0.007205585017800331, 0.12701070308685303, 0.3299393951892853, 0.0592312216758728, 0.2613450586795807, -0.09722216427326202, 0.06970357894897461, 0.24343422055244446, -0.07782299816608429, -0.04539315029978752, -0.03461993485689163, 0.3828950524330139, -0.19040770828723907, 0.010125732980668545, -0.26442044973373413, -0.16413719952106476, -0.12261074036359787, -0.012483458034694195, -0.22969359159469604, 0.27830082178115845, 0.23226478695869446, 0.021880265325307846, 0.1775471270084381, 0.24545393884181976, -0.23127315938472748, -0.055424630641937256, 0.21426188945770264, -0.018072227016091347, -0.15502479672431946, 0.06023357808589935, 0.1880706250667572, 0.19684448838233948, 0.18797644972801208, -0.33728450536727905, -0.15184533596038818, 0.23160411417484283, -0.1202036514878273, -0.11695003509521484, 0.4154006838798523, -0.24521082639694214, 0.19906805455684662, -0.1444697380065918, 0.2633865475654602, -0.10303287953138351, -0.06553267687559128, -0.40623384714126587, -0.2756510078907013 ]
https://github.com/huggingface/datasets/issues/2099
load_from_disk takes a long time to load local dataset
Strangely, even when I manually created `np.arrays` of specific `dtypes`, the types in the final `dataset_info.json` that gets written are still `int64`. Update: I tried creating lists of `int8`s and got the same result.
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
34
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) Strangely, even when I manually created `np.arrays` of specific `dtypes`, the types in the final `dataset_info.json` that gets written are still `int64`. Update: I tried creating lists of `int8`s and got the same result.
[ -0.21739907562732697, -0.18767257034778595, -0.05202401429414749, 0.3366711139678955, 0.3299887776374817, 0.03490077704191208, 0.41539689898490906, 0.28230905532836914, 0.6786059141159058, -0.10994799435138702, 0.1326240450143814, 0.5752295255661011, 0.19425339996814728, -0.047149792313575745, 0.144395112991333, 0.11741146445274353, 0.35872727632522583, 0.2722392678260803, 0.37639597058296204, -0.1764422357082367, -0.30608779191970825, 0.04754572734236717, -0.03708028420805931, -0.03199344128370285, -0.0833015963435173, -0.0650949776172638, 0.056742921471595764, 0.011635307222604752, -0.19991445541381836, -0.3068857491016388, 0.10656215250492096, -0.09480530023574829, 0.26168298721313477, 0.23809313774108887, -0.00012925533519592136, -0.18575075268745422, 0.12671032547950745, 0.09819387644529343, -0.24223603308200836, 0.32435208559036255, 0.41630151867866516, -0.4820280969142914, 0.26076096296310425, -0.3481031656265259, 0.11000024527311325, -0.49553748965263367, -0.27199602127075195, -0.3215939998626709, -0.03164072334766388, -0.13417117297649384, 0.02469046227633953, 0.4677748680114746, -0.22414757311344147, 0.13270801305770874, -0.2011585533618927, 0.43922555446624756, -0.2193625569343567, -0.007172420620918274, 0.44251009821891785, 0.058292731642723083, -0.04858168214559555, -0.08653704822063446, -0.14066947996616364, -0.015831001102924347, 0.4063597321510315, 0.06150132045149803, 0.20554488897323608, 0.12287981063127518, 0.06945744156837463, 0.17282015085220337, 0.6207132339477539, 0.033461906015872955, -0.07076270878314972, -0.2485567331314087, -0.1489284485578537, -0.246074378490448, 0.4324031174182892, 0.036254048347473145, -0.23574106395244598, 0.1717064529657364, -0.17627550661563873, -0.001528089283965528, -0.07333802431821823, 0.25048357248306274, -0.13082686066627502, -0.16166821122169495, -0.01100743655115366, 0.1591523289680481, 0.35275453329086304, -0.19640515744686127, 0.07741702347993851, -0.015562158077955246, 0.009121131151914597, 0.303527295589447, -0.3383486270904541, -0.28309184312820435, 0.05150626599788666, -0.007968507707118988, -0.07808610796928406, 0.06347265839576721, 0.16223953664302826, 0.24952858686447144, -0.23315323889255524, -0.0472109317779541, 0.2891203463077545, 0.3608790636062622, -0.032874152064323425, 0.006886371411383152, 0.09100818634033203, -0.3389001786708832, 0.06944809854030609, 0.02003416232764721, -0.16763631999492645, 0.0830196961760521, 0.37841424345970154, -0.4967733323574066, -0.2162388563156128, -0.15001274645328522, -0.020842865109443665, 0.2400244027376175, 0.36365264654159546, 0.016009708866477013, 0.17315393686294556, 0.1814385950565338, 0.07714805006980896, 0.6115543246269226, -0.0976981520652771, 0.07282514870166779, -0.16298334300518036, -0.17398780584335327, -0.01977097988128662, -0.3106486201286316, -0.11812704801559448, 0.08500906825065613, 0.14966784417629242, 0.3727174699306488, -0.045969389379024506, 0.16710412502288818, -0.2715288996696472, 0.015794433653354645, -0.09696708619594574, -0.11311323940753937, 0.3125571012496948, 0.22989308834075928, -0.09878316521644592, 0.2557435631752014, 0.14606794714927673, -0.289128839969635, -0.449712336063385, 0.3425273895263672, -0.13587364554405212, -0.29431939125061035, -0.4542924463748932, -0.025024738162755966, -0.2671668529510498, -0.019694112241268158, -0.4391438663005829, -0.10766682028770447, 0.1381552666425705, 0.025516632944345474, -0.012243010103702545, -0.20783650875091553, -0.08296890556812286, -0.11182115226984024, -0.0885610282421112, 0.08495567739009857, -0.4510563313961029, 0.17496274411678314, -0.2742946743965149, 0.28475260734558105, 0.2883860468864441, 0.6702417731285095, -0.20672792196273804, 0.22993004322052002, -0.18603743612766266, 0.3189181089401245, 0.41101232171058655, -0.09777378290891647, -0.31156009435653687, 0.7315465211868286, -0.01171017810702324, -0.1459037810564041, 0.1338103711605072, 0.5266261100769043, 0.2496894747018814, -0.04259452223777771, 0.13652382791042328, 0.6743006706237793, 0.17488016188144684, 0.22158268094062805, -0.2907080352306366, -0.08665842562913895, 0.04817087948322296, 0.41379261016845703, -0.48902103304862976, 0.12408900260925293, 0.1250768005847931, -0.054476723074913025, 0.147173672914505, 0.04561562463641167, -0.050289951264858246, 0.23463156819343567, 0.2530583441257477, -0.09900973737239838, 0.05647747963666916, 0.305290162563324, -0.30082952976226807, 0.1053387001156807, 0.3949756324291229, -0.18056699633598328, 0.03432638943195343, -0.20429067313671112, -0.2784744203090668, 0.30425071716308594, -0.028972025960683823, 0.5546167492866516, -0.18155212700366974, 0.0827285647392273, 0.08169862627983093, -0.12093336880207062, -0.15712933242321014, -0.13328838348388672, -0.24260222911834717, -0.11021292209625244, -0.1819314807653427, 0.008192386478185654, 0.2339276671409607, -0.050429508090019226, -0.3065251111984253, -0.019636370241642, 0.02690836787223816, -0.038455359637737274, -0.1630457639694214, 0.2365637719631195, 0.20025624334812164, 0.0035286545753479004, -0.030896246433258057, 0.18774433434009552, 0.1519826352596283, 0.08071388304233551, 0.31814709305763245, 0.05287301912903786, 0.17471502721309662, -0.2780155837535858, -0.17613336443901062, 0.5037503242492676, -0.18913914263248444, 0.22163227200508118, -0.2732483148574829, -0.07846774160861969, 0.45786967873573303, 0.18973341584205627, 0.0803915336728096, -0.08699391782283783, 0.11228729784488678, 0.321902871131897, 0.13432034850120544, 0.2910537123680115, -0.23326918482780457, 0.342741996049881, 0.41296401619911194, -0.31113237142562866, -0.07542575150728226, 0.20762762427330017, 0.01624845340847969, -0.36574921011924744, -0.005464956164360046, -0.06874988228082657, 0.3628416657447815, 0.05588427931070328, 0.05078207328915596, -0.3696981966495514, -0.0517440102994442, -0.18469446897506714, 0.12003502249717712, -0.09367704391479492, -0.03465134650468826, 0.09922601282596588, -0.04280678555369377, -0.2816375195980072, -0.36568716168403625, 0.0651434063911438, 0.11084065586328506, 0.388858824968338, -0.31009262800216675, 0.21804536879062653, -0.19687741994857788, 0.06926117837429047, 0.016818780452013016, -0.28617411851882935, 0.11094971001148224, -0.1754751354455948, -0.20480841398239136, 0.31620368361473083, -0.07433786988258362, -0.15240715444087982, 0.06496687233448029, 0.42300230264663696, 0.22769080102443695, -0.4015130400657654, -0.3833150565624237, -0.23760315775871277, -0.1568232774734497, -0.17524243891239166, 0.3804134130477905, 0.10470936447381973, 0.17036312818527222, -0.1451798379421234, -0.15508191287517548, -0.22535280883312225, -0.18281742930412292, -0.10960802435874939, 0.04589291661977768, 0.25928834080696106, -0.1274663358926773, 0.38010239601135254, -0.5672900080680847, 0.05625583976507187, 0.2641807198524475, -0.2876506447792053, -0.2858356237411499, 0.36604440212249756, -0.14748120307922363, -0.3140186369419098, -0.033716749399900436, 0.039368946105241776, -0.09024219959974289, -0.2155965119600296, 0.3713659644126892, 0.07768651843070984, 0.18060758709907532, -0.20342358946800232, 0.15041273832321167, 0.007472671568393707, 0.43695491552352905, -0.22815999388694763, -0.20467278361320496, -0.23250071704387665, 0.6616536378860474, -0.06105538085103035, -0.2485222965478897, -0.05579070746898651, 0.1784062683582306, -0.10163654386997223, -0.05872664600610733, -0.5192956924438477, 0.1694786101579666, -0.414203017950058, 0.3584965765476227, -0.19351640343666077, 0.03955235704779625, 0.11611899733543396, -0.29369431734085083, 0.040714286267757416, 0.12321596592664719, -0.155217707157135, 0.22627687454223633, 0.1684095561504364, 0.10852881520986557, 0.09710942208766937, 0.6675195693969727, -0.2841600179672241, 0.2335282564163208, -0.12840497493743896, -0.243657186627388, 0.31387442350387573, 0.004558740183711052, 0.25006988644599915, -0.41834756731987, -0.09972652792930603, -0.21405601501464844, 0.13228343427181244, -0.27864015102386475, 0.20927298069000244, -0.023073885589838028, -0.3529037535190582, 0.05651836842298508, 0.055448245257139206, -0.06459139287471771, -0.05382756143808365, 0.2805735170841217, 0.07259956747293472, -0.04823910444974899, -0.09439674019813538, 0.3200042247772217, -0.35327282547950745, -0.21175819635391235, -0.16105107963085175, 0.06506071984767914, 0.17115625739097595, -0.14877356588840485, -0.6796738505363464, -0.1674267053604126, -0.3332335948944092, 0.1392713189125061, -0.2569190561771393, 0.5929821133613586, 0.02250070497393608, -0.23313769698143005, 0.38181596994400024, -0.02671893499791622, 0.5649268627166748, 0.23073701560497284, 0.1245870441198349, 0.16132794320583344, -0.1329396367073059, -0.683419406414032, 0.07888354361057281, 0.27970075607299805, -0.007019528653472662, 0.3291245400905609, 0.7125706672668457, -0.1811700165271759, -0.09999682009220123, -0.14159946143627167, 0.3365510106086731, -0.18524327874183655, -0.39921602606773376, -0.14935743808746338, -0.4388355612754822, -0.07078865170478821, 0.0791192427277565, 0.21000178158283234, 0.44629546999931335, 0.34054696559906006, -0.04865986108779907, -0.21841096878051758, -0.1173245832324028, 0.05995269492268562, 0.09862512350082397, 0.39265912771224976, -0.0840948298573494, 0.3604734241962433, -0.2897670865058899, 0.20884929597377777, -0.0379229411482811, 0.39523157477378845, -0.014189697802066803, -0.013174660503864288, 0.356596440076828, -0.18685387074947357, -0.04031721502542496, 0.39483582973480225, 0.21678674221038818, -0.013731561601161957, 0.0050158072263002396, 0.13838911056518555, -0.20695161819458008, -0.07618293166160583, -0.13309338688850403, -0.06194819509983063, -0.00039999233558773994, -0.2413402795791626, 0.34211060404777527, 0.04589065536856651, 0.036698177456855774, 0.2169332504272461, -0.10645429790019989, 0.0730896145105362, 0.70054030418396, 0.22822043299674988, 1.0924139022827148, -0.4371306896209717, 0.041069395840168, 0.1504456102848053, 0.15328900516033173, 0.04514661803841591, -0.2118845134973526, -0.2649599313735962, -0.41337671875953674, 0.23593898117542267, 0.12915632128715515, -0.24883894622325897, -0.12277313321828842, 0.3823555111885071, 0.18170471489429474, -0.17158828675746918, -0.18666818737983704, 0.3809775114059448, -0.3225499391555786, 0.45868074893951416, -0.04985126107931137, -0.5222055912017822, -0.5489804148674011, -0.05282868444919586, -0.049243584275245667, -0.0831594318151474, 0.08038156479597092, 0.04117860272526741, -0.05312168225646019, -0.15679603815078735, -0.062462009489536285, -0.20560765266418457, 0.30192095041275024, 0.19750018417835236, 0.2539478540420532, -0.26063090562820435, -0.125512033700943, 0.42298856377601624, 0.43248772621154785, 0.012652331963181496, -0.12400981783866882, 0.17535515129566193, 0.04935077577829361, 0.11191552877426147, 0.12975309789180756, -0.27785637974739075, 0.051565252244472504, -0.08931662142276764, 0.0382789745926857, -0.19612181186676025, -0.16360320150852203, -0.4552239179611206, -0.1367638111114502, 0.1120985597372055, 0.16150137782096863, -0.2072800099849701, -0.22477272152900696, -0.3366517424583435, 0.11603918671607971, -0.04055708274245262, -0.0055045876652002335, 0.3154767155647278, 0.19006110727787018, 0.29589658975601196, 0.00654451921582222, -0.25809574127197266, -0.012700390070676804, 0.326602578163147, 0.1172460988163948, -0.2492700219154358, 0.21667934954166412, 0.09228622913360596, -0.2408175766468048, -0.23052754998207092, 0.36328452825546265, 0.3062570095062256, -0.39233607053756714, 0.1796465963125229, 0.006199924275279045, -0.07762978971004486, 0.021031484007835388, 0.0644814521074295, 0.10662248730659485, 0.07950075715780258, -0.11342217028141022, -0.23397468030452728, -0.530972421169281, 0.048885900527238846, 0.1587390899658203, 0.14421191811561584, 0.18713337182998657, -0.45532578229904175, -0.2841462790966034, -0.03012147732079029, -0.10837703943252563, 0.03176901489496231, -0.0022477395832538605, 0.10258465260267258, -0.04460947960615158, -0.04861751198768616, 0.10317058861255646, -0.15386192500591278, 0.014789609238505363, -0.11884695291519165, -0.05063758045434952, -0.03173498064279556, 0.057585787028074265, 0.23092661798000336, 0.024380631744861603, -0.30437034368515015, -0.20058876276016235, -0.5046974420547485, -0.2750755548477173, -0.3541996479034424, -0.14331117272377014, 0.024826399981975555, -0.05641607940196991, -0.3651977777481079, 0.30959177017211914, 0.17716211080551147, 0.04785512387752533, 0.38211533427238464, -0.035138048231601715, 0.5291318297386169, -0.08385094255208969, 0.09064541757106781, 0.14198584854602814, -0.1484673023223877, -0.3130098581314087, 0.20569700002670288, 0.2749147415161133, -0.07418174296617508, 0.3640143871307373, -0.2556058168411255, 0.045170094817876816, 0.19686190783977509, 0.01708807423710823, 0.2804643511772156, -0.1707638055086136, -0.28760161995887756, 0.2010519802570343, 0.015196163207292557, 0.08783677220344543, -0.21893198788166046, -0.009042687714099884, -0.07228398323059082, -0.27557989954948425, 0.3545841574668884, 0.43536028265953064, -0.2265688180923462, -0.10171782970428467, 0.007661374285817146, 0.6051028370857239, 0.056776344776153564, -0.3878495693206787, 0.559194028377533, -0.12213067710399628, -0.022498007863759995, 0.19008764624595642, 0.1020667552947998, 0.08795757591724396, 0.5890635848045349, -0.15645265579223633, 0.04548720270395279, 0.39454081654548645, 0.5005432367324829, -0.4387722909450531, -0.25639644265174866, 0.29666388034820557, 0.3051193952560425, -0.15790873765945435, -0.030389323830604553, 0.27482354640960693, 0.24237945675849915, -0.2620982825756073, -0.09291030466556549, -0.38736972212791443, 0.22686010599136353, -0.28152796626091003, -0.011610178276896477, -0.44377824664115906, -0.07701943814754486, 0.07869906723499298, 0.20585298538208008, -0.3155551254749298, 0.044435203075408936, -0.2954047918319702, 0.30631110072135925, -0.004682451486587524, -0.014125494286417961, 0.1462668776512146, -0.05597526580095291, -0.04381098598241806, -0.37900510430336, 0.047777820378541946, -0.2433990091085434, -0.05428709089756012, 0.21683451533317566, -0.3252420723438263, 0.31331178545951843, 0.45640406012535095, 0.04468231275677681, 0.0164983868598938, -0.06673578917980194, -0.08281751722097397, -0.008705663494765759, 0.2081095278263092, -0.05901655554771423, 0.1394253671169281, 0.1305968463420868, -0.10888988524675369, 0.005766897462308407, -0.4132784605026245, -0.17478053271770477, 0.3841588497161865, 0.13877563178539276, 0.33121928572654724, 0.04103337228298187, -0.25624582171440125, -0.2217208445072174, 0.031792499125003815, -0.01794331520795822, -0.1998840570449829, 0.24816226959228516, 0.10707022249698639, 0.140680730342865, -0.10539697110652924, -0.04891873151063919, -0.42117175459861755, 0.6321427822113037, 0.19316239655017853, -0.45750245451927185, -0.12101506441831589, -0.29580801725387573, -0.4957219362258911, 0.08989109843969345, 0.018537402153015137, -0.08422954380512238, 0.373341828584671, 0.299486368894577, 0.4935497045516968, 0.04187988117337227, -0.13970355689525604, 0.06136958673596382, -0.07761158794164658, 0.4077984392642975, -0.08410394936800003, 0.008401341736316681, 0.04228269308805466, 0.25421568751335144, -0.2144947499036789, -0.47666987776756287, 0.4295176863670349, 0.21776892244815826, -0.11160721629858017, -0.19582761824131012, 0.11958684027194977, -0.2376289665699005, 0.4204733371734619, 0.35872089862823486, 0.11127270013093948, 0.08403057605028152, 0.3227861523628235, -0.08306404948234558, 0.21859315037727356, -0.12359189987182617, 0.0773012563586235, 0.3300933837890625, -0.10250265896320343, 0.0824519544839859, -0.0837060958147049, 0.49980130791664124, -0.2368961125612259, -0.031085480004549026, -0.3372483253479004, -0.09288405627012253, -0.13427624106407166, 0.04731420427560806, -0.33812713623046875, 0.17389680445194244, 0.23734427988529205, -0.013334207236766815, 0.20183207094669342, 0.24961064755916595, -0.22245782613754272, -0.07286974042654037, 0.25714218616485596, 0.030177194625139236, -0.20300263166427612, 0.1415962278842926, 0.06723977625370026, 0.1613493412733078, 0.16631576418876648, -0.33006346225738525, -0.08233663439750671, 0.16796185076236725, -0.1623263955116272, -0.14814694225788116, 0.315927654504776, -0.26836973428726196, 0.07567395269870758, -0.1605040431022644, 0.2990536689758301, -0.02438482642173767, -0.13280650973320007, -0.4334264099597931, -0.2827863097190857 ]
https://github.com/huggingface/datasets/issues/2099
load_from_disk takes a long time to load local dataset
Yes this is a known issue: #625 We're working on making the precision kept for numpy :) To specify the precision of the integers, currently one needs to specify the output features with `.map(..., features=output_features)`
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
35
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) Yes this is a known issue: #625 We're working on making the precision kept for numpy :) To specify the precision of the integers, currently one needs to specify the output features with `.map(..., features=output_features)`
[ -0.2853319048881531, -0.21878743171691895, -0.02809802070260048, 0.23458196222782135, 0.32534366846084595, 0.06384437531232834, 0.45363909006118774, 0.20494315028190613, 0.6538365483283997, -0.03381197154521942, 0.10111387073993683, 0.4731714427471161, 0.12746311724185944, -0.16990269720554352, 0.06348086148500443, 0.10077666491270065, 0.3845752775669098, 0.17021498084068298, 0.4007258415222168, -0.22810019552707672, -0.3928021788597107, -0.0222927313297987, -0.0956597626209259, -0.02678406983613968, -0.21283666789531708, -0.10197880119085312, -0.036140963435173035, 0.05445559322834015, -0.10710293054580688, -0.2511245012283325, 0.021519185975193977, -0.1343870460987091, 0.3368288576602936, 0.23380373418331146, -0.0001270738575840369, -0.199875608086586, 0.04752569645643234, 0.13460908830165863, -0.2297707051038742, 0.35131508111953735, 0.4877167046070099, -0.6189039945602417, 0.21659135818481445, -0.389985054731369, 0.15829843282699585, -0.18954236805438995, -0.30146777629852295, -0.266580194234848, -0.03680475056171417, -0.12143704295158386, 0.04507313668727875, 0.5076543092727661, -0.23216433823108673, 0.13931035995483398, -0.285515159368515, 0.3035942316055298, -0.2053806036710739, 0.06531378626823425, 0.49820592999458313, 0.05492589622735977, -0.03457973152399063, -0.051782723516225815, -0.16833190619945526, -0.030210081487894058, 0.30905681848526, 0.10794490575790405, 0.40783587098121643, 0.11713222414255142, -0.008019957691431046, 0.11995767056941986, 0.49658912420272827, 0.03355544060468674, -0.08468491584062576, -0.341702938079834, -0.11129535734653473, -0.41445401310920715, 0.32938152551651, 0.09119163453578949, -0.3490363359451294, 0.1724071204662323, -0.04704795032739639, -0.07980293035507202, 0.013933442533016205, 0.22459624707698822, -0.15581205487251282, -0.09138093888759613, 0.019738532602787018, 0.13173452019691467, 0.22764736413955688, -0.1148109883069992, 0.08456557989120483, 0.010315758176147938, 0.2136576920747757, 0.4248526990413666, -0.424665629863739, -0.2353162318468094, 0.020828254520893097, 0.014246046543121338, -0.16532525420188904, 0.010203888639807701, 0.1822427213191986, 0.2515754997730255, -0.1862853765487671, 0.021924972534179688, 0.3129637837409973, 0.42806634306907654, -0.17335766553878784, 0.18636146187782288, 0.09277398884296417, -0.24336548149585724, 0.1412961483001709, 0.015263065695762634, -0.1005442887544632, 0.042258135974407196, 0.5480377674102783, -0.46810588240623474, -0.1633121371269226, -0.13201656937599182, -0.1422056406736374, 0.22771529853343964, 0.4887232780456543, -0.041785068809986115, 0.15613308548927307, 0.14554446935653687, 0.08063601702451706, 0.5697744488716125, -0.05629688873887062, 0.11948343366384506, -0.18076802790164948, -0.157846599817276, -0.08431920409202576, -0.33562523126602173, -0.056264981627464294, 0.19030138850212097, 0.040299657732248306, 0.36838507652282715, -0.06836524605751038, 0.15411989390850067, -0.1981157809495926, 0.06852591037750244, -0.11717139929533005, -0.1645001769065857, 0.23330411314964294, 0.18566425144672394, -0.13804171979427338, 0.2557902932167053, 0.13598276674747467, -0.19318589568138123, -0.4076724052429199, 0.42625945806503296, -0.16461756825447083, -0.34027203917503357, -0.4790642261505127, 0.009015679359436035, -0.18660932779312134, 0.003799527883529663, -0.35390233993530273, -0.16919173300266266, 0.22021587193012238, 0.06960012018680573, -0.0052027627825737, -0.24409420788288116, -0.11406507343053818, -0.1563967913389206, -0.049396440386772156, 0.0769280195236206, -0.30920571088790894, 0.1904054582118988, -0.17174062132835388, 0.30615171790122986, 0.3065820634365082, 0.7243390679359436, -0.18923792243003845, 0.2168445885181427, -0.2830536961555481, 0.23718245327472687, 0.4602166414260864, -0.046008892357349396, -0.35748666524887085, 0.6271570920944214, -0.10661152005195618, -0.07849698513746262, 0.06418704986572266, 0.56337571144104, 0.2529521584510803, -0.19016626477241516, 0.14850012958049774, 0.6897595524787903, 0.10922156274318695, 0.1991606503725052, -0.4090479910373688, -0.07337857782840729, 0.09521985799074173, 0.43981125950813293, -0.4073924720287323, 0.13201366364955902, 0.07750169932842255, -0.03250421956181526, 0.21448329091072083, 0.1083313524723053, -0.06704863905906677, 0.2884331941604614, 0.22472254931926727, -0.08269569277763367, -0.01573246717453003, 0.2709606885910034, -0.1798170804977417, 0.15948134660720825, 0.4164331257343292, -0.16293148696422577, -0.03835262358188629, -0.1796809434890747, -0.32295680046081543, 0.31808966398239136, -0.07883311808109283, 0.5116456747055054, -0.1500653475522995, 0.02359994500875473, 0.12039753794670105, -0.10227814316749573, -0.07345866411924362, -0.017423933371901512, -0.28253400325775146, -0.09660255908966064, -0.11306248605251312, 0.01549764908850193, 0.152522012591362, -0.07541397213935852, -0.3999117314815521, 0.011529665440320969, 0.06480757892131805, 0.014566920697689056, -0.2211717963218689, 0.353947252035141, 0.13230715692043304, -0.08655613660812378, -0.11877381056547165, 0.2663406729698181, 0.18616750836372375, 0.07910896837711334, 0.39644670486450195, 0.0986071228981018, 0.20529387891292572, -0.25057730078697205, -0.11209935694932938, 0.484450101852417, -0.19625478982925415, 0.15629678964614868, -0.28188174962997437, -0.0745495930314064, 0.4282439351081848, 0.1892058402299881, 0.14951951801776886, -0.09093169867992401, 0.1781177669763565, 0.32161375880241394, 0.21765707433223724, 0.25037720799446106, -0.224313884973526, 0.23972469568252563, 0.2951148748397827, -0.34967750310897827, 0.04049009084701538, 0.2224862277507782, 0.042781759053468704, -0.2908240258693695, -0.023357601836323738, -0.1991862803697586, 0.35784053802490234, 0.07376892864704132, 0.06591027975082397, -0.29416221380233765, -0.0975087359547615, -0.1970735788345337, 0.09821920841932297, -0.013993076980113983, -0.09826282411813736, 0.08082080632448196, -0.04954565316438675, -0.16877640783786774, -0.2680056095123291, 0.1539379507303238, 0.044659316539764404, 0.3528859615325928, -0.30591055750846863, 0.09731894731521606, -0.012762252241373062, 0.2521747052669525, -0.06047401577234268, -0.3014185428619385, 0.055232755839824677, -0.25556042790412903, -0.21184635162353516, 0.24825730919837952, -0.04742487519979477, -0.14370785653591156, -0.08144926279783249, 0.3157693147659302, 0.21437859535217285, -0.36217454075813293, -0.30672603845596313, -0.23659853637218475, -0.11833790689706802, -0.16991668939590454, 0.33781567215919495, 0.08722060173749924, 0.19634157419204712, -0.07358648627996445, -0.15571238100528717, -0.19352854788303375, -0.09777389466762543, -0.16801497340202332, 0.08165242522954941, 0.19382086396217346, -0.1836411952972412, 0.3560248613357544, -0.5311700105667114, 0.03509478643536568, 0.2957320809364319, -0.2823808491230011, -0.16427941620349884, 0.38202837109565735, -0.09026607871055603, -0.3041515648365021, 0.05622432008385658, 0.14902055263519287, -0.2280775010585785, -0.22620649635791779, 0.14554765820503235, 0.0563635490834713, 0.11589206755161285, -0.2805103659629822, 0.09015287458896637, -0.02888859435915947, 0.4666125774383545, -0.19338317215442657, -0.2513423562049866, -0.18547573685646057, 0.6473255157470703, 0.03346649184823036, -0.27932924032211304, -0.14354468882083893, 0.08938267081975937, -0.11679567396640778, -0.08097010105848312, -0.4640575051307678, 0.15442723035812378, -0.39442646503448486, 0.5134142637252808, -0.21227791905403137, 0.10998363047838211, 0.14665371179580688, -0.31038302183151245, 0.04817967116832733, 0.21147212386131287, -0.05940542370080948, 0.15112066268920898, 0.1554526686668396, 0.1205790638923645, 0.07825720310211182, 0.62372225522995, -0.21364353597164154, 0.2885497808456421, -0.17776034772396088, -0.1728208363056183, 0.3498381972312927, 0.06958815455436707, 0.24160946905612946, -0.3530930280685425, -0.14647220075130463, -0.2309078723192215, 0.07448350638151169, -0.3759371042251587, 0.1659776121377945, -0.014043360948562622, -0.29865652322769165, 0.030100800096988678, -0.0075985100120306015, -0.13198420405387878, -0.07088549435138702, 0.2679995000362396, 0.044615138322114944, 0.06900633126497269, -0.08562939614057541, 0.27437931299209595, -0.3619638979434967, -0.2205962836742401, -0.07804258167743683, -0.010208293795585632, 0.1685323715209961, -0.24180938303470612, -0.5344120860099792, -0.12252765893936157, -0.429757297039032, 0.17826004326343536, -0.17698171734809875, 0.5807366967201233, 0.09802541136741638, -0.33670011162757874, 0.37954193353652954, 0.06240066885948181, 0.6375268697738647, 0.24693931639194489, 0.06084198132157326, 0.14157232642173767, -0.13655918836593628, -0.7212401628494263, 0.028624366968870163, 0.2283569574356079, -0.11987417191267014, 0.36818236112594604, 0.699557363986969, -0.10672745853662491, -0.09365303814411163, -0.12645332515239716, 0.3635673224925995, -0.23904505372047424, -0.4294121265411377, -0.1454213559627533, -0.33954888582229614, -0.048659998923540115, 0.14128725230693817, 0.2077573537826538, 0.5102292895317078, 0.39659878611564636, 0.003108348697423935, -0.2096402496099472, -0.04738864302635193, -0.04021032154560089, 0.03798799216747284, 0.33841201663017273, -0.05848335847258568, 0.3670159578323364, -0.286501407623291, 0.21275876462459564, -0.16021493077278137, 0.4126995801925659, -0.2022046446800232, -0.07197482883930206, 0.33353254199028015, -0.20522375404834747, -0.01120109111070633, 0.3617834448814392, 0.2375928908586502, -0.07244063168764114, -0.13867680728435516, 0.20135578513145447, -0.19702796638011932, -0.1319129467010498, -0.1617801934480667, 0.010737677104771137, -0.02668399177491665, -0.11307782679796219, 0.3312247693538666, 0.05990711972117424, 0.0554095059633255, 0.1973136067390442, -0.257800817489624, 0.10073284059762955, 0.6957799196243286, 0.20668144524097443, 1.070002555847168, -0.4297005534172058, 0.02617293782532215, 0.18307358026504517, 0.13322971761226654, -0.0664956122636795, -0.1622081845998764, -0.2958102226257324, -0.34665223956108093, 0.10414071381092072, 0.14308542013168335, -0.2020399123430252, -0.12702855467796326, 0.3857889771461487, 0.16550910472869873, -0.07577001303434372, -0.31934019923210144, 0.2646407186985016, -0.3175813555717468, 0.3741772770881653, 0.02796092815697193, -0.4371841251850128, -0.5361633896827698, -0.020622650161385536, -0.0023407042026519775, -0.04538659378886223, 0.014670617878437042, 0.16559013724327087, -0.017110664397478104, -0.242184579372406, -0.03789069131016731, -0.2156960368156433, 0.13155460357666016, 0.2387966513633728, 0.22911137342453003, -0.30897772312164307, -0.18665677309036255, 0.4068337380886078, 0.49679404497146606, -0.14964455366134644, -0.04508046805858612, 0.1493595689535141, 0.13111086189746857, 0.11462971568107605, 0.172549769282341, -0.20268405973911285, 0.12100207805633545, -0.07908616960048676, 0.11398682743310928, -0.11977612227201462, -0.20744742453098297, -0.4152696132659912, -0.16806437075138092, 0.09907655417919159, 0.29443359375, -0.23488447070121765, -0.24596384167671204, -0.4113585650920868, 0.22559967637062073, -0.08799301832914352, 0.017128203064203262, 0.3532123565673828, 0.12835045158863068, 0.24083402752876282, -0.11670249700546265, -0.20578525960445404, -0.036938633769750595, 0.37363359332084656, 0.09633342176675797, -0.3826688230037689, 0.22738981246948242, 0.047890227288007736, -0.23052826523780823, -0.17430880665779114, 0.363231897354126, 0.24706941843032837, -0.4045791029930115, 0.16401687264442444, 0.016055429354310036, -0.022864930331707, -0.03843171149492264, 0.12885431945323944, 0.21640942990779877, 0.02222929522395134, -0.16494779288768768, -0.24412348866462708, -0.553936779499054, -0.0741589218378067, 0.233970507979393, 0.08614066243171692, 0.1739703118801117, -0.5396536588668823, -0.22219374775886536, 0.05973818153142929, -0.13641314208507538, -0.03418571501970291, -0.01905522681772709, 0.10441329330205917, 0.12571969628334045, -0.007481150329113007, 0.1417957842350006, -0.044320959597826004, 0.058747224509716034, -0.1436632126569748, -0.011272415518760681, -0.06585930287837982, 0.10351373255252838, 0.19878612458705902, -0.04567553848028183, -0.3167661130428314, -0.18721947073936462, -0.4499417543411255, -0.16622327268123627, -0.35109975934028625, -0.1727164089679718, 0.05607473850250244, -0.06593666970729828, -0.28947940468788147, 0.37357616424560547, 0.12479333579540253, 0.03990241140127182, 0.375625878572464, -0.09260965883731842, 0.4059261083602905, -0.05962901562452316, 0.1381233036518097, 0.2167511135339737, -0.16988947987556458, -0.30511894822120667, 0.14277318120002747, 0.24663618206977844, -0.10162390023469925, 0.3579622507095337, -0.2795630097389221, 0.0342390276491642, 0.25484204292297363, 0.0009396597743034363, 0.15598459541797638, -0.20342689752578735, -0.3396356403827667, 0.20076897740364075, 0.06537239253520966, -0.029855802655220032, -0.2698589265346527, -0.0048853550106287, -0.0707809329032898, -0.2545430660247803, 0.37085455656051636, 0.43992483615875244, -0.2043178379535675, -0.12478159368038177, 0.06301148980855942, 0.5689048767089844, -0.05426814407110214, -0.44501522183418274, 0.724183201789856, -0.009848669171333313, -0.015166569501161575, 0.17008985579013824, 0.08917491137981415, 0.05436786636710167, 0.511552631855011, -0.2473185956478119, 0.10561354458332062, 0.3380522131919861, 0.46343258023262024, -0.4425363838672638, -0.28387951850891113, 0.3434019088745117, 0.25548887252807617, -0.290056973695755, -0.1349399983882904, 0.17698532342910767, 0.2424837350845337, -0.26569151878356934, -0.07729322463274002, -0.2843949794769287, 0.2597663998603821, -0.3065814971923828, 0.07304498553276062, -0.3176287114620209, -0.014605358242988586, 0.03160008788108826, 0.08861012756824493, -0.2566400468349457, -0.017641961574554443, -0.2150326371192932, 0.29638391733169556, 0.006171777844429016, 0.10566598922014236, 0.06638923287391663, 0.016994399949908257, -0.052317775785923004, -0.4044029414653778, -0.03405619412660599, -0.28515082597732544, -0.04727154225111008, 0.2069106251001358, -0.32413819432258606, 0.4127490818500519, 0.5296900272369385, -0.015982232987880707, 0.11722580343484879, 0.04126472771167755, -0.0809832438826561, -0.021119514480233192, 0.15056973695755005, -0.1537802666425705, 0.21459485590457916, 0.1504525989294052, -0.09433810412883759, -0.0771884024143219, -0.3264717161655426, -0.1722002625465393, 0.4279322326183319, 0.06872643530368805, 0.45128774642944336, 0.006875144317746162, -0.3435265123844147, -0.2708040773868561, -0.017402619123458862, 0.01948457956314087, -0.20785926282405853, 0.2200280725955963, 0.036758288741111755, 0.10261426866054535, -0.013148704543709755, -0.0386599637567997, -0.3887903094291687, 0.5161963105201721, 0.30528539419174194, -0.40520763397216797, -0.23700734972953796, -0.27563154697418213, -0.6192655563354492, 0.10229935497045517, 0.08523008227348328, -0.1562977284193039, 0.4201320707798004, 0.22998271882534027, 0.43417274951934814, 0.11455727368593216, -0.123542919754982, 0.12116310745477676, -0.10240087658166885, 0.45599114894866943, -0.07287318259477615, 0.031668439507484436, -0.01577860116958618, 0.178816020488739, -0.18815262615680695, -0.49311956763267517, 0.4214513897895813, 0.21053922176361084, -0.08320529013872147, -0.1440431773662567, 0.11353109776973724, -0.3183136284351349, 0.4916071891784668, 0.44174906611442566, 0.08543544262647629, 0.0012171193957328796, 0.30909493565559387, 0.03436090052127838, 0.28617069125175476, -0.04965052753686905, 0.032521218061447144, 0.2648925185203552, -0.14445267617702484, -0.006360089406371117, -0.09984923899173737, 0.3538447320461273, -0.24459412693977356, 0.0030525412876158953, -0.23621729016304016, -0.19510015845298767, -0.07650663703680038, 0.03176818788051605, -0.22949162125587463, 0.21267758309841156, 0.3267271816730499, -0.0665908232331276, 0.24039529263973236, 0.2829751670360565, -0.24318279325962067, -0.10564965009689331, 0.23058153688907623, 0.04047344997525215, -0.14722438156604767, 0.004577844403684139, 0.15739816427230835, 0.024926289916038513, 0.15474265813827515, -0.36738234758377075, -0.13488101959228516, 0.2557357847690582, -0.10958028584718704, -0.12404933571815491, 0.36038148403167725, -0.22748175263404846, 0.13320282101631165, -0.130619615316391, 0.2775726318359375, -0.10017179697751999, -0.0750301256775856, -0.4015405774116516, -0.22522123157978058 ]
https://github.com/huggingface/datasets/issues/2099
load_from_disk takes a long time to load local dataset
Do you know what step is taking forever in the code ? What happens if you interrupt the execution of the dataset loading ?
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
24
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) Do you know what step is taking forever in the code ? What happens if you interrupt the execution of the dataset loading ?
[ -0.35770919919013977, -0.19114558398723602, -0.05428903549909592, 0.2522050738334656, 0.3178030848503113, 0.0741007998585701, 0.4124630391597748, 0.2019444704055786, 0.693324625492096, 0.03210354596376419, 0.19329187273979187, 0.49876099824905396, 0.11994997411966324, -0.08543780446052551, 0.07826448231935501, 0.147790789604187, 0.33981770277023315, 0.23835566639900208, 0.4402104914188385, -0.13399526476860046, -0.30007174611091614, -0.015376245602965355, -0.14273598790168762, 0.04220237210392952, -0.19942377507686615, -0.15087537467479706, -0.05226391181349754, 0.05029060319066048, -0.1458291858434677, -0.29063209891319275, 0.019001739099621773, -0.01846354454755783, 0.27396395802497864, 0.2816306948661804, -0.00012624787632375956, -0.2672603130340576, 0.06965114176273346, 0.1940072625875473, -0.23568974435329437, 0.3061158359050751, 0.3798670768737793, -0.4438556432723999, 0.20779240131378174, -0.34785196185112, 0.149097740650177, -0.2778455913066864, -0.25737935304641724, -0.325124591588974, -0.037322551012039185, -0.1680576652288437, 0.04543708264827728, 0.4464397430419922, -0.30128011107444763, 0.0890892818570137, -0.17447632551193237, 0.3106313943862915, -0.12210548669099808, 0.03392815217375755, 0.5823897123336792, -0.058396875858306885, -0.045389823615550995, -0.07516945898532867, -0.1739269345998764, -0.13054689764976501, 0.4071653187274933, 0.05623813718557358, 0.27878275513648987, 0.09986524283885956, 0.08400341868400574, 0.12612855434417725, 0.6219445466995239, -0.020381681621074677, 0.05003718286752701, -0.21612799167633057, -0.07903704047203064, -0.3577185273170471, 0.40005558729171753, 0.003064899705350399, -0.323959082365036, 0.18735845386981964, -0.08978240936994553, -0.09547953307628632, -0.0011596307158470154, 0.22606663405895233, -0.18639560043811798, -0.14115320146083832, 0.025637950748205185, 0.13442762196063995, 0.2987033426761627, -0.11706912517547607, 0.0555918924510479, -0.05631250888109207, 0.1497805267572403, 0.44450023770332336, -0.41723209619522095, -0.19118957221508026, 0.004220135509967804, 0.12442204356193542, -0.17659616470336914, 0.10368207097053528, 0.14326700568199158, 0.2146815061569214, -0.1279764324426651, -0.015473201870918274, 0.2563351094722748, 0.37617427110671997, -0.11284881085157394, 0.09652012586593628, 0.10396614670753479, -0.32123708724975586, -0.039591025561094284, -0.03540976345539093, -0.2497454434633255, -0.018990840762853622, 0.481478750705719, -0.4471084177494049, -0.20014962553977966, -0.13231219351291656, -0.05594399571418762, 0.2049458920955658, 0.4125044345855713, -0.023575978353619576, 0.2181766927242279, 0.2371750771999359, 0.08638429641723633, 0.4874059557914734, -0.09572800993919373, -0.033378057181835175, -0.2088414430618286, -0.14727386832237244, -0.06814216822385788, -0.29108500480651855, -0.185514897108078, 0.1931465119123459, 0.0448806993663311, 0.2586332857608795, -0.15288367867469788, 0.20157009363174438, -0.2130119949579239, 0.06378129869699478, -0.13228707015514374, -0.15582282841205597, 0.25413382053375244, 0.15926259756088257, -0.13267657160758972, 0.20268619060516357, 0.13484321534633636, -0.3092465400695801, -0.40581655502319336, 0.40177860856056213, -0.11365852504968643, -0.35450974106788635, -0.43847858905792236, 0.013739734888076782, -0.2659834325313568, -0.0327591598033905, -0.3687291145324707, -0.09857702255249023, 0.09292597323656082, 0.04337901249527931, -0.04096459597349167, -0.1871860921382904, -0.0954582691192627, -0.04694320634007454, 0.005503062158823013, 0.19394871592521667, -0.44629186391830444, 0.21342161297798157, -0.22795729339122772, 0.224195659160614, 0.2977638840675354, 0.6412919759750366, -0.2757302224636078, 0.3365722894668579, -0.26376771926879883, 0.2700731158256531, 0.4910583198070526, -0.04065928980708122, -0.34312984347343445, 0.7155479788780212, -0.1504548341035843, -0.1908351182937622, 0.021460816264152527, 0.5547381043434143, 0.2817489206790924, -0.07814061641693115, 0.09288999438285828, 0.6829149127006531, 0.0984281450510025, 0.1808471977710724, -0.3708578944206238, -0.05091051757335663, 0.07244373857975006, 0.48677128553390503, -0.4286133646965027, 0.18167582154273987, 0.152992382645607, -0.016682710498571396, 0.19582560658454895, 0.0571998693048954, -0.07413125783205032, 0.25891679525375366, 0.23102019727230072, 0.022633183747529984, 0.03710110858082771, 0.2178668975830078, -0.2101079523563385, 0.12584680318832397, 0.5279914140701294, -0.22420117259025574, -0.008203871548175812, -0.1891956776380539, -0.31300005316734314, 0.3344791531562805, -0.13242501020431519, 0.6150861978530884, -0.18873456120491028, 0.011144965887069702, 0.053063664585351944, -0.157978817820549, -0.20069581270217896, -0.02706802822649479, -0.2793724238872528, -0.09781904518604279, -0.12106405198574066, 0.006896913051605225, 0.14565689861774445, -0.03321534022688866, -0.40862423181533813, -0.028824247419834137, -0.011871010065078735, 0.006937876343727112, -0.19495323300361633, 0.3073681592941284, 0.1759621649980545, 0.04970851540565491, 0.0049633607268333435, 0.14394822716712952, 0.08917699754238129, 0.013556692749261856, 0.31732019782066345, -0.038947414606809616, 0.23697631061077118, -0.2791324853897095, -0.08358599990606308, 0.42497169971466064, -0.22614113986492157, 0.23904955387115479, -0.2577943205833435, -0.13333699107170105, 0.38749584555625916, 0.09807641804218292, 0.13150160014629364, 0.042108483612537384, 0.24057824909687042, 0.3197239637374878, 0.2842450737953186, 0.2978322505950928, -0.2933250665664673, 0.23341518640518188, 0.2815609872341156, -0.3991180956363678, -0.13067537546157837, 0.1706734299659729, 0.08382444083690643, -0.26512810587882996, -0.03762815147638321, -0.10817359387874603, 0.2923419773578644, 0.1296146810054779, 0.04442121833562851, -0.30269500613212585, -0.051169466227293015, -0.1725466251373291, 0.13345125317573547, -0.028568260371685028, -0.06550280749797821, 0.08216497302055359, -0.07907989621162415, -0.1506350040435791, -0.33584198355674744, 0.0008954256772994995, 0.11015651375055313, 0.40407082438468933, -0.30228957533836365, 0.20848074555397034, -0.10157518833875656, 0.06678087264299393, -0.011514111422002316, -0.21695536375045776, 0.13700701296329498, -0.17464017868041992, -0.24198617041110992, 0.2149677872657776, -0.009561380371451378, -0.13590075075626373, -0.0398203581571579, 0.4075908660888672, 0.1740257740020752, -0.4136069118976593, -0.3883337080478668, -0.2927638590335846, -0.15159448981285095, -0.14576898515224457, 0.49023401737213135, 0.11442245543003082, 0.21297010779380798, -0.020611785352230072, -0.14466705918312073, -0.21131187677383423, -0.1823827028274536, -0.11958833038806915, 0.04845161736011505, 0.17046093940734863, -0.1940096616744995, 0.33330655097961426, -0.5447806119918823, -0.039355237036943436, 0.21536976099014282, -0.2854782044887543, -0.2662689685821533, 0.3533630073070526, -0.1288694143295288, -0.3315470814704895, 0.008426647633314133, 0.08622036874294281, -0.13683077692985535, -0.20574244856834412, 0.2223116010427475, -0.0022188834846019745, 0.11047711223363876, -0.28180789947509766, 0.09971466660499573, 0.05128087103366852, 0.44671499729156494, -0.2579171359539032, -0.17711134254932404, -0.2561304271221161, 0.600278913974762, 0.01681249774992466, -0.24798543751239777, -0.07195527106523514, 0.10865141451358795, -0.11674696207046509, -0.045905083417892456, -0.5427122116088867, 0.2715320587158203, -0.46487921476364136, 0.4532855451107025, -0.26373744010925293, 0.039822518825531006, 0.09439926594495773, -0.2558395266532898, 0.035797737538814545, 0.23439732193946838, -0.10717731714248657, 0.16613465547561646, 0.07421599328517914, 0.10167502611875534, 0.054877057671546936, 0.6813260912895203, -0.2222062647342682, 0.3173040747642517, -0.22168198227882385, -0.14205196499824524, 0.321346253156662, 0.014683217741549015, 0.2703050971031189, -0.3492725193500519, -0.1600704938173294, -0.2527993619441986, 0.13922859728336334, -0.36035358905792236, 0.1603134274482727, -0.0825728178024292, -0.3704119622707367, 0.025840722024440765, 0.024462517350912094, -0.02700371854007244, -0.03766348212957382, 0.2160632163286209, -0.03527627885341644, 0.0675722062587738, -0.09721900522708893, 0.19489642977714539, -0.3613539934158325, -0.23533305525779724, -0.1472592055797577, 0.024483799934387207, 0.16770190000534058, -0.23056283593177795, -0.6383587718009949, -0.0635867789387703, -0.4090243875980377, 0.1462838351726532, -0.18579243123531342, 0.4481489956378937, 0.03152422234416008, -0.2720535695552826, 0.4575542211532593, -0.012817364186048508, 0.6455432772636414, 0.3132841885089874, 0.06610554456710815, 0.17901594936847687, -0.1667538285255432, -0.6522538065910339, 0.05100661888718605, 0.2501666247844696, -0.07014862447977066, 0.35102328658103943, 0.6979830265045166, -0.024868212640285492, -0.13246199488639832, -0.08564243465662003, 0.3518335223197937, -0.23398126661777496, -0.5040014386177063, -0.159124493598938, -0.3802187740802765, -0.11852382868528366, 0.20023256540298462, 0.14211441576480865, 0.5277100205421448, 0.3856259882450104, -0.06890177726745605, -0.17927305400371552, -0.07304965704679489, 0.06714852154254913, 0.09465210139751434, 0.2961644232273102, -0.07503311336040497, 0.43281984329223633, -0.27895620465278625, 0.13897967338562012, -0.15386763215065002, 0.400052011013031, -0.11495639383792877, -0.0283026322722435, 0.3496231734752655, -0.2214350551366806, 0.09193921834230423, 0.43162447214126587, 0.22278684377670288, 0.06503327190876007, -0.11203467845916748, 0.20198699831962585, -0.23728205263614655, -0.021790675818920135, -0.17025037109851837, 0.03530522435903549, -0.04366748034954071, -0.15173456072807312, 0.2699773609638214, 0.0380762480199337, -0.01359238475561142, 0.23790711164474487, -0.07892698049545288, 0.12830910086631775, 0.6811937689781189, 0.14082272350788116, 1.1918377876281738, -0.49871349334716797, -0.008294381201267242, 0.09612400084733963, 0.14300411939620972, -0.10057023912668228, -0.15190622210502625, -0.32178670167922974, -0.3388420343399048, 0.08119098097085953, 0.14824022352695465, -0.24898837506771088, -0.12329249829053879, 0.4238465428352356, 0.1637030839920044, -0.12605121731758118, -0.24017301201820374, 0.3148702085018158, -0.3412211537361145, 0.4762750267982483, 0.008706927299499512, -0.4426177442073822, -0.4776335656642914, -0.011277668178081512, -0.015102066099643707, -0.06988613307476044, -0.037083499133586884, 0.17635227739810944, 0.018625613301992416, -0.1760469675064087, -0.0399731881916523, -0.14250174164772034, 0.1810692697763443, 0.15281391143798828, 0.1570994257926941, -0.23413564264774323, -0.061759766191244125, 0.4883336126804352, 0.408674418926239, -0.008738521486520767, -0.0027238260954618454, 0.2221081256866455, 0.07053980976343155, 0.12893365323543549, 0.10286629945039749, -0.25000184774398804, 0.0571477897465229, -0.12752071022987366, 0.04293181747198105, -0.10806617885828018, -0.15557357668876648, -0.49906015396118164, -0.11313998699188232, 0.1605970412492752, 0.3514450788497925, -0.12129544466733932, -0.22764021158218384, -0.23955735564231873, 0.2034030556678772, -0.04677208140492439, 0.018431799486279488, 0.31791430711746216, 0.17374350130558014, 0.27574634552001953, -0.021259333938360214, -0.26733219623565674, 0.016261262819170952, 0.3020545542240143, 0.017083898186683655, -0.30223751068115234, 0.3309481143951416, 0.08656045794487, -0.2429787516593933, -0.20072194933891296, 0.3777850866317749, 0.3468036353588104, -0.4271833300590515, 0.11520697921514511, -0.02153893932700157, 0.04295729100704193, 0.07890019565820694, 0.06875752657651901, 0.1683829426765442, -0.013996079564094543, -0.12388384342193604, -0.23720817267894745, -0.5546422600746155, -0.050681859254837036, 0.18724128603935242, 0.14709633588790894, 0.2197025716304779, -0.4283143877983093, -0.2838519215583801, 0.09444929659366608, -0.14462797343730927, 0.07142478972673416, -0.11753947287797928, 0.1290338933467865, 0.0972546935081482, -0.06040939688682556, 0.07079765945672989, -0.1616993397474289, 0.057355381548404694, -0.10874128341674805, 0.027835695073008537, -0.09041878581047058, 0.07738187909126282, 0.21503782272338867, -0.03560837730765343, -0.2600270211696625, -0.18348634243011475, -0.4841841459274292, -0.17619609832763672, -0.3114583492279053, -0.13650181889533997, 0.01777670532464981, -0.048217520117759705, -0.40427166223526, 0.3332400918006897, 0.17706948518753052, 0.01367911696434021, 0.37672218680381775, -0.03587131202220917, 0.4288918375968933, -0.0598750077188015, 0.123934306204319, 0.2064661830663681, -0.1862604022026062, -0.2938399016857147, 0.18138812482357025, 0.34107279777526855, -0.1296021044254303, 0.32391080260276794, -0.244926318526268, 0.06583960354328156, 0.22004221379756927, -0.004792382009327412, 0.1478661149740219, -0.12275132536888123, -0.2767174243927002, 0.2896309792995453, 0.04810971021652222, 0.017741579562425613, -0.22494521737098694, -0.06192590668797493, -0.13682842254638672, -0.2501656711101532, 0.2854051887989044, 0.3567178547382355, -0.12377911806106567, -0.1079099029302597, 0.044900789856910706, 0.5746723413467407, 0.02023284323513508, -0.47832807898521423, 0.5880821943283081, -0.07038834691047668, -0.038569528609514236, 0.22769030928611755, 0.2314765751361847, -0.02373959869146347, 0.6256366968154907, -0.24428188800811768, 0.0691806972026825, 0.3443617522716522, 0.6154093146324158, -0.3641613721847534, -0.34805792570114136, 0.3312957286834717, 0.29592418670654297, -0.21611297130584717, -0.16584303975105286, 0.17474758625030518, 0.1850941777229309, -0.22197772562503815, -0.1320074200630188, -0.22781962156295776, 0.3173687160015106, -0.271467000246048, 0.10960207879543304, -0.3770466148853302, 0.008414439857006073, 0.015545621514320374, 0.19574682414531708, -0.2598245143890381, 0.012041166424751282, -0.28393760323524475, 0.2939404249191284, 0.045081060379743576, 0.07613667100667953, 0.07309943437576294, 0.006817996501922607, -0.048345841467380524, -0.4155160188674927, -0.014570934697985649, -0.35861778259277344, -0.03203324228525162, 0.28371527791023254, -0.29353067278862, 0.3421535789966583, 0.48884516954421997, -0.0014261063188314438, 0.0711875855922699, -0.050181951373815536, -0.09790951758623123, 0.05053354799747467, 0.18780162930488586, -0.11988630890846252, 0.29702258110046387, 0.19946490228176117, -0.10265282541513443, -0.05173909291625023, -0.4618648290634155, -0.1480223387479782, 0.4318409562110901, 0.05954286828637123, 0.32712504267692566, 0.10061400383710861, -0.2961323857307434, -0.32137107849121094, 0.12290362268686295, -0.07502885162830353, -0.10753508657217026, 0.2633378207683563, 0.002523767529055476, 0.0956813171505928, -0.05168412998318672, -0.0350605845451355, -0.3884757161140442, 0.5839488506317139, 0.36170315742492676, -0.3527214825153351, -0.21703952550888062, -0.3836134076118469, -0.6794732213020325, 0.07334265112876892, 0.03946864604949951, -0.08091069012880325, 0.40490567684173584, 0.23020964860916138, 0.4591110050678253, 0.05034593120217323, -0.13198037445545197, 0.10017809271812439, -0.17489176988601685, 0.3998597264289856, -0.02957741543650627, 0.02789391577243805, 0.08285176008939743, 0.15512849390506744, -0.26684242486953735, -0.4360176622867584, 0.4621649384498596, 0.20742473006248474, -0.1047062873840332, -0.12703406810760498, 0.07791012525558472, -0.3120550513267517, 0.39032453298568726, 0.3595151901245117, 0.006171556189656258, 0.1256822794675827, 0.3428468704223633, 0.1056971624493599, 0.2859565317630768, -0.03863042965531349, 0.024041883647441864, 0.2289869487285614, -0.08966295421123505, -0.0777302235364914, -0.05375249683856964, 0.4169672429561615, -0.1711566150188446, -0.03005922958254814, -0.29942768812179565, -0.10294222086668015, -0.10976944118738174, -0.07983681559562683, -0.21384578943252563, 0.26892274618148804, 0.30827227234840393, -0.005027007311582565, 0.20785988867282867, 0.2081075757741928, -0.26288077235221863, -0.02121458761394024, 0.24401703476905823, 0.018284570425748825, -0.18102091550827026, 0.021586645394563675, 0.13004229962825775, 0.25620344281196594, 0.1501435786485672, -0.26181891560554504, -0.11831401288509369, 0.2275494933128357, -0.15474015474319458, -0.11179198324680328, 0.451145738363266, -0.24332082271575928, 0.18061435222625732, -0.16490675508975983, 0.18354089558124542, -0.08759356290102005, -0.023800984025001526, -0.45645180344581604, -0.2792279124259949 ]
https://github.com/huggingface/datasets/issues/2099
load_from_disk takes a long time to load local dataset
After a synchronous discussion, we found that the cache file sizes have an enormous effect on the loading speed: smaller cache files result in faster load times. `num_proc` controls the number of cache files that are being written and is inversely proportional to the individual file size. In other words, increase `num_proc` for smaller cache files :) Maybe this can be highlighted somewhere in the docs.
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
66
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) After a synchronous discussion, we found that the cache file sizes have an enormous effect on the loading speed: smaller cache files result in faster load times. `num_proc` controls the number of cache files that are being written and is inversely proportional to the individual file size. In other words, increase `num_proc` for smaller cache files :) Maybe this can be highlighted somewhere in the docs.
[ -0.3226237893104553, -0.16081738471984863, -0.07459073513746262, 0.24950288236141205, 0.2985537052154541, 0.03875809907913208, 0.4221416711807251, 0.28228989243507385, 0.7425699830055237, -0.01420813798904419, 0.12869879603385925, 0.5218667984008789, 0.17107915878295898, -0.060494087636470795, 0.10262897610664368, 0.11289791762828827, 0.33520928025245667, 0.24978631734848022, 0.4394029974937439, -0.10520108789205551, -0.24601374566555023, 0.0447133332490921, -0.07327210158109665, 0.002135150134563446, -0.20164555311203003, -0.07096506655216217, 0.0490918904542923, 0.06037302687764168, -0.15695804357528687, -0.31100645661354065, 0.05762273073196411, -0.030136141926050186, 0.24849927425384521, 0.1560707837343216, -0.00012407857866492122, -0.2502489686012268, 0.09768465161323547, 0.16816404461860657, -0.22154967486858368, 0.27775314450263977, 0.4692358672618866, -0.4544666111469269, 0.20954230427742004, -0.328670859336853, 0.10931991785764694, -0.2615486979484558, -0.27735260128974915, -0.23449352383613586, -0.1445314735174179, -0.13924509286880493, 0.057805027812719345, 0.4935590326786041, -0.33582478761672974, 0.039228398352861404, -0.10544737428426743, 0.2524734437465668, -0.21087707579135895, 0.0278606154024601, 0.561988353729248, -0.06428726017475128, -0.15174859762191772, -0.07232627272605896, -0.16652549803256989, -0.018640149384737015, 0.4654628038406372, 0.09135475754737854, 0.3007299304008484, 0.14813637733459473, 0.05861978605389595, 0.19848710298538208, 0.6188426613807678, 0.06471916288137436, 0.002085841028019786, -0.2517016530036926, -0.14467661082744598, -0.3261274993419647, 0.49374428391456604, -0.0850372165441513, -0.28232625126838684, 0.196888267993927, -0.09191270172595978, 0.003224250627681613, -0.0007411390542984009, 0.1887156367301941, -0.12726762890815735, -0.13712960481643677, 0.03568431735038757, 0.07392942160367966, 0.417391836643219, -0.0824337974190712, 0.0908486470580101, 0.08138876408338547, 0.11084167659282684, 0.3806838393211365, -0.4470407962799072, -0.20224761962890625, 0.047487080097198486, 0.1267511248588562, -0.15744376182556152, 0.12892186641693115, 0.2507874071598053, 0.2840549945831299, -0.16239584982395172, -0.01454971730709076, 0.19433587789535522, 0.4872797727584839, -0.08866434544324875, 0.012223283760249615, 0.11127851903438568, -0.2843339741230011, -0.052223555743694305, -0.02562502771615982, -0.2161007970571518, -0.08372293412685394, 0.45857009291648865, -0.44118642807006836, -0.28388893604278564, -0.15481609106063843, -0.026333827525377274, 0.15212851762771606, 0.514610767364502, -0.08739882707595825, 0.21077962219715118, 0.22319960594177246, 0.07785145193338394, 0.6204028129577637, -0.12894558906555176, -0.040620557963848114, -0.269887238740921, -0.19986604154109955, -0.055529236793518066, -0.3001199960708618, -0.18921969830989838, 0.20598644018173218, 0.07793064415454865, 0.22827622294425964, -0.06833406537771225, 0.16398730874061584, -0.13428328931331635, 0.08258084952831268, -0.11258916556835175, -0.14151421189308167, 0.23632046580314636, 0.2305314689874649, -0.12086915969848633, 0.17813917994499207, 0.1677364706993103, -0.23451828956604004, -0.4652574062347412, 0.33559516072273254, -0.2128039300441742, -0.4199284315109253, -0.42737069725990295, 0.007253930438309908, -0.23774918913841248, -0.06519641727209091, -0.3955855965614319, -0.09143193066120148, 0.11734902113676071, 0.005326107144355774, -0.04224357753992081, -0.20466503500938416, -0.1664455682039261, -0.11673416197299957, -0.043594494462013245, 0.12618598341941833, -0.3784983456134796, 0.20955169200897217, -0.16976527869701385, 0.24363388121128082, 0.30419015884399414, 0.7334473729133606, -0.28414738178253174, 0.22973641753196716, -0.21508288383483887, 0.305883526802063, 0.4823344051837921, -0.090548574924469, -0.3905162811279297, 0.6984350681304932, -0.03154047578573227, -0.1900237500667572, 0.12228141725063324, 0.559246838092804, 0.30140477418899536, -0.10817433148622513, 0.0844721645116806, 0.6842620968818665, 0.15197134017944336, 0.19316108524799347, -0.4408971667289734, -0.08897127211093903, 0.08636908233165741, 0.4485257863998413, -0.4481649696826935, 0.21063701808452606, 0.14923956990242004, -0.05319657921791077, 0.13880756497383118, 0.061864059418439865, -0.08243376761674881, 0.21827054023742676, 0.1804094761610031, -0.05368587374687195, 0.08357087522745132, 0.28804880380630493, -0.2089419662952423, 0.1803562045097351, 0.35683175921440125, -0.2001403570175171, 0.17453159391880035, -0.1622900366783142, -0.28085392713546753, 0.25786808133125305, -0.06381845474243164, 0.5850845575332642, -0.16558122634887695, 0.00025975704193115234, 0.12328188121318817, -0.1895458847284317, -0.1822953075170517, 0.005673893727362156, -0.2607091963291168, -0.13385681807994843, -0.11871027946472168, -0.05387110263109207, 0.14954698085784912, -0.02768407016992569, -0.34819892048835754, -0.11394653469324112, 0.027414284646511078, 0.05044383928179741, -0.2307831346988678, 0.3136671483516693, 0.23841583728790283, 0.072830431163311, -0.054089173674583435, 0.25362780690193176, 0.11779966205358505, 0.07992559671401978, 0.38544392585754395, -0.03489197790622711, 0.15779641270637512, -0.2845805287361145, -0.11336181312799454, 0.4743831157684326, -0.19458121061325073, 0.2045002281665802, -0.2393617480993271, -0.13762570917606354, 0.41178956627845764, 0.1533878892660141, 0.15237203240394592, 0.012217037379741669, 0.22391951084136963, 0.3204173147678375, 0.3103182315826416, 0.35572752356529236, -0.23611827194690704, 0.29984983801841736, 0.273362398147583, -0.3111574351787567, -0.16375133395195007, 0.19043156504631042, 0.0677720159292221, -0.38967931270599365, -0.04657738655805588, -0.07187127321958542, 0.3178163170814514, 0.11086266487836838, 0.09678904712200165, -0.3655158579349518, -0.12630122900009155, -0.2689043879508972, 0.1035788431763649, -0.09137266874313354, -0.08132760971784592, 0.12684953212738037, -0.08388368040323257, -0.14076977968215942, -0.3437017798423767, 0.0768221765756607, 0.058392591774463654, 0.3713027238845825, -0.3226999342441559, 0.14422985911369324, -0.11776476353406906, 0.10126488655805588, 0.08545878529548645, -0.25845539569854736, 0.09924159944057465, -0.19903388619422913, -0.1569405198097229, 0.23826199769973755, -0.05954413861036301, -0.2230936884880066, 0.015561312437057495, 0.38061362504959106, 0.16209501028060913, -0.3483738899230957, -0.4424186646938324, -0.2981952130794525, -0.1366097331047058, -0.1440678834915161, 0.40893468260765076, 0.18002085387706757, 0.12408865988254547, -0.051470376551151276, -0.17548973858356476, -0.15410421788692474, -0.1417020857334137, -0.13396896421909332, 0.09719163179397583, 0.16347983479499817, -0.20721915364265442, 0.29068368673324585, -0.5274928212165833, -0.04801824688911438, 0.24452194571495056, -0.3920343816280365, -0.2549414336681366, 0.3617931008338928, -0.14786411821842194, -0.3017108738422394, -0.06069799140095711, 0.050527580082416534, -0.11360735446214676, -0.2817179262638092, 0.2005338966846466, 0.026803750544786453, 0.1629439890384674, -0.16707217693328857, 0.08406855911016464, 0.024105891585350037, 0.4369487166404724, -0.2090645283460617, -0.20050865411758423, -0.33664411306381226, 0.665577232837677, -0.06747318804264069, -0.2944001853466034, -0.11067090928554535, 0.1626201570034027, -0.09993872046470642, 0.01768018864095211, -0.485206663608551, 0.17546913027763367, -0.3990997076034546, 0.4361281394958496, -0.18724942207336426, 0.023198144510388374, 0.0902208685874939, -0.2943098247051239, -0.010011909529566765, 0.19437971711158752, -0.07355822622776031, 0.21525536477565765, 0.14026807248592377, 0.07607676833868027, 0.0566534548997879, 0.5815749764442444, -0.2033926099538803, 0.2937358021736145, -0.19286714494228363, -0.14415574073791504, 0.37971121072769165, 0.0508839413523674, 0.2769879102706909, -0.3881300389766693, -0.03853170573711395, -0.23657403886318207, 0.07519137114286423, -0.34331923723220825, 0.1972089409828186, -0.0419464111328125, -0.3988676965236664, 0.0004405491054058075, 0.011365305632352829, 0.029694542288780212, -0.025854751467704773, 0.27681270241737366, 0.0031790658831596375, 0.05711550638079643, -0.15805740654468536, 0.1955287754535675, -0.36896124482154846, -0.22074690461158752, -0.03472117334604263, 0.00546051561832428, 0.16753719747066498, -0.2262943536043167, -0.5818344354629517, -0.04500427469611168, -0.4573364853858948, 0.11027242988348007, -0.15113334357738495, 0.43171176314353943, 0.032687749713659286, -0.3267958164215088, 0.44979000091552734, 0.016536202281713486, 0.5992971062660217, 0.2426706850528717, 0.06538178026676178, 0.169106125831604, -0.19394367933273315, -0.6289975643157959, 0.0009362436830997467, 0.2882152497768402, -0.05580100789666176, 0.3640816807746887, 0.6817572712898254, -0.02072852849960327, -0.14278997480869293, -0.1771026998758316, 0.29645442962646484, -0.1825655996799469, -0.47645726799964905, -0.15646333992481232, -0.3197118639945984, -0.029883787035942078, 0.13619154691696167, 0.12239914387464523, 0.473042756319046, 0.39702922105789185, -0.05103084444999695, -0.13971222937107086, -0.07949075847864151, 0.056918349117040634, 0.1025458574295044, 0.3265590965747833, -0.08313684910535812, 0.40170690417289734, -0.2665259838104248, 0.17240765690803528, -0.14368221163749695, 0.3578256666660309, -0.1594269871711731, 0.03290322795510292, 0.3169459104537964, -0.1690719723701477, -0.03789333254098892, 0.40425050258636475, 0.21794496476650238, 0.023043416440486908, -0.09226883947849274, 0.17553144693374634, -0.12898601591587067, -0.08146674931049347, -0.2395368218421936, -0.08942929655313492, 0.0621006041765213, -0.18281812965869904, 0.3073565661907196, 0.03379601612687111, 0.02292551100254059, 0.20294028520584106, -0.1777442842721939, 0.18034404516220093, 0.6944708228111267, 0.2402532696723938, 1.1032588481903076, -0.5289761424064636, -0.04971756413578987, 0.08036835491657257, 0.15873929858207703, -0.06739363074302673, -0.21954108774662018, -0.33319222927093506, -0.34319162368774414, 0.05123601108789444, 0.1407545655965805, -0.2378755658864975, -0.09885392338037491, 0.39704960584640503, 0.1244295984506607, -0.13595262169837952, -0.17075473070144653, 0.2494422346353531, -0.36184564232826233, 0.4492149353027344, 0.008147357031702995, -0.4845145642757416, -0.5036978125572205, -0.018047571182250977, -0.022631816565990448, -0.0701761245727539, 0.05730697512626648, 0.1429816484451294, -0.013758048415184021, -0.1082959920167923, -0.04672493040561676, -0.19438287615776062, 0.14633743464946747, 0.1657031625509262, 0.23849377036094666, -0.24132297933101654, -0.15733642876148224, 0.4588548541069031, 0.4183008670806885, -0.12785078585147858, -0.0574067160487175, 0.20508348941802979, 0.09407604485750198, 0.15660659968852997, 0.14138592779636383, -0.3012238144874573, 0.10084960609674454, -0.16781577467918396, 0.04786466807126999, -0.1583499014377594, -0.18085286021232605, -0.572648823261261, -0.029307931661605835, 0.12758800387382507, 0.25929391384124756, -0.08126834034919739, -0.21702751517295837, -0.2679764926433563, 0.16145256161689758, -0.056031957268714905, 0.03011993132531643, 0.3356841206550598, 0.19790735840797424, 0.28787297010421753, -0.060054149478673935, -0.27253979444503784, 0.0294414684176445, 0.33199694752693176, 0.0695776492357254, -0.259041965007782, 0.15963318943977356, 0.020318876951932907, -0.245875746011734, -0.1667046844959259, 0.26854994893074036, 0.25663191080093384, -0.38908520340919495, 0.13515318930149078, -0.00545871164649725, -0.07113870233297348, 0.1105739027261734, 0.09179987758398056, 0.21136341989040375, 0.08339481055736542, -0.153424933552742, -0.20422711968421936, -0.5619239807128906, -0.0693938136100769, 0.1208488792181015, 0.11973574757575989, 0.20277410745620728, -0.5310317873954773, -0.231430321931839, 0.10634464770555496, -0.14865940809249878, 0.022377820685505867, -0.0514778271317482, 0.09781771153211594, 0.025088941678404808, -0.09557811170816422, 0.0847095400094986, -0.1104150116443634, 0.0245975274592638, -0.12905976176261902, -0.0582064688205719, -0.09860119968652725, 0.06619098782539368, 0.2022106647491455, -0.02617231011390686, -0.3134864270687103, -0.2149476706981659, -0.4446403980255127, -0.22297903895378113, -0.4078946113586426, -0.14215005934238434, 0.08219990879297256, -0.11038379371166229, -0.30815282464027405, 0.35774073004722595, 0.17710112035274506, 0.03944467008113861, 0.43269187211990356, -0.03321066498756409, 0.4170439839363098, -0.05104077234864235, 0.1291964054107666, 0.08427970856428146, -0.1912929266691208, -0.23470564186573029, 0.17771878838539124, 0.28689074516296387, -0.14417007565498352, 0.3072481155395508, -0.15402022004127502, 0.04070769622921944, 0.2540168762207031, -0.051883384585380554, 0.12734290957450867, -0.07524356991052628, -0.2777114510536194, 0.18848803639411926, 0.058501116931438446, 0.03167015686631203, -0.2745828628540039, -0.037640128284692764, -0.10892143845558167, -0.22376742959022522, 0.3037155568599701, 0.589148223400116, -0.2170901894569397, 0.030528128147125244, 0.02201104909181595, 0.5801917910575867, -0.07366696745157242, -0.45400258898735046, 0.5093346238136292, -0.027350248768925667, -0.019355926662683487, 0.205633744597435, 0.1050570011138916, 0.015576913952827454, 0.5493292212486267, -0.1837940216064453, 0.07237842679023743, 0.38120248913764954, 0.6312505006790161, -0.4592191278934479, -0.26528018712997437, 0.32736366987228394, 0.3456686735153198, -0.2631084620952606, -0.1615937352180481, 0.21697759628295898, 0.2208642065525055, -0.19872768223285675, -0.07727164775133133, -0.25287994742393494, 0.25443923473358154, -0.24743780493736267, 0.013734523206949234, -0.3680051267147064, -0.004722326993942261, -0.003245241940021515, 0.2030932605266571, -0.2940655052661896, 0.059592075645923615, -0.2064138948917389, 0.35882264375686646, 0.022591695189476013, 0.07798647880554199, 0.08460042625665665, 0.0032435357570648193, 0.008520662784576416, -0.35174718499183655, -0.02092386968433857, -0.3850734829902649, -0.044469304382801056, 0.316378653049469, -0.2234606295824051, 0.3441751003265381, 0.47061023116111755, 0.019763806834816933, 0.004230441991239786, -0.0007331222295761108, -0.04439404606819153, 0.04510124772787094, 0.1677299439907074, -0.10063202679157257, 0.21306125819683075, 0.13230349123477936, -0.10801971703767776, -0.07202086597681046, -0.4006668031215668, -0.2658492624759674, 0.4388968050479889, 0.06987982988357544, 0.32875820994377136, 0.14105510711669922, -0.30154287815093994, -0.226405531167984, 0.11611701548099518, -0.04015350714325905, -0.12964144349098206, 0.20200058817863464, 0.030520174652338028, 0.13413164019584656, -0.018448222428560257, -0.019769292324781418, -0.3499532639980316, 0.6466867923736572, 0.3268619477748871, -0.37646862864494324, -0.1538328379392624, -0.34298986196517944, -0.6594371795654297, 0.09010326862335205, 0.13784027099609375, 0.010218923911452293, 0.43353211879730225, 0.2976463735103607, 0.41470181941986084, 0.056511588394641876, -0.09129396080970764, 0.06807345896959305, -0.08045700937509537, 0.33079490065574646, -0.04416750371456146, 0.0997028797864914, 0.06763477623462677, 0.15457752346992493, -0.21727247536182404, -0.4932132065296173, 0.430134654045105, 0.2421678900718689, -0.08559541404247284, -0.16171841323375702, 0.0767548531293869, -0.2224019169807434, 0.5364187955856323, 0.3434116244316101, 0.045685745775699615, 0.04469993710517883, 0.3310735821723938, 0.05131454020738602, 0.18515704572200775, -0.04918196424841881, 0.06881237775087357, 0.16044512391090393, -0.11989635229110718, -0.07201196253299713, -0.1018095538020134, 0.35153210163116455, -0.17718496918678284, 0.07385991513729095, -0.3217799663543701, -0.13483308255672455, -0.10106263309717178, -0.05381123721599579, -0.2531951367855072, 0.22465786337852478, 0.2578517198562622, -0.007413312792778015, 0.25337040424346924, 0.16135703027248383, -0.2900329828262329, -0.001464150846004486, 0.16364580392837524, -0.015229949727654457, -0.13339993357658386, -0.0005007060244679451, 0.1547703742980957, 0.2593904733657837, 0.21195650100708008, -0.31608107686042786, -0.19880250096321106, 0.17412321269512177, -0.12797144055366516, -0.1273600310087204, 0.43631473183631897, -0.23842786252498627, 0.2239917665719986, -0.17760533094406128, 0.17252640426158905, -0.005529973655939102, -0.06101793795824051, -0.5113269686698914, -0.29128968715667725 ]
https://github.com/huggingface/datasets/issues/2096
CoNLL 2003 dataset not including German
Hello. I've been looking for information about German Conll2003 and found your question. Official site (https://www.clips.uantwerpen.be/conll2003/ner/) mentions that organizers provide only annotation. German texts (ECI Multilingual Text Corpus) are not freely available and can be ordered from the Linguistic Data Consortium. But maybe something has changed since 2003.
Hello, thanks for all the work on developing and maintaining this amazing platform, which I am enjoying working with! I was wondering if there is a reason why the German CoNLL 2003 dataset is not included in the [repository](https://github.com/huggingface/datasets/tree/master/datasets/conll2003), since a copy of it could be found in some places on the internet such as GitHub? I could help adding the German data to the hub, unless there are some copyright issues that I am unaware of... This is considering that many work use the union of CoNLL 2002 and 2003 datasets for comparing cross-lingual NER transfer performance in `en`, `de`, `es`, and `nl`. E.g., [XLM-R](https://www.aclweb.org/anthology/2020.acl-main.747.pdf). ## Adding a Dataset - **Name:** CoNLL 2003 German - **Paper:** https://www.aclweb.org/anthology/W03-0419/ - **Data:** https://github.com/huggingface/datasets/tree/master/datasets/conll2003
48
CoNLL 2003 dataset not including German Hello, thanks for all the work on developing and maintaining this amazing platform, which I am enjoying working with! I was wondering if there is a reason why the German CoNLL 2003 dataset is not included in the [repository](https://github.com/huggingface/datasets/tree/master/datasets/conll2003), since a copy of it could be found in some places on the internet such as GitHub? I could help adding the German data to the hub, unless there are some copyright issues that I am unaware of... This is considering that many work use the union of CoNLL 2002 and 2003 datasets for comparing cross-lingual NER transfer performance in `en`, `de`, `es`, and `nl`. E.g., [XLM-R](https://www.aclweb.org/anthology/2020.acl-main.747.pdf). ## Adding a Dataset - **Name:** CoNLL 2003 German - **Paper:** https://www.aclweb.org/anthology/W03-0419/ - **Data:** https://github.com/huggingface/datasets/tree/master/datasets/conll2003 Hello. I've been looking for information about German Conll2003 and found your question. Official site (https://www.clips.uantwerpen.be/conll2003/ner/) mentions that organizers provide only annotation. German texts (ECI Multilingual Text Corpus) are not freely available and can be ordered from the Linguistic Data Consortium. But maybe something has changed since 2003.
[ 0.12964405119419098, -0.20954936742782593, 0.017512358725070953, 0.2725329101085663, -0.1983647346496582, 0.15637582540512085, 0.14306305348873138, -0.11184926331043243, -0.6617124676704407, 0.24200144410133362, -0.11225396394729614, 0.04941638931632042, 0.1308351755142212, -0.032975997775793076, -0.12547366321086884, 0.17438088357448578, 0.22903433442115784, 0.0858285054564476, 0.46448516845703125, -0.3586973547935486, -0.03001110628247261, 0.30306628346443176, -0.36213457584381104, -0.3399081826210022, -0.465501606464386, 0.40328097343444824, -0.2699660658836365, 0.05602504685521126, -0.33364999294281006, -0.24391308426856995, 0.38212713599205017, 0.02134181372821331, 0.20837709307670593, 0.17645925283432007, -0.00012335897190496325, -0.1632727086544037, 0.16455024480819702, -0.22007489204406738, -0.3654651939868927, -0.13184379041194916, -0.25642967224121094, -0.10503676533699036, -0.26192140579223633, -0.04885115846991539, -0.04654282331466675, 0.5371984839439392, -0.05633267015218735, 0.31404656171798706, -0.20578531920909882, 0.19240877032279968, 0.06579052656888962, 0.3753325939178467, 0.18136659264564514, -0.11635661125183105, 0.28053760528564453, 0.267316997051239, -0.29596835374832153, 0.519494891166687, 0.39511892199516296, 0.3228391706943512, -0.02479860931634903, 0.16465260088443756, 0.212973952293396, -0.14601069688796997, -0.0017465874552726746, 0.04830070585012436, 0.05784524977207184, -0.3141869604587555, -0.10707204788923264, 0.11955659091472626, 0.42620939016342163, 0.024513807147741318, -0.40662017464637756, -0.24018928408622742, 0.18045145273208618, -0.08956709504127502, -0.08172861486673355, 0.10461443662643433, -0.20274320244789124, 0.2823864221572876, 0.023722318932414055, -0.7034637331962585, -0.27156364917755127, 0.2279515564441681, -0.3356022238731384, 0.8708798885345459, -0.056589432060718536, -0.0843227431178093, 0.09471355378627777, 0.33733296394348145, 0.31286829710006714, -0.10519617795944214, -0.0009931102395057678, -0.0924922451376915, -0.20271725952625275, -0.25329917669296265, 0.11337269842624664, 0.15792317688465118, 0.01921055093407631, 0.14730089902877808, -0.17214937508106232, -0.20966020226478577, -0.18808886408805847, 0.044345930218696594, 0.21864193677902222, -0.0003272462636232376, 0.09436435252428055, 0.12672123312950134, 0.235983207821846, -0.11813245713710785, 0.4700809121131897, 0.02557055652141571, -0.3787817656993866, 0.3454529047012329, -0.4410499930381775, 0.058701641857624054, -0.0975106954574585, -0.4426851272583008, -0.15551908314228058, -0.07967142015695572, -0.04237755760550499, -0.1845967173576355, -0.033766236156225204, 0.15496526658535004, -0.029072612524032593, 0.18771731853485107, -0.31580930948257446, 0.19816860556602478, -0.04193203151226044, -0.398507684469223, -0.0768478587269783, 0.06359557807445526, -0.24698728322982788, -0.30402714014053345, 0.14502987265586853, -0.4080318212509155, 0.16787439584732056, -0.1444757878780365, 0.26138466596603394, 0.2330503761768341, 0.030040418729186058, -0.03976980224251747, 0.34621936082839966, 0.024482402950525284, -0.012400465086102486, 0.2289360612630844, -0.10437731444835663, -0.18350474536418915, -0.3322361409664154, -0.06973642855882645, -0.3001788854598999, -0.30871641635894775, -0.5355536937713623, -0.03419219329953194, -0.37390226125717163, -0.4184364676475525, 0.2965123653411865, 0.10150814801454544, -0.23509672284126282, -0.3039037883281708, 0.00048114359378814697, 0.24000893533229828, -0.4188292324542999, -0.13071532547473907, 0.2486344575881958, 0.36780858039855957, -0.26957523822784424, -0.1569211781024933, -0.07704557478427887, -0.15515409409999847, 0.16673940420150757, 0.1086503267288208, -0.0944485142827034, 0.04978316277265549, -0.2894992530345917, 0.09045645594596863, 0.1364547610282898, -0.6013337969779968, -0.6033158898353577, -0.0381116159260273, 0.007184408605098724, -0.06467671692371368, -0.0888536348938942, 0.18126259744167328, 0.2172268033027649, -0.18911325931549072, 0.11285648494958878, 0.21510131657123566, 0.1195981502532959, -0.28997698426246643, 0.12093298137187958, -0.02764289453625679, -0.04529394954442978, 0.028337940573692322, 0.03722348064184189, 0.11559711396694183, 0.17778678238391876, 0.2695440649986267, 0.19772467017173767, 0.06237577646970749, 0.3486472964286804, 0.6342283487319946, 0.3517613708972931, 0.001164466142654419, -0.061097681522369385, 0.18398895859718323, -0.34679073095321655, 0.2149805724620819, -0.08331307768821716, 0.6522351503372192, 0.1607172191143036, 0.04731110483407974, -0.2024015188217163, -0.10604383796453476, -0.13012678921222687, -0.4445696473121643, 0.02994449809193611, 0.2571900486946106, 0.2241048812866211, 0.3150155544281006, 0.06114216521382332, 0.37677642703056335, 0.17333868145942688, -0.15572752058506012, -0.403852641582489, 0.3132508397102356, -0.23745985329151154, -0.15704280138015747, 0.14119675755500793, 0.48076456785202026, -0.0996873751282692, -0.03817596659064293, -0.09917294234037399, 0.009606365114450455, -0.09698183834552765, 0.12287364155054092, 0.3716238737106323, 0.12655949592590332, 0.13473106920719147, -0.05063655972480774, 0.03696264326572418, -0.4267049729824066, -0.20827138423919678, -0.04839005693793297, -0.05702933669090271, 0.021943524479866028, 0.6463997960090637, -0.07539931684732437, 0.05475033074617386, 0.31437191367149353, -0.034797169268131256, -0.037920992821455, -0.13498182594776154, -0.35987937450408936, 0.12441091239452362, 0.16348348557949066, 0.1852779984474182, 0.30269888043403625, -0.3068358898162842, -0.22685709595680237, 0.49683108925819397, 0.15943720936775208, 0.04942940175533295, 0.21136635541915894, -0.4366857409477234, 0.0501897856593132, 0.4093060791492462, 0.2961989939212799, 0.15256915986537933, 0.1883770376443863, 0.4512608051300049, -0.020041821524500847, 0.20251813530921936, 0.008972842246294022, 0.08090376853942871, 0.004310868680477142, 0.35444676876068115, 0.09375914931297302, 0.14526033401489258, 0.23918628692626953, -0.3014031648635864, -0.11352536082267761, -0.011224986985325813, 0.05817662924528122, 0.030870255082845688, -0.17220619320869446, -0.1756846308708191, -0.017184898257255554, -0.11103525757789612, -0.028853241354227066, -0.645034670829773, -0.2537453770637512, -0.006806995719671249, 0.07348056137561798, 0.17650796473026276, -0.02297849766910076, -0.21103227138519287, 0.1608124077320099, -0.4315432906150818, -0.12591320276260376, -0.1509752720594406, -0.14776240289211273, -0.36230677366256714, 0.0024570338428020477, -0.07816866040229797, -0.11893259733915329, 0.2606516182422638, -0.3797377049922943, 0.3775879740715027, -0.20044636726379395, -0.4344277083873749, 0.4549250602722168, -0.1935919225215912, -0.18161791563034058, -0.11320003867149353, -0.2578064799308777, -0.37689054012298584, 0.08293447643518448, 0.05606351047754288, 0.09113159030675888, -0.38630348443984985, 0.2336369752883911, -0.2086295187473297, -0.014102883636951447, -0.005437683314085007, -0.21581479907035828, -0.3585689961910248, -0.3128359615802765, -0.005104519426822662, -0.1707839071750641, -0.18848370015621185, 0.17967188358306885, -0.2854023873806, -0.05275806412100792, -0.2968742251396179, 0.2529706358909607, -0.23259063065052032, -0.19917845726013184, 0.6325916647911072, -0.17194637656211853, -0.32277482748031616, 0.05833907052874565, -0.12323827296495438, 0.35110658407211304, -0.19170761108398438, -0.5499590039253235, 0.04978107288479805, 0.06589552760124207, 0.07160061597824097, 0.09855924546718597, 0.07304424792528152, 0.4642780125141144, -0.07747344672679901, 0.03907555341720581, -0.22674217820167542, -0.13102832436561584, -0.13180553913116455, 0.38061222434043884, 0.4795425534248352, -0.10070424526929855, -0.24624815583229065, 0.3405493199825287, 0.19026052951812744, 0.4198189973831177, 0.09512082487344742, 0.2963829040527344, 0.00890798307955265, 0.4679335355758667, 0.09851229935884476, -0.3109426200389862, 0.11263153702020645, -0.06596581637859344, 0.21399693191051483, 0.3113861083984375, 0.25740885734558105, -0.343290776014328, -0.33376774191856384, -0.07085014879703522, -0.02156846411526203, -0.054754119366407394, -0.11125074326992035, -0.25559550523757935, 0.6011889576911926, 0.04147467389702797, -0.17012760043144226, -0.14660075306892395, -0.25666841864585876, 0.13625729084014893, -0.1058100163936615, 0.19345664978027344, -0.0445457324385643, -0.16093607246875763, 0.2133435159921646, -0.6672110557556152, 0.08546897768974304, 0.06462035328149796, 0.3651074171066284, -0.36059024930000305, 0.17759886384010315, 0.12375368177890778, 0.23765960335731506, 0.6076180338859558, -0.5476338267326355, -0.3176327347755432, -0.01924993470311165, 0.1958143264055252, -0.3387112021446228, 0.1282299906015396, -0.25702065229415894, -0.21406029164791107, 0.8937455415725708, 0.18328511714935303, -0.19912418723106384, -0.25803157687187195, 0.18474231660366058, 0.11398793011903763, -0.23411013185977936, -0.06306864321231842, -0.3885559141635895, 0.09017609804868698, -0.3312092125415802, -0.27932408452033997, 0.05057729035615921, -0.1176089271903038, 0.327078253030777, 0.06411084532737732, 0.2947314381599426, 0.27412551641464233, 0.19017036259174347, 0.07270418107509613, 0.1924843192100525, 0.3822990655899048, -0.11514706909656525, 0.3078942894935608, 0.32807180285453796, 0.07203291356563568, 0.5554357767105103, 0.10622535645961761, -0.5961087346076965, 0.47212687134742737, -0.31941208243370056, 0.5982288718223572, 0.13241593539714813, 0.32117265462875366, -0.09303436428308487, -0.002048829570412636, -0.19548432528972626, -0.3701435327529907, -0.04310063272714615, 0.29862767457962036, -0.03333981707692146, -0.44693294167518616, 0.1492006927728653, -0.009986475110054016, 0.17716681957244873, -0.05018264800310135, -0.3217763304710388, 0.2912299633026123, 0.014021512120962143, 0.003571656532585621, 0.04595692828297615, 0.9229446053504944, 0.3169058561325073, 0.16678404808044434, 0.1151544600725174, -0.17259474098682404, 0.28721562027931213, 0.09068913757801056, -0.025928564369678497, -0.06861593574285507, -0.003862212412059307, -0.20577672123908997, -0.13923311233520508, -0.3046165108680725, 0.13374899327754974, -0.191791370511055, 0.1315968781709671, 0.13330896198749542, 0.01775301806628704, 0.1491451859474182, 0.49518561363220215, -0.11086171120405197, -0.0004638470709323883, 0.42754989862442017, 0.03970279544591904, 0.20848342776298523, 0.642842173576355, -0.003063775599002838, -0.21590709686279297, -0.49021026492118835, -0.08536743372678757, -0.5295615792274475, 0.13503482937812805, 0.3188284635543823, 0.09984149783849716, 0.2702770531177521, -0.41660696268081665, 0.3475106656551361, 0.4230571687221527, 0.47715824842453003, -0.06856684386730194, -0.38078659772872925, 0.015403978526592255, 0.12641677260398865, -0.07915650308132172, 0.5932705402374268, -0.06980986148118973, 0.18858839571475983, -0.2404690384864807, -0.3560386300086975, 0.11362078785896301, -0.006794869899749756, -0.2628221809864044, -0.0038911402225494385, 0.15945971012115479, -0.2804884910583496, 0.06069087237119675, 0.15155957639217377, 0.5354613065719604, 0.013280782848596573, -0.19551265239715576, 0.04135843366384506, 0.12665173411369324, -0.04526311159133911, -0.161594957113266, -0.08034074306488037, -0.2872868776321411, -0.13963021337985992, 0.2471088469028473, 0.07833361625671387, -0.05594196170568466, 0.28835800290107727, 0.12747159600257874, -0.01735820062458515, -0.02197679504752159, -0.006944108754396439, -0.17439903318881989, -0.7036391496658325, -0.23262742161750793, 0.038153987377882004, -0.05635714530944824, -0.370169073343277, 0.0885898694396019, 0.09016282856464386, -0.1324036419391632, -0.30279773473739624, -0.09027699381113052, -0.04826173186302185, 0.061850905418395996, -0.0693311095237732, 0.2545296847820282, -0.1784982979297638, -0.010707581415772438, 0.00471360981464386, -0.13353103399276733, -0.18064424395561218, 0.08834806084632874, -0.25411027669906616, -0.027345728129148483, -0.14005900919437408, -0.039751432836055756, -0.03460381180047989, -0.16683894395828247, -0.04441621154546738, -0.20011232793331146, -0.0778716579079628, -0.008032659068703651, -0.06786525249481201, 0.16042202711105347, 0.1445482075214386, 0.21467840671539307, -0.09768567979335785, -0.03634908050298691, -0.14316385984420776, 0.0032061468809843063, -0.07664929330348969, 0.12968489527702332, 0.15791264176368713, 0.34689053893089294, -0.06932544708251953, 0.21036624908447266, 0.14666633307933807, 0.3288778066635132, 0.19783291220664978, 0.3390392065048218, 0.13539384305477142, 0.4150818884372711, 0.04772436246275902, 0.21846351027488708, -0.1171872615814209, 0.24490633606910706, -0.13059274852275848, -0.08900878578424454, 0.004324175417423248, 0.08460412919521332, 0.3753502368927002, 0.22993232309818268, 0.04241309314966202, -0.21551525592803955, -0.06702733784914017, 0.017827054485678673, 0.31913790106773376, 0.08236008137464523, -0.2447962462902069, -0.25075873732566833, 0.04184670001268387, 0.13158728182315826, 0.058863360434770584, 0.07090944051742554, 0.36750465631484985, 0.32766416668891907, 0.22250524163246155, 0.03230643644928932, 0.06921042501926422, 0.3730463981628418, 0.0866381973028183, -0.05462902411818504, 0.21897058188915253, 0.29233884811401367, 0.17483234405517578, -0.13684341311454773, -0.14104026556015015, -0.20557527244091034, 0.5721848607063293, 0.03747547045350075, -0.10666029900312424, 0.2877488136291504, 0.41277316212654114, -0.1962684690952301, 0.20370326936244965, -0.12091696262359619, 0.27769017219543457, 0.0129777193069458, 0.025366630405187607, 0.18161791563034058, 0.01570306159555912, 0.07158075273036957, -0.44404974579811096, 0.2278422713279724, -0.05104557424783707, 0.07388538122177124, 0.023219574242830276, -0.07338729500770569, 0.047948867082595825, 0.18802225589752197, 0.18891219794750214, -0.24398772418498993, -0.276978462934494, 0.12177644670009613, -0.10679619014263153, -0.10469915717840195, 0.17462873458862305, 0.08185361325740814, 0.13577011227607727, -0.20675820112228394, 0.09957193583250046, -0.19089294970035553, -0.06357057392597198, -0.10798989236354828, 0.4688700735569, 0.29944074153900146, -0.15369866788387299, 0.2846294045448303, 0.03472704440355301, 0.06603315472602844, -0.054545916616916656, -0.1589469462633133, 0.3580799996852875, 0.19895432889461517, 0.11093342304229736, 0.1559535264968872, 0.031077908352017403, 0.025530662387609482, -0.3227022588253021, 0.16133388876914978, -0.11378420889377594, -0.01763128861784935, 0.4513387382030487, -0.21548521518707275, -0.0690847784280777, -0.06650145351886749, 0.2582136392593384, -0.3698064386844635, 0.3042832911014557, 0.2895893156528473, -0.31577542424201965, -0.10066874325275421, -0.13089141249656677, -0.014113654382526875, -0.1242990791797638, 0.11873356997966766, 0.56932133436203, 0.37245267629623413, -0.03417927026748657, -0.6268967986106873, -0.4217180013656616, 0.2960367500782013, 0.08048442006111145, -0.10791024565696716, -0.030940931290388107, 0.13698549568653107, 0.1336994469165802, 0.17582544684410095, -0.16191543638706207, 0.1068570464849472, -0.4148551821708679, 0.10161898285150528, -0.34199509024620056, -0.07854317128658295, 0.12047871947288513, 0.23051132261753082, -0.2020876109600067, 0.10908783227205276, -0.002586986869573593, 0.13212835788726807, -0.12120364606380463, -0.24454458057880402, -0.05995405465364456, -0.08671736717224121, 0.1171669289469719, 0.37671616673469543, 0.1330680102109909, 0.4297754168510437, -0.12751327455043793, -0.2812690734863281, -0.008675593882799149, -0.05510071665048599, 0.21929416060447693, -0.10286920517683029, -0.2417367696762085, 0.08143847435712814, -0.39551812410354614, -0.056450869888067245, 0.12159360945224762, 0.24379189312458038, 0.25853294134140015, 0.19714418053627014, -0.40654340386390686, 0.29461410641670227, -0.0841844379901886, 0.06326234340667725, 0.2706051468849182, 0.11532697081565857, 0.05293847620487213, -0.2176547348499298, -0.056617703288793564, 0.08050534874200821, 0.23940911889076233, 0.0731898844242096, 0.10340672731399536, -0.33972811698913574, -0.11395780742168427, -0.04964975267648697, -0.09127209335565567, -0.36312949657440186, -0.025826819241046906, 0.3757503926753998, 0.3661624789237976, -0.1896604299545288, 0.4236830770969391, 0.22705784440040588, -0.14858369529247284, 0.03854202851653099, 0.514751672744751, -0.10190532356500626, -0.3674967885017395, 0.1675795316696167, 0.0309598371386528 ]
https://github.com/huggingface/datasets/issues/2092
How to disable making arrow tables in load_dataset ?
Hi ! We plan to add streaming features in the future. This should allow to load a dataset instantaneously without generating the arrow table. The trade-off is that accessing examples from a streaming dataset must be done in an iterative way, and with an additional (but hopefully minor) overhead. What do you think about this ? If you have ideas or suggestions of what you expect from such features as a user, feel free to share them, this is really valuable to us !
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
84
How to disable making arrow tables in load_dataset ? Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? Hi ! We plan to add streaming features in the future. This should allow to load a dataset instantaneously without generating the arrow table. The trade-off is that accessing examples from a streaming dataset must be done in an iterative way, and with an additional (but hopefully minor) overhead. What do you think about this ? If you have ideas or suggestions of what you expect from such features as a user, feel free to share them, this is really valuable to us !
[ -0.3108789026737213, -0.30462753772735596, -0.10252200067043304, -0.047980137169361115, 0.06876875460147858, -0.07005543261766434, 0.19108618795871735, -0.050834912806749344, 0.1361461877822876, 0.15695053339004517, 0.30370649695396423, 0.19406838715076447, -0.18489868938922882, 0.37308749556541443, 0.31755682826042175, -0.007721617817878723, 0.12019211798906326, 0.42609360814094543, -0.230573832988739, 0.046886980533599854, -0.007514964789152145, -0.3915000259876251, -0.1026722714304924, -0.01201879233121872, -0.02387579344213009, -0.1791451871395111, 0.2561788260936737, -0.2268664538860321, -0.3328371047973633, -0.2920054495334625, -0.09484274685382843, 0.3715645372867584, -0.1481715440750122, 0.16227510571479797, -0.0001207906607305631, -0.04288960248231888, 0.13746489584445953, 0.059048980474472046, -0.5849158763885498, -0.10303308069705963, -0.18410983681678772, 0.042499981820583344, 0.43694770336151123, 0.007586710155010223, 0.21012729406356812, -0.3526918590068817, -0.13963618874549866, -0.4950590133666992, 0.10051634162664413, -0.23421701788902283, 0.11558252573013306, 0.10272283107042313, -0.3094595670700073, 0.23369240760803223, 0.3298899829387665, 0.4536733627319336, -0.5429472327232361, 0.07202024757862091, 0.23248064517974854, 0.043136999011039734, -0.12105643004179001, 0.2974913716316223, -0.20077067613601685, -0.15289410948753357, 0.5350214242935181, -0.09987445175647736, -0.21070167422294617, -0.40750670433044434, -0.07281799614429474, 0.3070441484451294, 0.8722045421600342, -0.2314075529575348, -0.258822500705719, -0.300279438495636, 0.29594412446022034, -0.24925915896892548, 0.01992463693022728, 0.26727285981178284, -0.18432871997356415, 0.06387906521558762, -0.41137242317199707, -0.5367267727851868, -0.3401840329170227, -0.0841033011674881, 0.5507421493530273, -0.17500022053718567, 0.037219297140836716, -0.006078556180000305, 0.19790653884410858, 0.02249790169298649, 0.6170969605445862, -0.22644448280334473, -0.20229646563529968, 0.18203704059123993, -0.1922793835401535, -0.21221673488616943, -0.056399308145046234, 0.23622488975524902, 0.19039851427078247, 0.45103520154953003, 0.7375752925872803, -0.032986290752887726, 0.2755357027053833, -0.10327007621526718, -0.11773732304573059, 0.08252191543579102, 0.19565759599208832, -0.19146127998828888, 0.23495648801326752, 0.17401716113090515, 0.2198197841644287, 0.017999596893787384, 0.12570859491825104, -0.04695587605237961, -0.10228636860847473, -0.1341959536075592, 0.12626197934150696, -0.1515744924545288, 0.08116665482521057, -0.028539620339870453, -0.11625541001558304, -0.07504303753376007, 0.2993290424346924, 0.05559178441762924, 0.18860715627670288, 0.20442506670951843, -0.18710564076900482, 0.35087233781814575, -0.08049783855676651, -0.2571534216403961, 0.008862961083650589, -0.20003105700016022, -0.1664547473192215, 0.4750286042690277, 0.3624807894229889, -0.08760327100753784, -0.1268797516822815, 0.3686201274394989, -0.06115207076072693, 0.243793785572052, 0.3272444009780884, -0.2562045454978943, 0.09297271072864532, 0.3177509605884552, -0.08122499287128448, -0.21869808435440063, -0.11189433932304382, 0.2880063056945801, -0.08306960016489029, 0.3657185435295105, 0.005395587533712387, -0.548302412033081, 0.170889213681221, 0.09285322576761246, -0.1274678260087967, -0.024637095630168915, -0.7149598002433777, 0.46069544553756714, -0.25793588161468506, 0.04016618803143501, 0.27836236357688904, 0.15707382559776306, -0.048040132969617844, -0.11016064137220383, 0.08580730110406876, 0.3789239525794983, -0.26080521941185, -0.02324414998292923, 0.05424853786826134, -0.13580510020256042, 0.12181037664413452, -0.01060687005519867, -0.47020161151885986, 0.20001567900180817, 0.046233899891376495, -0.13319911062717438, 0.5498138666152954, 0.21945366263389587, -0.11467960476875305, 0.30901095271110535, -0.008037801831960678, 0.1739726960659027, 0.4368073344230652, 0.16380706429481506, 0.03322690725326538, -0.07410974055528641, -0.3550981879234314, 0.1997155249118805, 0.09997295588254929, -0.15824884176254272, 0.03864371404051781, -0.29262876510620117, 0.2996130585670471, -0.050401028245687485, -0.3303478956222534, 0.3204113245010376, 0.1587289571762085, -0.2219255566596985, 0.07071533799171448, -0.30531251430511475, -0.16526371240615845, -0.1405470222234726, 0.22036217153072357, 0.13974079489707947, -0.08334599435329437, 0.16561564803123474, -0.5774102210998535, 0.22318953275680542, 0.1686064749956131, -0.08162051439285278, 0.05175193399190903, -0.27868592739105225, 0.2936154007911682, 0.2566472589969635, 0.006958611309528351, 0.298552006483078, -0.022673681378364563, -0.49919453263282776, -0.05248431861400604, -0.28285619616508484, -0.4251052439212799, 0.13057364523410797, -0.4586174488067627, 0.10972554981708527, -0.33911025524139404, 0.18366795778274536, 0.39479687809944153, 0.071957066655159, -0.1009669154882431, 0.019708026200532913, -0.09543939679861069, 0.12509456276893616, -0.1820271611213684, 0.1980031430721283, 0.12730664014816284, 0.4344155192375183, 0.07195930182933807, 0.5853416323661804, 0.14169691503047943, -0.3799537122249603, 0.3378417491912842, -0.2595508396625519, 0.2171444594860077, -0.05171866714954376, -0.09173732250928879, 0.21843406558036804, -0.38351860642433167, 0.40639227628707886, 0.22794614732265472, -0.19133207201957703, -0.004031036049127579, 0.3014160394668579, -0.28298160433769226, -0.12114173173904419, 0.1992321014404297, 0.037268392741680145, 0.0940752774477005, 0.17320150136947632, -0.26975083351135254, -0.04037558287382126, -0.1568162441253662, -0.04271451383829117, -0.07626631110906601, 0.1561242789030075, -0.010928303003311157, -0.3204747140407562, 0.2867371141910553, -0.0927799642086029, 0.3964143395423889, 0.19841279089450836, 0.08209177851676941, -0.06517684459686279, 0.08171729743480682, -0.2824464738368988, 0.4200904965400696, 0.12051904946565628, 0.3258136808872223, 0.03099660947918892, -0.09696196019649506, -0.003979894332587719, -0.4386231005191803, -0.10531678795814514, -0.1223820224404335, -0.17730459570884705, -0.34135669469833374, 0.008996060118079185, -0.15406998991966248, -0.19557100534439087, 0.14674118161201477, -0.11888939887285233, -0.10218892991542816, -0.012623072601854801, 0.23945352435112, 0.183458611369133, -0.10758413374423981, -0.10364367067813873, -0.21733394265174866, 0.5270037651062012, -0.19924800097942352, -0.02517143450677395, -0.5137588977813721, -0.045212406665086746, 0.19889885187149048, 0.047259408980607986, 0.003207879140973091, 0.06616826355457306, 0.41637375950813293, 0.16827625036239624, 0.13793466985225677, -0.3983552157878876, -0.17448696494102478, 0.12065190076828003, -0.03689086437225342, -0.09634343534708023, 0.08704952150583267, 0.1624210625886917, -0.0842905044555664, -0.10471703112125397, -0.09658306837081909, -0.3372969627380371, -0.079944908618927, 0.10495206713676453, -0.33262890577316284, 0.2669522762298584, -0.06918630748987198, 0.056667834520339966, -0.0044631436467170715, -0.2767612040042877, 0.2775222063064575, 0.04859793558716774, 0.0606905035674572, 0.1481177806854248, 0.07973605394363403, 0.023363705724477768, 0.16765427589416504, 0.09617037326097488, -0.05212177336215973, -0.3047827184200287, 0.2845379114151001, -0.16728192567825317, -0.16854935884475708, 0.09236909449100494, 0.06489423662424088, 0.03495160490274429, 0.563757598400116, -0.6988598108291626, 0.3132861852645874, -0.15345454216003418, -0.01889694854617119, -0.3195335566997528, -0.18695186078548431, 0.1386367678642273, 0.14783118665218353, 0.007904497906565666, -0.11868373304605484, 0.19939106702804565, 0.0207718163728714, 0.011829623952507973, -0.04541831463575363, 0.16490048170089722, 0.4724436104297638, -0.27996566891670227, 0.7499020099639893, -0.23283657431602478, 0.2019326537847519, 0.25624072551727295, 0.0631856769323349, 0.29664891958236694, -0.26360437273979187, 0.19229112565517426, -0.28817853331565857, -0.18367800116539001, 0.013184171169996262, 0.03285232186317444, 0.045458026230335236, -0.3248319923877716, -0.3126920759677887, 0.19179938733577728, 0.12706097960472107, 0.04176018759608269, 0.08217941969633102, -0.8073272109031677, 0.10149505734443665, -0.01857452094554901, 0.07638441771268845, -0.12451295554637909, -0.234216570854187, -0.019826889038085938, -0.12750235199928284, 0.5562240481376648, -0.14635905623435974, -0.4232419431209564, -0.06458327919244766, -0.24796947836875916, 0.0382358655333519, -0.030279701575636864, 0.12762022018432617, 0.036724429577589035, -0.18588364124298096, 0.22398550808429718, 0.27869269251823425, 0.1654665619134903, -0.03365539014339447, -0.2804148197174072, -0.19695979356765747, -0.1634916365146637, -0.3167750835418701, 0.12261596322059631, 0.024201203137636185, 0.12952294945716858, -0.4652242958545685, 0.12840105593204498, -0.006417021155357361, -0.21356195211410522, 0.006853427737951279, 0.3506621718406677, -0.08715227246284485, -0.19968147575855255, -0.20587237179279327, 0.19563379883766174, -0.050898559391498566, -0.05243735760450363, -0.037870533764362335, -0.23544912040233612, -0.4645160138607025, -0.2731614410877228, -0.2341296523809433, 0.08585698157548904, 0.12698721885681152, 0.0659000426530838, 0.22963190078735352, -0.03955065459012985, 0.02031732350587845, 0.400785356760025, 0.03711802512407303, 0.1847320944070816, 0.5451728105545044, 0.2208452671766281, -0.37568262219429016, 0.10306543856859207, 0.02477462962269783, 0.3193543553352356, 0.42435550689697266, -0.1623535305261612, 0.34456056356430054, 0.02681734971702099, 0.029684770852327347, -0.2936316430568695, -0.27953487634658813, 0.018176080659031868, -0.3120170831680298, -0.12595827877521515, -0.6251107454299927, 0.48530611395835876, 0.01080125942826271, -0.11165392398834229, 0.7630065679550171, 0.07460692524909973, -0.17695561051368713, 0.31757742166519165, 0.2784118056297302, 0.9641883373260498, 0.11812467873096466, 0.15168415009975433, 0.33790531754493713, -0.11316171288490295, 0.1988106369972229, -0.24977603554725647, 0.09381914883852005, -0.02582208812236786, -0.5687530636787415, -0.15152066946029663, -0.2918738126754761, 0.30074742436408997, 0.4270748496055603, -0.04354628548026085, 0.06066862866282463, -0.26221558451652527, 0.2980581820011139, -0.07337434589862823, 0.016789041459560394, -0.25916898250579834, -0.3974756598472595, -0.4063350558280945, 0.014231506735086441, 0.1067008376121521, -0.27997761964797974, -0.08344364911317825, 0.14733454585075378, 0.25306084752082825, -0.23051348328590393, 0.06952276825904846, -0.050354450941085815, -0.3953574001789093, 0.12179736793041229, -0.2768027186393738, -0.4214162826538086, 0.19074347615242004, 0.2504664361476898, -0.2979568839073181, -0.08297988772392273, -0.1388772875070572, 0.06450477242469788, 0.44000884890556335, 0.3049493730068207, -0.4049280881881714, 0.18059028685092926, 0.06500144302845001, -0.10865787416696548, -0.13299605250358582, 0.23980712890625, -0.1366390734910965, -0.22052648663520813, 0.014377325773239136, -0.17166610062122345, 0.30948585271835327, 0.004568264354020357, 0.18126000463962555, 0.10243353247642517, 0.21576592326164246, 0.05180929973721504, 0.05704300478100777, 0.08117368072271347, 0.0695531815290451, -0.06098336726427078, 0.12303607165813446, -0.23937851190567017, -0.1617504507303238, 0.1064373105764389, 0.20695710182189941, -0.12107478082180023, 0.37549421191215515, -0.05284808948636055, -0.37892138957977295, -0.2747313976287842, 0.2893607020378113, 0.13974131643772125, -0.7035719752311707, -0.07381642609834671, 0.14894865453243256, 0.04863050580024719, 0.0033605138305574656, -0.00010053440928459167, 0.019045868888497353, 0.057889506220817566, -0.1634991466999054, 0.10716252028942108, -0.20243695378303528, 0.18517634272575378, -0.03407266363501549, 0.2404623180627823, -0.06951509416103363, -0.7264938354492188, 0.187040314078331, 0.13609866797924042, -0.18777452409267426, -0.25149276852607727, 0.4108295738697052, -0.07025174796581268, -0.0630372017621994, 0.3864993453025818, -0.13464517891407013, -0.018186910077929497, -0.030204204842448235, -0.17212975025177002, -0.17504329979419708, -0.09754109382629395, -0.054401639848947525, 0.2513287663459778, 0.00593254528939724, -0.07124654948711395, -0.29889199137687683, -0.2655923068523407, -0.33273911476135254, -0.11610028147697449, 0.23616135120391846, -0.11527232080698013, 0.01436508446931839, -0.21702571213245392, 0.46558329463005066, 0.06960400193929672, -0.4628806710243225, 0.22133953869342804, 0.07239031046628952, 0.37328052520751953, 0.10057061910629272, -0.05796797573566437, 0.2426193207502365, -0.20078691840171814, -0.03347804769873619, 0.19311001896858215, 0.11669477820396423, -0.020737096667289734, 0.08658941090106964, -0.03205835074186325, 0.26660844683647156, -0.26540952920913696, -0.06682606786489487, 0.4697325825691223, 0.10043682157993317, -0.4031161367893219, 0.30781593918800354, 0.07764837890863419, -0.12277381122112274, -0.22718727588653564, -0.098263680934906, 0.07897480577230453, -0.1092831939458847, 0.20049196481704712, 0.36732029914855957, 0.04076442867517471, -0.16345500946044922, -0.027683721855282784, -0.3696680963039398, -0.003044847398996353, 0.29322776198387146, 0.4805443584918976, -0.06047102436423302, -0.09043033421039581, -0.08803223073482513, 0.37101876735687256, -0.06255144625902176, -0.18688137829303741, 0.10751985758543015, 0.4149564206600189, 0.3388374447822571, 0.2124042510986328, -0.02178889513015747, -0.29714131355285645, -0.49560487270355225, 0.019676491618156433, -0.34219419956207275, 0.03255503624677658, 0.1744559109210968, 0.18631300330162048, 0.45587414503097534, -0.24271023273468018, -0.21879982948303223, -0.20680749416351318, 0.13992717862129211, 0.06248725578188896, -0.17745350301265717, -0.1007472574710846, -0.10634943842887878, 0.019708681851625443, -0.07569552958011627, 0.3763747811317444, 0.24802348017692566, 0.04866001382470131, 0.28590869903564453, -0.07916244864463806, 0.5971518754959106, 0.24962261319160461, 0.3290766179561615, 0.10917040705680847, -0.07604929059743881, -0.05947495996952057, 0.22144730389118195, 0.08174868673086166, 0.1819230020046234, -0.2918078601360321, 0.22255294024944305, -0.05169736221432686, 0.00934053398668766, 0.31333816051483154, -0.039424389600753784, 0.12309214472770691, 0.3916560709476471, 0.43071022629737854, 0.015574054792523384, 0.25030022859573364, -0.030043555423617363, 0.06181780993938446, 0.20817460119724274, 0.11102515459060669, 0.23067134618759155, -0.21839725971221924, 0.09348835051059723, 0.31686416268348694, -0.24412769079208374, 0.1566060185432434, 0.016038469970226288, 0.004206061363220215, 0.05209837108850479, 0.5282917618751526, -0.32120180130004883, -0.28641054034233093, -0.1384585201740265, 0.01648077741265297, -0.07302765548229218, 0.7810718417167664, 0.018924493342638016, 0.2590920031070709, -0.08304191380739212, -0.21210211515426636, -0.2754495143890381, -0.20167317986488342, 0.05076870694756508, 0.39897972345352173, 0.40410640835762024, 0.04577670246362686, 0.23100495338439941, 0.4444928765296936, -0.04954364895820618, -0.43499937653541565, -0.083758145570755, 0.18483282625675201, -0.08797802776098251, -0.12957538664340973, 0.08802774548530579, 0.4434049725532532, -0.5368414521217346, -0.1422266960144043, 0.08758841454982758, 0.0825188085436821, -0.10412544757127762, -0.01139422133564949, 0.11079415678977966, 0.15978747606277466, 0.35437026619911194, 0.4221053719520569, -0.05286578834056854, 0.0254523828625679, 0.09592100232839584, -0.005467724055051804, -0.01674535498023033, -0.415302574634552, -0.039484597742557526, 0.31662020087242126, 0.14453423023223877, -0.19556847214698792, -0.08334881067276001, 0.204983651638031, -0.006232405547052622, -0.010439176112413406, 0.09066630899906158, -0.003331380430608988, -0.39019501209259033, 0.04689127951860428, -0.08758632093667984, 0.1657283753156662, -0.04930175468325615, -0.06772974878549576, -0.05827202647924423, 0.03545285761356354, 0.04632648825645447, 0.034198932349681854, 0.41619670391082764, 0.051539935171604156, 0.0287155881524086, 0.11389113962650299, 0.2947540581226349, 0.5818415880203247, 0.006339769810438156, -0.46825769543647766, -0.04024439677596092, 0.2554457187652588, -0.45614156126976013, 0.2449324131011963, 0.5373562574386597, 0.02335851639509201, 0.09140516817569733, -0.19443781673908234, 0.3159260153770447, -0.08797482401132584, 0.1385928988456726, -0.2600429654121399, -0.4006444215774536 ]
https://github.com/huggingface/datasets/issues/2092
How to disable making arrow tables in load_dataset ?
People mainly want this feature either because it takes too much time too make arrow tables, or they occupy too much memory on the disk. I think both the problem can be solved if we provide arrow tables themselves on datasets hub. Can we do this currently @lhoestq ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
49
How to disable making arrow tables in load_dataset ? Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? People mainly want this feature either because it takes too much time too make arrow tables, or they occupy too much memory on the disk. I think both the problem can be solved if we provide arrow tables themselves on datasets hub. Can we do this currently @lhoestq ?
[ -0.2959382236003876, -0.24903170764446259, -0.10362090170383453, 0.2489059567451477, -0.04503367841243744, 0.16052564978599548, 0.2928253412246704, -0.02111956477165222, 0.3396778702735901, 0.2951473593711853, 0.03263559192419052, 0.48352718353271484, 0.026250939816236496, 0.01749488152563572, 0.24364371597766876, 0.15632984042167664, -0.014245286583900452, 0.5176953077316284, -0.3697742223739624, -0.02299511805176735, -0.06171861290931702, -0.3304601013660431, -0.02525937557220459, 0.14375534653663635, -0.2534678280353546, -0.1641293317079544, 0.19121649861335754, -0.28786495327949524, -0.4046608507633209, -0.2799391448497772, 0.3027494549751282, 0.3371616303920746, -0.16495639085769653, 0.11342553049325943, -0.0001224674633704126, 0.09321312606334686, 0.12142030149698257, 0.21311044692993164, -0.44404762983322144, 0.08413200080394745, -0.2974022328853607, -0.0556284636259079, 0.47938767075538635, -0.002338796854019165, 0.2543596625328064, -0.2447422593832016, -0.27707037329673767, -0.33975768089294434, 0.17141148447990417, -0.13239385187625885, 0.12153764069080353, 0.11227449774742126, -0.19331194460391998, 0.09619972109794617, 0.4546314477920532, 0.3035827875137329, -0.5730571150779724, 0.14015425741672516, -0.038999006152153015, 0.004110938869416714, -0.2913179397583008, -0.10489074885845184, -0.07123871892690659, -0.1307019591331482, 0.37654682993888855, -0.10007425397634506, -0.256478875875473, -0.30194807052612305, 0.09967203438282013, 0.21574193239212036, 0.7043824791908264, -0.5096976161003113, -0.18696407973766327, -0.29608213901519775, 0.3445965349674225, 0.10563579201698303, 0.2261914610862732, 0.2963041663169861, -0.11420810222625732, 0.1142808347940445, -0.27428561449050903, -0.6738182902336121, -0.26425328850746155, -0.13975904881954193, 0.34141436219215393, -0.18459773063659668, 0.03853675723075867, 0.06449287384748459, 0.19610093533992767, -0.04303897172212601, 0.7297349572181702, -0.2825857996940613, -0.3581550717353821, 0.13356341421604156, -0.2341216653585434, -0.28151801228523254, -0.2018962800502777, 0.40962401032447815, 0.2900770902633667, 0.2482919842004776, 0.47596627473831177, -0.02504860982298851, 0.045111268758773804, -0.09680015593767166, -0.17991891503334045, 0.1840306520462036, 0.35756009817123413, 0.09669005125761032, 0.2082592248916626, -0.055577587336301804, 0.263752818107605, 0.05272337794303894, 0.04184655472636223, -0.32720470428466797, -0.01905319094657898, 0.006692603230476379, -0.019830524921417236, 0.003047030419111252, -0.007712971419095993, -0.09444605559110641, 0.11076871305704117, 0.11299358308315277, 0.35731643438339233, -0.0435715988278389, 0.28076115250587463, 0.02082052081823349, -0.17917358875274658, 0.30966365337371826, -0.19847892224788666, -0.2092532068490982, -0.048699796199798584, -0.07808966934680939, -0.18875670433044434, 0.41184917092323303, 0.3620304465293884, 0.08371610939502716, -0.21578247845172882, 0.4662025272846222, -0.1323501169681549, 0.07526639848947525, 0.20606635510921478, -0.231260284781456, 0.03275247663259506, 0.41216084361076355, 0.030629094690084457, -0.12484567612409592, -0.11794915795326233, 0.13361935317516327, -0.12408730387687683, 0.479047030210495, -0.23716875910758972, -0.36561161279678345, 0.05237540975213051, 0.04705294594168663, -0.0924416184425354, 0.05025382339954376, -0.854315459728241, 0.1679319143295288, -0.1389351785182953, 0.3042338192462921, 0.3795035779476166, 0.06279174238443375, -0.11901333928108215, -0.1159868985414505, 0.06288609653711319, 0.4255434274673462, -0.248468279838562, 0.09047645330429077, -0.012012278661131859, -0.22263002395629883, -0.20387974381446838, -0.08250464498996735, -0.42817866802215576, 0.287289559841156, -0.09541116654872894, -0.07198821753263474, 0.4668298363685608, -0.024769438430666924, -0.14606738090515137, -0.014644152484834194, 0.08941586315631866, -0.10401763767004013, 0.10174085199832916, 0.04158801957964897, -0.011555710807442665, -0.024869250133633614, -0.22595372796058655, -0.012147553265094757, 0.18688495457172394, -0.20421436429023743, 0.1919277459383011, -0.32409438490867615, 0.05990174785256386, -0.03378356620669365, -0.22822944819927216, 0.2141561210155487, 0.21802565455436707, -0.154683455824852, -0.018025562167167664, -0.11640709638595581, -0.007289668545126915, 0.09105749428272247, 0.04138454794883728, -0.08666901290416718, -0.08081351965665817, 0.08770007640123367, -0.6414068937301636, 0.250345915555954, -0.10156875848770142, -0.017497487366199493, 0.004233360290527344, -0.25729459524154663, 0.13235262036323547, 0.26303067803382874, -0.10186229646205902, 0.5300441980361938, -0.029850799590349197, -0.7860900163650513, 0.005939573049545288, -0.2782948911190033, -0.2895980477333069, 0.08929773420095444, -0.43122825026512146, 0.25394803285598755, -0.31059423089027405, 0.28211769461631775, 0.31642234325408936, 0.09834395349025726, 0.05810251086950302, 0.11125515401363373, -0.03164131939411163, 0.33222395181655884, -0.14963218569755554, 0.1671593189239502, 0.17814457416534424, 0.17647573351860046, 0.16765724122524261, 0.3872050344944, 0.10976704955101013, -0.3977033793926239, 0.43445754051208496, -0.47696441411972046, -0.012567173689603806, 0.01387026160955429, 0.016540508717298508, 0.16645219922065735, -0.38433006405830383, 0.31884098052978516, -0.04394204914569855, -0.0056261932477355, -0.08756541460752487, 0.25394105911254883, -0.19138699769973755, -0.24318985641002655, 0.02555195614695549, 0.31069129705429077, 0.329446017742157, 0.363985151052475, 0.1657048463821411, -0.1471233069896698, -0.03908401355147362, 0.04237395152449608, 0.15766268968582153, 0.1884932518005371, 0.010644063353538513, -0.10297153890132904, 0.17350663244724274, 0.03504003956913948, 0.2412399798631668, 0.15185004472732544, 0.06598323583602905, 0.016690567135810852, -0.15179190039634705, -0.2184060961008072, 0.26048004627227783, 0.0894293263554573, 0.39609837532043457, 0.08501102775335312, -0.06999482959508896, -0.05428994074463844, -0.43057769536972046, -0.001260131597518921, -0.22881753742694855, -0.10335042327642441, -0.3287903368473053, -0.17803117632865906, -0.25843191146850586, 0.00959324836730957, 0.08611796796321869, 0.022759273648262024, -0.42542898654937744, 0.0443890318274498, 0.2645106315612793, -0.13801206648349762, 0.07855777442455292, -0.01958889700472355, -0.20975881814956665, 0.46308034658432007, -0.16460391879081726, -0.027495378628373146, -0.5118433237075806, -0.024354053661227226, 0.2437959611415863, 0.016312196850776672, -0.027583610266447067, 0.1487129181623459, 0.27044159173965454, -0.015571142546832561, 0.2265705168247223, -0.31804555654525757, 0.10247928649187088, 0.15282350778579712, -0.056101635098457336, -0.14386241137981415, 0.28076523542404175, 0.10746071487665176, -0.15409627556800842, 0.20220638811588287, -0.13120265305042267, -0.18071475625038147, -0.0840286910533905, 0.08910924196243286, -0.38302549719810486, 0.2847311794757843, -0.06897132098674774, 0.12368583679199219, 0.05138494074344635, -0.16025781631469727, 0.2237325757741928, 0.025875993072986603, 0.10768711566925049, 0.1475776731967926, 0.18394248187541962, -0.023105885833501816, -0.01981143280863762, 0.06666332483291626, 0.012909219600260258, -0.39254555106163025, 0.4017268717288971, -0.24079526960849762, -0.08347496390342712, 0.20551791787147522, 0.11979040503501892, 0.21350426971912384, 0.30103880167007446, -0.5540851354598999, 0.3444390594959259, -0.35263198614120483, 0.04883289709687233, -0.22691917419433594, 0.05786875635385513, 0.19389332830905914, 0.23277901113033295, 0.1075323075056076, -0.2064686119556427, 0.034333836287260056, 0.21282333135604858, -0.01648297905921936, -0.20929846167564392, 0.06079784408211708, 0.2286074459552765, -0.39459168910980225, 0.32633402943611145, -0.13100330531597137, 0.17305120825767517, 0.18842700123786926, 0.06715814024209976, 0.4778155982494354, -0.2602347433567047, 0.2625121772289276, -0.47200849652290344, 0.05131508409976959, 0.16551199555397034, 0.06422324478626251, 0.144596129655838, -0.09168823808431625, -0.16876636445522308, -0.09592382609844208, 0.16364970803260803, -0.1391071081161499, -0.16925376653671265, -0.8409454226493835, -0.0066030025482177734, 0.02146872505545616, -0.027095437049865723, -0.16160425543785095, -0.20390775799751282, 0.0421283058822155, -0.17298386991024017, 0.46145913004875183, -0.16035839915275574, -0.4641272723674774, -0.21990537643432617, -0.16159141063690186, -0.033277884125709534, -0.1495436131954193, 0.16063983738422394, 0.06868000328540802, 0.21213474869728088, 0.2860308885574341, 0.3172592520713806, 0.1961812973022461, -0.1700163036584854, -0.11289392411708832, -0.2017814666032791, 0.039752572774887085, -0.5741518139839172, 0.20889796316623688, 0.18506179749965668, 0.2039019912481308, -0.6787973642349243, 0.10305434465408325, -0.11656871438026428, -0.2855762541294098, -0.02352740615606308, 0.4652273952960968, -0.24741646647453308, -0.279754638671875, -0.2131306678056717, 0.12079999595880508, 0.04328992962837219, -0.1333010494709015, 0.01934835873544216, -0.23697707056999207, -0.3839559853076935, -0.320447713136673, -0.2770608961582184, -0.22824084758758545, 0.1647607386112213, 0.1295914351940155, 0.23086333274841309, -0.008403293788433075, 0.03899933770298958, 0.2662964463233948, -0.07612846791744232, 0.3563051223754883, 0.6240325570106506, 0.011075705289840698, -0.3348997235298157, 0.08657627552747726, -0.19051304459571838, 0.23693588376045227, 0.02284327894449234, -0.15931297838687897, 0.34828290343284607, -0.2124980092048645, -0.1461247056722641, -0.23570184409618378, -0.35401713848114014, -0.11091165244579315, -0.25867754220962524, -0.2403569370508194, -0.3882804214954376, 0.4413147270679474, 0.07319757342338562, -0.07627224922180176, 0.5744849443435669, 0.3942919969558716, -0.3450450003147125, 0.32462358474731445, 0.42256277799606323, 0.7420527338981628, -0.11314678192138672, 0.03600693866610527, -0.017850689589977264, -0.08108031749725342, 0.18778392672538757, -0.18222852051258087, -0.04679465293884277, -0.20229335129261017, -0.31592708826065063, -0.16325725615024567, -0.27848708629608154, 0.34474027156829834, 0.6192927956581116, 0.21664881706237793, -0.01751427724957466, -0.3532566428184509, 0.11486053466796875, -0.13428649306297302, 0.08237025141716003, -0.40925392508506775, -0.3848980665206909, -0.3651777505874634, 0.038949742913246155, 0.1036936566233635, -0.27882957458496094, -0.009284621104598045, 0.3134472370147705, 0.10036659240722656, -0.13814422488212585, 0.03200291097164154, -0.11443056911230087, -0.22517932951450348, 0.12953001260757446, -0.09978938102722168, -0.24698036909103394, 0.39955779910087585, 0.3768921196460724, 0.045910272747278214, 0.0989440307021141, -0.09095414727926254, 0.07643105089664459, 0.18363884091377258, 0.1344405859708786, -0.3134598433971405, 0.26984021067619324, -0.08515219390392303, -0.06820792704820633, -0.22742190957069397, 0.16109660267829895, 0.059865280985832214, -0.25591331720352173, 0.17036953568458557, -0.08275876939296722, 0.09106254577636719, -0.090743787586689, 0.2708331048488617, -0.08571866154670715, 0.30016928911209106, 0.007266264408826828, 0.042611218988895416, 0.1652318239212036, 0.2661093473434448, 0.16436466574668884, 0.08703002333641052, -0.37969526648521423, -0.04998422786593437, 0.07776913791894913, 0.24797093868255615, -0.040192704647779465, 0.2925240099430084, -0.05699162930250168, -0.32084017992019653, -0.31597158312797546, 0.3908049762248993, 0.33198675513267517, -0.8370426893234253, -0.11289925128221512, 0.10871680080890656, 0.05982223153114319, -0.08251184225082397, -0.005795430392026901, -0.05439475178718567, 0.12861382961273193, -0.005459669977426529, 0.08113826811313629, -0.16059686243534088, 0.25106558203697205, 0.06078370660543442, 0.3145681321620941, 0.036950044333934784, -0.6393616199493408, 0.06927665323019028, 0.08383544534444809, -0.12562121450901031, -0.09050007909536362, 0.23137623071670532, -0.15320080518722534, -0.40220263600349426, 0.40758049488067627, -0.11019981652498245, -0.15797577798366547, -0.058748506009578705, -0.09986568987369537, -0.035966817289590836, -0.08153864741325378, -0.06368926912546158, 0.17248977720737457, -0.08775436133146286, 0.11027395725250244, -0.3056674003601074, -0.3797581195831299, -0.27044835686683655, -0.17198534309864044, 0.20318695902824402, 0.09233375638723373, 0.022898927330970764, -0.028987877070903778, 0.7183498740196228, 0.017395321279764175, -0.4473564028739929, 0.09903747588396072, 0.18873949348926544, 0.3345048725605011, 0.04385710507631302, -0.010497171431779861, 0.1380797028541565, -0.1125100776553154, -0.0017857380444183946, 0.28926384449005127, 0.11840343475341797, -0.0798298567533493, -0.08560457080602646, 0.05951409041881561, 0.2994787096977234, -0.1719045788049698, -0.05297551676630974, 0.36636120080947876, 0.07312353700399399, -0.3403517007827759, 0.1992560625076294, 0.04907829686999321, -0.0033569801598787308, -0.14727246761322021, 0.14135053753852844, 0.0453236885368824, -0.09760645031929016, 0.2792843282222748, 0.10083678364753723, 0.1894991099834442, -0.32417136430740356, 0.05414719879627228, -0.14226098358631134, 0.07043074816465378, 0.03565012663602829, 0.4357764720916748, 0.0052410028874874115, -0.08882524073123932, 0.2888083755970001, 0.2855091989040375, -0.03746790438890457, 0.06889113783836365, 0.16481006145477295, 0.512122392654419, 0.4532749652862549, 0.14036017656326294, 0.14364132285118103, -0.1542583853006363, -0.374806672334671, -0.10037754476070404, -0.12142059206962585, -0.31549349427223206, 0.11276225000619888, 0.13537058234214783, 0.4430635869503021, -0.2076922208070755, -0.2558024227619171, -0.14393901824951172, 0.007884949445724487, 0.021368952468037605, -0.21267668902873993, -0.05345054343342781, 0.052582964301109314, -0.13478389382362366, -0.07909972965717316, 0.13824786245822906, 0.1554534137248993, 0.01065858080983162, 0.22896911203861237, 0.09039391577243805, 0.6540067195892334, 0.3387284576892853, 0.09533598273992538, 0.22422561049461365, -0.19468693435192108, -0.2521747946739197, 0.23523570597171783, 0.04631107300519943, 0.27049899101257324, -0.3665050268173218, 0.06160743907094002, 0.0022660186514258385, -0.1412230134010315, 0.3014589250087738, -0.03973134234547615, 0.025153979659080505, 0.309296578168869, 0.144109845161438, 0.1605691909790039, 0.21761347353458405, 0.016246868297457695, 0.04130066558718681, -0.18078453838825226, 0.0200515016913414, 0.4210737645626068, -0.1039448231458664, 0.20985257625579834, 0.2836742699146271, -0.29595130681991577, 0.2372809201478958, 0.1531401425600052, 0.12661629915237427, 0.01723581925034523, 0.6544238924980164, -0.3165144622325897, -0.36850669980049133, -0.410175085067749, -0.00023818016052246094, -0.11313986778259277, 0.7101009488105774, 0.01557062566280365, 0.3783341944217682, 0.059298738837242126, -0.22512057423591614, -0.10655136406421661, -0.14254948496818542, -0.03130170330405235, 0.2766106128692627, 0.33080530166625977, -0.14304162561893463, 0.09999795258045197, 0.364288866519928, 0.19511139392852783, -0.12515006959438324, 0.10981685668230057, 0.01061360165476799, 0.0004846155643463135, -0.02198486402630806, 0.006877191364765167, 0.2887135148048401, -0.4466705322265625, -0.26003915071487427, 0.01820855587720871, 0.2909233272075653, -0.1568896621465683, -0.04910174757242203, 0.13676942884922028, 0.3282163143157959, 0.26820096373558044, 0.4353291094303131, -0.023538051173090935, 0.1507951319217682, 0.10683593899011612, 0.08927107602357864, -0.04730488732457161, -0.5445354580879211, 0.0005117896944284439, 0.24070635437965393, -0.012655775994062424, -0.3778369426727295, -0.17573201656341553, 0.17834912240505219, 0.10302777588367462, -0.13778157532215118, -0.006740357726812363, 0.4482307434082031, -0.20714040100574493, 0.08780238032341003, 0.05547087639570236, 0.01663258858025074, 0.02532777562737465, -0.1492113471031189, 0.10072493553161621, 0.13567326962947845, 0.1847243756055832, 0.004700217396020889, 0.21200412511825562, 0.14175884425640106, -0.009670127183198929, 0.22866584360599518, 0.3601229786872864, 0.24336972832679749, -0.33164533972740173, -0.4114706516265869, -0.07574647665023804, 0.32669344544410706, -0.317072331905365, 0.07376329600811005, 0.3929124176502228, -0.0987643301486969, 0.21645615994930267, -0.08823401480913162, 0.6065356731414795, -0.1435995101928711, 0.2302941232919693, -0.28167182207107544, -0.35950183868408203 ]
https://github.com/huggingface/datasets/issues/2092
How to disable making arrow tables in load_dataset ?
@lhoestq I think the ```try_from_hf_gcs``` provide the same functionality. What all datasets are available on HF GCS? Are all the datasets on huggingFace datasets hub are made available on GCS, automatically?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
31
How to disable making arrow tables in load_dataset ? Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? @lhoestq I think the ```try_from_hf_gcs``` provide the same functionality. What all datasets are available on HF GCS? Are all the datasets on huggingFace datasets hub are made available on GCS, automatically?
[ -0.06998171657323837, -0.5376310348510742, -0.06069452315568924, 0.2699545621871948, 0.03118840791285038, 0.18576890230178833, 0.20472094416618347, -0.07386001944541931, 0.5251612067222595, 0.19155412912368774, -0.20835795998573303, 0.2142612785100937, 0.14290204644203186, 0.06532904505729675, 0.25217482447624207, 0.0714229941368103, 0.06970127671957016, 0.31918030977249146, -0.48510798811912537, -0.26864367723464966, -0.1109209731221199, -0.03625974804162979, -0.13807633519172668, 0.12889309227466583, -0.2874595820903778, -0.24638187885284424, -0.012083746492862701, -0.01075078547000885, -0.25998783111572266, -0.231373593211174, 0.3290414810180664, 0.3906887173652649, -0.09853747487068176, 0.2785472273826599, -0.00012025938485749066, 0.05223819613456726, -0.04834814369678497, 0.03758104145526886, -0.46674737334251404, -0.05957387387752533, -0.04330393671989441, 0.02328275702893734, 0.5407471656799316, 0.127208411693573, 0.07930795103311539, -0.2443217784166336, -0.27296409010887146, -0.3654934763908386, 0.32822203636169434, -0.01814275234937668, 0.15779288113117218, 0.3644489049911499, -0.23008066415786743, -0.13111689686775208, 0.28051668405532837, 0.12333651632070541, -0.4778991937637329, 0.2537669539451599, 0.05402957648038864, 0.06320209801197052, -0.16135311126708984, -0.02435256913304329, -0.1481771171092987, -0.058237750083208084, 0.37441980838775635, -0.11067561060190201, -0.25963711738586426, -0.48175469040870667, 0.16579824686050415, 0.43907126784324646, 0.7818114161491394, -0.36949482560157776, -0.05246433615684509, -0.28372862935066223, 0.15518303215503693, 0.12235182523727417, 0.19640207290649414, 0.3899798095226288, -0.08612044155597687, 0.1196509301662445, -0.17516054213047028, -0.5157368779182434, -0.22678150236606598, -0.22662608325481415, 0.3075183928012848, -0.13187292218208313, -0.12254287302494049, 0.05854055657982826, 0.4478568434715271, 0.11249253898859024, 0.3323290944099426, -0.17562656104564667, -0.41551917791366577, 0.31087666749954224, -0.4134176969528198, -0.289838969707489, -0.1153087243437767, 0.42774221301078796, 0.3985427916049957, 0.23061759769916534, 0.3178879916667938, 0.12359756231307983, 0.053771499544382095, -0.04112337529659271, -0.05860433354973793, 0.15823794901371002, 0.16172106564044952, 0.07680529356002808, 0.09835334122180939, -0.036856234073638916, 0.16415314376354218, -0.0357244610786438, 0.06700073182582855, -0.3181802034378052, -0.23311327397823334, -0.043486423790454865, -0.07040279358625412, -0.1852668970823288, -0.0737164244055748, 0.009637909010052681, 0.33126547932624817, 0.04395003244280815, 0.3386300504207611, 0.27112525701522827, 0.33043357729911804, -0.08821316063404083, -0.1544584482908249, 0.3299459218978882, -0.23816756904125214, -0.2385374754667282, -0.14563220739364624, -0.13152794539928436, -0.21179908514022827, 0.4393604099750519, 0.2759014964103699, -0.05018150433897972, -0.18493224680423737, 0.468888521194458, -0.0440237820148468, 0.13175910711288452, -0.049225494265556335, -0.303842693567276, 0.2460280954837799, 0.49696800112724304, -0.05093208700418472, -0.05647754669189453, 0.1598430573940277, 0.20204485952854156, -0.24831268191337585, 0.18331480026245117, -0.3329205811023712, -0.3900698721408844, -0.003593089058995247, 0.03222259134054184, 0.04122912883758545, -0.04043753445148468, -0.8469273447990417, 0.3460436761379242, -0.34312766790390015, 0.37128013372421265, 0.4440471827983856, 0.11903678625822067, -0.0005575492978096008, -0.17311441898345947, 0.03331950306892395, 0.5034124851226807, -0.17007513344287872, -0.008530627936124802, 0.1776844561100006, -0.30547693371772766, -0.10374324768781662, 0.0439891591668129, -0.36307698488235474, 0.06950260698795319, -0.1272328943014145, -0.08578576147556305, 0.3792744278907776, 0.022877123206853867, -0.05254170298576355, 0.08452637493610382, 0.17024953663349152, -0.014818066731095314, 0.07116643339395523, -0.17734280228614807, -0.02182397060096264, 0.01996508054435253, -0.44769760966300964, 0.15679089725017548, 0.21907542645931244, -0.19821509718894958, 0.09746131300926208, -0.24788711965084076, 0.09651787579059601, -0.03246127814054489, -0.131071537733078, 0.23368194699287415, 0.2506481111049652, -0.5099533796310425, 0.13552294671535492, -0.14144662022590637, -0.18442437052726746, 0.17860351502895355, 0.0470602810382843, -0.013371415436267853, -0.04111171141266823, 0.17425402998924255, -0.7623884081840515, 0.31659162044525146, -0.17888541519641876, 0.1900545209646225, 0.05947485566139221, -0.18161430954933167, 0.12072350829839706, 0.25376999378204346, -0.1028537005186081, 0.33562275767326355, -0.03499061241745949, -0.5231175422668457, 0.08467239141464233, -0.3067082464694977, -0.45649564266204834, 0.30380508303642273, -0.357584148645401, 0.3665584921836853, -0.19588418304920197, 0.3150850832462311, 0.33371689915657043, 0.09932652115821838, 0.09236513078212738, -0.019859857857227325, 0.1061333566904068, 0.08539219200611115, -0.17771035432815552, 0.25033998489379883, 0.12156366556882858, 0.3644576072692871, 0.20295315980911255, 0.3083251118659973, 0.05760052055120468, -0.46848195791244507, 0.32342085242271423, -0.39310774207115173, 0.03753930330276489, 0.10425028949975967, 0.038678236305713654, 0.3395082354545593, -0.2522572875022888, 0.3089870512485504, 0.14658613502979279, -0.06601440161466599, -0.09557577222585678, 0.1360977739095688, -0.10972421616315842, -0.1193595826625824, 0.16305077075958252, 0.16921770572662354, 0.37034890055656433, 0.3644672632217407, -0.08221317082643509, 0.0035109296441078186, 0.06375093758106232, -0.1441788524389267, -0.028228573501110077, 0.14206165075302124, -0.09895715862512589, -0.22441190481185913, 0.3118467628955841, -0.20241309702396393, 0.09649848192930222, 0.19334222376346588, 0.14417743682861328, 0.0530511811375618, -0.2020276039838791, -0.2763196527957916, 0.27608609199523926, 0.04686429351568222, 0.39842548966407776, -0.025528892874717712, -0.0146944560110569, -0.03029673546552658, -0.6330467462539673, 0.14735236763954163, -0.2354975789785385, -0.1206883043050766, -0.30198991298675537, 0.07837196439504623, -0.32286787033081055, 0.041834257543087006, 0.14468936622142792, 0.007142117712646723, -0.567517876625061, 0.0022960491478443146, 0.23567937314510345, -0.04046613350510597, 0.07017868757247925, -0.06691897660493851, -0.3137351870536804, 0.6049497723579407, -0.28922101855278015, -0.002811640501022339, -0.558331310749054, 0.05973798409104347, 0.08544214814901352, 0.03071318194270134, 0.06905464082956314, 0.2096918523311615, 0.3410915434360504, 0.03483743220567703, 0.07125799357891083, -0.25877583026885986, 0.13752040266990662, 0.3671420216560364, -0.19721423089504242, -0.08938033878803253, 0.0204225555062294, 0.14333917200565338, -0.2664315104484558, 0.23886211216449738, -0.1036960631608963, -0.44935959577560425, -0.037856560200452805, 0.16938303411006927, -0.4139094948768616, 0.17224447429180145, -0.032829925417900085, 0.05641257017850876, -0.0866943746805191, -0.1806507706642151, 0.2011326402425766, -0.0130632184445858, 0.2047114223241806, 0.3151853084564209, 0.04983682557940483, -0.038382530212402344, -0.1923554539680481, 0.14860475063323975, -0.1679399460554123, -0.4587251842021942, 0.3519226610660553, -0.17131687700748444, -0.1477934718132019, 0.20705270767211914, 0.055161476135253906, 0.10599277913570404, 0.11612309515476227, -0.6097697615623474, 0.289359450340271, -0.2824670076370239, 0.02812385931611061, -0.08548711240291595, 0.034631162881851196, 0.3091963231563568, -0.05768277868628502, 0.016357267275452614, -0.23209068179130554, 0.054094646126031876, 0.15641894936561584, 0.006589587777853012, -0.08317603915929794, 0.029919316992163658, 0.010406607761979103, -0.3959488868713379, 0.44414442777633667, -0.0389367938041687, 0.16810330748558044, 0.3979785442352295, 0.10065901279449463, 0.4846963882446289, -0.33323630690574646, 0.16860821843147278, -0.34423813223838806, -0.08424206078052521, 0.13253356516361237, 0.18423402309417725, 0.19620651006698608, -0.0537547841668129, -0.17223148047924042, 0.010592885315418243, 0.004404023289680481, -0.2218763828277588, -0.061121195554733276, -0.5079461932182312, 0.012744344770908356, 0.002600995823740959, 0.011490806937217712, -0.1859084963798523, -0.1508379876613617, 0.16933521628379822, 0.13342684507369995, 0.5717540383338928, -0.1340467482805252, -0.46386274695396423, -0.0279991514980793, -0.31300288438796997, 0.24422985315322876, -0.27510857582092285, -0.035907845944166183, -0.11843249201774597, -0.012829853221774101, 0.3601953983306885, 0.25604337453842163, 0.3104085326194763, 0.010717346332967281, -0.23675037920475006, -0.01916039176285267, -0.026523172855377197, -0.5357010364532471, 0.11735968291759491, 0.1510370522737503, -0.00221384409815073, -0.43684670329093933, 0.16541540622711182, -0.11915135383605957, -0.5349699854850769, -0.08018986135721207, 0.2858911156654358, -0.14133232831954956, -0.20203664898872375, -0.24978627264499664, 0.09346983581781387, 0.06127024441957474, -0.11750086396932602, -0.04579709470272064, -0.31651541590690613, -0.42115429043769836, -0.05548278987407684, -0.07054586708545685, -0.12862664461135864, 0.2033260315656662, 0.10388348996639252, 0.21414905786514282, 0.10606313496828079, -0.09341714531183243, 0.5110615491867065, 0.16610978543758392, 0.3581528067588806, 0.9107131361961365, -0.04464093968272209, -0.26563534140586853, 0.1637277603149414, 0.034461960196495056, 0.27408912777900696, 0.3277549743652344, -0.009178103879094124, 0.38273972272872925, -0.09222295135259628, 0.010212339460849762, -0.2542267441749573, -0.30567559599876404, -0.13650347292423248, -0.18692177534103394, -0.38031330704689026, -0.3169398605823517, 0.5907820463180542, 0.008309585973620415, -0.23174349963665009, 0.4854333698749542, 0.5626702904701233, -0.2878555655479431, 0.38577353954315186, 0.23584675788879395, 0.9838711619377136, -0.17727170884609222, 0.08122321963310242, 0.13376173377037048, -0.09768213331699371, 0.19054977595806122, -0.2969299554824829, -0.04193434864282608, -0.24479442834854126, -0.39988070726394653, -0.21604502201080322, -0.29091784358024597, 0.3766038417816162, 0.38909345865249634, 0.1521085798740387, 0.10697086155414581, -0.32839155197143555, 0.17173424363136292, -0.15240103006362915, 0.060942769050598145, -0.358985960483551, -0.42902034521102905, -0.40781086683273315, 0.09211303293704987, 0.19406843185424805, 0.02793693169951439, -0.026897668838500977, 0.1983853280544281, 0.11675740778446198, -0.1925661861896515, -0.07273025810718536, -0.0872986912727356, -0.3718632757663727, -0.0995282381772995, 0.21649959683418274, -0.3137665390968323, 0.3319256603717804, 0.059487201273441315, 0.2201472371816635, -0.07384863495826721, -0.08672378957271576, 0.15551361441612244, 0.1360010802745819, 0.16619646549224854, -0.45365890860557556, 0.2146773785352707, 0.20083075761795044, 0.041022948920726776, -0.23086565732955933, 0.18113292753696442, 0.04214717820286751, -0.24220970273017883, -0.007909849286079407, -0.23152537643909454, -0.06489728391170502, -0.07986682653427124, 0.23357629776000977, -0.031658828258514404, 0.3374999761581421, -0.010126899927854538, 0.05790196731686592, -0.024984493851661682, 0.19413769245147705, -0.025156252086162567, 0.2263505905866623, -0.34525206685066223, -0.1922568380832672, 0.06841855496168137, 0.14502045512199402, -0.21888257563114166, 0.2154671847820282, 0.21660341322422028, -0.3611481785774231, -0.3672829270362854, 0.1145816221833229, 0.5732606649398804, -0.8200088739395142, -0.03539586067199707, 0.13046912848949432, -0.020138047635555267, -0.10837505757808685, 0.2939602732658386, 0.09206752479076385, 0.03581478074193001, -0.10646213591098785, 0.056769922375679016, -0.24588100612163544, 0.24195115268230438, -0.12742172181606293, 0.33908137679100037, 0.0505642369389534, -0.5303604602813721, 0.1395340859889984, 0.1860036551952362, -0.208611398935318, -0.022278057411313057, 0.1690417379140854, -0.19582897424697876, -0.06354746967554092, 0.20942866802215576, -0.004502888768911362, -0.23513394594192505, -0.04561977833509445, -0.16332371532917023, -0.20756009221076965, -0.13320419192314148, -0.08862215280532837, 0.20021575689315796, -0.03262033313512802, -0.0785953626036644, -0.33927464485168457, -0.4105182886123657, -0.1677009016275406, -0.2065611183643341, 0.27573251724243164, 0.10257961601018906, 0.030032772570848465, -0.10218040645122528, 0.5886279344558716, -0.09737669676542282, -0.40740883350372314, 0.06354678422212601, 0.231092631816864, 0.40924686193466187, 0.12687240540981293, -0.25628355145454407, -0.018743673339486122, -0.07997313141822815, -0.010526834055781364, 0.4855702221393585, 0.27126097679138184, -0.18432357907295227, -0.05848336219787598, 0.03461526334285736, 0.18398064374923706, -0.2771977186203003, 0.05254387855529785, 0.12204469740390778, 0.16182704269886017, -0.24475151300430298, 0.21441194415092468, 0.058487214148044586, -0.048140861093997955, -0.19423194229602814, 0.11130428314208984, 0.06927228718996048, -0.0840405523777008, 0.3382101058959961, 0.38103413581848145, 0.1406189650297165, -0.08435383439064026, 0.027552753686904907, 0.029682304710149765, 0.2904459834098816, 0.13921698927879333, 0.20143099129199982, -0.020984113216400146, 0.0038979649543762207, 0.466532826423645, 0.39742910861968994, -0.04179171472787857, -0.19788603484630585, -0.055153630673885345, 0.3230106830596924, 0.2193620800971985, 0.10078269243240356, 0.1601349413394928, -0.43383723497390747, -0.24871154129505157, -0.021212056279182434, -0.10079067945480347, -0.18394848704338074, 0.0439901277422905, 0.3703761696815491, 0.39345741271972656, -0.5257885456085205, -0.2690376937389374, 0.0910344123840332, -0.008591696619987488, -0.10076504945755005, -0.023545948788523674, -0.16161158680915833, -0.02590351179242134, 0.041080210357904434, -0.09123989939689636, -0.11197167634963989, 0.31760239601135254, 0.041170861572027206, 0.2570936679840088, 0.05191405117511749, 0.41019970178604126, 0.35131844878196716, 0.04754508286714554, 0.25666192173957825, 0.030204227194190025, -0.2460515946149826, 0.19108539819717407, 0.14039337635040283, 0.1635114699602127, -0.14301639795303345, -0.03535883128643036, -0.17100889980793, -0.12837351858615875, 0.303840696811676, -0.032582517713308334, 0.11782005429267883, 0.26438990235328674, 0.07309500873088837, 0.012832749634981155, 0.16346439719200134, 0.03995645046234131, 0.008836676366627216, -0.08459679782390594, -0.17342254519462585, 0.494434118270874, -0.2157095968723297, 0.24710705876350403, 0.15379516780376434, -0.12950259447097778, 0.10285915434360504, 0.08663108944892883, 0.029653340578079224, 0.14880384504795074, 0.5596121549606323, -0.3162328898906708, -0.15433958172798157, -0.23965635895729065, 0.013285677880048752, 0.020827585831284523, 0.6919661164283752, 0.15885941684246063, 0.4518476128578186, -0.10229996591806412, -0.295850932598114, -0.13135018944740295, -0.13652655482292175, 0.02694767154753208, 0.3040648400783539, 0.32473722100257874, -0.22214235365390778, 0.36937087774276733, 0.28571927547454834, 0.31693971157073975, 0.033494167029857635, 0.20229221880435944, 0.026312677189707756, 0.031735729426145554, 0.08654038608074188, -0.22789902985095978, 0.31274157762527466, -0.476116418838501, -0.23037287592887878, 0.019367218017578125, 0.1770932674407959, -0.15759781002998352, -0.12399318814277649, 0.276690274477005, 0.21056659519672394, 0.054408468306064606, 0.3564324975013733, 0.04603143781423569, 0.3243824541568756, 0.0022357888519763947, -0.018722224980592728, 0.014505833387374878, -0.5402624011039734, -0.002169700339436531, 0.08119131624698639, -0.10595008730888367, -0.27950742840766907, -0.03099445253610611, -0.047840725630521774, 0.01787538081407547, -0.13921229541301727, 0.17709599435329437, 0.4349818229675293, -0.34960097074508667, 0.06981980800628662, -0.10641303658485413, -0.15676093101501465, 0.25923678278923035, 0.02719825692474842, 0.16487279534339905, 0.022875269874930382, 0.1580037921667099, 0.11005404591560364, 0.36882203817367554, 0.03017246723175049, -0.04095819965004921, 0.08169611543416977, 0.39046722650527954, 0.360558420419693, -0.17574934661388397, -0.5782326459884644, -0.024175778031349182, 0.17883482575416565, -0.30583351850509644, 0.00818243995308876, 0.38051971793174744, -0.0424586683511734, 0.1322423666715622, -0.13772359490394592, 0.5173624753952026, 0.01976303942501545, 0.11783842742443085, -0.4071606695652008, -0.3186652660369873 ]
https://github.com/huggingface/datasets/issues/2092
How to disable making arrow tables in load_dataset ?
Only datasets like wikipedia, wiki40b, wiki_dpr and natural questions are available already processed on the HF google storage. This is used to download directly the arrow file instead of building it from the original data files.
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
36
How to disable making arrow tables in load_dataset ? Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? Only datasets like wikipedia, wiki40b, wiki_dpr and natural questions are available already processed on the HF google storage. This is used to download directly the arrow file instead of building it from the original data files.
[ -0.1666765809059143, -0.09972262382507324, -0.06023557484149933, 0.2515963017940521, -0.04688313603401184, 0.11431404203176498, 0.2708074748516083, 0.004835827276110649, 0.46977880597114563, 0.16326802968978882, -0.03707490116357803, 0.1923094391822815, 0.1889040768146515, 0.01693004183471203, 0.2863858938217163, 0.11644256860017776, -0.025268055498600006, 0.46864140033721924, -0.332858681678772, -0.12431027740240097, -0.1999843269586563, -0.20282119512557983, -0.07527822256088257, 0.07488556206226349, -0.0713144838809967, -0.2044891119003296, 0.17876029014587402, -0.14324918389320374, -0.3065357208251953, -0.35288527607917786, 0.17291811108589172, 0.3800319731235504, -0.16420842707157135, 0.12443549931049347, -0.0001261445286218077, 0.09429030120372772, 0.03292061388492584, 0.09487825632095337, -0.5260357856750488, 0.006026864051818848, -0.17463847994804382, 0.0031735505908727646, 0.4379304051399231, -0.01862090826034546, 0.28191137313842773, -0.4082460403442383, -0.186309814453125, -0.34508633613586426, 0.3139985203742981, 0.0053228335455060005, 0.09058062732219696, -0.07163660228252411, -0.060490287840366364, 0.20943905413150787, 0.5697895884513855, 0.27334076166152954, -0.45360103249549866, 0.2838582396507263, -0.16036497056484222, -0.0454602986574173, -0.23303696513175964, -0.01983036659657955, -0.16491957008838654, -0.01761537417769432, 0.3427167534828186, -0.06580520421266556, -0.2182619571685791, -0.4648958146572113, 0.32531633973121643, 0.44718432426452637, 0.8690114617347717, -0.4102919101715088, -0.07292310148477554, -0.18445314466953278, 0.20276477932929993, 0.09730219841003418, 0.28563734889030457, 0.39905908703804016, -0.10664813220500946, 0.0758945420384407, -0.2127397060394287, -0.678449273109436, -0.2574293613433838, -0.07118235528469086, 0.2603640854358673, -0.11534267663955688, 0.018334126099944115, 0.050158917903900146, 0.3017887771129608, 0.008115958422422409, 0.3686652183532715, -0.22384098172187805, -0.36487072706222534, 0.27233412861824036, -0.18427865207195282, -0.21599677205085754, -0.3739868998527527, 0.17448806762695312, 0.4409635066986084, 0.10098669677972794, 0.4295792281627655, 0.05032192915678024, 0.2170756757259369, -0.07175079733133316, -0.12527716159820557, 0.11283893883228302, 0.150421142578125, 0.0533878356218338, 0.2999628186225891, 0.0077718086540699005, 0.12638123333454132, -0.00475161150097847, 0.15714189410209656, -0.28763213753700256, -0.07525797188282013, -0.13769006729125977, -0.06755954027175903, -0.15530110895633698, 0.04280485212802887, 0.030805863440036774, -0.09682956337928772, -0.08881429582834244, 0.14045771956443787, 0.17644965648651123, 0.23133954405784607, -0.07162030041217804, -0.0928625538945198, 0.39064139127731323, -0.22450564801692963, -0.16485220193862915, 0.0656038299202919, -0.1498604267835617, -0.13486692309379578, 0.47977906465530396, 0.40032467246055603, 0.053917620331048965, -0.19645512104034424, 0.4721812903881073, -0.23747201263904572, 0.016678206622600555, 0.3698478043079376, -0.34477365016937256, 0.1794474720954895, 0.507966935634613, 0.16433411836624146, -0.13455229997634888, -0.028773512691259384, 0.016688011586666107, -0.14657540619373322, 0.3799899220466614, -0.34862110018730164, -0.2767959535121918, -0.09162402153015137, 0.019289663061499596, 0.15607956051826477, 0.10551812499761581, -0.8544897437095642, 0.23417507112026215, -0.0627284124493599, 0.19221870601177216, 0.34230107069015503, 0.13842613995075226, -0.14748112857341766, -0.19244502484798431, 0.1250503808259964, 0.46845030784606934, -0.3885136842727661, 0.08698789775371552, 0.03181060776114464, -0.15921880304813385, -0.12263091653585434, 0.08673445880413055, -0.35848283767700195, 0.25619828701019287, -0.14131969213485718, -0.08861232548952103, 0.4231480360031128, 0.10553024709224701, -0.19324085116386414, 0.24953842163085938, 0.17169278860092163, -0.04793155938386917, 0.13141271471977234, -0.02838338352739811, 0.000752636231482029, 0.06928402930498123, -0.3884217441082001, 0.13323058187961578, 0.31277230381965637, -0.14875447750091553, 0.12454819679260254, -0.26450568437576294, 0.11710897833108902, -0.1291520893573761, -0.14173810184001923, 0.35763299465179443, 0.31578293442726135, -0.22282378375530243, 0.11515042185783386, -0.18697768449783325, -0.05662049353122711, 0.24609962105751038, 0.09886971116065979, 0.06283597648143768, -0.010571175254881382, 0.2677641212940216, -0.794527530670166, 0.17884844541549683, -0.336000919342041, 0.057664599269628525, -0.018071234226226807, -0.25924402475357056, 0.06954090297222137, 0.17328830063343048, -0.08638961613178253, 0.28673991560935974, -0.03776685148477554, -0.5865473747253418, 0.022451277822256088, -0.033713843673467636, -0.13332031667232513, 0.05922003835439682, -0.4370773136615753, 0.24248605966567993, -0.23345528542995453, 0.3700754642486572, 0.2047596573829651, 0.11871121823787689, 0.07104027271270752, -0.01983185112476349, 0.017512459307909012, 0.21956536173820496, -0.1529204547405243, 0.1186264380812645, 0.14633382856845856, 0.20475998520851135, 0.16098061203956604, 0.38479316234588623, 0.04758584126830101, -0.5845109820365906, 0.3888183832168579, -0.38071244955062866, 0.04930703714489937, -0.06865516304969788, 0.009146716445684433, 0.27060627937316895, -0.03963165357708931, 0.3539584279060364, 0.1418546587228775, -0.06842954456806183, -0.040580831468105316, 0.15397880971431732, -0.019824709743261337, -0.3033725917339325, 0.05306904390454292, 0.2990088164806366, 0.4224357008934021, 0.3638787567615509, -0.006605416536331177, -0.12190897017717361, 0.10779455304145813, -0.03603512421250343, 0.2045951783657074, 0.30792808532714844, -0.04412723332643509, -0.32546740770339966, 0.07534992694854736, -0.16009093821048737, 0.10068981349468231, 0.1284569948911667, 0.12051595747470856, 0.03442532196640968, -0.1513558328151703, -0.2663257122039795, 0.3290823996067047, -0.024767443537712097, 0.4524427354335785, 0.19725528359413147, 0.052516449242830276, -0.042916424572467804, -0.5053232312202454, 0.11699612438678741, -0.20846162736415863, -0.06752169132232666, -0.32718729972839355, 0.006736515089869499, -0.23215076327323914, -0.04294188693165779, 0.06923454999923706, 0.19742929935455322, -0.5449182987213135, -0.06463056802749634, 0.2237848937511444, -0.06415988504886627, 0.12642793357372284, -0.13845624029636383, -0.2107723206281662, 0.365266889333725, -0.09928225725889206, -0.17639963328838348, -0.6031209826469421, -0.024792540818452835, 0.11107098311185837, -0.014648610725998878, 0.08773273229598999, 0.11834193766117096, 0.2117764800786972, 0.06547464430332184, -0.07971648871898651, -0.46501848101615906, -0.10346945375204086, 0.28217995166778564, -0.05975915491580963, -0.12619002163410187, 0.14217934012413025, 0.28490594029426575, -0.19573834538459778, 0.1819579005241394, -0.1306825876235962, -0.23146678507328033, -0.15153390169143677, 0.2393718957901001, -0.3711265027523041, 0.4133032262325287, -0.04176422953605652, -0.02850055694580078, 0.10133279114961624, -0.05248042196035385, 0.1647356152534485, 0.1407792717218399, 0.2111322283744812, 0.13141334056854248, 0.16927382349967957, -0.03282966837286949, 0.07236950844526291, 0.07042232155799866, -0.12465401738882065, -0.2096572071313858, 0.4650498330593109, -0.28782597184181213, -0.17769546806812286, 0.2696312367916107, 0.024889003485441208, 0.04820036515593529, 0.3943353295326233, -0.764772891998291, 0.46287938952445984, -0.2994994521141052, 0.03855106607079506, -0.3009708523750305, -0.06571335345506668, 0.1779261976480484, 0.19023741781711578, 0.07070840895175934, -0.20317062735557556, 0.1442662924528122, 0.3033231198787689, -0.05196864902973175, -0.12785688042640686, 0.2401958703994751, 0.3711487054824829, -0.4483269453048706, 0.6514477729797363, -0.21326659619808197, 0.20488257706165314, 0.3713405728340149, 0.06537515670061111, 0.4804438054561615, -0.3940524160861969, 0.3682648241519928, -0.35338881611824036, 0.04406743496656418, 0.21675057709217072, 0.2128104567527771, 0.023933054879307747, -0.2817349433898926, -0.16364359855651855, 0.06639266014099121, -0.04863855242729187, -0.1369582712650299, -0.06715598702430725, -0.5520763993263245, 0.11954650282859802, 0.02101607248187065, -0.04505763202905655, -0.0029318388551473618, -0.29839134216308594, 0.08291855454444885, -0.06754198670387268, 0.4848751723766327, -0.006818482652306557, -0.2792007327079773, -0.12406232208013535, -0.330289751291275, 0.08922629058361053, -0.11961191147565842, 0.1181199848651886, -0.13290128111839294, 0.22433602809906006, 0.33569014072418213, 0.1744423657655716, 0.1654408574104309, -0.20950627326965332, -0.02670930325984955, -0.0790952742099762, 0.038094185292720795, -0.37114712595939636, 0.20801548659801483, 0.07160946726799011, -0.06578406691551208, -0.49439799785614014, 0.17160923779010773, -0.15472601354122162, -0.3168123662471771, 0.011583453044295311, 0.45131465792655945, -0.2096797376871109, -0.1479446142911911, -0.33071058988571167, -0.025450879707932472, -0.05590790510177612, -0.1177639588713646, -0.04234212636947632, -0.3654841184616089, -0.41156691312789917, -0.16794611513614655, -0.2127000242471695, -0.12154729664325714, 0.08065646886825562, 0.05653291568160057, 0.2683750092983246, 0.04634911194443703, -0.10717754065990448, 0.3505339026451111, -0.03251488506793976, 0.5019223690032959, 0.6358847618103027, 0.0561860054731369, -0.17298999428749084, 0.20446035265922546, -0.1537906974554062, 0.1589086949825287, 0.11654112488031387, -0.12324708700180054, 0.36612412333488464, -0.01374610885977745, -0.08906790614128113, -0.16292224824428558, -0.35578280687332153, -0.0765867605805397, -0.30864420533180237, -0.332286536693573, -0.4312343895435333, 0.5538903474807739, 0.0869346410036087, -0.12688252329826355, 0.5455658435821533, 0.43966925144195557, -0.42226308584213257, 0.38499027490615845, 0.42147958278656006, 0.8774514198303223, -0.18595102429389954, 0.1373995691537857, 0.04201065003871918, -0.16026920080184937, 0.05168401822447777, -0.3475288152694702, -0.05530884861946106, -0.2762124240398407, -0.24809400737285614, -0.2208871841430664, -0.2604961097240448, 0.3207469582557678, 0.559861958026886, 0.07583138346672058, -0.016810018569231033, -0.38471609354019165, 0.04344669729471207, -0.08949518203735352, 0.27761971950531006, -0.2985423803329468, -0.3013462722301483, -0.32948482036590576, -0.0017133112996816635, 0.08052070438861847, -0.18589210510253906, -0.012009703554213047, 0.19345788657665253, 0.1445695161819458, -0.2084541916847229, 0.030950292944908142, -0.052471935749053955, -0.33979785442352295, 0.1762101799249649, -0.20594827830791473, -0.309037446975708, 0.3525288999080658, 0.3789280951023102, -0.03240985423326492, 0.12474425137042999, -0.15079030394554138, 0.03421619161963463, 0.16416534781455994, 0.036457642912864685, -0.4183192253112793, 0.29588836431503296, -0.0074210818856954575, -0.032589465379714966, -0.22835242748260498, 0.23194074630737305, -0.06710255891084671, -0.2458571046590805, 0.026759028434753418, -0.2021273523569107, -0.0008237436413764954, -0.030523033812642097, 0.2954310476779938, -0.14715798199176788, 0.11764118075370789, 0.035088423639535904, -0.004023035988211632, -0.043471626937389374, 0.3414011001586914, -0.14299529790878296, 0.1262921541929245, -0.445561021566391, -0.16892656683921814, 0.21170994639396667, 0.28736403584480286, 0.058248333632946014, 0.4512852132320404, 0.11489748954772949, -0.37264901399612427, -0.3462503254413605, 0.23890173435211182, 0.2295861542224884, -0.640240490436554, -0.11738967150449753, 0.18294741213321686, 0.08421246707439423, -0.144279345870018, 0.08590161800384521, -0.14110036194324493, 0.12003668397665024, 0.03190736100077629, -0.05932244658470154, -0.13300877809524536, 0.2434152513742447, -0.11369264125823975, 0.28190961480140686, 0.11488191038370132, -0.6818990111351013, 0.2275170087814331, 0.23232202231884003, -0.11188925802707672, -0.08810150623321533, 0.23630833625793457, -0.20889736711978912, -0.17031967639923096, 0.32379138469696045, -0.0378168523311615, -0.1207604706287384, -0.07702410221099854, -0.161373570561409, -0.08197084814310074, -0.06799061596393585, -0.07869194447994232, 0.20692887902259827, -0.06291982531547546, -0.017048727720975876, -0.3042809069156647, -0.49944478273391724, -0.23139172792434692, -0.17665117979049683, 0.3165336549282074, 0.003767874091863632, 0.04658741131424904, -0.09507240355014801, 0.5397335886955261, -0.03744614124298096, -0.5059787631034851, 0.094901904463768, 0.0681321918964386, 0.3120402693748474, 0.034516289830207825, -0.14591972529888153, 0.17989830672740936, -0.07848631590604782, -0.13693790137767792, 0.277689129114151, 0.16363105177879333, -0.174312025308609, -0.03909891098737717, -0.08864811062812805, 0.16836261749267578, -0.2907935380935669, -0.04981260001659393, 0.3259466886520386, 0.057866957038640976, -0.40796297788619995, 0.2748285233974457, -0.025851139798760414, -0.04845886677503586, -0.16978859901428223, 0.19934327900409698, -0.1215253546833992, -0.11918705701828003, 0.2989691495895386, 0.27306854724884033, 0.05330362915992737, -0.2868107557296753, 0.05345739424228668, -0.22103077173233032, 0.015947863459587097, 0.009328735992312431, 0.32860395312309265, 0.012122143059968948, -0.020832788199186325, 0.1727491170167923, 0.37379199266433716, -0.00685129314661026, -0.16174565255641937, 0.16351701319217682, 0.29333484172821045, 0.25267139077186584, 0.05881285294890404, 0.05663812533020973, -0.22554051876068115, -0.2934309244155884, 0.21542701125144958, -0.3224655091762543, -0.14082381129264832, 0.13553690910339355, 0.20707112550735474, 0.6086525917053223, -0.2856195867061615, -0.2322920560836792, -0.02158239111304283, 0.036852121353149414, -0.015296587720513344, -0.15858575701713562, -0.12384001910686493, 0.032935939729213715, 0.050056833773851395, -0.012346751987934113, -0.00048206746578216553, 0.22237730026245117, 0.13572625815868378, 0.17438437044620514, -0.004715532064437866, 0.799729585647583, 0.2598021328449249, 0.05425131693482399, 0.12621155381202698, -0.08415507525205612, -0.26833486557006836, 0.24776515364646912, 0.041463155299425125, 0.25548404455184937, -0.2757997512817383, 0.11203797906637192, -0.1659211814403534, -0.2564074993133545, 0.36342760920524597, -0.055747371166944504, 0.11212339997291565, 0.261470764875412, 0.24249941110610962, -0.09338302910327911, 0.3008226752281189, -0.03795836865901947, 0.03558479622006416, -0.24345795810222626, 0.16826896369457245, 0.49422407150268555, 0.0066178953275084496, -0.08793895691633224, 0.2070053517818451, -0.2129443883895874, 0.28650811314582825, -0.01734573394060135, 0.025147199630737305, 0.1361808329820633, 0.5175827145576477, -0.1937052607536316, -0.2439182996749878, -0.2746249735355377, -0.019890189170837402, -0.09084300696849823, 0.7207260131835938, 0.09938762336969376, 0.3605448007583618, -0.04199836030602455, -0.2870457172393799, -0.17296025156974792, -0.17099222540855408, -0.2053612768650055, 0.24526816606521606, 0.3425690531730652, 0.004652520641684532, 0.18946567177772522, 0.36506766080856323, 0.2575705647468567, -0.10267587006092072, 0.12707000970840454, 0.15549974143505096, -0.022972002625465393, -0.014991149306297302, -0.05771453678607941, 0.34342625737190247, -0.601737916469574, -0.3483427166938782, 0.03813617676496506, 0.18957680463790894, -0.1263941079378128, -0.12013594806194305, 0.19930917024612427, 0.2455294132232666, 0.3667791485786438, 0.4701031744480133, 0.04517728090286255, 0.2308683693408966, -0.06627023965120316, -0.02609282173216343, 0.17626677453517914, -0.4044031798839569, -0.009700953960418701, 0.26984310150146484, 0.021731914952397346, -0.24805118143558502, -0.07703839987516403, 0.13353928923606873, 0.035182658582925797, 0.045413970947265625, 0.06070198863744736, 0.47184494137763977, -0.3078612685203552, 0.07112182676792145, 0.09820810705423355, -0.04789381101727486, 0.055905502289533615, -0.10702729970216751, 0.16134335100650787, 0.06454695016145706, 0.047276243567466736, -0.05936720222234726, 0.19970206916332245, -0.05510639026761055, -0.016072936356067657, 0.280705988407135, 0.4276413023471832, 0.26631584763526917, -0.1641879826784134, -0.425706684589386, 0.08378510922193527, 0.3360574245452881, -0.3001607060432434, -0.07545633614063263, 0.2571476995944977, -0.14759552478790283, 0.2642499804496765, -0.18790176510810852, 0.5215163826942444, -0.07734571397304535, 0.09868896007537842, -0.5550121068954468, -0.37780821323394775 ]
https://github.com/huggingface/datasets/issues/2092
How to disable making arrow tables in load_dataset ?
@lhoestq How can we make sure that the data we upload on HuggingFace hub is available in form of preprocessed arrow files ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
23
How to disable making arrow tables in load_dataset ? Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? @lhoestq How can we make sure that the data we upload on HuggingFace hub is available in form of preprocessed arrow files ?
[ -0.11009761691093445, -0.454569548368454, -0.12453418970108032, 0.3275224566459656, 0.13850513100624084, 0.06664984673261642, 0.10800814628601074, 0.005187377333641052, 0.29072925448417664, 0.21631604433059692, -0.07625735551118851, 0.3311561644077301, 0.07582524418830872, 0.26745620369911194, 0.31141000986099243, 0.07535233348608017, -0.012606389820575714, 0.3374110758304596, -0.4707737863063812, -0.07295828312635422, -0.022651050239801407, -0.13127073645591736, -0.028079383075237274, 0.14297258853912354, -0.3697291612625122, -0.12027696520090103, 0.16590248048305511, 0.13189242780208588, -0.4114731252193451, -0.300458163022995, 0.27992576360702515, 0.39187267422676086, -0.21103280782699585, 0.2840103805065155, -0.00011852829629788175, 0.03479158133268356, 0.01484118402004242, 0.04694259911775589, -0.42345383763313293, -0.06300023198127747, -0.10527949035167694, -0.09001310169696808, 0.5526964068412781, 0.13635751605033875, 0.10499804466962814, -0.40110543370246887, -0.22450049221515656, -0.14695557951927185, 0.49656933546066284, -0.12214871495962143, 0.17080360651016235, 0.40020132064819336, -0.03679536655545235, 0.001256363233551383, 0.21029731631278992, 0.390361487865448, -0.4905523657798767, 0.27775079011917114, 0.10352715104818344, 0.04219168424606323, -0.20851176977157593, -0.04912479594349861, -0.004856675863265991, -0.1373189091682434, 0.37560707330703735, -0.03606059029698372, -0.19853922724723816, -0.4639987647533417, 0.07086506485939026, 0.34842732548713684, 0.5639104843139648, -0.32971519231796265, -0.14463582634925842, -0.35947856307029724, 0.24025940895080566, -0.021607279777526855, 0.3293651342391968, 0.22553689777851105, -0.15787647664546967, 0.06734728813171387, -0.2663387954235077, -0.5470803380012512, -0.3333834111690521, -0.21857593953609467, 0.5047807693481445, -0.07691490650177002, -0.10865427553653717, -0.012990325689315796, 0.24918146431446075, -0.07774167507886887, 0.291751891374588, -0.08054568618535995, -0.28878068923950195, 0.21612688899040222, -0.19146402180194855, -0.3093222677707672, -0.2812368869781494, 0.4735993444919586, 0.3961888551712036, 0.4002007842063904, 0.5239637494087219, 0.09594091027975082, 0.0720110759139061, -0.1174759790301323, -0.03171795606613159, 0.1587303876876831, 0.1935538351535797, -0.11553291231393814, 0.2119954377412796, 0.15828284621238708, 0.17208734154701233, 0.00982089526951313, 0.06018121540546417, -0.32965773344039917, -0.19554714858531952, -0.022468339651823044, 0.15448340773582458, -0.15538451075553894, 0.0939442589879036, -0.13745258748531342, 0.26133713126182556, 0.06386914849281311, 0.3560953438282013, 0.056974489241838455, 0.18069204688072205, -0.029545851051807404, -0.1791047602891922, 0.37900596857070923, -0.2480829358100891, -0.2792920768260956, -0.10474253445863724, -0.16943871974945068, -0.18060733377933502, 0.45860475301742554, 0.40906184911727905, -0.11228697001934052, -0.08871176838874817, 0.44870275259017944, 0.05722501873970032, -0.015342529863119125, 0.0484904944896698, -0.1698324978351593, 0.14901842176914215, 0.4378678500652313, -0.02909720502793789, -0.07057888805866241, -0.09944179654121399, 0.12501707673072815, -0.14652565121650696, 0.26501765847206116, -0.36466771364212036, -0.44187527894973755, 0.04447537288069725, 0.05431729927659035, -0.0444459430873394, 0.018259039148688316, -0.7932112812995911, 0.12924621999263763, -0.29538029432296753, 0.34962213039398193, 0.27324116230010986, 0.18343321979045868, -0.04244644194841385, -0.20146602392196655, 0.1859554499387741, 0.35229063034057617, -0.1842116415500641, 0.09594403207302094, 0.1387862116098404, -0.3303411304950714, -0.17801839113235474, 0.11798927187919617, -0.3667711317539215, 0.24279192090034485, -0.15447500348091125, 0.04164428263902664, 0.42121925950050354, -0.09073548018932343, -0.0077269189059734344, -0.07636725902557373, -0.03432321175932884, 0.10334932059049606, 0.147195965051651, -0.10763588547706604, -0.03807428851723671, -0.12160053104162216, -0.2622414827346802, 0.17543143033981323, 0.15813204646110535, -0.18942725658416748, 0.08905267715454102, -0.2200372815132141, -0.047020040452480316, 0.015524350106716156, -0.38545915484428406, 0.13618837296962738, 0.06948871165513992, -0.37775158882141113, 0.061214886605739594, -0.14471888542175293, -0.10637417435646057, 0.07156597077846527, -0.0054896920919418335, 0.09058929979801178, -0.027594344690442085, 0.24646437168121338, -0.8245882987976074, 0.26139771938323975, -0.12073120474815369, -0.014408320188522339, -0.128607839345932, -0.19913402199745178, 0.006570290774106979, 0.1967717856168747, -0.1613357812166214, 0.4198441207408905, 0.04008573293685913, -0.663069486618042, 0.1237020194530487, -0.20789238810539246, -0.438853919506073, 0.12589997053146362, -0.3588653802871704, 0.416915625333786, -0.5347792506217957, 0.14093798398971558, 0.2798047959804535, 0.0023950226604938507, 0.1017087996006012, 0.08576840907335281, -0.0059622228145599365, 0.12026681005954742, -0.08339442312717438, 0.20826861262321472, 0.20246046781539917, 0.45758891105651855, 0.3043972849845886, 0.41586509346961975, 0.1502268761396408, -0.42506611347198486, 0.2253429889678955, -0.4385339915752411, -0.04006249085068703, -0.006869316101074219, -0.00012449920177459717, 0.2602642774581909, -0.4774874746799469, 0.24871179461479187, 0.07176388055086136, -0.0799843892455101, -0.06402374804019928, 0.1609707921743393, -0.26562318205833435, -0.21457719802856445, 0.15596477687358856, 0.1631297469139099, 0.320820152759552, 0.27112090587615967, 0.07313981652259827, -0.03462336212396622, 0.018313884735107422, -0.10535453259944916, -0.05625225603580475, 0.1356915533542633, 0.014498364180326462, -0.09409702569246292, 0.19219863414764404, -0.10286480188369751, 0.13021260499954224, 0.15530171990394592, 0.19307082891464233, 0.0749015212059021, -0.17825663089752197, -0.34132301807403564, 0.24327978491783142, 0.15923842787742615, 0.3405293822288513, -0.01731669157743454, -0.07344638556241989, -0.07063154876232147, -0.5441479682922363, 0.17751680314540863, -0.33890265226364136, -0.17543315887451172, -0.3400018513202667, -0.08054659515619278, -0.28966689109802246, 0.025549575686454773, 0.07969977706670761, -0.22927507758140564, -0.507818341255188, 0.04966207593679428, 0.32251495122909546, -0.019067082554101944, -0.09476499259471893, -0.07931270450353622, -0.058398328721523285, 0.5088119506835938, -0.22794674336910248, 0.018519792705774307, -0.5136082172393799, 0.10253547132015228, 0.18986010551452637, 0.04115254059433937, 0.13106870651245117, 0.11519701033830643, 0.3711618483066559, -0.050433337688446045, 0.14801064133644104, -0.2743232250213623, 0.057141177356243134, 0.21856649219989777, -0.174870565533638, -0.08089892566204071, 0.06508151441812515, 0.2000824213027954, -0.07124370336532593, 0.16529303789138794, 0.011965073645114899, -0.28966042399406433, -0.15789596736431122, 0.09800701588392258, -0.21793004870414734, 0.26116782426834106, -0.14661847054958344, 0.07851085066795349, 0.08478136360645294, -0.23726414144039154, 0.35609370470046997, 0.0727703720331192, 0.16594019532203674, 0.18217472732067108, 0.185373917222023, 0.022503551095724106, -0.23591843247413635, 0.13326643407344818, -0.07921644300222397, -0.43343499302864075, 0.44755715131759644, -0.23340719938278198, -0.26123160123825073, 0.3169552683830261, 0.1296931654214859, 0.23791652917861938, 0.11632411181926727, -0.525443434715271, 0.12586615979671478, -0.17058761417865753, 0.031962212175130844, -0.16008839011192322, 0.0561918169260025, 0.31847721338272095, 0.08640232682228088, -0.002733517438173294, -0.14391568303108215, 0.10065688192844391, 0.30760908126831055, -0.04589492827653885, -0.04212484508752823, 0.04266289994120598, 0.014901220798492432, -0.41008028388023376, 0.436357319355011, -0.06406351178884506, 0.22185924649238586, 0.352867990732193, 0.1127995103597641, 0.39645838737487793, -0.2960090637207031, 0.28078949451446533, -0.5286573767662048, -0.08072292804718018, 0.21563352644443512, 0.1306062489748001, 0.42946910858154297, 0.1301453411579132, -0.25061318278312683, 0.037022512406110764, 0.012281160801649094, -0.22761978209018707, 0.08424945920705795, -0.48711293935775757, -0.10967659205198288, -0.03299196809530258, -0.0747421532869339, -0.06108793988823891, -0.20151954889297485, 0.14682422578334808, -0.0854729413986206, 0.4783971905708313, -0.15602830052375793, -0.4461261034011841, -0.12905697524547577, -0.3959271013736725, 0.11367077380418777, -0.12003059685230255, -0.11012228578329086, -0.013036515563726425, -0.05119630694389343, 0.362704336643219, 0.2612914443016052, 0.3381395637989044, -0.017581092193722725, -0.22695370018482208, -0.1811385452747345, -0.15221022069454193, -0.5588306784629822, 0.27309682965278625, -0.02500278688967228, 0.05304707586765289, -0.43213844299316406, 0.23220603168010712, -0.15905073285102844, -0.4867694675922394, -0.034731827676296234, 0.34220433235168457, -0.16919051110744476, -0.15656112134456635, -0.2592446804046631, 0.007548999041318893, 0.009630264714360237, -0.19625800848007202, 0.023809293285012245, -0.33799025416374207, -0.3770414888858795, -0.2375992089509964, -0.13673622906208038, -0.0702640488743782, 0.06932762265205383, 0.13054846227169037, 0.3056548833847046, -0.04910266771912575, -0.050107091665267944, 0.6013350486755371, 0.13187161087989807, 0.3350689113140106, 0.7355260252952576, 0.04717784747481346, -0.3311445713043213, -0.0033869612962007523, -0.04843290150165558, 0.3059706687927246, 0.36209601163864136, -0.014643187634646893, 0.27495452761650085, -0.11066406965255737, -0.0342351570725441, -0.4976648688316345, -0.299025297164917, 0.07015886902809143, -0.26178833842277527, -0.22272199392318726, -0.21904562413692474, 0.5680630207061768, 0.01899684965610504, -0.1520610749721527, 0.5435665845870972, 0.7026254534721375, -0.2865084707736969, 0.3620842695236206, 0.2507551908493042, 1.0189743041992188, -0.12584292888641357, 0.17650224268436432, 0.16446074843406677, -0.15961353480815887, 0.2215939462184906, -0.1565438210964203, -0.07280983030796051, -0.11081898212432861, -0.18128374218940735, -0.1127716600894928, -0.20244774222373962, 0.2349400818347931, 0.3957485556602478, 0.07975761592388153, 0.00022669881582260132, -0.35056638717651367, 0.02467796951532364, -0.2778591811656952, 0.1437406837940216, -0.30004170536994934, -0.5094464421272278, -0.5215592980384827, 0.09045448899269104, 0.14921383559703827, -0.06680415570735931, -0.060957085341215134, 0.17196886241436005, 0.0723223090171814, -0.15978670120239258, 0.08206327259540558, -0.15385770797729492, -0.2308884859085083, -0.05092424899339676, 0.17181140184402466, -0.295221209526062, 0.17727892100811005, 0.30743637681007385, 0.12403546273708344, -0.06675077974796295, -0.19363762438297272, 0.09378500282764435, 0.01989610865712166, 0.04197273030877113, -0.45125672221183777, 0.1863233894109726, 0.043651703745126724, -0.11459825932979584, -0.19313406944274902, -0.014962740242481232, 0.06897543370723724, -0.16750189661979675, 0.059537529945373535, -0.12824410200119019, -0.026072822511196136, -0.17716990411281586, 0.2504000961780548, -0.1011197417974472, 0.29991716146469116, 0.04533236846327782, 0.07862749695777893, 0.11160852015018463, 0.1935480684041977, -0.005319125950336456, 0.35072562098503113, -0.29223671555519104, -0.10052990913391113, 0.17093510925769806, 0.1227681115269661, -0.3113184869289398, 0.3636634349822998, 0.07271920144557953, -0.3071184754371643, -0.3510376214981079, 0.31433361768722534, 0.39192697405815125, -0.8428546786308289, -0.007308340631425381, 0.2356802225112915, -0.07065288722515106, -0.19131609797477722, 0.1781540811061859, 0.13873495161533356, -0.07107465714216232, 0.06333361566066742, 0.06305544078350067, -0.3358898460865021, 0.33091866970062256, 0.11526286602020264, 0.22596515715122223, -0.05700022727251053, -0.7230482697486877, 0.1906856894493103, 0.23466338217258453, -0.21086715161800385, -0.011026802472770214, 0.1433054655790329, -0.137085422873497, -0.19738073647022247, 0.21826612949371338, 0.0825316458940506, -0.22963781654834747, -0.03100038319826126, -0.12594540417194366, -0.25822654366493225, -0.15487268567085266, -0.1498701274394989, 0.16339357197284698, -0.07318993657827377, -0.10375158488750458, -0.3107850253582001, -0.34719908237457275, -0.09703433513641357, -0.17016015946865082, 0.2492840588092804, 0.059742771089076996, 0.1258668601512909, -0.2683151960372925, 0.6817311644554138, 0.10243114829063416, -0.424130916595459, 0.12370087206363678, 0.2305523008108139, 0.4535220265388489, 0.11636863648891449, -0.34048205614089966, -0.12076140940189362, -0.19149327278137207, 0.2119707614183426, 0.3374478220939636, 0.376667857170105, -0.13558083772659302, -0.11386912316083908, 0.046649735420942307, 0.15650536119937897, -0.34548693895339966, 0.09470850974321365, 0.399951696395874, 0.054244592785835266, -0.2553442716598511, 0.25094133615493774, 0.08727262914180756, 0.04651409387588501, -0.06088649109005928, 0.2509109377861023, 0.04695048928260803, -0.10933028161525726, 0.2647150754928589, 0.23522019386291504, 0.2208651602268219, -0.10220593214035034, 0.049036577343940735, -0.14804130792617798, 0.14477328956127167, 0.030469631776213646, 0.1158178299665451, -0.21760958433151245, -0.08587251603603363, 0.3323887884616852, 0.40365949273109436, -0.006565004587173462, -0.04354853928089142, -0.026687301695346832, 0.4827600419521332, 0.17136722803115845, 0.19139033555984497, 0.19797174632549286, -0.2922000586986542, -0.36436834931373596, -0.02747383713722229, -0.10327298939228058, -0.15354835987091064, 0.15260031819343567, 0.4873872995376587, 0.3485185205936432, -0.4362680912017822, -0.27602115273475647, -0.057155791670084, -0.030401580035686493, -0.03833381086587906, -0.17584317922592163, -0.14531317353248596, -0.016543269157409668, -0.08562317490577698, -0.0803147554397583, -0.01605162024497986, 0.29371050000190735, 0.08977741003036499, 0.22874358296394348, 0.06396045535802841, 0.3939080536365509, 0.2061113715171814, 0.1510290801525116, 0.3409268856048584, 0.06315908581018448, 0.005955345928668976, 0.3230859935283661, 0.09474804252386093, 0.26469501852989197, -0.11242306232452393, -0.05002500116825104, -0.17274682223796844, -0.008248007856309414, 0.3032369911670685, -0.0925094336271286, 0.04960792511701584, 0.3993668854236603, 0.17488209903240204, 0.13276180624961853, 0.13119599223136902, 0.07551182061433792, -0.037275683134794235, -0.19491401314735413, -0.08900018036365509, 0.4191935062408447, -0.018863890320062637, 0.10955259203910828, 0.09706978499889374, -0.2161712646484375, -0.035092875361442566, -0.030807457864284515, -0.04942282289266586, 0.09700558334589005, 0.4881446659564972, -0.2978171408176422, -0.27391836047172546, -0.2831573188304901, 0.03072619065642357, 0.058216046541929245, 0.8948063850402832, 0.24009625613689423, 0.2643411159515381, 0.011320699006319046, -0.35473763942718506, -0.23992446064949036, -0.03300567716360092, -0.07517018914222717, 0.2713894248008728, 0.18881677091121674, -0.1306464523077011, 0.20978876948356628, 0.49190324544906616, 0.2400510013103485, -0.1573125123977661, 0.15948103368282318, -0.0028054378926753998, -0.06643067300319672, 0.014024423435330391, 0.03036428987979889, 0.1939195841550827, -0.40938982367515564, -0.15085777640342712, 0.16415488719940186, 0.25519564747810364, -0.12886568903923035, 0.060990601778030396, 0.2979823648929596, 0.046996403485536575, 0.2677920460700989, 0.35228192806243896, 0.10147859901189804, 0.13590431213378906, 0.0656997412443161, -0.09644418209791183, -0.05083136633038521, -0.45656275749206543, 0.001053699292242527, 0.22056534886360168, -0.007412061095237732, -0.3085286319255829, -0.12220242619514465, 0.03459085151553154, 0.07050612568855286, -0.0084912721067667, 0.0030951574444770813, 0.27910271286964417, -0.28368788957595825, 0.07359575480222702, 0.10593626648187637, -0.05502406880259514, 0.19091343879699707, 0.009986512362957, -0.005455479025840759, 0.016160106286406517, 0.04966603219509125, 0.04646274447441101, 0.4059775471687317, 0.06410929560661316, -0.03982030600309372, 0.14553287625312805, 0.336378276348114, 0.3294087052345276, -0.19508333504199982, -0.5431336164474487, 0.022326968610286713, 0.0680248886346817, -0.320487380027771, -0.019293883815407753, 0.5207047462463379, -0.19290761649608612, 0.0761837512254715, -0.1330619752407074, 0.6729960441589355, 0.03514324128627777, 0.2069900780916214, -0.2796562910079956, -0.2860947847366333 ]
https://github.com/huggingface/datasets/issues/2092
How to disable making arrow tables in load_dataset ?
We're still working on this :) This will be available soon Users will be able to put their processed arrow files on the Hub
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
24
How to disable making arrow tables in load_dataset ? Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? We're still working on this :) This will be available soon Users will be able to put their processed arrow files on the Hub
[ -0.3103680908679962, -0.2093832641839981, -0.1464322805404663, 0.2652354836463928, 0.03456985950469971, 0.06669414788484573, 0.2737097144126892, 0.11328861117362976, 0.3428305387496948, 0.22532910108566284, 0.022578734904527664, 0.5258630514144897, 0.02045029029250145, 0.13482145965099335, 0.2148841917514801, 0.210486501455307, -0.05675441771745682, 0.3835603892803192, -0.3702238202095032, -0.021793153136968613, -0.013230649754405022, -0.242534801363945, -0.03695673495531082, 0.16542592644691467, -0.3527921140193939, -0.1516541689634323, 0.20509211719036102, -0.07997714728116989, -0.3733310103416443, -0.35534214973449707, 0.28087419271469116, 0.37138625979423523, -0.2569584846496582, 0.2140727937221527, -0.00011598391574807465, 0.08175255358219147, 0.11647583544254303, 0.12940454483032227, -0.351127564907074, 0.027133382856845856, -0.2709638774394989, -0.05063112825155258, 0.5330008864402771, 0.04818948358297348, 0.17402109503746033, -0.31402575969696045, -0.3261057436466217, -0.23735786974430084, 0.3075523376464844, -0.10841719806194305, 0.19016146659851074, 0.13381442427635193, -0.12586542963981628, 0.02142191119492054, 0.33723756670951843, 0.2644141912460327, -0.5166212916374207, 0.1766563057899475, 0.002949036657810211, 0.01868554763495922, -0.2683088183403015, -0.06923961639404297, -0.08066335320472717, -0.16705627739429474, 0.27918484807014465, -0.1535366177558899, -0.11417867988348007, -0.4275366961956024, 0.08030194044113159, 0.25991585850715637, 0.7489745020866394, -0.3426685333251953, -0.10134062170982361, -0.22712108492851257, 0.2399844378232956, 0.04632032662630081, 0.2915193438529968, 0.24840134382247925, -0.14381232857704163, 0.04929106682538986, -0.3220912516117096, -0.5807151198387146, -0.33129575848579407, -0.2287512570619583, 0.3389686644077301, -0.10106948018074036, -0.0031775953248143196, -0.004358038306236267, 0.2739903926849365, -0.03224625438451767, 0.6454591155052185, -0.09578247368335724, -0.42266878485679626, 0.16843155026435852, -0.2579936385154724, -0.34509995579719543, -0.25678542256355286, 0.394075483083725, 0.26975253224372864, 0.3345092535018921, 0.5258702635765076, 0.08301098644733429, 0.10218413174152374, -0.06016049534082413, -0.08298125863075256, 0.15262678265571594, 0.33083879947662354, -0.053974103182554245, 0.2798464894294739, -0.029062220826745033, 0.09410735964775085, 0.03007427789270878, 0.0683988481760025, -0.4570538401603699, -0.17364351451396942, 0.0321195051074028, -0.0016697701066732407, -0.185809925198555, 0.05486472696065903, -0.1981116235256195, 0.18231266736984253, 0.0743919089436531, 0.33495256304740906, 0.04474314674735069, 0.29450100660324097, 0.07408751547336578, -0.18319404125213623, 0.2993355989456177, -0.20953220129013062, -0.1715039312839508, -0.04727117717266083, -0.20762692391872406, -0.24396297335624695, 0.32116222381591797, 0.38551634550094604, 0.021937459707260132, -0.15190871059894562, 0.4505894184112549, -0.06351342797279358, 0.017168819904327393, 0.2573392689228058, -0.18189886212348938, 0.17044919729232788, 0.5423358082771301, 0.009039577096700668, -0.1620636284351349, -0.11043323576450348, 0.028239622712135315, -0.07017557322978973, 0.450962632894516, -0.41744282841682434, -0.37167301774024963, 0.06009342521429062, 0.10577055811882019, -0.07882510125637054, -0.0629553496837616, -0.7715758681297302, 0.04481508582830429, -0.13295581936836243, 0.3094380795955658, 0.2648729085922241, 0.12426833808422089, -0.07665535807609558, -0.20447638630867004, 0.08952252566814423, 0.2795030474662781, -0.3330899775028229, 0.18440228700637817, -0.056063536554574966, -0.20377248525619507, -0.17547163367271423, -0.0012653246521949768, -0.4258304536342621, 0.20051780343055725, -0.1304038017988205, 0.011864930391311646, 0.519241988658905, -0.06679459661245346, -0.00704536959528923, 0.0726572573184967, 0.04367688298225403, -0.09003673493862152, 0.15256065130233765, -0.06359745562076569, -0.028689783066511154, -0.14478933811187744, -0.2948601245880127, 0.051701489835977554, 0.23703931272029877, -0.16872859001159668, 0.10822080075740814, -0.2682802379131317, 0.0947844386100769, -0.09104038774967194, -0.2780417501926422, 0.12101103365421295, 0.23022261261940002, -0.23424698412418365, 0.1505139172077179, -0.13245521485805511, -0.10915670543909073, 0.1529867947101593, 0.0997961163520813, -0.09653453528881073, -0.0026658247224986553, 0.17292949557304382, -0.6459125280380249, 0.24462729692459106, -0.13482248783111572, -0.003556903451681137, -0.01431843638420105, -0.258192777633667, 0.05533628910779953, 0.12925364077091217, -0.16762375831604004, 0.396889865398407, 0.06442661583423615, -0.7594503164291382, -0.021041695028543472, -0.2730541527271271, -0.3172902762889862, 0.0633024051785469, -0.34347018599510193, 0.20906761288642883, -0.39969757199287415, 0.19454006850719452, 0.2741885483264923, 0.017556961625814438, 0.09690618515014648, 0.04658902436494827, -0.005608618259429932, 0.19213266670703888, -0.18212959170341492, 0.21623337268829346, 0.24959497153759003, 0.3024965524673462, 0.27501368522644043, 0.39577704668045044, 0.0631694346666336, -0.46250131726264954, 0.4302773177623749, -0.4933481812477112, -0.0508708693087101, -0.029959585517644882, 0.05758151784539223, 0.2281268984079361, -0.4388936460018158, 0.2713940143585205, 0.01436237245798111, -0.06406927108764648, -0.0025126785039901733, 0.13787299394607544, -0.15250861644744873, -0.1967373788356781, 0.06996701657772064, 0.25558212399482727, 0.2578306496143341, 0.2911309003829956, 0.15280592441558838, -0.02449389547109604, 0.02167266234755516, 0.07968999445438385, -0.001817852258682251, 0.14290651679039001, 0.01625654101371765, -0.13542960584163666, 0.11111244559288025, 0.013604287058115005, 0.22299444675445557, 0.17357304692268372, 0.08487847447395325, -0.021246889606118202, -0.13281014561653137, -0.35867831110954285, 0.30632710456848145, 0.10056118667125702, 0.4162057638168335, 0.05292510241270065, -0.02200417034327984, -0.16834630072116852, -0.5321383476257324, 0.10237254202365875, -0.2003423422574997, -0.11421875655651093, -0.31293022632598877, -0.10569898039102554, -0.31635570526123047, -0.008168987929821014, 0.07854828983545303, -0.10673430562019348, -0.4908875823020935, -0.041364915668964386, 0.34475618600845337, -0.03847421333193779, -0.020731117576360703, -0.0190738532692194, -0.22083087265491486, 0.39610451459884644, -0.12125856429338455, 0.06607634574174881, -0.6435343623161316, -0.022368043661117554, 0.24652057886123657, 0.1031157523393631, 0.0695401206612587, 0.11059567332267761, 0.26265034079551697, 0.09765405207872391, 0.1982639580965042, -0.21043264865875244, 0.044212013483047485, 0.15285679697990417, -0.08807805180549622, -0.140304833650589, 0.11372367292642593, 0.1261759251356125, -0.0997869074344635, 0.12349304556846619, -0.12224624305963516, -0.25449123978614807, -0.1200752928853035, 0.16815818846225739, -0.25861844420433044, 0.29790249466896057, -0.13292309641838074, -0.015744343400001526, 0.10734562575817108, -0.22317913174629211, 0.17706865072250366, 0.12415769696235657, 0.18619821965694427, 0.1440703421831131, 0.23284697532653809, -0.019337335601449013, -0.055661991238594055, -0.0799492746591568, -0.026209548115730286, -0.3828001618385315, 0.43291524052619934, -0.3228119909763336, -0.1916913092136383, 0.3459973931312561, 0.20780031383037567, 0.3050367534160614, 0.18488630652427673, -0.4744650721549988, 0.3793216943740845, -0.21856746077537537, 0.012955263257026672, -0.2385336458683014, -0.020847415551543236, 0.24468915164470673, 0.17603306472301483, -0.04186924546957016, -0.1761094331741333, 0.22955116629600525, 0.254428505897522, 0.043762072920799255, -0.05482728034257889, 0.025107568129897118, 0.07713748514652252, -0.32374414801597595, 0.35637736320495605, -0.12451094388961792, 0.14903774857521057, 0.22948341071605682, 0.02692384272813797, 0.3668178915977478, -0.3066944479942322, 0.3087342381477356, -0.4477263391017914, -0.04154646396636963, 0.14450031518936157, 0.06411369144916534, 0.23907336592674255, -0.12017516046762466, -0.16019171476364136, 0.009652137756347656, 0.13191920518875122, -0.16126178205013275, -0.034619301557540894, -0.7436398863792419, -0.11734678596258163, -0.05583340674638748, -0.048046380281448364, -0.029278920963406563, -0.29881659150123596, 0.15224358439445496, -0.1356479525566101, 0.4277975261211395, -0.23158060014247894, -0.3994406759738922, -0.08729664981365204, -0.2561008334159851, 0.08360746502876282, -0.18275335431098938, 0.010034632869064808, -0.011882603168487549, 0.10195163637399673, 0.2888182997703552, 0.2473779171705246, 0.31611064076423645, -0.2173168808221817, -0.09040240943431854, -0.016790252178907394, 0.026806727051734924, -0.5356783270835876, 0.2516006827354431, 0.10035423934459686, 0.12652632594108582, -0.5037959218025208, 0.1540515422821045, 0.03338959068059921, -0.4428296983242035, -0.09433513879776001, 0.3720589280128479, -0.2775089740753174, -0.2339152991771698, -0.2597721219062805, 0.11570442467927933, -0.005063585937023163, -0.14388245344161987, 0.06100139766931534, -0.30927109718322754, -0.5351693034172058, -0.3712533116340637, -0.21949896216392517, -0.20148634910583496, 0.045150164514780045, 0.1697089821100235, 0.275542289018631, -0.05764761194586754, -0.0901065319776535, 0.4645027816295624, 0.010013572871685028, 0.31386181712150574, 0.5680856108665466, 0.11471140384674072, -0.22085687518119812, 0.10534702986478806, -0.255528062582016, 0.3461347818374634, 0.1833428144454956, -0.14667698740959167, 0.2589336335659027, -0.12999674677848816, -0.14730150997638702, -0.26576685905456543, -0.3406086266040802, -0.07620003074407578, -0.2886855900287628, -0.19258412718772888, -0.40183547139167786, 0.4588521122932434, 0.04647105559706688, -0.19205237925052643, 0.6431564092636108, 0.3190077543258667, -0.3394661247730255, 0.4343406558036804, 0.35486021637916565, 0.8494633436203003, -0.11275000870227814, 0.09163419902324677, 0.021783359348773956, -0.07936988770961761, 0.09846832603216171, -0.2582959234714508, -0.030872926115989685, -0.21900826692581177, -0.23961307108402252, -0.15526890754699707, -0.29671531915664673, 0.3031740188598633, 0.6141327023506165, 0.10159310698509216, -0.0674712136387825, -0.43529802560806274, -0.06423154473304749, -0.22605811059474945, 0.14627401530742645, -0.2950592339038849, -0.3401351869106293, -0.3785335123538971, 0.11251506209373474, 0.1348389983177185, -0.25777626037597656, 0.019770972430706024, 0.18664675951004028, 0.044251907616853714, -0.13104507327079773, 0.11500880122184753, -0.006273074075579643, -0.14191469550132751, 0.1525864601135254, -0.11896999180316925, -0.21751034259796143, 0.27588433027267456, 0.3597989082336426, 0.023815177381038666, 0.05252740904688835, -0.1432894617319107, 0.20254570245742798, 0.16436854004859924, 0.15498894453048706, -0.3488694727420807, 0.19793106615543365, 0.028944095596671104, -0.12030524760484695, -0.25547856092453003, 0.06468941271305084, 0.09313217550516129, -0.2896290421485901, 0.21492335200309753, -0.035378023982048035, 0.08911972492933273, -0.17228299379348755, 0.28179627656936646, -0.076803058385849, 0.22136801481246948, 0.042048241943120956, 0.11818341910839081, 0.1777944415807724, 0.16221804916858673, 0.1248469427227974, 0.1956324577331543, -0.34179893136024475, 0.005192304030060768, 0.18400828540325165, 0.2707306444644928, -0.2205856442451477, 0.3048519194126129, -0.009532231837511063, -0.30667591094970703, -0.40914058685302734, 0.4217348098754883, 0.31462687253952026, -0.8149152398109436, -0.057242151349782944, 0.20928652584552765, -0.001470997929573059, -0.05409606173634529, 0.08220001310110092, -0.059298425912857056, 0.12207123637199402, -0.05223577097058296, -0.014666099101305008, -0.29082223773002625, 0.2115478217601776, 0.11225216090679169, 0.31091535091400146, -0.08971324563026428, -0.7034544944763184, 0.1804855912923813, 0.1536325365304947, -0.21999390423297882, -0.05999165028333664, 0.22686773538589478, -0.10255955159664154, -0.3732077479362488, 0.27899935841560364, -0.028009863570332527, -0.222134068608284, -0.0012283716350793839, -0.09534712135791779, -0.13741502165794373, -0.16942602396011353, -0.1414269357919693, 0.14860652387142181, -0.04524805396795273, -0.02762632630765438, -0.32364508509635925, -0.39718443155288696, -0.21675828099250793, -0.07180205732584, 0.22952228784561157, 0.019503172487020493, 0.07253839075565338, -0.12252714484930038, 0.6832389831542969, -0.02252528816461563, -0.38176047801971436, 0.15879151225090027, 0.13563942909240723, 0.3880700469017029, 0.10009890049695969, -0.15600229799747467, 0.022011306136846542, -0.15475603938102722, 0.1818905472755432, 0.22451674938201904, 0.0930376648902893, -0.011964090168476105, -0.09836878627538681, 0.02726149745285511, 0.1843191236257553, -0.3156690001487732, 0.027468804270029068, 0.39715179800987244, 0.09730751812458038, -0.37813812494277954, 0.25858670473098755, 0.12905237078666687, 0.001201855018734932, -0.15757521986961365, 0.22288857400417328, 0.056625980883836746, -0.1367579847574234, 0.1579705774784088, 0.23538866639137268, 0.06973542273044586, -0.23579971492290497, 0.08002136647701263, -0.11769386380910873, -0.0643167570233345, 0.08031262457370758, 0.26742810010910034, -0.1702556163072586, -0.1227637380361557, 0.2504900097846985, 0.2941710650920868, -0.012186907231807709, 0.13033489882946014, 0.13126802444458008, 0.42209088802337646, 0.46821123361587524, 0.06443088501691818, 0.08939240127801895, -0.1402352750301361, -0.33950570225715637, -0.0389651358127594, -0.19892972707748413, -0.21404698491096497, 0.24711006879806519, 0.2983279824256897, 0.490026593208313, -0.31157928705215454, -0.19525699317455292, -0.058615218847990036, 0.0022102780640125275, 0.059964705258607864, -0.25111645460128784, -0.1193675696849823, 0.028369687497615814, -0.1294395476579666, -0.07326877117156982, 0.19702045619487762, 0.2804989814758301, 0.13958126306533813, 0.21686866879463196, 0.1357160359621048, 0.65545254945755, 0.2773422598838806, 0.13340798020362854, 0.26086297631263733, -0.0865955725312233, -0.15077529847621918, 0.3010554313659668, 0.09828481078147888, 0.21403852105140686, -0.21611309051513672, 0.012824619188904762, -0.1068076491355896, -0.014180765487253666, 0.303836852312088, -0.1228850781917572, -0.00219029001891613, 0.37918782234191895, 0.16927406191825867, 0.15029427409172058, 0.19707095623016357, 0.08628816902637482, -0.004229721613228321, -0.2414918690919876, 0.01573595404624939, 0.44445785880088806, 0.0776921957731247, 0.15331913530826569, 0.33109694719314575, -0.3567514717578888, 0.11817411333322525, 0.007983051240444183, 0.06466596573591232, 0.05851779505610466, 0.6564620137214661, -0.3163786828517914, -0.27993401885032654, -0.386147141456604, 0.03665723279118538, -0.04521925374865532, 0.8656641840934753, -0.008355442434549332, 0.2765960991382599, 0.04942768067121506, -0.2842506170272827, -0.22945477068424225, -0.06622462719678879, -0.04758777096867561, 0.3431774973869324, 0.22840720415115356, -0.13737468421459198, 0.2349415421485901, 0.40117383003234863, 0.2569219172000885, -0.16220152378082275, 0.2006436288356781, 0.09885464608669281, -0.10666523873806, 0.0774332731962204, 0.05706442892551422, 0.3371535837650299, -0.5004717707633972, -0.2039077877998352, 0.10735639929771423, 0.2701491713523865, -0.074905626475811, -0.004189681261777878, 0.13133685290813446, 0.3006612956523895, 0.40708446502685547, 0.4192463159561157, 0.054168038070201874, 0.2003682553768158, 0.027327388525009155, 0.08396586030721664, -0.02593439444899559, -0.4960833787918091, -0.0011240886524319649, 0.2126312553882599, 0.06386088579893112, -0.387554794549942, -0.09279879182577133, 0.1831550896167755, 0.027768198400735855, -0.1626909375190735, -0.09975219517946243, 0.35954657196998596, -0.2504124939441681, 0.024056313559412956, 0.12899169325828552, -0.007783324457705021, 0.04471520707011223, -0.07871005684137344, 0.054205309599637985, 0.022709639742970467, 0.10669669508934021, 0.021029049530625343, 0.29800620675086975, 0.08335559815168381, -0.1187908947467804, 0.23987634479999542, 0.370780348777771, 0.25113731622695923, -0.1286712884902954, -0.36799439787864685, -0.001975230872631073, 0.2696503698825836, -0.2883358895778656, 0.0905914157629013, 0.40259525179862976, -0.07588021457195282, 0.1464562863111496, -0.11018452048301697, 0.5680814981460571, -0.015649713575839996, 0.1962842047214508, -0.4282814562320709, -0.33015578985214233 ]
https://github.com/huggingface/datasets/issues/2092
How to disable making arrow tables in load_dataset ?
Hi! You can now use `Dataset.push_to_hub` to store preprocessed files on the Hub. And to avoid downloading preprocessed files, you can use streaming by setting `streaming=True` in `load_dataset`.
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
28
How to disable making arrow tables in load_dataset ? Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? Hi! You can now use `Dataset.push_to_hub` to store preprocessed files on the Hub. And to avoid downloading preprocessed files, you can use streaming by setting `streaming=True` in `load_dataset`.
[ -0.40522024035453796, -0.19687992334365845, -0.1395868957042694, 0.1919092833995819, 0.16952607035636902, 0.03651546686887741, 0.14603056013584137, 0.1882191300392151, 0.24237900972366333, 0.21509605646133423, -0.06278669089078903, 0.5453226566314697, 0.013995257206261158, 0.20260123908519745, 0.2590070068836212, 0.2459295094013214, 0.04462318867444992, 0.3764570951461792, -0.34324660897254944, -0.03559574484825134, -0.119411900639534, -0.20885753631591797, -0.03276371583342552, 0.08095740526914597, -0.31355249881744385, -0.08689714968204498, 0.20037193596363068, -0.0003807954490184784, -0.4373742341995239, -0.38603097200393677, 0.14985226094722748, 0.49946311116218567, -0.23887823522090912, 0.21379569172859192, -0.00011493724741740152, 0.1324709802865982, 0.07505220919847488, -0.011510934680700302, -0.36034640669822693, -0.05293677747249603, -0.2284916341304779, -0.05737922340631485, 0.4460432231426239, 0.009770005941390991, 0.1485012173652649, -0.3472619652748108, -0.24229209125041962, -0.20345264673233032, 0.27589571475982666, 0.008384927175939083, 0.20556654036045074, 0.05844690650701523, -0.1051626205444336, 0.06620065122842789, 0.3517313301563263, 0.31891074776649475, -0.5356536507606506, 0.08561360836029053, 0.12333957850933075, 0.15561221539974213, -0.22097322344779968, 0.02825785242021084, -0.06878304481506348, -0.09462077915668488, 0.3799184560775757, -0.10098002851009369, -0.12726891040802002, -0.4841547906398773, 0.11107902228832245, 0.18757471442222595, 0.6616780161857605, -0.48480895161628723, -0.09517956525087357, -0.2005397379398346, 0.14136503636837006, -0.013462795875966549, 0.26180970668792725, 0.22291843593120575, -0.1413002610206604, 0.11909158527851105, -0.41372886300086975, -0.7122364044189453, -0.3476790487766266, -0.318808376789093, 0.4035724401473999, -0.050534725189208984, 0.05527287721633911, -0.014823608100414276, 0.24200230836868286, 0.09364264458417892, 0.7132236957550049, -0.14163601398468018, -0.4654320180416107, 0.12013007700443268, -0.20129378139972687, -0.296097993850708, -0.23369315266609192, 0.3532528579235077, 0.3268962502479553, 0.30072832107543945, 0.5257328748703003, 0.1012997180223465, 0.12032616138458252, -0.16256055235862732, -0.04795693978667259, 0.10023434460163116, 0.3051166236400604, 0.004704393446445465, 0.2406802475452423, 0.052802976220846176, 0.16673126816749573, -0.006733119487762451, 0.06370631605386734, -0.38631150126457214, -0.0642329752445221, 0.0740734413266182, 0.10555568337440491, -0.2428118884563446, 0.08408483862876892, -0.08917666971683502, 0.23815205693244934, 0.036452457308769226, 0.2978091835975647, 0.1267216056585312, 0.2991117835044861, 0.11869798600673676, -0.17223308980464935, 0.315485417842865, -0.17990364134311676, -0.21744613349437714, -0.07984751462936401, -0.16134198009967804, -0.2780400514602661, 0.2523925304412842, 0.4140523374080658, -0.12954574823379517, -0.03518296033143997, 0.4412533938884735, -0.052903272211551666, 0.014899831265211105, 0.2605845630168915, -0.23352529108524323, 0.2636101543903351, 0.4753926992416382, 0.09480822086334229, -0.11496841162443161, -0.1758597046136856, 0.13402998447418213, -0.05779913067817688, 0.4778018295764923, -0.4014234244823456, -0.47304031252861023, 0.1140342652797699, 0.11856652796268463, -0.04371014982461929, 0.10156722366809845, -0.7802326083183289, 0.03325243666768074, -0.19619157910346985, 0.24774107336997986, 0.1963983178138733, 0.12924501299858093, -0.1242009848356247, -0.20544584095478058, 0.18757659196853638, 0.2165994793176651, -0.3781053125858307, 0.21781092882156372, 0.035789888352155685, -0.27493980526924133, -0.09090433269739151, -0.0544234924018383, -0.405337393283844, 0.3176674246788025, -0.14750690758228302, 0.017469413578510284, 0.43303877115249634, -0.1290951371192932, -0.19485603272914886, 0.14469656348228455, 0.07051950693130493, -0.03225984796881676, 0.13965792953968048, 0.007519047241657972, 0.02853945828974247, -0.08936687558889389, -0.2817648947238922, 0.1200013980269432, 0.22125613689422607, -0.03799089789390564, 0.040314946323633194, -0.22171321511268616, -0.04584839195013046, -0.12443850934505463, -0.19125160574913025, 0.1378885805606842, 0.13993017375469208, -0.15249712765216827, 0.23469653725624084, -0.17841485142707825, -0.007214716635644436, 0.16838282346725464, 0.16448187828063965, -0.08998708426952362, -0.03590105473995209, 0.13167056441307068, -0.6245196461677551, 0.25788453221321106, -0.14037549495697021, 0.011609088629484177, -0.1429445445537567, -0.2729825973510742, 0.04146236926317215, 0.15173009037971497, -0.16578425467014313, 0.3179362416267395, 0.09743167459964752, -0.6045364141464233, -0.08116541802883148, -0.27403074502944946, -0.27229663729667664, 0.16843560338020325, -0.30165085196495056, 0.17431120574474335, -0.3595044016838074, 0.2242802381515503, 0.21158018708229065, 0.038342155516147614, 0.0901772528886795, 0.0013959258794784546, -0.017937347292900085, 0.10954686999320984, -0.15877705812454224, 0.33145102858543396, 0.26010552048683167, 0.34519320726394653, 0.21217390894889832, 0.2922513782978058, 0.07942824810743332, -0.37488606572151184, 0.19837798178195953, -0.44003093242645264, 0.02479792758822441, -0.016977276653051376, -0.02978704124689102, 0.291837215423584, -0.33872702717781067, 0.28182193636894226, 0.017397142946720123, -0.046287886798381805, 0.08017653226852417, 0.17535483837127686, -0.15419450402259827, -0.21780270338058472, 0.11250494420528412, 0.38798683881759644, 0.2013576477766037, 0.279136061668396, 0.08184421062469482, 0.04475361853837967, 0.1026158407330513, 0.11409883201122284, -0.11839412897825241, 0.13819512724876404, -0.029090516269207, -0.24651312828063965, 0.16562850773334503, 0.06120166555047035, 0.25393617153167725, 0.17692285776138306, 0.1147448867559433, 0.09816554933786392, -0.12338344007730484, -0.3171583116054535, 0.3886445164680481, 0.14165273308753967, 0.3738429844379425, 0.15156611800193787, -0.08082325011491776, -0.22737950086593628, -0.4491080939769745, 0.10583217442035675, -0.04040271416306496, 0.021528778597712517, -0.3709682524204254, -0.2044505625963211, -0.30413591861724854, 0.07069016993045807, 0.2177019864320755, -0.14961697161197662, -0.39206215739250183, -0.02678782120347023, 0.3422313332557678, 0.11295804381370544, -0.0696008950471878, 0.004556356929242611, -0.14626558125019073, 0.37602901458740234, -0.14929938316345215, 0.013413900509476662, -0.5668160319328308, -0.057782210409641266, 0.21823924779891968, 0.08874426782131195, 0.12931717932224274, 0.22699204087257385, 0.250331312417984, 0.08416269719600677, 0.13288438320159912, -0.33717700839042664, 0.14459797739982605, 0.1566002368927002, -0.15468738973140717, 0.005920873023569584, 0.08227255195379257, 0.17932526767253876, -0.022034239023923874, 0.09394131600856781, -0.1163373813033104, -0.24815140664577484, -0.13493412733078003, 0.17223939299583435, -0.31293386220932007, 0.1711210012435913, -0.1364727020263672, -0.12536323070526123, 0.09075204282999039, -0.2739560902118683, 0.17777425050735474, 0.06619732081890106, 0.20736713707447052, 0.08073949813842773, 0.16436491906642914, -0.06408173590898514, -0.002615103032439947, -0.08904586732387543, -0.04257751628756523, -0.4854084849357605, 0.3937739431858063, -0.29813748598098755, -0.23894952237606049, 0.3353006839752197, 0.2193288654088974, 0.3080074191093445, 0.273563027381897, -0.5231954455375671, 0.3081943094730377, -0.11189013719558716, 0.003676079213619232, -0.25644534826278687, -0.1012173444032669, 0.31650763750076294, 0.2416081577539444, -0.061178773641586304, -0.16325043141841888, 0.22774475812911987, 0.2863845229148865, -0.03622221201658249, -0.017596177756786346, 0.025410160422325134, 0.1712518036365509, -0.3242257237434387, 0.4838031530380249, -0.15576858818531036, 0.18746720254421234, 0.33620908856391907, 0.04804262891411781, 0.3742106258869171, -0.37551233172416687, 0.24151071906089783, -0.41268065571784973, -0.08276349306106567, 0.1217120885848999, 0.20324964821338654, 0.14619547128677368, -0.12811900675296783, -0.2371084988117218, -0.05329606682062149, 0.10869619995355606, -0.19090737402439117, 0.0797540470957756, -0.6821785569190979, -0.06554054468870163, -0.005182111635804176, 0.010835163295269012, -0.12871184945106506, -0.24865847826004028, 0.1268775761127472, -0.24415560066699982, 0.3798924386501312, -0.21345588564872742, -0.37734708189964294, -0.06610752642154694, -0.4805043935775757, 0.034227579832077026, -0.13772541284561157, 0.01458651665598154, -0.010854337364435196, 0.09866327792406082, 0.28836938738822937, 0.14158660173416138, 0.3193717300891876, -0.2579496502876282, -0.02830854058265686, -0.03813120350241661, -0.009486224502325058, -0.43686428666114807, 0.18456107378005981, -0.06210246682167053, 0.27216655015945435, -0.3148840367794037, 0.2003181278705597, -0.05889364331960678, -0.4083263874053955, -0.19805856049060822, 0.2106950581073761, -0.2269861102104187, -0.17809361219406128, -0.2433934211730957, 0.09003705531358719, -0.09544266015291214, -0.0205758735537529, 0.13527829945087433, -0.23195496201515198, -0.5517024993896484, -0.3405025899410248, -0.20216362178325653, -0.10586119443178177, 0.049212243407964706, 0.0757996141910553, 0.40524035692214966, -0.06324557214975357, 0.0304911807179451, 0.37338101863861084, 0.12419777363538742, 0.42296022176742554, 0.5497997999191284, 0.09086230397224426, -0.1790120005607605, 0.10118097811937332, -0.2975945472717285, 0.3088168203830719, 0.2786405682563782, -0.12807253003120422, 0.22536396980285645, -0.14604724943637848, -0.10861070454120636, -0.41309845447540283, -0.2677450180053711, 0.044215381145477295, -0.28957828879356384, -0.23932231962680817, -0.4470384120941162, 0.3617139458656311, 0.04797157272696495, -0.23071205615997314, 0.6139361262321472, 0.2656309902667999, -0.4007493853569031, 0.4446266293525696, 0.41163724660873413, 0.9482237100601196, -0.033273421227931976, 0.09294237196445465, 0.08902832865715027, -0.15526089072227478, 0.11714861541986465, -0.39355337619781494, 0.019862191751599312, -0.14875543117523193, -0.4308133125305176, -0.1418512910604477, -0.18608663976192474, 0.22955211997032166, 0.5341553092002869, -0.013387948274612427, -0.01867535710334778, -0.34085363149642944, -0.14803951978683472, -0.23323698341846466, 0.1796771138906479, -0.1863444298505783, -0.4249289929866791, -0.24203801155090332, 0.12144061923027039, 0.08288314193487167, -0.34822988510131836, -0.04961392655968666, 0.09662678092718124, 0.06192484870553017, -0.1526867151260376, 0.0637083351612091, 0.02163613587617874, -0.06800005584955215, 0.09852509200572968, -0.2908104360103607, -0.20807409286499023, 0.21570543944835663, 0.2921544313430786, 0.15528833866119385, 0.1213303655385971, -0.2592940926551819, 0.2685713768005371, 0.1958511769771576, 0.21359720826148987, -0.37372639775276184, 0.13619528710842133, 0.06645205616950989, -0.16114462912082672, -0.31618598103523254, 0.006989326328039169, 0.005420706234872341, -0.3365147113800049, 0.2515503168106079, -0.16787301003932953, 0.2156745046377182, -0.1765517145395279, 0.12301266193389893, -0.05654454231262207, 0.13625980913639069, 0.02597730979323387, 0.13855071365833282, 0.07288888841867447, 0.02319098822772503, 0.14042320847511292, 0.10774512588977814, -0.385362446308136, -0.05853733792901039, 0.23121953010559082, 0.2848477363586426, -0.218568816781044, 0.35439547896385193, -0.026233157142996788, -0.32824456691741943, -0.4102473855018616, 0.3036973476409912, 0.38791805505752563, -0.7895281314849854, -0.03544972091913223, 0.1609054058790207, 0.031722426414489746, -0.05320614203810692, 0.10423882305622101, -0.0330834835767746, 0.10052609443664551, -0.11713774502277374, 0.1055036336183548, -0.37139245867729187, 0.13523586094379425, 0.06442149728536606, 0.4147004187107086, 0.03879600763320923, -0.6241446733474731, 0.21848829090595245, 0.2124471217393875, -0.2674843668937683, -0.03855711221694946, 0.1394459456205368, -0.020621437579393387, -0.4809093177318573, 0.225460022687912, -0.07395518571138382, -0.29901814460754395, 0.020700471475720406, -0.06255081295967102, -0.2332681268453598, -0.16564178466796875, -0.12936119735240936, 0.13719278573989868, -0.09210509806871414, -0.033661484718322754, -0.2820057272911072, -0.3320003151893616, -0.2863917052745819, -0.05848979204893112, 0.23070302605628967, 0.0653211772441864, 0.09095966815948486, -0.24712713062763214, 0.8363044857978821, -0.05053085833787918, -0.43738073110580444, 0.15653838217258453, 0.15296553075313568, 0.38518208265304565, -0.00030833249911665916, -0.04530312865972519, -0.03719674423336983, -0.17948272824287415, 0.04808652400970459, 0.24344050884246826, 0.27389609813690186, 0.07114288210868835, -0.016904115676879883, 0.03449308127164841, 0.15074653923511505, -0.18631212413311005, 0.1422065794467926, 0.33309048414230347, 0.08521609008312225, -0.35328367352485657, 0.27922576665878296, 0.16581740975379944, -0.08628164231777191, -0.2128785103559494, 0.19405411183834076, -0.054349228739738464, -0.09474976360797882, 0.12408430129289627, 0.40991291403770447, 0.06083674728870392, -0.1587461233139038, 0.13234978914260864, -0.0823492556810379, -0.04337137192487717, 0.10949347913265228, 0.2244250774383545, -0.07186354696750641, -0.08777686953544617, 0.19550542533397675, 0.29544615745544434, 0.022502578794956207, 0.25941377878189087, 0.038553401827812195, 0.41206860542297363, 0.4603413939476013, 0.12027415633201599, -0.01051165908575058, -0.20121170580387115, -0.42022034525871277, -0.069242462515831, -0.29813963174819946, -0.13391119241714478, 0.16032637655735016, 0.28889164328575134, 0.4264226257801056, -0.3992679715156555, -0.2695308029651642, 0.02420799434185028, -0.024952854961156845, 0.06498627364635468, -0.31698960065841675, -0.10950196534395218, -0.06936056166887283, -0.02152688056230545, -0.05215507373213768, 0.22717662155628204, 0.3065989315509796, 0.1845252513885498, 0.1941627562046051, 0.12817399203777313, 0.5500059723854065, 0.18242797255516052, 0.06983938813209534, 0.2096463143825531, 0.09213259071111679, -0.1255701780319214, 0.19765865802764893, 0.16821730136871338, 0.2454555779695511, -0.11355955898761749, 0.09289704263210297, -0.1430840641260147, 0.01945897564291954, 0.37539514899253845, -0.05330049246549606, -0.06788486242294312, 0.25874412059783936, 0.2068471610546112, 0.1991095244884491, 0.26356956362724304, 0.10232440382242203, 0.018057428300380707, -0.20007343590259552, 0.03618819639086723, 0.4063088595867157, 0.1746859848499298, 0.22589123249053955, 0.4659152925014496, -0.37901291251182556, 0.13525542616844177, -0.05942033976316452, -0.059062402695417404, 0.09233609586954117, 0.5068265199661255, -0.32523107528686523, -0.17796161770820618, -0.35008758306503296, 0.054186537861824036, -0.057261329144239426, 0.8695897459983826, -0.07543782889842987, 0.17145214974880219, -0.11843212693929672, -0.3980920910835266, -0.309920072555542, -0.09023631364107132, -0.005554750561714172, 0.3555874526500702, 0.20394201576709747, -0.06922072917222977, 0.1194576621055603, 0.34669071435928345, 0.17087940871715546, -0.14993873238563538, 0.030218280851840973, 0.2975578308105469, -0.15992239117622375, 0.1519368290901184, 0.10222481191158295, 0.34999415278434753, -0.44531747698783875, -0.1729671061038971, 0.20645153522491455, 0.31872788071632385, -0.0439227819442749, 0.03919102996587753, 0.19907930493354797, 0.28916633129119873, 0.27870482206344604, 0.4351959824562073, -0.05356314778327942, 0.1361653059720993, -0.07731118053197861, 0.12995758652687073, -0.09925501048564911, -0.3929716944694519, -0.07711933553218842, 0.08266154676675797, 0.1574593037366867, -0.3284785747528076, -0.1807306557893753, 0.08729597926139832, 0.01839454099535942, -0.11025000363588333, -0.05750703066587448, 0.40711063146591187, -0.35656461119651794, -0.03934589773416519, 0.01700609177350998, 0.10684935003519058, -0.0008556833490729332, -0.06789970397949219, 0.054830633103847504, 0.07677675038576126, -0.09079275280237198, -0.1188708245754242, 0.34693920612335205, 0.2299225628376007, -0.10432882606983185, 0.12126582115888596, 0.408243864774704, 0.2502461075782776, -0.07501323521137238, -0.39560583233833313, -0.03773955628275871, 0.1723812371492386, -0.2915387749671936, 0.004205845296382904, 0.3960666358470917, -0.10639086365699768, 0.1832488626241684, -0.15052340924739838, 0.4720403850078583, -0.025838293135166168, 0.13737381994724274, -0.3471620976924896, -0.41235893964767456 ]
https://github.com/huggingface/datasets/issues/2089
Add documentaton for dataset README.md files
Hi ! We are using the [datasets-tagging app](https://github.com/huggingface/datasets-tagging) to select the tags to add. We are also adding the full list of tags in #2107 This covers multilinguality, language_creators, licenses, size_categories and task_categories. In general if you want to add a tag that doesn't exist (for example for a custom license) you must make it start with `other-` and then a custom tag name. edit (@theo-m) if you ever find yourself resorting to adding an `other-*` tag, please do ping us somewhere so we can think about adding it to the "official" list :)
Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip
94
Add documentaton for dataset README.md files Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip Hi ! We are using the [datasets-tagging app](https://github.com/huggingface/datasets-tagging) to select the tags to add. We are also adding the full list of tags in #2107 This covers multilinguality, language_creators, licenses, size_categories and task_categories. In general if you want to add a tag that doesn't exist (for example for a custom license) you must make it start with `other-` and then a custom tag name. edit (@theo-m) if you ever find yourself resorting to adding an `other-*` tag, please do ping us somewhere so we can think about adding it to the "official" list :)
[ -0.2009667009115219, 0.2520250380039215, -0.1304934024810791, 0.07989330589771271, 0.18093304336071014, 0.3571423888206482, 0.3119646906852722, 0.18498365581035614, 0.16446074843406677, -0.016346633434295654, -0.021376004442572594, 0.3338293135166168, -0.09630279988050461, 0.1983853280544281, 0.17110730707645416, 0.039982154965400696, 0.11463408172130585, -0.06307926774024963, 0.3094630241394043, -0.18129900097846985, -0.20113380253314972, -0.03297950327396393, -0.057861439883708954, -0.20018191635608673, -0.3019787669181824, -0.09221553802490234, -0.2026931345462799, 0.0341947041451931, -0.39769962430000305, -0.6076430082321167, 0.024883536621928215, 0.3334522545337677, 0.17429661750793457, 0.0735345408320427, -0.00010723501327447593, -0.15966111421585083, 0.17881472408771515, -0.2395665943622589, -0.019153881818056107, -0.150226429104805, -0.2650313675403595, -0.42210379242897034, -0.14403939247131348, -0.07009895145893097, 0.07828225195407867, -0.2990450859069824, -0.047019511461257935, -0.14260712265968323, 0.0189225971698761, 0.4477115273475647, 0.205060675740242, -0.21061839163303375, 0.3308573365211487, -0.26098838448524475, 0.4178487956523895, 0.21136461198329926, -0.10374077409505844, 0.3762672245502472, 0.4526177644729614, 0.09362507611513138, 0.03951294347643852, 0.17747630178928375, -0.12393131107091904, 0.17958363890647888, 0.3749467730522156, -0.0451231524348259, 0.35776084661483765, -0.5386645793914795, 0.228971928358078, 0.3996186852455139, 1.1531599760055542, -0.2931377589702606, -0.31076034903526306, -0.457553893327713, 0.1056198701262474, -0.10250731557607651, 0.19889739155769348, 0.31950074434280396, 0.04213671758770943, 0.15309926867485046, 0.12388331443071365, -0.3448565602302551, -0.23809854686260223, 0.12588629126548767, 0.12088260054588318, 0.4693532884120941, -0.04953893646597862, -0.04617951065301895, 0.2738635241985321, -0.07653862237930298, 0.09144716709852219, -0.008606906980276108, -0.23176491260528564, 0.13635271787643433, 0.15945838391780853, -0.06463523209095001, -0.2846114933490753, -0.10535459965467453, 0.24940577149391174, -0.01717265322804451, -0.0379192978143692, 0.012572981417179108, -0.1057562604546547, 0.3409816026687622, 0.12435570359230042, -0.17687149345874786, 0.16517698764801025, 0.21109186112880707, 0.10149557888507843, -0.29157131910324097, 0.3328116536140442, -0.14480805397033691, -0.1592109054327011, -0.15297475457191467, 0.014806225895881653, -0.002056904137134552, -0.10873076319694519, -0.21820120513439178, 0.03899125009775162, -0.02366078644990921, 0.08686891943216324, -0.18008051812648773, 0.014684861525893211, 0.16239380836486816, 0.14091373980045319, -0.22575169801712036, -0.2854689359664917, 0.1749258041381836, 0.0696321576833725, -0.12727181613445282, -0.024191882461309433, 0.22701425850391388, -0.12852051854133606, 0.19157572090625763, 0.30136361718177795, -0.03260278329253197, 0.2947961390018463, 0.2256808578968048, -0.13695798814296722, -0.119865782558918, 0.20909351110458374, -0.030132735148072243, 0.2764083445072174, 0.37866219878196716, -0.021971946582198143, 0.07518363744020462, -0.05913287773728371, -0.4303906559944153, -0.2476121187210083, 0.13326424360275269, -0.4022580087184906, -0.23956391215324402, -0.4142950475215912, 0.2273341715335846, -0.1181674599647522, -0.045168355107307434, -0.22617089748382568, 0.2805584669113159, 0.0936194658279419, -0.14592552185058594, 0.24344438314437866, 0.21067234873771667, -0.3568454384803772, -0.28053441643714905, 0.059708356857299805, 0.43606311082839966, -0.4021865427494049, -0.005940541625022888, -0.09240308403968811, -0.02207859978079796, -0.14535850286483765, -0.11482466757297516, -0.26231610774993896, 0.43306252360343933, -0.34106534719467163, 0.26788222789764404, 0.43670427799224854, -0.46318987011909485, -0.24880200624465942, 0.1513611227273941, 0.024762026965618134, -0.27386441826820374, 0.17683422565460205, 0.05101431906223297, 0.5288448333740234, -0.12932385504245758, -0.21330755949020386, -0.030291050672531128, -0.1984531730413437, -0.10618706792593002, -0.11989685893058777, 0.06889782100915909, 0.09747011959552765, 0.0927446186542511, 0.09355701506137848, -0.03966597467660904, 0.42010602355003357, 0.1274113804101944, -0.00382135808467865, -0.0719761848449707, 0.18422198295593262, 0.3900682330131531, 0.2178637981414795, 0.22412832081317902, -0.03491521254181862, -0.08051285147666931, -0.40129992365837097, 0.14364662766456604, 0.10194315016269684, 0.23965775966644287, 0.00870472937822342, -0.279217004776001, -0.3434491753578186, -0.18107359111309052, -0.3264995217323303, -0.3358733355998993, 0.13711220026016235, 0.09588363766670227, -0.20061233639717102, 0.16701768338680267, -0.13824495673179626, 0.2745993435382843, 0.06476814299821854, 0.12902161478996277, -0.21279020607471466, -0.03563915565609932, -0.2517777383327484, -0.005852235481142998, 0.22623217105865479, 0.06622131168842316, 0.2643677592277527, 0.05708041787147522, -0.03682565689086914, 0.24640563130378723, 0.19644930958747864, 0.2589340806007385, 0.26214128732681274, 0.5404537916183472, 0.41050249338150024, -0.2865332365036011, 0.3115125894546509, -0.33763620257377625, 0.1178431436419487, -0.2898557186126709, -0.3992737829685211, 0.07650984823703766, -0.1542873978614807, -0.1191551610827446, -0.1171766147017479, -0.050810523331165314, 0.18092794716358185, 0.01523296907544136, -0.1221301257610321, -0.43974173069000244, -0.171190544962883, 0.010651631280779839, 0.01779494807124138, 0.000756552442908287, 0.20072081685066223, 0.18734799325466156, 0.6095923185348511, -0.11334845423698425, 0.14764289557933807, 0.09236298501491547, -0.12582319974899292, -0.028907524421811104, 0.18348415195941925, 0.20113570988178253, 0.13202965259552002, 0.23997585475444794, 0.2614588737487793, 0.08916296064853668, -0.044777631759643555, -0.28544774651527405, 0.14240577816963196, -0.041622601449489594, -0.02939792163670063, 0.23439371585845947, -0.22527837753295898, -0.08140311390161514, -0.2844700515270233, -0.10787160694599152, 0.1900336891412735, 0.333303838968277, -0.2733848989009857, -0.2253768891096115, -0.2778773009777069, -0.08119857311248779, -0.20232820510864258, -0.26053130626678467, -0.4937747120857239, -0.31111806631088257, 0.09326429665088654, 0.21381716430187225, 0.0015652328729629517, -0.002905440516769886, -0.2456219643354416, -0.02350844442844391, -0.22653719782829285, 0.1571202576160431, -0.20967452228069305, -0.23613901436328888, -0.1060386523604393, 0.08587805926799774, 0.4665779173374176, 0.45965394377708435, 0.5857226252555847, -0.29452788829803467, 0.29092711210250854, -0.32503288984298706, -0.49250122904777527, 0.10655051469802856, -0.11116553843021393, 0.30616772174835205, 0.027848608791828156, 0.0064206793904304504, -0.033051084727048874, -0.04312139376997948, 0.032508883625268936, 0.017020436003804207, -0.08607972413301468, -0.17267180979251862, -0.05781819671392441, -0.17689761519432068, -0.044669389724731445, -0.5428528785705566, -0.18469195067882538, -0.372265487909317, 0.09266574680805206, -0.14137905836105347, 0.1481265425682068, 0.10805894434452057, 0.060818735510110855, 0.2076726108789444, -0.16410614550113678, 0.2128446400165558, -0.25286316871643066, -0.047161463648080826, 0.4831528067588806, -0.37624385952949524, -0.2860787510871887, 0.5221700668334961, 0.06184295564889908, 0.3283827304840088, -0.22356674075126648, -0.27523502707481384, 0.19387979805469513, 0.20085953176021576, 0.06146108731627464, -0.020401857793331146, -0.08261996507644653, 0.2799640893936157, 0.21537134051322937, 0.04464641213417053, -0.20331835746765137, -0.2075478434562683, -0.16182318329811096, -0.06513161212205887, -0.012048810720443726, 0.039163894951343536, 0.15181730687618256, -0.04323390871286392, 0.4195064306259155, 0.03000573068857193, 0.18428589403629303, 0.39282771944999695, -0.012864513322710991, 0.3791913390159607, 0.047049663960933685, -0.3830392360687256, 0.19773148000240326, 0.040178120136260986, 0.18016785383224487, 0.2621786594390869, 0.08099650591611862, 0.14867709577083588, -0.08856479823589325, -0.15982510149478912, -0.37692803144454956, -0.22435708343982697, 0.1970243901014328, -0.14069296419620514, 0.09613044559955597, -0.19443778693675995, 0.01174837350845337, -0.11416763067245483, -0.20630386471748352, 0.20165486633777618, 0.8246312737464905, -0.11588460952043533, 0.15930892527103424, -0.38450145721435547, 0.2631765902042389, -0.02737732231616974, 0.06666471064090729, 0.1726115196943283, 0.17816989123821259, -0.3565507233142853, 0.21468335390090942, -0.03053663671016693, 0.22489221394062042, 0.3928491473197937, -0.7406405210494995, -0.057441651821136475, 0.20935963094234467, 0.17879316210746765, 0.16524404287338257, -0.039343394339084625, -0.08031250536441803, 0.10391076654195786, 0.1280389279127121, 0.23705759644508362, -0.20504295825958252, -0.15062673389911652, -0.16255375742912292, 0.015761522576212883, 0.1063738763332367, -0.25576499104499817, -0.04093501716852188, -0.2579033374786377, -0.5642455220222473, -0.07826448231935501, 0.15247251093387604, -0.20037484169006348, -0.26154664158821106, -0.22121165692806244, 0.19587478041648865, 0.12038721889257431, 0.27474600076675415, 0.08231815695762634, 0.058877620846033096, 0.2790195941925049, 0.08772709965705872, 0.23928827047348022, 0.07097554206848145, 0.7544963359832764, 0.3973064422607422, -0.23983848094940186, -0.3075881004333496, 0.06013835594058037, -0.8074308633804321, 0.38098663091659546, 0.05400937795639038, 0.242209330201149, 0.055855248123407364, 0.2597581148147583, -0.4497745633125305, -0.19207225739955902, 0.02205047197639942, 0.08745009452104568, 0.00801070500165224, -0.3625231981277466, -0.6086066365242004, 0.32062003016471863, 0.20704321563243866, -0.05922272801399231, 0.21836526691913605, -0.10706283152103424, -0.3987128436565399, -0.12904703617095947, 0.231145441532135, 0.9148769378662109, 0.030857227742671967, -0.17122305929660797, -0.3451577425003052, -0.4033823609352112, 0.15485259890556335, -0.3034471869468689, -0.08842218667268753, -0.22180581092834473, 0.11094771325588226, -0.09891752898693085, -0.03354082256555557, 0.4710518717765808, 0.2911982238292694, -0.2942735254764557, 0.07002642750740051, 0.2238088995218277, 0.20639556646347046, -0.05180621147155762, 0.7011323571205139, -0.3197648227214813, -0.33442795276641846, 0.3089044690132141, 0.17336389422416687, -0.01581089198589325, 0.01518363319337368, -0.0882289707660675, -0.41429007053375244, -0.12561707198619843, -0.02103937789797783, -0.4336158037185669, -0.29973945021629333, -0.07214954495429993, -0.26907098293304443, -0.2709862291812897, -0.06497491896152496, 0.4915101230144501, 0.25417348742485046, 0.5265599489212036, 0.13248762488365173, -0.43265390396118164, 0.04839259013533592, 0.03325134888291359, -0.22024784982204437, -0.16510272026062012, -0.12304001301527023, 0.4145583510398865, -0.1207268238067627, -0.2863665223121643, 0.0005598664283752441, -0.07331842184066772, -0.028564082458615303, -0.2847563624382019, -0.0850120484828949, 0.20723338425159454, -0.281136691570282, 0.1283922642469406, -0.15353251993656158, -0.0904168039560318, -0.20061060786247253, 0.18200255930423737, 0.2120552510023117, -0.0714699923992157, 0.050691816955804825, 0.09958784282207489, -0.08413921296596527, -0.12225067615509033, 0.21399709582328796, -0.21509692072868347, -0.005841169506311417, 0.07045812904834747, 0.10204911231994629, -0.235319584608078, -0.3233816623687744, 0.07025300711393356, 0.08864492177963257, -0.282043993473053, -0.30955812335014343, 0.06141265109181404, -0.03524380922317505, 0.09505730122327805, 0.1328793615102768, 0.204271137714386, -0.018509142100811005, 0.000505540519952774, -0.37904655933380127, -0.3702392280101776, 0.03422367945313454, -0.26738566160202026, 0.15352608263492584, -0.2898290157318115, -0.26041796803474426, 0.22452230751514435, 0.11901391297578812, -0.359090119600296, -0.05048491060733795, -0.011052662506699562, 0.13220299780368805, 0.07998375594615936, 0.13673609495162964, -0.21018211543560028, -0.31237339973449707, 0.013298733159899712, 0.05808817967772484, -0.2618294656276703, -0.13959288597106934, -0.15929721295833588, 0.14271003007888794, 0.057481274008750916, 0.015355303883552551, -0.17454496026039124, -0.2434614598751068, -0.2724674940109253, -0.07814106345176697, 0.09277445077896118, -0.07850518822669983, -0.011211179196834564, 0.25748828053474426, 0.13864104449748993, 0.24186921119689941, 0.13233152031898499, 0.025511134415864944, -0.03757737576961517, 0.18369190394878387, 0.021550122648477554, -0.10928864777088165, -0.12877309322357178, 0.09879380464553833, 0.22685517370700836, 0.20505133271217346, 0.06786452233791351, -0.08040571957826614, 0.3333839178085327, -0.10494133830070496, 0.3814503848552704, 0.5024672746658325, -0.042752403765916824, 0.1786157190799713, -0.2168629765510559, 0.08695749938488007, 0.359940767288208, 0.2423609346151352, -0.1757739782333374, -0.16005486249923706, 0.4079783260822296, -0.10844726860523224, 0.034023117274045944, 0.2446230947971344, 0.6767517924308777, 0.0957908183336258, -0.2147066444158554, 0.12337271124124527, 0.34821653366088867, -0.10657079517841339, 0.10277758538722992, 0.39462465047836304, -0.3101723790168762, 0.09684264659881592, 0.38000163435935974, 0.3323695659637451, -0.00923185795545578, 0.24480512738227844, 0.07276324927806854, 0.2660259008407593, 0.34106871485710144, 0.2237113118171692, 0.30178210139274597, -0.354091078042984, 0.31590935587882996, 0.2309853732585907, 0.26809656620025635, 0.17326274514198303, 0.11945268511772156, 0.05127124860882759, 0.223528653383255, -0.20307566225528717, -0.002363508567214012, 0.04386148229241371, -0.17174774408340454, 0.25137102603912354, -0.10158391296863556, -0.18022575974464417, -0.07697337865829468, -0.12956838309764862, 0.04709099605679512, -0.21334783732891083, -0.06733576953411102, -0.10051505267620087, -0.1876310557126999, -0.05083538591861725, 0.10214768350124359, -0.05719882249832153, -0.00036181509494781494, -0.20932766795158386, 0.06065807491540909, -0.08968055248260498, -0.20436742901802063, 0.28440940380096436, 0.11651694029569626, 0.34165358543395996, 0.07791689038276672, 0.012577728368341923, 0.11708752810955048, -0.05614549294114113, -0.2006206214427948, 0.14991438388824463, 0.5387471914291382, 0.07977673411369324, 0.16697625815868378, 0.19178558886051178, 0.13721567392349243, -0.05684862658381462, -0.008006501942873001, -0.0328727625310421, -0.1629110723733902, 0.10685665905475616, -0.17786765098571777, 0.17302009463310242, -0.1983293890953064, -0.1582745760679245, 0.04208425432443619, -0.22080358862876892, -0.328565776348114, 0.7464057207107544, 0.011461733840405941, 0.016664817929267883, -0.22169338166713715, 0.08084359765052795, 0.2176809310913086, 0.257293701171875, 0.2359846979379654, 0.05112777277827263, -0.07885012775659561, 0.04420900344848633, -0.7780941724777222, -0.020014263689517975, -0.21567627787590027, -0.00045887939631938934, 0.14601820707321167, -0.20966798067092896, 0.30062606930732727, 0.21809062361717224, 0.2118474543094635, 0.015851078554987907, 0.13952134549617767, 0.18536965548992157, -0.07829085737466812, -0.2735218405723572, 0.07687842845916748, 0.18836531043052673, -0.029858609661459923, 0.0039618127048015594, 0.24915538728237152, 0.1665068119764328, 0.06152261048555374, -0.3908041715621948, 0.20399093627929688, 0.04182538017630577, 0.10137414932250977, 0.5442776679992676, -0.09108006209135056, 0.5890606045722961, -0.21084743738174438, 0.0496780201792717, -0.008278097957372665, 0.3336324095726013, -0.0740555003285408, 0.4311031699180603, 0.09659075736999512, 0.1571970283985138, -0.12672002613544464, -0.07822240889072418, -0.277025431394577, 0.1978088617324829, -0.05219918489456177, 0.05930767208337784, -0.5329074263572693, 0.06138265132904053, 0.06379897147417068, -0.09557149559259415, 0.10468889027833939, -0.15253689885139465, 0.013946563005447388, -0.05399637669324875, -0.15097050368785858, -0.2541344463825226, 0.4322205185890198, -0.05792607367038727, -0.09954282641410828, 0.02217487245798111, 0.02016344666481018, 0.4060525596141815, 0.2004684954881668, -0.8780811429023743, 0.0528765544295311, 0.4730554521083832, -0.0019282829016447067, -0.18710844218730927, 0.09645581245422363, -0.015066854655742645, 0.05717984959483147, -0.1643056422472, 0.1252112090587616, 0.08836697041988373, -0.14502686262130737, -0.12717030942440033, -0.15544575452804565 ]
https://github.com/huggingface/datasets/issues/2089
Add documentaton for dataset README.md files
@lhoestq hmm - ok thanks for the answer. To be honest I am not sure if this issue can be closed now. I just wanted to point out that this should either be documented or linked in the documentation. If you feel like it is (will be) please just close this.
Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip
51
Add documentaton for dataset README.md files Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip @lhoestq hmm - ok thanks for the answer. To be honest I am not sure if this issue can be closed now. I just wanted to point out that this should either be documented or linked in the documentation. If you feel like it is (will be) please just close this.
[ -0.183450385928154, 0.25136491656303406, -0.10896499454975128, 0.19743642210960388, 0.11071707308292389, 0.3312232494354248, 0.3745899498462677, 0.17199626564979553, 0.03208488970994949, 0.04731865972280502, 0.02834358811378479, 0.23826682567596436, -0.06312807649374008, 0.09270709753036499, 0.044825538992881775, 0.03255234658718109, 0.06773994863033295, -0.02018257975578308, 0.2282099574804306, -0.2717786431312561, -0.18817763030529022, -0.012063661590218544, -0.19267447292804718, -0.26006418466567993, -0.2601342797279358, -0.10619097203016281, -0.1686316728591919, 0.16795192658901215, -0.41751542687416077, -0.5190830826759338, 0.017021561041474342, 0.2592082917690277, 0.1794571429491043, 0.06925788521766663, -0.00010868401295738295, -0.23778380453586578, 0.22748839855194092, -0.22224049270153046, 0.012414352968335152, -0.003969341516494751, -0.25637087225914, -0.3920831084251404, -0.2011699676513672, -0.18431437015533447, 0.08136431127786636, -0.14341501891613007, -0.11069126427173615, -0.2170642763376236, 0.18811704218387604, 0.5700098276138306, 0.2062797248363495, -0.25078994035720825, 0.300117164850235, -0.21435701847076416, 0.46464648842811584, 0.2964087426662445, -0.14451707899570465, 0.34673911333084106, 0.5063988566398621, 0.11642900109291077, 0.051599543541669846, 0.16784901916980743, -0.14614130556583405, 0.10657471418380737, 0.31189167499542236, -0.1332368552684784, 0.44173330068588257, -0.5099046230316162, 0.24963951110839844, 0.37561696767807007, 1.1862674951553345, -0.18973740935325623, -0.1440567672252655, -0.3056926429271698, 0.07485561072826385, -0.04991460591554642, 0.16177305579185486, 0.38970819115638733, 0.014175232499837875, 0.14416193962097168, 0.13837236166000366, -0.3804752230644226, -0.318142831325531, 0.06084717437624931, 0.11162813007831573, 0.4195416271686554, -0.07796443998813629, -0.07542095333337784, 0.14781059324741364, -0.08499260991811752, 0.27848580479621887, 0.05703584849834442, -0.21419388055801392, 0.22595526278018951, 0.18925534188747406, -0.11223983764648438, -0.36354002356529236, -0.19784164428710938, 0.21185627579689026, -0.17355458438396454, -0.05369549244642258, 0.030630361288785934, -0.016682332381606102, 0.28244441747665405, 0.184037446975708, -0.0989539623260498, 0.15546312928199768, 0.26764118671417236, 0.10741879791021347, -0.22809678316116333, 0.2706860899925232, -0.06822673231363297, -0.22818146646022797, -0.13001024723052979, -0.025022249668836594, 0.0413493886590004, -0.06686843931674957, -0.3455767333507538, 0.0765683576464653, -0.043840233236551285, 0.07076504081487656, -0.1483537256717682, 0.013145050965249538, 0.2365356683731079, 0.019365709275007248, -0.15802648663520813, -0.22762276232242584, 0.10915005952119827, 0.013161348178982735, -0.11871876567602158, 0.019070688635110855, 0.23939315974712372, -0.12263800203800201, 0.19049857556819916, 0.26756322383880615, 0.05708886682987213, 0.20644263923168182, 0.25711819529533386, -0.06903806328773499, -0.21326158940792084, 0.22078648209571838, -0.03505788743495941, 0.3134306073188782, 0.3436414301395416, -0.043930843472480774, 0.08691148459911346, -0.08941128849983215, -0.37844812870025635, -0.18856960535049438, 0.19122695922851562, -0.5235505700111389, -0.28246378898620605, -0.39530453085899353, 0.20593568682670593, -0.07527889311313629, 0.04058680310845375, -0.12388376146554947, 0.22089898586273193, 0.12228372693061829, -0.13116125762462616, 0.17067117989063263, 0.1315925121307373, -0.37945255637168884, -0.2931359112262726, -0.014784736558794975, 0.4112756848335266, -0.35308805108070374, 0.0920703113079071, -0.14623332023620605, 0.060890745371580124, -0.09736477583646774, 0.03389305621385574, -0.3202524483203888, 0.31233423948287964, -0.3375393748283386, 0.1994764655828476, 0.48653867840766907, -0.6444000005722046, -0.24905377626419067, 0.16809919476509094, 0.09969522058963776, -0.3379283845424652, 0.1998399794101715, -0.07615970820188522, 0.5245918035507202, -0.24726176261901855, -0.1961393654346466, -0.10094521939754486, -0.12061542272567749, -0.044988758862018585, -0.20566248893737793, 0.0024416297674179077, -0.027992747724056244, 0.14339151978492737, 0.0930476039648056, -0.008591137826442719, 0.5141078233718872, 0.11154866963624954, 0.11130020022392273, -0.11304722726345062, 0.2350049465894699, 0.5121796727180481, 0.27800804376602173, 0.07337632775306702, -0.0036753416061401367, 0.060192957520484924, -0.3458784818649292, 0.10165383666753769, 0.038182079792022705, 0.2979986071586609, 0.022525958716869354, -0.2697305679321289, -0.30786606669425964, -0.20984967052936554, -0.3070385158061981, -0.34663382172584534, 0.1509179174900055, 0.07213526964187622, -0.28998127579689026, 0.1742568016052246, -0.05838831886649132, 0.258552610874176, -0.022553592920303345, -0.022960910573601723, -0.1868530958890915, 0.014731226488947868, -0.17952826619148254, 0.07141131907701492, 0.3635660409927368, 0.11799748241901398, 0.29346024990081787, 0.0673179179430008, -0.051296453922986984, 0.17270515859127045, 0.168195903301239, 0.18678882718086243, 0.19701716303825378, 0.5089143514633179, 0.34858763217926025, -0.31835928559303284, 0.32162436842918396, -0.33194124698638916, 0.10596030205488205, -0.2947618365287781, -0.38234156370162964, 0.09376002848148346, -0.08751426637172699, -0.15624552965164185, -0.09665343165397644, -0.0550428181886673, 0.15599973499774933, -0.04310010373592377, -0.12134372442960739, -0.4186566472053528, -0.21394933760166168, 0.13826481997966766, 0.049248192459344864, 0.04335324838757515, 0.1525079309940338, 0.25919896364212036, 0.6951575875282288, -0.08936531096696854, 0.12333697080612183, 0.047764528542757034, -0.044406019151210785, -0.04587802663445473, 0.23432984948158264, 0.17933735251426697, 0.25045308470726013, 0.19508366286754608, 0.26886001229286194, 0.16851800680160522, -0.025638792663812637, -0.21547654271125793, 0.11437438428401947, -0.15649038553237915, 0.0548335537314415, 0.18598762154579163, -0.2092629075050354, -0.0657520517706871, -0.2408759891986847, 0.001967836171388626, 0.17680798470973969, 0.3061315715312958, -0.2752854526042938, -0.308880478143692, -0.26754000782966614, -0.010409822687506676, -0.24294471740722656, -0.14919964969158173, -0.5167268514633179, -0.174337700009346, 0.06381083279848099, 0.11789971590042114, 0.037009503692388535, -0.04297802597284317, -0.18995927274227142, 0.16765433549880981, -0.20038814842700958, 0.2505882680416107, -0.18585874140262604, -0.21499712765216827, -0.22991612553596497, 0.07945840060710907, 0.46367236971855164, 0.5456965565681458, 0.5315333008766174, -0.2386777251958847, 0.278689980506897, -0.3564068078994751, -0.44068241119384766, 0.08587135374546051, -0.04643266648054123, 0.3145120441913605, -0.06198875606060028, 0.10288123786449432, -0.042776402086019516, 0.0008732089772820473, -0.019909217953681946, 0.11118164658546448, -0.11034353077411652, -0.2667791247367859, 0.002824273658916354, -0.3291389048099518, -0.03901955112814903, -0.5944353938102722, -0.15592581033706665, -0.38573741912841797, 0.07302349805831909, -0.19424262642860413, 0.201829731464386, 0.07087002694606781, -0.011716334149241447, 0.10064759850502014, -0.14493751525878906, 0.17407913506031036, -0.3098457455635071, -0.10015213489532471, 0.4769841730594635, -0.4734632074832916, -0.4342750012874603, 0.525481641292572, 0.09347965568304062, 0.3927612602710724, -0.14144267141819, -0.31363773345947266, 0.2251271903514862, 0.19277286529541016, -0.20092682540416718, -0.1818777322769165, -0.020074816420674324, 0.32674652338027954, 0.2113700658082962, 0.06632144749164581, -0.20788446068763733, -0.24612154066562653, -0.09685923904180527, -0.008619960397481918, 0.07278972864151001, -0.01977711170911789, 0.06846769154071808, -0.004804573953151703, 0.3320693373680115, -0.005123414099216461, 0.28670111298561096, 0.33411845564842224, -0.006812570616602898, 0.38185620307922363, 0.11769372969865799, -0.34569740295410156, 0.26546967029571533, 0.052713580429553986, 0.1426987498998642, 0.3200279176235199, 0.1204756647348404, -0.02207927219569683, -0.10310600697994232, -0.20675671100616455, -0.4100345969200134, -0.2712361514568329, 0.16203628480434418, -0.11310896277427673, 0.18740209937095642, -0.13714607059955597, 0.009538210928440094, -0.1100548803806305, -0.18937623500823975, 0.18816620111465454, 0.8119862675666809, -0.19757145643234253, 0.15778040885925293, -0.449960321187973, 0.2427949756383896, -0.02478119730949402, 0.04627028852701187, 0.20617596805095673, 0.2806917726993561, -0.40208062529563904, 0.2396637499332428, 0.014631278812885284, 0.20071685314178467, 0.33441853523254395, -0.6941189169883728, -0.03130976855754852, 0.24698978662490845, 0.25980696082115173, 0.18587172031402588, -0.06271839141845703, -0.05730085074901581, 0.14862915873527527, 0.09107410162687302, 0.22075089812278748, -0.14425349235534668, -0.20568837225437164, -0.15842591226100922, -0.04390155151486397, 0.008981719613075256, -0.3161912262439728, -0.04550741985440254, -0.29976126551628113, -0.42077571153640747, -0.11310236901044846, 0.23194222152233124, -0.22695736587047577, -0.3190455138683319, -0.3087129294872284, 0.2110045701265335, 0.07801489531993866, 0.2206961065530777, 0.06088816002011299, 0.08065127581357956, 0.2518092691898346, 0.027545638382434845, 0.2140595018863678, 0.0965079665184021, 0.7797988057136536, 0.3743670582771301, -0.23505252599716187, -0.21117261052131653, 0.08049421012401581, -0.8616189956665039, 0.3713943064212799, 0.20121537148952484, 0.19702987372875214, -0.052199043333530426, 0.17093011736869812, -0.4224599599838257, -0.020235251635313034, 0.022152340039610863, 0.13960891962051392, -0.04436982423067093, -0.5320260524749756, -0.6122278571128845, 0.28456008434295654, 0.08952641487121582, -0.05665880814194679, 0.23848827183246613, -0.028061985969543457, -0.3622269332408905, -0.1342233568429947, 0.3018079102039337, 1.0777896642684937, 0.016521748155355453, -0.12008036673069, -0.3285028040409088, -0.3679196834564209, 0.14223584532737732, -0.23368480801582336, -0.10099614411592484, -0.3288813829421997, 0.13679584860801697, -0.09014733880758286, -0.03498992696404457, 0.4635131061077118, 0.3538164496421814, -0.31117990612983704, 0.017957355827093124, 0.3268078565597534, 0.0849098414182663, -0.020902423188090324, 0.6265954375267029, -0.28271669149398804, -0.23740997910499573, 0.21874916553497314, 0.14732380211353302, 0.06292279064655304, -0.04083165153861046, -0.15253829956054688, -0.446230411529541, -0.22234545648097992, -0.07296077907085419, -0.3919939398765564, -0.24240413308143616, -0.11590989679098129, -0.2178749293088913, -0.22318312525749207, -0.055516913533210754, 0.5816293358802795, 0.21209999918937683, 0.47178328037261963, 0.22341099381446838, -0.4294227957725525, 0.14945533871650696, 0.10075075179338455, -0.25748273730278015, -0.09952015429735184, -0.0714196041226387, 0.36974483728408813, -0.2065974473953247, -0.294283002614975, -0.04527951031923294, -0.2211461216211319, -0.030451839789748192, -0.3569751977920532, 0.0559321865439415, 0.2022377848625183, -0.2618914246559143, 0.06482486426830292, -0.17668458819389343, -0.13561323285102844, -0.061103396117687225, 0.17544300854206085, 0.17779755592346191, 0.025732500478625298, 0.14139708876609802, 0.14363530278205872, -0.10167600959539413, -0.02008039876818657, 0.25833621621131897, -0.07170770317316055, -0.13645035028457642, 0.14516401290893555, 0.055394966155290604, -0.18468138575553894, -0.3555237650871277, 0.0928395614027977, 0.03595418855547905, -0.1644410789012909, -0.320191353559494, 0.009408118203282356, -0.040877148509025574, 0.13022227585315704, 0.19054099917411804, 0.14974156022071838, -0.06663674861192703, -0.00876360759139061, -0.3896547853946686, -0.39483311772346497, 0.019648440182209015, -0.3371899425983429, 0.12659260630607605, -0.3014387786388397, -0.29307639598846436, 0.20619994401931763, 0.04585422948002815, -0.3518180847167969, 0.04637553542852402, -0.019557904452085495, 0.11416146159172058, 0.16156239807605743, 0.1669154167175293, -0.2081945538520813, -0.2656029462814331, -0.0043310727924108505, 0.09284274280071259, -0.24211332201957703, -0.14936670660972595, -0.10269330441951752, 0.16237258911132812, 0.07018150389194489, 0.017803996801376343, -0.14156411588191986, -0.3763384222984314, -0.2985936999320984, 0.025355122983455658, 0.0363176204264164, -0.016991619020700455, -0.02583376318216324, 0.21005119383335114, 0.14854617416858673, 0.2503184974193573, 0.04773871600627899, 0.18123745918273926, -0.03791554272174835, 0.17791205644607544, -0.029230142012238503, -0.022249430418014526, -0.10179390758275986, 0.05603547394275665, 0.367747962474823, 0.13312150537967682, -0.0008753165602684021, -0.010262887924909592, 0.38270455598831177, -0.09804251790046692, 0.39710092544555664, 0.36682814359664917, -0.1173238605260849, 0.24000263214111328, -0.27108249068260193, 0.10942210257053375, 0.3641289174556732, 0.2230260968208313, -0.12839581072330475, -0.17669150233268738, 0.29058247804641724, -0.17288941144943237, -0.05295111984014511, 0.23693245649337769, 0.6858571171760559, 0.03755969554185867, -0.14107854664325714, 0.12139566987752914, 0.33642634749412537, -0.06687967479228973, -0.006633466109633446, 0.36375778913497925, -0.32108959555625916, 0.02586280182003975, 0.3457224667072296, 0.25614261627197266, 0.027067266404628754, 0.21122980117797852, 0.20784029364585876, 0.15717248618602753, 0.4067304730415344, 0.2854521572589874, 0.21396908164024353, -0.3492389917373657, 0.3475606143474579, 0.2237098067998886, 0.2600421905517578, 0.20578020811080933, 0.12392884492874146, 0.040487904101610184, 0.3550108075141907, -0.2074645310640335, -0.0038647539913654327, 0.008976202458143234, -0.1628408432006836, 0.2597954571247101, 0.017035167664289474, -0.17253410816192627, -0.1071033775806427, -0.14658354222774506, -0.047720495611429214, -0.19302625954151154, -0.19665631651878357, -0.038809649646282196, -0.13258418440818787, 0.07958485931158066, 0.14740228652954102, 0.06816788762807846, -0.006493717432022095, -0.18076524138450623, 0.0624091699719429, -0.11905357241630554, -0.13881610333919525, 0.3226594924926758, 0.09853971004486084, 0.3425762355327606, 0.18693310022354126, 0.022784173488616943, 0.09965670853853226, 0.09196092188358307, -0.19911246001720428, 0.154068723320961, 0.49357321858406067, 0.15878142416477203, 0.2255326807498932, 0.15894253551959991, 0.11605098843574524, -0.06208935007452965, -0.010372389107942581, -0.1367608904838562, -0.2212294489145279, 0.12001839280128479, -0.187875896692276, 0.1110762283205986, -0.2756791412830353, -0.18334487080574036, -0.10390514880418777, -0.23057159781455994, -0.3599986433982849, 0.7408997416496277, -0.03147859498858452, 0.0653129518032074, -0.24567463994026184, 0.09345003962516785, 0.13069501519203186, 0.328866571187973, 0.27290835976600647, 0.010978009551763535, -0.004929660819470882, -0.12268383800983429, -0.8196237087249756, 0.052886612713336945, -0.16500061750411987, 0.010589217767119408, 0.18238192796707153, -0.17004813253879547, 0.29911357164382935, 0.15115636587142944, 0.20176570117473602, -0.07784301787614822, 0.14874552190303802, 0.24358363449573517, -0.16646042466163635, -0.23811094462871552, 0.1285688430070877, 0.16550105810165405, -0.05667714402079582, -0.0922166258096695, 0.2949966490268707, 0.23565888404846191, 0.06850369274616241, -0.3996606469154358, 0.2636982798576355, 0.026878904551267624, 0.12684868276119232, 0.456240177154541, -0.05802738666534424, 0.5467052459716797, -0.20635905861854553, 0.019912945106625557, -0.0018067844212055206, 0.39259934425354004, 0.039602797478437424, 0.4238412082195282, 0.16679178178310394, 0.11109110713005066, -0.10635841637849808, -0.07358673214912415, -0.23899054527282715, 0.22788095474243164, -0.09455025941133499, 0.11505148559808731, -0.5860777497291565, 0.05018214136362076, 0.08246415108442307, -0.03064599260687828, 0.0794331356883049, -0.11608263105154037, -0.07485547661781311, -0.0965912863612175, -0.21339631080627441, -0.18239328265190125, 0.4661232829093933, -0.1344536542892456, -0.14637495577335358, 0.10903619974851608, 0.11536940187215805, 0.2609991431236267, 0.16990748047828674, -0.8375423550605774, 0.002447158098220825, 0.4686848521232605, -0.04556187987327576, -0.17496103048324585, 0.06438282132148743, -0.09001097083091736, 0.06796276569366455, -0.13422290980815887, 0.13633035123348236, 0.08322891592979431, -0.1187572106719017, -0.15180547535419464, -0.17226190865039825 ]
https://github.com/huggingface/datasets/issues/2089
Add documentaton for dataset README.md files
We're still working on the validation+documentation in this. Feel free to keep this issue open till we've added them
Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip
19
Add documentaton for dataset README.md files Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip We're still working on the validation+documentation in this. Feel free to keep this issue open till we've added them
[ -0.21523326635360718, 0.264982670545578, -0.12585432827472687, 0.16833418607711792, 0.15319743752479553, 0.2933405339717865, 0.29241472482681274, 0.19512203335762024, 0.03196578472852707, 0.02096245437860489, 0.05009420961141586, 0.2049102634191513, -0.07927588373422623, 0.10062236338853836, -0.0031885551288723946, 0.022652123123407364, 0.04879092797636986, -0.05057062208652496, 0.20979037880897522, -0.2532513737678528, -0.11106216907501221, -0.07210726290941238, -0.16808103024959564, -0.21694160997867584, -0.2796170711517334, -0.14987240731716156, -0.12106798589229584, 0.1117406114935875, -0.5551064610481262, -0.5625534057617188, -0.056959256529808044, 0.323643296957016, 0.20564745366573334, 0.07571226358413696, -0.00010885613301070407, -0.2372322380542755, 0.31310540437698364, -0.19695322215557098, 0.04183531552553177, -0.013443395495414734, -0.31865742802619934, -0.348775714635849, -0.1418907642364502, -0.17904619872570038, 0.07340127229690552, -0.16689981520175934, -0.0970635712146759, -0.12420403957366943, 0.21787914633750916, 0.6139639019966125, 0.19205166399478912, -0.1768244355916977, 0.33373621106147766, -0.16209101676940918, 0.348606139421463, 0.28703123331069946, -0.1387576013803482, 0.3151705861091614, 0.4389589726924896, 0.1328054815530777, -0.0011087581515312195, 0.17296910285949707, -0.08880332857370377, 0.07424767315387726, 0.3544277548789978, -0.1740666776895523, 0.43139946460723877, -0.5642961263656616, 0.13734078407287598, 0.4447305500507355, 1.1757177114486694, -0.24660426378250122, -0.14763009548187256, -0.2829698324203491, 0.059533994644880295, 0.01189357228577137, 0.20217174291610718, 0.39365288615226746, 0.020163923501968384, 0.14828774333000183, 0.05237666517496109, -0.29624414443969727, -0.34641116857528687, 0.027329295873641968, 0.1638355553150177, 0.4449427127838135, -0.04058649018406868, -0.16214331984519958, 0.24062858521938324, -0.07412099093198776, 0.2830769121646881, -0.005719862878322601, -0.22079423069953918, 0.2731739580631256, 0.1728251874446869, -0.1457783579826355, -0.3448438346385956, -0.11324466019868851, 0.2412942349910736, -0.1358942836523056, -0.059847310185432434, 0.0647011250257492, -0.04550556465983391, 0.3457220196723938, 0.19969475269317627, -0.08479611575603485, 0.18499116599559784, 0.24893604218959808, 0.1139557957649231, -0.19277626276016235, 0.2991899847984314, -0.07954255491495132, -0.14906592667102814, -0.14138509333133698, 0.05834076926112175, 0.10447468608617783, -0.12328491359949112, -0.35999467968940735, 0.09388856589794159, 0.00485535804182291, 0.13185298442840576, -0.2013227492570877, 0.06631221622228622, 0.19653210043907166, 0.02255234867334366, -0.16815054416656494, -0.3468318581581116, 0.07081093639135361, 0.051112838089466095, -0.13527043163776398, 0.02464880608022213, 0.24359142780303955, -0.1412162333726883, 0.15868933498859406, 0.2875901758670807, -0.004069438204169273, 0.2766801118850708, 0.18197451531887054, -0.06200230121612549, -0.20753133296966553, 0.22986353933811188, -0.07405209541320801, 0.30655720829963684, 0.3483858108520508, -0.06452183425426483, -0.07043077796697617, -0.10154633224010468, -0.3342267870903015, -0.2269040048122406, 0.11767933517694473, -0.37486767768859863, -0.3299012780189514, -0.36050844192504883, 0.20990046858787537, -0.08481259644031525, 0.07804886251688004, -0.08246254175901413, 0.2596980929374695, 0.14490951597690582, -0.09138467907905579, 0.1895810067653656, 0.13420435786247253, -0.24407896399497986, -0.2446257770061493, -0.04876495897769928, 0.3932788372039795, -0.30490443110466003, 0.13077476620674133, -0.11829717457294464, -0.03632211312651634, -0.18800082802772522, 0.006995512172579765, -0.330069899559021, 0.3603716790676117, -0.2602694630622864, 0.23140691220760345, 0.5233442783355713, -0.6178890466690063, -0.19089259207248688, 0.20195262134075165, 0.11889120936393738, -0.36535486578941345, 0.19966508448123932, -0.12253068387508392, 0.562522292137146, -0.30216893553733826, -0.27607980370521545, -0.08371802419424057, -0.20963943004608154, -0.08623528480529785, -0.21599426865577698, 0.06583698093891144, 0.00045372918248176575, 0.09255443513393402, 0.08712509274482727, -0.1019032672047615, 0.4954625964164734, 0.14965127408504486, 0.0810181125998497, -0.13253657519817352, 0.18712277710437775, 0.43008846044540405, 0.3101043105125427, 0.005165256559848785, -0.01879073679447174, 0.029772285372018814, -0.3159402012825012, 0.006874591112136841, 0.0792020708322525, 0.31214627623558044, 0.060248963534832, -0.2735973596572876, -0.30913829803466797, -0.2166575938463211, -0.3294515013694763, -0.34891992807388306, 0.1617864966392517, -0.012899674475193024, -0.1812315583229065, 0.19812731444835663, -0.14653465151786804, 0.2803257405757904, -0.0659627616405487, 0.046155817806720734, -0.17053759098052979, -0.02431255578994751, -0.2345084398984909, 0.0765741765499115, 0.28345736861228943, 0.11288848519325256, 0.23577186465263367, 0.05974674969911575, -0.03704911842942238, 0.2769048511981964, 0.2859245836734772, 0.1337735801935196, 0.12289616465568542, 0.5454465746879578, 0.40690919756889343, -0.3052132725715637, 0.34981122612953186, -0.36119574308395386, 0.005080798640847206, -0.23703482747077942, -0.39166226983070374, 0.09733796864748001, -0.2199728637933731, -0.13769415020942688, -0.09118739515542984, -0.09090574830770493, 0.14511457085609436, -0.06856409460306168, -0.2191043496131897, -0.4312100112438202, -0.24345089495182037, 0.06874091923236847, 0.01232655718922615, 0.06510265171527863, 0.0938156396150589, 0.15814273059368134, 0.609050989151001, -0.11356949806213379, 0.13350772857666016, 0.0739220380783081, 0.03577013313770294, -0.10658072680234909, 0.22304478287696838, 0.20267923176288605, 0.18155322968959808, 0.13771985471248627, 0.20898392796516418, 0.18370792269706726, -0.10694197565317154, -0.2314971536397934, 0.174040287733078, -0.1743563860654831, 0.04335339367389679, 0.19605809450149536, -0.33038508892059326, -0.010740929283201694, -0.2964416742324829, -0.029724474996328354, 0.1803777813911438, 0.3155522346496582, -0.27072688937187195, -0.27265453338623047, -0.21625682711601257, -0.020458241924643517, -0.19647520780563354, -0.11184214800596237, -0.4751443862915039, -0.21352258324623108, 0.10433982312679291, 0.14216731488704681, 0.03777692839503288, -0.02223804034292698, -0.21113142371177673, 0.0961315855383873, -0.17436590790748596, 0.21976949274539948, -0.20130422711372375, -0.22924645245075226, -0.18757587671279907, 0.09850260615348816, 0.457951158285141, 0.5772249102592468, 0.4862658381462097, -0.24764752388000488, 0.2650545835494995, -0.28787732124328613, -0.5216217637062073, 0.07349550724029541, -0.03537411242723465, 0.2994563579559326, -0.05133117735385895, 0.09527280926704407, -0.017334921285510063, 0.02692091092467308, -0.08144895732402802, 0.09984400123357773, -0.18862180411815643, -0.20197197794914246, -0.015806695446372032, -0.31079840660095215, -0.028934143483638763, -0.5464141368865967, -0.17624689638614655, -0.38261666893959045, 0.0350002683699131, -0.21768119931221008, 0.17914986610412598, 0.06945940852165222, 0.029038798063993454, 0.08996378630399704, -0.2129887044429779, 0.2034205198287964, -0.25114330649375916, -0.06053319200873375, 0.4775667190551758, -0.4183157682418823, -0.41148605942726135, 0.43732908368110657, 0.07203684002161026, 0.36325687170028687, -0.17379599809646606, -0.28051331639289856, 0.11504688113927841, 0.16192062199115753, -0.12446177005767822, -0.08411611616611481, -0.005279732868075371, 0.34495809674263, 0.27257850766181946, 0.07193806767463684, -0.16323307156562805, -0.20965830981731415, -0.1451486349105835, 0.029620500281453133, 0.13145951926708221, -0.024417653679847717, 0.06787712872028351, 0.010066065937280655, 0.3052533268928528, 0.05409415438771248, 0.199135422706604, 0.34189844131469727, 0.06131488084793091, 0.43218502402305603, 0.16010765731334686, -0.35946372151374817, 0.30825620889663696, 0.048933081328868866, 0.12972572445869446, 0.19273750483989716, 0.033530332148075104, 0.0281049981713295, -0.0965796709060669, -0.20877088606357574, -0.4129321873188019, -0.25396713614463806, 0.13163968920707703, -0.19528263807296753, 0.23154476284980774, -0.13275261223316193, 0.022219762206077576, 0.053053904324769974, -0.1492287516593933, 0.20176365971565247, 0.8191648721694946, -0.12928935885429382, 0.12718477845191956, -0.45325469970703125, 0.228445902466774, -0.05164434015750885, -0.01589830219745636, 0.17341431975364685, 0.22824575006961823, -0.3218299448490143, 0.24461224675178528, -0.0393139123916626, 0.1863500326871872, 0.2971588969230652, -0.7153286337852478, -0.05428633093833923, 0.15259937942028046, 0.21561351418495178, 0.20752574503421783, -0.038724761456251144, -0.08375776559114456, 0.06291864067316055, 0.10479132831096649, 0.2673690915107727, -0.2166023850440979, -0.24554415047168732, -0.12942785024642944, -0.06403965502977371, 0.04815387353301048, -0.31547847390174866, -0.032393574714660645, -0.3209100067615509, -0.40094834566116333, -0.051126860082149506, 0.198669895529747, -0.22765454649925232, -0.33995771408081055, -0.18326619267463684, 0.18778759241104126, 0.11658138781785965, 0.2261727750301361, 0.1751224845647812, 0.12910069525241852, 0.1373225450515747, 0.011145766824483871, 0.20522914826869965, 0.05052466318011284, 0.7449360489845276, 0.29765236377716064, -0.25286829471588135, -0.20545995235443115, -0.0036785583943128586, -0.8008691668510437, 0.3690817356109619, 0.0956026166677475, 0.22409974038600922, -0.12404858320951462, 0.18547463417053223, -0.3875862956047058, -0.049137722700834274, 0.10454000532627106, 0.0718088299036026, -0.046788815408945084, -0.527384340763092, -0.6166070699691772, 0.25386112928390503, 0.10034860670566559, -0.07053305953741074, 0.17610181868076324, -0.03950032591819763, -0.3721259534358978, -0.12663233280181885, 0.44686201214790344, 0.9914249777793884, 0.12628278136253357, -0.20457115769386292, -0.30647552013397217, -0.37173402309417725, 0.052141714841127396, -0.3224624991416931, -0.14873053133487701, -0.31639790534973145, 0.13552424311637878, -0.10691986978054047, -0.04836294800043106, 0.4740172028541565, 0.3395564556121826, -0.39232081174850464, 0.04491289705038071, 0.3716096878051758, 0.04689038544893265, -0.04553686082363129, 0.7784314155578613, -0.31867995858192444, -0.23674443364143372, 0.20474423468112946, 0.14856162667274475, 0.05717012286186218, -0.08828946948051453, -0.11424344033002853, -0.4399166703224182, -0.07120807468891144, -0.12739016115665436, -0.406133770942688, -0.2920454740524292, -0.10561241209506989, -0.2347763031721115, -0.20928409695625305, -0.03536049649119377, 0.5741903781890869, 0.21899345517158508, 0.5228844285011292, 0.2558457553386688, -0.414074569940567, 0.12191814184188843, 0.14342796802520752, -0.25668174028396606, -0.13210922479629517, -0.10003633797168732, 0.4088863134384155, -0.19349274039268494, -0.27502208948135376, -0.10792062431573868, -0.20196306705474854, 0.04913495481014252, -0.28051841259002686, 0.007155336439609528, 0.12333530187606812, -0.2930017113685608, 0.10044240951538086, -0.21396934986114502, -0.19780701398849487, -0.04956354945898056, 0.1837703436613083, 0.13702157139778137, -0.05015087127685547, 0.24504488706588745, 0.16588449478149414, -0.029810607433319092, -0.02880191057920456, 0.1847512125968933, -0.15993061661720276, -0.14236877858638763, 0.020172106102108955, 0.012179013341665268, -0.17608173191547394, -0.38458484411239624, 0.13715705275535583, 0.08416473865509033, -0.12373003363609314, -0.3440846800804138, -0.024625403806567192, -0.1328612118959427, 0.13083316385746002, 0.19080181419849396, 0.26276862621307373, -0.022269226610660553, 0.038684193044900894, -0.3699919879436493, -0.39571413397789, 0.05286206305027008, -0.2782197594642639, 0.1491161733865738, -0.3459351062774658, -0.323650062084198, 0.16905564069747925, 0.1183299720287323, -0.3498452305793762, -0.015139194205403328, 0.044669054448604584, 0.1642175167798996, 0.12444104254245758, 0.10521931201219559, -0.20404359698295593, -0.28465887904167175, -0.003975877538323402, 0.12827274203300476, -0.23726847767829895, -0.159451425075531, -0.09152491390705109, 0.16031517088413239, 0.10458238422870636, 0.028122281655669212, -0.21574056148529053, -0.25519222021102905, -0.35547229647636414, 0.001178213395178318, 0.007399745285511017, -0.0960794985294342, -0.006895594298839569, 0.3142222464084625, 0.18403179943561554, 0.17503082752227783, 0.06715887039899826, 0.08260294795036316, -0.04836633801460266, 0.19071820378303528, 0.043503113090991974, -0.04020893573760986, -0.0470532551407814, 0.031254544854164124, 0.31964126229286194, 0.22040095925331116, 0.06495432555675507, -0.01961866393685341, 0.33278435468673706, -0.032532699406147, 0.35357466340065, 0.28182506561279297, -0.022032029926776886, 0.3322060704231262, -0.18980759382247925, 0.05792601406574249, 0.38029101490974426, 0.2299610674381256, -0.11757666617631912, -0.17092087864875793, 0.29429760575294495, -0.1555042266845703, -0.004348196089267731, 0.21263185143470764, 0.6201543211936951, 0.12706661224365234, -0.10949490964412689, 0.1265178918838501, 0.34981560707092285, -0.08437900990247726, 0.04552590101957321, 0.37210750579833984, -0.31278908252716064, 0.019933149218559265, 0.35688039660453796, 0.22360646724700928, -0.006333090364933014, 0.18968334794044495, 0.24010708928108215, 0.1889011710882187, 0.34120601415634155, 0.2725246548652649, 0.23095634579658508, -0.22623609006404877, 0.33668622374534607, 0.2455379068851471, 0.22246244549751282, 0.16776412725448608, 0.13814619183540344, -0.010823354125022888, 0.36210641264915466, -0.2713710367679596, -0.08673230558633804, 0.003302142024040222, -0.12109022587537766, 0.2783880829811096, -0.024225600063800812, -0.2079208791255951, -0.046839430928230286, -0.1330207884311676, 0.04221247136592865, -0.16679085791110992, -0.12515851855278015, -0.015796542167663574, -0.11011950671672821, 0.010661548003554344, 0.21380743384361267, 0.12666922807693481, 0.02822902798652649, -0.18070976436138153, 0.12522344291210175, -0.062180981040000916, -0.14931316673755646, 0.2648478150367737, 0.13934341073036194, 0.3062213361263275, 0.17575953900814056, -0.03349359333515167, 0.10386195778846741, 0.03008001297712326, -0.23531454801559448, 0.20814262330532074, 0.5127878189086914, 0.20628789067268372, 0.22928431630134583, 0.18893659114837646, 0.12856146693229675, -0.023843666538596153, 0.05867255479097366, -0.15861210227012634, -0.29414162039756775, 0.11558601260185242, -0.11737840622663498, 0.2776809632778168, -0.29180723428726196, -0.15614265203475952, -0.056999944150447845, -0.24945876002311707, -0.319322794675827, 0.7226653695106506, -0.027661466971039772, 0.0874955877661705, -0.3053847849369049, 0.0853746309876442, 0.2062305212020874, 0.39190879464149475, 0.29592373967170715, 0.01022958755493164, -0.03856579214334488, -0.11361439526081085, -0.8005523085594177, 0.015500903129577637, -0.14306248724460602, 0.005848424509167671, 0.20739027857780457, -0.20922304689884186, 0.21517673134803772, 0.25665977597236633, 0.17570866644382477, -0.06904460489749908, 0.09976352006196976, 0.2592836618423462, -0.14794163405895233, -0.15357553958892822, 0.14401687681674957, 0.24052231013774872, -0.07506753504276276, -0.03517194092273712, 0.28986093401908875, 0.19193901121616364, 0.06648493558168411, -0.3775225281715393, 0.27470484375953674, 0.08228030800819397, 0.18151426315307617, 0.40610745549201965, 0.0140216164290905, 0.5782946348190308, -0.18078497052192688, 0.02824200503528118, 0.010386023670434952, 0.46995893120765686, -0.021353648975491524, 0.3975282311439514, 0.17314766347408295, 0.11621415615081787, -0.07537733018398285, -0.09730316698551178, -0.2672233581542969, 0.2640325129032135, -0.08819770812988281, 0.040476713329553604, -0.5378924608230591, -0.05442291498184204, 0.16393375396728516, -0.10242053121328354, 0.0689287781715393, -0.13003164529800415, -0.04297412931919098, -0.04174681752920151, -0.19643515348434448, -0.25423499941825867, 0.4476867914199829, -0.08416470140218735, -0.12622113525867462, 0.08385173976421356, 0.027125313878059387, 0.2643662691116333, 0.13285458087921143, -0.9024065732955933, 0.043918900191783905, 0.44501441717147827, -0.08125437796115875, -0.19155968725681305, 0.07879620790481567, 0.05481917783617973, 0.05584469810128212, -0.14660964906215668, 0.13135981559753418, 0.061893999576568604, -0.1494850367307663, -0.2070048749446869, -0.1194758340716362 ]
https://github.com/huggingface/datasets/issues/2089
Add documentaton for dataset README.md files
Hi ! There's the tagging app at https://huggingface.co/datasets/tagging/ that you can use. It shows the list of all the tags you can use. It is based on all the tag sets defined in this folder: https://github.com/huggingface/datasets/tree/master/src/datasets/utils/resources
Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip
36
Add documentaton for dataset README.md files Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip Hi ! There's the tagging app at https://huggingface.co/datasets/tagging/ that you can use. It shows the list of all the tags you can use. It is based on all the tag sets defined in this folder: https://github.com/huggingface/datasets/tree/master/src/datasets/utils/resources
[ -0.28661689162254333, 0.09453339874744415, -0.15884874761104584, 0.19306395947933197, 0.27685052156448364, 0.31561386585235596, 0.26612091064453125, 0.1931917369365692, 0.17165786027908325, 0.02334708720445633, -0.12728950381278992, 0.24129414558410645, -0.1264386922121048, 0.3597065508365631, 0.09149045497179031, 0.02676299400627613, 0.08608365058898926, -0.10284014046192169, 0.1592581570148468, -0.18457910418510437, -0.1691451370716095, 0.017429525032639503, -0.04486619681119919, -0.16415061056613922, -0.3286382257938385, -0.16958729922771454, -0.12665604054927826, 0.09945648908615112, -0.41461634635925293, -0.5925247669219971, -0.050210561603307724, 0.31106430292129517, 0.20414942502975464, 0.11580728739500046, -0.00010105028923135251, -0.21475376188755035, 0.20521727204322815, -0.2352299839258194, -0.013936017639935017, -0.1126759946346283, -0.17687776684761047, -0.32792702317237854, -0.06015276163816452, -0.10672019422054291, -0.059718769043684006, -0.29257726669311523, -0.0841798484325409, -0.19045105576515198, 0.1979556381702423, 0.4205387234687805, 0.2686114013195038, -0.11035019159317017, 0.3406370282173157, -0.2250533401966095, 0.2706674337387085, 0.1677977442741394, -0.1239817664027214, 0.43744027614593506, 0.49006709456443787, 0.14726977050304413, -0.027813024818897247, 0.25088730454444885, -0.0373200848698616, 0.18734943866729736, 0.4723615348339081, -0.08203180134296417, 0.24237868189811707, -0.5768038034439087, 0.2497011125087738, 0.3870517313480377, 1.0391318798065186, -0.27808189392089844, -0.2529758810997009, -0.3692147731781006, 0.08368238061666489, -0.14494270086288452, 0.19674217700958252, 0.31725746393203735, 0.024646930396556854, 0.15992887318134308, -0.021522819995880127, -0.3635125160217285, -0.24900119006633759, 0.030807871371507645, 0.18050239980220795, 0.4041181802749634, -0.11611329764127731, -0.10122161358594894, 0.23094594478607178, -0.14537343382835388, -0.028073713183403015, 0.11795707046985626, -0.18536332249641418, 0.1704540103673935, 0.12579742074012756, -0.05641859397292137, -0.32484734058380127, -0.06845136731863022, 0.2850893437862396, -0.025975283235311508, -0.09027431905269623, 0.09604128450155258, -0.0556010939180851, 0.2861754596233368, 0.1512068659067154, -0.10179716348648071, 0.18573151528835297, 0.1761164516210556, 0.12154996395111084, -0.17161907255649567, 0.2133106291294098, -0.15623748302459717, -0.15300710499286652, -0.09065350890159607, -0.027515050023794174, -0.08233930170536041, -0.15275707840919495, -0.2826734483242035, 0.020031390711665154, -0.11338810622692108, 0.09690121561288834, -0.12563899159431458, 0.024313142523169518, 0.2854117751121521, 0.07406238466501236, -0.21253368258476257, -0.26713132858276367, 0.189676433801651, -0.00616554357111454, -0.14196036756038666, -0.046641189604997635, 0.16654521226882935, -0.12566834688186646, 0.20728565752506256, 0.25241369009017944, -0.12575392425060272, 0.32803380489349365, 0.13523751497268677, -0.07582826912403107, -0.18535254895687103, 0.13547563552856445, 0.013787612318992615, 0.21637797355651855, 0.2859225571155548, -0.020943939685821533, 0.005627548322081566, -0.039466384798288345, -0.4077000617980957, -0.2394082248210907, -0.0369073748588562, -0.41101551055908203, -0.22679007053375244, -0.3655216693878174, 0.26763981580734253, -0.12431983649730682, -0.04593198746442795, -0.202734112739563, 0.32197707891464233, 0.08121591061353683, 0.045032601803541183, 0.16628053784370422, 0.2537733018398285, -0.348163366317749, -0.2576189935207367, 0.03025188483297825, 0.4434053301811218, -0.26205623149871826, -0.11566530168056488, 0.06251875311136246, -0.08723442256450653, -0.1335524618625641, 0.018520694226026535, -0.25788140296936035, 0.2984244227409363, -0.2528010308742523, 0.26484984159469604, 0.37748053669929504, -0.4607774019241333, -0.1682923436164856, 0.07593382894992828, 0.02100042998790741, -0.3429538905620575, 0.15426714718341827, -0.0457940436899662, 0.4741378426551819, -0.17839863896369934, -0.17363661527633667, 0.021555056795477867, -0.13560543954372406, 0.03831504285335541, -0.17076100409030914, -0.026743963360786438, 0.042084068059921265, 0.14779238402843475, 0.09012480825185776, -0.0927906259894371, 0.39239302277565, 0.08401329815387726, -0.006596125662326813, -0.12466098368167877, 0.1666930615901947, 0.354076623916626, 0.18076956272125244, 0.1878831386566162, -0.009458370506763458, -0.1003723070025444, -0.4468116760253906, 0.10828151553869247, 0.07805035263299942, 0.29804539680480957, -0.018167294561862946, -0.3064984083175659, -0.366393119096756, -0.2408527433872223, -0.39771467447280884, -0.3615725636482239, 0.1890881061553955, 0.030356161296367645, -0.1249265968799591, 0.1889830380678177, -0.17470917105674744, 0.20965741574764252, -0.026315415278077126, 0.12587030231952667, -0.2828810513019562, -0.05410633981227875, -0.18976512551307678, -0.012179306708276272, 0.35334232449531555, 0.0889369547367096, 0.20291414856910706, -0.004182507283985615, -0.05476550757884979, 0.32213330268859863, 0.17337968945503235, 0.27282506227493286, 0.23412024974822998, 0.5424047708511353, 0.3943710923194885, -0.3049965500831604, 0.28065553307533264, -0.31872865557670593, 0.09828437119722366, -0.24130776524543762, -0.4253421723842621, 0.12179724872112274, -0.21087069809436798, -0.0855720117688179, -0.08782340586185455, -0.043188467621803284, 0.2023259550333023, 0.025789160281419754, -0.141556978225708, -0.4092409312725067, -0.19960780441761017, -0.09293749928474426, 0.1340220868587494, -0.014262357726693153, 0.07029038667678833, 0.15935754776000977, 0.6423450112342834, -0.010372607037425041, 0.10533477365970612, 0.11136668175458908, -0.11600814014673233, 0.018849562853574753, 0.23011933267116547, 0.15411201119422913, 0.08343388140201569, 0.2618062198162079, 0.2813132703304291, 0.1955120861530304, 0.01217805128544569, -0.2820141017436981, 0.1582178771495819, -0.08509083092212677, -0.008879449218511581, 0.1671546995639801, -0.2094472050666809, -0.11370149999856949, -0.2982533574104309, -0.013009754940867424, 0.10259736329317093, 0.298698365688324, -0.29725226759910583, -0.21020668745040894, -0.304435133934021, -0.1905398964881897, -0.24613255262374878, -0.24860946834087372, -0.5396836400032043, -0.24662292003631592, 0.08364366739988327, 0.06871359050273895, 0.018367789685726166, 0.05760960280895233, -0.11290206015110016, 0.018597975373268127, -0.2259151190519333, 0.2494397908449173, -0.16715529561042786, -0.2185424417257309, -0.11166007071733475, 0.15299177169799805, 0.5170539617538452, 0.456858366727829, 0.6414667367935181, -0.35836824774742126, 0.2536119818687439, -0.24703264236450195, -0.44763508439064026, 0.12780368328094482, -0.09855583310127258, 0.27601662278175354, 0.0628417581319809, 0.08695078641176224, -0.03241695463657379, 0.03356035798788071, 0.12976495921611786, -0.026087438687682152, -0.12149384617805481, -0.2069975882768631, -0.021577514708042145, -0.22631773352622986, -0.06221570819616318, -0.5958680510520935, -0.21169178187847137, -0.45267945528030396, 0.17332468926906586, -0.11795097589492798, 0.16487014293670654, 0.1894068717956543, -0.00553043931722641, 0.24143706262111664, -0.2219725400209427, 0.2568541467189789, -0.2677105963230133, -0.13667930662631989, 0.35234832763671875, -0.4366486966609955, -0.31815996766090393, 0.5248669981956482, 0.20301306247711182, 0.4070839583873749, -0.19045589864253998, -0.22723715007305145, 0.03990386798977852, 0.14607280492782593, -0.0054594650864601135, 0.045652881264686584, 0.045085176825523376, 0.2071581929922104, 0.18424199521541595, 0.012662762776017189, -0.14879640936851501, -0.1339661180973053, -0.10942623764276505, -0.15330007672309875, -0.045263029634952545, 0.0002427324652671814, 0.12601125240325928, -0.016664085909724236, 0.41190534830093384, 0.20078007876873016, 0.1465071737766266, 0.43319782614707947, -0.038698650896549225, 0.34996193647384644, 0.007420375943183899, -0.3237253725528717, 0.241395503282547, 0.03198715299367905, 0.2089143544435501, 0.3521709144115448, 0.18116968870162964, 0.11117962747812271, -0.1400907039642334, -0.18475988507270813, -0.42988625168800354, -0.24746306240558624, 0.1573474407196045, -0.07367254048585892, 0.14956986904144287, -0.24708394706249237, 0.05990752577781677, 0.06619828939437866, -0.2099086046218872, 0.2634678781032562, 0.7211679816246033, -0.1686713993549347, 0.17188936471939087, -0.4008210599422455, 0.13141177594661713, -0.0836729183793068, 0.10110599547624588, 0.16514788568019867, 0.08817262947559357, -0.37925612926483154, 0.15646898746490479, 0.041223298758268356, 0.17430786788463593, 0.36376047134399414, -0.6297624111175537, -0.056645363569259644, 0.16254492104053497, 0.15333952009677887, 0.16710811853408813, 0.06257012486457825, -0.07570867240428925, 0.059778161346912384, 0.16868461668491364, 0.30571502447128296, -0.3238658905029297, -0.23826999962329865, -0.19111987948417664, 0.0012686057016253471, 0.06947523355484009, -0.19673572480678558, -0.03580601513385773, -0.24663510918617249, -0.5505598783493042, -0.06428750604391098, 0.15550349652767181, -0.17781664431095123, -0.21486929059028625, -0.1831831932067871, 0.1584174484014511, 0.11107788234949112, 0.21557730436325073, 0.228756844997406, 0.13626769185066223, 0.18196634948253632, 0.050755392760038376, 0.3108940124511719, 0.07808095216751099, 0.6399562954902649, 0.49520143866539, -0.3066953122615814, -0.2850315272808075, -0.007126891985535622, -0.6396297216415405, 0.3948834240436554, 0.08349244296550751, 0.2394908368587494, -0.05769173055887222, 0.22035394608974457, -0.308415949344635, -0.18507081270217896, 0.040448810905218124, 0.015322383493185043, 0.07671594619750977, -0.4257960319519043, -0.5817591547966003, 0.3822159171104431, 0.14451251924037933, -0.03738989681005478, 0.17839421331882477, 0.019167155027389526, -0.3615923821926117, -0.11243995279073715, 0.2835024893283844, 0.9116526246070862, -0.034793250262737274, -0.19592610001564026, -0.25401586294174194, -0.3699355721473694, 0.19584684073925018, -0.25738513469696045, -0.18428780138492584, -0.24107114970684052, 0.12396462261676788, -0.05341625586152077, 0.012265365570783615, 0.41374966502189636, 0.30914413928985596, -0.38997185230255127, 0.17453628778457642, 0.2809736132621765, 0.07068116217851639, -0.12508133053779602, 0.7324369549751282, -0.30975770950317383, -0.39873579144477844, 0.049938321113586426, 0.23093938827514648, -0.0987997055053711, 0.02675453945994377, -0.06316683441400528, -0.40662771463394165, -0.03120357170701027, 0.030715540051460266, -0.34341293573379517, -0.27801451086997986, -0.15242551267147064, -0.2990489602088928, -0.141358882188797, 0.00040112435817718506, 0.499779611825943, 0.22156116366386414, 0.4800949692726135, 0.11989526450634003, -0.4500289261341095, 0.07063199579715729, -0.03439444303512573, -0.191152885556221, -0.15319965779781342, -0.03265509381890297, 0.4229026436805725, -0.17080208659172058, -0.18037593364715576, -0.084617979824543, 0.016717303544282913, 0.11342589557170868, -0.27832287549972534, -0.07450251281261444, 0.14159545302391052, -0.3183539807796478, 0.1876697838306427, -0.22711345553398132, -0.1258002668619156, -0.1471266895532608, 0.2240530550479889, 0.1488533318042755, -0.045738037675619125, 0.07887396961450577, 0.2366679310798645, -0.06271438300609589, -0.14448891580104828, 0.19926874339580536, -0.19471406936645508, -0.06801369041204453, -0.0035510212182998657, 0.18395493924617767, -0.24440276622772217, -0.3652845323085785, 0.07152634114027023, 0.0970902293920517, -0.2910976707935333, -0.22420430183410645, 0.12692300975322723, -0.08332949876785278, 0.08546654880046844, 0.21868056058883667, 0.18834742903709412, -0.12387856096029282, 0.013475384563207626, -0.3131448030471802, -0.36366933584213257, 0.07124940305948257, -0.13439218699932098, 0.17808209359645844, -0.30832135677337646, -0.2260962873697281, 0.22046023607254028, 0.16329365968704224, -0.422583669424057, -0.08447832614183426, -0.026374008506536484, 0.10502400249242783, 0.1314009130001068, 0.08049634099006653, -0.07601938396692276, -0.20775102078914642, 0.03212680667638779, 0.15388888120651245, -0.3212023079395294, -0.2053709328174591, -0.15634500980377197, 0.10448145866394043, -0.026579909026622772, -0.018757840618491173, -0.1343594342470169, -0.16242755949497223, -0.27307289838790894, -0.10607905685901642, 0.1421526074409485, -0.07770898938179016, -0.030681468546390533, 0.2276831418275833, 0.20365828275680542, 0.1546228677034378, 0.11255030333995819, -0.023295506834983826, 0.034229688346385956, 0.2108047604560852, 0.0369202122092247, -0.17079326510429382, -0.1542033702135086, 0.015604369342327118, 0.24066634476184845, 0.24594977498054504, 0.17183956503868103, -0.15324917435646057, 0.3232675790786743, -0.07174879312515259, 0.31823304295539856, 0.44935253262519836, 0.07567524909973145, 0.23002853989601135, -0.16026124358177185, 0.14816923439502716, 0.3929872512817383, 0.30364176630973816, -0.13575521111488342, -0.1440729945898056, 0.26807552576065063, -0.1421366184949875, 0.059187013655900955, 0.30281636118888855, 0.5868408679962158, 0.11363020539283752, -0.1470521092414856, 0.06025749444961548, 0.3613984286785126, -0.13029628992080688, 0.1025853157043457, 0.2724305987358093, -0.2673548460006714, 0.04267615079879761, 0.42619356513023376, 0.3482816517353058, 0.06479188799858093, 0.18362857401371002, 0.08377786725759506, 0.3153514862060547, 0.27591291069984436, 0.2919805943965912, 0.2143125832080841, -0.2817304730415344, 0.19229015707969666, 0.24285458028316498, 0.23433256149291992, 0.1910165250301361, 0.06428603827953339, 0.23526045680046082, 0.20196184515953064, -0.3495033085346222, -0.024081366136670113, 0.18415707349777222, -0.12169007211923599, 0.20931249856948853, -0.041797708719968796, -0.17389170825481415, -0.155283123254776, -0.0585135743021965, -0.02905900403857231, -0.3398754596710205, -0.0005945786833763123, -0.09073509275913239, -0.1026567816734314, -0.14300239086151123, -0.00010437518358230591, 0.0046438053250312805, 0.14166562259197235, -0.21702085435390472, 0.17823009192943573, -0.036396414041519165, -0.12864738702774048, 0.24890023469924927, 0.17961540818214417, 0.3387129008769989, 0.10642897337675095, 0.004988119006156921, 0.12398700416088104, -0.08109331130981445, -0.18238456547260284, 0.06757781654596329, 0.48484423756599426, 0.06366641819477081, 0.15579622983932495, 0.20961086452007294, 0.15933343768119812, -0.14251236617565155, -0.042582038789987564, -0.22611598670482635, -0.06343163549900055, 0.08106911182403564, -0.20031577348709106, 0.06509667634963989, -0.1656084656715393, -0.20102427899837494, -0.07082175463438034, -0.36516302824020386, -0.1357482224702835, 0.5536831021308899, -0.056329794228076935, 0.057345129549503326, -0.2745268940925598, 0.11981819570064545, 0.26675698161125183, 0.372822642326355, 0.18857553601264954, 0.11641401052474976, -0.03061944618821144, -0.08405078947544098, -0.7492576837539673, -0.0726456418633461, -0.09139664471149445, 0.01375686563551426, 0.1357332468032837, -0.17103929817676544, 0.20556411147117615, 0.2695924639701843, 0.12366901338100433, 0.010231876745820045, 0.16599006950855255, 0.18994520604610443, -0.11428068578243256, -0.21078218519687653, -0.0115237757563591, 0.15439487993717194, 0.057693883776664734, 0.033314935863018036, 0.23401546478271484, 0.05246013030409813, 0.0689009502530098, -0.3286008834838867, 0.2945059537887573, -0.006518492475152016, 0.07377734780311584, 0.4180581569671631, -0.08500440418720245, 0.4787146747112274, -0.19538739323616028, 0.017406323924660683, -0.0229143388569355, 0.19859857857227325, -0.13946253061294556, 0.4079092741012573, 0.14807409048080444, 0.20087586343288422, -0.09285035729408264, -0.12453113496303558, -0.27611804008483887, 0.20356544852256775, -0.0565917007625103, 0.06933978199958801, -0.4167175889015198, 0.012935800477862358, 0.12362537533044815, -0.15462841093540192, 0.08530901372432709, 0.05087264999747276, -0.007576122879981995, -0.1288852095603943, -0.1928001344203949, -0.27947568893432617, 0.47359901666641235, -0.06923578679561615, -0.11550572514533997, 0.12133655697107315, 0.009320691227912903, 0.4011227488517761, 0.06227011978626251, -0.9307847023010254, 0.16765525937080383, 0.41409870982170105, 0.034472476691007614, -0.2256738394498825, 0.1757376790046692, -0.012939294800162315, -0.015529084950685501, -0.1914815604686737, 0.18286007642745972, 0.07117225974798203, -0.11266342550516129, -0.06457177549600601, -0.12526915967464447 ]
https://github.com/huggingface/datasets/issues/2089
Add documentaton for dataset README.md files
I don't think so. Feel free to take a look at the tags of other models (example [here](https://huggingface.co/bert-base-uncased/blob/main/README.md)). But we should definitely have some docs or an app to write the tags. Feel free to open an issue in the `transformers` repo or in the `huggingface_hub` repo so we can discuss this
Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip
52
Add documentaton for dataset README.md files Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip I don't think so. Feel free to take a look at the tags of other models (example [here](https://huggingface.co/bert-base-uncased/blob/main/README.md)). But we should definitely have some docs or an app to write the tags. Feel free to open an issue in the `transformers` repo or in the `huggingface_hub` repo so we can discuss this
[ -0.13014498353004456, -0.03524300456047058, -0.0532185360789299, 0.24710465967655182, 0.2942432165145874, 0.2559414803981781, 0.4152005612850189, 0.1293422430753708, 0.09287884831428528, -0.048423975706100464, -0.17295490205287933, 0.07008867710828781, -0.17187094688415527, 0.33226606249809265, 0.11022855341434479, -0.07998673617839813, 0.07458183914422989, -0.06401212513446808, 0.08292954415082932, -0.342540979385376, -0.12059982866048813, 0.047330982983112335, 0.008605793118476868, -0.15901696681976318, -0.34150049090385437, -0.06475645303726196, -0.1081090122461319, 0.08788254857063293, -0.3661056458950043, -0.44181838631629944, 0.03437822312116623, 0.3645285367965698, 0.275333046913147, 0.2000299096107483, -0.00011224959598621354, -0.08206842094659805, 0.20179809629917145, -0.2937224805355072, 0.08058460056781769, -0.06951624155044556, -0.1306840479373932, -0.2235606461763382, 0.00025388062931597233, -0.16599823534488678, -0.04437219351530075, -0.11045603454113007, -0.08385097235441208, 0.07290837168693542, 0.4370499849319458, 0.3751865029335022, 0.1481335610151291, 0.15687090158462524, 0.357942670583725, -0.07536286860704422, 0.39063265919685364, 0.5329558849334717, -0.17211413383483887, 0.3704761862754822, 0.4002629816532135, 0.13447700440883636, -0.008602723479270935, 0.3429555296897888, 0.010265050455927849, 0.08151145279407501, 0.5320783853530884, 0.06147625297307968, 0.4577288329601288, -0.4999293386936188, 0.07460469752550125, 0.49686911702156067, 0.8872464299201965, -0.277863085269928, -0.3920512795448303, -0.4509536325931549, 0.051173169165849686, -0.0022099651396274567, 0.1275164783000946, 0.22921401262283325, -0.022325582802295685, 0.20233730971813202, -0.03596281632781029, -0.39701542258262634, -0.2950105667114258, -0.016448475420475006, 0.21325820684432983, 0.5303968787193298, -0.08309885859489441, -0.048389025032520294, 0.20289310812950134, -0.07507184147834778, 0.03790655732154846, -0.020929984748363495, -0.13303132355213165, 0.1808844953775406, 0.182943657040596, -0.2720576524734497, -0.4023817777633667, -0.009105034172534943, 0.28358086943626404, -0.12887156009674072, -0.0929570272564888, 0.010474927723407745, -0.05702750012278557, 0.2156040072441101, 0.24617895483970642, -0.07066504657268524, -0.10412175208330154, 0.28441494703292847, 0.14893367886543274, -0.0632367730140686, 0.35048696398735046, -0.1537153124809265, -0.14323954284191132, 0.03205188363790512, -0.16252963244915009, -0.05854260176420212, -0.11972378194332123, -0.21734726428985596, 0.16576625406742096, -0.18949919939041138, 0.2245897650718689, -0.11914113163948059, 0.08653891086578369, 0.331421434879303, 0.06749013066291809, -0.13504824042320251, -0.24036212265491486, 0.08499504625797272, 0.05126702040433884, -0.13407109677791595, -0.0295303612947464, 0.08564557135105133, -0.1304166167974472, 0.25663435459136963, 0.23083488643169403, -0.04537775740027428, 0.2571466267108917, 0.0018121274188160896, 0.11419185996055603, -0.09511639177799225, 0.0790746808052063, 0.055301208049058914, 0.16968438029289246, 0.37545424699783325, -0.2198622226715088, 0.042217791080474854, -0.05932946875691414, -0.38386034965515137, -0.2995627522468567, 0.06807798147201538, -0.36027979850769043, -0.28454622626304626, -0.37642374634742737, 0.13326725363731384, -0.17126841843128204, 0.06723292171955109, -0.25173041224479675, 0.29263991117477417, 0.1982022225856781, -0.09825023263692856, 0.2711411118507385, 0.25770077109336853, -0.2646191120147705, -0.15254350006580353, 0.05432972311973572, 0.5442988872528076, -0.15501879155635834, -0.2414231151342392, -0.012159936130046844, -0.015331938862800598, -0.2538619935512543, 0.1582324057817459, -0.3104729652404785, 0.28803279995918274, -0.21257957816123962, 0.1954709142446518, 0.30752384662628174, -0.5969017744064331, -0.28786763548851013, 0.1899212747812271, 0.044101469218730927, -0.24301792681217194, 0.27520859241485596, -0.009863743558526039, 0.4363814890384674, -0.22211319208145142, -0.2216966450214386, -0.11648178100585938, -0.14547525346279144, 0.03004251979291439, -0.17886534333229065, -0.18242432177066803, 0.18016639351844788, 0.17706795036792755, 0.14271438121795654, -0.005653262138366699, 0.28130999207496643, 0.3177364468574524, 0.18075978755950928, -0.08943711221218109, 0.10503657162189484, 0.39709341526031494, 0.34766167402267456, 0.03445131331682205, 0.05760811269283295, -0.09566579759120941, -0.6226604580879211, 0.036994852125644684, -0.0407792329788208, 0.39147114753723145, -0.07539889216423035, -0.32385164499282837, -0.2640573978424072, -0.2537078559398651, -0.3115502595901489, -0.442272424697876, 0.07669305801391602, -0.049022361636161804, -0.2323363870382309, 0.11212043464183807, -0.2760219871997833, 0.32504525780677795, 0.08415783196687698, 0.1767023503780365, -0.4231538474559784, 0.08792070299386978, -0.3023082911968231, 0.09816757589578629, 0.24127012491226196, 0.10989938676357269, 0.12735873460769653, -0.09519868344068527, 0.009488223120570183, 0.23343682289123535, -0.0210515558719635, 0.21753092110157013, 0.09824623167514801, 0.66241455078125, 0.5612778663635254, -0.3053036332130432, 0.1880626231431961, -0.283532977104187, 0.09846572577953339, -0.18100975453853607, -0.5105966925621033, 0.06831787526607513, -0.18711262941360474, -0.057043738663196564, -0.0027721375226974487, -0.10046501457691193, 0.19076919555664062, 0.032071296125650406, -0.2853163778781891, -0.3556482493877411, -0.23454345762729645, 0.09649673104286194, 0.23932264745235443, 0.09287641942501068, 0.19012856483459473, 0.06278625130653381, 0.7504211068153381, -0.12580057978630066, 0.09177476912736893, 0.19571518898010254, -0.22763144969940186, -0.021266929805278778, 0.12587794661521912, 0.12219476699829102, 0.14490513503551483, 0.21344439685344696, 0.060429252684116364, 0.16159215569496155, 0.09863588958978653, -0.17373090982437134, 0.12429169565439224, 0.03721201419830322, -0.07002531737089157, 0.2428624927997589, -0.23855739831924438, 0.011652632616460323, -0.29255831241607666, -0.023855190724134445, 0.1365641951560974, 0.22980627417564392, -0.39266151189804077, -0.16882392764091492, 0.050581395626068115, 0.038557298481464386, -0.2868266999721527, -0.2530362606048584, -0.658318281173706, -0.11109017580747604, 0.09610461443662643, 0.02890852838754654, 0.05611954256892204, 0.06240929663181305, 0.06278066337108612, 0.19701941311359406, -0.17628076672554016, 0.2620812952518463, -0.33911049365997314, -0.22608256340026855, -0.08661402016878128, 0.038384418934583664, 0.4431889057159424, 0.37958917021751404, 0.3404741883277893, -0.32374948263168335, 0.2406795471906662, -0.11477970331907272, -0.6005820035934448, 0.2257780134677887, -0.13844971358776093, 0.31395259499549866, 0.11847492307424545, 0.05758078023791313, 0.10743448138237, -0.11118481308221817, 0.135805144906044, -0.03346554934978485, -0.12986063957214355, -0.2549872398376465, -0.03327968716621399, -0.26190048456192017, -0.1209806352853775, -0.4445782005786896, -0.24849452078342438, -0.38264772295951843, 0.3122246265411377, -0.13250866532325745, 0.055502958595752716, 0.30775901675224304, -0.007762504741549492, 0.19767357409000397, -0.24744299054145813, 0.11548086255788803, -0.1699933558702469, -0.09006591141223907, 0.4744245707988739, -0.34643086791038513, -0.2834532558917999, 0.2812027633190155, 0.05283220112323761, 0.2554813027381897, -0.28435683250427246, -0.24344107508659363, 0.04280884563922882, 0.0934886783361435, -0.25095051527023315, 0.027617769315838814, 0.0766630470752716, 0.2747790813446045, 0.2590768337249756, 0.11700080335140228, -0.11309362202882767, -0.1745864897966385, -0.0401853546500206, 0.062144406139850616, -0.002089560031890869, -0.10460745543241501, 0.14656463265419006, -0.07571324706077576, 0.3623979091644287, 0.07720033824443817, 0.061558790504932404, 0.33162257075309753, 0.05718576908111572, 0.4331570565700531, 0.0660252645611763, -0.35460197925567627, 0.206272155046463, 0.006727054715156555, 0.08007791638374329, 0.37203866243362427, 0.08021418005228043, 0.17184235155582428, -0.1251850575208664, -0.3122662901878357, -0.309334397315979, -0.3860102593898773, 0.10219193249940872, 0.22280140221118927, 0.0934712365269661, -0.17058418691158295, 0.0037210509181022644, -0.05338237062096596, -0.16635259985923767, 0.35437190532684326, 0.8319621086120605, -0.14103540778160095, 0.08831619471311569, -0.2800043225288391, 0.1888357251882553, -0.22738230228424072, 0.02155482769012451, 0.18965837359428406, 0.012695739045739174, -0.2334347814321518, 0.21133366227149963, -0.00765661895275116, 0.1565873622894287, 0.5497598052024841, -0.5247403979301453, -0.06314842402935028, 0.012960363179445267, 0.01762070506811142, 0.11084485799074173, 0.06637366116046906, -0.13729646801948547, -0.0921611338853836, 0.13167715072631836, 0.49496182799339294, -0.4311371445655823, -0.28164470195770264, -0.08440130949020386, -0.07658824324607849, -0.06942035257816315, -0.25303468108177185, -0.09525816142559052, -0.15937483310699463, -0.5372490882873535, -0.12789249420166016, 0.267438143491745, -0.2953922152519226, -0.17291775345802307, -0.24302330613136292, 0.18324650824069977, 0.04559645801782608, 0.27723342180252075, 0.24631686508655548, 0.15554696321487427, 0.1407817155122757, -0.02123008854687214, 0.38347092270851135, 0.0792541429400444, 0.6136366724967957, 0.40857967734336853, -0.3780502676963806, -0.32430562376976013, 0.032222211360931396, -0.7105808854103088, 0.29470521211624146, 0.2757337689399719, 0.25166255235671997, -0.06870012730360031, 0.425886332988739, -0.21192164719104767, -0.18527355790138245, 0.058973219245672226, 0.11564763635396957, 0.019267678260803223, -0.5070009231567383, -0.5510526895523071, 0.41384264826774597, -0.006082690320909023, -0.037635479122400284, 0.012716993689537048, 0.2641603946685791, -0.3906281292438507, 0.15367847681045532, 0.32430827617645264, 1.2151700258255005, -0.1024533361196518, 0.05640220642089844, -0.3050800561904907, -0.24167409539222717, 0.36782631278038025, -0.4156567454338074, -0.12343236804008484, -0.2671497166156769, 0.014428472146391869, -0.12643077969551086, 0.0145881287753582, 0.36296382546424866, 0.3674154281616211, -0.3801303207874298, 0.06065671518445015, 0.34213244915008545, 0.20658478140830994, -0.1084156483411789, 0.7030030488967896, -0.13091962039470673, -0.405295193195343, 0.021795999258756638, 0.07646248489618301, 0.02942320518195629, 0.13671447336673737, -0.08364095538854599, -0.5859965085983276, -0.07805541157722473, -0.13613709807395935, -0.3741077780723572, -0.35253989696502686, -0.20449650287628174, -0.2110222727060318, 0.023923765867948532, 0.024666234850883484, 0.5534371733665466, 0.23665115237236023, 0.5483724474906921, 0.162150040268898, -0.6404771208763123, 0.13559754192829132, -0.12392357736825943, -0.19569985568523407, -0.22477923333644867, 0.047875069081783295, 0.3694460690021515, -0.1299373209476471, -0.20230327546596527, -0.13304099440574646, -0.06826850026845932, -0.0005882047116756439, -0.2465473711490631, -0.149617537856102, 0.10547801107168198, -0.34846746921539307, 0.14427828788757324, -0.19869405031204224, -0.24113163352012634, -0.14794763922691345, 0.13714003562927246, 0.03239291533827782, -0.11512691527605057, 0.035100098699331284, 0.27598458528518677, -0.15523111820220947, -0.08789767324924469, 0.23379656672477722, -0.19648808240890503, -0.09904556721448898, 0.10551810264587402, 0.10040983557701111, -0.23998747766017914, -0.29593977332115173, -0.015673410147428513, 0.26851654052734375, -0.6028067469596863, -0.24544860422611237, 0.06272203475236893, -0.18084591627120972, 0.012280051596462727, 0.3699561059474945, 0.3838861584663391, -0.1363752782344818, -0.05213566869497299, -0.22573813796043396, -0.5842856764793396, 0.1538548320531845, -0.1406337320804596, 0.1699548065662384, -0.18897369503974915, -0.11572755873203278, 0.1967945247888565, 0.21675638854503632, -0.3300185799598694, -0.13945208489894867, -0.016645079478621483, 0.04117444157600403, 0.16158834099769592, -0.004522785544395447, 0.0675559788942337, -0.3016515374183655, -0.05239909514784813, 0.2579047679901123, -0.27035367488861084, -0.09995651990175247, -0.24501393735408783, 0.17750988900661469, 0.025321170687675476, 0.014224860817193985, -0.2025497406721115, -0.023405209183692932, -0.29658007621765137, -0.12781614065170288, 0.210447296500206, 0.04190675914287567, 0.1458960622549057, 0.25942638516426086, 0.2857015132904053, 0.16321790218353271, -0.15039414167404175, 0.027943618595600128, 0.12850946187973022, 0.17035457491874695, 0.1481311023235321, -0.1565217822790146, -0.1611437052488327, 0.10488168895244598, 0.3086868226528168, 0.23694288730621338, 0.21713826060295105, -0.004965502768754959, 0.3991967737674713, -0.007529564201831818, 0.26954272389411926, 0.3434652090072632, 0.11907421052455902, 0.19015544652938843, -0.1295444816350937, 0.13850505650043488, 0.3368331491947174, 0.17722384631633759, -0.22711758315563202, -0.10551004111766815, 0.31891128420829773, -0.17776979506015778, 0.10208678245544434, 0.4221237897872925, 0.5702974796295166, 0.26885807514190674, -0.017272017896175385, 0.12583762407302856, 0.46698155999183655, 0.025778358802199364, 0.0944090187549591, 0.40130525827407837, -0.2711421251296997, 0.128104105591774, 0.4452599287033081, 0.3683161437511444, 0.17300456762313843, 0.19133642315864563, 0.09185607731342316, 0.11471971124410629, 0.0034724362194538116, 0.288126677274704, 0.333924800157547, -0.15541772544384003, 0.18779294192790985, 0.15638642013072968, 0.4228900969028473, 0.20241588354110718, 0.07722301781177521, 0.07687510550022125, 0.31155189871788025, -0.22703659534454346, -0.12061503529548645, 0.11911457777023315, -0.06484486162662506, 0.06646369397640228, 0.24246495962142944, -0.12485131621360779, -0.216467946767807, -0.10075585544109344, -0.04001803323626518, -0.32614028453826904, -0.06290549039840698, 0.0003628358244895935, -0.0012209564447402954, 0.09547584503889084, -0.05731801688671112, 0.06829960644245148, 0.14246055483818054, -0.23031707108020782, 0.13693545758724213, 0.17438435554504395, -0.14686118066310883, 0.162930428981781, 0.22211705148220062, 0.2091762125492096, 0.07199084758758545, -0.025223832577466965, 0.20932041108608246, 0.04192769527435303, -0.13462522625923157, 0.08987760543823242, 0.41829168796539307, 0.18996742367744446, 0.270529180765152, 0.09561081230640411, 0.06139560043811798, -0.11488943547010422, -0.03881210461258888, -0.28473135828971863, -0.08632557094097137, -0.009928613901138306, 0.06289637088775635, -0.006866957992315292, -0.24126321077346802, -0.23674729466438293, -0.12364333122968674, -0.45291078090667725, -0.08922118693590164, 0.5199390649795532, -0.1434406042098999, 0.05442611128091812, -0.18105533719062805, 0.05027026683092117, 0.2086043357849121, 0.4289122521877289, 0.2435465008020401, 0.027823688462376595, -0.0888555720448494, 0.06259411573410034, -0.7101927399635315, -0.012414991855621338, -0.019106868654489517, 0.12454503774642944, 0.18921875953674316, -0.21410435438156128, 0.24092110991477966, 0.16184625029563904, 0.12125372141599655, -0.07457450032234192, -0.06715657562017441, 0.08009634912014008, -0.07104746997356415, -0.17404897511005402, -0.20684711635112762, 0.17683053016662598, 0.1298549622297287, 0.013196803629398346, 0.19741171598434448, 0.3441028296947479, -0.04799529165029526, -0.45237600803375244, 0.3501647114753723, -0.033070944249629974, 0.06210906058549881, 0.3149148225784302, -0.0859728530049324, 0.4451010525226593, -0.20298847556114197, -0.13554111123085022, 0.06715340167284012, 0.24984481930732727, -0.11638744920492172, 0.349943608045578, 0.16672082245349884, 0.24665585160255432, -0.24407429993152618, -0.27460768818855286, -0.4681324064731598, 0.05802585184574127, -0.003403685986995697, -0.13275933265686035, -0.65105140209198, 0.0006261821836233139, 0.04648326337337494, -0.22793562710285187, 0.21119561791419983, 0.05428589880466461, -0.0371280312538147, -0.11822327226400375, -0.18862444162368774, -0.1355213075876236, 0.6211863160133362, -0.17263692617416382, -0.1415698379278183, 0.13339808583259583, -0.04546085000038147, 0.40835827589035034, -0.017049593850970268, -1.1616519689559937, 0.13225749135017395, 0.3177459239959717, 0.025812899693846703, -0.2481319010257721, 0.027504604309797287, 0.07883995771408081, -0.025997722521424294, -0.23171861469745636, 0.2802077531814575, 0.09768544137477875, -0.15324020385742188, -0.182061105966568, -0.17606917023658752 ]
https://github.com/huggingface/datasets/issues/2089
Add documentaton for dataset README.md files
When modifying a README file, the Hub now displays a special UI with allowed values (see https://huggingface.co/docs/datasets/main/en/upload_dataset#create-a-dataset-card).
Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip
17
Add documentaton for dataset README.md files Hi, the dataset README files have special headers. Somehow a documenation of the allowed values and tags is missing. Could you add that? Just to give some concrete questions that should be answered imo: - which values can be passted to multilinguality? - what should be passed to language_creators? - which values should licenses have? What do I say when it is a custom license? Should I add a link? - how should I choose size_categories ? What are valid ranges? - what are valid task_categories? Thanks Philip When modifying a README file, the Hub now displays a special UI with allowed values (see https://huggingface.co/docs/datasets/main/en/upload_dataset#create-a-dataset-card).
[ -0.2301567941904068, -0.05551479011774063, -0.09261226654052734, 0.1692197322845459, 0.17993929982185364, 0.30602940917015076, 0.26221227645874023, 0.18050923943519592, 0.20940376818180084, 0.08875925838947296, -0.13324232399463654, 0.29123252630233765, -0.03837963193655014, 0.3361722230911255, 0.015504765324294567, 0.15765878558158875, 0.06953632831573486, -0.10729461908340454, 0.21264885365962982, -0.21168005466461182, -0.12024015188217163, -0.049559563398361206, -0.12425829470157623, -0.27008241415023804, -0.44692426919937134, -0.08881061524152756, -0.04969998449087143, 0.2670237720012665, -0.4672124683856964, -0.5440710186958313, -0.022668389603495598, 0.4783254861831665, 0.13653458654880524, 0.12575820088386536, -0.00011119517148472369, -0.26156675815582275, 0.3017754554748535, -0.19868949055671692, -0.05712639167904854, -0.07687141001224518, -0.2656368911266327, -0.3066013753414154, -0.0722682848572731, -0.058270685374736786, 0.04201919585466385, -0.08987431973218918, -0.09558163583278656, 0.01830257475376129, 0.2008545994758606, 0.4222249686717987, 0.16267018020153046, 0.03744276985526085, 0.29240474104881287, -0.17225700616836548, 0.3187521696090698, 0.4393734335899353, -0.20264939963817596, 0.45951834321022034, 0.5249035954475403, 0.2348049134016037, -0.05733122676610947, 0.14342540502548218, -0.052798427641391754, 0.12135359644889832, 0.45181989669799805, -0.06008651852607727, 0.24531415104866028, -0.4812929928302765, 0.11995398998260498, 0.44569870829582214, 0.8907895684242249, -0.29516905546188354, -0.1933421492576599, -0.4898323118686676, 0.1744033545255661, -0.022671576589345932, 0.30546408891677856, 0.28573182225227356, -0.0345972403883934, 0.18523693084716797, 0.02935025282204151, -0.4576593339443207, -0.24464723467826843, 0.06725054979324341, 0.22821453213691711, 0.33221834897994995, -0.12162812054157257, -0.053458742797374725, 0.07855333387851715, -0.029782921075820923, 0.26132628321647644, 0.0106673464179039, -0.20853671431541443, 0.19939342141151428, 0.12455639243125916, -0.0824907124042511, -0.2857321500778198, 0.20372802019119263, 0.2847282588481903, -0.0523308664560318, -0.02342112734913826, 0.16300252079963684, -0.21763812005519867, 0.2574175298213959, 0.1548856943845749, -0.15110169351100922, 0.18242104351520538, 0.19085729122161865, 0.22152817249298096, 0.03611895814538002, 0.3118467330932617, -0.12411800771951675, -0.18401138484477997, -0.013601597398519516, -0.15212129056453705, -0.03032083809375763, 0.002569509670138359, -0.23008476197719574, 0.009308220818638802, -0.14712762832641602, 0.2735336124897003, -0.10053347796201706, 0.17892302572727203, 0.21593472361564636, -0.06269253045320511, -0.15239712595939636, -0.28104501962661743, 0.16442491114139557, -0.011264972388744354, -0.12203168123960495, -0.02109016850590706, 0.1960814893245697, 0.04153328016400337, 0.34715479612350464, 0.34021323919296265, -0.17797310650348663, 0.28028127551078796, 0.2503143548965454, 0.07868136465549469, -0.20713509619235992, 0.08473482728004456, 0.02449856698513031, 0.3356007933616638, 0.3735085427761078, 0.018918391317129135, 0.10151124000549316, -0.05997239425778389, -0.3424221873283386, -0.1808883249759674, 0.09625506401062012, -0.465792179107666, -0.4055151045322418, -0.2928224205970764, 0.16618262231349945, -0.19073180854320526, 0.0989239290356636, -0.3202578127384186, 0.23753102123737335, -0.04985085874795914, -0.05362353473901749, 0.2191702425479889, 0.25552308559417725, -0.23572823405265808, -0.27724161744117737, 0.043984465301036835, 0.5059970021247864, -0.14779390394687653, 0.008891761302947998, 0.012948524206876755, 0.0029539279639720917, -0.26912686228752136, 0.0434865765273571, -0.32964521646499634, 0.34548118710517883, -0.254738986492157, 0.3554303050041199, 0.4209419786930084, -0.7796744108200073, -0.24454975128173828, -0.04407269135117531, 0.12843330204486847, -0.2641858756542206, 0.07490263879299164, -0.044446900486946106, 0.4903005361557007, -0.31752294301986694, -0.12826749682426453, -0.07664038240909576, -0.030975667759776115, -0.04853465408086777, -0.15136189758777618, -0.10841035842895508, -0.1363181173801422, 0.12069441378116608, -0.032137107104063034, 0.01447121798992157, 0.34386712312698364, 0.22064359486103058, 0.13797524571418762, -0.059043969959020615, 0.21649834513664246, 0.35865581035614014, 0.3208804726600647, 0.10336848348379135, 0.011517897248268127, -0.047616101801395416, -0.30212488770484924, 0.10268396884202957, 0.04760851711034775, 0.2720475196838379, 0.020819909870624542, -0.3302035927772522, -0.4079068601131439, -0.2172269970178604, -0.40265074372291565, -0.28802016377449036, 0.14356672763824463, -0.03625652194023132, -0.16365493834018707, 0.09478044509887695, -0.24525444209575653, 0.41456398367881775, -0.20229963958263397, 0.11960382759571075, -0.37896284461021423, 0.11350148916244507, -0.13260051608085632, -0.07345158606767654, 0.3545367419719696, 0.11861860752105713, 0.22465798258781433, 0.03187364339828491, -0.0707637220621109, 0.3869803845882416, 0.09057556092739105, 0.32494691014289856, 0.146588534116745, 0.4888249635696411, 0.5092269778251648, -0.20419833064079285, 0.2522414028644562, -0.47536638379096985, 0.06747590005397797, -0.17871122062206268, -0.4538826644420624, 0.02653997391462326, -0.3501625955104828, -0.22843334078788757, -0.16804000735282898, -0.06091213971376419, 0.04059743136167526, 0.10549451410770416, -0.16274000704288483, -0.4099690020084381, -0.18426765501499176, 0.1378047913312912, -0.04691092297434807, -0.03696328401565552, 0.17098085582256317, 0.29835471510887146, 0.6099581718444824, -0.11576376855373383, 0.11783727258443832, 0.08081656694412231, -0.04289541393518448, -0.035945914685726166, 0.23530814051628113, 0.18866045773029327, 0.14984287321567535, 0.10850758850574493, 0.15766239166259766, 0.19423356652259827, -0.028178688138723373, -0.271675169467926, 0.14237473905086517, -0.09799019992351532, 0.016047490760684013, 0.20371872186660767, -0.1667751520872116, -0.044124867767095566, -0.33319592475891113, 0.058725398033857346, 0.1388348489999771, 0.3940955698490143, -0.33133527636528015, -0.40218284726142883, -0.21918071806430817, 0.1320250928401947, -0.037380192428827286, -0.23623283207416534, -0.49989789724349976, -0.17782461643218994, 0.07829847186803818, 0.31586071848869324, 0.10829146206378937, -0.08509184420108795, 0.05543227866292, 0.1688922643661499, -0.18881076574325562, 0.2781727612018585, -0.2940444052219391, -0.027228202670812607, -0.08231554180383682, 0.0555555634200573, 0.3680858314037323, 0.6320253610610962, 0.4375341534614563, -0.29252028465270996, 0.38104015588760376, -0.43309342861175537, -0.3974594473838806, 0.0945550724864006, -0.17936812341213226, 0.39265817403793335, 0.10887107253074646, 0.16735079884529114, -0.018034202978014946, 0.0504385307431221, 0.09486721456050873, -0.008588112890720367, -0.07806147634983063, -0.27536338567733765, -0.023966075852513313, -0.23788458108901978, -0.012153079733252525, -0.4002467691898346, -0.10962999612092972, -0.452242374420166, 0.19448012113571167, -0.03911447525024414, 0.14095187187194824, 0.11941566318273544, 0.05979549512267113, 0.1641654670238495, -0.16651883721351624, 0.09485215693712234, -0.3178548514842987, -0.28661179542541504, 0.4301733374595642, -0.4915316700935364, -0.39786696434020996, 0.3689327836036682, 0.17545759677886963, 0.31688326597213745, -0.14421844482421875, -0.24896889925003052, -0.08276235312223434, 0.06261907517910004, 0.008563928306102753, -0.038530975580215454, 0.053466375917196274, 0.33745649456977844, 0.25660037994384766, 0.0694807916879654, -0.19145473837852478, -0.3331582248210907, -0.17157989740371704, 0.12175510823726654, -0.09176064282655716, 0.07358381152153015, -0.03571346402168274, -0.03393686190247536, 0.1057058721780777, 0.17979927361011505, 0.3809230923652649, 0.41465580463409424, -0.005089873448014259, 0.4560903012752533, 0.036388274282217026, -0.26579856872558594, 0.2692395746707916, 0.11230888217687607, 0.21927936375141144, 0.274624764919281, 0.2186344861984253, 0.28158876299858093, -0.05054047703742981, -0.3347557485103607, -0.37181392312049866, -0.3110722601413727, 0.06469134986400604, -0.019209884107112885, 0.11491821706295013, -0.1372278779745102, 0.042534902691841125, -0.18107403814792633, -0.264950156211853, 0.2632831037044525, 0.7288564443588257, -0.14811021089553833, 0.09233944863080978, -0.4242298901081085, 0.07754239439964294, -0.22762137651443481, -0.03458501398563385, 0.1489029973745346, 0.14830604195594788, -0.28640836477279663, 0.20521461963653564, 0.13251155614852905, 0.13937465846538544, 0.3976832628250122, -0.7395801544189453, -0.06485561281442642, 0.08331659436225891, 0.17305541038513184, -0.038211870938539505, 0.00977066159248352, -0.08254173398017883, 0.1192391887307167, -0.08717533946037292, 0.41459375619888306, -0.2063099443912506, -0.41518524289131165, -0.10358878970146179, -0.06241803988814354, 0.06232040748000145, -0.3068193197250366, -0.012826662510633469, -0.30340099334716797, -0.6358053088188171, -0.19582673907279968, 0.22290867567062378, -0.1923457235097885, -0.3197174668312073, -0.22504624724388123, 0.14308643341064453, 0.18334227800369263, 0.21369445323944092, 0.1618315428495407, 0.14183944463729858, 0.2543846666812897, -0.014590295031666756, 0.3918064534664154, -0.046576254069805145, 0.6353709101676941, 0.34210366010665894, -0.11623845994472504, -0.09145396947860718, -0.0016454141587018967, -0.718928873538971, 0.09821996837854385, 0.26638925075531006, 0.23012268543243408, 0.09085073322057724, 0.09556211531162262, -0.2547708749771118, -0.3161555528640747, 0.1313033103942871, 0.09059902280569077, -0.10779396444559097, -0.5058051943778992, -0.4485974907875061, 0.47692087292671204, 0.09586665034294128, -0.0839705616235733, 0.2876759171485901, 0.34311801195144653, -0.39104411005973816, -0.1354609727859497, 0.3367301821708679, 1.0192919969558716, -0.0055903419852256775, -0.09106023609638214, -0.19445198774337769, -0.27383071184158325, 0.17900782823562622, -0.34494566917419434, -0.14732466638088226, -0.25000330805778503, 0.14075177907943726, -0.12102016061544418, -0.015020105987787247, 0.43457964062690735, 0.2364654690027237, -0.34280458092689514, 0.005618800409138203, 0.25279080867767334, 0.14924152195453644, -0.20999817550182343, 0.6636112332344055, -0.565985918045044, -0.3694922924041748, 0.07744811475276947, 0.1587461531162262, 0.037810347974300385, 0.08527733385562897, -0.017567887902259827, -0.37390875816345215, -0.23570896685123444, 0.001134488731622696, -0.43655043840408325, -0.4055127799510956, -0.09870252758264542, -0.28406721353530884, -0.020561303943395615, -0.025875840336084366, 0.5071108937263489, 0.2520166039466858, 0.5631752014160156, 0.16963809728622437, -0.5605164170265198, 0.09482811391353607, -0.1490156352519989, -0.2905043363571167, -0.16818004846572876, -0.03305663540959358, 0.3126122057437897, -0.1998935043811798, -0.34972089529037476, -0.06745592504739761, -0.07869541645050049, 0.027581393718719482, -0.33629822731018066, 0.030872251838445663, 0.21743592619895935, -0.3658708930015564, 0.059255462139844894, -0.25309962034225464, -0.18769334256649017, -0.07971017062664032, 0.12619774043560028, 0.18453370034694672, 0.03944501653313637, 0.1131860613822937, 0.30706363916397095, -0.08331180363893509, -0.057034943252801895, 0.20916426181793213, -0.271271288394928, -0.20265085995197296, 0.12546509504318237, -0.06786473840475082, -0.14603424072265625, -0.32463979721069336, 0.1515432596206665, 0.21357443928718567, -0.2958022356033325, -0.308761864900589, 0.006790804676711559, -0.0815129429101944, 0.0774090588092804, 0.21639548242092133, 0.2711470127105713, -0.12288140505552292, 0.023542162030935287, -0.3815760016441345, -0.3752559721469879, 0.04625525698065758, -0.15763504803180695, 0.1911250352859497, -0.3248847424983978, -0.3853864371776581, 0.19555120170116425, 0.050179556012153625, -0.32282865047454834, 0.0767212063074112, -0.04951806738972664, 0.12288198620080948, 0.05139639228582382, 0.15475672483444214, -0.08958973735570908, -0.3524514436721802, -0.02456633374094963, 0.11694174259901047, -0.3223485052585602, -0.11945568770170212, -0.20482070744037628, 0.16828402876853943, 0.07315781712532043, -0.12178013473749161, -0.1879776418209076, -0.1908797025680542, -0.26039695739746094, -0.1259428858757019, 0.15193387866020203, 0.043150320649147034, 0.062058087438344955, 0.13884161412715912, 0.3605198264122009, 0.19218212366104126, -0.0005534887313842773, 0.03338019177317619, 0.169375941157341, 0.16045793890953064, -0.034012388437986374, -0.112667515873909, -0.15426069498062134, 0.0396866500377655, 0.3542856276035309, 0.3398136794567108, 0.2671421468257904, -0.016325511038303375, 0.3112940490245819, -0.015151366591453552, 0.4428155720233917, 0.28751465678215027, 0.014922335743904114, 0.289564847946167, -0.1791182905435562, 0.10075515508651733, 0.29714179039001465, 0.1777411848306656, 0.0375499427318573, -0.16048747301101685, 0.2431035041809082, -0.2080571949481964, 0.03217748925089836, 0.2649447023868561, 0.6548205614089966, 0.1203610748052597, -0.234366312623024, 0.12495466321706772, 0.37423622608184814, -0.1730526089668274, -0.012610729783773422, 0.2172205001115799, -0.32510679960250854, 0.026071563363075256, 0.38797804713249207, 0.21955151855945587, 0.02618483453989029, 0.24421466886997223, 0.15922284126281738, 0.3218810260295868, 0.28215187788009644, 0.19735746085643768, 0.29364562034606934, -0.3295265734195709, 0.2464880794286728, 0.15016646683216095, 0.2043359875679016, 0.1281072199344635, 0.07880233228206635, 0.059755563735961914, 0.1455371379852295, -0.29383933544158936, -0.07347431033849716, -0.010101623833179474, -0.09027429670095444, 0.13562214374542236, 0.005201596766710281, -0.18230006098747253, -0.1766795814037323, -0.14436018466949463, -0.023185458034276962, -0.30770039558410645, -0.09699882566928864, 0.0050491467118263245, -0.0999269187450409, -0.09487573802471161, 0.14247605204582214, 0.13793036341667175, 0.09685996919870377, -0.12468557059764862, 0.05195892974734306, -0.08282311260700226, -0.18632924556732178, 0.2946736514568329, 0.1774044930934906, 0.3212207853794098, 0.15016549825668335, -0.0454951673746109, 0.23431311547756195, 0.012373366393148899, -0.18316535651683807, 0.23818770051002502, 0.44185370206832886, 0.09510515630245209, 0.2336232215166092, 0.02125849947333336, 0.12944477796554565, -0.12147532403469086, -0.2115655392408371, -0.24560202658176422, -0.22306525707244873, 0.09545905888080597, -0.06960050016641617, 0.045226313173770905, -0.22100874781608582, -0.12331567704677582, -0.10754714161157608, -0.25895214080810547, -0.09554789960384369, 0.7135035991668701, -0.07553263753652573, 0.07646657526493073, -0.2909214198589325, 0.06912834197282791, 0.27232497930526733, 0.37140318751335144, 0.29435160756111145, -0.055527642369270325, 0.03844625502824783, -0.11801397800445557, -0.6717055439949036, -0.038448087871074677, 0.09013038128614426, -0.056192848831415176, 0.16545674204826355, -0.19446609914302826, 0.08764399588108063, 0.1751241385936737, 0.20797929167747498, -0.15248146653175354, 0.25861087441444397, 0.15065757930278778, -0.01565288007259369, -0.21938596665859222, 0.1618901491165161, 0.08301027119159698, 0.005304060876369476, -0.029337167739868164, 0.3416839838027954, 0.19802895188331604, 0.005930289626121521, -0.3625589609146118, 0.38676735758781433, 0.009950883686542511, -0.06341291964054108, 0.3155449330806732, -0.02279501222074032, 0.407363623380661, -0.19899532198905945, -0.019154027104377747, -0.19941210746765137, 0.31368422508239746, -0.07599588483572006, 0.3309551775455475, 0.005192620679736137, 0.17928268015384674, -0.05593409389257431, -0.21621493995189667, -0.23769231140613556, 0.26261958479881287, -0.05280934274196625, 0.17091819643974304, -0.45708104968070984, 0.05080582946538925, 0.06679300218820572, -0.11280538886785507, 0.24191977083683014, -0.06202296167612076, -0.03998372703790665, 0.10359829664230347, -0.21862903237342834, -0.25344908237457275, 0.5333070755004883, -0.14868605136871338, -0.15063776075839996, 0.09632737934589386, 0.01692948490381241, 0.32702240347862244, 0.0662534236907959, -0.963660717010498, 0.14625772833824158, 0.3639832139015198, -0.09498035907745361, -0.21506276726722717, 0.26012730598449707, -0.02482195571064949, 0.0064735375344753265, -0.12324643135070801, 0.2908480167388916, 0.07632923871278763, -0.10190681368112564, 0.06679835915565491, -0.09406878054141998 ]
https://github.com/huggingface/datasets/issues/2083
`concatenate_datasets` throws error when changing the order of datasets to concatenate
Hi, this bug is related to `Dataset.{remove_columns, rename_column, flatten}` not propagating the change to the schema metadata when the info features are updated, so this line is the culprit: ```python common_voice_train = common_voice_train.remove_columns(['client_id', 'up_votes', 'down_votes', 'age', 'gender', 'accent', 'locale', 'segment']) ``` The order is important because the resulting dataset inherits the schema metadata of the first dataset passed to the `concatenate_datasets(...)` function (`pa.concat_tables` [docs](https://arrow.apache.org/docs/python/generated/pyarrow.concat_tables.html)). I'll try to fix this ASAP.
Hey, I played around with the `concatenate_datasets(...)` function: https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate_datasets#datasets.concatenate_datasets and noticed that when the order in which the datasets are concatenated changes an error is thrown where it should not IMO. Here is a google colab to reproduce the error: https://colab.research.google.com/drive/17VTFU4KQ735-waWZJjeOHS6yDTfV5ekK?usp=sharing
70
`concatenate_datasets` throws error when changing the order of datasets to concatenate Hey, I played around with the `concatenate_datasets(...)` function: https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate_datasets#datasets.concatenate_datasets and noticed that when the order in which the datasets are concatenated changes an error is thrown where it should not IMO. Here is a google colab to reproduce the error: https://colab.research.google.com/drive/17VTFU4KQ735-waWZJjeOHS6yDTfV5ekK?usp=sharing Hi, this bug is related to `Dataset.{remove_columns, rename_column, flatten}` not propagating the change to the schema metadata when the info features are updated, so this line is the culprit: ```python common_voice_train = common_voice_train.remove_columns(['client_id', 'up_votes', 'down_votes', 'age', 'gender', 'accent', 'locale', 'segment']) ``` The order is important because the resulting dataset inherits the schema metadata of the first dataset passed to the `concatenate_datasets(...)` function (`pa.concat_tables` [docs](https://arrow.apache.org/docs/python/generated/pyarrow.concat_tables.html)). I'll try to fix this ASAP.
[ -0.07968534529209137, -0.003557257354259491, 0.049324434250593185, 0.09624457359313965, 0.40014320611953735, 0.20311060547828674, 0.14764641225337982, 0.16858834028244019, -0.4686336815357208, 0.03903450071811676, -0.11334386467933655, 0.22358593344688416, 0.18650859594345093, 0.22799555957317352, -0.15247176587581635, -0.37648850679397583, 0.18034374713897705, -0.03354214131832123, -0.031852416694164276, 0.15897324681282043, -0.3306150436401367, 0.2782517969608307, -0.4217686057090759, 0.1194007620215416, -0.27704083919525146, 0.1655755192041397, -0.2876587212085724, 0.21420076489448547, -0.13174787163734436, -0.3083033561706543, 0.22181867063045502, 0.20892535150051117, 0.0268244631588459, 0.48895448446273804, -0.00010560233931755647, -0.013124540448188782, 0.13945257663726807, 0.026906536892056465, -0.26048794388771057, -0.22725076973438263, -0.22512677311897278, -0.10867686569690704, -0.16232410073280334, 0.037975601851940155, 0.14694461226463318, -0.1597016453742981, -0.24297194182872772, -0.1502538025379181, 0.28379762172698975, 0.27740299701690674, 0.237992525100708, 0.1755373477935791, 0.24264736473560333, -0.3864707350730896, 0.1160048097372055, -0.12717504799365997, -0.03232846036553383, 0.08276970684528351, -0.15783493220806122, -0.21142250299453735, 0.1623145043849945, 0.2935612201690674, -0.22053934633731842, -0.37009456753730774, 0.048272375017404556, 0.14493167400360107, -0.04910010099411011, -0.1351880580186844, -0.0003452673554420471, 0.07268846035003662, 0.41891369223594666, -0.4847951829433441, -0.3530629873275757, -0.2878338098526001, 0.3797292411327362, -0.38484278321266174, 0.23351487517356873, 0.10796774923801422, 0.18085700273513794, 0.1601838320493698, -0.11174298077821732, -0.005286135245114565, 0.002911999821662903, 0.0073700398206710815, -0.05433885008096695, 0.07949065417051315, 0.05774440988898277, 0.01217978447675705, 0.15552450716495514, -0.30293065309524536, 0.07643008232116699, -0.1139456182718277, -0.272320955991745, 0.11298216879367828, -0.4819878935813904, 0.001233801245689392, 0.04312819615006447, -0.25255584716796875, 0.35934120416641235, 0.13042184710502625, -0.02170630544424057, -0.02836967259645462, -0.09755618870258331, 0.11753184348344803, 0.2533036470413208, 0.35860514640808105, 0.0956616923213005, 0.22791744768619537, 0.09096493571996689, 0.22172769904136658, 0.17812803387641907, 0.02275925874710083, 0.12297631800174713, -0.293256014585495, -0.039441946893930435, 0.10174141079187393, 0.305955708026886, 0.06010791286826134, -0.16822706162929535, 0.11039195954799652, -0.12779581546783447, 0.0942961722612381, 0.04538334161043167, 0.17529523372650146, 0.04190179705619812, 0.3478612005710602, 0.2925288677215576, 0.3554244637489319, 0.12511536478996277, 0.0136122340336442, -0.15901592373847961, -0.2540304660797119, -0.10264068096876144, 0.29680272936820984, -0.03791898116469383, -0.11697153747081757, -0.020783130079507828, 0.34394949674606323, 0.17241999506950378, 0.12119913101196289, -0.2369532287120819, 0.016123363748192787, -0.1319066882133484, 0.22034819424152374, 0.04393550381064415, -0.007123103365302086, 0.06242688372731209, -0.007492125034332275, -0.14476902782917023, -0.018963411450386047, -0.2858012616634369, -0.5416713953018188, -0.49751830101013184, 0.24818094074726105, 0.17606565356254578, -0.08878396451473236, 0.0011421218514442444, 0.21095669269561768, 0.37907806038856506, -0.21448680758476257, -0.01009136438369751, -0.13114754855632782, -0.3337848484516144, -0.17831294238567352, -0.03065120428800583, 0.2728128433227539, -0.07838747650384903, 0.03894791752099991, 0.16702519357204437, 0.028401704505085945, -0.13531643152236938, 0.4119366407394409, -0.13252970576286316, -0.11950340121984482, -0.16404558718204498, 0.29258471727371216, 0.21482232213020325, -0.32346105575561523, -0.19540004432201385, 0.01562681794166565, -0.13061577081680298, 0.049350589513778687, 0.0488126315176487, -0.134464293718338, -0.19321118295192719, -0.13464640080928802, 0.33896732330322266, 0.36160147190093994, 0.017334623262286186, 0.05307888239622116, -0.06397797912359238, -0.0736650750041008, 0.22548434138298035, -0.15547282993793488, -0.4454149305820465, 0.2084551453590393, -0.2820552587509155, -0.18065111339092255, 0.3597201406955719, -0.2028738260269165, -0.02491908334195614, 0.3321020007133484, 0.19029556214809418, 0.10281869769096375, 0.2281094491481781, 0.03303207457065582, -0.4944087862968445, 0.06920068711042404, 0.07797002047300339, 0.1120498925447464, -0.2732638120651245, -0.30516117811203003, -0.18328291177749634, -0.02613786794245243, -0.32294800877571106, 0.107526034116745, 0.1899006962776184, 0.01908331736922264, 0.10135792195796967, -0.1390778124332428, -0.14069268107414246, 0.36014324426651, -0.04018821567296982, 0.11331713199615479, -0.4093936085700989, 0.2946314513683319, -0.2757103145122528, -0.0057807425037026405, 0.09602093696594238, 0.28505951166152954, 0.15173067152500153, 0.09526124596595764, -0.2058047652244568, 0.6714093089103699, -0.22945569455623627, -0.2981727719306946, 0.012951325625181198, -0.04099169373512268, 0.0063928719609975815, 0.06049038842320442, -0.10195975750684738, -0.010720301419496536, -0.1760644167661667, -0.057808998972177505, -0.2104920744895935, 0.37961769104003906, 0.002771608531475067, 0.28781720995903015, -0.0005499571561813354, 0.1273319125175476, 0.2977001368999481, 0.02361821010708809, -0.05228118598461151, -0.31629157066345215, 0.11106766760349274, 0.07204150408506393, 0.10836383700370789, 0.0913330540060997, -0.5487786531448364, 0.15395990014076233, 0.615530252456665, -0.07234913110733032, -0.020485490560531616, 0.07559981942176819, -0.04699285328388214, -0.004391707479953766, 0.02466241642832756, -0.03429851680994034, 0.5151789784431458, 0.19222384691238403, -0.1451515108346939, 0.38007086515426636, -0.14072927832603455, -0.12366476655006409, 0.12646348774433136, 0.008558467030525208, 0.18795625865459442, 0.37489649653434753, 0.4192986488342285, 0.25453487038612366, -0.28522989153862, -0.21110740303993225, 0.0020570755004882812, 0.012081652879714966, -0.24824488162994385, 0.06619667261838913, -0.29892247915267944, -0.14732414484024048, -0.21434439718723297, -0.455922394990921, -0.5343990921974182, -0.3646804094314575, 0.16372334957122803, 0.09510032832622528, -0.23067377507686615, 0.32091256976127625, -0.07332152128219604, 0.01263338327407837, 0.37993839383125305, -0.08079113066196442, -0.20833688974380493, -0.030446890741586685, 0.022590801119804382, -0.0015234816819429398, 0.09681013226509094, -0.1379450112581253, 0.006293695420026779, -0.08259568363428116, -0.02058246172964573, -0.27170485258102417, -0.2621476948261261, 0.025196701288223267, -0.3797258734703064, -0.0711875855922699, 0.20133033394813538, -0.045154452323913574, 0.11325587332248688, -0.4360531270503998, 0.43034616112709045, 0.15720602869987488, -0.214720219373703, 0.6075904965400696, 0.16842815279960632, -0.18782702088356018, -0.15362673997879028, -0.40744754672050476, -0.12938280403614044, -0.41464218497276306, 0.22669368982315063, -0.20330378413200378, -0.00415763258934021, 0.5315073728561401, 0.13898824155330658, -0.25139549374580383, -0.16627204418182373, 0.19821593165397644, -0.331924706697464, -0.2268615961074829, 0.1182049810886383, -0.23562440276145935, -0.35923510789871216, -0.07965904474258423, 0.13989508152008057, 0.0986560583114624, 0.0635475441813469, -0.13726378977298737, -0.13028478622436523, -0.10490337014198303, 0.2873053252696991, -0.30987748503685, 0.07583799213171005, 0.37299978733062744, 0.32068660855293274, -0.1161198765039444, -0.12791481614112854, -0.182606041431427, -0.00585310161113739, 0.24480685591697693, 0.2611474096775055, -0.18072664737701416, 0.3100435733795166, -0.018821008503437042, 0.34918099641799927, 0.22836050391197205, -0.005737811326980591, 0.14287444949150085, 0.0409727469086647, 0.3439369201660156, -0.26102617383003235, -0.30319416522979736, -0.15329992771148682, -0.2464199960231781, 0.2255493849515915, 0.12361874431371689, 0.00411418080329895, 0.13537515699863434, -0.041990626603364944, 0.3345298171043396, 0.06604183465242386, -0.2268211990594864, -0.00829160213470459, -0.11548404395580292, 0.2774183452129364, 0.185394287109375, -0.04681229218840599, -0.21135516464710236, -0.002703938167542219, 0.09342695772647858, 0.1489718109369278, -0.16697055101394653, -0.13121503591537476, -0.4330021142959595, -0.18077829480171204, -0.37807947397232056, 0.3607479929924011, 0.14748722314834595, 0.3197347819805145, 0.10556362569332123, -0.11447697132825851, -0.11437143385410309, 0.057304736226797104, 0.501608669757843, -0.07276248186826706, -0.404873788356781, 0.46557214856147766, 0.1853969693183899, -0.22893750667572021, -0.3301277756690979, -0.1556292325258255, 0.19200176000595093, 0.09926146268844604, 0.3979489207267761, -0.3422977328300476, -0.16603724658489227, 0.35652977228164673, 0.21366961300373077, 0.11099068820476532, -0.09127594530582428, -0.36423927545547485, -0.24687814712524414, -0.30641695857048035, -0.11257676035165787, -0.05654475837945938, 0.4393938183784485, -0.47441622614860535, 0.13601082563400269, 0.26297643780708313, -0.20298966765403748, -0.13025563955307007, -0.09407520294189453, 0.2705760598182678, 0.0067049781791865826, 0.17254826426506042, 0.05015397071838379, 0.22901807725429535, 0.3115622401237488, 0.5891231894493103, 0.05688810721039772, -0.7132001519203186, -0.1493978202342987, 0.09476451575756073, 0.11799336969852448, 0.1717366725206375, -0.0863209143280983, 0.3397349715232849, 0.01984468102455139, 0.19312633574008942, 0.0650930106639862, -0.14335979521274567, 0.6809390187263489, -0.07629242539405823, -0.645226776599884, -0.31430914998054504, 0.5154023170471191, 0.20800580084323883, 0.012078233063220978, 0.17499995231628418, 0.03679371625185013, -0.2994348704814911, 0.2875833511352539, -0.1884649693965912, 0.8607546091079712, 0.048134300857782364, 0.3077600300312042, 0.3695952892303467, 0.09365460276603699, 0.3031536638736725, -0.06616761535406113, 0.3982154130935669, -0.37540531158447266, -0.25330689549446106, -0.004233820363879204, -0.10321324318647385, 0.03570518270134926, -0.07052265852689743, -0.5698779225349426, 0.14377287030220032, -0.399630606174469, 0.19864380359649658, -0.19671091437339783, 0.13993576169013977, -0.2798859477043152, -0.1738888919353485, -0.522582471370697, 0.15423071384429932, 0.22646789252758026, -0.1210525631904602, -0.08645714819431305, -0.05205189436674118, -0.07783235609531403, -0.27027428150177, -0.20367735624313354, 0.30308544635772705, -0.2647879719734192, 0.31418436765670776, 0.163253054022789, -0.12286022305488586, 0.09961153566837311, 0.056537896394729614, 0.23408563435077667, -0.06486755609512329, -0.11231376230716705, 0.026038553565740585, 0.13056322932243347, 0.06373151391744614, -0.04091496393084526, -0.12661297619342804, 0.3307844400405884, 0.17180606722831726, -0.26440712809562683, 0.06152016296982765, 0.10782597959041595, -0.2041434496641159, -0.3926244378089905, -0.012263111770153046, -0.021587327122688293, -0.4964892566204071, 0.1905367374420166, 0.15424394607543945, 0.1922672539949417, -0.2586193084716797, 0.17301234602928162, 0.0989520475268364, -0.18779458105564117, 0.047172434628009796, -0.13206090033054352, -0.17403700947761536, -0.008202146738767624, 0.35967156291007996, -0.01742585375905037, 0.04025670886039734, 0.4046960771083832, 0.16648328304290771, -0.09422159194946289, -0.0620393306016922, -0.02623714879155159, -0.003496033838018775, -0.29764196276664734, 0.12443127483129501, 0.08955726772546768, 0.00007915496826171875, 0.060055188834667206, 0.410291850566864, 0.010927915573120117, -0.09745032340288162, 0.014266666024923325, -0.06839099526405334, -0.20662355422973633, 0.2139129489660263, 0.1953098326921463, 0.0667901411652565, -0.08407214283943176, 0.44121628999710083, -0.036762870848178864, 0.011687805876135826, -0.3577224016189575, -0.06982464343309402, -0.16937515139579773, 0.23053137958049774, 0.13667964935302734, -0.10886920243501663, -0.01932602934539318, -0.06540562212467194, 0.19003918766975403, 0.14874736964702606, -0.06064435839653015, -0.24065375328063965, -0.07593337446451187, 0.07289194315671921, 0.29582610726356506, -0.005035347305238247, -0.0025419907178729773, -0.10384581983089447, -0.13902531564235687, -0.250775009393692, 0.05855657532811165, 0.21111226081848145, -0.026470333337783813, -0.011415308341383934, -0.015109140425920486, 0.11827912926673889, 0.3251681923866272, 0.10957378894090652, 0.07569228112697601, -0.1658453792333603, -0.17626605927944183, 0.231230691075325, -0.45911818742752075, -0.02512233331799507, 0.04496799036860466, 0.27196598052978516, 0.14425107836723328, 0.05050089210271835, 0.09814941138029099, -0.4305645227432251, -0.11012594401836395, -0.030726827681064606, 0.5766251087188721, 0.45992833375930786, -0.2510530948638916, -0.09479104727506638, 0.19125354290008545, 0.25839078426361084, -0.43330827355384827, -0.29713141918182373, 0.11464878916740417, -0.00931445974856615, -0.07562883198261261, -0.10084632784128189, 0.15852542221546173, 0.03542026877403259, -0.002257421612739563, 0.14718833565711975, 0.1625921130180359, 0.0039573777467012405, 0.3635789453983307, 0.31418338418006897, 0.08729279041290283, 0.1776057630777359, 0.3767491281032562, 0.18457654118537903, 0.2560100555419922, 0.2790786027908325, 0.007341526448726654, 0.17405740916728973, 0.17205843329429626, -0.23795372247695923, 0.22013777494430542, -0.337988018989563, -0.10553257167339325, 0.028396055102348328, -0.016760319471359253, -0.07023201137781143, -0.05150546133518219, 0.5235233306884766, -0.3884117007255554, -0.27739816904067993, -0.1429588496685028, 0.36195531487464905, -0.07249647378921509, -0.0734698623418808, 0.10429216921329498, 0.050195761024951935, -0.10112293064594269, -0.19044652581214905, 0.05807860568165779, -0.06879976391792297, 0.6510473489761353, -0.16810287535190582, -0.005469471216201782, -0.581787109375, 0.19043400883674622, 0.2763526439666748, 0.21394506096839905, -0.15543922781944275, 0.049878574907779694, 0.2739632725715637, -0.16570372879505157, 0.3347494602203369, 0.23086942732334137, 0.635348379611969, 0.2914363145828247, 0.020343516021966934, 0.04696676880121231, -0.19692082703113556, 0.07244820147752762, 0.20944714546203613, 0.15267162024974823, 0.1200888454914093, -0.2670745551586151, 0.22941789031028748, 0.13594448566436768, -0.13427402079105377, -0.09999491274356842, 0.2606733441352844, 0.313876748085022, -0.3910779058933258, 0.1773737370967865, -0.26878833770751953, -0.26640480756759644, -0.09359070658683777, 0.10296990722417831, -0.21822991967201233, 0.08945994824171066, 0.5371326804161072, 0.31444379687309265, 0.16872411966323853, -0.14769625663757324, 0.15682867169380188, 0.37261900305747986, 0.31288447976112366, 0.5908776521682739, 0.022830702364444733, -0.15258283913135529, -0.19915765523910522, -0.4441832900047302, 0.10175912082195282, 0.06367447972297668, 0.23989352583885193, -0.008515272289514542, 0.08075641840696335, -0.01712309569120407, -0.027106791734695435, 0.12930062413215637, -0.1434698849916458, -0.17685963213443756, -0.03666955232620239, -0.4124816060066223, -0.15874098241329193, 0.03806130588054657, -0.20006921887397766, 0.10361841320991516, -0.24335521459579468, 0.06442991644144058, 0.09861062467098236, 0.07846400886774063, -0.11976036429405212, 0.18939423561096191, 0.11057944595813751, -0.0421842485666275, 0.21632587909698486, 0.22801882028579712, 0.2743912935256958, -0.029495686292648315, -0.1176542267203331, -0.2608792781829834, -0.604096531867981, -0.4140906035900116, 0.14968498051166534, -0.09739227592945099, 0.09836891293525696, -0.06598476320505142, -0.06657996773719788, -0.1639699786901474, 0.15444429218769073, 0.15156958997249603, -0.12185341864824295, -0.4928680956363678, 0.22108811140060425, 0.08522667735815048, 0.0022881529293954372, -0.11374273896217346, 0.20069444179534912, 0.019055824726819992, 0.5071312785148621, -0.20358030498027802, -0.6065548062324524, 0.6595960259437561, -0.06834667921066284, -0.384876012802124, -0.0330868698656559, 0.09767766296863556, 0.08023183047771454, -0.19775879383087158, -0.5424660444259644, 0.05946692079305649, 0.16862842440605164, 0.039524152874946594, -0.2772478461265564, 0.20074968039989471, -0.08647681772708893, -0.049129705876111984, -0.11125002801418304, 0.3544621169567108, 0.06072717905044556, -0.4413897395133972, 0.23297688364982605, -0.10567066818475723 ]
https://github.com/huggingface/datasets/issues/2080
Multidimensional arrays in a Dataset
Hi ! This is actually supported ! but not yet in `from_pandas`. You can use `from_dict` for now instead: ```python from datasets import Dataset, Array2D, Features, Value import pandas as pd import numpy as np dataset = { 'bbox': [ np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]) ], 'input_ids': [1, 2, 3, 4] } dataset = Dataset.from_dict(dataset) ``` This will work but to use it with the torch formatter you must specify the `Array2D` feature type in order to tell the shape: ```python from datasets import Dataset, Array2D, Features, Value import pandas as pd import numpy as np dataset = { 'bbox': [ np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]) ], 'input_ids': [1, 2, 3, 4] } dataset = Dataset.from_dict(dataset, features=Features({ "bbox": Array2D(shape=(3, 4), dtype="int64"), "input_ids": Value("int64") })) dataset.set_format("torch") print(dataset[0]['bbox']) # tensor([[1, 2, 3, 4], # [1, 2, 3, 4], # [1, 2, 3, 4]]) ``` If you don't specify the `Array2D` feature type, then the inferred type will be Sequence(Sequence(Value("int64"))) and therefore the torch formatter will return list of tensors
Hi, I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row. The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`) ``` from datasets import Dataset import pandas as pd import numpy as np dataset = pd.DataFrame({ 'bbox': [ np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]) ], 'input_ids': [1, 2, 3, 4] }) dataset = Dataset.from_pandas(dataset) ``` Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists. ``` import torch from datasets import Dataset import pandas as pd dataset = pd.DataFrame({ 'bbox': [ [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]] ], 'input_ids': [1, 2, 3, 4] }) dataset = Dataset.from_pandas(dataset) def test(examples): return {'bbbox': torch.Tensor(examples['bbox'])} dataset = dataset.map(test) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) def test2(examples): return {'bbbox': torch.stack(examples['bbox'])} dataset = dataset.map(test2) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) ``` Is is possible to support n-D arrays/tensors in datasets? It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263).
165
Multidimensional arrays in a Dataset Hi, I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row. The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`) ``` from datasets import Dataset import pandas as pd import numpy as np dataset = pd.DataFrame({ 'bbox': [ np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]) ], 'input_ids': [1, 2, 3, 4] }) dataset = Dataset.from_pandas(dataset) ``` Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists. ``` import torch from datasets import Dataset import pandas as pd dataset = pd.DataFrame({ 'bbox': [ [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]] ], 'input_ids': [1, 2, 3, 4] }) dataset = Dataset.from_pandas(dataset) def test(examples): return {'bbbox': torch.Tensor(examples['bbox'])} dataset = dataset.map(test) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) def test2(examples): return {'bbbox': torch.stack(examples['bbox'])} dataset = dataset.map(test2) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) ``` Is is possible to support n-D arrays/tensors in datasets? It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263). Hi ! This is actually supported ! but not yet in `from_pandas`. You can use `from_dict` for now instead: ```python from datasets import Dataset, Array2D, Features, Value import pandas as pd import numpy as np dataset = { 'bbox': [ np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]) ], 'input_ids': [1, 2, 3, 4] } dataset = Dataset.from_dict(dataset) ``` This will work but to use it with the torch formatter you must specify the `Array2D` feature type in order to tell the shape: ```python from datasets import Dataset, Array2D, Features, Value import pandas as pd import numpy as np dataset = { 'bbox': [ np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]) ], 'input_ids': [1, 2, 3, 4] } dataset = Dataset.from_dict(dataset, features=Features({ "bbox": Array2D(shape=(3, 4), dtype="int64"), "input_ids": Value("int64") })) dataset.set_format("torch") print(dataset[0]['bbox']) # tensor([[1, 2, 3, 4], # [1, 2, 3, 4], # [1, 2, 3, 4]]) ``` If you don't specify the `Array2D` feature type, then the inferred type will be Sequence(Sequence(Value("int64"))) and therefore the torch formatter will return list of tensors
[ 0.014901924878358841, -0.2567952275276184, -0.07993538677692413, 0.19153185188770294, 0.44957077503204346, 0.05492759495973587, 0.8991125822067261, 0.10109449923038483, 0.1804245412349701, 0.06783030927181244, -0.11097685247659683, 0.3204251229763031, -0.28192949295043945, 0.05221150815486908, 0.17841173708438873, -0.4505753815174103, 0.16311457753181458, 0.2940375804901123, -0.3680661916732788, 0.097328320145607, -0.05655074864625931, -0.05634686350822449, -0.2456141710281372, -0.04192204773426056, -0.3301544785499573, -0.20088379085063934, -0.14763665199279785, -0.164036363363266, -0.06387615203857422, -0.19787786900997162, 0.24091623723506927, -0.17062629759311676, 0.27006036043167114, 0.26062482595443726, -0.0001195508666569367, 0.2267991155385971, 0.024774208664894104, -0.12928344309329987, -0.03596782684326172, -0.03934861719608307, 0.2725147604942322, -0.6480607986450195, -0.08060088753700256, -0.43247511982917786, 0.008071672171354294, -0.4712081849575043, -0.26384395360946655, -0.5005577802658081, 0.051390137523412704, 0.39283251762390137, 0.11419650912284851, 0.3314783275127411, 0.2363562434911728, 0.1579979509115219, 0.14627690613269806, 0.013280678540468216, -0.17060130834579468, -0.20054525136947632, 0.23939742147922516, -0.2072257548570633, 0.030028700828552246, 0.09321051836013794, -0.27981987595558167, 0.16612093150615692, 0.2681393623352051, 0.20493566989898682, 0.005801007151603699, 0.06113670766353607, -0.031358055770397186, 0.12784385681152344, 0.42765867710113525, -0.3980729579925537, -0.36398640275001526, -0.2793344259262085, 0.06869245320558548, -0.11977452039718628, -0.1095302477478981, 0.3258953094482422, -0.12660013139247894, 0.09108051657676697, -0.4061068296432495, 0.14080029726028442, -0.31824642419815063, 0.3343319892883301, -0.40434643626213074, 0.2282194048166275, 0.1337880641222, 0.16129957139492035, 0.03960016369819641, -0.13248690962791443, 0.7339077591896057, -0.02467077225446701, 0.38783779740333557, 0.07807230949401855, -0.30604925751686096, -0.029210511595010757, -0.19111990928649902, -0.554595947265625, -0.03882375732064247, -0.4604111909866333, 0.3082383871078491, 0.1663307249546051, 0.10438805818557739, 0.19769218564033508, 0.03535274788737297, 0.23832829296588898, -0.4363078474998474, 0.4121212363243103, -0.06724756211042404, -0.23684899508953094, 0.48102813959121704, 0.09924833476543427, -0.1561651974916458, -0.15026476979255676, 0.14556236565113068, 0.006173892877995968, -0.02724257856607437, 0.3684125244617462, -0.22278809547424316, 0.00706883380189538, -0.5160882472991943, -0.008648594841361046, 0.03636321425437927, 0.14736154675483704, 0.10867255181074142, 0.3957226872444153, 0.0416683554649353, 0.37204456329345703, 0.16625089943408966, -0.11952636390924454, -0.0711396113038063, 0.3224999010562897, -0.33917155861854553, -0.031656526029109955, 0.1639196276664734, 0.5651172995567322, -0.09719128161668777, 0.020491335541009903, 0.20878109335899353, -0.07643228769302368, 0.028902744874358177, -0.0874166339635849, 0.29780417680740356, 0.29088160395622253, -0.141659677028656, -0.04868076369166374, 0.041272688657045364, 0.24161319434642792, -0.013037756085395813, 0.43922486901283264, -0.07118473201990128, -0.047187939286231995, -0.3636680841445923, -0.03748769313097, -0.09458942711353302, -0.02641424536705017, -0.1960161030292511, 0.18669094145298004, 0.4951615333557129, -0.028209030628204346, 0.10754624754190445, -0.5084320902824402, 0.08893074095249176, -0.20724451541900635, 0.14008988440036774, -0.35029131174087524, -0.39059528708457947, 0.20100265741348267, 0.24070116877555847, 0.3463236689567566, 0.0975591167807579, 0.2834513485431671, -0.34494855999946594, 0.05405738204717636, 0.032900527119636536, 0.2473338395357132, 0.3387686014175415, -0.0420006699860096, -0.08711741864681244, -0.1622389554977417, -0.017325565218925476, -0.0007174909114837646, 0.11120070517063141, 0.31683915853500366, 0.13971996307373047, 0.1958102285861969, 0.18611901998519897, 0.19720987975597382, -0.03896617144346237, 0.3523802161216736, -0.09162987023591995, -0.21544674038887024, 0.4633563160896301, 0.257958322763443, 0.3060806095600128, -0.15489697456359863, 0.017666131258010864, 0.056327782571315765, 0.09404357522726059, -0.5431791543960571, 0.19490419328212738, 0.34915441274642944, -0.018714237958192825, -0.09863443672657013, 0.056441519409418106, -0.4492572844028473, -0.710191547870636, 0.16086658835411072, 0.04830210655927658, 0.10653185844421387, -0.18375654518604279, -0.06632495671510696, -0.10793901979923248, 0.11183182150125504, 0.07206977158784866, 0.11789727210998535, 0.04174969345331192, 0.035233356058597565, -0.07352331280708313, -0.39712586998939514, -0.2047446370124817, 0.07765219360589981, 0.3375151455402374, -0.08291784673929214, -0.36451253294944763, 0.5928972363471985, -0.10395234078168869, -0.28629350662231445, 0.010134629905223846, 0.4462895691394806, 0.06117967516183853, -0.04969782754778862, 0.19775909185409546, 0.2274242341518402, 0.12309270352125168, -0.3832358717918396, -0.41602399945259094, 0.4727385640144348, 0.25628867745399475, -0.27217984199523926, 0.20368124544620514, 0.05114253610372543, 0.015731774270534515, -0.008493732661008835, -0.32072752714157104, 0.5687913298606873, -0.0014343708753585815, -0.026108533143997192, -0.27262818813323975, 0.19143879413604736, 0.0833539292216301, 0.09092974662780762, -0.11716025322675705, -0.06775849312543869, -0.23000381886959076, -0.2115737497806549, 0.09221580624580383, -0.004559440538287163, -0.3897835910320282, 0.055872440338134766, 0.2677549719810486, -0.1892516314983368, 0.26535019278526306, -0.13475003838539124, -0.037584662437438965, 0.01508672907948494, 0.17935910820960999, -0.0371527224779129, 0.16636618971824646, 0.20581158995628357, 0.11508659273386002, -0.12481989711523056, -0.4518623948097229, -0.13972854614257812, 0.05173024535179138, -0.10792030394077301, 0.1812419891357422, 0.05186193808913231, 0.29553312063217163, -0.16763558983802795, -0.06370248645544052, 0.09142857789993286, 0.31976377964019775, 0.22884425520896912, -0.40608304738998413, 0.16245879232883453, -0.3874129056930542, -0.06646572798490524, -0.23047710955142975, -0.26018083095550537, 0.004972537979483604, 0.08687756955623627, -0.0880192220211029, 0.2342027723789215, 0.08120477199554443, 0.16895818710327148, 0.027766861021518707, -0.044999584555625916, 0.2548814117908478, -0.24779634177684784, -0.06248766556382179, -0.13135336339473724, -0.06415919959545135, -0.0014591999351978302, 0.10308658331632614, 0.14193212985992432, 0.1337922364473343, 0.44354018568992615, -0.057161763310432434, -0.4592997431755066, -0.03475077077746391, -0.14632701873779297, -0.2035895138978958, -0.16977666318416595, 0.09047931432723999, 0.010605305433273315, -0.11258607357740402, -0.04037986695766449, 0.3096112906932831, 0.29277947545051575, 0.03552144765853882, 0.3789582848548889, 0.2087782472372055, -0.1153353676199913, -0.12740270793437958, -0.1328267753124237, -0.149831160902977, -0.26560789346694946, 0.021258879452943802, -0.39214563369750977, 0.10539360344409943, -0.26478439569473267, 0.3787118196487427, 0.19258813560009003, 0.15870307385921478, -0.25939929485321045, 0.07405810803174973, 0.34466874599456787, 0.6661351323127747, -0.035195183008909225, -0.39073795080184937, -0.38483676314353943, -0.1644584834575653, 0.05854475125670433, 0.7011185884475708, -0.21244870126247406, -0.23206230998039246, -0.13377569615840912, -0.06269325315952301, -0.13287070393562317, -0.0599336177110672, 0.6345391273498535, 0.08619912713766098, 0.001302182674407959, -0.09038734436035156, -0.1663164347410202, 0.06630364060401917, 0.15094834566116333, 0.09398112446069717, -0.08139900118112564, 0.3435148596763611, 0.2753552496433258, 0.30177468061447144, 0.02315661311149597, -0.20257972180843353, 0.2516392171382904, -0.19077298045158386, 0.15490728616714478, -0.0294431671500206, -0.25730958580970764, -0.07659050077199936, -0.37835440039634705, -0.1627090573310852, -0.08777844905853271, -0.21942222118377686, -0.5588405132293701, -0.013495458289980888, 0.35416626930236816, -0.11286089569330215, -0.06205463409423828, 0.49882856011390686, -0.3866076171398163, 0.32880663871765137, -0.0005444344133138657, 0.04916403442621231, -0.34881505370140076, -0.16227030754089355, -0.18839611113071442, -0.3264350891113281, -0.1317930519580841, 0.020740192383527756, -0.5361711382865906, -0.26963579654693604, 0.18088296055793762, 0.12617796659469604, 0.37672141194343567, 0.7153759002685547, 0.11382605135440826, 0.04002636671066284, 0.2162434458732605, -0.029536046087741852, 0.5638818740844727, -0.07000714540481567, -0.3026610016822815, 0.32995909452438354, 0.05557127296924591, -0.5217558145523071, -0.23254941403865814, -0.35630109906196594, -0.14398157596588135, -0.09719644486904144, 0.47888419032096863, -0.3085346221923828, -0.2306004911661148, 0.19100651144981384, 0.18537403643131256, -0.10179750621318817, -0.0734608992934227, -0.24735918641090393, -0.25279030203819275, -0.1889769583940506, -0.14286750555038452, 0.4407947063446045, 0.31979474425315857, 0.21108175814151764, -0.2233939915895462, -0.10558032989501953, -0.32953232526779175, 0.0886833518743515, -0.036841005086898804, 0.08961205184459686, 0.13585226237773895, -0.12473469972610474, 0.17267246544361115, 0.22215896844863892, 0.4825526773929596, 0.09615278989076614, -0.11076773703098297, -0.013559013605117798, 0.17098933458328247, -0.1279081255197525, 0.3795846700668335, 0.1518600583076477, -0.10878059267997742, -0.2579708695411682, -0.08833200484514236, 0.0015154331922531128, -0.1207926794886589, -0.02973022125661373, 0.27561089396476746, -0.035695746541023254, -0.20736189186573029, -0.27798858284950256, 0.2343325912952423, -0.02547547034919262, 0.11399874091148376, 0.17162340879440308, 0.28116118907928467, -0.16812290251255035, 0.28834646940231323, 0.3334229588508606, 0.6774014830589294, -0.505525529384613, 0.3920159935951233, 0.4707367420196533, -0.11079493165016174, 0.20893126726150513, -0.13665908575057983, 0.31784939765930176, -0.23953703045845032, 0.01992868259549141, -0.20896029472351074, -0.1850181668996811, 0.20928522944450378, 0.41864389181137085, -0.027602629736065865, 0.08131036907434464, 0.048531875014305115, 0.2109478861093521, 0.19195784628391266, -0.08710657805204391, 0.1290743052959442, -0.24501192569732666, -0.07336932420730591, 0.07221522182226181, -0.19499008357524872, -0.3241559863090515, -0.012673946097493172, -0.2041720747947693, -0.3422337770462036, -0.02034596912562847, -0.3445936441421509, -0.12969452142715454, -0.30061453580856323, 0.42285943031311035, 0.13846026360988617, -0.49484556913375854, 0.04870540276169777, 0.5728102326393127, 0.02561519667506218, -0.38159510493278503, -0.1450156271457672, -0.37386706471443176, -0.23494839668273926, -0.22082921862602234, -0.048831094056367874, -0.2558012008666992, 0.30405393242836, 0.01565048098564148, -0.07397344708442688, 0.164384663105011, -0.03041689097881317, -0.39627236127853394, -0.010893672704696655, 0.2503047585487366, 0.09720732271671295, -0.24616388976573944, -0.025374870747327805, -0.18848007917404175, 0.14461126923561096, -0.05003010109066963, 0.06043184921145439, -0.09656746685504913, -0.03861968591809273, 0.28994420170783997, -0.04602085426449776, 0.07748526334762573, 0.12573625147342682, 0.22394269704818726, 0.11798153072595596, -0.3031095564365387, 0.18126145005226135, 0.10924918949604034, -0.303500771522522, -0.15382488071918488, 0.20045530796051025, 0.5446795225143433, -0.0663512721657753, 0.023445911705493927, -0.3518613278865814, -0.3031127452850342, -0.06839564442634583, 0.1484067291021347, 0.3131949305534363, 0.1276942789554596, -0.19339586794376373, -0.20293669402599335, -0.2634925842285156, 0.4287037253379822, 0.3794885277748108, 0.27472978830337524, -0.03510364890098572, 0.29064512252807617, -0.15980787575244904, 0.00519842654466629, -0.23141765594482422, -0.025940604507923126, -0.09794914722442627, 0.27712148427963257, -0.021553590893745422, -0.3222760558128357, -0.10669906437397003, -0.1097240000963211, 0.08155213296413422, -0.087535560131073, -0.11624863743782043, -0.11119341850280762, 0.07811637222766876, 0.1195414736866951, 0.1183832436800003, -0.003928627818822861, 0.02573109045624733, -0.47149205207824707, -0.3264593780040741, -0.23633937537670135, 0.008007878437638283, 0.45332229137420654, -0.004155509173870087, 0.1654728800058365, 0.2998788356781006, 0.11579355597496033, -0.07617518305778503, -0.16882935166358948, -0.1501290649175644, -0.13836094737052917, 0.005038912873715162, 0.21832934021949768, 0.2484649270772934, 0.006620198488235474, -0.296794593334198, 0.13182170689105988, 0.07041025161743164, -0.07402762025594711, 0.3137463927268982, -0.30498039722442627, -0.05275086313486099, -0.1453632265329361, 0.47937777638435364, -0.054444119334220886, -0.33187335729599, 0.042669445276260376, 0.15170392394065857, 0.08787292242050171, -0.21297739446163177, -0.34875646233558655, 0.12695680558681488, 0.03489663451910019, 0.14103595912456512, 0.5094714164733887, 0.3671317994594574, 0.1969045102596283, 0.12617599964141846, -0.1247607097029686, 0.3551173508167267, -0.13373897969722748, -0.13591699302196503, 0.330507755279541, -0.04773642122745514, -0.015956316143274307, 0.249672994017601, 0.0032823774963617325, 0.20690612494945526, 0.5683193206787109, -0.04712877422571182, 0.29421335458755493, 0.4007832109928131, 0.10459062457084656, -0.17343148589134216, 0.15799172222614288, -0.09683109819889069, -0.09427328407764435, 0.23897342383861542, -0.14454567432403564, -0.14823903143405914, 0.20992416143417358, -0.12586089968681335, -0.0203984584659338, -0.11069288104772568, 0.09894008189439774, -0.23362737894058228, 0.14432835578918457, 0.02610403299331665, 0.05436215549707413, -0.09923385083675385, -0.18718919157981873, -0.09873279929161072, -0.07736226916313171, 0.33278825879096985, -0.006064698100090027, 0.1644572913646698, 0.01036200113594532, 0.17952418327331543, 0.4635997712612152, 0.03438059985637665, -0.18017126619815826, 0.285169392824173, 0.31748947501182556, -0.16269013285636902, -0.06692712008953094, 0.028595659881830215, 0.29329678416252136, 0.2905934751033783, 0.005514779128134251, 0.017846956849098206, -0.15862151980400085, -0.18521668016910553, -0.07138052582740784, 0.04228439927101135, 0.03921886160969734, 0.2712652385234833, 0.27942872047424316, 0.02866433374583721, -0.0653822273015976, 0.17845319211483002, -0.023588653653860092, 0.0513589046895504, -0.14327488839626312, 0.2960939109325409, -0.14659038186073303, -0.5235888361930847, 0.1866847276687622, -0.3249722719192505, -0.34807470440864563, 0.029694076627492905, 0.33926689624786377, -0.08028154820203781, 0.22140911221504211, 0.27699509263038635, 0.02038739249110222, 0.14600232243537903, 0.4759075939655304, 0.09761151671409607, 0.3561214804649353, -0.07670044153928757, -0.06897253543138504, -0.5012396574020386, 0.1398169845342636, -0.41399693489074707, 0.04084351658821106, 0.28940460085868835, 0.17247086763381958, 0.32250723242759705, 0.28956323862075806, 0.03762276470661163, 0.14038927853107452, -0.09687449038028717, 0.3843572437763214, -0.22702905535697937, -0.06456880271434784, 0.19505222141742706, 0.21187661588191986, 0.109016552567482, -0.2388574481010437, 0.3231711685657501, 0.29305025935173035, 0.020549163222312927, -0.260320246219635, 0.39921531081199646, -0.19718033075332642, 0.3074828088283539, -0.07281249761581421, -0.13892418146133423, 0.5194198489189148, 0.22934657335281372, 0.22140346467494965, -0.14397646486759186, 0.030003558844327927, -0.09081252664327621, 0.32113686203956604, 0.14612850546836853, 0.49421194195747375, -0.43187636137008667, -0.21084247529506683, -0.054269708693027496, 0.1428689956665039, 0.02464015781879425, -0.0425274521112442, -0.189338818192482, 0.25848785042762756, -0.22036156058311462, -0.014823037199676037, 0.05793457105755806, 0.033744215965270996, 0.07941121608018875, 0.21956634521484375, -0.28212857246398926, -0.41873857378959656, 0.4235396981239319, -0.16833892464637756, -0.5067195892333984, 0.17998209595680237, -0.2447521686553955, 0.15599584579467773, 0.1381160318851471, -0.5674663782119751, -0.14944171905517578, 0.21183501183986664, -0.15828639268875122, -0.20383699238300323, -0.03757089003920555, -0.005843155086040497, -0.16729234158992767, -0.1489335298538208, 0.3547781705856323, -0.10515385121107101, -0.16717539727687836, -0.42029306292533875, -0.3254516124725342 ]
https://github.com/huggingface/datasets/issues/2080
Multidimensional arrays in a Dataset
Thanks for the explanation. With my original DataFrame, I did ``` dataset = dataset.to_dict("list") ``` and then the rest of the transformation from dictionary works just fine.
Hi, I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row. The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`) ``` from datasets import Dataset import pandas as pd import numpy as np dataset = pd.DataFrame({ 'bbox': [ np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]) ], 'input_ids': [1, 2, 3, 4] }) dataset = Dataset.from_pandas(dataset) ``` Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists. ``` import torch from datasets import Dataset import pandas as pd dataset = pd.DataFrame({ 'bbox': [ [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]] ], 'input_ids': [1, 2, 3, 4] }) dataset = Dataset.from_pandas(dataset) def test(examples): return {'bbbox': torch.Tensor(examples['bbox'])} dataset = dataset.map(test) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) def test2(examples): return {'bbbox': torch.stack(examples['bbox'])} dataset = dataset.map(test2) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) ``` Is is possible to support n-D arrays/tensors in datasets? It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263).
27
Multidimensional arrays in a Dataset Hi, I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row. The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`) ``` from datasets import Dataset import pandas as pd import numpy as np dataset = pd.DataFrame({ 'bbox': [ np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]), np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]) ], 'input_ids': [1, 2, 3, 4] }) dataset = Dataset.from_pandas(dataset) ``` Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists. ``` import torch from datasets import Dataset import pandas as pd dataset = pd.DataFrame({ 'bbox': [ [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]], [[1,2,3,4],[1,2,3,4],[1,2,3,4]] ], 'input_ids': [1, 2, 3, 4] }) dataset = Dataset.from_pandas(dataset) def test(examples): return {'bbbox': torch.Tensor(examples['bbox'])} dataset = dataset.map(test) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) def test2(examples): return {'bbbox': torch.stack(examples['bbox'])} dataset = dataset.map(test2) print(dataset[0]['bbox']) print(dataset[0]['bbbox']) ``` Is is possible to support n-D arrays/tensors in datasets? It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263). Thanks for the explanation. With my original DataFrame, I did ``` dataset = dataset.to_dict("list") ``` and then the rest of the transformation from dictionary works just fine.
[ 0.014901924878358841, -0.2567952275276184, -0.07993538677692413, 0.19153185188770294, 0.44957077503204346, 0.05492759495973587, 0.8991125822067261, 0.10109449923038483, 0.1804245412349701, 0.06783030927181244, -0.11097685247659683, 0.3204251229763031, -0.28192949295043945, 0.05221150815486908, 0.17841173708438873, -0.4505753815174103, 0.16311457753181458, 0.2940375804901123, -0.3680661916732788, 0.097328320145607, -0.05655074864625931, -0.05634686350822449, -0.2456141710281372, -0.04192204773426056, -0.3301544785499573, -0.20088379085063934, -0.14763665199279785, -0.164036363363266, -0.06387615203857422, -0.19787786900997162, 0.24091623723506927, -0.17062629759311676, 0.27006036043167114, 0.26062482595443726, -0.0001195508666569367, 0.2267991155385971, 0.024774208664894104, -0.12928344309329987, -0.03596782684326172, -0.03934861719608307, 0.2725147604942322, -0.6480607986450195, -0.08060088753700256, -0.43247511982917786, 0.008071672171354294, -0.4712081849575043, -0.26384395360946655, -0.5005577802658081, 0.051390137523412704, 0.39283251762390137, 0.11419650912284851, 0.3314783275127411, 0.2363562434911728, 0.1579979509115219, 0.14627690613269806, 0.013280678540468216, -0.17060130834579468, -0.20054525136947632, 0.23939742147922516, -0.2072257548570633, 0.030028700828552246, 0.09321051836013794, -0.27981987595558167, 0.16612093150615692, 0.2681393623352051, 0.20493566989898682, 0.005801007151603699, 0.06113670766353607, -0.031358055770397186, 0.12784385681152344, 0.42765867710113525, -0.3980729579925537, -0.36398640275001526, -0.2793344259262085, 0.06869245320558548, -0.11977452039718628, -0.1095302477478981, 0.3258953094482422, -0.12660013139247894, 0.09108051657676697, -0.4061068296432495, 0.14080029726028442, -0.31824642419815063, 0.3343319892883301, -0.40434643626213074, 0.2282194048166275, 0.1337880641222, 0.16129957139492035, 0.03960016369819641, -0.13248690962791443, 0.7339077591896057, -0.02467077225446701, 0.38783779740333557, 0.07807230949401855, -0.30604925751686096, -0.029210511595010757, -0.19111990928649902, -0.554595947265625, -0.03882375732064247, -0.4604111909866333, 0.3082383871078491, 0.1663307249546051, 0.10438805818557739, 0.19769218564033508, 0.03535274788737297, 0.23832829296588898, -0.4363078474998474, 0.4121212363243103, -0.06724756211042404, -0.23684899508953094, 0.48102813959121704, 0.09924833476543427, -0.1561651974916458, -0.15026476979255676, 0.14556236565113068, 0.006173892877995968, -0.02724257856607437, 0.3684125244617462, -0.22278809547424316, 0.00706883380189538, -0.5160882472991943, -0.008648594841361046, 0.03636321425437927, 0.14736154675483704, 0.10867255181074142, 0.3957226872444153, 0.0416683554649353, 0.37204456329345703, 0.16625089943408966, -0.11952636390924454, -0.0711396113038063, 0.3224999010562897, -0.33917155861854553, -0.031656526029109955, 0.1639196276664734, 0.5651172995567322, -0.09719128161668777, 0.020491335541009903, 0.20878109335899353, -0.07643228769302368, 0.028902744874358177, -0.0874166339635849, 0.29780417680740356, 0.29088160395622253, -0.141659677028656, -0.04868076369166374, 0.041272688657045364, 0.24161319434642792, -0.013037756085395813, 0.43922486901283264, -0.07118473201990128, -0.047187939286231995, -0.3636680841445923, -0.03748769313097, -0.09458942711353302, -0.02641424536705017, -0.1960161030292511, 0.18669094145298004, 0.4951615333557129, -0.028209030628204346, 0.10754624754190445, -0.5084320902824402, 0.08893074095249176, -0.20724451541900635, 0.14008988440036774, -0.35029131174087524, -0.39059528708457947, 0.20100265741348267, 0.24070116877555847, 0.3463236689567566, 0.0975591167807579, 0.2834513485431671, -0.34494855999946594, 0.05405738204717636, 0.032900527119636536, 0.2473338395357132, 0.3387686014175415, -0.0420006699860096, -0.08711741864681244, -0.1622389554977417, -0.017325565218925476, -0.0007174909114837646, 0.11120070517063141, 0.31683915853500366, 0.13971996307373047, 0.1958102285861969, 0.18611901998519897, 0.19720987975597382, -0.03896617144346237, 0.3523802161216736, -0.09162987023591995, -0.21544674038887024, 0.4633563160896301, 0.257958322763443, 0.3060806095600128, -0.15489697456359863, 0.017666131258010864, 0.056327782571315765, 0.09404357522726059, -0.5431791543960571, 0.19490419328212738, 0.34915441274642944, -0.018714237958192825, -0.09863443672657013, 0.056441519409418106, -0.4492572844028473, -0.710191547870636, 0.16086658835411072, 0.04830210655927658, 0.10653185844421387, -0.18375654518604279, -0.06632495671510696, -0.10793901979923248, 0.11183182150125504, 0.07206977158784866, 0.11789727210998535, 0.04174969345331192, 0.035233356058597565, -0.07352331280708313, -0.39712586998939514, -0.2047446370124817, 0.07765219360589981, 0.3375151455402374, -0.08291784673929214, -0.36451253294944763, 0.5928972363471985, -0.10395234078168869, -0.28629350662231445, 0.010134629905223846, 0.4462895691394806, 0.06117967516183853, -0.04969782754778862, 0.19775909185409546, 0.2274242341518402, 0.12309270352125168, -0.3832358717918396, -0.41602399945259094, 0.4727385640144348, 0.25628867745399475, -0.27217984199523926, 0.20368124544620514, 0.05114253610372543, 0.015731774270534515, -0.008493732661008835, -0.32072752714157104, 0.5687913298606873, -0.0014343708753585815, -0.026108533143997192, -0.27262818813323975, 0.19143879413604736, 0.0833539292216301, 0.09092974662780762, -0.11716025322675705, -0.06775849312543869, -0.23000381886959076, -0.2115737497806549, 0.09221580624580383, -0.004559440538287163, -0.3897835910320282, 0.055872440338134766, 0.2677549719810486, -0.1892516314983368, 0.26535019278526306, -0.13475003838539124, -0.037584662437438965, 0.01508672907948494, 0.17935910820960999, -0.0371527224779129, 0.16636618971824646, 0.20581158995628357, 0.11508659273386002, -0.12481989711523056, -0.4518623948097229, -0.13972854614257812, 0.05173024535179138, -0.10792030394077301, 0.1812419891357422, 0.05186193808913231, 0.29553312063217163, -0.16763558983802795, -0.06370248645544052, 0.09142857789993286, 0.31976377964019775, 0.22884425520896912, -0.40608304738998413, 0.16245879232883453, -0.3874129056930542, -0.06646572798490524, -0.23047710955142975, -0.26018083095550537, 0.004972537979483604, 0.08687756955623627, -0.0880192220211029, 0.2342027723789215, 0.08120477199554443, 0.16895818710327148, 0.027766861021518707, -0.044999584555625916, 0.2548814117908478, -0.24779634177684784, -0.06248766556382179, -0.13135336339473724, -0.06415919959545135, -0.0014591999351978302, 0.10308658331632614, 0.14193212985992432, 0.1337922364473343, 0.44354018568992615, -0.057161763310432434, -0.4592997431755066, -0.03475077077746391, -0.14632701873779297, -0.2035895138978958, -0.16977666318416595, 0.09047931432723999, 0.010605305433273315, -0.11258607357740402, -0.04037986695766449, 0.3096112906932831, 0.29277947545051575, 0.03552144765853882, 0.3789582848548889, 0.2087782472372055, -0.1153353676199913, -0.12740270793437958, -0.1328267753124237, -0.149831160902977, -0.26560789346694946, 0.021258879452943802, -0.39214563369750977, 0.10539360344409943, -0.26478439569473267, 0.3787118196487427, 0.19258813560009003, 0.15870307385921478, -0.25939929485321045, 0.07405810803174973, 0.34466874599456787, 0.6661351323127747, -0.035195183008909225, -0.39073795080184937, -0.38483676314353943, -0.1644584834575653, 0.05854475125670433, 0.7011185884475708, -0.21244870126247406, -0.23206230998039246, -0.13377569615840912, -0.06269325315952301, -0.13287070393562317, -0.0599336177110672, 0.6345391273498535, 0.08619912713766098, 0.001302182674407959, -0.09038734436035156, -0.1663164347410202, 0.06630364060401917, 0.15094834566116333, 0.09398112446069717, -0.08139900118112564, 0.3435148596763611, 0.2753552496433258, 0.30177468061447144, 0.02315661311149597, -0.20257972180843353, 0.2516392171382904, -0.19077298045158386, 0.15490728616714478, -0.0294431671500206, -0.25730958580970764, -0.07659050077199936, -0.37835440039634705, -0.1627090573310852, -0.08777844905853271, -0.21942222118377686, -0.5588405132293701, -0.013495458289980888, 0.35416626930236816, -0.11286089569330215, -0.06205463409423828, 0.49882856011390686, -0.3866076171398163, 0.32880663871765137, -0.0005444344133138657, 0.04916403442621231, -0.34881505370140076, -0.16227030754089355, -0.18839611113071442, -0.3264350891113281, -0.1317930519580841, 0.020740192383527756, -0.5361711382865906, -0.26963579654693604, 0.18088296055793762, 0.12617796659469604, 0.37672141194343567, 0.7153759002685547, 0.11382605135440826, 0.04002636671066284, 0.2162434458732605, -0.029536046087741852, 0.5638818740844727, -0.07000714540481567, -0.3026610016822815, 0.32995909452438354, 0.05557127296924591, -0.5217558145523071, -0.23254941403865814, -0.35630109906196594, -0.14398157596588135, -0.09719644486904144, 0.47888419032096863, -0.3085346221923828, -0.2306004911661148, 0.19100651144981384, 0.18537403643131256, -0.10179750621318817, -0.0734608992934227, -0.24735918641090393, -0.25279030203819275, -0.1889769583940506, -0.14286750555038452, 0.4407947063446045, 0.31979474425315857, 0.21108175814151764, -0.2233939915895462, -0.10558032989501953, -0.32953232526779175, 0.0886833518743515, -0.036841005086898804, 0.08961205184459686, 0.13585226237773895, -0.12473469972610474, 0.17267246544361115, 0.22215896844863892, 0.4825526773929596, 0.09615278989076614, -0.11076773703098297, -0.013559013605117798, 0.17098933458328247, -0.1279081255197525, 0.3795846700668335, 0.1518600583076477, -0.10878059267997742, -0.2579708695411682, -0.08833200484514236, 0.0015154331922531128, -0.1207926794886589, -0.02973022125661373, 0.27561089396476746, -0.035695746541023254, -0.20736189186573029, -0.27798858284950256, 0.2343325912952423, -0.02547547034919262, 0.11399874091148376, 0.17162340879440308, 0.28116118907928467, -0.16812290251255035, 0.28834646940231323, 0.3334229588508606, 0.6774014830589294, -0.505525529384613, 0.3920159935951233, 0.4707367420196533, -0.11079493165016174, 0.20893126726150513, -0.13665908575057983, 0.31784939765930176, -0.23953703045845032, 0.01992868259549141, -0.20896029472351074, -0.1850181668996811, 0.20928522944450378, 0.41864389181137085, -0.027602629736065865, 0.08131036907434464, 0.048531875014305115, 0.2109478861093521, 0.19195784628391266, -0.08710657805204391, 0.1290743052959442, -0.24501192569732666, -0.07336932420730591, 0.07221522182226181, -0.19499008357524872, -0.3241559863090515, -0.012673946097493172, -0.2041720747947693, -0.3422337770462036, -0.02034596912562847, -0.3445936441421509, -0.12969452142715454, -0.30061453580856323, 0.42285943031311035, 0.13846026360988617, -0.49484556913375854, 0.04870540276169777, 0.5728102326393127, 0.02561519667506218, -0.38159510493278503, -0.1450156271457672, -0.37386706471443176, -0.23494839668273926, -0.22082921862602234, -0.048831094056367874, -0.2558012008666992, 0.30405393242836, 0.01565048098564148, -0.07397344708442688, 0.164384663105011, -0.03041689097881317, -0.39627236127853394, -0.010893672704696655, 0.2503047585487366, 0.09720732271671295, -0.24616388976573944, -0.025374870747327805, -0.18848007917404175, 0.14461126923561096, -0.05003010109066963, 0.06043184921145439, -0.09656746685504913, -0.03861968591809273, 0.28994420170783997, -0.04602085426449776, 0.07748526334762573, 0.12573625147342682, 0.22394269704818726, 0.11798153072595596, -0.3031095564365387, 0.18126145005226135, 0.10924918949604034, -0.303500771522522, -0.15382488071918488, 0.20045530796051025, 0.5446795225143433, -0.0663512721657753, 0.023445911705493927, -0.3518613278865814, -0.3031127452850342, -0.06839564442634583, 0.1484067291021347, 0.3131949305534363, 0.1276942789554596, -0.19339586794376373, -0.20293669402599335, -0.2634925842285156, 0.4287037253379822, 0.3794885277748108, 0.27472978830337524, -0.03510364890098572, 0.29064512252807617, -0.15980787575244904, 0.00519842654466629, -0.23141765594482422, -0.025940604507923126, -0.09794914722442627, 0.27712148427963257, -0.021553590893745422, -0.3222760558128357, -0.10669906437397003, -0.1097240000963211, 0.08155213296413422, -0.087535560131073, -0.11624863743782043, -0.11119341850280762, 0.07811637222766876, 0.1195414736866951, 0.1183832436800003, -0.003928627818822861, 0.02573109045624733, -0.47149205207824707, -0.3264593780040741, -0.23633937537670135, 0.008007878437638283, 0.45332229137420654, -0.004155509173870087, 0.1654728800058365, 0.2998788356781006, 0.11579355597496033, -0.07617518305778503, -0.16882935166358948, -0.1501290649175644, -0.13836094737052917, 0.005038912873715162, 0.21832934021949768, 0.2484649270772934, 0.006620198488235474, -0.296794593334198, 0.13182170689105988, 0.07041025161743164, -0.07402762025594711, 0.3137463927268982, -0.30498039722442627, -0.05275086313486099, -0.1453632265329361, 0.47937777638435364, -0.054444119334220886, -0.33187335729599, 0.042669445276260376, 0.15170392394065857, 0.08787292242050171, -0.21297739446163177, -0.34875646233558655, 0.12695680558681488, 0.03489663451910019, 0.14103595912456512, 0.5094714164733887, 0.3671317994594574, 0.1969045102596283, 0.12617599964141846, -0.1247607097029686, 0.3551173508167267, -0.13373897969722748, -0.13591699302196503, 0.330507755279541, -0.04773642122745514, -0.015956316143274307, 0.249672994017601, 0.0032823774963617325, 0.20690612494945526, 0.5683193206787109, -0.04712877422571182, 0.29421335458755493, 0.4007832109928131, 0.10459062457084656, -0.17343148589134216, 0.15799172222614288, -0.09683109819889069, -0.09427328407764435, 0.23897342383861542, -0.14454567432403564, -0.14823903143405914, 0.20992416143417358, -0.12586089968681335, -0.0203984584659338, -0.11069288104772568, 0.09894008189439774, -0.23362737894058228, 0.14432835578918457, 0.02610403299331665, 0.05436215549707413, -0.09923385083675385, -0.18718919157981873, -0.09873279929161072, -0.07736226916313171, 0.33278825879096985, -0.006064698100090027, 0.1644572913646698, 0.01036200113594532, 0.17952418327331543, 0.4635997712612152, 0.03438059985637665, -0.18017126619815826, 0.285169392824173, 0.31748947501182556, -0.16269013285636902, -0.06692712008953094, 0.028595659881830215, 0.29329678416252136, 0.2905934751033783, 0.005514779128134251, 0.017846956849098206, -0.15862151980400085, -0.18521668016910553, -0.07138052582740784, 0.04228439927101135, 0.03921886160969734, 0.2712652385234833, 0.27942872047424316, 0.02866433374583721, -0.0653822273015976, 0.17845319211483002, -0.023588653653860092, 0.0513589046895504, -0.14327488839626312, 0.2960939109325409, -0.14659038186073303, -0.5235888361930847, 0.1866847276687622, -0.3249722719192505, -0.34807470440864563, 0.029694076627492905, 0.33926689624786377, -0.08028154820203781, 0.22140911221504211, 0.27699509263038635, 0.02038739249110222, 0.14600232243537903, 0.4759075939655304, 0.09761151671409607, 0.3561214804649353, -0.07670044153928757, -0.06897253543138504, -0.5012396574020386, 0.1398169845342636, -0.41399693489074707, 0.04084351658821106, 0.28940460085868835, 0.17247086763381958, 0.32250723242759705, 0.28956323862075806, 0.03762276470661163, 0.14038927853107452, -0.09687449038028717, 0.3843572437763214, -0.22702905535697937, -0.06456880271434784, 0.19505222141742706, 0.21187661588191986, 0.109016552567482, -0.2388574481010437, 0.3231711685657501, 0.29305025935173035, 0.020549163222312927, -0.260320246219635, 0.39921531081199646, -0.19718033075332642, 0.3074828088283539, -0.07281249761581421, -0.13892418146133423, 0.5194198489189148, 0.22934657335281372, 0.22140346467494965, -0.14397646486759186, 0.030003558844327927, -0.09081252664327621, 0.32113686203956604, 0.14612850546836853, 0.49421194195747375, -0.43187636137008667, -0.21084247529506683, -0.054269708693027496, 0.1428689956665039, 0.02464015781879425, -0.0425274521112442, -0.189338818192482, 0.25848785042762756, -0.22036156058311462, -0.014823037199676037, 0.05793457105755806, 0.033744215965270996, 0.07941121608018875, 0.21956634521484375, -0.28212857246398926, -0.41873857378959656, 0.4235396981239319, -0.16833892464637756, -0.5067195892333984, 0.17998209595680237, -0.2447521686553955, 0.15599584579467773, 0.1381160318851471, -0.5674663782119751, -0.14944171905517578, 0.21183501183986664, -0.15828639268875122, -0.20383699238300323, -0.03757089003920555, -0.005843155086040497, -0.16729234158992767, -0.1489335298538208, 0.3547781705856323, -0.10515385121107101, -0.16717539727687836, -0.42029306292533875, -0.3254516124725342 ]
https://github.com/huggingface/datasets/issues/2078
MemoryError when computing WER metric
Hi ! Thanks for reporting. We're indeed using `jiwer` to compute the WER. Maybe instead of calling `jiwer.wer` once for all the preditions/references we can compute the WER iteratively to avoid memory issues ? I'm not too familial with `jiwer` but this must be possible. Currently the code to compute the WER is defined here: https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/metrics/wer/wer.py#L93-L94
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
56
MemoryError when computing WER metric Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function. Hi ! Thanks for reporting. We're indeed using `jiwer` to compute the WER. Maybe instead of calling `jiwer.wer` once for all the preditions/references we can compute the WER iteratively to avoid memory issues ? I'm not too familial with `jiwer` but this must be possible. Currently the code to compute the WER is defined here: https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/metrics/wer/wer.py#L93-L94
[ 0.12497895956039429, -0.2007293403148651, 0.05871839448809624, 0.3256513476371765, 0.4333938956260681, 0.07378918677568436, -0.21804334223270416, 0.2950880527496338, 0.028831470757722855, 0.4309867024421692, 0.09653063863515854, -0.09463480859994888, -0.3058878183364868, -0.57522052526474, -0.1799837052822113, -0.33477261662483215, -0.1305917203426361, -0.06031373143196106, -0.09396779537200928, 0.2673477530479431, -0.24140103161334991, 0.2181449830532074, -0.3488657474517822, 0.1229340061545372, -0.07173285633325577, -0.011054294183850288, -0.1759233921766281, 0.13317915797233582, -0.22127161920070648, -0.566748857498169, 0.3025926649570465, -0.30793923139572144, 0.19049088656902313, 0.35943329334259033, -0.00011427897698013112, 0.02825509011745453, 0.19010217487812042, -0.17844705283641815, -0.010959791019558907, 0.11745648086071014, -0.12585335969924927, -0.18654319643974304, -0.13194029033184052, -0.009257741272449493, -0.03298791125416756, 0.03756670653820038, 0.10806894302368164, -0.28800830245018005, 0.06320888549089432, 0.24494609236717224, 0.19924283027648926, -0.06094599515199661, 0.2961238920688629, -0.22950811684131622, -0.12410897761583328, -0.19057758152484894, 0.1977028101682663, 0.31632792949676514, -0.2703138589859009, -0.17763619124889374, -0.2714260220527649, 0.2580876648426056, -0.04277694597840309, 0.21431468427181244, 0.09361212700605392, 0.11576015502214432, 0.08539402484893799, 0.011005371809005737, 0.08476635813713074, -0.255557119846344, 0.26716911792755127, -0.3263043463230133, -0.030164809897542, 0.2048875391483307, -0.16143383085727692, -0.42757144570350647, 0.16603033244609833, 0.11872588843107224, -0.5047885775566101, 0.09757017344236374, -0.20402668416500092, -0.12048113346099854, -0.39423081278800964, 0.12548089027404785, -0.005826827138662338, 0.0910312682390213, -0.1965169459581375, 0.10574248433113098, 0.33680567145347595, 0.1566445231437683, 0.06043586879968643, 0.2069694995880127, -0.1233542412519455, 0.012526383623480797, -0.37430885434150696, -0.08814242482185364, -0.05848700553178787, -0.23261964321136475, 0.15802320837974548, -0.5695322155952454, 0.5826602578163147, -0.08412723988294601, 0.3524417281150818, 0.44587093591690063, -0.22183255851268768, 0.8173162937164307, -0.09721895307302475, 0.07901611179113388, 0.04140844941139221, 0.07843898981809616, -0.1152927428483963, -0.24389320611953735, -0.08986690640449524, -0.38395971059799194, 0.28133517503738403, 0.18847590684890747, -0.1235136017203331, -0.19924254715442657, -0.4400853216648102, 0.06396627426147461, -0.04093535616993904, 0.1174827367067337, 0.1261955350637436, 0.3188076615333557, 0.16514751315116882, 0.48937147855758667, 0.31324338912963867, 0.0720730721950531, -0.1783273071050644, 0.062153320759534836, -0.23344814777374268, 0.23190999031066895, -0.2242501825094223, 0.030898315832018852, 0.12527461349964142, 0.22979597747325897, 0.3616982698440552, -0.23223279416561127, 0.21067653596401215, -0.2574239671230316, 0.27662935853004456, -0.11066056787967682, 0.08386752754449844, 0.20263342559337616, -0.09959300607442856, -0.008728338405489922, 0.22977091372013092, 0.27362650632858276, 0.03456266224384308, 0.11659842729568481, -0.21280288696289062, -0.24320825934410095, 0.3005085587501526, 0.15803956985473633, -0.05864954739809036, 0.06795669347047806, -0.06455730646848679, -0.005781974643468857, 0.28054848313331604, -0.05489321053028107, -0.34017518162727356, 0.08686584234237671, -0.7389824390411377, -0.26006028056144714, 0.1528923511505127, 0.006036609411239624, -0.1756758689880371, 0.005463793873786926, 0.25586146116256714, -0.012083299458026886, 0.24220949411392212, 0.03305543214082718, 0.06806529313325882, 0.12066690623760223, -0.20440229773521423, -0.10566028952598572, 0.34988391399383545, -0.8443558216094971, -0.15111693739891052, -0.049968961626291275, -0.13288149237632751, -0.025658274069428444, 0.255960077047348, -0.21462425589561462, 0.14976900815963745, 0.11315896362066269, 0.3785301744937897, -0.2864329218864441, -0.1795530468225479, 0.024176159873604774, -0.18985246121883392, -0.11398773640394211, 0.17904335260391235, -0.14133140444755554, 0.39436623454093933, 0.08920478820800781, 0.16556885838508606, 0.14076361060142517, 0.21558615565299988, -0.027472402900457382, 0.14734624326229095, 0.26704734563827515, 0.24880057573318481, -0.6484081745147705, 0.3060632646083832, -0.06286436319351196, 0.15388283133506775, 0.187250554561615, -0.2421235293149948, 0.06600278615951538, 0.4159046411514282, 0.42931312322616577, -0.1300991177558899, 0.01611383818089962, 0.06124400720000267, -0.16782788932323456, 0.22022396326065063, -0.06157967448234558, 0.3064248561859131, -0.2538878619670868, -0.004113480448722839, 0.07258006185293198, -0.3613118529319763, -0.08067703247070312, -0.006758451461791992, -0.23276883363723755, -0.10887110978364944, -0.22204166650772095, 0.29364439845085144, 0.19079291820526123, 0.20068573951721191, 0.17184752225875854, -0.2917722463607788, 0.3505714237689972, 0.10633894801139832, -0.017048045992851257, 0.1874937117099762, 0.18841242790222168, -0.15443798899650574, -0.4010765254497528, 0.2174314260482788, -0.028292041271924973, 0.2030489146709442, -0.11859260499477386, 0.23637312650680542, -0.1250063180923462, 0.005633566528558731, 0.3543410003185272, 0.05272547900676727, 0.31398916244506836, 0.11357320845127106, 0.276267945766449, 0.1866988241672516, 0.14317604899406433, 0.3140140771865845, -0.43407008051872253, -0.2543811500072479, -0.38941407203674316, 0.3616288900375366, -0.3148322105407715, 0.32102739810943604, 0.15097621083259583, -0.14335337281227112, 0.4951443374156952, -0.13738113641738892, -0.17804864048957825, -0.07750579714775085, -0.3291463553905487, 0.4842240810394287, 0.024781588464975357, 0.06279157102108002, 0.1173735186457634, -0.036831725388765335, 0.14725343883037567, 0.11951626092195511, 0.21131543815135956, -0.10945659875869751, -0.06268536299467087, 0.21121461689472198, -0.46709027886390686, 0.15942591428756714, 0.12574896216392517, 0.10199623554944992, 0.33879491686820984, -0.2200203239917755, -0.11528933793306351, 0.26741647720336914, 0.21802887320518494, -0.13208718597888947, -0.04351787641644478, -0.025864887982606888, -0.2954534590244293, -0.20420613884925842, 0.3511810898780823, 0.10404285788536072, 0.1294218897819519, -0.04594235122203827, 0.23271705210208893, 0.2416963428258896, 0.42760464549064636, 0.2114255726337433, -0.0255011897534132, -0.1811804473400116, 0.05906050279736519, 0.02186109498143196, -0.04970935732126236, 0.14635217189788818, 0.08624903112649918, -0.04986894130706787, -0.043571583926677704, -0.18042464554309845, -0.0071562305092811584, -0.0013991110026836395, 0.41044139862060547, 0.22059455513954163, 0.07273688167333603, -0.23666489124298096, -0.032221775501966476, 0.1743239164352417, -0.23742157220840454, -0.03849460184574127, 0.5531132817268372, -0.05871142819523811, 0.08928055316209793, -0.05655677616596222, -0.1715918481349945, -0.09363450109958649, -0.39646655321121216, -0.020701825618743896, 0.041386183351278305, 0.1471431851387024, -0.11817453056573868, 0.14094582200050354, 0.22467292845249176, 0.17087869346141815, 0.007945286110043526, -0.20627635717391968, -0.33947300910949707, -0.026806127279996872, -0.23064090311527252, -0.15455381572246552, 0.06189305707812309, 0.017621532082557678, 0.6852980256080627, 0.13802100718021393, -0.14058303833007812, -0.45607176423072815, 0.0017370376735925674, -0.20989122986793518, -0.030375875532627106, -0.01608399488031864, 0.2644730806350708, -0.06265795230865479, -0.1569623202085495, -0.2842123508453369, -0.05428945645689964, 0.21243244409561157, 0.11877495050430298, -0.027383722364902496, 0.03176498785614967, 0.03221708536148071, 0.28308311104774475, 0.5209567546844482, 0.3953303098678589, 0.10299511253833771, 0.28389501571655273, 0.1921321153640747, 0.0036795735359191895, 0.09003476798534393, -0.10750968009233475, 0.17946065962314606, -0.10672566294670105, -0.17375850677490234, 0.11602850258350372, 0.07035930454730988, -0.1351747363805771, -0.19734467566013336, -0.008780963718891144, 0.08463876694440842, -0.18407176434993744, -0.021470466628670692, -0.018805958330631256, 0.5045290589332581, 0.09238460659980774, 0.047034986317157745, -0.16068781912326813, -0.3939410150051117, 0.10256089270114899, -0.045961856842041016, 0.06707073748111725, 0.00992655474692583, -0.05994033440947533, -0.00900879967957735, -0.7305299639701843, 0.26855120062828064, 0.11236024647951126, 0.43201231956481934, -0.10201123356819153, 0.05228831619024277, -0.15860788524150848, 0.11426772177219391, 0.42869651317596436, -0.06445702910423279, -0.17652808129787445, 0.059621717780828476, 0.05246509611606598, -0.16835945844650269, 0.14714296162128448, -0.17116644978523254, -0.03841610997915268, -0.2613122761249542, -0.11688169836997986, -0.0820595771074295, 0.04727398231625557, -0.006220206618309021, 0.31311821937561035, -0.16019850969314575, -0.2500495910644531, -0.3472497761249542, -0.12205331772565842, 0.004393391311168671, -0.21696868538856506, -0.12263999134302139, 0.08955252915620804, -0.21764147281646729, 0.2523511052131653, 0.022733744233846664, -0.29524150490760803, 0.348263144493103, -0.11240598559379578, 0.19657453894615173, -0.43224477767944336, 0.13328029215335846, 0.4644438326358795, -0.20728731155395508, -0.017048919573426247, 0.11370625346899033, 0.069551020860672, -0.2817786633968353, 0.24075710773468018, 0.20175278186798096, 0.3595781624317169, 0.06757818162441254, -0.29125210642814636, 0.2509188652038574, -0.03618263453245163, 0.0853484496474266, -0.5771863460540771, 0.18017050623893738, 0.0886629968881607, 0.0613386407494545, 0.1381758600473404, -0.062436193227767944, 0.2326974868774414, 0.05526520684361458, -0.13690052926540375, 0.2892400622367859, -0.019521571695804596, -0.2696187496185303, 0.28251755237579346, 0.24875128269195557, 0.7941433191299438, -0.14858895540237427, -0.06106523796916008, 0.4458690583705902, 0.008394349366426468, -0.08810548484325409, -0.21181844174861908, 0.5530892610549927, -0.15169769525527954, -0.014636107720434666, 0.08713629096746445, -0.22382858395576477, -0.09138993173837662, -0.25269055366516113, -0.26054394245147705, 0.656531035900116, 0.03891237825155258, -0.14280809462070465, 0.08655447512865067, -0.047439418733119965, -0.11878711730241776, -0.24658480286598206, 0.2222437709569931, 0.1842268407344818, -0.1877066195011139, -0.14840036630630493, -0.038745686411857605, 0.07642331719398499, 0.09276844561100006, -0.32139915227890015, -0.21347510814666748, 0.009413216263055801, -0.2341897338628769, 0.12290354073047638, -0.28766655921936035, 0.1384740024805069, -0.033819008618593216, 0.41296976804733276, 0.3505013585090637, 0.13478489220142365, -0.043951503932476044, 0.06422159075737, -0.14094382524490356, 0.06738215684890747, 0.08167891204357147, 0.19362318515777588, -0.07724738121032715, -0.042367249727249146, -0.23620203137397766, 0.32398083806037903, 0.03189932182431221, -0.3035773038864136, 0.02097904682159424, 0.004150085151195526, -0.06764230132102966, -0.09274159371852875, -0.09915488958358765, -0.12263475358486176, -0.40542763471603394, -0.10168398916721344, 0.16659760475158691, 0.3358544111251831, -0.6273183226585388, 0.37179723381996155, 0.05995841324329376, -0.058106862008571625, 0.2039709836244583, 0.30347350239753723, 0.24020081758499146, -0.37110385298728943, 0.522854745388031, -0.07030873000621796, -0.06644986569881439, -0.08496037870645523, -0.3364027440547943, -0.1057751402258873, 0.02512305974960327, 0.18758490681648254, 0.2309449315071106, 0.08632104098796844, -0.21489456295967102, 0.12959876656532288, 0.07146387547254562, 0.2860012948513031, 0.14781935513019562, -0.3211328685283661, -0.5705016255378723, 0.1984289288520813, -0.13433587551116943, 0.0697694942355156, -0.47773391008377075, -0.29287436604499817, -0.543330729007721, 0.01971016637980938, -0.2649724781513214, 0.13094109296798706, -0.46984928846359253, 0.1528986692428589, -0.05602329224348068, -0.10722798854112625, 0.24121488630771637, 0.16624051332473755, 0.1316615492105484, 0.4861500859260559, -0.16091854870319366, -0.11483296006917953, 0.013082239776849747, 0.07637626677751541, -0.023865357041358948, -0.1037725880742073, 0.23436178267002106, 0.07662567496299744, -0.1278422772884369, -0.12012979388237, -0.1803634762763977, 0.2723798155784607, -0.24169977009296417, 0.08689650893211365, -0.38366401195526123, 0.07315969467163086, 0.6001414060592651, 0.20373302698135376, -0.02192389965057373, 0.24486109614372253, 0.06156805530190468, 0.2490888386964798, -0.1119031310081482, -0.05834639072418213, 0.21348914504051208, 0.10714531689882278, -0.11078329384326935, -0.2432859241962433, 0.19406268000602722, -0.2006392925977707, -0.23091356456279755, -0.11894531548023224, 0.2250620573759079, -0.1795278936624527, -0.26971036195755005, 0.051261499524116516, 0.14574825763702393, 0.21089141070842743, 0.05138581991195679, 0.17894506454467773, -0.14126582443714142, 0.0825066864490509, 0.058262672275304794, 0.22826769948005676, 0.17244260013103485, -0.2710611820220947, -0.05411538481712341, -0.04304414242506027, 0.22778171300888062, -0.3114748001098633, -0.1649620532989502, -0.24813345074653625, -0.07835571467876434, -0.12320290505886078, -0.13706214725971222, -0.0019344128668308258, 0.3038545548915863, 0.5290904641151428, -0.257344514131546, 0.40645015239715576, -0.4600454270839691, 0.07677946239709854, -0.0782732293009758, -0.38954320549964905, -0.32592010498046875, 0.31040462851524353, 0.03938042372465134, 0.3134307861328125, -0.3366585969924927, 0.12215211987495422, 0.13134551048278809, 0.16834180057048798, -0.15117686986923218, -0.20366273820400238, -0.11607331782579422, 0.06364303827285767, 0.15781167149543762, -0.3073452115058899, 0.024631299078464508, -0.05029116943478584, 0.36682870984077454, -0.03425242751836777, 0.3742721676826477, 0.0016251951456069946, -0.22364412248134613, 0.2601141631603241, -0.018012940883636475, 0.5469644069671631, 0.010053440928459167, -0.28326690196990967, 0.11461437493562698, 0.4181113839149475, 0.1426425278186798, 0.13862062990665436, 0.2846042215824127, 0.4829079806804657, 0.3588482141494751, -0.2767457962036133, 0.2184024453163147, -0.11270104348659515, -0.1293804943561554, -0.010322163812816143, 0.28464215993881226, 0.24546822905540466, -0.0023277364671230316, 0.18504804372787476, 0.03481672704219818, -0.035140592604875565, -0.14975979924201965, 0.009958140552043915, 0.056803762912750244, -0.22267311811447144, 0.05701979249715805, -0.2153233289718628, 0.025585219264030457, -0.22538304328918457, -0.09231138974428177, -0.3778281807899475, 0.2275390326976776, 0.00916808471083641, -0.14014431834220886, 0.20493152737617493, 0.07738061249256134, 0.05607742816209793, -0.26621773838996887, 0.3642227351665497, -0.05091329291462898, 0.21516400575637817, -0.6167618036270142, -0.23420289158821106, -0.17649874091148376, 0.15138109028339386, -0.15935112535953522, 0.4129830598831177, -0.1397840976715088, 0.09398573637008667, -0.14025288820266724, -0.028662897646427155, -0.06776866316795349, 0.12308900058269501, -0.10358866304159164, 0.27478885650634766, -0.3578976094722748, -0.2949352264404297, 0.22617049515247345, -0.14218023419380188, 0.2543467879295349, -0.4365842044353485, -0.1602468639612198, -0.2335585504770279, 0.010778278112411499, -0.03898486867547035, 0.4080350399017334, -0.09498102962970734, 0.5220332145690918, 0.06293828040361404, 0.3354322612285614, 0.5877147912979126, -0.011793602257966995, -0.29718393087387085, -0.10959504544734955, -0.17890602350234985, -0.21372045576572418, -0.4510127604007721, -0.0793379545211792, 0.5294629335403442, -0.1782434731721878, -0.29557323455810547, -0.29227083921432495, 0.3045118451118469, -0.03914863243699074, -0.027726899832487106, -0.1796136051416397, 0.3239211142063141, -0.2037034034729004, 0.2875933349132538, 0.2503637671470642, 0.06695704162120819, 0.15626630187034607, 0.4125558137893677, -0.33015692234039307, -0.0906282365322113, 0.5843913555145264, -0.16096092760562897, -0.3511347472667694, 0.0949685350060463, 0.27763253450393677, 0.197628915309906, -0.3637203872203827, -0.8314567804336548, -0.027013160288333893, 0.2877657413482666, 0.23663875460624695, -0.10231086611747742, 0.04718264564871788, 0.07295206934213638, -0.013490457087755203, 0.20483075082302094, -0.0837521106004715, -0.10401808470487595, -0.1719590276479721, 0.11469939351081848, -0.13320480287075043 ]
https://github.com/huggingface/datasets/issues/2078
MemoryError when computing WER metric
Hi, I've just pushed a pull request that is related to this issue https://github.com/huggingface/datasets/pull/2169. It's not iterative, but it should avoid memory errors. It's based on the editdistance python library. An iterative implementation should be as easy as storing scores and words stepwise and dividing at the end.
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
48
MemoryError when computing WER metric Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function. Hi, I've just pushed a pull request that is related to this issue https://github.com/huggingface/datasets/pull/2169. It's not iterative, but it should avoid memory errors. It's based on the editdistance python library. An iterative implementation should be as easy as storing scores and words stepwise and dividing at the end.
[ 0.12497895956039429, -0.2007293403148651, 0.05871839448809624, 0.3256513476371765, 0.4333938956260681, 0.07378918677568436, -0.21804334223270416, 0.2950880527496338, 0.028831470757722855, 0.4309867024421692, 0.09653063863515854, -0.09463480859994888, -0.3058878183364868, -0.57522052526474, -0.1799837052822113, -0.33477261662483215, -0.1305917203426361, -0.06031373143196106, -0.09396779537200928, 0.2673477530479431, -0.24140103161334991, 0.2181449830532074, -0.3488657474517822, 0.1229340061545372, -0.07173285633325577, -0.011054294183850288, -0.1759233921766281, 0.13317915797233582, -0.22127161920070648, -0.566748857498169, 0.3025926649570465, -0.30793923139572144, 0.19049088656902313, 0.35943329334259033, -0.00011427897698013112, 0.02825509011745453, 0.19010217487812042, -0.17844705283641815, -0.010959791019558907, 0.11745648086071014, -0.12585335969924927, -0.18654319643974304, -0.13194029033184052, -0.009257741272449493, -0.03298791125416756, 0.03756670653820038, 0.10806894302368164, -0.28800830245018005, 0.06320888549089432, 0.24494609236717224, 0.19924283027648926, -0.06094599515199661, 0.2961238920688629, -0.22950811684131622, -0.12410897761583328, -0.19057758152484894, 0.1977028101682663, 0.31632792949676514, -0.2703138589859009, -0.17763619124889374, -0.2714260220527649, 0.2580876648426056, -0.04277694597840309, 0.21431468427181244, 0.09361212700605392, 0.11576015502214432, 0.08539402484893799, 0.011005371809005737, 0.08476635813713074, -0.255557119846344, 0.26716911792755127, -0.3263043463230133, -0.030164809897542, 0.2048875391483307, -0.16143383085727692, -0.42757144570350647, 0.16603033244609833, 0.11872588843107224, -0.5047885775566101, 0.09757017344236374, -0.20402668416500092, -0.12048113346099854, -0.39423081278800964, 0.12548089027404785, -0.005826827138662338, 0.0910312682390213, -0.1965169459581375, 0.10574248433113098, 0.33680567145347595, 0.1566445231437683, 0.06043586879968643, 0.2069694995880127, -0.1233542412519455, 0.012526383623480797, -0.37430885434150696, -0.08814242482185364, -0.05848700553178787, -0.23261964321136475, 0.15802320837974548, -0.5695322155952454, 0.5826602578163147, -0.08412723988294601, 0.3524417281150818, 0.44587093591690063, -0.22183255851268768, 0.8173162937164307, -0.09721895307302475, 0.07901611179113388, 0.04140844941139221, 0.07843898981809616, -0.1152927428483963, -0.24389320611953735, -0.08986690640449524, -0.38395971059799194, 0.28133517503738403, 0.18847590684890747, -0.1235136017203331, -0.19924254715442657, -0.4400853216648102, 0.06396627426147461, -0.04093535616993904, 0.1174827367067337, 0.1261955350637436, 0.3188076615333557, 0.16514751315116882, 0.48937147855758667, 0.31324338912963867, 0.0720730721950531, -0.1783273071050644, 0.062153320759534836, -0.23344814777374268, 0.23190999031066895, -0.2242501825094223, 0.030898315832018852, 0.12527461349964142, 0.22979597747325897, 0.3616982698440552, -0.23223279416561127, 0.21067653596401215, -0.2574239671230316, 0.27662935853004456, -0.11066056787967682, 0.08386752754449844, 0.20263342559337616, -0.09959300607442856, -0.008728338405489922, 0.22977091372013092, 0.27362650632858276, 0.03456266224384308, 0.11659842729568481, -0.21280288696289062, -0.24320825934410095, 0.3005085587501526, 0.15803956985473633, -0.05864954739809036, 0.06795669347047806, -0.06455730646848679, -0.005781974643468857, 0.28054848313331604, -0.05489321053028107, -0.34017518162727356, 0.08686584234237671, -0.7389824390411377, -0.26006028056144714, 0.1528923511505127, 0.006036609411239624, -0.1756758689880371, 0.005463793873786926, 0.25586146116256714, -0.012083299458026886, 0.24220949411392212, 0.03305543214082718, 0.06806529313325882, 0.12066690623760223, -0.20440229773521423, -0.10566028952598572, 0.34988391399383545, -0.8443558216094971, -0.15111693739891052, -0.049968961626291275, -0.13288149237632751, -0.025658274069428444, 0.255960077047348, -0.21462425589561462, 0.14976900815963745, 0.11315896362066269, 0.3785301744937897, -0.2864329218864441, -0.1795530468225479, 0.024176159873604774, -0.18985246121883392, -0.11398773640394211, 0.17904335260391235, -0.14133140444755554, 0.39436623454093933, 0.08920478820800781, 0.16556885838508606, 0.14076361060142517, 0.21558615565299988, -0.027472402900457382, 0.14734624326229095, 0.26704734563827515, 0.24880057573318481, -0.6484081745147705, 0.3060632646083832, -0.06286436319351196, 0.15388283133506775, 0.187250554561615, -0.2421235293149948, 0.06600278615951538, 0.4159046411514282, 0.42931312322616577, -0.1300991177558899, 0.01611383818089962, 0.06124400720000267, -0.16782788932323456, 0.22022396326065063, -0.06157967448234558, 0.3064248561859131, -0.2538878619670868, -0.004113480448722839, 0.07258006185293198, -0.3613118529319763, -0.08067703247070312, -0.006758451461791992, -0.23276883363723755, -0.10887110978364944, -0.22204166650772095, 0.29364439845085144, 0.19079291820526123, 0.20068573951721191, 0.17184752225875854, -0.2917722463607788, 0.3505714237689972, 0.10633894801139832, -0.017048045992851257, 0.1874937117099762, 0.18841242790222168, -0.15443798899650574, -0.4010765254497528, 0.2174314260482788, -0.028292041271924973, 0.2030489146709442, -0.11859260499477386, 0.23637312650680542, -0.1250063180923462, 0.005633566528558731, 0.3543410003185272, 0.05272547900676727, 0.31398916244506836, 0.11357320845127106, 0.276267945766449, 0.1866988241672516, 0.14317604899406433, 0.3140140771865845, -0.43407008051872253, -0.2543811500072479, -0.38941407203674316, 0.3616288900375366, -0.3148322105407715, 0.32102739810943604, 0.15097621083259583, -0.14335337281227112, 0.4951443374156952, -0.13738113641738892, -0.17804864048957825, -0.07750579714775085, -0.3291463553905487, 0.4842240810394287, 0.024781588464975357, 0.06279157102108002, 0.1173735186457634, -0.036831725388765335, 0.14725343883037567, 0.11951626092195511, 0.21131543815135956, -0.10945659875869751, -0.06268536299467087, 0.21121461689472198, -0.46709027886390686, 0.15942591428756714, 0.12574896216392517, 0.10199623554944992, 0.33879491686820984, -0.2200203239917755, -0.11528933793306351, 0.26741647720336914, 0.21802887320518494, -0.13208718597888947, -0.04351787641644478, -0.025864887982606888, -0.2954534590244293, -0.20420613884925842, 0.3511810898780823, 0.10404285788536072, 0.1294218897819519, -0.04594235122203827, 0.23271705210208893, 0.2416963428258896, 0.42760464549064636, 0.2114255726337433, -0.0255011897534132, -0.1811804473400116, 0.05906050279736519, 0.02186109498143196, -0.04970935732126236, 0.14635217189788818, 0.08624903112649918, -0.04986894130706787, -0.043571583926677704, -0.18042464554309845, -0.0071562305092811584, -0.0013991110026836395, 0.41044139862060547, 0.22059455513954163, 0.07273688167333603, -0.23666489124298096, -0.032221775501966476, 0.1743239164352417, -0.23742157220840454, -0.03849460184574127, 0.5531132817268372, -0.05871142819523811, 0.08928055316209793, -0.05655677616596222, -0.1715918481349945, -0.09363450109958649, -0.39646655321121216, -0.020701825618743896, 0.041386183351278305, 0.1471431851387024, -0.11817453056573868, 0.14094582200050354, 0.22467292845249176, 0.17087869346141815, 0.007945286110043526, -0.20627635717391968, -0.33947300910949707, -0.026806127279996872, -0.23064090311527252, -0.15455381572246552, 0.06189305707812309, 0.017621532082557678, 0.6852980256080627, 0.13802100718021393, -0.14058303833007812, -0.45607176423072815, 0.0017370376735925674, -0.20989122986793518, -0.030375875532627106, -0.01608399488031864, 0.2644730806350708, -0.06265795230865479, -0.1569623202085495, -0.2842123508453369, -0.05428945645689964, 0.21243244409561157, 0.11877495050430298, -0.027383722364902496, 0.03176498785614967, 0.03221708536148071, 0.28308311104774475, 0.5209567546844482, 0.3953303098678589, 0.10299511253833771, 0.28389501571655273, 0.1921321153640747, 0.0036795735359191895, 0.09003476798534393, -0.10750968009233475, 0.17946065962314606, -0.10672566294670105, -0.17375850677490234, 0.11602850258350372, 0.07035930454730988, -0.1351747363805771, -0.19734467566013336, -0.008780963718891144, 0.08463876694440842, -0.18407176434993744, -0.021470466628670692, -0.018805958330631256, 0.5045290589332581, 0.09238460659980774, 0.047034986317157745, -0.16068781912326813, -0.3939410150051117, 0.10256089270114899, -0.045961856842041016, 0.06707073748111725, 0.00992655474692583, -0.05994033440947533, -0.00900879967957735, -0.7305299639701843, 0.26855120062828064, 0.11236024647951126, 0.43201231956481934, -0.10201123356819153, 0.05228831619024277, -0.15860788524150848, 0.11426772177219391, 0.42869651317596436, -0.06445702910423279, -0.17652808129787445, 0.059621717780828476, 0.05246509611606598, -0.16835945844650269, 0.14714296162128448, -0.17116644978523254, -0.03841610997915268, -0.2613122761249542, -0.11688169836997986, -0.0820595771074295, 0.04727398231625557, -0.006220206618309021, 0.31311821937561035, -0.16019850969314575, -0.2500495910644531, -0.3472497761249542, -0.12205331772565842, 0.004393391311168671, -0.21696868538856506, -0.12263999134302139, 0.08955252915620804, -0.21764147281646729, 0.2523511052131653, 0.022733744233846664, -0.29524150490760803, 0.348263144493103, -0.11240598559379578, 0.19657453894615173, -0.43224477767944336, 0.13328029215335846, 0.4644438326358795, -0.20728731155395508, -0.017048919573426247, 0.11370625346899033, 0.069551020860672, -0.2817786633968353, 0.24075710773468018, 0.20175278186798096, 0.3595781624317169, 0.06757818162441254, -0.29125210642814636, 0.2509188652038574, -0.03618263453245163, 0.0853484496474266, -0.5771863460540771, 0.18017050623893738, 0.0886629968881607, 0.0613386407494545, 0.1381758600473404, -0.062436193227767944, 0.2326974868774414, 0.05526520684361458, -0.13690052926540375, 0.2892400622367859, -0.019521571695804596, -0.2696187496185303, 0.28251755237579346, 0.24875128269195557, 0.7941433191299438, -0.14858895540237427, -0.06106523796916008, 0.4458690583705902, 0.008394349366426468, -0.08810548484325409, -0.21181844174861908, 0.5530892610549927, -0.15169769525527954, -0.014636107720434666, 0.08713629096746445, -0.22382858395576477, -0.09138993173837662, -0.25269055366516113, -0.26054394245147705, 0.656531035900116, 0.03891237825155258, -0.14280809462070465, 0.08655447512865067, -0.047439418733119965, -0.11878711730241776, -0.24658480286598206, 0.2222437709569931, 0.1842268407344818, -0.1877066195011139, -0.14840036630630493, -0.038745686411857605, 0.07642331719398499, 0.09276844561100006, -0.32139915227890015, -0.21347510814666748, 0.009413216263055801, -0.2341897338628769, 0.12290354073047638, -0.28766655921936035, 0.1384740024805069, -0.033819008618593216, 0.41296976804733276, 0.3505013585090637, 0.13478489220142365, -0.043951503932476044, 0.06422159075737, -0.14094382524490356, 0.06738215684890747, 0.08167891204357147, 0.19362318515777588, -0.07724738121032715, -0.042367249727249146, -0.23620203137397766, 0.32398083806037903, 0.03189932182431221, -0.3035773038864136, 0.02097904682159424, 0.004150085151195526, -0.06764230132102966, -0.09274159371852875, -0.09915488958358765, -0.12263475358486176, -0.40542763471603394, -0.10168398916721344, 0.16659760475158691, 0.3358544111251831, -0.6273183226585388, 0.37179723381996155, 0.05995841324329376, -0.058106862008571625, 0.2039709836244583, 0.30347350239753723, 0.24020081758499146, -0.37110385298728943, 0.522854745388031, -0.07030873000621796, -0.06644986569881439, -0.08496037870645523, -0.3364027440547943, -0.1057751402258873, 0.02512305974960327, 0.18758490681648254, 0.2309449315071106, 0.08632104098796844, -0.21489456295967102, 0.12959876656532288, 0.07146387547254562, 0.2860012948513031, 0.14781935513019562, -0.3211328685283661, -0.5705016255378723, 0.1984289288520813, -0.13433587551116943, 0.0697694942355156, -0.47773391008377075, -0.29287436604499817, -0.543330729007721, 0.01971016637980938, -0.2649724781513214, 0.13094109296798706, -0.46984928846359253, 0.1528986692428589, -0.05602329224348068, -0.10722798854112625, 0.24121488630771637, 0.16624051332473755, 0.1316615492105484, 0.4861500859260559, -0.16091854870319366, -0.11483296006917953, 0.013082239776849747, 0.07637626677751541, -0.023865357041358948, -0.1037725880742073, 0.23436178267002106, 0.07662567496299744, -0.1278422772884369, -0.12012979388237, -0.1803634762763977, 0.2723798155784607, -0.24169977009296417, 0.08689650893211365, -0.38366401195526123, 0.07315969467163086, 0.6001414060592651, 0.20373302698135376, -0.02192389965057373, 0.24486109614372253, 0.06156805530190468, 0.2490888386964798, -0.1119031310081482, -0.05834639072418213, 0.21348914504051208, 0.10714531689882278, -0.11078329384326935, -0.2432859241962433, 0.19406268000602722, -0.2006392925977707, -0.23091356456279755, -0.11894531548023224, 0.2250620573759079, -0.1795278936624527, -0.26971036195755005, 0.051261499524116516, 0.14574825763702393, 0.21089141070842743, 0.05138581991195679, 0.17894506454467773, -0.14126582443714142, 0.0825066864490509, 0.058262672275304794, 0.22826769948005676, 0.17244260013103485, -0.2710611820220947, -0.05411538481712341, -0.04304414242506027, 0.22778171300888062, -0.3114748001098633, -0.1649620532989502, -0.24813345074653625, -0.07835571467876434, -0.12320290505886078, -0.13706214725971222, -0.0019344128668308258, 0.3038545548915863, 0.5290904641151428, -0.257344514131546, 0.40645015239715576, -0.4600454270839691, 0.07677946239709854, -0.0782732293009758, -0.38954320549964905, -0.32592010498046875, 0.31040462851524353, 0.03938042372465134, 0.3134307861328125, -0.3366585969924927, 0.12215211987495422, 0.13134551048278809, 0.16834180057048798, -0.15117686986923218, -0.20366273820400238, -0.11607331782579422, 0.06364303827285767, 0.15781167149543762, -0.3073452115058899, 0.024631299078464508, -0.05029116943478584, 0.36682870984077454, -0.03425242751836777, 0.3742721676826477, 0.0016251951456069946, -0.22364412248134613, 0.2601141631603241, -0.018012940883636475, 0.5469644069671631, 0.010053440928459167, -0.28326690196990967, 0.11461437493562698, 0.4181113839149475, 0.1426425278186798, 0.13862062990665436, 0.2846042215824127, 0.4829079806804657, 0.3588482141494751, -0.2767457962036133, 0.2184024453163147, -0.11270104348659515, -0.1293804943561554, -0.010322163812816143, 0.28464215993881226, 0.24546822905540466, -0.0023277364671230316, 0.18504804372787476, 0.03481672704219818, -0.035140592604875565, -0.14975979924201965, 0.009958140552043915, 0.056803762912750244, -0.22267311811447144, 0.05701979249715805, -0.2153233289718628, 0.025585219264030457, -0.22538304328918457, -0.09231138974428177, -0.3778281807899475, 0.2275390326976776, 0.00916808471083641, -0.14014431834220886, 0.20493152737617493, 0.07738061249256134, 0.05607742816209793, -0.26621773838996887, 0.3642227351665497, -0.05091329291462898, 0.21516400575637817, -0.6167618036270142, -0.23420289158821106, -0.17649874091148376, 0.15138109028339386, -0.15935112535953522, 0.4129830598831177, -0.1397840976715088, 0.09398573637008667, -0.14025288820266724, -0.028662897646427155, -0.06776866316795349, 0.12308900058269501, -0.10358866304159164, 0.27478885650634766, -0.3578976094722748, -0.2949352264404297, 0.22617049515247345, -0.14218023419380188, 0.2543467879295349, -0.4365842044353485, -0.1602468639612198, -0.2335585504770279, 0.010778278112411499, -0.03898486867547035, 0.4080350399017334, -0.09498102962970734, 0.5220332145690918, 0.06293828040361404, 0.3354322612285614, 0.5877147912979126, -0.011793602257966995, -0.29718393087387085, -0.10959504544734955, -0.17890602350234985, -0.21372045576572418, -0.4510127604007721, -0.0793379545211792, 0.5294629335403442, -0.1782434731721878, -0.29557323455810547, -0.29227083921432495, 0.3045118451118469, -0.03914863243699074, -0.027726899832487106, -0.1796136051416397, 0.3239211142063141, -0.2037034034729004, 0.2875933349132538, 0.2503637671470642, 0.06695704162120819, 0.15626630187034607, 0.4125558137893677, -0.33015692234039307, -0.0906282365322113, 0.5843913555145264, -0.16096092760562897, -0.3511347472667694, 0.0949685350060463, 0.27763253450393677, 0.197628915309906, -0.3637203872203827, -0.8314567804336548, -0.027013160288333893, 0.2877657413482666, 0.23663875460624695, -0.10231086611747742, 0.04718264564871788, 0.07295206934213638, -0.013490457087755203, 0.20483075082302094, -0.0837521106004715, -0.10401808470487595, -0.1719590276479721, 0.11469939351081848, -0.13320480287075043 ]
https://github.com/huggingface/datasets/issues/2078
MemoryError when computing WER metric
I see, this was solved by other thread. Ok, let me know if you want to switch the implementation for any reason :)
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
23
MemoryError when computing WER metric Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function. I see, this was solved by other thread. Ok, let me know if you want to switch the implementation for any reason :)
[ 0.12497895956039429, -0.2007293403148651, 0.05871839448809624, 0.3256513476371765, 0.4333938956260681, 0.07378918677568436, -0.21804334223270416, 0.2950880527496338, 0.028831470757722855, 0.4309867024421692, 0.09653063863515854, -0.09463480859994888, -0.3058878183364868, -0.57522052526474, -0.1799837052822113, -0.33477261662483215, -0.1305917203426361, -0.06031373143196106, -0.09396779537200928, 0.2673477530479431, -0.24140103161334991, 0.2181449830532074, -0.3488657474517822, 0.1229340061545372, -0.07173285633325577, -0.011054294183850288, -0.1759233921766281, 0.13317915797233582, -0.22127161920070648, -0.566748857498169, 0.3025926649570465, -0.30793923139572144, 0.19049088656902313, 0.35943329334259033, -0.00011427897698013112, 0.02825509011745453, 0.19010217487812042, -0.17844705283641815, -0.010959791019558907, 0.11745648086071014, -0.12585335969924927, -0.18654319643974304, -0.13194029033184052, -0.009257741272449493, -0.03298791125416756, 0.03756670653820038, 0.10806894302368164, -0.28800830245018005, 0.06320888549089432, 0.24494609236717224, 0.19924283027648926, -0.06094599515199661, 0.2961238920688629, -0.22950811684131622, -0.12410897761583328, -0.19057758152484894, 0.1977028101682663, 0.31632792949676514, -0.2703138589859009, -0.17763619124889374, -0.2714260220527649, 0.2580876648426056, -0.04277694597840309, 0.21431468427181244, 0.09361212700605392, 0.11576015502214432, 0.08539402484893799, 0.011005371809005737, 0.08476635813713074, -0.255557119846344, 0.26716911792755127, -0.3263043463230133, -0.030164809897542, 0.2048875391483307, -0.16143383085727692, -0.42757144570350647, 0.16603033244609833, 0.11872588843107224, -0.5047885775566101, 0.09757017344236374, -0.20402668416500092, -0.12048113346099854, -0.39423081278800964, 0.12548089027404785, -0.005826827138662338, 0.0910312682390213, -0.1965169459581375, 0.10574248433113098, 0.33680567145347595, 0.1566445231437683, 0.06043586879968643, 0.2069694995880127, -0.1233542412519455, 0.012526383623480797, -0.37430885434150696, -0.08814242482185364, -0.05848700553178787, -0.23261964321136475, 0.15802320837974548, -0.5695322155952454, 0.5826602578163147, -0.08412723988294601, 0.3524417281150818, 0.44587093591690063, -0.22183255851268768, 0.8173162937164307, -0.09721895307302475, 0.07901611179113388, 0.04140844941139221, 0.07843898981809616, -0.1152927428483963, -0.24389320611953735, -0.08986690640449524, -0.38395971059799194, 0.28133517503738403, 0.18847590684890747, -0.1235136017203331, -0.19924254715442657, -0.4400853216648102, 0.06396627426147461, -0.04093535616993904, 0.1174827367067337, 0.1261955350637436, 0.3188076615333557, 0.16514751315116882, 0.48937147855758667, 0.31324338912963867, 0.0720730721950531, -0.1783273071050644, 0.062153320759534836, -0.23344814777374268, 0.23190999031066895, -0.2242501825094223, 0.030898315832018852, 0.12527461349964142, 0.22979597747325897, 0.3616982698440552, -0.23223279416561127, 0.21067653596401215, -0.2574239671230316, 0.27662935853004456, -0.11066056787967682, 0.08386752754449844, 0.20263342559337616, -0.09959300607442856, -0.008728338405489922, 0.22977091372013092, 0.27362650632858276, 0.03456266224384308, 0.11659842729568481, -0.21280288696289062, -0.24320825934410095, 0.3005085587501526, 0.15803956985473633, -0.05864954739809036, 0.06795669347047806, -0.06455730646848679, -0.005781974643468857, 0.28054848313331604, -0.05489321053028107, -0.34017518162727356, 0.08686584234237671, -0.7389824390411377, -0.26006028056144714, 0.1528923511505127, 0.006036609411239624, -0.1756758689880371, 0.005463793873786926, 0.25586146116256714, -0.012083299458026886, 0.24220949411392212, 0.03305543214082718, 0.06806529313325882, 0.12066690623760223, -0.20440229773521423, -0.10566028952598572, 0.34988391399383545, -0.8443558216094971, -0.15111693739891052, -0.049968961626291275, -0.13288149237632751, -0.025658274069428444, 0.255960077047348, -0.21462425589561462, 0.14976900815963745, 0.11315896362066269, 0.3785301744937897, -0.2864329218864441, -0.1795530468225479, 0.024176159873604774, -0.18985246121883392, -0.11398773640394211, 0.17904335260391235, -0.14133140444755554, 0.39436623454093933, 0.08920478820800781, 0.16556885838508606, 0.14076361060142517, 0.21558615565299988, -0.027472402900457382, 0.14734624326229095, 0.26704734563827515, 0.24880057573318481, -0.6484081745147705, 0.3060632646083832, -0.06286436319351196, 0.15388283133506775, 0.187250554561615, -0.2421235293149948, 0.06600278615951538, 0.4159046411514282, 0.42931312322616577, -0.1300991177558899, 0.01611383818089962, 0.06124400720000267, -0.16782788932323456, 0.22022396326065063, -0.06157967448234558, 0.3064248561859131, -0.2538878619670868, -0.004113480448722839, 0.07258006185293198, -0.3613118529319763, -0.08067703247070312, -0.006758451461791992, -0.23276883363723755, -0.10887110978364944, -0.22204166650772095, 0.29364439845085144, 0.19079291820526123, 0.20068573951721191, 0.17184752225875854, -0.2917722463607788, 0.3505714237689972, 0.10633894801139832, -0.017048045992851257, 0.1874937117099762, 0.18841242790222168, -0.15443798899650574, -0.4010765254497528, 0.2174314260482788, -0.028292041271924973, 0.2030489146709442, -0.11859260499477386, 0.23637312650680542, -0.1250063180923462, 0.005633566528558731, 0.3543410003185272, 0.05272547900676727, 0.31398916244506836, 0.11357320845127106, 0.276267945766449, 0.1866988241672516, 0.14317604899406433, 0.3140140771865845, -0.43407008051872253, -0.2543811500072479, -0.38941407203674316, 0.3616288900375366, -0.3148322105407715, 0.32102739810943604, 0.15097621083259583, -0.14335337281227112, 0.4951443374156952, -0.13738113641738892, -0.17804864048957825, -0.07750579714775085, -0.3291463553905487, 0.4842240810394287, 0.024781588464975357, 0.06279157102108002, 0.1173735186457634, -0.036831725388765335, 0.14725343883037567, 0.11951626092195511, 0.21131543815135956, -0.10945659875869751, -0.06268536299467087, 0.21121461689472198, -0.46709027886390686, 0.15942591428756714, 0.12574896216392517, 0.10199623554944992, 0.33879491686820984, -0.2200203239917755, -0.11528933793306351, 0.26741647720336914, 0.21802887320518494, -0.13208718597888947, -0.04351787641644478, -0.025864887982606888, -0.2954534590244293, -0.20420613884925842, 0.3511810898780823, 0.10404285788536072, 0.1294218897819519, -0.04594235122203827, 0.23271705210208893, 0.2416963428258896, 0.42760464549064636, 0.2114255726337433, -0.0255011897534132, -0.1811804473400116, 0.05906050279736519, 0.02186109498143196, -0.04970935732126236, 0.14635217189788818, 0.08624903112649918, -0.04986894130706787, -0.043571583926677704, -0.18042464554309845, -0.0071562305092811584, -0.0013991110026836395, 0.41044139862060547, 0.22059455513954163, 0.07273688167333603, -0.23666489124298096, -0.032221775501966476, 0.1743239164352417, -0.23742157220840454, -0.03849460184574127, 0.5531132817268372, -0.05871142819523811, 0.08928055316209793, -0.05655677616596222, -0.1715918481349945, -0.09363450109958649, -0.39646655321121216, -0.020701825618743896, 0.041386183351278305, 0.1471431851387024, -0.11817453056573868, 0.14094582200050354, 0.22467292845249176, 0.17087869346141815, 0.007945286110043526, -0.20627635717391968, -0.33947300910949707, -0.026806127279996872, -0.23064090311527252, -0.15455381572246552, 0.06189305707812309, 0.017621532082557678, 0.6852980256080627, 0.13802100718021393, -0.14058303833007812, -0.45607176423072815, 0.0017370376735925674, -0.20989122986793518, -0.030375875532627106, -0.01608399488031864, 0.2644730806350708, -0.06265795230865479, -0.1569623202085495, -0.2842123508453369, -0.05428945645689964, 0.21243244409561157, 0.11877495050430298, -0.027383722364902496, 0.03176498785614967, 0.03221708536148071, 0.28308311104774475, 0.5209567546844482, 0.3953303098678589, 0.10299511253833771, 0.28389501571655273, 0.1921321153640747, 0.0036795735359191895, 0.09003476798534393, -0.10750968009233475, 0.17946065962314606, -0.10672566294670105, -0.17375850677490234, 0.11602850258350372, 0.07035930454730988, -0.1351747363805771, -0.19734467566013336, -0.008780963718891144, 0.08463876694440842, -0.18407176434993744, -0.021470466628670692, -0.018805958330631256, 0.5045290589332581, 0.09238460659980774, 0.047034986317157745, -0.16068781912326813, -0.3939410150051117, 0.10256089270114899, -0.045961856842041016, 0.06707073748111725, 0.00992655474692583, -0.05994033440947533, -0.00900879967957735, -0.7305299639701843, 0.26855120062828064, 0.11236024647951126, 0.43201231956481934, -0.10201123356819153, 0.05228831619024277, -0.15860788524150848, 0.11426772177219391, 0.42869651317596436, -0.06445702910423279, -0.17652808129787445, 0.059621717780828476, 0.05246509611606598, -0.16835945844650269, 0.14714296162128448, -0.17116644978523254, -0.03841610997915268, -0.2613122761249542, -0.11688169836997986, -0.0820595771074295, 0.04727398231625557, -0.006220206618309021, 0.31311821937561035, -0.16019850969314575, -0.2500495910644531, -0.3472497761249542, -0.12205331772565842, 0.004393391311168671, -0.21696868538856506, -0.12263999134302139, 0.08955252915620804, -0.21764147281646729, 0.2523511052131653, 0.022733744233846664, -0.29524150490760803, 0.348263144493103, -0.11240598559379578, 0.19657453894615173, -0.43224477767944336, 0.13328029215335846, 0.4644438326358795, -0.20728731155395508, -0.017048919573426247, 0.11370625346899033, 0.069551020860672, -0.2817786633968353, 0.24075710773468018, 0.20175278186798096, 0.3595781624317169, 0.06757818162441254, -0.29125210642814636, 0.2509188652038574, -0.03618263453245163, 0.0853484496474266, -0.5771863460540771, 0.18017050623893738, 0.0886629968881607, 0.0613386407494545, 0.1381758600473404, -0.062436193227767944, 0.2326974868774414, 0.05526520684361458, -0.13690052926540375, 0.2892400622367859, -0.019521571695804596, -0.2696187496185303, 0.28251755237579346, 0.24875128269195557, 0.7941433191299438, -0.14858895540237427, -0.06106523796916008, 0.4458690583705902, 0.008394349366426468, -0.08810548484325409, -0.21181844174861908, 0.5530892610549927, -0.15169769525527954, -0.014636107720434666, 0.08713629096746445, -0.22382858395576477, -0.09138993173837662, -0.25269055366516113, -0.26054394245147705, 0.656531035900116, 0.03891237825155258, -0.14280809462070465, 0.08655447512865067, -0.047439418733119965, -0.11878711730241776, -0.24658480286598206, 0.2222437709569931, 0.1842268407344818, -0.1877066195011139, -0.14840036630630493, -0.038745686411857605, 0.07642331719398499, 0.09276844561100006, -0.32139915227890015, -0.21347510814666748, 0.009413216263055801, -0.2341897338628769, 0.12290354073047638, -0.28766655921936035, 0.1384740024805069, -0.033819008618593216, 0.41296976804733276, 0.3505013585090637, 0.13478489220142365, -0.043951503932476044, 0.06422159075737, -0.14094382524490356, 0.06738215684890747, 0.08167891204357147, 0.19362318515777588, -0.07724738121032715, -0.042367249727249146, -0.23620203137397766, 0.32398083806037903, 0.03189932182431221, -0.3035773038864136, 0.02097904682159424, 0.004150085151195526, -0.06764230132102966, -0.09274159371852875, -0.09915488958358765, -0.12263475358486176, -0.40542763471603394, -0.10168398916721344, 0.16659760475158691, 0.3358544111251831, -0.6273183226585388, 0.37179723381996155, 0.05995841324329376, -0.058106862008571625, 0.2039709836244583, 0.30347350239753723, 0.24020081758499146, -0.37110385298728943, 0.522854745388031, -0.07030873000621796, -0.06644986569881439, -0.08496037870645523, -0.3364027440547943, -0.1057751402258873, 0.02512305974960327, 0.18758490681648254, 0.2309449315071106, 0.08632104098796844, -0.21489456295967102, 0.12959876656532288, 0.07146387547254562, 0.2860012948513031, 0.14781935513019562, -0.3211328685283661, -0.5705016255378723, 0.1984289288520813, -0.13433587551116943, 0.0697694942355156, -0.47773391008377075, -0.29287436604499817, -0.543330729007721, 0.01971016637980938, -0.2649724781513214, 0.13094109296798706, -0.46984928846359253, 0.1528986692428589, -0.05602329224348068, -0.10722798854112625, 0.24121488630771637, 0.16624051332473755, 0.1316615492105484, 0.4861500859260559, -0.16091854870319366, -0.11483296006917953, 0.013082239776849747, 0.07637626677751541, -0.023865357041358948, -0.1037725880742073, 0.23436178267002106, 0.07662567496299744, -0.1278422772884369, -0.12012979388237, -0.1803634762763977, 0.2723798155784607, -0.24169977009296417, 0.08689650893211365, -0.38366401195526123, 0.07315969467163086, 0.6001414060592651, 0.20373302698135376, -0.02192389965057373, 0.24486109614372253, 0.06156805530190468, 0.2490888386964798, -0.1119031310081482, -0.05834639072418213, 0.21348914504051208, 0.10714531689882278, -0.11078329384326935, -0.2432859241962433, 0.19406268000602722, -0.2006392925977707, -0.23091356456279755, -0.11894531548023224, 0.2250620573759079, -0.1795278936624527, -0.26971036195755005, 0.051261499524116516, 0.14574825763702393, 0.21089141070842743, 0.05138581991195679, 0.17894506454467773, -0.14126582443714142, 0.0825066864490509, 0.058262672275304794, 0.22826769948005676, 0.17244260013103485, -0.2710611820220947, -0.05411538481712341, -0.04304414242506027, 0.22778171300888062, -0.3114748001098633, -0.1649620532989502, -0.24813345074653625, -0.07835571467876434, -0.12320290505886078, -0.13706214725971222, -0.0019344128668308258, 0.3038545548915863, 0.5290904641151428, -0.257344514131546, 0.40645015239715576, -0.4600454270839691, 0.07677946239709854, -0.0782732293009758, -0.38954320549964905, -0.32592010498046875, 0.31040462851524353, 0.03938042372465134, 0.3134307861328125, -0.3366585969924927, 0.12215211987495422, 0.13134551048278809, 0.16834180057048798, -0.15117686986923218, -0.20366273820400238, -0.11607331782579422, 0.06364303827285767, 0.15781167149543762, -0.3073452115058899, 0.024631299078464508, -0.05029116943478584, 0.36682870984077454, -0.03425242751836777, 0.3742721676826477, 0.0016251951456069946, -0.22364412248134613, 0.2601141631603241, -0.018012940883636475, 0.5469644069671631, 0.010053440928459167, -0.28326690196990967, 0.11461437493562698, 0.4181113839149475, 0.1426425278186798, 0.13862062990665436, 0.2846042215824127, 0.4829079806804657, 0.3588482141494751, -0.2767457962036133, 0.2184024453163147, -0.11270104348659515, -0.1293804943561554, -0.010322163812816143, 0.28464215993881226, 0.24546822905540466, -0.0023277364671230316, 0.18504804372787476, 0.03481672704219818, -0.035140592604875565, -0.14975979924201965, 0.009958140552043915, 0.056803762912750244, -0.22267311811447144, 0.05701979249715805, -0.2153233289718628, 0.025585219264030457, -0.22538304328918457, -0.09231138974428177, -0.3778281807899475, 0.2275390326976776, 0.00916808471083641, -0.14014431834220886, 0.20493152737617493, 0.07738061249256134, 0.05607742816209793, -0.26621773838996887, 0.3642227351665497, -0.05091329291462898, 0.21516400575637817, -0.6167618036270142, -0.23420289158821106, -0.17649874091148376, 0.15138109028339386, -0.15935112535953522, 0.4129830598831177, -0.1397840976715088, 0.09398573637008667, -0.14025288820266724, -0.028662897646427155, -0.06776866316795349, 0.12308900058269501, -0.10358866304159164, 0.27478885650634766, -0.3578976094722748, -0.2949352264404297, 0.22617049515247345, -0.14218023419380188, 0.2543467879295349, -0.4365842044353485, -0.1602468639612198, -0.2335585504770279, 0.010778278112411499, -0.03898486867547035, 0.4080350399017334, -0.09498102962970734, 0.5220332145690918, 0.06293828040361404, 0.3354322612285614, 0.5877147912979126, -0.011793602257966995, -0.29718393087387085, -0.10959504544734955, -0.17890602350234985, -0.21372045576572418, -0.4510127604007721, -0.0793379545211792, 0.5294629335403442, -0.1782434731721878, -0.29557323455810547, -0.29227083921432495, 0.3045118451118469, -0.03914863243699074, -0.027726899832487106, -0.1796136051416397, 0.3239211142063141, -0.2037034034729004, 0.2875933349132538, 0.2503637671470642, 0.06695704162120819, 0.15626630187034607, 0.4125558137893677, -0.33015692234039307, -0.0906282365322113, 0.5843913555145264, -0.16096092760562897, -0.3511347472667694, 0.0949685350060463, 0.27763253450393677, 0.197628915309906, -0.3637203872203827, -0.8314567804336548, -0.027013160288333893, 0.2877657413482666, 0.23663875460624695, -0.10231086611747742, 0.04718264564871788, 0.07295206934213638, -0.013490457087755203, 0.20483075082302094, -0.0837521106004715, -0.10401808470487595, -0.1719590276479721, 0.11469939351081848, -0.13320480287075043 ]
https://github.com/huggingface/datasets/issues/2078
MemoryError when computing WER metric
Thanks for diving into this anyway ^^' As you said this actually got solved a few days ago
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
18
MemoryError when computing WER metric Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function. Thanks for diving into this anyway ^^' As you said this actually got solved a few days ago
[ 0.12497895956039429, -0.2007293403148651, 0.05871839448809624, 0.3256513476371765, 0.4333938956260681, 0.07378918677568436, -0.21804334223270416, 0.2950880527496338, 0.028831470757722855, 0.4309867024421692, 0.09653063863515854, -0.09463480859994888, -0.3058878183364868, -0.57522052526474, -0.1799837052822113, -0.33477261662483215, -0.1305917203426361, -0.06031373143196106, -0.09396779537200928, 0.2673477530479431, -0.24140103161334991, 0.2181449830532074, -0.3488657474517822, 0.1229340061545372, -0.07173285633325577, -0.011054294183850288, -0.1759233921766281, 0.13317915797233582, -0.22127161920070648, -0.566748857498169, 0.3025926649570465, -0.30793923139572144, 0.19049088656902313, 0.35943329334259033, -0.00011427897698013112, 0.02825509011745453, 0.19010217487812042, -0.17844705283641815, -0.010959791019558907, 0.11745648086071014, -0.12585335969924927, -0.18654319643974304, -0.13194029033184052, -0.009257741272449493, -0.03298791125416756, 0.03756670653820038, 0.10806894302368164, -0.28800830245018005, 0.06320888549089432, 0.24494609236717224, 0.19924283027648926, -0.06094599515199661, 0.2961238920688629, -0.22950811684131622, -0.12410897761583328, -0.19057758152484894, 0.1977028101682663, 0.31632792949676514, -0.2703138589859009, -0.17763619124889374, -0.2714260220527649, 0.2580876648426056, -0.04277694597840309, 0.21431468427181244, 0.09361212700605392, 0.11576015502214432, 0.08539402484893799, 0.011005371809005737, 0.08476635813713074, -0.255557119846344, 0.26716911792755127, -0.3263043463230133, -0.030164809897542, 0.2048875391483307, -0.16143383085727692, -0.42757144570350647, 0.16603033244609833, 0.11872588843107224, -0.5047885775566101, 0.09757017344236374, -0.20402668416500092, -0.12048113346099854, -0.39423081278800964, 0.12548089027404785, -0.005826827138662338, 0.0910312682390213, -0.1965169459581375, 0.10574248433113098, 0.33680567145347595, 0.1566445231437683, 0.06043586879968643, 0.2069694995880127, -0.1233542412519455, 0.012526383623480797, -0.37430885434150696, -0.08814242482185364, -0.05848700553178787, -0.23261964321136475, 0.15802320837974548, -0.5695322155952454, 0.5826602578163147, -0.08412723988294601, 0.3524417281150818, 0.44587093591690063, -0.22183255851268768, 0.8173162937164307, -0.09721895307302475, 0.07901611179113388, 0.04140844941139221, 0.07843898981809616, -0.1152927428483963, -0.24389320611953735, -0.08986690640449524, -0.38395971059799194, 0.28133517503738403, 0.18847590684890747, -0.1235136017203331, -0.19924254715442657, -0.4400853216648102, 0.06396627426147461, -0.04093535616993904, 0.1174827367067337, 0.1261955350637436, 0.3188076615333557, 0.16514751315116882, 0.48937147855758667, 0.31324338912963867, 0.0720730721950531, -0.1783273071050644, 0.062153320759534836, -0.23344814777374268, 0.23190999031066895, -0.2242501825094223, 0.030898315832018852, 0.12527461349964142, 0.22979597747325897, 0.3616982698440552, -0.23223279416561127, 0.21067653596401215, -0.2574239671230316, 0.27662935853004456, -0.11066056787967682, 0.08386752754449844, 0.20263342559337616, -0.09959300607442856, -0.008728338405489922, 0.22977091372013092, 0.27362650632858276, 0.03456266224384308, 0.11659842729568481, -0.21280288696289062, -0.24320825934410095, 0.3005085587501526, 0.15803956985473633, -0.05864954739809036, 0.06795669347047806, -0.06455730646848679, -0.005781974643468857, 0.28054848313331604, -0.05489321053028107, -0.34017518162727356, 0.08686584234237671, -0.7389824390411377, -0.26006028056144714, 0.1528923511505127, 0.006036609411239624, -0.1756758689880371, 0.005463793873786926, 0.25586146116256714, -0.012083299458026886, 0.24220949411392212, 0.03305543214082718, 0.06806529313325882, 0.12066690623760223, -0.20440229773521423, -0.10566028952598572, 0.34988391399383545, -0.8443558216094971, -0.15111693739891052, -0.049968961626291275, -0.13288149237632751, -0.025658274069428444, 0.255960077047348, -0.21462425589561462, 0.14976900815963745, 0.11315896362066269, 0.3785301744937897, -0.2864329218864441, -0.1795530468225479, 0.024176159873604774, -0.18985246121883392, -0.11398773640394211, 0.17904335260391235, -0.14133140444755554, 0.39436623454093933, 0.08920478820800781, 0.16556885838508606, 0.14076361060142517, 0.21558615565299988, -0.027472402900457382, 0.14734624326229095, 0.26704734563827515, 0.24880057573318481, -0.6484081745147705, 0.3060632646083832, -0.06286436319351196, 0.15388283133506775, 0.187250554561615, -0.2421235293149948, 0.06600278615951538, 0.4159046411514282, 0.42931312322616577, -0.1300991177558899, 0.01611383818089962, 0.06124400720000267, -0.16782788932323456, 0.22022396326065063, -0.06157967448234558, 0.3064248561859131, -0.2538878619670868, -0.004113480448722839, 0.07258006185293198, -0.3613118529319763, -0.08067703247070312, -0.006758451461791992, -0.23276883363723755, -0.10887110978364944, -0.22204166650772095, 0.29364439845085144, 0.19079291820526123, 0.20068573951721191, 0.17184752225875854, -0.2917722463607788, 0.3505714237689972, 0.10633894801139832, -0.017048045992851257, 0.1874937117099762, 0.18841242790222168, -0.15443798899650574, -0.4010765254497528, 0.2174314260482788, -0.028292041271924973, 0.2030489146709442, -0.11859260499477386, 0.23637312650680542, -0.1250063180923462, 0.005633566528558731, 0.3543410003185272, 0.05272547900676727, 0.31398916244506836, 0.11357320845127106, 0.276267945766449, 0.1866988241672516, 0.14317604899406433, 0.3140140771865845, -0.43407008051872253, -0.2543811500072479, -0.38941407203674316, 0.3616288900375366, -0.3148322105407715, 0.32102739810943604, 0.15097621083259583, -0.14335337281227112, 0.4951443374156952, -0.13738113641738892, -0.17804864048957825, -0.07750579714775085, -0.3291463553905487, 0.4842240810394287, 0.024781588464975357, 0.06279157102108002, 0.1173735186457634, -0.036831725388765335, 0.14725343883037567, 0.11951626092195511, 0.21131543815135956, -0.10945659875869751, -0.06268536299467087, 0.21121461689472198, -0.46709027886390686, 0.15942591428756714, 0.12574896216392517, 0.10199623554944992, 0.33879491686820984, -0.2200203239917755, -0.11528933793306351, 0.26741647720336914, 0.21802887320518494, -0.13208718597888947, -0.04351787641644478, -0.025864887982606888, -0.2954534590244293, -0.20420613884925842, 0.3511810898780823, 0.10404285788536072, 0.1294218897819519, -0.04594235122203827, 0.23271705210208893, 0.2416963428258896, 0.42760464549064636, 0.2114255726337433, -0.0255011897534132, -0.1811804473400116, 0.05906050279736519, 0.02186109498143196, -0.04970935732126236, 0.14635217189788818, 0.08624903112649918, -0.04986894130706787, -0.043571583926677704, -0.18042464554309845, -0.0071562305092811584, -0.0013991110026836395, 0.41044139862060547, 0.22059455513954163, 0.07273688167333603, -0.23666489124298096, -0.032221775501966476, 0.1743239164352417, -0.23742157220840454, -0.03849460184574127, 0.5531132817268372, -0.05871142819523811, 0.08928055316209793, -0.05655677616596222, -0.1715918481349945, -0.09363450109958649, -0.39646655321121216, -0.020701825618743896, 0.041386183351278305, 0.1471431851387024, -0.11817453056573868, 0.14094582200050354, 0.22467292845249176, 0.17087869346141815, 0.007945286110043526, -0.20627635717391968, -0.33947300910949707, -0.026806127279996872, -0.23064090311527252, -0.15455381572246552, 0.06189305707812309, 0.017621532082557678, 0.6852980256080627, 0.13802100718021393, -0.14058303833007812, -0.45607176423072815, 0.0017370376735925674, -0.20989122986793518, -0.030375875532627106, -0.01608399488031864, 0.2644730806350708, -0.06265795230865479, -0.1569623202085495, -0.2842123508453369, -0.05428945645689964, 0.21243244409561157, 0.11877495050430298, -0.027383722364902496, 0.03176498785614967, 0.03221708536148071, 0.28308311104774475, 0.5209567546844482, 0.3953303098678589, 0.10299511253833771, 0.28389501571655273, 0.1921321153640747, 0.0036795735359191895, 0.09003476798534393, -0.10750968009233475, 0.17946065962314606, -0.10672566294670105, -0.17375850677490234, 0.11602850258350372, 0.07035930454730988, -0.1351747363805771, -0.19734467566013336, -0.008780963718891144, 0.08463876694440842, -0.18407176434993744, -0.021470466628670692, -0.018805958330631256, 0.5045290589332581, 0.09238460659980774, 0.047034986317157745, -0.16068781912326813, -0.3939410150051117, 0.10256089270114899, -0.045961856842041016, 0.06707073748111725, 0.00992655474692583, -0.05994033440947533, -0.00900879967957735, -0.7305299639701843, 0.26855120062828064, 0.11236024647951126, 0.43201231956481934, -0.10201123356819153, 0.05228831619024277, -0.15860788524150848, 0.11426772177219391, 0.42869651317596436, -0.06445702910423279, -0.17652808129787445, 0.059621717780828476, 0.05246509611606598, -0.16835945844650269, 0.14714296162128448, -0.17116644978523254, -0.03841610997915268, -0.2613122761249542, -0.11688169836997986, -0.0820595771074295, 0.04727398231625557, -0.006220206618309021, 0.31311821937561035, -0.16019850969314575, -0.2500495910644531, -0.3472497761249542, -0.12205331772565842, 0.004393391311168671, -0.21696868538856506, -0.12263999134302139, 0.08955252915620804, -0.21764147281646729, 0.2523511052131653, 0.022733744233846664, -0.29524150490760803, 0.348263144493103, -0.11240598559379578, 0.19657453894615173, -0.43224477767944336, 0.13328029215335846, 0.4644438326358795, -0.20728731155395508, -0.017048919573426247, 0.11370625346899033, 0.069551020860672, -0.2817786633968353, 0.24075710773468018, 0.20175278186798096, 0.3595781624317169, 0.06757818162441254, -0.29125210642814636, 0.2509188652038574, -0.03618263453245163, 0.0853484496474266, -0.5771863460540771, 0.18017050623893738, 0.0886629968881607, 0.0613386407494545, 0.1381758600473404, -0.062436193227767944, 0.2326974868774414, 0.05526520684361458, -0.13690052926540375, 0.2892400622367859, -0.019521571695804596, -0.2696187496185303, 0.28251755237579346, 0.24875128269195557, 0.7941433191299438, -0.14858895540237427, -0.06106523796916008, 0.4458690583705902, 0.008394349366426468, -0.08810548484325409, -0.21181844174861908, 0.5530892610549927, -0.15169769525527954, -0.014636107720434666, 0.08713629096746445, -0.22382858395576477, -0.09138993173837662, -0.25269055366516113, -0.26054394245147705, 0.656531035900116, 0.03891237825155258, -0.14280809462070465, 0.08655447512865067, -0.047439418733119965, -0.11878711730241776, -0.24658480286598206, 0.2222437709569931, 0.1842268407344818, -0.1877066195011139, -0.14840036630630493, -0.038745686411857605, 0.07642331719398499, 0.09276844561100006, -0.32139915227890015, -0.21347510814666748, 0.009413216263055801, -0.2341897338628769, 0.12290354073047638, -0.28766655921936035, 0.1384740024805069, -0.033819008618593216, 0.41296976804733276, 0.3505013585090637, 0.13478489220142365, -0.043951503932476044, 0.06422159075737, -0.14094382524490356, 0.06738215684890747, 0.08167891204357147, 0.19362318515777588, -0.07724738121032715, -0.042367249727249146, -0.23620203137397766, 0.32398083806037903, 0.03189932182431221, -0.3035773038864136, 0.02097904682159424, 0.004150085151195526, -0.06764230132102966, -0.09274159371852875, -0.09915488958358765, -0.12263475358486176, -0.40542763471603394, -0.10168398916721344, 0.16659760475158691, 0.3358544111251831, -0.6273183226585388, 0.37179723381996155, 0.05995841324329376, -0.058106862008571625, 0.2039709836244583, 0.30347350239753723, 0.24020081758499146, -0.37110385298728943, 0.522854745388031, -0.07030873000621796, -0.06644986569881439, -0.08496037870645523, -0.3364027440547943, -0.1057751402258873, 0.02512305974960327, 0.18758490681648254, 0.2309449315071106, 0.08632104098796844, -0.21489456295967102, 0.12959876656532288, 0.07146387547254562, 0.2860012948513031, 0.14781935513019562, -0.3211328685283661, -0.5705016255378723, 0.1984289288520813, -0.13433587551116943, 0.0697694942355156, -0.47773391008377075, -0.29287436604499817, -0.543330729007721, 0.01971016637980938, -0.2649724781513214, 0.13094109296798706, -0.46984928846359253, 0.1528986692428589, -0.05602329224348068, -0.10722798854112625, 0.24121488630771637, 0.16624051332473755, 0.1316615492105484, 0.4861500859260559, -0.16091854870319366, -0.11483296006917953, 0.013082239776849747, 0.07637626677751541, -0.023865357041358948, -0.1037725880742073, 0.23436178267002106, 0.07662567496299744, -0.1278422772884369, -0.12012979388237, -0.1803634762763977, 0.2723798155784607, -0.24169977009296417, 0.08689650893211365, -0.38366401195526123, 0.07315969467163086, 0.6001414060592651, 0.20373302698135376, -0.02192389965057373, 0.24486109614372253, 0.06156805530190468, 0.2490888386964798, -0.1119031310081482, -0.05834639072418213, 0.21348914504051208, 0.10714531689882278, -0.11078329384326935, -0.2432859241962433, 0.19406268000602722, -0.2006392925977707, -0.23091356456279755, -0.11894531548023224, 0.2250620573759079, -0.1795278936624527, -0.26971036195755005, 0.051261499524116516, 0.14574825763702393, 0.21089141070842743, 0.05138581991195679, 0.17894506454467773, -0.14126582443714142, 0.0825066864490509, 0.058262672275304794, 0.22826769948005676, 0.17244260013103485, -0.2710611820220947, -0.05411538481712341, -0.04304414242506027, 0.22778171300888062, -0.3114748001098633, -0.1649620532989502, -0.24813345074653625, -0.07835571467876434, -0.12320290505886078, -0.13706214725971222, -0.0019344128668308258, 0.3038545548915863, 0.5290904641151428, -0.257344514131546, 0.40645015239715576, -0.4600454270839691, 0.07677946239709854, -0.0782732293009758, -0.38954320549964905, -0.32592010498046875, 0.31040462851524353, 0.03938042372465134, 0.3134307861328125, -0.3366585969924927, 0.12215211987495422, 0.13134551048278809, 0.16834180057048798, -0.15117686986923218, -0.20366273820400238, -0.11607331782579422, 0.06364303827285767, 0.15781167149543762, -0.3073452115058899, 0.024631299078464508, -0.05029116943478584, 0.36682870984077454, -0.03425242751836777, 0.3742721676826477, 0.0016251951456069946, -0.22364412248134613, 0.2601141631603241, -0.018012940883636475, 0.5469644069671631, 0.010053440928459167, -0.28326690196990967, 0.11461437493562698, 0.4181113839149475, 0.1426425278186798, 0.13862062990665436, 0.2846042215824127, 0.4829079806804657, 0.3588482141494751, -0.2767457962036133, 0.2184024453163147, -0.11270104348659515, -0.1293804943561554, -0.010322163812816143, 0.28464215993881226, 0.24546822905540466, -0.0023277364671230316, 0.18504804372787476, 0.03481672704219818, -0.035140592604875565, -0.14975979924201965, 0.009958140552043915, 0.056803762912750244, -0.22267311811447144, 0.05701979249715805, -0.2153233289718628, 0.025585219264030457, -0.22538304328918457, -0.09231138974428177, -0.3778281807899475, 0.2275390326976776, 0.00916808471083641, -0.14014431834220886, 0.20493152737617493, 0.07738061249256134, 0.05607742816209793, -0.26621773838996887, 0.3642227351665497, -0.05091329291462898, 0.21516400575637817, -0.6167618036270142, -0.23420289158821106, -0.17649874091148376, 0.15138109028339386, -0.15935112535953522, 0.4129830598831177, -0.1397840976715088, 0.09398573637008667, -0.14025288820266724, -0.028662897646427155, -0.06776866316795349, 0.12308900058269501, -0.10358866304159164, 0.27478885650634766, -0.3578976094722748, -0.2949352264404297, 0.22617049515247345, -0.14218023419380188, 0.2543467879295349, -0.4365842044353485, -0.1602468639612198, -0.2335585504770279, 0.010778278112411499, -0.03898486867547035, 0.4080350399017334, -0.09498102962970734, 0.5220332145690918, 0.06293828040361404, 0.3354322612285614, 0.5877147912979126, -0.011793602257966995, -0.29718393087387085, -0.10959504544734955, -0.17890602350234985, -0.21372045576572418, -0.4510127604007721, -0.0793379545211792, 0.5294629335403442, -0.1782434731721878, -0.29557323455810547, -0.29227083921432495, 0.3045118451118469, -0.03914863243699074, -0.027726899832487106, -0.1796136051416397, 0.3239211142063141, -0.2037034034729004, 0.2875933349132538, 0.2503637671470642, 0.06695704162120819, 0.15626630187034607, 0.4125558137893677, -0.33015692234039307, -0.0906282365322113, 0.5843913555145264, -0.16096092760562897, -0.3511347472667694, 0.0949685350060463, 0.27763253450393677, 0.197628915309906, -0.3637203872203827, -0.8314567804336548, -0.027013160288333893, 0.2877657413482666, 0.23663875460624695, -0.10231086611747742, 0.04718264564871788, 0.07295206934213638, -0.013490457087755203, 0.20483075082302094, -0.0837521106004715, -0.10401808470487595, -0.1719590276479721, 0.11469939351081848, -0.13320480287075043 ]
https://github.com/huggingface/datasets/issues/2078
MemoryError when computing WER metric
Someone created an issue https://github.com/jitsi/jiwer/issues/40 at jiwer which shows that this is still a problem in the current version. Would be curious to figure out how this can be fixed by jiwer... :) I assume that it runs of out memory because it's trying to compute the WER over (too many) test samples?
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
53
MemoryError when computing WER metric Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function. Someone created an issue https://github.com/jitsi/jiwer/issues/40 at jiwer which shows that this is still a problem in the current version. Would be curious to figure out how this can be fixed by jiwer... :) I assume that it runs of out memory because it's trying to compute the WER over (too many) test samples?
[ 0.12497895956039429, -0.2007293403148651, 0.05871839448809624, 0.3256513476371765, 0.4333938956260681, 0.07378918677568436, -0.21804334223270416, 0.2950880527496338, 0.028831470757722855, 0.4309867024421692, 0.09653063863515854, -0.09463480859994888, -0.3058878183364868, -0.57522052526474, -0.1799837052822113, -0.33477261662483215, -0.1305917203426361, -0.06031373143196106, -0.09396779537200928, 0.2673477530479431, -0.24140103161334991, 0.2181449830532074, -0.3488657474517822, 0.1229340061545372, -0.07173285633325577, -0.011054294183850288, -0.1759233921766281, 0.13317915797233582, -0.22127161920070648, -0.566748857498169, 0.3025926649570465, -0.30793923139572144, 0.19049088656902313, 0.35943329334259033, -0.00011427897698013112, 0.02825509011745453, 0.19010217487812042, -0.17844705283641815, -0.010959791019558907, 0.11745648086071014, -0.12585335969924927, -0.18654319643974304, -0.13194029033184052, -0.009257741272449493, -0.03298791125416756, 0.03756670653820038, 0.10806894302368164, -0.28800830245018005, 0.06320888549089432, 0.24494609236717224, 0.19924283027648926, -0.06094599515199661, 0.2961238920688629, -0.22950811684131622, -0.12410897761583328, -0.19057758152484894, 0.1977028101682663, 0.31632792949676514, -0.2703138589859009, -0.17763619124889374, -0.2714260220527649, 0.2580876648426056, -0.04277694597840309, 0.21431468427181244, 0.09361212700605392, 0.11576015502214432, 0.08539402484893799, 0.011005371809005737, 0.08476635813713074, -0.255557119846344, 0.26716911792755127, -0.3263043463230133, -0.030164809897542, 0.2048875391483307, -0.16143383085727692, -0.42757144570350647, 0.16603033244609833, 0.11872588843107224, -0.5047885775566101, 0.09757017344236374, -0.20402668416500092, -0.12048113346099854, -0.39423081278800964, 0.12548089027404785, -0.005826827138662338, 0.0910312682390213, -0.1965169459581375, 0.10574248433113098, 0.33680567145347595, 0.1566445231437683, 0.06043586879968643, 0.2069694995880127, -0.1233542412519455, 0.012526383623480797, -0.37430885434150696, -0.08814242482185364, -0.05848700553178787, -0.23261964321136475, 0.15802320837974548, -0.5695322155952454, 0.5826602578163147, -0.08412723988294601, 0.3524417281150818, 0.44587093591690063, -0.22183255851268768, 0.8173162937164307, -0.09721895307302475, 0.07901611179113388, 0.04140844941139221, 0.07843898981809616, -0.1152927428483963, -0.24389320611953735, -0.08986690640449524, -0.38395971059799194, 0.28133517503738403, 0.18847590684890747, -0.1235136017203331, -0.19924254715442657, -0.4400853216648102, 0.06396627426147461, -0.04093535616993904, 0.1174827367067337, 0.1261955350637436, 0.3188076615333557, 0.16514751315116882, 0.48937147855758667, 0.31324338912963867, 0.0720730721950531, -0.1783273071050644, 0.062153320759534836, -0.23344814777374268, 0.23190999031066895, -0.2242501825094223, 0.030898315832018852, 0.12527461349964142, 0.22979597747325897, 0.3616982698440552, -0.23223279416561127, 0.21067653596401215, -0.2574239671230316, 0.27662935853004456, -0.11066056787967682, 0.08386752754449844, 0.20263342559337616, -0.09959300607442856, -0.008728338405489922, 0.22977091372013092, 0.27362650632858276, 0.03456266224384308, 0.11659842729568481, -0.21280288696289062, -0.24320825934410095, 0.3005085587501526, 0.15803956985473633, -0.05864954739809036, 0.06795669347047806, -0.06455730646848679, -0.005781974643468857, 0.28054848313331604, -0.05489321053028107, -0.34017518162727356, 0.08686584234237671, -0.7389824390411377, -0.26006028056144714, 0.1528923511505127, 0.006036609411239624, -0.1756758689880371, 0.005463793873786926, 0.25586146116256714, -0.012083299458026886, 0.24220949411392212, 0.03305543214082718, 0.06806529313325882, 0.12066690623760223, -0.20440229773521423, -0.10566028952598572, 0.34988391399383545, -0.8443558216094971, -0.15111693739891052, -0.049968961626291275, -0.13288149237632751, -0.025658274069428444, 0.255960077047348, -0.21462425589561462, 0.14976900815963745, 0.11315896362066269, 0.3785301744937897, -0.2864329218864441, -0.1795530468225479, 0.024176159873604774, -0.18985246121883392, -0.11398773640394211, 0.17904335260391235, -0.14133140444755554, 0.39436623454093933, 0.08920478820800781, 0.16556885838508606, 0.14076361060142517, 0.21558615565299988, -0.027472402900457382, 0.14734624326229095, 0.26704734563827515, 0.24880057573318481, -0.6484081745147705, 0.3060632646083832, -0.06286436319351196, 0.15388283133506775, 0.187250554561615, -0.2421235293149948, 0.06600278615951538, 0.4159046411514282, 0.42931312322616577, -0.1300991177558899, 0.01611383818089962, 0.06124400720000267, -0.16782788932323456, 0.22022396326065063, -0.06157967448234558, 0.3064248561859131, -0.2538878619670868, -0.004113480448722839, 0.07258006185293198, -0.3613118529319763, -0.08067703247070312, -0.006758451461791992, -0.23276883363723755, -0.10887110978364944, -0.22204166650772095, 0.29364439845085144, 0.19079291820526123, 0.20068573951721191, 0.17184752225875854, -0.2917722463607788, 0.3505714237689972, 0.10633894801139832, -0.017048045992851257, 0.1874937117099762, 0.18841242790222168, -0.15443798899650574, -0.4010765254497528, 0.2174314260482788, -0.028292041271924973, 0.2030489146709442, -0.11859260499477386, 0.23637312650680542, -0.1250063180923462, 0.005633566528558731, 0.3543410003185272, 0.05272547900676727, 0.31398916244506836, 0.11357320845127106, 0.276267945766449, 0.1866988241672516, 0.14317604899406433, 0.3140140771865845, -0.43407008051872253, -0.2543811500072479, -0.38941407203674316, 0.3616288900375366, -0.3148322105407715, 0.32102739810943604, 0.15097621083259583, -0.14335337281227112, 0.4951443374156952, -0.13738113641738892, -0.17804864048957825, -0.07750579714775085, -0.3291463553905487, 0.4842240810394287, 0.024781588464975357, 0.06279157102108002, 0.1173735186457634, -0.036831725388765335, 0.14725343883037567, 0.11951626092195511, 0.21131543815135956, -0.10945659875869751, -0.06268536299467087, 0.21121461689472198, -0.46709027886390686, 0.15942591428756714, 0.12574896216392517, 0.10199623554944992, 0.33879491686820984, -0.2200203239917755, -0.11528933793306351, 0.26741647720336914, 0.21802887320518494, -0.13208718597888947, -0.04351787641644478, -0.025864887982606888, -0.2954534590244293, -0.20420613884925842, 0.3511810898780823, 0.10404285788536072, 0.1294218897819519, -0.04594235122203827, 0.23271705210208893, 0.2416963428258896, 0.42760464549064636, 0.2114255726337433, -0.0255011897534132, -0.1811804473400116, 0.05906050279736519, 0.02186109498143196, -0.04970935732126236, 0.14635217189788818, 0.08624903112649918, -0.04986894130706787, -0.043571583926677704, -0.18042464554309845, -0.0071562305092811584, -0.0013991110026836395, 0.41044139862060547, 0.22059455513954163, 0.07273688167333603, -0.23666489124298096, -0.032221775501966476, 0.1743239164352417, -0.23742157220840454, -0.03849460184574127, 0.5531132817268372, -0.05871142819523811, 0.08928055316209793, -0.05655677616596222, -0.1715918481349945, -0.09363450109958649, -0.39646655321121216, -0.020701825618743896, 0.041386183351278305, 0.1471431851387024, -0.11817453056573868, 0.14094582200050354, 0.22467292845249176, 0.17087869346141815, 0.007945286110043526, -0.20627635717391968, -0.33947300910949707, -0.026806127279996872, -0.23064090311527252, -0.15455381572246552, 0.06189305707812309, 0.017621532082557678, 0.6852980256080627, 0.13802100718021393, -0.14058303833007812, -0.45607176423072815, 0.0017370376735925674, -0.20989122986793518, -0.030375875532627106, -0.01608399488031864, 0.2644730806350708, -0.06265795230865479, -0.1569623202085495, -0.2842123508453369, -0.05428945645689964, 0.21243244409561157, 0.11877495050430298, -0.027383722364902496, 0.03176498785614967, 0.03221708536148071, 0.28308311104774475, 0.5209567546844482, 0.3953303098678589, 0.10299511253833771, 0.28389501571655273, 0.1921321153640747, 0.0036795735359191895, 0.09003476798534393, -0.10750968009233475, 0.17946065962314606, -0.10672566294670105, -0.17375850677490234, 0.11602850258350372, 0.07035930454730988, -0.1351747363805771, -0.19734467566013336, -0.008780963718891144, 0.08463876694440842, -0.18407176434993744, -0.021470466628670692, -0.018805958330631256, 0.5045290589332581, 0.09238460659980774, 0.047034986317157745, -0.16068781912326813, -0.3939410150051117, 0.10256089270114899, -0.045961856842041016, 0.06707073748111725, 0.00992655474692583, -0.05994033440947533, -0.00900879967957735, -0.7305299639701843, 0.26855120062828064, 0.11236024647951126, 0.43201231956481934, -0.10201123356819153, 0.05228831619024277, -0.15860788524150848, 0.11426772177219391, 0.42869651317596436, -0.06445702910423279, -0.17652808129787445, 0.059621717780828476, 0.05246509611606598, -0.16835945844650269, 0.14714296162128448, -0.17116644978523254, -0.03841610997915268, -0.2613122761249542, -0.11688169836997986, -0.0820595771074295, 0.04727398231625557, -0.006220206618309021, 0.31311821937561035, -0.16019850969314575, -0.2500495910644531, -0.3472497761249542, -0.12205331772565842, 0.004393391311168671, -0.21696868538856506, -0.12263999134302139, 0.08955252915620804, -0.21764147281646729, 0.2523511052131653, 0.022733744233846664, -0.29524150490760803, 0.348263144493103, -0.11240598559379578, 0.19657453894615173, -0.43224477767944336, 0.13328029215335846, 0.4644438326358795, -0.20728731155395508, -0.017048919573426247, 0.11370625346899033, 0.069551020860672, -0.2817786633968353, 0.24075710773468018, 0.20175278186798096, 0.3595781624317169, 0.06757818162441254, -0.29125210642814636, 0.2509188652038574, -0.03618263453245163, 0.0853484496474266, -0.5771863460540771, 0.18017050623893738, 0.0886629968881607, 0.0613386407494545, 0.1381758600473404, -0.062436193227767944, 0.2326974868774414, 0.05526520684361458, -0.13690052926540375, 0.2892400622367859, -0.019521571695804596, -0.2696187496185303, 0.28251755237579346, 0.24875128269195557, 0.7941433191299438, -0.14858895540237427, -0.06106523796916008, 0.4458690583705902, 0.008394349366426468, -0.08810548484325409, -0.21181844174861908, 0.5530892610549927, -0.15169769525527954, -0.014636107720434666, 0.08713629096746445, -0.22382858395576477, -0.09138993173837662, -0.25269055366516113, -0.26054394245147705, 0.656531035900116, 0.03891237825155258, -0.14280809462070465, 0.08655447512865067, -0.047439418733119965, -0.11878711730241776, -0.24658480286598206, 0.2222437709569931, 0.1842268407344818, -0.1877066195011139, -0.14840036630630493, -0.038745686411857605, 0.07642331719398499, 0.09276844561100006, -0.32139915227890015, -0.21347510814666748, 0.009413216263055801, -0.2341897338628769, 0.12290354073047638, -0.28766655921936035, 0.1384740024805069, -0.033819008618593216, 0.41296976804733276, 0.3505013585090637, 0.13478489220142365, -0.043951503932476044, 0.06422159075737, -0.14094382524490356, 0.06738215684890747, 0.08167891204357147, 0.19362318515777588, -0.07724738121032715, -0.042367249727249146, -0.23620203137397766, 0.32398083806037903, 0.03189932182431221, -0.3035773038864136, 0.02097904682159424, 0.004150085151195526, -0.06764230132102966, -0.09274159371852875, -0.09915488958358765, -0.12263475358486176, -0.40542763471603394, -0.10168398916721344, 0.16659760475158691, 0.3358544111251831, -0.6273183226585388, 0.37179723381996155, 0.05995841324329376, -0.058106862008571625, 0.2039709836244583, 0.30347350239753723, 0.24020081758499146, -0.37110385298728943, 0.522854745388031, -0.07030873000621796, -0.06644986569881439, -0.08496037870645523, -0.3364027440547943, -0.1057751402258873, 0.02512305974960327, 0.18758490681648254, 0.2309449315071106, 0.08632104098796844, -0.21489456295967102, 0.12959876656532288, 0.07146387547254562, 0.2860012948513031, 0.14781935513019562, -0.3211328685283661, -0.5705016255378723, 0.1984289288520813, -0.13433587551116943, 0.0697694942355156, -0.47773391008377075, -0.29287436604499817, -0.543330729007721, 0.01971016637980938, -0.2649724781513214, 0.13094109296798706, -0.46984928846359253, 0.1528986692428589, -0.05602329224348068, -0.10722798854112625, 0.24121488630771637, 0.16624051332473755, 0.1316615492105484, 0.4861500859260559, -0.16091854870319366, -0.11483296006917953, 0.013082239776849747, 0.07637626677751541, -0.023865357041358948, -0.1037725880742073, 0.23436178267002106, 0.07662567496299744, -0.1278422772884369, -0.12012979388237, -0.1803634762763977, 0.2723798155784607, -0.24169977009296417, 0.08689650893211365, -0.38366401195526123, 0.07315969467163086, 0.6001414060592651, 0.20373302698135376, -0.02192389965057373, 0.24486109614372253, 0.06156805530190468, 0.2490888386964798, -0.1119031310081482, -0.05834639072418213, 0.21348914504051208, 0.10714531689882278, -0.11078329384326935, -0.2432859241962433, 0.19406268000602722, -0.2006392925977707, -0.23091356456279755, -0.11894531548023224, 0.2250620573759079, -0.1795278936624527, -0.26971036195755005, 0.051261499524116516, 0.14574825763702393, 0.21089141070842743, 0.05138581991195679, 0.17894506454467773, -0.14126582443714142, 0.0825066864490509, 0.058262672275304794, 0.22826769948005676, 0.17244260013103485, -0.2710611820220947, -0.05411538481712341, -0.04304414242506027, 0.22778171300888062, -0.3114748001098633, -0.1649620532989502, -0.24813345074653625, -0.07835571467876434, -0.12320290505886078, -0.13706214725971222, -0.0019344128668308258, 0.3038545548915863, 0.5290904641151428, -0.257344514131546, 0.40645015239715576, -0.4600454270839691, 0.07677946239709854, -0.0782732293009758, -0.38954320549964905, -0.32592010498046875, 0.31040462851524353, 0.03938042372465134, 0.3134307861328125, -0.3366585969924927, 0.12215211987495422, 0.13134551048278809, 0.16834180057048798, -0.15117686986923218, -0.20366273820400238, -0.11607331782579422, 0.06364303827285767, 0.15781167149543762, -0.3073452115058899, 0.024631299078464508, -0.05029116943478584, 0.36682870984077454, -0.03425242751836777, 0.3742721676826477, 0.0016251951456069946, -0.22364412248134613, 0.2601141631603241, -0.018012940883636475, 0.5469644069671631, 0.010053440928459167, -0.28326690196990967, 0.11461437493562698, 0.4181113839149475, 0.1426425278186798, 0.13862062990665436, 0.2846042215824127, 0.4829079806804657, 0.3588482141494751, -0.2767457962036133, 0.2184024453163147, -0.11270104348659515, -0.1293804943561554, -0.010322163812816143, 0.28464215993881226, 0.24546822905540466, -0.0023277364671230316, 0.18504804372787476, 0.03481672704219818, -0.035140592604875565, -0.14975979924201965, 0.009958140552043915, 0.056803762912750244, -0.22267311811447144, 0.05701979249715805, -0.2153233289718628, 0.025585219264030457, -0.22538304328918457, -0.09231138974428177, -0.3778281807899475, 0.2275390326976776, 0.00916808471083641, -0.14014431834220886, 0.20493152737617493, 0.07738061249256134, 0.05607742816209793, -0.26621773838996887, 0.3642227351665497, -0.05091329291462898, 0.21516400575637817, -0.6167618036270142, -0.23420289158821106, -0.17649874091148376, 0.15138109028339386, -0.15935112535953522, 0.4129830598831177, -0.1397840976715088, 0.09398573637008667, -0.14025288820266724, -0.028662897646427155, -0.06776866316795349, 0.12308900058269501, -0.10358866304159164, 0.27478885650634766, -0.3578976094722748, -0.2949352264404297, 0.22617049515247345, -0.14218023419380188, 0.2543467879295349, -0.4365842044353485, -0.1602468639612198, -0.2335585504770279, 0.010778278112411499, -0.03898486867547035, 0.4080350399017334, -0.09498102962970734, 0.5220332145690918, 0.06293828040361404, 0.3354322612285614, 0.5877147912979126, -0.011793602257966995, -0.29718393087387085, -0.10959504544734955, -0.17890602350234985, -0.21372045576572418, -0.4510127604007721, -0.0793379545211792, 0.5294629335403442, -0.1782434731721878, -0.29557323455810547, -0.29227083921432495, 0.3045118451118469, -0.03914863243699074, -0.027726899832487106, -0.1796136051416397, 0.3239211142063141, -0.2037034034729004, 0.2875933349132538, 0.2503637671470642, 0.06695704162120819, 0.15626630187034607, 0.4125558137893677, -0.33015692234039307, -0.0906282365322113, 0.5843913555145264, -0.16096092760562897, -0.3511347472667694, 0.0949685350060463, 0.27763253450393677, 0.197628915309906, -0.3637203872203827, -0.8314567804336548, -0.027013160288333893, 0.2877657413482666, 0.23663875460624695, -0.10231086611747742, 0.04718264564871788, 0.07295206934213638, -0.013490457087755203, 0.20483075082302094, -0.0837521106004715, -0.10401808470487595, -0.1719590276479721, 0.11469939351081848, -0.13320480287075043 ]
https://github.com/huggingface/datasets/issues/2078
MemoryError when computing WER metric
Hi ! It's computed iteratively so not sure what could go wrong https://github.com/huggingface/datasets/blob/8afd0ba8c27800a55ea69d9fcd702dc97d9c16d8/metrics/wer/wer.py#L100-L106 @NiklasHoltmeyer what version of `datasets` are you running ?
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
22
MemoryError when computing WER metric Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function. Hi ! It's computed iteratively so not sure what could go wrong https://github.com/huggingface/datasets/blob/8afd0ba8c27800a55ea69d9fcd702dc97d9c16d8/metrics/wer/wer.py#L100-L106 @NiklasHoltmeyer what version of `datasets` are you running ?
[ 0.12497895956039429, -0.2007293403148651, 0.05871839448809624, 0.3256513476371765, 0.4333938956260681, 0.07378918677568436, -0.21804334223270416, 0.2950880527496338, 0.028831470757722855, 0.4309867024421692, 0.09653063863515854, -0.09463480859994888, -0.3058878183364868, -0.57522052526474, -0.1799837052822113, -0.33477261662483215, -0.1305917203426361, -0.06031373143196106, -0.09396779537200928, 0.2673477530479431, -0.24140103161334991, 0.2181449830532074, -0.3488657474517822, 0.1229340061545372, -0.07173285633325577, -0.011054294183850288, -0.1759233921766281, 0.13317915797233582, -0.22127161920070648, -0.566748857498169, 0.3025926649570465, -0.30793923139572144, 0.19049088656902313, 0.35943329334259033, -0.00011427897698013112, 0.02825509011745453, 0.19010217487812042, -0.17844705283641815, -0.010959791019558907, 0.11745648086071014, -0.12585335969924927, -0.18654319643974304, -0.13194029033184052, -0.009257741272449493, -0.03298791125416756, 0.03756670653820038, 0.10806894302368164, -0.28800830245018005, 0.06320888549089432, 0.24494609236717224, 0.19924283027648926, -0.06094599515199661, 0.2961238920688629, -0.22950811684131622, -0.12410897761583328, -0.19057758152484894, 0.1977028101682663, 0.31632792949676514, -0.2703138589859009, -0.17763619124889374, -0.2714260220527649, 0.2580876648426056, -0.04277694597840309, 0.21431468427181244, 0.09361212700605392, 0.11576015502214432, 0.08539402484893799, 0.011005371809005737, 0.08476635813713074, -0.255557119846344, 0.26716911792755127, -0.3263043463230133, -0.030164809897542, 0.2048875391483307, -0.16143383085727692, -0.42757144570350647, 0.16603033244609833, 0.11872588843107224, -0.5047885775566101, 0.09757017344236374, -0.20402668416500092, -0.12048113346099854, -0.39423081278800964, 0.12548089027404785, -0.005826827138662338, 0.0910312682390213, -0.1965169459581375, 0.10574248433113098, 0.33680567145347595, 0.1566445231437683, 0.06043586879968643, 0.2069694995880127, -0.1233542412519455, 0.012526383623480797, -0.37430885434150696, -0.08814242482185364, -0.05848700553178787, -0.23261964321136475, 0.15802320837974548, -0.5695322155952454, 0.5826602578163147, -0.08412723988294601, 0.3524417281150818, 0.44587093591690063, -0.22183255851268768, 0.8173162937164307, -0.09721895307302475, 0.07901611179113388, 0.04140844941139221, 0.07843898981809616, -0.1152927428483963, -0.24389320611953735, -0.08986690640449524, -0.38395971059799194, 0.28133517503738403, 0.18847590684890747, -0.1235136017203331, -0.19924254715442657, -0.4400853216648102, 0.06396627426147461, -0.04093535616993904, 0.1174827367067337, 0.1261955350637436, 0.3188076615333557, 0.16514751315116882, 0.48937147855758667, 0.31324338912963867, 0.0720730721950531, -0.1783273071050644, 0.062153320759534836, -0.23344814777374268, 0.23190999031066895, -0.2242501825094223, 0.030898315832018852, 0.12527461349964142, 0.22979597747325897, 0.3616982698440552, -0.23223279416561127, 0.21067653596401215, -0.2574239671230316, 0.27662935853004456, -0.11066056787967682, 0.08386752754449844, 0.20263342559337616, -0.09959300607442856, -0.008728338405489922, 0.22977091372013092, 0.27362650632858276, 0.03456266224384308, 0.11659842729568481, -0.21280288696289062, -0.24320825934410095, 0.3005085587501526, 0.15803956985473633, -0.05864954739809036, 0.06795669347047806, -0.06455730646848679, -0.005781974643468857, 0.28054848313331604, -0.05489321053028107, -0.34017518162727356, 0.08686584234237671, -0.7389824390411377, -0.26006028056144714, 0.1528923511505127, 0.006036609411239624, -0.1756758689880371, 0.005463793873786926, 0.25586146116256714, -0.012083299458026886, 0.24220949411392212, 0.03305543214082718, 0.06806529313325882, 0.12066690623760223, -0.20440229773521423, -0.10566028952598572, 0.34988391399383545, -0.8443558216094971, -0.15111693739891052, -0.049968961626291275, -0.13288149237632751, -0.025658274069428444, 0.255960077047348, -0.21462425589561462, 0.14976900815963745, 0.11315896362066269, 0.3785301744937897, -0.2864329218864441, -0.1795530468225479, 0.024176159873604774, -0.18985246121883392, -0.11398773640394211, 0.17904335260391235, -0.14133140444755554, 0.39436623454093933, 0.08920478820800781, 0.16556885838508606, 0.14076361060142517, 0.21558615565299988, -0.027472402900457382, 0.14734624326229095, 0.26704734563827515, 0.24880057573318481, -0.6484081745147705, 0.3060632646083832, -0.06286436319351196, 0.15388283133506775, 0.187250554561615, -0.2421235293149948, 0.06600278615951538, 0.4159046411514282, 0.42931312322616577, -0.1300991177558899, 0.01611383818089962, 0.06124400720000267, -0.16782788932323456, 0.22022396326065063, -0.06157967448234558, 0.3064248561859131, -0.2538878619670868, -0.004113480448722839, 0.07258006185293198, -0.3613118529319763, -0.08067703247070312, -0.006758451461791992, -0.23276883363723755, -0.10887110978364944, -0.22204166650772095, 0.29364439845085144, 0.19079291820526123, 0.20068573951721191, 0.17184752225875854, -0.2917722463607788, 0.3505714237689972, 0.10633894801139832, -0.017048045992851257, 0.1874937117099762, 0.18841242790222168, -0.15443798899650574, -0.4010765254497528, 0.2174314260482788, -0.028292041271924973, 0.2030489146709442, -0.11859260499477386, 0.23637312650680542, -0.1250063180923462, 0.005633566528558731, 0.3543410003185272, 0.05272547900676727, 0.31398916244506836, 0.11357320845127106, 0.276267945766449, 0.1866988241672516, 0.14317604899406433, 0.3140140771865845, -0.43407008051872253, -0.2543811500072479, -0.38941407203674316, 0.3616288900375366, -0.3148322105407715, 0.32102739810943604, 0.15097621083259583, -0.14335337281227112, 0.4951443374156952, -0.13738113641738892, -0.17804864048957825, -0.07750579714775085, -0.3291463553905487, 0.4842240810394287, 0.024781588464975357, 0.06279157102108002, 0.1173735186457634, -0.036831725388765335, 0.14725343883037567, 0.11951626092195511, 0.21131543815135956, -0.10945659875869751, -0.06268536299467087, 0.21121461689472198, -0.46709027886390686, 0.15942591428756714, 0.12574896216392517, 0.10199623554944992, 0.33879491686820984, -0.2200203239917755, -0.11528933793306351, 0.26741647720336914, 0.21802887320518494, -0.13208718597888947, -0.04351787641644478, -0.025864887982606888, -0.2954534590244293, -0.20420613884925842, 0.3511810898780823, 0.10404285788536072, 0.1294218897819519, -0.04594235122203827, 0.23271705210208893, 0.2416963428258896, 0.42760464549064636, 0.2114255726337433, -0.0255011897534132, -0.1811804473400116, 0.05906050279736519, 0.02186109498143196, -0.04970935732126236, 0.14635217189788818, 0.08624903112649918, -0.04986894130706787, -0.043571583926677704, -0.18042464554309845, -0.0071562305092811584, -0.0013991110026836395, 0.41044139862060547, 0.22059455513954163, 0.07273688167333603, -0.23666489124298096, -0.032221775501966476, 0.1743239164352417, -0.23742157220840454, -0.03849460184574127, 0.5531132817268372, -0.05871142819523811, 0.08928055316209793, -0.05655677616596222, -0.1715918481349945, -0.09363450109958649, -0.39646655321121216, -0.020701825618743896, 0.041386183351278305, 0.1471431851387024, -0.11817453056573868, 0.14094582200050354, 0.22467292845249176, 0.17087869346141815, 0.007945286110043526, -0.20627635717391968, -0.33947300910949707, -0.026806127279996872, -0.23064090311527252, -0.15455381572246552, 0.06189305707812309, 0.017621532082557678, 0.6852980256080627, 0.13802100718021393, -0.14058303833007812, -0.45607176423072815, 0.0017370376735925674, -0.20989122986793518, -0.030375875532627106, -0.01608399488031864, 0.2644730806350708, -0.06265795230865479, -0.1569623202085495, -0.2842123508453369, -0.05428945645689964, 0.21243244409561157, 0.11877495050430298, -0.027383722364902496, 0.03176498785614967, 0.03221708536148071, 0.28308311104774475, 0.5209567546844482, 0.3953303098678589, 0.10299511253833771, 0.28389501571655273, 0.1921321153640747, 0.0036795735359191895, 0.09003476798534393, -0.10750968009233475, 0.17946065962314606, -0.10672566294670105, -0.17375850677490234, 0.11602850258350372, 0.07035930454730988, -0.1351747363805771, -0.19734467566013336, -0.008780963718891144, 0.08463876694440842, -0.18407176434993744, -0.021470466628670692, -0.018805958330631256, 0.5045290589332581, 0.09238460659980774, 0.047034986317157745, -0.16068781912326813, -0.3939410150051117, 0.10256089270114899, -0.045961856842041016, 0.06707073748111725, 0.00992655474692583, -0.05994033440947533, -0.00900879967957735, -0.7305299639701843, 0.26855120062828064, 0.11236024647951126, 0.43201231956481934, -0.10201123356819153, 0.05228831619024277, -0.15860788524150848, 0.11426772177219391, 0.42869651317596436, -0.06445702910423279, -0.17652808129787445, 0.059621717780828476, 0.05246509611606598, -0.16835945844650269, 0.14714296162128448, -0.17116644978523254, -0.03841610997915268, -0.2613122761249542, -0.11688169836997986, -0.0820595771074295, 0.04727398231625557, -0.006220206618309021, 0.31311821937561035, -0.16019850969314575, -0.2500495910644531, -0.3472497761249542, -0.12205331772565842, 0.004393391311168671, -0.21696868538856506, -0.12263999134302139, 0.08955252915620804, -0.21764147281646729, 0.2523511052131653, 0.022733744233846664, -0.29524150490760803, 0.348263144493103, -0.11240598559379578, 0.19657453894615173, -0.43224477767944336, 0.13328029215335846, 0.4644438326358795, -0.20728731155395508, -0.017048919573426247, 0.11370625346899033, 0.069551020860672, -0.2817786633968353, 0.24075710773468018, 0.20175278186798096, 0.3595781624317169, 0.06757818162441254, -0.29125210642814636, 0.2509188652038574, -0.03618263453245163, 0.0853484496474266, -0.5771863460540771, 0.18017050623893738, 0.0886629968881607, 0.0613386407494545, 0.1381758600473404, -0.062436193227767944, 0.2326974868774414, 0.05526520684361458, -0.13690052926540375, 0.2892400622367859, -0.019521571695804596, -0.2696187496185303, 0.28251755237579346, 0.24875128269195557, 0.7941433191299438, -0.14858895540237427, -0.06106523796916008, 0.4458690583705902, 0.008394349366426468, -0.08810548484325409, -0.21181844174861908, 0.5530892610549927, -0.15169769525527954, -0.014636107720434666, 0.08713629096746445, -0.22382858395576477, -0.09138993173837662, -0.25269055366516113, -0.26054394245147705, 0.656531035900116, 0.03891237825155258, -0.14280809462070465, 0.08655447512865067, -0.047439418733119965, -0.11878711730241776, -0.24658480286598206, 0.2222437709569931, 0.1842268407344818, -0.1877066195011139, -0.14840036630630493, -0.038745686411857605, 0.07642331719398499, 0.09276844561100006, -0.32139915227890015, -0.21347510814666748, 0.009413216263055801, -0.2341897338628769, 0.12290354073047638, -0.28766655921936035, 0.1384740024805069, -0.033819008618593216, 0.41296976804733276, 0.3505013585090637, 0.13478489220142365, -0.043951503932476044, 0.06422159075737, -0.14094382524490356, 0.06738215684890747, 0.08167891204357147, 0.19362318515777588, -0.07724738121032715, -0.042367249727249146, -0.23620203137397766, 0.32398083806037903, 0.03189932182431221, -0.3035773038864136, 0.02097904682159424, 0.004150085151195526, -0.06764230132102966, -0.09274159371852875, -0.09915488958358765, -0.12263475358486176, -0.40542763471603394, -0.10168398916721344, 0.16659760475158691, 0.3358544111251831, -0.6273183226585388, 0.37179723381996155, 0.05995841324329376, -0.058106862008571625, 0.2039709836244583, 0.30347350239753723, 0.24020081758499146, -0.37110385298728943, 0.522854745388031, -0.07030873000621796, -0.06644986569881439, -0.08496037870645523, -0.3364027440547943, -0.1057751402258873, 0.02512305974960327, 0.18758490681648254, 0.2309449315071106, 0.08632104098796844, -0.21489456295967102, 0.12959876656532288, 0.07146387547254562, 0.2860012948513031, 0.14781935513019562, -0.3211328685283661, -0.5705016255378723, 0.1984289288520813, -0.13433587551116943, 0.0697694942355156, -0.47773391008377075, -0.29287436604499817, -0.543330729007721, 0.01971016637980938, -0.2649724781513214, 0.13094109296798706, -0.46984928846359253, 0.1528986692428589, -0.05602329224348068, -0.10722798854112625, 0.24121488630771637, 0.16624051332473755, 0.1316615492105484, 0.4861500859260559, -0.16091854870319366, -0.11483296006917953, 0.013082239776849747, 0.07637626677751541, -0.023865357041358948, -0.1037725880742073, 0.23436178267002106, 0.07662567496299744, -0.1278422772884369, -0.12012979388237, -0.1803634762763977, 0.2723798155784607, -0.24169977009296417, 0.08689650893211365, -0.38366401195526123, 0.07315969467163086, 0.6001414060592651, 0.20373302698135376, -0.02192389965057373, 0.24486109614372253, 0.06156805530190468, 0.2490888386964798, -0.1119031310081482, -0.05834639072418213, 0.21348914504051208, 0.10714531689882278, -0.11078329384326935, -0.2432859241962433, 0.19406268000602722, -0.2006392925977707, -0.23091356456279755, -0.11894531548023224, 0.2250620573759079, -0.1795278936624527, -0.26971036195755005, 0.051261499524116516, 0.14574825763702393, 0.21089141070842743, 0.05138581991195679, 0.17894506454467773, -0.14126582443714142, 0.0825066864490509, 0.058262672275304794, 0.22826769948005676, 0.17244260013103485, -0.2710611820220947, -0.05411538481712341, -0.04304414242506027, 0.22778171300888062, -0.3114748001098633, -0.1649620532989502, -0.24813345074653625, -0.07835571467876434, -0.12320290505886078, -0.13706214725971222, -0.0019344128668308258, 0.3038545548915863, 0.5290904641151428, -0.257344514131546, 0.40645015239715576, -0.4600454270839691, 0.07677946239709854, -0.0782732293009758, -0.38954320549964905, -0.32592010498046875, 0.31040462851524353, 0.03938042372465134, 0.3134307861328125, -0.3366585969924927, 0.12215211987495422, 0.13134551048278809, 0.16834180057048798, -0.15117686986923218, -0.20366273820400238, -0.11607331782579422, 0.06364303827285767, 0.15781167149543762, -0.3073452115058899, 0.024631299078464508, -0.05029116943478584, 0.36682870984077454, -0.03425242751836777, 0.3742721676826477, 0.0016251951456069946, -0.22364412248134613, 0.2601141631603241, -0.018012940883636475, 0.5469644069671631, 0.010053440928459167, -0.28326690196990967, 0.11461437493562698, 0.4181113839149475, 0.1426425278186798, 0.13862062990665436, 0.2846042215824127, 0.4829079806804657, 0.3588482141494751, -0.2767457962036133, 0.2184024453163147, -0.11270104348659515, -0.1293804943561554, -0.010322163812816143, 0.28464215993881226, 0.24546822905540466, -0.0023277364671230316, 0.18504804372787476, 0.03481672704219818, -0.035140592604875565, -0.14975979924201965, 0.009958140552043915, 0.056803762912750244, -0.22267311811447144, 0.05701979249715805, -0.2153233289718628, 0.025585219264030457, -0.22538304328918457, -0.09231138974428177, -0.3778281807899475, 0.2275390326976776, 0.00916808471083641, -0.14014431834220886, 0.20493152737617493, 0.07738061249256134, 0.05607742816209793, -0.26621773838996887, 0.3642227351665497, -0.05091329291462898, 0.21516400575637817, -0.6167618036270142, -0.23420289158821106, -0.17649874091148376, 0.15138109028339386, -0.15935112535953522, 0.4129830598831177, -0.1397840976715088, 0.09398573637008667, -0.14025288820266724, -0.028662897646427155, -0.06776866316795349, 0.12308900058269501, -0.10358866304159164, 0.27478885650634766, -0.3578976094722748, -0.2949352264404297, 0.22617049515247345, -0.14218023419380188, 0.2543467879295349, -0.4365842044353485, -0.1602468639612198, -0.2335585504770279, 0.010778278112411499, -0.03898486867547035, 0.4080350399017334, -0.09498102962970734, 0.5220332145690918, 0.06293828040361404, 0.3354322612285614, 0.5877147912979126, -0.011793602257966995, -0.29718393087387085, -0.10959504544734955, -0.17890602350234985, -0.21372045576572418, -0.4510127604007721, -0.0793379545211792, 0.5294629335403442, -0.1782434731721878, -0.29557323455810547, -0.29227083921432495, 0.3045118451118469, -0.03914863243699074, -0.027726899832487106, -0.1796136051416397, 0.3239211142063141, -0.2037034034729004, 0.2875933349132538, 0.2503637671470642, 0.06695704162120819, 0.15626630187034607, 0.4125558137893677, -0.33015692234039307, -0.0906282365322113, 0.5843913555145264, -0.16096092760562897, -0.3511347472667694, 0.0949685350060463, 0.27763253450393677, 0.197628915309906, -0.3637203872203827, -0.8314567804336548, -0.027013160288333893, 0.2877657413482666, 0.23663875460624695, -0.10231086611747742, 0.04718264564871788, 0.07295206934213638, -0.013490457087755203, 0.20483075082302094, -0.0837521106004715, -0.10401808470487595, -0.1719590276479721, 0.11469939351081848, -0.13320480287075043 ]
https://github.com/huggingface/datasets/issues/2078
MemoryError when computing WER metric
One possible explanation might be that it is the user who is passing all the sentences in a single element to `wer.compute`? As current implementation iterates over the elements of `predictions` and `references`, this can be problematic if `predictions` and `references` contain a single huge element each. This could be the case, for example, with a single string with all sentences: ```python result["predicted"] = "One sentence. Other sentence." ``` or with a __double__ nested list of sentence lists ```python result["predicted"] = [[ ["One sentence."], ["Other sentence"] ]] ``` The user should check the dimensions of the data structure passed to `predictions` and `references`.
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
103
MemoryError when computing WER metric Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function. One possible explanation might be that it is the user who is passing all the sentences in a single element to `wer.compute`? As current implementation iterates over the elements of `predictions` and `references`, this can be problematic if `predictions` and `references` contain a single huge element each. This could be the case, for example, with a single string with all sentences: ```python result["predicted"] = "One sentence. Other sentence." ``` or with a __double__ nested list of sentence lists ```python result["predicted"] = [[ ["One sentence."], ["Other sentence"] ]] ``` The user should check the dimensions of the data structure passed to `predictions` and `references`.
[ 0.12497895956039429, -0.2007293403148651, 0.05871839448809624, 0.3256513476371765, 0.4333938956260681, 0.07378918677568436, -0.21804334223270416, 0.2950880527496338, 0.028831470757722855, 0.4309867024421692, 0.09653063863515854, -0.09463480859994888, -0.3058878183364868, -0.57522052526474, -0.1799837052822113, -0.33477261662483215, -0.1305917203426361, -0.06031373143196106, -0.09396779537200928, 0.2673477530479431, -0.24140103161334991, 0.2181449830532074, -0.3488657474517822, 0.1229340061545372, -0.07173285633325577, -0.011054294183850288, -0.1759233921766281, 0.13317915797233582, -0.22127161920070648, -0.566748857498169, 0.3025926649570465, -0.30793923139572144, 0.19049088656902313, 0.35943329334259033, -0.00011427897698013112, 0.02825509011745453, 0.19010217487812042, -0.17844705283641815, -0.010959791019558907, 0.11745648086071014, -0.12585335969924927, -0.18654319643974304, -0.13194029033184052, -0.009257741272449493, -0.03298791125416756, 0.03756670653820038, 0.10806894302368164, -0.28800830245018005, 0.06320888549089432, 0.24494609236717224, 0.19924283027648926, -0.06094599515199661, 0.2961238920688629, -0.22950811684131622, -0.12410897761583328, -0.19057758152484894, 0.1977028101682663, 0.31632792949676514, -0.2703138589859009, -0.17763619124889374, -0.2714260220527649, 0.2580876648426056, -0.04277694597840309, 0.21431468427181244, 0.09361212700605392, 0.11576015502214432, 0.08539402484893799, 0.011005371809005737, 0.08476635813713074, -0.255557119846344, 0.26716911792755127, -0.3263043463230133, -0.030164809897542, 0.2048875391483307, -0.16143383085727692, -0.42757144570350647, 0.16603033244609833, 0.11872588843107224, -0.5047885775566101, 0.09757017344236374, -0.20402668416500092, -0.12048113346099854, -0.39423081278800964, 0.12548089027404785, -0.005826827138662338, 0.0910312682390213, -0.1965169459581375, 0.10574248433113098, 0.33680567145347595, 0.1566445231437683, 0.06043586879968643, 0.2069694995880127, -0.1233542412519455, 0.012526383623480797, -0.37430885434150696, -0.08814242482185364, -0.05848700553178787, -0.23261964321136475, 0.15802320837974548, -0.5695322155952454, 0.5826602578163147, -0.08412723988294601, 0.3524417281150818, 0.44587093591690063, -0.22183255851268768, 0.8173162937164307, -0.09721895307302475, 0.07901611179113388, 0.04140844941139221, 0.07843898981809616, -0.1152927428483963, -0.24389320611953735, -0.08986690640449524, -0.38395971059799194, 0.28133517503738403, 0.18847590684890747, -0.1235136017203331, -0.19924254715442657, -0.4400853216648102, 0.06396627426147461, -0.04093535616993904, 0.1174827367067337, 0.1261955350637436, 0.3188076615333557, 0.16514751315116882, 0.48937147855758667, 0.31324338912963867, 0.0720730721950531, -0.1783273071050644, 0.062153320759534836, -0.23344814777374268, 0.23190999031066895, -0.2242501825094223, 0.030898315832018852, 0.12527461349964142, 0.22979597747325897, 0.3616982698440552, -0.23223279416561127, 0.21067653596401215, -0.2574239671230316, 0.27662935853004456, -0.11066056787967682, 0.08386752754449844, 0.20263342559337616, -0.09959300607442856, -0.008728338405489922, 0.22977091372013092, 0.27362650632858276, 0.03456266224384308, 0.11659842729568481, -0.21280288696289062, -0.24320825934410095, 0.3005085587501526, 0.15803956985473633, -0.05864954739809036, 0.06795669347047806, -0.06455730646848679, -0.005781974643468857, 0.28054848313331604, -0.05489321053028107, -0.34017518162727356, 0.08686584234237671, -0.7389824390411377, -0.26006028056144714, 0.1528923511505127, 0.006036609411239624, -0.1756758689880371, 0.005463793873786926, 0.25586146116256714, -0.012083299458026886, 0.24220949411392212, 0.03305543214082718, 0.06806529313325882, 0.12066690623760223, -0.20440229773521423, -0.10566028952598572, 0.34988391399383545, -0.8443558216094971, -0.15111693739891052, -0.049968961626291275, -0.13288149237632751, -0.025658274069428444, 0.255960077047348, -0.21462425589561462, 0.14976900815963745, 0.11315896362066269, 0.3785301744937897, -0.2864329218864441, -0.1795530468225479, 0.024176159873604774, -0.18985246121883392, -0.11398773640394211, 0.17904335260391235, -0.14133140444755554, 0.39436623454093933, 0.08920478820800781, 0.16556885838508606, 0.14076361060142517, 0.21558615565299988, -0.027472402900457382, 0.14734624326229095, 0.26704734563827515, 0.24880057573318481, -0.6484081745147705, 0.3060632646083832, -0.06286436319351196, 0.15388283133506775, 0.187250554561615, -0.2421235293149948, 0.06600278615951538, 0.4159046411514282, 0.42931312322616577, -0.1300991177558899, 0.01611383818089962, 0.06124400720000267, -0.16782788932323456, 0.22022396326065063, -0.06157967448234558, 0.3064248561859131, -0.2538878619670868, -0.004113480448722839, 0.07258006185293198, -0.3613118529319763, -0.08067703247070312, -0.006758451461791992, -0.23276883363723755, -0.10887110978364944, -0.22204166650772095, 0.29364439845085144, 0.19079291820526123, 0.20068573951721191, 0.17184752225875854, -0.2917722463607788, 0.3505714237689972, 0.10633894801139832, -0.017048045992851257, 0.1874937117099762, 0.18841242790222168, -0.15443798899650574, -0.4010765254497528, 0.2174314260482788, -0.028292041271924973, 0.2030489146709442, -0.11859260499477386, 0.23637312650680542, -0.1250063180923462, 0.005633566528558731, 0.3543410003185272, 0.05272547900676727, 0.31398916244506836, 0.11357320845127106, 0.276267945766449, 0.1866988241672516, 0.14317604899406433, 0.3140140771865845, -0.43407008051872253, -0.2543811500072479, -0.38941407203674316, 0.3616288900375366, -0.3148322105407715, 0.32102739810943604, 0.15097621083259583, -0.14335337281227112, 0.4951443374156952, -0.13738113641738892, -0.17804864048957825, -0.07750579714775085, -0.3291463553905487, 0.4842240810394287, 0.024781588464975357, 0.06279157102108002, 0.1173735186457634, -0.036831725388765335, 0.14725343883037567, 0.11951626092195511, 0.21131543815135956, -0.10945659875869751, -0.06268536299467087, 0.21121461689472198, -0.46709027886390686, 0.15942591428756714, 0.12574896216392517, 0.10199623554944992, 0.33879491686820984, -0.2200203239917755, -0.11528933793306351, 0.26741647720336914, 0.21802887320518494, -0.13208718597888947, -0.04351787641644478, -0.025864887982606888, -0.2954534590244293, -0.20420613884925842, 0.3511810898780823, 0.10404285788536072, 0.1294218897819519, -0.04594235122203827, 0.23271705210208893, 0.2416963428258896, 0.42760464549064636, 0.2114255726337433, -0.0255011897534132, -0.1811804473400116, 0.05906050279736519, 0.02186109498143196, -0.04970935732126236, 0.14635217189788818, 0.08624903112649918, -0.04986894130706787, -0.043571583926677704, -0.18042464554309845, -0.0071562305092811584, -0.0013991110026836395, 0.41044139862060547, 0.22059455513954163, 0.07273688167333603, -0.23666489124298096, -0.032221775501966476, 0.1743239164352417, -0.23742157220840454, -0.03849460184574127, 0.5531132817268372, -0.05871142819523811, 0.08928055316209793, -0.05655677616596222, -0.1715918481349945, -0.09363450109958649, -0.39646655321121216, -0.020701825618743896, 0.041386183351278305, 0.1471431851387024, -0.11817453056573868, 0.14094582200050354, 0.22467292845249176, 0.17087869346141815, 0.007945286110043526, -0.20627635717391968, -0.33947300910949707, -0.026806127279996872, -0.23064090311527252, -0.15455381572246552, 0.06189305707812309, 0.017621532082557678, 0.6852980256080627, 0.13802100718021393, -0.14058303833007812, -0.45607176423072815, 0.0017370376735925674, -0.20989122986793518, -0.030375875532627106, -0.01608399488031864, 0.2644730806350708, -0.06265795230865479, -0.1569623202085495, -0.2842123508453369, -0.05428945645689964, 0.21243244409561157, 0.11877495050430298, -0.027383722364902496, 0.03176498785614967, 0.03221708536148071, 0.28308311104774475, 0.5209567546844482, 0.3953303098678589, 0.10299511253833771, 0.28389501571655273, 0.1921321153640747, 0.0036795735359191895, 0.09003476798534393, -0.10750968009233475, 0.17946065962314606, -0.10672566294670105, -0.17375850677490234, 0.11602850258350372, 0.07035930454730988, -0.1351747363805771, -0.19734467566013336, -0.008780963718891144, 0.08463876694440842, -0.18407176434993744, -0.021470466628670692, -0.018805958330631256, 0.5045290589332581, 0.09238460659980774, 0.047034986317157745, -0.16068781912326813, -0.3939410150051117, 0.10256089270114899, -0.045961856842041016, 0.06707073748111725, 0.00992655474692583, -0.05994033440947533, -0.00900879967957735, -0.7305299639701843, 0.26855120062828064, 0.11236024647951126, 0.43201231956481934, -0.10201123356819153, 0.05228831619024277, -0.15860788524150848, 0.11426772177219391, 0.42869651317596436, -0.06445702910423279, -0.17652808129787445, 0.059621717780828476, 0.05246509611606598, -0.16835945844650269, 0.14714296162128448, -0.17116644978523254, -0.03841610997915268, -0.2613122761249542, -0.11688169836997986, -0.0820595771074295, 0.04727398231625557, -0.006220206618309021, 0.31311821937561035, -0.16019850969314575, -0.2500495910644531, -0.3472497761249542, -0.12205331772565842, 0.004393391311168671, -0.21696868538856506, -0.12263999134302139, 0.08955252915620804, -0.21764147281646729, 0.2523511052131653, 0.022733744233846664, -0.29524150490760803, 0.348263144493103, -0.11240598559379578, 0.19657453894615173, -0.43224477767944336, 0.13328029215335846, 0.4644438326358795, -0.20728731155395508, -0.017048919573426247, 0.11370625346899033, 0.069551020860672, -0.2817786633968353, 0.24075710773468018, 0.20175278186798096, 0.3595781624317169, 0.06757818162441254, -0.29125210642814636, 0.2509188652038574, -0.03618263453245163, 0.0853484496474266, -0.5771863460540771, 0.18017050623893738, 0.0886629968881607, 0.0613386407494545, 0.1381758600473404, -0.062436193227767944, 0.2326974868774414, 0.05526520684361458, -0.13690052926540375, 0.2892400622367859, -0.019521571695804596, -0.2696187496185303, 0.28251755237579346, 0.24875128269195557, 0.7941433191299438, -0.14858895540237427, -0.06106523796916008, 0.4458690583705902, 0.008394349366426468, -0.08810548484325409, -0.21181844174861908, 0.5530892610549927, -0.15169769525527954, -0.014636107720434666, 0.08713629096746445, -0.22382858395576477, -0.09138993173837662, -0.25269055366516113, -0.26054394245147705, 0.656531035900116, 0.03891237825155258, -0.14280809462070465, 0.08655447512865067, -0.047439418733119965, -0.11878711730241776, -0.24658480286598206, 0.2222437709569931, 0.1842268407344818, -0.1877066195011139, -0.14840036630630493, -0.038745686411857605, 0.07642331719398499, 0.09276844561100006, -0.32139915227890015, -0.21347510814666748, 0.009413216263055801, -0.2341897338628769, 0.12290354073047638, -0.28766655921936035, 0.1384740024805069, -0.033819008618593216, 0.41296976804733276, 0.3505013585090637, 0.13478489220142365, -0.043951503932476044, 0.06422159075737, -0.14094382524490356, 0.06738215684890747, 0.08167891204357147, 0.19362318515777588, -0.07724738121032715, -0.042367249727249146, -0.23620203137397766, 0.32398083806037903, 0.03189932182431221, -0.3035773038864136, 0.02097904682159424, 0.004150085151195526, -0.06764230132102966, -0.09274159371852875, -0.09915488958358765, -0.12263475358486176, -0.40542763471603394, -0.10168398916721344, 0.16659760475158691, 0.3358544111251831, -0.6273183226585388, 0.37179723381996155, 0.05995841324329376, -0.058106862008571625, 0.2039709836244583, 0.30347350239753723, 0.24020081758499146, -0.37110385298728943, 0.522854745388031, -0.07030873000621796, -0.06644986569881439, -0.08496037870645523, -0.3364027440547943, -0.1057751402258873, 0.02512305974960327, 0.18758490681648254, 0.2309449315071106, 0.08632104098796844, -0.21489456295967102, 0.12959876656532288, 0.07146387547254562, 0.2860012948513031, 0.14781935513019562, -0.3211328685283661, -0.5705016255378723, 0.1984289288520813, -0.13433587551116943, 0.0697694942355156, -0.47773391008377075, -0.29287436604499817, -0.543330729007721, 0.01971016637980938, -0.2649724781513214, 0.13094109296798706, -0.46984928846359253, 0.1528986692428589, -0.05602329224348068, -0.10722798854112625, 0.24121488630771637, 0.16624051332473755, 0.1316615492105484, 0.4861500859260559, -0.16091854870319366, -0.11483296006917953, 0.013082239776849747, 0.07637626677751541, -0.023865357041358948, -0.1037725880742073, 0.23436178267002106, 0.07662567496299744, -0.1278422772884369, -0.12012979388237, -0.1803634762763977, 0.2723798155784607, -0.24169977009296417, 0.08689650893211365, -0.38366401195526123, 0.07315969467163086, 0.6001414060592651, 0.20373302698135376, -0.02192389965057373, 0.24486109614372253, 0.06156805530190468, 0.2490888386964798, -0.1119031310081482, -0.05834639072418213, 0.21348914504051208, 0.10714531689882278, -0.11078329384326935, -0.2432859241962433, 0.19406268000602722, -0.2006392925977707, -0.23091356456279755, -0.11894531548023224, 0.2250620573759079, -0.1795278936624527, -0.26971036195755005, 0.051261499524116516, 0.14574825763702393, 0.21089141070842743, 0.05138581991195679, 0.17894506454467773, -0.14126582443714142, 0.0825066864490509, 0.058262672275304794, 0.22826769948005676, 0.17244260013103485, -0.2710611820220947, -0.05411538481712341, -0.04304414242506027, 0.22778171300888062, -0.3114748001098633, -0.1649620532989502, -0.24813345074653625, -0.07835571467876434, -0.12320290505886078, -0.13706214725971222, -0.0019344128668308258, 0.3038545548915863, 0.5290904641151428, -0.257344514131546, 0.40645015239715576, -0.4600454270839691, 0.07677946239709854, -0.0782732293009758, -0.38954320549964905, -0.32592010498046875, 0.31040462851524353, 0.03938042372465134, 0.3134307861328125, -0.3366585969924927, 0.12215211987495422, 0.13134551048278809, 0.16834180057048798, -0.15117686986923218, -0.20366273820400238, -0.11607331782579422, 0.06364303827285767, 0.15781167149543762, -0.3073452115058899, 0.024631299078464508, -0.05029116943478584, 0.36682870984077454, -0.03425242751836777, 0.3742721676826477, 0.0016251951456069946, -0.22364412248134613, 0.2601141631603241, -0.018012940883636475, 0.5469644069671631, 0.010053440928459167, -0.28326690196990967, 0.11461437493562698, 0.4181113839149475, 0.1426425278186798, 0.13862062990665436, 0.2846042215824127, 0.4829079806804657, 0.3588482141494751, -0.2767457962036133, 0.2184024453163147, -0.11270104348659515, -0.1293804943561554, -0.010322163812816143, 0.28464215993881226, 0.24546822905540466, -0.0023277364671230316, 0.18504804372787476, 0.03481672704219818, -0.035140592604875565, -0.14975979924201965, 0.009958140552043915, 0.056803762912750244, -0.22267311811447144, 0.05701979249715805, -0.2153233289718628, 0.025585219264030457, -0.22538304328918457, -0.09231138974428177, -0.3778281807899475, 0.2275390326976776, 0.00916808471083641, -0.14014431834220886, 0.20493152737617493, 0.07738061249256134, 0.05607742816209793, -0.26621773838996887, 0.3642227351665497, -0.05091329291462898, 0.21516400575637817, -0.6167618036270142, -0.23420289158821106, -0.17649874091148376, 0.15138109028339386, -0.15935112535953522, 0.4129830598831177, -0.1397840976715088, 0.09398573637008667, -0.14025288820266724, -0.028662897646427155, -0.06776866316795349, 0.12308900058269501, -0.10358866304159164, 0.27478885650634766, -0.3578976094722748, -0.2949352264404297, 0.22617049515247345, -0.14218023419380188, 0.2543467879295349, -0.4365842044353485, -0.1602468639612198, -0.2335585504770279, 0.010778278112411499, -0.03898486867547035, 0.4080350399017334, -0.09498102962970734, 0.5220332145690918, 0.06293828040361404, 0.3354322612285614, 0.5877147912979126, -0.011793602257966995, -0.29718393087387085, -0.10959504544734955, -0.17890602350234985, -0.21372045576572418, -0.4510127604007721, -0.0793379545211792, 0.5294629335403442, -0.1782434731721878, -0.29557323455810547, -0.29227083921432495, 0.3045118451118469, -0.03914863243699074, -0.027726899832487106, -0.1796136051416397, 0.3239211142063141, -0.2037034034729004, 0.2875933349132538, 0.2503637671470642, 0.06695704162120819, 0.15626630187034607, 0.4125558137893677, -0.33015692234039307, -0.0906282365322113, 0.5843913555145264, -0.16096092760562897, -0.3511347472667694, 0.0949685350060463, 0.27763253450393677, 0.197628915309906, -0.3637203872203827, -0.8314567804336548, -0.027013160288333893, 0.2877657413482666, 0.23663875460624695, -0.10231086611747742, 0.04718264564871788, 0.07295206934213638, -0.013490457087755203, 0.20483075082302094, -0.0837521106004715, -0.10401808470487595, -0.1719590276479721, 0.11469939351081848, -0.13320480287075043 ]
https://github.com/huggingface/datasets/issues/2078
MemoryError when computing WER metric
Hi all, in my case I was using and older version of datasets and, as @albertvillanova points out, passing the full list of sentences for the metric calculation. The problem was in the way jiwer implements WER, as it tries to compute WER for the full list at once instead of doing it element-wise. I think that with the latest implementation of datasets, or by using the alternative WER function that I've contributed on this [pull request](https://github.com/huggingface/datasets/pull/2169) there shouldn't be memory errors.
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
82
MemoryError when computing WER metric Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function. Hi all, in my case I was using and older version of datasets and, as @albertvillanova points out, passing the full list of sentences for the metric calculation. The problem was in the way jiwer implements WER, as it tries to compute WER for the full list at once instead of doing it element-wise. I think that with the latest implementation of datasets, or by using the alternative WER function that I've contributed on this [pull request](https://github.com/huggingface/datasets/pull/2169) there shouldn't be memory errors.
[ 0.12497895956039429, -0.2007293403148651, 0.05871839448809624, 0.3256513476371765, 0.4333938956260681, 0.07378918677568436, -0.21804334223270416, 0.2950880527496338, 0.028831470757722855, 0.4309867024421692, 0.09653063863515854, -0.09463480859994888, -0.3058878183364868, -0.57522052526474, -0.1799837052822113, -0.33477261662483215, -0.1305917203426361, -0.06031373143196106, -0.09396779537200928, 0.2673477530479431, -0.24140103161334991, 0.2181449830532074, -0.3488657474517822, 0.1229340061545372, -0.07173285633325577, -0.011054294183850288, -0.1759233921766281, 0.13317915797233582, -0.22127161920070648, -0.566748857498169, 0.3025926649570465, -0.30793923139572144, 0.19049088656902313, 0.35943329334259033, -0.00011427897698013112, 0.02825509011745453, 0.19010217487812042, -0.17844705283641815, -0.010959791019558907, 0.11745648086071014, -0.12585335969924927, -0.18654319643974304, -0.13194029033184052, -0.009257741272449493, -0.03298791125416756, 0.03756670653820038, 0.10806894302368164, -0.28800830245018005, 0.06320888549089432, 0.24494609236717224, 0.19924283027648926, -0.06094599515199661, 0.2961238920688629, -0.22950811684131622, -0.12410897761583328, -0.19057758152484894, 0.1977028101682663, 0.31632792949676514, -0.2703138589859009, -0.17763619124889374, -0.2714260220527649, 0.2580876648426056, -0.04277694597840309, 0.21431468427181244, 0.09361212700605392, 0.11576015502214432, 0.08539402484893799, 0.011005371809005737, 0.08476635813713074, -0.255557119846344, 0.26716911792755127, -0.3263043463230133, -0.030164809897542, 0.2048875391483307, -0.16143383085727692, -0.42757144570350647, 0.16603033244609833, 0.11872588843107224, -0.5047885775566101, 0.09757017344236374, -0.20402668416500092, -0.12048113346099854, -0.39423081278800964, 0.12548089027404785, -0.005826827138662338, 0.0910312682390213, -0.1965169459581375, 0.10574248433113098, 0.33680567145347595, 0.1566445231437683, 0.06043586879968643, 0.2069694995880127, -0.1233542412519455, 0.012526383623480797, -0.37430885434150696, -0.08814242482185364, -0.05848700553178787, -0.23261964321136475, 0.15802320837974548, -0.5695322155952454, 0.5826602578163147, -0.08412723988294601, 0.3524417281150818, 0.44587093591690063, -0.22183255851268768, 0.8173162937164307, -0.09721895307302475, 0.07901611179113388, 0.04140844941139221, 0.07843898981809616, -0.1152927428483963, -0.24389320611953735, -0.08986690640449524, -0.38395971059799194, 0.28133517503738403, 0.18847590684890747, -0.1235136017203331, -0.19924254715442657, -0.4400853216648102, 0.06396627426147461, -0.04093535616993904, 0.1174827367067337, 0.1261955350637436, 0.3188076615333557, 0.16514751315116882, 0.48937147855758667, 0.31324338912963867, 0.0720730721950531, -0.1783273071050644, 0.062153320759534836, -0.23344814777374268, 0.23190999031066895, -0.2242501825094223, 0.030898315832018852, 0.12527461349964142, 0.22979597747325897, 0.3616982698440552, -0.23223279416561127, 0.21067653596401215, -0.2574239671230316, 0.27662935853004456, -0.11066056787967682, 0.08386752754449844, 0.20263342559337616, -0.09959300607442856, -0.008728338405489922, 0.22977091372013092, 0.27362650632858276, 0.03456266224384308, 0.11659842729568481, -0.21280288696289062, -0.24320825934410095, 0.3005085587501526, 0.15803956985473633, -0.05864954739809036, 0.06795669347047806, -0.06455730646848679, -0.005781974643468857, 0.28054848313331604, -0.05489321053028107, -0.34017518162727356, 0.08686584234237671, -0.7389824390411377, -0.26006028056144714, 0.1528923511505127, 0.006036609411239624, -0.1756758689880371, 0.005463793873786926, 0.25586146116256714, -0.012083299458026886, 0.24220949411392212, 0.03305543214082718, 0.06806529313325882, 0.12066690623760223, -0.20440229773521423, -0.10566028952598572, 0.34988391399383545, -0.8443558216094971, -0.15111693739891052, -0.049968961626291275, -0.13288149237632751, -0.025658274069428444, 0.255960077047348, -0.21462425589561462, 0.14976900815963745, 0.11315896362066269, 0.3785301744937897, -0.2864329218864441, -0.1795530468225479, 0.024176159873604774, -0.18985246121883392, -0.11398773640394211, 0.17904335260391235, -0.14133140444755554, 0.39436623454093933, 0.08920478820800781, 0.16556885838508606, 0.14076361060142517, 0.21558615565299988, -0.027472402900457382, 0.14734624326229095, 0.26704734563827515, 0.24880057573318481, -0.6484081745147705, 0.3060632646083832, -0.06286436319351196, 0.15388283133506775, 0.187250554561615, -0.2421235293149948, 0.06600278615951538, 0.4159046411514282, 0.42931312322616577, -0.1300991177558899, 0.01611383818089962, 0.06124400720000267, -0.16782788932323456, 0.22022396326065063, -0.06157967448234558, 0.3064248561859131, -0.2538878619670868, -0.004113480448722839, 0.07258006185293198, -0.3613118529319763, -0.08067703247070312, -0.006758451461791992, -0.23276883363723755, -0.10887110978364944, -0.22204166650772095, 0.29364439845085144, 0.19079291820526123, 0.20068573951721191, 0.17184752225875854, -0.2917722463607788, 0.3505714237689972, 0.10633894801139832, -0.017048045992851257, 0.1874937117099762, 0.18841242790222168, -0.15443798899650574, -0.4010765254497528, 0.2174314260482788, -0.028292041271924973, 0.2030489146709442, -0.11859260499477386, 0.23637312650680542, -0.1250063180923462, 0.005633566528558731, 0.3543410003185272, 0.05272547900676727, 0.31398916244506836, 0.11357320845127106, 0.276267945766449, 0.1866988241672516, 0.14317604899406433, 0.3140140771865845, -0.43407008051872253, -0.2543811500072479, -0.38941407203674316, 0.3616288900375366, -0.3148322105407715, 0.32102739810943604, 0.15097621083259583, -0.14335337281227112, 0.4951443374156952, -0.13738113641738892, -0.17804864048957825, -0.07750579714775085, -0.3291463553905487, 0.4842240810394287, 0.024781588464975357, 0.06279157102108002, 0.1173735186457634, -0.036831725388765335, 0.14725343883037567, 0.11951626092195511, 0.21131543815135956, -0.10945659875869751, -0.06268536299467087, 0.21121461689472198, -0.46709027886390686, 0.15942591428756714, 0.12574896216392517, 0.10199623554944992, 0.33879491686820984, -0.2200203239917755, -0.11528933793306351, 0.26741647720336914, 0.21802887320518494, -0.13208718597888947, -0.04351787641644478, -0.025864887982606888, -0.2954534590244293, -0.20420613884925842, 0.3511810898780823, 0.10404285788536072, 0.1294218897819519, -0.04594235122203827, 0.23271705210208893, 0.2416963428258896, 0.42760464549064636, 0.2114255726337433, -0.0255011897534132, -0.1811804473400116, 0.05906050279736519, 0.02186109498143196, -0.04970935732126236, 0.14635217189788818, 0.08624903112649918, -0.04986894130706787, -0.043571583926677704, -0.18042464554309845, -0.0071562305092811584, -0.0013991110026836395, 0.41044139862060547, 0.22059455513954163, 0.07273688167333603, -0.23666489124298096, -0.032221775501966476, 0.1743239164352417, -0.23742157220840454, -0.03849460184574127, 0.5531132817268372, -0.05871142819523811, 0.08928055316209793, -0.05655677616596222, -0.1715918481349945, -0.09363450109958649, -0.39646655321121216, -0.020701825618743896, 0.041386183351278305, 0.1471431851387024, -0.11817453056573868, 0.14094582200050354, 0.22467292845249176, 0.17087869346141815, 0.007945286110043526, -0.20627635717391968, -0.33947300910949707, -0.026806127279996872, -0.23064090311527252, -0.15455381572246552, 0.06189305707812309, 0.017621532082557678, 0.6852980256080627, 0.13802100718021393, -0.14058303833007812, -0.45607176423072815, 0.0017370376735925674, -0.20989122986793518, -0.030375875532627106, -0.01608399488031864, 0.2644730806350708, -0.06265795230865479, -0.1569623202085495, -0.2842123508453369, -0.05428945645689964, 0.21243244409561157, 0.11877495050430298, -0.027383722364902496, 0.03176498785614967, 0.03221708536148071, 0.28308311104774475, 0.5209567546844482, 0.3953303098678589, 0.10299511253833771, 0.28389501571655273, 0.1921321153640747, 0.0036795735359191895, 0.09003476798534393, -0.10750968009233475, 0.17946065962314606, -0.10672566294670105, -0.17375850677490234, 0.11602850258350372, 0.07035930454730988, -0.1351747363805771, -0.19734467566013336, -0.008780963718891144, 0.08463876694440842, -0.18407176434993744, -0.021470466628670692, -0.018805958330631256, 0.5045290589332581, 0.09238460659980774, 0.047034986317157745, -0.16068781912326813, -0.3939410150051117, 0.10256089270114899, -0.045961856842041016, 0.06707073748111725, 0.00992655474692583, -0.05994033440947533, -0.00900879967957735, -0.7305299639701843, 0.26855120062828064, 0.11236024647951126, 0.43201231956481934, -0.10201123356819153, 0.05228831619024277, -0.15860788524150848, 0.11426772177219391, 0.42869651317596436, -0.06445702910423279, -0.17652808129787445, 0.059621717780828476, 0.05246509611606598, -0.16835945844650269, 0.14714296162128448, -0.17116644978523254, -0.03841610997915268, -0.2613122761249542, -0.11688169836997986, -0.0820595771074295, 0.04727398231625557, -0.006220206618309021, 0.31311821937561035, -0.16019850969314575, -0.2500495910644531, -0.3472497761249542, -0.12205331772565842, 0.004393391311168671, -0.21696868538856506, -0.12263999134302139, 0.08955252915620804, -0.21764147281646729, 0.2523511052131653, 0.022733744233846664, -0.29524150490760803, 0.348263144493103, -0.11240598559379578, 0.19657453894615173, -0.43224477767944336, 0.13328029215335846, 0.4644438326358795, -0.20728731155395508, -0.017048919573426247, 0.11370625346899033, 0.069551020860672, -0.2817786633968353, 0.24075710773468018, 0.20175278186798096, 0.3595781624317169, 0.06757818162441254, -0.29125210642814636, 0.2509188652038574, -0.03618263453245163, 0.0853484496474266, -0.5771863460540771, 0.18017050623893738, 0.0886629968881607, 0.0613386407494545, 0.1381758600473404, -0.062436193227767944, 0.2326974868774414, 0.05526520684361458, -0.13690052926540375, 0.2892400622367859, -0.019521571695804596, -0.2696187496185303, 0.28251755237579346, 0.24875128269195557, 0.7941433191299438, -0.14858895540237427, -0.06106523796916008, 0.4458690583705902, 0.008394349366426468, -0.08810548484325409, -0.21181844174861908, 0.5530892610549927, -0.15169769525527954, -0.014636107720434666, 0.08713629096746445, -0.22382858395576477, -0.09138993173837662, -0.25269055366516113, -0.26054394245147705, 0.656531035900116, 0.03891237825155258, -0.14280809462070465, 0.08655447512865067, -0.047439418733119965, -0.11878711730241776, -0.24658480286598206, 0.2222437709569931, 0.1842268407344818, -0.1877066195011139, -0.14840036630630493, -0.038745686411857605, 0.07642331719398499, 0.09276844561100006, -0.32139915227890015, -0.21347510814666748, 0.009413216263055801, -0.2341897338628769, 0.12290354073047638, -0.28766655921936035, 0.1384740024805069, -0.033819008618593216, 0.41296976804733276, 0.3505013585090637, 0.13478489220142365, -0.043951503932476044, 0.06422159075737, -0.14094382524490356, 0.06738215684890747, 0.08167891204357147, 0.19362318515777588, -0.07724738121032715, -0.042367249727249146, -0.23620203137397766, 0.32398083806037903, 0.03189932182431221, -0.3035773038864136, 0.02097904682159424, 0.004150085151195526, -0.06764230132102966, -0.09274159371852875, -0.09915488958358765, -0.12263475358486176, -0.40542763471603394, -0.10168398916721344, 0.16659760475158691, 0.3358544111251831, -0.6273183226585388, 0.37179723381996155, 0.05995841324329376, -0.058106862008571625, 0.2039709836244583, 0.30347350239753723, 0.24020081758499146, -0.37110385298728943, 0.522854745388031, -0.07030873000621796, -0.06644986569881439, -0.08496037870645523, -0.3364027440547943, -0.1057751402258873, 0.02512305974960327, 0.18758490681648254, 0.2309449315071106, 0.08632104098796844, -0.21489456295967102, 0.12959876656532288, 0.07146387547254562, 0.2860012948513031, 0.14781935513019562, -0.3211328685283661, -0.5705016255378723, 0.1984289288520813, -0.13433587551116943, 0.0697694942355156, -0.47773391008377075, -0.29287436604499817, -0.543330729007721, 0.01971016637980938, -0.2649724781513214, 0.13094109296798706, -0.46984928846359253, 0.1528986692428589, -0.05602329224348068, -0.10722798854112625, 0.24121488630771637, 0.16624051332473755, 0.1316615492105484, 0.4861500859260559, -0.16091854870319366, -0.11483296006917953, 0.013082239776849747, 0.07637626677751541, -0.023865357041358948, -0.1037725880742073, 0.23436178267002106, 0.07662567496299744, -0.1278422772884369, -0.12012979388237, -0.1803634762763977, 0.2723798155784607, -0.24169977009296417, 0.08689650893211365, -0.38366401195526123, 0.07315969467163086, 0.6001414060592651, 0.20373302698135376, -0.02192389965057373, 0.24486109614372253, 0.06156805530190468, 0.2490888386964798, -0.1119031310081482, -0.05834639072418213, 0.21348914504051208, 0.10714531689882278, -0.11078329384326935, -0.2432859241962433, 0.19406268000602722, -0.2006392925977707, -0.23091356456279755, -0.11894531548023224, 0.2250620573759079, -0.1795278936624527, -0.26971036195755005, 0.051261499524116516, 0.14574825763702393, 0.21089141070842743, 0.05138581991195679, 0.17894506454467773, -0.14126582443714142, 0.0825066864490509, 0.058262672275304794, 0.22826769948005676, 0.17244260013103485, -0.2710611820220947, -0.05411538481712341, -0.04304414242506027, 0.22778171300888062, -0.3114748001098633, -0.1649620532989502, -0.24813345074653625, -0.07835571467876434, -0.12320290505886078, -0.13706214725971222, -0.0019344128668308258, 0.3038545548915863, 0.5290904641151428, -0.257344514131546, 0.40645015239715576, -0.4600454270839691, 0.07677946239709854, -0.0782732293009758, -0.38954320549964905, -0.32592010498046875, 0.31040462851524353, 0.03938042372465134, 0.3134307861328125, -0.3366585969924927, 0.12215211987495422, 0.13134551048278809, 0.16834180057048798, -0.15117686986923218, -0.20366273820400238, -0.11607331782579422, 0.06364303827285767, 0.15781167149543762, -0.3073452115058899, 0.024631299078464508, -0.05029116943478584, 0.36682870984077454, -0.03425242751836777, 0.3742721676826477, 0.0016251951456069946, -0.22364412248134613, 0.2601141631603241, -0.018012940883636475, 0.5469644069671631, 0.010053440928459167, -0.28326690196990967, 0.11461437493562698, 0.4181113839149475, 0.1426425278186798, 0.13862062990665436, 0.2846042215824127, 0.4829079806804657, 0.3588482141494751, -0.2767457962036133, 0.2184024453163147, -0.11270104348659515, -0.1293804943561554, -0.010322163812816143, 0.28464215993881226, 0.24546822905540466, -0.0023277364671230316, 0.18504804372787476, 0.03481672704219818, -0.035140592604875565, -0.14975979924201965, 0.009958140552043915, 0.056803762912750244, -0.22267311811447144, 0.05701979249715805, -0.2153233289718628, 0.025585219264030457, -0.22538304328918457, -0.09231138974428177, -0.3778281807899475, 0.2275390326976776, 0.00916808471083641, -0.14014431834220886, 0.20493152737617493, 0.07738061249256134, 0.05607742816209793, -0.26621773838996887, 0.3642227351665497, -0.05091329291462898, 0.21516400575637817, -0.6167618036270142, -0.23420289158821106, -0.17649874091148376, 0.15138109028339386, -0.15935112535953522, 0.4129830598831177, -0.1397840976715088, 0.09398573637008667, -0.14025288820266724, -0.028662897646427155, -0.06776866316795349, 0.12308900058269501, -0.10358866304159164, 0.27478885650634766, -0.3578976094722748, -0.2949352264404297, 0.22617049515247345, -0.14218023419380188, 0.2543467879295349, -0.4365842044353485, -0.1602468639612198, -0.2335585504770279, 0.010778278112411499, -0.03898486867547035, 0.4080350399017334, -0.09498102962970734, 0.5220332145690918, 0.06293828040361404, 0.3354322612285614, 0.5877147912979126, -0.011793602257966995, -0.29718393087387085, -0.10959504544734955, -0.17890602350234985, -0.21372045576572418, -0.4510127604007721, -0.0793379545211792, 0.5294629335403442, -0.1782434731721878, -0.29557323455810547, -0.29227083921432495, 0.3045118451118469, -0.03914863243699074, -0.027726899832487106, -0.1796136051416397, 0.3239211142063141, -0.2037034034729004, 0.2875933349132538, 0.2503637671470642, 0.06695704162120819, 0.15626630187034607, 0.4125558137893677, -0.33015692234039307, -0.0906282365322113, 0.5843913555145264, -0.16096092760562897, -0.3511347472667694, 0.0949685350060463, 0.27763253450393677, 0.197628915309906, -0.3637203872203827, -0.8314567804336548, -0.027013160288333893, 0.2877657413482666, 0.23663875460624695, -0.10231086611747742, 0.04718264564871788, 0.07295206934213638, -0.013490457087755203, 0.20483075082302094, -0.0837521106004715, -0.10401808470487595, -0.1719590276479721, 0.11469939351081848, -0.13320480287075043 ]
https://github.com/huggingface/datasets/issues/2078
MemoryError when computing WER metric
@lhoestq i was using Datasets==1.5.0 with 1.6.1 it worked (atleast the first run) but 1.5.0 is not compatible with my preprocessing. i cant save my dataset to a parquet file while using the latest datasets version -> ``` File "../preprocess_dataset.py", line 132, in <module> pq.write_table(train_dataset.data, f'{resampled_data_dir}/{data_args.dataset_config_name}.train.parquet') File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 1674, in write_table writer.write_table(table, row_group_size=row_group_size) File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 588, in write_table self.writer.write_table(table, row_group_size=row_group_size) TypeError: Argument 'table' has incorrect type (expected pyarrow.lib.Table, got ConcatenationTable) ``` if i do ``` import pyarrow.parquet as pq ... ... pq.write_table(train_dataset.data, 'train.parquet') pq.write_table(eval_dataset.data, 'eval.parquet') ``` while using 1.6.1. and its working with 1.5.0
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
96
MemoryError when computing WER metric Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation: ``` wer = load_metric("wer") print(wer.compute(predictions=result["predicted"], references=result["target"])) ``` However, I receive the following exception: `Traceback (most recent call last): File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module> print(wer.compute(predictions=result["predicted"], references=result["target"])) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute return wer(references, predictions) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer truth, hypothesis, truth_transform, hypothesis_transform, **kwargs File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures H, S, D, I = _get_operation_counts(truth, hypothesis) File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts editops = Levenshtein.editops(source_string, destination_string) MemoryError` My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function. @lhoestq i was using Datasets==1.5.0 with 1.6.1 it worked (atleast the first run) but 1.5.0 is not compatible with my preprocessing. i cant save my dataset to a parquet file while using the latest datasets version -> ``` File "../preprocess_dataset.py", line 132, in <module> pq.write_table(train_dataset.data, f'{resampled_data_dir}/{data_args.dataset_config_name}.train.parquet') File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 1674, in write_table writer.write_table(table, row_group_size=row_group_size) File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 588, in write_table self.writer.write_table(table, row_group_size=row_group_size) TypeError: Argument 'table' has incorrect type (expected pyarrow.lib.Table, got ConcatenationTable) ``` if i do ``` import pyarrow.parquet as pq ... ... pq.write_table(train_dataset.data, 'train.parquet') pq.write_table(eval_dataset.data, 'eval.parquet') ``` while using 1.6.1. and its working with 1.5.0
[ 0.12497895956039429, -0.2007293403148651, 0.05871839448809624, 0.3256513476371765, 0.4333938956260681, 0.07378918677568436, -0.21804334223270416, 0.2950880527496338, 0.028831470757722855, 0.4309867024421692, 0.09653063863515854, -0.09463480859994888, -0.3058878183364868, -0.57522052526474, -0.1799837052822113, -0.33477261662483215, -0.1305917203426361, -0.06031373143196106, -0.09396779537200928, 0.2673477530479431, -0.24140103161334991, 0.2181449830532074, -0.3488657474517822, 0.1229340061545372, -0.07173285633325577, -0.011054294183850288, -0.1759233921766281, 0.13317915797233582, -0.22127161920070648, -0.566748857498169, 0.3025926649570465, -0.30793923139572144, 0.19049088656902313, 0.35943329334259033, -0.00011427897698013112, 0.02825509011745453, 0.19010217487812042, -0.17844705283641815, -0.010959791019558907, 0.11745648086071014, -0.12585335969924927, -0.18654319643974304, -0.13194029033184052, -0.009257741272449493, -0.03298791125416756, 0.03756670653820038, 0.10806894302368164, -0.28800830245018005, 0.06320888549089432, 0.24494609236717224, 0.19924283027648926, -0.06094599515199661, 0.2961238920688629, -0.22950811684131622, -0.12410897761583328, -0.19057758152484894, 0.1977028101682663, 0.31632792949676514, -0.2703138589859009, -0.17763619124889374, -0.2714260220527649, 0.2580876648426056, -0.04277694597840309, 0.21431468427181244, 0.09361212700605392, 0.11576015502214432, 0.08539402484893799, 0.011005371809005737, 0.08476635813713074, -0.255557119846344, 0.26716911792755127, -0.3263043463230133, -0.030164809897542, 0.2048875391483307, -0.16143383085727692, -0.42757144570350647, 0.16603033244609833, 0.11872588843107224, -0.5047885775566101, 0.09757017344236374, -0.20402668416500092, -0.12048113346099854, -0.39423081278800964, 0.12548089027404785, -0.005826827138662338, 0.0910312682390213, -0.1965169459581375, 0.10574248433113098, 0.33680567145347595, 0.1566445231437683, 0.06043586879968643, 0.2069694995880127, -0.1233542412519455, 0.012526383623480797, -0.37430885434150696, -0.08814242482185364, -0.05848700553178787, -0.23261964321136475, 0.15802320837974548, -0.5695322155952454, 0.5826602578163147, -0.08412723988294601, 0.3524417281150818, 0.44587093591690063, -0.22183255851268768, 0.8173162937164307, -0.09721895307302475, 0.07901611179113388, 0.04140844941139221, 0.07843898981809616, -0.1152927428483963, -0.24389320611953735, -0.08986690640449524, -0.38395971059799194, 0.28133517503738403, 0.18847590684890747, -0.1235136017203331, -0.19924254715442657, -0.4400853216648102, 0.06396627426147461, -0.04093535616993904, 0.1174827367067337, 0.1261955350637436, 0.3188076615333557, 0.16514751315116882, 0.48937147855758667, 0.31324338912963867, 0.0720730721950531, -0.1783273071050644, 0.062153320759534836, -0.23344814777374268, 0.23190999031066895, -0.2242501825094223, 0.030898315832018852, 0.12527461349964142, 0.22979597747325897, 0.3616982698440552, -0.23223279416561127, 0.21067653596401215, -0.2574239671230316, 0.27662935853004456, -0.11066056787967682, 0.08386752754449844, 0.20263342559337616, -0.09959300607442856, -0.008728338405489922, 0.22977091372013092, 0.27362650632858276, 0.03456266224384308, 0.11659842729568481, -0.21280288696289062, -0.24320825934410095, 0.3005085587501526, 0.15803956985473633, -0.05864954739809036, 0.06795669347047806, -0.06455730646848679, -0.005781974643468857, 0.28054848313331604, -0.05489321053028107, -0.34017518162727356, 0.08686584234237671, -0.7389824390411377, -0.26006028056144714, 0.1528923511505127, 0.006036609411239624, -0.1756758689880371, 0.005463793873786926, 0.25586146116256714, -0.012083299458026886, 0.24220949411392212, 0.03305543214082718, 0.06806529313325882, 0.12066690623760223, -0.20440229773521423, -0.10566028952598572, 0.34988391399383545, -0.8443558216094971, -0.15111693739891052, -0.049968961626291275, -0.13288149237632751, -0.025658274069428444, 0.255960077047348, -0.21462425589561462, 0.14976900815963745, 0.11315896362066269, 0.3785301744937897, -0.2864329218864441, -0.1795530468225479, 0.024176159873604774, -0.18985246121883392, -0.11398773640394211, 0.17904335260391235, -0.14133140444755554, 0.39436623454093933, 0.08920478820800781, 0.16556885838508606, 0.14076361060142517, 0.21558615565299988, -0.027472402900457382, 0.14734624326229095, 0.26704734563827515, 0.24880057573318481, -0.6484081745147705, 0.3060632646083832, -0.06286436319351196, 0.15388283133506775, 0.187250554561615, -0.2421235293149948, 0.06600278615951538, 0.4159046411514282, 0.42931312322616577, -0.1300991177558899, 0.01611383818089962, 0.06124400720000267, -0.16782788932323456, 0.22022396326065063, -0.06157967448234558, 0.3064248561859131, -0.2538878619670868, -0.004113480448722839, 0.07258006185293198, -0.3613118529319763, -0.08067703247070312, -0.006758451461791992, -0.23276883363723755, -0.10887110978364944, -0.22204166650772095, 0.29364439845085144, 0.19079291820526123, 0.20068573951721191, 0.17184752225875854, -0.2917722463607788, 0.3505714237689972, 0.10633894801139832, -0.017048045992851257, 0.1874937117099762, 0.18841242790222168, -0.15443798899650574, -0.4010765254497528, 0.2174314260482788, -0.028292041271924973, 0.2030489146709442, -0.11859260499477386, 0.23637312650680542, -0.1250063180923462, 0.005633566528558731, 0.3543410003185272, 0.05272547900676727, 0.31398916244506836, 0.11357320845127106, 0.276267945766449, 0.1866988241672516, 0.14317604899406433, 0.3140140771865845, -0.43407008051872253, -0.2543811500072479, -0.38941407203674316, 0.3616288900375366, -0.3148322105407715, 0.32102739810943604, 0.15097621083259583, -0.14335337281227112, 0.4951443374156952, -0.13738113641738892, -0.17804864048957825, -0.07750579714775085, -0.3291463553905487, 0.4842240810394287, 0.024781588464975357, 0.06279157102108002, 0.1173735186457634, -0.036831725388765335, 0.14725343883037567, 0.11951626092195511, 0.21131543815135956, -0.10945659875869751, -0.06268536299467087, 0.21121461689472198, -0.46709027886390686, 0.15942591428756714, 0.12574896216392517, 0.10199623554944992, 0.33879491686820984, -0.2200203239917755, -0.11528933793306351, 0.26741647720336914, 0.21802887320518494, -0.13208718597888947, -0.04351787641644478, -0.025864887982606888, -0.2954534590244293, -0.20420613884925842, 0.3511810898780823, 0.10404285788536072, 0.1294218897819519, -0.04594235122203827, 0.23271705210208893, 0.2416963428258896, 0.42760464549064636, 0.2114255726337433, -0.0255011897534132, -0.1811804473400116, 0.05906050279736519, 0.02186109498143196, -0.04970935732126236, 0.14635217189788818, 0.08624903112649918, -0.04986894130706787, -0.043571583926677704, -0.18042464554309845, -0.0071562305092811584, -0.0013991110026836395, 0.41044139862060547, 0.22059455513954163, 0.07273688167333603, -0.23666489124298096, -0.032221775501966476, 0.1743239164352417, -0.23742157220840454, -0.03849460184574127, 0.5531132817268372, -0.05871142819523811, 0.08928055316209793, -0.05655677616596222, -0.1715918481349945, -0.09363450109958649, -0.39646655321121216, -0.020701825618743896, 0.041386183351278305, 0.1471431851387024, -0.11817453056573868, 0.14094582200050354, 0.22467292845249176, 0.17087869346141815, 0.007945286110043526, -0.20627635717391968, -0.33947300910949707, -0.026806127279996872, -0.23064090311527252, -0.15455381572246552, 0.06189305707812309, 0.017621532082557678, 0.6852980256080627, 0.13802100718021393, -0.14058303833007812, -0.45607176423072815, 0.0017370376735925674, -0.20989122986793518, -0.030375875532627106, -0.01608399488031864, 0.2644730806350708, -0.06265795230865479, -0.1569623202085495, -0.2842123508453369, -0.05428945645689964, 0.21243244409561157, 0.11877495050430298, -0.027383722364902496, 0.03176498785614967, 0.03221708536148071, 0.28308311104774475, 0.5209567546844482, 0.3953303098678589, 0.10299511253833771, 0.28389501571655273, 0.1921321153640747, 0.0036795735359191895, 0.09003476798534393, -0.10750968009233475, 0.17946065962314606, -0.10672566294670105, -0.17375850677490234, 0.11602850258350372, 0.07035930454730988, -0.1351747363805771, -0.19734467566013336, -0.008780963718891144, 0.08463876694440842, -0.18407176434993744, -0.021470466628670692, -0.018805958330631256, 0.5045290589332581, 0.09238460659980774, 0.047034986317157745, -0.16068781912326813, -0.3939410150051117, 0.10256089270114899, -0.045961856842041016, 0.06707073748111725, 0.00992655474692583, -0.05994033440947533, -0.00900879967957735, -0.7305299639701843, 0.26855120062828064, 0.11236024647951126, 0.43201231956481934, -0.10201123356819153, 0.05228831619024277, -0.15860788524150848, 0.11426772177219391, 0.42869651317596436, -0.06445702910423279, -0.17652808129787445, 0.059621717780828476, 0.05246509611606598, -0.16835945844650269, 0.14714296162128448, -0.17116644978523254, -0.03841610997915268, -0.2613122761249542, -0.11688169836997986, -0.0820595771074295, 0.04727398231625557, -0.006220206618309021, 0.31311821937561035, -0.16019850969314575, -0.2500495910644531, -0.3472497761249542, -0.12205331772565842, 0.004393391311168671, -0.21696868538856506, -0.12263999134302139, 0.08955252915620804, -0.21764147281646729, 0.2523511052131653, 0.022733744233846664, -0.29524150490760803, 0.348263144493103, -0.11240598559379578, 0.19657453894615173, -0.43224477767944336, 0.13328029215335846, 0.4644438326358795, -0.20728731155395508, -0.017048919573426247, 0.11370625346899033, 0.069551020860672, -0.2817786633968353, 0.24075710773468018, 0.20175278186798096, 0.3595781624317169, 0.06757818162441254, -0.29125210642814636, 0.2509188652038574, -0.03618263453245163, 0.0853484496474266, -0.5771863460540771, 0.18017050623893738, 0.0886629968881607, 0.0613386407494545, 0.1381758600473404, -0.062436193227767944, 0.2326974868774414, 0.05526520684361458, -0.13690052926540375, 0.2892400622367859, -0.019521571695804596, -0.2696187496185303, 0.28251755237579346, 0.24875128269195557, 0.7941433191299438, -0.14858895540237427, -0.06106523796916008, 0.4458690583705902, 0.008394349366426468, -0.08810548484325409, -0.21181844174861908, 0.5530892610549927, -0.15169769525527954, -0.014636107720434666, 0.08713629096746445, -0.22382858395576477, -0.09138993173837662, -0.25269055366516113, -0.26054394245147705, 0.656531035900116, 0.03891237825155258, -0.14280809462070465, 0.08655447512865067, -0.047439418733119965, -0.11878711730241776, -0.24658480286598206, 0.2222437709569931, 0.1842268407344818, -0.1877066195011139, -0.14840036630630493, -0.038745686411857605, 0.07642331719398499, 0.09276844561100006, -0.32139915227890015, -0.21347510814666748, 0.009413216263055801, -0.2341897338628769, 0.12290354073047638, -0.28766655921936035, 0.1384740024805069, -0.033819008618593216, 0.41296976804733276, 0.3505013585090637, 0.13478489220142365, -0.043951503932476044, 0.06422159075737, -0.14094382524490356, 0.06738215684890747, 0.08167891204357147, 0.19362318515777588, -0.07724738121032715, -0.042367249727249146, -0.23620203137397766, 0.32398083806037903, 0.03189932182431221, -0.3035773038864136, 0.02097904682159424, 0.004150085151195526, -0.06764230132102966, -0.09274159371852875, -0.09915488958358765, -0.12263475358486176, -0.40542763471603394, -0.10168398916721344, 0.16659760475158691, 0.3358544111251831, -0.6273183226585388, 0.37179723381996155, 0.05995841324329376, -0.058106862008571625, 0.2039709836244583, 0.30347350239753723, 0.24020081758499146, -0.37110385298728943, 0.522854745388031, -0.07030873000621796, -0.06644986569881439, -0.08496037870645523, -0.3364027440547943, -0.1057751402258873, 0.02512305974960327, 0.18758490681648254, 0.2309449315071106, 0.08632104098796844, -0.21489456295967102, 0.12959876656532288, 0.07146387547254562, 0.2860012948513031, 0.14781935513019562, -0.3211328685283661, -0.5705016255378723, 0.1984289288520813, -0.13433587551116943, 0.0697694942355156, -0.47773391008377075, -0.29287436604499817, -0.543330729007721, 0.01971016637980938, -0.2649724781513214, 0.13094109296798706, -0.46984928846359253, 0.1528986692428589, -0.05602329224348068, -0.10722798854112625, 0.24121488630771637, 0.16624051332473755, 0.1316615492105484, 0.4861500859260559, -0.16091854870319366, -0.11483296006917953, 0.013082239776849747, 0.07637626677751541, -0.023865357041358948, -0.1037725880742073, 0.23436178267002106, 0.07662567496299744, -0.1278422772884369, -0.12012979388237, -0.1803634762763977, 0.2723798155784607, -0.24169977009296417, 0.08689650893211365, -0.38366401195526123, 0.07315969467163086, 0.6001414060592651, 0.20373302698135376, -0.02192389965057373, 0.24486109614372253, 0.06156805530190468, 0.2490888386964798, -0.1119031310081482, -0.05834639072418213, 0.21348914504051208, 0.10714531689882278, -0.11078329384326935, -0.2432859241962433, 0.19406268000602722, -0.2006392925977707, -0.23091356456279755, -0.11894531548023224, 0.2250620573759079, -0.1795278936624527, -0.26971036195755005, 0.051261499524116516, 0.14574825763702393, 0.21089141070842743, 0.05138581991195679, 0.17894506454467773, -0.14126582443714142, 0.0825066864490509, 0.058262672275304794, 0.22826769948005676, 0.17244260013103485, -0.2710611820220947, -0.05411538481712341, -0.04304414242506027, 0.22778171300888062, -0.3114748001098633, -0.1649620532989502, -0.24813345074653625, -0.07835571467876434, -0.12320290505886078, -0.13706214725971222, -0.0019344128668308258, 0.3038545548915863, 0.5290904641151428, -0.257344514131546, 0.40645015239715576, -0.4600454270839691, 0.07677946239709854, -0.0782732293009758, -0.38954320549964905, -0.32592010498046875, 0.31040462851524353, 0.03938042372465134, 0.3134307861328125, -0.3366585969924927, 0.12215211987495422, 0.13134551048278809, 0.16834180057048798, -0.15117686986923218, -0.20366273820400238, -0.11607331782579422, 0.06364303827285767, 0.15781167149543762, -0.3073452115058899, 0.024631299078464508, -0.05029116943478584, 0.36682870984077454, -0.03425242751836777, 0.3742721676826477, 0.0016251951456069946, -0.22364412248134613, 0.2601141631603241, -0.018012940883636475, 0.5469644069671631, 0.010053440928459167, -0.28326690196990967, 0.11461437493562698, 0.4181113839149475, 0.1426425278186798, 0.13862062990665436, 0.2846042215824127, 0.4829079806804657, 0.3588482141494751, -0.2767457962036133, 0.2184024453163147, -0.11270104348659515, -0.1293804943561554, -0.010322163812816143, 0.28464215993881226, 0.24546822905540466, -0.0023277364671230316, 0.18504804372787476, 0.03481672704219818, -0.035140592604875565, -0.14975979924201965, 0.009958140552043915, 0.056803762912750244, -0.22267311811447144, 0.05701979249715805, -0.2153233289718628, 0.025585219264030457, -0.22538304328918457, -0.09231138974428177, -0.3778281807899475, 0.2275390326976776, 0.00916808471083641, -0.14014431834220886, 0.20493152737617493, 0.07738061249256134, 0.05607742816209793, -0.26621773838996887, 0.3642227351665497, -0.05091329291462898, 0.21516400575637817, -0.6167618036270142, -0.23420289158821106, -0.17649874091148376, 0.15138109028339386, -0.15935112535953522, 0.4129830598831177, -0.1397840976715088, 0.09398573637008667, -0.14025288820266724, -0.028662897646427155, -0.06776866316795349, 0.12308900058269501, -0.10358866304159164, 0.27478885650634766, -0.3578976094722748, -0.2949352264404297, 0.22617049515247345, -0.14218023419380188, 0.2543467879295349, -0.4365842044353485, -0.1602468639612198, -0.2335585504770279, 0.010778278112411499, -0.03898486867547035, 0.4080350399017334, -0.09498102962970734, 0.5220332145690918, 0.06293828040361404, 0.3354322612285614, 0.5877147912979126, -0.011793602257966995, -0.29718393087387085, -0.10959504544734955, -0.17890602350234985, -0.21372045576572418, -0.4510127604007721, -0.0793379545211792, 0.5294629335403442, -0.1782434731721878, -0.29557323455810547, -0.29227083921432495, 0.3045118451118469, -0.03914863243699074, -0.027726899832487106, -0.1796136051416397, 0.3239211142063141, -0.2037034034729004, 0.2875933349132538, 0.2503637671470642, 0.06695704162120819, 0.15626630187034607, 0.4125558137893677, -0.33015692234039307, -0.0906282365322113, 0.5843913555145264, -0.16096092760562897, -0.3511347472667694, 0.0949685350060463, 0.27763253450393677, 0.197628915309906, -0.3637203872203827, -0.8314567804336548, -0.027013160288333893, 0.2877657413482666, 0.23663875460624695, -0.10231086611747742, 0.04718264564871788, 0.07295206934213638, -0.013490457087755203, 0.20483075082302094, -0.0837521106004715, -0.10401808470487595, -0.1719590276479721, 0.11469939351081848, -0.13320480287075043 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
Hi @XuhuiZhou, thanks for reporting this issue. Indeed, the old links are no longer valid (404 Not Found error), and the script must be updated with the new links to Google Drive.
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
32
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? Hi @XuhuiZhou, thanks for reporting this issue. Indeed, the old links are no longer valid (404 Not Found error), and the script must be updated with the new links to Google Drive.
[ -0.2337624430656433, 0.14580848813056946, 0.0028068553656339645, -0.03095134347677231, -0.027438268065452576, 0.08244884759187698, 0.3759456276893616, 0.20595721900463104, 0.15376052260398865, 0.01440349966287613, 0.18484775722026825, -0.17239631712436676, 0.23395995795726776, 0.29691746830940247, 0.16451527178287506, -0.07033582776784897, 0.11244334280490875, 0.039021991193294525, -0.20785865187644958, 0.008446939289569855, -0.34042152762413025, 0.20839934051036835, -0.3360631465911865, 0.07765422016382217, -0.1339358240365982, 0.1082170233130455, -0.2342877984046936, 0.20461371541023254, 0.005302996374666691, -0.5016648173332214, 0.1856250911951065, 0.24969904124736786, 0.255178838968277, 0.2303704172372818, -0.00012611187412403524, -0.02657179906964302, 0.4359159469604492, -0.13663415610790253, -0.21735960245132446, 0.09907978028059006, -0.45381712913513184, -0.22302135825157166, -0.16180482506752014, -0.3308689296245575, 0.26596134901046753, -0.1933174431324005, 0.1802407056093216, 0.3238403797149658, 0.16279670596122742, 0.5249043703079224, 0.095455601811409, 0.24403995275497437, 0.383268803358078, -0.017859136685729027, 0.029592908918857574, -0.13988907635211945, 0.0056165289133787155, 0.24311627447605133, 0.1671784520149231, -0.1312989592552185, 0.19347496330738068, 0.22652600705623627, -0.020018022507429123, 0.09479792416095734, 0.2447727620601654, 0.08612901717424393, 0.22190192341804504, -0.4831431806087494, 0.27529799938201904, 0.07405610382556915, 0.9506687521934509, -0.33673954010009766, -0.39530810713768005, 0.03425493836402893, 0.153705433011055, -0.03477296978235245, 0.21874144673347473, -0.09934432804584503, -0.07661933451890945, 0.19270412623882294, -0.07197391241788864, -0.44540366530418396, -0.26414304971694946, 0.2948843836784363, -0.07054050266742706, 0.6482889652252197, 0.20047183334827423, 0.15319910645484924, 0.194314107298851, -0.03140780329704285, 0.30323389172554016, 0.12023282051086426, -0.19725458323955536, -0.00201240461319685, 0.22401776909828186, -0.22576504945755005, -0.14258718490600586, 0.13211846351623535, -0.03798585385084152, 0.09006580710411072, -0.015837687999010086, -0.08046350628137589, -0.13139085471630096, 0.03180287405848503, 0.29774874448776245, -0.025965038686990738, -0.06394892185926437, -0.13573461771011353, 0.595956027507782, 0.43674734234809875, 0.13599717617034912, -0.048465877771377563, 0.24673807621002197, -0.508639395236969, -0.08417674899101257, 0.12939852476119995, 0.3410680890083313, -0.06490343064069748, -0.24021273851394653, -0.3356490433216095, 0.007835935801267624, -0.11449769884347916, -0.1429990530014038, 0.24630433320999146, -0.02480536699295044, 0.0981619730591774, 0.04909840226173401, 0.1763305366039276, -0.057982951402664185, -0.21415410935878754, 0.06570053100585938, 0.18284231424331665, 0.07344506680965424, 0.05713515728712082, 0.19777655601501465, 0.2320500612258911, -0.05722031742334366, -0.0441998690366745, -0.3850717544555664, -0.2132740318775177, -0.2779666781425476, 0.06555230915546417, 0.07058823853731155, -0.005324594676494598, -0.09221459925174713, 0.11732865124940872, -0.07566897571086884, -0.1958307921886444, -0.17426061630249023, 0.30082419514656067, -0.404331773519516, -0.19224658608436584, -0.1143396645784378, -0.0011620791628956795, -0.22432513535022736, -0.36673688888549805, 0.10750068724155426, 0.020169338211417198, -0.31284743547439575, -0.38990113139152527, -0.038680024445056915, -0.08722849190235138, -0.3737509250640869, -0.18148596584796906, 0.12546880543231964, 0.7528220415115356, -0.5478052496910095, -0.2115309089422226, -0.2793200612068176, -0.2170637547969818, 0.022943757474422455, 0.28868281841278076, -0.1325901448726654, 0.3553582727909088, -0.40544453263282776, 0.12954574823379517, 0.5153887867927551, -0.4172056317329407, -0.7371988296508789, 0.1446792185306549, -0.005949325859546661, -0.17724095284938812, 0.11217975616455078, 0.18504218757152557, 0.12485308200120926, -0.2103363424539566, -0.486601322889328, 0.11590050160884857, -0.0161945428699255, 0.0633503869175911, -0.11062157899141312, -0.5575141310691833, 0.34048402309417725, 0.055874619632959366, 0.2634510397911072, 0.23671022057533264, 0.4612344801425934, -0.020782940089702606, 0.40657857060432434, -0.06091788783669472, 0.10009624809026718, 0.38683992624282837, 0.47760528326034546, 0.0447240024805069, 0.23101237416267395, 0.08810847252607346, -0.4134584367275238, 0.14870983362197876, 0.10350470244884491, 0.011276472359895706, -0.3565671443939209, -0.058216892182826996, -0.44830605387687683, -0.12142790108919144, -0.26695308089256287, 0.014910837635397911, -0.032103098928928375, 0.031587593257427216, 0.06054557487368584, 0.050099942833185196, -0.14291347563266754, 0.049522414803504944, -0.10356520861387253, -0.019248586148023605, 0.08853578567504883, 0.5486963987350464, -0.17578420042991638, -0.09420831501483917, 0.15932561457157135, 0.12712086737155914, 0.23281270265579224, -0.23036497831344604, -0.12000837177038193, 0.4031566381454468, -0.2489541620016098, 0.47722649574279785, 0.3295184075832367, 0.307206928730011, 0.17016789317131042, -0.4089677631855011, 0.2946333587169647, 0.4525770843029022, 0.012385469861328602, 0.05766355246305466, -0.14505836367607117, -0.16380946338176727, 0.07043635100126266, 0.24877452850341797, 0.05979149788618088, 0.0034616347402334213, 0.17701071500778198, -0.2544132173061371, 0.057046063244342804, -0.18400326371192932, -0.30749714374542236, -0.19615520536899567, -0.09755836427211761, -0.21416743099689484, -0.02727320045232773, 0.1944451630115509, 0.5489950776100159, -0.09812888503074646, 0.28541287779808044, 0.3537484407424927, -0.013110116124153137, -0.10599304735660553, -0.18626998364925385, 0.6357641816139221, 0.3474356532096863, -0.06941103935241699, -0.12815812230110168, 0.16235823929309845, 0.2249322384595871, -0.1026635393500328, 0.2864801585674286, 0.11012410372495651, -0.20345650613307953, 0.141966313123703, -0.08073242008686066, -0.10862953215837479, -0.02595878392457962, 0.08843772113323212, 0.1489773839712143, 0.33544498682022095, -0.374823659658432, -0.013394718058407307, -0.3511461913585663, -0.48990002274513245, -0.3558904230594635, 0.4411510229110718, -0.2762397825717926, -0.30603688955307007, -0.020847231149673462, 0.3651277720928192, -0.15540707111358643, 0.1203489676117897, 0.14822813868522644, 0.30383536219596863, 0.055049873888492584, -0.021629123017191887, -0.3250444829463959, -0.09325986355543137, -0.16459858417510986, -0.06291419267654419, 0.36740872263908386, 0.04796132445335388, 0.09506946802139282, -0.5916242599487305, -0.08395665138959885, -1.03007972240448, -0.07027769088745117, 0.06334744393825531, 0.16016040742397308, 0.1411256492137909, 0.21586066484451294, 0.3985549807548523, 0.16170765459537506, -0.04133102297782898, 0.11028219014406204, -0.2546846568584442, 0.14992421865463257, -0.24341869354248047, -0.14888858795166016, 0.1329921931028366, 0.002119094133377075, -0.19312530755996704, -0.5508337616920471, -0.12719646096229553, 0.12041673064231873, -0.06604331731796265, 0.08397488296031952, -0.11322526633739471, 0.29343628883361816, -0.2033243030309677, 0.20353223383426666, -0.31171971559524536, 0.12898340821266174, 0.3097098469734192, 0.4342479109764099, -0.05756884440779686, -0.3968018591403961, 0.27183082699775696, 0.11638547480106354, -0.00043813884258270264, -0.04364734888076782, -0.5142809152603149, -0.19390623271465302, 0.011960368603467941, 0.24723491072654724, -0.06327774375677109, 0.3359144330024719, 0.12727580964565277, 0.1365232616662979, 0.03280302882194519, 0.007582914084196091, -0.22302550077438354, -0.12423715740442276, 0.3777462840080261, 0.5201424360275269, 0.5347795486450195, 0.42760148644447327, -0.15359000861644745, 0.29141584038734436, -0.18111512064933777, 0.04892841354012489, 0.3592682182788849, -0.3136163651943207, 0.2962455749511719, 0.1020001471042633, -0.21165503561496735, 0.15932604670524597, -0.164979487657547, 0.06634199619293213, 0.23455949127674103, -0.09059388935565948, -0.03904012590646744, -0.0410173162817955, -0.2618563175201416, -0.30017605423927307, -0.45049113035202026, -0.2143326848745346, 0.5330836176872253, 0.251518577337265, 0.2891179621219635, 0.04856637120246887, -0.25025561451911926, -0.19673892855644226, 0.48429009318351746, 0.38637131452560425, 0.033006347715854645, 0.11093597859144211, 0.2658003568649292, -0.15296635031700134, -0.49522149562835693, 0.29372769594192505, 0.10645031183958054, 0.37043869495391846, -0.038792792707681656, 0.15758031606674194, 0.053571511059999466, -0.1242314800620079, 0.5772590041160583, -0.25392043590545654, 0.26224398612976074, 0.06846286356449127, 0.4507429301738739, 0.23488964140415192, -0.11901265382766724, -0.12133459746837616, 0.23238304257392883, 0.2770286798477173, 0.04217659309506416, -0.023223362863063812, -0.2797359824180603, 0.4637600779533386, 0.39665648341178894, -0.21983151137828827, -0.1668153703212738, 0.035848986357450485, -0.4945952594280243, -0.5470471382141113, -0.158788800239563, -0.046420346945524216, -0.12778405845165253, -0.20640899240970612, 0.1471787691116333, 0.2195529192686081, -0.40503761172294617, -0.12163114547729492, -0.0795787125825882, 0.3472927510738373, 0.30041611194610596, -0.1756516844034195, 0.09633956849575043, -0.11355029046535492, 0.048454172909259796, 0.20510470867156982, 0.055882006883621216, -0.09086713194847107, -0.04058223217725754, -0.25742149353027344, -0.09850949794054031, 0.31276777386665344, -0.09704524278640747, 0.062367089092731476, 0.09622472524642944, 0.09056556224822998, -0.03731285408139229, -0.08231566846370697, 0.46405965089797974, -0.10070323944091797, -0.36376410722732544, -0.308779239654541, 0.392853319644928, -0.15189707279205322, -0.1130242720246315, 0.37432193756103516, 0.25737714767456055, -0.2176191657781601, -0.12128657102584839, -0.19085422158241272, 0.7290431261062622, 0.11899416148662567, 0.060818858444690704, 0.2324610948562622, -0.10317432880401611, 0.3928866386413574, 0.0442274734377861, 0.18668556213378906, -0.30729177594184875, 0.013565785251557827, -0.12691685557365417, 0.06993444263935089, -0.21789675951004028, 0.33583545684814453, -0.13968181610107422, 0.5958752632141113, 0.02642451971769333, 0.019654642790555954, 0.12239398807287216, 0.4716736674308777, -0.16091568768024445, 0.1347672939300537, 0.021792389452457428, 0.015531111508607864, 0.00587116926908493, 0.37230736017227173, -0.20406058430671692, -0.11127646267414093, 0.1404048055410385, -0.2147952914237976, -0.5518467426300049, 0.031219329684972763, -0.2196570485830307, 0.25811767578125, -0.129524827003479, -0.2145426720380783, 0.2832958996295929, 0.2206096649169922, 0.23766246438026428, 0.05116954445838928, -0.3972947597503662, 0.3764607608318329, -0.16784745454788208, -0.13425715267658234, -0.01647024415433407, 0.42518624663352966, -0.09328020364046097, -0.12903639674186707, -0.5057975053787231, -0.0665256604552269, -0.06338433176279068, -0.43353086709976196, 0.035314202308654785, -0.1436430811882019, 0.20739255845546722, 0.022326014935970306, -0.26012805104255676, -0.16098682582378387, -0.25718167424201965, -0.3202686309814453, 0.032198209315538406, -0.1532745212316513, 0.25932300090789795, 0.22610202431678772, -0.31661999225616455, -0.09971142560243607, 0.022773120552301407, 0.3828009366989136, -0.36257997155189514, -0.17836719751358032, 0.715167760848999, 0.27531057596206665, 0.03418860584497452, -0.2545826733112335, -0.10986533015966415, -0.26678094267845154, -0.5026060342788696, 0.27748408913612366, 0.02833205834031105, 0.29766780138015747, -0.14774803817272186, 0.3914984166622162, -0.028155609965324402, 0.30121564865112305, -0.3247283399105072, -0.4623774588108063, -0.1138150691986084, 0.16309407353401184, 0.30290448665618896, 0.2098999172449112, -0.11545766144990921, -0.1208953857421875, 0.2744280993938446, -0.7727935314178467, -0.1710738241672516, 0.1700763702392578, 0.1075909212231636, -0.14919207990169525, 0.6299344301223755, 0.26350024342536926, 0.12232671678066254, 0.04820267856121063, -0.015293285250663757, -0.08896014094352722, 0.15786689519882202, 0.010766338557004929, -0.1816478967666626, 0.19983689486980438, -0.10187242180109024, -0.3029545247554779, -0.04351267218589783, -0.38210898637771606, -0.09147952497005463, 0.08920808136463165, -0.07049350440502167, 0.19082960486412048, -0.0954105406999588, 0.15955686569213867, 0.24074018001556396, -0.21788644790649414, -0.15271374583244324, 0.16999220848083496, 0.15817509591579437, 0.6770745515823364, 0.02249891310930252, 0.5906769037246704, 0.07154542207717896, 0.2081640064716339, 0.1268261820077896, -0.02721075713634491, -0.011810556054115295, -0.09028313308954239, 0.2888883054256439, -0.14998140931129456, 0.018156033009290695, 0.11296342313289642, 0.04991456866264343, 0.5606867074966431, -0.3244292140007019, -0.13889163732528687, 0.17533084750175476, 0.010300996713340282, -0.31601306796073914, -0.2641209065914154, 0.05858961120247841, -0.10670570284128189, -0.08894433081150055, 0.05819860100746155, 0.20039531588554382, -0.17897814512252808, 0.2719351053237915, 0.1372809112071991, 0.546057403087616, -0.218397855758667, -0.00253640441223979, 0.18309998512268066, 0.08392380177974701, 0.06388086080551147, -0.12889473140239716, -0.019583821296691895, 0.13154791295528412, 0.2045430988073349, -0.2031114399433136, -0.18033276498317719, 0.05132974684238434, 0.2913495600223541, -0.11827852576971054, -0.30246981978416443, 0.03502557426691055, -0.175696462392807, -0.0054640695452690125, -0.03317386656999588, 0.16363246738910675, -0.03540431708097458, 0.009117629379034042, 0.01762883923947811, -0.26699456572532654, 0.35068410634994507, 0.3031774163246155, -0.13725925981998444, -0.07526705414056778, -0.2641395926475525, -0.1847485601902008, 0.1526067703962326, -0.10084061324596405, -0.18651123344898224, -0.14940105378627777, 0.11718876659870148, -0.028191402554512024, 0.0020571723580360413, 0.03971107304096222, -0.1866704523563385, 0.3073958158493042, -0.21392692625522614, 0.06510574370622635, 0.11433243006467819, 0.041948869824409485, 0.2495666891336441, 0.30841314792633057, 0.39768049120903015, 0.20472963154315948, 0.19327358901500702, 0.03536376357078552, -0.051666196435689926, -0.12821191549301147, 0.13006703555583954, -0.03421650826931, 0.06222742795944214, 0.014437252655625343, 0.1851661503314972, 0.06520701944828033, 0.01295297872275114, -0.27338042855262756, 0.06990049034357071, 0.006742571480572224, -0.05967205762863159, 0.13539841771125793, -0.13592529296875, -0.17529425024986267, -0.3913387060165405, 0.12473399937152863, -0.2187497615814209, -0.22545160353183746, 0.2953234314918518, -0.037071600556373596, 0.029526744037866592, 0.015936680138111115, -0.013718446716666222, -0.0635182112455368, 0.3564923107624054, 0.3876611292362213, 0.2662048935890198, -0.2750076353549957, -0.31626760959625244, -0.6508074402809143, 0.05280483514070511, -0.011518213897943497, -0.04638022184371948, -0.07172512263059616, 0.0346120148897171, -0.47316721081733704, -0.2058359682559967, 0.6622767448425293, 0.32139065861701965, 0.06575623899698257, 0.09412509202957153, -0.008842717856168747, -0.2726202607154846, -0.06663365662097931, 0.4215419888496399, -0.05035773664712906, -0.3091484606266022, 0.1369161456823349, -0.28785598278045654, -0.1207704097032547, 0.026560312137007713, -0.1604084074497223, -0.0896119773387909, -0.1639436036348343, 0.42980873584747314, -0.03289537876844406, 0.3747120201587677, -0.14140871167182922, -0.25110217928886414, -0.4756077527999878, -0.3053548336029053, -0.2396206557750702, 0.23572474718093872, -0.06467901170253754, 0.04014860838651657, 0.04801230877637863, 0.32129353284835815, -0.4206642210483551, 0.11668374389410019, -0.11588838696479797, 0.2996489107608795, -0.18119138479232788, 0.07390102744102478, -0.05502064898610115, 0.1277780383825302, 0.36258766055107117, -0.11977706104516983, -0.14244093000888824, 0.00548073835670948, -0.30370858311653137, -0.06947872787714005, 0.3491152822971344, 0.0033642612397670746, -0.13482120633125305, -0.174497589468956, 0.36340904235839844, -0.06513171643018723, -0.032834492623806, -0.28938525915145874, 0.020673133432865143, 0.13455061614513397, 0.2909766137599945, 0.00813303142786026, -0.010698152706027031, -0.0847698301076889, 0.0984797477722168, 0.18471592664718628, -0.013101458549499512, 0.21958038210868835, -0.3208523392677307, -0.07768552750349045, -0.05057214945554733 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
It would be nice to update the urls indeed ! To do this, you just need to replace the urls in `iwslt2017.py` and then update the dataset_infos.json file with ``` datasets-cli test ./datasets/iwslt2017 --all_configs --save_infos --ignore_verifications ```
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
37
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? It would be nice to update the urls indeed ! To do this, you just need to replace the urls in `iwslt2017.py` and then update the dataset_infos.json file with ``` datasets-cli test ./datasets/iwslt2017 --all_configs --save_infos --ignore_verifications ```
[ -0.265880286693573, 0.12000530958175659, -0.08369524776935577, -0.10603149235248566, -0.056150831282138824, 0.013199500739574432, 0.11352682113647461, 0.3138657510280609, 0.1883040815591812, -0.06657440960407257, 0.09627295285463333, 0.04737390577793121, 0.2630375921726227, 0.295737087726593, 0.04103122279047966, 0.008764013648033142, 0.09777091443538666, -0.012059703469276428, -0.28335919976234436, 0.04775666445493698, -0.4010065793991089, 0.18544796109199524, -0.3126533031463623, -0.09356306493282318, -0.06016838178038597, 0.12591543793678284, -0.30167561769485474, 0.11546841263771057, -0.028102541342377663, -0.6263319253921509, 0.2720078229904175, 0.39135491847991943, 0.3162035048007965, 0.18803885579109192, -0.00011581883154576644, -0.12189779430627823, 0.3769316077232361, -0.1369830220937729, -0.29844415187835693, 0.04358386993408203, -0.6287516355514526, -0.34503641724586487, -0.13607369363307953, -0.27005305886268616, 0.2266821563243866, -0.39589351415634155, 0.06924913823604584, 0.20548778772354126, 0.19028957188129425, 0.513062596321106, 0.1835777908563614, 0.31927889585494995, 0.2641100585460663, -0.06364001333713531, -0.05983305722475052, -0.022595465183258057, 0.0009517688304185867, 0.07057026028633118, 0.2730739116668701, -0.11857425421476364, 0.2492121458053589, 0.2715384364128113, -0.015235277824103832, 0.010092377662658691, 0.27887848019599915, -0.07894596457481384, 0.24028843641281128, -0.4742943346500397, 0.18148940801620483, -0.022434726357460022, 0.88692706823349, -0.30215954780578613, -0.4625474810600281, 0.13100692629814148, 0.08093269169330597, -0.01634231023490429, 0.06076405569911003, -0.07973721623420715, -0.12188933789730072, 0.2370425909757614, -0.17270179092884064, -0.47225216031074524, -0.24646344780921936, 0.3339918851852417, 0.14140671491622925, 0.6231672763824463, 0.16158632934093475, 0.18880656361579895, 0.157431960105896, -0.10412241518497467, 0.29519256949424744, 0.03048112615942955, -0.23201832175254822, 0.025493048131465912, -0.007401812821626663, -0.29575449228286743, -0.0889703705906868, 0.04689454287290573, 0.00844782218337059, 0.2330871820449829, -0.06862447410821915, 0.03628355264663696, -0.1587979793548584, -0.004776567220687866, 0.21105040609836578, 0.04062683507800102, 0.19618162512779236, -0.008839040994644165, 0.43714439868927, 0.6046853065490723, 0.13065040111541748, -0.04187308996915817, 0.2024896889925003, -0.3794596195220947, -0.26450738310813904, 0.19085538387298584, 0.22636665403842926, -0.10449349880218506, -0.1037597730755806, -0.22271482646465302, 0.0441984087228775, -0.1268344521522522, -0.04760071262717247, 0.2771446704864502, -0.1958623230457306, 0.2930208146572113, 0.1614929586648941, 0.12689894437789917, -0.02205594629049301, -0.2848356068134308, -0.001829375047236681, 0.07699739933013916, 0.043014634400606155, 0.11600668728351593, 0.19619618356227875, 0.31514281034469604, 0.14336110651493073, -0.09620059281587601, -0.3094973564147949, -0.1295161247253418, -0.15711596608161926, 0.22096917033195496, 0.13127534091472626, 0.049155592918395996, -0.12159538269042969, 0.2386571317911148, -0.04399674013257027, -0.022794146090745926, -0.12351247668266296, 0.28563982248306274, -0.2518402338027954, -0.20539894700050354, -0.1939588487148285, 0.09601226449012756, -0.18840311467647552, -0.38777562975883484, 0.05360352247953415, -0.0562484972178936, -0.258174329996109, -0.3503616452217102, 0.014182955026626587, -0.046233825385570526, -0.3027748465538025, -0.16214360296726227, 0.18414032459259033, 0.5909869074821472, -0.45617371797561646, -0.12290957570075989, -0.1829642802476883, -0.20617398619651794, 0.07107783854007721, 0.19800353050231934, -0.19202890992164612, 0.17155802249908447, -0.14588193595409393, 0.09555032849311829, 0.5259150266647339, -0.4413199722766876, -0.595345139503479, 0.2981188893318176, 0.08023811876773834, -0.13559304177761078, 0.058827467262744904, 0.216619610786438, 0.026302313432097435, -0.2233208417892456, -0.5292843580245972, 0.14463165402412415, -0.003489045426249504, 0.11471494287252426, -0.26481276750564575, -0.5547558069229126, 0.26284584403038025, 0.05571239814162254, 0.0934380292892456, 0.1474306732416153, 0.23818305134773254, 0.12809474766254425, 0.5918652415275574, -0.08850006759166718, 0.12062045186758041, 0.24473810195922852, 0.46027228236198425, 0.2188754677772522, 0.2180594801902771, 0.13071668148040771, -0.3153165280818939, 0.17674249410629272, 0.10156206786632538, 0.04563995450735092, -0.3460789918899536, -0.15676666796207428, -0.41967761516571045, -0.06200438737869263, -0.27418139576911926, -0.2161058485507965, 0.0659199133515358, 0.15835967659950256, 0.12440703809261322, -0.12132568657398224, -0.25502312183380127, 0.16915564239025116, -0.20958808064460754, -0.012071567587554455, -0.016606085002422333, 0.43736833333969116, -0.17229941487312317, 0.03742652013897896, 0.08343768119812012, 0.06163106486201286, 0.18083643913269043, -0.2504228353500366, -0.2579285204410553, 0.6097423434257507, -0.21468783915042877, 0.29971158504486084, 0.4298553466796875, 0.14924393594264984, 0.12074445188045502, -0.3250735104084015, 0.20126795768737793, 0.4072021543979645, -0.008944147266447544, 0.17078715562820435, -0.0672069564461708, -0.18609215319156647, -0.021303430199623108, 0.4060423672199249, 0.09327374398708344, -0.00043563731014728546, 0.17027458548545837, -0.22491714358329773, -0.08091823756694794, -0.23271891474723816, -0.2935730218887329, -0.19630594551563263, -0.258729487657547, -0.17212404310703278, 0.04894575476646423, 0.2477433681488037, 0.4090801775455475, -0.09536662697792053, 0.05767052620649338, 0.30850276350975037, 0.06544606387615204, -0.09701449424028397, -0.11723147332668304, 0.6027165651321411, 0.33529138565063477, -0.05267232656478882, -0.2476409673690796, 0.1453820914030075, 0.2162247747182846, -0.09102573990821838, 0.297556608915329, 0.13904309272766113, -0.08562634140253067, 0.04019393026828766, -0.04818994179368019, -0.08746503293514252, 0.0182940810918808, -0.0237718652933836, 0.15000887215137482, 0.3771408200263977, -0.2876276671886444, -0.03231135010719299, -0.3990880250930786, -0.544110119342804, -0.25966838002204895, 0.22568459808826447, -0.1787067949771881, -0.33828896284103394, 0.034035325050354004, 0.2766571342945099, -0.1662929505109787, 0.29129329323768616, 0.08308812975883484, 0.20723295211791992, -0.029841918498277664, 0.12574151158332825, -0.2831586003303528, -0.10417047888040543, -0.19878363609313965, -0.005161220207810402, 0.3439475893974304, 0.08792705833911896, 0.12586148083209991, -0.5627514123916626, -0.11831723898649216, -0.8395565748214722, -0.05981700122356415, -0.1080489307641983, 0.17963342368602753, 0.11238278448581696, 0.2555806636810303, 0.47476714849472046, 0.2410745471715927, -0.1111321672797203, 0.22540371119976044, -0.16849204897880554, 0.23131605982780457, -0.35954976081848145, -0.08880791813135147, 0.05281053110957146, -0.031606197357177734, -0.3374100625514984, -0.4721328914165497, -0.25925108790397644, 0.09980612993240356, -0.08830982446670532, 0.13362780213356018, -0.0836944505572319, 0.3151402771472931, -0.2561669945716858, 0.03327658027410507, -0.24387770891189575, 0.07641994208097458, 0.12679028511047363, 0.38049253821372986, -0.18305541574954987, -0.4039416015148163, 0.17340071499347687, 0.14668932557106018, 0.1630406379699707, -0.12106272578239441, -0.4460042119026184, -0.2127234935760498, 0.05249728262424469, 0.17908376455307007, -0.08791165053844452, 0.31455197930336, 0.08667033910751343, 0.07738949358463287, -0.06009858846664429, -0.060494910925626755, -0.12836839258670807, -0.14227035641670227, 0.2520177364349365, 0.6086520552635193, 0.3990359306335449, 0.36535993218421936, -0.014084327965974808, 0.2753292918205261, -0.0019121617078781128, -0.03315505012869835, 0.2885209321975708, -0.27512314915657043, 0.2634456753730774, 0.18126584589481354, -0.3473006784915924, 0.05998673662543297, -0.13477829098701477, 0.1323152482509613, 0.18093667924404144, -0.06346829980611801, 0.04719337075948715, -0.08346748352050781, -0.2222915142774582, -0.20629176497459412, -0.39798790216445923, -0.10048947483301163, 0.47657424211502075, 0.2636367678642273, 0.3525409996509552, 0.0868988111615181, -0.353532999753952, -0.10680009424686432, 0.4027782678604126, 0.33366289734840393, -0.0035472288727760315, 0.06838159263134003, 0.022877488285303116, -0.1878342479467392, -0.3891737461090088, 0.37389183044433594, 0.11542157083749771, 0.3910483121871948, 0.12191198766231537, 0.08707474917173386, 0.007918916642665863, -0.11955875158309937, 0.6106881499290466, -0.4253917336463928, 0.10430161654949188, 0.04889018461108208, 0.4268639087677002, -0.11183667182922363, -0.1418844312429428, -0.04117102548480034, 0.2548780143260956, 0.26160526275634766, 0.09716387093067169, 0.03744373470544815, -0.339962363243103, 0.3474552631378174, 0.38044023513793945, -0.2724186182022095, -0.18041133880615234, 0.1298929899930954, -0.4039522409439087, -0.6693729162216187, -0.26169663667678833, -0.13124118745326996, -0.11883130669593811, -0.12768392264842987, 0.14645738899707794, 0.3342536985874176, -0.13443878293037415, -0.10071919858455658, 0.10443481802940369, 0.19179949164390564, 0.5774639844894409, -0.08426977694034576, -0.03539343178272247, -0.13077665865421295, 0.1626768261194229, 0.17191804945468903, -0.048526208847761154, -0.1981225311756134, -0.2173076868057251, -0.12125614285469055, 0.03168173134326935, 0.2801322042942047, -0.033784158527851105, 0.07147178798913956, 0.17536607384681702, 0.1817183643579483, 0.02641548216342926, 0.14698946475982666, 0.5127024054527283, -0.19810163974761963, -0.2774859070777893, -0.5861620903015137, 0.3841050863265991, -0.1813444197177887, -0.09580928832292557, 0.3464313745498657, 0.09816283732652664, -0.1492699831724167, -0.012950115837156773, 0.004845701158046722, 0.6299358606338501, 0.2925105094909668, 0.05223551392555237, 0.20482507348060608, -0.028599368408322334, 0.5659807324409485, 0.0059443190693855286, 0.12678714096546173, -0.3390864431858063, -0.03208029642701149, -0.028711317107081413, 0.12288275361061096, -0.11938168853521347, 0.2378746122121811, -0.1434057354927063, 0.5463705062866211, -0.007888495922088623, -0.09309299290180206, 0.146437868475914, 0.488078773021698, -0.1445128470659256, -0.023282069712877274, -0.10622890293598175, 0.13166426122188568, -0.048189468681812286, 0.33458831906318665, -0.09512033313512802, -0.12213003635406494, 0.07243581116199493, -0.15104413032531738, -0.4289674758911133, 0.10747367888689041, -0.3221226930618286, 0.28529566526412964, -0.1269463300704956, 0.17876221239566803, 0.2097797393798828, 0.23067806661128998, 0.20536170899868011, 0.17464865744113922, -0.28706246614456177, 0.36991265416145325, -0.07072509080171585, -0.10918932408094406, 0.026630492880940437, 0.32303839921951294, -0.04753649979829788, -0.22592520713806152, -0.5937904715538025, -0.09512986987829208, 0.016321279108524323, -0.29014259576797485, 0.16258132457733154, -0.2702563405036926, 0.37043946981430054, -0.11172422021627426, -0.281607061624527, -0.0553286075592041, -0.26417356729507446, -0.29048413038253784, 0.09573201835155487, -0.20688898861408234, 0.07486356794834137, 0.3429569602012634, -0.2037488967180252, -0.08319578319787979, 0.022618137300014496, 0.3929959535598755, -0.3618125319480896, -0.15027998387813568, 0.6512702703475952, 0.2463870793581009, 0.10582268238067627, -0.3233751654624939, -0.07398665696382523, -0.21347782015800476, -0.558819591999054, 0.1342839151620865, 0.1284739077091217, 0.2565951943397522, -0.10763385891914368, 0.5815698504447937, 0.06903601437807083, 0.3135819137096405, -0.20300287008285522, -0.4405824840068817, -0.1772630363702774, 0.16001704335212708, 0.3316248953342438, 0.20191840827465057, -0.203965425491333, -0.11003591120243073, 0.10436688363552094, -0.6226140260696411, -0.2635369896888733, 0.071372851729393, 0.07973223924636841, -0.08309321850538254, 0.5312467813491821, 0.28115198016166687, 0.23593208193778992, 0.024613741785287857, 0.030604595318436623, -0.11118070781230927, 0.0029794201254844666, -0.08183320611715317, -0.295236736536026, 0.14336808025836945, -0.0078054554760456085, -0.370046466588974, -0.06790176033973694, -0.33827441930770874, -0.11101503670215607, 0.012249503284692764, -0.2359364628791809, 0.13236668705940247, -0.09913614392280579, 0.32746192812919617, 0.1289874017238617, -0.24558880925178528, -0.07980886101722717, 0.22458724677562714, 0.24560727179050446, 0.619512677192688, 0.08936931192874908, 0.5125221014022827, 0.03438349813222885, 0.03445352613925934, 0.1903526484966278, 0.012658141553401947, -0.10680787265300751, 0.04017074406147003, 0.24099576473236084, -0.06359177082777023, 0.12474794685840607, 0.28787633776664734, 0.1464392989873886, 0.7235215902328491, -0.1657293140888214, -0.10740359127521515, 0.17831355333328247, 0.10752376168966293, -0.2422148734331131, -0.14800894260406494, 0.11442321538925171, -0.060342974960803986, -0.15104283392429352, 0.05078102648258209, 0.1459883451461792, -0.26480409502983093, 0.320870041847229, 0.13632982969284058, 0.4105604887008667, -0.20913618803024292, 0.1390138417482376, 0.2326117902994156, -0.04021989554166794, 0.010630056262016296, -0.2607227563858032, -0.01652463898062706, 0.1434258222579956, 0.07296095043420792, -0.2590852379798889, 0.002166368067264557, 0.13597193360328674, 0.221452996134758, -0.12562280893325806, -0.20924484729766846, 0.12441663444042206, -0.30798736214637756, 0.05313282087445259, -0.078040711581707, 0.15386919677257538, 0.0930999368429184, 0.06300795078277588, -0.08376961946487427, -0.18680717051029205, 0.44693538546562195, 0.3637336194515228, -0.22845931351184845, -0.33118537068367004, -0.20893347263336182, -0.24581646919250488, -0.010843243449926376, -0.13134825229644775, -0.2673429846763611, -0.04203625023365021, 0.02086884155869484, -0.06512314081192017, -0.2304665595293045, -0.07953555881977081, -0.16414043307304382, 0.3442991375923157, -0.1986873298883438, -0.0340694934129715, 0.35390162467956543, 0.019296862185001373, 0.29357853531837463, 0.16620798408985138, 0.38901305198669434, 0.3031672239303589, 0.2825598120689392, 0.134141206741333, -0.07474683225154877, -0.07643788307905197, 0.132764533162117, -0.051559410989284515, 0.04852254316210747, -0.01689932495355606, 0.22574813663959503, 0.12437081336975098, -0.06338881701231003, -0.2191687375307083, -0.018853429704904556, 0.13394415378570557, 0.0066308993846178055, 0.2588459551334381, 0.027420591562986374, -0.09826353192329407, -0.3797435462474823, 0.1497979760169983, -0.2567158043384552, -0.26852259039878845, 0.25296929478645325, -0.058197859674692154, 0.07543113827705383, -0.05420548841357231, 0.0456065833568573, -0.202254056930542, 0.5885547995567322, 0.29646363854408264, -0.017519310116767883, -0.24980637431144714, -0.32371366024017334, -0.6692293286323547, -0.02962663024663925, 0.11074315011501312, -0.1353234499692917, -0.15896570682525635, 0.04063745588064194, -0.3685365915298462, -0.17814196646213531, 0.453499972820282, 0.0676383227109909, 0.07679818570613861, 0.20880180597305298, -0.07425455749034882, -0.16037020087242126, -0.14252997934818268, 0.5685744285583496, 0.13274028897285461, -0.24230298399925232, 0.08433814346790314, -0.37501463294029236, -0.030934765934944153, 0.02488882839679718, -0.2898806929588318, 0.08561430871486664, -0.26521775126457214, 0.39584362506866455, 0.01568264700472355, 0.3200858235359192, -0.21069619059562683, -0.2838002145290375, -0.5346630215644836, -0.324872761964798, -0.2505567669868469, 0.2824266254901886, -0.046887580305337906, 0.19868721067905426, 0.055187903344631195, 0.33109986782073975, -0.4635566771030426, -0.026253188028931618, -0.1626523733139038, 0.058861590921878815, -0.12975287437438965, 0.04317953437566757, 0.06070573627948761, 0.06163227930665016, 0.3075374960899353, -0.07340913265943527, -0.18371796607971191, 0.06409825384616852, -0.29047244787216187, -0.10001327097415924, 0.6150928735733032, -0.05457855388522148, -0.19013217091560364, -0.17686764895915985, 0.284332811832428, -0.15286022424697876, -0.11105222254991531, -0.27043870091438293, 0.0030381903052330017, 0.15680338442325592, 0.30586329102516174, -0.024374118074774742, 0.142826110124588, -0.15863554179668427, 0.1243692934513092, 0.08337748050689697, -0.01517486572265625, 0.1502651423215866, -0.3417597711086273, -0.12324227392673492, -0.023544855415821075 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
Is this a command to update my local files or fix the file Github repo in general? (I am not so familiar with the datasets-cli command here) I also took a brief look at the **Sharing your dataset** section, looks like I could fix that locally and push it to the repo? I guess we are "canonical" category?
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
58
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? Is this a command to update my local files or fix the file Github repo in general? (I am not so familiar with the datasets-cli command here) I also took a brief look at the **Sharing your dataset** section, looks like I could fix that locally and push it to the repo? I guess we are "canonical" category?
[ -0.3287452459335327, 0.22784587740898132, 0.017168544232845306, -0.1485104262828827, -0.027821145951747894, 0.12953594326972961, 0.21594403684139252, 0.4029400646686554, 0.12522658705711365, -0.05333687365055084, 0.12921848893165588, -0.14838320016860962, 0.366180956363678, 0.16260389983654022, 0.09307033568620682, 0.037134554237127304, 0.08825879544019699, 0.1164587065577507, -0.14445491135120392, -0.13932086527347565, -0.2735646367073059, 0.05193629860877991, -0.11367130279541016, 0.0818873718380928, -0.0942528247833252, 0.007792001590132713, -0.20590026676654816, 0.15307782590389252, -0.12789680063724518, -0.4773187041282654, 0.3734854459762573, 0.387233704328537, 0.25811341404914856, 0.12172216176986694, -0.00012119411258026958, 0.03537064045667648, 0.40542685985565186, -0.08816639333963394, -0.37058645486831665, 0.07656824588775635, -0.5739340782165527, -0.4313018321990967, -0.061145469546318054, -0.2580585181713104, 0.18879637122154236, -0.12985385954380035, 0.2098870724439621, 0.0811503678560257, 0.11627382040023804, 0.42627835273742676, 0.13024534285068512, 0.22306253015995026, 0.3262282907962799, -0.07375668734312057, 0.1489090621471405, 0.16815590858459473, -0.013228083029389381, 0.37210196256637573, 0.43727898597717285, -0.1092660129070282, 0.08603399991989136, 0.15340043604373932, -0.08409108966588974, 0.21245375275611877, 0.35414057970046997, 0.04954094812273979, 0.45743465423583984, -0.404850035905838, 0.2234414517879486, 0.03249054774641991, 0.8967598676681519, -0.4227743446826935, -0.34206897020339966, 0.08725739270448685, 0.009537048637866974, -0.08982280641794205, 0.15861546993255615, 0.08596688508987427, -0.20028497278690338, 0.2778538465499878, -0.1804686039686203, -0.3604148328304291, -0.15912768244743347, 0.3106374144554138, -0.0873083546757698, 0.5873491168022156, 0.10104729980230331, 0.2082228660583496, 0.10319475084543228, -0.057155296206474304, -0.12740208208560944, 0.04596955329179764, -0.22257262468338013, 0.074177086353302, 0.11822429299354553, -0.20777973532676697, -0.12128538638353348, -0.10250843316316605, 0.1066645160317421, 0.15324820578098297, -0.19846047461032867, -0.036943405866622925, -0.173463836312294, 0.07187697291374207, 0.4032166004180908, -0.038165606558322906, 0.04572076350450516, 0.15480798482894897, 0.5666857957839966, 0.4230881631374359, 0.011266432702541351, -0.01790696382522583, 0.14707177877426147, -0.2979693114757538, -0.0977274477481842, 0.15507659316062927, 0.4336477518081665, -0.312105268239975, -0.23665744066238403, -0.10287876427173615, 0.12710124254226685, -0.11445901542901993, -0.07682403177022934, 0.12782491743564606, -0.16138385236263275, 0.23570454120635986, -0.12471849471330643, 0.04752625897526741, -0.10263063758611679, -0.3002571165561676, 0.04272505268454552, -0.0334789864718914, 0.13293546438217163, 0.11830832809209824, 0.01209612563252449, 0.07080437242984772, 0.05177497863769531, -0.0831964984536171, -0.012160398066043854, -0.17916449904441833, -0.2284109741449356, 0.16446766257286072, -0.12868842482566833, 0.26661306619644165, -0.224561408162117, 0.2676093280315399, 0.1448448896408081, -0.32326841354370117, -0.282828688621521, 0.29157236218452454, -0.28825119137763977, -0.35670655965805054, -0.3281015455722809, 0.036519840359687805, -0.07125535607337952, -0.1758406162261963, -0.03245570510625839, -0.2105955332517624, -0.15741688013076782, -0.29073449969291687, 0.07414770871400833, 0.009883716702461243, -0.12923237681388855, -0.18717040121555328, 0.19530662894248962, 0.5042908787727356, -0.6066140532493591, -0.1614394187927246, -0.2313726842403412, -0.08165071904659271, 0.20871639251708984, 0.3378126323223114, -0.2769351005554199, 0.16993963718414307, -0.14608433842658997, 0.027796216309070587, 0.5927786827087402, -0.5152546763420105, -0.6871726512908936, 0.20419014990329742, -0.013071157038211823, -0.2299182116985321, -0.02140900492668152, 0.25202155113220215, 0.12314952164888382, -0.3452988564968109, -0.47435030341148376, 0.08462987840175629, -0.12905675172805786, 0.09958643466234207, -0.29557910561561584, -0.5416894555091858, 0.162507101893425, 0.18164776265621185, 0.04693176597356796, 0.18216025829315186, 0.3992837071418762, 0.1766410619020462, 0.327217698097229, 0.05881974846124649, 0.20111575722694397, 0.21156033873558044, 0.5126588344573975, 0.1314489096403122, 0.15330755710601807, 0.2232041358947754, -0.2943222224712372, 0.1469663381576538, 0.24891307950019836, 0.09496288746595383, -0.3220587968826294, -0.2608613073825836, -0.4123024344444275, -0.10208093374967575, -0.34852951765060425, -0.09098054468631744, -0.017982549965381622, 0.1807575523853302, 0.11647813022136688, -0.11034785211086273, -0.3459636867046356, 0.30937933921813965, -0.476324200630188, 0.07452583312988281, 0.23373159766197205, 0.5755874514579773, -0.16952729225158691, -0.019682124257087708, 0.052026912569999695, 0.1301291137933731, 0.06396684050559998, -0.2785017788410187, -0.21435073018074036, 0.5593363642692566, -0.3127244710922241, 0.23414695262908936, 0.4399035573005676, 0.3117654323577881, 0.19402235746383667, -0.3202224671840668, 0.11191107332706451, 0.2882179021835327, -0.022600531578063965, 0.14902886748313904, -0.17419838905334473, -0.1989569514989853, 0.05765204504132271, 0.17081251740455627, -0.0655328705906868, 0.0031273961067199707, 0.2749861478805542, -0.08327830582857132, -0.14107228815555573, -0.16225194931030273, -0.29216113686561584, -0.025030583143234253, -0.0415075346827507, -0.0453638955950737, -0.060468848794698715, 0.17856721580028534, 0.5440221428871155, -0.12384191155433655, 0.11657429486513138, 0.30034729838371277, 0.09525838494300842, -0.059688739478588104, -0.10998843610286713, 0.55647212266922, 0.3104225993156433, -0.151285320520401, -0.16971604526042938, 0.17909939587116241, 0.05785982310771942, -0.03731023892760277, 0.04659941792488098, 0.19252806901931763, -0.12007162719964981, 0.010961685329675674, -0.04682594910264015, -0.03721506521105766, 0.16952010989189148, 0.1583193838596344, 0.1474127322435379, 0.48396071791648865, -0.2462185174226761, -0.013301404193043709, -0.36648666858673096, -0.5353516936302185, -0.32515114545822144, 0.3189963698387146, -0.3790275752544403, -0.18590889871120453, -0.04210648685693741, 0.17874275147914886, -0.2107168734073639, 0.19015705585479736, 0.2043236494064331, 0.3172183930873871, -0.0788312777876854, 0.0009443406015634537, -0.17194226384162903, -0.2316945493221283, -0.3306140899658203, -0.05193204805254936, 0.444379985332489, -0.04170869663357735, 0.17663733661174774, -0.6509731411933899, -0.10975517332553864, -1.0360766649246216, -0.01683070883154869, -0.04611536115407944, 0.2316710650920868, 0.11536729335784912, 0.15930038690567017, 0.45374596118927, -0.016382716596126556, -0.17074257135391235, 0.26074281334877014, -0.04019468277692795, 0.21494649350643158, -0.31748539209365845, -0.17299959063529968, 0.016753658652305603, 0.04561355337500572, -0.13505786657333374, -0.5641146302223206, -0.34118199348449707, 0.16009631752967834, 0.024100594222545624, 0.14497685432434082, -0.05096210911870003, 0.04354899004101753, -0.19061405956745148, 0.13581936061382294, -0.2904112637042999, 0.1560664176940918, -0.010705158114433289, 0.26330748200416565, -0.1443631500005722, -0.4014080762863159, 0.13297753036022186, 0.30288976430892944, 0.046848148107528687, 0.06647895276546478, -0.5709307193756104, -0.25964581966400146, 0.030244722962379456, 0.41496407985687256, 0.12011152505874634, 0.24560992419719696, 0.17481377720832825, -0.0011641588062047958, 0.038368865847587585, 0.045428015291690826, -0.1914301961660385, -0.0953514352440834, 0.5123043656349182, 0.3417060673236847, 0.4293985962867737, 0.37546825408935547, -0.10853078961372375, 0.5380150675773621, 0.06281934678554535, -0.12036676704883575, 0.25916287302970886, -0.16261273622512817, 0.306121826171875, -0.0002961456775665283, -0.2931821048259735, 0.195603147149086, -0.15505632758140564, -0.06570090353488922, 0.40995413064956665, 0.08926036208868027, -0.036575354635715485, -0.07392568141222, -0.18106728792190552, -0.26987797021865845, -0.4921988248825073, -0.1627940982580185, 0.4599244296550751, 0.2576902210712433, 0.2941861152648926, -0.13777339458465576, -0.2924904227256775, -0.1697055995464325, 0.4024105966091156, 0.623965859413147, -0.12354805320501328, 0.20654934644699097, 0.11472882330417633, -0.17577961087226868, -0.10044214874505997, 0.2647216320037842, 0.19807535409927368, 0.26627540588378906, 0.03425445780158043, 0.07943969964981079, 0.10083924233913422, -0.1124490275979042, 0.4005720615386963, -0.20484328269958496, 0.1391565054655075, 0.13698412477970123, 0.42362770438194275, 0.13606953620910645, -0.27441853284835815, 0.020730484277009964, 0.45525360107421875, 0.20490439236164093, 0.0759628415107727, -0.022156454622745514, -0.31525519490242004, 0.34118443727493286, 0.37144914269447327, -0.20025017857551575, 0.02197965979576111, 0.14671532809734344, -0.4022742509841919, -0.49776318669319153, -0.2266693413257599, -0.11953119933605194, -0.23209843039512634, -0.07223544269800186, 0.17652127146720886, 0.2332926243543625, -0.1576332449913025, -0.1536702960729599, 0.0030543003231287003, 0.20769524574279785, 0.4947224259376526, -0.019830510020256042, -0.008982092142105103, 0.01293151080608368, 0.09099757671356201, 0.30133068561553955, 0.07005293667316437, -0.3510890007019043, -0.16411417722702026, -0.3205772340297699, -0.09497075527906418, 0.20824497938156128, 0.11769212037324905, -0.0827307179570198, 0.1448277235031128, 0.06163633242249489, -0.08759118616580963, 0.11920710653066635, 0.3584297001361847, -0.08495818823575974, -0.5300600528717041, -0.5256212949752808, 0.4085564911365509, -0.11996470391750336, -0.16549426317214966, 0.4003599286079407, 0.156363844871521, -0.03231450915336609, -0.2735866904258728, 0.08305143564939499, 0.7465677261352539, -0.022926338016986847, 0.03270583972334862, -0.0075631216168403625, -0.09163171052932739, 0.6845277547836304, -0.35563403367996216, 0.0803622156381607, -0.2357022762298584, 0.044373732060194016, -0.14003044366836548, 0.09372420608997345, -0.03457855433225632, 0.12483442574739456, -0.2527684271335602, 0.39539897441864014, 0.011126041412353516, 0.12812703847885132, 0.1678040623664856, 0.1267901510000229, -0.03154081851243973, 0.005841596983373165, -0.07438787072896957, 0.08309800922870636, -0.1622391790151596, 0.48664531111717224, -0.16987958550453186, 0.006891293451189995, 0.012457046657800674, -0.11541140824556351, -0.5681363940238953, -0.06287450343370438, -0.16646316647529602, 0.29200172424316406, -0.02997828647494316, 0.021006107330322266, 0.04153798893094063, 0.09921076893806458, 0.42923176288604736, 0.1321554034948349, -0.20165756344795227, 0.31296974420547485, -0.005943648517131805, 0.060112833976745605, 0.00047931447625160217, 0.33379992842674255, 0.15796281397342682, -0.24225324392318726, -0.37794071435928345, -0.14415660500526428, -0.1342756748199463, -0.3834293484687805, 0.023596525192260742, -0.229896679520607, 0.6278171539306641, 0.0004670238122344017, -0.03048660047352314, -0.05963948369026184, -0.12158364057540894, -0.22318793833255768, 0.018404817208647728, -0.15353377163410187, 0.14163757860660553, 0.08167114108800888, -0.29147666692733765, -0.22446782886981964, 0.01916632056236267, 0.18952171504497528, -0.1399025022983551, -0.2665092945098877, 0.4547467827796936, 0.12190307676792145, 0.06394314020872116, -0.1995391547679901, -0.07254864275455475, -0.14384616911411285, -0.6568560004234314, 0.11910896748304367, -0.0967695564031601, 0.18281517922878265, -0.10909959673881531, 0.596034049987793, 0.25125306844711304, 0.16732782125473022, -0.28967100381851196, -0.42135557532310486, -0.27155616879463196, -0.05326463282108307, 0.33646470308303833, 0.15546594560146332, -0.017615413293242455, -0.16495057940483093, 0.19365420937538147, -0.6747892498970032, -0.16149288415908813, 0.009075455367565155, -0.16926300525665283, 0.029620138928294182, 0.6704882383346558, 0.4356498718261719, 0.08699702471494675, 0.0188513845205307, -0.06122791767120361, -0.17506612837314606, -0.08128602057695389, -0.025692511349916458, -0.13224837183952332, 0.20067979395389557, -0.05579472333192825, -0.4399527311325073, 0.05003424733877182, -0.3374837040901184, 0.04060501605272293, 0.0572873055934906, -0.10887858271598816, 0.03158047795295715, -0.05899004638195038, 0.22444523870944977, 0.32976871728897095, -0.09604226797819138, -0.12662822008132935, 0.23704083263874054, 0.2353169322013855, 0.6963256001472473, 0.047942306846380234, 0.5046024322509766, 0.12467710673809052, 0.10585418343544006, 0.09729598462581635, 0.07866667956113815, -0.08986710011959076, -0.02163330465555191, 0.177371084690094, -0.18767111003398895, 0.21448415517807007, 0.28157809376716614, 0.21411825716495514, 0.5254459381103516, -0.17346417903900146, -0.15317344665527344, 0.3730521500110626, 0.07362479716539383, -0.17447777092456818, -0.19686897099018097, 0.3419986963272095, 0.10919900238513947, -0.05771344527602196, 0.0470551922917366, 0.30090656876564026, -0.1780054271221161, 0.3103751540184021, 0.0893280878663063, 0.6003997921943665, -0.22758282721042633, 0.1473657488822937, 0.42562413215637207, 0.1851404756307602, 0.07660242915153503, -0.5151530504226685, -0.008837539702653885, 0.0859321653842926, 0.0910278707742691, -0.31554877758026123, -0.0076455529779195786, 0.3904760181903839, 0.18822115659713745, 0.01951158046722412, -0.28471964597702026, 0.4502233862876892, -0.0868171900510788, -0.006413169205188751, -0.16028866171836853, 0.2936164140701294, 0.1938025802373886, 0.15453536808490753, -0.21321921050548553, -0.10559172183275223, 0.3199578821659088, 0.21938320994377136, -0.049965351819992065, -0.29817795753479004, -0.18535920977592468, -0.21743488311767578, 0.0413200818002224, -0.1967567801475525, -0.06390877068042755, 0.10196705907583237, -0.000018283724784851074, -0.02097632735967636, -0.09959761798381805, 0.08692431449890137, -0.2254510521888733, 0.2697063386440277, -0.17319975793361664, 0.03487453609704971, 0.2699766457080841, -0.04491737484931946, 0.35737472772598267, 0.3032527565956116, 0.35110947489738464, 0.3506350815296173, 0.2956428825855255, 0.22151024639606476, 0.046282291412353516, -0.027579862624406815, -0.07052798569202423, -0.14133955538272858, -0.2378990352153778, 0.008593466132879257, 0.07536526024341583, 0.11463317275047302, 0.02223290130496025, -0.08800339698791504, -0.24141983687877655, -0.09090869128704071, -0.17667381465435028, 0.2309432327747345, -0.1248026192188263, -0.2502400577068329, -0.1732286959886551, 0.16439777612686157, -0.14074349403381348, -0.23054510354995728, 0.3772290050983429, 0.05560971796512604, 0.04930146783590317, 0.10842552781105042, 0.01848839968442917, -0.11838194727897644, 0.4438587427139282, 0.4053962826728821, 0.03935914859175682, -0.05069633573293686, -0.3549840450286865, -0.6613141298294067, 0.25252920389175415, 0.04311127960681915, -0.3434358239173889, 0.020299531519412994, -0.03655216097831726, -0.24313777685165405, -0.014977335929870605, 0.3215930461883545, -0.19569824635982513, -0.07188338041305542, 0.0016669034957885742, -0.012256346642971039, -0.36655277013778687, -0.1038552075624466, 0.2837750315666199, 0.020628325641155243, -0.30847620964050293, 0.17895987629890442, -0.16885732114315033, -0.07212552428245544, 0.0031014680862426758, -0.16266661882400513, 0.21847835183143616, -0.44748061895370483, 0.2214144617319107, 0.04231288284063339, 0.3322559595108032, 0.01572476327419281, -0.3238595426082611, -0.45203202962875366, -0.2165612131357193, -0.2448047697544098, 0.28285032510757446, -0.3794671893119812, 0.16711126267910004, -0.14895719289779663, 0.2827152907848358, -0.5202071666717529, -0.08937903493642807, -0.1439722776412964, 0.3547423779964447, -0.11200351268053055, -0.056617431342601776, -0.055804770439863205, -0.13559016585350037, 0.3962639272212982, -0.10837199538946152, -0.007828809320926666, -0.04984017461538315, -0.3642433285713196, -0.045476172119379044, 0.41134095191955566, -0.29125532507896423, -0.15768425166606903, -0.198094442486763, 0.2725575566291809, -0.09348181635141373, -0.1871381551027298, -0.2544824182987213, -0.07944317162036896, 0.29329970479011536, 0.2510579824447632, -0.16497619450092316, 0.028510402888059616, 0.015741370618343353, 0.06465029716491699, 0.0683126300573349, -0.08312998712062836, 0.028445899486541748, -0.3681694567203522, 0.026878822594881058, -0.16578085720539093 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
This command will update your local file. Then you can open a Pull Request to push your fix to the github repo :) And yes you are right, it is a "canonical" dataset, i.e. a dataset script defined in this github repo (as opposed to dataset repositories of users on the huggingface hub)
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
53
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? This command will update your local file. Then you can open a Pull Request to push your fix to the github repo :) And yes you are right, it is a "canonical" dataset, i.e. a dataset script defined in this github repo (as opposed to dataset repositories of users on the huggingface hub)
[ -0.23356662690639496, -0.11886027455329895, 0.018963579088449478, -0.13955509662628174, 0.01611180230975151, -0.005983695387840271, 0.17576435208320618, 0.32583412528038025, 0.20678573846817017, -0.049147799611091614, 0.12043097615242004, -0.04489603638648987, 0.20969918370246887, 0.4580942392349243, 0.18855412304401398, -0.08569923043251038, 0.07323218137025833, 0.004608765244483948, -0.3236837685108185, -0.03836411237716675, -0.2702767252922058, 0.3223569095134735, -0.18502938747406006, 0.13544926047325134, -0.23891934752464294, 0.13539883494377136, -0.18851499259471893, 0.1983838975429535, -0.1805906891822815, -0.4625660479068756, 0.5045472979545593, 0.24002543091773987, 0.1559286117553711, 0.192399263381958, -0.00010926467803074047, -0.02458842843770981, 0.39511722326278687, -0.1717742681503296, -0.10877558588981628, -0.011408045887947083, -0.3153645396232605, -0.30225327610969543, 0.010129167698323727, -0.2516593337059021, 0.039882153272628784, -0.10557146370410919, 0.16274285316467285, 0.25568851828575134, 0.2135184109210968, 0.4070444107055664, 0.2583005130290985, 0.42199352383613586, 0.40205812454223633, -0.16563235223293304, -0.09692453593015671, 0.04518367350101471, -0.18396341800689697, 0.08460885286331177, 0.1392516940832138, -0.16584061086177826, -0.007947452366352081, 0.2628325819969177, 0.038065895438194275, 0.17740699648857117, 0.36837220191955566, 0.0332370325922966, 0.27709656953811646, -0.4773378074169159, 0.177747905254364, 0.24263450503349304, 0.7822636365890503, -0.34990593791007996, -0.27006471157073975, 0.08369270712137222, 0.055503685027360916, -0.0859576165676117, 0.14425796270370483, 0.08368276059627533, -0.18380235135555267, 0.21456877887248993, -0.02706935442984104, -0.19740460813045502, -0.14740553498268127, 0.19893397390842438, -0.11475994437932968, 0.47399061918258667, -0.041831426322460175, 0.11007419973611832, 0.21871869266033173, -0.17219758033752441, -0.03838912397623062, 0.2162339836359024, -0.1291908621788025, 0.09959053248167038, 0.027194131165742874, -0.16127143800258636, -0.039502277970314026, 0.12775303423404694, 0.2365037500858307, 0.12150803953409195, -0.191883385181427, 0.010319652035832405, -0.19549298286437988, -0.07490763813257217, 0.36614111065864563, -0.024685900658369064, 0.03775908425450325, -0.20544877648353577, 0.6392713785171509, 0.4878345727920532, 0.13467969000339508, 0.040579911321401596, 0.1530725210905075, -0.311966210603714, -0.2728492319583893, -0.020997274667024612, 0.41473132371902466, -0.23581404983997345, -0.19466982781887054, -0.2294023036956787, 0.2842107117176056, 0.04850940406322479, -0.12421988695859909, 0.24081796407699585, -0.0643310397863388, 0.2211938202381134, -0.013327786698937416, 0.04140903428196907, -0.17702098190784454, -0.24428829550743103, -0.13930609822273254, 0.03759793937206268, 0.12752696871757507, 0.026942893862724304, 0.1333574503660202, -0.017165355384349823, 0.20502042770385742, -0.05056270211935043, -0.06817516684532166, -0.09549747407436371, -0.3666018843650818, 0.26555919647216797, -0.03676470369100571, 0.22117260098457336, -0.18859298527240753, 0.22258101403713226, 0.13221733272075653, -0.15584605932235718, -0.24495059251785278, 0.11672471463680267, -0.24225834012031555, -0.3335551917552948, -0.36201566457748413, 0.12754788994789124, -0.32409197092056274, -0.2706541121006012, 0.0901479423046112, 0.028584491461515427, -0.24508774280548096, -0.10809949040412903, 0.004352204501628876, -0.04306314140558243, -0.37269726395606995, -0.17731203138828278, 0.28031331300735474, 0.5215452909469604, -0.4167315363883972, -0.2620278000831604, -0.12027610093355179, -0.24335908889770508, 0.07997718453407288, 0.34577152132987976, -0.1807963103055954, 0.16309630870819092, -0.29106059670448303, 0.24941666424274445, 0.24087509512901306, -0.35636094212532043, -0.6736315488815308, -0.024149568751454353, -0.02342063933610916, -0.10644762217998505, -0.04780068248510361, 0.1957678347826004, 0.09924770146608353, -0.26807457208633423, -0.33196529746055603, 0.13649049401283264, 0.07735691219568253, 0.18631578981876373, -0.22930242121219635, -0.5873643755912781, 0.15022145211696625, 0.07757794857025146, 0.07903217524290085, -0.03482547402381897, 0.26307186484336853, 0.23384155333042145, 0.3538368046283722, -0.022407453507184982, 0.09534234553575516, 0.2815830707550049, 0.40125253796577454, 0.17912283539772034, 0.21523605287075043, 0.08691833168268204, -0.2827014923095703, 0.19468644261360168, 0.1992519050836563, 0.2634850740432739, -0.2397792488336563, -0.21289896965026855, -0.505187451839447, -0.09976349771022797, -0.34823402762413025, -0.25332212448120117, 0.13733066618442535, 0.06070154905319214, 0.03769596293568611, -0.04024948924779892, -0.36641281843185425, 0.35279619693756104, -0.2735736668109894, -0.01820477657020092, -0.1620049625635147, 0.44133132696151733, -0.17378026247024536, -0.03589420020580292, 0.21601039171218872, 0.21365249156951904, 0.1147465929389, -0.21470016241073608, -0.11331893503665924, 0.38552507758140564, -0.20433878898620605, 0.254318505525589, 0.271307110786438, 0.2959887385368347, 0.14296311140060425, -0.44051414728164673, 0.07826562225818634, 0.26040172576904297, 0.0026076827198266983, 0.1207897886633873, -0.1412736177444458, -0.03893764317035675, 0.03357192128896713, 0.10484515130519867, -0.017927460372447968, 0.17264549434185028, 0.43519827723503113, -0.14814341068267822, -0.13889846205711365, -0.22318369150161743, -0.20202796161174774, -0.27903053164482117, -0.19091130793094635, -0.12204112112522125, -0.0943426862359047, 0.19532041251659393, 0.6526303887367249, -0.0811343789100647, 0.19340625405311584, 0.3059239983558655, -0.08804028481245041, -0.08349190652370453, -0.06569695472717285, 0.2408764511346817, 0.26778119802474976, 0.027259841561317444, -0.15459026396274567, 0.18929389119148254, 0.01767595484852791, -0.07309482246637344, 0.10901603102684021, 0.08966025710105896, -0.17557360231876373, 0.030162056908011436, -0.07320352643728256, -0.08097103238105774, -0.2738902270793915, 0.2919789254665375, -0.05333288758993149, 0.3131764829158783, -0.2786053419113159, -0.12109313905239105, -0.3761141896247864, -0.4734441041946411, -0.28011879324913025, 0.16655869781970978, -0.38546958565711975, -0.3420087993144989, 0.0037456396967172623, 0.25561365485191345, -0.111904576420784, 0.21810506284236908, 0.1516183614730835, 0.36722463369369507, -0.1004234179854393, 0.19798605144023895, -0.23050357401371002, -0.23156030476093292, -0.24340924620628357, 0.05624790117144585, 0.3037785589694977, 0.13997676968574524, 0.3024446666240692, -0.6965792775154114, -0.0006316360086202621, -0.9145677089691162, -0.28006812930107117, 0.11373145878314972, 0.07845313847064972, 0.23368613421916962, 0.3152013421058655, 0.4718114137649536, 0.03625054657459259, -0.09299107640981674, 0.19160468876361847, -0.33349180221557617, 0.044595375657081604, -0.2865600287914276, -0.20284932851791382, 0.03585394471883774, -0.014976726844906807, -0.18371471762657166, -0.48965173959732056, -0.3156398832798004, 0.2744002342224121, -0.028238855302333832, 0.030895231291651726, 0.029481738805770874, 0.000858161598443985, -0.06270728260278702, 0.011218497529625893, -0.23042266070842743, -0.13358081877231598, 0.11091554164886475, 0.40650561451911926, -0.13139373064041138, -0.5269107222557068, 0.23077285289764404, 0.15088848769664764, 0.1147906631231308, -0.25851768255233765, -0.5553163290023804, -0.31045642495155334, -0.04628846049308777, 0.4160475730895996, 0.10707532614469528, 0.31481537222862244, 0.2358895093202591, -0.04793502017855644, -0.05933155119419098, -0.055655185133218765, -0.3613808751106262, -0.04673924297094345, 0.32737115025520325, 0.352859765291214, 0.38381510972976685, 0.2802625298500061, -0.013092290610074997, 0.42801058292388916, 0.1091013103723526, -0.04218362644314766, 0.23249347507953644, -0.3416445255279541, 0.31441882252693176, -0.10110554844141006, -0.31279486417770386, 0.21383239328861237, -0.2130121886730194, 0.24228917062282562, 0.3699728846549988, 0.116337351500988, 0.12085569649934769, -0.06257735192775726, -0.22832036018371582, -0.18776968121528625, -0.49963128566741943, -0.19159604609012604, 0.5330445766448975, 0.08644163608551025, 0.24573642015457153, 0.027590595185756683, -0.307368665933609, -0.22191283106803894, 0.5058276653289795, 0.5238959789276123, -0.15147587656974792, 0.18568439781665802, 0.17079831659793854, -0.012557435780763626, -0.4755598306655884, 0.1710110306739807, 0.040047381073236465, 0.19654321670532227, 0.004942033439874649, 0.027559414505958557, 0.17324155569076538, -0.0784420594573021, 0.6037293076515198, -0.0472835972905159, 0.14951485395431519, 0.050792451947927475, 0.164422869682312, -0.07536943256855011, -0.11667375266551971, 0.01494872197508812, 0.2956690192222595, 0.08637970685958862, 0.1583257019519806, -0.12830697000026703, -0.3624589145183563, 0.4438432455062866, 0.3782404065132141, -0.24684014916419983, -0.11089878529310226, -0.017087724059820175, -0.6500024199485779, -0.5062054395675659, -0.1907247006893158, 0.03735162317752838, -0.141265407204628, -0.061703719198703766, 0.2488446682691574, 0.13067907094955444, -0.2411842942237854, -0.09580083191394806, 0.1394646018743515, 0.26250675320625305, 0.4379006326198578, -0.009743481874465942, 0.21823371946811676, -0.1364615559577942, -0.16538798809051514, 0.43128588795661926, 0.07310112565755844, -0.4082481265068054, -0.11754026263952255, -0.2884828448295593, -0.1285906732082367, 0.2834286391735077, 0.028476271778345108, -0.02034211903810501, 0.08247914910316467, 0.0702320784330368, -0.19803296029567719, 0.12828125059604645, 0.45345252752304077, -0.07996457070112228, -0.3448006808757782, -0.35429173707962036, 0.400381863117218, -0.11478796601295471, -0.07752109318971634, 0.37798070907592773, 0.35383766889572144, -0.0498623251914978, -0.08948521316051483, -0.024859115481376648, 0.6526331901550293, 0.11468419432640076, 0.07956709712743759, 0.24205362796783447, -0.10198186337947845, 0.6518206000328064, -0.04103975370526314, 0.12226351350545883, -0.3257211148738861, 0.0006457408890128136, -0.09963155537843704, 0.15052127838134766, -0.24124860763549805, -0.0039450787007808685, -0.0847465991973877, 0.4775623381137848, 0.15148380398750305, 0.19451606273651123, 0.12787564098834991, 0.3077496588230133, -0.05442465841770172, -0.1355789303779602, -0.27003014087677, 0.21115048229694366, -0.08850996196269989, 0.6037111282348633, -0.08928176760673523, -0.16215413808822632, 0.20687678456306458, -0.19755712151527405, -0.5399234890937805, 0.0476858988404274, -0.13310973346233368, 0.3173465132713318, 0.07731489837169647, 0.12148009240627289, 0.0688772052526474, 0.11820545792579651, 0.4526987075805664, 0.06699379533529282, -0.37286195158958435, 0.26007217168807983, -0.013128384947776794, -0.1014176607131958, -0.010123071260750294, 0.35540276765823364, 0.0644315853714943, -0.3104498088359833, -0.4030137360095978, -0.19978821277618408, -0.02476218342781067, -0.22619566321372986, 0.05459749698638916, -0.19797469675540924, 0.3774753212928772, 0.0033658677712082863, -0.0794590562582016, -0.052655935287475586, -0.005354434251785278, -0.26004543900489807, 0.1364443302154541, -0.12253853678703308, 0.021039556711912155, 0.12882427871227264, -0.16153591871261597, -0.10955855250358582, -0.018448885530233383, 0.2816781997680664, -0.27009204030036926, -0.1404266655445099, 0.4918079674243927, 0.2861503064632416, -0.01613927260041237, -0.24394720792770386, -0.07038671523332596, -0.03972962498664856, -0.7922115921974182, 0.11324749886989594, 0.061833176761865616, 0.0977649837732315, -0.10278179496526718, 0.6565717458724976, 0.19023743271827698, -0.08658694475889206, -0.2809299826622009, -0.41509073972702026, -0.3234254717826843, 0.09809838980436325, 0.2170945703983307, 0.2083805501461029, 0.0841277688741684, 0.015648551285266876, 0.20161394774913788, -0.5624885559082031, -0.3321129083633423, 0.06501434743404388, -0.08976291865110397, -0.1126648485660553, 0.5341253280639648, 0.16139882802963257, 0.17360948026180267, 0.059087831526994705, 0.07962995022535324, -0.04110229015350342, -0.20694103837013245, -0.1628687083721161, -0.3124520182609558, 0.12378305196762085, -0.13712835311889648, -0.39706525206565857, 0.08432089537382126, -0.22419802844524384, -0.11130699515342712, 0.009243444539606571, 0.11313699185848236, 0.29319825768470764, -0.007024414837360382, 0.2214224934577942, 0.35576513409614563, -0.12193209677934647, 0.03787391632795334, 0.14404162764549255, 0.34904536604881287, 0.5711561441421509, 0.07518697530031204, 0.39489734172821045, -0.09187086671590805, 0.10505665838718414, 0.38192063570022583, 0.1560143232345581, -0.04242590069770813, -0.051923029124736786, 0.1917816400527954, -0.17658622562885284, 0.07074275612831116, 0.18674427270889282, 0.16200700402259827, 0.5038244724273682, -0.2613511085510254, -0.11057816445827484, 0.24600043892860413, 0.15062299370765686, -0.3346233069896698, -0.18288026750087738, 0.2637704908847809, 0.0990467220544815, -0.0441012866795063, 0.08313070237636566, 0.3345206379890442, -0.17476323246955872, 0.28953278064727783, 0.09710540622472763, 0.5810626745223999, -0.25874507427215576, 0.0536666214466095, 0.23549151420593262, -0.04379638284444809, 0.0007870346307754517, -0.23221376538276672, 0.0009580589830875397, 0.2113996148109436, 0.15078464150428772, -0.20138520002365112, -0.04276685416698456, -0.009260307997465134, 0.2668434679508209, 0.09168495982885361, -0.2197224199771881, 0.23249192535877228, -0.1332145631313324, 0.0301506444811821, -0.1136777326464653, 0.19474166631698608, 0.2423434853553772, -0.032895926386117935, -0.18025711178779602, -0.3411667048931122, 0.46578219532966614, 0.1578100621700287, -0.14608794450759888, -0.1140909269452095, -0.14455388486385345, -0.14629659056663513, 0.10827977955341339, -0.17094291746616364, -0.11861258745193481, 0.09379781782627106, -0.0343465581536293, -0.07889017462730408, -0.1461077481508255, -0.15439075231552124, -0.12329448014497757, 0.3736056387424469, -0.13283909857273102, 0.11629434674978256, 0.29698169231414795, 0.03825210779905319, 0.22124327719211578, 0.353423148393631, 0.47453248500823975, 0.17893682420253754, 0.17254404723644257, 0.15857282280921936, 0.004651922732591629, -0.099241241812706, -0.01758219301700592, -0.01245814934372902, -0.08962231874465942, 0.12905026972293854, 0.23050744831562042, 0.1899619996547699, -0.0855160504579544, -0.2006915956735611, -0.15549664199352264, 0.004414658062160015, -0.11032813787460327, 0.07210808992385864, -0.23110193014144897, -0.056719567626714706, -0.3328520357608795, 0.1490004062652588, -0.17400209605693817, -0.1544376164674759, 0.2945481836795807, 0.035046376287937164, 0.12691089510917664, 0.01749524101614952, 0.09802717715501785, -0.12909714877605438, 0.5321990251541138, 0.321245938539505, 0.037909261882305145, -0.02224341779947281, -0.3133053183555603, -0.7508370876312256, 0.13433222472667694, 0.011783353984355927, -0.24444247782230377, 0.06562411785125732, -0.0677611455321312, -0.16106867790222168, 0.016259102150797844, 0.2551139295101166, -0.08393807709217072, 0.015144298784434795, -0.06346277892589569, -0.05916588753461838, -0.2827608287334442, -0.08818034827709198, 0.255260705947876, 0.11630791425704956, -0.20393449068069458, 0.11726640164852142, -0.12346664816141129, 0.018498338758945465, 0.0706113874912262, -0.08587493002414703, -0.022495552897453308, -0.38027501106262207, 0.06497476994991302, 0.11107965558767319, 0.28184038400650024, -0.18641585111618042, -0.2438080608844757, -0.45635753870010376, -0.245184525847435, -0.3523598611354828, 0.29572346806526184, -0.23104894161224365, 0.1400175243616104, 0.07149892300367355, 0.11894941329956055, -0.48062965273857117, 0.04996257275342941, 0.02051306515932083, 0.2524639070034027, -0.25482121109962463, 0.1510593295097351, -0.1215064525604248, -0.021983088925480843, 0.312618225812912, 0.04718565568327904, -0.16361388564109802, -0.08446212857961655, -0.12417010962963104, -0.17335359752178192, 0.6147269010543823, -0.2698361873626709, -0.1295507252216339, -0.14464038610458374, 0.1861274391412735, -0.0862266793847084, -0.2793920934200287, -0.37921884655952454, 0.15724977850914001, 0.08191601932048798, 0.2910226881504059, -0.12665963172912598, 0.13687764108181, -0.15124382078647614, 0.028084445744752884, 0.05433541163802147, 0.06383556127548218, 0.2239316701889038, -0.3455142378807068, 0.08397969603538513, -0.180015429854393 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
Hi, thanks for the answer. I gave a try to the problem today. But I encountered an upload error: ``` git push -u origin fix_link_iwslt Enter passphrase for key '/home2/xuhuizh/.ssh/id_rsa': ERROR: Permission to huggingface/datasets.git denied to XuhuiZhou. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ``` Any insight here? By the way, when I run the datasets-cli command, it shows the following error, but does not seem to be the error coming from `iwslt.py` ``` Traceback (most recent call last): File "/home2/xuhuizh/anaconda3/envs/UMT/bin/datasets-cli", line 33, in <module> sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')()) File "/home2/xuhuizh/projects/datasets/src/datasets/commands/datasets_cli.py", line 35, in main service.run() File "/home2/xuhuizh/projects/datasets/src/datasets/commands/test.py", line 141, in run try_from_hf_gcs=False, File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 639, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/xuhuizh/projects/datasets/src/datasets/utils/info_utils.py", line 32, in verify_checksums raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) datasets.utils.info_utils.ExpectedMoreDownloadedFiles: {'https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz'} ```
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
148
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? Hi, thanks for the answer. I gave a try to the problem today. But I encountered an upload error: ``` git push -u origin fix_link_iwslt Enter passphrase for key '/home2/xuhuizh/.ssh/id_rsa': ERROR: Permission to huggingface/datasets.git denied to XuhuiZhou. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ``` Any insight here? By the way, when I run the datasets-cli command, it shows the following error, but does not seem to be the error coming from `iwslt.py` ``` Traceback (most recent call last): File "/home2/xuhuizh/anaconda3/envs/UMT/bin/datasets-cli", line 33, in <module> sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')()) File "/home2/xuhuizh/projects/datasets/src/datasets/commands/datasets_cli.py", line 35, in main service.run() File "/home2/xuhuizh/projects/datasets/src/datasets/commands/test.py", line 141, in run try_from_hf_gcs=False, File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 639, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/xuhuizh/projects/datasets/src/datasets/utils/info_utils.py", line 32, in verify_checksums raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) datasets.utils.info_utils.ExpectedMoreDownloadedFiles: {'https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz'} ```
[ -0.17317721247673035, -0.010390780866146088, 0.05730978026986122, -0.03935592621564865, 0.05381619185209274, -0.012416332960128784, 0.256300151348114, 0.3127622902393341, 0.11338698863983154, 0.02017364650964737, 0.031348422169685364, 0.01898246817290783, 0.3240017890930176, 0.24096588790416718, 0.16553950309753418, 0.08329466730356216, 0.09354788064956665, 0.00702088326215744, -0.29775533080101013, -0.01818380504846573, -0.2464226931333542, 0.20699557662010193, -0.1871379315853119, 0.09840495884418488, -0.06641345471143723, 0.09391531348228455, -0.14374248683452606, 0.13233128190040588, 0.07113256305456161, -0.5863391160964966, 0.2837120294570923, 0.15161746740341187, 0.2967725992202759, 0.27966171503067017, -0.0001216274977196008, -0.029880620539188385, 0.2723468542098999, -0.13340915739536285, -0.36353200674057007, -0.02761034667491913, -0.4098818600177765, -0.41281065344810486, -0.25031355023384094, -0.2697913348674774, 0.12526294589042664, -0.04704316332936287, 0.05262672156095505, 0.17822952568531036, 0.2551388144493103, 0.44702136516571045, 0.11546463519334793, 0.35423970222473145, 0.40064355731010437, -0.09960444271564484, -0.07632818073034286, 0.062417611479759216, -0.08089238405227661, 0.19452965259552002, 0.17656198143959045, 0.0043091848492622375, 0.31907325983047485, 0.12492780387401581, 0.07743571698665619, 0.09309481084346771, 0.2438850998878479, -0.09956430643796921, 0.40321820974349976, -0.39194947481155396, 0.22263213992118835, 0.046711523085832596, 0.757718026638031, -0.29858264327049255, -0.5799198150634766, -0.04423859715461731, 0.15990383923053741, 0.04990521818399429, 0.18546372652053833, 0.04699089378118515, -0.24841740727424622, 0.3061732351779938, -0.1514512002468109, -0.49204885959625244, -0.2695290446281433, 0.3524079918861389, 0.07799090445041656, 0.4447515308856964, 0.06079224869608879, 0.19503924250602722, 0.2497369796037674, -0.14348573982715607, 0.03076092153787613, 0.11080695688724518, -0.24117469787597656, 0.16072624921798706, 0.01144488900899887, -0.10124672949314117, -0.10412267595529556, 0.18923398852348328, 0.13511687517166138, 0.09794637560844421, -0.22963479161262512, -0.0681869387626648, -0.0995049923658371, -0.010115280747413635, 0.2546985447406769, 0.09388171136379242, -0.0022867247462272644, 0.02348865568637848, 0.42501211166381836, 0.42841213941574097, 0.2059713751077652, -0.06375827640295029, 0.08494199067354202, -0.3227723240852356, -0.3013034760951996, 0.054134491831064224, 0.2840805649757385, -0.15110602974891663, -0.20947545766830444, -0.29371681809425354, 0.039976976811885834, -0.010595109313726425, -0.07029645889997482, 0.220625638961792, -0.10208337008953094, 0.15460219979286194, 0.016657792031764984, 0.14944064617156982, -0.029269110411405563, -0.34868231415748596, 0.020251858979463577, -0.0059213172644376755, -0.008056640625, 0.15730898082256317, 0.17373357713222504, -0.09851925075054169, 0.006229056045413017, -0.008084174245595932, -0.23371218144893646, -0.1763400435447693, -0.2984265387058258, 0.10854540765285492, 0.1047857478260994, 0.12625452876091003, -0.135873481631279, 0.26100680232048035, 0.034558266401290894, -0.17501211166381836, -0.06591528654098511, 0.12261248379945755, -0.3552241325378418, -0.24120363593101501, -0.24734513461589813, 0.009010298177599907, -0.22747720777988434, -0.17258420586585999, -0.15141472220420837, -0.09464055299758911, -0.12647110223770142, -0.35806652903556824, -0.007644206285476685, 0.01925489492714405, -0.2257639467716217, -0.154449924826622, 0.2990470230579376, 0.5962201952934265, -0.5039987564086914, -0.34504038095474243, -0.2770169973373413, -0.20290254056453705, 0.07892762869596481, 0.3190475404262543, -0.24437621235847473, 0.2259962558746338, -0.2795184552669525, 0.12838129699230194, 0.332423597574234, -0.5260115265846252, -0.7665926218032837, 0.2068859040737152, 0.014696046710014343, -0.024541184306144714, 0.017246313393115997, 0.08171845227479935, 0.0900462418794632, -0.28952810168266296, -0.6715385913848877, 0.05716569349169731, 0.07817653566598892, 0.1101769283413887, -0.17484159767627716, -0.5463119745254517, 0.14033177495002747, -0.020961463451385498, 0.047642044723033905, 0.24661314487457275, 0.4528529644012451, 0.16259479522705078, 0.4841621518135071, -0.10683247447013855, 0.24864451587200165, 0.1819879710674286, 0.5103004574775696, 0.181520015001297, 0.12838543951511383, 0.02679598331451416, -0.3259160816669464, 0.2599065601825714, 0.2652193605899811, 0.11926742643117905, -0.4695914387702942, -0.07143199443817139, -0.3838052451610565, -0.07783485949039459, -0.3433719575405121, -0.10256370902061462, -0.017244108021259308, 0.2139868587255478, 0.0695284754037857, -0.01913517341017723, -0.1408531218767166, 0.23319971561431885, -0.12024194002151489, -0.013540257699787617, -0.09895741939544678, 0.34630686044692993, -0.1621231585741043, -0.022454239428043365, -0.032578688114881516, 0.18843594193458557, 0.22301217913627625, -0.22817693650722504, -0.14157286286354065, 0.4947056472301483, -0.4156080484390259, 0.3229222297668457, 0.25002679228782654, 0.11366551369428635, 0.17533519864082336, -0.3674815893173218, 0.1324024796485901, 0.22340530157089233, 0.023047886788845062, 0.175513356924057, -0.1077931597828865, -0.20794840157032013, 0.08238717168569565, 0.21694578230381012, 0.0122455433011055, -0.001903671771287918, 0.286950021982193, -0.16552671790122986, -0.050465963780879974, -0.19699519872665405, -0.11621356010437012, -0.13633596897125244, -0.1499481499195099, -0.1951587200164795, -0.022400088608264923, 0.1898772418498993, 0.44475191831588745, -0.07519876956939697, 0.16471469402313232, 0.3001323938369751, 0.043281007558107376, 0.06439367681741714, -0.05509097874164581, 0.6107308864593506, 0.27159982919692993, -0.1495794951915741, -0.2571929395198822, 0.07107523083686829, 0.2623734176158905, -0.15532395243644714, 0.19136452674865723, 0.06278283894062042, -0.045987989753484726, 0.08775925636291504, -0.04735064506530762, -0.03950779512524605, 0.09108418971300125, 0.21501150727272034, 0.1679970622062683, 0.4387919008731842, -0.4453459084033966, -0.006193950772285461, -0.4293610453605652, -0.6389655470848083, -0.20033429563045502, 0.2501921057701111, -0.23662632703781128, -0.18587303161621094, -0.18333645164966583, 0.21036313474178314, -0.07887904345989227, 0.20534496009349823, 0.0379030741751194, 0.3174077570438385, -0.08436006307601929, 0.16590312123298645, -0.2603979706764221, -0.04834133759140968, -0.20617011189460754, -0.061374980956315994, 0.2968953549861908, -0.070374496281147, 0.2665000855922699, -0.5192924737930298, -0.10636858642101288, -0.938562273979187, -0.04000964015722275, 0.04453457146883011, 0.0885353684425354, 0.2453925758600235, 0.1265658289194107, 0.4747099280357361, 0.14921894669532776, -0.059592925012111664, 0.23810426890850067, -0.15946881473064423, 0.12004701793193817, -0.1929836869239807, -0.08514368534088135, 0.06527628749608994, -0.13783861696720123, -0.10647866874933243, -0.5346981287002563, -0.29649198055267334, 0.3588109016418457, -0.06602877378463745, 0.1081245094537735, 0.09742750227451324, 0.20436157286167145, -0.0727190300822258, -0.037349261343479156, -0.170775905251503, 0.02358022890985012, 0.04010886326432228, 0.26248985528945923, -0.09810293465852737, -0.4878208339214325, 0.13309231400489807, 0.3627158999443054, 0.24138016998767853, -0.04054751247167587, -0.40379881858825684, -0.02932244911789894, 0.028239134699106216, 0.5150359272956848, -0.005289085209369659, 0.23201428353786469, 0.06923317909240723, -0.029777908697724342, 0.07366910576820374, -0.007638424634933472, -0.1586824506521225, -0.06324685364961624, 0.23886719346046448, 0.46978554129600525, 0.5023784637451172, 0.5303525328636169, -0.01605363003909588, 0.31576865911483765, 0.02317798137664795, 0.03302169218659401, 0.4492385685443878, -0.3102990388870239, 0.35216912627220154, 0.18781507015228271, -0.47141674160957336, 0.183967724442482, -0.07332685589790344, 0.23290283977985382, 0.2779690623283386, -0.0017411541193723679, 0.06596525758504868, -0.17094969749450684, -0.2562519609928131, -0.24032428860664368, -0.48811814188957214, -0.23645950853824615, 0.458545058965683, 0.27655279636383057, 0.2874037027359009, 0.06834570318460464, -0.424066424369812, -0.2522805333137512, 0.4481954574584961, 0.3350016474723816, 0.0827881395816803, 0.16867274045944214, 0.04815718159079552, -0.21306343376636505, -0.44617587327957153, 0.2900395393371582, 0.14158661663532257, 0.44099459052085876, -0.11990967392921448, 0.16558369994163513, 0.13902026414871216, -0.08515749126672745, 0.5852237343788147, -0.1715996265411377, 0.19933317601680756, -0.136941596865654, 0.37498587369918823, -0.10454975068569183, -0.11609703302383423, 0.08920654654502869, 0.2740939259529114, 0.4025416374206543, 0.29189085960388184, -0.1657920628786087, -0.32085007429122925, 0.22142085433006287, 0.3830726742744446, -0.22414734959602356, -0.23012453317642212, 0.0008433684706687927, -0.3451738655567169, -0.6933256387710571, -0.32811543345451355, -0.006982386112213135, -0.08807153254747391, 0.05120902508497238, 0.22419779002666473, 0.21424457430839539, -0.06778636574745178, -0.10708336532115936, -0.0017372509464621544, 0.22216930985450745, 0.47396382689476013, -0.039384156465530396, 0.1846897155046463, 0.0023133009672164917, 0.17618262767791748, 0.3277205526828766, -0.010735191404819489, -0.25661635398864746, -0.16085293889045715, -0.25136464834213257, -0.1139625683426857, 0.2904011011123657, -0.03275180608034134, 0.19266226887702942, 0.1949867606163025, 0.08923067152500153, -0.034681595861911774, -0.05789339914917946, 0.4571622610092163, -0.1164325475692749, -0.3752472996711731, -0.4556741714477539, 0.33612754940986633, -0.24959434568881989, -0.04288572445511818, 0.18452830612659454, 0.3937382698059082, -0.11252439022064209, -0.2946999669075012, -0.1475628912448883, 0.7340778708457947, 0.21023382246494293, 0.012990027666091919, 0.27000540494918823, 0.09168598055839539, 0.6499993801116943, 0.045956484973430634, 0.08656871318817139, -0.21052169799804688, 0.07528762519359589, -0.05893212556838989, 0.102903813123703, -0.24619609117507935, 0.09280659258365631, -0.06102047860622406, 0.45428720116615295, -0.03218180313706398, 0.027831535786390305, 0.16436168551445007, 0.4223262369632721, -0.12499210983514786, 0.00006415508687496185, -0.08982676267623901, 0.09600512683391571, -0.07623390853404999, 0.39921993017196655, -0.05956718698143959, -0.17044733464717865, -0.031148552894592285, 0.026430733501911163, -0.5818718671798706, 0.19425469636917114, -0.2710114121437073, 0.23840931057929993, -0.10242001712322235, -0.0012005046010017395, 0.3616999685764313, 0.15046820044517517, 0.3591024875640869, 0.04940492659807205, -0.3497042953968048, 0.2235165536403656, -0.17482486367225647, -0.10817676782608032, -0.10182850062847137, 0.36302676796913147, 0.08838338404893875, -0.25492995977401733, -0.5241521000862122, -0.00866205245256424, -0.03612357750535011, -0.23641273379325867, 0.1048421561717987, -0.16675493121147156, 0.40924155712127686, -0.09896279871463776, -0.24618087708950043, -0.20791223645210266, -0.12354874610900879, -0.22961917519569397, 0.0210539773106575, -0.12083804607391357, 0.13678067922592163, 0.11031891405582428, -0.2699897289276123, -0.1645365208387375, 0.04628317430615425, 0.42654943466186523, -0.45916587114334106, -0.12818390130996704, 0.7964826822280884, 0.29219120740890503, -0.06721928715705872, -0.1716514527797699, -0.1413630247116089, -0.14426416158676147, -0.9090536236763, 0.060361530631780624, 0.15437781810760498, 0.26765143871307373, -0.06455011665821075, 0.4446275234222412, 0.12250855565071106, 0.06262510269880295, -0.21823659539222717, -0.4203623831272125, -0.1049923226237297, 0.004581861197948456, 0.2443048059940338, 0.10589924454689026, -0.07365479320287704, -0.07442931830883026, 0.14326009154319763, -0.5616603493690491, -0.18512359261512756, 0.02771221473813057, 0.004925640299916267, -0.0934065654873848, 0.6767573356628418, 0.29003068804740906, 0.260938435792923, -0.09072716534137726, -0.02716507948935032, -0.037719838321208954, 0.0028268806636333466, -0.026270341128110886, -0.22351647913455963, 0.18334056437015533, 0.05950400233268738, -0.45731550455093384, -0.045392535626888275, -0.37969744205474854, 0.005225859582424164, 0.025217397138476372, -0.0769210010766983, 0.11974824219942093, 0.020843669772148132, 0.21083231270313263, 0.2600320875644684, -0.10266358405351639, -0.04796154052019119, 0.3185765743255615, 0.2582704424858093, 0.45890969038009644, -0.04116939753293991, 0.5171278119087219, -0.021903112530708313, 0.12728016078472137, -0.14128905534744263, 0.04473184049129486, 0.013817846775054932, -0.0031943172216415405, 0.3017369508743286, -0.23994557559490204, 0.19388741254806519, 0.2793976962566376, 0.02571670338511467, 0.3771687150001526, -0.17804071307182312, -0.17604860663414001, 0.20112311840057373, 0.042530469596385956, -0.2472284436225891, -0.12493743747472763, 0.12320314347743988, -0.12593741714954376, -0.1002596989274025, 0.06164364889264107, 0.13258613646030426, -0.309686541557312, 0.2227417528629303, 0.07609030604362488, 0.4969693124294281, -0.1279911994934082, 0.0035037174820899963, 0.44265785813331604, 0.11138863861560822, 0.08243715763092041, -0.23320016264915466, 0.10570783913135529, 0.10845552384853363, 0.12356685101985931, -0.43348628282546997, -0.17885321378707886, 0.13832202553749084, 0.242634117603302, 0.010388992726802826, -0.3338914215564728, 0.14506644010543823, -0.1855846643447876, -0.11396868526935577, -0.1571412980556488, 0.11353795975446701, 0.2669582664966583, 0.0549766831099987, -0.21656353771686554, -0.1758531630039215, 0.5872362852096558, 0.2028706967830658, -0.04734855145215988, -0.29044726490974426, -0.2332368791103363, -0.18760934472084045, 0.0005463249981403351, -0.19722381234169006, -0.27766239643096924, -0.10445430874824524, 0.1796913892030716, -0.1478831022977829, -0.2340172976255417, -0.10566148906946182, -0.13627827167510986, 0.3717668056488037, -0.131341814994812, 0.09575190395116806, 0.19094562530517578, -0.05003567785024643, 0.20885521173477173, 0.33420529961586, 0.4915675222873688, 0.2866506278514862, 0.5088070631027222, 0.29473191499710083, 0.07301882654428482, -0.02741396799683571, 0.13017041981220245, -0.02851855754852295, 0.010105438530445099, 0.16173914074897766, 0.10697291791439056, 0.06603431701660156, -0.005749809555709362, -0.3965211510658264, -0.08879265189170837, 0.09079957008361816, -0.11412981152534485, 0.2506958246231079, -0.3444792330265045, -0.256987988948822, -0.32638850808143616, 0.17862500250339508, -0.14174428582191467, 0.0649622455239296, 0.3046620786190033, -0.02459704503417015, 0.10863137245178223, -0.11766629666090012, 0.021419763565063477, -0.17237292230129242, 0.44637495279312134, 0.40362584590911865, 0.07172639667987823, -0.1999131739139557, -0.2780928909778595, -0.6719220876693726, 0.0896463543176651, 0.025211533531546593, -0.19610774517059326, -0.060728609561920166, -0.07233107835054398, -0.29909276962280273, -0.24015046656131744, 0.3871959447860718, -0.014077123254537582, 0.19449299573898315, 0.1509942263364792, 0.03842409327626228, -0.2599559724330902, -0.035336874425411224, 0.3991890847682953, 0.0820799171924591, -0.229855477809906, 0.1750035285949707, -0.3563646078109741, -0.08082617819309235, 0.08152693510055542, -0.13140244781970978, -0.04053906723856926, -0.3032631576061249, 0.19696232676506042, 0.028637830168008804, 0.28682059049606323, -0.10246846079826355, -0.33160504698753357, -0.4810996651649475, -0.2985098659992218, -0.2880405783653259, 0.3028408885002136, -0.15380331873893738, 0.08846279233694077, 0.051856666803359985, 0.28300538659095764, -0.5554574728012085, 0.02058652602136135, -0.11215946078300476, 0.2002895325422287, -0.08680818229913712, 0.017459066584706306, -0.011080343276262283, -0.036352574825286865, 0.49126383662223816, -0.15437451004981995, -0.11633971333503723, 0.14052143692970276, -0.3566206097602844, -0.0735708624124527, 0.5362972021102905, -0.35837215185165405, -0.06597858667373657, -0.08042106032371521, 0.3946353495121002, -0.04047183692455292, -0.28466740250587463, -0.33544278144836426, 0.05937021225690842, 0.23041647672653198, 0.2856459319591522, -0.08272983133792877, 0.08288036286830902, -0.2585715055465698, 0.19653239846229553, 0.14691779017448425, 0.09618792682886124, 0.22465384006500244, -0.39550015330314636, 0.1924884021282196, 0.06143727898597717 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
Hi ! To create a PR on this repo your must fork it and create a branch on your fork. See how to fork the repo [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md#start-by-preparing-your-environment). And to make the command work without the `ExpectedMoreDownloadedFiles` error, you just need to use the `--ignore_verifications` flag.
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
45
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? Hi ! To create a PR on this repo your must fork it and create a branch on your fork. See how to fork the repo [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md#start-by-preparing-your-environment). And to make the command work without the `ExpectedMoreDownloadedFiles` error, you just need to use the `--ignore_verifications` flag.
[ -0.2560882866382599, -0.09676962345838547, 0.017853837460279465, -0.06596137583255768, 0.0944887027144432, 0.04959471523761749, 0.19209586083889008, 0.26111534237861633, 0.16361753642559052, 0.04193750023841858, 0.005066554062068462, -0.013362731784582138, 0.2525414228439331, 0.3941248655319214, 0.3025112450122833, -0.17542347311973572, 0.15245874226093292, 0.07196994125843048, -0.21727505326271057, 0.05435607582330704, -0.205519437789917, 0.28048190474510193, -0.23036155104637146, 0.020960919559001923, -0.11938285827636719, 0.12932829558849335, -0.3126572072505951, 0.17321494221687317, -0.17870140075683594, -0.6029587388038635, 0.31057727336883545, 0.3934972286224365, 0.27431750297546387, 0.23773974180221558, -0.0001235105301020667, -0.023241054266691208, 0.3910425901412964, -0.19182679057121277, -0.25903716683387756, -0.026731863617897034, -0.37426379323005676, -0.42014968395233154, -0.1484018713235855, -0.17796170711517334, 0.0797271579504013, -0.28638386726379395, 0.10791464149951935, 0.37109869718551636, 0.2191394865512848, 0.3876255750656128, 0.12552215158939362, 0.43912947177886963, 0.5360848903656006, -0.1845330446958542, -0.07084203511476517, 0.10654368996620178, -0.16276800632476807, 0.27504828572273254, 0.17808592319488525, -0.08070624619722366, 0.20445853471755981, 0.17354007065296173, -0.02094259485602379, 0.06422117352485657, 0.36605027318000793, 0.14449189603328705, 0.3109256327152252, -0.4145331382751465, 0.19081002473831177, 0.23902654647827148, 0.7586013674736023, -0.33890190720558167, -0.43803614377975464, -0.08681201934814453, 0.16902992129325867, -0.2703787088394165, 0.1488962173461914, -0.03615174442529678, -0.17004315555095673, 0.29794347286224365, -0.16484501957893372, -0.4038982689380646, -0.28583595156669617, 0.3131333887577057, 0.07620565593242645, 0.44413867592811584, 0.012992743402719498, 0.1372986137866974, 0.4096086323261261, -0.10149863362312317, -0.04746043682098389, 0.17214033007621765, -0.28393885493278503, 0.05069093406200409, 0.16916106641292572, -0.2852404713630676, -0.15912529826164246, 0.07876966893672943, 0.3009272813796997, 0.17591546475887299, -0.32081592082977295, -0.1262311041355133, -0.19528774917125702, -0.09716727584600449, 0.2797226011753082, 0.0889272689819336, 0.028729725629091263, -0.05191240459680557, 0.40556806325912476, 0.6368997097015381, 0.22585099935531616, -0.07371257990598679, 0.15132062137126923, -0.3014291226863861, -0.2974283695220947, -0.08742550015449524, 0.2769134044647217, -0.18782220780849457, -0.08032958209514618, -0.2514245808124542, 0.14493229985237122, -0.16072243452072144, -0.08611374348402023, 0.32906097173690796, -0.11382263153791428, 0.1629011332988739, 0.02083689346909523, 0.17003516852855682, -0.1408059298992157, -0.2607526481151581, -0.023827308788895607, 0.036417387425899506, 0.005956590175628662, 0.15469537675380707, 0.10649652779102325, 0.09815841913223267, 0.1805330216884613, -0.09652120620012283, -0.09712596237659454, -0.18322961032390594, -0.3297603726387024, 0.18401986360549927, 0.05294153839349747, 0.03538469225168228, -0.1530471295118332, 0.11695224791765213, 0.02728147804737091, -0.15503710508346558, -0.2040177583694458, 0.22597840428352356, -0.131504625082016, -0.345287024974823, -0.19030043482780457, 0.0012859078124165535, -0.2778306007385254, -0.4454154074192047, -0.03133947402238846, 0.05218801274895668, -0.24589920043945312, -0.21384285390377045, 0.015332341194152832, 0.07654702663421631, -0.3249949812889099, -0.11814626306295395, 0.24165287613868713, 0.7265820503234863, -0.5139055848121643, -0.2789267599582672, -0.07644464075565338, -0.3277510404586792, 0.22452202439308167, 0.2515984773635864, -0.16154272854328156, 0.24883705377578735, -0.30006858706474304, 0.0010974332690238953, 0.33113640546798706, -0.38044273853302, -0.6101977229118347, 0.18799133598804474, -0.054063208401203156, -0.050557941198349, 0.1124405637383461, 0.12940628826618195, 0.13972461223602295, -0.3284977376461029, -0.5146920680999756, -0.01576325297355652, -0.023205837234854698, 0.03065444342792034, -0.17653082311153412, -0.6106559634208679, 0.20204177498817444, -0.004053501412272453, 0.06482597440481186, 0.20288100838661194, 0.2194608449935913, 0.25281238555908203, 0.4670444130897522, -0.06755165755748749, 0.09775972366333008, 0.21564564108848572, 0.4710693359375, 0.27308470010757446, 0.06700879335403442, 0.060132429003715515, -0.1762898862361908, 0.16271069645881653, 0.1490880846977234, 0.22796563804149628, -0.21235992014408112, -0.06180128827691078, -0.5251750946044922, -0.12855392694473267, -0.32353124022483826, -0.27175870537757874, -0.02874155342578888, 0.09019261598587036, 0.24465462565422058, -0.11216177046298981, -0.2586705684661865, 0.24789632856845856, -0.22944886982440948, 0.10921849310398102, -0.12076474726200104, 0.4380154013633728, -0.2130047231912613, -0.011913352645933628, -0.028282195329666138, 0.19454234838485718, 0.2381058931350708, -0.3213099539279938, -0.08599206060171127, 0.4823783338069916, -0.3050896227359772, 0.27628618478775024, 0.36184147000312805, 0.20527563989162445, 0.26006633043289185, -0.4229332506656647, 0.22897213697433472, 0.1232643723487854, -0.07466600090265274, 0.15778574347496033, -0.18875062465667725, -0.09270767867565155, -0.00885530561208725, 0.26205185055732727, -0.04181276634335518, -0.02757992409169674, 0.33489999175071716, -0.19639915227890015, -0.08839970082044601, -0.2597971260547638, -0.20728380978107452, -0.24967320263385773, -0.282940149307251, -0.26051393151283264, 0.01711660623550415, 0.21265538036823273, 0.4123401343822479, -0.13853059709072113, 0.029503192752599716, 0.35908305644989014, 0.06739874929189682, -0.006564034149050713, -0.21854110062122345, 0.4872529208660126, 0.3576417863368988, 0.020248491317033768, -0.1737888753414154, 0.19965557754039764, 0.16900596022605896, -0.07507920265197754, 0.24545952677726746, 0.10359891504049301, -0.1709522306919098, 0.05860196053981781, -0.0797954648733139, -0.04752222076058388, -0.051934752613306046, 0.11764618754386902, 0.10864978283643723, 0.339751660823822, -0.24607305228710175, -0.06746113300323486, -0.33428099751472473, -0.6024011373519897, -0.34080934524536133, 0.16914762556552887, -0.32196033000946045, -0.16436225175857544, -0.030135761946439743, 0.2658127546310425, -0.03774299845099449, 0.21602970361709595, 0.10990430414676666, 0.2593461871147156, -0.08485779166221619, 0.14228537678718567, -0.2388988882303238, 0.018831273540854454, -0.15929105877876282, -0.028754765167832375, 0.35455912351608276, 0.06279121339321136, 0.2899080812931061, -0.5861014723777771, -0.24623845517635345, -1.000970721244812, -0.18789950013160706, 0.11994908004999161, 0.003207370638847351, 0.15407195687294006, 0.4157361090183258, 0.3913271427154541, 0.2890346050262451, 0.06032320857048035, 0.278176873922348, -0.2399691343307495, 0.15308719873428345, -0.2830752432346344, -0.1520240753889084, 0.09306363016366959, -0.05928919464349747, -0.2569686472415924, -0.4589643180370331, -0.22088322043418884, 0.29607683420181274, 0.13601309061050415, 0.11073443293571472, 0.0468280166387558, 0.24368727207183838, -0.048304248601198196, 0.0023812209255993366, -0.20825649797916412, 0.009637060575187206, 0.034433718770742416, 0.2957967519760132, -0.13250640034675598, -0.41188424825668335, 0.25554969906806946, 0.20018544793128967, 0.028118453919887543, -0.2047903835773468, -0.5103384256362915, -0.3684627413749695, -0.003445753827691078, 0.406212717294693, 0.05485820397734642, 0.4638823866844177, 0.18918851017951965, 0.06250888109207153, -0.012224134057760239, -0.010842930525541306, -0.36780649423599243, -0.08956851810216904, 0.19723084568977356, 0.5582020282745361, 0.41642239689826965, 0.4434441030025482, -0.14518561959266663, 0.5577759146690369, 0.08764258027076721, 0.009519778192043304, 0.2989995777606964, -0.3636428415775299, 0.4048641324043274, -0.04204418510198593, -0.33220624923706055, 0.18261225521564484, -0.19452688097953796, 0.3318015933036804, 0.3361845314502716, 0.14699450135231018, 0.10407478362321854, -0.09481789171695709, -0.1702917367219925, -0.13299384713172913, -0.40285736322402954, -0.14856331050395966, 0.5888513326644897, 0.14368923008441925, 0.2323760688304901, 0.02284877747297287, -0.3772394359111786, -0.14271685481071472, 0.4252016544342041, 0.3784025311470032, 0.030697237700223923, 0.09628387540578842, 0.16036264598369598, 0.009739059023559093, -0.5299112200737, 0.2029697448015213, 0.05652627721428871, 0.1712634414434433, 0.022037114948034286, 0.08570749312639236, 0.15114930272102356, -0.06974932551383972, 0.7038940191268921, -0.14085163176059723, 0.08775132894515991, -0.006686490029096603, 0.1629093587398529, 0.11044242233037949, -0.05152977257966995, -0.038497164845466614, 0.18245567381381989, 0.33319470286369324, 0.14456762373447418, -0.2590569257736206, -0.32965266704559326, 0.5500894784927368, 0.43401986360549927, -0.18557073175907135, -0.21353036165237427, -0.006779331713914871, -0.47588565945625305, -0.6366703510284424, -0.11366420239210129, -0.0540180578827858, -0.07404074817895889, -0.15436705946922302, 0.1138620674610138, 0.2564133107662201, -0.170711487531662, -0.15566660463809967, -0.08927701413631439, 0.1769658625125885, 0.4189610481262207, -0.056101396679878235, 0.17634938657283783, -0.051805734634399414, 0.11377639323472977, 0.39672693610191345, -0.07797825336456299, -0.387269526720047, -0.1244264766573906, -0.2225026935338974, -0.10311020165681839, 0.38662654161453247, 0.09103751927614212, 0.10346852242946625, 0.2654750645160675, 0.17718520760536194, -0.07700657844543457, 0.056506093591451645, 0.458566814661026, -0.07647417485713959, -0.3969673812389374, -0.4541281759738922, 0.3306320607662201, -0.1228722482919693, 0.01623031497001648, 0.2529272437095642, 0.42267775535583496, -0.10934664309024811, -0.21920114755630493, -0.1736413538455963, 0.9077011942863464, 0.08279284089803696, 0.03477371856570244, 0.27126818895339966, -0.10254869610071182, 0.673748254776001, -0.13173143565654755, 0.13284248113632202, -0.2610991299152374, -0.049230724573135376, -0.0813683569431305, 0.10122169554233551, -0.15584447979927063, 0.06356701999902725, -0.12616242468357086, 0.45672160387039185, 0.05989198386669159, -0.01406339555978775, 0.19176745414733887, 0.42028486728668213, -0.11783116310834885, -0.1718256175518036, -0.30968478322029114, 0.07607799768447876, 0.07585517317056656, 0.4237974286079407, -0.12206757068634033, -0.14694876968860626, 0.14396671950817108, -0.21936501562595367, -0.6025183796882629, 0.06877654790878296, -0.20065021514892578, 0.0874660313129425, 0.13611187040805817, 0.073136106133461, 0.24864909052848816, 0.17613698542118073, 0.4182499051094055, 0.09585034847259521, -0.3794706463813782, 0.22383740544319153, -0.1555958390235901, -0.17851784825325012, -0.07026547938585281, 0.32493436336517334, -0.06142701953649521, -0.25740858912467957, -0.4357275068759918, -0.20550799369812012, -0.011179729364812374, -0.299999475479126, 0.10222554206848145, -0.25200390815734863, 0.5220276713371277, -0.11844730377197266, -0.09680314362049103, -0.07299049198627472, -0.16120822727680206, -0.34481680393218994, 0.018516434356570244, -0.044269904494285583, -0.1120540201663971, 0.03909262269735336, -0.1782473921775818, -0.057041630148887634, -0.0896248072385788, 0.23396208882331848, -0.37154051661491394, -0.18170320987701416, 0.5752362012863159, 0.3446541726589203, -0.015580233186483383, -0.23055949807167053, -0.2190036177635193, -0.22226522862911224, -0.8353120684623718, 0.1835678368806839, 0.2915768325328827, 0.16719476878643036, -0.06725117564201355, 0.5296767354011536, 0.15224596858024597, 0.07857628166675568, -0.19427140057086945, -0.3521624207496643, -0.26186516880989075, -0.002398073673248291, 0.2342168539762497, 0.1948966383934021, -0.006325434893369675, -0.0003677327185869217, 0.13841654360294342, -0.477448970079422, -0.19389715790748596, 0.00921410508453846, 0.06375117599964142, -0.09112533926963806, 0.6803829669952393, 0.17199352383613586, 0.26997122168540955, 0.025804299861192703, 0.006825346499681473, 0.036996856331825256, -0.010118642821907997, -0.011070862412452698, -0.2875039577484131, 0.1807175874710083, -0.13701295852661133, -0.41305533051490784, 0.026775114238262177, -0.10238875448703766, -0.07607527077198029, -0.0343732051551342, 0.06970103085041046, 0.18790027499198914, -0.06361640989780426, 0.07086852192878723, 0.4111151695251465, -0.14884325861930847, -0.13037344813346863, 0.14191710948944092, 0.34178510308265686, 0.5433331727981567, 0.14605514705181122, 0.39775100350379944, -0.09449160099029541, 0.08448457717895508, 0.174099862575531, 0.1218339204788208, 0.21440666913986206, 0.0460660420358181, 0.3353440761566162, -0.13723938167095184, 0.0646514892578125, 0.31660497188568115, 0.20939293503761292, 0.47509199380874634, -0.10007387399673462, -0.07563814520835876, 0.30471891164779663, 0.03431437909603119, -0.3281184434890747, -0.15996307134628296, 0.26569539308547974, -0.04413171485066414, -0.07750549912452698, 0.21222934126853943, 0.17083550989627838, -0.15684498846530914, 0.3383665084838867, 0.11900617927312851, 0.40636810660362244, -0.20767842233181, 0.10750056803226471, 0.34484052658081055, -0.01843409612774849, 0.020521417260169983, -0.08403071016073227, 0.054331693798303604, 0.14791515469551086, -0.006914932280778885, -0.3325810134410858, 0.0007730089128017426, -0.04410794377326965, 0.32875731587409973, -0.0699126198887825, -0.3360919952392578, 0.18083080649375916, -0.19229990243911743, 0.12399253249168396, -0.1625455617904663, 0.032679229974746704, 0.396688312292099, 0.07305343449115753, -0.12372414022684097, -0.30085015296936035, 0.4938407242298126, 0.29632067680358887, -0.17256473004817963, -0.12681996822357178, -0.19060295820236206, -0.13638445734977722, 0.0668623298406601, -0.10833653807640076, -0.32337862253189087, 0.09207019954919815, 0.004757590591907501, -0.07733508944511414, -0.402557909488678, -0.13643351197242737, -0.22812801599502563, 0.32870566844940186, -0.1347249448299408, 0.11916123330593109, 0.22389250993728638, -0.004815556108951569, 0.23632799088954926, 0.28581613302230835, 0.46614718437194824, 0.2152848243713379, 0.44491147994995117, 0.2052202969789505, -0.06394876539707184, -0.03247483819723129, 0.11891256272792816, 0.04383135214447975, -0.05158856511116028, 0.1417502760887146, 0.05615615472197533, 0.029295077547430992, -0.02159888856112957, -0.3440898358821869, -0.051735769957304, -0.06654374301433563, -0.13672912120819092, 0.3235186040401459, -0.07577526569366455, -0.13499417901039124, -0.4974309504032135, 0.18117918074131012, -0.2072879672050476, -0.0507325641810894, 0.20207370817661285, -0.06056857481598854, 0.03585512936115265, 0.05794574320316315, 0.00714380107820034, -0.08926554024219513, 0.3542528748512268, 0.39613550901412964, 0.05713940039277077, -0.2331693172454834, -0.13735057413578033, -0.6080149412155151, 0.07228130102157593, 0.029527565464377403, -0.26065531373023987, -0.16070860624313354, -0.050468914210796356, -0.24220705032348633, -0.006700869649648666, 0.38354164361953735, -0.11394614726305008, 0.2681027352809906, 0.12058523297309875, -0.038993895053863525, -0.19143274426460266, -0.12587711215019226, 0.434354305267334, 0.10690781474113464, -0.13476142287254333, 0.05513765662908554, -0.11802016198635101, -0.13624753057956696, 0.1671074628829956, -0.03452744334936142, -0.1286477893590927, -0.3072926998138428, 0.14296039938926697, 0.07705756276845932, 0.3717907965183258, -0.1529374122619629, -0.30542781949043274, -0.4834333062171936, -0.22262607514858246, -0.4171457290649414, 0.27026820182800293, -0.08217208087444305, 0.071791872382164, -0.033122267574071884, 0.17940889298915863, -0.5594059228897095, 0.05337032675743103, 0.04798899590969086, 0.22274857759475708, -0.20276956260204315, 0.14648285508155823, -0.04881958290934563, -0.0336136631667614, 0.41084355115890503, -0.08755039423704147, -0.11982715129852295, -0.04907761514186859, -0.2409544587135315, -0.009733127430081367, 0.6197205781936646, -0.21841566264629364, -0.10496416687965393, -0.0750177651643753, 0.2192886471748352, -0.03596872836351395, -0.3054167926311493, -0.4327183663845062, 0.170247882604599, 0.11237924546003342, 0.2900763750076294, -0.0736742615699768, 0.21342849731445312, -0.31350699067115784, 0.09390561282634735, 0.0636194497346878, 0.20414073765277863, 0.17470920085906982, -0.3216533064842224, 0.03393018618226051, -0.06075941026210785 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
Hi @XuhuiZhou, As @lhoestq has well explained, you need to fork HF's repository, create a feature branch in your fork, push your changes to it and then open a Pull Request to HF's upstream repository. This is so because at HuggingFace Datasets we follow a development model called "Fork and Pull Model". You can find more information here: - [Understanding the GitHub flow](https://guides.github.com/introduction/flow/) - [Forking Projects](https://guides.github.com/activities/forking/) Alternatively, if you find all these steps too complicated, you can use the GitHub official command line tool: [GitHub CLI](https://cli.github.com/). Once installed, in order to create a Pull Request, you only need to use this command: ```shell gh pr create --web ``` This utility will automatically create the fork, push your changes and open a Pull Request, under the hood.
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
126
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? Hi @XuhuiZhou, As @lhoestq has well explained, you need to fork HF's repository, create a feature branch in your fork, push your changes to it and then open a Pull Request to HF's upstream repository. This is so because at HuggingFace Datasets we follow a development model called "Fork and Pull Model". You can find more information here: - [Understanding the GitHub flow](https://guides.github.com/introduction/flow/) - [Forking Projects](https://guides.github.com/activities/forking/) Alternatively, if you find all these steps too complicated, you can use the GitHub official command line tool: [GitHub CLI](https://cli.github.com/). Once installed, in order to create a Pull Request, you only need to use this command: ```shell gh pr create --web ``` This utility will automatically create the fork, push your changes and open a Pull Request, under the hood.
[ -0.21108287572860718, -0.2354266196489334, 0.053952109068632126, -0.12035365402698517, -0.01603766158223152, 0.057317398488521576, 0.07369105517864227, 0.33186933398246765, 0.27531057596206665, 0.03606095165014267, -0.1463586539030075, -0.14004185795783997, 0.32786688208580017, 0.3584642708301544, 0.205069899559021, -0.16436459124088287, 0.10162845253944397, 0.019257865846157074, -0.34863975644111633, -0.02590811625123024, -0.20463229715824127, 0.16035407781600952, -0.03233226388692856, 0.09144173562526703, -0.028047215193510056, 0.01908937096595764, -0.29398807883262634, 0.3911275863647461, -0.03637132793664932, -0.47281551361083984, 0.40349429845809937, 0.3701818287372589, 0.20427961647510529, 0.34893113374710083, -0.00011846525740111247, 0.01425284892320633, 0.23679547011852264, -0.041092514991760254, -0.2115548551082611, -0.10773144662380219, -0.26459088921546936, -0.4390319287776947, -0.13166268169879913, -0.13813082873821259, 0.03440528362989426, -0.09121812134981155, 0.15894857048988342, 0.33693403005599976, 0.38022011518478394, 0.22557960450649261, 0.12584063410758972, 0.42302578687667847, 0.4710550904273987, -0.21853820979595184, 0.08626756072044373, 0.06143929809331894, -0.1282147318124771, 0.29364094138145447, 0.08984073251485825, -0.05915893614292145, 0.03648822754621506, 0.21529121696949005, 0.07816608250141144, 0.2497442364692688, 0.4219130575656891, 0.07370021194219589, 0.16081644594669342, -0.39572781324386597, 0.14156776666641235, 0.23851686716079712, 0.6311099529266357, -0.35475924611091614, -0.37967073917388916, -0.07608135789632797, 0.03332015499472618, -0.11449071019887924, 0.14990636706352234, 0.0264802947640419, -0.16599832475185394, 0.32946333289146423, 0.0786605179309845, -0.5474176406860352, -0.23950058221817017, 0.23119446635246277, 0.18107318878173828, 0.2853419780731201, 0.0017944509163498878, 0.07891499251127243, 0.3799148499965668, -0.1323511004447937, -0.13234329223632812, 0.15751439332962036, -0.2554054260253906, 0.10316813737154007, 0.1107841208577156, -0.2356531322002411, -0.11034635454416275, -0.05506230145692825, 0.4048173129558563, 0.061330899596214294, -0.35432079434394836, -0.04447486251592636, -0.25737959146499634, 0.011174973100423813, 0.1744706928730011, -0.014997286722064018, -0.17847371101379395, -0.05999665707349777, 0.4562729001045227, 0.47767943143844604, 0.19871677458286285, -0.14513909816741943, 0.22038209438323975, -0.22681769728660583, -0.36702439188957214, -0.20109254121780396, 0.4068790674209595, -0.21968701481819153, -0.07142151892185211, -0.30438634753227234, 0.1304107904434204, -0.050197284668684006, -0.19430571794509888, 0.4044188857078552, -0.12183904647827148, 0.03698387369513512, 0.06399130076169968, 0.2810359001159668, -0.1574188768863678, -0.21968768537044525, -0.11348611861467361, -0.0748005211353302, 0.19717557728290558, 0.1814008355140686, 0.0033577829599380493, -0.010848302394151688, 0.062283240258693695, 0.1343209147453308, -0.19327329099178314, -0.12674817442893982, -0.21926169097423553, 0.2691921889781952, -0.030507072806358337, 0.20955099165439606, -0.02496635913848877, 0.21047578752040863, 0.12295937538146973, -0.11837169528007507, -0.1643955409526825, -0.025781407952308655, -0.22539696097373962, -0.297294557094574, -0.34805580973625183, 0.043844349682331085, -0.07914088666439056, -0.30154719948768616, -0.05415188521146774, 0.07782584428787231, -0.3137890696525574, -0.16406331956386566, 0.04726221039891243, 0.16169290244579315, -0.29039084911346436, -0.11994364857673645, 0.31450632214546204, 0.6965311169624329, -0.24584080278873444, -0.3773680627346039, -0.15988652408123016, -0.13595452904701233, 0.07212413847446442, 0.3017198443412781, -0.1499698907136917, 0.1195334941148758, -0.2713194191455841, 0.16230358183383942, 0.2666550576686859, -0.4356096088886261, -0.5098180770874023, 0.22223299741744995, -0.09000597149133682, -0.05613429844379425, 0.03602699935436249, 0.09098917245864868, 0.13521945476531982, -0.2080690711736679, -0.547916054725647, 0.028452161699533463, 0.05753593519330025, 0.06038583815097809, -0.21718591451644897, -0.5456909537315369, 0.04745827987790108, 0.04272541031241417, 0.11204947531223297, 0.3481539189815521, 0.4164612889289856, 0.11774351447820663, 0.3645390272140503, -0.18297535181045532, 0.13381671905517578, 0.2897297739982605, 0.5038340091705322, 0.40744131803512573, 0.007103948388248682, 0.030190378427505493, -0.29823383688926697, 0.1431921124458313, 0.042316168546676636, 0.25409141182899475, -0.12660691142082214, -0.12442782521247864, -0.4942823648452759, -0.09517897665500641, -0.28243598341941833, -0.18898195028305054, 0.0047093890607357025, 0.06790374964475632, 0.06749193370342255, -0.035572558641433716, -0.1386609971523285, 0.3957074284553528, -0.21467825770378113, 0.16613870859146118, -0.1394137293100357, 0.5787005424499512, -0.16046138107776642, 0.05813223868608475, 0.10758642852306366, 0.13329006731510162, 0.24447941780090332, -0.22594089806079865, -0.15143117308616638, 0.41786903142929077, -0.4214973747730255, 0.24109528958797455, 0.5301557183265686, 0.20470942556858063, 0.24717338383197784, -0.5035053491592407, 0.3256242275238037, 0.1582869589328766, -0.05246042460203171, 0.11651899665594101, -0.007210969924926758, -0.038891926407814026, 0.061716869473457336, 0.22402453422546387, 0.05153041332960129, 0.06389426440000534, 0.42885273694992065, -0.22044773399829865, -0.024872437119483948, -0.11231507360935211, -0.22109390795230865, -0.41168203949928284, -0.05366131663322449, -0.3122764527797699, -0.11003187298774719, 0.28350138664245605, 0.5371800065040588, -0.13353048264980316, 0.12549126148223877, 0.43504607677459717, -0.0412503182888031, 0.041359417140483856, 0.019250866025686264, 0.26746851205825806, 0.05427267402410507, 0.07374996691942215, -0.1289021372795105, 0.250738263130188, 0.043552156537771225, 0.02667335420846939, 0.15053141117095947, 0.1345537006855011, -0.06771687418222427, -0.04254288226366043, -0.07374551892280579, -0.11197004467248917, -0.03482048958539963, 0.03372751548886299, -0.09661082923412323, 0.21125102043151855, -0.3681173324584961, -0.034630194306373596, -0.3610075116157532, -0.6220448613166809, -0.365546315908432, 0.14380718767642975, -0.4196521043777466, -0.2589598298072815, -0.027066122740507126, 0.3142707645893097, -0.100051149725914, 0.15562137961387634, 0.12368212640285492, 0.17500902712345123, -0.12230462580919266, 0.20792913436889648, -0.2587128281593323, -0.05621516704559326, -0.16043856739997864, -0.04373658448457718, 0.2674291431903839, 0.20799104869365692, 0.3205576241016388, -0.5224849581718445, -0.13171696662902832, -0.9016185402870178, -0.11449560523033142, 0.21933309733867645, 0.04595915973186493, 0.11469583958387375, 0.3226826786994934, 0.4915759563446045, 0.16849224269390106, 0.036383889615535736, 0.2897361218929291, -0.1280544102191925, 0.08441402018070221, -0.2710864841938019, -0.18077556788921356, 0.11455929279327393, 0.017579175531864166, -0.07768499106168747, -0.5018089413642883, -0.3658219873905182, 0.33813732862472534, 0.0024155080318450928, 0.05087094008922577, 0.20508572459220886, 0.18856781721115112, 0.002442612312734127, 0.13670355081558228, -0.12559592723846436, 0.009396892972290516, 0.0562891848385334, 0.31248795986175537, -0.21251751482486725, -0.34245988726615906, 0.3461085557937622, 0.20880937576293945, -0.06225457414984703, -0.24583344161510468, -0.5297683477401733, -0.14046074450016022, -0.03561776876449585, 0.5182727575302124, 0.01567101664841175, 0.4950362741947174, 0.17840322852134705, -0.021653717383742332, -0.008025811985135078, -0.036884505301713943, -0.2231236696243286, 0.053745292127132416, 0.21791258454322815, 0.38349270820617676, 0.41088753938674927, 0.49330684542655945, -0.10121043771505356, 0.6489819884300232, 0.1351567804813385, 0.09926746785640717, 0.3816056549549103, -0.2987953722476959, 0.3904781639575958, -0.14697563648223877, -0.2986431121826172, -0.0016429314855486155, -0.15195468068122864, 0.22343802452087402, 0.3047824501991272, 0.13894769549369812, 0.15923866629600525, -0.09365355223417282, -0.3841911852359772, -0.10081090778112411, -0.42000433802604675, -0.15248708426952362, 0.365381121635437, 0.13393673300743103, 0.22606119513511658, -0.09653442353010178, -0.387535035610199, -0.14477986097335815, 0.4546307921409607, 0.48562073707580566, 0.07883568108081818, 0.19010896980762482, 0.2211531549692154, 0.03646688535809517, -0.4469136595726013, 0.29039841890335083, 0.1320078819990158, -0.022710364311933517, -0.045388273894786835, 0.04289807379245758, 0.10851672291755676, -0.1409751921892166, 0.5532925724983215, 0.011217867955565453, 0.21674618124961853, -0.09855039417743683, 0.022987626492977142, 0.0994180366396904, 0.010795660316944122, 0.043710965663194656, 0.18378525972366333, 0.3269132673740387, 0.05863984674215317, -0.4327538013458252, -0.460808664560318, 0.44640931487083435, 0.23598143458366394, -0.19685934484004974, -0.008538568392395973, -0.04121023789048195, -0.5688760876655579, -0.7045996189117432, -0.1678561270236969, -0.007856154814362526, -0.18797367811203003, -0.12092987447977066, 0.07760651409626007, 0.1903192549943924, -0.15689319372177124, -0.1972069889307022, 0.007822904735803604, 0.18017813563346863, 0.2754974365234375, -0.03637424856424332, 0.15666553378105164, -0.024772286415100098, 0.10787397623062134, 0.49782395362854004, 0.005208279937505722, -0.2094109058380127, -0.1368769407272339, -0.053946416825056076, -0.1945204734802246, 0.32702410221099854, 0.21491871774196625, 0.2794046103954315, 0.5513017177581787, 0.2594566345214844, -0.22752755880355835, 0.005349007900804281, 0.3613305687904358, -0.09192914515733719, -0.3410686254501343, -0.37209606170654297, 0.5128757953643799, -0.2919177711009979, 0.02531561255455017, 0.30095821619033813, 0.6141802072525024, -0.04244149476289749, -0.10704496502876282, -0.2116152048110962, 0.8171720504760742, 0.10980367660522461, 0.023317961022257805, 0.3205430805683136, -0.3169652223587036, 0.49933895468711853, -0.18347321450710297, -0.07007186114788055, -0.22372089326381683, -0.10225675255060196, -0.12986911833286285, 0.16353724896907806, -0.1475667953491211, -0.02116541564464569, -0.02489142119884491, 0.48757505416870117, 0.21942655742168427, 0.1664322316646576, 0.1990479677915573, 0.4001985490322113, -0.14821650087833405, -0.1841365247964859, -0.3412182331085205, 0.13239185512065887, -0.10164906084537506, 0.520121157169342, -0.04268300533294678, -0.36069029569625854, 0.03999732807278633, -0.1636303961277008, -0.495930016040802, 0.09777471423149109, -0.21162132918834686, 0.13163664937019348, 0.06448820978403091, 0.12858989834785461, 0.18964198231697083, -0.1768207848072052, 0.4203736186027527, 0.08910168707370758, -0.370514839887619, 0.2290133237838745, -0.08219299465417862, -0.08821634203195572, -0.09380721300840378, 0.362807959318161, 0.12929825484752655, -0.2935974597930908, -0.4153260290622711, -0.11989162117242813, -0.028805911540985107, -0.39683419466018677, 0.15161839127540588, -0.3641490340232849, 0.06774619221687317, -0.048580244183540344, -0.09872850775718689, 0.07227077335119247, -0.07356579601764679, -0.3161447048187256, 0.03890358284115791, -0.15567001700401306, -0.09972057491540909, -0.14705199003219604, -0.09519684314727783, -0.004418537020683289, -0.11973460018634796, 0.21529315412044525, -0.4728778302669525, 0.023133378475904465, 0.47910088300704956, 0.43171265721321106, -0.08307598531246185, -0.13882887363433838, -0.2956308424472809, 0.057126641273498535, -0.8023344874382019, 0.20803001523017883, -0.034724313765764236, 0.12687276303768158, -0.23694905638694763, 0.5104191303253174, 0.1861516237258911, 0.030339445918798447, -0.14084063470363617, -0.3329783082008362, -0.18921226263046265, 0.14324650168418884, 0.12135012447834015, 0.1389915496110916, -0.01548154279589653, 0.1325034648180008, 0.13118207454681396, -0.3261326253414154, -0.2453271895647049, -0.05921585112810135, 0.008890418335795403, -0.1425933986902237, 0.5837334394454956, 0.06773710250854492, 0.33273833990097046, 0.038599882274866104, -0.0028793402016162872, -0.0786757841706276, -0.15129247307777405, -0.015379865653812885, -0.30947333574295044, 0.12701870501041412, -0.19380003213882446, -0.3463670015335083, -0.06613035500049591, -0.23694418370723724, -0.0994158536195755, 0.024589702486991882, 0.11646762490272522, 0.06737612932920456, -0.09986771643161774, 0.10071111470460892, 0.3244680166244507, -0.2328873574733734, -0.1834409385919571, 0.11278180032968521, 0.49622905254364014, 0.5475104451179504, -0.11236808449029922, 0.3527323603630066, -0.21551361680030823, 0.036101751029491425, 0.0072235469706356525, 0.15174764394760132, 0.24132318794727325, -0.12308066338300705, 0.40924233198165894, -0.09621457755565643, 0.03370879963040352, 0.19937966763973236, 0.2724165618419647, 0.2172192633152008, -0.030129263177514076, 0.00025169737637043, 0.19705799221992493, 0.03343053534626961, -0.24071823060512543, 0.00438819220289588, 0.27738845348358154, -0.31658780574798584, 0.00014873594045639038, 0.24450922012329102, 0.24341994524002075, 0.032686442136764526, 0.20975090563297272, 0.15460246801376343, 0.3843672573566437, -0.1354886293411255, -0.005950337275862694, 0.28110817074775696, -0.056639157235622406, 0.07233727723360062, -0.14555716514587402, 0.1488768309354782, 0.266609251499176, 0.08120878040790558, -0.2176891267299652, -0.019149744883179665, -0.00005658343434333801, 0.2646210789680481, 0.06885839253664017, -0.4345844089984894, -0.012428924441337585, -0.18144291639328003, 0.19808922708034515, -0.12556695938110352, 0.023494407534599304, 0.2571658790111542, 0.07224423438310623, -0.39083412289619446, -0.18623267114162445, 0.6674994826316833, 0.2729698717594147, -0.006773900240659714, -0.16179056465625763, -0.17661604285240173, -0.24125519394874573, 0.047254253178834915, -0.1085466593503952, -0.30097395181655884, 0.14662495255470276, 0.034285351634025574, 0.1258670836687088, -0.21880725026130676, -0.05671718716621399, -0.15338295698165894, 0.35543543100357056, -0.10988552868366241, 0.1494349092245102, 0.3063845932483673, -0.1160859614610672, 0.09941636025905609, 0.24215862154960632, 0.4903848171234131, 0.08804415166378021, 0.11182188987731934, 0.17830193042755127, 0.13034480810165405, -0.16388310492038727, 0.14864005148410797, -0.13576604425907135, -0.15188252925872803, 0.116273432970047, 0.10039231181144714, 0.054759226739406586, -0.09635152667760849, -0.27571430802345276, -0.28074130415916443, 0.032741427421569824, -0.12580449879169464, 0.43162620067596436, -0.1865399032831192, -0.14931492507457733, -0.2894168496131897, 0.02951594442129135, -0.19190484285354614, 0.012049112468957901, 0.19103997945785522, -0.20290081202983856, 0.016405846923589706, 0.037601154297590256, 0.030353259295225143, -0.18488074839115143, 0.38305237889289856, 0.36889830231666565, 0.10847602784633636, -0.04044674336910248, -0.1493474841117859, -0.522102952003479, -0.09119903296232224, -0.06462839245796204, -0.31108754873275757, 0.08188943564891815, 0.021667929366230965, -0.1355513036251068, -0.05172518640756607, 0.4342082142829895, -0.30803948640823364, 0.36085402965545654, 0.13532334566116333, 0.12330955266952515, -0.21881259977817535, -0.3192840814590454, 0.33449167013168335, 0.10198336839675903, -0.18569114804267883, 0.10057589411735535, 0.02844218909740448, -0.10476270318031311, 0.228631392121315, 0.0314074382185936, 0.06853210926055908, -0.7217938899993896, 0.05771021544933319, 0.010811183601617813, 0.2015741765499115, -0.25996434688568115, -0.41106927394866943, -0.28141501545906067, -0.3405730724334717, -0.3281994163990021, 0.10834183543920517, -0.25609090924263, 0.34937211871147156, 0.09750793874263763, 0.014631595462560654, -0.5679985284805298, 0.039332564920186996, 0.10836537182331085, 0.12243568897247314, -0.16011497378349304, 0.23942729830741882, -0.2191828489303589, -0.02463211864233017, 0.527411937713623, 0.014111392199993134, -0.08249932527542114, 0.0562007874250412, -0.30227649211883545, -0.13463076949119568, 0.5225580334663391, -0.11658383905887604, -0.08328623324632645, -0.04012371972203255, 0.27800846099853516, 0.1697806715965271, -0.3663472533226013, -0.46278953552246094, 0.1363793909549713, 0.004142659716308117, 0.28462570905685425, -0.05903176963329315, 0.2200993299484253, -0.14469082653522491, 0.0008830204606056213, 0.10614895820617676, 0.18280640244483948, 0.16832974553108215, -0.34485316276550293, 0.061668504029512405, -0.018939606845378876 ]
https://github.com/huggingface/datasets/issues/2075
ConnectionError: Couldn't reach common_voice.py
Hi @LifaSun, thanks for reporting this issue. Sometimes, GitHub has some connectivity problems. Could you confirm that the problem persists?
When I run: from datasets import load_dataset, load_metric common_voice_train = load_dataset("common_voice", "zh-CN", split="train+validation") common_voice_test = load_dataset("common_voice", "zh-CN", split="test") Got: ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/master/datasets/common_voice/common_voice.py Version: 1.4.1 Thanks! @lhoestq @LysandreJik @thomwolf
20
ConnectionError: Couldn't reach common_voice.py When I run: from datasets import load_dataset, load_metric common_voice_train = load_dataset("common_voice", "zh-CN", split="train+validation") common_voice_test = load_dataset("common_voice", "zh-CN", split="test") Got: ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/master/datasets/common_voice/common_voice.py Version: 1.4.1 Thanks! @lhoestq @LysandreJik @thomwolf Hi @LifaSun, thanks for reporting this issue. Sometimes, GitHub has some connectivity problems. Could you confirm that the problem persists?
[ -0.48764657974243164, -0.08469868451356888, -0.07917766273021698, -0.004803553223609924, 0.390356183052063, 0.012986831367015839, 0.27043020725250244, 0.30163294076919556, -0.06318797171115875, 0.3089747130870819, -0.21267537772655487, -0.1347053200006485, 0.1226181611418724, 0.017009882256388664, -0.00942800473421812, -0.09317848086357117, -0.004478849470615387, 0.002983003854751587, 0.19253353774547577, 0.02476929873228073, -0.03877802938222885, 0.08584337681531906, -0.17600569128990173, 0.31234967708587646, -0.18926657736301422, -0.05077974498271942, 0.05891142785549164, 0.07704471051692963, -0.21321988105773926, -0.35607561469078064, 0.46765387058258057, 0.027777815237641335, -0.041264601051807404, 0.8190290331840515, -0.0001130046002799645, 0.14519168436527252, 0.441400408744812, -0.06832539290189743, -0.30761227011680603, -0.4945734143257141, -0.090479776263237, -0.016524476930499077, 0.13038772344589233, 0.16184431314468384, -0.16147765517234802, 0.051842015236616135, 0.06876290589570999, -0.2308126837015152, 0.359199583530426, 0.3560592234134674, 0.21533659100532532, 0.20065103471279144, 0.3548305630683899, -0.1868591010570526, -0.05210921913385391, -0.18926186859607697, -0.02189435064792633, 0.8155436515808105, 0.08653397858142853, -0.22358813881874084, 0.22521886229515076, 0.13622604310512543, 0.11471386253833771, -0.04245591536164284, -0.09717189520597458, -0.04460648074746132, 0.11514655500650406, -0.3021116256713867, 0.046598855406045914, 0.2485734224319458, 0.40802061557769775, -0.4108530282974243, -0.3393286466598511, -0.009671814739704132, 0.06880059093236923, -0.19190078973770142, 0.17943722009658813, 0.0755963996052742, -0.37479329109191895, 0.08968988060951233, -0.43958204984664917, -0.3170168399810791, -0.16873836517333984, 0.22199593484401703, -0.038802698254585266, 0.07056142389774323, -0.1115494966506958, 0.07635331898927689, 0.17804518342018127, 0.0002033635973930359, -0.343487948179245, 0.1713792234659195, 0.0020534731447696686, 0.4054924249649048, -0.5099366903305054, -0.02702934294939041, -0.24460262060165405, -0.3834080994129181, 0.3409876227378845, -0.0012130402028560638, -0.06601519137620926, -0.044458262622356415, -0.21843154728412628, 0.1957034468650818, 0.3238677680492401, 0.2319251447916031, -0.01455380767583847, 0.227080836892128, 0.41106313467025757, 0.21892142295837402, -0.095086470246315, -0.04420885443687439, -0.35073673725128174, -0.3648315370082855, 0.19443073868751526, -0.01370084285736084, 0.38097453117370605, -0.3023434281349182, -0.26574668288230896, 0.09506785869598389, -0.20451262593269348, -0.027401326224207878, -0.04868941381573677, 0.3798324167728424, -0.1350039541721344, 0.038254741579294205, -0.12368294596672058, 0.4221952557563782, -0.1185595765709877, 0.08154082298278809, -0.21664081513881683, -0.09030944108963013, -0.11282669007778168, 0.09766927361488342, 0.04931310936808586, -0.39842531085014343, 0.20740044116973877, 0.03797578439116478, 0.35722577571868896, -0.3074055016040802, -0.0891110748052597, -0.08565783500671387, -0.5720182061195374, 0.1642294079065323, 0.053368549793958664, 0.21465174853801727, 0.2993556559085846, -0.1587568074464798, -0.11701202392578125, -0.10496682673692703, -0.30462414026260376, -0.4716556668281555, 0.048219531774520874, 0.22573281824588776, -0.010269979014992714, 0.056962087750434875, -0.40908440947532654, -0.17717738449573517, 0.14865002036094666, -0.29361554980278015, -0.08806068450212479, -0.3016136884689331, 0.05975697562098503, -0.13160476088523865, 0.4870407283306122, 0.07138654589653015, 0.05277187004685402, -0.16944827139377594, -0.03511974588036537, -0.10186095535755157, 0.05483067408204079, 0.5269743800163269, -0.24845683574676514, 0.06013917550444603, -0.2221783995628357, 0.15609656274318695, 0.5217101573944092, -0.6526105999946594, -0.4879724085330963, 0.40222153067588806, -0.2358698546886444, 0.06717071682214737, -0.09392925351858139, -0.2874569594860077, 0.039274223148822784, -0.03234380483627319, 0.5161758065223694, 0.11746370047330856, -0.09799540042877197, -0.19687727093696594, 0.040790874511003494, -0.20472349226474762, 0.17068085074424744, 0.021109972149133682, -0.00974881649017334, 0.07874064892530441, 0.162361279129982, -0.026978328824043274, 0.41640332341194153, 0.10372830927371979, 0.009008758701384068, 0.224887877702713, 0.31085148453712463, -0.22777621448040009, -0.15559397637844086, -0.1596636176109314, 0.15187039971351624, 0.1177368238568306, 0.2797803580760956, 0.3692602813243866, -0.12914679944515228, -0.12520712614059448, -0.4446753263473511, -0.025785572826862335, -0.23102088272571564, 0.062279608100652695, 0.05680876970291138, 0.03203130140900612, 0.06463129818439484, 0.21935419738292694, -0.18407683074474335, 0.1622600555419922, -0.28167158365249634, 0.1097334697842598, -0.13200503587722778, 0.46922510862350464, -0.2606515884399414, -0.034806326031684875, 0.22117778658866882, 0.2767658233642578, 0.045645855367183685, -0.07883874326944351, -0.21470040082931519, 0.3152984082698822, -0.31785985827445984, 0.23517538607120514, 0.12059807777404785, 0.2831677198410034, 0.11759518831968307, -0.5911061763763428, 0.059186726808547974, 0.14855428040027618, -0.023240353912115097, 0.042457327246665955, 0.3778439164161682, 0.23864087462425232, 0.1728036105632782, 0.44965919852256775, 0.07263385504484177, 0.08587471395730972, 0.2909102141857147, 0.24765712022781372, -0.13427528738975525, 0.14535768330097198, 0.1616976261138916, -0.17191874980926514, 0.3192305564880371, -0.18308435380458832, -0.3405320644378662, -0.16514968872070312, 0.38298681378364563, -0.08322332054376602, 0.10789358615875244, 0.11361593753099442, -0.13908278942108154, -0.11291074007749557, -0.013241579756140709, -0.008658826351165771, 0.23839280009269714, 0.09118872880935669, 0.010603703558444977, 0.3226596415042877, -0.2620111405849457, 0.0036355052143335342, 0.05493541061878204, 0.058323509991168976, 0.17430728673934937, 0.25894466042518616, 0.02267284505069256, -0.021720480173826218, -0.0456661731004715, -0.2580975592136383, -0.2093355804681778, 0.1478905826807022, -0.18081510066986084, 0.14808440208435059, -0.08666359633207321, 0.013279713690280914, -0.08053742349147797, -0.3049546182155609, -0.5015803575515747, -0.2510823905467987, -0.1252114623785019, 0.1089012622833252, 0.3503382205963135, 0.26148808002471924, -0.039821118116378784, -0.10080395638942719, 0.1907770186662674, -0.2764287292957306, 0.06049598753452301, -0.21828550100326538, -0.224388986825943, 0.07060550153255463, 0.0844239890575409, -0.31232014298439026, 0.02334488555788994, -0.22959047555923462, -0.13746386766433716, -0.07820525020360947, -0.11752974987030029, 0.008350994437932968, -0.24554918706417084, 0.30561739206314087, 0.18163391947746277, 0.3986811637878418, 0.23304061591625214, -0.006505404599010944, 0.421760231256485, -0.2188815474510193, -0.021995909512043, 0.04424726963043213, -0.06340396404266357, 0.022656334564089775, 0.1767362356185913, -0.2832998037338257, -0.4118849039077759, -0.3967013657093048, 0.23751240968704224, -0.1698884814977646, 0.0501052588224411, 0.23551663756370544, 0.12342554330825806, -0.04736362025141716, 0.07053470611572266, 0.30456867814064026, -0.16424299776554108, -0.36542007327079773, 0.04842996597290039, -0.08567164093255997, -0.1601705253124237, 0.17187091708183289, 0.23913253843784332, 0.5762708187103271, -0.07253574579954147, -0.4448830485343933, -0.016850074753165245, -0.05347468703985214, 0.3242330849170685, 0.10211090743541718, -0.007223786786198616, -0.01704724133014679, -0.09059707075357437, -0.05767223238945007, 0.140351802110672, -0.23528552055358887, -0.06298074871301651, 0.2043685019016266, 0.3051239550113678, 0.12385095655918121, 0.5398367047309875, -0.1348453164100647, 0.6648234128952026, 0.29272639751434326, 0.15644361078739166, 0.18793362379074097, -0.20863910019397736, 0.3413589894771576, -0.2027699053287506, -0.4419170022010803, 0.1032792404294014, -0.1708299219608307, -0.07576721161603928, 0.08268660306930542, 0.17492905259132385, 0.03571166843175888, -0.37925979495048523, -0.45151153206825256, -0.14046308398246765, -0.21200965344905853, -0.2305961400270462, -0.24948161840438843, 0.09731210023164749, 0.08861933648586273, -0.025527939200401306, -0.11314433813095093, -0.08588746190071106, -0.016193153336644173, 0.44768863916397095, -0.13470524549484253, 0.13764162361621857, -0.23221813142299652, -0.25183960795402527, -0.3093475103378296, 0.18620318174362183, 0.0572027862071991, 0.4124847650527954, -0.3871544897556305, 0.18817350268363953, -0.10863593220710754, 0.023167625069618225, 0.17578649520874023, -0.1260644942522049, 0.08961595594882965, 0.029685117304325104, 0.007516209036111832, -0.18143382668495178, -0.06715036928653717, 0.194850891828537, 0.33338823914527893, 0.3082723319530487, 0.22687922418117523, -0.16490694880485535, 0.04361240938305855, 0.15034574270248413, 0.44916269183158875, 0.05210878327488899, 0.03562270477414131, -0.31612223386764526, -0.20281195640563965, -0.3019144833087921, 0.045167822390794754, 0.00640789233148098, 0.3169749677181244, -0.1787019520998001, 0.040092844516038895, 0.33802351355552673, -0.24880677461624146, 0.23509299755096436, 0.045886628329753876, -0.07953934371471405, -0.3574635088443756, 0.1848311573266983, 0.285828560590744, 0.04181056469678879, 0.0671861544251442, 0.747065007686615, 0.10480169951915741, -0.5249848961830139, 0.0151383550837636, 0.21058019995689392, 0.39272642135620117, 0.30510401725769043, 0.014523840509355068, 0.21297773718833923, 0.27635958790779114, 0.08474019914865494, -0.027173243463039398, 0.19681818783283234, 0.33587104082107544, 0.33918315172195435, -0.651229977607727, -0.5451787710189819, 0.12402020394802094, -0.1648380011320114, -0.013387143611907959, 0.30717724561691284, 0.15525034070014954, -0.13319191336631775, 0.05065173655748367, -0.5677536129951477, 1.0728428363800049, 0.18511009216308594, 0.08114203065633774, 0.03696923702955246, -0.04085651785135269, -0.04295414686203003, -0.3154563903808594, 0.07942939549684525, -0.11256235837936401, -0.10457389056682587, -0.013576332479715347, -0.20590783655643463, 0.0688670203089714, -0.19625674188137054, -0.07629041373729706, 0.4810020923614502, -0.08708624541759491, 0.07263267040252686, 0.18579508364200592, 0.26835986971855164, 0.01366947591304779, 0.24456897377967834, -0.2734535336494446, 0.1776363104581833, -0.04878923296928406, 0.517677366733551, 0.0022684941068291664, -0.09417698532342911, -0.24350635707378387, -0.37229079008102417, -0.36881017684936523, 0.2839084267616272, -0.11938047409057617, 0.06717482209205627, 0.18565072119235992, -0.26720166206359863, 0.20501574873924255, 0.17187395691871643, 0.3522237539291382, 0.29816505312919617, -0.2847108840942383, 0.17621007561683655, -0.007189430296421051, -0.07783284783363342, 0.15461605787277222, 0.12502768635749817, 0.05214140936732292, -0.1679113209247589, -0.5022816061973572, 0.37322694063186646, -0.015688663348555565, -0.39645278453826904, -0.13001319766044617, -0.2442808598279953, 0.008854910731315613, -0.16381485760211945, 0.20535433292388916, -0.33471980690956116, 0.17216305434703827, -0.32364892959594727, 0.1263958364725113, 0.18910294771194458, -0.18805506825447083, -0.15979138016700745, 0.2088705152273178, -0.1925043910741806, -0.056302670389413834, 0.24884548783302307, 0.0497434139251709, -0.13858158886432648, 0.45959940552711487, 0.13963055610656738, -0.045439235866069794, -0.2443518340587616, -0.058572493493556976, 0.5368096232414246, -0.4719846844673157, -0.02850954979658127, -0.11123178154230118, 0.1944277435541153, -0.1658238023519516, 0.4409453868865967, 0.20322152972221375, -0.0784861221909523, 0.10249896347522736, -0.4698055684566498, -0.3129369020462036, 0.19365578889846802, -0.06157864257693291, 0.20661789178848267, -0.08160634338855743, 0.10829296708106995, -0.00671849399805069, -0.04456081986427307, -0.2897929251194, -0.10779999941587448, -0.3431851267814636, 0.02096743695437908, 0.3339732587337494, -0.19140085577964783, 0.38503554463386536, 0.04021697863936424, 0.2257784754037857, -0.2455059140920639, -0.18081942200660706, -0.14693206548690796, 0.02131984382867813, 0.12127618491649628, 0.019761987030506134, -0.25336167216300964, 0.1456555724143982, 0.05645264685153961, -0.14737150073051453, -0.008609427139163017, 0.1858486831188202, 0.04803486168384552, 0.05523071438074112, -0.13472479581832886, -0.07230685651302338, -0.11457950621843338, 0.05437083542346954, 0.11887376010417938, 0.03792019933462143, 0.40122872591018677, -0.009239660575985909, 0.1457676738500595, 0.015803182497620583, -0.22881051898002625, -0.41039425134658813, 0.06348742544651031, 0.11046963930130005, 0.018877806141972542, 0.35178330540657043, -0.3496559262275696, 0.06948421895503998, 0.04873736575245857, 0.6509908437728882, 0.10222718119621277, -0.3533657491207123, 0.2629573941230774, 0.2502115070819855, 0.15454566478729248, -0.22293151915073395, -0.02404334768652916, 0.1632433533668518, -0.16365307569503784, -0.01736397296190262, 0.11624298989772797, 0.1822681874036789, 0.0582861602306366, -0.06752771139144897, -0.09430476278066635, 0.499742716550827, -0.08563154935836792, 0.27289652824401855, 0.1634150743484497, 0.11910395324230194, -0.008213240653276443, 0.10749706625938416, 0.13304513692855835, 0.043090470135211945, 0.3482430577278137, -0.5331626534461975, 0.09003085643053055, 0.06723001599311829, -0.09371945261955261, 0.16207149624824524, -0.17752361297607422, 0.10250691324472427, 0.00014482438564300537, -0.3571615517139435, -0.25713297724723816, -0.19786104559898376, 0.4001482427120209, -0.37337028980255127, 0.14291167259216309, -0.23027417063713074, 0.1050119400024414, -0.05531668663024902, -0.16856049001216888, 0.011750776320695877, -0.2862839996814728, -0.20233458280563354, -0.1951298862695694, 0.05820653960108757, -0.06720294058322906, 0.20153963565826416, -0.0534079372882843, 0.08703399449586868, -0.3017740249633789, -0.1426234245300293, 0.22017449140548706, -0.06256251782178879, -0.10323236137628555, 0.325092613697052, 0.10042046010494232, -0.09805165231227875, 0.23330360651016235, 0.282514750957489, 0.7588905692100525, 0.1723315268754959, -0.07945400476455688, 0.21040499210357666, 0.121978759765625, -0.1308842897415161, 0.25853386521339417, 0.048616137355566025, 0.21713592112064362, 0.16467297077178955, 0.26859283447265625, 0.20977985858917236, -0.12167582660913467, 0.22200003266334534, -0.14170601963996887, 0.05217717960476875, -0.3314892053604126, 0.4694357216358185, -0.4028262197971344, -0.18312996625900269, -0.49033716320991516, 0.1656343638896942, -0.4790595471858978, -0.028008542954921722, 0.42500948905944824, 0.11373105645179749, 0.019625380635261536, -0.40839651226997375, 0.08693607151508331, -0.05387072637677193, 0.39007386565208435, 0.36391663551330566, 0.48563751578330994, -0.10299796611070633, -0.10191135853528976, -0.4100940525531769, 0.34743642807006836, -0.16953827440738678, -0.06341582536697388, -0.10568611323833466, -0.10289368033409119, 0.03268999233841896, 0.20125965774059296, 0.2235746830701828, -0.1411508321762085, -0.19967173039913177, 0.01263779029250145, -0.014284655451774597, -0.239485964179039, -0.0034857094287872314, 0.13725988566875458, -0.018422812223434448, -0.2118450105190277, 0.15800248086452484, -0.4327085614204407, 0.02513664960861206, 0.07089895009994507, 0.12021787464618683, 0.08790203928947449, -0.3852391839027405, 0.29491347074508667, 0.16433118283748627, 0.7388055324554443, 0.0270250141620636, -0.1943354457616806, -0.0884246826171875, -0.3569731116294861, -0.15041111409664154, -0.009831465780735016, -0.21857979893684387, 0.432452529668808, -0.1128249540925026, 0.028594287112355232, -0.37838271260261536, -0.12911364436149597, -0.033935852348804474, -0.1541232168674469, 0.021121172234416008, -0.06828196346759796, 0.03825371712446213, 0.014283251948654652, 0.22067280113697052, -0.1315787434577942, 0.01659271866083145, 0.09292910993099213, -0.13904927670955658, -0.14976850152015686, 0.4321288466453552, -0.19756662845611572, -0.29289063811302185, -0.33568325638771057, 0.26771292090415955, 0.013755880296230316, -0.10377633571624756, -0.4707442820072174, 0.2704678177833557, 0.4233447015285492, 0.31714320182800293, -0.3321479856967926, 0.14375820755958557, -0.08324229717254639, 0.12601876258850098, 0.16126053035259247, 0.2068050056695938, -0.32501187920570374, -0.2565758526325226, 0.09093356132507324, -0.13418704271316528 ]
https://github.com/huggingface/datasets/issues/2070
ArrowInvalid issue for squad v2 dataset
Hi ! This error happens when you use `map` in batched mode and then your function doesn't return the same number of values per column. Indeed since you're using `map` in batched mode, `prepare_validation_features` must take a batch as input (i.e. a dictionary of multiple rows of the dataset), and return a batch. However it seems like `tokenized_examples` doesn't have the same number of elements in each field. One field seems to have `1180` elements while `candidate_attention_mask` only has `1178`.
Hello, I am using the huggingface official question answering example notebook (https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb). In the prepare_validation_features function, I made some modifications to tokenize a new set of quesions with the original contexts and save them in three different list called candidate_input_dis, candidate_attetion_mask and candidate_token_type_ids. When I try to run the next cell for dataset.map, I got the following error: `ArrowInvalid: Column 1 named candidate_attention_mask expected length 1180 but got length 1178` My code is as follows: ``` def generate_candidate_questions(examples): val_questions = examples["question"] candididate_questions = random.sample(datasets["train"]["question"], len(val_questions)) candididate_questions = [x[:max_length] for x in candididate_questions] return candididate_questions def prepare_validation_features(examples, use_mixing=False): pad_on_right = tokenizer.padding_side == "right" tokenized_examples = tokenizer( examples["question" if pad_on_right else "context"], examples["context" if pad_on_right else "question"], truncation="only_second" if pad_on_right else "only_first", max_length=max_length, stride=doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length", ) if use_mixing: candidate_questions = generate_candidate_questions(examples) tokenized_candidates = tokenizer( candidate_questions if pad_on_right else examples["context"], examples["context"] if pad_on_right else candidate_questions, truncation="only_second" if pad_on_right else "only_first", max_length=max_length, stride=doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length", ) sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") tokenized_examples["example_id"] = [] if use_mixing: tokenized_examples["candidate_input_ids"] = tokenized_candidates["input_ids"] tokenized_examples["candidate_attention_mask"] = tokenized_candidates["attention_mask"] tokenized_examples["candidate_token_type_ids"] = tokenized_candidates["token_type_ids"] for i in range(len(tokenized_examples["input_ids"])): sequence_ids = tokenized_examples.sequence_ids(i) context_index = 1 if pad_on_right else 0 sample_index = sample_mapping[i] tokenized_examples["example_id"].append(examples["id"][sample_index]) tokenized_examples["offset_mapping"][i] = [ (o if sequence_ids[k] == context_index else None) for k, o in enumerate(tokenized_examples["offset_mapping"][i]) ] return tokenized_examples validation_features = datasets["validation"].map( lambda xs: prepare_validation_features(xs, True), batched=True, remove_columns=datasets["validation"].column_names ) ``` I guess this might happen because of the batched=True. I see similar issues in this repo related to arrow table length mismatch error, but in their cases, the numbers vary a lot. In my case, this error always happens when the expected length and unexpected length are very close. Thanks for the help!
80
ArrowInvalid issue for squad v2 dataset Hello, I am using the huggingface official question answering example notebook (https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb). In the prepare_validation_features function, I made some modifications to tokenize a new set of quesions with the original contexts and save them in three different list called candidate_input_dis, candidate_attetion_mask and candidate_token_type_ids. When I try to run the next cell for dataset.map, I got the following error: `ArrowInvalid: Column 1 named candidate_attention_mask expected length 1180 but got length 1178` My code is as follows: ``` def generate_candidate_questions(examples): val_questions = examples["question"] candididate_questions = random.sample(datasets["train"]["question"], len(val_questions)) candididate_questions = [x[:max_length] for x in candididate_questions] return candididate_questions def prepare_validation_features(examples, use_mixing=False): pad_on_right = tokenizer.padding_side == "right" tokenized_examples = tokenizer( examples["question" if pad_on_right else "context"], examples["context" if pad_on_right else "question"], truncation="only_second" if pad_on_right else "only_first", max_length=max_length, stride=doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length", ) if use_mixing: candidate_questions = generate_candidate_questions(examples) tokenized_candidates = tokenizer( candidate_questions if pad_on_right else examples["context"], examples["context"] if pad_on_right else candidate_questions, truncation="only_second" if pad_on_right else "only_first", max_length=max_length, stride=doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length", ) sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") tokenized_examples["example_id"] = [] if use_mixing: tokenized_examples["candidate_input_ids"] = tokenized_candidates["input_ids"] tokenized_examples["candidate_attention_mask"] = tokenized_candidates["attention_mask"] tokenized_examples["candidate_token_type_ids"] = tokenized_candidates["token_type_ids"] for i in range(len(tokenized_examples["input_ids"])): sequence_ids = tokenized_examples.sequence_ids(i) context_index = 1 if pad_on_right else 0 sample_index = sample_mapping[i] tokenized_examples["example_id"].append(examples["id"][sample_index]) tokenized_examples["offset_mapping"][i] = [ (o if sequence_ids[k] == context_index else None) for k, o in enumerate(tokenized_examples["offset_mapping"][i]) ] return tokenized_examples validation_features = datasets["validation"].map( lambda xs: prepare_validation_features(xs, True), batched=True, remove_columns=datasets["validation"].column_names ) ``` I guess this might happen because of the batched=True. I see similar issues in this repo related to arrow table length mismatch error, but in their cases, the numbers vary a lot. In my case, this error always happens when the expected length and unexpected length are very close. Thanks for the help! Hi ! This error happens when you use `map` in batched mode and then your function doesn't return the same number of values per column. Indeed since you're using `map` in batched mode, `prepare_validation_features` must take a batch as input (i.e. a dictionary of multiple rows of the dataset), and return a batch. However it seems like `tokenized_examples` doesn't have the same number of elements in each field. One field seems to have `1180` elements while `candidate_attention_mask` only has `1178`.
[ 0.19508640468120575, -0.5012046098709106, 0.004114128649234772, 0.27354592084884644, 0.28309541940689087, -0.06308549642562866, 0.29188668727874756, 0.124455526471138, -0.3849658668041229, 0.19322839379310608, 0.06840688735246658, 0.2712976038455963, 0.1175040677189827, -0.2701621949672699, -0.07083337754011154, -0.19420087337493896, 0.04387665539979935, -0.018505007028579712, 0.16635477542877197, -0.07367369532585144, -0.16446492075920105, 0.20849713683128357, -0.47302812337875366, 0.315191388130188, -0.36819201707839966, -0.27927470207214355, -0.06522901356220245, -0.14135104417800903, -0.20850302278995514, -0.7724214196205139, 0.18939289450645447, -0.25266510248184204, 0.22865913808345795, 0.22693100571632385, -0.00012930438970215619, -0.07085089385509491, 0.05464814975857735, -0.10822783410549164, -0.22217708826065063, 0.05034694820642471, 0.20060110092163086, -0.11575353890657425, 0.02350095845758915, -0.15060171484947205, 0.08626144379377365, -0.25328415632247925, -0.22585897147655487, -0.28372707962989807, 0.5048590898513794, 0.21831290423870087, 0.03984202817082405, 0.3087804615497589, 0.13261575996875763, -0.018097488209605217, 0.025421541184186935, 0.02071482688188553, -0.10040011256933212, -0.061189744621515274, 0.21778137981891632, -0.01663188263773918, 0.11068613082170486, 0.6158605813980103, 0.23638087511062622, 0.12036469578742981, 0.32877805829048157, -0.08447189629077911, 0.051251135766506195, -0.24248552322387695, 0.1621571183204651, 0.1987718641757965, 0.12032196670770645, -0.08065687865018845, -0.2992404103279114, -0.3082883059978485, 0.22351844608783722, -0.017558317631483078, 0.14167611300945282, -0.16003239154815674, 0.22672401368618011, 0.07995197176933289, -0.021159563213586807, 0.27637383341789246, -0.23090381920337677, 0.12465617805719376, 0.15557394921779633, 0.05819650739431381, -0.1273336261510849, 0.3357897400856018, 0.0843682587146759, -0.43023109436035156, -0.3450860381126404, 0.17993035912513733, -0.1760932058095932, 0.38489830493927, -0.47207796573638916, -0.1346977949142456, -0.17839950323104858, -0.23474115133285522, 0.33014926314353943, -0.12975908815860748, 0.20125649869441986, -0.08828464895486832, 0.3551931083202362, 0.021871473640203476, 0.07195925712585449, 0.3336796760559082, 0.3085619807243347, 0.4262864887714386, -0.21800769865512848, -0.3491990864276886, 0.12054920196533203, -0.12062133103609085, -0.25477316975593567, -0.3665160834789276, 0.22097264230251312, 0.11672330647706985, 0.38467109203338623, -0.05163716897368431, -0.39398398995399475, 0.4682803452014923, -0.7649686336517334, 0.08119826763868332, -0.005819092504680157, 0.17818918824195862, 0.21982406079769135, -0.0031699426472187042, -0.12049455940723419, 0.21135909855365753, -0.025923579931259155, -0.28569433093070984, -0.020511068403720856, -0.07508052885532379, -0.18580839037895203, 0.09066600352525711, 0.05714375153183937, 0.15314742922782898, 0.3249374032020569, -0.10287346690893173, 0.37993770837783813, -0.37873879075050354, 0.18798701465129852, -0.1844678670167923, 0.3455332815647125, -0.0727415531873703, -0.3098553717136383, 0.14246317744255066, 0.0584288015961647, -0.1654929518699646, -0.05391397327184677, -0.10272166877985, -0.18743345141410828, -0.1261967122554779, -0.24258829653263092, -0.02087310329079628, 0.08112096786499023, 0.16297751665115356, 0.10433828830718994, 0.13195158541202545, 0.24595212936401367, -0.0968068540096283, 0.3539922535419464, -0.39053231477737427, 0.12057797610759735, -0.014522229321300983, -0.020582977682352066, 0.17087134718894958, -0.3565447926521301, -0.1542254388332367, 0.5501686930656433, 0.29500603675842285, -0.20086729526519775, 0.387143611907959, -0.15492162108421326, 0.075236015021801, -0.15557368099689484, 0.5609896779060364, 0.26752400398254395, -0.7531770467758179, -0.35518690943717957, -0.05030689388513565, -0.28584444522857666, -0.052227310836315155, 0.08023252338171005, -0.13081087172031403, 0.3515363037586212, 0.055961523205041885, 0.05020490288734436, -0.022153053432703018, -0.0017569232732057571, 0.06744186580181122, -0.17031043767929077, -0.0660700649023056, 0.06019537150859833, -0.05605185404419899, -0.25044018030166626, -0.20833882689476013, -0.11538016051054001, -0.16533532738685608, 0.04653465002775192, -0.07871109247207642, 0.2557053864002228, 0.30744469165802, 0.3064408600330353, 0.03710783272981644, 0.2982434034347534, -0.04245038703083992, -0.5195572376251221, -0.06737954169511795, -0.08614756166934967, -0.055526360869407654, -0.09347335994243622, -0.39991986751556396, -0.48347365856170654, 0.12283802777528763, -0.25511354207992554, -0.36266207695007324, -0.010857375338673592, 0.05586603656411171, 0.15181154012680054, -0.31383082270622253, -0.0647791400551796, 0.08779479563236237, -0.06719058007001877, 0.2688455879688263, -0.12333725392818451, -0.016010476276278496, -0.059526629745960236, -0.18050995469093323, 0.04528290778398514, 0.1954573094844818, 0.35561543703079224, -0.06701020151376724, -0.10628826171159744, 0.35173872113227844, 0.23181389272212982, -0.10747437179088593, 0.11406438797712326, -0.13871999084949493, 0.1696455031633377, -0.25116533041000366, -0.046370819211006165, 0.15813949704170227, 0.08317875862121582, 0.015389196574687958, -0.1450785994529724, 0.4966509938240051, 0.08577044308185577, 0.3637129068374634, -0.35845494270324707, 0.008390391245484352, 0.056875236332416534, 0.1508820503950119, -0.4269772171974182, -0.02565130591392517, -0.1253536343574524, 0.14497534930706024, 0.4017040729522705, -0.10177932679653168, -0.05155634880065918, 0.04923591762781143, 0.33588510751724243, 0.03540635481476784, -0.07634792476892471, -0.02427956461906433, -0.09252683073282242, 0.17318734526634216, 0.26312461495399475, -0.04481985419988632, 0.2035180628299713, 0.12937679886817932, -0.21842697262763977, -0.01909382827579975, -0.014703460969030857, 0.11196604371070862, 0.05559206381440163, 0.06475456058979034, 0.1183321475982666, 0.24950936436653137, 0.33020254969596863, -0.030567746609449387, -0.18902716040611267, 0.03963759168982506, 0.13063079118728638, 0.09409075230360031, -0.3066781759262085, 0.21547257900238037, -0.12222148478031158, 0.19132277369499207, -0.004254232160747051, -0.20168007910251617, -0.01273287832736969, -0.13873660564422607, -0.11069436371326447, 0.13547571003437042, 0.05070624127984047, 0.341177374124527, 0.253976434469223, 0.3478597104549408, 0.4629753828048706, 0.025126885622739792, -0.07852780073881149, -0.06091019883751869, -0.12765532732009888, -0.1625012755393982, 0.009655673988163471, -0.17426089942455292, 0.04417957365512848, 0.27780237793922424, -0.05065421387553215, -0.4606683850288391, -0.6184923648834229, 0.1887655109167099, -0.14378389716148376, 0.1473684459924698, 0.23465897142887115, 0.13757751882076263, -0.5523964166641235, -0.1461128294467926, 0.2825923562049866, 0.15654434263706207, -0.32983705401420593, 0.007881270721554756, -0.10757181793451309, -0.21124719083309174, 0.048021864145994186, -0.29353049397468567, -0.162959024310112, -0.061658550053834915, 0.5795470476150513, -0.34413495659828186, -0.10955016314983368, 0.20966605842113495, 0.20395725965499878, 0.028625469654798508, -0.33029505610466003, -0.14911596477031708, -0.2724180817604065, 0.142441526055336, 0.3052254915237427, -0.3198954164981842, -0.05327632650732994, -0.06784927845001221, -0.1944744884967804, 0.22944369912147522, 0.08545812219381332, -0.08464538305997849, -0.32800254225730896, 0.03639396280050278, 0.31069186329841614, -0.25629621744155884, 0.13296104967594147, 0.49089789390563965, -0.11662482470273972, 0.2066224068403244, -0.09547123312950134, -0.264695942401886, 0.37131085991859436, 0.17105698585510254, 0.21165692806243896, -0.11923465877771378, 0.5886773467063904, 0.009383980184793472, 0.8307527899742126, 0.39694446325302124, 0.06312461197376251, 0.04079180583357811, -0.1729644387960434, 0.008927468210458755, -0.11185403913259506, -0.17399096488952637, 0.27000048756599426, -0.1890036165714264, -0.06350000202655792, -0.009526640176773071, -0.03040453791618347, -0.09425538778305054, 0.36928877234458923, 0.14856435358524323, -0.30629962682724, -0.2004455327987671, -0.0791703388094902, 0.2220519781112671, 0.2272360622882843, 0.23754945397377014, 0.1232859268784523, -0.45112642645835876, 0.12282111495733261, -0.01823582872748375, -0.25093764066696167, 0.16504263877868652, 0.05178910121321678, -0.8704359531402588, -0.1390439122915268, -0.14943289756774902, 0.44018155336380005, 0.366304486989975, 0.4408901035785675, 0.1457429677248001, -0.30244940519332886, 0.07414901256561279, 0.0059393104165792465, 0.5031288862228394, 0.14114518463611603, -0.23070721328258514, 0.002942074090242386, -0.11967959254980087, -0.38739079236984253, -0.21901635825634003, -0.04969054460525513, 0.3620971143245697, 0.4047521650791168, 0.31428536772727966, -0.3531350791454315, -0.20447538793087006, 0.40256229043006897, -0.14667250216007233, 0.03331790491938591, 0.09631595015525818, -0.2732216417789459, -0.1293741911649704, -0.40352270007133484, 0.2679007649421692, 0.28892984986305237, 0.13708479702472687, 0.3320341110229492, -0.09332633018493652, -0.10252723842859268, -0.15220992267131805, -0.033201441168785095, 0.28467363119125366, 0.4153461456298828, 0.16012616455554962, 0.0348915196955204, 0.35114675760269165, 0.005356132984161377, 0.28433504700660706, 0.17841310799121857, -0.041875358670949936, -0.6814483404159546, 0.20471006631851196, -0.3417011797428131, 0.4301432967185974, 0.6046112775802612, -0.028857752680778503, 0.22932776808738708, -0.17418350279331207, 0.22428324818611145, -0.05510108545422554, 0.14782120287418365, 0.5106634497642517, 0.32197803258895874, 0.2062799334526062, 0.09650048613548279, 0.05332233011722565, -0.11702442169189453, -0.10833615064620972, 0.6720852851867676, 0.4695621132850647, -0.19180138409137726, 0.08468249440193176, 0.16106852889060974, 0.9873966574668884, 0.47772443294525146, 0.08410224318504333, 0.493191659450531, -0.18525199592113495, -0.12188185751438141, 0.04484127461910248, 0.13393297791481018, -0.4574371874332428, -0.008353318087756634, 0.08890137821435928, -0.20343227684497833, 0.05837395414710045, 0.1391417533159256, -0.035872772336006165, -0.1335713118314743, 0.020732596516609192, 0.3618428111076355, -0.3089621961116791, 0.11128810048103333, -0.24788767099380493, -0.18838588893413544, -0.20986813306808472, -0.001232607290148735, -0.04582267254590988, 0.06953418254852295, -0.13305886089801788, -0.07580110430717468, -0.44456326961517334, -0.4326428174972534, -0.1195751279592514, -0.15561550855636597, -0.6754676103591919, 0.18905073404312134, 0.6171085238456726, -0.12326063215732574, 0.12161582708358765, 0.20805887877941132, 0.49218839406967163, -0.015011854469776154, -0.07538924366235733, 0.2431183159351349, 0.180032417178154, -0.020220983773469925, -0.0825476422905922, -0.10398812592029572, -0.010382981970906258, -0.08530934154987335, -0.304012656211853, 0.17918574810028076, 0.04158672317862511, -0.2450326830148697, -0.20428846776485443, -0.05278438329696655, 0.22685648500919342, -0.3041243553161621, -0.02357698604464531, -0.06009341776371002, -0.0953565239906311, -0.17262117564678192, -0.05510849878191948, -0.12531615793704987, -0.2628064453601837, -0.08216958492994308, 0.46028634905815125, -0.20769259333610535, 0.23403076827526093, 0.2675134241580963, -0.2994672656059265, -0.1334337443113327, 0.7376729249954224, -0.08941161632537842, -0.07827211916446686, -0.13009673357009888, 0.493999719619751, 0.3498530387878418, -0.4605640769004822, -0.022965408861637115, -0.09986048191785812, -0.26557183265686035, -0.19483791291713715, 0.5396841764450073, 0.41985100507736206, 0.14911183714866638, 0.043540630489587784, -0.13140136003494263, -0.4555131196975708, 0.2382652908563614, -0.23457659780979156, 0.19530251622200012, 0.0412919819355011, 0.012727092951536179, -0.279487669467926, 0.2170436829328537, -0.1651521623134613, -0.01052434928715229, -0.1417561173439026, 0.18641389906406403, -0.18255294859409332, -0.3321320712566376, 0.19943806529045105, 0.027630556374788284, -0.1235886737704277, 0.4358764886856079, -0.09071144461631775, -0.04506836086511612, -0.2240801751613617, 0.19430701434612274, 0.05535321682691574, 0.11422071605920792, -0.2491777390241623, -0.14086103439331055, -0.10867361724376678, -0.13331416249275208, 0.023994017392396927, -0.04682810232043266, 0.3059261441230774, 0.13651584088802338, -0.0672815591096878, -0.08818946033716202, 0.12489035725593567, -0.14573003351688385, 0.31263768672943115, -0.08671125769615173, 0.2010820060968399, 0.19681456685066223, -0.11013748496770859, 0.09049831330776215, -0.1544693559408188, 0.3345204293727875, 0.16234858334064484, 0.01656004600226879, 0.007667485624551773, -0.3720279335975647, -0.20010991394519806, 0.07688025385141373, -0.2525676190853119, 0.38602256774902344, -0.21912051737308502, -0.047956936061382294, 0.009351307526230812, 0.10444903373718262, -0.12259063124656677, 0.1598890721797943, 0.4138646125793457, -0.12650622427463531, -0.009074971079826355, 0.2409759908914566, -0.04831252619624138, 0.1263558268547058, 0.2902408242225647, 0.176710844039917, 0.3259361684322357, -0.2194676399230957, -0.0503145270049572, 0.12131236493587494, -0.1504022777080536, 0.029112309217453003, 0.6292259693145752, 0.0923190712928772, 0.3154928684234619, -0.07255922257900238, -0.223178893327713, 0.22734031081199646, -0.08147675544023514, 0.3294855058193207, 0.19372420012950897, 0.1792413592338562, -0.32608288526535034, 0.1299869418144226, 0.09999409317970276, -0.2000179886817932, 0.1469002366065979, 0.5979396104812622, 0.14956142008304596, -0.6717573404312134, -0.1625266820192337, 0.09866520762443542, -0.18242526054382324, -0.14837893843650818, -0.7064811587333679, 0.025572828948497772, -0.30080747604370117, -0.10624842345714569, -0.16844166815280914, 0.15865594148635864, 0.48343968391418457, 0.050358984619379044, 0.003767155110836029, -0.32653313875198364, -0.2531432807445526, 0.34978142380714417, 0.28392988443374634, -0.27352455258369446, 0.26805660128593445, 0.06577422469854355, 0.11802947521209717, 0.09593570232391357, 0.4089803695678711, 0.2865683138370514, 0.14551222324371338, -0.15122489631175995, -0.15140463411808014, -0.17218029499053955, 0.0007874444127082825, 0.21963222324848175, 0.1611725091934204, 0.2842543125152588, -0.10512104630470276, 0.11252740025520325, -0.09577367454767227, -0.030373357236385345, -0.10102953016757965, 0.1379580795764923, -0.03242352977395058, -0.18708117306232452, -0.3491019904613495, -0.42161235213279724, -0.024104628711938858, -0.26649749279022217, 0.07997378706932068, -0.2798426151275635, 0.2792110741138458, 0.15074241161346436, 0.04456063359975815, 0.071616530418396, -0.017158454284071922, -0.022984236478805542, -0.16267846524715424, 0.24088948965072632, 0.38033291697502136, -0.10531868785619736, -0.2994270622730255, -0.21079817414283752, -0.5407536625862122, 0.04786758869886398, -0.08951230347156525, -0.03529101982712746, 0.2905202805995941, 0.29438427090644836, 0.27521178126335144, 0.19203829765319824, 0.3236570656299591, -0.20218633115291595, -0.1859278678894043, 0.270516037940979, -0.4119945764541626, 0.050498660653829575, 0.30895984172821045, 0.14703252911567688, 0.20467117428779602, -0.21444955468177795, 0.08864650875329971, 0.30675145983695984, -0.2205975353717804, -0.04750892519950867, -0.1636008322238922, -0.31893306970596313, -0.18444295227527618, 0.29470062255859375, 0.11611753702163696, 0.17544543743133545, 0.22405487298965454, -0.25720077753067017, -0.13652656972408295, -0.17643767595291138, -0.13938210904598236, 0.1451851725578308, 0.11065824329853058, 0.611653208732605, -0.04738396406173706, -0.10781560838222504, -0.026738524436950684, 0.04441159963607788, 0.10386818647384644, -0.38876864314079285, -0.29202619194984436, 0.3862883448600769, -0.2014179825782776, 0.264010488986969, -0.16449196636676788, 0.1330403834581375, 0.17618879675865173, 0.46493926644325256, -0.24768753349781036, -0.3671608865261078, 0.7873601913452148, -0.3886922299861908, -0.30853524804115295, 0.21838249266147614, 0.18030843138694763, 0.6121313571929932, -0.32038721442222595, -0.516912043094635, -0.044635873287916183, 0.2340017408132553, -0.06431462615728378, -0.3073168992996216, 0.11789968609809875, 0.0049140253104269505, 0.08175219595432281, -0.17355702817440033, 0.32253628969192505, 0.12917998433113098, 0.1259116381406784, -0.11757424473762512, -0.2294532060623169 ]