html_url
stringlengths
51
51
title
stringlengths
6
280
comments
stringlengths
63
141k
body
stringlengths
18
58.6k
comment_length
int64
16
10.8k
text
stringlengths
6
280
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
Okay, that makes sense. Raw images are list of Array2D, hence we get a single tensor when `set_format` is used. But, why should I need to convert the raw images to `torch` format when `map` does this internally? Using `Array3D` did not work with `map` when raw images weren't `set_format`ted to torch type.
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
53
Setting to torch format not working with torchvision and MNIST
[ -0.35035860538482666, -0.4446253776550293, -0.034833867102861404, 0.03232528269290924, 0.14277933537960052, -0.03211081400513649, 0.3038266897201538, 0.15605318546295166, -0.05316118150949478, 0.09112251549959183, -0.18816646933555603, 0.39036908745765686, -0.12735719978809357, -0.28482967615127563, -0.30906912684440613, -0.3537190854549408, 0.02792385406792164, -0.01296650804579258, -0.13521313667297363, 0.03234390169382095, 0.021942324936389923, 0.12208208441734314, -0.2357970029115677, -0.1986922025680542, -0.2750813961029053, 0.07504307478666306, 0.16863800585269928, 0.2743000388145447, -0.20689165592193604, -0.09825810045003891, -0.09434916079044342, -0.0880560576915741, 0.1549881398677826, 0.3071492910385132, -0.0001091434751288034, -0.18679006397724152, 0.3668290078639984, -0.15034936368465424, -0.04386918991804123, 0.24721336364746094, 0.34602248668670654, 0.15079578757286072, 0.1011013388633728, 0.06965208798646927, -0.5328038334846497, -0.08551536500453949, 0.054942596703767776, -0.10266906768083572, -0.10077915340662003, 0.1915672868490219, 0.2610529363155365, 0.22723150253295898, 0.2820701003074646, -0.1510160118341446, 0.22765511274337769, 0.4856247007846832, -0.264070987701416, 0.16630615293979645, 0.14406892657279968, 0.3103259801864624, -0.0860980823636055, 0.5089552402496338, -0.2865388095378876, 0.06603671610355377, 0.06177239120006561, -0.17495259642601013, -0.3226504623889923, 0.1612626016139984, 0.19254471361637115, 0.02740633115172386, 0.387311726808548, -0.18799206614494324, 0.3620879054069519, 0.07737375050783157, -0.02617485076189041, -0.22105221450328827, 0.19905130565166473, 0.12823957204818726, -0.06026754528284073, 0.051549095660448074, -0.3132004737854004, 0.0948963314294815, 0.07604765892028809, 0.09465187788009644, -0.0684804767370224, 0.04390616714954376, -0.1621987521648407, -0.09909871220588684, 0.14792974293231964, -0.06395988166332245, 0.14759528636932373, 0.04988417029380798, -0.2234216183423996, -0.22842758893966675, 0.057814549654722214, 0.08588015288114548, -0.018487444147467613, -0.08217266201972961, -0.2804104685783386, -0.15800537168979645, 0.2576834559440613, 0.44939208030700684, 0.1138373464345932, 0.06763523817062378, -0.2566540539264679, -0.06963301450014114, 0.23100902140140533, 0.049298256635665894, 0.008233252912759781, -0.2801651954650879, 0.12007947266101837, 0.029406804591417313, -0.11841876804828644, -0.20015230774879456, -0.22026804089546204, 0.14261773228645325, -0.0818648487329483, -0.23565320670604706, 0.19925615191459656, -0.18677455186843872, -0.08269120752811432, -0.01493353582918644, -0.012912851758301258, 0.19830238819122314, 0.07298385351896286, -0.11209898442029953, 0.18900403380393982, 0.1829332411289215, -0.37798118591308594, 0.08482225984334946, -0.0623236820101738, 0.13983497023582458, -0.35957154631614685, -0.329097718000412, 0.34940105676651, -0.23343300819396973, 0.12244607508182526, 0.050636231899261475, 0.023262860253453255, 0.031114067882299423, 0.17812316119670868, 0.09957686811685562, 0.6320822834968567, 0.06462758034467697, 0.04197247698903084, 0.15367667376995087, 0.06848009675741196, 0.8091864585876465, -0.04452425241470337, 0.1437511444091797, -0.0609557144343853, -0.1613444834947586, -0.20037946105003357, 0.21297602355480194, 0.22071504592895508, 0.05053135007619858, 0.2593519389629364, -0.02343842387199402, 0.3575250804424286, -0.3666747808456421, 0.2474214732646942, -0.3248741030693054, 0.018186207860708237, -0.029909374192357063, 0.09017679840326309, 0.22858087718486786, -0.14960430562496185, 0.10306674987077713, 0.35197481513023376, -0.025095468387007713, 0.10363919287919998, 0.023618483915925026, -0.05337285250425339, -0.017966601997613907, -0.3234826624393463, -0.16004370152950287, 0.2868116497993469, -0.1488167941570282, -0.09245526045560837, -0.1018316000699997, -0.10088378936052322, -0.2140844613313675, 0.40267181396484375, 0.08546381443738937, -0.10769152641296387, 0.10038410872220993, 0.0005126364412717521, 0.036393020302057266, 0.14679843187332153, 0.13168694078922272, -0.2768397629261017, 0.18187665939331055, -0.06339304894208908, 0.07595119625329971, 0.018612327054142952, -0.07324766367673874, -0.002631512936204672, 0.18689320981502533, 0.050124093890190125, -0.08476287126541138, -0.06890509277582169, -0.008266105316579342, -0.4836474657058716, -0.4061964750289917, -0.04523331671953201, 0.23684266209602356, 0.051240224391222, -0.3066276013851166, 0.1364246904850006, 0.2115461826324463, 0.21124227344989777, 0.13622291386127472, 0.0743003711104393, -0.4079422354698181, -0.23726385831832886, -0.29495272040367126, 0.18440207839012146, 0.3615995943546295, -0.13731983304023743, -0.06942643970251083, 0.050767820328474045, -0.29965558648109436, 0.19917885959148407, -0.005948314443230629, -0.23108218610286713, -0.09107142686843872, -0.2962574064731598, -0.3759576976299286, -0.03327634930610657, 0.07442598789930344, 0.21329531073570251, -0.0351640023291111, -0.06803449988365173, 0.15315136313438416, -0.0810759961605072, 0.1216479018330574, -0.5113376975059509, -0.14737948775291443, 0.2384086698293686, -0.34859922528266907, 0.28949421644210815, 0.3642064034938812, 0.08986587077379227, -0.09466886520385742, -0.23922428488731384, 0.37612804770469666, 0.1934126615524292, -0.13117332756519318, -0.10365486890077591, -0.12599924206733704, 0.05643866956233978, 0.14718317985534668, 0.18867447972297668, -0.29054445028305054, 0.0745726227760315, 0.3619142174720764, -0.2185530811548233, -0.0884275808930397, -0.3457276225090027, 0.21881835162639618, 0.14112277328968048, 0.193593829870224, 0.0014993577497079968, -0.20874840021133423, -0.14525751769542694, -0.06074067950248718, 0.4051082730293274, -0.6431973576545715, 0.05789484828710556, 0.24568195641040802, 0.281625360250473, -0.02340385876595974, -0.043976280838251114, -0.46239128708839417, 0.21379899978637695, -0.17900525033473969, -0.29592573642730713, 0.20051300525665283, 0.15700019896030426, -0.3243672251701355, -0.22956302762031555, -0.04088706523180008, -0.13504809141159058, -0.24964718520641327, -0.33637428283691406, -0.07110863924026489, -0.1802845597267151, -0.242631196975708, -0.26638075709342957, -0.1276610940694809, 0.024510474875569344, -0.10287389904260635, 0.26044851541519165, 0.3006513714790344, 0.13519293069839478, 0.23644301295280457, 0.15999507904052734, -0.22713051736354828, 0.07173958420753479, -0.12224600464105606, 0.09337883442640305, -0.10017033666372299, -0.38576892018318176, 0.11028273403644562, 0.007617441471666098, -0.3338267207145691, 0.17756609618663788, -0.3561560809612274, 0.013925805687904358, -0.08777768909931183, 0.0763380229473114, 0.4896225035190582, 0.15640239417552948, -0.5355790853500366, 0.27289581298828125, -0.2374000996351242, 0.16348125040531158, -0.08287543058395386, 0.08649343252182007, -0.14474141597747803, -0.013347839005291462, 0.1006467416882515, -0.040030982345342636, 0.05255904421210289, -0.23993973433971405, -0.2304728627204895, 0.23276124894618988, -0.15504847466945648, -0.2831014096736908, -0.08932316303253174, 0.010748788714408875, 0.3844529986381531, 0.08275851607322693, -0.10175257921218872, -0.33304429054260254, 0.3166968524456024, -0.10658396035432816, -0.16404397785663605, 0.35137903690338135, -0.4313889741897583, -0.3666180670261383, 0.17853406071662903, 0.30648598074913025, -0.09243086725473404, 0.36560773849487305, 0.20307980477809906, -0.0481514073908329, 0.2705748975276947, -0.25757232308387756, 0.10965396463871002, 0.25883597135543823, 0.378671795129776, 0.09645452350378036, -0.17076367139816284, -0.03136172145605087, 0.04332452267408371, -0.0736435055732727, -0.29419535398483276, 0.5511958003044128, -0.04315686225891113, 0.15562762320041656, -0.17407740652561188, 0.4233293831348419, -0.2649838328361511, -0.3805195093154907, 0.3214185833930969, -0.2576971650123596, 0.45192915201187134, -0.3400033414363861, -0.10746064782142639, 0.46568718552589417, 0.2805505096912384, 0.07672031968832016, 0.13413214683532715, 0.04866461455821991, -0.1444295048713684, -0.06008107587695122, 0.1435546725988388, -0.06805400550365448, -0.025606708601117134, 0.12397461384534836, 0.160622701048851, 0.04519745707511902, -0.18126025795936584, 0.7953464984893799, 0.07516275346279144, -0.25099697709083557, 0.2571117579936981, 0.3521324694156647, -0.16570495069026947, 0.07618499547243118, -0.28547319769859314, -0.10660193115472794, -0.011776904575526714, 0.30285823345184326, 0.15241648256778717, 0.3559716045856476, -0.27209511399269104, -0.35593414306640625, 0.27938154339790344, 0.05377059429883957, 0.38551944494247437, 0.01327026542276144, 0.10124725103378296, 0.1740640252828598, -0.0748959332704544, 0.09084271639585495, -0.03854740411043167, 0.09741438925266266, 0.1269776076078415, 0.20623727142810822, -0.2041044533252716, 0.04428373649716377, -0.06787718832492828, 0.018348732963204384, -0.07043609768152237, 0.2256530076265335, -0.011531874537467957, -0.18297474086284637, 0.03523926064372063, -0.2568592429161072, -0.07262221723794937, -0.06681635975837708, 0.0043224734254181385, 0.03266715630888939, -0.058063965290784836, -0.15995781123638153, -0.276593953371048, -0.1923649162054062, 0.10305748879909515, 0.31026217341423035, 0.12534387409687042, -0.1379225105047226, 0.1543775200843811, 0.605934739112854, 0.4164882004261017, -0.20798520743846893, 0.031898465007543564, 0.6952018141746521, 0.4316031336784363, -0.19528304040431976, -0.09060309827327728, 0.4343172311782837, 0.12634965777397156, -0.33733054995536804, -0.36857497692108154, -0.29996371269226074, -0.10089872032403946, 0.2795924246311188, -0.012546603567898273, -0.255767285823822, -0.2287927269935608, -0.062399785965681076, -0.055771354585886, 0.036369841545820236, 0.2327636480331421, 0.0944497361779213, -0.5289416909217834, -0.22210396826267242, -0.13093814253807068, 0.3484432101249695, 0.8449023962020874, 0.19312243163585663, 0.33242371678352356, -0.0531611330807209, -0.48698657751083374, 0.0014400370419025421, -0.04356153681874275, 0.3427371084690094, -0.45382723212242126, 0.165046826004982, 0.020596861839294434, -0.06408368051052094, 0.04610441252589226, -0.39125487208366394, -0.0022105039097368717, 0.04885946214199066, -0.07113572955131531, 0.32742512226104736, -0.17632904648780823, 0.07023940235376358, -0.12145005166530609, -0.24791914224624634, 0.06819800287485123, 0.11878809332847595, -0.027065027505159378, 0.18964603543281555, -0.08976040780544281, -0.15673485398292542, 0.024091042578220367, -0.09436934441328049, 0.030898617580533028, 0.13461171090602875, -0.010097100399434566, -0.19154761731624603, -0.1775268018245697, -0.7767907977104187, -0.17141348123550415, 0.02771742455661297, 0.15299156308174133, 0.17327168583869934, -0.13364452123641968, 0.16955241560935974, 0.511426568031311, -0.06477031111717224, -0.20085851848125458, -0.15127134323120117, 0.17527331411838531, -0.13066409528255463, 0.2036695033311844, 0.18248878419399261, 0.020308028906583786, 0.30980587005615234, -0.4433698058128357, -0.1654445081949234, 0.29237663745880127, -0.07185208052396774, -0.08950173854827881, -0.16444182395935059, 0.02106378972530365, -0.024310294538736343, 0.20223276317119598, -0.1241101622581482, 0.038729336112737656, -0.17305149137973785, 0.02394227869808674, -0.10669779032468796, -0.1681709736585617, 0.6275681257247925, -0.1279384046792984, -0.3019564151763916, 0.09865481406450272, 0.4552282691001892, -0.2460271418094635, -0.2048557996749878, 0.1338633894920349, 0.5930306315422058, -0.2293625771999359, -0.2356843501329422, 0.11021199822425842, -0.3641204535961151, 0.2778935134410858, 0.6852796077728271, -0.14882561564445496, 0.028907863423228264, -0.12875987589359283, 0.254240483045578, -0.4377351701259613, -0.08941870182752609, -0.3280184864997864, 0.27012336254119873, 0.2328462451696396, 0.2699772119522095, 0.3139655590057373, -0.22867451608181, -0.3202875256538391, -0.3038642108440399, 0.3513316512107849, 0.17171187698841095, -0.45992833375930786, -0.08329556882381439, -0.23742353916168213, -0.10029150545597076, 0.13642075657844543, 0.15430670976638794, -0.38572895526885986, -0.22891226410865784, 0.04828653857111931, 0.12996125221252441, 0.12022944539785385, -0.30944424867630005, -0.17654557526111603, -0.2282230705022812, -0.3010731339454651, -0.1336234211921692, -0.05035530775785446, 0.029778366908431053, -0.2696526050567627, 0.03227730467915535, -0.16346947848796844, 0.02281389757990837, 0.2684129476547241, -0.29508787393569946, -0.1384635865688324, -0.06492501497268677, 0.04692308232188225, -0.11155964434146881, -0.24664099514484406, -0.07371938228607178, 0.1626276969909668, 0.2165713608264923, 0.03669821470975876, 0.2903677225112915, 0.044458333402872086, -0.02675347775220871, -0.0624803751707077, 0.040352895855903625, 0.4075194001197815, 0.032065585255622864, -0.02488609403371811, -0.40766218304634094, 0.0998603105545044, 0.21034842729568481, 0.030092349275946617, 0.007725677918642759, -0.010108202695846558, -0.01266357209533453, 0.04709586873650551, 0.2140006721019745, 0.17032408714294434, 0.004002595320343971, -0.13072946667671204, 0.18069739639759064, 0.14225144684314728, -0.27297359704971313, -0.18040980398654938, 0.24638669192790985, -0.06720055639743805, 0.19502590596675873, 0.47520366311073303, -0.03217271715402603, 0.0878802239894867, 0.3292827606201172, 0.31758567690849304, 0.64594966173172, 0.6694344878196716, 0.20664992928504944, 0.031238948926329613, -0.003057741327211261, 0.13035331666469574, -0.3170359134674072, 0.5624967813491821, 0.2971069812774658, 0.14705079793930054, -0.03959467262029648, -0.139932319521904, -0.23450061678886414, 0.16782130300998688, 0.2150435745716095, -0.20366525650024414, -0.06745670735836029, -0.5230258107185364, -0.12735465168952942, 0.20115971565246582, 0.07696429640054703, -0.1470624953508377, 0.47145044803619385, 0.2318500429391861, 0.23077043890953064, -0.1047995314002037, -0.2090761512517929, 0.043335333466529846, -0.19416464865207672, 0.15248239040374756, -0.09471382945775986, 0.28156334161758423, -0.20061303675174713, 0.12251698225736618, 0.3274688422679901, -0.03114369697868824, 0.2547628879547119, 0.18579639494419098, -0.32844194769859314, -0.41601812839508057, 0.00002550732097006403, -0.041673943400382996, -0.11309964954853058, 0.11277484148740768, 0.27781739830970764, 0.05143030732870102, 0.1177404522895813, 0.13612432777881622, -0.21405822038650513, 0.04047866538167, -0.006311007775366306, -0.39825257658958435, 0.450847327709198, -0.1843007206916809, -0.13174475729465485, -0.15943147242069244, -0.16426372528076172, -0.1654004007577896, -0.358376681804657, -0.24769438803195953, 0.28817102313041687, 0.22453191876411438, 0.0034959677141159773, -0.042779117822647095, 0.11677803099155426, 0.2902812361717224, 0.1765948086977005, -0.11439187824726105, -0.14646022021770477, -0.06169012561440468, 0.08156658709049225, -0.059712719172239304, 0.17207123339176178, 0.1934683918952942, -0.3614387512207031, -0.21594099700450897, -0.16812990605831146, 0.45817628502845764, 0.03753972053527832, 0.18231432139873505, 0.17885799705982208, 0.6040655374526978, 0.48573780059814453, -0.02011912316083908, 0.09190915524959564, 0.09659428149461746, -0.03634987771511078, -0.04663870111107826, -0.013142931275069714, 0.09853614121675491, 0.000058282941608922556, 0.24356001615524292, -0.28210684657096863, -0.26910069584846497, -0.09324528276920319, 0.13543395698070526, 0.18606291711330414, -0.12603721022605896, 0.22479258477687836, -0.1075187399983406, -0.09211144596338272, -0.08303643763065338, 0.31840625405311584, 0.06207960098981857, -0.027266517281532288, 0.13016578555107117, 0.4348985552787781, 0.11547203361988068, 0.04832995682954788, -0.50130295753479, 0.6161906719207764, 0.12164456397294998, 0.17370887100696564, -0.16652852296829224, 0.350269079208374, -0.2645069360733032, -0.22626863420009613, 0.14850792288780212, 0.23761801421642303, 0.10382445156574249, 0.16575148701667786, -0.4837121069431305, -0.48881080746650696, 0.1571245640516281, -0.059937734156847, -0.09350256621837616, -0.03320246934890747, -0.071454718708992, 0.3664647340774536, 0.33262524008750916, -0.46404677629470825, 0.07910186052322388, -0.1836969554424286, -0.17167985439300537, 0.019405581057071686, -0.008701149374246597, 0.03687429428100586, -0.007168129552155733, -0.17132538557052612, 0.2590515613555908, 0.4217313528060913, -0.04039916768670082, -0.4671659767627716, -0.059569768607616425 ]
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
I understand that `map` needs to know what kind of output tensors are expected, and thus converting the raw dataset to `torch` format is necessary. Closing the issue since it is resolved.
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
32
Setting to torch format not working with torchvision and MNIST
[ -0.35035860538482666, -0.4446253776550293, -0.034833867102861404, 0.03232528269290924, 0.14277933537960052, -0.03211081400513649, 0.3038266897201538, 0.15605318546295166, -0.05316118150949478, 0.09112251549959183, -0.18816646933555603, 0.39036908745765686, -0.12735719978809357, -0.28482967615127563, -0.30906912684440613, -0.3537190854549408, 0.02792385406792164, -0.01296650804579258, -0.13521313667297363, 0.03234390169382095, 0.021942324936389923, 0.12208208441734314, -0.2357970029115677, -0.1986922025680542, -0.2750813961029053, 0.07504307478666306, 0.16863800585269928, 0.2743000388145447, -0.20689165592193604, -0.09825810045003891, -0.09434916079044342, -0.0880560576915741, 0.1549881398677826, 0.3071492910385132, -0.0001091434751288034, -0.18679006397724152, 0.3668290078639984, -0.15034936368465424, -0.04386918991804123, 0.24721336364746094, 0.34602248668670654, 0.15079578757286072, 0.1011013388633728, 0.06965208798646927, -0.5328038334846497, -0.08551536500453949, 0.054942596703767776, -0.10266906768083572, -0.10077915340662003, 0.1915672868490219, 0.2610529363155365, 0.22723150253295898, 0.2820701003074646, -0.1510160118341446, 0.22765511274337769, 0.4856247007846832, -0.264070987701416, 0.16630615293979645, 0.14406892657279968, 0.3103259801864624, -0.0860980823636055, 0.5089552402496338, -0.2865388095378876, 0.06603671610355377, 0.06177239120006561, -0.17495259642601013, -0.3226504623889923, 0.1612626016139984, 0.19254471361637115, 0.02740633115172386, 0.387311726808548, -0.18799206614494324, 0.3620879054069519, 0.07737375050783157, -0.02617485076189041, -0.22105221450328827, 0.19905130565166473, 0.12823957204818726, -0.06026754528284073, 0.051549095660448074, -0.3132004737854004, 0.0948963314294815, 0.07604765892028809, 0.09465187788009644, -0.0684804767370224, 0.04390616714954376, -0.1621987521648407, -0.09909871220588684, 0.14792974293231964, -0.06395988166332245, 0.14759528636932373, 0.04988417029380798, -0.2234216183423996, -0.22842758893966675, 0.057814549654722214, 0.08588015288114548, -0.018487444147467613, -0.08217266201972961, -0.2804104685783386, -0.15800537168979645, 0.2576834559440613, 0.44939208030700684, 0.1138373464345932, 0.06763523817062378, -0.2566540539264679, -0.06963301450014114, 0.23100902140140533, 0.049298256635665894, 0.008233252912759781, -0.2801651954650879, 0.12007947266101837, 0.029406804591417313, -0.11841876804828644, -0.20015230774879456, -0.22026804089546204, 0.14261773228645325, -0.0818648487329483, -0.23565320670604706, 0.19925615191459656, -0.18677455186843872, -0.08269120752811432, -0.01493353582918644, -0.012912851758301258, 0.19830238819122314, 0.07298385351896286, -0.11209898442029953, 0.18900403380393982, 0.1829332411289215, -0.37798118591308594, 0.08482225984334946, -0.0623236820101738, 0.13983497023582458, -0.35957154631614685, -0.329097718000412, 0.34940105676651, -0.23343300819396973, 0.12244607508182526, 0.050636231899261475, 0.023262860253453255, 0.031114067882299423, 0.17812316119670868, 0.09957686811685562, 0.6320822834968567, 0.06462758034467697, 0.04197247698903084, 0.15367667376995087, 0.06848009675741196, 0.8091864585876465, -0.04452425241470337, 0.1437511444091797, -0.0609557144343853, -0.1613444834947586, -0.20037946105003357, 0.21297602355480194, 0.22071504592895508, 0.05053135007619858, 0.2593519389629364, -0.02343842387199402, 0.3575250804424286, -0.3666747808456421, 0.2474214732646942, -0.3248741030693054, 0.018186207860708237, -0.029909374192357063, 0.09017679840326309, 0.22858087718486786, -0.14960430562496185, 0.10306674987077713, 0.35197481513023376, -0.025095468387007713, 0.10363919287919998, 0.023618483915925026, -0.05337285250425339, -0.017966601997613907, -0.3234826624393463, -0.16004370152950287, 0.2868116497993469, -0.1488167941570282, -0.09245526045560837, -0.1018316000699997, -0.10088378936052322, -0.2140844613313675, 0.40267181396484375, 0.08546381443738937, -0.10769152641296387, 0.10038410872220993, 0.0005126364412717521, 0.036393020302057266, 0.14679843187332153, 0.13168694078922272, -0.2768397629261017, 0.18187665939331055, -0.06339304894208908, 0.07595119625329971, 0.018612327054142952, -0.07324766367673874, -0.002631512936204672, 0.18689320981502533, 0.050124093890190125, -0.08476287126541138, -0.06890509277582169, -0.008266105316579342, -0.4836474657058716, -0.4061964750289917, -0.04523331671953201, 0.23684266209602356, 0.051240224391222, -0.3066276013851166, 0.1364246904850006, 0.2115461826324463, 0.21124227344989777, 0.13622291386127472, 0.0743003711104393, -0.4079422354698181, -0.23726385831832886, -0.29495272040367126, 0.18440207839012146, 0.3615995943546295, -0.13731983304023743, -0.06942643970251083, 0.050767820328474045, -0.29965558648109436, 0.19917885959148407, -0.005948314443230629, -0.23108218610286713, -0.09107142686843872, -0.2962574064731598, -0.3759576976299286, -0.03327634930610657, 0.07442598789930344, 0.21329531073570251, -0.0351640023291111, -0.06803449988365173, 0.15315136313438416, -0.0810759961605072, 0.1216479018330574, -0.5113376975059509, -0.14737948775291443, 0.2384086698293686, -0.34859922528266907, 0.28949421644210815, 0.3642064034938812, 0.08986587077379227, -0.09466886520385742, -0.23922428488731384, 0.37612804770469666, 0.1934126615524292, -0.13117332756519318, -0.10365486890077591, -0.12599924206733704, 0.05643866956233978, 0.14718317985534668, 0.18867447972297668, -0.29054445028305054, 0.0745726227760315, 0.3619142174720764, -0.2185530811548233, -0.0884275808930397, -0.3457276225090027, 0.21881835162639618, 0.14112277328968048, 0.193593829870224, 0.0014993577497079968, -0.20874840021133423, -0.14525751769542694, -0.06074067950248718, 0.4051082730293274, -0.6431973576545715, 0.05789484828710556, 0.24568195641040802, 0.281625360250473, -0.02340385876595974, -0.043976280838251114, -0.46239128708839417, 0.21379899978637695, -0.17900525033473969, -0.29592573642730713, 0.20051300525665283, 0.15700019896030426, -0.3243672251701355, -0.22956302762031555, -0.04088706523180008, -0.13504809141159058, -0.24964718520641327, -0.33637428283691406, -0.07110863924026489, -0.1802845597267151, -0.242631196975708, -0.26638075709342957, -0.1276610940694809, 0.024510474875569344, -0.10287389904260635, 0.26044851541519165, 0.3006513714790344, 0.13519293069839478, 0.23644301295280457, 0.15999507904052734, -0.22713051736354828, 0.07173958420753479, -0.12224600464105606, 0.09337883442640305, -0.10017033666372299, -0.38576892018318176, 0.11028273403644562, 0.007617441471666098, -0.3338267207145691, 0.17756609618663788, -0.3561560809612274, 0.013925805687904358, -0.08777768909931183, 0.0763380229473114, 0.4896225035190582, 0.15640239417552948, -0.5355790853500366, 0.27289581298828125, -0.2374000996351242, 0.16348125040531158, -0.08287543058395386, 0.08649343252182007, -0.14474141597747803, -0.013347839005291462, 0.1006467416882515, -0.040030982345342636, 0.05255904421210289, -0.23993973433971405, -0.2304728627204895, 0.23276124894618988, -0.15504847466945648, -0.2831014096736908, -0.08932316303253174, 0.010748788714408875, 0.3844529986381531, 0.08275851607322693, -0.10175257921218872, -0.33304429054260254, 0.3166968524456024, -0.10658396035432816, -0.16404397785663605, 0.35137903690338135, -0.4313889741897583, -0.3666180670261383, 0.17853406071662903, 0.30648598074913025, -0.09243086725473404, 0.36560773849487305, 0.20307980477809906, -0.0481514073908329, 0.2705748975276947, -0.25757232308387756, 0.10965396463871002, 0.25883597135543823, 0.378671795129776, 0.09645452350378036, -0.17076367139816284, -0.03136172145605087, 0.04332452267408371, -0.0736435055732727, -0.29419535398483276, 0.5511958003044128, -0.04315686225891113, 0.15562762320041656, -0.17407740652561188, 0.4233293831348419, -0.2649838328361511, -0.3805195093154907, 0.3214185833930969, -0.2576971650123596, 0.45192915201187134, -0.3400033414363861, -0.10746064782142639, 0.46568718552589417, 0.2805505096912384, 0.07672031968832016, 0.13413214683532715, 0.04866461455821991, -0.1444295048713684, -0.06008107587695122, 0.1435546725988388, -0.06805400550365448, -0.025606708601117134, 0.12397461384534836, 0.160622701048851, 0.04519745707511902, -0.18126025795936584, 0.7953464984893799, 0.07516275346279144, -0.25099697709083557, 0.2571117579936981, 0.3521324694156647, -0.16570495069026947, 0.07618499547243118, -0.28547319769859314, -0.10660193115472794, -0.011776904575526714, 0.30285823345184326, 0.15241648256778717, 0.3559716045856476, -0.27209511399269104, -0.35593414306640625, 0.27938154339790344, 0.05377059429883957, 0.38551944494247437, 0.01327026542276144, 0.10124725103378296, 0.1740640252828598, -0.0748959332704544, 0.09084271639585495, -0.03854740411043167, 0.09741438925266266, 0.1269776076078415, 0.20623727142810822, -0.2041044533252716, 0.04428373649716377, -0.06787718832492828, 0.018348732963204384, -0.07043609768152237, 0.2256530076265335, -0.011531874537467957, -0.18297474086284637, 0.03523926064372063, -0.2568592429161072, -0.07262221723794937, -0.06681635975837708, 0.0043224734254181385, 0.03266715630888939, -0.058063965290784836, -0.15995781123638153, -0.276593953371048, -0.1923649162054062, 0.10305748879909515, 0.31026217341423035, 0.12534387409687042, -0.1379225105047226, 0.1543775200843811, 0.605934739112854, 0.4164882004261017, -0.20798520743846893, 0.031898465007543564, 0.6952018141746521, 0.4316031336784363, -0.19528304040431976, -0.09060309827327728, 0.4343172311782837, 0.12634965777397156, -0.33733054995536804, -0.36857497692108154, -0.29996371269226074, -0.10089872032403946, 0.2795924246311188, -0.012546603567898273, -0.255767285823822, -0.2287927269935608, -0.062399785965681076, -0.055771354585886, 0.036369841545820236, 0.2327636480331421, 0.0944497361779213, -0.5289416909217834, -0.22210396826267242, -0.13093814253807068, 0.3484432101249695, 0.8449023962020874, 0.19312243163585663, 0.33242371678352356, -0.0531611330807209, -0.48698657751083374, 0.0014400370419025421, -0.04356153681874275, 0.3427371084690094, -0.45382723212242126, 0.165046826004982, 0.020596861839294434, -0.06408368051052094, 0.04610441252589226, -0.39125487208366394, -0.0022105039097368717, 0.04885946214199066, -0.07113572955131531, 0.32742512226104736, -0.17632904648780823, 0.07023940235376358, -0.12145005166530609, -0.24791914224624634, 0.06819800287485123, 0.11878809332847595, -0.027065027505159378, 0.18964603543281555, -0.08976040780544281, -0.15673485398292542, 0.024091042578220367, -0.09436934441328049, 0.030898617580533028, 0.13461171090602875, -0.010097100399434566, -0.19154761731624603, -0.1775268018245697, -0.7767907977104187, -0.17141348123550415, 0.02771742455661297, 0.15299156308174133, 0.17327168583869934, -0.13364452123641968, 0.16955241560935974, 0.511426568031311, -0.06477031111717224, -0.20085851848125458, -0.15127134323120117, 0.17527331411838531, -0.13066409528255463, 0.2036695033311844, 0.18248878419399261, 0.020308028906583786, 0.30980587005615234, -0.4433698058128357, -0.1654445081949234, 0.29237663745880127, -0.07185208052396774, -0.08950173854827881, -0.16444182395935059, 0.02106378972530365, -0.024310294538736343, 0.20223276317119598, -0.1241101622581482, 0.038729336112737656, -0.17305149137973785, 0.02394227869808674, -0.10669779032468796, -0.1681709736585617, 0.6275681257247925, -0.1279384046792984, -0.3019564151763916, 0.09865481406450272, 0.4552282691001892, -0.2460271418094635, -0.2048557996749878, 0.1338633894920349, 0.5930306315422058, -0.2293625771999359, -0.2356843501329422, 0.11021199822425842, -0.3641204535961151, 0.2778935134410858, 0.6852796077728271, -0.14882561564445496, 0.028907863423228264, -0.12875987589359283, 0.254240483045578, -0.4377351701259613, -0.08941870182752609, -0.3280184864997864, 0.27012336254119873, 0.2328462451696396, 0.2699772119522095, 0.3139655590057373, -0.22867451608181, -0.3202875256538391, -0.3038642108440399, 0.3513316512107849, 0.17171187698841095, -0.45992833375930786, -0.08329556882381439, -0.23742353916168213, -0.10029150545597076, 0.13642075657844543, 0.15430670976638794, -0.38572895526885986, -0.22891226410865784, 0.04828653857111931, 0.12996125221252441, 0.12022944539785385, -0.30944424867630005, -0.17654557526111603, -0.2282230705022812, -0.3010731339454651, -0.1336234211921692, -0.05035530775785446, 0.029778366908431053, -0.2696526050567627, 0.03227730467915535, -0.16346947848796844, 0.02281389757990837, 0.2684129476547241, -0.29508787393569946, -0.1384635865688324, -0.06492501497268677, 0.04692308232188225, -0.11155964434146881, -0.24664099514484406, -0.07371938228607178, 0.1626276969909668, 0.2165713608264923, 0.03669821470975876, 0.2903677225112915, 0.044458333402872086, -0.02675347775220871, -0.0624803751707077, 0.040352895855903625, 0.4075194001197815, 0.032065585255622864, -0.02488609403371811, -0.40766218304634094, 0.0998603105545044, 0.21034842729568481, 0.030092349275946617, 0.007725677918642759, -0.010108202695846558, -0.01266357209533453, 0.04709586873650551, 0.2140006721019745, 0.17032408714294434, 0.004002595320343971, -0.13072946667671204, 0.18069739639759064, 0.14225144684314728, -0.27297359704971313, -0.18040980398654938, 0.24638669192790985, -0.06720055639743805, 0.19502590596675873, 0.47520366311073303, -0.03217271715402603, 0.0878802239894867, 0.3292827606201172, 0.31758567690849304, 0.64594966173172, 0.6694344878196716, 0.20664992928504944, 0.031238948926329613, -0.003057741327211261, 0.13035331666469574, -0.3170359134674072, 0.5624967813491821, 0.2971069812774658, 0.14705079793930054, -0.03959467262029648, -0.139932319521904, -0.23450061678886414, 0.16782130300998688, 0.2150435745716095, -0.20366525650024414, -0.06745670735836029, -0.5230258107185364, -0.12735465168952942, 0.20115971565246582, 0.07696429640054703, -0.1470624953508377, 0.47145044803619385, 0.2318500429391861, 0.23077043890953064, -0.1047995314002037, -0.2090761512517929, 0.043335333466529846, -0.19416464865207672, 0.15248239040374756, -0.09471382945775986, 0.28156334161758423, -0.20061303675174713, 0.12251698225736618, 0.3274688422679901, -0.03114369697868824, 0.2547628879547119, 0.18579639494419098, -0.32844194769859314, -0.41601812839508057, 0.00002550732097006403, -0.041673943400382996, -0.11309964954853058, 0.11277484148740768, 0.27781739830970764, 0.05143030732870102, 0.1177404522895813, 0.13612432777881622, -0.21405822038650513, 0.04047866538167, -0.006311007775366306, -0.39825257658958435, 0.450847327709198, -0.1843007206916809, -0.13174475729465485, -0.15943147242069244, -0.16426372528076172, -0.1654004007577896, -0.358376681804657, -0.24769438803195953, 0.28817102313041687, 0.22453191876411438, 0.0034959677141159773, -0.042779117822647095, 0.11677803099155426, 0.2902812361717224, 0.1765948086977005, -0.11439187824726105, -0.14646022021770477, -0.06169012561440468, 0.08156658709049225, -0.059712719172239304, 0.17207123339176178, 0.1934683918952942, -0.3614387512207031, -0.21594099700450897, -0.16812990605831146, 0.45817628502845764, 0.03753972053527832, 0.18231432139873505, 0.17885799705982208, 0.6040655374526978, 0.48573780059814453, -0.02011912316083908, 0.09190915524959564, 0.09659428149461746, -0.03634987771511078, -0.04663870111107826, -0.013142931275069714, 0.09853614121675491, 0.000058282941608922556, 0.24356001615524292, -0.28210684657096863, -0.26910069584846497, -0.09324528276920319, 0.13543395698070526, 0.18606291711330414, -0.12603721022605896, 0.22479258477687836, -0.1075187399983406, -0.09211144596338272, -0.08303643763065338, 0.31840625405311584, 0.06207960098981857, -0.027266517281532288, 0.13016578555107117, 0.4348985552787781, 0.11547203361988068, 0.04832995682954788, -0.50130295753479, 0.6161906719207764, 0.12164456397294998, 0.17370887100696564, -0.16652852296829224, 0.350269079208374, -0.2645069360733032, -0.22626863420009613, 0.14850792288780212, 0.23761801421642303, 0.10382445156574249, 0.16575148701667786, -0.4837121069431305, -0.48881080746650696, 0.1571245640516281, -0.059937734156847, -0.09350256621837616, -0.03320246934890747, -0.071454718708992, 0.3664647340774536, 0.33262524008750916, -0.46404677629470825, 0.07910186052322388, -0.1836969554424286, -0.17167985439300537, 0.019405581057071686, -0.008701149374246597, 0.03687429428100586, -0.007168129552155733, -0.17132538557052612, 0.2590515613555908, 0.4217313528060913, -0.04039916768670082, -0.4671659767627716, -0.059569768607616425 ]
https://github.com/huggingface/datasets/issues/2003
Messages are being printed to the `stdout`
This is expected to show this message to the user via stdout. This way the users see it directly and can cancel the downloading if they want to. Could you elaborate why it would be better to have it in stderr instead of stdout ?
In this code segment, we can see some messages are being printed to the `stdout`. https://github.com/huggingface/datasets/blob/7e60bb509b595e8edc60a87f32b2bacfc065d607/src/datasets/builder.py#L545-L554 According to the comment, it is done intentionally, but I don't really understand why don't we log it with a higher level or print it directly to the `stderr`. In my opinion, this kind of messages should never printed to the stdout. At least some configuration/flag should make it possible to provide in order to explicitly prevent the package to contaminate the stdout.
45
Messages are being printed to the `stdout`
[ 0.19783441722393036, -0.5971139669418335, -0.1864439696073532, 0.17342939972877502, 0.2071002721786499, -0.05003262311220169, 0.15474990010261536, 0.10989730060100555, 0.06624389439821243, 0.31430989503860474, 0.10595563054084778, 0.0666295662522316, -0.16704709827899933, 0.07695932686328888, 0.09061461687088013, 0.3238626718521118, -0.058715205639600754, -0.11050158739089966, -0.30184072256088257, -0.14608018100261688, -0.09455933421850204, 0.31178441643714905, 0.15818320214748383, 0.36987683176994324, -0.22067338228225708, -0.1656031757593155, 0.19301509857177734, 0.18947188556194305, -0.029322726652026176, -0.03361743688583374, -0.16750143468379974, -0.01160956360399723, -0.2018250674009323, 0.3078751266002655, -0.00009859785495791584, -0.05856073647737503, 0.2403605878353119, -0.04990801587700844, -0.2934176027774811, -0.013142651878297329, -0.002650940092280507, 0.06938023865222931, 0.23558290302753448, -0.20344595611095428, 0.06050252541899681, -0.09123258292675018, 0.2241353690624237, -0.4545973837375641, 0.29956772923469543, 0.49245575070381165, 0.3828624486923218, -0.0869874358177185, -0.07270260900259018, 0.21933908760547638, 0.20738588273525238, 0.3978850841522217, 0.13998055458068848, -0.044920966029167175, 0.17782802879810333, 0.23447884619235992, -0.1047155037522316, 0.12741144001483917, -0.18511851131916046, -0.40486904978752136, -0.13541024923324585, 0.12074887752532959, 0.4071741998195648, -0.110200434923172, 0.14130474627017975, -0.17695815861225128, 0.12556058168411255, -0.2635154128074646, 0.17433713376522064, 0.005845456384122372, -0.11853265762329102, -0.24176843464374542, -0.012887836433947086, 0.12070448696613312, -0.3712793290615082, 0.15991857647895813, -0.1373172253370285, -0.16613541543483734, -0.2366771697998047, -0.10291168093681335, 0.0027974825352430344, -0.010447761043906212, -0.23430827260017395, -0.04616257920861244, -0.24777720868587494, 0.14362315833568573, -0.1762963980436325, 0.05741186812520027, -0.25686419010162354, -0.03764967620372772, 0.07260172814130783, 0.1472674310207367, 0.2023664265871048, -0.3683833181858063, -0.05472715198993683, -0.30422109365463257, 0.0857546329498291, 0.13939377665519714, 0.21368813514709473, 0.03836742788553238, 0.27483516931533813, -0.12312778830528259, 0.3391472399234772, 0.11816379427909851, -0.14353135228157043, -0.09239746630191803, 0.0014041734393686056, -0.2199626863002777, 0.11706807464361191, 0.10431445389986038, 0.3385738730430603, -0.19947613775730133, 0.004340555518865585, -0.09334792196750641, 0.06894133985042572, 0.2246587574481964, -0.0023800332564860582, 0.059638362377882004, -0.02784372866153717, 0.2926616370677948, 0.374977171421051, 0.06485287100076675, 0.41113150119781494, -0.03864360600709915, -0.2571914792060852, 0.09805987030267715, -0.236464723944664, 0.14134889841079712, -0.1366594135761261, -0.22674980759620667, -0.21526280045509338, 0.34007036685943604, -0.09545204043388367, 0.13765564560890198, 0.20577166974544525, -0.2643088102340698, -0.31496384739875793, 0.05173029005527496, 0.37237250804901123, 0.1972186118364334, -0.26575085520744324, 0.22832652926445007, 0.2677595913410187, 0.0879606083035469, 0.022899100556969643, 0.2465844303369522, 0.07199817895889282, -0.029265614226460457, 0.2725767493247986, 0.3064284920692444, 0.23695404827594757, 0.16694168746471405, -0.10139992833137512, -0.06146123632788658, 0.14938472211360931, 0.0043736789375543594, 0.2519276440143585, -0.22745268046855927, 0.026691194623708725, -0.09439393877983093, 0.09859488159418106, 0.2595815360546112, -0.1002107635140419, -0.06664523482322693, -0.23311007022857666, -0.2631784975528717, 0.5970559120178223, -0.040068477392196655, 0.30514010787010193, 0.4477510154247284, -0.3019852936267853, -0.43373820185661316, 0.23253650963306427, -0.2646710276603699, 0.13192547857761383, 0.03197035565972328, -0.3899352252483368, 0.31323114037513733, 0.15535344183444977, -0.035590410232543945, -0.008510968647897243, 0.2175949364900589, 0.26420196890830994, -0.29315194487571716, 0.1074863150715828, 0.1500287801027298, -0.15971356630325317, 0.08562834560871124, -0.41480231285095215, -0.13488788902759552, 0.06324365735054016, -0.07262349128723145, -0.00750110624358058, 0.0492551252245903, 0.30132150650024414, 0.14265918731689453, 0.08371462672948837, -0.20544275641441345, 0.130196213722229, 0.2562323808670044, -0.12456272542476654, 0.0459914430975914, 0.24802593886852264, -0.3401525318622589, -0.21115976572036743, 0.09006817638874054, -0.24311749637126923, 0.18342429399490356, -0.1430225968360901, 0.25415363907814026, 0.11754105240106583, -0.13757304847240448, 0.26608961820602417, 0.29584676027297974, -0.0020193159580230713, 0.34357360005378723, -0.03621584549546242, 0.18564870953559875, -0.29586613178253174, -0.07285163551568985, 0.19914159178733826, -0.3321060240268707, 0.04664818197488785, -0.3560742735862732, 0.013483372516930103, 0.09525837749242783, -0.22472843527793884, 0.14289703965187073, -0.2746557593345642, 0.18354496359825134, 0.18027979135513306, 0.07894536852836609, -0.5058154463768005, 0.15713229775428772, 0.08019796758890152, 0.07884690910577774, -0.09818309545516968, 0.22650597989559174, 0.01622971147298813, -0.04681823402643204, 0.3257982134819031, -0.13319377601146698, -0.30482688546180725, -0.019300909712910652, 0.08067354559898376, -0.16742494702339172, -0.029012765735387802, 0.22613641619682312, 0.14773966372013092, -0.3453555703163147, -0.038309331983327866, -0.2500583827495575, -0.045360974967479706, 0.019400281831622124, -0.13873368501663208, 0.017682667821645737, 0.5212509632110596, 0.10111960768699646, 0.05159086734056473, 0.13483132421970367, 0.06263931095600128, 0.041814208030700684, 0.0013236056547611952, -0.2021775245666504, -0.050430189818143845, 0.23366433382034302, 0.05291176959872246, -0.08700228482484818, 0.2114490270614624, -0.21416427195072174, 0.28108081221580505, -0.15725389122962952, -0.20097269117832184, 0.24616169929504395, -0.14629125595092773, -0.2175864428281784, -0.322238028049469, 0.3077233135700226, -0.356410950422287, -0.17106401920318604, -0.3581656217575073, 0.08691178262233734, -0.17551548779010773, -0.17136570811271667, -0.3607793152332306, -0.24640153348445892, 0.1743026226758957, -0.2507626712322235, 0.36398160457611084, 0.14750315248966217, -0.1779991239309311, -0.04970099776983261, 0.09559085965156555, 0.2890591621398926, 0.26739805936813354, 0.3386981189250946, -0.2951352894306183, 0.056348010897636414, -0.3911994993686676, 0.21747522056102753, -0.2747342884540558, 0.17320139706134796, 0.2083345353603363, -0.2504223883152008, 0.008219890296459198, -0.055086515843868256, 0.24711155891418457, 0.07422275841236115, -0.17664480209350586, 0.33435821533203125, 0.09810399264097214, 0.2929445207118988, -0.11127661913633347, -0.2768019139766693, 0.12619611620903015, -0.5172893404960632, -0.12657929956912994, -0.10812798142433167, 0.10881801694631577, -0.06204347312450409, -0.29505234956741333, -0.30780428647994995, -0.1758146435022354, -0.21292249858379364, 0.13717782497406006, -0.17591403424739838, 0.41244280338287354, 0.03745736554265022, -0.15650330483913422, 0.055624593049287796, -0.25040557980537415, 0.5436721444129944, -0.007437051739543676, -0.358384907245636, -0.18931955099105835, -0.10118227452039719, -0.0908266007900238, -0.1386067420244217, 0.2750950753688812, -0.24204809963703156, -0.1741429567337036, -0.3511134386062622, -0.17250360548496246, -0.05508047714829445, -0.2721944749355316, 0.07169594615697861, -0.020515844225883484, 0.13034330308437347, 0.023826884105801582, -0.3641248345375061, -0.18133927881717682, 0.10662038624286652, 0.2081960290670395, -0.374132364988327, 0.2097329944372177, 0.020167574286460876, 0.1749897599220276, -0.1655481457710266, -0.03766497224569321, 0.13394330441951752, 0.13797202706336975, -0.1800691932439804, -0.08850017935037613, 0.4919321537017822, -0.31117790937423706, -0.2818617522716522, 0.005415746010839939, 0.34089234471321106, -0.5277922749519348, 0.33529454469680786, -0.10121940821409225, 0.32503238320350647, 0.3170187473297119, 0.2748773992061615, -0.3162323236465454, -0.437163770198822, -0.13034237921237946, 0.010897504165768623, 0.030942276120185852, -0.21915782988071442, 0.1058507040143013, 0.035377781838178635, -0.04492899775505066, -0.1660367101430893, 0.3540932238101959, -0.03765988349914551, 0.1424625962972641, -0.4032140374183655, -0.23129351437091827, -0.20399698615074158, 0.029264910146594048, 0.16324947774410248, 0.3292711079120636, -0.5811364054679871, -0.23026280105113983, 0.22092142701148987, -0.007451246026903391, 0.4973391592502594, 0.21507330238819122, -0.05083243548870087, 0.1694323867559433, 0.2275083214044571, 0.1739378273487091, 0.09593094885349274, -0.21241822838783264, 0.03742862865328789, 0.5879250168800354, -0.36185982823371887, 0.025125777348876, -0.01703108474612236, -0.08898424357175827, -0.36122480034828186, -0.25410011410713196, -0.1410851627588272, -0.293052613735199, -0.23655791580677032, 0.09784410893917084, 0.21670864522457123, 0.08094281703233719, 0.14948584139347076, -0.3063708245754242, -0.2971949577331543, 0.46595707535743713, 0.09659671038389206, 0.03849007934331894, -0.18594907224178314, 0.06664100289344788, -0.19712086021900177, -0.3895118236541748, -0.037252143025398254, 0.42412927746772766, 0.25246483087539673, -0.1183314397931099, 0.14245150983333588, 0.07833560556173325, 0.08384693413972855, -0.2586928904056549, 0.16641490161418915, 0.11545101553201675, 0.07973544299602509, 0.15164589881896973, -0.028945760801434517, 0.08065755665302277, -0.05247950181365013, 0.05964905023574829, 0.1054317057132721, 0.057191118597984314, -0.052963320165872574, -0.04053601995110512, -0.3569738268852234, -0.06849442422389984, 0.052191585302352905, 0.23301714658737183, -0.37138909101486206, -0.4792810380458832, 0.14700867235660553, 0.021883448585867882, 0.8013868927955627, -0.2060362547636032, -0.07920429110527039, 0.10275553166866302, -0.35395243763923645, 0.008359560742974281, 0.18637022376060486, 0.1511208415031433, -0.1754342019557953, 0.01197079848498106, 0.17602302134037018, -0.18692456185817719, -0.07897073030471802, 0.08166646957397461, -0.09253817051649094, -0.2193222939968109, -0.06812193989753723, -0.14542965590953827, -0.031236721202731133, -0.061363186687231064, 0.1200440376996994, 0.06905794888734818, -0.2368202954530716, 0.29215043783187866, 0.08051105588674545, -0.07358817756175995, -0.06413760036230087, 0.07287920266389847, 0.0701686292886734, -0.24610720574855804, -0.09216892719268799, -0.07584912329912186, 0.1974012404680252, -0.09564866870641708, -0.09313108772039413, 0.10172080993652344, -0.363462895154953, 0.12190356105566025, 0.07304058223962784, 0.4927726089954376, 0.173737570643425, -0.1498197615146637, 0.3814176619052887, 0.14458775520324707, -0.2155115157365799, 0.26937389373779297, -0.03896202892065048, 0.09106487035751343, -0.3941371738910675, 0.11595621705055237, 0.058571621775627136, -0.34673282504081726, -0.06602184474468231, -0.03468909487128258, 0.287175714969635, -0.20444685220718384, 0.16756516695022583, -0.010679271072149277, -0.07709123939275742, 0.1632259041070938, 0.30658501386642456, -0.036009225994348526, -0.0689501091837883, 0.3855075538158417, -0.1969381719827652, -0.5246110558509827, -0.08929968625307083, -0.09341965615749359, 0.07213663309812546, -0.033386439085006714, 0.3426293134689331, 0.3057399392127991, -0.25636059045791626, -0.3799234628677368, 0.09039262682199478, -0.06960636377334595, 0.14213372766971588, 0.3526720106601715, 0.3542327284812927, -0.0681748017668724, 0.08008734881877899, 0.3557736873626709, 0.030830664560198784, 0.17235693335533142, -0.378246009349823, 0.12021617591381073, -0.30788454413414, 0.06281612068414688, -0.1850835531949997, 0.3169212341308594, 0.4023492634296417, -0.042805545032024384, 0.012174990028142929, 0.041473012417554855, -0.4667249619960785, -0.3892383873462677, -0.3518577218055725, 0.11451637744903564, 0.17843692004680634, -0.30144914984703064, 0.11236110329627991, -0.032274678349494934, 0.3116280436515808, -0.08745524287223816, -0.016080595552921295, -0.398929238319397, 0.19491571187973022, 0.03267383202910423, -0.16188369691371918, 0.06751642376184464, -0.1819419413805008, 0.0006655426695942879, 0.22075793147087097, -0.10884969681501389, 0.3632357716560364, 0.4093230962753296, -0.1629878282546997, -0.024564111605286598, 0.07417523115873337, 0.30371788144111633, 0.09329574555158615, -0.0795367956161499, 0.07317131012678146, 0.0916147232055664, -0.07522481679916382, -0.22908391058444977, -0.025225205346941948, -0.2098848819732666, 0.16479426622390747, 0.20026758313179016, 0.4682142436504364, 0.17923229932785034, 0.07743488252162933, -0.04573356360197067, -0.15570659935474396, 0.08650660514831543, -0.0029248292557895184, 0.012847821228206158, -0.04970042407512665, -0.3215027153491974, -0.09352424740791321, 0.3551315665245056, 0.18690316379070282, 0.10285358130931854, -0.20902608335018158, -0.24010629951953888, -0.15407930314540863, 0.11571081727743149, -0.1328170895576477, -0.4643864333629608, 0.31307822465896606, 0.10540131479501724, -0.04848773404955864, -0.3307453989982605, -0.1159176453948021, 0.01806723326444626, -0.09198667109012604, 0.08651979267597198, 0.1825190633535385, -0.029717352241277695, -0.07396265119314194, -0.12881208956241608, 0.26818597316741943, -0.08884770423173904, 0.23970749974250793, -0.011998957023024559, -0.14304786920547485, -0.0034447843208909035, -0.1995423138141632, 0.1387898474931717, -0.30195656418800354, 0.12321652472019196, 0.059643954038619995, 0.04424067214131355, -0.013634802773594856, 0.09738048911094666, -0.05389605090022087, -0.054753128439188004, -0.2395816594362259, 0.1203661859035492, -0.10806620121002197, 0.00693474942818284, -0.09794871509075165, -0.19236533343791962, 0.20487511157989502, 0.31008946895599365, -0.3151625692844391, 0.07278993725776672, -0.007127886638045311, -0.11547894775867462, -0.30328094959259033, -0.12802420556545258, -0.029538433998823166, -0.21173720061779022, 0.17943766713142395, 0.1914871782064438, 0.3445886969566345, 0.30061158537864685, 0.2182634472846985, 0.18969547748565674, 0.42902708053588867, 0.23075136542320251, 0.04661528766155243, -0.004755164962261915, -0.022187165915966034, -0.15556827187538147, 0.43974483013153076, 0.16356132924556732, -0.02530241757631302, -0.009600565768778324, 0.3527613580226898, -0.27914300560951233, 0.09230021387338638, 0.20358094573020935, -0.06958811730146408, 0.2818540632724762, 0.5097948908805847, 0.18011653423309326, 0.02192637510597706, -0.30352723598480225, -0.047990985214710236, -0.5638929605484009, -0.010009587742388248, 0.10047689825296402, -0.14251409471035004, 0.21328261494636536, -0.14502085745334625, 0.20485803484916687, 0.017714595422148705, 0.20336134731769562, 0.3884407579898834, 0.1921214610338211, 0.1525741070508957, -0.051884137094020844, 0.14362747967243195, 0.35336366295814514, 0.1097930371761322, 0.07761683315038681, -0.24465659260749817, -0.18643829226493835, 0.06863808631896973, -0.07504469156265259, 0.0688808262348175, -0.3525260090827942, -0.5936734080314636, 0.14906272292137146, -0.10795106738805771, 0.35032814741134644, 0.4970928430557251, 0.1120951920747757, -0.044232919812202454, 0.11961802840232849, 0.2221638411283493, -0.3494024872779846, 0.2718842029571533, 0.17530499398708344, 0.10432229191064835, -0.21599335968494415, 0.24007537961006165, -0.10192452371120453, 0.2632802426815033, 0.09627249836921692, -0.22280438244342804, -0.02434931881725788, -0.010839898139238358, -0.07675787061452866, -0.003407661570236087, 0.025720620527863503, -0.018318843096494675, 0.30577561259269714, -0.0016755479155108333, -0.15726959705352783, -0.1393505036830902, 0.10559829324483871, 0.012602129019796848, 0.012430740520358086, 0.26883193850517273, 0.03552567586302757, -0.1334770768880844, -0.21268251538276672, 0.03663090988993645, 0.27952349185943604, 0.18509607017040253, 0.17030148208141327, 0.01615574024617672, -0.17300643026828766, -0.04464557021856308, -0.07934635132551193, -0.323645681142807, -0.15714538097381592, 0.3135586678981781, -0.1121314987540245, -0.07318037003278732, -0.1457737535238266, -0.0216122567653656, 0.27147072553634644, -0.20301640033721924, 0.21854788064956665, 0.1636546552181244, -0.10923676192760468, -0.08921857923269272, 0.05594418942928314, 0.20653626322746277, 0.16979798674583435, 0.28922897577285767, 0.029200855642557144, -0.23979665338993073 ]
https://github.com/huggingface/datasets/issues/2003
Messages are being printed to the `stdout`
@lhoestq, sorry for the late reply I completely understand why you decided to output a message that is always shown. The only problem is that the message is printed to the `stdout`. For example, if the user runs `python run_glue.py > log_file`, it will redirect `stdout` to the file named `log_file`, and the message will not be shown to the user. Instead, we should print this message to `stderr`. Even in the case of `python run_glue.py > log_file` only `stdout` is being redirected and so the message is always shown.
In this code segment, we can see some messages are being printed to the `stdout`. https://github.com/huggingface/datasets/blob/7e60bb509b595e8edc60a87f32b2bacfc065d607/src/datasets/builder.py#L545-L554 According to the comment, it is done intentionally, but I don't really understand why don't we log it with a higher level or print it directly to the `stderr`. In my opinion, this kind of messages should never printed to the stdout. At least some configuration/flag should make it possible to provide in order to explicitly prevent the package to contaminate the stdout.
90
Messages are being printed to the `stdout`
[ 0.19783441722393036, -0.5971139669418335, -0.1864439696073532, 0.17342939972877502, 0.2071002721786499, -0.05003262311220169, 0.15474990010261536, 0.10989730060100555, 0.06624389439821243, 0.31430989503860474, 0.10595563054084778, 0.0666295662522316, -0.16704709827899933, 0.07695932686328888, 0.09061461687088013, 0.3238626718521118, -0.058715205639600754, -0.11050158739089966, -0.30184072256088257, -0.14608018100261688, -0.09455933421850204, 0.31178441643714905, 0.15818320214748383, 0.36987683176994324, -0.22067338228225708, -0.1656031757593155, 0.19301509857177734, 0.18947188556194305, -0.029322726652026176, -0.03361743688583374, -0.16750143468379974, -0.01160956360399723, -0.2018250674009323, 0.3078751266002655, -0.00009859785495791584, -0.05856073647737503, 0.2403605878353119, -0.04990801587700844, -0.2934176027774811, -0.013142651878297329, -0.002650940092280507, 0.06938023865222931, 0.23558290302753448, -0.20344595611095428, 0.06050252541899681, -0.09123258292675018, 0.2241353690624237, -0.4545973837375641, 0.29956772923469543, 0.49245575070381165, 0.3828624486923218, -0.0869874358177185, -0.07270260900259018, 0.21933908760547638, 0.20738588273525238, 0.3978850841522217, 0.13998055458068848, -0.044920966029167175, 0.17782802879810333, 0.23447884619235992, -0.1047155037522316, 0.12741144001483917, -0.18511851131916046, -0.40486904978752136, -0.13541024923324585, 0.12074887752532959, 0.4071741998195648, -0.110200434923172, 0.14130474627017975, -0.17695815861225128, 0.12556058168411255, -0.2635154128074646, 0.17433713376522064, 0.005845456384122372, -0.11853265762329102, -0.24176843464374542, -0.012887836433947086, 0.12070448696613312, -0.3712793290615082, 0.15991857647895813, -0.1373172253370285, -0.16613541543483734, -0.2366771697998047, -0.10291168093681335, 0.0027974825352430344, -0.010447761043906212, -0.23430827260017395, -0.04616257920861244, -0.24777720868587494, 0.14362315833568573, -0.1762963980436325, 0.05741186812520027, -0.25686419010162354, -0.03764967620372772, 0.07260172814130783, 0.1472674310207367, 0.2023664265871048, -0.3683833181858063, -0.05472715198993683, -0.30422109365463257, 0.0857546329498291, 0.13939377665519714, 0.21368813514709473, 0.03836742788553238, 0.27483516931533813, -0.12312778830528259, 0.3391472399234772, 0.11816379427909851, -0.14353135228157043, -0.09239746630191803, 0.0014041734393686056, -0.2199626863002777, 0.11706807464361191, 0.10431445389986038, 0.3385738730430603, -0.19947613775730133, 0.004340555518865585, -0.09334792196750641, 0.06894133985042572, 0.2246587574481964, -0.0023800332564860582, 0.059638362377882004, -0.02784372866153717, 0.2926616370677948, 0.374977171421051, 0.06485287100076675, 0.41113150119781494, -0.03864360600709915, -0.2571914792060852, 0.09805987030267715, -0.236464723944664, 0.14134889841079712, -0.1366594135761261, -0.22674980759620667, -0.21526280045509338, 0.34007036685943604, -0.09545204043388367, 0.13765564560890198, 0.20577166974544525, -0.2643088102340698, -0.31496384739875793, 0.05173029005527496, 0.37237250804901123, 0.1972186118364334, -0.26575085520744324, 0.22832652926445007, 0.2677595913410187, 0.0879606083035469, 0.022899100556969643, 0.2465844303369522, 0.07199817895889282, -0.029265614226460457, 0.2725767493247986, 0.3064284920692444, 0.23695404827594757, 0.16694168746471405, -0.10139992833137512, -0.06146123632788658, 0.14938472211360931, 0.0043736789375543594, 0.2519276440143585, -0.22745268046855927, 0.026691194623708725, -0.09439393877983093, 0.09859488159418106, 0.2595815360546112, -0.1002107635140419, -0.06664523482322693, -0.23311007022857666, -0.2631784975528717, 0.5970559120178223, -0.040068477392196655, 0.30514010787010193, 0.4477510154247284, -0.3019852936267853, -0.43373820185661316, 0.23253650963306427, -0.2646710276603699, 0.13192547857761383, 0.03197035565972328, -0.3899352252483368, 0.31323114037513733, 0.15535344183444977, -0.035590410232543945, -0.008510968647897243, 0.2175949364900589, 0.26420196890830994, -0.29315194487571716, 0.1074863150715828, 0.1500287801027298, -0.15971356630325317, 0.08562834560871124, -0.41480231285095215, -0.13488788902759552, 0.06324365735054016, -0.07262349128723145, -0.00750110624358058, 0.0492551252245903, 0.30132150650024414, 0.14265918731689453, 0.08371462672948837, -0.20544275641441345, 0.130196213722229, 0.2562323808670044, -0.12456272542476654, 0.0459914430975914, 0.24802593886852264, -0.3401525318622589, -0.21115976572036743, 0.09006817638874054, -0.24311749637126923, 0.18342429399490356, -0.1430225968360901, 0.25415363907814026, 0.11754105240106583, -0.13757304847240448, 0.26608961820602417, 0.29584676027297974, -0.0020193159580230713, 0.34357360005378723, -0.03621584549546242, 0.18564870953559875, -0.29586613178253174, -0.07285163551568985, 0.19914159178733826, -0.3321060240268707, 0.04664818197488785, -0.3560742735862732, 0.013483372516930103, 0.09525837749242783, -0.22472843527793884, 0.14289703965187073, -0.2746557593345642, 0.18354496359825134, 0.18027979135513306, 0.07894536852836609, -0.5058154463768005, 0.15713229775428772, 0.08019796758890152, 0.07884690910577774, -0.09818309545516968, 0.22650597989559174, 0.01622971147298813, -0.04681823402643204, 0.3257982134819031, -0.13319377601146698, -0.30482688546180725, -0.019300909712910652, 0.08067354559898376, -0.16742494702339172, -0.029012765735387802, 0.22613641619682312, 0.14773966372013092, -0.3453555703163147, -0.038309331983327866, -0.2500583827495575, -0.045360974967479706, 0.019400281831622124, -0.13873368501663208, 0.017682667821645737, 0.5212509632110596, 0.10111960768699646, 0.05159086734056473, 0.13483132421970367, 0.06263931095600128, 0.041814208030700684, 0.0013236056547611952, -0.2021775245666504, -0.050430189818143845, 0.23366433382034302, 0.05291176959872246, -0.08700228482484818, 0.2114490270614624, -0.21416427195072174, 0.28108081221580505, -0.15725389122962952, -0.20097269117832184, 0.24616169929504395, -0.14629125595092773, -0.2175864428281784, -0.322238028049469, 0.3077233135700226, -0.356410950422287, -0.17106401920318604, -0.3581656217575073, 0.08691178262233734, -0.17551548779010773, -0.17136570811271667, -0.3607793152332306, -0.24640153348445892, 0.1743026226758957, -0.2507626712322235, 0.36398160457611084, 0.14750315248966217, -0.1779991239309311, -0.04970099776983261, 0.09559085965156555, 0.2890591621398926, 0.26739805936813354, 0.3386981189250946, -0.2951352894306183, 0.056348010897636414, -0.3911994993686676, 0.21747522056102753, -0.2747342884540558, 0.17320139706134796, 0.2083345353603363, -0.2504223883152008, 0.008219890296459198, -0.055086515843868256, 0.24711155891418457, 0.07422275841236115, -0.17664480209350586, 0.33435821533203125, 0.09810399264097214, 0.2929445207118988, -0.11127661913633347, -0.2768019139766693, 0.12619611620903015, -0.5172893404960632, -0.12657929956912994, -0.10812798142433167, 0.10881801694631577, -0.06204347312450409, -0.29505234956741333, -0.30780428647994995, -0.1758146435022354, -0.21292249858379364, 0.13717782497406006, -0.17591403424739838, 0.41244280338287354, 0.03745736554265022, -0.15650330483913422, 0.055624593049287796, -0.25040557980537415, 0.5436721444129944, -0.007437051739543676, -0.358384907245636, -0.18931955099105835, -0.10118227452039719, -0.0908266007900238, -0.1386067420244217, 0.2750950753688812, -0.24204809963703156, -0.1741429567337036, -0.3511134386062622, -0.17250360548496246, -0.05508047714829445, -0.2721944749355316, 0.07169594615697861, -0.020515844225883484, 0.13034330308437347, 0.023826884105801582, -0.3641248345375061, -0.18133927881717682, 0.10662038624286652, 0.2081960290670395, -0.374132364988327, 0.2097329944372177, 0.020167574286460876, 0.1749897599220276, -0.1655481457710266, -0.03766497224569321, 0.13394330441951752, 0.13797202706336975, -0.1800691932439804, -0.08850017935037613, 0.4919321537017822, -0.31117790937423706, -0.2818617522716522, 0.005415746010839939, 0.34089234471321106, -0.5277922749519348, 0.33529454469680786, -0.10121940821409225, 0.32503238320350647, 0.3170187473297119, 0.2748773992061615, -0.3162323236465454, -0.437163770198822, -0.13034237921237946, 0.010897504165768623, 0.030942276120185852, -0.21915782988071442, 0.1058507040143013, 0.035377781838178635, -0.04492899775505066, -0.1660367101430893, 0.3540932238101959, -0.03765988349914551, 0.1424625962972641, -0.4032140374183655, -0.23129351437091827, -0.20399698615074158, 0.029264910146594048, 0.16324947774410248, 0.3292711079120636, -0.5811364054679871, -0.23026280105113983, 0.22092142701148987, -0.007451246026903391, 0.4973391592502594, 0.21507330238819122, -0.05083243548870087, 0.1694323867559433, 0.2275083214044571, 0.1739378273487091, 0.09593094885349274, -0.21241822838783264, 0.03742862865328789, 0.5879250168800354, -0.36185982823371887, 0.025125777348876, -0.01703108474612236, -0.08898424357175827, -0.36122480034828186, -0.25410011410713196, -0.1410851627588272, -0.293052613735199, -0.23655791580677032, 0.09784410893917084, 0.21670864522457123, 0.08094281703233719, 0.14948584139347076, -0.3063708245754242, -0.2971949577331543, 0.46595707535743713, 0.09659671038389206, 0.03849007934331894, -0.18594907224178314, 0.06664100289344788, -0.19712086021900177, -0.3895118236541748, -0.037252143025398254, 0.42412927746772766, 0.25246483087539673, -0.1183314397931099, 0.14245150983333588, 0.07833560556173325, 0.08384693413972855, -0.2586928904056549, 0.16641490161418915, 0.11545101553201675, 0.07973544299602509, 0.15164589881896973, -0.028945760801434517, 0.08065755665302277, -0.05247950181365013, 0.05964905023574829, 0.1054317057132721, 0.057191118597984314, -0.052963320165872574, -0.04053601995110512, -0.3569738268852234, -0.06849442422389984, 0.052191585302352905, 0.23301714658737183, -0.37138909101486206, -0.4792810380458832, 0.14700867235660553, 0.021883448585867882, 0.8013868927955627, -0.2060362547636032, -0.07920429110527039, 0.10275553166866302, -0.35395243763923645, 0.008359560742974281, 0.18637022376060486, 0.1511208415031433, -0.1754342019557953, 0.01197079848498106, 0.17602302134037018, -0.18692456185817719, -0.07897073030471802, 0.08166646957397461, -0.09253817051649094, -0.2193222939968109, -0.06812193989753723, -0.14542965590953827, -0.031236721202731133, -0.061363186687231064, 0.1200440376996994, 0.06905794888734818, -0.2368202954530716, 0.29215043783187866, 0.08051105588674545, -0.07358817756175995, -0.06413760036230087, 0.07287920266389847, 0.0701686292886734, -0.24610720574855804, -0.09216892719268799, -0.07584912329912186, 0.1974012404680252, -0.09564866870641708, -0.09313108772039413, 0.10172080993652344, -0.363462895154953, 0.12190356105566025, 0.07304058223962784, 0.4927726089954376, 0.173737570643425, -0.1498197615146637, 0.3814176619052887, 0.14458775520324707, -0.2155115157365799, 0.26937389373779297, -0.03896202892065048, 0.09106487035751343, -0.3941371738910675, 0.11595621705055237, 0.058571621775627136, -0.34673282504081726, -0.06602184474468231, -0.03468909487128258, 0.287175714969635, -0.20444685220718384, 0.16756516695022583, -0.010679271072149277, -0.07709123939275742, 0.1632259041070938, 0.30658501386642456, -0.036009225994348526, -0.0689501091837883, 0.3855075538158417, -0.1969381719827652, -0.5246110558509827, -0.08929968625307083, -0.09341965615749359, 0.07213663309812546, -0.033386439085006714, 0.3426293134689331, 0.3057399392127991, -0.25636059045791626, -0.3799234628677368, 0.09039262682199478, -0.06960636377334595, 0.14213372766971588, 0.3526720106601715, 0.3542327284812927, -0.0681748017668724, 0.08008734881877899, 0.3557736873626709, 0.030830664560198784, 0.17235693335533142, -0.378246009349823, 0.12021617591381073, -0.30788454413414, 0.06281612068414688, -0.1850835531949997, 0.3169212341308594, 0.4023492634296417, -0.042805545032024384, 0.012174990028142929, 0.041473012417554855, -0.4667249619960785, -0.3892383873462677, -0.3518577218055725, 0.11451637744903564, 0.17843692004680634, -0.30144914984703064, 0.11236110329627991, -0.032274678349494934, 0.3116280436515808, -0.08745524287223816, -0.016080595552921295, -0.398929238319397, 0.19491571187973022, 0.03267383202910423, -0.16188369691371918, 0.06751642376184464, -0.1819419413805008, 0.0006655426695942879, 0.22075793147087097, -0.10884969681501389, 0.3632357716560364, 0.4093230962753296, -0.1629878282546997, -0.024564111605286598, 0.07417523115873337, 0.30371788144111633, 0.09329574555158615, -0.0795367956161499, 0.07317131012678146, 0.0916147232055664, -0.07522481679916382, -0.22908391058444977, -0.025225205346941948, -0.2098848819732666, 0.16479426622390747, 0.20026758313179016, 0.4682142436504364, 0.17923229932785034, 0.07743488252162933, -0.04573356360197067, -0.15570659935474396, 0.08650660514831543, -0.0029248292557895184, 0.012847821228206158, -0.04970042407512665, -0.3215027153491974, -0.09352424740791321, 0.3551315665245056, 0.18690316379070282, 0.10285358130931854, -0.20902608335018158, -0.24010629951953888, -0.15407930314540863, 0.11571081727743149, -0.1328170895576477, -0.4643864333629608, 0.31307822465896606, 0.10540131479501724, -0.04848773404955864, -0.3307453989982605, -0.1159176453948021, 0.01806723326444626, -0.09198667109012604, 0.08651979267597198, 0.1825190633535385, -0.029717352241277695, -0.07396265119314194, -0.12881208956241608, 0.26818597316741943, -0.08884770423173904, 0.23970749974250793, -0.011998957023024559, -0.14304786920547485, -0.0034447843208909035, -0.1995423138141632, 0.1387898474931717, -0.30195656418800354, 0.12321652472019196, 0.059643954038619995, 0.04424067214131355, -0.013634802773594856, 0.09738048911094666, -0.05389605090022087, -0.054753128439188004, -0.2395816594362259, 0.1203661859035492, -0.10806620121002197, 0.00693474942818284, -0.09794871509075165, -0.19236533343791962, 0.20487511157989502, 0.31008946895599365, -0.3151625692844391, 0.07278993725776672, -0.007127886638045311, -0.11547894775867462, -0.30328094959259033, -0.12802420556545258, -0.029538433998823166, -0.21173720061779022, 0.17943766713142395, 0.1914871782064438, 0.3445886969566345, 0.30061158537864685, 0.2182634472846985, 0.18969547748565674, 0.42902708053588867, 0.23075136542320251, 0.04661528766155243, -0.004755164962261915, -0.022187165915966034, -0.15556827187538147, 0.43974483013153076, 0.16356132924556732, -0.02530241757631302, -0.009600565768778324, 0.3527613580226898, -0.27914300560951233, 0.09230021387338638, 0.20358094573020935, -0.06958811730146408, 0.2818540632724762, 0.5097948908805847, 0.18011653423309326, 0.02192637510597706, -0.30352723598480225, -0.047990985214710236, -0.5638929605484009, -0.010009587742388248, 0.10047689825296402, -0.14251409471035004, 0.21328261494636536, -0.14502085745334625, 0.20485803484916687, 0.017714595422148705, 0.20336134731769562, 0.3884407579898834, 0.1921214610338211, 0.1525741070508957, -0.051884137094020844, 0.14362747967243195, 0.35336366295814514, 0.1097930371761322, 0.07761683315038681, -0.24465659260749817, -0.18643829226493835, 0.06863808631896973, -0.07504469156265259, 0.0688808262348175, -0.3525260090827942, -0.5936734080314636, 0.14906272292137146, -0.10795106738805771, 0.35032814741134644, 0.4970928430557251, 0.1120951920747757, -0.044232919812202454, 0.11961802840232849, 0.2221638411283493, -0.3494024872779846, 0.2718842029571533, 0.17530499398708344, 0.10432229191064835, -0.21599335968494415, 0.24007537961006165, -0.10192452371120453, 0.2632802426815033, 0.09627249836921692, -0.22280438244342804, -0.02434931881725788, -0.010839898139238358, -0.07675787061452866, -0.003407661570236087, 0.025720620527863503, -0.018318843096494675, 0.30577561259269714, -0.0016755479155108333, -0.15726959705352783, -0.1393505036830902, 0.10559829324483871, 0.012602129019796848, 0.012430740520358086, 0.26883193850517273, 0.03552567586302757, -0.1334770768880844, -0.21268251538276672, 0.03663090988993645, 0.27952349185943604, 0.18509607017040253, 0.17030148208141327, 0.01615574024617672, -0.17300643026828766, -0.04464557021856308, -0.07934635132551193, -0.323645681142807, -0.15714538097381592, 0.3135586678981781, -0.1121314987540245, -0.07318037003278732, -0.1457737535238266, -0.0216122567653656, 0.27147072553634644, -0.20301640033721924, 0.21854788064956665, 0.1636546552181244, -0.10923676192760468, -0.08921857923269272, 0.05594418942928314, 0.20653626322746277, 0.16979798674583435, 0.28922897577285767, 0.029200855642557144, -0.23979665338993073 ]
https://github.com/huggingface/datasets/issues/2001
Empty evidence document ("provenance") in KILT ELI5 dataset
Why did you close this issue? How did you end up finding the evidence documents? I'm running into a similar issue with other KILT tasks.
In the original KILT benchmark(https://github.com/facebookresearch/KILT), all samples has its evidence document (i.e. wikipedia page id) for prediction. For example, a sample in ELI5 dataset has the format including provenance (=evidence document) like this `{"id": "1kiwfx", "input": "In Trading Places (1983, Akroyd/Murphy) how does the scheme at the end of the movie work? Why would buying a lot of OJ at a high price ruin the Duke Brothers?", "output": [{"answer": "I feel so old. People have been askinbg what happened at the end of this movie for what must be the last 15 years of my life. It never stops. Every year/month/fortnight, I see someone asking what happened, and someone explaining. Andf it will keep on happening, until I am 90yrs old, in a home, with nothing but the Internet and my bladder to keep me going. And there it will be: \"what happens at the end of Trading Places?\""}, {"provenance": [{"wikipedia_id": "242855", "title": "Futures contract", "section": "Section::::Abstract.", "start_paragraph_id": 1, "start_character": 14, "end_paragraph_id": 1, "end_character": 612, "bleu_score": 0.9232808519770748}]}], "meta": {"partial_evidence": [{"wikipedia_id": "520990", "title": "Trading Places", "section": "Section::::Plot.\n", "start_paragraph_id": 7, "end_paragraph_id": 7, "meta": {"evidence_span": ["On television, they learn that Clarence Beeks is transporting a secret USDA report on orange crop forecasts.", "On television, they learn that Clarence Beeks is transporting a secret USDA report on orange crop forecasts. Winthorpe and Valentine recall large payments made to Beeks by the Dukes and realize that the Dukes plan to obtain the report to corner the market on frozen orange juice.", "Winthorpe and Valentine recall large payments made to Beeks by the Dukes and realize that the Dukes plan to obtain the report to corner the market on frozen orange juice."]}}]}}` However, KILT ELI5 dataset from huggingface datasets library only contain empty list of provenance. `{'id': '1oy5tc', 'input': 'in football whats the point of wasting the first two plays with a rush - up the middle - not regular rush plays i get those', 'meta': {'left_context': '', 'mention': '', 'obj_surface': [], 'partial_evidence': [], 'right_context': '', 'sub_surface': [], 'subj_aliases': [], 'template_questions': []}, 'output': [{'answer': 'In most cases the O-Line is supposed to make a hole for the running back to go through. If you run too many plays to the outside/throws the defense will catch on.\n\nAlso, 2 5 yard plays gets you a new set of downs.', 'meta': {'score': 2}, 'provenance': []}, {'answer': "I you don't like those type of plays, watch CFL. We only get 3 downs so you can't afford to waste one. Lots more passing.", 'meta': {'score': 2}, 'provenance': []}]} ` should i perform other procedure to obtain evidence documents?
25
Empty evidence document ("provenance") in KILT ELI5 dataset
[ 0.21473820507526398, 0.12754467129707336, -0.14675912261009216, 0.017134591937065125, -0.18804936110973358, 0.2483733594417572, 0.7010289430618286, 0.2605174779891968, 0.12670761346817017, 0.1474612057209015, 0.24989454448223114, 0.4757775068283081, 0.1885461062192917, 0.29216670989990234, -0.06844410300254822, 0.5325905084609985, 0.02163074165582657, 0.1493689864873886, 0.39862382411956787, -0.25484076142311096, -0.005479426588863134, -0.14705756306648254, -0.1792871206998825, -0.15645632147789001, -0.8275713920593262, -0.1532183736562729, -0.06871364265680313, -0.08902616053819656, -0.2249245047569275, -0.409389853477478, 0.013026220723986626, 0.1585046350955963, -0.2528127431869507, -0.04150354862213135, -0.00011683748743962497, -0.03849119320511818, 0.49758243560791016, -0.23778767883777618, -0.40970584750175476, 0.342886745929718, -0.14458218216896057, 0.17546305060386658, 0.029565898701548576, -0.40420371294021606, -0.14893612265586853, 0.25396764278411865, 0.1044480949640274, 0.2600131034851074, -0.20718492567539215, 0.37044423818588257, 0.17583855986595154, -0.11465845257043839, 0.14898164570331573, -0.1022905558347702, 0.17345450818538666, 0.4823976755142212, 0.11686589568853378, -0.1718057543039322, 0.13175621628761292, 0.06251595169305801, -0.26669859886169434, 0.32371705770492554, 0.03092098981142044, 0.0412585623562336, -0.2654951214790344, -0.015191825106739998, 0.2642347812652588, -0.2427499145269394, 0.43288516998291016, 0.28507542610168457, 0.6248681545257568, 0.10620232671499252, -0.4662666320800781, 0.04142254590988159, 0.325769305229187, -0.2424498051404953, 0.331279993057251, 0.5705806016921997, -0.05401565879583359, 0.11136247217655182, 0.19266359508037567, 0.06419210880994797, -0.2602364122867584, -0.1760893315076828, -0.49058297276496887, 0.42418622970581055, -0.04404183104634285, 0.037545815110206604, -0.12592437863349915, 0.14302654564380646, 0.2548707127571106, -0.0017267188522964716, -0.09068232774734497, 0.10733868181705475, 0.099434494972229, 0.14103169739246368, 0.26897481083869934, 0.12502102553844452, 0.1557648628950119, 0.0638800784945488, 0.016269071027636528, -0.020714648067951202, -0.13507522642612457, 0.26396387815475464, -0.008282179944217205, 0.06584922969341278, 0.483085960149765, -0.18106582760810852, 0.21932367980480194, 0.09683583676815033, -0.10194694250822067, 0.04850844293832779, -0.2758886516094208, 0.09989406913518906, -0.19706517457962036, -0.20495685935020447, 0.13541825115680695, -0.29276666045188904, -0.4629022181034088, 0.011697704903781414, -0.15488770604133606, -0.07802283763885498, -0.32919880747795105, 0.13418231904506683, 0.015707317739725113, -0.09358342736959457, 0.05899427458643913, 0.13321413099765778, 0.023638403043150902, -0.15793950855731964, -0.18471115827560425, 0.23761223256587982, -0.04176902770996094, -0.30209246277809143, 0.16070140898227692, -0.15993869304656982, 0.44091954827308655, -0.2111479490995407, -0.19021660089492798, -0.12581421434879303, 0.23298758268356323, 0.006040016654878855, 0.2485702931880951, 0.4540632367134094, 0.08426607400178909, -0.07221463322639465, 0.09841921180486679, -0.17306436598300934, 0.09763523191213608, 0.28735342621803284, -0.1322433054447174, -0.2226218581199646, -0.45304107666015625, 0.13833512365818024, -0.2615072727203369, -0.1255907267332077, -0.11155346035957336, -0.056051984429359436, -0.1815463900566101, -0.20106534659862518, -0.09911137074232101, 0.22814446687698364, 0.16621917486190796, -0.0001536063355160877, 0.15498150885105133, 0.2513010799884796, -0.23612523078918457, -0.08500298112630844, -0.27203914523124695, 0.004295850172638893, -0.1250532567501068, -0.1670220047235489, -0.05691288784146309, 0.4806479811668396, -0.2572047710418701, 0.23073889315128326, -0.07855694741010666, -0.602599024772644, -0.29666778445243835, -0.20664790272712708, 0.1511436253786087, -0.23212432861328125, 0.1661796122789383, -0.07084760814905167, 0.10222218185663223, 0.17991042137145996, -0.05544239655137062, -0.23835907876491547, 0.2598707377910614, -0.08546248823404312, -0.35872122645378113, -0.08357325196266174, -0.05946728587150574, -0.062295589596033096, -0.07605733722448349, -0.06344057619571686, 0.1631936877965927, 0.05486064404249191, 0.09536737948656082, 0.002096873242408037, 0.08797620236873627, 0.3570834696292877, 0.5815942883491516, -0.36974868178367615, -0.07977519184350967, 0.28645971417427063, -0.18117807805538177, 0.06825470924377441, 0.09658379852771759, 0.507566511631012, -0.22374886274337769, -0.2967889904975891, -0.13389375805854797, 0.02521681971848011, -0.5278890132904053, -0.5546842217445374, 0.16193418204784393, -0.08315536379814148, 0.045877084136009216, 0.3493998050689697, 0.06752301007509232, -0.41870802640914917, -0.007295866496860981, -0.13035601377487183, -0.11379019916057587, 0.3800323009490967, 0.04745940491557121, -0.09067273139953613, -0.004175746813416481, 0.07068488001823425, -0.005176607985049486, -0.022757254540920258, 0.15665766596794128, 0.1024416983127594, 0.25118884444236755, 0.08082347363233566, 0.5133980512619019, 0.2926241159439087, 0.2633827328681946, -0.21386824548244476, -0.06499746441841125, -0.017637889832258224, 0.060430366545915604, 0.020604148507118225, -0.7490097284317017, 0.2132677286863327, 0.33260688185691833, -0.09957938641309738, -0.11483104526996613, 0.17741428315639496, 0.10925987362861633, -0.13976550102233887, 0.061034999787807465, -0.2304457724094391, -0.17282021045684814, -0.22084175050258636, -0.07147915661334991, -0.0031091151759028435, 0.11814536899328232, 0.3271406888961792, -0.07279781252145767, 0.15546052157878876, 0.2315431386232376, -0.09598633646965027, -0.28292810916900635, -0.2839052975177765, 0.2558920979499817, -0.08287736773490906, 0.34595414996147156, 0.20922546088695526, 0.13630704581737518, -0.24580268561840057, -0.10618429630994797, -0.03882050886750221, 0.07424427568912506, -0.10986216366291046, 0.011121651157736778, 0.39077484607696533, 0.25010544061660767, -0.08444007486104965, -0.29458561539649963, -0.007267183158546686, 0.38244110345840454, 0.23376984894275665, 0.02976880595088005, -0.39751139283180237, -0.18156009912490845, 0.07140500098466873, 0.2983831465244293, 0.2577704191207886, 0.16177687048912048, -0.46744683384895325, 0.11621518433094025, 0.30450379848480225, -0.3225502073764801, 0.08073289692401886, -0.19033920764923096, 0.0389738492667675, 0.39519715309143066, 0.1254604607820511, -0.2443421632051468, -0.5725472569465637, -0.0765037089586258, 0.09777401387691498, -0.20847979187965393, 0.4792075455188751, 0.30779728293418884, -0.13107286393642426, 0.0004394292482174933, -0.7511496543884277, -0.5586435198783875, 0.27969372272491455, 0.08735217899084091, 0.2046877145767212, 0.36315837502479553, 0.5369476079940796, -0.14982596039772034, -0.19715933501720428, 0.14862582087516785, 0.14226138591766357, -0.3666918873786926, -0.20421671867370605, -0.060847993940114975, -0.0014243052573874593, -0.16567334532737732, -0.47817400097846985, 0.06868667155504227, -0.04376882687211037, 0.044654250144958496, 0.17178165912628174, 0.043785061687231064, -0.14567480981349945, -0.08044327050447464, 0.22887176275253296, -0.021582817658782005, 0.03727740794420242, -0.20714087784290314, -0.3032008111476898, 0.1658121794462204, -0.2456779181957245, -0.5078773498535156, 0.22322821617126465, -0.2963100075721741, 0.4602002203464508, 0.0018489219946786761, -0.4263070523738861, -0.5222597122192383, 0.27900564670562744, -0.0025549328420311213, 0.12985309958457947, -0.07395350933074951, 0.3435395061969757, 0.22881746292114258, -0.08985324949026108, -0.1728030890226364, -0.1259518563747406, 0.13489145040512085, -0.21621300280094147, 0.2447979748249054, -0.2844899296760559, -0.0880226194858551, 0.21110586822032928, 0.11911407113075256, 0.027589771896600723, 0.028748754411935806, 0.08999436348676682, -0.30340373516082764, 0.23093584179878235, -0.17489498853683472, 0.09608154743909836, 0.10709177702665329, 0.30587902665138245, 0.04752671346068382, 0.3462851345539093, -0.14111003279685974, 0.027585279196500778, -0.06983641535043716, -0.11586853116750717, -0.46223756670951843, -0.2280046045780182, -0.14872866868972778, -0.19703608751296997, 0.3433249294757843, 0.08341556042432785, 0.1329176425933838, -0.18615156412124634, -0.13971780240535736, -0.05956926941871643, -0.06548121571540833, 0.4186868369579315, 0.05507080629467964, -0.4252278208732605, -0.0742223709821701, -0.21083980798721313, 0.034759581089019775, 0.030851969495415688, -0.1290500909090042, -0.06004561111330986, -0.05785411223769188, 0.20536740124225616, -0.09491699934005737, 0.35930436849594116, -0.35801875591278076, 0.20060759782791138, 0.13931363821029663, 0.051717761904001236, -0.25522464513778687, -0.20585164427757263, -0.2289111167192459, -0.4707454442977905, 0.1599581092596054, 0.3025124669075012, -0.3953598439693451, 0.15440966188907623, 0.11324410885572433, -0.060811493545770645, -0.045736610889434814, -0.023715108633041382, -0.18043428659439087, -0.23339295387268066, -0.3980094790458679, 0.0931122750043869, 0.0729779377579689, 0.04707424342632294, -0.04989657923579216, -0.1908685266971588, -0.4715558886528015, 0.21650271117687225, 0.17467327415943146, 0.21422481536865234, 0.3024660646915436, -0.07253864407539368, 0.17205268144607544, 0.1612991839647293, 0.4835415184497833, 0.39772865176200867, 0.24888573586940765, -0.0027554526459425688, 0.3031177520751953, 0.08193133026361465, -0.6697628498077393, 0.20646816492080688, 0.21202780306339264, 0.2382999062538147, -0.0074986657127738, -0.4236832857131958, -0.14848105609416962, -0.20411308109760284, 0.46644049882888794, 0.1317499577999115, -0.009164010174572468, -0.27474454045295715, 0.4789138734340668, 0.13252541422843933, -0.08330004662275314, 0.013254642486572266, -0.22743086516857147, 0.30024585127830505, -0.08111988008022308, 0.09021154046058655, 0.2049606740474701, 0.5755088925361633, 0.18704479932785034, 0.2162373661994934, 0.2590829133987427, 0.2284645140171051, 0.06198391318321228, -0.057846590876579285, -0.05639807879924774, -0.19577646255493164, -0.4199391007423401, -0.12158363312482834, 0.010689429007470608, -0.027227109298110008, 0.5683584213256836, -0.0593942329287529, 0.05489397048950195, -0.028302645310759544, 0.2476596087217331, -0.056781645864248276, 0.01501210406422615, 0.17847716808319092, 0.0553024597465992, 0.0731237605214119, 0.08742130547761917, 0.0398542545735836, 0.33573123812675476, -0.058321963995695114, -0.02290940284729004, -0.052794571965932846, -0.209993377327919, -0.14859934151172638, 0.01358136534690857, 0.030229387804865837, 0.09076312184333801, 0.08826307952404022, -0.023318836465477943, -0.29825204610824585, 0.49645480513572693, 0.0716540515422821, 0.2643624544143677, -0.11442159116268158, 0.3048926889896393, 0.1010611355304718, -0.2506524920463562, 0.2059934288263321, 0.02184329926967621, 0.3621423840522766, -0.24698719382286072, -0.23890969157218933, 0.23998644948005676, -0.5016823410987854, 0.15436184406280518, 0.0864669606089592, 0.12723025679588318, -0.013879421167075634, -0.320618599653244, -0.420261025428772, -0.04376324638724327, -0.23207293450832367, -0.21040967106819153, 0.08418119698762894, 0.02134864032268524, -0.1558361053466797, 0.15688450634479523, 0.06597676873207092, -0.21138229966163635, -0.19013407826423645, 0.6661519408226013, -0.1424584537744522, -0.06452646106481552, 0.43082067370414734, -0.3451519012451172, -0.042289406061172485, -0.24375122785568237, 0.015952175483107567, 0.22127865254878998, -0.3549097180366516, 0.15147808194160461, 0.19393391907215118, -0.15062671899795532, 0.13961364328861237, 0.3090815544128418, -0.03899919614195824, 0.09234315156936646, -0.16802307963371277, -0.3994987905025482, -0.018955672159790993, 0.33701789379119873, -0.1780606061220169, 0.2792694568634033, 0.036490604281425476, 0.30914735794067383, -0.025120075792074203, -0.19708982110023499, -0.24873515963554382, 0.3414608836174011, -0.2520878314971924, 0.230019673705101, 0.33832475543022156, 0.09045173227787018, 0.3265647888183594, -0.06922327727079391, 0.22931700944900513, -0.02512160688638687, 0.1280728280544281, -0.18348428606987, -0.03433635085821152, 0.12538015842437744, 0.09906215965747833, 0.4265959858894348, 0.530688464641571, -0.04837673529982567, -0.38132742047309875, 0.05562123656272888, 0.20780134201049805, -0.008042796514928341, -0.09214220941066742, 0.13515137135982513, -0.16255100071430206, 0.46761181950569153, -0.10239297151565552, -0.18011260032653809, 0.1101398915052414, -0.21392016112804413, -0.027913415804505348, -0.10466666519641876, -0.46989089250564575, 0.04261796921491623, 0.06605028361082077, 0.07371780276298523, -0.3563855290412903, 0.0536310076713562, 0.14450761675834656, -0.16284608840942383, -0.004562385380268097, 0.022368747740983963, -0.15699714422225952, 0.005211209878325462, -0.34258541464805603, -0.07397855073213577, 0.18181981146335602, 0.307148814201355, -0.41244062781333923, 0.03154170885682106, -0.17933639883995056, 0.05537748336791992, 0.31031060218811035, 0.025506768375635147, 0.29258668422698975, -0.29670631885528564, 0.024046774953603745, 0.2009044736623764, 0.005726518575102091, -0.8162773251533508, -0.16162075102329254, 0.4316677153110504, -0.2563909590244293, 0.11626259982585907, -0.039999473839998245, -0.2974100410938263, -0.11243972182273865, 0.3104221522808075, 0.1757267713546753, 0.32110849022865295, 0.33631831407546997, 0.12618128955364227, 0.3068481683731079, 0.16415303945541382, -0.013489678502082825, 0.2277175635099411, 0.11356113106012344, 0.1531432718038559, 0.17253921926021576, 0.41438233852386475, 0.03488045185804367, -0.06361701339483261, -0.442685067653656, 0.09895554184913635, -0.17596490681171417, -0.10234824568033218, -0.2029593139886856, -0.21851846575737, 0.3850131034851074, -0.018222952261567116, 0.21731416881084442, 0.23921003937721252, -0.3272338807582855, 0.04591028764843941, -0.017529508098959923, -0.356584370136261, -0.02689586579799652, 0.1400863081216812, 0.4341961145401001, 0.007106469478458166, 0.20311816036701202, 0.17046377062797546, -0.1093483716249466, 0.36741378903388977, 0.35862383246421814, 0.3634910583496094, -0.1527823656797409, 0.17469169199466705, -0.10846968740224838, -0.25051191449165344, -0.28995102643966675, 0.06985791027545929, 0.10159064084291458, 0.388786256313324, -0.13628022372722626, 0.3024137318134308, 0.16552303731441498, -0.1715620905160904, -0.05405699461698532, 0.012424031272530556, 0.06746501475572586, 0.18970166146755219, -0.022724829614162445, 0.0207490436732769, -0.18460705876350403, 0.0007205199217423797, 0.12979768216609955, -0.1443970501422882, -0.0284829493612051, -0.07870371639728546, 0.43049174547195435, 0.20835968852043152, 0.14270269870758057, 0.04305529594421387, -0.3342762291431427, 0.018840426579117775, 0.20524631440639496, -0.3084169626235962, 0.019342156127095222, -0.007501984015107155, -0.36871007084846497, 0.2930436134338379, 0.09751659631729126, -0.5163490772247314, -0.1527591049671173, 0.020014064386487007, 0.05934974551200867, -0.13974809646606445, -0.03634990006685257, -0.41294753551483154, 0.1335454136133194, 0.02148577570915222, -0.6256115436553955, 0.064251609146595, 0.12760141491889954, 0.014940446242690086, -0.009244563058018684, -0.24033954739570618, 0.02227366529405117, 0.13365401327610016, 0.09430594742298126, 0.08966720104217529, 0.07584436237812042, -0.27462291717529297, 0.7208595275878906, -0.163367360830307, 0.09076494723558426, 0.5754199028015137, -0.11744116991758347, 0.19294221699237823, -0.24926407635211945, 0.1658332496881485, -0.0035214300733059645, 0.30158552527427673, 0.43120092153549194, 0.23799744248390198, 0.18244148790836334, 0.24217119812965393, 0.2830655872821808, 0.3438137173652649, 0.3294224441051483, 0.006541631184518337, -0.3369937837123871, 0.257053017616272, -0.11845284700393677, -0.054703425616025925, 0.06135476753115654, 0.05846501514315605, 0.07985322177410126, -0.27579501271247864, -0.1897362321615219, -0.5163704752922058, 0.2076055407524109, -0.32137584686279297, -0.12299805134534836, -0.0023611998185515404, 0.1643671989440918, 0.16624726355075836, 0.03618091344833374, -0.47509896755218506, 0.059383027255535126, 0.2891765534877777, -0.10546702891588211, -0.40994495153427124, -0.11011204123497009, -0.0728461742401123, 0.13998034596443176, -0.009195603430271149, 0.1289907991886139, 0.02924128994345665, -0.0875602588057518, -0.45424801111221313, -0.10096988081932068 ]
https://github.com/huggingface/datasets/issues/2000
Windows Permission Error (most recent version of datasets)
Hi @itsLuisa ! Could you give us more information about the error you're getting, please? A copy-paste of the Traceback would be nice to get a better understanding of what is wrong :)
Hi everyone, Can anyone help me with why the dataset loading script below raises a Windows Permission Error? I stuck quite closely to https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py , only I want to load the data from three local three-column tsv-files (id\ttokens\tpos_tags\n). I am using the most recent version of datasets. Thank you in advance! Luisa My script: ``` import datasets import csv logger = datasets.logging.get_logger(__name__) class SampleConfig(datasets.BuilderConfig): def __init__(self, **kwargs): super(SampleConfig, self).__init__(**kwargs) class Sample(datasets.GeneratorBasedBuilder): BUILDER_CONFIGS = [ SampleConfig(name="conll2003", version=datasets.Version("1.0.0"), description="Conll2003 dataset"), ] def _info(self): return datasets.DatasetInfo( description="Dataset with words and their POS-Tags", features=datasets.Features( { "id": datasets.Value("string"), "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ "''", ",", "-LRB-", "-RRB-", ".", ":", "CC", "CD", "DT", "EX", "FW", "HYPH", "IN", "JJ", "JJR", "JJS", "MD", "NN", "NNP", "NNPS", "NNS", "PDT", "POS", "PRP", "PRP$", "RB", "RBR", "RBS", "RP", "TO", "UH", "VB", "VBD", "VBG", "VBN", "VBP", "VBZ", "WDT", "WP", "WRB", "``" ] ) ), } ), supervised_keys=None, homepage="https://catalog.ldc.upenn.edu/LDC2011T03", citation="Weischedel, Ralph, et al. OntoNotes Release 4.0 LDC2011T03. Web Download. Philadelphia: Linguistic Data Consortium, 2011.", ) def _split_generators(self, dl_manager): loaded_files = dl_manager.download_and_extract(self.config.data_files) return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": loaded_files["train"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": loaded_files["test"]}), datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": loaded_files["val"]}) ] def _generate_examples(self, filepath): logger.info("generating examples from = %s", filepath) with open(filepath, encoding="cp1252") as f: data = csv.reader(f, delimiter="\t") ids = list() tokens = list() pos_tags = list() for id_, line in enumerate(data): #print(line) if len(line) == 1: if tokens: yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} ids = list() tokens = list() pos_tags = list() else: ids.append(line[0]) tokens.append(line[1]) pos_tags.append(line[2]) # last example yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} def main(): dataset = datasets.load_dataset( "data_loading.py", data_files={ "train": "train.tsv", "test": "test.tsv", "val": "val.tsv" } ) #print(dataset) if __name__=="__main__": main() ```
33
Windows Permission Error (most recent version of datasets)
[ -0.47043201327323914, 0.44254884123802185, -0.13729561865329742, 0.010590875521302223, -0.013679354451596737, 0.19524918496608734, 0.24361100792884827, 0.10695355385541916, -0.0296032577753067, 0.200607568025589, -0.20162904262542725, -0.013709895312786102, -0.2173014134168625, -0.07400211691856384, -0.2536425292491913, 0.01408009510487318, 0.05567386746406555, 0.06956665962934494, -0.07703319191932678, -0.13994397222995758, -0.3195599913597107, -0.07275424897670746, -0.2884913980960846, 0.2838173508644104, -0.1179659366607666, -0.3389638364315033, 0.04373646900057793, 0.29502978920936584, -0.3015868365764618, -0.09924578666687012, 0.13533544540405273, 0.18925729393959045, 0.3640417158603668, 0.2618175148963928, -0.0001009868283290416, -0.05554170906543732, 0.168925479054451, 0.2566796839237213, 0.003919433336704969, 0.38225120306015015, -0.1595243513584137, 0.008251698687672615, -0.19039447605609894, -0.09116338193416595, 0.04271014407277107, 0.00467296876013279, 0.20954346656799316, -0.1882580816745758, 0.06989650428295135, 0.28403058648109436, 0.37395960092544556, 0.16912002861499786, 0.023534003645181656, -0.2820780575275421, 0.3848750591278076, -0.008694972842931747, -0.047132328152656555, 0.09540406614542007, 0.1872333139181137, -0.26577356457710266, 0.0368998683989048, 0.24655936658382416, 0.1668548882007599, 0.041843511164188385, -0.037651900202035904, -0.20543771982192993, -0.01620669476687908, -0.15482580661773682, 0.4641873836517334, -0.1202344223856926, 0.7562267780303955, -0.06776189059019089, -0.3657219707965851, 0.06566007435321808, 0.18017636239528656, -0.028950750827789307, 0.29088616371154785, 0.2593767046928406, 0.07680093497037888, 0.10971885919570923, -0.10761455446481705, -0.13326649367809296, -0.22660112380981445, 0.04908854514360428, -0.17708170413970947, -0.08715762197971344, -0.14539088308811188, 0.04328073561191559, 0.006163930054754019, -0.28547775745391846, 0.36957791447639465, 0.09732111543416977, -0.2114335596561432, 0.06767354160547256, -0.0857522115111351, 0.18019340932369232, -0.012660298496484756, 0.43172696232795715, -0.13711470365524292, 0.20225150883197784, -0.1377328336238861, -0.09301334619522095, 0.14082007110118866, 0.0024734220933169127, 0.2941940724849701, -0.07518119364976883, 0.06412021815776825, 0.23931854963302612, 0.47326335310935974, -0.1881764829158783, 0.02617955207824707, 0.0708758607506752, -0.22946880757808685, -0.5409393310546875, -0.019307907670736313, 0.08958637714385986, 0.37209904193878174, -0.10762152075767517, -0.4412091374397278, 0.16416200995445251, -0.01806635595858097, 0.002805139170959592, 0.159262016415596, 0.20815180242061615, 0.1366664320230484, -0.3722991645336151, 0.17602220177650452, 0.15474383533000946, 0.013893784023821354, -0.055854432284832, -0.2445029765367508, -0.10930155217647552, -0.25098732113838196, -0.17774666845798492, 0.36909711360931396, 0.003492527175694704, 0.037000350654125214, 0.044455401599407196, -0.14636199176311493, 0.024928752332925797, 0.05048828944563866, -0.10077657550573349, -0.046641040593385696, 0.3688443899154663, 0.19444993138313293, 0.3096596300601959, -0.12814033031463623, -0.15956923365592957, 0.10794562101364136, 0.12718789279460907, -0.06906096637248993, -0.20250406861305237, -0.09553911536931992, 0.24496246874332428, 0.04747413098812103, -0.04852546006441116, -0.014967010356485844, 0.07896888256072998, -0.05352652072906494, -0.12710116803646088, 0.04309352487325668, 0.12157614529132843, 0.11351516842842102, -0.16823242604732513, -0.20680870115756989, 0.46637576818466187, -0.42769455909729004, 0.15746919810771942, -0.2794032096862793, -0.35447457432746887, -0.03638389706611633, 0.09250637143850327, -0.02407868579030037, 0.10857630521059036, -0.15381167829036713, 0.25424838066101074, 0.17215563356876373, -0.19953416287899017, -0.5271904468536377, 0.07052057981491089, 0.13249698281288147, -0.34023240208625793, 0.09254869073629379, -0.09130807220935822, 0.2481517791748047, -0.1852085143327713, -0.07783371210098267, -0.01959013007581234, 0.24673253297805786, 0.03477698564529419, 0.14807233214378357, -0.21779616177082062, 0.12906195223331451, 0.15407070517539978, 0.2678506672382355, 0.14992274343967438, 0.5891274809837341, 0.03931974619626999, 0.1564212590456009, -0.06552834808826447, 0.09735554456710815, 0.3432198762893677, 0.15249277651309967, 0.09926848113536835, -0.17543834447860718, -0.3975113332271576, -0.1924000233411789, -0.015996141359210014, 0.18042825162410736, 0.07207776606082916, 0.03564167022705078, -0.17378172278404236, -0.2284863442182541, 0.16828787326812744, -0.09570366144180298, -0.008032134734094143, 0.2781406342983246, 0.25571438670158386, -0.13777458667755127, -0.2934121787548065, 0.3102622330188751, 0.08790493756532669, -0.2761724293231964, -0.05365876108407974, -0.0378590002655983, 0.047098495066165924, -0.36334851384162903, -0.23975291848182678, 0.15387260913848877, 0.004783183336257935, 0.26587826013565063, 0.11617718636989594, -0.07360785454511642, 0.2818876802921295, -0.13048629462718964, -0.1111353188753128, 0.19676554203033447, 0.15494078397750854, -0.06098952516913414, -0.14069487154483795, 0.27148139476776123, 0.12058299034833908, 0.025823596864938736, 0.16048192977905273, -0.2063862383365631, -0.08915305882692337, -0.08192884176969528, -0.16686977446079254, -0.15321281552314758, 0.27899834513664246, 0.2699832320213318, 0.20602361857891083, 0.03183082491159439, -0.22493205964565277, 0.14370758831501007, 0.3851149082183838, -0.12051384150981903, -0.06676540523767471, -0.16182474792003632, -0.04563100263476372, 0.27941998839378357, -0.045749321579933167, 0.14706945419311523, -0.011725741438567638, -0.1309286206960678, 0.3345261216163635, 0.382838636636734, 0.32955071330070496, 0.3199054002761841, 0.2117070108652115, 0.16298426687717438, 0.04175542667508125, -0.10851170122623444, -0.16265395283699036, 0.16443225741386414, -0.1651311218738556, -0.14780139923095703, -0.03518151119351387, -0.1517157256603241, -0.0025814631953835487, -0.4841739535331726, 0.10108677297830582, 0.22882218658924103, 0.32338589429855347, -0.3716323673725128, -0.22960560023784637, -0.17771470546722412, -0.20314787328243256, 0.18210168182849884, -0.04906291142106056, -0.3072561025619507, -0.017523253336548805, 0.0006536071887239814, 0.20090852677822113, -0.23740606009960175, 0.1795031875371933, -0.36573758721351624, 0.1773943156003952, 0.06304861605167389, 0.350732684135437, 0.0794166550040245, 0.19773723185062408, -0.05682749301195145, 0.22549059987068176, 0.27454620599746704, -0.25331956148147583, 0.3556991517543793, -0.059424400329589844, 0.44689860939979553, -0.44748878479003906, -0.058382563292980194, -0.1661118119955063, 0.01796651817858219, 0.3835766911506653, 0.14707136154174805, -0.0909014344215393, -0.02539181336760521, -0.3776285648345947, 0.05405554920434952, -0.30477994680404663, -0.11505360901355743, -0.13888664543628693, 0.0336235836148262, -0.453390508890152, -0.12959811091423035, -0.20241747796535492, -0.25689953565597534, -0.2399485856294632, 0.25454211235046387, 0.1970694661140442, 0.15143194794654846, 0.176466166973114, -0.13033097982406616, -0.04809003695845604, 0.06614711135625839, 0.24194294214248657, -0.4416918456554413, -0.022938666865229607, 0.06272247433662415, -0.2548410892486572, -0.5336173176765442, 0.17289376258850098, 0.18217861652374268, -0.12373603135347366, 0.4367358684539795, -0.05426741763949394, 0.03352143242955208, -0.2904247045516968, 0.3300011157989502, -0.08114569634199142, 0.30272167921066284, 0.37450024485588074, 0.09275513142347336, -0.08934972435235977, -0.12749505043029785, -0.27328866720199585, -0.15937845408916473, -0.16110053658485413, -0.14139743149280548, -0.19189317524433136, 0.20772616565227509, -0.08649361878633499, 0.26540443301200867, 0.1511278599500656, 0.28345757722854614, 0.10587069392204285, -0.14266999065876007, 0.6275020241737366, 0.1998845487833023, -0.2693876326084137, 0.3795146346092224, 0.017504293471574783, 0.09833409637212753, 0.37005090713500977, 0.009876151569187641, -0.22916442155838013, 0.14140364527702332, -0.1525685340166092, -0.45747020840644836, -0.3568376302719116, -0.21715860068798065, -0.16280251741409302, 0.22609513998031616, 0.19544827938079834, 0.22116373479366302, -0.3516032099723816, -0.3152162730693817, 0.18057429790496826, 0.3507481813430786, -0.23828621208667755, 0.09024874120950699, -0.37602168321609497, -0.04187067970633507, -0.3471994996070862, 0.23264828324317932, -0.14008298516273499, 0.695209264755249, -0.26871031522750854, 0.04690513387322426, 0.22291302680969238, -0.03685380145907402, 0.6431312561035156, -0.40106040239334106, 0.1575004905462265, 0.13170890510082245, 0.31710436940193176, 0.006432984955608845, -0.13459372520446777, -0.2574736475944519, 0.428466796875, -0.006098965648561716, 0.1596633493900299, 0.12441621720790863, -0.15635724365711212, 0.1988489329814911, -0.29737767577171326, -0.16529470682144165, -0.11288546770811081, 0.043878525495529175, -0.06650625169277191, -0.24080611765384674, -0.029187481850385666, 0.02390572428703308, -0.040085285902023315, -0.18603013455867767, 0.16729488968849182, -0.38760676980018616, 0.19962361454963684, 0.2684253454208374, 0.07998055219650269, 0.2643391489982605, 0.2687286138534546, 0.049583133310079575, 0.126358762383461, 0.2767232060432434, 0.16183796525001526, 0.30283939838409424, -0.20948021113872528, 0.033267732709646225, 0.28657785058021545, -0.34152424335479736, 0.2128603458404541, 0.23759514093399048, -0.274990051984787, -0.08985327929258347, -0.14622651040554047, -0.14600059390068054, -0.34967440366744995, 0.08599727600812912, 0.2455756962299347, 0.07507341355085373, -0.0039151073433458805, -0.188530832529068, 0.09889490902423859, 0.3100312054157257, -0.41375744342803955, 0.2544577121734619, 0.3686646521091461, -0.25710800290107727, -0.21826890110969543, -0.014470317400991917, 0.5524874925613403, -0.1060924082994461, 0.20184685289859772, 0.032433345913887024, -0.2653840482234955, 0.08522017300128937, 0.03249959647655487, 0.061004720628261566, -0.299183189868927, -0.39844632148742676, -0.08164461702108383, -0.01851361244916916, 0.13816942274570465, 0.22361280024051666, 0.009316198527812958, 0.06439594179391861, 0.21688072383403778, 0.1981934905052185, 0.09972964227199554, -0.004505592864006758, -0.3385172188282013, -0.15386997163295746, 0.013421180658042431, 0.3204065263271332, -0.028422826901078224, -0.007591735105961561, -0.34101396799087524, 0.1453695297241211, 0.1571594774723053, 0.03412095457315445, -0.3980293273925781, 0.053163081407547, -0.16060346364974976, 0.17298467457294464, -0.14829732477664948, 0.025110114365816116, 0.34572112560272217, 0.03987174853682518, 0.2932339906692505, 0.33709004521369934, -0.23998694121837616, 0.07361214607954025, 0.07577156275510788, -0.09658128023147583, -0.22852180898189545, 0.13299040496349335, 0.3033379316329956, -0.04163557291030884, -0.18277139961719513, -0.12033211439847946, 0.03192112222313881, -0.19417381286621094, -0.3528576195240021, 0.28840935230255127, -0.0004304554604459554, -0.34714534878730774, 0.023732688277959824, -0.23200774192810059, -0.0028341973666101694, -0.08894050866365433, 0.22674700617790222, 0.09627991169691086, 0.11246639490127563, 0.28812816739082336, -0.2158810943365097, -0.23842890560626984, 0.00886224303394556, 0.43862417340278625, -0.06958527117967606, 0.020393131300807, 0.5333769917488098, -0.03744427114725113, -0.2321345955133438, -0.3747516870498657, 0.009127523750066757, 0.06443589180707932, -0.14096085727214813, 0.07882034778594971, -0.06783448159694672, -0.1409866064786911, 0.2903948128223419, 0.01416794490069151, 0.15844863653182983, -0.18835610151290894, 0.06663504987955093, -0.2867197096347809, -0.27442309260368347, -0.004891618620604277, -0.1155313178896904, 0.20853973925113678, 0.00263499328866601, -0.11949807405471802, 0.1361122578382492, -0.3656231164932251, -0.41262534260749817, 0.12059222161769867, -0.08625297993421555, 0.084739550948143, 0.29028773307800293, -0.21325136721134186, -0.029414022341370583, -0.13067318499088287, 0.14295774698257446, -0.1636970192193985, -0.11049026995897293, -0.3029136657714844, -0.0063727800734341145, 0.0406983457505703, 0.16187307238578796, -0.2774483859539032, 0.15716920793056488, -0.4117596447467804, -0.03853730484843254, 0.07117161899805069, 0.08592318743467331, 0.29903677105903625, 0.022681836038827896, 0.24901610612869263, 0.09619202464818954, -0.019218474626541138, 0.1107356920838356, 0.22186562418937683, -0.0497489795088768, 0.055790483951568604, -0.33199265599250793, 0.3645949959754944, 0.028531087562441826, 0.03804092854261398, -0.07568366080522537, 0.13200539350509644, 0.008598384447395802, 0.28272077441215515, -0.04896152764558792, -0.35501667857170105, -0.15587127208709717, 0.21093669533729553, 0.49030107259750366, 0.1644308865070343, -0.08133892714977264, -0.16651949286460876, 0.16815446317195892, 0.3212747275829315, -0.3617215156555176, -0.0973062738776207, 0.07392315566539764, -0.22612333297729492, 0.037814706563949585, -0.22315053641796112, 0.09012976288795471, -0.2152114361524582, -0.2730023264884949, 0.03765421360731125, 0.12136701494455338, -0.11195163428783417, 0.09468305855989456, 0.5893278121948242, 0.05288679897785187, -0.061954233795404434, 0.42094725370407104, 0.262704074382782, -0.0582321360707283, 0.7243659496307373, 0.037400491535663605, 0.0570765882730484, 0.1132950559258461, -0.15812747180461884, 0.17715322971343994, -0.5535362362861633, 0.16212405264377594, -0.1589340716600418, 0.1851772516965866, -0.02644788846373558, -0.11087013781070709, 0.2642118036746979, -0.24562212824821472, -0.09782297909259796, -0.416235089302063, -0.12399210780858994, -0.30477404594421387, -0.2038644403219223, -0.35458511114120483, -0.1170482262969017, 0.06949087977409363, -0.05803481861948967, -0.19723893702030182, -0.22019131481647491, 0.07997985184192657, -0.1688511073589325, -0.1410776674747467, -0.40397217869758606, 0.2229723334312439, 0.16658370196819305, -0.2866228520870209, -0.17872671782970428, 0.09492131322622299, -0.17927563190460205, 0.08842574805021286, 0.349124014377594, 0.4014880061149597, 0.43963491916656494, 0.04202675074338913, 0.0007140920497477055, 0.000412781402701512, 0.138172447681427, -0.17469942569732666, -0.2383808195590973, 0.41901326179504395, 0.14531897008419037, 0.32077381014823914, 0.2144303321838379, 0.25263315439224243, -0.13439323008060455, 0.05527975410223007, 0.01228626910597086, -0.20454730093479156, -0.008684281259775162, -0.017755307257175446, -0.22220726311206818, -0.3543030023574829, 0.13008195161819458, -0.10572982579469681, -0.012305473908782005, 0.010490275919437408, 0.45519956946372986, -0.12543517351150513, 0.23784399032592773, -0.41150790452957153, 0.13732461631298065, 0.105577751994133, 0.3028547763824463, 0.42823341488838196, 0.14485099911689758, -0.0037347825709730387, -0.13621357083320618, -0.6351426243782043, 0.02553195133805275, 0.1134740486741066, 0.018505236133933067, -0.094416044652462, -0.08431675285100937, 0.002822584006935358, -0.21045900881290436, 0.22716908156871796, -0.03738390654325485, 0.06016072630882263, 0.1983192265033722, -0.1769319772720337, 0.018846893683075905, 0.45379242300987244, -0.08608534932136536, 0.05441875383257866, -0.42540979385375977, 0.1818787306547165, -0.09947098046541214, 0.11374890804290771, -0.20931069552898407, 0.08411254733800888, -0.06690020114183426, 0.13919438421726227, 0.32156097888946533, 0.1384657472372055, 0.27640315890312195, -0.17388011515140533, 0.20062941312789917, -0.6548351049423218, -0.07550472021102905, -0.21842704713344574, 0.07899338006973267, -0.025444036349654198, 0.05657476931810379, -0.22025248408317566, 0.217703714966774, 0.07135049253702164, 0.032928723841905594, -0.06719136238098145, 0.5179787874221802, -0.16279003024101257, 0.3300551474094391, -0.17641635239124298, -0.07582470774650574, 0.15887263417243958, -0.009472064673900604, 0.03644155338406563, 0.3000381588935852, -0.24998216331005096, -0.4352443814277649, 0.17460624873638153, -0.3442838191986084, -0.3310264050960541, -0.23228046298027039, 0.2736024558544159, 0.14278651773929596, -0.20520640909671783, -0.13571619987487793, 0.31289681792259216, 0.2800412178039551, -0.2412378191947937, -0.057618897408246994, 0.19559375941753387, -0.2017453908920288, -0.1733098179101944, 0.08347129076719284, 0.5570023655891418, 0.10373561829328537, -0.4280094802379608, 0.21802645921707153, -0.1046663150191307 ]
https://github.com/huggingface/datasets/issues/2000
Windows Permission Error (most recent version of datasets)
Hello @SBrandeis , this is it: ``` Traceback (most recent call last): File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 537, in incomplete_dir yield tmp_dir File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 578, in download_and_prepare self._download_and_prepare( File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 656, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 982, in _prepare_split num_examples, num_bytes = writer.finalize() File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\arrow_writer.py", line 297, in finalize self.write_on_file() File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\arrow_writer.py", line 230, in write_on_file pa_array = pa.array(typed_sequence) File "pyarrow\array.pxi", line 222, in pyarrow.lib.array File "pyarrow\array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\arrow_writer.py", line 97, in __arrow_array__ out = pa.array(self.data, type=type) File "pyarrow\array.pxi", line 305, in pyarrow.lib.array File "pyarrow\array.pxi", line 39, in pyarrow.lib._sequence_to_array File "pyarrow\error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow\error.pxi", line 107, in pyarrow.lib.check_status pyarrow.lib.ArrowTypeError: Expected bytes, got a 'list' object During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:/Users/Luisa/Documents/Uni/WS 2020,21/Neural Networks/Final_Project/NN_Project/data_loading.py", line 122, in <module> main() File "C:/Users/Luisa/Documents/Uni/WS 2020,21/Neural Networks/Final_Project/NN_Project/data_loading.py", line 111, in main dataset = datasets.load_dataset( File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 586, in download_and_prepare self._save_info() File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__ self.gen.throw(type, value, traceback) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 543, in incomplete_dir shutil.rmtree(tmp_dir) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 740, in rmtree return _rmtree_unsafe(path, onerror) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 618, in _rmtree_unsafe onerror(os.unlink, fullname, sys.exc_info()) File "C:\Users\Luisa\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 616, in _rmtree_unsafe os.unlink(fullname) PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:\\Users\\Luisa\\.cache\\huggingface\\datasets\\sample\\default-20ee7d51a6a9454f\\0.0.0\\5fc4c3a355ea77ab446bd31fca5082437600b8364d29b2b95264048bd1f398b1.incomplete\\sample-train.arrow' Process finished with exit code 1 ```
Hi everyone, Can anyone help me with why the dataset loading script below raises a Windows Permission Error? I stuck quite closely to https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py , only I want to load the data from three local three-column tsv-files (id\ttokens\tpos_tags\n). I am using the most recent version of datasets. Thank you in advance! Luisa My script: ``` import datasets import csv logger = datasets.logging.get_logger(__name__) class SampleConfig(datasets.BuilderConfig): def __init__(self, **kwargs): super(SampleConfig, self).__init__(**kwargs) class Sample(datasets.GeneratorBasedBuilder): BUILDER_CONFIGS = [ SampleConfig(name="conll2003", version=datasets.Version("1.0.0"), description="Conll2003 dataset"), ] def _info(self): return datasets.DatasetInfo( description="Dataset with words and their POS-Tags", features=datasets.Features( { "id": datasets.Value("string"), "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ "''", ",", "-LRB-", "-RRB-", ".", ":", "CC", "CD", "DT", "EX", "FW", "HYPH", "IN", "JJ", "JJR", "JJS", "MD", "NN", "NNP", "NNPS", "NNS", "PDT", "POS", "PRP", "PRP$", "RB", "RBR", "RBS", "RP", "TO", "UH", "VB", "VBD", "VBG", "VBN", "VBP", "VBZ", "WDT", "WP", "WRB", "``" ] ) ), } ), supervised_keys=None, homepage="https://catalog.ldc.upenn.edu/LDC2011T03", citation="Weischedel, Ralph, et al. OntoNotes Release 4.0 LDC2011T03. Web Download. Philadelphia: Linguistic Data Consortium, 2011.", ) def _split_generators(self, dl_manager): loaded_files = dl_manager.download_and_extract(self.config.data_files) return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": loaded_files["train"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": loaded_files["test"]}), datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": loaded_files["val"]}) ] def _generate_examples(self, filepath): logger.info("generating examples from = %s", filepath) with open(filepath, encoding="cp1252") as f: data = csv.reader(f, delimiter="\t") ids = list() tokens = list() pos_tags = list() for id_, line in enumerate(data): #print(line) if len(line) == 1: if tokens: yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} ids = list() tokens = list() pos_tags = list() else: ids.append(line[0]) tokens.append(line[1]) pos_tags.append(line[2]) # last example yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} def main(): dataset = datasets.load_dataset( "data_loading.py", data_files={ "train": "train.tsv", "test": "test.tsv", "val": "val.tsv" } ) #print(dataset) if __name__=="__main__": main() ```
230
Windows Permission Error (most recent version of datasets)
[ -0.47043201327323914, 0.44254884123802185, -0.13729561865329742, 0.010590875521302223, -0.013679354451596737, 0.19524918496608734, 0.24361100792884827, 0.10695355385541916, -0.0296032577753067, 0.200607568025589, -0.20162904262542725, -0.013709895312786102, -0.2173014134168625, -0.07400211691856384, -0.2536425292491913, 0.01408009510487318, 0.05567386746406555, 0.06956665962934494, -0.07703319191932678, -0.13994397222995758, -0.3195599913597107, -0.07275424897670746, -0.2884913980960846, 0.2838173508644104, -0.1179659366607666, -0.3389638364315033, 0.04373646900057793, 0.29502978920936584, -0.3015868365764618, -0.09924578666687012, 0.13533544540405273, 0.18925729393959045, 0.3640417158603668, 0.2618175148963928, -0.0001009868283290416, -0.05554170906543732, 0.168925479054451, 0.2566796839237213, 0.003919433336704969, 0.38225120306015015, -0.1595243513584137, 0.008251698687672615, -0.19039447605609894, -0.09116338193416595, 0.04271014407277107, 0.00467296876013279, 0.20954346656799316, -0.1882580816745758, 0.06989650428295135, 0.28403058648109436, 0.37395960092544556, 0.16912002861499786, 0.023534003645181656, -0.2820780575275421, 0.3848750591278076, -0.008694972842931747, -0.047132328152656555, 0.09540406614542007, 0.1872333139181137, -0.26577356457710266, 0.0368998683989048, 0.24655936658382416, 0.1668548882007599, 0.041843511164188385, -0.037651900202035904, -0.20543771982192993, -0.01620669476687908, -0.15482580661773682, 0.4641873836517334, -0.1202344223856926, 0.7562267780303955, -0.06776189059019089, -0.3657219707965851, 0.06566007435321808, 0.18017636239528656, -0.028950750827789307, 0.29088616371154785, 0.2593767046928406, 0.07680093497037888, 0.10971885919570923, -0.10761455446481705, -0.13326649367809296, -0.22660112380981445, 0.04908854514360428, -0.17708170413970947, -0.08715762197971344, -0.14539088308811188, 0.04328073561191559, 0.006163930054754019, -0.28547775745391846, 0.36957791447639465, 0.09732111543416977, -0.2114335596561432, 0.06767354160547256, -0.0857522115111351, 0.18019340932369232, -0.012660298496484756, 0.43172696232795715, -0.13711470365524292, 0.20225150883197784, -0.1377328336238861, -0.09301334619522095, 0.14082007110118866, 0.0024734220933169127, 0.2941940724849701, -0.07518119364976883, 0.06412021815776825, 0.23931854963302612, 0.47326335310935974, -0.1881764829158783, 0.02617955207824707, 0.0708758607506752, -0.22946880757808685, -0.5409393310546875, -0.019307907670736313, 0.08958637714385986, 0.37209904193878174, -0.10762152075767517, -0.4412091374397278, 0.16416200995445251, -0.01806635595858097, 0.002805139170959592, 0.159262016415596, 0.20815180242061615, 0.1366664320230484, -0.3722991645336151, 0.17602220177650452, 0.15474383533000946, 0.013893784023821354, -0.055854432284832, -0.2445029765367508, -0.10930155217647552, -0.25098732113838196, -0.17774666845798492, 0.36909711360931396, 0.003492527175694704, 0.037000350654125214, 0.044455401599407196, -0.14636199176311493, 0.024928752332925797, 0.05048828944563866, -0.10077657550573349, -0.046641040593385696, 0.3688443899154663, 0.19444993138313293, 0.3096596300601959, -0.12814033031463623, -0.15956923365592957, 0.10794562101364136, 0.12718789279460907, -0.06906096637248993, -0.20250406861305237, -0.09553911536931992, 0.24496246874332428, 0.04747413098812103, -0.04852546006441116, -0.014967010356485844, 0.07896888256072998, -0.05352652072906494, -0.12710116803646088, 0.04309352487325668, 0.12157614529132843, 0.11351516842842102, -0.16823242604732513, -0.20680870115756989, 0.46637576818466187, -0.42769455909729004, 0.15746919810771942, -0.2794032096862793, -0.35447457432746887, -0.03638389706611633, 0.09250637143850327, -0.02407868579030037, 0.10857630521059036, -0.15381167829036713, 0.25424838066101074, 0.17215563356876373, -0.19953416287899017, -0.5271904468536377, 0.07052057981491089, 0.13249698281288147, -0.34023240208625793, 0.09254869073629379, -0.09130807220935822, 0.2481517791748047, -0.1852085143327713, -0.07783371210098267, -0.01959013007581234, 0.24673253297805786, 0.03477698564529419, 0.14807233214378357, -0.21779616177082062, 0.12906195223331451, 0.15407070517539978, 0.2678506672382355, 0.14992274343967438, 0.5891274809837341, 0.03931974619626999, 0.1564212590456009, -0.06552834808826447, 0.09735554456710815, 0.3432198762893677, 0.15249277651309967, 0.09926848113536835, -0.17543834447860718, -0.3975113332271576, -0.1924000233411789, -0.015996141359210014, 0.18042825162410736, 0.07207776606082916, 0.03564167022705078, -0.17378172278404236, -0.2284863442182541, 0.16828787326812744, -0.09570366144180298, -0.008032134734094143, 0.2781406342983246, 0.25571438670158386, -0.13777458667755127, -0.2934121787548065, 0.3102622330188751, 0.08790493756532669, -0.2761724293231964, -0.05365876108407974, -0.0378590002655983, 0.047098495066165924, -0.36334851384162903, -0.23975291848182678, 0.15387260913848877, 0.004783183336257935, 0.26587826013565063, 0.11617718636989594, -0.07360785454511642, 0.2818876802921295, -0.13048629462718964, -0.1111353188753128, 0.19676554203033447, 0.15494078397750854, -0.06098952516913414, -0.14069487154483795, 0.27148139476776123, 0.12058299034833908, 0.025823596864938736, 0.16048192977905273, -0.2063862383365631, -0.08915305882692337, -0.08192884176969528, -0.16686977446079254, -0.15321281552314758, 0.27899834513664246, 0.2699832320213318, 0.20602361857891083, 0.03183082491159439, -0.22493205964565277, 0.14370758831501007, 0.3851149082183838, -0.12051384150981903, -0.06676540523767471, -0.16182474792003632, -0.04563100263476372, 0.27941998839378357, -0.045749321579933167, 0.14706945419311523, -0.011725741438567638, -0.1309286206960678, 0.3345261216163635, 0.382838636636734, 0.32955071330070496, 0.3199054002761841, 0.2117070108652115, 0.16298426687717438, 0.04175542667508125, -0.10851170122623444, -0.16265395283699036, 0.16443225741386414, -0.1651311218738556, -0.14780139923095703, -0.03518151119351387, -0.1517157256603241, -0.0025814631953835487, -0.4841739535331726, 0.10108677297830582, 0.22882218658924103, 0.32338589429855347, -0.3716323673725128, -0.22960560023784637, -0.17771470546722412, -0.20314787328243256, 0.18210168182849884, -0.04906291142106056, -0.3072561025619507, -0.017523253336548805, 0.0006536071887239814, 0.20090852677822113, -0.23740606009960175, 0.1795031875371933, -0.36573758721351624, 0.1773943156003952, 0.06304861605167389, 0.350732684135437, 0.0794166550040245, 0.19773723185062408, -0.05682749301195145, 0.22549059987068176, 0.27454620599746704, -0.25331956148147583, 0.3556991517543793, -0.059424400329589844, 0.44689860939979553, -0.44748878479003906, -0.058382563292980194, -0.1661118119955063, 0.01796651817858219, 0.3835766911506653, 0.14707136154174805, -0.0909014344215393, -0.02539181336760521, -0.3776285648345947, 0.05405554920434952, -0.30477994680404663, -0.11505360901355743, -0.13888664543628693, 0.0336235836148262, -0.453390508890152, -0.12959811091423035, -0.20241747796535492, -0.25689953565597534, -0.2399485856294632, 0.25454211235046387, 0.1970694661140442, 0.15143194794654846, 0.176466166973114, -0.13033097982406616, -0.04809003695845604, 0.06614711135625839, 0.24194294214248657, -0.4416918456554413, -0.022938666865229607, 0.06272247433662415, -0.2548410892486572, -0.5336173176765442, 0.17289376258850098, 0.18217861652374268, -0.12373603135347366, 0.4367358684539795, -0.05426741763949394, 0.03352143242955208, -0.2904247045516968, 0.3300011157989502, -0.08114569634199142, 0.30272167921066284, 0.37450024485588074, 0.09275513142347336, -0.08934972435235977, -0.12749505043029785, -0.27328866720199585, -0.15937845408916473, -0.16110053658485413, -0.14139743149280548, -0.19189317524433136, 0.20772616565227509, -0.08649361878633499, 0.26540443301200867, 0.1511278599500656, 0.28345757722854614, 0.10587069392204285, -0.14266999065876007, 0.6275020241737366, 0.1998845487833023, -0.2693876326084137, 0.3795146346092224, 0.017504293471574783, 0.09833409637212753, 0.37005090713500977, 0.009876151569187641, -0.22916442155838013, 0.14140364527702332, -0.1525685340166092, -0.45747020840644836, -0.3568376302719116, -0.21715860068798065, -0.16280251741409302, 0.22609513998031616, 0.19544827938079834, 0.22116373479366302, -0.3516032099723816, -0.3152162730693817, 0.18057429790496826, 0.3507481813430786, -0.23828621208667755, 0.09024874120950699, -0.37602168321609497, -0.04187067970633507, -0.3471994996070862, 0.23264828324317932, -0.14008298516273499, 0.695209264755249, -0.26871031522750854, 0.04690513387322426, 0.22291302680969238, -0.03685380145907402, 0.6431312561035156, -0.40106040239334106, 0.1575004905462265, 0.13170890510082245, 0.31710436940193176, 0.006432984955608845, -0.13459372520446777, -0.2574736475944519, 0.428466796875, -0.006098965648561716, 0.1596633493900299, 0.12441621720790863, -0.15635724365711212, 0.1988489329814911, -0.29737767577171326, -0.16529470682144165, -0.11288546770811081, 0.043878525495529175, -0.06650625169277191, -0.24080611765384674, -0.029187481850385666, 0.02390572428703308, -0.040085285902023315, -0.18603013455867767, 0.16729488968849182, -0.38760676980018616, 0.19962361454963684, 0.2684253454208374, 0.07998055219650269, 0.2643391489982605, 0.2687286138534546, 0.049583133310079575, 0.126358762383461, 0.2767232060432434, 0.16183796525001526, 0.30283939838409424, -0.20948021113872528, 0.033267732709646225, 0.28657785058021545, -0.34152424335479736, 0.2128603458404541, 0.23759514093399048, -0.274990051984787, -0.08985327929258347, -0.14622651040554047, -0.14600059390068054, -0.34967440366744995, 0.08599727600812912, 0.2455756962299347, 0.07507341355085373, -0.0039151073433458805, -0.188530832529068, 0.09889490902423859, 0.3100312054157257, -0.41375744342803955, 0.2544577121734619, 0.3686646521091461, -0.25710800290107727, -0.21826890110969543, -0.014470317400991917, 0.5524874925613403, -0.1060924082994461, 0.20184685289859772, 0.032433345913887024, -0.2653840482234955, 0.08522017300128937, 0.03249959647655487, 0.061004720628261566, -0.299183189868927, -0.39844632148742676, -0.08164461702108383, -0.01851361244916916, 0.13816942274570465, 0.22361280024051666, 0.009316198527812958, 0.06439594179391861, 0.21688072383403778, 0.1981934905052185, 0.09972964227199554, -0.004505592864006758, -0.3385172188282013, -0.15386997163295746, 0.013421180658042431, 0.3204065263271332, -0.028422826901078224, -0.007591735105961561, -0.34101396799087524, 0.1453695297241211, 0.1571594774723053, 0.03412095457315445, -0.3980293273925781, 0.053163081407547, -0.16060346364974976, 0.17298467457294464, -0.14829732477664948, 0.025110114365816116, 0.34572112560272217, 0.03987174853682518, 0.2932339906692505, 0.33709004521369934, -0.23998694121837616, 0.07361214607954025, 0.07577156275510788, -0.09658128023147583, -0.22852180898189545, 0.13299040496349335, 0.3033379316329956, -0.04163557291030884, -0.18277139961719513, -0.12033211439847946, 0.03192112222313881, -0.19417381286621094, -0.3528576195240021, 0.28840935230255127, -0.0004304554604459554, -0.34714534878730774, 0.023732688277959824, -0.23200774192810059, -0.0028341973666101694, -0.08894050866365433, 0.22674700617790222, 0.09627991169691086, 0.11246639490127563, 0.28812816739082336, -0.2158810943365097, -0.23842890560626984, 0.00886224303394556, 0.43862417340278625, -0.06958527117967606, 0.020393131300807, 0.5333769917488098, -0.03744427114725113, -0.2321345955133438, -0.3747516870498657, 0.009127523750066757, 0.06443589180707932, -0.14096085727214813, 0.07882034778594971, -0.06783448159694672, -0.1409866064786911, 0.2903948128223419, 0.01416794490069151, 0.15844863653182983, -0.18835610151290894, 0.06663504987955093, -0.2867197096347809, -0.27442309260368347, -0.004891618620604277, -0.1155313178896904, 0.20853973925113678, 0.00263499328866601, -0.11949807405471802, 0.1361122578382492, -0.3656231164932251, -0.41262534260749817, 0.12059222161769867, -0.08625297993421555, 0.084739550948143, 0.29028773307800293, -0.21325136721134186, -0.029414022341370583, -0.13067318499088287, 0.14295774698257446, -0.1636970192193985, -0.11049026995897293, -0.3029136657714844, -0.0063727800734341145, 0.0406983457505703, 0.16187307238578796, -0.2774483859539032, 0.15716920793056488, -0.4117596447467804, -0.03853730484843254, 0.07117161899805069, 0.08592318743467331, 0.29903677105903625, 0.022681836038827896, 0.24901610612869263, 0.09619202464818954, -0.019218474626541138, 0.1107356920838356, 0.22186562418937683, -0.0497489795088768, 0.055790483951568604, -0.33199265599250793, 0.3645949959754944, 0.028531087562441826, 0.03804092854261398, -0.07568366080522537, 0.13200539350509644, 0.008598384447395802, 0.28272077441215515, -0.04896152764558792, -0.35501667857170105, -0.15587127208709717, 0.21093669533729553, 0.49030107259750366, 0.1644308865070343, -0.08133892714977264, -0.16651949286460876, 0.16815446317195892, 0.3212747275829315, -0.3617215156555176, -0.0973062738776207, 0.07392315566539764, -0.22612333297729492, 0.037814706563949585, -0.22315053641796112, 0.09012976288795471, -0.2152114361524582, -0.2730023264884949, 0.03765421360731125, 0.12136701494455338, -0.11195163428783417, 0.09468305855989456, 0.5893278121948242, 0.05288679897785187, -0.061954233795404434, 0.42094725370407104, 0.262704074382782, -0.0582321360707283, 0.7243659496307373, 0.037400491535663605, 0.0570765882730484, 0.1132950559258461, -0.15812747180461884, 0.17715322971343994, -0.5535362362861633, 0.16212405264377594, -0.1589340716600418, 0.1851772516965866, -0.02644788846373558, -0.11087013781070709, 0.2642118036746979, -0.24562212824821472, -0.09782297909259796, -0.416235089302063, -0.12399210780858994, -0.30477404594421387, -0.2038644403219223, -0.35458511114120483, -0.1170482262969017, 0.06949087977409363, -0.05803481861948967, -0.19723893702030182, -0.22019131481647491, 0.07997985184192657, -0.1688511073589325, -0.1410776674747467, -0.40397217869758606, 0.2229723334312439, 0.16658370196819305, -0.2866228520870209, -0.17872671782970428, 0.09492131322622299, -0.17927563190460205, 0.08842574805021286, 0.349124014377594, 0.4014880061149597, 0.43963491916656494, 0.04202675074338913, 0.0007140920497477055, 0.000412781402701512, 0.138172447681427, -0.17469942569732666, -0.2383808195590973, 0.41901326179504395, 0.14531897008419037, 0.32077381014823914, 0.2144303321838379, 0.25263315439224243, -0.13439323008060455, 0.05527975410223007, 0.01228626910597086, -0.20454730093479156, -0.008684281259775162, -0.017755307257175446, -0.22220726311206818, -0.3543030023574829, 0.13008195161819458, -0.10572982579469681, -0.012305473908782005, 0.010490275919437408, 0.45519956946372986, -0.12543517351150513, 0.23784399032592773, -0.41150790452957153, 0.13732461631298065, 0.105577751994133, 0.3028547763824463, 0.42823341488838196, 0.14485099911689758, -0.0037347825709730387, -0.13621357083320618, -0.6351426243782043, 0.02553195133805275, 0.1134740486741066, 0.018505236133933067, -0.094416044652462, -0.08431675285100937, 0.002822584006935358, -0.21045900881290436, 0.22716908156871796, -0.03738390654325485, 0.06016072630882263, 0.1983192265033722, -0.1769319772720337, 0.018846893683075905, 0.45379242300987244, -0.08608534932136536, 0.05441875383257866, -0.42540979385375977, 0.1818787306547165, -0.09947098046541214, 0.11374890804290771, -0.20931069552898407, 0.08411254733800888, -0.06690020114183426, 0.13919438421726227, 0.32156097888946533, 0.1384657472372055, 0.27640315890312195, -0.17388011515140533, 0.20062941312789917, -0.6548351049423218, -0.07550472021102905, -0.21842704713344574, 0.07899338006973267, -0.025444036349654198, 0.05657476931810379, -0.22025248408317566, 0.217703714966774, 0.07135049253702164, 0.032928723841905594, -0.06719136238098145, 0.5179787874221802, -0.16279003024101257, 0.3300551474094391, -0.17641635239124298, -0.07582470774650574, 0.15887263417243958, -0.009472064673900604, 0.03644155338406563, 0.3000381588935852, -0.24998216331005096, -0.4352443814277649, 0.17460624873638153, -0.3442838191986084, -0.3310264050960541, -0.23228046298027039, 0.2736024558544159, 0.14278651773929596, -0.20520640909671783, -0.13571619987487793, 0.31289681792259216, 0.2800412178039551, -0.2412378191947937, -0.057618897408246994, 0.19559375941753387, -0.2017453908920288, -0.1733098179101944, 0.08347129076719284, 0.5570023655891418, 0.10373561829328537, -0.4280094802379608, 0.21802645921707153, -0.1046663150191307 ]
https://github.com/huggingface/datasets/issues/2000
Windows Permission Error (most recent version of datasets)
Hi @itsLuisa, thanks for sharing the Traceback. You are defining the "id" field as a `string` feature: ```python class Sample(datasets.GeneratorBasedBuilder): ... def _info(self): return datasets.DatasetInfo( features=datasets.Features( { "id": datasets.Value("string"), # ^^ here "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence(datasets.features.ClassLabel(names=[...])), [...] ``` But in the `_generate_examples`, the "id" field is a list: ```python ids = list() ``` Changing: ```python "id": datasets.Value("string"), ``` Into: ```python "id": datasets.Sequence(datasets.Value("string")), ``` Should fix your issue. Let me know if this helps!
Hi everyone, Can anyone help me with why the dataset loading script below raises a Windows Permission Error? I stuck quite closely to https://github.com/huggingface/datasets/blob/master/datasets/conll2003/conll2003.py , only I want to load the data from three local three-column tsv-files (id\ttokens\tpos_tags\n). I am using the most recent version of datasets. Thank you in advance! Luisa My script: ``` import datasets import csv logger = datasets.logging.get_logger(__name__) class SampleConfig(datasets.BuilderConfig): def __init__(self, **kwargs): super(SampleConfig, self).__init__(**kwargs) class Sample(datasets.GeneratorBasedBuilder): BUILDER_CONFIGS = [ SampleConfig(name="conll2003", version=datasets.Version("1.0.0"), description="Conll2003 dataset"), ] def _info(self): return datasets.DatasetInfo( description="Dataset with words and their POS-Tags", features=datasets.Features( { "id": datasets.Value("string"), "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ "''", ",", "-LRB-", "-RRB-", ".", ":", "CC", "CD", "DT", "EX", "FW", "HYPH", "IN", "JJ", "JJR", "JJS", "MD", "NN", "NNP", "NNPS", "NNS", "PDT", "POS", "PRP", "PRP$", "RB", "RBR", "RBS", "RP", "TO", "UH", "VB", "VBD", "VBG", "VBN", "VBP", "VBZ", "WDT", "WP", "WRB", "``" ] ) ), } ), supervised_keys=None, homepage="https://catalog.ldc.upenn.edu/LDC2011T03", citation="Weischedel, Ralph, et al. OntoNotes Release 4.0 LDC2011T03. Web Download. Philadelphia: Linguistic Data Consortium, 2011.", ) def _split_generators(self, dl_manager): loaded_files = dl_manager.download_and_extract(self.config.data_files) return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": loaded_files["train"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": loaded_files["test"]}), datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": loaded_files["val"]}) ] def _generate_examples(self, filepath): logger.info("generating examples from = %s", filepath) with open(filepath, encoding="cp1252") as f: data = csv.reader(f, delimiter="\t") ids = list() tokens = list() pos_tags = list() for id_, line in enumerate(data): #print(line) if len(line) == 1: if tokens: yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} ids = list() tokens = list() pos_tags = list() else: ids.append(line[0]) tokens.append(line[1]) pos_tags.append(line[2]) # last example yield id_, {"id": ids, "tokens": tokens, "pos_tags": pos_tags} def main(): dataset = datasets.load_dataset( "data_loading.py", data_files={ "train": "train.tsv", "test": "test.tsv", "val": "val.tsv" } ) #print(dataset) if __name__=="__main__": main() ```
73
Windows Permission Error (most recent version of datasets)
[ -0.47043201327323914, 0.44254884123802185, -0.13729561865329742, 0.010590875521302223, -0.013679354451596737, 0.19524918496608734, 0.24361100792884827, 0.10695355385541916, -0.0296032577753067, 0.200607568025589, -0.20162904262542725, -0.013709895312786102, -0.2173014134168625, -0.07400211691856384, -0.2536425292491913, 0.01408009510487318, 0.05567386746406555, 0.06956665962934494, -0.07703319191932678, -0.13994397222995758, -0.3195599913597107, -0.07275424897670746, -0.2884913980960846, 0.2838173508644104, -0.1179659366607666, -0.3389638364315033, 0.04373646900057793, 0.29502978920936584, -0.3015868365764618, -0.09924578666687012, 0.13533544540405273, 0.18925729393959045, 0.3640417158603668, 0.2618175148963928, -0.0001009868283290416, -0.05554170906543732, 0.168925479054451, 0.2566796839237213, 0.003919433336704969, 0.38225120306015015, -0.1595243513584137, 0.008251698687672615, -0.19039447605609894, -0.09116338193416595, 0.04271014407277107, 0.00467296876013279, 0.20954346656799316, -0.1882580816745758, 0.06989650428295135, 0.28403058648109436, 0.37395960092544556, 0.16912002861499786, 0.023534003645181656, -0.2820780575275421, 0.3848750591278076, -0.008694972842931747, -0.047132328152656555, 0.09540406614542007, 0.1872333139181137, -0.26577356457710266, 0.0368998683989048, 0.24655936658382416, 0.1668548882007599, 0.041843511164188385, -0.037651900202035904, -0.20543771982192993, -0.01620669476687908, -0.15482580661773682, 0.4641873836517334, -0.1202344223856926, 0.7562267780303955, -0.06776189059019089, -0.3657219707965851, 0.06566007435321808, 0.18017636239528656, -0.028950750827789307, 0.29088616371154785, 0.2593767046928406, 0.07680093497037888, 0.10971885919570923, -0.10761455446481705, -0.13326649367809296, -0.22660112380981445, 0.04908854514360428, -0.17708170413970947, -0.08715762197971344, -0.14539088308811188, 0.04328073561191559, 0.006163930054754019, -0.28547775745391846, 0.36957791447639465, 0.09732111543416977, -0.2114335596561432, 0.06767354160547256, -0.0857522115111351, 0.18019340932369232, -0.012660298496484756, 0.43172696232795715, -0.13711470365524292, 0.20225150883197784, -0.1377328336238861, -0.09301334619522095, 0.14082007110118866, 0.0024734220933169127, 0.2941940724849701, -0.07518119364976883, 0.06412021815776825, 0.23931854963302612, 0.47326335310935974, -0.1881764829158783, 0.02617955207824707, 0.0708758607506752, -0.22946880757808685, -0.5409393310546875, -0.019307907670736313, 0.08958637714385986, 0.37209904193878174, -0.10762152075767517, -0.4412091374397278, 0.16416200995445251, -0.01806635595858097, 0.002805139170959592, 0.159262016415596, 0.20815180242061615, 0.1366664320230484, -0.3722991645336151, 0.17602220177650452, 0.15474383533000946, 0.013893784023821354, -0.055854432284832, -0.2445029765367508, -0.10930155217647552, -0.25098732113838196, -0.17774666845798492, 0.36909711360931396, 0.003492527175694704, 0.037000350654125214, 0.044455401599407196, -0.14636199176311493, 0.024928752332925797, 0.05048828944563866, -0.10077657550573349, -0.046641040593385696, 0.3688443899154663, 0.19444993138313293, 0.3096596300601959, -0.12814033031463623, -0.15956923365592957, 0.10794562101364136, 0.12718789279460907, -0.06906096637248993, -0.20250406861305237, -0.09553911536931992, 0.24496246874332428, 0.04747413098812103, -0.04852546006441116, -0.014967010356485844, 0.07896888256072998, -0.05352652072906494, -0.12710116803646088, 0.04309352487325668, 0.12157614529132843, 0.11351516842842102, -0.16823242604732513, -0.20680870115756989, 0.46637576818466187, -0.42769455909729004, 0.15746919810771942, -0.2794032096862793, -0.35447457432746887, -0.03638389706611633, 0.09250637143850327, -0.02407868579030037, 0.10857630521059036, -0.15381167829036713, 0.25424838066101074, 0.17215563356876373, -0.19953416287899017, -0.5271904468536377, 0.07052057981491089, 0.13249698281288147, -0.34023240208625793, 0.09254869073629379, -0.09130807220935822, 0.2481517791748047, -0.1852085143327713, -0.07783371210098267, -0.01959013007581234, 0.24673253297805786, 0.03477698564529419, 0.14807233214378357, -0.21779616177082062, 0.12906195223331451, 0.15407070517539978, 0.2678506672382355, 0.14992274343967438, 0.5891274809837341, 0.03931974619626999, 0.1564212590456009, -0.06552834808826447, 0.09735554456710815, 0.3432198762893677, 0.15249277651309967, 0.09926848113536835, -0.17543834447860718, -0.3975113332271576, -0.1924000233411789, -0.015996141359210014, 0.18042825162410736, 0.07207776606082916, 0.03564167022705078, -0.17378172278404236, -0.2284863442182541, 0.16828787326812744, -0.09570366144180298, -0.008032134734094143, 0.2781406342983246, 0.25571438670158386, -0.13777458667755127, -0.2934121787548065, 0.3102622330188751, 0.08790493756532669, -0.2761724293231964, -0.05365876108407974, -0.0378590002655983, 0.047098495066165924, -0.36334851384162903, -0.23975291848182678, 0.15387260913848877, 0.004783183336257935, 0.26587826013565063, 0.11617718636989594, -0.07360785454511642, 0.2818876802921295, -0.13048629462718964, -0.1111353188753128, 0.19676554203033447, 0.15494078397750854, -0.06098952516913414, -0.14069487154483795, 0.27148139476776123, 0.12058299034833908, 0.025823596864938736, 0.16048192977905273, -0.2063862383365631, -0.08915305882692337, -0.08192884176969528, -0.16686977446079254, -0.15321281552314758, 0.27899834513664246, 0.2699832320213318, 0.20602361857891083, 0.03183082491159439, -0.22493205964565277, 0.14370758831501007, 0.3851149082183838, -0.12051384150981903, -0.06676540523767471, -0.16182474792003632, -0.04563100263476372, 0.27941998839378357, -0.045749321579933167, 0.14706945419311523, -0.011725741438567638, -0.1309286206960678, 0.3345261216163635, 0.382838636636734, 0.32955071330070496, 0.3199054002761841, 0.2117070108652115, 0.16298426687717438, 0.04175542667508125, -0.10851170122623444, -0.16265395283699036, 0.16443225741386414, -0.1651311218738556, -0.14780139923095703, -0.03518151119351387, -0.1517157256603241, -0.0025814631953835487, -0.4841739535331726, 0.10108677297830582, 0.22882218658924103, 0.32338589429855347, -0.3716323673725128, -0.22960560023784637, -0.17771470546722412, -0.20314787328243256, 0.18210168182849884, -0.04906291142106056, -0.3072561025619507, -0.017523253336548805, 0.0006536071887239814, 0.20090852677822113, -0.23740606009960175, 0.1795031875371933, -0.36573758721351624, 0.1773943156003952, 0.06304861605167389, 0.350732684135437, 0.0794166550040245, 0.19773723185062408, -0.05682749301195145, 0.22549059987068176, 0.27454620599746704, -0.25331956148147583, 0.3556991517543793, -0.059424400329589844, 0.44689860939979553, -0.44748878479003906, -0.058382563292980194, -0.1661118119955063, 0.01796651817858219, 0.3835766911506653, 0.14707136154174805, -0.0909014344215393, -0.02539181336760521, -0.3776285648345947, 0.05405554920434952, -0.30477994680404663, -0.11505360901355743, -0.13888664543628693, 0.0336235836148262, -0.453390508890152, -0.12959811091423035, -0.20241747796535492, -0.25689953565597534, -0.2399485856294632, 0.25454211235046387, 0.1970694661140442, 0.15143194794654846, 0.176466166973114, -0.13033097982406616, -0.04809003695845604, 0.06614711135625839, 0.24194294214248657, -0.4416918456554413, -0.022938666865229607, 0.06272247433662415, -0.2548410892486572, -0.5336173176765442, 0.17289376258850098, 0.18217861652374268, -0.12373603135347366, 0.4367358684539795, -0.05426741763949394, 0.03352143242955208, -0.2904247045516968, 0.3300011157989502, -0.08114569634199142, 0.30272167921066284, 0.37450024485588074, 0.09275513142347336, -0.08934972435235977, -0.12749505043029785, -0.27328866720199585, -0.15937845408916473, -0.16110053658485413, -0.14139743149280548, -0.19189317524433136, 0.20772616565227509, -0.08649361878633499, 0.26540443301200867, 0.1511278599500656, 0.28345757722854614, 0.10587069392204285, -0.14266999065876007, 0.6275020241737366, 0.1998845487833023, -0.2693876326084137, 0.3795146346092224, 0.017504293471574783, 0.09833409637212753, 0.37005090713500977, 0.009876151569187641, -0.22916442155838013, 0.14140364527702332, -0.1525685340166092, -0.45747020840644836, -0.3568376302719116, -0.21715860068798065, -0.16280251741409302, 0.22609513998031616, 0.19544827938079834, 0.22116373479366302, -0.3516032099723816, -0.3152162730693817, 0.18057429790496826, 0.3507481813430786, -0.23828621208667755, 0.09024874120950699, -0.37602168321609497, -0.04187067970633507, -0.3471994996070862, 0.23264828324317932, -0.14008298516273499, 0.695209264755249, -0.26871031522750854, 0.04690513387322426, 0.22291302680969238, -0.03685380145907402, 0.6431312561035156, -0.40106040239334106, 0.1575004905462265, 0.13170890510082245, 0.31710436940193176, 0.006432984955608845, -0.13459372520446777, -0.2574736475944519, 0.428466796875, -0.006098965648561716, 0.1596633493900299, 0.12441621720790863, -0.15635724365711212, 0.1988489329814911, -0.29737767577171326, -0.16529470682144165, -0.11288546770811081, 0.043878525495529175, -0.06650625169277191, -0.24080611765384674, -0.029187481850385666, 0.02390572428703308, -0.040085285902023315, -0.18603013455867767, 0.16729488968849182, -0.38760676980018616, 0.19962361454963684, 0.2684253454208374, 0.07998055219650269, 0.2643391489982605, 0.2687286138534546, 0.049583133310079575, 0.126358762383461, 0.2767232060432434, 0.16183796525001526, 0.30283939838409424, -0.20948021113872528, 0.033267732709646225, 0.28657785058021545, -0.34152424335479736, 0.2128603458404541, 0.23759514093399048, -0.274990051984787, -0.08985327929258347, -0.14622651040554047, -0.14600059390068054, -0.34967440366744995, 0.08599727600812912, 0.2455756962299347, 0.07507341355085373, -0.0039151073433458805, -0.188530832529068, 0.09889490902423859, 0.3100312054157257, -0.41375744342803955, 0.2544577121734619, 0.3686646521091461, -0.25710800290107727, -0.21826890110969543, -0.014470317400991917, 0.5524874925613403, -0.1060924082994461, 0.20184685289859772, 0.032433345913887024, -0.2653840482234955, 0.08522017300128937, 0.03249959647655487, 0.061004720628261566, -0.299183189868927, -0.39844632148742676, -0.08164461702108383, -0.01851361244916916, 0.13816942274570465, 0.22361280024051666, 0.009316198527812958, 0.06439594179391861, 0.21688072383403778, 0.1981934905052185, 0.09972964227199554, -0.004505592864006758, -0.3385172188282013, -0.15386997163295746, 0.013421180658042431, 0.3204065263271332, -0.028422826901078224, -0.007591735105961561, -0.34101396799087524, 0.1453695297241211, 0.1571594774723053, 0.03412095457315445, -0.3980293273925781, 0.053163081407547, -0.16060346364974976, 0.17298467457294464, -0.14829732477664948, 0.025110114365816116, 0.34572112560272217, 0.03987174853682518, 0.2932339906692505, 0.33709004521369934, -0.23998694121837616, 0.07361214607954025, 0.07577156275510788, -0.09658128023147583, -0.22852180898189545, 0.13299040496349335, 0.3033379316329956, -0.04163557291030884, -0.18277139961719513, -0.12033211439847946, 0.03192112222313881, -0.19417381286621094, -0.3528576195240021, 0.28840935230255127, -0.0004304554604459554, -0.34714534878730774, 0.023732688277959824, -0.23200774192810059, -0.0028341973666101694, -0.08894050866365433, 0.22674700617790222, 0.09627991169691086, 0.11246639490127563, 0.28812816739082336, -0.2158810943365097, -0.23842890560626984, 0.00886224303394556, 0.43862417340278625, -0.06958527117967606, 0.020393131300807, 0.5333769917488098, -0.03744427114725113, -0.2321345955133438, -0.3747516870498657, 0.009127523750066757, 0.06443589180707932, -0.14096085727214813, 0.07882034778594971, -0.06783448159694672, -0.1409866064786911, 0.2903948128223419, 0.01416794490069151, 0.15844863653182983, -0.18835610151290894, 0.06663504987955093, -0.2867197096347809, -0.27442309260368347, -0.004891618620604277, -0.1155313178896904, 0.20853973925113678, 0.00263499328866601, -0.11949807405471802, 0.1361122578382492, -0.3656231164932251, -0.41262534260749817, 0.12059222161769867, -0.08625297993421555, 0.084739550948143, 0.29028773307800293, -0.21325136721134186, -0.029414022341370583, -0.13067318499088287, 0.14295774698257446, -0.1636970192193985, -0.11049026995897293, -0.3029136657714844, -0.0063727800734341145, 0.0406983457505703, 0.16187307238578796, -0.2774483859539032, 0.15716920793056488, -0.4117596447467804, -0.03853730484843254, 0.07117161899805069, 0.08592318743467331, 0.29903677105903625, 0.022681836038827896, 0.24901610612869263, 0.09619202464818954, -0.019218474626541138, 0.1107356920838356, 0.22186562418937683, -0.0497489795088768, 0.055790483951568604, -0.33199265599250793, 0.3645949959754944, 0.028531087562441826, 0.03804092854261398, -0.07568366080522537, 0.13200539350509644, 0.008598384447395802, 0.28272077441215515, -0.04896152764558792, -0.35501667857170105, -0.15587127208709717, 0.21093669533729553, 0.49030107259750366, 0.1644308865070343, -0.08133892714977264, -0.16651949286460876, 0.16815446317195892, 0.3212747275829315, -0.3617215156555176, -0.0973062738776207, 0.07392315566539764, -0.22612333297729492, 0.037814706563949585, -0.22315053641796112, 0.09012976288795471, -0.2152114361524582, -0.2730023264884949, 0.03765421360731125, 0.12136701494455338, -0.11195163428783417, 0.09468305855989456, 0.5893278121948242, 0.05288679897785187, -0.061954233795404434, 0.42094725370407104, 0.262704074382782, -0.0582321360707283, 0.7243659496307373, 0.037400491535663605, 0.0570765882730484, 0.1132950559258461, -0.15812747180461884, 0.17715322971343994, -0.5535362362861633, 0.16212405264377594, -0.1589340716600418, 0.1851772516965866, -0.02644788846373558, -0.11087013781070709, 0.2642118036746979, -0.24562212824821472, -0.09782297909259796, -0.416235089302063, -0.12399210780858994, -0.30477404594421387, -0.2038644403219223, -0.35458511114120483, -0.1170482262969017, 0.06949087977409363, -0.05803481861948967, -0.19723893702030182, -0.22019131481647491, 0.07997985184192657, -0.1688511073589325, -0.1410776674747467, -0.40397217869758606, 0.2229723334312439, 0.16658370196819305, -0.2866228520870209, -0.17872671782970428, 0.09492131322622299, -0.17927563190460205, 0.08842574805021286, 0.349124014377594, 0.4014880061149597, 0.43963491916656494, 0.04202675074338913, 0.0007140920497477055, 0.000412781402701512, 0.138172447681427, -0.17469942569732666, -0.2383808195590973, 0.41901326179504395, 0.14531897008419037, 0.32077381014823914, 0.2144303321838379, 0.25263315439224243, -0.13439323008060455, 0.05527975410223007, 0.01228626910597086, -0.20454730093479156, -0.008684281259775162, -0.017755307257175446, -0.22220726311206818, -0.3543030023574829, 0.13008195161819458, -0.10572982579469681, -0.012305473908782005, 0.010490275919437408, 0.45519956946372986, -0.12543517351150513, 0.23784399032592773, -0.41150790452957153, 0.13732461631298065, 0.105577751994133, 0.3028547763824463, 0.42823341488838196, 0.14485099911689758, -0.0037347825709730387, -0.13621357083320618, -0.6351426243782043, 0.02553195133805275, 0.1134740486741066, 0.018505236133933067, -0.094416044652462, -0.08431675285100937, 0.002822584006935358, -0.21045900881290436, 0.22716908156871796, -0.03738390654325485, 0.06016072630882263, 0.1983192265033722, -0.1769319772720337, 0.018846893683075905, 0.45379242300987244, -0.08608534932136536, 0.05441875383257866, -0.42540979385375977, 0.1818787306547165, -0.09947098046541214, 0.11374890804290771, -0.20931069552898407, 0.08411254733800888, -0.06690020114183426, 0.13919438421726227, 0.32156097888946533, 0.1384657472372055, 0.27640315890312195, -0.17388011515140533, 0.20062941312789917, -0.6548351049423218, -0.07550472021102905, -0.21842704713344574, 0.07899338006973267, -0.025444036349654198, 0.05657476931810379, -0.22025248408317566, 0.217703714966774, 0.07135049253702164, 0.032928723841905594, -0.06719136238098145, 0.5179787874221802, -0.16279003024101257, 0.3300551474094391, -0.17641635239124298, -0.07582470774650574, 0.15887263417243958, -0.009472064673900604, 0.03644155338406563, 0.3000381588935852, -0.24998216331005096, -0.4352443814277649, 0.17460624873638153, -0.3442838191986084, -0.3310264050960541, -0.23228046298027039, 0.2736024558544159, 0.14278651773929596, -0.20520640909671783, -0.13571619987487793, 0.31289681792259216, 0.2800412178039551, -0.2412378191947937, -0.057618897408246994, 0.19559375941753387, -0.2017453908920288, -0.1733098179101944, 0.08347129076719284, 0.5570023655891418, 0.10373561829328537, -0.4280094802379608, 0.21802645921707153, -0.1046663150191307 ]
https://github.com/huggingface/datasets/issues/1996
Error when exploring `arabic_speech_corpus`
Actually soundfile is not a dependency of this dataset. The error comes from a bug that was fixed in this commit: https://github.com/huggingface/datasets/pull/1767/commits/c304e63629f4453367de2fd42883a78768055532 Basically the library used to consider the `import soundfile` in the docstring as a dependency, while it's just here as a code example. Updating the viewer to the latest version of `datasets` should fix this issue
Navigate to https://huggingface.co/datasets/viewer/?dataset=arabic_speech_corpus Error: ``` ImportError: To be able to use this dataset, you need to install the following dependencies['soundfile'] using 'pip install soundfile' for instance' Traceback: File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/script_runner.py", line 332, in _run_script exec(code, module.__dict__) File "/home/sasha/nlp-viewer/run.py", line 233, in <module> configs = get_confs(option) File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/caching.py", line 604, in wrapped_func return get_or_create_cached_value() File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/caching.py", line 588, in get_or_create_cached_value return_value = func(*args, **kwargs) File "/home/sasha/nlp-viewer/run.py", line 145, in get_confs module_path = nlp.load.prepare_module(path, dataset=True File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/datasets/load.py", line 342, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ```
58
Error when exploring `arabic_speech_corpus`
[ -0.07164820283651352, -0.14660757780075073, -0.18751977384090424, 0.20132558047771454, -0.08722049742937088, 0.08791238814592361, 0.20316055417060852, 0.391023725271225, -0.374519020318985, 0.09575517475605011, -0.23178239166736603, -0.19034574925899506, 0.030985496938228607, -0.33869901299476624, -0.11334865540266037, -0.24923180043697357, 0.09462759643793106, 0.0029582958668470383, 0.24350765347480774, -0.14412951469421387, -0.18587853014469147, 0.5710620880126953, -0.2732377052307129, 0.26434168219566345, 0.16791114211082458, -0.3222582936286926, -0.06793916970491409, -0.19384963810443878, -0.1372060328722, -0.16177219152450562, 0.005727766081690788, -0.1517675369977951, 0.15982702374458313, 0.319504052400589, -0.00010264828597428277, -0.025546619668602943, 0.44234374165534973, -0.0031313400249928236, -0.08594293147325516, -0.07974227517843246, 0.25834906101226807, 0.3976713716983795, -0.22305820882320404, -0.21238957345485687, 0.018055856227874756, -0.0958392545580864, 0.2503833472728729, -0.04412288963794708, -0.07638069242238998, 0.3147200644016266, 0.3671799302101135, -0.07673033326864243, 0.018555277958512306, -0.20300117135047913, 0.09336303174495697, 0.02495834417641163, -0.039423372596502304, -0.14678652584552765, 0.2226066291332245, 0.16366802155971527, -0.20947371423244476, 0.3488403558731079, -0.31106582283973694, -0.14293138682842255, -0.30730152130126953, -0.2407100796699524, 0.19151745736598969, -0.13320213556289673, 0.7401643991470337, -0.28084123134613037, 0.45843860507011414, 0.027318399399518967, 0.012989530339837074, 0.182134747505188, 0.06477154791355133, 0.0007686197641305625, 0.33722740411758423, 0.2999825179576874, -0.25955429673194885, 0.12547670304775238, 0.3715510070323944, -0.19684429466724396, -0.10946103930473328, 0.18256080150604248, -0.19610197842121124, 0.3062453866004944, -0.16550719738006592, -0.14046499133110046, 0.3521736264228821, -0.3307475745677948, -0.0678573027253151, 0.20778028666973114, -0.13073506951332092, 0.12460774183273315, -0.06795214116573334, 0.07765206694602966, 0.4699207544326782, -0.12591540813446045, -0.17808140814304352, -0.23867014050483704, 0.1769474893808365, 0.41896411776542664, 0.05836460739374161, 0.08868703991174698, 0.07582308351993561, -0.10948295891284943, 0.08981110155582428, 0.17894165217876434, 0.13191506266593933, 0.37378793954849243, -0.13232460618019104, 0.07818100601434708, -0.17434601485729218, -0.19853468239307404, -0.2773265242576599, 0.056362006813287735, 0.19146527349948883, -0.1779274195432663, -0.02494957111775875, 0.19940675795078278, -0.21375256776809692, -0.23216839134693146, -0.04915982857346535, 0.35731765627861023, -0.024190673604607582, -0.3002970516681671, 0.2881585955619812, 0.15400142967700958, -0.4445534348487854, 0.07290099561214447, -0.12597684562206268, 0.19338513910770416, -0.012771728448569775, -0.15220770239830017, 0.154555082321167, -0.1581384539604187, 0.10748022794723511, -0.4117116928100586, 0.06407203525304794, 0.11361677944660187, 0.0418415404856205, -0.08806360512971878, 0.23368127644062042, 0.2665954530239105, 0.08308973163366318, 0.14866231381893158, -0.05412370711565018, 0.20676960051059723, -0.13526096940040588, 0.2317095398902893, 0.0017901106039062142, -0.3935594856739044, -0.010545440949499607, 0.29477640986442566, 0.12309607863426208, -0.01713249273598194, 0.15819519758224487, 0.28198885917663574, 0.14661389589309692, -0.34335562586784363, 0.002441948279738426, 0.15366016328334808, -0.3947264552116394, 0.01067330501973629, -0.09416128695011139, 0.029104864224791527, 0.09270669519901276, -0.0005260954494588077, -0.11995313316583633, 0.1711481660604477, 0.03352938964962959, 0.15892376005649567, 0.03277050703763962, 0.07878977060317993, -0.30714237689971924, 0.49983587861061096, -0.181294783949852, -0.4076400101184845, -0.16831931471824646, -0.035265084356069565, 0.30667808651924133, -0.10698068141937256, 0.08381813019514084, -0.36117109656333923, 0.3604417145252228, -0.29597005248069763, 0.4421181082725525, 0.1214008703827858, 0.28279128670692444, -0.06562047451734543, -0.13467445969581604, -0.023894136771559715, -0.026062287390232086, 0.012552808038890362, 0.05520307272672653, -0.11672592163085938, -0.04247250035405159, 0.026312116533517838, 0.10445234924554825, -0.0016000231262296438, -0.09173524379730225, 0.10677103698253632, -0.09606949985027313, -0.1401505023241043, 0.2785613536834717, 0.03246365115046501, 0.43314307928085327, -0.10024433583021164, -0.20894958078861237, 0.502253532409668, -0.29421794414520264, 0.0732031986117363, -0.08858384191989899, -0.00021266029216349125, 0.04210313782095909, 0.05537910759449005, 0.3695113956928253, 0.12200389802455902, 0.0858842059969902, 0.30983325839042664, -0.035590674728155136, -0.22117836773395538, 0.05403423309326172, -0.23033307492733002, -0.3742855489253998, 0.1250341236591339, -0.21217872202396393, -0.24135589599609375, 0.15708433091640472, 0.10439688712358475, 0.20622602105140686, 0.0012918268330395222, -0.18004575371742249, -0.03004457987844944, -0.21963681280612946, 0.09551592171192169, -0.40066400170326233, 0.2151148021221161, 0.08852272480726242, -0.45086461305618286, 0.22936759889125824, 0.23649774491786957, 0.02142423205077648, -0.02616220898926258, 0.6445045471191406, -0.03473959490656853, 0.5640837550163269, 0.01473711896687746, 0.29494088888168335, -0.03145267814397812, 0.4046635925769806, 0.12143497914075851, -0.12079466879367828, -0.36423733830451965, 0.3369389772415161, 0.01136704720556736, -0.08374439179897308, 0.11462041735649109, -0.25054505467414856, -0.07912608236074448, 0.4528385102748871, -0.10686745494604111, 0.11994068324565887, 0.14063076674938202, -0.0625881627202034, -0.01316136121749878, 0.06839517503976822, -0.009548280388116837, -0.0007713615777902305, -0.02945813164114952, 0.06258820742368698, 0.05933086574077606, -0.09040722995996475, -0.056251391768455505, 0.24875910580158234, 0.14531701803207397, 0.14313307404518127, 0.045933667570352554, 0.1836344450712204, 0.00008090287883533165, -0.42232465744018555, -0.047345809638500214, -0.1709885448217392, 0.12342914938926697, -0.18198837339878082, -0.020790036767721176, -0.0597703754901886, -0.3404351770877838, 0.21479453146457672, -0.2903648316860199, -0.03084624744951725, -0.03835656866431236, 0.2286805808544159, 0.08748263865709305, -0.19646704196929932, 0.14885467290878296, 0.1893729716539383, 0.12978516519069672, 0.04106857255101204, 0.19961978495121002, -0.046441543847322464, -0.03151656687259674, -0.3089308440685272, 0.1777600198984146, 0.10677553713321686, 0.013836691156029701, -0.07917802780866623, -0.21358585357666016, 0.04790126159787178, -0.1719832867383957, -0.06084372103214264, 0.23054508864879608, -0.09009116142988205, -0.14073754847049713, 0.10662344843149185, 0.056036725640296936, -0.2192380428314209, -0.5873647332191467, 0.10279014706611633, 0.009293918497860432, -0.07737766206264496, 0.37991899251937866, -0.023611532524228096, -0.06369141489267349, -0.0894288644194603, -0.26965880393981934, -0.02468297816812992, -0.3139772117137909, -0.19633744657039642, -0.022047346457839012, 0.23821967840194702, 0.4542595446109772, -0.2683643400669098, 0.09721693396568298, 0.03784521296620369, 0.3126901686191559, -0.25230953097343445, -0.09930603206157684, 0.27830731868743896, -0.4278624951839447, -0.3759845197200775, 0.13958857953548431, -0.14091460406780243, 0.4409451186656952, -0.10008310526609421, -0.21441160142421722, 0.23631398379802704, -0.04480542987585068, -0.34805503487586975, -0.08576229214668274, -0.12632299959659576, 0.3391443192958832, 0.07105676084756851, -0.18077582120895386, -0.08265069127082825, -0.23332421481609344, 0.18307235836982727, 0.255255788564682, 0.17186598479747772, -0.027713658288121223, -0.03741471469402313, 0.004399770870804787, 0.207473024725914, -0.2990562319755554, 0.0263779629021883, 0.2270347625017166, 0.2481306493282318, 0.08756527304649353, -0.22315824031829834, -0.24333910644054413, -0.21531139314174652, 0.07959692925214767, -0.35023075342178345, 0.4755651652812958, 0.02245514467358589, -0.6223582625389099, -0.2861142158508301, -0.2885717451572418, -0.3446003198623657, -0.3698294460773468, 0.03666648641228676, -0.28742966055870056, 0.3519366681575775, 0.09422266483306885, 0.1358821541070938, -0.12878362834453583, 0.03243928775191307, 0.26573944091796875, -0.08461768180131912, 0.009452547878026962, -0.18033070862293243, -0.0832473486661911, -0.23538590967655182, -0.47485172748565674, 0.33942049741744995, 0.09310337156057358, 0.37859851121902466, -0.3463345170021057, -0.1745774745941162, 0.1950119286775589, -0.02127937600016594, 0.3616999089717865, -0.21756793558597565, 0.02245035022497177, 0.44242048263549805, 0.04031715542078018, -0.1470417082309723, -0.13042199611663818, -0.12580424547195435, 0.024282220751047134, -0.09145582467317581, -0.13781030476093292, -0.0734054446220398, 0.206259623169899, 0.03596470132470131, -0.09643489122390747, 0.08818960934877396, -0.094133660197258, -0.38256606459617615, -0.5969974994659424, -0.20150616765022278, -0.23124469816684723, 0.19219273328781128, 0.13386183977127075, 0.2767695486545563, 0.07852421700954437, 0.29924583435058594, -0.0043532042764127254, 0.3359101116657257, 0.06954818218946457, 0.06445275992155075, 0.17127172648906708, 0.008320254273712635, 0.056333571672439575, 0.0012044982286170125, -0.1016945168375969, 0.13787589967250824, 0.23085616528987885, 0.018272576853632927, 0.1925622820854187, -0.16656608879566193, -0.0628683939576149, 0.18613705039024353, -0.14297784864902496, 0.15514157712459564, -0.04412376135587692, -0.06808218359947205, -0.12494466453790665, -0.24121332168579102, 0.4157276749610901, 0.07893329113721848, -0.43326690793037415, -0.19184482097625732, -0.09957398474216461, -0.26002782583236694, -0.0799560546875, 0.09906820952892303, 0.019278906285762787, -0.13154740631580353, 0.7962401509284973, -0.11792862415313721, 0.7940126061439514, -0.118052639067173, 0.045177530497312546, 0.14994968473911285, 0.3727613091468811, -0.17902879416942596, 0.05992119386792183, 0.5027226805686951, 0.09045170992612839, -0.1818026453256607, -0.03476611524820328, 0.14180557429790497, 0.24379189312458038, 0.01794777251780033, -0.3488233983516693, -0.2009877860546112, 0.06471074372529984, -0.2555336654186249, -0.02365982159972191, -0.16072075068950653, -0.2087070792913437, -0.1972905844449997, -0.3729426860809326, 0.26991188526153564, 0.14439313113689423, 0.2886037528514862, -0.009603005833923817, 0.07165512442588806, -0.021756384521722794, -0.45098018646240234, -0.363374799489975, 0.1454610526561737, -0.04567345604300499, 0.12229359149932861, 0.021587824448943138, 0.20837274193763733, 0.18863293528556824, -0.02273733541369438, 0.23308543860912323, 0.2626453936100006, -0.041396364569664, 0.027589578181505203, 0.14755721390247345, -0.5642949938774109, -0.024605952203273773, 0.014059721492230892, 0.2932681143283844, -0.21353155374526978, -0.22725582122802734, 0.4223374128341675, 0.16932600736618042, -0.0648324117064476, -0.07132657617330551, 0.014451542869210243, 0.07109289616346359, 0.02712274342775345, -0.48419415950775146, 0.07031887769699097, -0.14786821603775024, 0.1196664497256279, 0.29173585772514343, -0.17800602316856384, -0.3983379006385803, -0.07932468503713608, -0.020698778331279755, -0.08475899696350098, 0.04170403257012367, 0.3676801025867462, 0.253879576921463, -0.193242609500885, 0.39161959290504456, 0.38209742307662964, -0.15613995492458344, -0.2329229712486267, -0.6097781658172607, -0.3724927008152008, -0.13535821437835693, 0.06793829798698425, 0.01588665507733822, -0.21313048899173737, -0.007087160833179951, 0.29910361766815186, -0.023103585466742516, 0.07154176384210587, -0.12844625115394592, -0.08935167640447617, -0.10623526573181152, 0.29505205154418945, -0.09573160856962204, -0.20049899816513062, 0.11649156361818314, -0.1573789119720459, 0.14567908644676208, -0.058267224580049515, -0.42873501777648926, -0.01110757328569889, -0.337228387594223, 0.21354925632476807, -0.08904539048671722, -0.15621726214885712, 0.0008721337653696537, 0.07483883202075958, 0.3155909776687622, 0.1580229550600052, -0.16515536606311798, -0.36864346265792847, 0.10925259441137314, 0.04133147746324539, 0.12762688100337982, 0.09078467637300491, 0.22266976535320282, -0.2907838523387909, -0.11993227154016495, -0.07095041871070862, 0.008046961389482021, 0.3802051544189453, 0.018605105578899384, -0.008343138732016087, -0.07105984538793564, -0.031116005033254623, 0.297870397567749, 0.002792675280943513, -0.10495981574058533, 0.2638659179210663, 0.13411438465118408, -0.16936267912387848, -0.11462970077991486, -0.15119273960590363, -0.030286941677331924, 0.2172476202249527, -0.22467103600502014, -0.023924997076392174, 0.22232136130332947, 0.05016861483454704, 0.16260871291160583, 0.004870740231126547, 0.06568984687328339, -0.1554405242204666, -0.208110973238945, -0.3651343286037445, 0.15644162893295288, 0.3316129148006439, -0.22133713960647583, -0.04368627816438675, -0.07483986765146255, -0.2504342198371887, 0.08760830760002136, 0.21068543195724487, 0.2861119210720062, -0.2136615365743637, 0.0589517317712307, 0.19720369577407837, 0.317507266998291, -0.02799185924232006, 0.24460658431053162, 0.23398266732692719, -0.0002669029345270246, -0.056735023856163025, -0.035048842430114746, -0.09150587767362595, 0.21118564903736115, 0.2863706946372986, -0.08206745237112045, 0.48473212122917175, 0.35385727882385254, 0.22962883114814758, -0.038434531539678574, -0.5094825625419617, 0.35652825236320496, 0.30596134066581726, 0.3131660223007202, 0.3133711814880371, 0.030845455825328827, -0.04376467317342758, 0.07575878500938416, 0.05401630699634552, -0.19384536147117615, 0.04125823825597763, -0.10992427170276642, -0.0403849221765995, 0.07736524194478989, -0.08330576866865158, 0.13230307400226593, -0.04882241412997246, 0.1680271327495575, 0.2841125726699829, -0.06821346282958984, -0.2329053282737732, -0.138620987534523, 0.2881741225719452, 0.19807036221027374, -0.4355235993862152, 0.06504335254430771, -0.05942205712199211, 0.3495824933052063, -0.05179878696799278, -0.15747825801372528, 0.20514710247516632, 0.3089168071746826, 0.38117048144340515, 0.13221749663352966, -0.23583678901195526, 0.28225746750831604, -0.34730273485183716, -0.04009554162621498, 0.07370398193597794, 0.2649044692516327, 0.3288573622703552, 0.3552412986755371, 0.03328832611441612, 0.21066464483737946, -0.18755187094211578, 0.04303546994924545, 0.3657081425189972, 0.19056336581707, 0.2450392246246338, -0.1504107117652893, -0.33989572525024414, -0.02655845135450363, -0.24895387887954712, 0.04506581276655197, -0.6407301425933838, -0.12986944615840912, 0.4634920358657837, -0.3357091546058655, 0.11123951524496078, -0.12584909796714783, 0.1485828161239624, -0.10408440232276917, 0.2762957811355591, 0.33007723093032837, 0.2730477750301361, 0.11568418890237808, -0.26463332772254944, -0.18902672827243805, 0.42990535497665405, 0.04886000230908394, 0.2338239997625351, -0.13743425905704498, -0.0658716931939125, 0.3445199131965637, -0.0787697359919548, 0.11239155381917953, -0.052786730229854584, -0.5664555430412292, 0.020912956446409225, -0.13523955643177032, 0.012397666461765766, -0.09369679540395737, 0.013212958350777626, -0.311587393283844, -0.06164276599884033, -0.1091814860701561, -0.18884322047233582, 0.23850785195827484, -0.12365052103996277, -0.284649521112442, -0.1723429411649704, 0.1481986790895462, -0.012010048143565655, 0.1444840133190155, 0.050108253955841064, -0.27772513031959534, 0.044699423015117645, 0.015187679789960384, -0.00560591509565711, 0.37619826197624207, 0.22397509217262268, 0.13745710253715515, 0.21355010569095612, -0.009863894432783127, 0.42513158917427063, -0.030348030850291252, 0.2618805468082428, 0.05165150389075279, 0.11535513401031494, -0.26682108640670776, 0.3662799298763275, -0.08284030109643936, -0.02934805117547512, 0.11295495927333832, 0.13085654377937317, 0.03249334916472435, -0.07338187843561172, -0.07870665192604065, -0.33759862184524536, 0.43636083602905273, -0.4857751727104187, -0.4119829833507538, 0.03559267148375511, 0.28871476650238037, -0.25964096188545227, 0.045036591589450836, -0.45380768179893494, -0.009385564364492893, 0.009192411787807941, -0.0067913890816271305, -0.02732926607131958, -0.03125953674316406, -0.16623501479625702, -0.23526179790496826, -0.013742117211222649, 0.18413212895393372, 0.28221291303634644, -0.1675596535205841, -0.13814444839954376, -0.17370623350143433 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
@lhoestq I really appreciate if you could help me providiing processed datasets, I do not really have access to enough resources to run the apache-beam and need to run the codes on these datasets. Only en/de/fr currently works, but I need all the languages more or less. thanks
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
48
not being able to get wikipedia es language
[ 0.10881943255662918, -0.5029884576797485, -0.32401329278945923, 0.09868849068880081, 0.15049472451210022, 0.07892651855945587, -0.09729307144880295, 0.13324935734272003, 0.39711639285087585, 0.11324799060821533, 0.14967356622219086, -0.0095089515671134, 0.15753202140331268, -0.09283965080976486, -0.1556767225265503, -0.23074379563331604, -0.016140123829245567, 0.06180465593934059, 0.14073964953422546, -0.2811497747898102, 0.0998506173491478, 0.203340083360672, -0.19405707716941833, 0.08995462208986282, 0.17653751373291016, 0.04483632743358612, 0.00922111701220274, -0.09053664654493332, -0.23739171028137207, 0.07073434442281723, 0.12004009634256363, 0.034196168184280396, 0.02310013212263584, 0.07075900584459305, -0.0000971286281128414, -0.05991936847567558, 0.4827338457107544, 0.03761739283800125, -0.3058558702468872, -0.1272994428873062, -0.157138392329216, 0.016147205606102943, -0.09020407497882843, -0.29634055495262146, -0.21427886188030243, -0.13623066246509552, 0.4141675531864166, -0.29445552825927734, 0.04187241941690445, 0.10665543377399445, 0.35857781767845154, -0.37257686257362366, 0.188603475689888, -0.14910434186458588, 0.40712621808052063, 0.10858926177024841, 0.03148671239614487, 0.033782314509153366, 0.011968094855546951, -0.050943389534950256, 0.0930895060300827, 0.27269837260246277, 0.14174771308898926, -0.19877547025680542, -0.01979283057153225, 0.025820568203926086, 0.2617724537849426, -0.16062778234481812, 0.5867554545402527, 0.11188459396362305, 0.5242472290992737, 0.2787313759326935, -0.045776329934597015, 0.33025553822517395, -0.062142305076122284, 0.24231772124767303, 0.3024950921535492, -0.05723067745566368, -0.16969802975654602, -0.029958663508296013, 0.44956305623054504, -0.378718763589859, -0.18086175620555878, 0.32811105251312256, -0.20959699153900146, 0.5398256182670593, 0.03449493274092674, -0.09204479306936264, 0.09682250022888184, -0.11148988455533981, -0.07581260800361633, 0.12564004957675934, -0.11331190168857574, 0.29293376207351685, 0.37531790137290955, 0.2636285722255707, 0.5531390905380249, 0.2767774760723114, -0.06809549033641815, -0.30613240599632263, -0.4284600019454956, 0.32761186361312866, 0.013309669680893421, 0.005339075345546007, 0.11588256061077118, -0.11490735411643982, 0.15387192368507385, -0.08923842757940292, 0.2269182801246643, 0.15389810502529144, -0.04493379220366478, 0.007425246294587851, -0.13698095083236694, -0.13617761433124542, -0.35719069838523865, 0.0846409723162651, 0.03414284437894821, -0.2736678719520569, 0.23803114891052246, 0.1459924876689911, -0.22057992219924927, -0.14311498403549194, -0.11181492358446121, 0.03929801657795906, 0.061412930488586426, 0.21457187831401825, 0.1268194317817688, -0.1286521703004837, -0.3258804678916931, -0.03254136070609093, -0.2600383758544922, 0.2758822739124298, -0.3784317076206207, -0.10631287842988968, -0.04862762987613678, 0.1599983423948288, 0.222872793674469, -0.11796887218952179, -0.15077096223831177, -0.07298063486814499, -0.18837536871433258, 0.011734496802091599, -0.10919453203678131, -0.11483035236597061, -0.005808770656585693, 0.3050002455711365, 0.03592133894562721, -0.5967687964439392, -0.05571938306093216, -0.10731056332588196, -0.04629289358854294, 0.06408987194299698, -0.32495585083961487, 0.3435462415218353, 0.27475062012672424, -0.07554575055837631, 0.23908822238445282, 0.3001483380794525, 0.08525894582271576, -0.2641817331314087, 0.08024358004331589, 0.2655028998851776, -0.0011557514080777764, 0.14315025508403778, 0.15268947184085846, -0.03754639998078346, -0.25987932085990906, 0.1356513351202011, -0.19418394565582275, 0.0275595560669899, 0.3935093581676483, 0.15683631598949432, -0.1401658058166504, 0.13792049884796143, -0.09617430716753006, 0.2496129721403122, 0.017928512766957283, 0.010273091495037079, -0.1062232106924057, 0.05321067199110985, 0.10912811011075974, -0.24788233637809753, 0.19018128514289856, -0.07381050288677216, 0.015218231827020645, 0.13244886696338654, 0.08267267793416977, 0.1403079330921173, 0.05773300305008888, 0.0004165317222941667, -0.2396778017282486, -0.2145780771970749, 0.1307203620672226, -0.10095441341400146, 0.44638293981552124, -0.10867788642644882, 0.17409324645996094, 0.5914689302444458, 0.237018883228302, -0.031675759702920914, -0.17629112303256989, 0.24596719443798065, 0.038333553820848465, 0.18207068741321564, 0.09234151244163513, 0.06431172043085098, 0.05479344353079796, -0.059287164360284805, 0.06892524659633636, 0.4851302206516266, -0.11376240104436874, -0.1291101723909378, -0.31315016746520996, -0.04255491495132446, -0.014663278125226498, -0.03234660252928734, 0.376689076423645, 0.23870018124580383, -0.020349863916635513, 0.2298617660999298, 0.2615770995616913, -0.6190347671508789, -0.09034572541713715, -0.14102379977703094, -0.3266516625881195, 0.0490923710167408, -0.3904855251312256, 0.062488339841365814, -0.19579052925109863, 0.07306469231843948, -0.052964940667152405, 0.039012935012578964, -0.24247030913829803, -0.23093055188655853, 0.2264098972082138, 0.06551895290613174, 0.18249551951885223, -0.08979656547307968, 0.14996090531349182, -0.5619229078292847, -0.22331035137176514, 0.36305105686187744, 0.22831127047538757, 0.09538992494344711, -0.06985104084014893, -0.2004852443933487, 0.2760849893093109, 0.019079402089118958, 0.08224110305309296, 0.049875929951667786, 0.2706109881401062, 0.04765528067946434, 0.03034088760614395, -0.345840722322464, 0.17095716297626495, 0.23141473531723022, -0.21036186814308167, -0.021651295945048332, -0.06720320135354996, 0.07395920902490616, 0.6060271263122559, 0.19895915687084198, 0.2640330493450165, -0.19511398673057556, 0.16534964740276337, -0.28581514954566956, 0.21682217717170715, -0.38999536633491516, -0.29042625427246094, 0.09755779802799225, 0.27093079686164856, -0.08409012109041214, -0.16981084644794464, -0.16264663636684418, 0.2775511145591736, -0.052774619311094284, 0.19929839670658112, -0.10660621523857117, -0.10876577347517014, -0.1700945347547531, -0.1947689950466156, -0.09671400487422943, -0.22968518733978271, 0.2377864271402359, 0.010837078094482422, 0.15239769220352173, -0.45365235209465027, -0.2717386782169342, 0.07314461469650269, -0.006594562903046608, -0.2252030372619629, -0.3029784560203552, 0.1749579757452011, -0.045547641813755035, 0.04265512898564339, 0.10841011255979538, 0.1736607849597931, -0.07519702613353729, 0.0586371123790741, 0.21236169338226318, -0.19295211136341095, -0.7053992748260498, -0.505607008934021, 0.21815888583660126, 0.19779814779758453, -0.14555293321609497, 0.0734509602189064, -0.26205092668533325, -0.29418331384658813, -0.15188737213611603, -0.46057936549186707, 0.18050195276737213, -0.11579269170761108, -0.059002310037612915, 0.01695888489484787, 0.42737507820129395, -0.24079212546348572, -0.14556223154067993, 0.1047564372420311, -0.21520107984542847, -0.1753108948469162, -0.010809202678501606, -0.12297941744327545, -0.11099332571029663, -0.21815019845962524, -0.49741479754447937, 0.15540927648544312, 0.022937772795557976, -0.13143987953662872, -0.033849190920591354, 0.0287015363574028, 0.12918061017990112, 0.07757600396871567, 0.1506866216659546, 0.26260676980018616, 0.176879420876503, -0.3338986337184906, 0.09776654839515686, 0.15599963068962097, -0.12502136826515198, -0.29580453038215637, 0.12726202607154846, -0.06329165399074554, 0.2780211865901947, -0.13228650391101837, -0.08897235244512558, 0.04571080580353737, 0.0717599168419838, 0.16449403762817383, 0.006353011354804039, 0.20066900551319122, 0.19232764840126038, -0.009153764694929123, -0.30919384956359863, 0.0410718098282814, -0.013881374150514603, 0.006485207937657833, -0.20721526443958282, 0.3533966541290283, -0.13943453133106232, 0.27705320715904236, 0.12156113237142563, 0.5772039890289307, -0.24255111813545227, 0.22338655591011047, 0.19646821916103363, 0.05001642927527428, 0.00930762104690075, -0.17688870429992676, -0.1522536277770996, 0.07350412011146545, 0.17876893281936646, -0.1334741711616516, 0.39848968386650085, 0.002959589706733823, -0.5453799366950989, -0.23391762375831604, 0.11393752694129944, -0.15620750188827515, -0.18944045901298523, -0.05426506698131561, 0.09761681407690048, 0.054974742233753204, -0.003932870924472809, 0.324339359998703, 0.09707490354776382, -0.2844160199165344, 0.1274695098400116, 0.1603957861661911, -0.2235165238380432, 0.01580316573381424, -0.2835346460342407, -0.2909454107284546, -0.009208743460476398, 0.1848396509885788, 0.041616927832365036, 0.08931456506252289, -0.18929599225521088, 0.004650877323001623, 0.4041396677494049, -0.11583410948514938, 0.09384266287088394, -0.2665364444255829, 0.10659313201904297, -0.0007258215337060392, 0.17057271301746368, -0.21993879973888397, -0.012172622606158257, -0.2855195701122284, 0.31456252932548523, 0.4303750991821289, -0.15116918087005615, -0.3844887316226959, 0.15260553359985352, 0.10028503090143204, -0.11779631674289703, -0.0893026739358902, 0.07417313754558563, -0.2022150456905365, -0.3440389931201935, -0.2627861201763153, 0.11985184997320175, 0.052100230008363724, 0.18779270350933075, 0.1865653544664383, 0.16985957324504852, -0.04063485562801361, 0.07932605594396591, -0.08237564563751221, 0.2110321968793869, -0.10611547529697418, 0.2398410141468048, -0.38015028834342957, -0.03585371747612953, 0.23082871735095978, -0.35072436928749084, 0.06391609460115433, 0.14361460506916046, -0.08977383375167847, 0.14934153854846954, -0.2014250010251999, 0.02564292773604393, 0.14683954417705536, -0.01030973345041275, -0.07080747187137604, 0.5967321991920471, -0.17731882631778717, 0.1225176677107811, -0.03933531790971756, 0.22150015830993652, 0.17533136904239655, -0.09726829081773758, -0.20099784433841705, 0.02921253629028797, -0.04709944128990173, -0.026255324482917786, -0.004236267413944006, 0.3036666214466095, -0.2517155408859253, 0.19874805212020874, 0.04197419062256813, 0.946838915348053, 0.1551632136106491, -0.035202886909246445, -0.08250332623720169, 0.26008284091949463, 0.2958843410015106, -0.054930344223976135, 0.1507401466369629, -0.158185675740242, 0.14318031072616577, -0.13988801836967468, 0.37174907326698303, 0.024082589894533157, 0.07871367037296295, -0.32600685954093933, 0.2762637436389923, -0.11297974735498428, 0.04455345496535301, 0.31013044714927673, 0.27897629141807556, 0.20143331587314606, -0.07003697007894516, -0.07457026094198227, 0.2536313831806183, 0.0005429434822872281, 0.27777302265167236, -0.03572288900613785, 0.10947590321302414, -0.07119610160589218, -0.24540257453918457, -0.4768733084201813, 0.17239002883434296, 0.11515088379383087, 0.5791788697242737, -0.14672324061393738, -0.17634479701519012, -0.03126077353954315, -0.08529093116521835, 0.16841022670269012, 0.4944300353527069, -0.22014975547790527, 0.1638886034488678, 0.11107320338487625, -0.5725210905075073, -0.045284856110811234, 0.14985710382461548, 0.14595761895179749, -0.15260663628578186, -0.4091801345348358, 0.26869210600852966, -0.032855674624443054, 0.0564681813120842, -0.39640098810195923, -0.1484406739473343, -0.19090810418128967, 0.3741452693939209, -0.1792023926973343, 0.21449697017669678, -0.1647873967885971, -0.04863767325878143, 0.2909184396266937, -0.23507170379161835, 0.22710703313350677, -0.2278091460466385, 0.4590778648853302, -0.04452033340930939, -0.0945010557770729, 0.2595265805721283, 0.17447274923324585, 0.026407884433865547, 0.3324267864227295, 0.23924978077411652, -0.39196470379829407, -0.3116985261440277, -0.2662361264228821, -0.41471701860427856, -0.09793233871459961, -0.32033729553222656, -0.0406462587416172, 0.016268005594611168, -0.16706250607967377, -0.20455200970172882, 0.15319325029850006, -0.0788331851363182, -0.025846725329756737, -0.09847265481948853, 0.23052677512168884, 0.11011362820863724, -0.1514817476272583, -0.11564479023218155, 0.008016765117645264, -0.30642247200012207, 0.31578904390335083, 0.06373551487922668, -0.4106082022190094, -0.1858324557542801, -0.21906550228595734, 0.01852951943874359, 0.2886301279067993, -0.11006750911474228, -0.18067339062690735, -0.051325444132089615, 0.46605220437049866, -0.1365680992603302, 0.03898850455880165, -0.3871106505393982, -0.05175943300127983, -0.007331968750804663, 0.019194625318050385, -0.0402105376124382, 0.14938922226428986, -0.28629618883132935, -0.018367506563663483, 0.04887484386563301, -0.10841688513755798, -0.10774524509906769, 0.14462503790855408, 0.1669515073299408, -0.0898909866809845, 0.30204764008522034, -0.05775240808725357, 0.04740488901734352, -0.01736435666680336, 0.3234427869319916, 0.033266693353652954, 0.12577277421951294, 0.44562065601348877, -0.2005935162305832, -0.317117840051651, 0.032035283744335175, -0.11393815279006958, 0.27402347326278687, -0.026622507721185684, 0.00033258373150601983, 0.10690446943044662, 0.2002287358045578, -0.09459391981363297, -0.04877454787492752, 0.04526331648230553, -0.009689857251942158, 0.23020584881305695, 0.32978299260139465, -0.2536877989768982, 0.13359028100967407, 0.22212952375411987, -0.11781501770019531, 0.1502881944179535, 0.11728613823652267, -0.02528439834713936, -0.09636218100786209, 0.3762243688106537, -0.017936386168003082, -0.3311102092266083, -0.16913974285125732, 0.18135082721710205, -0.10410430282354355, -0.09950296580791473, 0.04941413924098015, -0.12655378878116608, -0.12270479649305344, 0.11782515048980713, 0.06478914618492126, 0.1494137942790985, -0.10984556376934052, -0.007593680638819933, 0.48703017830848694, -0.014754327945411205, 0.041862852871418, 0.07482387870550156, -0.10165302455425262, 0.08373263478279114, 0.025660909712314606, 0.16175954043865204, -0.10495046526193619, 0.1110692098736763, 0.09409251809120178, -0.30712953209877014, 0.18332615494728088, -0.18614518642425537, -0.24212169647216797, -0.15431605279445648, -0.2382322996854782, -0.09938158839941025, 0.0010716230608522892, 0.07077760994434357, 0.11904467642307281, -0.2349424660205841, 0.11132679879665375, -0.05781114473938942, -0.03748622536659241, 0.37253230810165405, -0.3498363196849823, 0.1274624913930893, 0.02739257924258709, 0.2546176016330719, -0.3999696671962738, -0.09407471865415573, -0.2399682104587555, 0.06579538434743881, -0.06630343198776245, 0.18392325937747955, -0.4192025661468506, -0.16574440896511078, 0.022547755390405655, -0.18353956937789917, -0.05892453342676163, 0.20870457589626312, 0.3001585304737091, 0.08377863466739655, 0.03935225307941437, 0.2891148030757904, -0.32124799489974976, 0.027419183403253555, 0.3842688500881195, 0.035932715982198715, 0.2576827108860016, -0.19715048372745514, 0.17347268760204315, 0.2555094361305237, -0.07124332338571548, 0.1448286771774292, -0.5685814619064331, -0.02100357413291931, -0.07630878686904907, 0.1479983925819397, -0.011162127368152142, -0.2873938977718353, 0.1720069944858551, 0.10546151548624039, 0.38364261388778687, 0.30447375774383545, 0.42835941910743713, 0.30091196298599243, -0.0581398606300354, -0.23848681151866913, 0.21379569172859192, -0.13270969688892365, -0.11440388858318329, -0.1667642593383789, 0.30643853545188904, 0.18057265877723694, 0.14899934828281403, 0.23618318140506744, -0.22780823707580566, -0.11274146288633347, 0.24994559586048126, -0.06800854206085205, 0.05402764305472374, 0.19832220673561096, -0.2147664874792099, -0.24320706725120544, -0.047012459486722946, -0.0046896664425730705, -0.12259913980960846, 0.31750375032424927, -0.255705326795578, -0.0054937913082540035, -0.054640334099531174, 0.19135433435440063, 0.3290369510650635, 0.04861737787723541, 0.3297331929206848, -0.1634783148765564, -0.12819670140743256, -0.04499918222427368, -0.11852208524942398, 0.1675630509853363, 0.5832505822181702, 0.24535702168941498, 0.029449831694364548, -0.036703694611787796, -0.30671632289886475, 0.007997971028089523, 0.27434292435646057, 0.02801998145878315, 0.25297772884368896, -0.2860071361064911, -0.08431120961904526, -0.07995018362998962, -0.14318710565567017, -0.2550258934497833, -0.0004638314712792635, -0.14552929997444153, -0.11924543231725693, -0.1278754621744156, -0.17349447309970856, -0.11722960323095322, -0.030075553804636, -0.24612437188625336, -0.27864277362823486, 0.013871442526578903, 0.10010379552841187, 0.1381431221961975, 0.22066086530685425, 0.07771109789609909, 0.19070790708065033, -0.06824842095375061, 0.039360325783491135, -0.03094138205051422, 0.12716369330883026, 0.027154628187417984, -0.31728851795196533, -0.1137210950255394, 0.05044897273182869, -0.19106346368789673, -0.14879056811332703, -0.17393508553504944 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Hi @dorost1234, I think I can help you a little. I’ve processed some Wikipedia datasets (Spanish inclusive) using the HF/datasets library during recent research. @lhoestq Could you help me to upload these preprocessed datasets to Huggingface's repositories? To be more precise, I've built datasets from the following languages using the 20201201 dumps: Spanish, Portuguese, Russian, French, Japanese, Chinese, and Turkish. Process these datasets have high costs that most of the community can't afford. I think these preprocessed datasets I have could be helpful for someone without access to high-resource machines to process Wikipedia's dumps like @dorost1234
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
96
not being able to get wikipedia es language
[ 0.10881943255662918, -0.5029884576797485, -0.32401329278945923, 0.09868849068880081, 0.15049472451210022, 0.07892651855945587, -0.09729307144880295, 0.13324935734272003, 0.39711639285087585, 0.11324799060821533, 0.14967356622219086, -0.0095089515671134, 0.15753202140331268, -0.09283965080976486, -0.1556767225265503, -0.23074379563331604, -0.016140123829245567, 0.06180465593934059, 0.14073964953422546, -0.2811497747898102, 0.0998506173491478, 0.203340083360672, -0.19405707716941833, 0.08995462208986282, 0.17653751373291016, 0.04483632743358612, 0.00922111701220274, -0.09053664654493332, -0.23739171028137207, 0.07073434442281723, 0.12004009634256363, 0.034196168184280396, 0.02310013212263584, 0.07075900584459305, -0.0000971286281128414, -0.05991936847567558, 0.4827338457107544, 0.03761739283800125, -0.3058558702468872, -0.1272994428873062, -0.157138392329216, 0.016147205606102943, -0.09020407497882843, -0.29634055495262146, -0.21427886188030243, -0.13623066246509552, 0.4141675531864166, -0.29445552825927734, 0.04187241941690445, 0.10665543377399445, 0.35857781767845154, -0.37257686257362366, 0.188603475689888, -0.14910434186458588, 0.40712621808052063, 0.10858926177024841, 0.03148671239614487, 0.033782314509153366, 0.011968094855546951, -0.050943389534950256, 0.0930895060300827, 0.27269837260246277, 0.14174771308898926, -0.19877547025680542, -0.01979283057153225, 0.025820568203926086, 0.2617724537849426, -0.16062778234481812, 0.5867554545402527, 0.11188459396362305, 0.5242472290992737, 0.2787313759326935, -0.045776329934597015, 0.33025553822517395, -0.062142305076122284, 0.24231772124767303, 0.3024950921535492, -0.05723067745566368, -0.16969802975654602, -0.029958663508296013, 0.44956305623054504, -0.378718763589859, -0.18086175620555878, 0.32811105251312256, -0.20959699153900146, 0.5398256182670593, 0.03449493274092674, -0.09204479306936264, 0.09682250022888184, -0.11148988455533981, -0.07581260800361633, 0.12564004957675934, -0.11331190168857574, 0.29293376207351685, 0.37531790137290955, 0.2636285722255707, 0.5531390905380249, 0.2767774760723114, -0.06809549033641815, -0.30613240599632263, -0.4284600019454956, 0.32761186361312866, 0.013309669680893421, 0.005339075345546007, 0.11588256061077118, -0.11490735411643982, 0.15387192368507385, -0.08923842757940292, 0.2269182801246643, 0.15389810502529144, -0.04493379220366478, 0.007425246294587851, -0.13698095083236694, -0.13617761433124542, -0.35719069838523865, 0.0846409723162651, 0.03414284437894821, -0.2736678719520569, 0.23803114891052246, 0.1459924876689911, -0.22057992219924927, -0.14311498403549194, -0.11181492358446121, 0.03929801657795906, 0.061412930488586426, 0.21457187831401825, 0.1268194317817688, -0.1286521703004837, -0.3258804678916931, -0.03254136070609093, -0.2600383758544922, 0.2758822739124298, -0.3784317076206207, -0.10631287842988968, -0.04862762987613678, 0.1599983423948288, 0.222872793674469, -0.11796887218952179, -0.15077096223831177, -0.07298063486814499, -0.18837536871433258, 0.011734496802091599, -0.10919453203678131, -0.11483035236597061, -0.005808770656585693, 0.3050002455711365, 0.03592133894562721, -0.5967687964439392, -0.05571938306093216, -0.10731056332588196, -0.04629289358854294, 0.06408987194299698, -0.32495585083961487, 0.3435462415218353, 0.27475062012672424, -0.07554575055837631, 0.23908822238445282, 0.3001483380794525, 0.08525894582271576, -0.2641817331314087, 0.08024358004331589, 0.2655028998851776, -0.0011557514080777764, 0.14315025508403778, 0.15268947184085846, -0.03754639998078346, -0.25987932085990906, 0.1356513351202011, -0.19418394565582275, 0.0275595560669899, 0.3935093581676483, 0.15683631598949432, -0.1401658058166504, 0.13792049884796143, -0.09617430716753006, 0.2496129721403122, 0.017928512766957283, 0.010273091495037079, -0.1062232106924057, 0.05321067199110985, 0.10912811011075974, -0.24788233637809753, 0.19018128514289856, -0.07381050288677216, 0.015218231827020645, 0.13244886696338654, 0.08267267793416977, 0.1403079330921173, 0.05773300305008888, 0.0004165317222941667, -0.2396778017282486, -0.2145780771970749, 0.1307203620672226, -0.10095441341400146, 0.44638293981552124, -0.10867788642644882, 0.17409324645996094, 0.5914689302444458, 0.237018883228302, -0.031675759702920914, -0.17629112303256989, 0.24596719443798065, 0.038333553820848465, 0.18207068741321564, 0.09234151244163513, 0.06431172043085098, 0.05479344353079796, -0.059287164360284805, 0.06892524659633636, 0.4851302206516266, -0.11376240104436874, -0.1291101723909378, -0.31315016746520996, -0.04255491495132446, -0.014663278125226498, -0.03234660252928734, 0.376689076423645, 0.23870018124580383, -0.020349863916635513, 0.2298617660999298, 0.2615770995616913, -0.6190347671508789, -0.09034572541713715, -0.14102379977703094, -0.3266516625881195, 0.0490923710167408, -0.3904855251312256, 0.062488339841365814, -0.19579052925109863, 0.07306469231843948, -0.052964940667152405, 0.039012935012578964, -0.24247030913829803, -0.23093055188655853, 0.2264098972082138, 0.06551895290613174, 0.18249551951885223, -0.08979656547307968, 0.14996090531349182, -0.5619229078292847, -0.22331035137176514, 0.36305105686187744, 0.22831127047538757, 0.09538992494344711, -0.06985104084014893, -0.2004852443933487, 0.2760849893093109, 0.019079402089118958, 0.08224110305309296, 0.049875929951667786, 0.2706109881401062, 0.04765528067946434, 0.03034088760614395, -0.345840722322464, 0.17095716297626495, 0.23141473531723022, -0.21036186814308167, -0.021651295945048332, -0.06720320135354996, 0.07395920902490616, 0.6060271263122559, 0.19895915687084198, 0.2640330493450165, -0.19511398673057556, 0.16534964740276337, -0.28581514954566956, 0.21682217717170715, -0.38999536633491516, -0.29042625427246094, 0.09755779802799225, 0.27093079686164856, -0.08409012109041214, -0.16981084644794464, -0.16264663636684418, 0.2775511145591736, -0.052774619311094284, 0.19929839670658112, -0.10660621523857117, -0.10876577347517014, -0.1700945347547531, -0.1947689950466156, -0.09671400487422943, -0.22968518733978271, 0.2377864271402359, 0.010837078094482422, 0.15239769220352173, -0.45365235209465027, -0.2717386782169342, 0.07314461469650269, -0.006594562903046608, -0.2252030372619629, -0.3029784560203552, 0.1749579757452011, -0.045547641813755035, 0.04265512898564339, 0.10841011255979538, 0.1736607849597931, -0.07519702613353729, 0.0586371123790741, 0.21236169338226318, -0.19295211136341095, -0.7053992748260498, -0.505607008934021, 0.21815888583660126, 0.19779814779758453, -0.14555293321609497, 0.0734509602189064, -0.26205092668533325, -0.29418331384658813, -0.15188737213611603, -0.46057936549186707, 0.18050195276737213, -0.11579269170761108, -0.059002310037612915, 0.01695888489484787, 0.42737507820129395, -0.24079212546348572, -0.14556223154067993, 0.1047564372420311, -0.21520107984542847, -0.1753108948469162, -0.010809202678501606, -0.12297941744327545, -0.11099332571029663, -0.21815019845962524, -0.49741479754447937, 0.15540927648544312, 0.022937772795557976, -0.13143987953662872, -0.033849190920591354, 0.0287015363574028, 0.12918061017990112, 0.07757600396871567, 0.1506866216659546, 0.26260676980018616, 0.176879420876503, -0.3338986337184906, 0.09776654839515686, 0.15599963068962097, -0.12502136826515198, -0.29580453038215637, 0.12726202607154846, -0.06329165399074554, 0.2780211865901947, -0.13228650391101837, -0.08897235244512558, 0.04571080580353737, 0.0717599168419838, 0.16449403762817383, 0.006353011354804039, 0.20066900551319122, 0.19232764840126038, -0.009153764694929123, -0.30919384956359863, 0.0410718098282814, -0.013881374150514603, 0.006485207937657833, -0.20721526443958282, 0.3533966541290283, -0.13943453133106232, 0.27705320715904236, 0.12156113237142563, 0.5772039890289307, -0.24255111813545227, 0.22338655591011047, 0.19646821916103363, 0.05001642927527428, 0.00930762104690075, -0.17688870429992676, -0.1522536277770996, 0.07350412011146545, 0.17876893281936646, -0.1334741711616516, 0.39848968386650085, 0.002959589706733823, -0.5453799366950989, -0.23391762375831604, 0.11393752694129944, -0.15620750188827515, -0.18944045901298523, -0.05426506698131561, 0.09761681407690048, 0.054974742233753204, -0.003932870924472809, 0.324339359998703, 0.09707490354776382, -0.2844160199165344, 0.1274695098400116, 0.1603957861661911, -0.2235165238380432, 0.01580316573381424, -0.2835346460342407, -0.2909454107284546, -0.009208743460476398, 0.1848396509885788, 0.041616927832365036, 0.08931456506252289, -0.18929599225521088, 0.004650877323001623, 0.4041396677494049, -0.11583410948514938, 0.09384266287088394, -0.2665364444255829, 0.10659313201904297, -0.0007258215337060392, 0.17057271301746368, -0.21993879973888397, -0.012172622606158257, -0.2855195701122284, 0.31456252932548523, 0.4303750991821289, -0.15116918087005615, -0.3844887316226959, 0.15260553359985352, 0.10028503090143204, -0.11779631674289703, -0.0893026739358902, 0.07417313754558563, -0.2022150456905365, -0.3440389931201935, -0.2627861201763153, 0.11985184997320175, 0.052100230008363724, 0.18779270350933075, 0.1865653544664383, 0.16985957324504852, -0.04063485562801361, 0.07932605594396591, -0.08237564563751221, 0.2110321968793869, -0.10611547529697418, 0.2398410141468048, -0.38015028834342957, -0.03585371747612953, 0.23082871735095978, -0.35072436928749084, 0.06391609460115433, 0.14361460506916046, -0.08977383375167847, 0.14934153854846954, -0.2014250010251999, 0.02564292773604393, 0.14683954417705536, -0.01030973345041275, -0.07080747187137604, 0.5967321991920471, -0.17731882631778717, 0.1225176677107811, -0.03933531790971756, 0.22150015830993652, 0.17533136904239655, -0.09726829081773758, -0.20099784433841705, 0.02921253629028797, -0.04709944128990173, -0.026255324482917786, -0.004236267413944006, 0.3036666214466095, -0.2517155408859253, 0.19874805212020874, 0.04197419062256813, 0.946838915348053, 0.1551632136106491, -0.035202886909246445, -0.08250332623720169, 0.26008284091949463, 0.2958843410015106, -0.054930344223976135, 0.1507401466369629, -0.158185675740242, 0.14318031072616577, -0.13988801836967468, 0.37174907326698303, 0.024082589894533157, 0.07871367037296295, -0.32600685954093933, 0.2762637436389923, -0.11297974735498428, 0.04455345496535301, 0.31013044714927673, 0.27897629141807556, 0.20143331587314606, -0.07003697007894516, -0.07457026094198227, 0.2536313831806183, 0.0005429434822872281, 0.27777302265167236, -0.03572288900613785, 0.10947590321302414, -0.07119610160589218, -0.24540257453918457, -0.4768733084201813, 0.17239002883434296, 0.11515088379383087, 0.5791788697242737, -0.14672324061393738, -0.17634479701519012, -0.03126077353954315, -0.08529093116521835, 0.16841022670269012, 0.4944300353527069, -0.22014975547790527, 0.1638886034488678, 0.11107320338487625, -0.5725210905075073, -0.045284856110811234, 0.14985710382461548, 0.14595761895179749, -0.15260663628578186, -0.4091801345348358, 0.26869210600852966, -0.032855674624443054, 0.0564681813120842, -0.39640098810195923, -0.1484406739473343, -0.19090810418128967, 0.3741452693939209, -0.1792023926973343, 0.21449697017669678, -0.1647873967885971, -0.04863767325878143, 0.2909184396266937, -0.23507170379161835, 0.22710703313350677, -0.2278091460466385, 0.4590778648853302, -0.04452033340930939, -0.0945010557770729, 0.2595265805721283, 0.17447274923324585, 0.026407884433865547, 0.3324267864227295, 0.23924978077411652, -0.39196470379829407, -0.3116985261440277, -0.2662361264228821, -0.41471701860427856, -0.09793233871459961, -0.32033729553222656, -0.0406462587416172, 0.016268005594611168, -0.16706250607967377, -0.20455200970172882, 0.15319325029850006, -0.0788331851363182, -0.025846725329756737, -0.09847265481948853, 0.23052677512168884, 0.11011362820863724, -0.1514817476272583, -0.11564479023218155, 0.008016765117645264, -0.30642247200012207, 0.31578904390335083, 0.06373551487922668, -0.4106082022190094, -0.1858324557542801, -0.21906550228595734, 0.01852951943874359, 0.2886301279067993, -0.11006750911474228, -0.18067339062690735, -0.051325444132089615, 0.46605220437049866, -0.1365680992603302, 0.03898850455880165, -0.3871106505393982, -0.05175943300127983, -0.007331968750804663, 0.019194625318050385, -0.0402105376124382, 0.14938922226428986, -0.28629618883132935, -0.018367506563663483, 0.04887484386563301, -0.10841688513755798, -0.10774524509906769, 0.14462503790855408, 0.1669515073299408, -0.0898909866809845, 0.30204764008522034, -0.05775240808725357, 0.04740488901734352, -0.01736435666680336, 0.3234427869319916, 0.033266693353652954, 0.12577277421951294, 0.44562065601348877, -0.2005935162305832, -0.317117840051651, 0.032035283744335175, -0.11393815279006958, 0.27402347326278687, -0.026622507721185684, 0.00033258373150601983, 0.10690446943044662, 0.2002287358045578, -0.09459391981363297, -0.04877454787492752, 0.04526331648230553, -0.009689857251942158, 0.23020584881305695, 0.32978299260139465, -0.2536877989768982, 0.13359028100967407, 0.22212952375411987, -0.11781501770019531, 0.1502881944179535, 0.11728613823652267, -0.02528439834713936, -0.09636218100786209, 0.3762243688106537, -0.017936386168003082, -0.3311102092266083, -0.16913974285125732, 0.18135082721710205, -0.10410430282354355, -0.09950296580791473, 0.04941413924098015, -0.12655378878116608, -0.12270479649305344, 0.11782515048980713, 0.06478914618492126, 0.1494137942790985, -0.10984556376934052, -0.007593680638819933, 0.48703017830848694, -0.014754327945411205, 0.041862852871418, 0.07482387870550156, -0.10165302455425262, 0.08373263478279114, 0.025660909712314606, 0.16175954043865204, -0.10495046526193619, 0.1110692098736763, 0.09409251809120178, -0.30712953209877014, 0.18332615494728088, -0.18614518642425537, -0.24212169647216797, -0.15431605279445648, -0.2382322996854782, -0.09938158839941025, 0.0010716230608522892, 0.07077760994434357, 0.11904467642307281, -0.2349424660205841, 0.11132679879665375, -0.05781114473938942, -0.03748622536659241, 0.37253230810165405, -0.3498363196849823, 0.1274624913930893, 0.02739257924258709, 0.2546176016330719, -0.3999696671962738, -0.09407471865415573, -0.2399682104587555, 0.06579538434743881, -0.06630343198776245, 0.18392325937747955, -0.4192025661468506, -0.16574440896511078, 0.022547755390405655, -0.18353956937789917, -0.05892453342676163, 0.20870457589626312, 0.3001585304737091, 0.08377863466739655, 0.03935225307941437, 0.2891148030757904, -0.32124799489974976, 0.027419183403253555, 0.3842688500881195, 0.035932715982198715, 0.2576827108860016, -0.19715048372745514, 0.17347268760204315, 0.2555094361305237, -0.07124332338571548, 0.1448286771774292, -0.5685814619064331, -0.02100357413291931, -0.07630878686904907, 0.1479983925819397, -0.011162127368152142, -0.2873938977718353, 0.1720069944858551, 0.10546151548624039, 0.38364261388778687, 0.30447375774383545, 0.42835941910743713, 0.30091196298599243, -0.0581398606300354, -0.23848681151866913, 0.21379569172859192, -0.13270969688892365, -0.11440388858318329, -0.1667642593383789, 0.30643853545188904, 0.18057265877723694, 0.14899934828281403, 0.23618318140506744, -0.22780823707580566, -0.11274146288633347, 0.24994559586048126, -0.06800854206085205, 0.05402764305472374, 0.19832220673561096, -0.2147664874792099, -0.24320706725120544, -0.047012459486722946, -0.0046896664425730705, -0.12259913980960846, 0.31750375032424927, -0.255705326795578, -0.0054937913082540035, -0.054640334099531174, 0.19135433435440063, 0.3290369510650635, 0.04861737787723541, 0.3297331929206848, -0.1634783148765564, -0.12819670140743256, -0.04499918222427368, -0.11852208524942398, 0.1675630509853363, 0.5832505822181702, 0.24535702168941498, 0.029449831694364548, -0.036703694611787796, -0.30671632289886475, 0.007997971028089523, 0.27434292435646057, 0.02801998145878315, 0.25297772884368896, -0.2860071361064911, -0.08431120961904526, -0.07995018362998962, -0.14318710565567017, -0.2550258934497833, -0.0004638314712792635, -0.14552929997444153, -0.11924543231725693, -0.1278754621744156, -0.17349447309970856, -0.11722960323095322, -0.030075553804636, -0.24612437188625336, -0.27864277362823486, 0.013871442526578903, 0.10010379552841187, 0.1381431221961975, 0.22066086530685425, 0.07771109789609909, 0.19070790708065033, -0.06824842095375061, 0.039360325783491135, -0.03094138205051422, 0.12716369330883026, 0.027154628187417984, -0.31728851795196533, -0.1137210950255394, 0.05044897273182869, -0.19106346368789673, -0.14879056811332703, -0.17393508553504944 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Thank you so much @jonatasgrosman , I greatly appreciate your help with them. Yes, I unfortunately does not have access to a good resource and need it for my research. I greatly appreciate @lhoestq your help with uploading the processed datasets in huggingface datasets. This would be really helpful for some users like me with not access to high-memory GPU resources. thank you both so much again. On Sat, Mar 6, 2021 at 12:55 AM Jonatas Grosman <notifications@github.com> wrote: > Hi @dorost1234 <https://github.com/dorost1234>, I think I can help you a > little. I’ve processed some Wikipedia datasets (Spanish inclusive) using > the HF/datasets library during recent research. > > @lhoestq <https://github.com/lhoestq> Could you help me to upload these > preprocessed datasets to Huggingface's repositories? To be more precise, > I've built datasets from the following languages using the 20201201 dumps: > Spanish, Portuguese, Russian, French, Japanese, Chinese, and Turkish. > Process these datasets have high costs that most of the community can't > afford. I think these preprocessed datasets I have could be helpful for > someone without access to high-resource machines to process Wikipedia's > dumps like @dorost1234 <https://github.com/dorost1234> > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/1994#issuecomment-791798195>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMWMK5GFJFU3ACCJFUDTCFVNZANCNFSM4YUZIF4A> > . >
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
222
not being able to get wikipedia es language
[ 0.10881943255662918, -0.5029884576797485, -0.32401329278945923, 0.09868849068880081, 0.15049472451210022, 0.07892651855945587, -0.09729307144880295, 0.13324935734272003, 0.39711639285087585, 0.11324799060821533, 0.14967356622219086, -0.0095089515671134, 0.15753202140331268, -0.09283965080976486, -0.1556767225265503, -0.23074379563331604, -0.016140123829245567, 0.06180465593934059, 0.14073964953422546, -0.2811497747898102, 0.0998506173491478, 0.203340083360672, -0.19405707716941833, 0.08995462208986282, 0.17653751373291016, 0.04483632743358612, 0.00922111701220274, -0.09053664654493332, -0.23739171028137207, 0.07073434442281723, 0.12004009634256363, 0.034196168184280396, 0.02310013212263584, 0.07075900584459305, -0.0000971286281128414, -0.05991936847567558, 0.4827338457107544, 0.03761739283800125, -0.3058558702468872, -0.1272994428873062, -0.157138392329216, 0.016147205606102943, -0.09020407497882843, -0.29634055495262146, -0.21427886188030243, -0.13623066246509552, 0.4141675531864166, -0.29445552825927734, 0.04187241941690445, 0.10665543377399445, 0.35857781767845154, -0.37257686257362366, 0.188603475689888, -0.14910434186458588, 0.40712621808052063, 0.10858926177024841, 0.03148671239614487, 0.033782314509153366, 0.011968094855546951, -0.050943389534950256, 0.0930895060300827, 0.27269837260246277, 0.14174771308898926, -0.19877547025680542, -0.01979283057153225, 0.025820568203926086, 0.2617724537849426, -0.16062778234481812, 0.5867554545402527, 0.11188459396362305, 0.5242472290992737, 0.2787313759326935, -0.045776329934597015, 0.33025553822517395, -0.062142305076122284, 0.24231772124767303, 0.3024950921535492, -0.05723067745566368, -0.16969802975654602, -0.029958663508296013, 0.44956305623054504, -0.378718763589859, -0.18086175620555878, 0.32811105251312256, -0.20959699153900146, 0.5398256182670593, 0.03449493274092674, -0.09204479306936264, 0.09682250022888184, -0.11148988455533981, -0.07581260800361633, 0.12564004957675934, -0.11331190168857574, 0.29293376207351685, 0.37531790137290955, 0.2636285722255707, 0.5531390905380249, 0.2767774760723114, -0.06809549033641815, -0.30613240599632263, -0.4284600019454956, 0.32761186361312866, 0.013309669680893421, 0.005339075345546007, 0.11588256061077118, -0.11490735411643982, 0.15387192368507385, -0.08923842757940292, 0.2269182801246643, 0.15389810502529144, -0.04493379220366478, 0.007425246294587851, -0.13698095083236694, -0.13617761433124542, -0.35719069838523865, 0.0846409723162651, 0.03414284437894821, -0.2736678719520569, 0.23803114891052246, 0.1459924876689911, -0.22057992219924927, -0.14311498403549194, -0.11181492358446121, 0.03929801657795906, 0.061412930488586426, 0.21457187831401825, 0.1268194317817688, -0.1286521703004837, -0.3258804678916931, -0.03254136070609093, -0.2600383758544922, 0.2758822739124298, -0.3784317076206207, -0.10631287842988968, -0.04862762987613678, 0.1599983423948288, 0.222872793674469, -0.11796887218952179, -0.15077096223831177, -0.07298063486814499, -0.18837536871433258, 0.011734496802091599, -0.10919453203678131, -0.11483035236597061, -0.005808770656585693, 0.3050002455711365, 0.03592133894562721, -0.5967687964439392, -0.05571938306093216, -0.10731056332588196, -0.04629289358854294, 0.06408987194299698, -0.32495585083961487, 0.3435462415218353, 0.27475062012672424, -0.07554575055837631, 0.23908822238445282, 0.3001483380794525, 0.08525894582271576, -0.2641817331314087, 0.08024358004331589, 0.2655028998851776, -0.0011557514080777764, 0.14315025508403778, 0.15268947184085846, -0.03754639998078346, -0.25987932085990906, 0.1356513351202011, -0.19418394565582275, 0.0275595560669899, 0.3935093581676483, 0.15683631598949432, -0.1401658058166504, 0.13792049884796143, -0.09617430716753006, 0.2496129721403122, 0.017928512766957283, 0.010273091495037079, -0.1062232106924057, 0.05321067199110985, 0.10912811011075974, -0.24788233637809753, 0.19018128514289856, -0.07381050288677216, 0.015218231827020645, 0.13244886696338654, 0.08267267793416977, 0.1403079330921173, 0.05773300305008888, 0.0004165317222941667, -0.2396778017282486, -0.2145780771970749, 0.1307203620672226, -0.10095441341400146, 0.44638293981552124, -0.10867788642644882, 0.17409324645996094, 0.5914689302444458, 0.237018883228302, -0.031675759702920914, -0.17629112303256989, 0.24596719443798065, 0.038333553820848465, 0.18207068741321564, 0.09234151244163513, 0.06431172043085098, 0.05479344353079796, -0.059287164360284805, 0.06892524659633636, 0.4851302206516266, -0.11376240104436874, -0.1291101723909378, -0.31315016746520996, -0.04255491495132446, -0.014663278125226498, -0.03234660252928734, 0.376689076423645, 0.23870018124580383, -0.020349863916635513, 0.2298617660999298, 0.2615770995616913, -0.6190347671508789, -0.09034572541713715, -0.14102379977703094, -0.3266516625881195, 0.0490923710167408, -0.3904855251312256, 0.062488339841365814, -0.19579052925109863, 0.07306469231843948, -0.052964940667152405, 0.039012935012578964, -0.24247030913829803, -0.23093055188655853, 0.2264098972082138, 0.06551895290613174, 0.18249551951885223, -0.08979656547307968, 0.14996090531349182, -0.5619229078292847, -0.22331035137176514, 0.36305105686187744, 0.22831127047538757, 0.09538992494344711, -0.06985104084014893, -0.2004852443933487, 0.2760849893093109, 0.019079402089118958, 0.08224110305309296, 0.049875929951667786, 0.2706109881401062, 0.04765528067946434, 0.03034088760614395, -0.345840722322464, 0.17095716297626495, 0.23141473531723022, -0.21036186814308167, -0.021651295945048332, -0.06720320135354996, 0.07395920902490616, 0.6060271263122559, 0.19895915687084198, 0.2640330493450165, -0.19511398673057556, 0.16534964740276337, -0.28581514954566956, 0.21682217717170715, -0.38999536633491516, -0.29042625427246094, 0.09755779802799225, 0.27093079686164856, -0.08409012109041214, -0.16981084644794464, -0.16264663636684418, 0.2775511145591736, -0.052774619311094284, 0.19929839670658112, -0.10660621523857117, -0.10876577347517014, -0.1700945347547531, -0.1947689950466156, -0.09671400487422943, -0.22968518733978271, 0.2377864271402359, 0.010837078094482422, 0.15239769220352173, -0.45365235209465027, -0.2717386782169342, 0.07314461469650269, -0.006594562903046608, -0.2252030372619629, -0.3029784560203552, 0.1749579757452011, -0.045547641813755035, 0.04265512898564339, 0.10841011255979538, 0.1736607849597931, -0.07519702613353729, 0.0586371123790741, 0.21236169338226318, -0.19295211136341095, -0.7053992748260498, -0.505607008934021, 0.21815888583660126, 0.19779814779758453, -0.14555293321609497, 0.0734509602189064, -0.26205092668533325, -0.29418331384658813, -0.15188737213611603, -0.46057936549186707, 0.18050195276737213, -0.11579269170761108, -0.059002310037612915, 0.01695888489484787, 0.42737507820129395, -0.24079212546348572, -0.14556223154067993, 0.1047564372420311, -0.21520107984542847, -0.1753108948469162, -0.010809202678501606, -0.12297941744327545, -0.11099332571029663, -0.21815019845962524, -0.49741479754447937, 0.15540927648544312, 0.022937772795557976, -0.13143987953662872, -0.033849190920591354, 0.0287015363574028, 0.12918061017990112, 0.07757600396871567, 0.1506866216659546, 0.26260676980018616, 0.176879420876503, -0.3338986337184906, 0.09776654839515686, 0.15599963068962097, -0.12502136826515198, -0.29580453038215637, 0.12726202607154846, -0.06329165399074554, 0.2780211865901947, -0.13228650391101837, -0.08897235244512558, 0.04571080580353737, 0.0717599168419838, 0.16449403762817383, 0.006353011354804039, 0.20066900551319122, 0.19232764840126038, -0.009153764694929123, -0.30919384956359863, 0.0410718098282814, -0.013881374150514603, 0.006485207937657833, -0.20721526443958282, 0.3533966541290283, -0.13943453133106232, 0.27705320715904236, 0.12156113237142563, 0.5772039890289307, -0.24255111813545227, 0.22338655591011047, 0.19646821916103363, 0.05001642927527428, 0.00930762104690075, -0.17688870429992676, -0.1522536277770996, 0.07350412011146545, 0.17876893281936646, -0.1334741711616516, 0.39848968386650085, 0.002959589706733823, -0.5453799366950989, -0.23391762375831604, 0.11393752694129944, -0.15620750188827515, -0.18944045901298523, -0.05426506698131561, 0.09761681407690048, 0.054974742233753204, -0.003932870924472809, 0.324339359998703, 0.09707490354776382, -0.2844160199165344, 0.1274695098400116, 0.1603957861661911, -0.2235165238380432, 0.01580316573381424, -0.2835346460342407, -0.2909454107284546, -0.009208743460476398, 0.1848396509885788, 0.041616927832365036, 0.08931456506252289, -0.18929599225521088, 0.004650877323001623, 0.4041396677494049, -0.11583410948514938, 0.09384266287088394, -0.2665364444255829, 0.10659313201904297, -0.0007258215337060392, 0.17057271301746368, -0.21993879973888397, -0.012172622606158257, -0.2855195701122284, 0.31456252932548523, 0.4303750991821289, -0.15116918087005615, -0.3844887316226959, 0.15260553359985352, 0.10028503090143204, -0.11779631674289703, -0.0893026739358902, 0.07417313754558563, -0.2022150456905365, -0.3440389931201935, -0.2627861201763153, 0.11985184997320175, 0.052100230008363724, 0.18779270350933075, 0.1865653544664383, 0.16985957324504852, -0.04063485562801361, 0.07932605594396591, -0.08237564563751221, 0.2110321968793869, -0.10611547529697418, 0.2398410141468048, -0.38015028834342957, -0.03585371747612953, 0.23082871735095978, -0.35072436928749084, 0.06391609460115433, 0.14361460506916046, -0.08977383375167847, 0.14934153854846954, -0.2014250010251999, 0.02564292773604393, 0.14683954417705536, -0.01030973345041275, -0.07080747187137604, 0.5967321991920471, -0.17731882631778717, 0.1225176677107811, -0.03933531790971756, 0.22150015830993652, 0.17533136904239655, -0.09726829081773758, -0.20099784433841705, 0.02921253629028797, -0.04709944128990173, -0.026255324482917786, -0.004236267413944006, 0.3036666214466095, -0.2517155408859253, 0.19874805212020874, 0.04197419062256813, 0.946838915348053, 0.1551632136106491, -0.035202886909246445, -0.08250332623720169, 0.26008284091949463, 0.2958843410015106, -0.054930344223976135, 0.1507401466369629, -0.158185675740242, 0.14318031072616577, -0.13988801836967468, 0.37174907326698303, 0.024082589894533157, 0.07871367037296295, -0.32600685954093933, 0.2762637436389923, -0.11297974735498428, 0.04455345496535301, 0.31013044714927673, 0.27897629141807556, 0.20143331587314606, -0.07003697007894516, -0.07457026094198227, 0.2536313831806183, 0.0005429434822872281, 0.27777302265167236, -0.03572288900613785, 0.10947590321302414, -0.07119610160589218, -0.24540257453918457, -0.4768733084201813, 0.17239002883434296, 0.11515088379383087, 0.5791788697242737, -0.14672324061393738, -0.17634479701519012, -0.03126077353954315, -0.08529093116521835, 0.16841022670269012, 0.4944300353527069, -0.22014975547790527, 0.1638886034488678, 0.11107320338487625, -0.5725210905075073, -0.045284856110811234, 0.14985710382461548, 0.14595761895179749, -0.15260663628578186, -0.4091801345348358, 0.26869210600852966, -0.032855674624443054, 0.0564681813120842, -0.39640098810195923, -0.1484406739473343, -0.19090810418128967, 0.3741452693939209, -0.1792023926973343, 0.21449697017669678, -0.1647873967885971, -0.04863767325878143, 0.2909184396266937, -0.23507170379161835, 0.22710703313350677, -0.2278091460466385, 0.4590778648853302, -0.04452033340930939, -0.0945010557770729, 0.2595265805721283, 0.17447274923324585, 0.026407884433865547, 0.3324267864227295, 0.23924978077411652, -0.39196470379829407, -0.3116985261440277, -0.2662361264228821, -0.41471701860427856, -0.09793233871459961, -0.32033729553222656, -0.0406462587416172, 0.016268005594611168, -0.16706250607967377, -0.20455200970172882, 0.15319325029850006, -0.0788331851363182, -0.025846725329756737, -0.09847265481948853, 0.23052677512168884, 0.11011362820863724, -0.1514817476272583, -0.11564479023218155, 0.008016765117645264, -0.30642247200012207, 0.31578904390335083, 0.06373551487922668, -0.4106082022190094, -0.1858324557542801, -0.21906550228595734, 0.01852951943874359, 0.2886301279067993, -0.11006750911474228, -0.18067339062690735, -0.051325444132089615, 0.46605220437049866, -0.1365680992603302, 0.03898850455880165, -0.3871106505393982, -0.05175943300127983, -0.007331968750804663, 0.019194625318050385, -0.0402105376124382, 0.14938922226428986, -0.28629618883132935, -0.018367506563663483, 0.04887484386563301, -0.10841688513755798, -0.10774524509906769, 0.14462503790855408, 0.1669515073299408, -0.0898909866809845, 0.30204764008522034, -0.05775240808725357, 0.04740488901734352, -0.01736435666680336, 0.3234427869319916, 0.033266693353652954, 0.12577277421951294, 0.44562065601348877, -0.2005935162305832, -0.317117840051651, 0.032035283744335175, -0.11393815279006958, 0.27402347326278687, -0.026622507721185684, 0.00033258373150601983, 0.10690446943044662, 0.2002287358045578, -0.09459391981363297, -0.04877454787492752, 0.04526331648230553, -0.009689857251942158, 0.23020584881305695, 0.32978299260139465, -0.2536877989768982, 0.13359028100967407, 0.22212952375411987, -0.11781501770019531, 0.1502881944179535, 0.11728613823652267, -0.02528439834713936, -0.09636218100786209, 0.3762243688106537, -0.017936386168003082, -0.3311102092266083, -0.16913974285125732, 0.18135082721710205, -0.10410430282354355, -0.09950296580791473, 0.04941413924098015, -0.12655378878116608, -0.12270479649305344, 0.11782515048980713, 0.06478914618492126, 0.1494137942790985, -0.10984556376934052, -0.007593680638819933, 0.48703017830848694, -0.014754327945411205, 0.041862852871418, 0.07482387870550156, -0.10165302455425262, 0.08373263478279114, 0.025660909712314606, 0.16175954043865204, -0.10495046526193619, 0.1110692098736763, 0.09409251809120178, -0.30712953209877014, 0.18332615494728088, -0.18614518642425537, -0.24212169647216797, -0.15431605279445648, -0.2382322996854782, -0.09938158839941025, 0.0010716230608522892, 0.07077760994434357, 0.11904467642307281, -0.2349424660205841, 0.11132679879665375, -0.05781114473938942, -0.03748622536659241, 0.37253230810165405, -0.3498363196849823, 0.1274624913930893, 0.02739257924258709, 0.2546176016330719, -0.3999696671962738, -0.09407471865415573, -0.2399682104587555, 0.06579538434743881, -0.06630343198776245, 0.18392325937747955, -0.4192025661468506, -0.16574440896511078, 0.022547755390405655, -0.18353956937789917, -0.05892453342676163, 0.20870457589626312, 0.3001585304737091, 0.08377863466739655, 0.03935225307941437, 0.2891148030757904, -0.32124799489974976, 0.027419183403253555, 0.3842688500881195, 0.035932715982198715, 0.2576827108860016, -0.19715048372745514, 0.17347268760204315, 0.2555094361305237, -0.07124332338571548, 0.1448286771774292, -0.5685814619064331, -0.02100357413291931, -0.07630878686904907, 0.1479983925819397, -0.011162127368152142, -0.2873938977718353, 0.1720069944858551, 0.10546151548624039, 0.38364261388778687, 0.30447375774383545, 0.42835941910743713, 0.30091196298599243, -0.0581398606300354, -0.23848681151866913, 0.21379569172859192, -0.13270969688892365, -0.11440388858318329, -0.1667642593383789, 0.30643853545188904, 0.18057265877723694, 0.14899934828281403, 0.23618318140506744, -0.22780823707580566, -0.11274146288633347, 0.24994559586048126, -0.06800854206085205, 0.05402764305472374, 0.19832220673561096, -0.2147664874792099, -0.24320706725120544, -0.047012459486722946, -0.0046896664425730705, -0.12259913980960846, 0.31750375032424927, -0.255705326795578, -0.0054937913082540035, -0.054640334099531174, 0.19135433435440063, 0.3290369510650635, 0.04861737787723541, 0.3297331929206848, -0.1634783148765564, -0.12819670140743256, -0.04499918222427368, -0.11852208524942398, 0.1675630509853363, 0.5832505822181702, 0.24535702168941498, 0.029449831694364548, -0.036703694611787796, -0.30671632289886475, 0.007997971028089523, 0.27434292435646057, 0.02801998145878315, 0.25297772884368896, -0.2860071361064911, -0.08431120961904526, -0.07995018362998962, -0.14318710565567017, -0.2550258934497833, -0.0004638314712792635, -0.14552929997444153, -0.11924543231725693, -0.1278754621744156, -0.17349447309970856, -0.11722960323095322, -0.030075553804636, -0.24612437188625336, -0.27864277362823486, 0.013871442526578903, 0.10010379552841187, 0.1381431221961975, 0.22066086530685425, 0.07771109789609909, 0.19070790708065033, -0.06824842095375061, 0.039360325783491135, -0.03094138205051422, 0.12716369330883026, 0.027154628187417984, -0.31728851795196533, -0.1137210950255394, 0.05044897273182869, -0.19106346368789673, -0.14879056811332703, -0.17393508553504944 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Hi @dorost1234, so sorry, but looking at my files here, I figure out that I've preprocessed files using the HF/datasets for all the languages previously listed by me (Portuguese, Russian, French, Japanese, Chinese, and Turkish) except the Spanish (on my tests I've used the [wikicorpus](https://www.cs.upc.edu/~nlp/wikicorpus/) instead). Only with the Spanish Wikipedia's dump, I had the same `KeyError: '000nbsp'` problem already reported here https://github.com/huggingface/datasets/issues/577 So nowadays, even with access to a high resource machine, you couldn't be able to get Wikipedia's Spanish data using the HF/datasets :(
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
86
not being able to get wikipedia es language
[ 0.10881943255662918, -0.5029884576797485, -0.32401329278945923, 0.09868849068880081, 0.15049472451210022, 0.07892651855945587, -0.09729307144880295, 0.13324935734272003, 0.39711639285087585, 0.11324799060821533, 0.14967356622219086, -0.0095089515671134, 0.15753202140331268, -0.09283965080976486, -0.1556767225265503, -0.23074379563331604, -0.016140123829245567, 0.06180465593934059, 0.14073964953422546, -0.2811497747898102, 0.0998506173491478, 0.203340083360672, -0.19405707716941833, 0.08995462208986282, 0.17653751373291016, 0.04483632743358612, 0.00922111701220274, -0.09053664654493332, -0.23739171028137207, 0.07073434442281723, 0.12004009634256363, 0.034196168184280396, 0.02310013212263584, 0.07075900584459305, -0.0000971286281128414, -0.05991936847567558, 0.4827338457107544, 0.03761739283800125, -0.3058558702468872, -0.1272994428873062, -0.157138392329216, 0.016147205606102943, -0.09020407497882843, -0.29634055495262146, -0.21427886188030243, -0.13623066246509552, 0.4141675531864166, -0.29445552825927734, 0.04187241941690445, 0.10665543377399445, 0.35857781767845154, -0.37257686257362366, 0.188603475689888, -0.14910434186458588, 0.40712621808052063, 0.10858926177024841, 0.03148671239614487, 0.033782314509153366, 0.011968094855546951, -0.050943389534950256, 0.0930895060300827, 0.27269837260246277, 0.14174771308898926, -0.19877547025680542, -0.01979283057153225, 0.025820568203926086, 0.2617724537849426, -0.16062778234481812, 0.5867554545402527, 0.11188459396362305, 0.5242472290992737, 0.2787313759326935, -0.045776329934597015, 0.33025553822517395, -0.062142305076122284, 0.24231772124767303, 0.3024950921535492, -0.05723067745566368, -0.16969802975654602, -0.029958663508296013, 0.44956305623054504, -0.378718763589859, -0.18086175620555878, 0.32811105251312256, -0.20959699153900146, 0.5398256182670593, 0.03449493274092674, -0.09204479306936264, 0.09682250022888184, -0.11148988455533981, -0.07581260800361633, 0.12564004957675934, -0.11331190168857574, 0.29293376207351685, 0.37531790137290955, 0.2636285722255707, 0.5531390905380249, 0.2767774760723114, -0.06809549033641815, -0.30613240599632263, -0.4284600019454956, 0.32761186361312866, 0.013309669680893421, 0.005339075345546007, 0.11588256061077118, -0.11490735411643982, 0.15387192368507385, -0.08923842757940292, 0.2269182801246643, 0.15389810502529144, -0.04493379220366478, 0.007425246294587851, -0.13698095083236694, -0.13617761433124542, -0.35719069838523865, 0.0846409723162651, 0.03414284437894821, -0.2736678719520569, 0.23803114891052246, 0.1459924876689911, -0.22057992219924927, -0.14311498403549194, -0.11181492358446121, 0.03929801657795906, 0.061412930488586426, 0.21457187831401825, 0.1268194317817688, -0.1286521703004837, -0.3258804678916931, -0.03254136070609093, -0.2600383758544922, 0.2758822739124298, -0.3784317076206207, -0.10631287842988968, -0.04862762987613678, 0.1599983423948288, 0.222872793674469, -0.11796887218952179, -0.15077096223831177, -0.07298063486814499, -0.18837536871433258, 0.011734496802091599, -0.10919453203678131, -0.11483035236597061, -0.005808770656585693, 0.3050002455711365, 0.03592133894562721, -0.5967687964439392, -0.05571938306093216, -0.10731056332588196, -0.04629289358854294, 0.06408987194299698, -0.32495585083961487, 0.3435462415218353, 0.27475062012672424, -0.07554575055837631, 0.23908822238445282, 0.3001483380794525, 0.08525894582271576, -0.2641817331314087, 0.08024358004331589, 0.2655028998851776, -0.0011557514080777764, 0.14315025508403778, 0.15268947184085846, -0.03754639998078346, -0.25987932085990906, 0.1356513351202011, -0.19418394565582275, 0.0275595560669899, 0.3935093581676483, 0.15683631598949432, -0.1401658058166504, 0.13792049884796143, -0.09617430716753006, 0.2496129721403122, 0.017928512766957283, 0.010273091495037079, -0.1062232106924057, 0.05321067199110985, 0.10912811011075974, -0.24788233637809753, 0.19018128514289856, -0.07381050288677216, 0.015218231827020645, 0.13244886696338654, 0.08267267793416977, 0.1403079330921173, 0.05773300305008888, 0.0004165317222941667, -0.2396778017282486, -0.2145780771970749, 0.1307203620672226, -0.10095441341400146, 0.44638293981552124, -0.10867788642644882, 0.17409324645996094, 0.5914689302444458, 0.237018883228302, -0.031675759702920914, -0.17629112303256989, 0.24596719443798065, 0.038333553820848465, 0.18207068741321564, 0.09234151244163513, 0.06431172043085098, 0.05479344353079796, -0.059287164360284805, 0.06892524659633636, 0.4851302206516266, -0.11376240104436874, -0.1291101723909378, -0.31315016746520996, -0.04255491495132446, -0.014663278125226498, -0.03234660252928734, 0.376689076423645, 0.23870018124580383, -0.020349863916635513, 0.2298617660999298, 0.2615770995616913, -0.6190347671508789, -0.09034572541713715, -0.14102379977703094, -0.3266516625881195, 0.0490923710167408, -0.3904855251312256, 0.062488339841365814, -0.19579052925109863, 0.07306469231843948, -0.052964940667152405, 0.039012935012578964, -0.24247030913829803, -0.23093055188655853, 0.2264098972082138, 0.06551895290613174, 0.18249551951885223, -0.08979656547307968, 0.14996090531349182, -0.5619229078292847, -0.22331035137176514, 0.36305105686187744, 0.22831127047538757, 0.09538992494344711, -0.06985104084014893, -0.2004852443933487, 0.2760849893093109, 0.019079402089118958, 0.08224110305309296, 0.049875929951667786, 0.2706109881401062, 0.04765528067946434, 0.03034088760614395, -0.345840722322464, 0.17095716297626495, 0.23141473531723022, -0.21036186814308167, -0.021651295945048332, -0.06720320135354996, 0.07395920902490616, 0.6060271263122559, 0.19895915687084198, 0.2640330493450165, -0.19511398673057556, 0.16534964740276337, -0.28581514954566956, 0.21682217717170715, -0.38999536633491516, -0.29042625427246094, 0.09755779802799225, 0.27093079686164856, -0.08409012109041214, -0.16981084644794464, -0.16264663636684418, 0.2775511145591736, -0.052774619311094284, 0.19929839670658112, -0.10660621523857117, -0.10876577347517014, -0.1700945347547531, -0.1947689950466156, -0.09671400487422943, -0.22968518733978271, 0.2377864271402359, 0.010837078094482422, 0.15239769220352173, -0.45365235209465027, -0.2717386782169342, 0.07314461469650269, -0.006594562903046608, -0.2252030372619629, -0.3029784560203552, 0.1749579757452011, -0.045547641813755035, 0.04265512898564339, 0.10841011255979538, 0.1736607849597931, -0.07519702613353729, 0.0586371123790741, 0.21236169338226318, -0.19295211136341095, -0.7053992748260498, -0.505607008934021, 0.21815888583660126, 0.19779814779758453, -0.14555293321609497, 0.0734509602189064, -0.26205092668533325, -0.29418331384658813, -0.15188737213611603, -0.46057936549186707, 0.18050195276737213, -0.11579269170761108, -0.059002310037612915, 0.01695888489484787, 0.42737507820129395, -0.24079212546348572, -0.14556223154067993, 0.1047564372420311, -0.21520107984542847, -0.1753108948469162, -0.010809202678501606, -0.12297941744327545, -0.11099332571029663, -0.21815019845962524, -0.49741479754447937, 0.15540927648544312, 0.022937772795557976, -0.13143987953662872, -0.033849190920591354, 0.0287015363574028, 0.12918061017990112, 0.07757600396871567, 0.1506866216659546, 0.26260676980018616, 0.176879420876503, -0.3338986337184906, 0.09776654839515686, 0.15599963068962097, -0.12502136826515198, -0.29580453038215637, 0.12726202607154846, -0.06329165399074554, 0.2780211865901947, -0.13228650391101837, -0.08897235244512558, 0.04571080580353737, 0.0717599168419838, 0.16449403762817383, 0.006353011354804039, 0.20066900551319122, 0.19232764840126038, -0.009153764694929123, -0.30919384956359863, 0.0410718098282814, -0.013881374150514603, 0.006485207937657833, -0.20721526443958282, 0.3533966541290283, -0.13943453133106232, 0.27705320715904236, 0.12156113237142563, 0.5772039890289307, -0.24255111813545227, 0.22338655591011047, 0.19646821916103363, 0.05001642927527428, 0.00930762104690075, -0.17688870429992676, -0.1522536277770996, 0.07350412011146545, 0.17876893281936646, -0.1334741711616516, 0.39848968386650085, 0.002959589706733823, -0.5453799366950989, -0.23391762375831604, 0.11393752694129944, -0.15620750188827515, -0.18944045901298523, -0.05426506698131561, 0.09761681407690048, 0.054974742233753204, -0.003932870924472809, 0.324339359998703, 0.09707490354776382, -0.2844160199165344, 0.1274695098400116, 0.1603957861661911, -0.2235165238380432, 0.01580316573381424, -0.2835346460342407, -0.2909454107284546, -0.009208743460476398, 0.1848396509885788, 0.041616927832365036, 0.08931456506252289, -0.18929599225521088, 0.004650877323001623, 0.4041396677494049, -0.11583410948514938, 0.09384266287088394, -0.2665364444255829, 0.10659313201904297, -0.0007258215337060392, 0.17057271301746368, -0.21993879973888397, -0.012172622606158257, -0.2855195701122284, 0.31456252932548523, 0.4303750991821289, -0.15116918087005615, -0.3844887316226959, 0.15260553359985352, 0.10028503090143204, -0.11779631674289703, -0.0893026739358902, 0.07417313754558563, -0.2022150456905365, -0.3440389931201935, -0.2627861201763153, 0.11985184997320175, 0.052100230008363724, 0.18779270350933075, 0.1865653544664383, 0.16985957324504852, -0.04063485562801361, 0.07932605594396591, -0.08237564563751221, 0.2110321968793869, -0.10611547529697418, 0.2398410141468048, -0.38015028834342957, -0.03585371747612953, 0.23082871735095978, -0.35072436928749084, 0.06391609460115433, 0.14361460506916046, -0.08977383375167847, 0.14934153854846954, -0.2014250010251999, 0.02564292773604393, 0.14683954417705536, -0.01030973345041275, -0.07080747187137604, 0.5967321991920471, -0.17731882631778717, 0.1225176677107811, -0.03933531790971756, 0.22150015830993652, 0.17533136904239655, -0.09726829081773758, -0.20099784433841705, 0.02921253629028797, -0.04709944128990173, -0.026255324482917786, -0.004236267413944006, 0.3036666214466095, -0.2517155408859253, 0.19874805212020874, 0.04197419062256813, 0.946838915348053, 0.1551632136106491, -0.035202886909246445, -0.08250332623720169, 0.26008284091949463, 0.2958843410015106, -0.054930344223976135, 0.1507401466369629, -0.158185675740242, 0.14318031072616577, -0.13988801836967468, 0.37174907326698303, 0.024082589894533157, 0.07871367037296295, -0.32600685954093933, 0.2762637436389923, -0.11297974735498428, 0.04455345496535301, 0.31013044714927673, 0.27897629141807556, 0.20143331587314606, -0.07003697007894516, -0.07457026094198227, 0.2536313831806183, 0.0005429434822872281, 0.27777302265167236, -0.03572288900613785, 0.10947590321302414, -0.07119610160589218, -0.24540257453918457, -0.4768733084201813, 0.17239002883434296, 0.11515088379383087, 0.5791788697242737, -0.14672324061393738, -0.17634479701519012, -0.03126077353954315, -0.08529093116521835, 0.16841022670269012, 0.4944300353527069, -0.22014975547790527, 0.1638886034488678, 0.11107320338487625, -0.5725210905075073, -0.045284856110811234, 0.14985710382461548, 0.14595761895179749, -0.15260663628578186, -0.4091801345348358, 0.26869210600852966, -0.032855674624443054, 0.0564681813120842, -0.39640098810195923, -0.1484406739473343, -0.19090810418128967, 0.3741452693939209, -0.1792023926973343, 0.21449697017669678, -0.1647873967885971, -0.04863767325878143, 0.2909184396266937, -0.23507170379161835, 0.22710703313350677, -0.2278091460466385, 0.4590778648853302, -0.04452033340930939, -0.0945010557770729, 0.2595265805721283, 0.17447274923324585, 0.026407884433865547, 0.3324267864227295, 0.23924978077411652, -0.39196470379829407, -0.3116985261440277, -0.2662361264228821, -0.41471701860427856, -0.09793233871459961, -0.32033729553222656, -0.0406462587416172, 0.016268005594611168, -0.16706250607967377, -0.20455200970172882, 0.15319325029850006, -0.0788331851363182, -0.025846725329756737, -0.09847265481948853, 0.23052677512168884, 0.11011362820863724, -0.1514817476272583, -0.11564479023218155, 0.008016765117645264, -0.30642247200012207, 0.31578904390335083, 0.06373551487922668, -0.4106082022190094, -0.1858324557542801, -0.21906550228595734, 0.01852951943874359, 0.2886301279067993, -0.11006750911474228, -0.18067339062690735, -0.051325444132089615, 0.46605220437049866, -0.1365680992603302, 0.03898850455880165, -0.3871106505393982, -0.05175943300127983, -0.007331968750804663, 0.019194625318050385, -0.0402105376124382, 0.14938922226428986, -0.28629618883132935, -0.018367506563663483, 0.04887484386563301, -0.10841688513755798, -0.10774524509906769, 0.14462503790855408, 0.1669515073299408, -0.0898909866809845, 0.30204764008522034, -0.05775240808725357, 0.04740488901734352, -0.01736435666680336, 0.3234427869319916, 0.033266693353652954, 0.12577277421951294, 0.44562065601348877, -0.2005935162305832, -0.317117840051651, 0.032035283744335175, -0.11393815279006958, 0.27402347326278687, -0.026622507721185684, 0.00033258373150601983, 0.10690446943044662, 0.2002287358045578, -0.09459391981363297, -0.04877454787492752, 0.04526331648230553, -0.009689857251942158, 0.23020584881305695, 0.32978299260139465, -0.2536877989768982, 0.13359028100967407, 0.22212952375411987, -0.11781501770019531, 0.1502881944179535, 0.11728613823652267, -0.02528439834713936, -0.09636218100786209, 0.3762243688106537, -0.017936386168003082, -0.3311102092266083, -0.16913974285125732, 0.18135082721710205, -0.10410430282354355, -0.09950296580791473, 0.04941413924098015, -0.12655378878116608, -0.12270479649305344, 0.11782515048980713, 0.06478914618492126, 0.1494137942790985, -0.10984556376934052, -0.007593680638819933, 0.48703017830848694, -0.014754327945411205, 0.041862852871418, 0.07482387870550156, -0.10165302455425262, 0.08373263478279114, 0.025660909712314606, 0.16175954043865204, -0.10495046526193619, 0.1110692098736763, 0.09409251809120178, -0.30712953209877014, 0.18332615494728088, -0.18614518642425537, -0.24212169647216797, -0.15431605279445648, -0.2382322996854782, -0.09938158839941025, 0.0010716230608522892, 0.07077760994434357, 0.11904467642307281, -0.2349424660205841, 0.11132679879665375, -0.05781114473938942, -0.03748622536659241, 0.37253230810165405, -0.3498363196849823, 0.1274624913930893, 0.02739257924258709, 0.2546176016330719, -0.3999696671962738, -0.09407471865415573, -0.2399682104587555, 0.06579538434743881, -0.06630343198776245, 0.18392325937747955, -0.4192025661468506, -0.16574440896511078, 0.022547755390405655, -0.18353956937789917, -0.05892453342676163, 0.20870457589626312, 0.3001585304737091, 0.08377863466739655, 0.03935225307941437, 0.2891148030757904, -0.32124799489974976, 0.027419183403253555, 0.3842688500881195, 0.035932715982198715, 0.2576827108860016, -0.19715048372745514, 0.17347268760204315, 0.2555094361305237, -0.07124332338571548, 0.1448286771774292, -0.5685814619064331, -0.02100357413291931, -0.07630878686904907, 0.1479983925819397, -0.011162127368152142, -0.2873938977718353, 0.1720069944858551, 0.10546151548624039, 0.38364261388778687, 0.30447375774383545, 0.42835941910743713, 0.30091196298599243, -0.0581398606300354, -0.23848681151866913, 0.21379569172859192, -0.13270969688892365, -0.11440388858318329, -0.1667642593383789, 0.30643853545188904, 0.18057265877723694, 0.14899934828281403, 0.23618318140506744, -0.22780823707580566, -0.11274146288633347, 0.24994559586048126, -0.06800854206085205, 0.05402764305472374, 0.19832220673561096, -0.2147664874792099, -0.24320706725120544, -0.047012459486722946, -0.0046896664425730705, -0.12259913980960846, 0.31750375032424927, -0.255705326795578, -0.0054937913082540035, -0.054640334099531174, 0.19135433435440063, 0.3290369510650635, 0.04861737787723541, 0.3297331929206848, -0.1634783148765564, -0.12819670140743256, -0.04499918222427368, -0.11852208524942398, 0.1675630509853363, 0.5832505822181702, 0.24535702168941498, 0.029449831694364548, -0.036703694611787796, -0.30671632289886475, 0.007997971028089523, 0.27434292435646057, 0.02801998145878315, 0.25297772884368896, -0.2860071361064911, -0.08431120961904526, -0.07995018362998962, -0.14318710565567017, -0.2550258934497833, -0.0004638314712792635, -0.14552929997444153, -0.11924543231725693, -0.1278754621744156, -0.17349447309970856, -0.11722960323095322, -0.030075553804636, -0.24612437188625336, -0.27864277362823486, 0.013871442526578903, 0.10010379552841187, 0.1381431221961975, 0.22066086530685425, 0.07771109789609909, 0.19070790708065033, -0.06824842095375061, 0.039360325783491135, -0.03094138205051422, 0.12716369330883026, 0.027154628187417984, -0.31728851795196533, -0.1137210950255394, 0.05044897273182869, -0.19106346368789673, -0.14879056811332703, -0.17393508553504944 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Thanks a lot for the information and help. This would be great to have these datasets. @lhoestq <https://github.com/lhoestq> Do you know a way I could get smaller amount of these data like 1 GBtype of each language to deal with computatioanl requirements? thanks On Sat, Mar 6, 2021 at 5:36 PM Jonatas Grosman <notifications@github.com> wrote: > Hi @dorost1234 <https://github.com/dorost1234>, so sorry, but looking at > my files here, I figure out that I've preprocessed files using the > HF/datasets for all the languages previously listed by me (Portuguese, > Russian, French, Japanese, Chinese, and Turkish) except the Spanish (on my > tests I've used the wikicorpus <https://www.cs.upc.edu/~nlp/wikicorpus/> > instead). > > Only with the Spanish Wikipedia's dump, I had the same KeyError: '000nbsp' > problem already reported here #577 > <https://github.com/huggingface/datasets/issues/577> > > So nowadays, even with access to a high resource machine, you couldn't be > able to get Wikipedia's Spanish data using the HF/datasets :( > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/1994#issuecomment-791985546>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMWMO7WOHWLOROPD6Q3TCJKXPANCNFSM4YUZIF4A> > . >
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
189
not being able to get wikipedia es language
[ 0.10881943255662918, -0.5029884576797485, -0.32401329278945923, 0.09868849068880081, 0.15049472451210022, 0.07892651855945587, -0.09729307144880295, 0.13324935734272003, 0.39711639285087585, 0.11324799060821533, 0.14967356622219086, -0.0095089515671134, 0.15753202140331268, -0.09283965080976486, -0.1556767225265503, -0.23074379563331604, -0.016140123829245567, 0.06180465593934059, 0.14073964953422546, -0.2811497747898102, 0.0998506173491478, 0.203340083360672, -0.19405707716941833, 0.08995462208986282, 0.17653751373291016, 0.04483632743358612, 0.00922111701220274, -0.09053664654493332, -0.23739171028137207, 0.07073434442281723, 0.12004009634256363, 0.034196168184280396, 0.02310013212263584, 0.07075900584459305, -0.0000971286281128414, -0.05991936847567558, 0.4827338457107544, 0.03761739283800125, -0.3058558702468872, -0.1272994428873062, -0.157138392329216, 0.016147205606102943, -0.09020407497882843, -0.29634055495262146, -0.21427886188030243, -0.13623066246509552, 0.4141675531864166, -0.29445552825927734, 0.04187241941690445, 0.10665543377399445, 0.35857781767845154, -0.37257686257362366, 0.188603475689888, -0.14910434186458588, 0.40712621808052063, 0.10858926177024841, 0.03148671239614487, 0.033782314509153366, 0.011968094855546951, -0.050943389534950256, 0.0930895060300827, 0.27269837260246277, 0.14174771308898926, -0.19877547025680542, -0.01979283057153225, 0.025820568203926086, 0.2617724537849426, -0.16062778234481812, 0.5867554545402527, 0.11188459396362305, 0.5242472290992737, 0.2787313759326935, -0.045776329934597015, 0.33025553822517395, -0.062142305076122284, 0.24231772124767303, 0.3024950921535492, -0.05723067745566368, -0.16969802975654602, -0.029958663508296013, 0.44956305623054504, -0.378718763589859, -0.18086175620555878, 0.32811105251312256, -0.20959699153900146, 0.5398256182670593, 0.03449493274092674, -0.09204479306936264, 0.09682250022888184, -0.11148988455533981, -0.07581260800361633, 0.12564004957675934, -0.11331190168857574, 0.29293376207351685, 0.37531790137290955, 0.2636285722255707, 0.5531390905380249, 0.2767774760723114, -0.06809549033641815, -0.30613240599632263, -0.4284600019454956, 0.32761186361312866, 0.013309669680893421, 0.005339075345546007, 0.11588256061077118, -0.11490735411643982, 0.15387192368507385, -0.08923842757940292, 0.2269182801246643, 0.15389810502529144, -0.04493379220366478, 0.007425246294587851, -0.13698095083236694, -0.13617761433124542, -0.35719069838523865, 0.0846409723162651, 0.03414284437894821, -0.2736678719520569, 0.23803114891052246, 0.1459924876689911, -0.22057992219924927, -0.14311498403549194, -0.11181492358446121, 0.03929801657795906, 0.061412930488586426, 0.21457187831401825, 0.1268194317817688, -0.1286521703004837, -0.3258804678916931, -0.03254136070609093, -0.2600383758544922, 0.2758822739124298, -0.3784317076206207, -0.10631287842988968, -0.04862762987613678, 0.1599983423948288, 0.222872793674469, -0.11796887218952179, -0.15077096223831177, -0.07298063486814499, -0.18837536871433258, 0.011734496802091599, -0.10919453203678131, -0.11483035236597061, -0.005808770656585693, 0.3050002455711365, 0.03592133894562721, -0.5967687964439392, -0.05571938306093216, -0.10731056332588196, -0.04629289358854294, 0.06408987194299698, -0.32495585083961487, 0.3435462415218353, 0.27475062012672424, -0.07554575055837631, 0.23908822238445282, 0.3001483380794525, 0.08525894582271576, -0.2641817331314087, 0.08024358004331589, 0.2655028998851776, -0.0011557514080777764, 0.14315025508403778, 0.15268947184085846, -0.03754639998078346, -0.25987932085990906, 0.1356513351202011, -0.19418394565582275, 0.0275595560669899, 0.3935093581676483, 0.15683631598949432, -0.1401658058166504, 0.13792049884796143, -0.09617430716753006, 0.2496129721403122, 0.017928512766957283, 0.010273091495037079, -0.1062232106924057, 0.05321067199110985, 0.10912811011075974, -0.24788233637809753, 0.19018128514289856, -0.07381050288677216, 0.015218231827020645, 0.13244886696338654, 0.08267267793416977, 0.1403079330921173, 0.05773300305008888, 0.0004165317222941667, -0.2396778017282486, -0.2145780771970749, 0.1307203620672226, -0.10095441341400146, 0.44638293981552124, -0.10867788642644882, 0.17409324645996094, 0.5914689302444458, 0.237018883228302, -0.031675759702920914, -0.17629112303256989, 0.24596719443798065, 0.038333553820848465, 0.18207068741321564, 0.09234151244163513, 0.06431172043085098, 0.05479344353079796, -0.059287164360284805, 0.06892524659633636, 0.4851302206516266, -0.11376240104436874, -0.1291101723909378, -0.31315016746520996, -0.04255491495132446, -0.014663278125226498, -0.03234660252928734, 0.376689076423645, 0.23870018124580383, -0.020349863916635513, 0.2298617660999298, 0.2615770995616913, -0.6190347671508789, -0.09034572541713715, -0.14102379977703094, -0.3266516625881195, 0.0490923710167408, -0.3904855251312256, 0.062488339841365814, -0.19579052925109863, 0.07306469231843948, -0.052964940667152405, 0.039012935012578964, -0.24247030913829803, -0.23093055188655853, 0.2264098972082138, 0.06551895290613174, 0.18249551951885223, -0.08979656547307968, 0.14996090531349182, -0.5619229078292847, -0.22331035137176514, 0.36305105686187744, 0.22831127047538757, 0.09538992494344711, -0.06985104084014893, -0.2004852443933487, 0.2760849893093109, 0.019079402089118958, 0.08224110305309296, 0.049875929951667786, 0.2706109881401062, 0.04765528067946434, 0.03034088760614395, -0.345840722322464, 0.17095716297626495, 0.23141473531723022, -0.21036186814308167, -0.021651295945048332, -0.06720320135354996, 0.07395920902490616, 0.6060271263122559, 0.19895915687084198, 0.2640330493450165, -0.19511398673057556, 0.16534964740276337, -0.28581514954566956, 0.21682217717170715, -0.38999536633491516, -0.29042625427246094, 0.09755779802799225, 0.27093079686164856, -0.08409012109041214, -0.16981084644794464, -0.16264663636684418, 0.2775511145591736, -0.052774619311094284, 0.19929839670658112, -0.10660621523857117, -0.10876577347517014, -0.1700945347547531, -0.1947689950466156, -0.09671400487422943, -0.22968518733978271, 0.2377864271402359, 0.010837078094482422, 0.15239769220352173, -0.45365235209465027, -0.2717386782169342, 0.07314461469650269, -0.006594562903046608, -0.2252030372619629, -0.3029784560203552, 0.1749579757452011, -0.045547641813755035, 0.04265512898564339, 0.10841011255979538, 0.1736607849597931, -0.07519702613353729, 0.0586371123790741, 0.21236169338226318, -0.19295211136341095, -0.7053992748260498, -0.505607008934021, 0.21815888583660126, 0.19779814779758453, -0.14555293321609497, 0.0734509602189064, -0.26205092668533325, -0.29418331384658813, -0.15188737213611603, -0.46057936549186707, 0.18050195276737213, -0.11579269170761108, -0.059002310037612915, 0.01695888489484787, 0.42737507820129395, -0.24079212546348572, -0.14556223154067993, 0.1047564372420311, -0.21520107984542847, -0.1753108948469162, -0.010809202678501606, -0.12297941744327545, -0.11099332571029663, -0.21815019845962524, -0.49741479754447937, 0.15540927648544312, 0.022937772795557976, -0.13143987953662872, -0.033849190920591354, 0.0287015363574028, 0.12918061017990112, 0.07757600396871567, 0.1506866216659546, 0.26260676980018616, 0.176879420876503, -0.3338986337184906, 0.09776654839515686, 0.15599963068962097, -0.12502136826515198, -0.29580453038215637, 0.12726202607154846, -0.06329165399074554, 0.2780211865901947, -0.13228650391101837, -0.08897235244512558, 0.04571080580353737, 0.0717599168419838, 0.16449403762817383, 0.006353011354804039, 0.20066900551319122, 0.19232764840126038, -0.009153764694929123, -0.30919384956359863, 0.0410718098282814, -0.013881374150514603, 0.006485207937657833, -0.20721526443958282, 0.3533966541290283, -0.13943453133106232, 0.27705320715904236, 0.12156113237142563, 0.5772039890289307, -0.24255111813545227, 0.22338655591011047, 0.19646821916103363, 0.05001642927527428, 0.00930762104690075, -0.17688870429992676, -0.1522536277770996, 0.07350412011146545, 0.17876893281936646, -0.1334741711616516, 0.39848968386650085, 0.002959589706733823, -0.5453799366950989, -0.23391762375831604, 0.11393752694129944, -0.15620750188827515, -0.18944045901298523, -0.05426506698131561, 0.09761681407690048, 0.054974742233753204, -0.003932870924472809, 0.324339359998703, 0.09707490354776382, -0.2844160199165344, 0.1274695098400116, 0.1603957861661911, -0.2235165238380432, 0.01580316573381424, -0.2835346460342407, -0.2909454107284546, -0.009208743460476398, 0.1848396509885788, 0.041616927832365036, 0.08931456506252289, -0.18929599225521088, 0.004650877323001623, 0.4041396677494049, -0.11583410948514938, 0.09384266287088394, -0.2665364444255829, 0.10659313201904297, -0.0007258215337060392, 0.17057271301746368, -0.21993879973888397, -0.012172622606158257, -0.2855195701122284, 0.31456252932548523, 0.4303750991821289, -0.15116918087005615, -0.3844887316226959, 0.15260553359985352, 0.10028503090143204, -0.11779631674289703, -0.0893026739358902, 0.07417313754558563, -0.2022150456905365, -0.3440389931201935, -0.2627861201763153, 0.11985184997320175, 0.052100230008363724, 0.18779270350933075, 0.1865653544664383, 0.16985957324504852, -0.04063485562801361, 0.07932605594396591, -0.08237564563751221, 0.2110321968793869, -0.10611547529697418, 0.2398410141468048, -0.38015028834342957, -0.03585371747612953, 0.23082871735095978, -0.35072436928749084, 0.06391609460115433, 0.14361460506916046, -0.08977383375167847, 0.14934153854846954, -0.2014250010251999, 0.02564292773604393, 0.14683954417705536, -0.01030973345041275, -0.07080747187137604, 0.5967321991920471, -0.17731882631778717, 0.1225176677107811, -0.03933531790971756, 0.22150015830993652, 0.17533136904239655, -0.09726829081773758, -0.20099784433841705, 0.02921253629028797, -0.04709944128990173, -0.026255324482917786, -0.004236267413944006, 0.3036666214466095, -0.2517155408859253, 0.19874805212020874, 0.04197419062256813, 0.946838915348053, 0.1551632136106491, -0.035202886909246445, -0.08250332623720169, 0.26008284091949463, 0.2958843410015106, -0.054930344223976135, 0.1507401466369629, -0.158185675740242, 0.14318031072616577, -0.13988801836967468, 0.37174907326698303, 0.024082589894533157, 0.07871367037296295, -0.32600685954093933, 0.2762637436389923, -0.11297974735498428, 0.04455345496535301, 0.31013044714927673, 0.27897629141807556, 0.20143331587314606, -0.07003697007894516, -0.07457026094198227, 0.2536313831806183, 0.0005429434822872281, 0.27777302265167236, -0.03572288900613785, 0.10947590321302414, -0.07119610160589218, -0.24540257453918457, -0.4768733084201813, 0.17239002883434296, 0.11515088379383087, 0.5791788697242737, -0.14672324061393738, -0.17634479701519012, -0.03126077353954315, -0.08529093116521835, 0.16841022670269012, 0.4944300353527069, -0.22014975547790527, 0.1638886034488678, 0.11107320338487625, -0.5725210905075073, -0.045284856110811234, 0.14985710382461548, 0.14595761895179749, -0.15260663628578186, -0.4091801345348358, 0.26869210600852966, -0.032855674624443054, 0.0564681813120842, -0.39640098810195923, -0.1484406739473343, -0.19090810418128967, 0.3741452693939209, -0.1792023926973343, 0.21449697017669678, -0.1647873967885971, -0.04863767325878143, 0.2909184396266937, -0.23507170379161835, 0.22710703313350677, -0.2278091460466385, 0.4590778648853302, -0.04452033340930939, -0.0945010557770729, 0.2595265805721283, 0.17447274923324585, 0.026407884433865547, 0.3324267864227295, 0.23924978077411652, -0.39196470379829407, -0.3116985261440277, -0.2662361264228821, -0.41471701860427856, -0.09793233871459961, -0.32033729553222656, -0.0406462587416172, 0.016268005594611168, -0.16706250607967377, -0.20455200970172882, 0.15319325029850006, -0.0788331851363182, -0.025846725329756737, -0.09847265481948853, 0.23052677512168884, 0.11011362820863724, -0.1514817476272583, -0.11564479023218155, 0.008016765117645264, -0.30642247200012207, 0.31578904390335083, 0.06373551487922668, -0.4106082022190094, -0.1858324557542801, -0.21906550228595734, 0.01852951943874359, 0.2886301279067993, -0.11006750911474228, -0.18067339062690735, -0.051325444132089615, 0.46605220437049866, -0.1365680992603302, 0.03898850455880165, -0.3871106505393982, -0.05175943300127983, -0.007331968750804663, 0.019194625318050385, -0.0402105376124382, 0.14938922226428986, -0.28629618883132935, -0.018367506563663483, 0.04887484386563301, -0.10841688513755798, -0.10774524509906769, 0.14462503790855408, 0.1669515073299408, -0.0898909866809845, 0.30204764008522034, -0.05775240808725357, 0.04740488901734352, -0.01736435666680336, 0.3234427869319916, 0.033266693353652954, 0.12577277421951294, 0.44562065601348877, -0.2005935162305832, -0.317117840051651, 0.032035283744335175, -0.11393815279006958, 0.27402347326278687, -0.026622507721185684, 0.00033258373150601983, 0.10690446943044662, 0.2002287358045578, -0.09459391981363297, -0.04877454787492752, 0.04526331648230553, -0.009689857251942158, 0.23020584881305695, 0.32978299260139465, -0.2536877989768982, 0.13359028100967407, 0.22212952375411987, -0.11781501770019531, 0.1502881944179535, 0.11728613823652267, -0.02528439834713936, -0.09636218100786209, 0.3762243688106537, -0.017936386168003082, -0.3311102092266083, -0.16913974285125732, 0.18135082721710205, -0.10410430282354355, -0.09950296580791473, 0.04941413924098015, -0.12655378878116608, -0.12270479649305344, 0.11782515048980713, 0.06478914618492126, 0.1494137942790985, -0.10984556376934052, -0.007593680638819933, 0.48703017830848694, -0.014754327945411205, 0.041862852871418, 0.07482387870550156, -0.10165302455425262, 0.08373263478279114, 0.025660909712314606, 0.16175954043865204, -0.10495046526193619, 0.1110692098736763, 0.09409251809120178, -0.30712953209877014, 0.18332615494728088, -0.18614518642425537, -0.24212169647216797, -0.15431605279445648, -0.2382322996854782, -0.09938158839941025, 0.0010716230608522892, 0.07077760994434357, 0.11904467642307281, -0.2349424660205841, 0.11132679879665375, -0.05781114473938942, -0.03748622536659241, 0.37253230810165405, -0.3498363196849823, 0.1274624913930893, 0.02739257924258709, 0.2546176016330719, -0.3999696671962738, -0.09407471865415573, -0.2399682104587555, 0.06579538434743881, -0.06630343198776245, 0.18392325937747955, -0.4192025661468506, -0.16574440896511078, 0.022547755390405655, -0.18353956937789917, -0.05892453342676163, 0.20870457589626312, 0.3001585304737091, 0.08377863466739655, 0.03935225307941437, 0.2891148030757904, -0.32124799489974976, 0.027419183403253555, 0.3842688500881195, 0.035932715982198715, 0.2576827108860016, -0.19715048372745514, 0.17347268760204315, 0.2555094361305237, -0.07124332338571548, 0.1448286771774292, -0.5685814619064331, -0.02100357413291931, -0.07630878686904907, 0.1479983925819397, -0.011162127368152142, -0.2873938977718353, 0.1720069944858551, 0.10546151548624039, 0.38364261388778687, 0.30447375774383545, 0.42835941910743713, 0.30091196298599243, -0.0581398606300354, -0.23848681151866913, 0.21379569172859192, -0.13270969688892365, -0.11440388858318329, -0.1667642593383789, 0.30643853545188904, 0.18057265877723694, 0.14899934828281403, 0.23618318140506744, -0.22780823707580566, -0.11274146288633347, 0.24994559586048126, -0.06800854206085205, 0.05402764305472374, 0.19832220673561096, -0.2147664874792099, -0.24320706725120544, -0.047012459486722946, -0.0046896664425730705, -0.12259913980960846, 0.31750375032424927, -0.255705326795578, -0.0054937913082540035, -0.054640334099531174, 0.19135433435440063, 0.3290369510650635, 0.04861737787723541, 0.3297331929206848, -0.1634783148765564, -0.12819670140743256, -0.04499918222427368, -0.11852208524942398, 0.1675630509853363, 0.5832505822181702, 0.24535702168941498, 0.029449831694364548, -0.036703694611787796, -0.30671632289886475, 0.007997971028089523, 0.27434292435646057, 0.02801998145878315, 0.25297772884368896, -0.2860071361064911, -0.08431120961904526, -0.07995018362998962, -0.14318710565567017, -0.2550258934497833, -0.0004638314712792635, -0.14552929997444153, -0.11924543231725693, -0.1278754621744156, -0.17349447309970856, -0.11722960323095322, -0.030075553804636, -0.24612437188625336, -0.27864277362823486, 0.013871442526578903, 0.10010379552841187, 0.1381431221961975, 0.22066086530685425, 0.07771109789609909, 0.19070790708065033, -0.06824842095375061, 0.039360325783491135, -0.03094138205051422, 0.12716369330883026, 0.027154628187417984, -0.31728851795196533, -0.1137210950255394, 0.05044897273182869, -0.19106346368789673, -0.14879056811332703, -0.17393508553504944 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Hi ! As mentioned above the Spanish configuration have parsing issues from `mwparserfromhell`. I haven't tested with the latest `mwparserfromhell` >=0.6 though. Which version of `mwparserfromhell` are you using ? > @lhoestq Could you help me to upload these preprocessed datasets to Huggingface's repositories? To be more precise, I've built datasets from the following languages using the 20201201 dumps: Spanish, Portuguese, Russian, French, Japanese, Chinese, and Turkish. Process these datasets have high costs that most of the community can't afford. I think these preprocessed datasets I have could be helpful for someone without access to high-resource machines to process Wikipedia's dumps like @dorost1234 That would be awesome ! Feel free to ping me on slack so we can put the processed wikipedia files on google storage with the other ones we've already preprocessed. > Do you know a way I could get smaller amount of these data like 1 GBtype of each language to deal with computatioanl requirements? thanks I'd suggest to copy the [wikipedia.py](https://github.com/huggingface/datasets/blob/master/datasets/wikipedia/wikipedia.py) to a new script `custom_wikipedia.py` and modify it to only download and process only a subset of the raw data files. You can for example replace [this line](https://github.com/huggingface/datasets/blob/64e59fc45ca2134218b3e42e83fddddbe840ff74/datasets/wikipedia/wikipedia.py#L446) by: ```python if total_bytes >= (1 << 30): # stop if the total amount of data is >= 1GB break else: xml_urls.append(_base_url(lang) + fname) ``` Then you can load your custom wikipedia dataset with ```python load_dataset("path/to/my/custom_wikipedia.py", f"{date}.{language}") ```
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
231
not being able to get wikipedia es language
[ 0.10881943255662918, -0.5029884576797485, -0.32401329278945923, 0.09868849068880081, 0.15049472451210022, 0.07892651855945587, -0.09729307144880295, 0.13324935734272003, 0.39711639285087585, 0.11324799060821533, 0.14967356622219086, -0.0095089515671134, 0.15753202140331268, -0.09283965080976486, -0.1556767225265503, -0.23074379563331604, -0.016140123829245567, 0.06180465593934059, 0.14073964953422546, -0.2811497747898102, 0.0998506173491478, 0.203340083360672, -0.19405707716941833, 0.08995462208986282, 0.17653751373291016, 0.04483632743358612, 0.00922111701220274, -0.09053664654493332, -0.23739171028137207, 0.07073434442281723, 0.12004009634256363, 0.034196168184280396, 0.02310013212263584, 0.07075900584459305, -0.0000971286281128414, -0.05991936847567558, 0.4827338457107544, 0.03761739283800125, -0.3058558702468872, -0.1272994428873062, -0.157138392329216, 0.016147205606102943, -0.09020407497882843, -0.29634055495262146, -0.21427886188030243, -0.13623066246509552, 0.4141675531864166, -0.29445552825927734, 0.04187241941690445, 0.10665543377399445, 0.35857781767845154, -0.37257686257362366, 0.188603475689888, -0.14910434186458588, 0.40712621808052063, 0.10858926177024841, 0.03148671239614487, 0.033782314509153366, 0.011968094855546951, -0.050943389534950256, 0.0930895060300827, 0.27269837260246277, 0.14174771308898926, -0.19877547025680542, -0.01979283057153225, 0.025820568203926086, 0.2617724537849426, -0.16062778234481812, 0.5867554545402527, 0.11188459396362305, 0.5242472290992737, 0.2787313759326935, -0.045776329934597015, 0.33025553822517395, -0.062142305076122284, 0.24231772124767303, 0.3024950921535492, -0.05723067745566368, -0.16969802975654602, -0.029958663508296013, 0.44956305623054504, -0.378718763589859, -0.18086175620555878, 0.32811105251312256, -0.20959699153900146, 0.5398256182670593, 0.03449493274092674, -0.09204479306936264, 0.09682250022888184, -0.11148988455533981, -0.07581260800361633, 0.12564004957675934, -0.11331190168857574, 0.29293376207351685, 0.37531790137290955, 0.2636285722255707, 0.5531390905380249, 0.2767774760723114, -0.06809549033641815, -0.30613240599632263, -0.4284600019454956, 0.32761186361312866, 0.013309669680893421, 0.005339075345546007, 0.11588256061077118, -0.11490735411643982, 0.15387192368507385, -0.08923842757940292, 0.2269182801246643, 0.15389810502529144, -0.04493379220366478, 0.007425246294587851, -0.13698095083236694, -0.13617761433124542, -0.35719069838523865, 0.0846409723162651, 0.03414284437894821, -0.2736678719520569, 0.23803114891052246, 0.1459924876689911, -0.22057992219924927, -0.14311498403549194, -0.11181492358446121, 0.03929801657795906, 0.061412930488586426, 0.21457187831401825, 0.1268194317817688, -0.1286521703004837, -0.3258804678916931, -0.03254136070609093, -0.2600383758544922, 0.2758822739124298, -0.3784317076206207, -0.10631287842988968, -0.04862762987613678, 0.1599983423948288, 0.222872793674469, -0.11796887218952179, -0.15077096223831177, -0.07298063486814499, -0.18837536871433258, 0.011734496802091599, -0.10919453203678131, -0.11483035236597061, -0.005808770656585693, 0.3050002455711365, 0.03592133894562721, -0.5967687964439392, -0.05571938306093216, -0.10731056332588196, -0.04629289358854294, 0.06408987194299698, -0.32495585083961487, 0.3435462415218353, 0.27475062012672424, -0.07554575055837631, 0.23908822238445282, 0.3001483380794525, 0.08525894582271576, -0.2641817331314087, 0.08024358004331589, 0.2655028998851776, -0.0011557514080777764, 0.14315025508403778, 0.15268947184085846, -0.03754639998078346, -0.25987932085990906, 0.1356513351202011, -0.19418394565582275, 0.0275595560669899, 0.3935093581676483, 0.15683631598949432, -0.1401658058166504, 0.13792049884796143, -0.09617430716753006, 0.2496129721403122, 0.017928512766957283, 0.010273091495037079, -0.1062232106924057, 0.05321067199110985, 0.10912811011075974, -0.24788233637809753, 0.19018128514289856, -0.07381050288677216, 0.015218231827020645, 0.13244886696338654, 0.08267267793416977, 0.1403079330921173, 0.05773300305008888, 0.0004165317222941667, -0.2396778017282486, -0.2145780771970749, 0.1307203620672226, -0.10095441341400146, 0.44638293981552124, -0.10867788642644882, 0.17409324645996094, 0.5914689302444458, 0.237018883228302, -0.031675759702920914, -0.17629112303256989, 0.24596719443798065, 0.038333553820848465, 0.18207068741321564, 0.09234151244163513, 0.06431172043085098, 0.05479344353079796, -0.059287164360284805, 0.06892524659633636, 0.4851302206516266, -0.11376240104436874, -0.1291101723909378, -0.31315016746520996, -0.04255491495132446, -0.014663278125226498, -0.03234660252928734, 0.376689076423645, 0.23870018124580383, -0.020349863916635513, 0.2298617660999298, 0.2615770995616913, -0.6190347671508789, -0.09034572541713715, -0.14102379977703094, -0.3266516625881195, 0.0490923710167408, -0.3904855251312256, 0.062488339841365814, -0.19579052925109863, 0.07306469231843948, -0.052964940667152405, 0.039012935012578964, -0.24247030913829803, -0.23093055188655853, 0.2264098972082138, 0.06551895290613174, 0.18249551951885223, -0.08979656547307968, 0.14996090531349182, -0.5619229078292847, -0.22331035137176514, 0.36305105686187744, 0.22831127047538757, 0.09538992494344711, -0.06985104084014893, -0.2004852443933487, 0.2760849893093109, 0.019079402089118958, 0.08224110305309296, 0.049875929951667786, 0.2706109881401062, 0.04765528067946434, 0.03034088760614395, -0.345840722322464, 0.17095716297626495, 0.23141473531723022, -0.21036186814308167, -0.021651295945048332, -0.06720320135354996, 0.07395920902490616, 0.6060271263122559, 0.19895915687084198, 0.2640330493450165, -0.19511398673057556, 0.16534964740276337, -0.28581514954566956, 0.21682217717170715, -0.38999536633491516, -0.29042625427246094, 0.09755779802799225, 0.27093079686164856, -0.08409012109041214, -0.16981084644794464, -0.16264663636684418, 0.2775511145591736, -0.052774619311094284, 0.19929839670658112, -0.10660621523857117, -0.10876577347517014, -0.1700945347547531, -0.1947689950466156, -0.09671400487422943, -0.22968518733978271, 0.2377864271402359, 0.010837078094482422, 0.15239769220352173, -0.45365235209465027, -0.2717386782169342, 0.07314461469650269, -0.006594562903046608, -0.2252030372619629, -0.3029784560203552, 0.1749579757452011, -0.045547641813755035, 0.04265512898564339, 0.10841011255979538, 0.1736607849597931, -0.07519702613353729, 0.0586371123790741, 0.21236169338226318, -0.19295211136341095, -0.7053992748260498, -0.505607008934021, 0.21815888583660126, 0.19779814779758453, -0.14555293321609497, 0.0734509602189064, -0.26205092668533325, -0.29418331384658813, -0.15188737213611603, -0.46057936549186707, 0.18050195276737213, -0.11579269170761108, -0.059002310037612915, 0.01695888489484787, 0.42737507820129395, -0.24079212546348572, -0.14556223154067993, 0.1047564372420311, -0.21520107984542847, -0.1753108948469162, -0.010809202678501606, -0.12297941744327545, -0.11099332571029663, -0.21815019845962524, -0.49741479754447937, 0.15540927648544312, 0.022937772795557976, -0.13143987953662872, -0.033849190920591354, 0.0287015363574028, 0.12918061017990112, 0.07757600396871567, 0.1506866216659546, 0.26260676980018616, 0.176879420876503, -0.3338986337184906, 0.09776654839515686, 0.15599963068962097, -0.12502136826515198, -0.29580453038215637, 0.12726202607154846, -0.06329165399074554, 0.2780211865901947, -0.13228650391101837, -0.08897235244512558, 0.04571080580353737, 0.0717599168419838, 0.16449403762817383, 0.006353011354804039, 0.20066900551319122, 0.19232764840126038, -0.009153764694929123, -0.30919384956359863, 0.0410718098282814, -0.013881374150514603, 0.006485207937657833, -0.20721526443958282, 0.3533966541290283, -0.13943453133106232, 0.27705320715904236, 0.12156113237142563, 0.5772039890289307, -0.24255111813545227, 0.22338655591011047, 0.19646821916103363, 0.05001642927527428, 0.00930762104690075, -0.17688870429992676, -0.1522536277770996, 0.07350412011146545, 0.17876893281936646, -0.1334741711616516, 0.39848968386650085, 0.002959589706733823, -0.5453799366950989, -0.23391762375831604, 0.11393752694129944, -0.15620750188827515, -0.18944045901298523, -0.05426506698131561, 0.09761681407690048, 0.054974742233753204, -0.003932870924472809, 0.324339359998703, 0.09707490354776382, -0.2844160199165344, 0.1274695098400116, 0.1603957861661911, -0.2235165238380432, 0.01580316573381424, -0.2835346460342407, -0.2909454107284546, -0.009208743460476398, 0.1848396509885788, 0.041616927832365036, 0.08931456506252289, -0.18929599225521088, 0.004650877323001623, 0.4041396677494049, -0.11583410948514938, 0.09384266287088394, -0.2665364444255829, 0.10659313201904297, -0.0007258215337060392, 0.17057271301746368, -0.21993879973888397, -0.012172622606158257, -0.2855195701122284, 0.31456252932548523, 0.4303750991821289, -0.15116918087005615, -0.3844887316226959, 0.15260553359985352, 0.10028503090143204, -0.11779631674289703, -0.0893026739358902, 0.07417313754558563, -0.2022150456905365, -0.3440389931201935, -0.2627861201763153, 0.11985184997320175, 0.052100230008363724, 0.18779270350933075, 0.1865653544664383, 0.16985957324504852, -0.04063485562801361, 0.07932605594396591, -0.08237564563751221, 0.2110321968793869, -0.10611547529697418, 0.2398410141468048, -0.38015028834342957, -0.03585371747612953, 0.23082871735095978, -0.35072436928749084, 0.06391609460115433, 0.14361460506916046, -0.08977383375167847, 0.14934153854846954, -0.2014250010251999, 0.02564292773604393, 0.14683954417705536, -0.01030973345041275, -0.07080747187137604, 0.5967321991920471, -0.17731882631778717, 0.1225176677107811, -0.03933531790971756, 0.22150015830993652, 0.17533136904239655, -0.09726829081773758, -0.20099784433841705, 0.02921253629028797, -0.04709944128990173, -0.026255324482917786, -0.004236267413944006, 0.3036666214466095, -0.2517155408859253, 0.19874805212020874, 0.04197419062256813, 0.946838915348053, 0.1551632136106491, -0.035202886909246445, -0.08250332623720169, 0.26008284091949463, 0.2958843410015106, -0.054930344223976135, 0.1507401466369629, -0.158185675740242, 0.14318031072616577, -0.13988801836967468, 0.37174907326698303, 0.024082589894533157, 0.07871367037296295, -0.32600685954093933, 0.2762637436389923, -0.11297974735498428, 0.04455345496535301, 0.31013044714927673, 0.27897629141807556, 0.20143331587314606, -0.07003697007894516, -0.07457026094198227, 0.2536313831806183, 0.0005429434822872281, 0.27777302265167236, -0.03572288900613785, 0.10947590321302414, -0.07119610160589218, -0.24540257453918457, -0.4768733084201813, 0.17239002883434296, 0.11515088379383087, 0.5791788697242737, -0.14672324061393738, -0.17634479701519012, -0.03126077353954315, -0.08529093116521835, 0.16841022670269012, 0.4944300353527069, -0.22014975547790527, 0.1638886034488678, 0.11107320338487625, -0.5725210905075073, -0.045284856110811234, 0.14985710382461548, 0.14595761895179749, -0.15260663628578186, -0.4091801345348358, 0.26869210600852966, -0.032855674624443054, 0.0564681813120842, -0.39640098810195923, -0.1484406739473343, -0.19090810418128967, 0.3741452693939209, -0.1792023926973343, 0.21449697017669678, -0.1647873967885971, -0.04863767325878143, 0.2909184396266937, -0.23507170379161835, 0.22710703313350677, -0.2278091460466385, 0.4590778648853302, -0.04452033340930939, -0.0945010557770729, 0.2595265805721283, 0.17447274923324585, 0.026407884433865547, 0.3324267864227295, 0.23924978077411652, -0.39196470379829407, -0.3116985261440277, -0.2662361264228821, -0.41471701860427856, -0.09793233871459961, -0.32033729553222656, -0.0406462587416172, 0.016268005594611168, -0.16706250607967377, -0.20455200970172882, 0.15319325029850006, -0.0788331851363182, -0.025846725329756737, -0.09847265481948853, 0.23052677512168884, 0.11011362820863724, -0.1514817476272583, -0.11564479023218155, 0.008016765117645264, -0.30642247200012207, 0.31578904390335083, 0.06373551487922668, -0.4106082022190094, -0.1858324557542801, -0.21906550228595734, 0.01852951943874359, 0.2886301279067993, -0.11006750911474228, -0.18067339062690735, -0.051325444132089615, 0.46605220437049866, -0.1365680992603302, 0.03898850455880165, -0.3871106505393982, -0.05175943300127983, -0.007331968750804663, 0.019194625318050385, -0.0402105376124382, 0.14938922226428986, -0.28629618883132935, -0.018367506563663483, 0.04887484386563301, -0.10841688513755798, -0.10774524509906769, 0.14462503790855408, 0.1669515073299408, -0.0898909866809845, 0.30204764008522034, -0.05775240808725357, 0.04740488901734352, -0.01736435666680336, 0.3234427869319916, 0.033266693353652954, 0.12577277421951294, 0.44562065601348877, -0.2005935162305832, -0.317117840051651, 0.032035283744335175, -0.11393815279006958, 0.27402347326278687, -0.026622507721185684, 0.00033258373150601983, 0.10690446943044662, 0.2002287358045578, -0.09459391981363297, -0.04877454787492752, 0.04526331648230553, -0.009689857251942158, 0.23020584881305695, 0.32978299260139465, -0.2536877989768982, 0.13359028100967407, 0.22212952375411987, -0.11781501770019531, 0.1502881944179535, 0.11728613823652267, -0.02528439834713936, -0.09636218100786209, 0.3762243688106537, -0.017936386168003082, -0.3311102092266083, -0.16913974285125732, 0.18135082721710205, -0.10410430282354355, -0.09950296580791473, 0.04941413924098015, -0.12655378878116608, -0.12270479649305344, 0.11782515048980713, 0.06478914618492126, 0.1494137942790985, -0.10984556376934052, -0.007593680638819933, 0.48703017830848694, -0.014754327945411205, 0.041862852871418, 0.07482387870550156, -0.10165302455425262, 0.08373263478279114, 0.025660909712314606, 0.16175954043865204, -0.10495046526193619, 0.1110692098736763, 0.09409251809120178, -0.30712953209877014, 0.18332615494728088, -0.18614518642425537, -0.24212169647216797, -0.15431605279445648, -0.2382322996854782, -0.09938158839941025, 0.0010716230608522892, 0.07077760994434357, 0.11904467642307281, -0.2349424660205841, 0.11132679879665375, -0.05781114473938942, -0.03748622536659241, 0.37253230810165405, -0.3498363196849823, 0.1274624913930893, 0.02739257924258709, 0.2546176016330719, -0.3999696671962738, -0.09407471865415573, -0.2399682104587555, 0.06579538434743881, -0.06630343198776245, 0.18392325937747955, -0.4192025661468506, -0.16574440896511078, 0.022547755390405655, -0.18353956937789917, -0.05892453342676163, 0.20870457589626312, 0.3001585304737091, 0.08377863466739655, 0.03935225307941437, 0.2891148030757904, -0.32124799489974976, 0.027419183403253555, 0.3842688500881195, 0.035932715982198715, 0.2576827108860016, -0.19715048372745514, 0.17347268760204315, 0.2555094361305237, -0.07124332338571548, 0.1448286771774292, -0.5685814619064331, -0.02100357413291931, -0.07630878686904907, 0.1479983925819397, -0.011162127368152142, -0.2873938977718353, 0.1720069944858551, 0.10546151548624039, 0.38364261388778687, 0.30447375774383545, 0.42835941910743713, 0.30091196298599243, -0.0581398606300354, -0.23848681151866913, 0.21379569172859192, -0.13270969688892365, -0.11440388858318329, -0.1667642593383789, 0.30643853545188904, 0.18057265877723694, 0.14899934828281403, 0.23618318140506744, -0.22780823707580566, -0.11274146288633347, 0.24994559586048126, -0.06800854206085205, 0.05402764305472374, 0.19832220673561096, -0.2147664874792099, -0.24320706725120544, -0.047012459486722946, -0.0046896664425730705, -0.12259913980960846, 0.31750375032424927, -0.255705326795578, -0.0054937913082540035, -0.054640334099531174, 0.19135433435440063, 0.3290369510650635, 0.04861737787723541, 0.3297331929206848, -0.1634783148765564, -0.12819670140743256, -0.04499918222427368, -0.11852208524942398, 0.1675630509853363, 0.5832505822181702, 0.24535702168941498, 0.029449831694364548, -0.036703694611787796, -0.30671632289886475, 0.007997971028089523, 0.27434292435646057, 0.02801998145878315, 0.25297772884368896, -0.2860071361064911, -0.08431120961904526, -0.07995018362998962, -0.14318710565567017, -0.2550258934497833, -0.0004638314712792635, -0.14552929997444153, -0.11924543231725693, -0.1278754621744156, -0.17349447309970856, -0.11722960323095322, -0.030075553804636, -0.24612437188625336, -0.27864277362823486, 0.013871442526578903, 0.10010379552841187, 0.1381431221961975, 0.22066086530685425, 0.07771109789609909, 0.19070790708065033, -0.06824842095375061, 0.039360325783491135, -0.03094138205051422, 0.12716369330883026, 0.027154628187417984, -0.31728851795196533, -0.1137210950255394, 0.05044897273182869, -0.19106346368789673, -0.14879056811332703, -0.17393508553504944 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Hi @lhoestq! > Hi ! As mentioned above the Spanish configuration have parsing issues from mwparserfromhell. I haven't tested with the latest mwparserfromhell >=0.6 though. Which version of mwparserfromhell are you using ? I'm using the latest mwparserfromhell version (0.6) > That would be awesome ! Feel free to ping me on slack so we can put the processed wikipedia files on google storage with the other ones we've already preprocessed. I'll ping you there 👍
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
76
not being able to get wikipedia es language
[ 0.10881943255662918, -0.5029884576797485, -0.32401329278945923, 0.09868849068880081, 0.15049472451210022, 0.07892651855945587, -0.09729307144880295, 0.13324935734272003, 0.39711639285087585, 0.11324799060821533, 0.14967356622219086, -0.0095089515671134, 0.15753202140331268, -0.09283965080976486, -0.1556767225265503, -0.23074379563331604, -0.016140123829245567, 0.06180465593934059, 0.14073964953422546, -0.2811497747898102, 0.0998506173491478, 0.203340083360672, -0.19405707716941833, 0.08995462208986282, 0.17653751373291016, 0.04483632743358612, 0.00922111701220274, -0.09053664654493332, -0.23739171028137207, 0.07073434442281723, 0.12004009634256363, 0.034196168184280396, 0.02310013212263584, 0.07075900584459305, -0.0000971286281128414, -0.05991936847567558, 0.4827338457107544, 0.03761739283800125, -0.3058558702468872, -0.1272994428873062, -0.157138392329216, 0.016147205606102943, -0.09020407497882843, -0.29634055495262146, -0.21427886188030243, -0.13623066246509552, 0.4141675531864166, -0.29445552825927734, 0.04187241941690445, 0.10665543377399445, 0.35857781767845154, -0.37257686257362366, 0.188603475689888, -0.14910434186458588, 0.40712621808052063, 0.10858926177024841, 0.03148671239614487, 0.033782314509153366, 0.011968094855546951, -0.050943389534950256, 0.0930895060300827, 0.27269837260246277, 0.14174771308898926, -0.19877547025680542, -0.01979283057153225, 0.025820568203926086, 0.2617724537849426, -0.16062778234481812, 0.5867554545402527, 0.11188459396362305, 0.5242472290992737, 0.2787313759326935, -0.045776329934597015, 0.33025553822517395, -0.062142305076122284, 0.24231772124767303, 0.3024950921535492, -0.05723067745566368, -0.16969802975654602, -0.029958663508296013, 0.44956305623054504, -0.378718763589859, -0.18086175620555878, 0.32811105251312256, -0.20959699153900146, 0.5398256182670593, 0.03449493274092674, -0.09204479306936264, 0.09682250022888184, -0.11148988455533981, -0.07581260800361633, 0.12564004957675934, -0.11331190168857574, 0.29293376207351685, 0.37531790137290955, 0.2636285722255707, 0.5531390905380249, 0.2767774760723114, -0.06809549033641815, -0.30613240599632263, -0.4284600019454956, 0.32761186361312866, 0.013309669680893421, 0.005339075345546007, 0.11588256061077118, -0.11490735411643982, 0.15387192368507385, -0.08923842757940292, 0.2269182801246643, 0.15389810502529144, -0.04493379220366478, 0.007425246294587851, -0.13698095083236694, -0.13617761433124542, -0.35719069838523865, 0.0846409723162651, 0.03414284437894821, -0.2736678719520569, 0.23803114891052246, 0.1459924876689911, -0.22057992219924927, -0.14311498403549194, -0.11181492358446121, 0.03929801657795906, 0.061412930488586426, 0.21457187831401825, 0.1268194317817688, -0.1286521703004837, -0.3258804678916931, -0.03254136070609093, -0.2600383758544922, 0.2758822739124298, -0.3784317076206207, -0.10631287842988968, -0.04862762987613678, 0.1599983423948288, 0.222872793674469, -0.11796887218952179, -0.15077096223831177, -0.07298063486814499, -0.18837536871433258, 0.011734496802091599, -0.10919453203678131, -0.11483035236597061, -0.005808770656585693, 0.3050002455711365, 0.03592133894562721, -0.5967687964439392, -0.05571938306093216, -0.10731056332588196, -0.04629289358854294, 0.06408987194299698, -0.32495585083961487, 0.3435462415218353, 0.27475062012672424, -0.07554575055837631, 0.23908822238445282, 0.3001483380794525, 0.08525894582271576, -0.2641817331314087, 0.08024358004331589, 0.2655028998851776, -0.0011557514080777764, 0.14315025508403778, 0.15268947184085846, -0.03754639998078346, -0.25987932085990906, 0.1356513351202011, -0.19418394565582275, 0.0275595560669899, 0.3935093581676483, 0.15683631598949432, -0.1401658058166504, 0.13792049884796143, -0.09617430716753006, 0.2496129721403122, 0.017928512766957283, 0.010273091495037079, -0.1062232106924057, 0.05321067199110985, 0.10912811011075974, -0.24788233637809753, 0.19018128514289856, -0.07381050288677216, 0.015218231827020645, 0.13244886696338654, 0.08267267793416977, 0.1403079330921173, 0.05773300305008888, 0.0004165317222941667, -0.2396778017282486, -0.2145780771970749, 0.1307203620672226, -0.10095441341400146, 0.44638293981552124, -0.10867788642644882, 0.17409324645996094, 0.5914689302444458, 0.237018883228302, -0.031675759702920914, -0.17629112303256989, 0.24596719443798065, 0.038333553820848465, 0.18207068741321564, 0.09234151244163513, 0.06431172043085098, 0.05479344353079796, -0.059287164360284805, 0.06892524659633636, 0.4851302206516266, -0.11376240104436874, -0.1291101723909378, -0.31315016746520996, -0.04255491495132446, -0.014663278125226498, -0.03234660252928734, 0.376689076423645, 0.23870018124580383, -0.020349863916635513, 0.2298617660999298, 0.2615770995616913, -0.6190347671508789, -0.09034572541713715, -0.14102379977703094, -0.3266516625881195, 0.0490923710167408, -0.3904855251312256, 0.062488339841365814, -0.19579052925109863, 0.07306469231843948, -0.052964940667152405, 0.039012935012578964, -0.24247030913829803, -0.23093055188655853, 0.2264098972082138, 0.06551895290613174, 0.18249551951885223, -0.08979656547307968, 0.14996090531349182, -0.5619229078292847, -0.22331035137176514, 0.36305105686187744, 0.22831127047538757, 0.09538992494344711, -0.06985104084014893, -0.2004852443933487, 0.2760849893093109, 0.019079402089118958, 0.08224110305309296, 0.049875929951667786, 0.2706109881401062, 0.04765528067946434, 0.03034088760614395, -0.345840722322464, 0.17095716297626495, 0.23141473531723022, -0.21036186814308167, -0.021651295945048332, -0.06720320135354996, 0.07395920902490616, 0.6060271263122559, 0.19895915687084198, 0.2640330493450165, -0.19511398673057556, 0.16534964740276337, -0.28581514954566956, 0.21682217717170715, -0.38999536633491516, -0.29042625427246094, 0.09755779802799225, 0.27093079686164856, -0.08409012109041214, -0.16981084644794464, -0.16264663636684418, 0.2775511145591736, -0.052774619311094284, 0.19929839670658112, -0.10660621523857117, -0.10876577347517014, -0.1700945347547531, -0.1947689950466156, -0.09671400487422943, -0.22968518733978271, 0.2377864271402359, 0.010837078094482422, 0.15239769220352173, -0.45365235209465027, -0.2717386782169342, 0.07314461469650269, -0.006594562903046608, -0.2252030372619629, -0.3029784560203552, 0.1749579757452011, -0.045547641813755035, 0.04265512898564339, 0.10841011255979538, 0.1736607849597931, -0.07519702613353729, 0.0586371123790741, 0.21236169338226318, -0.19295211136341095, -0.7053992748260498, -0.505607008934021, 0.21815888583660126, 0.19779814779758453, -0.14555293321609497, 0.0734509602189064, -0.26205092668533325, -0.29418331384658813, -0.15188737213611603, -0.46057936549186707, 0.18050195276737213, -0.11579269170761108, -0.059002310037612915, 0.01695888489484787, 0.42737507820129395, -0.24079212546348572, -0.14556223154067993, 0.1047564372420311, -0.21520107984542847, -0.1753108948469162, -0.010809202678501606, -0.12297941744327545, -0.11099332571029663, -0.21815019845962524, -0.49741479754447937, 0.15540927648544312, 0.022937772795557976, -0.13143987953662872, -0.033849190920591354, 0.0287015363574028, 0.12918061017990112, 0.07757600396871567, 0.1506866216659546, 0.26260676980018616, 0.176879420876503, -0.3338986337184906, 0.09776654839515686, 0.15599963068962097, -0.12502136826515198, -0.29580453038215637, 0.12726202607154846, -0.06329165399074554, 0.2780211865901947, -0.13228650391101837, -0.08897235244512558, 0.04571080580353737, 0.0717599168419838, 0.16449403762817383, 0.006353011354804039, 0.20066900551319122, 0.19232764840126038, -0.009153764694929123, -0.30919384956359863, 0.0410718098282814, -0.013881374150514603, 0.006485207937657833, -0.20721526443958282, 0.3533966541290283, -0.13943453133106232, 0.27705320715904236, 0.12156113237142563, 0.5772039890289307, -0.24255111813545227, 0.22338655591011047, 0.19646821916103363, 0.05001642927527428, 0.00930762104690075, -0.17688870429992676, -0.1522536277770996, 0.07350412011146545, 0.17876893281936646, -0.1334741711616516, 0.39848968386650085, 0.002959589706733823, -0.5453799366950989, -0.23391762375831604, 0.11393752694129944, -0.15620750188827515, -0.18944045901298523, -0.05426506698131561, 0.09761681407690048, 0.054974742233753204, -0.003932870924472809, 0.324339359998703, 0.09707490354776382, -0.2844160199165344, 0.1274695098400116, 0.1603957861661911, -0.2235165238380432, 0.01580316573381424, -0.2835346460342407, -0.2909454107284546, -0.009208743460476398, 0.1848396509885788, 0.041616927832365036, 0.08931456506252289, -0.18929599225521088, 0.004650877323001623, 0.4041396677494049, -0.11583410948514938, 0.09384266287088394, -0.2665364444255829, 0.10659313201904297, -0.0007258215337060392, 0.17057271301746368, -0.21993879973888397, -0.012172622606158257, -0.2855195701122284, 0.31456252932548523, 0.4303750991821289, -0.15116918087005615, -0.3844887316226959, 0.15260553359985352, 0.10028503090143204, -0.11779631674289703, -0.0893026739358902, 0.07417313754558563, -0.2022150456905365, -0.3440389931201935, -0.2627861201763153, 0.11985184997320175, 0.052100230008363724, 0.18779270350933075, 0.1865653544664383, 0.16985957324504852, -0.04063485562801361, 0.07932605594396591, -0.08237564563751221, 0.2110321968793869, -0.10611547529697418, 0.2398410141468048, -0.38015028834342957, -0.03585371747612953, 0.23082871735095978, -0.35072436928749084, 0.06391609460115433, 0.14361460506916046, -0.08977383375167847, 0.14934153854846954, -0.2014250010251999, 0.02564292773604393, 0.14683954417705536, -0.01030973345041275, -0.07080747187137604, 0.5967321991920471, -0.17731882631778717, 0.1225176677107811, -0.03933531790971756, 0.22150015830993652, 0.17533136904239655, -0.09726829081773758, -0.20099784433841705, 0.02921253629028797, -0.04709944128990173, -0.026255324482917786, -0.004236267413944006, 0.3036666214466095, -0.2517155408859253, 0.19874805212020874, 0.04197419062256813, 0.946838915348053, 0.1551632136106491, -0.035202886909246445, -0.08250332623720169, 0.26008284091949463, 0.2958843410015106, -0.054930344223976135, 0.1507401466369629, -0.158185675740242, 0.14318031072616577, -0.13988801836967468, 0.37174907326698303, 0.024082589894533157, 0.07871367037296295, -0.32600685954093933, 0.2762637436389923, -0.11297974735498428, 0.04455345496535301, 0.31013044714927673, 0.27897629141807556, 0.20143331587314606, -0.07003697007894516, -0.07457026094198227, 0.2536313831806183, 0.0005429434822872281, 0.27777302265167236, -0.03572288900613785, 0.10947590321302414, -0.07119610160589218, -0.24540257453918457, -0.4768733084201813, 0.17239002883434296, 0.11515088379383087, 0.5791788697242737, -0.14672324061393738, -0.17634479701519012, -0.03126077353954315, -0.08529093116521835, 0.16841022670269012, 0.4944300353527069, -0.22014975547790527, 0.1638886034488678, 0.11107320338487625, -0.5725210905075073, -0.045284856110811234, 0.14985710382461548, 0.14595761895179749, -0.15260663628578186, -0.4091801345348358, 0.26869210600852966, -0.032855674624443054, 0.0564681813120842, -0.39640098810195923, -0.1484406739473343, -0.19090810418128967, 0.3741452693939209, -0.1792023926973343, 0.21449697017669678, -0.1647873967885971, -0.04863767325878143, 0.2909184396266937, -0.23507170379161835, 0.22710703313350677, -0.2278091460466385, 0.4590778648853302, -0.04452033340930939, -0.0945010557770729, 0.2595265805721283, 0.17447274923324585, 0.026407884433865547, 0.3324267864227295, 0.23924978077411652, -0.39196470379829407, -0.3116985261440277, -0.2662361264228821, -0.41471701860427856, -0.09793233871459961, -0.32033729553222656, -0.0406462587416172, 0.016268005594611168, -0.16706250607967377, -0.20455200970172882, 0.15319325029850006, -0.0788331851363182, -0.025846725329756737, -0.09847265481948853, 0.23052677512168884, 0.11011362820863724, -0.1514817476272583, -0.11564479023218155, 0.008016765117645264, -0.30642247200012207, 0.31578904390335083, 0.06373551487922668, -0.4106082022190094, -0.1858324557542801, -0.21906550228595734, 0.01852951943874359, 0.2886301279067993, -0.11006750911474228, -0.18067339062690735, -0.051325444132089615, 0.46605220437049866, -0.1365680992603302, 0.03898850455880165, -0.3871106505393982, -0.05175943300127983, -0.007331968750804663, 0.019194625318050385, -0.0402105376124382, 0.14938922226428986, -0.28629618883132935, -0.018367506563663483, 0.04887484386563301, -0.10841688513755798, -0.10774524509906769, 0.14462503790855408, 0.1669515073299408, -0.0898909866809845, 0.30204764008522034, -0.05775240808725357, 0.04740488901734352, -0.01736435666680336, 0.3234427869319916, 0.033266693353652954, 0.12577277421951294, 0.44562065601348877, -0.2005935162305832, -0.317117840051651, 0.032035283744335175, -0.11393815279006958, 0.27402347326278687, -0.026622507721185684, 0.00033258373150601983, 0.10690446943044662, 0.2002287358045578, -0.09459391981363297, -0.04877454787492752, 0.04526331648230553, -0.009689857251942158, 0.23020584881305695, 0.32978299260139465, -0.2536877989768982, 0.13359028100967407, 0.22212952375411987, -0.11781501770019531, 0.1502881944179535, 0.11728613823652267, -0.02528439834713936, -0.09636218100786209, 0.3762243688106537, -0.017936386168003082, -0.3311102092266083, -0.16913974285125732, 0.18135082721710205, -0.10410430282354355, -0.09950296580791473, 0.04941413924098015, -0.12655378878116608, -0.12270479649305344, 0.11782515048980713, 0.06478914618492126, 0.1494137942790985, -0.10984556376934052, -0.007593680638819933, 0.48703017830848694, -0.014754327945411205, 0.041862852871418, 0.07482387870550156, -0.10165302455425262, 0.08373263478279114, 0.025660909712314606, 0.16175954043865204, -0.10495046526193619, 0.1110692098736763, 0.09409251809120178, -0.30712953209877014, 0.18332615494728088, -0.18614518642425537, -0.24212169647216797, -0.15431605279445648, -0.2382322996854782, -0.09938158839941025, 0.0010716230608522892, 0.07077760994434357, 0.11904467642307281, -0.2349424660205841, 0.11132679879665375, -0.05781114473938942, -0.03748622536659241, 0.37253230810165405, -0.3498363196849823, 0.1274624913930893, 0.02739257924258709, 0.2546176016330719, -0.3999696671962738, -0.09407471865415573, -0.2399682104587555, 0.06579538434743881, -0.06630343198776245, 0.18392325937747955, -0.4192025661468506, -0.16574440896511078, 0.022547755390405655, -0.18353956937789917, -0.05892453342676163, 0.20870457589626312, 0.3001585304737091, 0.08377863466739655, 0.03935225307941437, 0.2891148030757904, -0.32124799489974976, 0.027419183403253555, 0.3842688500881195, 0.035932715982198715, 0.2576827108860016, -0.19715048372745514, 0.17347268760204315, 0.2555094361305237, -0.07124332338571548, 0.1448286771774292, -0.5685814619064331, -0.02100357413291931, -0.07630878686904907, 0.1479983925819397, -0.011162127368152142, -0.2873938977718353, 0.1720069944858551, 0.10546151548624039, 0.38364261388778687, 0.30447375774383545, 0.42835941910743713, 0.30091196298599243, -0.0581398606300354, -0.23848681151866913, 0.21379569172859192, -0.13270969688892365, -0.11440388858318329, -0.1667642593383789, 0.30643853545188904, 0.18057265877723694, 0.14899934828281403, 0.23618318140506744, -0.22780823707580566, -0.11274146288633347, 0.24994559586048126, -0.06800854206085205, 0.05402764305472374, 0.19832220673561096, -0.2147664874792099, -0.24320706725120544, -0.047012459486722946, -0.0046896664425730705, -0.12259913980960846, 0.31750375032424927, -0.255705326795578, -0.0054937913082540035, -0.054640334099531174, 0.19135433435440063, 0.3290369510650635, 0.04861737787723541, 0.3297331929206848, -0.1634783148765564, -0.12819670140743256, -0.04499918222427368, -0.11852208524942398, 0.1675630509853363, 0.5832505822181702, 0.24535702168941498, 0.029449831694364548, -0.036703694611787796, -0.30671632289886475, 0.007997971028089523, 0.27434292435646057, 0.02801998145878315, 0.25297772884368896, -0.2860071361064911, -0.08431120961904526, -0.07995018362998962, -0.14318710565567017, -0.2550258934497833, -0.0004638314712792635, -0.14552929997444153, -0.11924543231725693, -0.1278754621744156, -0.17349447309970856, -0.11722960323095322, -0.030075553804636, -0.24612437188625336, -0.27864277362823486, 0.013871442526578903, 0.10010379552841187, 0.1381431221961975, 0.22066086530685425, 0.07771109789609909, 0.19070790708065033, -0.06824842095375061, 0.039360325783491135, -0.03094138205051422, 0.12716369330883026, 0.027154628187417984, -0.31728851795196533, -0.1137210950255394, 0.05044897273182869, -0.19106346368789673, -0.14879056811332703, -0.17393508553504944 ]
https://github.com/huggingface/datasets/issues/1994
not being able to get wikipedia es language
Thank you so much @jonatasgrosman and @lhoestq this would be a great help. I am really thankful to you both and to wonderful Huggingface dataset library allowing us to train models at scale.
Hi I am trying to run a code with wikipedia of config 20200501.es, getting: Traceback (most recent call last): File "run_mlm_t5.py", line 608, in <module> main() File "run_mlm_t5.py", line 359, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/load.py", line 612, in load_dataset ignore_verifications=ignore_verifications, File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/libs/anaconda3/envs/success432/lib/python3.7/site-packages/datasets-1.2.1-py3.7.egg/datasets/builder.py", line 1050, in _download_and_prepare "\n\t`{}`".format(usage_example) datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks @lhoestq for any suggestion/help
33
not being able to get wikipedia es language
[ 0.10881943255662918, -0.5029884576797485, -0.32401329278945923, 0.09868849068880081, 0.15049472451210022, 0.07892651855945587, -0.09729307144880295, 0.13324935734272003, 0.39711639285087585, 0.11324799060821533, 0.14967356622219086, -0.0095089515671134, 0.15753202140331268, -0.09283965080976486, -0.1556767225265503, -0.23074379563331604, -0.016140123829245567, 0.06180465593934059, 0.14073964953422546, -0.2811497747898102, 0.0998506173491478, 0.203340083360672, -0.19405707716941833, 0.08995462208986282, 0.17653751373291016, 0.04483632743358612, 0.00922111701220274, -0.09053664654493332, -0.23739171028137207, 0.07073434442281723, 0.12004009634256363, 0.034196168184280396, 0.02310013212263584, 0.07075900584459305, -0.0000971286281128414, -0.05991936847567558, 0.4827338457107544, 0.03761739283800125, -0.3058558702468872, -0.1272994428873062, -0.157138392329216, 0.016147205606102943, -0.09020407497882843, -0.29634055495262146, -0.21427886188030243, -0.13623066246509552, 0.4141675531864166, -0.29445552825927734, 0.04187241941690445, 0.10665543377399445, 0.35857781767845154, -0.37257686257362366, 0.188603475689888, -0.14910434186458588, 0.40712621808052063, 0.10858926177024841, 0.03148671239614487, 0.033782314509153366, 0.011968094855546951, -0.050943389534950256, 0.0930895060300827, 0.27269837260246277, 0.14174771308898926, -0.19877547025680542, -0.01979283057153225, 0.025820568203926086, 0.2617724537849426, -0.16062778234481812, 0.5867554545402527, 0.11188459396362305, 0.5242472290992737, 0.2787313759326935, -0.045776329934597015, 0.33025553822517395, -0.062142305076122284, 0.24231772124767303, 0.3024950921535492, -0.05723067745566368, -0.16969802975654602, -0.029958663508296013, 0.44956305623054504, -0.378718763589859, -0.18086175620555878, 0.32811105251312256, -0.20959699153900146, 0.5398256182670593, 0.03449493274092674, -0.09204479306936264, 0.09682250022888184, -0.11148988455533981, -0.07581260800361633, 0.12564004957675934, -0.11331190168857574, 0.29293376207351685, 0.37531790137290955, 0.2636285722255707, 0.5531390905380249, 0.2767774760723114, -0.06809549033641815, -0.30613240599632263, -0.4284600019454956, 0.32761186361312866, 0.013309669680893421, 0.005339075345546007, 0.11588256061077118, -0.11490735411643982, 0.15387192368507385, -0.08923842757940292, 0.2269182801246643, 0.15389810502529144, -0.04493379220366478, 0.007425246294587851, -0.13698095083236694, -0.13617761433124542, -0.35719069838523865, 0.0846409723162651, 0.03414284437894821, -0.2736678719520569, 0.23803114891052246, 0.1459924876689911, -0.22057992219924927, -0.14311498403549194, -0.11181492358446121, 0.03929801657795906, 0.061412930488586426, 0.21457187831401825, 0.1268194317817688, -0.1286521703004837, -0.3258804678916931, -0.03254136070609093, -0.2600383758544922, 0.2758822739124298, -0.3784317076206207, -0.10631287842988968, -0.04862762987613678, 0.1599983423948288, 0.222872793674469, -0.11796887218952179, -0.15077096223831177, -0.07298063486814499, -0.18837536871433258, 0.011734496802091599, -0.10919453203678131, -0.11483035236597061, -0.005808770656585693, 0.3050002455711365, 0.03592133894562721, -0.5967687964439392, -0.05571938306093216, -0.10731056332588196, -0.04629289358854294, 0.06408987194299698, -0.32495585083961487, 0.3435462415218353, 0.27475062012672424, -0.07554575055837631, 0.23908822238445282, 0.3001483380794525, 0.08525894582271576, -0.2641817331314087, 0.08024358004331589, 0.2655028998851776, -0.0011557514080777764, 0.14315025508403778, 0.15268947184085846, -0.03754639998078346, -0.25987932085990906, 0.1356513351202011, -0.19418394565582275, 0.0275595560669899, 0.3935093581676483, 0.15683631598949432, -0.1401658058166504, 0.13792049884796143, -0.09617430716753006, 0.2496129721403122, 0.017928512766957283, 0.010273091495037079, -0.1062232106924057, 0.05321067199110985, 0.10912811011075974, -0.24788233637809753, 0.19018128514289856, -0.07381050288677216, 0.015218231827020645, 0.13244886696338654, 0.08267267793416977, 0.1403079330921173, 0.05773300305008888, 0.0004165317222941667, -0.2396778017282486, -0.2145780771970749, 0.1307203620672226, -0.10095441341400146, 0.44638293981552124, -0.10867788642644882, 0.17409324645996094, 0.5914689302444458, 0.237018883228302, -0.031675759702920914, -0.17629112303256989, 0.24596719443798065, 0.038333553820848465, 0.18207068741321564, 0.09234151244163513, 0.06431172043085098, 0.05479344353079796, -0.059287164360284805, 0.06892524659633636, 0.4851302206516266, -0.11376240104436874, -0.1291101723909378, -0.31315016746520996, -0.04255491495132446, -0.014663278125226498, -0.03234660252928734, 0.376689076423645, 0.23870018124580383, -0.020349863916635513, 0.2298617660999298, 0.2615770995616913, -0.6190347671508789, -0.09034572541713715, -0.14102379977703094, -0.3266516625881195, 0.0490923710167408, -0.3904855251312256, 0.062488339841365814, -0.19579052925109863, 0.07306469231843948, -0.052964940667152405, 0.039012935012578964, -0.24247030913829803, -0.23093055188655853, 0.2264098972082138, 0.06551895290613174, 0.18249551951885223, -0.08979656547307968, 0.14996090531349182, -0.5619229078292847, -0.22331035137176514, 0.36305105686187744, 0.22831127047538757, 0.09538992494344711, -0.06985104084014893, -0.2004852443933487, 0.2760849893093109, 0.019079402089118958, 0.08224110305309296, 0.049875929951667786, 0.2706109881401062, 0.04765528067946434, 0.03034088760614395, -0.345840722322464, 0.17095716297626495, 0.23141473531723022, -0.21036186814308167, -0.021651295945048332, -0.06720320135354996, 0.07395920902490616, 0.6060271263122559, 0.19895915687084198, 0.2640330493450165, -0.19511398673057556, 0.16534964740276337, -0.28581514954566956, 0.21682217717170715, -0.38999536633491516, -0.29042625427246094, 0.09755779802799225, 0.27093079686164856, -0.08409012109041214, -0.16981084644794464, -0.16264663636684418, 0.2775511145591736, -0.052774619311094284, 0.19929839670658112, -0.10660621523857117, -0.10876577347517014, -0.1700945347547531, -0.1947689950466156, -0.09671400487422943, -0.22968518733978271, 0.2377864271402359, 0.010837078094482422, 0.15239769220352173, -0.45365235209465027, -0.2717386782169342, 0.07314461469650269, -0.006594562903046608, -0.2252030372619629, -0.3029784560203552, 0.1749579757452011, -0.045547641813755035, 0.04265512898564339, 0.10841011255979538, 0.1736607849597931, -0.07519702613353729, 0.0586371123790741, 0.21236169338226318, -0.19295211136341095, -0.7053992748260498, -0.505607008934021, 0.21815888583660126, 0.19779814779758453, -0.14555293321609497, 0.0734509602189064, -0.26205092668533325, -0.29418331384658813, -0.15188737213611603, -0.46057936549186707, 0.18050195276737213, -0.11579269170761108, -0.059002310037612915, 0.01695888489484787, 0.42737507820129395, -0.24079212546348572, -0.14556223154067993, 0.1047564372420311, -0.21520107984542847, -0.1753108948469162, -0.010809202678501606, -0.12297941744327545, -0.11099332571029663, -0.21815019845962524, -0.49741479754447937, 0.15540927648544312, 0.022937772795557976, -0.13143987953662872, -0.033849190920591354, 0.0287015363574028, 0.12918061017990112, 0.07757600396871567, 0.1506866216659546, 0.26260676980018616, 0.176879420876503, -0.3338986337184906, 0.09776654839515686, 0.15599963068962097, -0.12502136826515198, -0.29580453038215637, 0.12726202607154846, -0.06329165399074554, 0.2780211865901947, -0.13228650391101837, -0.08897235244512558, 0.04571080580353737, 0.0717599168419838, 0.16449403762817383, 0.006353011354804039, 0.20066900551319122, 0.19232764840126038, -0.009153764694929123, -0.30919384956359863, 0.0410718098282814, -0.013881374150514603, 0.006485207937657833, -0.20721526443958282, 0.3533966541290283, -0.13943453133106232, 0.27705320715904236, 0.12156113237142563, 0.5772039890289307, -0.24255111813545227, 0.22338655591011047, 0.19646821916103363, 0.05001642927527428, 0.00930762104690075, -0.17688870429992676, -0.1522536277770996, 0.07350412011146545, 0.17876893281936646, -0.1334741711616516, 0.39848968386650085, 0.002959589706733823, -0.5453799366950989, -0.23391762375831604, 0.11393752694129944, -0.15620750188827515, -0.18944045901298523, -0.05426506698131561, 0.09761681407690048, 0.054974742233753204, -0.003932870924472809, 0.324339359998703, 0.09707490354776382, -0.2844160199165344, 0.1274695098400116, 0.1603957861661911, -0.2235165238380432, 0.01580316573381424, -0.2835346460342407, -0.2909454107284546, -0.009208743460476398, 0.1848396509885788, 0.041616927832365036, 0.08931456506252289, -0.18929599225521088, 0.004650877323001623, 0.4041396677494049, -0.11583410948514938, 0.09384266287088394, -0.2665364444255829, 0.10659313201904297, -0.0007258215337060392, 0.17057271301746368, -0.21993879973888397, -0.012172622606158257, -0.2855195701122284, 0.31456252932548523, 0.4303750991821289, -0.15116918087005615, -0.3844887316226959, 0.15260553359985352, 0.10028503090143204, -0.11779631674289703, -0.0893026739358902, 0.07417313754558563, -0.2022150456905365, -0.3440389931201935, -0.2627861201763153, 0.11985184997320175, 0.052100230008363724, 0.18779270350933075, 0.1865653544664383, 0.16985957324504852, -0.04063485562801361, 0.07932605594396591, -0.08237564563751221, 0.2110321968793869, -0.10611547529697418, 0.2398410141468048, -0.38015028834342957, -0.03585371747612953, 0.23082871735095978, -0.35072436928749084, 0.06391609460115433, 0.14361460506916046, -0.08977383375167847, 0.14934153854846954, -0.2014250010251999, 0.02564292773604393, 0.14683954417705536, -0.01030973345041275, -0.07080747187137604, 0.5967321991920471, -0.17731882631778717, 0.1225176677107811, -0.03933531790971756, 0.22150015830993652, 0.17533136904239655, -0.09726829081773758, -0.20099784433841705, 0.02921253629028797, -0.04709944128990173, -0.026255324482917786, -0.004236267413944006, 0.3036666214466095, -0.2517155408859253, 0.19874805212020874, 0.04197419062256813, 0.946838915348053, 0.1551632136106491, -0.035202886909246445, -0.08250332623720169, 0.26008284091949463, 0.2958843410015106, -0.054930344223976135, 0.1507401466369629, -0.158185675740242, 0.14318031072616577, -0.13988801836967468, 0.37174907326698303, 0.024082589894533157, 0.07871367037296295, -0.32600685954093933, 0.2762637436389923, -0.11297974735498428, 0.04455345496535301, 0.31013044714927673, 0.27897629141807556, 0.20143331587314606, -0.07003697007894516, -0.07457026094198227, 0.2536313831806183, 0.0005429434822872281, 0.27777302265167236, -0.03572288900613785, 0.10947590321302414, -0.07119610160589218, -0.24540257453918457, -0.4768733084201813, 0.17239002883434296, 0.11515088379383087, 0.5791788697242737, -0.14672324061393738, -0.17634479701519012, -0.03126077353954315, -0.08529093116521835, 0.16841022670269012, 0.4944300353527069, -0.22014975547790527, 0.1638886034488678, 0.11107320338487625, -0.5725210905075073, -0.045284856110811234, 0.14985710382461548, 0.14595761895179749, -0.15260663628578186, -0.4091801345348358, 0.26869210600852966, -0.032855674624443054, 0.0564681813120842, -0.39640098810195923, -0.1484406739473343, -0.19090810418128967, 0.3741452693939209, -0.1792023926973343, 0.21449697017669678, -0.1647873967885971, -0.04863767325878143, 0.2909184396266937, -0.23507170379161835, 0.22710703313350677, -0.2278091460466385, 0.4590778648853302, -0.04452033340930939, -0.0945010557770729, 0.2595265805721283, 0.17447274923324585, 0.026407884433865547, 0.3324267864227295, 0.23924978077411652, -0.39196470379829407, -0.3116985261440277, -0.2662361264228821, -0.41471701860427856, -0.09793233871459961, -0.32033729553222656, -0.0406462587416172, 0.016268005594611168, -0.16706250607967377, -0.20455200970172882, 0.15319325029850006, -0.0788331851363182, -0.025846725329756737, -0.09847265481948853, 0.23052677512168884, 0.11011362820863724, -0.1514817476272583, -0.11564479023218155, 0.008016765117645264, -0.30642247200012207, 0.31578904390335083, 0.06373551487922668, -0.4106082022190094, -0.1858324557542801, -0.21906550228595734, 0.01852951943874359, 0.2886301279067993, -0.11006750911474228, -0.18067339062690735, -0.051325444132089615, 0.46605220437049866, -0.1365680992603302, 0.03898850455880165, -0.3871106505393982, -0.05175943300127983, -0.007331968750804663, 0.019194625318050385, -0.0402105376124382, 0.14938922226428986, -0.28629618883132935, -0.018367506563663483, 0.04887484386563301, -0.10841688513755798, -0.10774524509906769, 0.14462503790855408, 0.1669515073299408, -0.0898909866809845, 0.30204764008522034, -0.05775240808725357, 0.04740488901734352, -0.01736435666680336, 0.3234427869319916, 0.033266693353652954, 0.12577277421951294, 0.44562065601348877, -0.2005935162305832, -0.317117840051651, 0.032035283744335175, -0.11393815279006958, 0.27402347326278687, -0.026622507721185684, 0.00033258373150601983, 0.10690446943044662, 0.2002287358045578, -0.09459391981363297, -0.04877454787492752, 0.04526331648230553, -0.009689857251942158, 0.23020584881305695, 0.32978299260139465, -0.2536877989768982, 0.13359028100967407, 0.22212952375411987, -0.11781501770019531, 0.1502881944179535, 0.11728613823652267, -0.02528439834713936, -0.09636218100786209, 0.3762243688106537, -0.017936386168003082, -0.3311102092266083, -0.16913974285125732, 0.18135082721710205, -0.10410430282354355, -0.09950296580791473, 0.04941413924098015, -0.12655378878116608, -0.12270479649305344, 0.11782515048980713, 0.06478914618492126, 0.1494137942790985, -0.10984556376934052, -0.007593680638819933, 0.48703017830848694, -0.014754327945411205, 0.041862852871418, 0.07482387870550156, -0.10165302455425262, 0.08373263478279114, 0.025660909712314606, 0.16175954043865204, -0.10495046526193619, 0.1110692098736763, 0.09409251809120178, -0.30712953209877014, 0.18332615494728088, -0.18614518642425537, -0.24212169647216797, -0.15431605279445648, -0.2382322996854782, -0.09938158839941025, 0.0010716230608522892, 0.07077760994434357, 0.11904467642307281, -0.2349424660205841, 0.11132679879665375, -0.05781114473938942, -0.03748622536659241, 0.37253230810165405, -0.3498363196849823, 0.1274624913930893, 0.02739257924258709, 0.2546176016330719, -0.3999696671962738, -0.09407471865415573, -0.2399682104587555, 0.06579538434743881, -0.06630343198776245, 0.18392325937747955, -0.4192025661468506, -0.16574440896511078, 0.022547755390405655, -0.18353956937789917, -0.05892453342676163, 0.20870457589626312, 0.3001585304737091, 0.08377863466739655, 0.03935225307941437, 0.2891148030757904, -0.32124799489974976, 0.027419183403253555, 0.3842688500881195, 0.035932715982198715, 0.2576827108860016, -0.19715048372745514, 0.17347268760204315, 0.2555094361305237, -0.07124332338571548, 0.1448286771774292, -0.5685814619064331, -0.02100357413291931, -0.07630878686904907, 0.1479983925819397, -0.011162127368152142, -0.2873938977718353, 0.1720069944858551, 0.10546151548624039, 0.38364261388778687, 0.30447375774383545, 0.42835941910743713, 0.30091196298599243, -0.0581398606300354, -0.23848681151866913, 0.21379569172859192, -0.13270969688892365, -0.11440388858318329, -0.1667642593383789, 0.30643853545188904, 0.18057265877723694, 0.14899934828281403, 0.23618318140506744, -0.22780823707580566, -0.11274146288633347, 0.24994559586048126, -0.06800854206085205, 0.05402764305472374, 0.19832220673561096, -0.2147664874792099, -0.24320706725120544, -0.047012459486722946, -0.0046896664425730705, -0.12259913980960846, 0.31750375032424927, -0.255705326795578, -0.0054937913082540035, -0.054640334099531174, 0.19135433435440063, 0.3290369510650635, 0.04861737787723541, 0.3297331929206848, -0.1634783148765564, -0.12819670140743256, -0.04499918222427368, -0.11852208524942398, 0.1675630509853363, 0.5832505822181702, 0.24535702168941498, 0.029449831694364548, -0.036703694611787796, -0.30671632289886475, 0.007997971028089523, 0.27434292435646057, 0.02801998145878315, 0.25297772884368896, -0.2860071361064911, -0.08431120961904526, -0.07995018362998962, -0.14318710565567017, -0.2550258934497833, -0.0004638314712792635, -0.14552929997444153, -0.11924543231725693, -0.1278754621744156, -0.17349447309970856, -0.11722960323095322, -0.030075553804636, -0.24612437188625336, -0.27864277362823486, 0.013871442526578903, 0.10010379552841187, 0.1381431221961975, 0.22066086530685425, 0.07771109789609909, 0.19070790708065033, -0.06824842095375061, 0.039360325783491135, -0.03094138205051422, 0.12716369330883026, 0.027154628187417984, -0.31728851795196533, -0.1137210950255394, 0.05044897273182869, -0.19106346368789673, -0.14879056811332703, -0.17393508553504944 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
Hi ! That looks like a bug, can you provide some code so that we can reproduce ? It's not supposed to update the original dataset
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
26
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
[ -0.4283033609390259, -0.023008281365036964, -0.16141566634178162, 0.15455444157123566, 0.22215554118156433, 0.026572303846478462, 0.17353075742721558, 0.01602463237941265, 0.13161078095436096, 0.04836121201515198, -0.05531523749232292, 0.46979713439941406, -0.05540449917316437, 0.26090991497039795, 0.17851771414279938, 0.11127587407827377, 0.056117866188287735, 0.33632782101631165, -0.5746411681175232, -0.11774154752492905, -0.22746141254901886, 0.03148174658417702, 0.13422398269176483, -0.29940733313560486, -0.08599486202001572, -0.2852741777896881, -0.15234695374965668, 0.2792096734046936, 0.10302402824163437, 0.2006692737340927, -0.024540038779377937, 0.2603270709514618, 0.23277711868286133, 0.1842171847820282, -0.00010651352204149589, 0.180067241191864, -0.5165371298789978, -0.23138146102428436, -0.3461831510066986, 0.03558078780770302, 0.08685769140720367, -0.10748723894357681, -0.23452837765216827, -0.40775614976882935, -0.033033255487680435, 0.006586224306374788, -0.05745106562972069, -0.36552661657333374, 0.5319626331329346, -0.2607553005218506, 0.1967901885509491, -0.08392678201198578, -0.3489849865436554, -0.13461951911449432, -0.24364110827445984, 0.33120059967041016, 0.1778474897146225, 0.05590788647532463, -0.0032469562720507383, 0.2543792128562927, -0.20881445705890656, 0.24682216346263885, -0.06718791276216507, -0.22855348885059357, 0.18040673434734344, -0.041187893599271774, 0.27592313289642334, -0.007199708838015795, 0.16042472422122955, -0.036273032426834106, 0.39424410462379456, -0.42044705152511597, -0.20601589977741241, -0.27955758571624756, 0.02967342734336853, -0.07315001636743546, -0.18393808603286743, 0.15139803290367126, 0.031784720718860626, 0.24079905450344086, -0.3479441702365875, -0.6103264689445496, -0.049113042652606964, -0.06502900272607803, -0.22648130357265472, -0.37104085087776184, -0.05637851357460022, -0.05674754083156586, 0.051707878708839417, 0.20410117506980896, 0.31270503997802734, 0.09621324390172958, -0.06645813584327698, -0.01886783167719841, -0.03257247060537338, -0.16095708310604095, -0.018942153081297874, 0.010625649243593216, -0.04533728212118149, 0.15597431361675262, 0.32131654024124146, 0.09299235790967941, -0.14437061548233032, 0.03397393971681595, -0.03408247232437134, 0.3395555019378662, 0.027778740972280502, -0.03379698842763901, 0.09923609346151352, 0.014458098448812962, -0.31557226181030273, 0.002739289542660117, -0.013130996376276016, -0.023385126143693924, 0.3279115855693817, -0.03711923584342003, 0.18505170941352844, 0.15784873068332672, 0.008118615485727787, -0.06486659497022629, 0.4454686939716339, -0.016279062256217003, -0.19232653081417084, 0.4015505313873291, 0.2515181005001068, 0.19227683544158936, 0.26258188486099243, 0.16856230795383453, 0.029081067070364952, -0.07616303116083145, -0.18882820010185242, -0.2320702224969864, -0.05221351981163025, 0.1898115873336792, 0.10903265327215195, 0.23896342515945435, 0.24404974281787872, 0.14170530438423157, -0.20224180817604065, -0.03972901031374931, 0.06799664348363876, 0.01233174093067646, 0.3974948823451996, 0.09948231279850006, 0.1880456805229187, -0.019247790798544884, 0.1287674754858017, 0.0050817448645830154, -0.11513778567314148, 0.35268405079841614, -0.08944806456565857, -0.03086700662970543, 0.22136543691158295, 0.27945271134376526, -0.09686657041311264, 0.025472275912761688, -0.4802437424659729, 0.07032950967550278, -0.03627568855881691, -0.1665743589401245, 0.04768054559826851, -0.01701926626265049, -0.04189825430512428, -0.12153194099664688, -0.07740307599306107, 0.08889162540435791, -0.41411077976226807, -0.20601603388786316, 0.26943376660346985, -0.2045716792345047, -0.20470678806304932, 0.06846781075000763, -0.2093198597431183, 0.19203417003154755, -0.15463197231292725, -0.13070698082447052, 0.6175364255905151, -0.028756635263562202, -0.17005394399166107, 0.10505488514900208, -0.13989068567752838, -0.15326689183712006, 0.12878501415252686, 0.3237308859825134, 0.3815205991268158, -0.09806250035762787, -0.3393862545490265, 0.2756698429584503, 0.16235455870628357, 0.2224104255437851, -0.043007735162973404, -0.214323952794075, 0.057866472750902176, -0.033556465059518814, 0.1436239331960678, 0.45690053701400757, 0.2916716933250427, 0.2788126468658447, 0.2946195900440216, -0.2531444728374481, 0.14824575185775757, 0.4189145565032959, -0.216243714094162, -0.022039346396923065, -0.03364448621869087, 0.08528012037277222, -0.4972718358039856, -0.07991362363100052, 0.008084701374173164, -0.43766000866889954, 0.19952601194381714, -0.03583826497197151, -0.30454719066619873, -0.13533850014209747, 0.09991700202226639, 0.12388396263122559, 0.17221088707447052, 0.35849276185035706, -0.11264997720718384, -0.22214755415916443, -0.2444215714931488, 0.15509070456027985, 0.04463283345103264, -0.08222976326942444, -0.670085608959198, 0.35583817958831787, 0.06266903132200241, -0.16865287721157074, -0.12691128253936768, -0.12588857114315033, 0.20001311600208282, -0.07339874655008316, -0.003279865952208638, 0.19532209634780884, 0.03979678824543953, 0.570113480091095, -0.04155779629945755, 0.07787017524242401, -0.04463495686650276, 0.07342685014009476, 0.2657391130924225, -0.14111509919166565, 0.08765234053134918, 0.10149165242910385, -0.23084333539009094, 0.2188255786895752, -0.2309543490409851, 0.038063764572143555, 0.25702592730522156, -0.12720198929309845, 0.19841623306274414, -0.31369516253471375, -0.11441988497972488, -0.36161547899246216, -0.08984687924385071, 0.22555983066558838, 0.28315478563308716, 0.005874903406947851, -0.013512738049030304, 0.08164387196302414, 0.3798673450946808, -0.2001456320285797, 0.059730179607868195, -0.13419599831104279, -0.058119360357522964, 0.0516771599650383, -0.1730564683675766, 0.39167875051498413, 0.15084676444530487, 0.22816048562526703, 0.045965708792209625, 0.01228413451462984, -0.001187397981993854, -0.09196954220533371, 0.02809249237179756, -0.19557419419288635, 0.5252601504325867, 0.312656044960022, -0.02971090003848076, -0.09916125237941742, -0.3101350963115692, 0.10209859162569046, 0.21924975514411926, -0.15096594393253326, -0.1149565726518631, -0.027329355478286743, -0.08342111855745316, 0.10268107801675797, -0.2937077581882477, -0.02261936664581299, 0.024766765534877777, -0.038291085511446, -0.1384621113538742, 0.39341917634010315, -0.04621000215411186, 0.25827285647392273, 0.16602948307991028, 0.014017300680279732, 0.020635686814785004, -0.2808050811290741, -0.06917374581098557, -0.22652509808540344, 0.17114409804344177, 0.13673189282417297, -0.1251925826072693, 0.06408170610666275, 0.3451364040374756, -0.31224825978279114, 0.02007402665913105, -0.47748246788978577, 0.07028812915086746, 0.05131078138947487, 0.22899578511714935, 0.030948014929890633, 0.016202419996261597, 0.3911517858505249, -0.19513264298439026, -0.14028213918209076, 0.030987318605184555, -0.3719809651374817, -0.19353705644607544, -0.01765119470655918, 0.1759660691022873, 0.16198453307151794, -0.12335588783025742, -0.17087402939796448, -0.04869067668914795, -0.19086800515651703, -0.02890549972653389, 0.08288068324327469, 0.015055820345878601, -0.053884100168943405, 0.16555561125278473, -0.21160100400447845, 0.34675276279449463, 0.17732325196266174, -0.32470765709877014, -0.35812947154045105, 0.2650371491909027, -0.09470570087432861, -0.13647153973579407, -0.03267369419336319, -0.21168962121009827, 0.08541025221347809, 0.5363093018531799, -0.5030611157417297, -0.11275627464056015, 0.13349193334579468, 0.18154995143413544, -0.3105264902114868, 0.3299279510974884, 0.5652551054954529, 0.1672389805316925, -0.12299506366252899, -0.09617557376623154, -0.22540183365345, 0.020850788801908493, 0.11836440861225128, 0.03327656164765358, -0.39268365502357483, 0.1982509046792984, -0.13815543055534363, 0.2296518236398697, -0.30190107226371765, -0.11575127393007278, 0.24243825674057007, -0.14659936726093292, 0.4507811367511749, -0.14948560297489166, -0.04187529534101486, -0.3553687632083893, -0.11253760010004044, -0.31578677892684937, -0.10449882596731186, -0.0634642094373703, -0.13876324892044067, -0.11715754121541977, -0.10128463804721832, -0.5017565488815308, -0.2928970754146576, 0.1465829610824585, -0.10273431241512299, 0.23990179598331451, 0.15557710826396942, 0.3166545629501343, -0.10534583032131195, 0.1744638830423355, 0.14278675615787506, -0.03317191079258919, 0.27471208572387695, -0.14594556391239166, -0.3181426227092743, 0.10122577100992203, -0.08294600993394852, 0.07249137759208679, -0.1989378035068512, -0.1990206092596054, 0.07646333426237106, -0.2620548903942108, -0.24845999479293823, -0.21581749618053436, 0.7965018153190613, 0.2421426624059677, 0.38098281621932983, 0.31965172290802, -0.45254144072532654, -0.35335052013397217, 0.18772490322589874, -0.09754185378551483, -0.4541647732257843, -0.0318249948322773, 0.6746238470077515, -0.01857919804751873, 0.08985114097595215, -0.11046727746725082, 0.48968368768692017, -0.41520121693611145, -0.007728947792202234, -0.2255905121564865, -0.26986220479011536, -0.6374182105064392, -0.20044028759002686, -0.29320961236953735, -0.06457840651273727, -0.07572779059410095, 0.20299305021762848, -0.38120606541633606, -0.24684110283851624, -0.06908217817544937, 0.13292688131332397, 0.44378432631492615, 0.3278329372406006, -0.06413953006267548, -0.0312091875821352, 0.24578922986984253, 0.06227433681488037, 0.3784467279911041, -0.26163822412490845, 0.15322178602218628, 0.1913454681634903, 0.14274215698242188, 0.07489432394504547, 0.3150380551815033, 0.17643451690673828, -0.20517988502979279, 0.02209695428609848, -0.06648571789264679, -0.4147898852825165, 0.14634928107261658, -0.30950284004211426, -0.1771959513425827, -0.02579702064394951, -0.27624234557151794, 0.5010859966278076, -0.059521812945604324, -0.12448468804359436, -0.18347550928592682, -0.08055531978607178, -0.3643137812614441, 0.4154721200466156, 0.1648016721010208, 0.6950461864471436, -0.11034875363111496, 0.3431367874145508, 0.2593013346195221, -0.025915171951055527, -0.13279522955417633, -0.08912404626607895, -0.08542805165052414, -0.380445271730423, -0.3120884895324707, -0.02439946122467518, -0.07896552979946136, -0.03661090508103371, 0.3623434901237488, -0.3414168953895569, 0.01497464720159769, -0.08402858674526215, -0.09403165429830551, -0.15479984879493713, -0.015792250633239746, -0.31014594435691833, -0.24301038682460785, -0.38720613718032837, 0.13869519531726837, 0.029418829828500748, -0.08386259526014328, -0.11733824014663696, 0.1234135553240776, 0.1430487483739853, 0.05662960931658745, 0.3375110924243927, 0.06858129799365997, -0.09136231243610382, 0.3398621678352356, -0.33791351318359375, -0.5016369223594666, -0.5246484279632568, 0.38033556938171387, 0.25172853469848633, 0.08021610975265503, 0.10060032457113266, 0.02515183575451374, -0.07941576093435287, 0.24264483153820038, -0.1682802438735962, -0.007076717913150787, 0.5192754864692688, 0.07647622376680374, 0.04422541707754135, 0.12554730474948883, -0.14169390499591827, -0.10197209566831589, 0.005908621475100517, -0.1278136968612671, -0.1410326212644577, -0.33589470386505127, 0.07461590319871902, 0.1822190284729004, 0.2122630625963211, -0.17882944643497467, 0.11346716433763504, 0.1911645531654358, 0.017310962080955505, 0.26533156633377075, 0.1948641687631607, -0.24183590710163116, -0.08127813041210175, 0.516575038433075, 0.03846903517842293, -0.06579563021659851, 0.388698935508728, -0.25658929347991943, 0.05144927650690079, -0.39932575821876526, 0.346990168094635, 0.0926227867603302, -0.26597118377685547, 0.4193163216114044, -0.06588002294301987, -0.02432115562260151, -0.030156292021274567, 0.061155859380960464, 0.10961834341287613, 0.08601909130811691, 0.06211570277810097, -0.17326420545578003, -0.3621085286140442, 0.24907498061656952, 0.472777783870697, 0.3719693422317505, 0.4217846989631653, 0.009315908886492252, -0.24375078082084656, 0.16222910583019257, -0.38835322856903076, 0.2019902616739273, 0.22196370363235474, 0.22875958681106567, 0.06614696979522705, -0.07248997688293457, -0.26397469639778137, -0.30835890769958496, 0.2338026911020279, -0.1353239268064499, -0.170939639210701, -0.3024231791496277, -0.2044217735528946, 0.06643946468830109, -0.26634982228279114, 0.192276731133461, -0.13771384954452515, -0.3227854073047638, 0.128098264336586, -0.20402859151363373, 0.1430259793996811, 0.22327208518981934, 0.06866958737373352, 0.06235853582620621, 0.12684878706932068, 0.2516564726829529, -0.20544806122779846, -0.12574797868728638, -0.11821625381708145, 0.057856518775224686, -0.10751225054264069, 0.2247495800256729, -0.1669965237379074, -0.03807326778769493, -0.3023141920566559, -0.025032712146639824, 0.5884454846382141, 0.2880801558494568, 0.27008292078971863, -0.20149119198322296, -0.09050238132476807, 0.11948264390230179, 0.4243675768375397, -0.042715221643447876, -0.33222731947898865, -0.08792091906070709, 0.23311747610569, 0.2800786793231964, -0.2804100811481476, 0.03090611845254898, 0.22573363780975342, -0.42143574357032776, 0.051241930574178696, 0.20146341621875763, 0.09253089129924774, -0.09308675676584244, -0.07863614708185196, 0.010284245945513248, 0.3001403212547302, -0.07209676504135132, 0.17096784710884094, 0.5765984654426575, -0.24585698544979095, 0.04255545884370804, 0.09059704095125198, 0.3996850252151489, 0.12299498915672302, 0.31309252977371216, -0.08735878765583038, 0.35960933566093445, -0.1860954612493515, 0.1565093845129013, -0.21988540887832642, -0.35816270112991333, 0.3162330090999603, 0.020412247627973557, -0.22357912361621857, 0.2590894401073456, -0.027812128886580467, -0.11409628391265869, 0.031433477997779846, -0.2525472342967987, -0.14173243939876556, 0.6293142437934875, -0.26827099919319153, -0.01774490252137184, -0.09328938275575638, -0.23650561273097992, 0.22036972641944885, 0.31122148036956787, -0.10947990417480469, -0.17275984585285187, 0.2645234763622284, 0.11055629700422287, 0.12717485427856445, 0.14865553379058838, 0.23097190260887146, -0.25507789850234985, -0.16646718978881836, -0.2662407457828522, 0.07090027630329132, 0.11954280734062195, 0.030452730134129524, 0.10920153558254242, 0.01632736809551716, -0.0308658666908741, 0.007121772971004248, 0.04357188194990158, 0.22789229452610016, 0.1879364252090454, -0.1287955343723297, -0.18498340249061584, -0.13527508080005646, 0.1211862564086914, 0.20403064787387848, 0.35089391469955444, 0.22932691872119904, -0.19871921837329865, -0.055061955004930496, 0.17216357588768005, 0.21983015537261963, -0.03255760669708252, 0.14675986766815186, 0.3180052638053894, -0.19676806032657623, -0.12014387547969818, -0.174783855676651, 0.04537224397063255, -0.13135313987731934, 0.30898988246917725, -0.28863462805747986, 0.18902048468589783, 0.2204885482788086, 0.13952726125717163, 0.2037494033575058, 0.396359920501709, 0.06474630534648895, -0.3646923005580902, -0.11546354740858078, -0.150401309132576, -0.4069748818874359, -0.060465771704912186, 0.497341513633728, -0.02687028981745243, -0.3048434853553772, 0.23093682527542114, 0.4784661829471588, 0.2002841830253601, 0.029570139944553375, -0.13122887909412384, 0.29818642139434814, 0.20651543140411377, 0.05612163990736008, -0.2139463573694229, -0.0052232202142477036, 0.29902762174606323, -0.07808418571949005, -0.36811956763267517, -0.00032588778412900865, 0.18780013918876648, 0.21391749382019043, 0.09870557487010956, -0.035573843866586685, -0.2439204603433609, 0.24335160851478577, 0.4632108509540558, -0.04504479467868805, -0.0008512877393513918, -0.3425736129283905, 0.08336697518825531, 0.2639933228492737, -0.15228143334388733, 0.06335732340812683, -0.16845102608203888, 0.34328439831733704, 0.14310187101364136, -0.20818427205085754, 0.3099769055843353, -0.15906600654125214, -0.13175082206726074, 0.21362416446208954, 0.17799903452396393, -0.5309627652168274, 0.15941721200942993, 0.12643350660800934, -0.11932723969221115, 0.17001786828041077, 0.5477780103683472, -0.02705654315650463, 0.2775888741016388, -0.03405965492129326, -0.20356754958629608, 0.4086516797542572, -0.10026972740888596, -0.4852132797241211, -0.021546319127082825, 0.1747816801071167, -0.19819818437099457, 0.08603900671005249, -0.28379228711128235, 0.408846378326416, 0.2702557146549225, -0.12112533301115036, 0.11489204317331314, 0.37751856446266174, -0.14271265268325806, -0.03350969776511192, 0.07398014515638351, 0.47503647208213806, 0.1976754367351532, -0.46635061502456665, -0.2947937548160553, -0.19806502759456635 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
Hi, I experimented with RAG. Actually, you can run the [use_own_knowldge_dataset.py](https://github.com/shamanez/transformers/blob/rag-end-to-end-retrieval/examples/research_projects/rag/use_own_knowledge_dataset.py#L80). In the 80 you can save the dataset object to the disk with save_to_disk. Then in order to compute the embeddings in this use **load_from_disk**. Then finally save it. You can see the original dataset object (CSV after splitting also will be changed) One more thing- when I save the dataset object with **save_to_disk** it name the arrow file with cache.... rather than using dataset. arrow. Can you add a variable that we can feed a name to save_to_disk function?
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
91
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
[ -0.4283033609390259, -0.023008281365036964, -0.16141566634178162, 0.15455444157123566, 0.22215554118156433, 0.026572303846478462, 0.17353075742721558, 0.01602463237941265, 0.13161078095436096, 0.04836121201515198, -0.05531523749232292, 0.46979713439941406, -0.05540449917316437, 0.26090991497039795, 0.17851771414279938, 0.11127587407827377, 0.056117866188287735, 0.33632782101631165, -0.5746411681175232, -0.11774154752492905, -0.22746141254901886, 0.03148174658417702, 0.13422398269176483, -0.29940733313560486, -0.08599486202001572, -0.2852741777896881, -0.15234695374965668, 0.2792096734046936, 0.10302402824163437, 0.2006692737340927, -0.024540038779377937, 0.2603270709514618, 0.23277711868286133, 0.1842171847820282, -0.00010651352204149589, 0.180067241191864, -0.5165371298789978, -0.23138146102428436, -0.3461831510066986, 0.03558078780770302, 0.08685769140720367, -0.10748723894357681, -0.23452837765216827, -0.40775614976882935, -0.033033255487680435, 0.006586224306374788, -0.05745106562972069, -0.36552661657333374, 0.5319626331329346, -0.2607553005218506, 0.1967901885509491, -0.08392678201198578, -0.3489849865436554, -0.13461951911449432, -0.24364110827445984, 0.33120059967041016, 0.1778474897146225, 0.05590788647532463, -0.0032469562720507383, 0.2543792128562927, -0.20881445705890656, 0.24682216346263885, -0.06718791276216507, -0.22855348885059357, 0.18040673434734344, -0.041187893599271774, 0.27592313289642334, -0.007199708838015795, 0.16042472422122955, -0.036273032426834106, 0.39424410462379456, -0.42044705152511597, -0.20601589977741241, -0.27955758571624756, 0.02967342734336853, -0.07315001636743546, -0.18393808603286743, 0.15139803290367126, 0.031784720718860626, 0.24079905450344086, -0.3479441702365875, -0.6103264689445496, -0.049113042652606964, -0.06502900272607803, -0.22648130357265472, -0.37104085087776184, -0.05637851357460022, -0.05674754083156586, 0.051707878708839417, 0.20410117506980896, 0.31270503997802734, 0.09621324390172958, -0.06645813584327698, -0.01886783167719841, -0.03257247060537338, -0.16095708310604095, -0.018942153081297874, 0.010625649243593216, -0.04533728212118149, 0.15597431361675262, 0.32131654024124146, 0.09299235790967941, -0.14437061548233032, 0.03397393971681595, -0.03408247232437134, 0.3395555019378662, 0.027778740972280502, -0.03379698842763901, 0.09923609346151352, 0.014458098448812962, -0.31557226181030273, 0.002739289542660117, -0.013130996376276016, -0.023385126143693924, 0.3279115855693817, -0.03711923584342003, 0.18505170941352844, 0.15784873068332672, 0.008118615485727787, -0.06486659497022629, 0.4454686939716339, -0.016279062256217003, -0.19232653081417084, 0.4015505313873291, 0.2515181005001068, 0.19227683544158936, 0.26258188486099243, 0.16856230795383453, 0.029081067070364952, -0.07616303116083145, -0.18882820010185242, -0.2320702224969864, -0.05221351981163025, 0.1898115873336792, 0.10903265327215195, 0.23896342515945435, 0.24404974281787872, 0.14170530438423157, -0.20224180817604065, -0.03972901031374931, 0.06799664348363876, 0.01233174093067646, 0.3974948823451996, 0.09948231279850006, 0.1880456805229187, -0.019247790798544884, 0.1287674754858017, 0.0050817448645830154, -0.11513778567314148, 0.35268405079841614, -0.08944806456565857, -0.03086700662970543, 0.22136543691158295, 0.27945271134376526, -0.09686657041311264, 0.025472275912761688, -0.4802437424659729, 0.07032950967550278, -0.03627568855881691, -0.1665743589401245, 0.04768054559826851, -0.01701926626265049, -0.04189825430512428, -0.12153194099664688, -0.07740307599306107, 0.08889162540435791, -0.41411077976226807, -0.20601603388786316, 0.26943376660346985, -0.2045716792345047, -0.20470678806304932, 0.06846781075000763, -0.2093198597431183, 0.19203417003154755, -0.15463197231292725, -0.13070698082447052, 0.6175364255905151, -0.028756635263562202, -0.17005394399166107, 0.10505488514900208, -0.13989068567752838, -0.15326689183712006, 0.12878501415252686, 0.3237308859825134, 0.3815205991268158, -0.09806250035762787, -0.3393862545490265, 0.2756698429584503, 0.16235455870628357, 0.2224104255437851, -0.043007735162973404, -0.214323952794075, 0.057866472750902176, -0.033556465059518814, 0.1436239331960678, 0.45690053701400757, 0.2916716933250427, 0.2788126468658447, 0.2946195900440216, -0.2531444728374481, 0.14824575185775757, 0.4189145565032959, -0.216243714094162, -0.022039346396923065, -0.03364448621869087, 0.08528012037277222, -0.4972718358039856, -0.07991362363100052, 0.008084701374173164, -0.43766000866889954, 0.19952601194381714, -0.03583826497197151, -0.30454719066619873, -0.13533850014209747, 0.09991700202226639, 0.12388396263122559, 0.17221088707447052, 0.35849276185035706, -0.11264997720718384, -0.22214755415916443, -0.2444215714931488, 0.15509070456027985, 0.04463283345103264, -0.08222976326942444, -0.670085608959198, 0.35583817958831787, 0.06266903132200241, -0.16865287721157074, -0.12691128253936768, -0.12588857114315033, 0.20001311600208282, -0.07339874655008316, -0.003279865952208638, 0.19532209634780884, 0.03979678824543953, 0.570113480091095, -0.04155779629945755, 0.07787017524242401, -0.04463495686650276, 0.07342685014009476, 0.2657391130924225, -0.14111509919166565, 0.08765234053134918, 0.10149165242910385, -0.23084333539009094, 0.2188255786895752, -0.2309543490409851, 0.038063764572143555, 0.25702592730522156, -0.12720198929309845, 0.19841623306274414, -0.31369516253471375, -0.11441988497972488, -0.36161547899246216, -0.08984687924385071, 0.22555983066558838, 0.28315478563308716, 0.005874903406947851, -0.013512738049030304, 0.08164387196302414, 0.3798673450946808, -0.2001456320285797, 0.059730179607868195, -0.13419599831104279, -0.058119360357522964, 0.0516771599650383, -0.1730564683675766, 0.39167875051498413, 0.15084676444530487, 0.22816048562526703, 0.045965708792209625, 0.01228413451462984, -0.001187397981993854, -0.09196954220533371, 0.02809249237179756, -0.19557419419288635, 0.5252601504325867, 0.312656044960022, -0.02971090003848076, -0.09916125237941742, -0.3101350963115692, 0.10209859162569046, 0.21924975514411926, -0.15096594393253326, -0.1149565726518631, -0.027329355478286743, -0.08342111855745316, 0.10268107801675797, -0.2937077581882477, -0.02261936664581299, 0.024766765534877777, -0.038291085511446, -0.1384621113538742, 0.39341917634010315, -0.04621000215411186, 0.25827285647392273, 0.16602948307991028, 0.014017300680279732, 0.020635686814785004, -0.2808050811290741, -0.06917374581098557, -0.22652509808540344, 0.17114409804344177, 0.13673189282417297, -0.1251925826072693, 0.06408170610666275, 0.3451364040374756, -0.31224825978279114, 0.02007402665913105, -0.47748246788978577, 0.07028812915086746, 0.05131078138947487, 0.22899578511714935, 0.030948014929890633, 0.016202419996261597, 0.3911517858505249, -0.19513264298439026, -0.14028213918209076, 0.030987318605184555, -0.3719809651374817, -0.19353705644607544, -0.01765119470655918, 0.1759660691022873, 0.16198453307151794, -0.12335588783025742, -0.17087402939796448, -0.04869067668914795, -0.19086800515651703, -0.02890549972653389, 0.08288068324327469, 0.015055820345878601, -0.053884100168943405, 0.16555561125278473, -0.21160100400447845, 0.34675276279449463, 0.17732325196266174, -0.32470765709877014, -0.35812947154045105, 0.2650371491909027, -0.09470570087432861, -0.13647153973579407, -0.03267369419336319, -0.21168962121009827, 0.08541025221347809, 0.5363093018531799, -0.5030611157417297, -0.11275627464056015, 0.13349193334579468, 0.18154995143413544, -0.3105264902114868, 0.3299279510974884, 0.5652551054954529, 0.1672389805316925, -0.12299506366252899, -0.09617557376623154, -0.22540183365345, 0.020850788801908493, 0.11836440861225128, 0.03327656164765358, -0.39268365502357483, 0.1982509046792984, -0.13815543055534363, 0.2296518236398697, -0.30190107226371765, -0.11575127393007278, 0.24243825674057007, -0.14659936726093292, 0.4507811367511749, -0.14948560297489166, -0.04187529534101486, -0.3553687632083893, -0.11253760010004044, -0.31578677892684937, -0.10449882596731186, -0.0634642094373703, -0.13876324892044067, -0.11715754121541977, -0.10128463804721832, -0.5017565488815308, -0.2928970754146576, 0.1465829610824585, -0.10273431241512299, 0.23990179598331451, 0.15557710826396942, 0.3166545629501343, -0.10534583032131195, 0.1744638830423355, 0.14278675615787506, -0.03317191079258919, 0.27471208572387695, -0.14594556391239166, -0.3181426227092743, 0.10122577100992203, -0.08294600993394852, 0.07249137759208679, -0.1989378035068512, -0.1990206092596054, 0.07646333426237106, -0.2620548903942108, -0.24845999479293823, -0.21581749618053436, 0.7965018153190613, 0.2421426624059677, 0.38098281621932983, 0.31965172290802, -0.45254144072532654, -0.35335052013397217, 0.18772490322589874, -0.09754185378551483, -0.4541647732257843, -0.0318249948322773, 0.6746238470077515, -0.01857919804751873, 0.08985114097595215, -0.11046727746725082, 0.48968368768692017, -0.41520121693611145, -0.007728947792202234, -0.2255905121564865, -0.26986220479011536, -0.6374182105064392, -0.20044028759002686, -0.29320961236953735, -0.06457840651273727, -0.07572779059410095, 0.20299305021762848, -0.38120606541633606, -0.24684110283851624, -0.06908217817544937, 0.13292688131332397, 0.44378432631492615, 0.3278329372406006, -0.06413953006267548, -0.0312091875821352, 0.24578922986984253, 0.06227433681488037, 0.3784467279911041, -0.26163822412490845, 0.15322178602218628, 0.1913454681634903, 0.14274215698242188, 0.07489432394504547, 0.3150380551815033, 0.17643451690673828, -0.20517988502979279, 0.02209695428609848, -0.06648571789264679, -0.4147898852825165, 0.14634928107261658, -0.30950284004211426, -0.1771959513425827, -0.02579702064394951, -0.27624234557151794, 0.5010859966278076, -0.059521812945604324, -0.12448468804359436, -0.18347550928592682, -0.08055531978607178, -0.3643137812614441, 0.4154721200466156, 0.1648016721010208, 0.6950461864471436, -0.11034875363111496, 0.3431367874145508, 0.2593013346195221, -0.025915171951055527, -0.13279522955417633, -0.08912404626607895, -0.08542805165052414, -0.380445271730423, -0.3120884895324707, -0.02439946122467518, -0.07896552979946136, -0.03661090508103371, 0.3623434901237488, -0.3414168953895569, 0.01497464720159769, -0.08402858674526215, -0.09403165429830551, -0.15479984879493713, -0.015792250633239746, -0.31014594435691833, -0.24301038682460785, -0.38720613718032837, 0.13869519531726837, 0.029418829828500748, -0.08386259526014328, -0.11733824014663696, 0.1234135553240776, 0.1430487483739853, 0.05662960931658745, 0.3375110924243927, 0.06858129799365997, -0.09136231243610382, 0.3398621678352356, -0.33791351318359375, -0.5016369223594666, -0.5246484279632568, 0.38033556938171387, 0.25172853469848633, 0.08021610975265503, 0.10060032457113266, 0.02515183575451374, -0.07941576093435287, 0.24264483153820038, -0.1682802438735962, -0.007076717913150787, 0.5192754864692688, 0.07647622376680374, 0.04422541707754135, 0.12554730474948883, -0.14169390499591827, -0.10197209566831589, 0.005908621475100517, -0.1278136968612671, -0.1410326212644577, -0.33589470386505127, 0.07461590319871902, 0.1822190284729004, 0.2122630625963211, -0.17882944643497467, 0.11346716433763504, 0.1911645531654358, 0.017310962080955505, 0.26533156633377075, 0.1948641687631607, -0.24183590710163116, -0.08127813041210175, 0.516575038433075, 0.03846903517842293, -0.06579563021659851, 0.388698935508728, -0.25658929347991943, 0.05144927650690079, -0.39932575821876526, 0.346990168094635, 0.0926227867603302, -0.26597118377685547, 0.4193163216114044, -0.06588002294301987, -0.02432115562260151, -0.030156292021274567, 0.061155859380960464, 0.10961834341287613, 0.08601909130811691, 0.06211570277810097, -0.17326420545578003, -0.3621085286140442, 0.24907498061656952, 0.472777783870697, 0.3719693422317505, 0.4217846989631653, 0.009315908886492252, -0.24375078082084656, 0.16222910583019257, -0.38835322856903076, 0.2019902616739273, 0.22196370363235474, 0.22875958681106567, 0.06614696979522705, -0.07248997688293457, -0.26397469639778137, -0.30835890769958496, 0.2338026911020279, -0.1353239268064499, -0.170939639210701, -0.3024231791496277, -0.2044217735528946, 0.06643946468830109, -0.26634982228279114, 0.192276731133461, -0.13771384954452515, -0.3227854073047638, 0.128098264336586, -0.20402859151363373, 0.1430259793996811, 0.22327208518981934, 0.06866958737373352, 0.06235853582620621, 0.12684878706932068, 0.2516564726829529, -0.20544806122779846, -0.12574797868728638, -0.11821625381708145, 0.057856518775224686, -0.10751225054264069, 0.2247495800256729, -0.1669965237379074, -0.03807326778769493, -0.3023141920566559, -0.025032712146639824, 0.5884454846382141, 0.2880801558494568, 0.27008292078971863, -0.20149119198322296, -0.09050238132476807, 0.11948264390230179, 0.4243675768375397, -0.042715221643447876, -0.33222731947898865, -0.08792091906070709, 0.23311747610569, 0.2800786793231964, -0.2804100811481476, 0.03090611845254898, 0.22573363780975342, -0.42143574357032776, 0.051241930574178696, 0.20146341621875763, 0.09253089129924774, -0.09308675676584244, -0.07863614708185196, 0.010284245945513248, 0.3001403212547302, -0.07209676504135132, 0.17096784710884094, 0.5765984654426575, -0.24585698544979095, 0.04255545884370804, 0.09059704095125198, 0.3996850252151489, 0.12299498915672302, 0.31309252977371216, -0.08735878765583038, 0.35960933566093445, -0.1860954612493515, 0.1565093845129013, -0.21988540887832642, -0.35816270112991333, 0.3162330090999603, 0.020412247627973557, -0.22357912361621857, 0.2590894401073456, -0.027812128886580467, -0.11409628391265869, 0.031433477997779846, -0.2525472342967987, -0.14173243939876556, 0.6293142437934875, -0.26827099919319153, -0.01774490252137184, -0.09328938275575638, -0.23650561273097992, 0.22036972641944885, 0.31122148036956787, -0.10947990417480469, -0.17275984585285187, 0.2645234763622284, 0.11055629700422287, 0.12717485427856445, 0.14865553379058838, 0.23097190260887146, -0.25507789850234985, -0.16646718978881836, -0.2662407457828522, 0.07090027630329132, 0.11954280734062195, 0.030452730134129524, 0.10920153558254242, 0.01632736809551716, -0.0308658666908741, 0.007121772971004248, 0.04357188194990158, 0.22789229452610016, 0.1879364252090454, -0.1287955343723297, -0.18498340249061584, -0.13527508080005646, 0.1211862564086914, 0.20403064787387848, 0.35089391469955444, 0.22932691872119904, -0.19871921837329865, -0.055061955004930496, 0.17216357588768005, 0.21983015537261963, -0.03255760669708252, 0.14675986766815186, 0.3180052638053894, -0.19676806032657623, -0.12014387547969818, -0.174783855676651, 0.04537224397063255, -0.13135313987731934, 0.30898988246917725, -0.28863462805747986, 0.18902048468589783, 0.2204885482788086, 0.13952726125717163, 0.2037494033575058, 0.396359920501709, 0.06474630534648895, -0.3646923005580902, -0.11546354740858078, -0.150401309132576, -0.4069748818874359, -0.060465771704912186, 0.497341513633728, -0.02687028981745243, -0.3048434853553772, 0.23093682527542114, 0.4784661829471588, 0.2002841830253601, 0.029570139944553375, -0.13122887909412384, 0.29818642139434814, 0.20651543140411377, 0.05612163990736008, -0.2139463573694229, -0.0052232202142477036, 0.29902762174606323, -0.07808418571949005, -0.36811956763267517, -0.00032588778412900865, 0.18780013918876648, 0.21391749382019043, 0.09870557487010956, -0.035573843866586685, -0.2439204603433609, 0.24335160851478577, 0.4632108509540558, -0.04504479467868805, -0.0008512877393513918, -0.3425736129283905, 0.08336697518825531, 0.2639933228492737, -0.15228143334388733, 0.06335732340812683, -0.16845102608203888, 0.34328439831733704, 0.14310187101364136, -0.20818427205085754, 0.3099769055843353, -0.15906600654125214, -0.13175082206726074, 0.21362416446208954, 0.17799903452396393, -0.5309627652168274, 0.15941721200942993, 0.12643350660800934, -0.11932723969221115, 0.17001786828041077, 0.5477780103683472, -0.02705654315650463, 0.2775888741016388, -0.03405965492129326, -0.20356754958629608, 0.4086516797542572, -0.10026972740888596, -0.4852132797241211, -0.021546319127082825, 0.1747816801071167, -0.19819818437099457, 0.08603900671005249, -0.28379228711128235, 0.408846378326416, 0.2702557146549225, -0.12112533301115036, 0.11489204317331314, 0.37751856446266174, -0.14271265268325806, -0.03350969776511192, 0.07398014515638351, 0.47503647208213806, 0.1976754367351532, -0.46635061502456665, -0.2947937548160553, -0.19806502759456635 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
@lhoestq I also found that cache in tmp directory gets updated after transformations. This is really problematic when using datasets interactively. Let's say we use the shards function to a dataset loaded with csv, atm when we do transformations to shards and combine them it updates the original csv cache.
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
50
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
[ -0.4283033609390259, -0.023008281365036964, -0.16141566634178162, 0.15455444157123566, 0.22215554118156433, 0.026572303846478462, 0.17353075742721558, 0.01602463237941265, 0.13161078095436096, 0.04836121201515198, -0.05531523749232292, 0.46979713439941406, -0.05540449917316437, 0.26090991497039795, 0.17851771414279938, 0.11127587407827377, 0.056117866188287735, 0.33632782101631165, -0.5746411681175232, -0.11774154752492905, -0.22746141254901886, 0.03148174658417702, 0.13422398269176483, -0.29940733313560486, -0.08599486202001572, -0.2852741777896881, -0.15234695374965668, 0.2792096734046936, 0.10302402824163437, 0.2006692737340927, -0.024540038779377937, 0.2603270709514618, 0.23277711868286133, 0.1842171847820282, -0.00010651352204149589, 0.180067241191864, -0.5165371298789978, -0.23138146102428436, -0.3461831510066986, 0.03558078780770302, 0.08685769140720367, -0.10748723894357681, -0.23452837765216827, -0.40775614976882935, -0.033033255487680435, 0.006586224306374788, -0.05745106562972069, -0.36552661657333374, 0.5319626331329346, -0.2607553005218506, 0.1967901885509491, -0.08392678201198578, -0.3489849865436554, -0.13461951911449432, -0.24364110827445984, 0.33120059967041016, 0.1778474897146225, 0.05590788647532463, -0.0032469562720507383, 0.2543792128562927, -0.20881445705890656, 0.24682216346263885, -0.06718791276216507, -0.22855348885059357, 0.18040673434734344, -0.041187893599271774, 0.27592313289642334, -0.007199708838015795, 0.16042472422122955, -0.036273032426834106, 0.39424410462379456, -0.42044705152511597, -0.20601589977741241, -0.27955758571624756, 0.02967342734336853, -0.07315001636743546, -0.18393808603286743, 0.15139803290367126, 0.031784720718860626, 0.24079905450344086, -0.3479441702365875, -0.6103264689445496, -0.049113042652606964, -0.06502900272607803, -0.22648130357265472, -0.37104085087776184, -0.05637851357460022, -0.05674754083156586, 0.051707878708839417, 0.20410117506980896, 0.31270503997802734, 0.09621324390172958, -0.06645813584327698, -0.01886783167719841, -0.03257247060537338, -0.16095708310604095, -0.018942153081297874, 0.010625649243593216, -0.04533728212118149, 0.15597431361675262, 0.32131654024124146, 0.09299235790967941, -0.14437061548233032, 0.03397393971681595, -0.03408247232437134, 0.3395555019378662, 0.027778740972280502, -0.03379698842763901, 0.09923609346151352, 0.014458098448812962, -0.31557226181030273, 0.002739289542660117, -0.013130996376276016, -0.023385126143693924, 0.3279115855693817, -0.03711923584342003, 0.18505170941352844, 0.15784873068332672, 0.008118615485727787, -0.06486659497022629, 0.4454686939716339, -0.016279062256217003, -0.19232653081417084, 0.4015505313873291, 0.2515181005001068, 0.19227683544158936, 0.26258188486099243, 0.16856230795383453, 0.029081067070364952, -0.07616303116083145, -0.18882820010185242, -0.2320702224969864, -0.05221351981163025, 0.1898115873336792, 0.10903265327215195, 0.23896342515945435, 0.24404974281787872, 0.14170530438423157, -0.20224180817604065, -0.03972901031374931, 0.06799664348363876, 0.01233174093067646, 0.3974948823451996, 0.09948231279850006, 0.1880456805229187, -0.019247790798544884, 0.1287674754858017, 0.0050817448645830154, -0.11513778567314148, 0.35268405079841614, -0.08944806456565857, -0.03086700662970543, 0.22136543691158295, 0.27945271134376526, -0.09686657041311264, 0.025472275912761688, -0.4802437424659729, 0.07032950967550278, -0.03627568855881691, -0.1665743589401245, 0.04768054559826851, -0.01701926626265049, -0.04189825430512428, -0.12153194099664688, -0.07740307599306107, 0.08889162540435791, -0.41411077976226807, -0.20601603388786316, 0.26943376660346985, -0.2045716792345047, -0.20470678806304932, 0.06846781075000763, -0.2093198597431183, 0.19203417003154755, -0.15463197231292725, -0.13070698082447052, 0.6175364255905151, -0.028756635263562202, -0.17005394399166107, 0.10505488514900208, -0.13989068567752838, -0.15326689183712006, 0.12878501415252686, 0.3237308859825134, 0.3815205991268158, -0.09806250035762787, -0.3393862545490265, 0.2756698429584503, 0.16235455870628357, 0.2224104255437851, -0.043007735162973404, -0.214323952794075, 0.057866472750902176, -0.033556465059518814, 0.1436239331960678, 0.45690053701400757, 0.2916716933250427, 0.2788126468658447, 0.2946195900440216, -0.2531444728374481, 0.14824575185775757, 0.4189145565032959, -0.216243714094162, -0.022039346396923065, -0.03364448621869087, 0.08528012037277222, -0.4972718358039856, -0.07991362363100052, 0.008084701374173164, -0.43766000866889954, 0.19952601194381714, -0.03583826497197151, -0.30454719066619873, -0.13533850014209747, 0.09991700202226639, 0.12388396263122559, 0.17221088707447052, 0.35849276185035706, -0.11264997720718384, -0.22214755415916443, -0.2444215714931488, 0.15509070456027985, 0.04463283345103264, -0.08222976326942444, -0.670085608959198, 0.35583817958831787, 0.06266903132200241, -0.16865287721157074, -0.12691128253936768, -0.12588857114315033, 0.20001311600208282, -0.07339874655008316, -0.003279865952208638, 0.19532209634780884, 0.03979678824543953, 0.570113480091095, -0.04155779629945755, 0.07787017524242401, -0.04463495686650276, 0.07342685014009476, 0.2657391130924225, -0.14111509919166565, 0.08765234053134918, 0.10149165242910385, -0.23084333539009094, 0.2188255786895752, -0.2309543490409851, 0.038063764572143555, 0.25702592730522156, -0.12720198929309845, 0.19841623306274414, -0.31369516253471375, -0.11441988497972488, -0.36161547899246216, -0.08984687924385071, 0.22555983066558838, 0.28315478563308716, 0.005874903406947851, -0.013512738049030304, 0.08164387196302414, 0.3798673450946808, -0.2001456320285797, 0.059730179607868195, -0.13419599831104279, -0.058119360357522964, 0.0516771599650383, -0.1730564683675766, 0.39167875051498413, 0.15084676444530487, 0.22816048562526703, 0.045965708792209625, 0.01228413451462984, -0.001187397981993854, -0.09196954220533371, 0.02809249237179756, -0.19557419419288635, 0.5252601504325867, 0.312656044960022, -0.02971090003848076, -0.09916125237941742, -0.3101350963115692, 0.10209859162569046, 0.21924975514411926, -0.15096594393253326, -0.1149565726518631, -0.027329355478286743, -0.08342111855745316, 0.10268107801675797, -0.2937077581882477, -0.02261936664581299, 0.024766765534877777, -0.038291085511446, -0.1384621113538742, 0.39341917634010315, -0.04621000215411186, 0.25827285647392273, 0.16602948307991028, 0.014017300680279732, 0.020635686814785004, -0.2808050811290741, -0.06917374581098557, -0.22652509808540344, 0.17114409804344177, 0.13673189282417297, -0.1251925826072693, 0.06408170610666275, 0.3451364040374756, -0.31224825978279114, 0.02007402665913105, -0.47748246788978577, 0.07028812915086746, 0.05131078138947487, 0.22899578511714935, 0.030948014929890633, 0.016202419996261597, 0.3911517858505249, -0.19513264298439026, -0.14028213918209076, 0.030987318605184555, -0.3719809651374817, -0.19353705644607544, -0.01765119470655918, 0.1759660691022873, 0.16198453307151794, -0.12335588783025742, -0.17087402939796448, -0.04869067668914795, -0.19086800515651703, -0.02890549972653389, 0.08288068324327469, 0.015055820345878601, -0.053884100168943405, 0.16555561125278473, -0.21160100400447845, 0.34675276279449463, 0.17732325196266174, -0.32470765709877014, -0.35812947154045105, 0.2650371491909027, -0.09470570087432861, -0.13647153973579407, -0.03267369419336319, -0.21168962121009827, 0.08541025221347809, 0.5363093018531799, -0.5030611157417297, -0.11275627464056015, 0.13349193334579468, 0.18154995143413544, -0.3105264902114868, 0.3299279510974884, 0.5652551054954529, 0.1672389805316925, -0.12299506366252899, -0.09617557376623154, -0.22540183365345, 0.020850788801908493, 0.11836440861225128, 0.03327656164765358, -0.39268365502357483, 0.1982509046792984, -0.13815543055534363, 0.2296518236398697, -0.30190107226371765, -0.11575127393007278, 0.24243825674057007, -0.14659936726093292, 0.4507811367511749, -0.14948560297489166, -0.04187529534101486, -0.3553687632083893, -0.11253760010004044, -0.31578677892684937, -0.10449882596731186, -0.0634642094373703, -0.13876324892044067, -0.11715754121541977, -0.10128463804721832, -0.5017565488815308, -0.2928970754146576, 0.1465829610824585, -0.10273431241512299, 0.23990179598331451, 0.15557710826396942, 0.3166545629501343, -0.10534583032131195, 0.1744638830423355, 0.14278675615787506, -0.03317191079258919, 0.27471208572387695, -0.14594556391239166, -0.3181426227092743, 0.10122577100992203, -0.08294600993394852, 0.07249137759208679, -0.1989378035068512, -0.1990206092596054, 0.07646333426237106, -0.2620548903942108, -0.24845999479293823, -0.21581749618053436, 0.7965018153190613, 0.2421426624059677, 0.38098281621932983, 0.31965172290802, -0.45254144072532654, -0.35335052013397217, 0.18772490322589874, -0.09754185378551483, -0.4541647732257843, -0.0318249948322773, 0.6746238470077515, -0.01857919804751873, 0.08985114097595215, -0.11046727746725082, 0.48968368768692017, -0.41520121693611145, -0.007728947792202234, -0.2255905121564865, -0.26986220479011536, -0.6374182105064392, -0.20044028759002686, -0.29320961236953735, -0.06457840651273727, -0.07572779059410095, 0.20299305021762848, -0.38120606541633606, -0.24684110283851624, -0.06908217817544937, 0.13292688131332397, 0.44378432631492615, 0.3278329372406006, -0.06413953006267548, -0.0312091875821352, 0.24578922986984253, 0.06227433681488037, 0.3784467279911041, -0.26163822412490845, 0.15322178602218628, 0.1913454681634903, 0.14274215698242188, 0.07489432394504547, 0.3150380551815033, 0.17643451690673828, -0.20517988502979279, 0.02209695428609848, -0.06648571789264679, -0.4147898852825165, 0.14634928107261658, -0.30950284004211426, -0.1771959513425827, -0.02579702064394951, -0.27624234557151794, 0.5010859966278076, -0.059521812945604324, -0.12448468804359436, -0.18347550928592682, -0.08055531978607178, -0.3643137812614441, 0.4154721200466156, 0.1648016721010208, 0.6950461864471436, -0.11034875363111496, 0.3431367874145508, 0.2593013346195221, -0.025915171951055527, -0.13279522955417633, -0.08912404626607895, -0.08542805165052414, -0.380445271730423, -0.3120884895324707, -0.02439946122467518, -0.07896552979946136, -0.03661090508103371, 0.3623434901237488, -0.3414168953895569, 0.01497464720159769, -0.08402858674526215, -0.09403165429830551, -0.15479984879493713, -0.015792250633239746, -0.31014594435691833, -0.24301038682460785, -0.38720613718032837, 0.13869519531726837, 0.029418829828500748, -0.08386259526014328, -0.11733824014663696, 0.1234135553240776, 0.1430487483739853, 0.05662960931658745, 0.3375110924243927, 0.06858129799365997, -0.09136231243610382, 0.3398621678352356, -0.33791351318359375, -0.5016369223594666, -0.5246484279632568, 0.38033556938171387, 0.25172853469848633, 0.08021610975265503, 0.10060032457113266, 0.02515183575451374, -0.07941576093435287, 0.24264483153820038, -0.1682802438735962, -0.007076717913150787, 0.5192754864692688, 0.07647622376680374, 0.04422541707754135, 0.12554730474948883, -0.14169390499591827, -0.10197209566831589, 0.005908621475100517, -0.1278136968612671, -0.1410326212644577, -0.33589470386505127, 0.07461590319871902, 0.1822190284729004, 0.2122630625963211, -0.17882944643497467, 0.11346716433763504, 0.1911645531654358, 0.017310962080955505, 0.26533156633377075, 0.1948641687631607, -0.24183590710163116, -0.08127813041210175, 0.516575038433075, 0.03846903517842293, -0.06579563021659851, 0.388698935508728, -0.25658929347991943, 0.05144927650690079, -0.39932575821876526, 0.346990168094635, 0.0926227867603302, -0.26597118377685547, 0.4193163216114044, -0.06588002294301987, -0.02432115562260151, -0.030156292021274567, 0.061155859380960464, 0.10961834341287613, 0.08601909130811691, 0.06211570277810097, -0.17326420545578003, -0.3621085286140442, 0.24907498061656952, 0.472777783870697, 0.3719693422317505, 0.4217846989631653, 0.009315908886492252, -0.24375078082084656, 0.16222910583019257, -0.38835322856903076, 0.2019902616739273, 0.22196370363235474, 0.22875958681106567, 0.06614696979522705, -0.07248997688293457, -0.26397469639778137, -0.30835890769958496, 0.2338026911020279, -0.1353239268064499, -0.170939639210701, -0.3024231791496277, -0.2044217735528946, 0.06643946468830109, -0.26634982228279114, 0.192276731133461, -0.13771384954452515, -0.3227854073047638, 0.128098264336586, -0.20402859151363373, 0.1430259793996811, 0.22327208518981934, 0.06866958737373352, 0.06235853582620621, 0.12684878706932068, 0.2516564726829529, -0.20544806122779846, -0.12574797868728638, -0.11821625381708145, 0.057856518775224686, -0.10751225054264069, 0.2247495800256729, -0.1669965237379074, -0.03807326778769493, -0.3023141920566559, -0.025032712146639824, 0.5884454846382141, 0.2880801558494568, 0.27008292078971863, -0.20149119198322296, -0.09050238132476807, 0.11948264390230179, 0.4243675768375397, -0.042715221643447876, -0.33222731947898865, -0.08792091906070709, 0.23311747610569, 0.2800786793231964, -0.2804100811481476, 0.03090611845254898, 0.22573363780975342, -0.42143574357032776, 0.051241930574178696, 0.20146341621875763, 0.09253089129924774, -0.09308675676584244, -0.07863614708185196, 0.010284245945513248, 0.3001403212547302, -0.07209676504135132, 0.17096784710884094, 0.5765984654426575, -0.24585698544979095, 0.04255545884370804, 0.09059704095125198, 0.3996850252151489, 0.12299498915672302, 0.31309252977371216, -0.08735878765583038, 0.35960933566093445, -0.1860954612493515, 0.1565093845129013, -0.21988540887832642, -0.35816270112991333, 0.3162330090999603, 0.020412247627973557, -0.22357912361621857, 0.2590894401073456, -0.027812128886580467, -0.11409628391265869, 0.031433477997779846, -0.2525472342967987, -0.14173243939876556, 0.6293142437934875, -0.26827099919319153, -0.01774490252137184, -0.09328938275575638, -0.23650561273097992, 0.22036972641944885, 0.31122148036956787, -0.10947990417480469, -0.17275984585285187, 0.2645234763622284, 0.11055629700422287, 0.12717485427856445, 0.14865553379058838, 0.23097190260887146, -0.25507789850234985, -0.16646718978881836, -0.2662407457828522, 0.07090027630329132, 0.11954280734062195, 0.030452730134129524, 0.10920153558254242, 0.01632736809551716, -0.0308658666908741, 0.007121772971004248, 0.04357188194990158, 0.22789229452610016, 0.1879364252090454, -0.1287955343723297, -0.18498340249061584, -0.13527508080005646, 0.1211862564086914, 0.20403064787387848, 0.35089391469955444, 0.22932691872119904, -0.19871921837329865, -0.055061955004930496, 0.17216357588768005, 0.21983015537261963, -0.03255760669708252, 0.14675986766815186, 0.3180052638053894, -0.19676806032657623, -0.12014387547969818, -0.174783855676651, 0.04537224397063255, -0.13135313987731934, 0.30898988246917725, -0.28863462805747986, 0.18902048468589783, 0.2204885482788086, 0.13952726125717163, 0.2037494033575058, 0.396359920501709, 0.06474630534648895, -0.3646923005580902, -0.11546354740858078, -0.150401309132576, -0.4069748818874359, -0.060465771704912186, 0.497341513633728, -0.02687028981745243, -0.3048434853553772, 0.23093682527542114, 0.4784661829471588, 0.2002841830253601, 0.029570139944553375, -0.13122887909412384, 0.29818642139434814, 0.20651543140411377, 0.05612163990736008, -0.2139463573694229, -0.0052232202142477036, 0.29902762174606323, -0.07808418571949005, -0.36811956763267517, -0.00032588778412900865, 0.18780013918876648, 0.21391749382019043, 0.09870557487010956, -0.035573843866586685, -0.2439204603433609, 0.24335160851478577, 0.4632108509540558, -0.04504479467868805, -0.0008512877393513918, -0.3425736129283905, 0.08336697518825531, 0.2639933228492737, -0.15228143334388733, 0.06335732340812683, -0.16845102608203888, 0.34328439831733704, 0.14310187101364136, -0.20818427205085754, 0.3099769055843353, -0.15906600654125214, -0.13175082206726074, 0.21362416446208954, 0.17799903452396393, -0.5309627652168274, 0.15941721200942993, 0.12643350660800934, -0.11932723969221115, 0.17001786828041077, 0.5477780103683472, -0.02705654315650463, 0.2775888741016388, -0.03405965492129326, -0.20356754958629608, 0.4086516797542572, -0.10026972740888596, -0.4852132797241211, -0.021546319127082825, 0.1747816801071167, -0.19819818437099457, 0.08603900671005249, -0.28379228711128235, 0.408846378326416, 0.2702557146549225, -0.12112533301115036, 0.11489204317331314, 0.37751856446266174, -0.14271265268325806, -0.03350969776511192, 0.07398014515638351, 0.47503647208213806, 0.1976754367351532, -0.46635061502456665, -0.2947937548160553, -0.19806502759456635 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
I plan to update the save_to_disk method in #2025 so I can make sure the new save_to_disk doesn't corrupt your cache files. But from your last message it looks like save_to_disk isn't the root cause right ?
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
37
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
[ -0.4283033609390259, -0.023008281365036964, -0.16141566634178162, 0.15455444157123566, 0.22215554118156433, 0.026572303846478462, 0.17353075742721558, 0.01602463237941265, 0.13161078095436096, 0.04836121201515198, -0.05531523749232292, 0.46979713439941406, -0.05540449917316437, 0.26090991497039795, 0.17851771414279938, 0.11127587407827377, 0.056117866188287735, 0.33632782101631165, -0.5746411681175232, -0.11774154752492905, -0.22746141254901886, 0.03148174658417702, 0.13422398269176483, -0.29940733313560486, -0.08599486202001572, -0.2852741777896881, -0.15234695374965668, 0.2792096734046936, 0.10302402824163437, 0.2006692737340927, -0.024540038779377937, 0.2603270709514618, 0.23277711868286133, 0.1842171847820282, -0.00010651352204149589, 0.180067241191864, -0.5165371298789978, -0.23138146102428436, -0.3461831510066986, 0.03558078780770302, 0.08685769140720367, -0.10748723894357681, -0.23452837765216827, -0.40775614976882935, -0.033033255487680435, 0.006586224306374788, -0.05745106562972069, -0.36552661657333374, 0.5319626331329346, -0.2607553005218506, 0.1967901885509491, -0.08392678201198578, -0.3489849865436554, -0.13461951911449432, -0.24364110827445984, 0.33120059967041016, 0.1778474897146225, 0.05590788647532463, -0.0032469562720507383, 0.2543792128562927, -0.20881445705890656, 0.24682216346263885, -0.06718791276216507, -0.22855348885059357, 0.18040673434734344, -0.041187893599271774, 0.27592313289642334, -0.007199708838015795, 0.16042472422122955, -0.036273032426834106, 0.39424410462379456, -0.42044705152511597, -0.20601589977741241, -0.27955758571624756, 0.02967342734336853, -0.07315001636743546, -0.18393808603286743, 0.15139803290367126, 0.031784720718860626, 0.24079905450344086, -0.3479441702365875, -0.6103264689445496, -0.049113042652606964, -0.06502900272607803, -0.22648130357265472, -0.37104085087776184, -0.05637851357460022, -0.05674754083156586, 0.051707878708839417, 0.20410117506980896, 0.31270503997802734, 0.09621324390172958, -0.06645813584327698, -0.01886783167719841, -0.03257247060537338, -0.16095708310604095, -0.018942153081297874, 0.010625649243593216, -0.04533728212118149, 0.15597431361675262, 0.32131654024124146, 0.09299235790967941, -0.14437061548233032, 0.03397393971681595, -0.03408247232437134, 0.3395555019378662, 0.027778740972280502, -0.03379698842763901, 0.09923609346151352, 0.014458098448812962, -0.31557226181030273, 0.002739289542660117, -0.013130996376276016, -0.023385126143693924, 0.3279115855693817, -0.03711923584342003, 0.18505170941352844, 0.15784873068332672, 0.008118615485727787, -0.06486659497022629, 0.4454686939716339, -0.016279062256217003, -0.19232653081417084, 0.4015505313873291, 0.2515181005001068, 0.19227683544158936, 0.26258188486099243, 0.16856230795383453, 0.029081067070364952, -0.07616303116083145, -0.18882820010185242, -0.2320702224969864, -0.05221351981163025, 0.1898115873336792, 0.10903265327215195, 0.23896342515945435, 0.24404974281787872, 0.14170530438423157, -0.20224180817604065, -0.03972901031374931, 0.06799664348363876, 0.01233174093067646, 0.3974948823451996, 0.09948231279850006, 0.1880456805229187, -0.019247790798544884, 0.1287674754858017, 0.0050817448645830154, -0.11513778567314148, 0.35268405079841614, -0.08944806456565857, -0.03086700662970543, 0.22136543691158295, 0.27945271134376526, -0.09686657041311264, 0.025472275912761688, -0.4802437424659729, 0.07032950967550278, -0.03627568855881691, -0.1665743589401245, 0.04768054559826851, -0.01701926626265049, -0.04189825430512428, -0.12153194099664688, -0.07740307599306107, 0.08889162540435791, -0.41411077976226807, -0.20601603388786316, 0.26943376660346985, -0.2045716792345047, -0.20470678806304932, 0.06846781075000763, -0.2093198597431183, 0.19203417003154755, -0.15463197231292725, -0.13070698082447052, 0.6175364255905151, -0.028756635263562202, -0.17005394399166107, 0.10505488514900208, -0.13989068567752838, -0.15326689183712006, 0.12878501415252686, 0.3237308859825134, 0.3815205991268158, -0.09806250035762787, -0.3393862545490265, 0.2756698429584503, 0.16235455870628357, 0.2224104255437851, -0.043007735162973404, -0.214323952794075, 0.057866472750902176, -0.033556465059518814, 0.1436239331960678, 0.45690053701400757, 0.2916716933250427, 0.2788126468658447, 0.2946195900440216, -0.2531444728374481, 0.14824575185775757, 0.4189145565032959, -0.216243714094162, -0.022039346396923065, -0.03364448621869087, 0.08528012037277222, -0.4972718358039856, -0.07991362363100052, 0.008084701374173164, -0.43766000866889954, 0.19952601194381714, -0.03583826497197151, -0.30454719066619873, -0.13533850014209747, 0.09991700202226639, 0.12388396263122559, 0.17221088707447052, 0.35849276185035706, -0.11264997720718384, -0.22214755415916443, -0.2444215714931488, 0.15509070456027985, 0.04463283345103264, -0.08222976326942444, -0.670085608959198, 0.35583817958831787, 0.06266903132200241, -0.16865287721157074, -0.12691128253936768, -0.12588857114315033, 0.20001311600208282, -0.07339874655008316, -0.003279865952208638, 0.19532209634780884, 0.03979678824543953, 0.570113480091095, -0.04155779629945755, 0.07787017524242401, -0.04463495686650276, 0.07342685014009476, 0.2657391130924225, -0.14111509919166565, 0.08765234053134918, 0.10149165242910385, -0.23084333539009094, 0.2188255786895752, -0.2309543490409851, 0.038063764572143555, 0.25702592730522156, -0.12720198929309845, 0.19841623306274414, -0.31369516253471375, -0.11441988497972488, -0.36161547899246216, -0.08984687924385071, 0.22555983066558838, 0.28315478563308716, 0.005874903406947851, -0.013512738049030304, 0.08164387196302414, 0.3798673450946808, -0.2001456320285797, 0.059730179607868195, -0.13419599831104279, -0.058119360357522964, 0.0516771599650383, -0.1730564683675766, 0.39167875051498413, 0.15084676444530487, 0.22816048562526703, 0.045965708792209625, 0.01228413451462984, -0.001187397981993854, -0.09196954220533371, 0.02809249237179756, -0.19557419419288635, 0.5252601504325867, 0.312656044960022, -0.02971090003848076, -0.09916125237941742, -0.3101350963115692, 0.10209859162569046, 0.21924975514411926, -0.15096594393253326, -0.1149565726518631, -0.027329355478286743, -0.08342111855745316, 0.10268107801675797, -0.2937077581882477, -0.02261936664581299, 0.024766765534877777, -0.038291085511446, -0.1384621113538742, 0.39341917634010315, -0.04621000215411186, 0.25827285647392273, 0.16602948307991028, 0.014017300680279732, 0.020635686814785004, -0.2808050811290741, -0.06917374581098557, -0.22652509808540344, 0.17114409804344177, 0.13673189282417297, -0.1251925826072693, 0.06408170610666275, 0.3451364040374756, -0.31224825978279114, 0.02007402665913105, -0.47748246788978577, 0.07028812915086746, 0.05131078138947487, 0.22899578511714935, 0.030948014929890633, 0.016202419996261597, 0.3911517858505249, -0.19513264298439026, -0.14028213918209076, 0.030987318605184555, -0.3719809651374817, -0.19353705644607544, -0.01765119470655918, 0.1759660691022873, 0.16198453307151794, -0.12335588783025742, -0.17087402939796448, -0.04869067668914795, -0.19086800515651703, -0.02890549972653389, 0.08288068324327469, 0.015055820345878601, -0.053884100168943405, 0.16555561125278473, -0.21160100400447845, 0.34675276279449463, 0.17732325196266174, -0.32470765709877014, -0.35812947154045105, 0.2650371491909027, -0.09470570087432861, -0.13647153973579407, -0.03267369419336319, -0.21168962121009827, 0.08541025221347809, 0.5363093018531799, -0.5030611157417297, -0.11275627464056015, 0.13349193334579468, 0.18154995143413544, -0.3105264902114868, 0.3299279510974884, 0.5652551054954529, 0.1672389805316925, -0.12299506366252899, -0.09617557376623154, -0.22540183365345, 0.020850788801908493, 0.11836440861225128, 0.03327656164765358, -0.39268365502357483, 0.1982509046792984, -0.13815543055534363, 0.2296518236398697, -0.30190107226371765, -0.11575127393007278, 0.24243825674057007, -0.14659936726093292, 0.4507811367511749, -0.14948560297489166, -0.04187529534101486, -0.3553687632083893, -0.11253760010004044, -0.31578677892684937, -0.10449882596731186, -0.0634642094373703, -0.13876324892044067, -0.11715754121541977, -0.10128463804721832, -0.5017565488815308, -0.2928970754146576, 0.1465829610824585, -0.10273431241512299, 0.23990179598331451, 0.15557710826396942, 0.3166545629501343, -0.10534583032131195, 0.1744638830423355, 0.14278675615787506, -0.03317191079258919, 0.27471208572387695, -0.14594556391239166, -0.3181426227092743, 0.10122577100992203, -0.08294600993394852, 0.07249137759208679, -0.1989378035068512, -0.1990206092596054, 0.07646333426237106, -0.2620548903942108, -0.24845999479293823, -0.21581749618053436, 0.7965018153190613, 0.2421426624059677, 0.38098281621932983, 0.31965172290802, -0.45254144072532654, -0.35335052013397217, 0.18772490322589874, -0.09754185378551483, -0.4541647732257843, -0.0318249948322773, 0.6746238470077515, -0.01857919804751873, 0.08985114097595215, -0.11046727746725082, 0.48968368768692017, -0.41520121693611145, -0.007728947792202234, -0.2255905121564865, -0.26986220479011536, -0.6374182105064392, -0.20044028759002686, -0.29320961236953735, -0.06457840651273727, -0.07572779059410095, 0.20299305021762848, -0.38120606541633606, -0.24684110283851624, -0.06908217817544937, 0.13292688131332397, 0.44378432631492615, 0.3278329372406006, -0.06413953006267548, -0.0312091875821352, 0.24578922986984253, 0.06227433681488037, 0.3784467279911041, -0.26163822412490845, 0.15322178602218628, 0.1913454681634903, 0.14274215698242188, 0.07489432394504547, 0.3150380551815033, 0.17643451690673828, -0.20517988502979279, 0.02209695428609848, -0.06648571789264679, -0.4147898852825165, 0.14634928107261658, -0.30950284004211426, -0.1771959513425827, -0.02579702064394951, -0.27624234557151794, 0.5010859966278076, -0.059521812945604324, -0.12448468804359436, -0.18347550928592682, -0.08055531978607178, -0.3643137812614441, 0.4154721200466156, 0.1648016721010208, 0.6950461864471436, -0.11034875363111496, 0.3431367874145508, 0.2593013346195221, -0.025915171951055527, -0.13279522955417633, -0.08912404626607895, -0.08542805165052414, -0.380445271730423, -0.3120884895324707, -0.02439946122467518, -0.07896552979946136, -0.03661090508103371, 0.3623434901237488, -0.3414168953895569, 0.01497464720159769, -0.08402858674526215, -0.09403165429830551, -0.15479984879493713, -0.015792250633239746, -0.31014594435691833, -0.24301038682460785, -0.38720613718032837, 0.13869519531726837, 0.029418829828500748, -0.08386259526014328, -0.11733824014663696, 0.1234135553240776, 0.1430487483739853, 0.05662960931658745, 0.3375110924243927, 0.06858129799365997, -0.09136231243610382, 0.3398621678352356, -0.33791351318359375, -0.5016369223594666, -0.5246484279632568, 0.38033556938171387, 0.25172853469848633, 0.08021610975265503, 0.10060032457113266, 0.02515183575451374, -0.07941576093435287, 0.24264483153820038, -0.1682802438735962, -0.007076717913150787, 0.5192754864692688, 0.07647622376680374, 0.04422541707754135, 0.12554730474948883, -0.14169390499591827, -0.10197209566831589, 0.005908621475100517, -0.1278136968612671, -0.1410326212644577, -0.33589470386505127, 0.07461590319871902, 0.1822190284729004, 0.2122630625963211, -0.17882944643497467, 0.11346716433763504, 0.1911645531654358, 0.017310962080955505, 0.26533156633377075, 0.1948641687631607, -0.24183590710163116, -0.08127813041210175, 0.516575038433075, 0.03846903517842293, -0.06579563021659851, 0.388698935508728, -0.25658929347991943, 0.05144927650690079, -0.39932575821876526, 0.346990168094635, 0.0926227867603302, -0.26597118377685547, 0.4193163216114044, -0.06588002294301987, -0.02432115562260151, -0.030156292021274567, 0.061155859380960464, 0.10961834341287613, 0.08601909130811691, 0.06211570277810097, -0.17326420545578003, -0.3621085286140442, 0.24907498061656952, 0.472777783870697, 0.3719693422317505, 0.4217846989631653, 0.009315908886492252, -0.24375078082084656, 0.16222910583019257, -0.38835322856903076, 0.2019902616739273, 0.22196370363235474, 0.22875958681106567, 0.06614696979522705, -0.07248997688293457, -0.26397469639778137, -0.30835890769958496, 0.2338026911020279, -0.1353239268064499, -0.170939639210701, -0.3024231791496277, -0.2044217735528946, 0.06643946468830109, -0.26634982228279114, 0.192276731133461, -0.13771384954452515, -0.3227854073047638, 0.128098264336586, -0.20402859151363373, 0.1430259793996811, 0.22327208518981934, 0.06866958737373352, 0.06235853582620621, 0.12684878706932068, 0.2516564726829529, -0.20544806122779846, -0.12574797868728638, -0.11821625381708145, 0.057856518775224686, -0.10751225054264069, 0.2247495800256729, -0.1669965237379074, -0.03807326778769493, -0.3023141920566559, -0.025032712146639824, 0.5884454846382141, 0.2880801558494568, 0.27008292078971863, -0.20149119198322296, -0.09050238132476807, 0.11948264390230179, 0.4243675768375397, -0.042715221643447876, -0.33222731947898865, -0.08792091906070709, 0.23311747610569, 0.2800786793231964, -0.2804100811481476, 0.03090611845254898, 0.22573363780975342, -0.42143574357032776, 0.051241930574178696, 0.20146341621875763, 0.09253089129924774, -0.09308675676584244, -0.07863614708185196, 0.010284245945513248, 0.3001403212547302, -0.07209676504135132, 0.17096784710884094, 0.5765984654426575, -0.24585698544979095, 0.04255545884370804, 0.09059704095125198, 0.3996850252151489, 0.12299498915672302, 0.31309252977371216, -0.08735878765583038, 0.35960933566093445, -0.1860954612493515, 0.1565093845129013, -0.21988540887832642, -0.35816270112991333, 0.3162330090999603, 0.020412247627973557, -0.22357912361621857, 0.2590894401073456, -0.027812128886580467, -0.11409628391265869, 0.031433477997779846, -0.2525472342967987, -0.14173243939876556, 0.6293142437934875, -0.26827099919319153, -0.01774490252137184, -0.09328938275575638, -0.23650561273097992, 0.22036972641944885, 0.31122148036956787, -0.10947990417480469, -0.17275984585285187, 0.2645234763622284, 0.11055629700422287, 0.12717485427856445, 0.14865553379058838, 0.23097190260887146, -0.25507789850234985, -0.16646718978881836, -0.2662407457828522, 0.07090027630329132, 0.11954280734062195, 0.030452730134129524, 0.10920153558254242, 0.01632736809551716, -0.0308658666908741, 0.007121772971004248, 0.04357188194990158, 0.22789229452610016, 0.1879364252090454, -0.1287955343723297, -0.18498340249061584, -0.13527508080005646, 0.1211862564086914, 0.20403064787387848, 0.35089391469955444, 0.22932691872119904, -0.19871921837329865, -0.055061955004930496, 0.17216357588768005, 0.21983015537261963, -0.03255760669708252, 0.14675986766815186, 0.3180052638053894, -0.19676806032657623, -0.12014387547969818, -0.174783855676651, 0.04537224397063255, -0.13135313987731934, 0.30898988246917725, -0.28863462805747986, 0.18902048468589783, 0.2204885482788086, 0.13952726125717163, 0.2037494033575058, 0.396359920501709, 0.06474630534648895, -0.3646923005580902, -0.11546354740858078, -0.150401309132576, -0.4069748818874359, -0.060465771704912186, 0.497341513633728, -0.02687028981745243, -0.3048434853553772, 0.23093682527542114, 0.4784661829471588, 0.2002841830253601, 0.029570139944553375, -0.13122887909412384, 0.29818642139434814, 0.20651543140411377, 0.05612163990736008, -0.2139463573694229, -0.0052232202142477036, 0.29902762174606323, -0.07808418571949005, -0.36811956763267517, -0.00032588778412900865, 0.18780013918876648, 0.21391749382019043, 0.09870557487010956, -0.035573843866586685, -0.2439204603433609, 0.24335160851478577, 0.4632108509540558, -0.04504479467868805, -0.0008512877393513918, -0.3425736129283905, 0.08336697518825531, 0.2639933228492737, -0.15228143334388733, 0.06335732340812683, -0.16845102608203888, 0.34328439831733704, 0.14310187101364136, -0.20818427205085754, 0.3099769055843353, -0.15906600654125214, -0.13175082206726074, 0.21362416446208954, 0.17799903452396393, -0.5309627652168274, 0.15941721200942993, 0.12643350660800934, -0.11932723969221115, 0.17001786828041077, 0.5477780103683472, -0.02705654315650463, 0.2775888741016388, -0.03405965492129326, -0.20356754958629608, 0.4086516797542572, -0.10026972740888596, -0.4852132797241211, -0.021546319127082825, 0.1747816801071167, -0.19819818437099457, 0.08603900671005249, -0.28379228711128235, 0.408846378326416, 0.2702557146549225, -0.12112533301115036, 0.11489204317331314, 0.37751856446266174, -0.14271265268325806, -0.03350969776511192, 0.07398014515638351, 0.47503647208213806, 0.1976754367351532, -0.46635061502456665, -0.2947937548160553, -0.19806502759456635 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
ok, one more thing. When we use save_to_disk there are two files other than .arrow. dataset_info.json and state.json. Sometimes most of the fields in the dataset_infor.json are null, especially when saving dataset objects. Anyways I think load_from_disk uses the arrow files mentioned in state.json right?
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
45
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
[ -0.4283033609390259, -0.023008281365036964, -0.16141566634178162, 0.15455444157123566, 0.22215554118156433, 0.026572303846478462, 0.17353075742721558, 0.01602463237941265, 0.13161078095436096, 0.04836121201515198, -0.05531523749232292, 0.46979713439941406, -0.05540449917316437, 0.26090991497039795, 0.17851771414279938, 0.11127587407827377, 0.056117866188287735, 0.33632782101631165, -0.5746411681175232, -0.11774154752492905, -0.22746141254901886, 0.03148174658417702, 0.13422398269176483, -0.29940733313560486, -0.08599486202001572, -0.2852741777896881, -0.15234695374965668, 0.2792096734046936, 0.10302402824163437, 0.2006692737340927, -0.024540038779377937, 0.2603270709514618, 0.23277711868286133, 0.1842171847820282, -0.00010651352204149589, 0.180067241191864, -0.5165371298789978, -0.23138146102428436, -0.3461831510066986, 0.03558078780770302, 0.08685769140720367, -0.10748723894357681, -0.23452837765216827, -0.40775614976882935, -0.033033255487680435, 0.006586224306374788, -0.05745106562972069, -0.36552661657333374, 0.5319626331329346, -0.2607553005218506, 0.1967901885509491, -0.08392678201198578, -0.3489849865436554, -0.13461951911449432, -0.24364110827445984, 0.33120059967041016, 0.1778474897146225, 0.05590788647532463, -0.0032469562720507383, 0.2543792128562927, -0.20881445705890656, 0.24682216346263885, -0.06718791276216507, -0.22855348885059357, 0.18040673434734344, -0.041187893599271774, 0.27592313289642334, -0.007199708838015795, 0.16042472422122955, -0.036273032426834106, 0.39424410462379456, -0.42044705152511597, -0.20601589977741241, -0.27955758571624756, 0.02967342734336853, -0.07315001636743546, -0.18393808603286743, 0.15139803290367126, 0.031784720718860626, 0.24079905450344086, -0.3479441702365875, -0.6103264689445496, -0.049113042652606964, -0.06502900272607803, -0.22648130357265472, -0.37104085087776184, -0.05637851357460022, -0.05674754083156586, 0.051707878708839417, 0.20410117506980896, 0.31270503997802734, 0.09621324390172958, -0.06645813584327698, -0.01886783167719841, -0.03257247060537338, -0.16095708310604095, -0.018942153081297874, 0.010625649243593216, -0.04533728212118149, 0.15597431361675262, 0.32131654024124146, 0.09299235790967941, -0.14437061548233032, 0.03397393971681595, -0.03408247232437134, 0.3395555019378662, 0.027778740972280502, -0.03379698842763901, 0.09923609346151352, 0.014458098448812962, -0.31557226181030273, 0.002739289542660117, -0.013130996376276016, -0.023385126143693924, 0.3279115855693817, -0.03711923584342003, 0.18505170941352844, 0.15784873068332672, 0.008118615485727787, -0.06486659497022629, 0.4454686939716339, -0.016279062256217003, -0.19232653081417084, 0.4015505313873291, 0.2515181005001068, 0.19227683544158936, 0.26258188486099243, 0.16856230795383453, 0.029081067070364952, -0.07616303116083145, -0.18882820010185242, -0.2320702224969864, -0.05221351981163025, 0.1898115873336792, 0.10903265327215195, 0.23896342515945435, 0.24404974281787872, 0.14170530438423157, -0.20224180817604065, -0.03972901031374931, 0.06799664348363876, 0.01233174093067646, 0.3974948823451996, 0.09948231279850006, 0.1880456805229187, -0.019247790798544884, 0.1287674754858017, 0.0050817448645830154, -0.11513778567314148, 0.35268405079841614, -0.08944806456565857, -0.03086700662970543, 0.22136543691158295, 0.27945271134376526, -0.09686657041311264, 0.025472275912761688, -0.4802437424659729, 0.07032950967550278, -0.03627568855881691, -0.1665743589401245, 0.04768054559826851, -0.01701926626265049, -0.04189825430512428, -0.12153194099664688, -0.07740307599306107, 0.08889162540435791, -0.41411077976226807, -0.20601603388786316, 0.26943376660346985, -0.2045716792345047, -0.20470678806304932, 0.06846781075000763, -0.2093198597431183, 0.19203417003154755, -0.15463197231292725, -0.13070698082447052, 0.6175364255905151, -0.028756635263562202, -0.17005394399166107, 0.10505488514900208, -0.13989068567752838, -0.15326689183712006, 0.12878501415252686, 0.3237308859825134, 0.3815205991268158, -0.09806250035762787, -0.3393862545490265, 0.2756698429584503, 0.16235455870628357, 0.2224104255437851, -0.043007735162973404, -0.214323952794075, 0.057866472750902176, -0.033556465059518814, 0.1436239331960678, 0.45690053701400757, 0.2916716933250427, 0.2788126468658447, 0.2946195900440216, -0.2531444728374481, 0.14824575185775757, 0.4189145565032959, -0.216243714094162, -0.022039346396923065, -0.03364448621869087, 0.08528012037277222, -0.4972718358039856, -0.07991362363100052, 0.008084701374173164, -0.43766000866889954, 0.19952601194381714, -0.03583826497197151, -0.30454719066619873, -0.13533850014209747, 0.09991700202226639, 0.12388396263122559, 0.17221088707447052, 0.35849276185035706, -0.11264997720718384, -0.22214755415916443, -0.2444215714931488, 0.15509070456027985, 0.04463283345103264, -0.08222976326942444, -0.670085608959198, 0.35583817958831787, 0.06266903132200241, -0.16865287721157074, -0.12691128253936768, -0.12588857114315033, 0.20001311600208282, -0.07339874655008316, -0.003279865952208638, 0.19532209634780884, 0.03979678824543953, 0.570113480091095, -0.04155779629945755, 0.07787017524242401, -0.04463495686650276, 0.07342685014009476, 0.2657391130924225, -0.14111509919166565, 0.08765234053134918, 0.10149165242910385, -0.23084333539009094, 0.2188255786895752, -0.2309543490409851, 0.038063764572143555, 0.25702592730522156, -0.12720198929309845, 0.19841623306274414, -0.31369516253471375, -0.11441988497972488, -0.36161547899246216, -0.08984687924385071, 0.22555983066558838, 0.28315478563308716, 0.005874903406947851, -0.013512738049030304, 0.08164387196302414, 0.3798673450946808, -0.2001456320285797, 0.059730179607868195, -0.13419599831104279, -0.058119360357522964, 0.0516771599650383, -0.1730564683675766, 0.39167875051498413, 0.15084676444530487, 0.22816048562526703, 0.045965708792209625, 0.01228413451462984, -0.001187397981993854, -0.09196954220533371, 0.02809249237179756, -0.19557419419288635, 0.5252601504325867, 0.312656044960022, -0.02971090003848076, -0.09916125237941742, -0.3101350963115692, 0.10209859162569046, 0.21924975514411926, -0.15096594393253326, -0.1149565726518631, -0.027329355478286743, -0.08342111855745316, 0.10268107801675797, -0.2937077581882477, -0.02261936664581299, 0.024766765534877777, -0.038291085511446, -0.1384621113538742, 0.39341917634010315, -0.04621000215411186, 0.25827285647392273, 0.16602948307991028, 0.014017300680279732, 0.020635686814785004, -0.2808050811290741, -0.06917374581098557, -0.22652509808540344, 0.17114409804344177, 0.13673189282417297, -0.1251925826072693, 0.06408170610666275, 0.3451364040374756, -0.31224825978279114, 0.02007402665913105, -0.47748246788978577, 0.07028812915086746, 0.05131078138947487, 0.22899578511714935, 0.030948014929890633, 0.016202419996261597, 0.3911517858505249, -0.19513264298439026, -0.14028213918209076, 0.030987318605184555, -0.3719809651374817, -0.19353705644607544, -0.01765119470655918, 0.1759660691022873, 0.16198453307151794, -0.12335588783025742, -0.17087402939796448, -0.04869067668914795, -0.19086800515651703, -0.02890549972653389, 0.08288068324327469, 0.015055820345878601, -0.053884100168943405, 0.16555561125278473, -0.21160100400447845, 0.34675276279449463, 0.17732325196266174, -0.32470765709877014, -0.35812947154045105, 0.2650371491909027, -0.09470570087432861, -0.13647153973579407, -0.03267369419336319, -0.21168962121009827, 0.08541025221347809, 0.5363093018531799, -0.5030611157417297, -0.11275627464056015, 0.13349193334579468, 0.18154995143413544, -0.3105264902114868, 0.3299279510974884, 0.5652551054954529, 0.1672389805316925, -0.12299506366252899, -0.09617557376623154, -0.22540183365345, 0.020850788801908493, 0.11836440861225128, 0.03327656164765358, -0.39268365502357483, 0.1982509046792984, -0.13815543055534363, 0.2296518236398697, -0.30190107226371765, -0.11575127393007278, 0.24243825674057007, -0.14659936726093292, 0.4507811367511749, -0.14948560297489166, -0.04187529534101486, -0.3553687632083893, -0.11253760010004044, -0.31578677892684937, -0.10449882596731186, -0.0634642094373703, -0.13876324892044067, -0.11715754121541977, -0.10128463804721832, -0.5017565488815308, -0.2928970754146576, 0.1465829610824585, -0.10273431241512299, 0.23990179598331451, 0.15557710826396942, 0.3166545629501343, -0.10534583032131195, 0.1744638830423355, 0.14278675615787506, -0.03317191079258919, 0.27471208572387695, -0.14594556391239166, -0.3181426227092743, 0.10122577100992203, -0.08294600993394852, 0.07249137759208679, -0.1989378035068512, -0.1990206092596054, 0.07646333426237106, -0.2620548903942108, -0.24845999479293823, -0.21581749618053436, 0.7965018153190613, 0.2421426624059677, 0.38098281621932983, 0.31965172290802, -0.45254144072532654, -0.35335052013397217, 0.18772490322589874, -0.09754185378551483, -0.4541647732257843, -0.0318249948322773, 0.6746238470077515, -0.01857919804751873, 0.08985114097595215, -0.11046727746725082, 0.48968368768692017, -0.41520121693611145, -0.007728947792202234, -0.2255905121564865, -0.26986220479011536, -0.6374182105064392, -0.20044028759002686, -0.29320961236953735, -0.06457840651273727, -0.07572779059410095, 0.20299305021762848, -0.38120606541633606, -0.24684110283851624, -0.06908217817544937, 0.13292688131332397, 0.44378432631492615, 0.3278329372406006, -0.06413953006267548, -0.0312091875821352, 0.24578922986984253, 0.06227433681488037, 0.3784467279911041, -0.26163822412490845, 0.15322178602218628, 0.1913454681634903, 0.14274215698242188, 0.07489432394504547, 0.3150380551815033, 0.17643451690673828, -0.20517988502979279, 0.02209695428609848, -0.06648571789264679, -0.4147898852825165, 0.14634928107261658, -0.30950284004211426, -0.1771959513425827, -0.02579702064394951, -0.27624234557151794, 0.5010859966278076, -0.059521812945604324, -0.12448468804359436, -0.18347550928592682, -0.08055531978607178, -0.3643137812614441, 0.4154721200466156, 0.1648016721010208, 0.6950461864471436, -0.11034875363111496, 0.3431367874145508, 0.2593013346195221, -0.025915171951055527, -0.13279522955417633, -0.08912404626607895, -0.08542805165052414, -0.380445271730423, -0.3120884895324707, -0.02439946122467518, -0.07896552979946136, -0.03661090508103371, 0.3623434901237488, -0.3414168953895569, 0.01497464720159769, -0.08402858674526215, -0.09403165429830551, -0.15479984879493713, -0.015792250633239746, -0.31014594435691833, -0.24301038682460785, -0.38720613718032837, 0.13869519531726837, 0.029418829828500748, -0.08386259526014328, -0.11733824014663696, 0.1234135553240776, 0.1430487483739853, 0.05662960931658745, 0.3375110924243927, 0.06858129799365997, -0.09136231243610382, 0.3398621678352356, -0.33791351318359375, -0.5016369223594666, -0.5246484279632568, 0.38033556938171387, 0.25172853469848633, 0.08021610975265503, 0.10060032457113266, 0.02515183575451374, -0.07941576093435287, 0.24264483153820038, -0.1682802438735962, -0.007076717913150787, 0.5192754864692688, 0.07647622376680374, 0.04422541707754135, 0.12554730474948883, -0.14169390499591827, -0.10197209566831589, 0.005908621475100517, -0.1278136968612671, -0.1410326212644577, -0.33589470386505127, 0.07461590319871902, 0.1822190284729004, 0.2122630625963211, -0.17882944643497467, 0.11346716433763504, 0.1911645531654358, 0.017310962080955505, 0.26533156633377075, 0.1948641687631607, -0.24183590710163116, -0.08127813041210175, 0.516575038433075, 0.03846903517842293, -0.06579563021659851, 0.388698935508728, -0.25658929347991943, 0.05144927650690079, -0.39932575821876526, 0.346990168094635, 0.0926227867603302, -0.26597118377685547, 0.4193163216114044, -0.06588002294301987, -0.02432115562260151, -0.030156292021274567, 0.061155859380960464, 0.10961834341287613, 0.08601909130811691, 0.06211570277810097, -0.17326420545578003, -0.3621085286140442, 0.24907498061656952, 0.472777783870697, 0.3719693422317505, 0.4217846989631653, 0.009315908886492252, -0.24375078082084656, 0.16222910583019257, -0.38835322856903076, 0.2019902616739273, 0.22196370363235474, 0.22875958681106567, 0.06614696979522705, -0.07248997688293457, -0.26397469639778137, -0.30835890769958496, 0.2338026911020279, -0.1353239268064499, -0.170939639210701, -0.3024231791496277, -0.2044217735528946, 0.06643946468830109, -0.26634982228279114, 0.192276731133461, -0.13771384954452515, -0.3227854073047638, 0.128098264336586, -0.20402859151363373, 0.1430259793996811, 0.22327208518981934, 0.06866958737373352, 0.06235853582620621, 0.12684878706932068, 0.2516564726829529, -0.20544806122779846, -0.12574797868728638, -0.11821625381708145, 0.057856518775224686, -0.10751225054264069, 0.2247495800256729, -0.1669965237379074, -0.03807326778769493, -0.3023141920566559, -0.025032712146639824, 0.5884454846382141, 0.2880801558494568, 0.27008292078971863, -0.20149119198322296, -0.09050238132476807, 0.11948264390230179, 0.4243675768375397, -0.042715221643447876, -0.33222731947898865, -0.08792091906070709, 0.23311747610569, 0.2800786793231964, -0.2804100811481476, 0.03090611845254898, 0.22573363780975342, -0.42143574357032776, 0.051241930574178696, 0.20146341621875763, 0.09253089129924774, -0.09308675676584244, -0.07863614708185196, 0.010284245945513248, 0.3001403212547302, -0.07209676504135132, 0.17096784710884094, 0.5765984654426575, -0.24585698544979095, 0.04255545884370804, 0.09059704095125198, 0.3996850252151489, 0.12299498915672302, 0.31309252977371216, -0.08735878765583038, 0.35960933566093445, -0.1860954612493515, 0.1565093845129013, -0.21988540887832642, -0.35816270112991333, 0.3162330090999603, 0.020412247627973557, -0.22357912361621857, 0.2590894401073456, -0.027812128886580467, -0.11409628391265869, 0.031433477997779846, -0.2525472342967987, -0.14173243939876556, 0.6293142437934875, -0.26827099919319153, -0.01774490252137184, -0.09328938275575638, -0.23650561273097992, 0.22036972641944885, 0.31122148036956787, -0.10947990417480469, -0.17275984585285187, 0.2645234763622284, 0.11055629700422287, 0.12717485427856445, 0.14865553379058838, 0.23097190260887146, -0.25507789850234985, -0.16646718978881836, -0.2662407457828522, 0.07090027630329132, 0.11954280734062195, 0.030452730134129524, 0.10920153558254242, 0.01632736809551716, -0.0308658666908741, 0.007121772971004248, 0.04357188194990158, 0.22789229452610016, 0.1879364252090454, -0.1287955343723297, -0.18498340249061584, -0.13527508080005646, 0.1211862564086914, 0.20403064787387848, 0.35089391469955444, 0.22932691872119904, -0.19871921837329865, -0.055061955004930496, 0.17216357588768005, 0.21983015537261963, -0.03255760669708252, 0.14675986766815186, 0.3180052638053894, -0.19676806032657623, -0.12014387547969818, -0.174783855676651, 0.04537224397063255, -0.13135313987731934, 0.30898988246917725, -0.28863462805747986, 0.18902048468589783, 0.2204885482788086, 0.13952726125717163, 0.2037494033575058, 0.396359920501709, 0.06474630534648895, -0.3646923005580902, -0.11546354740858078, -0.150401309132576, -0.4069748818874359, -0.060465771704912186, 0.497341513633728, -0.02687028981745243, -0.3048434853553772, 0.23093682527542114, 0.4784661829471588, 0.2002841830253601, 0.029570139944553375, -0.13122887909412384, 0.29818642139434814, 0.20651543140411377, 0.05612163990736008, -0.2139463573694229, -0.0052232202142477036, 0.29902762174606323, -0.07808418571949005, -0.36811956763267517, -0.00032588778412900865, 0.18780013918876648, 0.21391749382019043, 0.09870557487010956, -0.035573843866586685, -0.2439204603433609, 0.24335160851478577, 0.4632108509540558, -0.04504479467868805, -0.0008512877393513918, -0.3425736129283905, 0.08336697518825531, 0.2639933228492737, -0.15228143334388733, 0.06335732340812683, -0.16845102608203888, 0.34328439831733704, 0.14310187101364136, -0.20818427205085754, 0.3099769055843353, -0.15906600654125214, -0.13175082206726074, 0.21362416446208954, 0.17799903452396393, -0.5309627652168274, 0.15941721200942993, 0.12643350660800934, -0.11932723969221115, 0.17001786828041077, 0.5477780103683472, -0.02705654315650463, 0.2775888741016388, -0.03405965492129326, -0.20356754958629608, 0.4086516797542572, -0.10026972740888596, -0.4852132797241211, -0.021546319127082825, 0.1747816801071167, -0.19819818437099457, 0.08603900671005249, -0.28379228711128235, 0.408846378326416, 0.2702557146549225, -0.12112533301115036, 0.11489204317331314, 0.37751856446266174, -0.14271265268325806, -0.03350969776511192, 0.07398014515638351, 0.47503647208213806, 0.1976754367351532, -0.46635061502456665, -0.2947937548160553, -0.19806502759456635 ]
https://github.com/huggingface/datasets/issues/1993
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
Perfect. For now, I am loading the dataset from CSV in my interactive process and will wait until you make the PR!
I am using the latest datasets library. In my work, I first use **load_from_disk** to load a data set that contains 3.8Gb information. Then during my training process, I update that dataset object and add new elements and save it in a different place. When I save the dataset with **save_to_disk**, the original dataset which is already in the disk also gets updated. I do not want to update it. How to prevent from this?
22
How to load a dataset with load_from disk and save it again after doing transformations without changing the original?
[ -0.4283033609390259, -0.023008281365036964, -0.16141566634178162, 0.15455444157123566, 0.22215554118156433, 0.026572303846478462, 0.17353075742721558, 0.01602463237941265, 0.13161078095436096, 0.04836121201515198, -0.05531523749232292, 0.46979713439941406, -0.05540449917316437, 0.26090991497039795, 0.17851771414279938, 0.11127587407827377, 0.056117866188287735, 0.33632782101631165, -0.5746411681175232, -0.11774154752492905, -0.22746141254901886, 0.03148174658417702, 0.13422398269176483, -0.29940733313560486, -0.08599486202001572, -0.2852741777896881, -0.15234695374965668, 0.2792096734046936, 0.10302402824163437, 0.2006692737340927, -0.024540038779377937, 0.2603270709514618, 0.23277711868286133, 0.1842171847820282, -0.00010651352204149589, 0.180067241191864, -0.5165371298789978, -0.23138146102428436, -0.3461831510066986, 0.03558078780770302, 0.08685769140720367, -0.10748723894357681, -0.23452837765216827, -0.40775614976882935, -0.033033255487680435, 0.006586224306374788, -0.05745106562972069, -0.36552661657333374, 0.5319626331329346, -0.2607553005218506, 0.1967901885509491, -0.08392678201198578, -0.3489849865436554, -0.13461951911449432, -0.24364110827445984, 0.33120059967041016, 0.1778474897146225, 0.05590788647532463, -0.0032469562720507383, 0.2543792128562927, -0.20881445705890656, 0.24682216346263885, -0.06718791276216507, -0.22855348885059357, 0.18040673434734344, -0.041187893599271774, 0.27592313289642334, -0.007199708838015795, 0.16042472422122955, -0.036273032426834106, 0.39424410462379456, -0.42044705152511597, -0.20601589977741241, -0.27955758571624756, 0.02967342734336853, -0.07315001636743546, -0.18393808603286743, 0.15139803290367126, 0.031784720718860626, 0.24079905450344086, -0.3479441702365875, -0.6103264689445496, -0.049113042652606964, -0.06502900272607803, -0.22648130357265472, -0.37104085087776184, -0.05637851357460022, -0.05674754083156586, 0.051707878708839417, 0.20410117506980896, 0.31270503997802734, 0.09621324390172958, -0.06645813584327698, -0.01886783167719841, -0.03257247060537338, -0.16095708310604095, -0.018942153081297874, 0.010625649243593216, -0.04533728212118149, 0.15597431361675262, 0.32131654024124146, 0.09299235790967941, -0.14437061548233032, 0.03397393971681595, -0.03408247232437134, 0.3395555019378662, 0.027778740972280502, -0.03379698842763901, 0.09923609346151352, 0.014458098448812962, -0.31557226181030273, 0.002739289542660117, -0.013130996376276016, -0.023385126143693924, 0.3279115855693817, -0.03711923584342003, 0.18505170941352844, 0.15784873068332672, 0.008118615485727787, -0.06486659497022629, 0.4454686939716339, -0.016279062256217003, -0.19232653081417084, 0.4015505313873291, 0.2515181005001068, 0.19227683544158936, 0.26258188486099243, 0.16856230795383453, 0.029081067070364952, -0.07616303116083145, -0.18882820010185242, -0.2320702224969864, -0.05221351981163025, 0.1898115873336792, 0.10903265327215195, 0.23896342515945435, 0.24404974281787872, 0.14170530438423157, -0.20224180817604065, -0.03972901031374931, 0.06799664348363876, 0.01233174093067646, 0.3974948823451996, 0.09948231279850006, 0.1880456805229187, -0.019247790798544884, 0.1287674754858017, 0.0050817448645830154, -0.11513778567314148, 0.35268405079841614, -0.08944806456565857, -0.03086700662970543, 0.22136543691158295, 0.27945271134376526, -0.09686657041311264, 0.025472275912761688, -0.4802437424659729, 0.07032950967550278, -0.03627568855881691, -0.1665743589401245, 0.04768054559826851, -0.01701926626265049, -0.04189825430512428, -0.12153194099664688, -0.07740307599306107, 0.08889162540435791, -0.41411077976226807, -0.20601603388786316, 0.26943376660346985, -0.2045716792345047, -0.20470678806304932, 0.06846781075000763, -0.2093198597431183, 0.19203417003154755, -0.15463197231292725, -0.13070698082447052, 0.6175364255905151, -0.028756635263562202, -0.17005394399166107, 0.10505488514900208, -0.13989068567752838, -0.15326689183712006, 0.12878501415252686, 0.3237308859825134, 0.3815205991268158, -0.09806250035762787, -0.3393862545490265, 0.2756698429584503, 0.16235455870628357, 0.2224104255437851, -0.043007735162973404, -0.214323952794075, 0.057866472750902176, -0.033556465059518814, 0.1436239331960678, 0.45690053701400757, 0.2916716933250427, 0.2788126468658447, 0.2946195900440216, -0.2531444728374481, 0.14824575185775757, 0.4189145565032959, -0.216243714094162, -0.022039346396923065, -0.03364448621869087, 0.08528012037277222, -0.4972718358039856, -0.07991362363100052, 0.008084701374173164, -0.43766000866889954, 0.19952601194381714, -0.03583826497197151, -0.30454719066619873, -0.13533850014209747, 0.09991700202226639, 0.12388396263122559, 0.17221088707447052, 0.35849276185035706, -0.11264997720718384, -0.22214755415916443, -0.2444215714931488, 0.15509070456027985, 0.04463283345103264, -0.08222976326942444, -0.670085608959198, 0.35583817958831787, 0.06266903132200241, -0.16865287721157074, -0.12691128253936768, -0.12588857114315033, 0.20001311600208282, -0.07339874655008316, -0.003279865952208638, 0.19532209634780884, 0.03979678824543953, 0.570113480091095, -0.04155779629945755, 0.07787017524242401, -0.04463495686650276, 0.07342685014009476, 0.2657391130924225, -0.14111509919166565, 0.08765234053134918, 0.10149165242910385, -0.23084333539009094, 0.2188255786895752, -0.2309543490409851, 0.038063764572143555, 0.25702592730522156, -0.12720198929309845, 0.19841623306274414, -0.31369516253471375, -0.11441988497972488, -0.36161547899246216, -0.08984687924385071, 0.22555983066558838, 0.28315478563308716, 0.005874903406947851, -0.013512738049030304, 0.08164387196302414, 0.3798673450946808, -0.2001456320285797, 0.059730179607868195, -0.13419599831104279, -0.058119360357522964, 0.0516771599650383, -0.1730564683675766, 0.39167875051498413, 0.15084676444530487, 0.22816048562526703, 0.045965708792209625, 0.01228413451462984, -0.001187397981993854, -0.09196954220533371, 0.02809249237179756, -0.19557419419288635, 0.5252601504325867, 0.312656044960022, -0.02971090003848076, -0.09916125237941742, -0.3101350963115692, 0.10209859162569046, 0.21924975514411926, -0.15096594393253326, -0.1149565726518631, -0.027329355478286743, -0.08342111855745316, 0.10268107801675797, -0.2937077581882477, -0.02261936664581299, 0.024766765534877777, -0.038291085511446, -0.1384621113538742, 0.39341917634010315, -0.04621000215411186, 0.25827285647392273, 0.16602948307991028, 0.014017300680279732, 0.020635686814785004, -0.2808050811290741, -0.06917374581098557, -0.22652509808540344, 0.17114409804344177, 0.13673189282417297, -0.1251925826072693, 0.06408170610666275, 0.3451364040374756, -0.31224825978279114, 0.02007402665913105, -0.47748246788978577, 0.07028812915086746, 0.05131078138947487, 0.22899578511714935, 0.030948014929890633, 0.016202419996261597, 0.3911517858505249, -0.19513264298439026, -0.14028213918209076, 0.030987318605184555, -0.3719809651374817, -0.19353705644607544, -0.01765119470655918, 0.1759660691022873, 0.16198453307151794, -0.12335588783025742, -0.17087402939796448, -0.04869067668914795, -0.19086800515651703, -0.02890549972653389, 0.08288068324327469, 0.015055820345878601, -0.053884100168943405, 0.16555561125278473, -0.21160100400447845, 0.34675276279449463, 0.17732325196266174, -0.32470765709877014, -0.35812947154045105, 0.2650371491909027, -0.09470570087432861, -0.13647153973579407, -0.03267369419336319, -0.21168962121009827, 0.08541025221347809, 0.5363093018531799, -0.5030611157417297, -0.11275627464056015, 0.13349193334579468, 0.18154995143413544, -0.3105264902114868, 0.3299279510974884, 0.5652551054954529, 0.1672389805316925, -0.12299506366252899, -0.09617557376623154, -0.22540183365345, 0.020850788801908493, 0.11836440861225128, 0.03327656164765358, -0.39268365502357483, 0.1982509046792984, -0.13815543055534363, 0.2296518236398697, -0.30190107226371765, -0.11575127393007278, 0.24243825674057007, -0.14659936726093292, 0.4507811367511749, -0.14948560297489166, -0.04187529534101486, -0.3553687632083893, -0.11253760010004044, -0.31578677892684937, -0.10449882596731186, -0.0634642094373703, -0.13876324892044067, -0.11715754121541977, -0.10128463804721832, -0.5017565488815308, -0.2928970754146576, 0.1465829610824585, -0.10273431241512299, 0.23990179598331451, 0.15557710826396942, 0.3166545629501343, -0.10534583032131195, 0.1744638830423355, 0.14278675615787506, -0.03317191079258919, 0.27471208572387695, -0.14594556391239166, -0.3181426227092743, 0.10122577100992203, -0.08294600993394852, 0.07249137759208679, -0.1989378035068512, -0.1990206092596054, 0.07646333426237106, -0.2620548903942108, -0.24845999479293823, -0.21581749618053436, 0.7965018153190613, 0.2421426624059677, 0.38098281621932983, 0.31965172290802, -0.45254144072532654, -0.35335052013397217, 0.18772490322589874, -0.09754185378551483, -0.4541647732257843, -0.0318249948322773, 0.6746238470077515, -0.01857919804751873, 0.08985114097595215, -0.11046727746725082, 0.48968368768692017, -0.41520121693611145, -0.007728947792202234, -0.2255905121564865, -0.26986220479011536, -0.6374182105064392, -0.20044028759002686, -0.29320961236953735, -0.06457840651273727, -0.07572779059410095, 0.20299305021762848, -0.38120606541633606, -0.24684110283851624, -0.06908217817544937, 0.13292688131332397, 0.44378432631492615, 0.3278329372406006, -0.06413953006267548, -0.0312091875821352, 0.24578922986984253, 0.06227433681488037, 0.3784467279911041, -0.26163822412490845, 0.15322178602218628, 0.1913454681634903, 0.14274215698242188, 0.07489432394504547, 0.3150380551815033, 0.17643451690673828, -0.20517988502979279, 0.02209695428609848, -0.06648571789264679, -0.4147898852825165, 0.14634928107261658, -0.30950284004211426, -0.1771959513425827, -0.02579702064394951, -0.27624234557151794, 0.5010859966278076, -0.059521812945604324, -0.12448468804359436, -0.18347550928592682, -0.08055531978607178, -0.3643137812614441, 0.4154721200466156, 0.1648016721010208, 0.6950461864471436, -0.11034875363111496, 0.3431367874145508, 0.2593013346195221, -0.025915171951055527, -0.13279522955417633, -0.08912404626607895, -0.08542805165052414, -0.380445271730423, -0.3120884895324707, -0.02439946122467518, -0.07896552979946136, -0.03661090508103371, 0.3623434901237488, -0.3414168953895569, 0.01497464720159769, -0.08402858674526215, -0.09403165429830551, -0.15479984879493713, -0.015792250633239746, -0.31014594435691833, -0.24301038682460785, -0.38720613718032837, 0.13869519531726837, 0.029418829828500748, -0.08386259526014328, -0.11733824014663696, 0.1234135553240776, 0.1430487483739853, 0.05662960931658745, 0.3375110924243927, 0.06858129799365997, -0.09136231243610382, 0.3398621678352356, -0.33791351318359375, -0.5016369223594666, -0.5246484279632568, 0.38033556938171387, 0.25172853469848633, 0.08021610975265503, 0.10060032457113266, 0.02515183575451374, -0.07941576093435287, 0.24264483153820038, -0.1682802438735962, -0.007076717913150787, 0.5192754864692688, 0.07647622376680374, 0.04422541707754135, 0.12554730474948883, -0.14169390499591827, -0.10197209566831589, 0.005908621475100517, -0.1278136968612671, -0.1410326212644577, -0.33589470386505127, 0.07461590319871902, 0.1822190284729004, 0.2122630625963211, -0.17882944643497467, 0.11346716433763504, 0.1911645531654358, 0.017310962080955505, 0.26533156633377075, 0.1948641687631607, -0.24183590710163116, -0.08127813041210175, 0.516575038433075, 0.03846903517842293, -0.06579563021659851, 0.388698935508728, -0.25658929347991943, 0.05144927650690079, -0.39932575821876526, 0.346990168094635, 0.0926227867603302, -0.26597118377685547, 0.4193163216114044, -0.06588002294301987, -0.02432115562260151, -0.030156292021274567, 0.061155859380960464, 0.10961834341287613, 0.08601909130811691, 0.06211570277810097, -0.17326420545578003, -0.3621085286140442, 0.24907498061656952, 0.472777783870697, 0.3719693422317505, 0.4217846989631653, 0.009315908886492252, -0.24375078082084656, 0.16222910583019257, -0.38835322856903076, 0.2019902616739273, 0.22196370363235474, 0.22875958681106567, 0.06614696979522705, -0.07248997688293457, -0.26397469639778137, -0.30835890769958496, 0.2338026911020279, -0.1353239268064499, -0.170939639210701, -0.3024231791496277, -0.2044217735528946, 0.06643946468830109, -0.26634982228279114, 0.192276731133461, -0.13771384954452515, -0.3227854073047638, 0.128098264336586, -0.20402859151363373, 0.1430259793996811, 0.22327208518981934, 0.06866958737373352, 0.06235853582620621, 0.12684878706932068, 0.2516564726829529, -0.20544806122779846, -0.12574797868728638, -0.11821625381708145, 0.057856518775224686, -0.10751225054264069, 0.2247495800256729, -0.1669965237379074, -0.03807326778769493, -0.3023141920566559, -0.025032712146639824, 0.5884454846382141, 0.2880801558494568, 0.27008292078971863, -0.20149119198322296, -0.09050238132476807, 0.11948264390230179, 0.4243675768375397, -0.042715221643447876, -0.33222731947898865, -0.08792091906070709, 0.23311747610569, 0.2800786793231964, -0.2804100811481476, 0.03090611845254898, 0.22573363780975342, -0.42143574357032776, 0.051241930574178696, 0.20146341621875763, 0.09253089129924774, -0.09308675676584244, -0.07863614708185196, 0.010284245945513248, 0.3001403212547302, -0.07209676504135132, 0.17096784710884094, 0.5765984654426575, -0.24585698544979095, 0.04255545884370804, 0.09059704095125198, 0.3996850252151489, 0.12299498915672302, 0.31309252977371216, -0.08735878765583038, 0.35960933566093445, -0.1860954612493515, 0.1565093845129013, -0.21988540887832642, -0.35816270112991333, 0.3162330090999603, 0.020412247627973557, -0.22357912361621857, 0.2590894401073456, -0.027812128886580467, -0.11409628391265869, 0.031433477997779846, -0.2525472342967987, -0.14173243939876556, 0.6293142437934875, -0.26827099919319153, -0.01774490252137184, -0.09328938275575638, -0.23650561273097992, 0.22036972641944885, 0.31122148036956787, -0.10947990417480469, -0.17275984585285187, 0.2645234763622284, 0.11055629700422287, 0.12717485427856445, 0.14865553379058838, 0.23097190260887146, -0.25507789850234985, -0.16646718978881836, -0.2662407457828522, 0.07090027630329132, 0.11954280734062195, 0.030452730134129524, 0.10920153558254242, 0.01632736809551716, -0.0308658666908741, 0.007121772971004248, 0.04357188194990158, 0.22789229452610016, 0.1879364252090454, -0.1287955343723297, -0.18498340249061584, -0.13527508080005646, 0.1211862564086914, 0.20403064787387848, 0.35089391469955444, 0.22932691872119904, -0.19871921837329865, -0.055061955004930496, 0.17216357588768005, 0.21983015537261963, -0.03255760669708252, 0.14675986766815186, 0.3180052638053894, -0.19676806032657623, -0.12014387547969818, -0.174783855676651, 0.04537224397063255, -0.13135313987731934, 0.30898988246917725, -0.28863462805747986, 0.18902048468589783, 0.2204885482788086, 0.13952726125717163, 0.2037494033575058, 0.396359920501709, 0.06474630534648895, -0.3646923005580902, -0.11546354740858078, -0.150401309132576, -0.4069748818874359, -0.060465771704912186, 0.497341513633728, -0.02687028981745243, -0.3048434853553772, 0.23093682527542114, 0.4784661829471588, 0.2002841830253601, 0.029570139944553375, -0.13122887909412384, 0.29818642139434814, 0.20651543140411377, 0.05612163990736008, -0.2139463573694229, -0.0052232202142477036, 0.29902762174606323, -0.07808418571949005, -0.36811956763267517, -0.00032588778412900865, 0.18780013918876648, 0.21391749382019043, 0.09870557487010956, -0.035573843866586685, -0.2439204603433609, 0.24335160851478577, 0.4632108509540558, -0.04504479467868805, -0.0008512877393513918, -0.3425736129283905, 0.08336697518825531, 0.2639933228492737, -0.15228143334388733, 0.06335732340812683, -0.16845102608203888, 0.34328439831733704, 0.14310187101364136, -0.20818427205085754, 0.3099769055843353, -0.15906600654125214, -0.13175082206726074, 0.21362416446208954, 0.17799903452396393, -0.5309627652168274, 0.15941721200942993, 0.12643350660800934, -0.11932723969221115, 0.17001786828041077, 0.5477780103683472, -0.02705654315650463, 0.2775888741016388, -0.03405965492129326, -0.20356754958629608, 0.4086516797542572, -0.10026972740888596, -0.4852132797241211, -0.021546319127082825, 0.1747816801071167, -0.19819818437099457, 0.08603900671005249, -0.28379228711128235, 0.408846378326416, 0.2702557146549225, -0.12112533301115036, 0.11489204317331314, 0.37751856446266174, -0.14271265268325806, -0.03350969776511192, 0.07398014515638351, 0.47503647208213806, 0.1976754367351532, -0.46635061502456665, -0.2947937548160553, -0.19806502759456635 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Hi @hwijeen, you might want to look at issues #1796 and #1949. I think it could be something related to the I/O operations being performed.
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
25
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
I see that many people are experiencing the same issue. Is this problem considered an "official" bug that is worth a closer look? @lhoestq
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
24
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Yes this looks like a bug. On my side I haven't managed to reproduce it but @theo-m has. We'll investigate this !
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
22
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Thank you for the reply! I would be happy to follow the discussions related to the issue. If you do not mind, could you also give a little more explanation on my p.s.2? I am having a hard time figuring out why the single processing `map` uses all of my cores. @lhoestq @theo-m
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
53
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Regarding your ps2: It depends what function you pass to `map`. For example, fast tokenizers from `transformers` in Rust tokenize texts and parallelize the tokenization over all the cores.
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
29
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
I am still experiencing this issue with datasets 1.9.0.. Has there been a further investigation? <img width="442" alt="image" src="https://user-images.githubusercontent.com/29157715/126143387-8b5ddca2-a896-4e18-abf7-4fbf62a48b41.png">
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
19
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Hi. Is there any update on this issue? I am desperately trying to decrease my times, and multiprocessing "should" be the solution, but it literally takes 5 times longer.
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
29
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Hi, I’m running into the same issue and trying to come up with a simple benchmark. # environment info I have a total of 80 CPUs. - `datasets` version: 2.4.0 - Platform: Linux-4.18.0-305.65.1.el8_4.x86_64-x86_64-with-glibc2.28 - Python version: 3.10.4 - PyArrow version: 8.0.0 - Pandas version: 1.4.3 # How to reproduce ```py In [1]: from datasets import Dataset, set_caching_enabled In [2]: import numpy as np In [3]: set_caching_enabled(False) In [4]: d = Dataset.from_dict({'foo': np.random.randn(1000,256)}) In [9]: d.set_format('np') In [14]: def sort(array): ...: np.sort(array) # multiprocessing disabled In [19]: %%timeit ...: d.map(sort, input_columns='foo') 78.8 ms ± 1.22 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # multiprocessing enabled In [27]: %%timeit ...: d.map(sort, input_columns='foo',num_proc=10) 858 ms ± 45.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) ```
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
134
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Spawning multiple processes has an overhead. For small datasets the processing is likely to be faster than spawning the processes and passing the data to them. Especially since your dataset is in memory: the data has to be copied to the subprocesses. On the other hand, datasets loaded from disk are much faster to reload from a subprocess thanks to memory mapping.
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
62
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
Thanks for the clarifications! Indeed, when saving then loading the above dataset to disk, and increasing the number of rows to 10K or 100K, the performance gap narrows. ```py # with 10000 rows In [3]: %%timeit ...: d.map(sort, input_columns='foo') 578 ms ± 5.89 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) In [4]: %%timeit ...: d.map(sort, input_columns='foo',num_proc=10) 1.06 s ± 47.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # with 100000 rows In [6]: %%timeit ...: d.map(sort, input_columns='foo') 5.8 s ± 25.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) In [7]: %%timeit ...: d.map(sort, input_columns='foo',num_proc=10) 7.23 s ± 154 ms per loop (mean ± std. dev. of 7 runs, 1 loop each ```
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
130
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
any updates on this issue? I'm using `datasets=2.12.0`. Adding `num_proc` to the mapping function makes it at least 5x slower than using a single process.
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
25
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1992
`datasets.map` multi processing much slower than single processing
What kind of function are you passing to `map` ? How many CPUs do you have and what did you set for `num_proc` ?
Hi, thank you for the great library. I've been using datasets to pretrain language models, and it often involves datasets as large as ~70G. My data preparation step is roughly two steps: `load_dataset` which splits corpora into a table of sentences, and `map` converts a sentence into a list of integers, using a tokenizer. I noticed that `map` function with `num_proc=mp.cpu_count() //2` takes more than 20 hours to finish the job where as `num_proc=1` gets the job done in about 5 hours. The machine I used has 40 cores, with 126G of RAM. There were no other jobs when `map` function was running. What could be the reason? I would be happy to provide information necessary to spot the reason. p.s. I was experiencing the imbalance issue mentioned in [here](https://github.com/huggingface/datasets/issues/610#issuecomment-705177036) when I was using multi processing. p.s.2 When I run `map` with `num_proc=1`, I see one tqdm bar but all the cores are working. When `num_proc=20`, only 20 cores work. ![Screen Shot 2021-03-05 at 11 04 59](https://user-images.githubusercontent.com/29157715/110056895-ef6cf000-7da2-11eb-8307-6698e9fb1ad4.png)
24
`datasets.map` multi processing much slower than single processing
[ -0.4723043143749237, -0.17187029123306274, -0.28866830468177795, 0.13946372270584106, -0.10917020589113235, 0.11713316291570663, 0.20806686580181122, 0.3327603042125702, 0.2388889491558075, 0.024892715737223625, -0.1270909458398819, 0.2950645387172699, 0.14311523735523224, 0.1617112159729004, -0.379300057888031, 0.10738898813724518, 0.10528045147657394, 0.14283373951911926, -0.13789738714694977, -0.22200846672058105, -0.2397300899028778, 0.0788227990269661, -0.16339589655399323, -0.0033208592794835567, -0.2696988880634308, -0.21465343236923218, 0.058273810893297195, -0.007403034251183271, -0.15707089006900787, -0.12191213667392731, -0.25773856043815613, 0.2377789318561554, -0.4328050911426544, 0.5171746015548706, -0.00010312498488929123, 0.028413839638233185, 0.04756137356162071, 0.27061861753463745, -0.02442646585404873, 0.45026326179504395, -0.2788650393486023, -0.21274559199810028, -0.20665228366851807, -0.17279665172100067, 0.06164823845028877, 0.02023366466164589, 0.1497398316860199, -0.5212889313697815, 0.0046081338077783585, -0.12431352585554123, 0.24858132004737854, 0.2585119605064392, -0.5020831227302551, 0.010266145691275597, -0.009333587251603603, -0.010327398777008057, -0.01683705858886242, -0.0632534772157669, 0.19962237775325775, -0.31102821230888367, -0.3346959948539734, 0.45094218850135803, -0.10960125178098679, 0.21459059417247772, -0.043880194425582886, -0.1038234606385231, 0.126308873295784, -0.121876560151577, 0.22775143384933472, 0.053065620362758636, -0.04597138985991478, 0.08667642623186111, -0.23107829689979553, -0.1738659143447876, -0.4418375790119171, -0.0021706740371882915, 0.02849254198372364, -0.01365484669804573, 0.04086698964238167, -0.17490573227405548, -0.362937867641449, -0.06896727532148361, 0.20329931378364563, -0.11415629088878632, -0.10048198699951172, 0.26325932145118713, 0.10481525957584381, 0.1829616129398346, 0.2246839553117752, 0.131238654255867, 0.07631479203701019, -0.28102633357048035, 0.2806530296802521, 0.10219161957502365, -0.5911529660224915, 0.13236747682094574, 0.34154313802719116, -0.049980953335762024, -0.0701526328921318, -0.4164617955684662, 0.1719714105129242, 0.3968285024166107, 0.06792508065700531, -0.0015885673929005861, 0.26630449295043945, -0.1924627423286438, -0.17748308181762695, 0.18398001790046692, 0.31200364232063293, -0.2119588404893875, -0.4071596562862396, 0.20287813246250153, 0.23419615626335144, -0.37499547004699707, -0.11412052810192108, 0.017984511330723763, -0.18419307470321655, 0.10610555857419968, -0.08893652260303497, 0.007841263897716999, -0.2043347954750061, -0.13750839233398438, 0.05839672312140465, 0.2656857669353485, -0.022937742993235588, 0.3051293194293976, -0.10487900674343109, -0.2664048969745636, -0.3453948199748993, -0.12472718209028244, -0.29885804653167725, -0.038061365485191345, -0.13920649886131287, -0.054560329765081406, 0.05663958564400673, -0.17851509153842926, 0.014160744845867157, 0.20318849384784698, -0.09904278069734573, 0.0737197995185852, 0.35831302404403687, -0.2528268098831177, 0.24042874574661255, 0.1589355617761612, 0.1213885024189949, 0.5932042598724365, -0.0516463927924633, 0.16643045842647552, -0.09871247410774231, -0.001492408919148147, -0.37819981575012207, -0.054953087121248245, 0.4694933593273163, 0.23653598129749298, 0.08420242369174957, 0.17270822823047638, -0.13062261044979095, 0.21054327487945557, 0.20265421271324158, -0.15981754660606384, -0.3320334255695343, -0.06444748491048813, -0.3439096212387085, -0.20436663925647736, -0.08714637905359268, 0.30507761240005493, -0.25621336698532104, 0.21165047585964203, -0.14099913835525513, 0.02681216225028038, 0.4040292799472809, 0.5490828156471252, -0.27241358160972595, 0.31451183557510376, -0.16995322704315186, 0.2564864754676819, 0.22369429469108582, -0.060901883989572525, -0.32104331254959106, 0.5387510061264038, -0.18259264528751373, -0.08047753572463989, 0.020760631188750267, 0.252849280834198, 0.2366611212491989, 0.1041354387998581, 0.2365122139453888, 0.13997231423854828, 0.005466231144964695, 0.563353955745697, -0.19258254766464233, 0.007085185497999191, 0.18513837456703186, 0.059385206550359726, -0.054062310606241226, -0.10827653855085373, 0.010141478851437569, -0.31656450033187866, 0.3167361617088318, -0.18853214383125305, 0.05991419777274132, 0.28275346755981445, -0.20316775143146515, -0.3232507109642029, -0.0757497027516365, -0.0801115557551384, -0.13606275618076324, 0.20814915001392365, -0.04215063899755478, -0.08417219668626785, 0.08107538521289825, -0.08925455063581467, 0.059537727385759354, 0.11584129929542542, -0.23754821717739105, 0.016866590827703476, 0.18099331855773926, 0.2875891625881195, 0.049255333840847015, -0.18549813330173492, 0.06267895549535751, 0.22008220851421356, 0.16662004590034485, -0.2766656279563904, -0.12898856401443481, -0.11160439252853394, -0.05894491448998451, -0.017704997211694717, 0.07484361529350281, -0.25217342376708984, 0.029673272743821144, -0.17720483243465424, -0.06675936281681061, 0.18327690660953522, 0.2980348765850067, 0.14878979325294495, 0.3715048134326935, 0.12683561444282532, 0.08776962012052536, 0.23334819078445435, 0.029289040714502335, -0.061980489641427994, 0.10331642627716064, -0.14751100540161133, -0.039657436311244965, 0.30104291439056396, 0.05401176959276199, 0.26719430088996887, 0.13904790580272675, -0.15147431194782257, 0.12985660135746002, 0.3460073471069336, 0.13351385295391083, -0.07213632017374039, 0.1734052151441574, 0.15127141773700714, 0.30027490854263306, 0.31820470094680786, -0.1342768669128418, 0.2904738783836365, 0.7043858766555786, 0.11521454155445099, -0.10554061830043793, -0.1745585799217224, -0.03507324680685997, -0.15325643122196198, 0.007830397225916386, 0.18488985300064087, 0.28281140327453613, 0.13835960626602173, 0.3885127305984497, -0.18695074319839478, -0.12125082314014435, -0.165398970246315, 0.06873328238725662, 0.041791871190071106, 0.3002006411552429, 0.06581264734268188, 0.19580857455730438, -0.3154945373535156, -0.28862422704696655, -0.14404112100601196, 0.36897677183151245, 0.1436317414045334, -0.0013312791706994176, -0.020561790093779564, -0.16445255279541016, -0.11997243762016296, 0.11633597314357758, 0.12326350808143616, 0.09707976877689362, -0.35869312286376953, 0.13253429532051086, -0.061667077243328094, -0.17216123640537262, 0.11158827692270279, 0.20998717844486237, -0.12578187882900238, 0.1724882274866104, -0.10228875279426575, 0.04894549772143364, -0.21630392968654633, 0.02274368889629841, 0.17473000288009644, 0.09575564414262772, 0.18054743111133575, 0.228103905916214, -0.11199602484703064, -0.1131809651851654, -0.21393266320228577, -0.13405068218708038, -0.1057649776339531, -0.015318823978304863, -0.08447939157485962, 0.15882030129432678, 0.1621462106704712, -0.20254668593406677, -0.043622277677059174, 0.2853512167930603, -0.2857153117656708, -0.2572859227657318, -0.1464463621377945, -0.06268347799777985, -0.22821423411369324, -0.12425192445516586, -0.32544049620628357, -0.034807827323675156, -0.2676362693309784, 0.2898695170879364, -0.221768319606781, 0.33661049604415894, -0.16596518456935883, 0.1389138400554657, -0.01827133633196354, -0.09237077087163925, 0.09288611263036728, -0.2500523030757904, -0.18908727169036865, 0.18322357535362244, 0.021155569702386856, -0.2053864747285843, -0.23937450349330902, -0.05520161986351013, 0.31334352493286133, 0.3491692543029785, -0.017604002729058266, 0.11866921186447144, -0.5054210424423218, 0.12087487429380417, 0.15801596641540527, 0.21511727571487427, 0.382813423871994, 0.15837547183036804, -0.26157060265541077, -0.041932474821805954, -0.3047872483730316, -0.005476782564073801, 0.03523343428969383, -0.3052142858505249, -0.2029430866241455, 0.4044889807701111, 0.12931136786937714, 0.538148045539856, 0.29331067204475403, -0.12135115265846252, 0.05638330802321434, -0.04276907071471214, 0.005058621522039175, -0.18339981138706207, -0.299011766910553, -0.019126035273075104, -0.14617395401000977, -0.07785065472126007, 0.22523069381713867, -0.19489778578281403, -0.48265644907951355, 0.07435770332813263, 0.11627058684825897, -0.17520208656787872, -0.11242915689945221, 0.1559656411409378, 0.10134191811084747, 0.20135091245174408, 0.319052129983902, -0.0031270398758351803, -0.3675462007522583, 0.18106284737586975, 0.026953542605042458, -0.2999303638935089, 0.04424271360039711, -0.4125841557979584, -0.36718931794166565, -0.1258281022310257, -0.41575801372528076, 0.2772776782512665, 0.06804823875427246, 0.18260382115840912, 0.08440567553043365, -0.08009585738182068, 0.16638273000717163, -0.15546633303165436, 0.6789191365242004, -0.355304092168808, 0.08042792975902557, 0.10508758574724197, -0.2898046374320984, -0.2271949052810669, 0.08952992409467697, -0.26087436079978943, 0.3718176782131195, 0.5028157234191895, 0.40994733572006226, -0.12195908278226852, -0.20298032462596893, -0.029561100527644157, 0.14352355897426605, 0.11426956206560135, -0.028004461899399757, -0.2999451160430908, -0.04332369193434715, -0.14491181075572968, 0.08961650729179382, -0.02176516130566597, -0.014756445772945881, 0.10370602458715439, -0.3576602339744568, -0.030131861567497253, 0.08149813860654831, 0.15626239776611328, 0.3422187566757202, 0.07383233308792114, 0.0893525630235672, 0.33901649713516235, 0.09065530449151993, 0.18444590270519257, 0.02231152541935444, 0.37187790870666504, -0.17826944589614868, -0.03533071279525757, 0.29623404145240784, 0.06114158034324646, 0.30426934361457825, 0.28852200508117676, 0.012960548512637615, -0.008860454894602299, 0.08125445991754532, 0.20090539753437042, -0.23491203784942627, 0.31609371304512024, 0.41515758633613586, 0.20529110729694366, -0.22212757170200348, -0.3191852271556854, 0.004043689928948879, 0.36982056498527527, -0.26802608370780945, 0.3475557267665863, -0.4569160044193268, 0.09357108920812607, 0.1379072666168213, -0.05017080530524254, 0.3801696300506592, -0.4127804934978485, 0.08899981528520584, -0.1713111251592636, -0.028774727135896683, -0.057701226323843, -0.201823890209198, 0.2488648146390915, -0.21896478533744812, -0.40520578622817993, 0.19886969029903412, -0.17763282358646393, 0.18030020594596863, 0.31844478845596313, 0.2149415910243988, 0.008724582381546497, 0.3160412013530731, 0.16728906333446503, -0.23023732006549835, 0.32625311613082886, 0.37831443548202515, -0.24404428899288177, 0.08479008078575134, 0.18238979578018188, 0.09084983170032501, -0.0923880934715271, 0.017488783225417137, -0.18191160261631012, -0.2051723450422287, -0.08385942131280899, -0.046018511056900024, -0.009697530418634415, -0.21425896883010864, 0.42304539680480957, -0.36823341250419617, 0.28374531865119934, -0.10714863985776901, 0.03041318990290165, -0.2493600696325302, 0.22183915972709656, 0.04636509343981743, 0.042734693735837936, 0.07221091538667679, 0.30324018001556396, 0.14220790565013885, -0.33469876646995544, -0.057243168354034424, -0.0006093416013754904, -0.149387389421463, -0.09896277636289597, -0.17316649854183197, -0.20084838569164276, 0.023767484351992607, 0.47534534335136414, -0.06952480226755142, 0.05112204700708389, -0.09961304068565369, 0.19561003148555756, -0.2297942191362381, -0.183161199092865, 0.18512959778308868, 0.10981455445289612, 0.1654806286096573, 0.6049206852912903, -0.06008318439126015, -0.3525785505771637, -0.04603312164545059, 0.56591796875, 0.2747455835342407, 0.13915421068668365, 0.21745248138904572, -0.15831254422664642, -0.36082401871681213, -0.3392195999622345, -0.09592367708683014, -0.05586697906255722, -0.009558741003274918, 0.3233654201030731, -0.20256568491458893, -0.31988850235939026, 0.2127562314271927, -0.11194636672735214, -0.17153453826904297, 0.1371917873620987, -0.27377745509147644, -0.01727878302335739, -0.21341656148433685, -0.02635105885565281, -0.11340997368097305, -0.04042511433362961, 0.08609124273061752, 0.16847029328346252, -0.037600547075271606, 0.3685716688632965, -0.38364148139953613, -0.09502788633108139, -0.015953004360198975, 0.1291951984167099, -0.022588538005948067, -0.17307552695274353, 0.08426303416490555, -0.0033575380221009254, 0.2635512053966522, 0.10221253335475922, -0.3153678774833679, -0.38261550664901733, 0.29078978300094604, 0.09859059005975723, -0.20139767229557037, -0.15105803310871124, 0.39188897609710693, -0.09881380945444107, -0.23477007448673248, -0.34702765941619873, 0.1097811684012413, 0.07617183774709702, -0.1552199125289917, -0.1800639033317566, 0.14051829278469086, -0.2514643967151642, 0.17222170531749725, 0.11943912506103516, -0.2322559803724289, -0.17175160348415375, -0.13246412575244904, 0.05186901614069939, 0.1809128224849701, -0.24059073626995087, 0.13731272518634796, -0.16006185114383698, 0.05337594449520111, 0.1460009217262268, 0.2833181619644165, -0.19023439288139343, -0.12483210861682892, 0.38467270135879517, 0.42748305201530457, 0.3119708001613617, 0.21127887070178986, -0.13024184107780457, -0.17527015507221222, 0.2275213748216629, -0.227680966258049, -0.36690202355384827, 0.5979177355766296, -0.09625202417373657, 0.5431240797042847, -0.0986861139535904, 0.3483355939388275, 0.21371985971927643, 0.12585030496120453, -0.03540297970175743, -0.010980330407619476, -0.4542139172554016, 0.04462677240371704, 0.23925797641277313, 0.30897822976112366, -0.04100879654288292, 0.2990175485610962, 0.0959073081612587, 0.07484331727027893, 0.6272013187408447, 0.24122636020183563, 0.2666744291782379, 0.297305166721344, 0.17542988061904907, -0.10015785694122314, -0.3011876940727234, 0.3407924473285675, 0.3160655200481415, -0.2780473828315735, 0.14389589428901672, 0.17859657108783722, -0.001715394901111722, -0.26370465755462646, -0.2625333070755005, -0.19542722404003143, 0.2982505261898041, -0.3444215953350067, -0.24633808434009552, 0.07232546806335449, -0.114462710916996, -0.043921343982219696, 0.14791923761367798, -0.15778014063835144, 0.24224168062210083, 0.5722259879112244, -0.1794322431087494, 0.208547905087471, -0.018526820465922356, -0.27206185460090637, -0.30567416548728943, 0.35985249280929565, -0.1461586356163025, 0.04214581847190857, -0.13933533430099487, -0.04701516032218933, -0.10779312998056412, 0.34401658177375793, 0.2669143080711365, 0.2886330187320709, 0.021433765068650246, 0.18169662356376648, -0.15887011587619781, -0.12015358358621597, -0.1871568113565445, 0.21559225022792816, -0.12735243141651154, -0.03935544192790985, 0.371415376663208, 0.12383522093296051, -0.28915005922317505, -0.2843230068683624, 0.11425354331731796, 0.1623372733592987, 0.07698071748018265, -0.1589611917734146, -0.1906711757183075, -0.1366809904575348, 0.025613835081458092, 0.10280493646860123, -0.4159001111984253, -0.3393858075141907, 0.36996185779571533, -0.41593652963638306, 0.10360272228717804, -0.1543319821357727, 0.14984551072120667, -0.2109939604997635, 0.6607910990715027, 0.15185129642486572, 0.19248855113983154, -0.21383629739284515, -0.10728878527879715, -0.48222145438194275, 0.0036081289872527122, -0.34842491149902344, 0.11945061385631561, -0.1800156980752945, 0.4685331881046295, 0.17291317880153656, -0.015119514428079128, 0.37230488657951355, -0.2710699439048767, -0.005654213950037956, 0.1542273312807083, -0.27612271904945374, 0.2625146210193634, -0.34540626406669617, -0.3060414493083954, 0.1357848197221756, -0.5124859809875488, 0.3757142722606659, 0.057613249868154526, 0.25166061520576477, -0.04484593868255615, 0.00232266029343009, -0.002728679683059454, -0.04935799911618233, 0.2206658571958542, 0.17287775874137878, 0.23424175381660461, -0.30837178230285645, -0.11745509505271912, -0.17539188265800476, 0.18091990053653717, -0.09401161968708038, 0.24741972982883453, 0.3118106722831726, 0.17113186419010162, -0.145207017660141, 0.023149030283093452, 0.05425342544913292, -0.006830875296145678, 0.049261391162872314, 0.14213338494300842, 0.0589582733809948, 0.10494695603847504, 0.024837085977196693, 0.17094500362873077, -0.03979409486055374, 0.23693065345287323, 0.0073439632542431355, -0.15803682804107666, -0.16866011917591095, -0.21337315440177917, 0.2090572714805603, -0.17681309580802917, -0.3257972002029419, -0.3132253587245941, 0.2283693552017212, -0.04384121298789978, 0.28440776467323303, -0.17809481918811798, -0.18260811269283295, 0.2746810019016266, -0.04668008163571358, -0.2614113986492157, 0.36422207951545715, -0.23517298698425293, -0.1329842060804367, -0.09653334319591522, 0.12416820228099823, -0.09891687333583832, -0.4359099864959717, 0.02672945335507393, -0.1620136946439743 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
Do you think this is trying to bring the dataset into memory and if I can avoid it to save on memory so it only brings a batch into memory? @lhoestq thank you
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/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 "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
33
OSError: Memory mapping file failed: Cannot allocate memory
[ -0.1340877264738083, -0.22973375022411346, -0.20842617750167847, 0.3810867369174957, 0.3796180486679077, -0.02415354922413826, -0.1345478892326355, 0.34922346472740173, 0.22156944870948792, 0.2967315912246704, 0.058379072695970535, 0.053929053246974945, -0.19420509040355682, -0.2546064555644989, -0.21051087975502014, 0.054768167436122894, -0.05514560267329216, 0.03647255897521973, -0.3414470851421356, 0.131743922829628, -0.40260425209999084, 0.3171733617782593, -0.054438043385744095, 0.02822841890156269, -0.2345396727323532, -0.03821702301502228, -0.0035305253695696592, 0.16314223408699036, -0.19803152978420258, -0.3220241665840149, -0.14085575938224792, -0.38941875100135803, -0.27746155858039856, 0.2706363797187805, -0.00009346877777716145, 0.08335213363170624, 0.011979516595602036, 0.024075103923678398, 0.038060665130615234, 0.2525874376296997, -0.16313102841377258, 0.017016777768731117, -0.22986754775047302, -0.12335295230150223, -0.0063518802635371685, 0.03285796567797661, 0.20765292644500732, -0.46000397205352783, 0.31530120968818665, 0.2721843421459198, 0.4389771521091461, 0.024107564240694046, 0.34867358207702637, -0.3418550193309784, 0.282143771648407, -0.06907345354557037, 0.09975025802850723, 0.2933255136013031, -0.037205349653959274, -0.3373791575431824, -0.037500619888305664, 0.14582638442516327, -0.1863853484392166, 0.18446338176727295, 0.28903135657310486, -0.2202477604150772, 0.2872122824192047, -0.12447769939899445, 0.23063156008720398, -0.42061370611190796, 0.16492268443107605, -0.21049880981445312, 0.2323160022497177, 0.2669382095336914, -0.1957159787416458, -0.19891031086444855, 0.3648853302001953, 0.10609066486358643, -0.16786867380142212, 0.02592352032661438, 0.021926065906882286, -0.14466574788093567, -0.08132386952638626, 0.1597081869840622, -0.06945142894983292, 0.02576073631644249, -0.16943033039569855, 0.042049918323755264, 0.3752903938293457, -0.04467823728919029, -0.18827523291110992, 0.16851355135440826, -0.1719442903995514, 0.11410317569971085, 0.014479639939963818, 0.07543215900659561, 0.007984189316630363, -0.2008017897605896, 0.027528278529644012, -0.3881138861179352, 0.09632380306720734, -0.1024937629699707, 0.15040931105613708, 0.13849741220474243, -0.08037807792425156, 0.24512934684753418, -0.1692076474428177, 0.31550440192222595, 0.016457030549645424, 0.06874945759773254, -0.2188636064529419, -0.08607366681098938, -0.0008310169214382768, -0.3203884959220886, 0.03199484571814537, -0.16104429960250854, 0.08800400048494339, 0.07713140547275543, -0.08801674842834473, 0.0864492803812027, -0.2102462202310562, 0.09208639711141586, 0.0859595313668251, 0.4488292634487152, 0.17902377247810364, -0.13621413707733154, 0.31024160981178284, 0.12583208084106445, -0.1633443385362625, 0.1354062855243683, -0.23338991403579712, 0.39954206347465515, -0.5580645799636841, 0.038386885076761246, 0.06788434088230133, 0.3993716239929199, 0.16077938675880432, -0.21358098089694977, -0.22030417621135712, -0.3104138970375061, 0.01021003071218729, -0.058735188096761703, 0.15411576628684998, 0.1275424361228943, -0.10717038810253143, 0.12507618963718414, 0.2966853976249695, 0.27701064944267273, 0.01797865331172943, 0.23028717935085297, -0.15056359767913818, -0.29680025577545166, 0.13887913525104523, 0.3571828603744507, 0.2917408347129822, 0.13469144701957703, 0.20027007162570953, -0.19587190449237823, 0.3482687175273895, -0.1723274290561676, -0.09839140623807907, 0.0705299898982048, -0.14705337584018707, -0.31731465458869934, 0.12759917974472046, 0.31913521885871887, -0.04099174216389656, 0.08556416630744934, -0.05087370425462723, -0.1571870744228363, 0.36396458745002747, 0.22429335117340088, 0.13076713681221008, 0.13990409672260284, -0.2625539302825928, 0.05160947144031525, 0.014619718305766582, -0.11737599968910217, -0.2117609977722168, -0.06881216168403625, -0.14847783744335175, -0.38985615968704224, -0.1394600123167038, 0.016998441889882088, -0.006228485144674778, 0.31331080198287964, 0.23884141445159912, -0.14999088644981384, 0.13875263929367065, 0.31339290738105774, -0.314288467168808, -0.07553661614656448, -0.2207101285457611, -0.01738034188747406, 0.2301732897758484, 0.06969507783651352, 0.1100117564201355, 0.14245130121707916, 0.12010511010885239, -0.08706900477409363, 0.17603233456611633, 0.17019926011562347, 0.2711380124092102, -0.09768403321504593, -0.09265542030334473, -0.1953193098306656, 0.12388743460178375, -0.033676981925964355, -0.16640174388885498, 0.08039851486682892, 0.0640472024679184, 0.31482189893722534, 0.04152315482497215, 0.09153452515602112, -0.00989826675504446, -0.09416303038597107, 0.3839739263057709, 0.2333456575870514, 0.06285180151462555, -0.12718769907951355, 0.06869214028120041, -0.06444621086120605, -0.19046719372272491, 0.05129355192184448, -0.10783470422029495, -0.018010294064879417, -0.3619755804538727, -0.313206285238266, -0.0012262200471013784, -0.20347003638744354, 0.044895023107528687, 0.035614073276519775, -0.17657454311847687, 0.17410144209861755, 0.20714765787124634, -0.21431155502796173, -0.08989281952381134, 0.1540078967809677, -0.08231843262910843, -0.28443485498428345, 0.06379757076501846, 0.05628174543380737, 0.07471330463886261, -0.05747760832309723, 0.3105061650276184, -0.13892002403736115, 0.09899233281612396, 0.05925280973315239, -0.051491428166627884, 0.0783509612083435, -0.03302665427327156, 0.06954476982355118, 0.41572126746177673, -0.2058548629283905, 0.3534752428531647, -0.03430142626166344, -0.05192793160676956, -0.05895107612013817, 0.04570040851831436, -0.4407781958580017, 0.17849843204021454, 0.2245711237192154, 0.19888676702976227, 0.0250839926302433, 0.09081627428531647, 0.10964518785476685, 0.03707222640514374, 0.033830445259809494, 0.26990872621536255, 0.0734376385807991, -0.015268893912434578, 0.21906115114688873, 0.15200844407081604, -0.044559162110090256, 0.22103199362754822, -0.0705205574631691, 0.24841755628585815, 0.1169070154428482, -0.11695169657468796, -0.14660151302814484, -0.13922736048698425, -0.07613112777471542, 0.04796891659498215, 0.3891313970088959, -0.18094588816165924, -0.5012094974517822, -0.21351934969425201, -0.14290599524974823, -0.03383698686957359, 0.20918846130371094, -0.21370361745357513, -0.10949646681547165, -0.01016034372150898, 0.16452279686927795, -0.12383481115102768, 0.1298249363899231, 0.09405980259180069, 0.20231452584266663, 0.17469657957553864, 0.12434124946594238, 0.057316556572914124, 0.011197528801858425, 0.2080339938402176, 0.21547681093215942, 0.18144609034061432, -0.13207097351551056, 0.23161354660987854, -0.01747874543070793, -0.10885880142450333, -0.01854068413376808, 0.07105940580368042, 0.07857083529233932, 0.0249900184571743, -0.13670293986797333, 0.08081359416246414, 0.3857268691062927, -0.18878069519996643, -0.16383232176303864, 0.24654829502105713, -0.255994588136673, -0.30066388845443726, 0.040531642735004425, 0.09561536461114883, -0.24347059428691864, -0.20021264255046844, -0.2131379395723343, -0.08350425958633423, -0.6004358530044556, 0.15385183691978455, 0.09804563224315643, 0.4079219400882721, 0.15260091423988342, 0.27527523040771484, 0.22012291848659515, -0.16143713891506195, 0.23121775686740875, -0.13274776935577393, -0.11827123910188675, 0.08837343752384186, -0.29544979333877563, -0.0429266020655632, 0.0765778124332428, 0.12801051139831543, 0.3733762204647064, 0.1056075170636177, -0.40974271297454834, -0.07270541042089462, -0.31532004475593567, -0.1386522501707077, -0.15645550191402435, 0.07031740993261337, 0.18561658263206482, 0.1098039299249649, -0.33773940801620483, 0.0343906469643116, -0.1939288228750229, 0.03224192187190056, 0.20697841048240662, 0.08544965833425522, -0.07157193869352341, 0.2278139442205429, -0.03273460268974304, 0.3994066119194031, 0.09420523047447205, 0.33628541231155396, 0.47116726636886597, -0.09502272307872772, 0.09570776671171188, -0.20533880591392517, -0.22936230897903442, 0.055679209530353546, 0.1940644532442093, -0.18349824845790863, 0.08560855686664581, -0.02447953261435032, -0.3036736845970154, -0.11487888544797897, -0.11039283126592636, -0.218910351395607, -0.16290606558322906, 0.14147008955478668, 0.20310933887958527, 0.18650174140930176, -0.2949959337711334, 0.00908547081053257, -0.04154784232378006, 0.047796737402677536, 0.15732885897159576, 0.00456253532320261, -0.1375853717327118, -0.028093324974179268, -0.24675610661506653, -0.10047867149114609, -0.29209110140800476, 0.2676354646682739, -0.181087926030159, -0.006711311172693968, -0.43259039521217346, -0.29453280568122864, 0.030025433748960495, -0.07302689552307129, 0.43487223982810974, 0.1284429281949997, -0.1430034339427948, 0.08133362233638763, -0.0061034709215164185, 0.02749391831457615, 0.13090550899505615, -0.09415620565414429, 0.2759515345096588, 0.09933801740407944, 0.20311933755874634, -0.13384048640727997, 0.11226672679185867, 0.05086302384734154, -0.07945746928453445, -0.0485340841114521, -0.06728755682706833, -0.1050216555595398, -0.2156139761209488, -0.45770251750946045, 0.0020456076599657536, 0.08194322139024734, 0.20922254025936127, 0.5084893107414246, 0.08017003536224365, 0.2544459402561188, -0.04493219777941704, 0.09043552726507187, -0.10181152820587158, 0.2479345053434372, -0.0832681655883789, 0.040572404861450195, 0.08012741059064865, 0.0838940441608429, 0.35128092765808105, 0.35663002729415894, -0.04678598791360855, 0.1746748983860016, 0.3109003007411957, 0.06460116803646088, 0.2741812765598297, 0.2084697186946869, 0.2798570990562439, -0.11022692918777466, -0.04923195391893387, 0.12403026968240738, -0.16622355580329895, 0.10973711311817169, 0.1401020586490631, -0.0017082926351577044, -0.17703202366828918, -0.08426699787378311, -0.1481751650571823, -0.08690693974494934, 0.0595594085752964, 0.4746447503566742, -0.074122853577137, -0.25307613611221313, 0.3572450876235962, 0.15638500452041626, 0.8695578575134277, -0.374035120010376, 0.051062505692243576, 0.12015292793512344, -0.03239714726805687, 0.008560252375900745, -0.15398213267326355, 0.35168027877807617, -0.3232963979244232, -0.11475606262683868, 0.3355538845062256, -0.19657212495803833, 0.0903797447681427, 0.06045452505350113, -0.1997118443250656, -0.07145339995622635, 0.07748246937990189, 0.04162289574742317, -0.3082813024520874, -0.12409107387065887, 0.0038905104156583548, -0.16971173882484436, 0.11218796670436859, 0.37516048550605774, -0.02667274884879589, 0.15601380169391632, -0.13225850462913513, 0.05722332373261452, -0.05470404028892517, -0.06927721202373505, -0.1660643219947815, 0.008037775754928589, -0.3416331112384796, 0.14052845537662506, -0.20521385967731476, 0.4110996723175049, -0.16853705048561096, 0.17280717194080353, -0.2544845938682556, 0.30584409832954407, 0.09304624795913696, 0.07053639739751816, 0.11481419205665588, -0.19660888612270355, -0.17371706664562225, 0.14743556082248688, -0.013604522682726383, -0.19371238350868225, -0.18999959528446198, 0.1427946537733078, -0.13168635964393616, -0.34177613258361816, -0.32715654373168945, 0.12211155891418457, -0.010881994850933552, -0.2189214676618576, -0.2273496836423874, -0.07357277721166611, -0.23719429969787598, 0.01285590510815382, 0.35486650466918945, -0.02823616750538349, -0.19114631414413452, 0.2880692183971405, -0.02722565084695816, -0.43590638041496277, -0.06448006629943848, 0.25667765736579895, 0.0009543137275613844, 0.2764216363430023, 0.40821266174316406, 0.040104061365127563, -0.12674997746944427, -0.3568512201309204, -0.13720107078552246, 0.18321970105171204, -0.04398879408836365, 0.16132016479969025, -0.014118080958724022, -0.25000903010368347, 0.17056244611740112, -0.009777621366083622, 0.2703784704208374, 0.29598286747932434, 0.16994236409664154, -0.09772955626249313, -0.5992170572280884, 0.1980040967464447, 0.07179711014032364, 0.21132764220237732, -0.19970513880252838, 0.14843802154064178, -0.05772734060883522, 0.15039221942424774, -0.49879980087280273, 0.09403540939092636, -0.2488878220319748, 0.05585065856575966, -0.025858374312520027, -0.2675018906593323, 0.04108528420329094, 0.11512313038110733, 0.38288381695747375, 0.2280382513999939, -0.2683301270008087, -0.39224863052368164, 0.1504778265953064, -0.0033633806742727757, -0.0677257552742958, -0.17294274270534515, 0.09423664957284927, -0.34994104504585266, 0.005841399077326059, -0.17464275658130646, -0.04198167100548744, 0.1967770904302597, -0.21875223517417908, -0.06636511534452438, 0.16699405014514923, -0.1383046656847, 0.37314534187316895, 0.27295026183128357, -0.045142266899347305, 0.2277178019285202, -0.11645263433456421, -0.03434590995311737, 0.0009706138516776264, -0.236691415309906, -0.05949454382061958, 0.11853193491697311, -0.08835943043231964, -0.0891042947769165, 0.11343202739953995, -0.03923693299293518, -0.24546824395656586, 0.23893098533153534, 0.2313345968723297, -0.010151243768632412, -0.06626290082931519, 0.22531919181346893, 0.0812278762459755, 0.4449758529663086, 0.04194141924381256, 0.11176101118326187, 0.2919812500476837, -0.2403559684753418, 0.04605797305703163, 0.179222971200943, -0.05426884442567825, -0.26481786370277405, 0.04627041146159172, 0.09450509399175644, 0.19830699265003204, -0.2065439671278, -0.08115793764591217, -0.1085989698767662, -0.03854554519057274, -0.23046064376831055, 0.15232546627521515, 0.21524538099765778, 0.25041645765304565, 0.2778696119785309, -0.10873498767614365, 0.029794853180646896, -0.13446103036403656, 0.01842537708580494, -0.11488001048564911, -0.42936116456985474, 0.033385708928108215, 0.4130026698112488, -0.12066207826137543, 0.29839757084846497, -0.1598459929227829, 0.06651672720909119, -0.21678665280342102, -0.15985321998596191, -0.07673461735248566, 0.17584949731826782, -0.38716837763786316, 0.2033335268497467, -0.01593097858130932, -0.09234447032213211, -0.10963130742311478, 0.11641795933246613, 0.1780271679162979, -0.15864169597625732, 0.4105008542537689, 0.043022848665714264, -0.27610936760902405, 0.14335700869560242, -0.15674154460430145, 0.17874063551425934, 0.03796032816171646, -0.4237707555294037, 0.14590810239315033, -0.09986304491758347, 0.037635043263435364, -0.08390729874372482, 0.24055282771587372, 0.6054585576057434, 0.3458799719810486, -0.09926372766494751, 0.14934000372886658, -0.06068491190671921, -0.06164228171110153, -0.2485647052526474, 0.10737620294094086, 0.25971221923828125, 0.2949657440185547, 0.04770025983452797, 0.2685006856918335, -0.3515852689743042, -0.25104039907455444, 0.0814967080950737, 0.1538906693458557, 0.29190871119499207, -0.3523159325122833, -0.15403208136558533, -0.24628481268882751, -0.06076163798570633, -0.11671048402786255, -0.6105131506919861, -0.028340233489871025, 0.04126118868589401, -0.33117616176605225, 0.1927827149629593, 0.1907413750886917, 0.18520371615886688, -0.02947385422885418, 0.25316089391708374, 0.24993230402469635, -0.04877594858407974, -0.3832659423351288, -0.39066845178604126, -0.12970492243766785, 0.3400775194168091, -0.16803734004497528, 0.149694561958313, -0.20186704397201538, 0.07768039405345917, 0.006037302780896425, -0.4246037006378174, 0.023147335276007652, -0.3622925877571106, -0.0995757132768631, 0.29115161299705505, -0.09273939579725266, 0.1328807771205902, 0.20366117358207703, -0.030431048944592476, 0.33103707432746887, -0.18816028535366058, 0.19742056727409363, -0.16657261550426483, 0.29877275228500366, -0.12471035867929459, 0.055529166013002396, -0.13205911219120026, 0.22260883450508118, 0.2676023542881012, -0.05022522062063217, 0.25129857659339905, -0.2638547420501709, -0.3758505582809448, -0.12486445158720016, -0.2815215587615967, -0.013769245706498623, -0.04884824529290199, 0.2615118622779846, 0.3775305151939392, -0.11617923527956009, -0.14326003193855286, -0.2671668827533722, 0.2563316524028778, -0.19458971917629242, 0.0868254154920578, 0.12148778140544891, 0.16676577925682068, 0.17847129702568054, -0.07655210047960281, 0.1070491224527359, 0.10371777415275574, 0.1384815126657486, 0.11598262935876846, -0.3758721947669983, -0.1951822191476822, 0.26425209641456604, 0.017606884241104126, -0.14342346787452698, 0.13485974073410034, 0.022502213716506958, -0.11410731822252274, 0.000603371998295188, -0.5505527853965759, -0.044036295264959335, 0.12144149094820023, -0.17037443816661835, -0.3122221827507019, 0.12213432788848877, -0.3211984634399414, -0.12375561892986298, 0.06987469643354416, 0.2493343949317932, -0.049753788858652115, -0.31149208545684814, 0.11520324647426605, -0.015808340162038803 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
It's not trying to bring the dataset into memory. Actually, it's trying to memory map the dataset file, which is different. It allows to load large dataset files without filling up memory. What dataset did you use to get this error ? On what OS are you running ? What's your python and pyarrow version ?
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/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 "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
56
OSError: Memory mapping file failed: Cannot allocate memory
[ -0.1340877264738083, -0.22973375022411346, -0.20842617750167847, 0.3810867369174957, 0.3796180486679077, -0.02415354922413826, -0.1345478892326355, 0.34922346472740173, 0.22156944870948792, 0.2967315912246704, 0.058379072695970535, 0.053929053246974945, -0.19420509040355682, -0.2546064555644989, -0.21051087975502014, 0.054768167436122894, -0.05514560267329216, 0.03647255897521973, -0.3414470851421356, 0.131743922829628, -0.40260425209999084, 0.3171733617782593, -0.054438043385744095, 0.02822841890156269, -0.2345396727323532, -0.03821702301502228, -0.0035305253695696592, 0.16314223408699036, -0.19803152978420258, -0.3220241665840149, -0.14085575938224792, -0.38941875100135803, -0.27746155858039856, 0.2706363797187805, -0.00009346877777716145, 0.08335213363170624, 0.011979516595602036, 0.024075103923678398, 0.038060665130615234, 0.2525874376296997, -0.16313102841377258, 0.017016777768731117, -0.22986754775047302, -0.12335295230150223, -0.0063518802635371685, 0.03285796567797661, 0.20765292644500732, -0.46000397205352783, 0.31530120968818665, 0.2721843421459198, 0.4389771521091461, 0.024107564240694046, 0.34867358207702637, -0.3418550193309784, 0.282143771648407, -0.06907345354557037, 0.09975025802850723, 0.2933255136013031, -0.037205349653959274, -0.3373791575431824, -0.037500619888305664, 0.14582638442516327, -0.1863853484392166, 0.18446338176727295, 0.28903135657310486, -0.2202477604150772, 0.2872122824192047, -0.12447769939899445, 0.23063156008720398, -0.42061370611190796, 0.16492268443107605, -0.21049880981445312, 0.2323160022497177, 0.2669382095336914, -0.1957159787416458, -0.19891031086444855, 0.3648853302001953, 0.10609066486358643, -0.16786867380142212, 0.02592352032661438, 0.021926065906882286, -0.14466574788093567, -0.08132386952638626, 0.1597081869840622, -0.06945142894983292, 0.02576073631644249, -0.16943033039569855, 0.042049918323755264, 0.3752903938293457, -0.04467823728919029, -0.18827523291110992, 0.16851355135440826, -0.1719442903995514, 0.11410317569971085, 0.014479639939963818, 0.07543215900659561, 0.007984189316630363, -0.2008017897605896, 0.027528278529644012, -0.3881138861179352, 0.09632380306720734, -0.1024937629699707, 0.15040931105613708, 0.13849741220474243, -0.08037807792425156, 0.24512934684753418, -0.1692076474428177, 0.31550440192222595, 0.016457030549645424, 0.06874945759773254, -0.2188636064529419, -0.08607366681098938, -0.0008310169214382768, -0.3203884959220886, 0.03199484571814537, -0.16104429960250854, 0.08800400048494339, 0.07713140547275543, -0.08801674842834473, 0.0864492803812027, -0.2102462202310562, 0.09208639711141586, 0.0859595313668251, 0.4488292634487152, 0.17902377247810364, -0.13621413707733154, 0.31024160981178284, 0.12583208084106445, -0.1633443385362625, 0.1354062855243683, -0.23338991403579712, 0.39954206347465515, -0.5580645799636841, 0.038386885076761246, 0.06788434088230133, 0.3993716239929199, 0.16077938675880432, -0.21358098089694977, -0.22030417621135712, -0.3104138970375061, 0.01021003071218729, -0.058735188096761703, 0.15411576628684998, 0.1275424361228943, -0.10717038810253143, 0.12507618963718414, 0.2966853976249695, 0.27701064944267273, 0.01797865331172943, 0.23028717935085297, -0.15056359767913818, -0.29680025577545166, 0.13887913525104523, 0.3571828603744507, 0.2917408347129822, 0.13469144701957703, 0.20027007162570953, -0.19587190449237823, 0.3482687175273895, -0.1723274290561676, -0.09839140623807907, 0.0705299898982048, -0.14705337584018707, -0.31731465458869934, 0.12759917974472046, 0.31913521885871887, -0.04099174216389656, 0.08556416630744934, -0.05087370425462723, -0.1571870744228363, 0.36396458745002747, 0.22429335117340088, 0.13076713681221008, 0.13990409672260284, -0.2625539302825928, 0.05160947144031525, 0.014619718305766582, -0.11737599968910217, -0.2117609977722168, -0.06881216168403625, -0.14847783744335175, -0.38985615968704224, -0.1394600123167038, 0.016998441889882088, -0.006228485144674778, 0.31331080198287964, 0.23884141445159912, -0.14999088644981384, 0.13875263929367065, 0.31339290738105774, -0.314288467168808, -0.07553661614656448, -0.2207101285457611, -0.01738034188747406, 0.2301732897758484, 0.06969507783651352, 0.1100117564201355, 0.14245130121707916, 0.12010511010885239, -0.08706900477409363, 0.17603233456611633, 0.17019926011562347, 0.2711380124092102, -0.09768403321504593, -0.09265542030334473, -0.1953193098306656, 0.12388743460178375, -0.033676981925964355, -0.16640174388885498, 0.08039851486682892, 0.0640472024679184, 0.31482189893722534, 0.04152315482497215, 0.09153452515602112, -0.00989826675504446, -0.09416303038597107, 0.3839739263057709, 0.2333456575870514, 0.06285180151462555, -0.12718769907951355, 0.06869214028120041, -0.06444621086120605, -0.19046719372272491, 0.05129355192184448, -0.10783470422029495, -0.018010294064879417, -0.3619755804538727, -0.313206285238266, -0.0012262200471013784, -0.20347003638744354, 0.044895023107528687, 0.035614073276519775, -0.17657454311847687, 0.17410144209861755, 0.20714765787124634, -0.21431155502796173, -0.08989281952381134, 0.1540078967809677, -0.08231843262910843, -0.28443485498428345, 0.06379757076501846, 0.05628174543380737, 0.07471330463886261, -0.05747760832309723, 0.3105061650276184, -0.13892002403736115, 0.09899233281612396, 0.05925280973315239, -0.051491428166627884, 0.0783509612083435, -0.03302665427327156, 0.06954476982355118, 0.41572126746177673, -0.2058548629283905, 0.3534752428531647, -0.03430142626166344, -0.05192793160676956, -0.05895107612013817, 0.04570040851831436, -0.4407781958580017, 0.17849843204021454, 0.2245711237192154, 0.19888676702976227, 0.0250839926302433, 0.09081627428531647, 0.10964518785476685, 0.03707222640514374, 0.033830445259809494, 0.26990872621536255, 0.0734376385807991, -0.015268893912434578, 0.21906115114688873, 0.15200844407081604, -0.044559162110090256, 0.22103199362754822, -0.0705205574631691, 0.24841755628585815, 0.1169070154428482, -0.11695169657468796, -0.14660151302814484, -0.13922736048698425, -0.07613112777471542, 0.04796891659498215, 0.3891313970088959, -0.18094588816165924, -0.5012094974517822, -0.21351934969425201, -0.14290599524974823, -0.03383698686957359, 0.20918846130371094, -0.21370361745357513, -0.10949646681547165, -0.01016034372150898, 0.16452279686927795, -0.12383481115102768, 0.1298249363899231, 0.09405980259180069, 0.20231452584266663, 0.17469657957553864, 0.12434124946594238, 0.057316556572914124, 0.011197528801858425, 0.2080339938402176, 0.21547681093215942, 0.18144609034061432, -0.13207097351551056, 0.23161354660987854, -0.01747874543070793, -0.10885880142450333, -0.01854068413376808, 0.07105940580368042, 0.07857083529233932, 0.0249900184571743, -0.13670293986797333, 0.08081359416246414, 0.3857268691062927, -0.18878069519996643, -0.16383232176303864, 0.24654829502105713, -0.255994588136673, -0.30066388845443726, 0.040531642735004425, 0.09561536461114883, -0.24347059428691864, -0.20021264255046844, -0.2131379395723343, -0.08350425958633423, -0.6004358530044556, 0.15385183691978455, 0.09804563224315643, 0.4079219400882721, 0.15260091423988342, 0.27527523040771484, 0.22012291848659515, -0.16143713891506195, 0.23121775686740875, -0.13274776935577393, -0.11827123910188675, 0.08837343752384186, -0.29544979333877563, -0.0429266020655632, 0.0765778124332428, 0.12801051139831543, 0.3733762204647064, 0.1056075170636177, -0.40974271297454834, -0.07270541042089462, -0.31532004475593567, -0.1386522501707077, -0.15645550191402435, 0.07031740993261337, 0.18561658263206482, 0.1098039299249649, -0.33773940801620483, 0.0343906469643116, -0.1939288228750229, 0.03224192187190056, 0.20697841048240662, 0.08544965833425522, -0.07157193869352341, 0.2278139442205429, -0.03273460268974304, 0.3994066119194031, 0.09420523047447205, 0.33628541231155396, 0.47116726636886597, -0.09502272307872772, 0.09570776671171188, -0.20533880591392517, -0.22936230897903442, 0.055679209530353546, 0.1940644532442093, -0.18349824845790863, 0.08560855686664581, -0.02447953261435032, -0.3036736845970154, -0.11487888544797897, -0.11039283126592636, -0.218910351395607, -0.16290606558322906, 0.14147008955478668, 0.20310933887958527, 0.18650174140930176, -0.2949959337711334, 0.00908547081053257, -0.04154784232378006, 0.047796737402677536, 0.15732885897159576, 0.00456253532320261, -0.1375853717327118, -0.028093324974179268, -0.24675610661506653, -0.10047867149114609, -0.29209110140800476, 0.2676354646682739, -0.181087926030159, -0.006711311172693968, -0.43259039521217346, -0.29453280568122864, 0.030025433748960495, -0.07302689552307129, 0.43487223982810974, 0.1284429281949997, -0.1430034339427948, 0.08133362233638763, -0.0061034709215164185, 0.02749391831457615, 0.13090550899505615, -0.09415620565414429, 0.2759515345096588, 0.09933801740407944, 0.20311933755874634, -0.13384048640727997, 0.11226672679185867, 0.05086302384734154, -0.07945746928453445, -0.0485340841114521, -0.06728755682706833, -0.1050216555595398, -0.2156139761209488, -0.45770251750946045, 0.0020456076599657536, 0.08194322139024734, 0.20922254025936127, 0.5084893107414246, 0.08017003536224365, 0.2544459402561188, -0.04493219777941704, 0.09043552726507187, -0.10181152820587158, 0.2479345053434372, -0.0832681655883789, 0.040572404861450195, 0.08012741059064865, 0.0838940441608429, 0.35128092765808105, 0.35663002729415894, -0.04678598791360855, 0.1746748983860016, 0.3109003007411957, 0.06460116803646088, 0.2741812765598297, 0.2084697186946869, 0.2798570990562439, -0.11022692918777466, -0.04923195391893387, 0.12403026968240738, -0.16622355580329895, 0.10973711311817169, 0.1401020586490631, -0.0017082926351577044, -0.17703202366828918, -0.08426699787378311, -0.1481751650571823, -0.08690693974494934, 0.0595594085752964, 0.4746447503566742, -0.074122853577137, -0.25307613611221313, 0.3572450876235962, 0.15638500452041626, 0.8695578575134277, -0.374035120010376, 0.051062505692243576, 0.12015292793512344, -0.03239714726805687, 0.008560252375900745, -0.15398213267326355, 0.35168027877807617, -0.3232963979244232, -0.11475606262683868, 0.3355538845062256, -0.19657212495803833, 0.0903797447681427, 0.06045452505350113, -0.1997118443250656, -0.07145339995622635, 0.07748246937990189, 0.04162289574742317, -0.3082813024520874, -0.12409107387065887, 0.0038905104156583548, -0.16971173882484436, 0.11218796670436859, 0.37516048550605774, -0.02667274884879589, 0.15601380169391632, -0.13225850462913513, 0.05722332373261452, -0.05470404028892517, -0.06927721202373505, -0.1660643219947815, 0.008037775754928589, -0.3416331112384796, 0.14052845537662506, -0.20521385967731476, 0.4110996723175049, -0.16853705048561096, 0.17280717194080353, -0.2544845938682556, 0.30584409832954407, 0.09304624795913696, 0.07053639739751816, 0.11481419205665588, -0.19660888612270355, -0.17371706664562225, 0.14743556082248688, -0.013604522682726383, -0.19371238350868225, -0.18999959528446198, 0.1427946537733078, -0.13168635964393616, -0.34177613258361816, -0.32715654373168945, 0.12211155891418457, -0.010881994850933552, -0.2189214676618576, -0.2273496836423874, -0.07357277721166611, -0.23719429969787598, 0.01285590510815382, 0.35486650466918945, -0.02823616750538349, -0.19114631414413452, 0.2880692183971405, -0.02722565084695816, -0.43590638041496277, -0.06448006629943848, 0.25667765736579895, 0.0009543137275613844, 0.2764216363430023, 0.40821266174316406, 0.040104061365127563, -0.12674997746944427, -0.3568512201309204, -0.13720107078552246, 0.18321970105171204, -0.04398879408836365, 0.16132016479969025, -0.014118080958724022, -0.25000903010368347, 0.17056244611740112, -0.009777621366083622, 0.2703784704208374, 0.29598286747932434, 0.16994236409664154, -0.09772955626249313, -0.5992170572280884, 0.1980040967464447, 0.07179711014032364, 0.21132764220237732, -0.19970513880252838, 0.14843802154064178, -0.05772734060883522, 0.15039221942424774, -0.49879980087280273, 0.09403540939092636, -0.2488878220319748, 0.05585065856575966, -0.025858374312520027, -0.2675018906593323, 0.04108528420329094, 0.11512313038110733, 0.38288381695747375, 0.2280382513999939, -0.2683301270008087, -0.39224863052368164, 0.1504778265953064, -0.0033633806742727757, -0.0677257552742958, -0.17294274270534515, 0.09423664957284927, -0.34994104504585266, 0.005841399077326059, -0.17464275658130646, -0.04198167100548744, 0.1967770904302597, -0.21875223517417908, -0.06636511534452438, 0.16699405014514923, -0.1383046656847, 0.37314534187316895, 0.27295026183128357, -0.045142266899347305, 0.2277178019285202, -0.11645263433456421, -0.03434590995311737, 0.0009706138516776264, -0.236691415309906, -0.05949454382061958, 0.11853193491697311, -0.08835943043231964, -0.0891042947769165, 0.11343202739953995, -0.03923693299293518, -0.24546824395656586, 0.23893098533153534, 0.2313345968723297, -0.010151243768632412, -0.06626290082931519, 0.22531919181346893, 0.0812278762459755, 0.4449758529663086, 0.04194141924381256, 0.11176101118326187, 0.2919812500476837, -0.2403559684753418, 0.04605797305703163, 0.179222971200943, -0.05426884442567825, -0.26481786370277405, 0.04627041146159172, 0.09450509399175644, 0.19830699265003204, -0.2065439671278, -0.08115793764591217, -0.1085989698767662, -0.03854554519057274, -0.23046064376831055, 0.15232546627521515, 0.21524538099765778, 0.25041645765304565, 0.2778696119785309, -0.10873498767614365, 0.029794853180646896, -0.13446103036403656, 0.01842537708580494, -0.11488001048564911, -0.42936116456985474, 0.033385708928108215, 0.4130026698112488, -0.12066207826137543, 0.29839757084846497, -0.1598459929227829, 0.06651672720909119, -0.21678665280342102, -0.15985321998596191, -0.07673461735248566, 0.17584949731826782, -0.38716837763786316, 0.2033335268497467, -0.01593097858130932, -0.09234447032213211, -0.10963130742311478, 0.11641795933246613, 0.1780271679162979, -0.15864169597625732, 0.4105008542537689, 0.043022848665714264, -0.27610936760902405, 0.14335700869560242, -0.15674154460430145, 0.17874063551425934, 0.03796032816171646, -0.4237707555294037, 0.14590810239315033, -0.09986304491758347, 0.037635043263435364, -0.08390729874372482, 0.24055282771587372, 0.6054585576057434, 0.3458799719810486, -0.09926372766494751, 0.14934000372886658, -0.06068491190671921, -0.06164228171110153, -0.2485647052526474, 0.10737620294094086, 0.25971221923828125, 0.2949657440185547, 0.04770025983452797, 0.2685006856918335, -0.3515852689743042, -0.25104039907455444, 0.0814967080950737, 0.1538906693458557, 0.29190871119499207, -0.3523159325122833, -0.15403208136558533, -0.24628481268882751, -0.06076163798570633, -0.11671048402786255, -0.6105131506919861, -0.028340233489871025, 0.04126118868589401, -0.33117616176605225, 0.1927827149629593, 0.1907413750886917, 0.18520371615886688, -0.02947385422885418, 0.25316089391708374, 0.24993230402469635, -0.04877594858407974, -0.3832659423351288, -0.39066845178604126, -0.12970492243766785, 0.3400775194168091, -0.16803734004497528, 0.149694561958313, -0.20186704397201538, 0.07768039405345917, 0.006037302780896425, -0.4246037006378174, 0.023147335276007652, -0.3622925877571106, -0.0995757132768631, 0.29115161299705505, -0.09273939579725266, 0.1328807771205902, 0.20366117358207703, -0.030431048944592476, 0.33103707432746887, -0.18816028535366058, 0.19742056727409363, -0.16657261550426483, 0.29877275228500366, -0.12471035867929459, 0.055529166013002396, -0.13205911219120026, 0.22260883450508118, 0.2676023542881012, -0.05022522062063217, 0.25129857659339905, -0.2638547420501709, -0.3758505582809448, -0.12486445158720016, -0.2815215587615967, -0.013769245706498623, -0.04884824529290199, 0.2615118622779846, 0.3775305151939392, -0.11617923527956009, -0.14326003193855286, -0.2671668827533722, 0.2563316524028778, -0.19458971917629242, 0.0868254154920578, 0.12148778140544891, 0.16676577925682068, 0.17847129702568054, -0.07655210047960281, 0.1070491224527359, 0.10371777415275574, 0.1384815126657486, 0.11598262935876846, -0.3758721947669983, -0.1951822191476822, 0.26425209641456604, 0.017606884241104126, -0.14342346787452698, 0.13485974073410034, 0.022502213716506958, -0.11410731822252274, 0.000603371998295188, -0.5505527853965759, -0.044036295264959335, 0.12144149094820023, -0.17037443816661835, -0.3122221827507019, 0.12213432788848877, -0.3211984634399414, -0.12375561892986298, 0.06987469643354416, 0.2493343949317932, -0.049753788858652115, -0.31149208545684814, 0.11520324647426605, -0.015808340162038803 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
Dear @lhoestq thank you so much for coming back to me. Please find info below: 1) Dataset name: I used wikipedia with config 20200501.en 2) I got these pyarrow in my environment: pyarrow 2.0.0 <pip> pyarrow 3.0.0 <pip> 3) python version 3.7.10 4) OS version lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster Is there a way I could solve the memory issue and if I could run this model, I am using GeForce GTX 108, thanks
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/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 "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
88
OSError: Memory mapping file failed: Cannot allocate memory
[ -0.1340877264738083, -0.22973375022411346, -0.20842617750167847, 0.3810867369174957, 0.3796180486679077, -0.02415354922413826, -0.1345478892326355, 0.34922346472740173, 0.22156944870948792, 0.2967315912246704, 0.058379072695970535, 0.053929053246974945, -0.19420509040355682, -0.2546064555644989, -0.21051087975502014, 0.054768167436122894, -0.05514560267329216, 0.03647255897521973, -0.3414470851421356, 0.131743922829628, -0.40260425209999084, 0.3171733617782593, -0.054438043385744095, 0.02822841890156269, -0.2345396727323532, -0.03821702301502228, -0.0035305253695696592, 0.16314223408699036, -0.19803152978420258, -0.3220241665840149, -0.14085575938224792, -0.38941875100135803, -0.27746155858039856, 0.2706363797187805, -0.00009346877777716145, 0.08335213363170624, 0.011979516595602036, 0.024075103923678398, 0.038060665130615234, 0.2525874376296997, -0.16313102841377258, 0.017016777768731117, -0.22986754775047302, -0.12335295230150223, -0.0063518802635371685, 0.03285796567797661, 0.20765292644500732, -0.46000397205352783, 0.31530120968818665, 0.2721843421459198, 0.4389771521091461, 0.024107564240694046, 0.34867358207702637, -0.3418550193309784, 0.282143771648407, -0.06907345354557037, 0.09975025802850723, 0.2933255136013031, -0.037205349653959274, -0.3373791575431824, -0.037500619888305664, 0.14582638442516327, -0.1863853484392166, 0.18446338176727295, 0.28903135657310486, -0.2202477604150772, 0.2872122824192047, -0.12447769939899445, 0.23063156008720398, -0.42061370611190796, 0.16492268443107605, -0.21049880981445312, 0.2323160022497177, 0.2669382095336914, -0.1957159787416458, -0.19891031086444855, 0.3648853302001953, 0.10609066486358643, -0.16786867380142212, 0.02592352032661438, 0.021926065906882286, -0.14466574788093567, -0.08132386952638626, 0.1597081869840622, -0.06945142894983292, 0.02576073631644249, -0.16943033039569855, 0.042049918323755264, 0.3752903938293457, -0.04467823728919029, -0.18827523291110992, 0.16851355135440826, -0.1719442903995514, 0.11410317569971085, 0.014479639939963818, 0.07543215900659561, 0.007984189316630363, -0.2008017897605896, 0.027528278529644012, -0.3881138861179352, 0.09632380306720734, -0.1024937629699707, 0.15040931105613708, 0.13849741220474243, -0.08037807792425156, 0.24512934684753418, -0.1692076474428177, 0.31550440192222595, 0.016457030549645424, 0.06874945759773254, -0.2188636064529419, -0.08607366681098938, -0.0008310169214382768, -0.3203884959220886, 0.03199484571814537, -0.16104429960250854, 0.08800400048494339, 0.07713140547275543, -0.08801674842834473, 0.0864492803812027, -0.2102462202310562, 0.09208639711141586, 0.0859595313668251, 0.4488292634487152, 0.17902377247810364, -0.13621413707733154, 0.31024160981178284, 0.12583208084106445, -0.1633443385362625, 0.1354062855243683, -0.23338991403579712, 0.39954206347465515, -0.5580645799636841, 0.038386885076761246, 0.06788434088230133, 0.3993716239929199, 0.16077938675880432, -0.21358098089694977, -0.22030417621135712, -0.3104138970375061, 0.01021003071218729, -0.058735188096761703, 0.15411576628684998, 0.1275424361228943, -0.10717038810253143, 0.12507618963718414, 0.2966853976249695, 0.27701064944267273, 0.01797865331172943, 0.23028717935085297, -0.15056359767913818, -0.29680025577545166, 0.13887913525104523, 0.3571828603744507, 0.2917408347129822, 0.13469144701957703, 0.20027007162570953, -0.19587190449237823, 0.3482687175273895, -0.1723274290561676, -0.09839140623807907, 0.0705299898982048, -0.14705337584018707, -0.31731465458869934, 0.12759917974472046, 0.31913521885871887, -0.04099174216389656, 0.08556416630744934, -0.05087370425462723, -0.1571870744228363, 0.36396458745002747, 0.22429335117340088, 0.13076713681221008, 0.13990409672260284, -0.2625539302825928, 0.05160947144031525, 0.014619718305766582, -0.11737599968910217, -0.2117609977722168, -0.06881216168403625, -0.14847783744335175, -0.38985615968704224, -0.1394600123167038, 0.016998441889882088, -0.006228485144674778, 0.31331080198287964, 0.23884141445159912, -0.14999088644981384, 0.13875263929367065, 0.31339290738105774, -0.314288467168808, -0.07553661614656448, -0.2207101285457611, -0.01738034188747406, 0.2301732897758484, 0.06969507783651352, 0.1100117564201355, 0.14245130121707916, 0.12010511010885239, -0.08706900477409363, 0.17603233456611633, 0.17019926011562347, 0.2711380124092102, -0.09768403321504593, -0.09265542030334473, -0.1953193098306656, 0.12388743460178375, -0.033676981925964355, -0.16640174388885498, 0.08039851486682892, 0.0640472024679184, 0.31482189893722534, 0.04152315482497215, 0.09153452515602112, -0.00989826675504446, -0.09416303038597107, 0.3839739263057709, 0.2333456575870514, 0.06285180151462555, -0.12718769907951355, 0.06869214028120041, -0.06444621086120605, -0.19046719372272491, 0.05129355192184448, -0.10783470422029495, -0.018010294064879417, -0.3619755804538727, -0.313206285238266, -0.0012262200471013784, -0.20347003638744354, 0.044895023107528687, 0.035614073276519775, -0.17657454311847687, 0.17410144209861755, 0.20714765787124634, -0.21431155502796173, -0.08989281952381134, 0.1540078967809677, -0.08231843262910843, -0.28443485498428345, 0.06379757076501846, 0.05628174543380737, 0.07471330463886261, -0.05747760832309723, 0.3105061650276184, -0.13892002403736115, 0.09899233281612396, 0.05925280973315239, -0.051491428166627884, 0.0783509612083435, -0.03302665427327156, 0.06954476982355118, 0.41572126746177673, -0.2058548629283905, 0.3534752428531647, -0.03430142626166344, -0.05192793160676956, -0.05895107612013817, 0.04570040851831436, -0.4407781958580017, 0.17849843204021454, 0.2245711237192154, 0.19888676702976227, 0.0250839926302433, 0.09081627428531647, 0.10964518785476685, 0.03707222640514374, 0.033830445259809494, 0.26990872621536255, 0.0734376385807991, -0.015268893912434578, 0.21906115114688873, 0.15200844407081604, -0.044559162110090256, 0.22103199362754822, -0.0705205574631691, 0.24841755628585815, 0.1169070154428482, -0.11695169657468796, -0.14660151302814484, -0.13922736048698425, -0.07613112777471542, 0.04796891659498215, 0.3891313970088959, -0.18094588816165924, -0.5012094974517822, -0.21351934969425201, -0.14290599524974823, -0.03383698686957359, 0.20918846130371094, -0.21370361745357513, -0.10949646681547165, -0.01016034372150898, 0.16452279686927795, -0.12383481115102768, 0.1298249363899231, 0.09405980259180069, 0.20231452584266663, 0.17469657957553864, 0.12434124946594238, 0.057316556572914124, 0.011197528801858425, 0.2080339938402176, 0.21547681093215942, 0.18144609034061432, -0.13207097351551056, 0.23161354660987854, -0.01747874543070793, -0.10885880142450333, -0.01854068413376808, 0.07105940580368042, 0.07857083529233932, 0.0249900184571743, -0.13670293986797333, 0.08081359416246414, 0.3857268691062927, -0.18878069519996643, -0.16383232176303864, 0.24654829502105713, -0.255994588136673, -0.30066388845443726, 0.040531642735004425, 0.09561536461114883, -0.24347059428691864, -0.20021264255046844, -0.2131379395723343, -0.08350425958633423, -0.6004358530044556, 0.15385183691978455, 0.09804563224315643, 0.4079219400882721, 0.15260091423988342, 0.27527523040771484, 0.22012291848659515, -0.16143713891506195, 0.23121775686740875, -0.13274776935577393, -0.11827123910188675, 0.08837343752384186, -0.29544979333877563, -0.0429266020655632, 0.0765778124332428, 0.12801051139831543, 0.3733762204647064, 0.1056075170636177, -0.40974271297454834, -0.07270541042089462, -0.31532004475593567, -0.1386522501707077, -0.15645550191402435, 0.07031740993261337, 0.18561658263206482, 0.1098039299249649, -0.33773940801620483, 0.0343906469643116, -0.1939288228750229, 0.03224192187190056, 0.20697841048240662, 0.08544965833425522, -0.07157193869352341, 0.2278139442205429, -0.03273460268974304, 0.3994066119194031, 0.09420523047447205, 0.33628541231155396, 0.47116726636886597, -0.09502272307872772, 0.09570776671171188, -0.20533880591392517, -0.22936230897903442, 0.055679209530353546, 0.1940644532442093, -0.18349824845790863, 0.08560855686664581, -0.02447953261435032, -0.3036736845970154, -0.11487888544797897, -0.11039283126592636, -0.218910351395607, -0.16290606558322906, 0.14147008955478668, 0.20310933887958527, 0.18650174140930176, -0.2949959337711334, 0.00908547081053257, -0.04154784232378006, 0.047796737402677536, 0.15732885897159576, 0.00456253532320261, -0.1375853717327118, -0.028093324974179268, -0.24675610661506653, -0.10047867149114609, -0.29209110140800476, 0.2676354646682739, -0.181087926030159, -0.006711311172693968, -0.43259039521217346, -0.29453280568122864, 0.030025433748960495, -0.07302689552307129, 0.43487223982810974, 0.1284429281949997, -0.1430034339427948, 0.08133362233638763, -0.0061034709215164185, 0.02749391831457615, 0.13090550899505615, -0.09415620565414429, 0.2759515345096588, 0.09933801740407944, 0.20311933755874634, -0.13384048640727997, 0.11226672679185867, 0.05086302384734154, -0.07945746928453445, -0.0485340841114521, -0.06728755682706833, -0.1050216555595398, -0.2156139761209488, -0.45770251750946045, 0.0020456076599657536, 0.08194322139024734, 0.20922254025936127, 0.5084893107414246, 0.08017003536224365, 0.2544459402561188, -0.04493219777941704, 0.09043552726507187, -0.10181152820587158, 0.2479345053434372, -0.0832681655883789, 0.040572404861450195, 0.08012741059064865, 0.0838940441608429, 0.35128092765808105, 0.35663002729415894, -0.04678598791360855, 0.1746748983860016, 0.3109003007411957, 0.06460116803646088, 0.2741812765598297, 0.2084697186946869, 0.2798570990562439, -0.11022692918777466, -0.04923195391893387, 0.12403026968240738, -0.16622355580329895, 0.10973711311817169, 0.1401020586490631, -0.0017082926351577044, -0.17703202366828918, -0.08426699787378311, -0.1481751650571823, -0.08690693974494934, 0.0595594085752964, 0.4746447503566742, -0.074122853577137, -0.25307613611221313, 0.3572450876235962, 0.15638500452041626, 0.8695578575134277, -0.374035120010376, 0.051062505692243576, 0.12015292793512344, -0.03239714726805687, 0.008560252375900745, -0.15398213267326355, 0.35168027877807617, -0.3232963979244232, -0.11475606262683868, 0.3355538845062256, -0.19657212495803833, 0.0903797447681427, 0.06045452505350113, -0.1997118443250656, -0.07145339995622635, 0.07748246937990189, 0.04162289574742317, -0.3082813024520874, -0.12409107387065887, 0.0038905104156583548, -0.16971173882484436, 0.11218796670436859, 0.37516048550605774, -0.02667274884879589, 0.15601380169391632, -0.13225850462913513, 0.05722332373261452, -0.05470404028892517, -0.06927721202373505, -0.1660643219947815, 0.008037775754928589, -0.3416331112384796, 0.14052845537662506, -0.20521385967731476, 0.4110996723175049, -0.16853705048561096, 0.17280717194080353, -0.2544845938682556, 0.30584409832954407, 0.09304624795913696, 0.07053639739751816, 0.11481419205665588, -0.19660888612270355, -0.17371706664562225, 0.14743556082248688, -0.013604522682726383, -0.19371238350868225, -0.18999959528446198, 0.1427946537733078, -0.13168635964393616, -0.34177613258361816, -0.32715654373168945, 0.12211155891418457, -0.010881994850933552, -0.2189214676618576, -0.2273496836423874, -0.07357277721166611, -0.23719429969787598, 0.01285590510815382, 0.35486650466918945, -0.02823616750538349, -0.19114631414413452, 0.2880692183971405, -0.02722565084695816, -0.43590638041496277, -0.06448006629943848, 0.25667765736579895, 0.0009543137275613844, 0.2764216363430023, 0.40821266174316406, 0.040104061365127563, -0.12674997746944427, -0.3568512201309204, -0.13720107078552246, 0.18321970105171204, -0.04398879408836365, 0.16132016479969025, -0.014118080958724022, -0.25000903010368347, 0.17056244611740112, -0.009777621366083622, 0.2703784704208374, 0.29598286747932434, 0.16994236409664154, -0.09772955626249313, -0.5992170572280884, 0.1980040967464447, 0.07179711014032364, 0.21132764220237732, -0.19970513880252838, 0.14843802154064178, -0.05772734060883522, 0.15039221942424774, -0.49879980087280273, 0.09403540939092636, -0.2488878220319748, 0.05585065856575966, -0.025858374312520027, -0.2675018906593323, 0.04108528420329094, 0.11512313038110733, 0.38288381695747375, 0.2280382513999939, -0.2683301270008087, -0.39224863052368164, 0.1504778265953064, -0.0033633806742727757, -0.0677257552742958, -0.17294274270534515, 0.09423664957284927, -0.34994104504585266, 0.005841399077326059, -0.17464275658130646, -0.04198167100548744, 0.1967770904302597, -0.21875223517417908, -0.06636511534452438, 0.16699405014514923, -0.1383046656847, 0.37314534187316895, 0.27295026183128357, -0.045142266899347305, 0.2277178019285202, -0.11645263433456421, -0.03434590995311737, 0.0009706138516776264, -0.236691415309906, -0.05949454382061958, 0.11853193491697311, -0.08835943043231964, -0.0891042947769165, 0.11343202739953995, -0.03923693299293518, -0.24546824395656586, 0.23893098533153534, 0.2313345968723297, -0.010151243768632412, -0.06626290082931519, 0.22531919181346893, 0.0812278762459755, 0.4449758529663086, 0.04194141924381256, 0.11176101118326187, 0.2919812500476837, -0.2403559684753418, 0.04605797305703163, 0.179222971200943, -0.05426884442567825, -0.26481786370277405, 0.04627041146159172, 0.09450509399175644, 0.19830699265003204, -0.2065439671278, -0.08115793764591217, -0.1085989698767662, -0.03854554519057274, -0.23046064376831055, 0.15232546627521515, 0.21524538099765778, 0.25041645765304565, 0.2778696119785309, -0.10873498767614365, 0.029794853180646896, -0.13446103036403656, 0.01842537708580494, -0.11488001048564911, -0.42936116456985474, 0.033385708928108215, 0.4130026698112488, -0.12066207826137543, 0.29839757084846497, -0.1598459929227829, 0.06651672720909119, -0.21678665280342102, -0.15985321998596191, -0.07673461735248566, 0.17584949731826782, -0.38716837763786316, 0.2033335268497467, -0.01593097858130932, -0.09234447032213211, -0.10963130742311478, 0.11641795933246613, 0.1780271679162979, -0.15864169597625732, 0.4105008542537689, 0.043022848665714264, -0.27610936760902405, 0.14335700869560242, -0.15674154460430145, 0.17874063551425934, 0.03796032816171646, -0.4237707555294037, 0.14590810239315033, -0.09986304491758347, 0.037635043263435364, -0.08390729874372482, 0.24055282771587372, 0.6054585576057434, 0.3458799719810486, -0.09926372766494751, 0.14934000372886658, -0.06068491190671921, -0.06164228171110153, -0.2485647052526474, 0.10737620294094086, 0.25971221923828125, 0.2949657440185547, 0.04770025983452797, 0.2685006856918335, -0.3515852689743042, -0.25104039907455444, 0.0814967080950737, 0.1538906693458557, 0.29190871119499207, -0.3523159325122833, -0.15403208136558533, -0.24628481268882751, -0.06076163798570633, -0.11671048402786255, -0.6105131506919861, -0.028340233489871025, 0.04126118868589401, -0.33117616176605225, 0.1927827149629593, 0.1907413750886917, 0.18520371615886688, -0.02947385422885418, 0.25316089391708374, 0.24993230402469635, -0.04877594858407974, -0.3832659423351288, -0.39066845178604126, -0.12970492243766785, 0.3400775194168091, -0.16803734004497528, 0.149694561958313, -0.20186704397201538, 0.07768039405345917, 0.006037302780896425, -0.4246037006378174, 0.023147335276007652, -0.3622925877571106, -0.0995757132768631, 0.29115161299705505, -0.09273939579725266, 0.1328807771205902, 0.20366117358207703, -0.030431048944592476, 0.33103707432746887, -0.18816028535366058, 0.19742056727409363, -0.16657261550426483, 0.29877275228500366, -0.12471035867929459, 0.055529166013002396, -0.13205911219120026, 0.22260883450508118, 0.2676023542881012, -0.05022522062063217, 0.25129857659339905, -0.2638547420501709, -0.3758505582809448, -0.12486445158720016, -0.2815215587615967, -0.013769245706498623, -0.04884824529290199, 0.2615118622779846, 0.3775305151939392, -0.11617923527956009, -0.14326003193855286, -0.2671668827533722, 0.2563316524028778, -0.19458971917629242, 0.0868254154920578, 0.12148778140544891, 0.16676577925682068, 0.17847129702568054, -0.07655210047960281, 0.1070491224527359, 0.10371777415275574, 0.1384815126657486, 0.11598262935876846, -0.3758721947669983, -0.1951822191476822, 0.26425209641456604, 0.017606884241104126, -0.14342346787452698, 0.13485974073410034, 0.022502213716506958, -0.11410731822252274, 0.000603371998295188, -0.5505527853965759, -0.044036295264959335, 0.12144149094820023, -0.17037443816661835, -0.3122221827507019, 0.12213432788848877, -0.3211984634399414, -0.12375561892986298, 0.06987469643354416, 0.2493343949317932, -0.049753788858652115, -0.31149208545684814, 0.11520324647426605, -0.015808340162038803 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
I noticed that the error happens when loading the validation dataset. What value of `data_args.validation_split_percentage` did you use ?
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/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 "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
19
OSError: Memory mapping file failed: Cannot allocate memory
[ -0.1340877264738083, -0.22973375022411346, -0.20842617750167847, 0.3810867369174957, 0.3796180486679077, -0.02415354922413826, -0.1345478892326355, 0.34922346472740173, 0.22156944870948792, 0.2967315912246704, 0.058379072695970535, 0.053929053246974945, -0.19420509040355682, -0.2546064555644989, -0.21051087975502014, 0.054768167436122894, -0.05514560267329216, 0.03647255897521973, -0.3414470851421356, 0.131743922829628, -0.40260425209999084, 0.3171733617782593, -0.054438043385744095, 0.02822841890156269, -0.2345396727323532, -0.03821702301502228, -0.0035305253695696592, 0.16314223408699036, -0.19803152978420258, -0.3220241665840149, -0.14085575938224792, -0.38941875100135803, -0.27746155858039856, 0.2706363797187805, -0.00009346877777716145, 0.08335213363170624, 0.011979516595602036, 0.024075103923678398, 0.038060665130615234, 0.2525874376296997, -0.16313102841377258, 0.017016777768731117, -0.22986754775047302, -0.12335295230150223, -0.0063518802635371685, 0.03285796567797661, 0.20765292644500732, -0.46000397205352783, 0.31530120968818665, 0.2721843421459198, 0.4389771521091461, 0.024107564240694046, 0.34867358207702637, -0.3418550193309784, 0.282143771648407, -0.06907345354557037, 0.09975025802850723, 0.2933255136013031, -0.037205349653959274, -0.3373791575431824, -0.037500619888305664, 0.14582638442516327, -0.1863853484392166, 0.18446338176727295, 0.28903135657310486, -0.2202477604150772, 0.2872122824192047, -0.12447769939899445, 0.23063156008720398, -0.42061370611190796, 0.16492268443107605, -0.21049880981445312, 0.2323160022497177, 0.2669382095336914, -0.1957159787416458, -0.19891031086444855, 0.3648853302001953, 0.10609066486358643, -0.16786867380142212, 0.02592352032661438, 0.021926065906882286, -0.14466574788093567, -0.08132386952638626, 0.1597081869840622, -0.06945142894983292, 0.02576073631644249, -0.16943033039569855, 0.042049918323755264, 0.3752903938293457, -0.04467823728919029, -0.18827523291110992, 0.16851355135440826, -0.1719442903995514, 0.11410317569971085, 0.014479639939963818, 0.07543215900659561, 0.007984189316630363, -0.2008017897605896, 0.027528278529644012, -0.3881138861179352, 0.09632380306720734, -0.1024937629699707, 0.15040931105613708, 0.13849741220474243, -0.08037807792425156, 0.24512934684753418, -0.1692076474428177, 0.31550440192222595, 0.016457030549645424, 0.06874945759773254, -0.2188636064529419, -0.08607366681098938, -0.0008310169214382768, -0.3203884959220886, 0.03199484571814537, -0.16104429960250854, 0.08800400048494339, 0.07713140547275543, -0.08801674842834473, 0.0864492803812027, -0.2102462202310562, 0.09208639711141586, 0.0859595313668251, 0.4488292634487152, 0.17902377247810364, -0.13621413707733154, 0.31024160981178284, 0.12583208084106445, -0.1633443385362625, 0.1354062855243683, -0.23338991403579712, 0.39954206347465515, -0.5580645799636841, 0.038386885076761246, 0.06788434088230133, 0.3993716239929199, 0.16077938675880432, -0.21358098089694977, -0.22030417621135712, -0.3104138970375061, 0.01021003071218729, -0.058735188096761703, 0.15411576628684998, 0.1275424361228943, -0.10717038810253143, 0.12507618963718414, 0.2966853976249695, 0.27701064944267273, 0.01797865331172943, 0.23028717935085297, -0.15056359767913818, -0.29680025577545166, 0.13887913525104523, 0.3571828603744507, 0.2917408347129822, 0.13469144701957703, 0.20027007162570953, -0.19587190449237823, 0.3482687175273895, -0.1723274290561676, -0.09839140623807907, 0.0705299898982048, -0.14705337584018707, -0.31731465458869934, 0.12759917974472046, 0.31913521885871887, -0.04099174216389656, 0.08556416630744934, -0.05087370425462723, -0.1571870744228363, 0.36396458745002747, 0.22429335117340088, 0.13076713681221008, 0.13990409672260284, -0.2625539302825928, 0.05160947144031525, 0.014619718305766582, -0.11737599968910217, -0.2117609977722168, -0.06881216168403625, -0.14847783744335175, -0.38985615968704224, -0.1394600123167038, 0.016998441889882088, -0.006228485144674778, 0.31331080198287964, 0.23884141445159912, -0.14999088644981384, 0.13875263929367065, 0.31339290738105774, -0.314288467168808, -0.07553661614656448, -0.2207101285457611, -0.01738034188747406, 0.2301732897758484, 0.06969507783651352, 0.1100117564201355, 0.14245130121707916, 0.12010511010885239, -0.08706900477409363, 0.17603233456611633, 0.17019926011562347, 0.2711380124092102, -0.09768403321504593, -0.09265542030334473, -0.1953193098306656, 0.12388743460178375, -0.033676981925964355, -0.16640174388885498, 0.08039851486682892, 0.0640472024679184, 0.31482189893722534, 0.04152315482497215, 0.09153452515602112, -0.00989826675504446, -0.09416303038597107, 0.3839739263057709, 0.2333456575870514, 0.06285180151462555, -0.12718769907951355, 0.06869214028120041, -0.06444621086120605, -0.19046719372272491, 0.05129355192184448, -0.10783470422029495, -0.018010294064879417, -0.3619755804538727, -0.313206285238266, -0.0012262200471013784, -0.20347003638744354, 0.044895023107528687, 0.035614073276519775, -0.17657454311847687, 0.17410144209861755, 0.20714765787124634, -0.21431155502796173, -0.08989281952381134, 0.1540078967809677, -0.08231843262910843, -0.28443485498428345, 0.06379757076501846, 0.05628174543380737, 0.07471330463886261, -0.05747760832309723, 0.3105061650276184, -0.13892002403736115, 0.09899233281612396, 0.05925280973315239, -0.051491428166627884, 0.0783509612083435, -0.03302665427327156, 0.06954476982355118, 0.41572126746177673, -0.2058548629283905, 0.3534752428531647, -0.03430142626166344, -0.05192793160676956, -0.05895107612013817, 0.04570040851831436, -0.4407781958580017, 0.17849843204021454, 0.2245711237192154, 0.19888676702976227, 0.0250839926302433, 0.09081627428531647, 0.10964518785476685, 0.03707222640514374, 0.033830445259809494, 0.26990872621536255, 0.0734376385807991, -0.015268893912434578, 0.21906115114688873, 0.15200844407081604, -0.044559162110090256, 0.22103199362754822, -0.0705205574631691, 0.24841755628585815, 0.1169070154428482, -0.11695169657468796, -0.14660151302814484, -0.13922736048698425, -0.07613112777471542, 0.04796891659498215, 0.3891313970088959, -0.18094588816165924, -0.5012094974517822, -0.21351934969425201, -0.14290599524974823, -0.03383698686957359, 0.20918846130371094, -0.21370361745357513, -0.10949646681547165, -0.01016034372150898, 0.16452279686927795, -0.12383481115102768, 0.1298249363899231, 0.09405980259180069, 0.20231452584266663, 0.17469657957553864, 0.12434124946594238, 0.057316556572914124, 0.011197528801858425, 0.2080339938402176, 0.21547681093215942, 0.18144609034061432, -0.13207097351551056, 0.23161354660987854, -0.01747874543070793, -0.10885880142450333, -0.01854068413376808, 0.07105940580368042, 0.07857083529233932, 0.0249900184571743, -0.13670293986797333, 0.08081359416246414, 0.3857268691062927, -0.18878069519996643, -0.16383232176303864, 0.24654829502105713, -0.255994588136673, -0.30066388845443726, 0.040531642735004425, 0.09561536461114883, -0.24347059428691864, -0.20021264255046844, -0.2131379395723343, -0.08350425958633423, -0.6004358530044556, 0.15385183691978455, 0.09804563224315643, 0.4079219400882721, 0.15260091423988342, 0.27527523040771484, 0.22012291848659515, -0.16143713891506195, 0.23121775686740875, -0.13274776935577393, -0.11827123910188675, 0.08837343752384186, -0.29544979333877563, -0.0429266020655632, 0.0765778124332428, 0.12801051139831543, 0.3733762204647064, 0.1056075170636177, -0.40974271297454834, -0.07270541042089462, -0.31532004475593567, -0.1386522501707077, -0.15645550191402435, 0.07031740993261337, 0.18561658263206482, 0.1098039299249649, -0.33773940801620483, 0.0343906469643116, -0.1939288228750229, 0.03224192187190056, 0.20697841048240662, 0.08544965833425522, -0.07157193869352341, 0.2278139442205429, -0.03273460268974304, 0.3994066119194031, 0.09420523047447205, 0.33628541231155396, 0.47116726636886597, -0.09502272307872772, 0.09570776671171188, -0.20533880591392517, -0.22936230897903442, 0.055679209530353546, 0.1940644532442093, -0.18349824845790863, 0.08560855686664581, -0.02447953261435032, -0.3036736845970154, -0.11487888544797897, -0.11039283126592636, -0.218910351395607, -0.16290606558322906, 0.14147008955478668, 0.20310933887958527, 0.18650174140930176, -0.2949959337711334, 0.00908547081053257, -0.04154784232378006, 0.047796737402677536, 0.15732885897159576, 0.00456253532320261, -0.1375853717327118, -0.028093324974179268, -0.24675610661506653, -0.10047867149114609, -0.29209110140800476, 0.2676354646682739, -0.181087926030159, -0.006711311172693968, -0.43259039521217346, -0.29453280568122864, 0.030025433748960495, -0.07302689552307129, 0.43487223982810974, 0.1284429281949997, -0.1430034339427948, 0.08133362233638763, -0.0061034709215164185, 0.02749391831457615, 0.13090550899505615, -0.09415620565414429, 0.2759515345096588, 0.09933801740407944, 0.20311933755874634, -0.13384048640727997, 0.11226672679185867, 0.05086302384734154, -0.07945746928453445, -0.0485340841114521, -0.06728755682706833, -0.1050216555595398, -0.2156139761209488, -0.45770251750946045, 0.0020456076599657536, 0.08194322139024734, 0.20922254025936127, 0.5084893107414246, 0.08017003536224365, 0.2544459402561188, -0.04493219777941704, 0.09043552726507187, -0.10181152820587158, 0.2479345053434372, -0.0832681655883789, 0.040572404861450195, 0.08012741059064865, 0.0838940441608429, 0.35128092765808105, 0.35663002729415894, -0.04678598791360855, 0.1746748983860016, 0.3109003007411957, 0.06460116803646088, 0.2741812765598297, 0.2084697186946869, 0.2798570990562439, -0.11022692918777466, -0.04923195391893387, 0.12403026968240738, -0.16622355580329895, 0.10973711311817169, 0.1401020586490631, -0.0017082926351577044, -0.17703202366828918, -0.08426699787378311, -0.1481751650571823, -0.08690693974494934, 0.0595594085752964, 0.4746447503566742, -0.074122853577137, -0.25307613611221313, 0.3572450876235962, 0.15638500452041626, 0.8695578575134277, -0.374035120010376, 0.051062505692243576, 0.12015292793512344, -0.03239714726805687, 0.008560252375900745, -0.15398213267326355, 0.35168027877807617, -0.3232963979244232, -0.11475606262683868, 0.3355538845062256, -0.19657212495803833, 0.0903797447681427, 0.06045452505350113, -0.1997118443250656, -0.07145339995622635, 0.07748246937990189, 0.04162289574742317, -0.3082813024520874, -0.12409107387065887, 0.0038905104156583548, -0.16971173882484436, 0.11218796670436859, 0.37516048550605774, -0.02667274884879589, 0.15601380169391632, -0.13225850462913513, 0.05722332373261452, -0.05470404028892517, -0.06927721202373505, -0.1660643219947815, 0.008037775754928589, -0.3416331112384796, 0.14052845537662506, -0.20521385967731476, 0.4110996723175049, -0.16853705048561096, 0.17280717194080353, -0.2544845938682556, 0.30584409832954407, 0.09304624795913696, 0.07053639739751816, 0.11481419205665588, -0.19660888612270355, -0.17371706664562225, 0.14743556082248688, -0.013604522682726383, -0.19371238350868225, -0.18999959528446198, 0.1427946537733078, -0.13168635964393616, -0.34177613258361816, -0.32715654373168945, 0.12211155891418457, -0.010881994850933552, -0.2189214676618576, -0.2273496836423874, -0.07357277721166611, -0.23719429969787598, 0.01285590510815382, 0.35486650466918945, -0.02823616750538349, -0.19114631414413452, 0.2880692183971405, -0.02722565084695816, -0.43590638041496277, -0.06448006629943848, 0.25667765736579895, 0.0009543137275613844, 0.2764216363430023, 0.40821266174316406, 0.040104061365127563, -0.12674997746944427, -0.3568512201309204, -0.13720107078552246, 0.18321970105171204, -0.04398879408836365, 0.16132016479969025, -0.014118080958724022, -0.25000903010368347, 0.17056244611740112, -0.009777621366083622, 0.2703784704208374, 0.29598286747932434, 0.16994236409664154, -0.09772955626249313, -0.5992170572280884, 0.1980040967464447, 0.07179711014032364, 0.21132764220237732, -0.19970513880252838, 0.14843802154064178, -0.05772734060883522, 0.15039221942424774, -0.49879980087280273, 0.09403540939092636, -0.2488878220319748, 0.05585065856575966, -0.025858374312520027, -0.2675018906593323, 0.04108528420329094, 0.11512313038110733, 0.38288381695747375, 0.2280382513999939, -0.2683301270008087, -0.39224863052368164, 0.1504778265953064, -0.0033633806742727757, -0.0677257552742958, -0.17294274270534515, 0.09423664957284927, -0.34994104504585266, 0.005841399077326059, -0.17464275658130646, -0.04198167100548744, 0.1967770904302597, -0.21875223517417908, -0.06636511534452438, 0.16699405014514923, -0.1383046656847, 0.37314534187316895, 0.27295026183128357, -0.045142266899347305, 0.2277178019285202, -0.11645263433456421, -0.03434590995311737, 0.0009706138516776264, -0.236691415309906, -0.05949454382061958, 0.11853193491697311, -0.08835943043231964, -0.0891042947769165, 0.11343202739953995, -0.03923693299293518, -0.24546824395656586, 0.23893098533153534, 0.2313345968723297, -0.010151243768632412, -0.06626290082931519, 0.22531919181346893, 0.0812278762459755, 0.4449758529663086, 0.04194141924381256, 0.11176101118326187, 0.2919812500476837, -0.2403559684753418, 0.04605797305703163, 0.179222971200943, -0.05426884442567825, -0.26481786370277405, 0.04627041146159172, 0.09450509399175644, 0.19830699265003204, -0.2065439671278, -0.08115793764591217, -0.1085989698767662, -0.03854554519057274, -0.23046064376831055, 0.15232546627521515, 0.21524538099765778, 0.25041645765304565, 0.2778696119785309, -0.10873498767614365, 0.029794853180646896, -0.13446103036403656, 0.01842537708580494, -0.11488001048564911, -0.42936116456985474, 0.033385708928108215, 0.4130026698112488, -0.12066207826137543, 0.29839757084846497, -0.1598459929227829, 0.06651672720909119, -0.21678665280342102, -0.15985321998596191, -0.07673461735248566, 0.17584949731826782, -0.38716837763786316, 0.2033335268497467, -0.01593097858130932, -0.09234447032213211, -0.10963130742311478, 0.11641795933246613, 0.1780271679162979, -0.15864169597625732, 0.4105008542537689, 0.043022848665714264, -0.27610936760902405, 0.14335700869560242, -0.15674154460430145, 0.17874063551425934, 0.03796032816171646, -0.4237707555294037, 0.14590810239315033, -0.09986304491758347, 0.037635043263435364, -0.08390729874372482, 0.24055282771587372, 0.6054585576057434, 0.3458799719810486, -0.09926372766494751, 0.14934000372886658, -0.06068491190671921, -0.06164228171110153, -0.2485647052526474, 0.10737620294094086, 0.25971221923828125, 0.2949657440185547, 0.04770025983452797, 0.2685006856918335, -0.3515852689743042, -0.25104039907455444, 0.0814967080950737, 0.1538906693458557, 0.29190871119499207, -0.3523159325122833, -0.15403208136558533, -0.24628481268882751, -0.06076163798570633, -0.11671048402786255, -0.6105131506919861, -0.028340233489871025, 0.04126118868589401, -0.33117616176605225, 0.1927827149629593, 0.1907413750886917, 0.18520371615886688, -0.02947385422885418, 0.25316089391708374, 0.24993230402469635, -0.04877594858407974, -0.3832659423351288, -0.39066845178604126, -0.12970492243766785, 0.3400775194168091, -0.16803734004497528, 0.149694561958313, -0.20186704397201538, 0.07768039405345917, 0.006037302780896425, -0.4246037006378174, 0.023147335276007652, -0.3622925877571106, -0.0995757132768631, 0.29115161299705505, -0.09273939579725266, 0.1328807771205902, 0.20366117358207703, -0.030431048944592476, 0.33103707432746887, -0.18816028535366058, 0.19742056727409363, -0.16657261550426483, 0.29877275228500366, -0.12471035867929459, 0.055529166013002396, -0.13205911219120026, 0.22260883450508118, 0.2676023542881012, -0.05022522062063217, 0.25129857659339905, -0.2638547420501709, -0.3758505582809448, -0.12486445158720016, -0.2815215587615967, -0.013769245706498623, -0.04884824529290199, 0.2615118622779846, 0.3775305151939392, -0.11617923527956009, -0.14326003193855286, -0.2671668827533722, 0.2563316524028778, -0.19458971917629242, 0.0868254154920578, 0.12148778140544891, 0.16676577925682068, 0.17847129702568054, -0.07655210047960281, 0.1070491224527359, 0.10371777415275574, 0.1384815126657486, 0.11598262935876846, -0.3758721947669983, -0.1951822191476822, 0.26425209641456604, 0.017606884241104126, -0.14342346787452698, 0.13485974073410034, 0.022502213716506958, -0.11410731822252274, 0.000603371998295188, -0.5505527853965759, -0.044036295264959335, 0.12144149094820023, -0.17037443816661835, -0.3122221827507019, 0.12213432788848877, -0.3211984634399414, -0.12375561892986298, 0.06987469643354416, 0.2493343949317932, -0.049753788858652115, -0.31149208545684814, 0.11520324647426605, -0.015808340162038803 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
Dear @lhoestq thank you very much for the very sharp observation, indeed, this happens there, I use the default value of 5, I basically plan to subsample a part of the large dataset and choose it as validation set. Do you think this is bringing the data into memory during subsampling? Is there a way I could avoid this? Thank you very much for the great help. On Mon, Mar 8, 2021 at 11:28 AM Quentin Lhoest ***@***.***> wrote: > I noticed that the error happens when loading the validation dataset. > What value of data_args.validation_split_percentage did you use ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/1990#issuecomment-792655644>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMS337ZUJ7HGGVVCCR3TCSREFANCNFSM4YTYAQ2A> > . >
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/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 "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
133
OSError: Memory mapping file failed: Cannot allocate memory
[ -0.1340877264738083, -0.22973375022411346, -0.20842617750167847, 0.3810867369174957, 0.3796180486679077, -0.02415354922413826, -0.1345478892326355, 0.34922346472740173, 0.22156944870948792, 0.2967315912246704, 0.058379072695970535, 0.053929053246974945, -0.19420509040355682, -0.2546064555644989, -0.21051087975502014, 0.054768167436122894, -0.05514560267329216, 0.03647255897521973, -0.3414470851421356, 0.131743922829628, -0.40260425209999084, 0.3171733617782593, -0.054438043385744095, 0.02822841890156269, -0.2345396727323532, -0.03821702301502228, -0.0035305253695696592, 0.16314223408699036, -0.19803152978420258, -0.3220241665840149, -0.14085575938224792, -0.38941875100135803, -0.27746155858039856, 0.2706363797187805, -0.00009346877777716145, 0.08335213363170624, 0.011979516595602036, 0.024075103923678398, 0.038060665130615234, 0.2525874376296997, -0.16313102841377258, 0.017016777768731117, -0.22986754775047302, -0.12335295230150223, -0.0063518802635371685, 0.03285796567797661, 0.20765292644500732, -0.46000397205352783, 0.31530120968818665, 0.2721843421459198, 0.4389771521091461, 0.024107564240694046, 0.34867358207702637, -0.3418550193309784, 0.282143771648407, -0.06907345354557037, 0.09975025802850723, 0.2933255136013031, -0.037205349653959274, -0.3373791575431824, -0.037500619888305664, 0.14582638442516327, -0.1863853484392166, 0.18446338176727295, 0.28903135657310486, -0.2202477604150772, 0.2872122824192047, -0.12447769939899445, 0.23063156008720398, -0.42061370611190796, 0.16492268443107605, -0.21049880981445312, 0.2323160022497177, 0.2669382095336914, -0.1957159787416458, -0.19891031086444855, 0.3648853302001953, 0.10609066486358643, -0.16786867380142212, 0.02592352032661438, 0.021926065906882286, -0.14466574788093567, -0.08132386952638626, 0.1597081869840622, -0.06945142894983292, 0.02576073631644249, -0.16943033039569855, 0.042049918323755264, 0.3752903938293457, -0.04467823728919029, -0.18827523291110992, 0.16851355135440826, -0.1719442903995514, 0.11410317569971085, 0.014479639939963818, 0.07543215900659561, 0.007984189316630363, -0.2008017897605896, 0.027528278529644012, -0.3881138861179352, 0.09632380306720734, -0.1024937629699707, 0.15040931105613708, 0.13849741220474243, -0.08037807792425156, 0.24512934684753418, -0.1692076474428177, 0.31550440192222595, 0.016457030549645424, 0.06874945759773254, -0.2188636064529419, -0.08607366681098938, -0.0008310169214382768, -0.3203884959220886, 0.03199484571814537, -0.16104429960250854, 0.08800400048494339, 0.07713140547275543, -0.08801674842834473, 0.0864492803812027, -0.2102462202310562, 0.09208639711141586, 0.0859595313668251, 0.4488292634487152, 0.17902377247810364, -0.13621413707733154, 0.31024160981178284, 0.12583208084106445, -0.1633443385362625, 0.1354062855243683, -0.23338991403579712, 0.39954206347465515, -0.5580645799636841, 0.038386885076761246, 0.06788434088230133, 0.3993716239929199, 0.16077938675880432, -0.21358098089694977, -0.22030417621135712, -0.3104138970375061, 0.01021003071218729, -0.058735188096761703, 0.15411576628684998, 0.1275424361228943, -0.10717038810253143, 0.12507618963718414, 0.2966853976249695, 0.27701064944267273, 0.01797865331172943, 0.23028717935085297, -0.15056359767913818, -0.29680025577545166, 0.13887913525104523, 0.3571828603744507, 0.2917408347129822, 0.13469144701957703, 0.20027007162570953, -0.19587190449237823, 0.3482687175273895, -0.1723274290561676, -0.09839140623807907, 0.0705299898982048, -0.14705337584018707, -0.31731465458869934, 0.12759917974472046, 0.31913521885871887, -0.04099174216389656, 0.08556416630744934, -0.05087370425462723, -0.1571870744228363, 0.36396458745002747, 0.22429335117340088, 0.13076713681221008, 0.13990409672260284, -0.2625539302825928, 0.05160947144031525, 0.014619718305766582, -0.11737599968910217, -0.2117609977722168, -0.06881216168403625, -0.14847783744335175, -0.38985615968704224, -0.1394600123167038, 0.016998441889882088, -0.006228485144674778, 0.31331080198287964, 0.23884141445159912, -0.14999088644981384, 0.13875263929367065, 0.31339290738105774, -0.314288467168808, -0.07553661614656448, -0.2207101285457611, -0.01738034188747406, 0.2301732897758484, 0.06969507783651352, 0.1100117564201355, 0.14245130121707916, 0.12010511010885239, -0.08706900477409363, 0.17603233456611633, 0.17019926011562347, 0.2711380124092102, -0.09768403321504593, -0.09265542030334473, -0.1953193098306656, 0.12388743460178375, -0.033676981925964355, -0.16640174388885498, 0.08039851486682892, 0.0640472024679184, 0.31482189893722534, 0.04152315482497215, 0.09153452515602112, -0.00989826675504446, -0.09416303038597107, 0.3839739263057709, 0.2333456575870514, 0.06285180151462555, -0.12718769907951355, 0.06869214028120041, -0.06444621086120605, -0.19046719372272491, 0.05129355192184448, -0.10783470422029495, -0.018010294064879417, -0.3619755804538727, -0.313206285238266, -0.0012262200471013784, -0.20347003638744354, 0.044895023107528687, 0.035614073276519775, -0.17657454311847687, 0.17410144209861755, 0.20714765787124634, -0.21431155502796173, -0.08989281952381134, 0.1540078967809677, -0.08231843262910843, -0.28443485498428345, 0.06379757076501846, 0.05628174543380737, 0.07471330463886261, -0.05747760832309723, 0.3105061650276184, -0.13892002403736115, 0.09899233281612396, 0.05925280973315239, -0.051491428166627884, 0.0783509612083435, -0.03302665427327156, 0.06954476982355118, 0.41572126746177673, -0.2058548629283905, 0.3534752428531647, -0.03430142626166344, -0.05192793160676956, -0.05895107612013817, 0.04570040851831436, -0.4407781958580017, 0.17849843204021454, 0.2245711237192154, 0.19888676702976227, 0.0250839926302433, 0.09081627428531647, 0.10964518785476685, 0.03707222640514374, 0.033830445259809494, 0.26990872621536255, 0.0734376385807991, -0.015268893912434578, 0.21906115114688873, 0.15200844407081604, -0.044559162110090256, 0.22103199362754822, -0.0705205574631691, 0.24841755628585815, 0.1169070154428482, -0.11695169657468796, -0.14660151302814484, -0.13922736048698425, -0.07613112777471542, 0.04796891659498215, 0.3891313970088959, -0.18094588816165924, -0.5012094974517822, -0.21351934969425201, -0.14290599524974823, -0.03383698686957359, 0.20918846130371094, -0.21370361745357513, -0.10949646681547165, -0.01016034372150898, 0.16452279686927795, -0.12383481115102768, 0.1298249363899231, 0.09405980259180069, 0.20231452584266663, 0.17469657957553864, 0.12434124946594238, 0.057316556572914124, 0.011197528801858425, 0.2080339938402176, 0.21547681093215942, 0.18144609034061432, -0.13207097351551056, 0.23161354660987854, -0.01747874543070793, -0.10885880142450333, -0.01854068413376808, 0.07105940580368042, 0.07857083529233932, 0.0249900184571743, -0.13670293986797333, 0.08081359416246414, 0.3857268691062927, -0.18878069519996643, -0.16383232176303864, 0.24654829502105713, -0.255994588136673, -0.30066388845443726, 0.040531642735004425, 0.09561536461114883, -0.24347059428691864, -0.20021264255046844, -0.2131379395723343, -0.08350425958633423, -0.6004358530044556, 0.15385183691978455, 0.09804563224315643, 0.4079219400882721, 0.15260091423988342, 0.27527523040771484, 0.22012291848659515, -0.16143713891506195, 0.23121775686740875, -0.13274776935577393, -0.11827123910188675, 0.08837343752384186, -0.29544979333877563, -0.0429266020655632, 0.0765778124332428, 0.12801051139831543, 0.3733762204647064, 0.1056075170636177, -0.40974271297454834, -0.07270541042089462, -0.31532004475593567, -0.1386522501707077, -0.15645550191402435, 0.07031740993261337, 0.18561658263206482, 0.1098039299249649, -0.33773940801620483, 0.0343906469643116, -0.1939288228750229, 0.03224192187190056, 0.20697841048240662, 0.08544965833425522, -0.07157193869352341, 0.2278139442205429, -0.03273460268974304, 0.3994066119194031, 0.09420523047447205, 0.33628541231155396, 0.47116726636886597, -0.09502272307872772, 0.09570776671171188, -0.20533880591392517, -0.22936230897903442, 0.055679209530353546, 0.1940644532442093, -0.18349824845790863, 0.08560855686664581, -0.02447953261435032, -0.3036736845970154, -0.11487888544797897, -0.11039283126592636, -0.218910351395607, -0.16290606558322906, 0.14147008955478668, 0.20310933887958527, 0.18650174140930176, -0.2949959337711334, 0.00908547081053257, -0.04154784232378006, 0.047796737402677536, 0.15732885897159576, 0.00456253532320261, -0.1375853717327118, -0.028093324974179268, -0.24675610661506653, -0.10047867149114609, -0.29209110140800476, 0.2676354646682739, -0.181087926030159, -0.006711311172693968, -0.43259039521217346, -0.29453280568122864, 0.030025433748960495, -0.07302689552307129, 0.43487223982810974, 0.1284429281949997, -0.1430034339427948, 0.08133362233638763, -0.0061034709215164185, 0.02749391831457615, 0.13090550899505615, -0.09415620565414429, 0.2759515345096588, 0.09933801740407944, 0.20311933755874634, -0.13384048640727997, 0.11226672679185867, 0.05086302384734154, -0.07945746928453445, -0.0485340841114521, -0.06728755682706833, -0.1050216555595398, -0.2156139761209488, -0.45770251750946045, 0.0020456076599657536, 0.08194322139024734, 0.20922254025936127, 0.5084893107414246, 0.08017003536224365, 0.2544459402561188, -0.04493219777941704, 0.09043552726507187, -0.10181152820587158, 0.2479345053434372, -0.0832681655883789, 0.040572404861450195, 0.08012741059064865, 0.0838940441608429, 0.35128092765808105, 0.35663002729415894, -0.04678598791360855, 0.1746748983860016, 0.3109003007411957, 0.06460116803646088, 0.2741812765598297, 0.2084697186946869, 0.2798570990562439, -0.11022692918777466, -0.04923195391893387, 0.12403026968240738, -0.16622355580329895, 0.10973711311817169, 0.1401020586490631, -0.0017082926351577044, -0.17703202366828918, -0.08426699787378311, -0.1481751650571823, -0.08690693974494934, 0.0595594085752964, 0.4746447503566742, -0.074122853577137, -0.25307613611221313, 0.3572450876235962, 0.15638500452041626, 0.8695578575134277, -0.374035120010376, 0.051062505692243576, 0.12015292793512344, -0.03239714726805687, 0.008560252375900745, -0.15398213267326355, 0.35168027877807617, -0.3232963979244232, -0.11475606262683868, 0.3355538845062256, -0.19657212495803833, 0.0903797447681427, 0.06045452505350113, -0.1997118443250656, -0.07145339995622635, 0.07748246937990189, 0.04162289574742317, -0.3082813024520874, -0.12409107387065887, 0.0038905104156583548, -0.16971173882484436, 0.11218796670436859, 0.37516048550605774, -0.02667274884879589, 0.15601380169391632, -0.13225850462913513, 0.05722332373261452, -0.05470404028892517, -0.06927721202373505, -0.1660643219947815, 0.008037775754928589, -0.3416331112384796, 0.14052845537662506, -0.20521385967731476, 0.4110996723175049, -0.16853705048561096, 0.17280717194080353, -0.2544845938682556, 0.30584409832954407, 0.09304624795913696, 0.07053639739751816, 0.11481419205665588, -0.19660888612270355, -0.17371706664562225, 0.14743556082248688, -0.013604522682726383, -0.19371238350868225, -0.18999959528446198, 0.1427946537733078, -0.13168635964393616, -0.34177613258361816, -0.32715654373168945, 0.12211155891418457, -0.010881994850933552, -0.2189214676618576, -0.2273496836423874, -0.07357277721166611, -0.23719429969787598, 0.01285590510815382, 0.35486650466918945, -0.02823616750538349, -0.19114631414413452, 0.2880692183971405, -0.02722565084695816, -0.43590638041496277, -0.06448006629943848, 0.25667765736579895, 0.0009543137275613844, 0.2764216363430023, 0.40821266174316406, 0.040104061365127563, -0.12674997746944427, -0.3568512201309204, -0.13720107078552246, 0.18321970105171204, -0.04398879408836365, 0.16132016479969025, -0.014118080958724022, -0.25000903010368347, 0.17056244611740112, -0.009777621366083622, 0.2703784704208374, 0.29598286747932434, 0.16994236409664154, -0.09772955626249313, -0.5992170572280884, 0.1980040967464447, 0.07179711014032364, 0.21132764220237732, -0.19970513880252838, 0.14843802154064178, -0.05772734060883522, 0.15039221942424774, -0.49879980087280273, 0.09403540939092636, -0.2488878220319748, 0.05585065856575966, -0.025858374312520027, -0.2675018906593323, 0.04108528420329094, 0.11512313038110733, 0.38288381695747375, 0.2280382513999939, -0.2683301270008087, -0.39224863052368164, 0.1504778265953064, -0.0033633806742727757, -0.0677257552742958, -0.17294274270534515, 0.09423664957284927, -0.34994104504585266, 0.005841399077326059, -0.17464275658130646, -0.04198167100548744, 0.1967770904302597, -0.21875223517417908, -0.06636511534452438, 0.16699405014514923, -0.1383046656847, 0.37314534187316895, 0.27295026183128357, -0.045142266899347305, 0.2277178019285202, -0.11645263433456421, -0.03434590995311737, 0.0009706138516776264, -0.236691415309906, -0.05949454382061958, 0.11853193491697311, -0.08835943043231964, -0.0891042947769165, 0.11343202739953995, -0.03923693299293518, -0.24546824395656586, 0.23893098533153534, 0.2313345968723297, -0.010151243768632412, -0.06626290082931519, 0.22531919181346893, 0.0812278762459755, 0.4449758529663086, 0.04194141924381256, 0.11176101118326187, 0.2919812500476837, -0.2403559684753418, 0.04605797305703163, 0.179222971200943, -0.05426884442567825, -0.26481786370277405, 0.04627041146159172, 0.09450509399175644, 0.19830699265003204, -0.2065439671278, -0.08115793764591217, -0.1085989698767662, -0.03854554519057274, -0.23046064376831055, 0.15232546627521515, 0.21524538099765778, 0.25041645765304565, 0.2778696119785309, -0.10873498767614365, 0.029794853180646896, -0.13446103036403656, 0.01842537708580494, -0.11488001048564911, -0.42936116456985474, 0.033385708928108215, 0.4130026698112488, -0.12066207826137543, 0.29839757084846497, -0.1598459929227829, 0.06651672720909119, -0.21678665280342102, -0.15985321998596191, -0.07673461735248566, 0.17584949731826782, -0.38716837763786316, 0.2033335268497467, -0.01593097858130932, -0.09234447032213211, -0.10963130742311478, 0.11641795933246613, 0.1780271679162979, -0.15864169597625732, 0.4105008542537689, 0.043022848665714264, -0.27610936760902405, 0.14335700869560242, -0.15674154460430145, 0.17874063551425934, 0.03796032816171646, -0.4237707555294037, 0.14590810239315033, -0.09986304491758347, 0.037635043263435364, -0.08390729874372482, 0.24055282771587372, 0.6054585576057434, 0.3458799719810486, -0.09926372766494751, 0.14934000372886658, -0.06068491190671921, -0.06164228171110153, -0.2485647052526474, 0.10737620294094086, 0.25971221923828125, 0.2949657440185547, 0.04770025983452797, 0.2685006856918335, -0.3515852689743042, -0.25104039907455444, 0.0814967080950737, 0.1538906693458557, 0.29190871119499207, -0.3523159325122833, -0.15403208136558533, -0.24628481268882751, -0.06076163798570633, -0.11671048402786255, -0.6105131506919861, -0.028340233489871025, 0.04126118868589401, -0.33117616176605225, 0.1927827149629593, 0.1907413750886917, 0.18520371615886688, -0.02947385422885418, 0.25316089391708374, 0.24993230402469635, -0.04877594858407974, -0.3832659423351288, -0.39066845178604126, -0.12970492243766785, 0.3400775194168091, -0.16803734004497528, 0.149694561958313, -0.20186704397201538, 0.07768039405345917, 0.006037302780896425, -0.4246037006378174, 0.023147335276007652, -0.3622925877571106, -0.0995757132768631, 0.29115161299705505, -0.09273939579725266, 0.1328807771205902, 0.20366117358207703, -0.030431048944592476, 0.33103707432746887, -0.18816028535366058, 0.19742056727409363, -0.16657261550426483, 0.29877275228500366, -0.12471035867929459, 0.055529166013002396, -0.13205911219120026, 0.22260883450508118, 0.2676023542881012, -0.05022522062063217, 0.25129857659339905, -0.2638547420501709, -0.3758505582809448, -0.12486445158720016, -0.2815215587615967, -0.013769245706498623, -0.04884824529290199, 0.2615118622779846, 0.3775305151939392, -0.11617923527956009, -0.14326003193855286, -0.2671668827533722, 0.2563316524028778, -0.19458971917629242, 0.0868254154920578, 0.12148778140544891, 0.16676577925682068, 0.17847129702568054, -0.07655210047960281, 0.1070491224527359, 0.10371777415275574, 0.1384815126657486, 0.11598262935876846, -0.3758721947669983, -0.1951822191476822, 0.26425209641456604, 0.017606884241104126, -0.14342346787452698, 0.13485974073410034, 0.022502213716506958, -0.11410731822252274, 0.000603371998295188, -0.5505527853965759, -0.044036295264959335, 0.12144149094820023, -0.17037443816661835, -0.3122221827507019, 0.12213432788848877, -0.3211984634399414, -0.12375561892986298, 0.06987469643354416, 0.2493343949317932, -0.049753788858652115, -0.31149208545684814, 0.11520324647426605, -0.015808340162038803 ]
https://github.com/huggingface/datasets/issues/1990
OSError: Memory mapping file failed: Cannot allocate memory
Methods like `dataset.shard`, `dataset.train_test_split`, `dataset.select` etc. don't bring the dataset in memory. The only time when samples are brought to memory is when you access elements via `dataset[0]`, `dataset[:10]`, `dataset["my_column_names"]`. But it's possible that trying to use those methods to build your validation set doesn't fix the issue since, if I understand correctly, the error happens when when the dataset arrow file is opened (just before the 5% percentage is applied). Did you try to reproduce this issue in a google colab ? This would be super helpful to investigate why this happened. Also maybe you can try clearing your cache at `~/.cache/huggingface/datasets` and try again. If the arrow file was corrupted somehow, removing it and rebuilding may fix the issue.
Hi, I am trying to run a code with a wikipedia dataset, here is the command to reproduce the error. You can find the codes for run_mlm.py in huggingface repo here: https://github.com/huggingface/transformers/blob/v4.3.2/examples/language-modeling/run_mlm.py ``` python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.en --do_train --do_eval --output_dir /dara/test --max_seq_length 128 ``` I am using transformer version: 4.3.2 But I got memory erorr using this dataset, is there a way I could save on memory with dataset library with wikipedia dataset? Specially I need to train a model with multiple of wikipedia datasets concatenated. thank you very much @lhoestq for your help and suggestions: ``` File "run_mlm.py", line 441, in <module> main() File "run_mlm.py", line 233, in main split=f"train[{data_args.validation_split_percentage}%:]", File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 750, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 740, in as_dataset map_tuple=True, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 757, in _build_single_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 829, in _as_dataset in_memory=in_memory, File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/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 "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
121
OSError: Memory mapping file failed: Cannot allocate memory
[ -0.1340877264738083, -0.22973375022411346, -0.20842617750167847, 0.3810867369174957, 0.3796180486679077, -0.02415354922413826, -0.1345478892326355, 0.34922346472740173, 0.22156944870948792, 0.2967315912246704, 0.058379072695970535, 0.053929053246974945, -0.19420509040355682, -0.2546064555644989, -0.21051087975502014, 0.054768167436122894, -0.05514560267329216, 0.03647255897521973, -0.3414470851421356, 0.131743922829628, -0.40260425209999084, 0.3171733617782593, -0.054438043385744095, 0.02822841890156269, -0.2345396727323532, -0.03821702301502228, -0.0035305253695696592, 0.16314223408699036, -0.19803152978420258, -0.3220241665840149, -0.14085575938224792, -0.38941875100135803, -0.27746155858039856, 0.2706363797187805, -0.00009346877777716145, 0.08335213363170624, 0.011979516595602036, 0.024075103923678398, 0.038060665130615234, 0.2525874376296997, -0.16313102841377258, 0.017016777768731117, -0.22986754775047302, -0.12335295230150223, -0.0063518802635371685, 0.03285796567797661, 0.20765292644500732, -0.46000397205352783, 0.31530120968818665, 0.2721843421459198, 0.4389771521091461, 0.024107564240694046, 0.34867358207702637, -0.3418550193309784, 0.282143771648407, -0.06907345354557037, 0.09975025802850723, 0.2933255136013031, -0.037205349653959274, -0.3373791575431824, -0.037500619888305664, 0.14582638442516327, -0.1863853484392166, 0.18446338176727295, 0.28903135657310486, -0.2202477604150772, 0.2872122824192047, -0.12447769939899445, 0.23063156008720398, -0.42061370611190796, 0.16492268443107605, -0.21049880981445312, 0.2323160022497177, 0.2669382095336914, -0.1957159787416458, -0.19891031086444855, 0.3648853302001953, 0.10609066486358643, -0.16786867380142212, 0.02592352032661438, 0.021926065906882286, -0.14466574788093567, -0.08132386952638626, 0.1597081869840622, -0.06945142894983292, 0.02576073631644249, -0.16943033039569855, 0.042049918323755264, 0.3752903938293457, -0.04467823728919029, -0.18827523291110992, 0.16851355135440826, -0.1719442903995514, 0.11410317569971085, 0.014479639939963818, 0.07543215900659561, 0.007984189316630363, -0.2008017897605896, 0.027528278529644012, -0.3881138861179352, 0.09632380306720734, -0.1024937629699707, 0.15040931105613708, 0.13849741220474243, -0.08037807792425156, 0.24512934684753418, -0.1692076474428177, 0.31550440192222595, 0.016457030549645424, 0.06874945759773254, -0.2188636064529419, -0.08607366681098938, -0.0008310169214382768, -0.3203884959220886, 0.03199484571814537, -0.16104429960250854, 0.08800400048494339, 0.07713140547275543, -0.08801674842834473, 0.0864492803812027, -0.2102462202310562, 0.09208639711141586, 0.0859595313668251, 0.4488292634487152, 0.17902377247810364, -0.13621413707733154, 0.31024160981178284, 0.12583208084106445, -0.1633443385362625, 0.1354062855243683, -0.23338991403579712, 0.39954206347465515, -0.5580645799636841, 0.038386885076761246, 0.06788434088230133, 0.3993716239929199, 0.16077938675880432, -0.21358098089694977, -0.22030417621135712, -0.3104138970375061, 0.01021003071218729, -0.058735188096761703, 0.15411576628684998, 0.1275424361228943, -0.10717038810253143, 0.12507618963718414, 0.2966853976249695, 0.27701064944267273, 0.01797865331172943, 0.23028717935085297, -0.15056359767913818, -0.29680025577545166, 0.13887913525104523, 0.3571828603744507, 0.2917408347129822, 0.13469144701957703, 0.20027007162570953, -0.19587190449237823, 0.3482687175273895, -0.1723274290561676, -0.09839140623807907, 0.0705299898982048, -0.14705337584018707, -0.31731465458869934, 0.12759917974472046, 0.31913521885871887, -0.04099174216389656, 0.08556416630744934, -0.05087370425462723, -0.1571870744228363, 0.36396458745002747, 0.22429335117340088, 0.13076713681221008, 0.13990409672260284, -0.2625539302825928, 0.05160947144031525, 0.014619718305766582, -0.11737599968910217, -0.2117609977722168, -0.06881216168403625, -0.14847783744335175, -0.38985615968704224, -0.1394600123167038, 0.016998441889882088, -0.006228485144674778, 0.31331080198287964, 0.23884141445159912, -0.14999088644981384, 0.13875263929367065, 0.31339290738105774, -0.314288467168808, -0.07553661614656448, -0.2207101285457611, -0.01738034188747406, 0.2301732897758484, 0.06969507783651352, 0.1100117564201355, 0.14245130121707916, 0.12010511010885239, -0.08706900477409363, 0.17603233456611633, 0.17019926011562347, 0.2711380124092102, -0.09768403321504593, -0.09265542030334473, -0.1953193098306656, 0.12388743460178375, -0.033676981925964355, -0.16640174388885498, 0.08039851486682892, 0.0640472024679184, 0.31482189893722534, 0.04152315482497215, 0.09153452515602112, -0.00989826675504446, -0.09416303038597107, 0.3839739263057709, 0.2333456575870514, 0.06285180151462555, -0.12718769907951355, 0.06869214028120041, -0.06444621086120605, -0.19046719372272491, 0.05129355192184448, -0.10783470422029495, -0.018010294064879417, -0.3619755804538727, -0.313206285238266, -0.0012262200471013784, -0.20347003638744354, 0.044895023107528687, 0.035614073276519775, -0.17657454311847687, 0.17410144209861755, 0.20714765787124634, -0.21431155502796173, -0.08989281952381134, 0.1540078967809677, -0.08231843262910843, -0.28443485498428345, 0.06379757076501846, 0.05628174543380737, 0.07471330463886261, -0.05747760832309723, 0.3105061650276184, -0.13892002403736115, 0.09899233281612396, 0.05925280973315239, -0.051491428166627884, 0.0783509612083435, -0.03302665427327156, 0.06954476982355118, 0.41572126746177673, -0.2058548629283905, 0.3534752428531647, -0.03430142626166344, -0.05192793160676956, -0.05895107612013817, 0.04570040851831436, -0.4407781958580017, 0.17849843204021454, 0.2245711237192154, 0.19888676702976227, 0.0250839926302433, 0.09081627428531647, 0.10964518785476685, 0.03707222640514374, 0.033830445259809494, 0.26990872621536255, 0.0734376385807991, -0.015268893912434578, 0.21906115114688873, 0.15200844407081604, -0.044559162110090256, 0.22103199362754822, -0.0705205574631691, 0.24841755628585815, 0.1169070154428482, -0.11695169657468796, -0.14660151302814484, -0.13922736048698425, -0.07613112777471542, 0.04796891659498215, 0.3891313970088959, -0.18094588816165924, -0.5012094974517822, -0.21351934969425201, -0.14290599524974823, -0.03383698686957359, 0.20918846130371094, -0.21370361745357513, -0.10949646681547165, -0.01016034372150898, 0.16452279686927795, -0.12383481115102768, 0.1298249363899231, 0.09405980259180069, 0.20231452584266663, 0.17469657957553864, 0.12434124946594238, 0.057316556572914124, 0.011197528801858425, 0.2080339938402176, 0.21547681093215942, 0.18144609034061432, -0.13207097351551056, 0.23161354660987854, -0.01747874543070793, -0.10885880142450333, -0.01854068413376808, 0.07105940580368042, 0.07857083529233932, 0.0249900184571743, -0.13670293986797333, 0.08081359416246414, 0.3857268691062927, -0.18878069519996643, -0.16383232176303864, 0.24654829502105713, -0.255994588136673, -0.30066388845443726, 0.040531642735004425, 0.09561536461114883, -0.24347059428691864, -0.20021264255046844, -0.2131379395723343, -0.08350425958633423, -0.6004358530044556, 0.15385183691978455, 0.09804563224315643, 0.4079219400882721, 0.15260091423988342, 0.27527523040771484, 0.22012291848659515, -0.16143713891506195, 0.23121775686740875, -0.13274776935577393, -0.11827123910188675, 0.08837343752384186, -0.29544979333877563, -0.0429266020655632, 0.0765778124332428, 0.12801051139831543, 0.3733762204647064, 0.1056075170636177, -0.40974271297454834, -0.07270541042089462, -0.31532004475593567, -0.1386522501707077, -0.15645550191402435, 0.07031740993261337, 0.18561658263206482, 0.1098039299249649, -0.33773940801620483, 0.0343906469643116, -0.1939288228750229, 0.03224192187190056, 0.20697841048240662, 0.08544965833425522, -0.07157193869352341, 0.2278139442205429, -0.03273460268974304, 0.3994066119194031, 0.09420523047447205, 0.33628541231155396, 0.47116726636886597, -0.09502272307872772, 0.09570776671171188, -0.20533880591392517, -0.22936230897903442, 0.055679209530353546, 0.1940644532442093, -0.18349824845790863, 0.08560855686664581, -0.02447953261435032, -0.3036736845970154, -0.11487888544797897, -0.11039283126592636, -0.218910351395607, -0.16290606558322906, 0.14147008955478668, 0.20310933887958527, 0.18650174140930176, -0.2949959337711334, 0.00908547081053257, -0.04154784232378006, 0.047796737402677536, 0.15732885897159576, 0.00456253532320261, -0.1375853717327118, -0.028093324974179268, -0.24675610661506653, -0.10047867149114609, -0.29209110140800476, 0.2676354646682739, -0.181087926030159, -0.006711311172693968, -0.43259039521217346, -0.29453280568122864, 0.030025433748960495, -0.07302689552307129, 0.43487223982810974, 0.1284429281949997, -0.1430034339427948, 0.08133362233638763, -0.0061034709215164185, 0.02749391831457615, 0.13090550899505615, -0.09415620565414429, 0.2759515345096588, 0.09933801740407944, 0.20311933755874634, -0.13384048640727997, 0.11226672679185867, 0.05086302384734154, -0.07945746928453445, -0.0485340841114521, -0.06728755682706833, -0.1050216555595398, -0.2156139761209488, -0.45770251750946045, 0.0020456076599657536, 0.08194322139024734, 0.20922254025936127, 0.5084893107414246, 0.08017003536224365, 0.2544459402561188, -0.04493219777941704, 0.09043552726507187, -0.10181152820587158, 0.2479345053434372, -0.0832681655883789, 0.040572404861450195, 0.08012741059064865, 0.0838940441608429, 0.35128092765808105, 0.35663002729415894, -0.04678598791360855, 0.1746748983860016, 0.3109003007411957, 0.06460116803646088, 0.2741812765598297, 0.2084697186946869, 0.2798570990562439, -0.11022692918777466, -0.04923195391893387, 0.12403026968240738, -0.16622355580329895, 0.10973711311817169, 0.1401020586490631, -0.0017082926351577044, -0.17703202366828918, -0.08426699787378311, -0.1481751650571823, -0.08690693974494934, 0.0595594085752964, 0.4746447503566742, -0.074122853577137, -0.25307613611221313, 0.3572450876235962, 0.15638500452041626, 0.8695578575134277, -0.374035120010376, 0.051062505692243576, 0.12015292793512344, -0.03239714726805687, 0.008560252375900745, -0.15398213267326355, 0.35168027877807617, -0.3232963979244232, -0.11475606262683868, 0.3355538845062256, -0.19657212495803833, 0.0903797447681427, 0.06045452505350113, -0.1997118443250656, -0.07145339995622635, 0.07748246937990189, 0.04162289574742317, -0.3082813024520874, -0.12409107387065887, 0.0038905104156583548, -0.16971173882484436, 0.11218796670436859, 0.37516048550605774, -0.02667274884879589, 0.15601380169391632, -0.13225850462913513, 0.05722332373261452, -0.05470404028892517, -0.06927721202373505, -0.1660643219947815, 0.008037775754928589, -0.3416331112384796, 0.14052845537662506, -0.20521385967731476, 0.4110996723175049, -0.16853705048561096, 0.17280717194080353, -0.2544845938682556, 0.30584409832954407, 0.09304624795913696, 0.07053639739751816, 0.11481419205665588, -0.19660888612270355, -0.17371706664562225, 0.14743556082248688, -0.013604522682726383, -0.19371238350868225, -0.18999959528446198, 0.1427946537733078, -0.13168635964393616, -0.34177613258361816, -0.32715654373168945, 0.12211155891418457, -0.010881994850933552, -0.2189214676618576, -0.2273496836423874, -0.07357277721166611, -0.23719429969787598, 0.01285590510815382, 0.35486650466918945, -0.02823616750538349, -0.19114631414413452, 0.2880692183971405, -0.02722565084695816, -0.43590638041496277, -0.06448006629943848, 0.25667765736579895, 0.0009543137275613844, 0.2764216363430023, 0.40821266174316406, 0.040104061365127563, -0.12674997746944427, -0.3568512201309204, -0.13720107078552246, 0.18321970105171204, -0.04398879408836365, 0.16132016479969025, -0.014118080958724022, -0.25000903010368347, 0.17056244611740112, -0.009777621366083622, 0.2703784704208374, 0.29598286747932434, 0.16994236409664154, -0.09772955626249313, -0.5992170572280884, 0.1980040967464447, 0.07179711014032364, 0.21132764220237732, -0.19970513880252838, 0.14843802154064178, -0.05772734060883522, 0.15039221942424774, -0.49879980087280273, 0.09403540939092636, -0.2488878220319748, 0.05585065856575966, -0.025858374312520027, -0.2675018906593323, 0.04108528420329094, 0.11512313038110733, 0.38288381695747375, 0.2280382513999939, -0.2683301270008087, -0.39224863052368164, 0.1504778265953064, -0.0033633806742727757, -0.0677257552742958, -0.17294274270534515, 0.09423664957284927, -0.34994104504585266, 0.005841399077326059, -0.17464275658130646, -0.04198167100548744, 0.1967770904302597, -0.21875223517417908, -0.06636511534452438, 0.16699405014514923, -0.1383046656847, 0.37314534187316895, 0.27295026183128357, -0.045142266899347305, 0.2277178019285202, -0.11645263433456421, -0.03434590995311737, 0.0009706138516776264, -0.236691415309906, -0.05949454382061958, 0.11853193491697311, -0.08835943043231964, -0.0891042947769165, 0.11343202739953995, -0.03923693299293518, -0.24546824395656586, 0.23893098533153534, 0.2313345968723297, -0.010151243768632412, -0.06626290082931519, 0.22531919181346893, 0.0812278762459755, 0.4449758529663086, 0.04194141924381256, 0.11176101118326187, 0.2919812500476837, -0.2403559684753418, 0.04605797305703163, 0.179222971200943, -0.05426884442567825, -0.26481786370277405, 0.04627041146159172, 0.09450509399175644, 0.19830699265003204, -0.2065439671278, -0.08115793764591217, -0.1085989698767662, -0.03854554519057274, -0.23046064376831055, 0.15232546627521515, 0.21524538099765778, 0.25041645765304565, 0.2778696119785309, -0.10873498767614365, 0.029794853180646896, -0.13446103036403656, 0.01842537708580494, -0.11488001048564911, -0.42936116456985474, 0.033385708928108215, 0.4130026698112488, -0.12066207826137543, 0.29839757084846497, -0.1598459929227829, 0.06651672720909119, -0.21678665280342102, -0.15985321998596191, -0.07673461735248566, 0.17584949731826782, -0.38716837763786316, 0.2033335268497467, -0.01593097858130932, -0.09234447032213211, -0.10963130742311478, 0.11641795933246613, 0.1780271679162979, -0.15864169597625732, 0.4105008542537689, 0.043022848665714264, -0.27610936760902405, 0.14335700869560242, -0.15674154460430145, 0.17874063551425934, 0.03796032816171646, -0.4237707555294037, 0.14590810239315033, -0.09986304491758347, 0.037635043263435364, -0.08390729874372482, 0.24055282771587372, 0.6054585576057434, 0.3458799719810486, -0.09926372766494751, 0.14934000372886658, -0.06068491190671921, -0.06164228171110153, -0.2485647052526474, 0.10737620294094086, 0.25971221923828125, 0.2949657440185547, 0.04770025983452797, 0.2685006856918335, -0.3515852689743042, -0.25104039907455444, 0.0814967080950737, 0.1538906693458557, 0.29190871119499207, -0.3523159325122833, -0.15403208136558533, -0.24628481268882751, -0.06076163798570633, -0.11671048402786255, -0.6105131506919861, -0.028340233489871025, 0.04126118868589401, -0.33117616176605225, 0.1927827149629593, 0.1907413750886917, 0.18520371615886688, -0.02947385422885418, 0.25316089391708374, 0.24993230402469635, -0.04877594858407974, -0.3832659423351288, -0.39066845178604126, -0.12970492243766785, 0.3400775194168091, -0.16803734004497528, 0.149694561958313, -0.20186704397201538, 0.07768039405345917, 0.006037302780896425, -0.4246037006378174, 0.023147335276007652, -0.3622925877571106, -0.0995757132768631, 0.29115161299705505, -0.09273939579725266, 0.1328807771205902, 0.20366117358207703, -0.030431048944592476, 0.33103707432746887, -0.18816028535366058, 0.19742056727409363, -0.16657261550426483, 0.29877275228500366, -0.12471035867929459, 0.055529166013002396, -0.13205911219120026, 0.22260883450508118, 0.2676023542881012, -0.05022522062063217, 0.25129857659339905, -0.2638547420501709, -0.3758505582809448, -0.12486445158720016, -0.2815215587615967, -0.013769245706498623, -0.04884824529290199, 0.2615118622779846, 0.3775305151939392, -0.11617923527956009, -0.14326003193855286, -0.2671668827533722, 0.2563316524028778, -0.19458971917629242, 0.0868254154920578, 0.12148778140544891, 0.16676577925682068, 0.17847129702568054, -0.07655210047960281, 0.1070491224527359, 0.10371777415275574, 0.1384815126657486, 0.11598262935876846, -0.3758721947669983, -0.1951822191476822, 0.26425209641456604, 0.017606884241104126, -0.14342346787452698, 0.13485974073410034, 0.022502213716506958, -0.11410731822252274, 0.000603371998295188, -0.5505527853965759, -0.044036295264959335, 0.12144149094820023, -0.17037443816661835, -0.3122221827507019, 0.12213432788848877, -0.3211984634399414, -0.12375561892986298, 0.06987469643354416, 0.2493343949317932, -0.049753788858652115, -0.31149208545684814, 0.11520324647426605, -0.015808340162038803 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
It seems that I get parsing errors for various fields in my data. For example now I get this: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: https://www.netgalley.com/catalog/book/121872 ```
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
128
Question/problem with dataset labels
[ -0.05179116129875183, -0.21751292049884796, -0.2778059244155884, 0.39635148644447327, 0.18013565242290497, 0.095916748046875, 0.639014482498169, -0.16329225897789001, 0.043602678924798965, 0.1830817312002182, -0.03413020819425583, 0.19652587175369263, 0.03208814188838005, 0.27017244696617126, -0.24914272129535675, -0.04802030324935913, 0.0236810352653265, 0.0577920600771904, -0.06265751272439957, -0.26629331707954407, -0.3142566382884979, -0.16492748260498047, -0.24027857184410095, 0.2200353443622589, -0.33715102076530457, -0.3127879202365875, 0.2183663547039032, -0.08764714747667313, -0.07939231395721436, -0.30890968441963196, -0.018990006297826767, 0.3558143079280853, -0.08595792949199677, 0.3650980591773987, -0.00009506772039458156, -0.2950174808502197, 0.1170642077922821, 0.1602071225643158, -0.2709449231624603, 0.05101911351084709, -0.5606186389923096, -0.03664175793528557, -0.1473913937807083, -0.29139089584350586, 0.09928679466247559, -0.26297813653945923, -0.18750478327274323, -0.2606866955757141, -0.019028063863515854, -0.05523292347788811, 0.4295872151851654, -0.0646858885884285, -0.19726325571537018, -0.07204433530569077, 0.26497724652290344, 0.11390095204114914, -0.03511706367135048, 0.08140736073255539, 0.2221834808588028, 0.09655710309743881, 0.0796545222401619, 0.5501314997673035, 0.11378692090511322, 0.0420924574136734, 0.16238194704055786, 0.06847439706325531, 0.09851545095443726, -0.2697941064834595, 0.25092583894729614, 0.24967598915100098, 0.9304397106170654, -0.20284438133239746, -0.42117011547088623, -0.13567864894866943, -0.01123305968940258, -0.2081427425146103, -0.016119109466671944, 0.09661144763231277, 0.26768121123313904, -0.03383904695510864, -0.16096363961696625, 0.0355990007519722, -0.09825370460748672, 0.03662000223994255, -0.2146671563386917, 0.4087263345718384, -0.181715726852417, 0.16363756358623505, -0.043609369546175, -0.2892742156982422, 0.2763553261756897, -0.1130824089050293, 0.04765958711504936, 0.054455939680337906, 0.07219187915325165, -0.06053496524691582, -0.18300563097000122, 0.1690821498632431, 0.02224176935851574, -0.016762390732765198, -0.12723112106323242, -0.015326603315770626, -0.20004382729530334, 0.08348527550697327, 0.3342582881450653, 0.14225344359874725, 0.44438931345939636, 0.31885045766830444, 0.08727413415908813, -0.2514932453632355, -0.2747633159160614, -0.015871334820985794, -0.1965864896774292, -0.14544284343719482, 0.27759796380996704, -0.06875172257423401, 0.025758730247616768, -0.3966420888900757, -0.3808620274066925, 0.20509864389896393, -0.062227506190538406, -0.22249101102352142, 0.19189099967479706, 0.17748084664344788, 0.060006532818078995, 0.12765759229660034, -0.13420453667640686, 0.0888991728425026, 0.08518675714731216, -0.32523971796035767, -0.36390888690948486, -0.05648023262619972, -0.19885246455669403, -0.16898740828037262, -0.08226040750741959, 0.22393949329853058, 0.15992896258831024, -0.08882266283035278, 0.08136686682701111, -0.08286445587873459, -0.11337850987911224, -0.1564655303955078, -0.006243622861802578, 0.04013219475746155, -0.24592529237270355, 0.2842738926410675, 0.004333839286118746, -0.3394429087638855, -0.07301552593708038, 0.1193431094288826, -0.24562066793441772, 0.24642911553382874, -0.03677533566951752, 0.40180733799934387, 0.1422862708568573, -0.1974281519651413, -0.12469872087240219, 0.07066155225038528, 0.0236221831291914, -0.03424685448408127, 0.08485917001962662, -0.22218142449855804, -0.033804718405008316, -0.11228828132152557, -0.11945696920156479, 0.14098526537418365, -0.5544857382774353, -0.12150400131940842, -0.022586429491639137, -0.12124664336442947, 0.13657709956169128, 0.13191024959087372, -0.04350690916180611, 0.08635202795267105, 0.029607968404889107, 0.13774900138378143, 0.3674216866493225, -0.49529367685317993, -0.4145351052284241, 0.02491864562034607, -0.07653914391994476, -0.30920228362083435, 0.09475627541542053, 0.10315932333469391, 0.12075159698724747, -0.08960136026144028, 0.0038961018435657024, -0.23604625463485718, -0.059542879462242126, -0.10709092020988464, -0.21098124980926514, 0.11849993467330933, 0.18647544085979462, 0.06787849962711334, -0.0631333440542221, 0.2220732718706131, 0.08964487165212631, 0.0053906748071312904, 0.012559744529426098, 0.03157925605773926, 0.0856030285358429, 0.3199947476387024, 0.11948387324810028, -0.03809220343828201, -0.05848177522420883, -0.06569846719503403, -0.356695294380188, -0.039232924580574036, 0.10047843307256699, 0.07753375172615051, 0.222591370344162, -0.12132313847541809, -0.3977915942668915, -0.04976392909884453, -0.0008861148380674422, 0.19673104584217072, 0.2722945213317871, 0.014302595518529415, -0.3099406957626343, -0.18542379140853882, -0.03608047217130661, 0.09277833253145218, -0.11555314809083939, 0.05348748713731766, 0.09221551567316055, 0.018513988703489304, 0.12153587490320206, 0.02198353409767151, -0.009167716838419437, 0.17004048824310303, 0.4012856185436249, 0.32533425092697144, 0.03316761925816536, 0.1049460843205452, -0.01705165021121502, -0.0903715118765831, 0.12388461083173752, 0.23619382083415985, 0.004543138202279806, -0.11608118563890457, 0.1490691751241684, -0.28983810544013977, 0.0647159069776535, -0.03551741689443588, -0.19635511934757233, 0.058805204927921295, -0.20307160913944244, 0.17087870836257935, -0.08717726916074753, -0.09524157643318176, 0.14201019704341888, -0.15825092792510986, -0.02465151622891426, -0.39532342553138733, 0.12217789143323898, -0.053268689662218094, 0.2785292863845825, 0.30014854669570923, -0.2768007814884186, 0.39596810936927795, 0.5502462387084961, -0.04492522403597832, 0.06628098338842392, -0.05838920176029205, -0.19084762036800385, 0.24931028485298157, 0.2169860452413559, 0.3511831760406494, 0.17801159620285034, 0.4204551875591278, 0.07060454040765762, -0.08676600456237793, -0.21720825135707855, -0.24045275151729584, -0.020342081785202026, 0.0038647500332444906, -0.0020102711860090494, -0.05364600196480751, -0.017045585438609123, -0.18909740447998047, 0.047229163348674774, -0.17452354729175568, 0.11050615459680557, 0.02393314428627491, -0.33424636721611023, 0.08098221570253372, -0.354787677526474, -0.3686877191066742, -0.20167705416679382, -0.2749284505844116, -0.2785089612007141, -0.437177836894989, 0.12367109209299088, 0.04824649915099144, -0.2050635814666748, 0.3375057280063629, 0.03559768572449684, 0.21312756836414337, -0.11554348468780518, 0.2912864685058594, 0.020036375150084496, -0.4666030704975128, -0.1717081218957901, 0.2661103308200836, -0.12178754061460495, 0.17772074043750763, 0.37325599789619446, -0.2697919011116028, 0.12662479281425476, -0.08133718371391296, -0.09352041780948639, 0.1742730438709259, 0.019178543239831924, 0.07313569635152817, -0.11210460215806961, 0.17789241671562195, -0.24276305735111237, 0.02790970914065838, 0.21959549188613892, 0.14074066281318665, 0.011768011376261711, -0.26862919330596924, 0.07263700664043427, -0.1478596180677414, -0.04917091876268387, -0.26474013924598694, -0.2983293831348419, -0.17055603861808777, 0.14768899977207184, -0.0024459112901240587, 0.10623189806938171, 0.22800029814243317, -0.15874989330768585, -0.07294777035713196, 0.05687721446156502, 0.1522216796875, -0.41331860423088074, -0.35867035388946533, 0.22566749155521393, -0.14983732998371124, -0.15883488953113556, -0.005820923950523138, 0.10525504499673843, 0.1827724426984787, 0.07640449702739716, -0.14073266088962555, -0.12297163158655167, 0.028202852234244347, -0.02585121989250183, 0.18582391738891602, 0.30632156133651733, 0.026276206597685814, 0.05321035906672478, -0.25855258107185364, -0.3281501531600952, -0.22407299280166626, 0.3522090017795563, -0.15288060903549194, 0.16389794647693634, -0.062424175441265106, -0.007893539033830166, -0.38382676243782043, 0.3719574511051178, 0.004053550772368908, -0.26540154218673706, 0.04685761407017708, -0.04099409282207489, 0.26804953813552856, 0.13586625456809998, -0.18040421605110168, 0.12299054116010666, 0.23077602684497833, 0.17651021480560303, 0.19369877874851227, -0.0015948496293276548, -0.04662617668509483, 0.0961797684431076, 0.29274982213974, -0.3982168138027191, -0.040570423007011414, -0.13547387719154358, -0.015856634825468063, -0.10448110103607178, 0.17407086491584778, -0.04454139620065689, -0.16881053149700165, -0.10596457868814468, -0.19520124793052673, -0.1300077885389328, 0.000224150629946962, -0.1936303973197937, -0.5790835022926331, 0.03635292500257492, 0.06546203047037125, 0.15552441775798798, 0.05905808508396149, 0.13393570482730865, -0.22252978384494781, 0.15795117616653442, 0.07685692608356476, 0.33981627225875854, 0.6001866459846497, -0.34886160492897034, 0.2287294566631317, 0.11988172680139542, 0.20947733521461487, -0.18323493003845215, 0.04948360100388527, -0.15454068779945374, 0.07577415555715561, 0.07116053253412247, 0.09391935169696808, -0.20303423702716827, -0.06590282171964645, 0.17124365270137787, 0.12287583202123642, -0.167879119515419, -0.12901851534843445, -0.016840249300003052, -0.003003204707056284, -0.024050092324614525, 0.018821831792593002, 0.11355970054864883, 0.05314347520470619, -0.09251243621110916, -0.01858636923134327, -0.026905888691544533, -0.1011350154876709, 0.1421116590499878, 0.17487996816635132, 0.3000011444091797, 0.15732166171073914, 0.031748998910188675, 0.2631475627422333, 0.41016387939453125, 0.44781699776649475, 0.5231934785842896, -0.40367060899734497, -0.36146965622901917, 0.11573687940835953, -0.29326382279396057, 0.37816566228866577, 0.2151259332895279, 0.21761631965637207, 0.05495762825012207, -0.02589910849928856, 0.1699206829071045, -0.26869362592697144, 0.1604357808828354, 0.058397918939590454, 0.16323691606521606, -0.36630475521087646, -0.4160359501838684, 0.43357545137405396, 0.08796833455562592, -0.26360559463500977, 0.3521565794944763, 0.2691616714000702, -0.26815861463546753, 0.0633142814040184, 0.05196890980005264, 1.0433212518692017, 0.009994203224778175, -0.1919669657945633, -0.19552181661128998, -0.3553740084171295, 0.5523369312286377, -0.10171391814947128, -0.09534862637519836, -0.4379242956638336, -0.39676252007484436, -0.02557428739964962, -0.10829208046197891, -0.041106484830379486, 0.601945698261261, -0.034250613301992416, 0.25410765409469604, -0.18390598893165588, 0.14889289438724518, 0.018081167712807655, 0.05152498185634613, 0.2613600194454193, -0.17134897410869598, -0.18050889670848846, 0.27752354741096497, -0.04319397732615471, -0.035875242203474045, -0.2183718979358673, 0.15897490084171295, -0.22247083485126495, -0.017955375835299492, -0.1481138914823532, -0.044473931193351746, -0.13862141966819763, -0.04848013073205948, -0.04104931280016899, -0.17121389508247375, -0.12541358172893524, 0.1407732516527176, 0.5230369567871094, 0.0774671733379364, -0.05006040260195732, 0.19409672915935516, 0.18444840610027313, 0.2618159055709839, -0.01612316444516182, 0.12346280366182327, 0.2575564980506897, 0.04524911195039749, -0.27643442153930664, -0.12432119250297546, 0.1304226666688919, 0.005346499849110842, -0.42738667130470276, -0.009280295111238956, -0.030253207311034203, -0.3861844837665558, 0.1360757052898407, -0.11021580547094345, 0.3035733997821808, -0.13033427298069, 0.31747594475746155, 0.14737878739833832, 0.13700172305107117, 0.21221855282783508, 0.33094191551208496, -0.13054552674293518, -0.2820080816745758, 0.24151992797851562, -0.00453548226505518, 0.19290383160114288, 0.0735805407166481, -0.11744751036167145, -0.4047917127609253, -0.34503665566444397, 0.17751944065093994, 0.2344295233488083, -0.4004965126514435, 0.03291149064898491, 0.026807675138115883, -0.24790377914905548, -0.11902915686368942, 0.13538327813148499, 0.0261632539331913, 0.22538986802101135, -0.057174429297447205, -0.27485400438308716, -0.33874598145484924, 0.2098543643951416, -0.15309415757656097, 0.16516603529453278, 0.03275354579091072, 0.025275198742747307, -0.06666935235261917, 0.13039523363113403, -0.5222278833389282, -0.16673260927200317, -0.0981978327035904, 0.1981472373008728, 0.1798616498708725, 0.1627746969461441, -0.009137184359133244, -0.18658612668514252, 0.3036806881427765, -0.02620632015168667, -0.0024828012101352215, -0.3995093107223511, -0.17961886525154114, 0.03926074132323265, -0.007506123743951321, -0.20701058208942413, -0.19549153745174408, -0.1536857634782791, 0.05507127568125725, -0.08210001140832901, -0.037652626633644104, 0.2857872545719147, 0.2225208431482315, 0.2743475139141083, -0.08622674643993378, 0.2188045233488083, -0.17290106415748596, 0.125210240483284, 0.21226735413074493, 0.11292625963687897, 0.19122180342674255, -0.09991607815027237, 0.03914066031575203, 0.024580974131822586, -0.0626072883605957, -0.06298084557056427, 0.05659971386194229, -0.13498327136039734, 0.026237918063998222, -0.37771472334861755, 0.3072396218776703, 0.4688585102558136, 0.37331491708755493, 0.08490081876516342, -0.16900604963302612, -0.2942098081111908, 0.3519141376018524, 0.44367823004722595, -0.2712094187736511, -0.2997954487800598, 0.3400833308696747, 0.031671687960624695, 0.08025261014699936, 0.29780980944633484, 0.12069772183895111, 0.01687762141227722, -0.06601899862289429, -0.0616539902985096, 0.43832919001579285, -0.2243587076663971, 0.09864912927150726, 0.3763611912727356, -0.11791075021028519, 0.10206827521324158, 0.4660079777240753, 0.45983049273490906, -0.12903739511966705, 0.42913293838500977, 0.28102606534957886, 0.32289186120033264, 0.18441079556941986, 0.06542183458805084, -0.06175783649086952, -0.06833362579345703, 0.10035821050405502, 0.37581777572631836, 0.026686957105994225, -0.00188975699711591, -0.0424223430454731, -0.11278416961431503, -0.12941689789295197, -0.23608361184597015, 0.1606740802526474, 0.10093159228563309, -0.1693972498178482, -0.18161018192768097, -0.2603725492954254, -0.22802020609378815, -0.0006114232819527388, -0.11559728533029556, -0.16853436827659607, -0.21658971905708313, 0.21448221802711487, -0.3471333384513855, 0.043184272944927216, -0.3171151578426361, -0.1418994665145874, -0.01054866798222065, 0.2559111714363098, -0.04842853173613548, 0.1823415756225586, 0.0019288506591692567, 0.11732286214828491, 0.5018293857574463, 0.25338220596313477, 0.07672417163848877, 0.015631191432476044, 0.2462325245141983, -0.3414164185523987, -0.06262221932411194, -0.2673744559288025, -0.03052646853029728, 0.08706437051296234, 0.16308261454105377, -0.054288800805807114, 0.2762838304042816, 0.3385392427444458, -0.27531516551971436, 0.40377989411354065, 0.30573585629463196, 0.06839042901992798, -0.05608771741390228, 0.004726183135062456, -0.08908107876777649, -0.18973879516124725, -0.05137081444263458, -0.26389333605766296, -0.16036014258861542, -0.08625151216983795, 0.36119380593299866, -0.11495213955640793, 0.18315114080905914, -0.07910922169685364, 0.1873672753572464, 0.12706348299980164, 0.22992849349975586, 0.14278647303581238, 0.1625109761953354, -0.13000495731830597, 0.04399394616484642, -0.5106804966926575, 0.09350019693374634, -0.0252714641392231, -0.19106468558311462, 0.06404909491539001, -0.11830132454633713, 0.16426515579223633, 0.02876446396112442, 0.342704176902771, -0.018047336488962173, -0.024630703032016754, -0.09247472882270813, -0.4382067322731018, -0.15894126892089844, 0.06995408236980438, 0.14757691323757172, 0.1809769719839096, -0.014562174677848816, 0.0536261610686779, 0.02464744821190834, 0.20296044647693634, -0.12361147254705429, 0.24721840023994446, 0.019863666966557503, 0.12321437895298004, 0.23416247963905334, -0.16943620145320892, 0.6944535970687866, -0.02678779326379299, 0.036818042397499084, 0.018638744950294495, -0.296390175819397, -0.21624132990837097, 0.3615373969078064, 0.11817561089992523, 0.13295204937458038, -0.0913887545466423, 0.01750791259109974, -0.04583068564534187, -0.20143215358257294, -0.05294140800833702, 0.37011176347732544, -0.1438450813293457, 0.08153417706489563, 0.07610755413770676, -0.22473828494548798, 0.08867228776216507, 0.018070805817842484, 0.054790396243333817, 0.23715540766716003, 0.01923763006925583, -0.2624976634979248, 0.5099202990531921, 0.0213446207344532, -0.173807755112648, 0.1351577639579773, 0.21183739602565765, 0.3079356253147125, -0.21073545515537262, -0.34720534086227417, -0.041816506534814835, 0.47881537675857544, -0.2127903699874878, -0.2042180597782135, -0.08623277395963669, -0.14241501688957214, -0.029464326798915863, -0.03561779111623764, 0.28868526220321655, 0.11922549456357956, -0.3408139944076538, 0.011251868680119514, 0.01897900551557541 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Not sure if this helps, this is how I load my files (as in the sample scripts on transformers): ``` if data_args.train_file.endswith(".csv"): # Loading a dataset from local csv files datasets = load_dataset("csv", data_files=data_files) ```
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
35
Question/problem with dataset labels
[ -0.05179116129875183, -0.21751292049884796, -0.2778059244155884, 0.39635148644447327, 0.18013565242290497, 0.095916748046875, 0.639014482498169, -0.16329225897789001, 0.043602678924798965, 0.1830817312002182, -0.03413020819425583, 0.19652587175369263, 0.03208814188838005, 0.27017244696617126, -0.24914272129535675, -0.04802030324935913, 0.0236810352653265, 0.0577920600771904, -0.06265751272439957, -0.26629331707954407, -0.3142566382884979, -0.16492748260498047, -0.24027857184410095, 0.2200353443622589, -0.33715102076530457, -0.3127879202365875, 0.2183663547039032, -0.08764714747667313, -0.07939231395721436, -0.30890968441963196, -0.018990006297826767, 0.3558143079280853, -0.08595792949199677, 0.3650980591773987, -0.00009506772039458156, -0.2950174808502197, 0.1170642077922821, 0.1602071225643158, -0.2709449231624603, 0.05101911351084709, -0.5606186389923096, -0.03664175793528557, -0.1473913937807083, -0.29139089584350586, 0.09928679466247559, -0.26297813653945923, -0.18750478327274323, -0.2606866955757141, -0.019028063863515854, -0.05523292347788811, 0.4295872151851654, -0.0646858885884285, -0.19726325571537018, -0.07204433530569077, 0.26497724652290344, 0.11390095204114914, -0.03511706367135048, 0.08140736073255539, 0.2221834808588028, 0.09655710309743881, 0.0796545222401619, 0.5501314997673035, 0.11378692090511322, 0.0420924574136734, 0.16238194704055786, 0.06847439706325531, 0.09851545095443726, -0.2697941064834595, 0.25092583894729614, 0.24967598915100098, 0.9304397106170654, -0.20284438133239746, -0.42117011547088623, -0.13567864894866943, -0.01123305968940258, -0.2081427425146103, -0.016119109466671944, 0.09661144763231277, 0.26768121123313904, -0.03383904695510864, -0.16096363961696625, 0.0355990007519722, -0.09825370460748672, 0.03662000223994255, -0.2146671563386917, 0.4087263345718384, -0.181715726852417, 0.16363756358623505, -0.043609369546175, -0.2892742156982422, 0.2763553261756897, -0.1130824089050293, 0.04765958711504936, 0.054455939680337906, 0.07219187915325165, -0.06053496524691582, -0.18300563097000122, 0.1690821498632431, 0.02224176935851574, -0.016762390732765198, -0.12723112106323242, -0.015326603315770626, -0.20004382729530334, 0.08348527550697327, 0.3342582881450653, 0.14225344359874725, 0.44438931345939636, 0.31885045766830444, 0.08727413415908813, -0.2514932453632355, -0.2747633159160614, -0.015871334820985794, -0.1965864896774292, -0.14544284343719482, 0.27759796380996704, -0.06875172257423401, 0.025758730247616768, -0.3966420888900757, -0.3808620274066925, 0.20509864389896393, -0.062227506190538406, -0.22249101102352142, 0.19189099967479706, 0.17748084664344788, 0.060006532818078995, 0.12765759229660034, -0.13420453667640686, 0.0888991728425026, 0.08518675714731216, -0.32523971796035767, -0.36390888690948486, -0.05648023262619972, -0.19885246455669403, -0.16898740828037262, -0.08226040750741959, 0.22393949329853058, 0.15992896258831024, -0.08882266283035278, 0.08136686682701111, -0.08286445587873459, -0.11337850987911224, -0.1564655303955078, -0.006243622861802578, 0.04013219475746155, -0.24592529237270355, 0.2842738926410675, 0.004333839286118746, -0.3394429087638855, -0.07301552593708038, 0.1193431094288826, -0.24562066793441772, 0.24642911553382874, -0.03677533566951752, 0.40180733799934387, 0.1422862708568573, -0.1974281519651413, -0.12469872087240219, 0.07066155225038528, 0.0236221831291914, -0.03424685448408127, 0.08485917001962662, -0.22218142449855804, -0.033804718405008316, -0.11228828132152557, -0.11945696920156479, 0.14098526537418365, -0.5544857382774353, -0.12150400131940842, -0.022586429491639137, -0.12124664336442947, 0.13657709956169128, 0.13191024959087372, -0.04350690916180611, 0.08635202795267105, 0.029607968404889107, 0.13774900138378143, 0.3674216866493225, -0.49529367685317993, -0.4145351052284241, 0.02491864562034607, -0.07653914391994476, -0.30920228362083435, 0.09475627541542053, 0.10315932333469391, 0.12075159698724747, -0.08960136026144028, 0.0038961018435657024, -0.23604625463485718, -0.059542879462242126, -0.10709092020988464, -0.21098124980926514, 0.11849993467330933, 0.18647544085979462, 0.06787849962711334, -0.0631333440542221, 0.2220732718706131, 0.08964487165212631, 0.0053906748071312904, 0.012559744529426098, 0.03157925605773926, 0.0856030285358429, 0.3199947476387024, 0.11948387324810028, -0.03809220343828201, -0.05848177522420883, -0.06569846719503403, -0.356695294380188, -0.039232924580574036, 0.10047843307256699, 0.07753375172615051, 0.222591370344162, -0.12132313847541809, -0.3977915942668915, -0.04976392909884453, -0.0008861148380674422, 0.19673104584217072, 0.2722945213317871, 0.014302595518529415, -0.3099406957626343, -0.18542379140853882, -0.03608047217130661, 0.09277833253145218, -0.11555314809083939, 0.05348748713731766, 0.09221551567316055, 0.018513988703489304, 0.12153587490320206, 0.02198353409767151, -0.009167716838419437, 0.17004048824310303, 0.4012856185436249, 0.32533425092697144, 0.03316761925816536, 0.1049460843205452, -0.01705165021121502, -0.0903715118765831, 0.12388461083173752, 0.23619382083415985, 0.004543138202279806, -0.11608118563890457, 0.1490691751241684, -0.28983810544013977, 0.0647159069776535, -0.03551741689443588, -0.19635511934757233, 0.058805204927921295, -0.20307160913944244, 0.17087870836257935, -0.08717726916074753, -0.09524157643318176, 0.14201019704341888, -0.15825092792510986, -0.02465151622891426, -0.39532342553138733, 0.12217789143323898, -0.053268689662218094, 0.2785292863845825, 0.30014854669570923, -0.2768007814884186, 0.39596810936927795, 0.5502462387084961, -0.04492522403597832, 0.06628098338842392, -0.05838920176029205, -0.19084762036800385, 0.24931028485298157, 0.2169860452413559, 0.3511831760406494, 0.17801159620285034, 0.4204551875591278, 0.07060454040765762, -0.08676600456237793, -0.21720825135707855, -0.24045275151729584, -0.020342081785202026, 0.0038647500332444906, -0.0020102711860090494, -0.05364600196480751, -0.017045585438609123, -0.18909740447998047, 0.047229163348674774, -0.17452354729175568, 0.11050615459680557, 0.02393314428627491, -0.33424636721611023, 0.08098221570253372, -0.354787677526474, -0.3686877191066742, -0.20167705416679382, -0.2749284505844116, -0.2785089612007141, -0.437177836894989, 0.12367109209299088, 0.04824649915099144, -0.2050635814666748, 0.3375057280063629, 0.03559768572449684, 0.21312756836414337, -0.11554348468780518, 0.2912864685058594, 0.020036375150084496, -0.4666030704975128, -0.1717081218957901, 0.2661103308200836, -0.12178754061460495, 0.17772074043750763, 0.37325599789619446, -0.2697919011116028, 0.12662479281425476, -0.08133718371391296, -0.09352041780948639, 0.1742730438709259, 0.019178543239831924, 0.07313569635152817, -0.11210460215806961, 0.17789241671562195, -0.24276305735111237, 0.02790970914065838, 0.21959549188613892, 0.14074066281318665, 0.011768011376261711, -0.26862919330596924, 0.07263700664043427, -0.1478596180677414, -0.04917091876268387, -0.26474013924598694, -0.2983293831348419, -0.17055603861808777, 0.14768899977207184, -0.0024459112901240587, 0.10623189806938171, 0.22800029814243317, -0.15874989330768585, -0.07294777035713196, 0.05687721446156502, 0.1522216796875, -0.41331860423088074, -0.35867035388946533, 0.22566749155521393, -0.14983732998371124, -0.15883488953113556, -0.005820923950523138, 0.10525504499673843, 0.1827724426984787, 0.07640449702739716, -0.14073266088962555, -0.12297163158655167, 0.028202852234244347, -0.02585121989250183, 0.18582391738891602, 0.30632156133651733, 0.026276206597685814, 0.05321035906672478, -0.25855258107185364, -0.3281501531600952, -0.22407299280166626, 0.3522090017795563, -0.15288060903549194, 0.16389794647693634, -0.062424175441265106, -0.007893539033830166, -0.38382676243782043, 0.3719574511051178, 0.004053550772368908, -0.26540154218673706, 0.04685761407017708, -0.04099409282207489, 0.26804953813552856, 0.13586625456809998, -0.18040421605110168, 0.12299054116010666, 0.23077602684497833, 0.17651021480560303, 0.19369877874851227, -0.0015948496293276548, -0.04662617668509483, 0.0961797684431076, 0.29274982213974, -0.3982168138027191, -0.040570423007011414, -0.13547387719154358, -0.015856634825468063, -0.10448110103607178, 0.17407086491584778, -0.04454139620065689, -0.16881053149700165, -0.10596457868814468, -0.19520124793052673, -0.1300077885389328, 0.000224150629946962, -0.1936303973197937, -0.5790835022926331, 0.03635292500257492, 0.06546203047037125, 0.15552441775798798, 0.05905808508396149, 0.13393570482730865, -0.22252978384494781, 0.15795117616653442, 0.07685692608356476, 0.33981627225875854, 0.6001866459846497, -0.34886160492897034, 0.2287294566631317, 0.11988172680139542, 0.20947733521461487, -0.18323493003845215, 0.04948360100388527, -0.15454068779945374, 0.07577415555715561, 0.07116053253412247, 0.09391935169696808, -0.20303423702716827, -0.06590282171964645, 0.17124365270137787, 0.12287583202123642, -0.167879119515419, -0.12901851534843445, -0.016840249300003052, -0.003003204707056284, -0.024050092324614525, 0.018821831792593002, 0.11355970054864883, 0.05314347520470619, -0.09251243621110916, -0.01858636923134327, -0.026905888691544533, -0.1011350154876709, 0.1421116590499878, 0.17487996816635132, 0.3000011444091797, 0.15732166171073914, 0.031748998910188675, 0.2631475627422333, 0.41016387939453125, 0.44781699776649475, 0.5231934785842896, -0.40367060899734497, -0.36146965622901917, 0.11573687940835953, -0.29326382279396057, 0.37816566228866577, 0.2151259332895279, 0.21761631965637207, 0.05495762825012207, -0.02589910849928856, 0.1699206829071045, -0.26869362592697144, 0.1604357808828354, 0.058397918939590454, 0.16323691606521606, -0.36630475521087646, -0.4160359501838684, 0.43357545137405396, 0.08796833455562592, -0.26360559463500977, 0.3521565794944763, 0.2691616714000702, -0.26815861463546753, 0.0633142814040184, 0.05196890980005264, 1.0433212518692017, 0.009994203224778175, -0.1919669657945633, -0.19552181661128998, -0.3553740084171295, 0.5523369312286377, -0.10171391814947128, -0.09534862637519836, -0.4379242956638336, -0.39676252007484436, -0.02557428739964962, -0.10829208046197891, -0.041106484830379486, 0.601945698261261, -0.034250613301992416, 0.25410765409469604, -0.18390598893165588, 0.14889289438724518, 0.018081167712807655, 0.05152498185634613, 0.2613600194454193, -0.17134897410869598, -0.18050889670848846, 0.27752354741096497, -0.04319397732615471, -0.035875242203474045, -0.2183718979358673, 0.15897490084171295, -0.22247083485126495, -0.017955375835299492, -0.1481138914823532, -0.044473931193351746, -0.13862141966819763, -0.04848013073205948, -0.04104931280016899, -0.17121389508247375, -0.12541358172893524, 0.1407732516527176, 0.5230369567871094, 0.0774671733379364, -0.05006040260195732, 0.19409672915935516, 0.18444840610027313, 0.2618159055709839, -0.01612316444516182, 0.12346280366182327, 0.2575564980506897, 0.04524911195039749, -0.27643442153930664, -0.12432119250297546, 0.1304226666688919, 0.005346499849110842, -0.42738667130470276, -0.009280295111238956, -0.030253207311034203, -0.3861844837665558, 0.1360757052898407, -0.11021580547094345, 0.3035733997821808, -0.13033427298069, 0.31747594475746155, 0.14737878739833832, 0.13700172305107117, 0.21221855282783508, 0.33094191551208496, -0.13054552674293518, -0.2820080816745758, 0.24151992797851562, -0.00453548226505518, 0.19290383160114288, 0.0735805407166481, -0.11744751036167145, -0.4047917127609253, -0.34503665566444397, 0.17751944065093994, 0.2344295233488083, -0.4004965126514435, 0.03291149064898491, 0.026807675138115883, -0.24790377914905548, -0.11902915686368942, 0.13538327813148499, 0.0261632539331913, 0.22538986802101135, -0.057174429297447205, -0.27485400438308716, -0.33874598145484924, 0.2098543643951416, -0.15309415757656097, 0.16516603529453278, 0.03275354579091072, 0.025275198742747307, -0.06666935235261917, 0.13039523363113403, -0.5222278833389282, -0.16673260927200317, -0.0981978327035904, 0.1981472373008728, 0.1798616498708725, 0.1627746969461441, -0.009137184359133244, -0.18658612668514252, 0.3036806881427765, -0.02620632015168667, -0.0024828012101352215, -0.3995093107223511, -0.17961886525154114, 0.03926074132323265, -0.007506123743951321, -0.20701058208942413, -0.19549153745174408, -0.1536857634782791, 0.05507127568125725, -0.08210001140832901, -0.037652626633644104, 0.2857872545719147, 0.2225208431482315, 0.2743475139141083, -0.08622674643993378, 0.2188045233488083, -0.17290106415748596, 0.125210240483284, 0.21226735413074493, 0.11292625963687897, 0.19122180342674255, -0.09991607815027237, 0.03914066031575203, 0.024580974131822586, -0.0626072883605957, -0.06298084557056427, 0.05659971386194229, -0.13498327136039734, 0.026237918063998222, -0.37771472334861755, 0.3072396218776703, 0.4688585102558136, 0.37331491708755493, 0.08490081876516342, -0.16900604963302612, -0.2942098081111908, 0.3519141376018524, 0.44367823004722595, -0.2712094187736511, -0.2997954487800598, 0.3400833308696747, 0.031671687960624695, 0.08025261014699936, 0.29780980944633484, 0.12069772183895111, 0.01687762141227722, -0.06601899862289429, -0.0616539902985096, 0.43832919001579285, -0.2243587076663971, 0.09864912927150726, 0.3763611912727356, -0.11791075021028519, 0.10206827521324158, 0.4660079777240753, 0.45983049273490906, -0.12903739511966705, 0.42913293838500977, 0.28102606534957886, 0.32289186120033264, 0.18441079556941986, 0.06542183458805084, -0.06175783649086952, -0.06833362579345703, 0.10035821050405502, 0.37581777572631836, 0.026686957105994225, -0.00188975699711591, -0.0424223430454731, -0.11278416961431503, -0.12941689789295197, -0.23608361184597015, 0.1606740802526474, 0.10093159228563309, -0.1693972498178482, -0.18161018192768097, -0.2603725492954254, -0.22802020609378815, -0.0006114232819527388, -0.11559728533029556, -0.16853436827659607, -0.21658971905708313, 0.21448221802711487, -0.3471333384513855, 0.043184272944927216, -0.3171151578426361, -0.1418994665145874, -0.01054866798222065, 0.2559111714363098, -0.04842853173613548, 0.1823415756225586, 0.0019288506591692567, 0.11732286214828491, 0.5018293857574463, 0.25338220596313477, 0.07672417163848877, 0.015631191432476044, 0.2462325245141983, -0.3414164185523987, -0.06262221932411194, -0.2673744559288025, -0.03052646853029728, 0.08706437051296234, 0.16308261454105377, -0.054288800805807114, 0.2762838304042816, 0.3385392427444458, -0.27531516551971436, 0.40377989411354065, 0.30573585629463196, 0.06839042901992798, -0.05608771741390228, 0.004726183135062456, -0.08908107876777649, -0.18973879516124725, -0.05137081444263458, -0.26389333605766296, -0.16036014258861542, -0.08625151216983795, 0.36119380593299866, -0.11495213955640793, 0.18315114080905914, -0.07910922169685364, 0.1873672753572464, 0.12706348299980164, 0.22992849349975586, 0.14278647303581238, 0.1625109761953354, -0.13000495731830597, 0.04399394616484642, -0.5106804966926575, 0.09350019693374634, -0.0252714641392231, -0.19106468558311462, 0.06404909491539001, -0.11830132454633713, 0.16426515579223633, 0.02876446396112442, 0.342704176902771, -0.018047336488962173, -0.024630703032016754, -0.09247472882270813, -0.4382067322731018, -0.15894126892089844, 0.06995408236980438, 0.14757691323757172, 0.1809769719839096, -0.014562174677848816, 0.0536261610686779, 0.02464744821190834, 0.20296044647693634, -0.12361147254705429, 0.24721840023994446, 0.019863666966557503, 0.12321437895298004, 0.23416247963905334, -0.16943620145320892, 0.6944535970687866, -0.02678779326379299, 0.036818042397499084, 0.018638744950294495, -0.296390175819397, -0.21624132990837097, 0.3615373969078064, 0.11817561089992523, 0.13295204937458038, -0.0913887545466423, 0.01750791259109974, -0.04583068564534187, -0.20143215358257294, -0.05294140800833702, 0.37011176347732544, -0.1438450813293457, 0.08153417706489563, 0.07610755413770676, -0.22473828494548798, 0.08867228776216507, 0.018070805817842484, 0.054790396243333817, 0.23715540766716003, 0.01923763006925583, -0.2624976634979248, 0.5099202990531921, 0.0213446207344532, -0.173807755112648, 0.1351577639579773, 0.21183739602565765, 0.3079356253147125, -0.21073545515537262, -0.34720534086227417, -0.041816506534814835, 0.47881537675857544, -0.2127903699874878, -0.2042180597782135, -0.08623277395963669, -0.14241501688957214, -0.029464326798915863, -0.03561779111623764, 0.28868526220321655, 0.11922549456357956, -0.3408139944076538, 0.011251868680119514, 0.01897900551557541 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Since this worked out of the box in a few examples before, I wonder if it's some quoting issue or something else.
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
22
Question/problem with dataset labels
[ -0.05179116129875183, -0.21751292049884796, -0.2778059244155884, 0.39635148644447327, 0.18013565242290497, 0.095916748046875, 0.639014482498169, -0.16329225897789001, 0.043602678924798965, 0.1830817312002182, -0.03413020819425583, 0.19652587175369263, 0.03208814188838005, 0.27017244696617126, -0.24914272129535675, -0.04802030324935913, 0.0236810352653265, 0.0577920600771904, -0.06265751272439957, -0.26629331707954407, -0.3142566382884979, -0.16492748260498047, -0.24027857184410095, 0.2200353443622589, -0.33715102076530457, -0.3127879202365875, 0.2183663547039032, -0.08764714747667313, -0.07939231395721436, -0.30890968441963196, -0.018990006297826767, 0.3558143079280853, -0.08595792949199677, 0.3650980591773987, -0.00009506772039458156, -0.2950174808502197, 0.1170642077922821, 0.1602071225643158, -0.2709449231624603, 0.05101911351084709, -0.5606186389923096, -0.03664175793528557, -0.1473913937807083, -0.29139089584350586, 0.09928679466247559, -0.26297813653945923, -0.18750478327274323, -0.2606866955757141, -0.019028063863515854, -0.05523292347788811, 0.4295872151851654, -0.0646858885884285, -0.19726325571537018, -0.07204433530569077, 0.26497724652290344, 0.11390095204114914, -0.03511706367135048, 0.08140736073255539, 0.2221834808588028, 0.09655710309743881, 0.0796545222401619, 0.5501314997673035, 0.11378692090511322, 0.0420924574136734, 0.16238194704055786, 0.06847439706325531, 0.09851545095443726, -0.2697941064834595, 0.25092583894729614, 0.24967598915100098, 0.9304397106170654, -0.20284438133239746, -0.42117011547088623, -0.13567864894866943, -0.01123305968940258, -0.2081427425146103, -0.016119109466671944, 0.09661144763231277, 0.26768121123313904, -0.03383904695510864, -0.16096363961696625, 0.0355990007519722, -0.09825370460748672, 0.03662000223994255, -0.2146671563386917, 0.4087263345718384, -0.181715726852417, 0.16363756358623505, -0.043609369546175, -0.2892742156982422, 0.2763553261756897, -0.1130824089050293, 0.04765958711504936, 0.054455939680337906, 0.07219187915325165, -0.06053496524691582, -0.18300563097000122, 0.1690821498632431, 0.02224176935851574, -0.016762390732765198, -0.12723112106323242, -0.015326603315770626, -0.20004382729530334, 0.08348527550697327, 0.3342582881450653, 0.14225344359874725, 0.44438931345939636, 0.31885045766830444, 0.08727413415908813, -0.2514932453632355, -0.2747633159160614, -0.015871334820985794, -0.1965864896774292, -0.14544284343719482, 0.27759796380996704, -0.06875172257423401, 0.025758730247616768, -0.3966420888900757, -0.3808620274066925, 0.20509864389896393, -0.062227506190538406, -0.22249101102352142, 0.19189099967479706, 0.17748084664344788, 0.060006532818078995, 0.12765759229660034, -0.13420453667640686, 0.0888991728425026, 0.08518675714731216, -0.32523971796035767, -0.36390888690948486, -0.05648023262619972, -0.19885246455669403, -0.16898740828037262, -0.08226040750741959, 0.22393949329853058, 0.15992896258831024, -0.08882266283035278, 0.08136686682701111, -0.08286445587873459, -0.11337850987911224, -0.1564655303955078, -0.006243622861802578, 0.04013219475746155, -0.24592529237270355, 0.2842738926410675, 0.004333839286118746, -0.3394429087638855, -0.07301552593708038, 0.1193431094288826, -0.24562066793441772, 0.24642911553382874, -0.03677533566951752, 0.40180733799934387, 0.1422862708568573, -0.1974281519651413, -0.12469872087240219, 0.07066155225038528, 0.0236221831291914, -0.03424685448408127, 0.08485917001962662, -0.22218142449855804, -0.033804718405008316, -0.11228828132152557, -0.11945696920156479, 0.14098526537418365, -0.5544857382774353, -0.12150400131940842, -0.022586429491639137, -0.12124664336442947, 0.13657709956169128, 0.13191024959087372, -0.04350690916180611, 0.08635202795267105, 0.029607968404889107, 0.13774900138378143, 0.3674216866493225, -0.49529367685317993, -0.4145351052284241, 0.02491864562034607, -0.07653914391994476, -0.30920228362083435, 0.09475627541542053, 0.10315932333469391, 0.12075159698724747, -0.08960136026144028, 0.0038961018435657024, -0.23604625463485718, -0.059542879462242126, -0.10709092020988464, -0.21098124980926514, 0.11849993467330933, 0.18647544085979462, 0.06787849962711334, -0.0631333440542221, 0.2220732718706131, 0.08964487165212631, 0.0053906748071312904, 0.012559744529426098, 0.03157925605773926, 0.0856030285358429, 0.3199947476387024, 0.11948387324810028, -0.03809220343828201, -0.05848177522420883, -0.06569846719503403, -0.356695294380188, -0.039232924580574036, 0.10047843307256699, 0.07753375172615051, 0.222591370344162, -0.12132313847541809, -0.3977915942668915, -0.04976392909884453, -0.0008861148380674422, 0.19673104584217072, 0.2722945213317871, 0.014302595518529415, -0.3099406957626343, -0.18542379140853882, -0.03608047217130661, 0.09277833253145218, -0.11555314809083939, 0.05348748713731766, 0.09221551567316055, 0.018513988703489304, 0.12153587490320206, 0.02198353409767151, -0.009167716838419437, 0.17004048824310303, 0.4012856185436249, 0.32533425092697144, 0.03316761925816536, 0.1049460843205452, -0.01705165021121502, -0.0903715118765831, 0.12388461083173752, 0.23619382083415985, 0.004543138202279806, -0.11608118563890457, 0.1490691751241684, -0.28983810544013977, 0.0647159069776535, -0.03551741689443588, -0.19635511934757233, 0.058805204927921295, -0.20307160913944244, 0.17087870836257935, -0.08717726916074753, -0.09524157643318176, 0.14201019704341888, -0.15825092792510986, -0.02465151622891426, -0.39532342553138733, 0.12217789143323898, -0.053268689662218094, 0.2785292863845825, 0.30014854669570923, -0.2768007814884186, 0.39596810936927795, 0.5502462387084961, -0.04492522403597832, 0.06628098338842392, -0.05838920176029205, -0.19084762036800385, 0.24931028485298157, 0.2169860452413559, 0.3511831760406494, 0.17801159620285034, 0.4204551875591278, 0.07060454040765762, -0.08676600456237793, -0.21720825135707855, -0.24045275151729584, -0.020342081785202026, 0.0038647500332444906, -0.0020102711860090494, -0.05364600196480751, -0.017045585438609123, -0.18909740447998047, 0.047229163348674774, -0.17452354729175568, 0.11050615459680557, 0.02393314428627491, -0.33424636721611023, 0.08098221570253372, -0.354787677526474, -0.3686877191066742, -0.20167705416679382, -0.2749284505844116, -0.2785089612007141, -0.437177836894989, 0.12367109209299088, 0.04824649915099144, -0.2050635814666748, 0.3375057280063629, 0.03559768572449684, 0.21312756836414337, -0.11554348468780518, 0.2912864685058594, 0.020036375150084496, -0.4666030704975128, -0.1717081218957901, 0.2661103308200836, -0.12178754061460495, 0.17772074043750763, 0.37325599789619446, -0.2697919011116028, 0.12662479281425476, -0.08133718371391296, -0.09352041780948639, 0.1742730438709259, 0.019178543239831924, 0.07313569635152817, -0.11210460215806961, 0.17789241671562195, -0.24276305735111237, 0.02790970914065838, 0.21959549188613892, 0.14074066281318665, 0.011768011376261711, -0.26862919330596924, 0.07263700664043427, -0.1478596180677414, -0.04917091876268387, -0.26474013924598694, -0.2983293831348419, -0.17055603861808777, 0.14768899977207184, -0.0024459112901240587, 0.10623189806938171, 0.22800029814243317, -0.15874989330768585, -0.07294777035713196, 0.05687721446156502, 0.1522216796875, -0.41331860423088074, -0.35867035388946533, 0.22566749155521393, -0.14983732998371124, -0.15883488953113556, -0.005820923950523138, 0.10525504499673843, 0.1827724426984787, 0.07640449702739716, -0.14073266088962555, -0.12297163158655167, 0.028202852234244347, -0.02585121989250183, 0.18582391738891602, 0.30632156133651733, 0.026276206597685814, 0.05321035906672478, -0.25855258107185364, -0.3281501531600952, -0.22407299280166626, 0.3522090017795563, -0.15288060903549194, 0.16389794647693634, -0.062424175441265106, -0.007893539033830166, -0.38382676243782043, 0.3719574511051178, 0.004053550772368908, -0.26540154218673706, 0.04685761407017708, -0.04099409282207489, 0.26804953813552856, 0.13586625456809998, -0.18040421605110168, 0.12299054116010666, 0.23077602684497833, 0.17651021480560303, 0.19369877874851227, -0.0015948496293276548, -0.04662617668509483, 0.0961797684431076, 0.29274982213974, -0.3982168138027191, -0.040570423007011414, -0.13547387719154358, -0.015856634825468063, -0.10448110103607178, 0.17407086491584778, -0.04454139620065689, -0.16881053149700165, -0.10596457868814468, -0.19520124793052673, -0.1300077885389328, 0.000224150629946962, -0.1936303973197937, -0.5790835022926331, 0.03635292500257492, 0.06546203047037125, 0.15552441775798798, 0.05905808508396149, 0.13393570482730865, -0.22252978384494781, 0.15795117616653442, 0.07685692608356476, 0.33981627225875854, 0.6001866459846497, -0.34886160492897034, 0.2287294566631317, 0.11988172680139542, 0.20947733521461487, -0.18323493003845215, 0.04948360100388527, -0.15454068779945374, 0.07577415555715561, 0.07116053253412247, 0.09391935169696808, -0.20303423702716827, -0.06590282171964645, 0.17124365270137787, 0.12287583202123642, -0.167879119515419, -0.12901851534843445, -0.016840249300003052, -0.003003204707056284, -0.024050092324614525, 0.018821831792593002, 0.11355970054864883, 0.05314347520470619, -0.09251243621110916, -0.01858636923134327, -0.026905888691544533, -0.1011350154876709, 0.1421116590499878, 0.17487996816635132, 0.3000011444091797, 0.15732166171073914, 0.031748998910188675, 0.2631475627422333, 0.41016387939453125, 0.44781699776649475, 0.5231934785842896, -0.40367060899734497, -0.36146965622901917, 0.11573687940835953, -0.29326382279396057, 0.37816566228866577, 0.2151259332895279, 0.21761631965637207, 0.05495762825012207, -0.02589910849928856, 0.1699206829071045, -0.26869362592697144, 0.1604357808828354, 0.058397918939590454, 0.16323691606521606, -0.36630475521087646, -0.4160359501838684, 0.43357545137405396, 0.08796833455562592, -0.26360559463500977, 0.3521565794944763, 0.2691616714000702, -0.26815861463546753, 0.0633142814040184, 0.05196890980005264, 1.0433212518692017, 0.009994203224778175, -0.1919669657945633, -0.19552181661128998, -0.3553740084171295, 0.5523369312286377, -0.10171391814947128, -0.09534862637519836, -0.4379242956638336, -0.39676252007484436, -0.02557428739964962, -0.10829208046197891, -0.041106484830379486, 0.601945698261261, -0.034250613301992416, 0.25410765409469604, -0.18390598893165588, 0.14889289438724518, 0.018081167712807655, 0.05152498185634613, 0.2613600194454193, -0.17134897410869598, -0.18050889670848846, 0.27752354741096497, -0.04319397732615471, -0.035875242203474045, -0.2183718979358673, 0.15897490084171295, -0.22247083485126495, -0.017955375835299492, -0.1481138914823532, -0.044473931193351746, -0.13862141966819763, -0.04848013073205948, -0.04104931280016899, -0.17121389508247375, -0.12541358172893524, 0.1407732516527176, 0.5230369567871094, 0.0774671733379364, -0.05006040260195732, 0.19409672915935516, 0.18444840610027313, 0.2618159055709839, -0.01612316444516182, 0.12346280366182327, 0.2575564980506897, 0.04524911195039749, -0.27643442153930664, -0.12432119250297546, 0.1304226666688919, 0.005346499849110842, -0.42738667130470276, -0.009280295111238956, -0.030253207311034203, -0.3861844837665558, 0.1360757052898407, -0.11021580547094345, 0.3035733997821808, -0.13033427298069, 0.31747594475746155, 0.14737878739833832, 0.13700172305107117, 0.21221855282783508, 0.33094191551208496, -0.13054552674293518, -0.2820080816745758, 0.24151992797851562, -0.00453548226505518, 0.19290383160114288, 0.0735805407166481, -0.11744751036167145, -0.4047917127609253, -0.34503665566444397, 0.17751944065093994, 0.2344295233488083, -0.4004965126514435, 0.03291149064898491, 0.026807675138115883, -0.24790377914905548, -0.11902915686368942, 0.13538327813148499, 0.0261632539331913, 0.22538986802101135, -0.057174429297447205, -0.27485400438308716, -0.33874598145484924, 0.2098543643951416, -0.15309415757656097, 0.16516603529453278, 0.03275354579091072, 0.025275198742747307, -0.06666935235261917, 0.13039523363113403, -0.5222278833389282, -0.16673260927200317, -0.0981978327035904, 0.1981472373008728, 0.1798616498708725, 0.1627746969461441, -0.009137184359133244, -0.18658612668514252, 0.3036806881427765, -0.02620632015168667, -0.0024828012101352215, -0.3995093107223511, -0.17961886525154114, 0.03926074132323265, -0.007506123743951321, -0.20701058208942413, -0.19549153745174408, -0.1536857634782791, 0.05507127568125725, -0.08210001140832901, -0.037652626633644104, 0.2857872545719147, 0.2225208431482315, 0.2743475139141083, -0.08622674643993378, 0.2188045233488083, -0.17290106415748596, 0.125210240483284, 0.21226735413074493, 0.11292625963687897, 0.19122180342674255, -0.09991607815027237, 0.03914066031575203, 0.024580974131822586, -0.0626072883605957, -0.06298084557056427, 0.05659971386194229, -0.13498327136039734, 0.026237918063998222, -0.37771472334861755, 0.3072396218776703, 0.4688585102558136, 0.37331491708755493, 0.08490081876516342, -0.16900604963302612, -0.2942098081111908, 0.3519141376018524, 0.44367823004722595, -0.2712094187736511, -0.2997954487800598, 0.3400833308696747, 0.031671687960624695, 0.08025261014699936, 0.29780980944633484, 0.12069772183895111, 0.01687762141227722, -0.06601899862289429, -0.0616539902985096, 0.43832919001579285, -0.2243587076663971, 0.09864912927150726, 0.3763611912727356, -0.11791075021028519, 0.10206827521324158, 0.4660079777240753, 0.45983049273490906, -0.12903739511966705, 0.42913293838500977, 0.28102606534957886, 0.32289186120033264, 0.18441079556941986, 0.06542183458805084, -0.06175783649086952, -0.06833362579345703, 0.10035821050405502, 0.37581777572631836, 0.026686957105994225, -0.00188975699711591, -0.0424223430454731, -0.11278416961431503, -0.12941689789295197, -0.23608361184597015, 0.1606740802526474, 0.10093159228563309, -0.1693972498178482, -0.18161018192768097, -0.2603725492954254, -0.22802020609378815, -0.0006114232819527388, -0.11559728533029556, -0.16853436827659607, -0.21658971905708313, 0.21448221802711487, -0.3471333384513855, 0.043184272944927216, -0.3171151578426361, -0.1418994665145874, -0.01054866798222065, 0.2559111714363098, -0.04842853173613548, 0.1823415756225586, 0.0019288506591692567, 0.11732286214828491, 0.5018293857574463, 0.25338220596313477, 0.07672417163848877, 0.015631191432476044, 0.2462325245141983, -0.3414164185523987, -0.06262221932411194, -0.2673744559288025, -0.03052646853029728, 0.08706437051296234, 0.16308261454105377, -0.054288800805807114, 0.2762838304042816, 0.3385392427444458, -0.27531516551971436, 0.40377989411354065, 0.30573585629463196, 0.06839042901992798, -0.05608771741390228, 0.004726183135062456, -0.08908107876777649, -0.18973879516124725, -0.05137081444263458, -0.26389333605766296, -0.16036014258861542, -0.08625151216983795, 0.36119380593299866, -0.11495213955640793, 0.18315114080905914, -0.07910922169685364, 0.1873672753572464, 0.12706348299980164, 0.22992849349975586, 0.14278647303581238, 0.1625109761953354, -0.13000495731830597, 0.04399394616484642, -0.5106804966926575, 0.09350019693374634, -0.0252714641392231, -0.19106468558311462, 0.06404909491539001, -0.11830132454633713, 0.16426515579223633, 0.02876446396112442, 0.342704176902771, -0.018047336488962173, -0.024630703032016754, -0.09247472882270813, -0.4382067322731018, -0.15894126892089844, 0.06995408236980438, 0.14757691323757172, 0.1809769719839096, -0.014562174677848816, 0.0536261610686779, 0.02464744821190834, 0.20296044647693634, -0.12361147254705429, 0.24721840023994446, 0.019863666966557503, 0.12321437895298004, 0.23416247963905334, -0.16943620145320892, 0.6944535970687866, -0.02678779326379299, 0.036818042397499084, 0.018638744950294495, -0.296390175819397, -0.21624132990837097, 0.3615373969078064, 0.11817561089992523, 0.13295204937458038, -0.0913887545466423, 0.01750791259109974, -0.04583068564534187, -0.20143215358257294, -0.05294140800833702, 0.37011176347732544, -0.1438450813293457, 0.08153417706489563, 0.07610755413770676, -0.22473828494548798, 0.08867228776216507, 0.018070805817842484, 0.054790396243333817, 0.23715540766716003, 0.01923763006925583, -0.2624976634979248, 0.5099202990531921, 0.0213446207344532, -0.173807755112648, 0.1351577639579773, 0.21183739602565765, 0.3079356253147125, -0.21073545515537262, -0.34720534086227417, -0.041816506534814835, 0.47881537675857544, -0.2127903699874878, -0.2042180597782135, -0.08623277395963669, -0.14241501688957214, -0.029464326798915863, -0.03561779111623764, 0.28868526220321655, 0.11922549456357956, -0.3408139944076538, 0.011251868680119514, 0.01897900551557541 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Hi @ioana-blue, Can you share a sample from your .csv? A dummy where you get this error will also help. I tried this csv: ```csv feature,label 1.2,not nurse 1.3,nurse 1.5,surgeon ``` and the following snippet: ```python from datasets import load_dataset d = load_dataset("csv",data_files=['test.csv']) print(d) print(d['train']['label']) ``` and this works perfectly fine for me: ```sh DatasetDict({ train: Dataset({ features: ['feature', 'label'], num_rows: 3 }) }) ['not nurse', 'nurse', 'surgeon'] ``` I'm sure your csv is more complicated than this one. But it is hard to tell where the issue might be without looking at a sample.
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
95
Question/problem with dataset labels
[ -0.05179116129875183, -0.21751292049884796, -0.2778059244155884, 0.39635148644447327, 0.18013565242290497, 0.095916748046875, 0.639014482498169, -0.16329225897789001, 0.043602678924798965, 0.1830817312002182, -0.03413020819425583, 0.19652587175369263, 0.03208814188838005, 0.27017244696617126, -0.24914272129535675, -0.04802030324935913, 0.0236810352653265, 0.0577920600771904, -0.06265751272439957, -0.26629331707954407, -0.3142566382884979, -0.16492748260498047, -0.24027857184410095, 0.2200353443622589, -0.33715102076530457, -0.3127879202365875, 0.2183663547039032, -0.08764714747667313, -0.07939231395721436, -0.30890968441963196, -0.018990006297826767, 0.3558143079280853, -0.08595792949199677, 0.3650980591773987, -0.00009506772039458156, -0.2950174808502197, 0.1170642077922821, 0.1602071225643158, -0.2709449231624603, 0.05101911351084709, -0.5606186389923096, -0.03664175793528557, -0.1473913937807083, -0.29139089584350586, 0.09928679466247559, -0.26297813653945923, -0.18750478327274323, -0.2606866955757141, -0.019028063863515854, -0.05523292347788811, 0.4295872151851654, -0.0646858885884285, -0.19726325571537018, -0.07204433530569077, 0.26497724652290344, 0.11390095204114914, -0.03511706367135048, 0.08140736073255539, 0.2221834808588028, 0.09655710309743881, 0.0796545222401619, 0.5501314997673035, 0.11378692090511322, 0.0420924574136734, 0.16238194704055786, 0.06847439706325531, 0.09851545095443726, -0.2697941064834595, 0.25092583894729614, 0.24967598915100098, 0.9304397106170654, -0.20284438133239746, -0.42117011547088623, -0.13567864894866943, -0.01123305968940258, -0.2081427425146103, -0.016119109466671944, 0.09661144763231277, 0.26768121123313904, -0.03383904695510864, -0.16096363961696625, 0.0355990007519722, -0.09825370460748672, 0.03662000223994255, -0.2146671563386917, 0.4087263345718384, -0.181715726852417, 0.16363756358623505, -0.043609369546175, -0.2892742156982422, 0.2763553261756897, -0.1130824089050293, 0.04765958711504936, 0.054455939680337906, 0.07219187915325165, -0.06053496524691582, -0.18300563097000122, 0.1690821498632431, 0.02224176935851574, -0.016762390732765198, -0.12723112106323242, -0.015326603315770626, -0.20004382729530334, 0.08348527550697327, 0.3342582881450653, 0.14225344359874725, 0.44438931345939636, 0.31885045766830444, 0.08727413415908813, -0.2514932453632355, -0.2747633159160614, -0.015871334820985794, -0.1965864896774292, -0.14544284343719482, 0.27759796380996704, -0.06875172257423401, 0.025758730247616768, -0.3966420888900757, -0.3808620274066925, 0.20509864389896393, -0.062227506190538406, -0.22249101102352142, 0.19189099967479706, 0.17748084664344788, 0.060006532818078995, 0.12765759229660034, -0.13420453667640686, 0.0888991728425026, 0.08518675714731216, -0.32523971796035767, -0.36390888690948486, -0.05648023262619972, -0.19885246455669403, -0.16898740828037262, -0.08226040750741959, 0.22393949329853058, 0.15992896258831024, -0.08882266283035278, 0.08136686682701111, -0.08286445587873459, -0.11337850987911224, -0.1564655303955078, -0.006243622861802578, 0.04013219475746155, -0.24592529237270355, 0.2842738926410675, 0.004333839286118746, -0.3394429087638855, -0.07301552593708038, 0.1193431094288826, -0.24562066793441772, 0.24642911553382874, -0.03677533566951752, 0.40180733799934387, 0.1422862708568573, -0.1974281519651413, -0.12469872087240219, 0.07066155225038528, 0.0236221831291914, -0.03424685448408127, 0.08485917001962662, -0.22218142449855804, -0.033804718405008316, -0.11228828132152557, -0.11945696920156479, 0.14098526537418365, -0.5544857382774353, -0.12150400131940842, -0.022586429491639137, -0.12124664336442947, 0.13657709956169128, 0.13191024959087372, -0.04350690916180611, 0.08635202795267105, 0.029607968404889107, 0.13774900138378143, 0.3674216866493225, -0.49529367685317993, -0.4145351052284241, 0.02491864562034607, -0.07653914391994476, -0.30920228362083435, 0.09475627541542053, 0.10315932333469391, 0.12075159698724747, -0.08960136026144028, 0.0038961018435657024, -0.23604625463485718, -0.059542879462242126, -0.10709092020988464, -0.21098124980926514, 0.11849993467330933, 0.18647544085979462, 0.06787849962711334, -0.0631333440542221, 0.2220732718706131, 0.08964487165212631, 0.0053906748071312904, 0.012559744529426098, 0.03157925605773926, 0.0856030285358429, 0.3199947476387024, 0.11948387324810028, -0.03809220343828201, -0.05848177522420883, -0.06569846719503403, -0.356695294380188, -0.039232924580574036, 0.10047843307256699, 0.07753375172615051, 0.222591370344162, -0.12132313847541809, -0.3977915942668915, -0.04976392909884453, -0.0008861148380674422, 0.19673104584217072, 0.2722945213317871, 0.014302595518529415, -0.3099406957626343, -0.18542379140853882, -0.03608047217130661, 0.09277833253145218, -0.11555314809083939, 0.05348748713731766, 0.09221551567316055, 0.018513988703489304, 0.12153587490320206, 0.02198353409767151, -0.009167716838419437, 0.17004048824310303, 0.4012856185436249, 0.32533425092697144, 0.03316761925816536, 0.1049460843205452, -0.01705165021121502, -0.0903715118765831, 0.12388461083173752, 0.23619382083415985, 0.004543138202279806, -0.11608118563890457, 0.1490691751241684, -0.28983810544013977, 0.0647159069776535, -0.03551741689443588, -0.19635511934757233, 0.058805204927921295, -0.20307160913944244, 0.17087870836257935, -0.08717726916074753, -0.09524157643318176, 0.14201019704341888, -0.15825092792510986, -0.02465151622891426, -0.39532342553138733, 0.12217789143323898, -0.053268689662218094, 0.2785292863845825, 0.30014854669570923, -0.2768007814884186, 0.39596810936927795, 0.5502462387084961, -0.04492522403597832, 0.06628098338842392, -0.05838920176029205, -0.19084762036800385, 0.24931028485298157, 0.2169860452413559, 0.3511831760406494, 0.17801159620285034, 0.4204551875591278, 0.07060454040765762, -0.08676600456237793, -0.21720825135707855, -0.24045275151729584, -0.020342081785202026, 0.0038647500332444906, -0.0020102711860090494, -0.05364600196480751, -0.017045585438609123, -0.18909740447998047, 0.047229163348674774, -0.17452354729175568, 0.11050615459680557, 0.02393314428627491, -0.33424636721611023, 0.08098221570253372, -0.354787677526474, -0.3686877191066742, -0.20167705416679382, -0.2749284505844116, -0.2785089612007141, -0.437177836894989, 0.12367109209299088, 0.04824649915099144, -0.2050635814666748, 0.3375057280063629, 0.03559768572449684, 0.21312756836414337, -0.11554348468780518, 0.2912864685058594, 0.020036375150084496, -0.4666030704975128, -0.1717081218957901, 0.2661103308200836, -0.12178754061460495, 0.17772074043750763, 0.37325599789619446, -0.2697919011116028, 0.12662479281425476, -0.08133718371391296, -0.09352041780948639, 0.1742730438709259, 0.019178543239831924, 0.07313569635152817, -0.11210460215806961, 0.17789241671562195, -0.24276305735111237, 0.02790970914065838, 0.21959549188613892, 0.14074066281318665, 0.011768011376261711, -0.26862919330596924, 0.07263700664043427, -0.1478596180677414, -0.04917091876268387, -0.26474013924598694, -0.2983293831348419, -0.17055603861808777, 0.14768899977207184, -0.0024459112901240587, 0.10623189806938171, 0.22800029814243317, -0.15874989330768585, -0.07294777035713196, 0.05687721446156502, 0.1522216796875, -0.41331860423088074, -0.35867035388946533, 0.22566749155521393, -0.14983732998371124, -0.15883488953113556, -0.005820923950523138, 0.10525504499673843, 0.1827724426984787, 0.07640449702739716, -0.14073266088962555, -0.12297163158655167, 0.028202852234244347, -0.02585121989250183, 0.18582391738891602, 0.30632156133651733, 0.026276206597685814, 0.05321035906672478, -0.25855258107185364, -0.3281501531600952, -0.22407299280166626, 0.3522090017795563, -0.15288060903549194, 0.16389794647693634, -0.062424175441265106, -0.007893539033830166, -0.38382676243782043, 0.3719574511051178, 0.004053550772368908, -0.26540154218673706, 0.04685761407017708, -0.04099409282207489, 0.26804953813552856, 0.13586625456809998, -0.18040421605110168, 0.12299054116010666, 0.23077602684497833, 0.17651021480560303, 0.19369877874851227, -0.0015948496293276548, -0.04662617668509483, 0.0961797684431076, 0.29274982213974, -0.3982168138027191, -0.040570423007011414, -0.13547387719154358, -0.015856634825468063, -0.10448110103607178, 0.17407086491584778, -0.04454139620065689, -0.16881053149700165, -0.10596457868814468, -0.19520124793052673, -0.1300077885389328, 0.000224150629946962, -0.1936303973197937, -0.5790835022926331, 0.03635292500257492, 0.06546203047037125, 0.15552441775798798, 0.05905808508396149, 0.13393570482730865, -0.22252978384494781, 0.15795117616653442, 0.07685692608356476, 0.33981627225875854, 0.6001866459846497, -0.34886160492897034, 0.2287294566631317, 0.11988172680139542, 0.20947733521461487, -0.18323493003845215, 0.04948360100388527, -0.15454068779945374, 0.07577415555715561, 0.07116053253412247, 0.09391935169696808, -0.20303423702716827, -0.06590282171964645, 0.17124365270137787, 0.12287583202123642, -0.167879119515419, -0.12901851534843445, -0.016840249300003052, -0.003003204707056284, -0.024050092324614525, 0.018821831792593002, 0.11355970054864883, 0.05314347520470619, -0.09251243621110916, -0.01858636923134327, -0.026905888691544533, -0.1011350154876709, 0.1421116590499878, 0.17487996816635132, 0.3000011444091797, 0.15732166171073914, 0.031748998910188675, 0.2631475627422333, 0.41016387939453125, 0.44781699776649475, 0.5231934785842896, -0.40367060899734497, -0.36146965622901917, 0.11573687940835953, -0.29326382279396057, 0.37816566228866577, 0.2151259332895279, 0.21761631965637207, 0.05495762825012207, -0.02589910849928856, 0.1699206829071045, -0.26869362592697144, 0.1604357808828354, 0.058397918939590454, 0.16323691606521606, -0.36630475521087646, -0.4160359501838684, 0.43357545137405396, 0.08796833455562592, -0.26360559463500977, 0.3521565794944763, 0.2691616714000702, -0.26815861463546753, 0.0633142814040184, 0.05196890980005264, 1.0433212518692017, 0.009994203224778175, -0.1919669657945633, -0.19552181661128998, -0.3553740084171295, 0.5523369312286377, -0.10171391814947128, -0.09534862637519836, -0.4379242956638336, -0.39676252007484436, -0.02557428739964962, -0.10829208046197891, -0.041106484830379486, 0.601945698261261, -0.034250613301992416, 0.25410765409469604, -0.18390598893165588, 0.14889289438724518, 0.018081167712807655, 0.05152498185634613, 0.2613600194454193, -0.17134897410869598, -0.18050889670848846, 0.27752354741096497, -0.04319397732615471, -0.035875242203474045, -0.2183718979358673, 0.15897490084171295, -0.22247083485126495, -0.017955375835299492, -0.1481138914823532, -0.044473931193351746, -0.13862141966819763, -0.04848013073205948, -0.04104931280016899, -0.17121389508247375, -0.12541358172893524, 0.1407732516527176, 0.5230369567871094, 0.0774671733379364, -0.05006040260195732, 0.19409672915935516, 0.18444840610027313, 0.2618159055709839, -0.01612316444516182, 0.12346280366182327, 0.2575564980506897, 0.04524911195039749, -0.27643442153930664, -0.12432119250297546, 0.1304226666688919, 0.005346499849110842, -0.42738667130470276, -0.009280295111238956, -0.030253207311034203, -0.3861844837665558, 0.1360757052898407, -0.11021580547094345, 0.3035733997821808, -0.13033427298069, 0.31747594475746155, 0.14737878739833832, 0.13700172305107117, 0.21221855282783508, 0.33094191551208496, -0.13054552674293518, -0.2820080816745758, 0.24151992797851562, -0.00453548226505518, 0.19290383160114288, 0.0735805407166481, -0.11744751036167145, -0.4047917127609253, -0.34503665566444397, 0.17751944065093994, 0.2344295233488083, -0.4004965126514435, 0.03291149064898491, 0.026807675138115883, -0.24790377914905548, -0.11902915686368942, 0.13538327813148499, 0.0261632539331913, 0.22538986802101135, -0.057174429297447205, -0.27485400438308716, -0.33874598145484924, 0.2098543643951416, -0.15309415757656097, 0.16516603529453278, 0.03275354579091072, 0.025275198742747307, -0.06666935235261917, 0.13039523363113403, -0.5222278833389282, -0.16673260927200317, -0.0981978327035904, 0.1981472373008728, 0.1798616498708725, 0.1627746969461441, -0.009137184359133244, -0.18658612668514252, 0.3036806881427765, -0.02620632015168667, -0.0024828012101352215, -0.3995093107223511, -0.17961886525154114, 0.03926074132323265, -0.007506123743951321, -0.20701058208942413, -0.19549153745174408, -0.1536857634782791, 0.05507127568125725, -0.08210001140832901, -0.037652626633644104, 0.2857872545719147, 0.2225208431482315, 0.2743475139141083, -0.08622674643993378, 0.2188045233488083, -0.17290106415748596, 0.125210240483284, 0.21226735413074493, 0.11292625963687897, 0.19122180342674255, -0.09991607815027237, 0.03914066031575203, 0.024580974131822586, -0.0626072883605957, -0.06298084557056427, 0.05659971386194229, -0.13498327136039734, 0.026237918063998222, -0.37771472334861755, 0.3072396218776703, 0.4688585102558136, 0.37331491708755493, 0.08490081876516342, -0.16900604963302612, -0.2942098081111908, 0.3519141376018524, 0.44367823004722595, -0.2712094187736511, -0.2997954487800598, 0.3400833308696747, 0.031671687960624695, 0.08025261014699936, 0.29780980944633484, 0.12069772183895111, 0.01687762141227722, -0.06601899862289429, -0.0616539902985096, 0.43832919001579285, -0.2243587076663971, 0.09864912927150726, 0.3763611912727356, -0.11791075021028519, 0.10206827521324158, 0.4660079777240753, 0.45983049273490906, -0.12903739511966705, 0.42913293838500977, 0.28102606534957886, 0.32289186120033264, 0.18441079556941986, 0.06542183458805084, -0.06175783649086952, -0.06833362579345703, 0.10035821050405502, 0.37581777572631836, 0.026686957105994225, -0.00188975699711591, -0.0424223430454731, -0.11278416961431503, -0.12941689789295197, -0.23608361184597015, 0.1606740802526474, 0.10093159228563309, -0.1693972498178482, -0.18161018192768097, -0.2603725492954254, -0.22802020609378815, -0.0006114232819527388, -0.11559728533029556, -0.16853436827659607, -0.21658971905708313, 0.21448221802711487, -0.3471333384513855, 0.043184272944927216, -0.3171151578426361, -0.1418994665145874, -0.01054866798222065, 0.2559111714363098, -0.04842853173613548, 0.1823415756225586, 0.0019288506591692567, 0.11732286214828491, 0.5018293857574463, 0.25338220596313477, 0.07672417163848877, 0.015631191432476044, 0.2462325245141983, -0.3414164185523987, -0.06262221932411194, -0.2673744559288025, -0.03052646853029728, 0.08706437051296234, 0.16308261454105377, -0.054288800805807114, 0.2762838304042816, 0.3385392427444458, -0.27531516551971436, 0.40377989411354065, 0.30573585629463196, 0.06839042901992798, -0.05608771741390228, 0.004726183135062456, -0.08908107876777649, -0.18973879516124725, -0.05137081444263458, -0.26389333605766296, -0.16036014258861542, -0.08625151216983795, 0.36119380593299866, -0.11495213955640793, 0.18315114080905914, -0.07910922169685364, 0.1873672753572464, 0.12706348299980164, 0.22992849349975586, 0.14278647303581238, 0.1625109761953354, -0.13000495731830597, 0.04399394616484642, -0.5106804966926575, 0.09350019693374634, -0.0252714641392231, -0.19106468558311462, 0.06404909491539001, -0.11830132454633713, 0.16426515579223633, 0.02876446396112442, 0.342704176902771, -0.018047336488962173, -0.024630703032016754, -0.09247472882270813, -0.4382067322731018, -0.15894126892089844, 0.06995408236980438, 0.14757691323757172, 0.1809769719839096, -0.014562174677848816, 0.0536261610686779, 0.02464744821190834, 0.20296044647693634, -0.12361147254705429, 0.24721840023994446, 0.019863666966557503, 0.12321437895298004, 0.23416247963905334, -0.16943620145320892, 0.6944535970687866, -0.02678779326379299, 0.036818042397499084, 0.018638744950294495, -0.296390175819397, -0.21624132990837097, 0.3615373969078064, 0.11817561089992523, 0.13295204937458038, -0.0913887545466423, 0.01750791259109974, -0.04583068564534187, -0.20143215358257294, -0.05294140800833702, 0.37011176347732544, -0.1438450813293457, 0.08153417706489563, 0.07610755413770676, -0.22473828494548798, 0.08867228776216507, 0.018070805817842484, 0.054790396243333817, 0.23715540766716003, 0.01923763006925583, -0.2624976634979248, 0.5099202990531921, 0.0213446207344532, -0.173807755112648, 0.1351577639579773, 0.21183739602565765, 0.3079356253147125, -0.21073545515537262, -0.34720534086227417, -0.041816506534814835, 0.47881537675857544, -0.2127903699874878, -0.2042180597782135, -0.08623277395963669, -0.14241501688957214, -0.029464326798915863, -0.03561779111623764, 0.28868526220321655, 0.11922549456357956, -0.3408139944076538, 0.011251868680119514, 0.01897900551557541 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
I've had versions where it worked fain. For this dataset, I had all kind of parsing issues that I couldn't understand. What I ended up doing is strip all the columns that I didn't need and also make the label 0/1. I think one line that may have caused a problem was the csv version of this: ```crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job. ^M ('Rose', '', 'Blakey') journalist F 38 journalist https://www.netgalley.com/catalog/book/121872 _ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job.``` The error I got in this case is this one: https://github.com/huggingface/datasets/issues/1989#issuecomment-790842771 Note, this line was part of a much larger file and until this line I guess it was working fine.
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
197
Question/problem with dataset labels
[ -0.05179116129875183, -0.21751292049884796, -0.2778059244155884, 0.39635148644447327, 0.18013565242290497, 0.095916748046875, 0.639014482498169, -0.16329225897789001, 0.043602678924798965, 0.1830817312002182, -0.03413020819425583, 0.19652587175369263, 0.03208814188838005, 0.27017244696617126, -0.24914272129535675, -0.04802030324935913, 0.0236810352653265, 0.0577920600771904, -0.06265751272439957, -0.26629331707954407, -0.3142566382884979, -0.16492748260498047, -0.24027857184410095, 0.2200353443622589, -0.33715102076530457, -0.3127879202365875, 0.2183663547039032, -0.08764714747667313, -0.07939231395721436, -0.30890968441963196, -0.018990006297826767, 0.3558143079280853, -0.08595792949199677, 0.3650980591773987, -0.00009506772039458156, -0.2950174808502197, 0.1170642077922821, 0.1602071225643158, -0.2709449231624603, 0.05101911351084709, -0.5606186389923096, -0.03664175793528557, -0.1473913937807083, -0.29139089584350586, 0.09928679466247559, -0.26297813653945923, -0.18750478327274323, -0.2606866955757141, -0.019028063863515854, -0.05523292347788811, 0.4295872151851654, -0.0646858885884285, -0.19726325571537018, -0.07204433530569077, 0.26497724652290344, 0.11390095204114914, -0.03511706367135048, 0.08140736073255539, 0.2221834808588028, 0.09655710309743881, 0.0796545222401619, 0.5501314997673035, 0.11378692090511322, 0.0420924574136734, 0.16238194704055786, 0.06847439706325531, 0.09851545095443726, -0.2697941064834595, 0.25092583894729614, 0.24967598915100098, 0.9304397106170654, -0.20284438133239746, -0.42117011547088623, -0.13567864894866943, -0.01123305968940258, -0.2081427425146103, -0.016119109466671944, 0.09661144763231277, 0.26768121123313904, -0.03383904695510864, -0.16096363961696625, 0.0355990007519722, -0.09825370460748672, 0.03662000223994255, -0.2146671563386917, 0.4087263345718384, -0.181715726852417, 0.16363756358623505, -0.043609369546175, -0.2892742156982422, 0.2763553261756897, -0.1130824089050293, 0.04765958711504936, 0.054455939680337906, 0.07219187915325165, -0.06053496524691582, -0.18300563097000122, 0.1690821498632431, 0.02224176935851574, -0.016762390732765198, -0.12723112106323242, -0.015326603315770626, -0.20004382729530334, 0.08348527550697327, 0.3342582881450653, 0.14225344359874725, 0.44438931345939636, 0.31885045766830444, 0.08727413415908813, -0.2514932453632355, -0.2747633159160614, -0.015871334820985794, -0.1965864896774292, -0.14544284343719482, 0.27759796380996704, -0.06875172257423401, 0.025758730247616768, -0.3966420888900757, -0.3808620274066925, 0.20509864389896393, -0.062227506190538406, -0.22249101102352142, 0.19189099967479706, 0.17748084664344788, 0.060006532818078995, 0.12765759229660034, -0.13420453667640686, 0.0888991728425026, 0.08518675714731216, -0.32523971796035767, -0.36390888690948486, -0.05648023262619972, -0.19885246455669403, -0.16898740828037262, -0.08226040750741959, 0.22393949329853058, 0.15992896258831024, -0.08882266283035278, 0.08136686682701111, -0.08286445587873459, -0.11337850987911224, -0.1564655303955078, -0.006243622861802578, 0.04013219475746155, -0.24592529237270355, 0.2842738926410675, 0.004333839286118746, -0.3394429087638855, -0.07301552593708038, 0.1193431094288826, -0.24562066793441772, 0.24642911553382874, -0.03677533566951752, 0.40180733799934387, 0.1422862708568573, -0.1974281519651413, -0.12469872087240219, 0.07066155225038528, 0.0236221831291914, -0.03424685448408127, 0.08485917001962662, -0.22218142449855804, -0.033804718405008316, -0.11228828132152557, -0.11945696920156479, 0.14098526537418365, -0.5544857382774353, -0.12150400131940842, -0.022586429491639137, -0.12124664336442947, 0.13657709956169128, 0.13191024959087372, -0.04350690916180611, 0.08635202795267105, 0.029607968404889107, 0.13774900138378143, 0.3674216866493225, -0.49529367685317993, -0.4145351052284241, 0.02491864562034607, -0.07653914391994476, -0.30920228362083435, 0.09475627541542053, 0.10315932333469391, 0.12075159698724747, -0.08960136026144028, 0.0038961018435657024, -0.23604625463485718, -0.059542879462242126, -0.10709092020988464, -0.21098124980926514, 0.11849993467330933, 0.18647544085979462, 0.06787849962711334, -0.0631333440542221, 0.2220732718706131, 0.08964487165212631, 0.0053906748071312904, 0.012559744529426098, 0.03157925605773926, 0.0856030285358429, 0.3199947476387024, 0.11948387324810028, -0.03809220343828201, -0.05848177522420883, -0.06569846719503403, -0.356695294380188, -0.039232924580574036, 0.10047843307256699, 0.07753375172615051, 0.222591370344162, -0.12132313847541809, -0.3977915942668915, -0.04976392909884453, -0.0008861148380674422, 0.19673104584217072, 0.2722945213317871, 0.014302595518529415, -0.3099406957626343, -0.18542379140853882, -0.03608047217130661, 0.09277833253145218, -0.11555314809083939, 0.05348748713731766, 0.09221551567316055, 0.018513988703489304, 0.12153587490320206, 0.02198353409767151, -0.009167716838419437, 0.17004048824310303, 0.4012856185436249, 0.32533425092697144, 0.03316761925816536, 0.1049460843205452, -0.01705165021121502, -0.0903715118765831, 0.12388461083173752, 0.23619382083415985, 0.004543138202279806, -0.11608118563890457, 0.1490691751241684, -0.28983810544013977, 0.0647159069776535, -0.03551741689443588, -0.19635511934757233, 0.058805204927921295, -0.20307160913944244, 0.17087870836257935, -0.08717726916074753, -0.09524157643318176, 0.14201019704341888, -0.15825092792510986, -0.02465151622891426, -0.39532342553138733, 0.12217789143323898, -0.053268689662218094, 0.2785292863845825, 0.30014854669570923, -0.2768007814884186, 0.39596810936927795, 0.5502462387084961, -0.04492522403597832, 0.06628098338842392, -0.05838920176029205, -0.19084762036800385, 0.24931028485298157, 0.2169860452413559, 0.3511831760406494, 0.17801159620285034, 0.4204551875591278, 0.07060454040765762, -0.08676600456237793, -0.21720825135707855, -0.24045275151729584, -0.020342081785202026, 0.0038647500332444906, -0.0020102711860090494, -0.05364600196480751, -0.017045585438609123, -0.18909740447998047, 0.047229163348674774, -0.17452354729175568, 0.11050615459680557, 0.02393314428627491, -0.33424636721611023, 0.08098221570253372, -0.354787677526474, -0.3686877191066742, -0.20167705416679382, -0.2749284505844116, -0.2785089612007141, -0.437177836894989, 0.12367109209299088, 0.04824649915099144, -0.2050635814666748, 0.3375057280063629, 0.03559768572449684, 0.21312756836414337, -0.11554348468780518, 0.2912864685058594, 0.020036375150084496, -0.4666030704975128, -0.1717081218957901, 0.2661103308200836, -0.12178754061460495, 0.17772074043750763, 0.37325599789619446, -0.2697919011116028, 0.12662479281425476, -0.08133718371391296, -0.09352041780948639, 0.1742730438709259, 0.019178543239831924, 0.07313569635152817, -0.11210460215806961, 0.17789241671562195, -0.24276305735111237, 0.02790970914065838, 0.21959549188613892, 0.14074066281318665, 0.011768011376261711, -0.26862919330596924, 0.07263700664043427, -0.1478596180677414, -0.04917091876268387, -0.26474013924598694, -0.2983293831348419, -0.17055603861808777, 0.14768899977207184, -0.0024459112901240587, 0.10623189806938171, 0.22800029814243317, -0.15874989330768585, -0.07294777035713196, 0.05687721446156502, 0.1522216796875, -0.41331860423088074, -0.35867035388946533, 0.22566749155521393, -0.14983732998371124, -0.15883488953113556, -0.005820923950523138, 0.10525504499673843, 0.1827724426984787, 0.07640449702739716, -0.14073266088962555, -0.12297163158655167, 0.028202852234244347, -0.02585121989250183, 0.18582391738891602, 0.30632156133651733, 0.026276206597685814, 0.05321035906672478, -0.25855258107185364, -0.3281501531600952, -0.22407299280166626, 0.3522090017795563, -0.15288060903549194, 0.16389794647693634, -0.062424175441265106, -0.007893539033830166, -0.38382676243782043, 0.3719574511051178, 0.004053550772368908, -0.26540154218673706, 0.04685761407017708, -0.04099409282207489, 0.26804953813552856, 0.13586625456809998, -0.18040421605110168, 0.12299054116010666, 0.23077602684497833, 0.17651021480560303, 0.19369877874851227, -0.0015948496293276548, -0.04662617668509483, 0.0961797684431076, 0.29274982213974, -0.3982168138027191, -0.040570423007011414, -0.13547387719154358, -0.015856634825468063, -0.10448110103607178, 0.17407086491584778, -0.04454139620065689, -0.16881053149700165, -0.10596457868814468, -0.19520124793052673, -0.1300077885389328, 0.000224150629946962, -0.1936303973197937, -0.5790835022926331, 0.03635292500257492, 0.06546203047037125, 0.15552441775798798, 0.05905808508396149, 0.13393570482730865, -0.22252978384494781, 0.15795117616653442, 0.07685692608356476, 0.33981627225875854, 0.6001866459846497, -0.34886160492897034, 0.2287294566631317, 0.11988172680139542, 0.20947733521461487, -0.18323493003845215, 0.04948360100388527, -0.15454068779945374, 0.07577415555715561, 0.07116053253412247, 0.09391935169696808, -0.20303423702716827, -0.06590282171964645, 0.17124365270137787, 0.12287583202123642, -0.167879119515419, -0.12901851534843445, -0.016840249300003052, -0.003003204707056284, -0.024050092324614525, 0.018821831792593002, 0.11355970054864883, 0.05314347520470619, -0.09251243621110916, -0.01858636923134327, -0.026905888691544533, -0.1011350154876709, 0.1421116590499878, 0.17487996816635132, 0.3000011444091797, 0.15732166171073914, 0.031748998910188675, 0.2631475627422333, 0.41016387939453125, 0.44781699776649475, 0.5231934785842896, -0.40367060899734497, -0.36146965622901917, 0.11573687940835953, -0.29326382279396057, 0.37816566228866577, 0.2151259332895279, 0.21761631965637207, 0.05495762825012207, -0.02589910849928856, 0.1699206829071045, -0.26869362592697144, 0.1604357808828354, 0.058397918939590454, 0.16323691606521606, -0.36630475521087646, -0.4160359501838684, 0.43357545137405396, 0.08796833455562592, -0.26360559463500977, 0.3521565794944763, 0.2691616714000702, -0.26815861463546753, 0.0633142814040184, 0.05196890980005264, 1.0433212518692017, 0.009994203224778175, -0.1919669657945633, -0.19552181661128998, -0.3553740084171295, 0.5523369312286377, -0.10171391814947128, -0.09534862637519836, -0.4379242956638336, -0.39676252007484436, -0.02557428739964962, -0.10829208046197891, -0.041106484830379486, 0.601945698261261, -0.034250613301992416, 0.25410765409469604, -0.18390598893165588, 0.14889289438724518, 0.018081167712807655, 0.05152498185634613, 0.2613600194454193, -0.17134897410869598, -0.18050889670848846, 0.27752354741096497, -0.04319397732615471, -0.035875242203474045, -0.2183718979358673, 0.15897490084171295, -0.22247083485126495, -0.017955375835299492, -0.1481138914823532, -0.044473931193351746, -0.13862141966819763, -0.04848013073205948, -0.04104931280016899, -0.17121389508247375, -0.12541358172893524, 0.1407732516527176, 0.5230369567871094, 0.0774671733379364, -0.05006040260195732, 0.19409672915935516, 0.18444840610027313, 0.2618159055709839, -0.01612316444516182, 0.12346280366182327, 0.2575564980506897, 0.04524911195039749, -0.27643442153930664, -0.12432119250297546, 0.1304226666688919, 0.005346499849110842, -0.42738667130470276, -0.009280295111238956, -0.030253207311034203, -0.3861844837665558, 0.1360757052898407, -0.11021580547094345, 0.3035733997821808, -0.13033427298069, 0.31747594475746155, 0.14737878739833832, 0.13700172305107117, 0.21221855282783508, 0.33094191551208496, -0.13054552674293518, -0.2820080816745758, 0.24151992797851562, -0.00453548226505518, 0.19290383160114288, 0.0735805407166481, -0.11744751036167145, -0.4047917127609253, -0.34503665566444397, 0.17751944065093994, 0.2344295233488083, -0.4004965126514435, 0.03291149064898491, 0.026807675138115883, -0.24790377914905548, -0.11902915686368942, 0.13538327813148499, 0.0261632539331913, 0.22538986802101135, -0.057174429297447205, -0.27485400438308716, -0.33874598145484924, 0.2098543643951416, -0.15309415757656097, 0.16516603529453278, 0.03275354579091072, 0.025275198742747307, -0.06666935235261917, 0.13039523363113403, -0.5222278833389282, -0.16673260927200317, -0.0981978327035904, 0.1981472373008728, 0.1798616498708725, 0.1627746969461441, -0.009137184359133244, -0.18658612668514252, 0.3036806881427765, -0.02620632015168667, -0.0024828012101352215, -0.3995093107223511, -0.17961886525154114, 0.03926074132323265, -0.007506123743951321, -0.20701058208942413, -0.19549153745174408, -0.1536857634782791, 0.05507127568125725, -0.08210001140832901, -0.037652626633644104, 0.2857872545719147, 0.2225208431482315, 0.2743475139141083, -0.08622674643993378, 0.2188045233488083, -0.17290106415748596, 0.125210240483284, 0.21226735413074493, 0.11292625963687897, 0.19122180342674255, -0.09991607815027237, 0.03914066031575203, 0.024580974131822586, -0.0626072883605957, -0.06298084557056427, 0.05659971386194229, -0.13498327136039734, 0.026237918063998222, -0.37771472334861755, 0.3072396218776703, 0.4688585102558136, 0.37331491708755493, 0.08490081876516342, -0.16900604963302612, -0.2942098081111908, 0.3519141376018524, 0.44367823004722595, -0.2712094187736511, -0.2997954487800598, 0.3400833308696747, 0.031671687960624695, 0.08025261014699936, 0.29780980944633484, 0.12069772183895111, 0.01687762141227722, -0.06601899862289429, -0.0616539902985096, 0.43832919001579285, -0.2243587076663971, 0.09864912927150726, 0.3763611912727356, -0.11791075021028519, 0.10206827521324158, 0.4660079777240753, 0.45983049273490906, -0.12903739511966705, 0.42913293838500977, 0.28102606534957886, 0.32289186120033264, 0.18441079556941986, 0.06542183458805084, -0.06175783649086952, -0.06833362579345703, 0.10035821050405502, 0.37581777572631836, 0.026686957105994225, -0.00188975699711591, -0.0424223430454731, -0.11278416961431503, -0.12941689789295197, -0.23608361184597015, 0.1606740802526474, 0.10093159228563309, -0.1693972498178482, -0.18161018192768097, -0.2603725492954254, -0.22802020609378815, -0.0006114232819527388, -0.11559728533029556, -0.16853436827659607, -0.21658971905708313, 0.21448221802711487, -0.3471333384513855, 0.043184272944927216, -0.3171151578426361, -0.1418994665145874, -0.01054866798222065, 0.2559111714363098, -0.04842853173613548, 0.1823415756225586, 0.0019288506591692567, 0.11732286214828491, 0.5018293857574463, 0.25338220596313477, 0.07672417163848877, 0.015631191432476044, 0.2462325245141983, -0.3414164185523987, -0.06262221932411194, -0.2673744559288025, -0.03052646853029728, 0.08706437051296234, 0.16308261454105377, -0.054288800805807114, 0.2762838304042816, 0.3385392427444458, -0.27531516551971436, 0.40377989411354065, 0.30573585629463196, 0.06839042901992798, -0.05608771741390228, 0.004726183135062456, -0.08908107876777649, -0.18973879516124725, -0.05137081444263458, -0.26389333605766296, -0.16036014258861542, -0.08625151216983795, 0.36119380593299866, -0.11495213955640793, 0.18315114080905914, -0.07910922169685364, 0.1873672753572464, 0.12706348299980164, 0.22992849349975586, 0.14278647303581238, 0.1625109761953354, -0.13000495731830597, 0.04399394616484642, -0.5106804966926575, 0.09350019693374634, -0.0252714641392231, -0.19106468558311462, 0.06404909491539001, -0.11830132454633713, 0.16426515579223633, 0.02876446396112442, 0.342704176902771, -0.018047336488962173, -0.024630703032016754, -0.09247472882270813, -0.4382067322731018, -0.15894126892089844, 0.06995408236980438, 0.14757691323757172, 0.1809769719839096, -0.014562174677848816, 0.0536261610686779, 0.02464744821190834, 0.20296044647693634, -0.12361147254705429, 0.24721840023994446, 0.019863666966557503, 0.12321437895298004, 0.23416247963905334, -0.16943620145320892, 0.6944535970687866, -0.02678779326379299, 0.036818042397499084, 0.018638744950294495, -0.296390175819397, -0.21624132990837097, 0.3615373969078064, 0.11817561089992523, 0.13295204937458038, -0.0913887545466423, 0.01750791259109974, -0.04583068564534187, -0.20143215358257294, -0.05294140800833702, 0.37011176347732544, -0.1438450813293457, 0.08153417706489563, 0.07610755413770676, -0.22473828494548798, 0.08867228776216507, 0.018070805817842484, 0.054790396243333817, 0.23715540766716003, 0.01923763006925583, -0.2624976634979248, 0.5099202990531921, 0.0213446207344532, -0.173807755112648, 0.1351577639579773, 0.21183739602565765, 0.3079356253147125, -0.21073545515537262, -0.34720534086227417, -0.041816506534814835, 0.47881537675857544, -0.2127903699874878, -0.2042180597782135, -0.08623277395963669, -0.14241501688957214, -0.029464326798915863, -0.03561779111623764, 0.28868526220321655, 0.11922549456357956, -0.3408139944076538, 0.011251868680119514, 0.01897900551557541 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Hi @ioana-blue, What is the separator you're using for the csv? I see there are only two commas in the given line, but they don't seem like appropriate points. Also, is this a string part of one line, or an entire line? There should also be a label, right?
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
49
Question/problem with dataset labels
[ -0.05179116129875183, -0.21751292049884796, -0.2778059244155884, 0.39635148644447327, 0.18013565242290497, 0.095916748046875, 0.639014482498169, -0.16329225897789001, 0.043602678924798965, 0.1830817312002182, -0.03413020819425583, 0.19652587175369263, 0.03208814188838005, 0.27017244696617126, -0.24914272129535675, -0.04802030324935913, 0.0236810352653265, 0.0577920600771904, -0.06265751272439957, -0.26629331707954407, -0.3142566382884979, -0.16492748260498047, -0.24027857184410095, 0.2200353443622589, -0.33715102076530457, -0.3127879202365875, 0.2183663547039032, -0.08764714747667313, -0.07939231395721436, -0.30890968441963196, -0.018990006297826767, 0.3558143079280853, -0.08595792949199677, 0.3650980591773987, -0.00009506772039458156, -0.2950174808502197, 0.1170642077922821, 0.1602071225643158, -0.2709449231624603, 0.05101911351084709, -0.5606186389923096, -0.03664175793528557, -0.1473913937807083, -0.29139089584350586, 0.09928679466247559, -0.26297813653945923, -0.18750478327274323, -0.2606866955757141, -0.019028063863515854, -0.05523292347788811, 0.4295872151851654, -0.0646858885884285, -0.19726325571537018, -0.07204433530569077, 0.26497724652290344, 0.11390095204114914, -0.03511706367135048, 0.08140736073255539, 0.2221834808588028, 0.09655710309743881, 0.0796545222401619, 0.5501314997673035, 0.11378692090511322, 0.0420924574136734, 0.16238194704055786, 0.06847439706325531, 0.09851545095443726, -0.2697941064834595, 0.25092583894729614, 0.24967598915100098, 0.9304397106170654, -0.20284438133239746, -0.42117011547088623, -0.13567864894866943, -0.01123305968940258, -0.2081427425146103, -0.016119109466671944, 0.09661144763231277, 0.26768121123313904, -0.03383904695510864, -0.16096363961696625, 0.0355990007519722, -0.09825370460748672, 0.03662000223994255, -0.2146671563386917, 0.4087263345718384, -0.181715726852417, 0.16363756358623505, -0.043609369546175, -0.2892742156982422, 0.2763553261756897, -0.1130824089050293, 0.04765958711504936, 0.054455939680337906, 0.07219187915325165, -0.06053496524691582, -0.18300563097000122, 0.1690821498632431, 0.02224176935851574, -0.016762390732765198, -0.12723112106323242, -0.015326603315770626, -0.20004382729530334, 0.08348527550697327, 0.3342582881450653, 0.14225344359874725, 0.44438931345939636, 0.31885045766830444, 0.08727413415908813, -0.2514932453632355, -0.2747633159160614, -0.015871334820985794, -0.1965864896774292, -0.14544284343719482, 0.27759796380996704, -0.06875172257423401, 0.025758730247616768, -0.3966420888900757, -0.3808620274066925, 0.20509864389896393, -0.062227506190538406, -0.22249101102352142, 0.19189099967479706, 0.17748084664344788, 0.060006532818078995, 0.12765759229660034, -0.13420453667640686, 0.0888991728425026, 0.08518675714731216, -0.32523971796035767, -0.36390888690948486, -0.05648023262619972, -0.19885246455669403, -0.16898740828037262, -0.08226040750741959, 0.22393949329853058, 0.15992896258831024, -0.08882266283035278, 0.08136686682701111, -0.08286445587873459, -0.11337850987911224, -0.1564655303955078, -0.006243622861802578, 0.04013219475746155, -0.24592529237270355, 0.2842738926410675, 0.004333839286118746, -0.3394429087638855, -0.07301552593708038, 0.1193431094288826, -0.24562066793441772, 0.24642911553382874, -0.03677533566951752, 0.40180733799934387, 0.1422862708568573, -0.1974281519651413, -0.12469872087240219, 0.07066155225038528, 0.0236221831291914, -0.03424685448408127, 0.08485917001962662, -0.22218142449855804, -0.033804718405008316, -0.11228828132152557, -0.11945696920156479, 0.14098526537418365, -0.5544857382774353, -0.12150400131940842, -0.022586429491639137, -0.12124664336442947, 0.13657709956169128, 0.13191024959087372, -0.04350690916180611, 0.08635202795267105, 0.029607968404889107, 0.13774900138378143, 0.3674216866493225, -0.49529367685317993, -0.4145351052284241, 0.02491864562034607, -0.07653914391994476, -0.30920228362083435, 0.09475627541542053, 0.10315932333469391, 0.12075159698724747, -0.08960136026144028, 0.0038961018435657024, -0.23604625463485718, -0.059542879462242126, -0.10709092020988464, -0.21098124980926514, 0.11849993467330933, 0.18647544085979462, 0.06787849962711334, -0.0631333440542221, 0.2220732718706131, 0.08964487165212631, 0.0053906748071312904, 0.012559744529426098, 0.03157925605773926, 0.0856030285358429, 0.3199947476387024, 0.11948387324810028, -0.03809220343828201, -0.05848177522420883, -0.06569846719503403, -0.356695294380188, -0.039232924580574036, 0.10047843307256699, 0.07753375172615051, 0.222591370344162, -0.12132313847541809, -0.3977915942668915, -0.04976392909884453, -0.0008861148380674422, 0.19673104584217072, 0.2722945213317871, 0.014302595518529415, -0.3099406957626343, -0.18542379140853882, -0.03608047217130661, 0.09277833253145218, -0.11555314809083939, 0.05348748713731766, 0.09221551567316055, 0.018513988703489304, 0.12153587490320206, 0.02198353409767151, -0.009167716838419437, 0.17004048824310303, 0.4012856185436249, 0.32533425092697144, 0.03316761925816536, 0.1049460843205452, -0.01705165021121502, -0.0903715118765831, 0.12388461083173752, 0.23619382083415985, 0.004543138202279806, -0.11608118563890457, 0.1490691751241684, -0.28983810544013977, 0.0647159069776535, -0.03551741689443588, -0.19635511934757233, 0.058805204927921295, -0.20307160913944244, 0.17087870836257935, -0.08717726916074753, -0.09524157643318176, 0.14201019704341888, -0.15825092792510986, -0.02465151622891426, -0.39532342553138733, 0.12217789143323898, -0.053268689662218094, 0.2785292863845825, 0.30014854669570923, -0.2768007814884186, 0.39596810936927795, 0.5502462387084961, -0.04492522403597832, 0.06628098338842392, -0.05838920176029205, -0.19084762036800385, 0.24931028485298157, 0.2169860452413559, 0.3511831760406494, 0.17801159620285034, 0.4204551875591278, 0.07060454040765762, -0.08676600456237793, -0.21720825135707855, -0.24045275151729584, -0.020342081785202026, 0.0038647500332444906, -0.0020102711860090494, -0.05364600196480751, -0.017045585438609123, -0.18909740447998047, 0.047229163348674774, -0.17452354729175568, 0.11050615459680557, 0.02393314428627491, -0.33424636721611023, 0.08098221570253372, -0.354787677526474, -0.3686877191066742, -0.20167705416679382, -0.2749284505844116, -0.2785089612007141, -0.437177836894989, 0.12367109209299088, 0.04824649915099144, -0.2050635814666748, 0.3375057280063629, 0.03559768572449684, 0.21312756836414337, -0.11554348468780518, 0.2912864685058594, 0.020036375150084496, -0.4666030704975128, -0.1717081218957901, 0.2661103308200836, -0.12178754061460495, 0.17772074043750763, 0.37325599789619446, -0.2697919011116028, 0.12662479281425476, -0.08133718371391296, -0.09352041780948639, 0.1742730438709259, 0.019178543239831924, 0.07313569635152817, -0.11210460215806961, 0.17789241671562195, -0.24276305735111237, 0.02790970914065838, 0.21959549188613892, 0.14074066281318665, 0.011768011376261711, -0.26862919330596924, 0.07263700664043427, -0.1478596180677414, -0.04917091876268387, -0.26474013924598694, -0.2983293831348419, -0.17055603861808777, 0.14768899977207184, -0.0024459112901240587, 0.10623189806938171, 0.22800029814243317, -0.15874989330768585, -0.07294777035713196, 0.05687721446156502, 0.1522216796875, -0.41331860423088074, -0.35867035388946533, 0.22566749155521393, -0.14983732998371124, -0.15883488953113556, -0.005820923950523138, 0.10525504499673843, 0.1827724426984787, 0.07640449702739716, -0.14073266088962555, -0.12297163158655167, 0.028202852234244347, -0.02585121989250183, 0.18582391738891602, 0.30632156133651733, 0.026276206597685814, 0.05321035906672478, -0.25855258107185364, -0.3281501531600952, -0.22407299280166626, 0.3522090017795563, -0.15288060903549194, 0.16389794647693634, -0.062424175441265106, -0.007893539033830166, -0.38382676243782043, 0.3719574511051178, 0.004053550772368908, -0.26540154218673706, 0.04685761407017708, -0.04099409282207489, 0.26804953813552856, 0.13586625456809998, -0.18040421605110168, 0.12299054116010666, 0.23077602684497833, 0.17651021480560303, 0.19369877874851227, -0.0015948496293276548, -0.04662617668509483, 0.0961797684431076, 0.29274982213974, -0.3982168138027191, -0.040570423007011414, -0.13547387719154358, -0.015856634825468063, -0.10448110103607178, 0.17407086491584778, -0.04454139620065689, -0.16881053149700165, -0.10596457868814468, -0.19520124793052673, -0.1300077885389328, 0.000224150629946962, -0.1936303973197937, -0.5790835022926331, 0.03635292500257492, 0.06546203047037125, 0.15552441775798798, 0.05905808508396149, 0.13393570482730865, -0.22252978384494781, 0.15795117616653442, 0.07685692608356476, 0.33981627225875854, 0.6001866459846497, -0.34886160492897034, 0.2287294566631317, 0.11988172680139542, 0.20947733521461487, -0.18323493003845215, 0.04948360100388527, -0.15454068779945374, 0.07577415555715561, 0.07116053253412247, 0.09391935169696808, -0.20303423702716827, -0.06590282171964645, 0.17124365270137787, 0.12287583202123642, -0.167879119515419, -0.12901851534843445, -0.016840249300003052, -0.003003204707056284, -0.024050092324614525, 0.018821831792593002, 0.11355970054864883, 0.05314347520470619, -0.09251243621110916, -0.01858636923134327, -0.026905888691544533, -0.1011350154876709, 0.1421116590499878, 0.17487996816635132, 0.3000011444091797, 0.15732166171073914, 0.031748998910188675, 0.2631475627422333, 0.41016387939453125, 0.44781699776649475, 0.5231934785842896, -0.40367060899734497, -0.36146965622901917, 0.11573687940835953, -0.29326382279396057, 0.37816566228866577, 0.2151259332895279, 0.21761631965637207, 0.05495762825012207, -0.02589910849928856, 0.1699206829071045, -0.26869362592697144, 0.1604357808828354, 0.058397918939590454, 0.16323691606521606, -0.36630475521087646, -0.4160359501838684, 0.43357545137405396, 0.08796833455562592, -0.26360559463500977, 0.3521565794944763, 0.2691616714000702, -0.26815861463546753, 0.0633142814040184, 0.05196890980005264, 1.0433212518692017, 0.009994203224778175, -0.1919669657945633, -0.19552181661128998, -0.3553740084171295, 0.5523369312286377, -0.10171391814947128, -0.09534862637519836, -0.4379242956638336, -0.39676252007484436, -0.02557428739964962, -0.10829208046197891, -0.041106484830379486, 0.601945698261261, -0.034250613301992416, 0.25410765409469604, -0.18390598893165588, 0.14889289438724518, 0.018081167712807655, 0.05152498185634613, 0.2613600194454193, -0.17134897410869598, -0.18050889670848846, 0.27752354741096497, -0.04319397732615471, -0.035875242203474045, -0.2183718979358673, 0.15897490084171295, -0.22247083485126495, -0.017955375835299492, -0.1481138914823532, -0.044473931193351746, -0.13862141966819763, -0.04848013073205948, -0.04104931280016899, -0.17121389508247375, -0.12541358172893524, 0.1407732516527176, 0.5230369567871094, 0.0774671733379364, -0.05006040260195732, 0.19409672915935516, 0.18444840610027313, 0.2618159055709839, -0.01612316444516182, 0.12346280366182327, 0.2575564980506897, 0.04524911195039749, -0.27643442153930664, -0.12432119250297546, 0.1304226666688919, 0.005346499849110842, -0.42738667130470276, -0.009280295111238956, -0.030253207311034203, -0.3861844837665558, 0.1360757052898407, -0.11021580547094345, 0.3035733997821808, -0.13033427298069, 0.31747594475746155, 0.14737878739833832, 0.13700172305107117, 0.21221855282783508, 0.33094191551208496, -0.13054552674293518, -0.2820080816745758, 0.24151992797851562, -0.00453548226505518, 0.19290383160114288, 0.0735805407166481, -0.11744751036167145, -0.4047917127609253, -0.34503665566444397, 0.17751944065093994, 0.2344295233488083, -0.4004965126514435, 0.03291149064898491, 0.026807675138115883, -0.24790377914905548, -0.11902915686368942, 0.13538327813148499, 0.0261632539331913, 0.22538986802101135, -0.057174429297447205, -0.27485400438308716, -0.33874598145484924, 0.2098543643951416, -0.15309415757656097, 0.16516603529453278, 0.03275354579091072, 0.025275198742747307, -0.06666935235261917, 0.13039523363113403, -0.5222278833389282, -0.16673260927200317, -0.0981978327035904, 0.1981472373008728, 0.1798616498708725, 0.1627746969461441, -0.009137184359133244, -0.18658612668514252, 0.3036806881427765, -0.02620632015168667, -0.0024828012101352215, -0.3995093107223511, -0.17961886525154114, 0.03926074132323265, -0.007506123743951321, -0.20701058208942413, -0.19549153745174408, -0.1536857634782791, 0.05507127568125725, -0.08210001140832901, -0.037652626633644104, 0.2857872545719147, 0.2225208431482315, 0.2743475139141083, -0.08622674643993378, 0.2188045233488083, -0.17290106415748596, 0.125210240483284, 0.21226735413074493, 0.11292625963687897, 0.19122180342674255, -0.09991607815027237, 0.03914066031575203, 0.024580974131822586, -0.0626072883605957, -0.06298084557056427, 0.05659971386194229, -0.13498327136039734, 0.026237918063998222, -0.37771472334861755, 0.3072396218776703, 0.4688585102558136, 0.37331491708755493, 0.08490081876516342, -0.16900604963302612, -0.2942098081111908, 0.3519141376018524, 0.44367823004722595, -0.2712094187736511, -0.2997954487800598, 0.3400833308696747, 0.031671687960624695, 0.08025261014699936, 0.29780980944633484, 0.12069772183895111, 0.01687762141227722, -0.06601899862289429, -0.0616539902985096, 0.43832919001579285, -0.2243587076663971, 0.09864912927150726, 0.3763611912727356, -0.11791075021028519, 0.10206827521324158, 0.4660079777240753, 0.45983049273490906, -0.12903739511966705, 0.42913293838500977, 0.28102606534957886, 0.32289186120033264, 0.18441079556941986, 0.06542183458805084, -0.06175783649086952, -0.06833362579345703, 0.10035821050405502, 0.37581777572631836, 0.026686957105994225, -0.00188975699711591, -0.0424223430454731, -0.11278416961431503, -0.12941689789295197, -0.23608361184597015, 0.1606740802526474, 0.10093159228563309, -0.1693972498178482, -0.18161018192768097, -0.2603725492954254, -0.22802020609378815, -0.0006114232819527388, -0.11559728533029556, -0.16853436827659607, -0.21658971905708313, 0.21448221802711487, -0.3471333384513855, 0.043184272944927216, -0.3171151578426361, -0.1418994665145874, -0.01054866798222065, 0.2559111714363098, -0.04842853173613548, 0.1823415756225586, 0.0019288506591692567, 0.11732286214828491, 0.5018293857574463, 0.25338220596313477, 0.07672417163848877, 0.015631191432476044, 0.2462325245141983, -0.3414164185523987, -0.06262221932411194, -0.2673744559288025, -0.03052646853029728, 0.08706437051296234, 0.16308261454105377, -0.054288800805807114, 0.2762838304042816, 0.3385392427444458, -0.27531516551971436, 0.40377989411354065, 0.30573585629463196, 0.06839042901992798, -0.05608771741390228, 0.004726183135062456, -0.08908107876777649, -0.18973879516124725, -0.05137081444263458, -0.26389333605766296, -0.16036014258861542, -0.08625151216983795, 0.36119380593299866, -0.11495213955640793, 0.18315114080905914, -0.07910922169685364, 0.1873672753572464, 0.12706348299980164, 0.22992849349975586, 0.14278647303581238, 0.1625109761953354, -0.13000495731830597, 0.04399394616484642, -0.5106804966926575, 0.09350019693374634, -0.0252714641392231, -0.19106468558311462, 0.06404909491539001, -0.11830132454633713, 0.16426515579223633, 0.02876446396112442, 0.342704176902771, -0.018047336488962173, -0.024630703032016754, -0.09247472882270813, -0.4382067322731018, -0.15894126892089844, 0.06995408236980438, 0.14757691323757172, 0.1809769719839096, -0.014562174677848816, 0.0536261610686779, 0.02464744821190834, 0.20296044647693634, -0.12361147254705429, 0.24721840023994446, 0.019863666966557503, 0.12321437895298004, 0.23416247963905334, -0.16943620145320892, 0.6944535970687866, -0.02678779326379299, 0.036818042397499084, 0.018638744950294495, -0.296390175819397, -0.21624132990837097, 0.3615373969078064, 0.11817561089992523, 0.13295204937458038, -0.0913887545466423, 0.01750791259109974, -0.04583068564534187, -0.20143215358257294, -0.05294140800833702, 0.37011176347732544, -0.1438450813293457, 0.08153417706489563, 0.07610755413770676, -0.22473828494548798, 0.08867228776216507, 0.018070805817842484, 0.054790396243333817, 0.23715540766716003, 0.01923763006925583, -0.2624976634979248, 0.5099202990531921, 0.0213446207344532, -0.173807755112648, 0.1351577639579773, 0.21183739602565765, 0.3079356253147125, -0.21073545515537262, -0.34720534086227417, -0.041816506534814835, 0.47881537675857544, -0.2127903699874878, -0.2042180597782135, -0.08623277395963669, -0.14241501688957214, -0.029464326798915863, -0.03561779111623764, 0.28868526220321655, 0.11922549456357956, -0.3408139944076538, 0.011251868680119514, 0.01897900551557541 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Sorry for the confusion, the sample above was from a tsv that was used to derive the csv. Let me construct the csv again (I had remove it). This is the line in the csv - this is the whole line: ```crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz,Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead,"('Rose', '', 'Blakey')",journalist,F,38,journalist,https://www.netgalley.com/catalog/book/121872,_ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job., She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job.```
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
139
Question/problem with dataset labels
[ -0.05179116129875183, -0.21751292049884796, -0.2778059244155884, 0.39635148644447327, 0.18013565242290497, 0.095916748046875, 0.639014482498169, -0.16329225897789001, 0.043602678924798965, 0.1830817312002182, -0.03413020819425583, 0.19652587175369263, 0.03208814188838005, 0.27017244696617126, -0.24914272129535675, -0.04802030324935913, 0.0236810352653265, 0.0577920600771904, -0.06265751272439957, -0.26629331707954407, -0.3142566382884979, -0.16492748260498047, -0.24027857184410095, 0.2200353443622589, -0.33715102076530457, -0.3127879202365875, 0.2183663547039032, -0.08764714747667313, -0.07939231395721436, -0.30890968441963196, -0.018990006297826767, 0.3558143079280853, -0.08595792949199677, 0.3650980591773987, -0.00009506772039458156, -0.2950174808502197, 0.1170642077922821, 0.1602071225643158, -0.2709449231624603, 0.05101911351084709, -0.5606186389923096, -0.03664175793528557, -0.1473913937807083, -0.29139089584350586, 0.09928679466247559, -0.26297813653945923, -0.18750478327274323, -0.2606866955757141, -0.019028063863515854, -0.05523292347788811, 0.4295872151851654, -0.0646858885884285, -0.19726325571537018, -0.07204433530569077, 0.26497724652290344, 0.11390095204114914, -0.03511706367135048, 0.08140736073255539, 0.2221834808588028, 0.09655710309743881, 0.0796545222401619, 0.5501314997673035, 0.11378692090511322, 0.0420924574136734, 0.16238194704055786, 0.06847439706325531, 0.09851545095443726, -0.2697941064834595, 0.25092583894729614, 0.24967598915100098, 0.9304397106170654, -0.20284438133239746, -0.42117011547088623, -0.13567864894866943, -0.01123305968940258, -0.2081427425146103, -0.016119109466671944, 0.09661144763231277, 0.26768121123313904, -0.03383904695510864, -0.16096363961696625, 0.0355990007519722, -0.09825370460748672, 0.03662000223994255, -0.2146671563386917, 0.4087263345718384, -0.181715726852417, 0.16363756358623505, -0.043609369546175, -0.2892742156982422, 0.2763553261756897, -0.1130824089050293, 0.04765958711504936, 0.054455939680337906, 0.07219187915325165, -0.06053496524691582, -0.18300563097000122, 0.1690821498632431, 0.02224176935851574, -0.016762390732765198, -0.12723112106323242, -0.015326603315770626, -0.20004382729530334, 0.08348527550697327, 0.3342582881450653, 0.14225344359874725, 0.44438931345939636, 0.31885045766830444, 0.08727413415908813, -0.2514932453632355, -0.2747633159160614, -0.015871334820985794, -0.1965864896774292, -0.14544284343719482, 0.27759796380996704, -0.06875172257423401, 0.025758730247616768, -0.3966420888900757, -0.3808620274066925, 0.20509864389896393, -0.062227506190538406, -0.22249101102352142, 0.19189099967479706, 0.17748084664344788, 0.060006532818078995, 0.12765759229660034, -0.13420453667640686, 0.0888991728425026, 0.08518675714731216, -0.32523971796035767, -0.36390888690948486, -0.05648023262619972, -0.19885246455669403, -0.16898740828037262, -0.08226040750741959, 0.22393949329853058, 0.15992896258831024, -0.08882266283035278, 0.08136686682701111, -0.08286445587873459, -0.11337850987911224, -0.1564655303955078, -0.006243622861802578, 0.04013219475746155, -0.24592529237270355, 0.2842738926410675, 0.004333839286118746, -0.3394429087638855, -0.07301552593708038, 0.1193431094288826, -0.24562066793441772, 0.24642911553382874, -0.03677533566951752, 0.40180733799934387, 0.1422862708568573, -0.1974281519651413, -0.12469872087240219, 0.07066155225038528, 0.0236221831291914, -0.03424685448408127, 0.08485917001962662, -0.22218142449855804, -0.033804718405008316, -0.11228828132152557, -0.11945696920156479, 0.14098526537418365, -0.5544857382774353, -0.12150400131940842, -0.022586429491639137, -0.12124664336442947, 0.13657709956169128, 0.13191024959087372, -0.04350690916180611, 0.08635202795267105, 0.029607968404889107, 0.13774900138378143, 0.3674216866493225, -0.49529367685317993, -0.4145351052284241, 0.02491864562034607, -0.07653914391994476, -0.30920228362083435, 0.09475627541542053, 0.10315932333469391, 0.12075159698724747, -0.08960136026144028, 0.0038961018435657024, -0.23604625463485718, -0.059542879462242126, -0.10709092020988464, -0.21098124980926514, 0.11849993467330933, 0.18647544085979462, 0.06787849962711334, -0.0631333440542221, 0.2220732718706131, 0.08964487165212631, 0.0053906748071312904, 0.012559744529426098, 0.03157925605773926, 0.0856030285358429, 0.3199947476387024, 0.11948387324810028, -0.03809220343828201, -0.05848177522420883, -0.06569846719503403, -0.356695294380188, -0.039232924580574036, 0.10047843307256699, 0.07753375172615051, 0.222591370344162, -0.12132313847541809, -0.3977915942668915, -0.04976392909884453, -0.0008861148380674422, 0.19673104584217072, 0.2722945213317871, 0.014302595518529415, -0.3099406957626343, -0.18542379140853882, -0.03608047217130661, 0.09277833253145218, -0.11555314809083939, 0.05348748713731766, 0.09221551567316055, 0.018513988703489304, 0.12153587490320206, 0.02198353409767151, -0.009167716838419437, 0.17004048824310303, 0.4012856185436249, 0.32533425092697144, 0.03316761925816536, 0.1049460843205452, -0.01705165021121502, -0.0903715118765831, 0.12388461083173752, 0.23619382083415985, 0.004543138202279806, -0.11608118563890457, 0.1490691751241684, -0.28983810544013977, 0.0647159069776535, -0.03551741689443588, -0.19635511934757233, 0.058805204927921295, -0.20307160913944244, 0.17087870836257935, -0.08717726916074753, -0.09524157643318176, 0.14201019704341888, -0.15825092792510986, -0.02465151622891426, -0.39532342553138733, 0.12217789143323898, -0.053268689662218094, 0.2785292863845825, 0.30014854669570923, -0.2768007814884186, 0.39596810936927795, 0.5502462387084961, -0.04492522403597832, 0.06628098338842392, -0.05838920176029205, -0.19084762036800385, 0.24931028485298157, 0.2169860452413559, 0.3511831760406494, 0.17801159620285034, 0.4204551875591278, 0.07060454040765762, -0.08676600456237793, -0.21720825135707855, -0.24045275151729584, -0.020342081785202026, 0.0038647500332444906, -0.0020102711860090494, -0.05364600196480751, -0.017045585438609123, -0.18909740447998047, 0.047229163348674774, -0.17452354729175568, 0.11050615459680557, 0.02393314428627491, -0.33424636721611023, 0.08098221570253372, -0.354787677526474, -0.3686877191066742, -0.20167705416679382, -0.2749284505844116, -0.2785089612007141, -0.437177836894989, 0.12367109209299088, 0.04824649915099144, -0.2050635814666748, 0.3375057280063629, 0.03559768572449684, 0.21312756836414337, -0.11554348468780518, 0.2912864685058594, 0.020036375150084496, -0.4666030704975128, -0.1717081218957901, 0.2661103308200836, -0.12178754061460495, 0.17772074043750763, 0.37325599789619446, -0.2697919011116028, 0.12662479281425476, -0.08133718371391296, -0.09352041780948639, 0.1742730438709259, 0.019178543239831924, 0.07313569635152817, -0.11210460215806961, 0.17789241671562195, -0.24276305735111237, 0.02790970914065838, 0.21959549188613892, 0.14074066281318665, 0.011768011376261711, -0.26862919330596924, 0.07263700664043427, -0.1478596180677414, -0.04917091876268387, -0.26474013924598694, -0.2983293831348419, -0.17055603861808777, 0.14768899977207184, -0.0024459112901240587, 0.10623189806938171, 0.22800029814243317, -0.15874989330768585, -0.07294777035713196, 0.05687721446156502, 0.1522216796875, -0.41331860423088074, -0.35867035388946533, 0.22566749155521393, -0.14983732998371124, -0.15883488953113556, -0.005820923950523138, 0.10525504499673843, 0.1827724426984787, 0.07640449702739716, -0.14073266088962555, -0.12297163158655167, 0.028202852234244347, -0.02585121989250183, 0.18582391738891602, 0.30632156133651733, 0.026276206597685814, 0.05321035906672478, -0.25855258107185364, -0.3281501531600952, -0.22407299280166626, 0.3522090017795563, -0.15288060903549194, 0.16389794647693634, -0.062424175441265106, -0.007893539033830166, -0.38382676243782043, 0.3719574511051178, 0.004053550772368908, -0.26540154218673706, 0.04685761407017708, -0.04099409282207489, 0.26804953813552856, 0.13586625456809998, -0.18040421605110168, 0.12299054116010666, 0.23077602684497833, 0.17651021480560303, 0.19369877874851227, -0.0015948496293276548, -0.04662617668509483, 0.0961797684431076, 0.29274982213974, -0.3982168138027191, -0.040570423007011414, -0.13547387719154358, -0.015856634825468063, -0.10448110103607178, 0.17407086491584778, -0.04454139620065689, -0.16881053149700165, -0.10596457868814468, -0.19520124793052673, -0.1300077885389328, 0.000224150629946962, -0.1936303973197937, -0.5790835022926331, 0.03635292500257492, 0.06546203047037125, 0.15552441775798798, 0.05905808508396149, 0.13393570482730865, -0.22252978384494781, 0.15795117616653442, 0.07685692608356476, 0.33981627225875854, 0.6001866459846497, -0.34886160492897034, 0.2287294566631317, 0.11988172680139542, 0.20947733521461487, -0.18323493003845215, 0.04948360100388527, -0.15454068779945374, 0.07577415555715561, 0.07116053253412247, 0.09391935169696808, -0.20303423702716827, -0.06590282171964645, 0.17124365270137787, 0.12287583202123642, -0.167879119515419, -0.12901851534843445, -0.016840249300003052, -0.003003204707056284, -0.024050092324614525, 0.018821831792593002, 0.11355970054864883, 0.05314347520470619, -0.09251243621110916, -0.01858636923134327, -0.026905888691544533, -0.1011350154876709, 0.1421116590499878, 0.17487996816635132, 0.3000011444091797, 0.15732166171073914, 0.031748998910188675, 0.2631475627422333, 0.41016387939453125, 0.44781699776649475, 0.5231934785842896, -0.40367060899734497, -0.36146965622901917, 0.11573687940835953, -0.29326382279396057, 0.37816566228866577, 0.2151259332895279, 0.21761631965637207, 0.05495762825012207, -0.02589910849928856, 0.1699206829071045, -0.26869362592697144, 0.1604357808828354, 0.058397918939590454, 0.16323691606521606, -0.36630475521087646, -0.4160359501838684, 0.43357545137405396, 0.08796833455562592, -0.26360559463500977, 0.3521565794944763, 0.2691616714000702, -0.26815861463546753, 0.0633142814040184, 0.05196890980005264, 1.0433212518692017, 0.009994203224778175, -0.1919669657945633, -0.19552181661128998, -0.3553740084171295, 0.5523369312286377, -0.10171391814947128, -0.09534862637519836, -0.4379242956638336, -0.39676252007484436, -0.02557428739964962, -0.10829208046197891, -0.041106484830379486, 0.601945698261261, -0.034250613301992416, 0.25410765409469604, -0.18390598893165588, 0.14889289438724518, 0.018081167712807655, 0.05152498185634613, 0.2613600194454193, -0.17134897410869598, -0.18050889670848846, 0.27752354741096497, -0.04319397732615471, -0.035875242203474045, -0.2183718979358673, 0.15897490084171295, -0.22247083485126495, -0.017955375835299492, -0.1481138914823532, -0.044473931193351746, -0.13862141966819763, -0.04848013073205948, -0.04104931280016899, -0.17121389508247375, -0.12541358172893524, 0.1407732516527176, 0.5230369567871094, 0.0774671733379364, -0.05006040260195732, 0.19409672915935516, 0.18444840610027313, 0.2618159055709839, -0.01612316444516182, 0.12346280366182327, 0.2575564980506897, 0.04524911195039749, -0.27643442153930664, -0.12432119250297546, 0.1304226666688919, 0.005346499849110842, -0.42738667130470276, -0.009280295111238956, -0.030253207311034203, -0.3861844837665558, 0.1360757052898407, -0.11021580547094345, 0.3035733997821808, -0.13033427298069, 0.31747594475746155, 0.14737878739833832, 0.13700172305107117, 0.21221855282783508, 0.33094191551208496, -0.13054552674293518, -0.2820080816745758, 0.24151992797851562, -0.00453548226505518, 0.19290383160114288, 0.0735805407166481, -0.11744751036167145, -0.4047917127609253, -0.34503665566444397, 0.17751944065093994, 0.2344295233488083, -0.4004965126514435, 0.03291149064898491, 0.026807675138115883, -0.24790377914905548, -0.11902915686368942, 0.13538327813148499, 0.0261632539331913, 0.22538986802101135, -0.057174429297447205, -0.27485400438308716, -0.33874598145484924, 0.2098543643951416, -0.15309415757656097, 0.16516603529453278, 0.03275354579091072, 0.025275198742747307, -0.06666935235261917, 0.13039523363113403, -0.5222278833389282, -0.16673260927200317, -0.0981978327035904, 0.1981472373008728, 0.1798616498708725, 0.1627746969461441, -0.009137184359133244, -0.18658612668514252, 0.3036806881427765, -0.02620632015168667, -0.0024828012101352215, -0.3995093107223511, -0.17961886525154114, 0.03926074132323265, -0.007506123743951321, -0.20701058208942413, -0.19549153745174408, -0.1536857634782791, 0.05507127568125725, -0.08210001140832901, -0.037652626633644104, 0.2857872545719147, 0.2225208431482315, 0.2743475139141083, -0.08622674643993378, 0.2188045233488083, -0.17290106415748596, 0.125210240483284, 0.21226735413074493, 0.11292625963687897, 0.19122180342674255, -0.09991607815027237, 0.03914066031575203, 0.024580974131822586, -0.0626072883605957, -0.06298084557056427, 0.05659971386194229, -0.13498327136039734, 0.026237918063998222, -0.37771472334861755, 0.3072396218776703, 0.4688585102558136, 0.37331491708755493, 0.08490081876516342, -0.16900604963302612, -0.2942098081111908, 0.3519141376018524, 0.44367823004722595, -0.2712094187736511, -0.2997954487800598, 0.3400833308696747, 0.031671687960624695, 0.08025261014699936, 0.29780980944633484, 0.12069772183895111, 0.01687762141227722, -0.06601899862289429, -0.0616539902985096, 0.43832919001579285, -0.2243587076663971, 0.09864912927150726, 0.3763611912727356, -0.11791075021028519, 0.10206827521324158, 0.4660079777240753, 0.45983049273490906, -0.12903739511966705, 0.42913293838500977, 0.28102606534957886, 0.32289186120033264, 0.18441079556941986, 0.06542183458805084, -0.06175783649086952, -0.06833362579345703, 0.10035821050405502, 0.37581777572631836, 0.026686957105994225, -0.00188975699711591, -0.0424223430454731, -0.11278416961431503, -0.12941689789295197, -0.23608361184597015, 0.1606740802526474, 0.10093159228563309, -0.1693972498178482, -0.18161018192768097, -0.2603725492954254, -0.22802020609378815, -0.0006114232819527388, -0.11559728533029556, -0.16853436827659607, -0.21658971905708313, 0.21448221802711487, -0.3471333384513855, 0.043184272944927216, -0.3171151578426361, -0.1418994665145874, -0.01054866798222065, 0.2559111714363098, -0.04842853173613548, 0.1823415756225586, 0.0019288506591692567, 0.11732286214828491, 0.5018293857574463, 0.25338220596313477, 0.07672417163848877, 0.015631191432476044, 0.2462325245141983, -0.3414164185523987, -0.06262221932411194, -0.2673744559288025, -0.03052646853029728, 0.08706437051296234, 0.16308261454105377, -0.054288800805807114, 0.2762838304042816, 0.3385392427444458, -0.27531516551971436, 0.40377989411354065, 0.30573585629463196, 0.06839042901992798, -0.05608771741390228, 0.004726183135062456, -0.08908107876777649, -0.18973879516124725, -0.05137081444263458, -0.26389333605766296, -0.16036014258861542, -0.08625151216983795, 0.36119380593299866, -0.11495213955640793, 0.18315114080905914, -0.07910922169685364, 0.1873672753572464, 0.12706348299980164, 0.22992849349975586, 0.14278647303581238, 0.1625109761953354, -0.13000495731830597, 0.04399394616484642, -0.5106804966926575, 0.09350019693374634, -0.0252714641392231, -0.19106468558311462, 0.06404909491539001, -0.11830132454633713, 0.16426515579223633, 0.02876446396112442, 0.342704176902771, -0.018047336488962173, -0.024630703032016754, -0.09247472882270813, -0.4382067322731018, -0.15894126892089844, 0.06995408236980438, 0.14757691323757172, 0.1809769719839096, -0.014562174677848816, 0.0536261610686779, 0.02464744821190834, 0.20296044647693634, -0.12361147254705429, 0.24721840023994446, 0.019863666966557503, 0.12321437895298004, 0.23416247963905334, -0.16943620145320892, 0.6944535970687866, -0.02678779326379299, 0.036818042397499084, 0.018638744950294495, -0.296390175819397, -0.21624132990837097, 0.3615373969078064, 0.11817561089992523, 0.13295204937458038, -0.0913887545466423, 0.01750791259109974, -0.04583068564534187, -0.20143215358257294, -0.05294140800833702, 0.37011176347732544, -0.1438450813293457, 0.08153417706489563, 0.07610755413770676, -0.22473828494548798, 0.08867228776216507, 0.018070805817842484, 0.054790396243333817, 0.23715540766716003, 0.01923763006925583, -0.2624976634979248, 0.5099202990531921, 0.0213446207344532, -0.173807755112648, 0.1351577639579773, 0.21183739602565765, 0.3079356253147125, -0.21073545515537262, -0.34720534086227417, -0.041816506534814835, 0.47881537675857544, -0.2127903699874878, -0.2042180597782135, -0.08623277395963669, -0.14241501688957214, -0.029464326798915863, -0.03561779111623764, 0.28868526220321655, 0.11922549456357956, -0.3408139944076538, 0.011251868680119514, 0.01897900551557541 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
Hi, Just in case you want to use tsv directly, you can use the separator argument while loading the dataset. ```python d = load_dataset("csv",data_files=['test.csv'],sep="\t") ``` Additionally, I don't face the issues with the following csv (same as the one you provided): ```sh link1,text1,info1,info2,info3,info4,info5,link2,text2,text3 crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz,Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead,"('Rose', '', 'Blakey')",journalist,F,38,journalist,https://www.netgalley.com/catalog/book/121872,_ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job., She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job. ``` Output after loading: ```sh {'link1': 'crawl-data/CC-MAIN-2017-47/segments/1510934806225.78/wet/CC-MAIN-20171120203833-20171120223833-00571.warc.wet.gz', 'text1': 'Rose Blakey is an aspiring journalist. She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead', 'info1': "('Rose', '', 'Blakey')", 'info2': 'journalist', 'info3': 'F', 'info4': 38, 'info5': 'journalist', 'link2': 'https://www.netgalley.com/catalog/book/121872', 'text2': '_ is desperate to escape the from the small Australian town in which _ lives. Rejection after rejection mean _ is stuck in what _ sees as a dead-end waitressing job.', 'text3': ' She is desperate to escape the from the small Australian town in which she lives. Rejection after rejection mean she is stuck in what she sees as a dead-end waitressing job.'} ``` Can you check once if the tsv works for you directly using the separator argument? The conversion from tsv to csv could create issues, I'm only guessing though.
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
292
Question/problem with dataset labels
[ -0.05179116129875183, -0.21751292049884796, -0.2778059244155884, 0.39635148644447327, 0.18013565242290497, 0.095916748046875, 0.639014482498169, -0.16329225897789001, 0.043602678924798965, 0.1830817312002182, -0.03413020819425583, 0.19652587175369263, 0.03208814188838005, 0.27017244696617126, -0.24914272129535675, -0.04802030324935913, 0.0236810352653265, 0.0577920600771904, -0.06265751272439957, -0.26629331707954407, -0.3142566382884979, -0.16492748260498047, -0.24027857184410095, 0.2200353443622589, -0.33715102076530457, -0.3127879202365875, 0.2183663547039032, -0.08764714747667313, -0.07939231395721436, -0.30890968441963196, -0.018990006297826767, 0.3558143079280853, -0.08595792949199677, 0.3650980591773987, -0.00009506772039458156, -0.2950174808502197, 0.1170642077922821, 0.1602071225643158, -0.2709449231624603, 0.05101911351084709, -0.5606186389923096, -0.03664175793528557, -0.1473913937807083, -0.29139089584350586, 0.09928679466247559, -0.26297813653945923, -0.18750478327274323, -0.2606866955757141, -0.019028063863515854, -0.05523292347788811, 0.4295872151851654, -0.0646858885884285, -0.19726325571537018, -0.07204433530569077, 0.26497724652290344, 0.11390095204114914, -0.03511706367135048, 0.08140736073255539, 0.2221834808588028, 0.09655710309743881, 0.0796545222401619, 0.5501314997673035, 0.11378692090511322, 0.0420924574136734, 0.16238194704055786, 0.06847439706325531, 0.09851545095443726, -0.2697941064834595, 0.25092583894729614, 0.24967598915100098, 0.9304397106170654, -0.20284438133239746, -0.42117011547088623, -0.13567864894866943, -0.01123305968940258, -0.2081427425146103, -0.016119109466671944, 0.09661144763231277, 0.26768121123313904, -0.03383904695510864, -0.16096363961696625, 0.0355990007519722, -0.09825370460748672, 0.03662000223994255, -0.2146671563386917, 0.4087263345718384, -0.181715726852417, 0.16363756358623505, -0.043609369546175, -0.2892742156982422, 0.2763553261756897, -0.1130824089050293, 0.04765958711504936, 0.054455939680337906, 0.07219187915325165, -0.06053496524691582, -0.18300563097000122, 0.1690821498632431, 0.02224176935851574, -0.016762390732765198, -0.12723112106323242, -0.015326603315770626, -0.20004382729530334, 0.08348527550697327, 0.3342582881450653, 0.14225344359874725, 0.44438931345939636, 0.31885045766830444, 0.08727413415908813, -0.2514932453632355, -0.2747633159160614, -0.015871334820985794, -0.1965864896774292, -0.14544284343719482, 0.27759796380996704, -0.06875172257423401, 0.025758730247616768, -0.3966420888900757, -0.3808620274066925, 0.20509864389896393, -0.062227506190538406, -0.22249101102352142, 0.19189099967479706, 0.17748084664344788, 0.060006532818078995, 0.12765759229660034, -0.13420453667640686, 0.0888991728425026, 0.08518675714731216, -0.32523971796035767, -0.36390888690948486, -0.05648023262619972, -0.19885246455669403, -0.16898740828037262, -0.08226040750741959, 0.22393949329853058, 0.15992896258831024, -0.08882266283035278, 0.08136686682701111, -0.08286445587873459, -0.11337850987911224, -0.1564655303955078, -0.006243622861802578, 0.04013219475746155, -0.24592529237270355, 0.2842738926410675, 0.004333839286118746, -0.3394429087638855, -0.07301552593708038, 0.1193431094288826, -0.24562066793441772, 0.24642911553382874, -0.03677533566951752, 0.40180733799934387, 0.1422862708568573, -0.1974281519651413, -0.12469872087240219, 0.07066155225038528, 0.0236221831291914, -0.03424685448408127, 0.08485917001962662, -0.22218142449855804, -0.033804718405008316, -0.11228828132152557, -0.11945696920156479, 0.14098526537418365, -0.5544857382774353, -0.12150400131940842, -0.022586429491639137, -0.12124664336442947, 0.13657709956169128, 0.13191024959087372, -0.04350690916180611, 0.08635202795267105, 0.029607968404889107, 0.13774900138378143, 0.3674216866493225, -0.49529367685317993, -0.4145351052284241, 0.02491864562034607, -0.07653914391994476, -0.30920228362083435, 0.09475627541542053, 0.10315932333469391, 0.12075159698724747, -0.08960136026144028, 0.0038961018435657024, -0.23604625463485718, -0.059542879462242126, -0.10709092020988464, -0.21098124980926514, 0.11849993467330933, 0.18647544085979462, 0.06787849962711334, -0.0631333440542221, 0.2220732718706131, 0.08964487165212631, 0.0053906748071312904, 0.012559744529426098, 0.03157925605773926, 0.0856030285358429, 0.3199947476387024, 0.11948387324810028, -0.03809220343828201, -0.05848177522420883, -0.06569846719503403, -0.356695294380188, -0.039232924580574036, 0.10047843307256699, 0.07753375172615051, 0.222591370344162, -0.12132313847541809, -0.3977915942668915, -0.04976392909884453, -0.0008861148380674422, 0.19673104584217072, 0.2722945213317871, 0.014302595518529415, -0.3099406957626343, -0.18542379140853882, -0.03608047217130661, 0.09277833253145218, -0.11555314809083939, 0.05348748713731766, 0.09221551567316055, 0.018513988703489304, 0.12153587490320206, 0.02198353409767151, -0.009167716838419437, 0.17004048824310303, 0.4012856185436249, 0.32533425092697144, 0.03316761925816536, 0.1049460843205452, -0.01705165021121502, -0.0903715118765831, 0.12388461083173752, 0.23619382083415985, 0.004543138202279806, -0.11608118563890457, 0.1490691751241684, -0.28983810544013977, 0.0647159069776535, -0.03551741689443588, -0.19635511934757233, 0.058805204927921295, -0.20307160913944244, 0.17087870836257935, -0.08717726916074753, -0.09524157643318176, 0.14201019704341888, -0.15825092792510986, -0.02465151622891426, -0.39532342553138733, 0.12217789143323898, -0.053268689662218094, 0.2785292863845825, 0.30014854669570923, -0.2768007814884186, 0.39596810936927795, 0.5502462387084961, -0.04492522403597832, 0.06628098338842392, -0.05838920176029205, -0.19084762036800385, 0.24931028485298157, 0.2169860452413559, 0.3511831760406494, 0.17801159620285034, 0.4204551875591278, 0.07060454040765762, -0.08676600456237793, -0.21720825135707855, -0.24045275151729584, -0.020342081785202026, 0.0038647500332444906, -0.0020102711860090494, -0.05364600196480751, -0.017045585438609123, -0.18909740447998047, 0.047229163348674774, -0.17452354729175568, 0.11050615459680557, 0.02393314428627491, -0.33424636721611023, 0.08098221570253372, -0.354787677526474, -0.3686877191066742, -0.20167705416679382, -0.2749284505844116, -0.2785089612007141, -0.437177836894989, 0.12367109209299088, 0.04824649915099144, -0.2050635814666748, 0.3375057280063629, 0.03559768572449684, 0.21312756836414337, -0.11554348468780518, 0.2912864685058594, 0.020036375150084496, -0.4666030704975128, -0.1717081218957901, 0.2661103308200836, -0.12178754061460495, 0.17772074043750763, 0.37325599789619446, -0.2697919011116028, 0.12662479281425476, -0.08133718371391296, -0.09352041780948639, 0.1742730438709259, 0.019178543239831924, 0.07313569635152817, -0.11210460215806961, 0.17789241671562195, -0.24276305735111237, 0.02790970914065838, 0.21959549188613892, 0.14074066281318665, 0.011768011376261711, -0.26862919330596924, 0.07263700664043427, -0.1478596180677414, -0.04917091876268387, -0.26474013924598694, -0.2983293831348419, -0.17055603861808777, 0.14768899977207184, -0.0024459112901240587, 0.10623189806938171, 0.22800029814243317, -0.15874989330768585, -0.07294777035713196, 0.05687721446156502, 0.1522216796875, -0.41331860423088074, -0.35867035388946533, 0.22566749155521393, -0.14983732998371124, -0.15883488953113556, -0.005820923950523138, 0.10525504499673843, 0.1827724426984787, 0.07640449702739716, -0.14073266088962555, -0.12297163158655167, 0.028202852234244347, -0.02585121989250183, 0.18582391738891602, 0.30632156133651733, 0.026276206597685814, 0.05321035906672478, -0.25855258107185364, -0.3281501531600952, -0.22407299280166626, 0.3522090017795563, -0.15288060903549194, 0.16389794647693634, -0.062424175441265106, -0.007893539033830166, -0.38382676243782043, 0.3719574511051178, 0.004053550772368908, -0.26540154218673706, 0.04685761407017708, -0.04099409282207489, 0.26804953813552856, 0.13586625456809998, -0.18040421605110168, 0.12299054116010666, 0.23077602684497833, 0.17651021480560303, 0.19369877874851227, -0.0015948496293276548, -0.04662617668509483, 0.0961797684431076, 0.29274982213974, -0.3982168138027191, -0.040570423007011414, -0.13547387719154358, -0.015856634825468063, -0.10448110103607178, 0.17407086491584778, -0.04454139620065689, -0.16881053149700165, -0.10596457868814468, -0.19520124793052673, -0.1300077885389328, 0.000224150629946962, -0.1936303973197937, -0.5790835022926331, 0.03635292500257492, 0.06546203047037125, 0.15552441775798798, 0.05905808508396149, 0.13393570482730865, -0.22252978384494781, 0.15795117616653442, 0.07685692608356476, 0.33981627225875854, 0.6001866459846497, -0.34886160492897034, 0.2287294566631317, 0.11988172680139542, 0.20947733521461487, -0.18323493003845215, 0.04948360100388527, -0.15454068779945374, 0.07577415555715561, 0.07116053253412247, 0.09391935169696808, -0.20303423702716827, -0.06590282171964645, 0.17124365270137787, 0.12287583202123642, -0.167879119515419, -0.12901851534843445, -0.016840249300003052, -0.003003204707056284, -0.024050092324614525, 0.018821831792593002, 0.11355970054864883, 0.05314347520470619, -0.09251243621110916, -0.01858636923134327, -0.026905888691544533, -0.1011350154876709, 0.1421116590499878, 0.17487996816635132, 0.3000011444091797, 0.15732166171073914, 0.031748998910188675, 0.2631475627422333, 0.41016387939453125, 0.44781699776649475, 0.5231934785842896, -0.40367060899734497, -0.36146965622901917, 0.11573687940835953, -0.29326382279396057, 0.37816566228866577, 0.2151259332895279, 0.21761631965637207, 0.05495762825012207, -0.02589910849928856, 0.1699206829071045, -0.26869362592697144, 0.1604357808828354, 0.058397918939590454, 0.16323691606521606, -0.36630475521087646, -0.4160359501838684, 0.43357545137405396, 0.08796833455562592, -0.26360559463500977, 0.3521565794944763, 0.2691616714000702, -0.26815861463546753, 0.0633142814040184, 0.05196890980005264, 1.0433212518692017, 0.009994203224778175, -0.1919669657945633, -0.19552181661128998, -0.3553740084171295, 0.5523369312286377, -0.10171391814947128, -0.09534862637519836, -0.4379242956638336, -0.39676252007484436, -0.02557428739964962, -0.10829208046197891, -0.041106484830379486, 0.601945698261261, -0.034250613301992416, 0.25410765409469604, -0.18390598893165588, 0.14889289438724518, 0.018081167712807655, 0.05152498185634613, 0.2613600194454193, -0.17134897410869598, -0.18050889670848846, 0.27752354741096497, -0.04319397732615471, -0.035875242203474045, -0.2183718979358673, 0.15897490084171295, -0.22247083485126495, -0.017955375835299492, -0.1481138914823532, -0.044473931193351746, -0.13862141966819763, -0.04848013073205948, -0.04104931280016899, -0.17121389508247375, -0.12541358172893524, 0.1407732516527176, 0.5230369567871094, 0.0774671733379364, -0.05006040260195732, 0.19409672915935516, 0.18444840610027313, 0.2618159055709839, -0.01612316444516182, 0.12346280366182327, 0.2575564980506897, 0.04524911195039749, -0.27643442153930664, -0.12432119250297546, 0.1304226666688919, 0.005346499849110842, -0.42738667130470276, -0.009280295111238956, -0.030253207311034203, -0.3861844837665558, 0.1360757052898407, -0.11021580547094345, 0.3035733997821808, -0.13033427298069, 0.31747594475746155, 0.14737878739833832, 0.13700172305107117, 0.21221855282783508, 0.33094191551208496, -0.13054552674293518, -0.2820080816745758, 0.24151992797851562, -0.00453548226505518, 0.19290383160114288, 0.0735805407166481, -0.11744751036167145, -0.4047917127609253, -0.34503665566444397, 0.17751944065093994, 0.2344295233488083, -0.4004965126514435, 0.03291149064898491, 0.026807675138115883, -0.24790377914905548, -0.11902915686368942, 0.13538327813148499, 0.0261632539331913, 0.22538986802101135, -0.057174429297447205, -0.27485400438308716, -0.33874598145484924, 0.2098543643951416, -0.15309415757656097, 0.16516603529453278, 0.03275354579091072, 0.025275198742747307, -0.06666935235261917, 0.13039523363113403, -0.5222278833389282, -0.16673260927200317, -0.0981978327035904, 0.1981472373008728, 0.1798616498708725, 0.1627746969461441, -0.009137184359133244, -0.18658612668514252, 0.3036806881427765, -0.02620632015168667, -0.0024828012101352215, -0.3995093107223511, -0.17961886525154114, 0.03926074132323265, -0.007506123743951321, -0.20701058208942413, -0.19549153745174408, -0.1536857634782791, 0.05507127568125725, -0.08210001140832901, -0.037652626633644104, 0.2857872545719147, 0.2225208431482315, 0.2743475139141083, -0.08622674643993378, 0.2188045233488083, -0.17290106415748596, 0.125210240483284, 0.21226735413074493, 0.11292625963687897, 0.19122180342674255, -0.09991607815027237, 0.03914066031575203, 0.024580974131822586, -0.0626072883605957, -0.06298084557056427, 0.05659971386194229, -0.13498327136039734, 0.026237918063998222, -0.37771472334861755, 0.3072396218776703, 0.4688585102558136, 0.37331491708755493, 0.08490081876516342, -0.16900604963302612, -0.2942098081111908, 0.3519141376018524, 0.44367823004722595, -0.2712094187736511, -0.2997954487800598, 0.3400833308696747, 0.031671687960624695, 0.08025261014699936, 0.29780980944633484, 0.12069772183895111, 0.01687762141227722, -0.06601899862289429, -0.0616539902985096, 0.43832919001579285, -0.2243587076663971, 0.09864912927150726, 0.3763611912727356, -0.11791075021028519, 0.10206827521324158, 0.4660079777240753, 0.45983049273490906, -0.12903739511966705, 0.42913293838500977, 0.28102606534957886, 0.32289186120033264, 0.18441079556941986, 0.06542183458805084, -0.06175783649086952, -0.06833362579345703, 0.10035821050405502, 0.37581777572631836, 0.026686957105994225, -0.00188975699711591, -0.0424223430454731, -0.11278416961431503, -0.12941689789295197, -0.23608361184597015, 0.1606740802526474, 0.10093159228563309, -0.1693972498178482, -0.18161018192768097, -0.2603725492954254, -0.22802020609378815, -0.0006114232819527388, -0.11559728533029556, -0.16853436827659607, -0.21658971905708313, 0.21448221802711487, -0.3471333384513855, 0.043184272944927216, -0.3171151578426361, -0.1418994665145874, -0.01054866798222065, 0.2559111714363098, -0.04842853173613548, 0.1823415756225586, 0.0019288506591692567, 0.11732286214828491, 0.5018293857574463, 0.25338220596313477, 0.07672417163848877, 0.015631191432476044, 0.2462325245141983, -0.3414164185523987, -0.06262221932411194, -0.2673744559288025, -0.03052646853029728, 0.08706437051296234, 0.16308261454105377, -0.054288800805807114, 0.2762838304042816, 0.3385392427444458, -0.27531516551971436, 0.40377989411354065, 0.30573585629463196, 0.06839042901992798, -0.05608771741390228, 0.004726183135062456, -0.08908107876777649, -0.18973879516124725, -0.05137081444263458, -0.26389333605766296, -0.16036014258861542, -0.08625151216983795, 0.36119380593299866, -0.11495213955640793, 0.18315114080905914, -0.07910922169685364, 0.1873672753572464, 0.12706348299980164, 0.22992849349975586, 0.14278647303581238, 0.1625109761953354, -0.13000495731830597, 0.04399394616484642, -0.5106804966926575, 0.09350019693374634, -0.0252714641392231, -0.19106468558311462, 0.06404909491539001, -0.11830132454633713, 0.16426515579223633, 0.02876446396112442, 0.342704176902771, -0.018047336488962173, -0.024630703032016754, -0.09247472882270813, -0.4382067322731018, -0.15894126892089844, 0.06995408236980438, 0.14757691323757172, 0.1809769719839096, -0.014562174677848816, 0.0536261610686779, 0.02464744821190834, 0.20296044647693634, -0.12361147254705429, 0.24721840023994446, 0.019863666966557503, 0.12321437895298004, 0.23416247963905334, -0.16943620145320892, 0.6944535970687866, -0.02678779326379299, 0.036818042397499084, 0.018638744950294495, -0.296390175819397, -0.21624132990837097, 0.3615373969078064, 0.11817561089992523, 0.13295204937458038, -0.0913887545466423, 0.01750791259109974, -0.04583068564534187, -0.20143215358257294, -0.05294140800833702, 0.37011176347732544, -0.1438450813293457, 0.08153417706489563, 0.07610755413770676, -0.22473828494548798, 0.08867228776216507, 0.018070805817842484, 0.054790396243333817, 0.23715540766716003, 0.01923763006925583, -0.2624976634979248, 0.5099202990531921, 0.0213446207344532, -0.173807755112648, 0.1351577639579773, 0.21183739602565765, 0.3079356253147125, -0.21073545515537262, -0.34720534086227417, -0.041816506534814835, 0.47881537675857544, -0.2127903699874878, -0.2042180597782135, -0.08623277395963669, -0.14241501688957214, -0.029464326798915863, -0.03561779111623764, 0.28868526220321655, 0.11922549456357956, -0.3408139944076538, 0.011251868680119514, 0.01897900551557541 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
thanks for the tip. very strange :/ I'll check my datasets version as well. I will have more similar experiments soon so I'll let you know if I manage to get rid of this.
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
34
Question/problem with dataset labels
[ -0.05179116129875183, -0.21751292049884796, -0.2778059244155884, 0.39635148644447327, 0.18013565242290497, 0.095916748046875, 0.639014482498169, -0.16329225897789001, 0.043602678924798965, 0.1830817312002182, -0.03413020819425583, 0.19652587175369263, 0.03208814188838005, 0.27017244696617126, -0.24914272129535675, -0.04802030324935913, 0.0236810352653265, 0.0577920600771904, -0.06265751272439957, -0.26629331707954407, -0.3142566382884979, -0.16492748260498047, -0.24027857184410095, 0.2200353443622589, -0.33715102076530457, -0.3127879202365875, 0.2183663547039032, -0.08764714747667313, -0.07939231395721436, -0.30890968441963196, -0.018990006297826767, 0.3558143079280853, -0.08595792949199677, 0.3650980591773987, -0.00009506772039458156, -0.2950174808502197, 0.1170642077922821, 0.1602071225643158, -0.2709449231624603, 0.05101911351084709, -0.5606186389923096, -0.03664175793528557, -0.1473913937807083, -0.29139089584350586, 0.09928679466247559, -0.26297813653945923, -0.18750478327274323, -0.2606866955757141, -0.019028063863515854, -0.05523292347788811, 0.4295872151851654, -0.0646858885884285, -0.19726325571537018, -0.07204433530569077, 0.26497724652290344, 0.11390095204114914, -0.03511706367135048, 0.08140736073255539, 0.2221834808588028, 0.09655710309743881, 0.0796545222401619, 0.5501314997673035, 0.11378692090511322, 0.0420924574136734, 0.16238194704055786, 0.06847439706325531, 0.09851545095443726, -0.2697941064834595, 0.25092583894729614, 0.24967598915100098, 0.9304397106170654, -0.20284438133239746, -0.42117011547088623, -0.13567864894866943, -0.01123305968940258, -0.2081427425146103, -0.016119109466671944, 0.09661144763231277, 0.26768121123313904, -0.03383904695510864, -0.16096363961696625, 0.0355990007519722, -0.09825370460748672, 0.03662000223994255, -0.2146671563386917, 0.4087263345718384, -0.181715726852417, 0.16363756358623505, -0.043609369546175, -0.2892742156982422, 0.2763553261756897, -0.1130824089050293, 0.04765958711504936, 0.054455939680337906, 0.07219187915325165, -0.06053496524691582, -0.18300563097000122, 0.1690821498632431, 0.02224176935851574, -0.016762390732765198, -0.12723112106323242, -0.015326603315770626, -0.20004382729530334, 0.08348527550697327, 0.3342582881450653, 0.14225344359874725, 0.44438931345939636, 0.31885045766830444, 0.08727413415908813, -0.2514932453632355, -0.2747633159160614, -0.015871334820985794, -0.1965864896774292, -0.14544284343719482, 0.27759796380996704, -0.06875172257423401, 0.025758730247616768, -0.3966420888900757, -0.3808620274066925, 0.20509864389896393, -0.062227506190538406, -0.22249101102352142, 0.19189099967479706, 0.17748084664344788, 0.060006532818078995, 0.12765759229660034, -0.13420453667640686, 0.0888991728425026, 0.08518675714731216, -0.32523971796035767, -0.36390888690948486, -0.05648023262619972, -0.19885246455669403, -0.16898740828037262, -0.08226040750741959, 0.22393949329853058, 0.15992896258831024, -0.08882266283035278, 0.08136686682701111, -0.08286445587873459, -0.11337850987911224, -0.1564655303955078, -0.006243622861802578, 0.04013219475746155, -0.24592529237270355, 0.2842738926410675, 0.004333839286118746, -0.3394429087638855, -0.07301552593708038, 0.1193431094288826, -0.24562066793441772, 0.24642911553382874, -0.03677533566951752, 0.40180733799934387, 0.1422862708568573, -0.1974281519651413, -0.12469872087240219, 0.07066155225038528, 0.0236221831291914, -0.03424685448408127, 0.08485917001962662, -0.22218142449855804, -0.033804718405008316, -0.11228828132152557, -0.11945696920156479, 0.14098526537418365, -0.5544857382774353, -0.12150400131940842, -0.022586429491639137, -0.12124664336442947, 0.13657709956169128, 0.13191024959087372, -0.04350690916180611, 0.08635202795267105, 0.029607968404889107, 0.13774900138378143, 0.3674216866493225, -0.49529367685317993, -0.4145351052284241, 0.02491864562034607, -0.07653914391994476, -0.30920228362083435, 0.09475627541542053, 0.10315932333469391, 0.12075159698724747, -0.08960136026144028, 0.0038961018435657024, -0.23604625463485718, -0.059542879462242126, -0.10709092020988464, -0.21098124980926514, 0.11849993467330933, 0.18647544085979462, 0.06787849962711334, -0.0631333440542221, 0.2220732718706131, 0.08964487165212631, 0.0053906748071312904, 0.012559744529426098, 0.03157925605773926, 0.0856030285358429, 0.3199947476387024, 0.11948387324810028, -0.03809220343828201, -0.05848177522420883, -0.06569846719503403, -0.356695294380188, -0.039232924580574036, 0.10047843307256699, 0.07753375172615051, 0.222591370344162, -0.12132313847541809, -0.3977915942668915, -0.04976392909884453, -0.0008861148380674422, 0.19673104584217072, 0.2722945213317871, 0.014302595518529415, -0.3099406957626343, -0.18542379140853882, -0.03608047217130661, 0.09277833253145218, -0.11555314809083939, 0.05348748713731766, 0.09221551567316055, 0.018513988703489304, 0.12153587490320206, 0.02198353409767151, -0.009167716838419437, 0.17004048824310303, 0.4012856185436249, 0.32533425092697144, 0.03316761925816536, 0.1049460843205452, -0.01705165021121502, -0.0903715118765831, 0.12388461083173752, 0.23619382083415985, 0.004543138202279806, -0.11608118563890457, 0.1490691751241684, -0.28983810544013977, 0.0647159069776535, -0.03551741689443588, -0.19635511934757233, 0.058805204927921295, -0.20307160913944244, 0.17087870836257935, -0.08717726916074753, -0.09524157643318176, 0.14201019704341888, -0.15825092792510986, -0.02465151622891426, -0.39532342553138733, 0.12217789143323898, -0.053268689662218094, 0.2785292863845825, 0.30014854669570923, -0.2768007814884186, 0.39596810936927795, 0.5502462387084961, -0.04492522403597832, 0.06628098338842392, -0.05838920176029205, -0.19084762036800385, 0.24931028485298157, 0.2169860452413559, 0.3511831760406494, 0.17801159620285034, 0.4204551875591278, 0.07060454040765762, -0.08676600456237793, -0.21720825135707855, -0.24045275151729584, -0.020342081785202026, 0.0038647500332444906, -0.0020102711860090494, -0.05364600196480751, -0.017045585438609123, -0.18909740447998047, 0.047229163348674774, -0.17452354729175568, 0.11050615459680557, 0.02393314428627491, -0.33424636721611023, 0.08098221570253372, -0.354787677526474, -0.3686877191066742, -0.20167705416679382, -0.2749284505844116, -0.2785089612007141, -0.437177836894989, 0.12367109209299088, 0.04824649915099144, -0.2050635814666748, 0.3375057280063629, 0.03559768572449684, 0.21312756836414337, -0.11554348468780518, 0.2912864685058594, 0.020036375150084496, -0.4666030704975128, -0.1717081218957901, 0.2661103308200836, -0.12178754061460495, 0.17772074043750763, 0.37325599789619446, -0.2697919011116028, 0.12662479281425476, -0.08133718371391296, -0.09352041780948639, 0.1742730438709259, 0.019178543239831924, 0.07313569635152817, -0.11210460215806961, 0.17789241671562195, -0.24276305735111237, 0.02790970914065838, 0.21959549188613892, 0.14074066281318665, 0.011768011376261711, -0.26862919330596924, 0.07263700664043427, -0.1478596180677414, -0.04917091876268387, -0.26474013924598694, -0.2983293831348419, -0.17055603861808777, 0.14768899977207184, -0.0024459112901240587, 0.10623189806938171, 0.22800029814243317, -0.15874989330768585, -0.07294777035713196, 0.05687721446156502, 0.1522216796875, -0.41331860423088074, -0.35867035388946533, 0.22566749155521393, -0.14983732998371124, -0.15883488953113556, -0.005820923950523138, 0.10525504499673843, 0.1827724426984787, 0.07640449702739716, -0.14073266088962555, -0.12297163158655167, 0.028202852234244347, -0.02585121989250183, 0.18582391738891602, 0.30632156133651733, 0.026276206597685814, 0.05321035906672478, -0.25855258107185364, -0.3281501531600952, -0.22407299280166626, 0.3522090017795563, -0.15288060903549194, 0.16389794647693634, -0.062424175441265106, -0.007893539033830166, -0.38382676243782043, 0.3719574511051178, 0.004053550772368908, -0.26540154218673706, 0.04685761407017708, -0.04099409282207489, 0.26804953813552856, 0.13586625456809998, -0.18040421605110168, 0.12299054116010666, 0.23077602684497833, 0.17651021480560303, 0.19369877874851227, -0.0015948496293276548, -0.04662617668509483, 0.0961797684431076, 0.29274982213974, -0.3982168138027191, -0.040570423007011414, -0.13547387719154358, -0.015856634825468063, -0.10448110103607178, 0.17407086491584778, -0.04454139620065689, -0.16881053149700165, -0.10596457868814468, -0.19520124793052673, -0.1300077885389328, 0.000224150629946962, -0.1936303973197937, -0.5790835022926331, 0.03635292500257492, 0.06546203047037125, 0.15552441775798798, 0.05905808508396149, 0.13393570482730865, -0.22252978384494781, 0.15795117616653442, 0.07685692608356476, 0.33981627225875854, 0.6001866459846497, -0.34886160492897034, 0.2287294566631317, 0.11988172680139542, 0.20947733521461487, -0.18323493003845215, 0.04948360100388527, -0.15454068779945374, 0.07577415555715561, 0.07116053253412247, 0.09391935169696808, -0.20303423702716827, -0.06590282171964645, 0.17124365270137787, 0.12287583202123642, -0.167879119515419, -0.12901851534843445, -0.016840249300003052, -0.003003204707056284, -0.024050092324614525, 0.018821831792593002, 0.11355970054864883, 0.05314347520470619, -0.09251243621110916, -0.01858636923134327, -0.026905888691544533, -0.1011350154876709, 0.1421116590499878, 0.17487996816635132, 0.3000011444091797, 0.15732166171073914, 0.031748998910188675, 0.2631475627422333, 0.41016387939453125, 0.44781699776649475, 0.5231934785842896, -0.40367060899734497, -0.36146965622901917, 0.11573687940835953, -0.29326382279396057, 0.37816566228866577, 0.2151259332895279, 0.21761631965637207, 0.05495762825012207, -0.02589910849928856, 0.1699206829071045, -0.26869362592697144, 0.1604357808828354, 0.058397918939590454, 0.16323691606521606, -0.36630475521087646, -0.4160359501838684, 0.43357545137405396, 0.08796833455562592, -0.26360559463500977, 0.3521565794944763, 0.2691616714000702, -0.26815861463546753, 0.0633142814040184, 0.05196890980005264, 1.0433212518692017, 0.009994203224778175, -0.1919669657945633, -0.19552181661128998, -0.3553740084171295, 0.5523369312286377, -0.10171391814947128, -0.09534862637519836, -0.4379242956638336, -0.39676252007484436, -0.02557428739964962, -0.10829208046197891, -0.041106484830379486, 0.601945698261261, -0.034250613301992416, 0.25410765409469604, -0.18390598893165588, 0.14889289438724518, 0.018081167712807655, 0.05152498185634613, 0.2613600194454193, -0.17134897410869598, -0.18050889670848846, 0.27752354741096497, -0.04319397732615471, -0.035875242203474045, -0.2183718979358673, 0.15897490084171295, -0.22247083485126495, -0.017955375835299492, -0.1481138914823532, -0.044473931193351746, -0.13862141966819763, -0.04848013073205948, -0.04104931280016899, -0.17121389508247375, -0.12541358172893524, 0.1407732516527176, 0.5230369567871094, 0.0774671733379364, -0.05006040260195732, 0.19409672915935516, 0.18444840610027313, 0.2618159055709839, -0.01612316444516182, 0.12346280366182327, 0.2575564980506897, 0.04524911195039749, -0.27643442153930664, -0.12432119250297546, 0.1304226666688919, 0.005346499849110842, -0.42738667130470276, -0.009280295111238956, -0.030253207311034203, -0.3861844837665558, 0.1360757052898407, -0.11021580547094345, 0.3035733997821808, -0.13033427298069, 0.31747594475746155, 0.14737878739833832, 0.13700172305107117, 0.21221855282783508, 0.33094191551208496, -0.13054552674293518, -0.2820080816745758, 0.24151992797851562, -0.00453548226505518, 0.19290383160114288, 0.0735805407166481, -0.11744751036167145, -0.4047917127609253, -0.34503665566444397, 0.17751944065093994, 0.2344295233488083, -0.4004965126514435, 0.03291149064898491, 0.026807675138115883, -0.24790377914905548, -0.11902915686368942, 0.13538327813148499, 0.0261632539331913, 0.22538986802101135, -0.057174429297447205, -0.27485400438308716, -0.33874598145484924, 0.2098543643951416, -0.15309415757656097, 0.16516603529453278, 0.03275354579091072, 0.025275198742747307, -0.06666935235261917, 0.13039523363113403, -0.5222278833389282, -0.16673260927200317, -0.0981978327035904, 0.1981472373008728, 0.1798616498708725, 0.1627746969461441, -0.009137184359133244, -0.18658612668514252, 0.3036806881427765, -0.02620632015168667, -0.0024828012101352215, -0.3995093107223511, -0.17961886525154114, 0.03926074132323265, -0.007506123743951321, -0.20701058208942413, -0.19549153745174408, -0.1536857634782791, 0.05507127568125725, -0.08210001140832901, -0.037652626633644104, 0.2857872545719147, 0.2225208431482315, 0.2743475139141083, -0.08622674643993378, 0.2188045233488083, -0.17290106415748596, 0.125210240483284, 0.21226735413074493, 0.11292625963687897, 0.19122180342674255, -0.09991607815027237, 0.03914066031575203, 0.024580974131822586, -0.0626072883605957, -0.06298084557056427, 0.05659971386194229, -0.13498327136039734, 0.026237918063998222, -0.37771472334861755, 0.3072396218776703, 0.4688585102558136, 0.37331491708755493, 0.08490081876516342, -0.16900604963302612, -0.2942098081111908, 0.3519141376018524, 0.44367823004722595, -0.2712094187736511, -0.2997954487800598, 0.3400833308696747, 0.031671687960624695, 0.08025261014699936, 0.29780980944633484, 0.12069772183895111, 0.01687762141227722, -0.06601899862289429, -0.0616539902985096, 0.43832919001579285, -0.2243587076663971, 0.09864912927150726, 0.3763611912727356, -0.11791075021028519, 0.10206827521324158, 0.4660079777240753, 0.45983049273490906, -0.12903739511966705, 0.42913293838500977, 0.28102606534957886, 0.32289186120033264, 0.18441079556941986, 0.06542183458805084, -0.06175783649086952, -0.06833362579345703, 0.10035821050405502, 0.37581777572631836, 0.026686957105994225, -0.00188975699711591, -0.0424223430454731, -0.11278416961431503, -0.12941689789295197, -0.23608361184597015, 0.1606740802526474, 0.10093159228563309, -0.1693972498178482, -0.18161018192768097, -0.2603725492954254, -0.22802020609378815, -0.0006114232819527388, -0.11559728533029556, -0.16853436827659607, -0.21658971905708313, 0.21448221802711487, -0.3471333384513855, 0.043184272944927216, -0.3171151578426361, -0.1418994665145874, -0.01054866798222065, 0.2559111714363098, -0.04842853173613548, 0.1823415756225586, 0.0019288506591692567, 0.11732286214828491, 0.5018293857574463, 0.25338220596313477, 0.07672417163848877, 0.015631191432476044, 0.2462325245141983, -0.3414164185523987, -0.06262221932411194, -0.2673744559288025, -0.03052646853029728, 0.08706437051296234, 0.16308261454105377, -0.054288800805807114, 0.2762838304042816, 0.3385392427444458, -0.27531516551971436, 0.40377989411354065, 0.30573585629463196, 0.06839042901992798, -0.05608771741390228, 0.004726183135062456, -0.08908107876777649, -0.18973879516124725, -0.05137081444263458, -0.26389333605766296, -0.16036014258861542, -0.08625151216983795, 0.36119380593299866, -0.11495213955640793, 0.18315114080905914, -0.07910922169685364, 0.1873672753572464, 0.12706348299980164, 0.22992849349975586, 0.14278647303581238, 0.1625109761953354, -0.13000495731830597, 0.04399394616484642, -0.5106804966926575, 0.09350019693374634, -0.0252714641392231, -0.19106468558311462, 0.06404909491539001, -0.11830132454633713, 0.16426515579223633, 0.02876446396112442, 0.342704176902771, -0.018047336488962173, -0.024630703032016754, -0.09247472882270813, -0.4382067322731018, -0.15894126892089844, 0.06995408236980438, 0.14757691323757172, 0.1809769719839096, -0.014562174677848816, 0.0536261610686779, 0.02464744821190834, 0.20296044647693634, -0.12361147254705429, 0.24721840023994446, 0.019863666966557503, 0.12321437895298004, 0.23416247963905334, -0.16943620145320892, 0.6944535970687866, -0.02678779326379299, 0.036818042397499084, 0.018638744950294495, -0.296390175819397, -0.21624132990837097, 0.3615373969078064, 0.11817561089992523, 0.13295204937458038, -0.0913887545466423, 0.01750791259109974, -0.04583068564534187, -0.20143215358257294, -0.05294140800833702, 0.37011176347732544, -0.1438450813293457, 0.08153417706489563, 0.07610755413770676, -0.22473828494548798, 0.08867228776216507, 0.018070805817842484, 0.054790396243333817, 0.23715540766716003, 0.01923763006925583, -0.2624976634979248, 0.5099202990531921, 0.0213446207344532, -0.173807755112648, 0.1351577639579773, 0.21183739602565765, 0.3079356253147125, -0.21073545515537262, -0.34720534086227417, -0.041816506534814835, 0.47881537675857544, -0.2127903699874878, -0.2042180597782135, -0.08623277395963669, -0.14241501688957214, -0.029464326798915863, -0.03561779111623764, 0.28868526220321655, 0.11922549456357956, -0.3408139944076538, 0.011251868680119514, 0.01897900551557541 ]
https://github.com/huggingface/datasets/issues/1989
Question/problem with dataset labels
No problem at all. I thought I'd be able to solve this but I'm unable to replicate the issue :/
Hi, I'm using a dataset with two labels "nurse" and "not nurse". For whatever reason (that I don't understand), I get an error that I think comes from the datasets package (using csv). Everything works fine if the labels are "nurse" and "surgeon". This is the trace I get: ``` File "../../../models/tr-4.3.2/run_puppets.py", line 523, in <module> main() File "../../../models/tr-4.3.2/run_puppets.py", line 249, in main datasets = load_dataset("csv", data_files=data_files) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 572, in download_and_prepare self._download_and_prepare( File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/builder.py", line 1028, in _prepare_split writer.write_table(table) File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/datasets/arrow_writer.py", line 292, in write_table pa_table = pa_table.cast(self._schema) File "pyarrow/table.pxi", line 1311, in pyarrow.lib.Table.cast File "pyarrow/table.pxi", line 265, in pyarrow.lib.ChunkedArray.cast File "/dccstor/redrug_ier/envs/last-tr/lib/python3.8/site-packages/pyarrow/compute.py", line 87, in cast return call_function("cast", [arr], options) File "pyarrow/_compute.pyx", line 298, in pyarrow._compute.call_function File "pyarrow/_compute.pyx", line 192, in pyarrow._compute.Function.call File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Failed to parse string: not nurse ``` Any ideas how to fix this? For now, I'll probably make them numeric.
20
Question/problem with dataset labels
[ -0.05179116129875183, -0.21751292049884796, -0.2778059244155884, 0.39635148644447327, 0.18013565242290497, 0.095916748046875, 0.639014482498169, -0.16329225897789001, 0.043602678924798965, 0.1830817312002182, -0.03413020819425583, 0.19652587175369263, 0.03208814188838005, 0.27017244696617126, -0.24914272129535675, -0.04802030324935913, 0.0236810352653265, 0.0577920600771904, -0.06265751272439957, -0.26629331707954407, -0.3142566382884979, -0.16492748260498047, -0.24027857184410095, 0.2200353443622589, -0.33715102076530457, -0.3127879202365875, 0.2183663547039032, -0.08764714747667313, -0.07939231395721436, -0.30890968441963196, -0.018990006297826767, 0.3558143079280853, -0.08595792949199677, 0.3650980591773987, -0.00009506772039458156, -0.2950174808502197, 0.1170642077922821, 0.1602071225643158, -0.2709449231624603, 0.05101911351084709, -0.5606186389923096, -0.03664175793528557, -0.1473913937807083, -0.29139089584350586, 0.09928679466247559, -0.26297813653945923, -0.18750478327274323, -0.2606866955757141, -0.019028063863515854, -0.05523292347788811, 0.4295872151851654, -0.0646858885884285, -0.19726325571537018, -0.07204433530569077, 0.26497724652290344, 0.11390095204114914, -0.03511706367135048, 0.08140736073255539, 0.2221834808588028, 0.09655710309743881, 0.0796545222401619, 0.5501314997673035, 0.11378692090511322, 0.0420924574136734, 0.16238194704055786, 0.06847439706325531, 0.09851545095443726, -0.2697941064834595, 0.25092583894729614, 0.24967598915100098, 0.9304397106170654, -0.20284438133239746, -0.42117011547088623, -0.13567864894866943, -0.01123305968940258, -0.2081427425146103, -0.016119109466671944, 0.09661144763231277, 0.26768121123313904, -0.03383904695510864, -0.16096363961696625, 0.0355990007519722, -0.09825370460748672, 0.03662000223994255, -0.2146671563386917, 0.4087263345718384, -0.181715726852417, 0.16363756358623505, -0.043609369546175, -0.2892742156982422, 0.2763553261756897, -0.1130824089050293, 0.04765958711504936, 0.054455939680337906, 0.07219187915325165, -0.06053496524691582, -0.18300563097000122, 0.1690821498632431, 0.02224176935851574, -0.016762390732765198, -0.12723112106323242, -0.015326603315770626, -0.20004382729530334, 0.08348527550697327, 0.3342582881450653, 0.14225344359874725, 0.44438931345939636, 0.31885045766830444, 0.08727413415908813, -0.2514932453632355, -0.2747633159160614, -0.015871334820985794, -0.1965864896774292, -0.14544284343719482, 0.27759796380996704, -0.06875172257423401, 0.025758730247616768, -0.3966420888900757, -0.3808620274066925, 0.20509864389896393, -0.062227506190538406, -0.22249101102352142, 0.19189099967479706, 0.17748084664344788, 0.060006532818078995, 0.12765759229660034, -0.13420453667640686, 0.0888991728425026, 0.08518675714731216, -0.32523971796035767, -0.36390888690948486, -0.05648023262619972, -0.19885246455669403, -0.16898740828037262, -0.08226040750741959, 0.22393949329853058, 0.15992896258831024, -0.08882266283035278, 0.08136686682701111, -0.08286445587873459, -0.11337850987911224, -0.1564655303955078, -0.006243622861802578, 0.04013219475746155, -0.24592529237270355, 0.2842738926410675, 0.004333839286118746, -0.3394429087638855, -0.07301552593708038, 0.1193431094288826, -0.24562066793441772, 0.24642911553382874, -0.03677533566951752, 0.40180733799934387, 0.1422862708568573, -0.1974281519651413, -0.12469872087240219, 0.07066155225038528, 0.0236221831291914, -0.03424685448408127, 0.08485917001962662, -0.22218142449855804, -0.033804718405008316, -0.11228828132152557, -0.11945696920156479, 0.14098526537418365, -0.5544857382774353, -0.12150400131940842, -0.022586429491639137, -0.12124664336442947, 0.13657709956169128, 0.13191024959087372, -0.04350690916180611, 0.08635202795267105, 0.029607968404889107, 0.13774900138378143, 0.3674216866493225, -0.49529367685317993, -0.4145351052284241, 0.02491864562034607, -0.07653914391994476, -0.30920228362083435, 0.09475627541542053, 0.10315932333469391, 0.12075159698724747, -0.08960136026144028, 0.0038961018435657024, -0.23604625463485718, -0.059542879462242126, -0.10709092020988464, -0.21098124980926514, 0.11849993467330933, 0.18647544085979462, 0.06787849962711334, -0.0631333440542221, 0.2220732718706131, 0.08964487165212631, 0.0053906748071312904, 0.012559744529426098, 0.03157925605773926, 0.0856030285358429, 0.3199947476387024, 0.11948387324810028, -0.03809220343828201, -0.05848177522420883, -0.06569846719503403, -0.356695294380188, -0.039232924580574036, 0.10047843307256699, 0.07753375172615051, 0.222591370344162, -0.12132313847541809, -0.3977915942668915, -0.04976392909884453, -0.0008861148380674422, 0.19673104584217072, 0.2722945213317871, 0.014302595518529415, -0.3099406957626343, -0.18542379140853882, -0.03608047217130661, 0.09277833253145218, -0.11555314809083939, 0.05348748713731766, 0.09221551567316055, 0.018513988703489304, 0.12153587490320206, 0.02198353409767151, -0.009167716838419437, 0.17004048824310303, 0.4012856185436249, 0.32533425092697144, 0.03316761925816536, 0.1049460843205452, -0.01705165021121502, -0.0903715118765831, 0.12388461083173752, 0.23619382083415985, 0.004543138202279806, -0.11608118563890457, 0.1490691751241684, -0.28983810544013977, 0.0647159069776535, -0.03551741689443588, -0.19635511934757233, 0.058805204927921295, -0.20307160913944244, 0.17087870836257935, -0.08717726916074753, -0.09524157643318176, 0.14201019704341888, -0.15825092792510986, -0.02465151622891426, -0.39532342553138733, 0.12217789143323898, -0.053268689662218094, 0.2785292863845825, 0.30014854669570923, -0.2768007814884186, 0.39596810936927795, 0.5502462387084961, -0.04492522403597832, 0.06628098338842392, -0.05838920176029205, -0.19084762036800385, 0.24931028485298157, 0.2169860452413559, 0.3511831760406494, 0.17801159620285034, 0.4204551875591278, 0.07060454040765762, -0.08676600456237793, -0.21720825135707855, -0.24045275151729584, -0.020342081785202026, 0.0038647500332444906, -0.0020102711860090494, -0.05364600196480751, -0.017045585438609123, -0.18909740447998047, 0.047229163348674774, -0.17452354729175568, 0.11050615459680557, 0.02393314428627491, -0.33424636721611023, 0.08098221570253372, -0.354787677526474, -0.3686877191066742, -0.20167705416679382, -0.2749284505844116, -0.2785089612007141, -0.437177836894989, 0.12367109209299088, 0.04824649915099144, -0.2050635814666748, 0.3375057280063629, 0.03559768572449684, 0.21312756836414337, -0.11554348468780518, 0.2912864685058594, 0.020036375150084496, -0.4666030704975128, -0.1717081218957901, 0.2661103308200836, -0.12178754061460495, 0.17772074043750763, 0.37325599789619446, -0.2697919011116028, 0.12662479281425476, -0.08133718371391296, -0.09352041780948639, 0.1742730438709259, 0.019178543239831924, 0.07313569635152817, -0.11210460215806961, 0.17789241671562195, -0.24276305735111237, 0.02790970914065838, 0.21959549188613892, 0.14074066281318665, 0.011768011376261711, -0.26862919330596924, 0.07263700664043427, -0.1478596180677414, -0.04917091876268387, -0.26474013924598694, -0.2983293831348419, -0.17055603861808777, 0.14768899977207184, -0.0024459112901240587, 0.10623189806938171, 0.22800029814243317, -0.15874989330768585, -0.07294777035713196, 0.05687721446156502, 0.1522216796875, -0.41331860423088074, -0.35867035388946533, 0.22566749155521393, -0.14983732998371124, -0.15883488953113556, -0.005820923950523138, 0.10525504499673843, 0.1827724426984787, 0.07640449702739716, -0.14073266088962555, -0.12297163158655167, 0.028202852234244347, -0.02585121989250183, 0.18582391738891602, 0.30632156133651733, 0.026276206597685814, 0.05321035906672478, -0.25855258107185364, -0.3281501531600952, -0.22407299280166626, 0.3522090017795563, -0.15288060903549194, 0.16389794647693634, -0.062424175441265106, -0.007893539033830166, -0.38382676243782043, 0.3719574511051178, 0.004053550772368908, -0.26540154218673706, 0.04685761407017708, -0.04099409282207489, 0.26804953813552856, 0.13586625456809998, -0.18040421605110168, 0.12299054116010666, 0.23077602684497833, 0.17651021480560303, 0.19369877874851227, -0.0015948496293276548, -0.04662617668509483, 0.0961797684431076, 0.29274982213974, -0.3982168138027191, -0.040570423007011414, -0.13547387719154358, -0.015856634825468063, -0.10448110103607178, 0.17407086491584778, -0.04454139620065689, -0.16881053149700165, -0.10596457868814468, -0.19520124793052673, -0.1300077885389328, 0.000224150629946962, -0.1936303973197937, -0.5790835022926331, 0.03635292500257492, 0.06546203047037125, 0.15552441775798798, 0.05905808508396149, 0.13393570482730865, -0.22252978384494781, 0.15795117616653442, 0.07685692608356476, 0.33981627225875854, 0.6001866459846497, -0.34886160492897034, 0.2287294566631317, 0.11988172680139542, 0.20947733521461487, -0.18323493003845215, 0.04948360100388527, -0.15454068779945374, 0.07577415555715561, 0.07116053253412247, 0.09391935169696808, -0.20303423702716827, -0.06590282171964645, 0.17124365270137787, 0.12287583202123642, -0.167879119515419, -0.12901851534843445, -0.016840249300003052, -0.003003204707056284, -0.024050092324614525, 0.018821831792593002, 0.11355970054864883, 0.05314347520470619, -0.09251243621110916, -0.01858636923134327, -0.026905888691544533, -0.1011350154876709, 0.1421116590499878, 0.17487996816635132, 0.3000011444091797, 0.15732166171073914, 0.031748998910188675, 0.2631475627422333, 0.41016387939453125, 0.44781699776649475, 0.5231934785842896, -0.40367060899734497, -0.36146965622901917, 0.11573687940835953, -0.29326382279396057, 0.37816566228866577, 0.2151259332895279, 0.21761631965637207, 0.05495762825012207, -0.02589910849928856, 0.1699206829071045, -0.26869362592697144, 0.1604357808828354, 0.058397918939590454, 0.16323691606521606, -0.36630475521087646, -0.4160359501838684, 0.43357545137405396, 0.08796833455562592, -0.26360559463500977, 0.3521565794944763, 0.2691616714000702, -0.26815861463546753, 0.0633142814040184, 0.05196890980005264, 1.0433212518692017, 0.009994203224778175, -0.1919669657945633, -0.19552181661128998, -0.3553740084171295, 0.5523369312286377, -0.10171391814947128, -0.09534862637519836, -0.4379242956638336, -0.39676252007484436, -0.02557428739964962, -0.10829208046197891, -0.041106484830379486, 0.601945698261261, -0.034250613301992416, 0.25410765409469604, -0.18390598893165588, 0.14889289438724518, 0.018081167712807655, 0.05152498185634613, 0.2613600194454193, -0.17134897410869598, -0.18050889670848846, 0.27752354741096497, -0.04319397732615471, -0.035875242203474045, -0.2183718979358673, 0.15897490084171295, -0.22247083485126495, -0.017955375835299492, -0.1481138914823532, -0.044473931193351746, -0.13862141966819763, -0.04848013073205948, -0.04104931280016899, -0.17121389508247375, -0.12541358172893524, 0.1407732516527176, 0.5230369567871094, 0.0774671733379364, -0.05006040260195732, 0.19409672915935516, 0.18444840610027313, 0.2618159055709839, -0.01612316444516182, 0.12346280366182327, 0.2575564980506897, 0.04524911195039749, -0.27643442153930664, -0.12432119250297546, 0.1304226666688919, 0.005346499849110842, -0.42738667130470276, -0.009280295111238956, -0.030253207311034203, -0.3861844837665558, 0.1360757052898407, -0.11021580547094345, 0.3035733997821808, -0.13033427298069, 0.31747594475746155, 0.14737878739833832, 0.13700172305107117, 0.21221855282783508, 0.33094191551208496, -0.13054552674293518, -0.2820080816745758, 0.24151992797851562, -0.00453548226505518, 0.19290383160114288, 0.0735805407166481, -0.11744751036167145, -0.4047917127609253, -0.34503665566444397, 0.17751944065093994, 0.2344295233488083, -0.4004965126514435, 0.03291149064898491, 0.026807675138115883, -0.24790377914905548, -0.11902915686368942, 0.13538327813148499, 0.0261632539331913, 0.22538986802101135, -0.057174429297447205, -0.27485400438308716, -0.33874598145484924, 0.2098543643951416, -0.15309415757656097, 0.16516603529453278, 0.03275354579091072, 0.025275198742747307, -0.06666935235261917, 0.13039523363113403, -0.5222278833389282, -0.16673260927200317, -0.0981978327035904, 0.1981472373008728, 0.1798616498708725, 0.1627746969461441, -0.009137184359133244, -0.18658612668514252, 0.3036806881427765, -0.02620632015168667, -0.0024828012101352215, -0.3995093107223511, -0.17961886525154114, 0.03926074132323265, -0.007506123743951321, -0.20701058208942413, -0.19549153745174408, -0.1536857634782791, 0.05507127568125725, -0.08210001140832901, -0.037652626633644104, 0.2857872545719147, 0.2225208431482315, 0.2743475139141083, -0.08622674643993378, 0.2188045233488083, -0.17290106415748596, 0.125210240483284, 0.21226735413074493, 0.11292625963687897, 0.19122180342674255, -0.09991607815027237, 0.03914066031575203, 0.024580974131822586, -0.0626072883605957, -0.06298084557056427, 0.05659971386194229, -0.13498327136039734, 0.026237918063998222, -0.37771472334861755, 0.3072396218776703, 0.4688585102558136, 0.37331491708755493, 0.08490081876516342, -0.16900604963302612, -0.2942098081111908, 0.3519141376018524, 0.44367823004722595, -0.2712094187736511, -0.2997954487800598, 0.3400833308696747, 0.031671687960624695, 0.08025261014699936, 0.29780980944633484, 0.12069772183895111, 0.01687762141227722, -0.06601899862289429, -0.0616539902985096, 0.43832919001579285, -0.2243587076663971, 0.09864912927150726, 0.3763611912727356, -0.11791075021028519, 0.10206827521324158, 0.4660079777240753, 0.45983049273490906, -0.12903739511966705, 0.42913293838500977, 0.28102606534957886, 0.32289186120033264, 0.18441079556941986, 0.06542183458805084, -0.06175783649086952, -0.06833362579345703, 0.10035821050405502, 0.37581777572631836, 0.026686957105994225, -0.00188975699711591, -0.0424223430454731, -0.11278416961431503, -0.12941689789295197, -0.23608361184597015, 0.1606740802526474, 0.10093159228563309, -0.1693972498178482, -0.18161018192768097, -0.2603725492954254, -0.22802020609378815, -0.0006114232819527388, -0.11559728533029556, -0.16853436827659607, -0.21658971905708313, 0.21448221802711487, -0.3471333384513855, 0.043184272944927216, -0.3171151578426361, -0.1418994665145874, -0.01054866798222065, 0.2559111714363098, -0.04842853173613548, 0.1823415756225586, 0.0019288506591692567, 0.11732286214828491, 0.5018293857574463, 0.25338220596313477, 0.07672417163848877, 0.015631191432476044, 0.2462325245141983, -0.3414164185523987, -0.06262221932411194, -0.2673744559288025, -0.03052646853029728, 0.08706437051296234, 0.16308261454105377, -0.054288800805807114, 0.2762838304042816, 0.3385392427444458, -0.27531516551971436, 0.40377989411354065, 0.30573585629463196, 0.06839042901992798, -0.05608771741390228, 0.004726183135062456, -0.08908107876777649, -0.18973879516124725, -0.05137081444263458, -0.26389333605766296, -0.16036014258861542, -0.08625151216983795, 0.36119380593299866, -0.11495213955640793, 0.18315114080905914, -0.07910922169685364, 0.1873672753572464, 0.12706348299980164, 0.22992849349975586, 0.14278647303581238, 0.1625109761953354, -0.13000495731830597, 0.04399394616484642, -0.5106804966926575, 0.09350019693374634, -0.0252714641392231, -0.19106468558311462, 0.06404909491539001, -0.11830132454633713, 0.16426515579223633, 0.02876446396112442, 0.342704176902771, -0.018047336488962173, -0.024630703032016754, -0.09247472882270813, -0.4382067322731018, -0.15894126892089844, 0.06995408236980438, 0.14757691323757172, 0.1809769719839096, -0.014562174677848816, 0.0536261610686779, 0.02464744821190834, 0.20296044647693634, -0.12361147254705429, 0.24721840023994446, 0.019863666966557503, 0.12321437895298004, 0.23416247963905334, -0.16943620145320892, 0.6944535970687866, -0.02678779326379299, 0.036818042397499084, 0.018638744950294495, -0.296390175819397, -0.21624132990837097, 0.3615373969078064, 0.11817561089992523, 0.13295204937458038, -0.0913887545466423, 0.01750791259109974, -0.04583068564534187, -0.20143215358257294, -0.05294140800833702, 0.37011176347732544, -0.1438450813293457, 0.08153417706489563, 0.07610755413770676, -0.22473828494548798, 0.08867228776216507, 0.018070805817842484, 0.054790396243333817, 0.23715540766716003, 0.01923763006925583, -0.2624976634979248, 0.5099202990531921, 0.0213446207344532, -0.173807755112648, 0.1351577639579773, 0.21183739602565765, 0.3079356253147125, -0.21073545515537262, -0.34720534086227417, -0.041816506534814835, 0.47881537675857544, -0.2127903699874878, -0.2042180597782135, -0.08623277395963669, -0.14241501688957214, -0.029464326798915863, -0.03561779111623764, 0.28868526220321655, 0.11922549456357956, -0.3408139944076538, 0.011251868680119514, 0.01897900551557541 ]
https://github.com/huggingface/datasets/issues/1988
Readme.md is misleading about kinds of datasets?
Hi ! Yes it's possible to use image data. There are already a few of them available (MNIST, CIFAR..)
Hi! At the README.MD, you say: "efficient data pre-processing: simple, fast and reproducible data pre-processing for the above public datasets as well as your own local datasets in CSV/JSON/text. " But here: https://github.com/huggingface/datasets/blob/master/templates/new_dataset_script.py#L82-L117 You mention other kinds of datasets, with images and so on. I'm confused. Is it possible to use it to store, say, imagenet locally?
19
Readme.md is misleading about kinds of datasets?
[ -0.18828777968883514, -0.07391945272684097, -0.22447508573532104, 0.393783837556839, 0.1700298935174942, 0.2516038715839386, 0.3710462749004364, -0.06944603472948074, 0.11309738457202911, -0.20674657821655273, -0.21573621034622192, -0.08791747689247131, 0.14392223954200745, 0.17288142442703247, 0.1648074835538864, 0.14790749549865723, 0.22369523346424103, -0.13917751610279083, 0.0074812378734350204, -0.19488359987735748, -0.18760991096496582, 0.06189258024096489, -0.3943377733230591, -0.09910769015550613, 0.1473429650068283, -0.08432513475418091, 0.2751682996749878, -0.01931072399020195, -0.36352723836898804, -0.2035852074623108, 0.2294677197933197, 0.029404550790786743, -0.05720151215791702, 0.32619068026542664, -0.00010747677879408002, -0.08188974112272263, 0.26115682721138, -0.09904585033655167, -0.08562569320201874, 0.0532432459294796, -0.42090457677841187, -0.13783177733421326, 0.19078204035758972, -0.15407530963420868, 0.05098208039999008, -0.16030211746692657, -0.0204374548047781, -0.17207221686840057, -0.01987939327955246, 0.42621445655822754, 0.2679416835308075, -0.06938888132572174, 0.10457928478717804, -0.1890014111995697, 0.5680143237113953, 0.2697543501853943, -0.11176156252622604, 0.16180938482284546, 0.17776626348495483, 0.3734246492385864, -0.07836135476827621, 0.4106852114200592, -0.21309618651866913, 0.4121260643005371, 0.4664144814014435, 0.07342436909675598, 0.7051214575767517, -0.17068026959896088, 0.3658560514450073, 0.329610139131546, 0.7951532602310181, -0.1298721581697464, -0.31499895453453064, -0.32781097292900085, -0.40385448932647705, 0.18139103055000305, -0.033225562423467636, 0.3567526340484619, -0.07106587290763855, 0.06998074054718018, -0.4546269178390503, 0.1372566670179367, 0.28083109855651855, -0.07950751483440399, -0.3123500943183899, 0.3673025071620941, -0.3529273569583893, 0.23070994019508362, 0.1043342798948288, -0.02335052564740181, 0.5187397599220276, -0.2413625866174698, 0.049268241971731186, -0.16593292355537415, 0.05680125206708908, -0.012312525883316994, -0.24906779825687408, -0.09431770443916321, 0.3302370309829712, -0.3046847879886627, -0.045724838972091675, 0.07480426877737045, -0.13729792833328247, 0.030447108671069145, 0.36621958017349243, -0.4374949634075165, -0.06861286610364914, -0.0773816853761673, 0.06137640029191971, -0.07618681341409683, 0.050553370267152786, -0.022686850279569626, 0.12220960855484009, -0.053022708743810654, -0.06489541381597519, -0.013432307168841362, -0.2623385488986969, -0.3176460862159729, -0.37308469414711, 0.1060178205370903, -0.17164093255996704, -0.24035494029521942, -0.37151986360549927, 0.18652930855751038, -0.05418043211102486, -0.05916686728596687, 0.011719604022800922, 0.2590327858924866, -0.18209208548069, -0.06923808157444, -0.14010223746299744, 0.10192875564098358, -0.24587327241897583, -0.06946569681167603, -0.020161721855401993, 0.2426825314760208, 0.34974589943885803, -0.13617773354053497, 0.02174028567969799, -0.18604281544685364, -0.09865786135196686, -0.08982408046722412, 0.35652169585227966, 0.4760476052761078, 0.11001959443092346, 0.21651411056518555, 0.0686526969075203, -0.25791051983833313, -0.35765376687049866, 0.02179384045302868, -0.5626422762870789, 0.05973042547702789, 0.3246554136276245, 0.23533298075199127, -0.13040976226329803, 0.04621138796210289, -0.009363864548504353, 0.08851053565740585, 0.3016679883003235, -0.043157778680324554, 0.22375474870204926, 0.06208962947130203, -0.0761764794588089, -0.19717369973659515, -0.1014251857995987, 0.16365563869476318, 0.03306180238723755, 0.02688739262521267, -0.18747173249721527, 0.006331965792924166, 0.11596743017435074, 0.21420066058635712, -0.1893998235464096, -0.01939128339290619, -0.13745851814746857, -0.04321005940437317, 0.43056219816207886, -0.42167821526527405, -0.0759706199169159, 0.29487672448158264, 0.2836073338985443, -0.06297333538532257, 0.11134280264377594, -0.06221127137541771, -0.035855893045663834, -0.1199774444103241, 0.17837443947792053, -0.13243164122104645, -0.03372800722718239, 0.0410056933760643, -0.05536581575870514, -0.3141387701034546, 0.10564898699522018, -0.11974140256643295, 0.2044031322002411, -0.1682693362236023, 0.39811334013938904, 0.13344131410121918, 0.37270548939704895, 0.2457536906003952, -0.03378662094473839, 0.27485138177871704, -0.03003966435790062, -0.23365002870559692, 0.046620775014162064, -0.0498761311173439, -0.13630124926567078, -0.2499542087316513, 0.30844923853874207, 0.10669796168804169, 0.2413879930973053, -0.16373012959957123, -0.1711493283510208, -0.23295605182647705, 0.017784589901566505, -0.42393559217453003, 0.26818835735321045, -0.0601506270468235, -0.2971780598163605, 0.005707890726625919, -0.05882927030324936, 0.08087311685085297, -0.19625356793403625, -0.05742480233311653, -0.3544647693634033, 0.11441881954669952, -0.02240506373345852, 0.06148696690797806, 0.189982071518898, 0.021693317219614983, -0.0077356998808681965, 0.10328416526317596, 0.04962633550167084, 0.0051800343208014965, 0.06817367672920227, 0.12156569957733154, -0.023953067138791084, 0.7313831448554993, 0.09902893751859665, -0.3436196446418762, 0.21922320127487183, -0.0922931656241417, 0.2861829698085785, 0.038193222135305405, -0.46557557582855225, 0.03948550671339035, 0.27196618914604187, 0.04568899795413017, 0.056207045912742615, -0.06295562535524368, 0.34934327006340027, 0.01722106523811817, -0.0037377846892923117, -0.4102993309497833, -0.1787087321281433, 0.2198357731103897, 0.2206079661846161, 0.12023717910051346, 0.060893476009368896, 0.21882674098014832, 0.4804644286632538, -0.024498529732227325, 0.12393029034137726, -0.03859000653028488, -0.4449421763420105, -0.3572472631931305, 0.057233214378356934, 0.2968832850456238, 0.21284712851047516, 0.27436140179634094, 0.3810917139053345, 0.12085739523172379, 0.06653204560279846, -0.32535821199417114, 0.10185934603214264, 0.246799036860466, 0.1542416661977768, 0.19055847823619843, 0.018243251368403435, -0.05175478383898735, -0.19712257385253906, 0.403286874294281, 0.02957424707710743, 0.11304040253162384, -0.4904560148715973, 0.07305099070072174, -0.20455987751483917, 0.07232572138309479, -0.05519316717982292, -0.07788363844156265, -0.25599899888038635, -0.31149497628211975, -0.17933234572410583, -0.06553905457258224, -0.05148877203464508, -0.0012278278591111302, -0.19510062038898468, -0.0004126123967580497, 0.08664887398481369, 0.44596683979034424, 0.16898804903030396, -0.05816243588924408, -0.055601634085178375, 0.17147794365882874, 0.16383257508277893, 0.4969714283943176, 0.33608126640319824, -0.5835676193237305, 0.05665232613682747, -0.30913129448890686, -0.19744530320167542, 0.3332211375236511, 0.002803752664476633, 0.28216856718063354, 0.29023411870002747, -0.1034473180770874, -0.12509693205356598, 0.037266653031110764, -0.006500196177512407, -0.3054679334163666, -0.0892118439078331, -0.08330435305833817, -0.10392994433641434, -0.26127538084983826, -0.21006308495998383, -0.4921552240848541, -0.11015962809324265, -0.2227274477481842, -0.132974311709404, 0.15706577897071838, 0.11765218526124954, 0.29569903016090393, 0.08468553423881531, 0.0018098067957907915, -0.22064393758773804, 0.2610216438770294, -0.4404415190219879, -0.28533458709716797, 0.21366292238235474, -0.11780060082674026, -0.24400725960731506, 0.27188071608543396, -0.07937172800302505, 0.008849971927702427, 0.35774263739585876, -0.4981221854686737, -0.0445249117910862, -0.03341491520404816, -0.3680640161037445, 0.2825039029121399, 0.22536109387874603, 0.1658066213130951, -0.10564269870519638, -0.10583440959453583, -0.2793205678462982, -0.24406328797340393, 0.08480627834796906, -0.07059493660926819, 0.08295360952615738, -0.22613781690597534, 0.21136029064655304, 0.032100237905979156, -0.025667810812592506, 0.05816732347011566, -0.1330883651971817, -0.04484006017446518, 0.06191490590572357, 0.37366026639938354, -0.028917597606778145, 0.21443340182304382, 0.2579265236854553, -0.04912860319018364, -0.027710095047950745, 0.30915895104408264, 0.06450721621513367, -0.1962270736694336, 0.08830184489488602, 0.08482187986373901, -0.42858585715293884, -0.3826517164707184, 0.017475001513957977, 0.1613660454750061, 0.048289746046066284, 0.043939948081970215, 0.3979547917842865, 0.04763172194361687, -0.19615966081619263, -0.06324633955955505, 0.5329642295837402, -0.07772810012102127, 0.03690183535218239, -0.38767340779304504, 0.1796855628490448, -0.28522270917892456, 0.03397934511303902, -0.1282898187637329, 0.4322040379047394, 0.06177432835102081, 0.06288374960422516, 0.09568142890930176, 0.0011747025419026613, 0.1290956288576126, -0.5638567209243774, 0.1672898679971695, 0.14957280457019806, 0.06251559406518936, -0.13797202706336975, -0.023056065663695335, -0.32272183895111084, 0.2061665654182434, 0.017076294869184494, 0.12681066989898682, -0.2507309317588806, -0.150533527135849, 0.1023150384426117, 0.0859166607260704, 0.09362941980361938, -0.2509945034980774, 0.02649162895977497, -0.31641364097595215, -0.1652994453907013, -0.3966647982597351, 0.16900983452796936, -0.3117251992225647, -0.032035283744335175, -0.11530252546072006, 0.2593683898448944, 0.1876222789287567, 0.2679567337036133, 0.04195629805326462, 0.18095795810222626, 0.1240079328417778, -0.043417781591415405, 0.07027118653059006, 0.258328378200531, 0.23379629850387573, 0.5592707991600037, -0.337299644947052, -0.12672816216945648, 0.3264329135417938, -0.5543405413627625, 0.06935813277959824, 0.28886616230010986, 0.09203757345676422, 0.15515539050102234, 0.2264888882637024, -0.22377461194992065, -0.029234670102596283, 0.27701622247695923, 0.015809305012226105, -0.15400488674640656, -0.38391566276550293, -0.7070754766464233, 0.4881942570209503, 0.020747022703289986, -0.0659685730934143, 0.05322440341114998, 0.12675976753234863, -0.4882546067237854, -0.07232439517974854, 0.48300427198410034, 0.8329322934150696, 0.09494245797395706, 0.13217532634735107, -0.10338060557842255, -0.29140201210975647, -0.030744919553399086, -0.36810287833213806, -0.014119214378297329, -0.3142772316932678, -0.03563481569290161, -0.19594159722328186, -0.2183370143175125, 0.011066495440900326, 0.03850831091403961, 0.04760965332388878, -0.0297000203281641, 0.12546195089817047, 0.0030604260973632336, -0.04224015399813652, 0.10534638911485672, -0.08075238019227982, 0.035378605127334595, -0.04319371283054352, 0.22511829435825348, 0.21371424198150635, -0.13694287836551666, 0.05512110888957977, -0.07815419882535934, -0.20350687205791473, -0.01596280373632908, -0.2598654329776764, -0.4692002236843109, 0.12867994606494904, -0.06992578506469727, 0.06320667266845703, -0.31868281960487366, 0.15041257441043854, -0.2154858559370041, 0.3452850580215454, 0.15708227455615997, -0.3376244902610779, 0.11702509224414825, -0.037367768585681915, 0.01306785549968481, 0.14117656648159027, -0.08322349190711975, 0.04639051854610443, -0.04005362093448639, 0.05520917475223541, -0.13711901009082794, -0.22431766986846924, -0.12948167324066162, -0.008593806996941566, 0.07996607571840286, 0.14983755350112915, -0.14491482079029083, -0.08500155061483383, 0.1348566710948944, -0.14087659120559692, 0.019831381738185883, 0.16043156385421753, 0.2921615540981293, 0.2937377989292145, 0.29935967922210693, 0.11391472071409225, -0.4070357382297516, -0.19776706397533417, 0.155731663107872, 0.13286997377872467, 0.15155482292175293, -0.16203680634498596, -0.08154211193323135, -0.37625086307525635, -0.38260766863822937, 0.09961804002523422, 0.32849395275115967, -0.006998025346547365, -0.08301320672035217, -0.350420206785202, -0.18840980529785156, 0.13858552277088165, 0.4309549927711487, 0.20163369178771973, -0.08981908112764359, -0.20664331316947937, -0.4537510871887207, -0.14259348809719086, 0.32980436086654663, -0.2343294620513916, -0.026516500860452652, 0.06601787358522415, -0.14706659317016602, 0.23998510837554932, -0.13127197325229645, -0.39032045006752014, 0.10312314331531525, 0.12503701448440552, 0.14390051364898682, -0.10421004891395569, 0.10846151411533356, -0.042299531400203705, -0.15952076017856598, 0.09746743738651276, -0.07698360830545425, -0.4156826138496399, -0.23304706811904907, -0.006732280366122723, 0.1654827743768692, 0.01867338828742504, -0.27258187532424927, 0.4006551206111908, 0.062214188277721405, -0.442568838596344, -0.24476081132888794, -0.008717215619981289, 0.30381035804748535, 0.04369104653596878, -0.10509355366230011, -0.07318127155303955, 0.22321690618991852, -0.1114991307258606, 0.11886198818683624, -0.22446151077747345, 0.000250051001785323, -0.08912667632102966, -0.11675963550806046, 0.002753237495198846, 0.15094120800495148, 0.4729436933994293, 0.09842541813850403, 0.023380421102046967, 0.24013306200504303, 0.46407923102378845, -0.14645110070705414, 0.26813215017318726, 0.4357779026031494, 0.15913863480091095, 0.47537291049957275, -0.2182302325963974, -0.06707444041967392, 0.07649016380310059, 0.24575459957122803, -0.2045188844203949, -0.1815120130777359, 0.07806180417537689, 0.03780445456504822, 0.12494277954101562, 0.3539697527885437, 0.5683420896530151, -0.1170654222369194, -0.07456806302070618, 0.14941054582595825, 0.7739022374153137, -0.18613296747207642, -0.07023318111896515, 0.36499977111816406, -0.02769268862903118, 0.29908689856529236, 0.2335236519575119, -0.05843409523367882, 0.14213252067565918, 0.5094364881515503, 0.22644509375095367, 0.3270973861217499, 0.5474546551704407, -0.0823514387011528, -0.15751779079437256, -0.007791636511683464, 0.521047830581665, 0.44993647933006287, 0.08041700720787048, 0.15487632155418396, 0.31885117292404175, -0.26245006918907166, 0.01769089139997959, 0.08645408600568771, -0.2075178027153015, -0.2829483151435852, -0.05151144415140152, 0.015085442923009396, 0.3184981346130371, -0.2086358517408371, -0.0884597972035408, -0.136099174618721, -0.45226526260375977, -0.27443626523017883, 0.33660680055618286, -0.3428124487400055, -0.03311111032962799, -0.08799892663955688, 0.20415033400058746, 0.00676719518378377, -0.1474953144788742, -0.24629835784435272, 0.1984640657901764, 0.03224678710103035, 0.06186607480049133, 0.2789214849472046, 0.20622394979000092, 0.2470741719007492, 0.1432896852493286, 0.11477609723806381, -0.4184952676296234, 0.2705020308494568, -0.09353236854076385, -0.1347532570362091, 0.0731600895524025, 0.21890416741371155, 0.12722530961036682, 0.38803109526634216, 0.2361256629228592, -0.1759178191423416, 0.1919841319322586, 0.12035100907087326, -0.2305414378643036, -0.19179023802280426, -0.24691888689994812, -0.14635109901428223, -0.03352941945195198, 0.15130791068077087, -0.024278001859784126, -0.3007661700248718, -0.10447028279304504, 0.4039360582828522, -0.29502353072166443, 0.33382269740104675, -0.13384851813316345, 0.14801932871341705, 0.16303543746471405, 0.5106011629104614, 0.10729622095823288, 0.11043652892112732, 0.08085358142852783, -0.04364694282412529, -0.6863275170326233, 0.0581560842692852, -0.12016387283802032, 0.12345164269208908, -0.032298553735017776, 0.104031041264534, 0.3453414738178253, 0.24152100086212158, 0.1248503029346466, 0.09509072452783585, -0.0180917177349329, 0.16618897020816803, -0.03396321460604668, -0.3858608901500702, 0.042645297944545746, 0.09289532899856567, -0.15065152943134308, -0.038804832845926285, 0.2609204351902008, -0.0003159564221277833, 0.20468193292617798, -0.12602727115154266, 0.050150033086538315, 0.25860026478767395, 0.3490739166736603, 0.354855477809906, 0.04190892353653908, 0.5395990610122681, -0.42090028524398804, -0.2336711436510086, -0.15859690308570862, 0.11752401292324066, -0.028290143236517906, 0.24689140915870667, -0.2040797919034958, -0.019445599988102913, -0.26134809851646423, 0.22502346336841583, 0.15025612711906433, 0.04662148654460907, -0.07487667351961136, 0.15661603212356567, -0.5761407613754272, 0.20413976907730103, -0.05252501741051674, -0.1507057398557663, -0.07828064262866974, -0.040292371064424515, 0.039401035755872726, -0.3053385317325592, 0.1467684954404831, -0.27581945061683655, 0.2635176181793213, -0.001162080094218254, -0.16715417802333832, -0.28238147497177124, -0.0733213797211647, 0.21278652548789978, 0.0365474559366703, -0.8090958595275879, -0.03964535519480705, 0.5092347860336304, -0.09994382411241531, -0.05429358035326004, -0.051977358758449554, -0.09368304908275604, -0.36982056498527527, -0.22831954061985016, 0.4014839231967926, 0.13380120694637299, -0.4619544744491577, -0.11424567550420761, -0.4349682331085205 ]
https://github.com/huggingface/datasets/issues/1987
wmt15 is broken
It's reachable for the viewer and me, so I suppose it was down at that moment?
While testing the hotfix, I tried a random other wmt release and found wmt15 to be broken: ``` python -c 'from datasets import load_dataset; load_dataset("wmt15", "de-en")' Downloading: 2.91kB [00:00, 818kB/s] Downloading: 3.02kB [00:00, 897kB/s] Downloading: 41.1kB [00:00, 19.1MB/s] Downloading and preparing dataset wmt15/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt15/de-en/1.0.0/39ad5f9262a0910a8ad7028ad432731ad23fdf91f2cebbbf2ba4776b9859e87f... Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt15/39ad5f9262a0910a8ad7028ad432731ad23fdf91f2cebbbf2ba4776b9859e87f/wmt_utils.py", line 757, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 283, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 191, in download downloaded_path_or_paths = map_nested( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 203, in map_nested mapped = [ File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-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 "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 160, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 160, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 214, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 274, in cached_path output_path = get_from_cache( File "/home/stas/anaconda3/envs/main-38/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 614, in get_from_cache raise FileNotFoundError("Couldn't find file at {}".format(url)) FileNotFoundError: Couldn't find file at https://huggingface.co/datasets/wmt/wmt15/resolve/main/training-parallel-nc-v10.tgz ```
16
wmt15 is broken
[ -0.3679969012737274, -0.6179224252700806, -0.14644666016101837, 0.16798916459083557, 0.3397723138332367, 0.019646788015961647, 0.15195633471012115, -0.01468348503112793, 0.24631881713867188, 0.25031033158302307, 0.163126140832901, 0.0034576100297272205, -0.15849310159683228, 0.09855177253484726, -0.14555716514587402, 0.29513660073280334, -0.09625124931335449, 0.010349341668188572, -0.6581897735595703, 0.03039500117301941, -0.13152532279491425, 0.006757168564945459, -0.348526269197464, 0.04689374938607216, -0.4362735152244568, 0.09191754460334778, 0.03681521117687225, 0.19395136833190918, -0.15495283901691437, 0.18916873633861542, 0.05685983598232269, 0.051014043390750885, -0.1831332892179489, 0.28020212054252625, -0.00010618622764013708, 0.02843964286148548, 0.102916419506073, 0.037679847329854965, 0.005818449892103672, 0.10424979776144028, -0.6636450290679932, -0.22665536403656006, -0.0813971608877182, 0.2058068960905075, 0.06567423045635223, -0.0362539142370224, 0.03395812213420868, 0.1848755031824112, 0.5943253040313721, 0.03104197047650814, 0.3418647348880768, -0.11057795584201813, 0.012944766320288181, -0.08943451941013336, 0.28447166085243225, 0.13672882318496704, -0.0474848598241806, 0.08330129086971283, 0.17899160087108612, -0.12252210825681686, 0.2737579643726349, 0.07981222867965698, 0.07768618315458298, 0.09798017144203186, 0.12044913321733475, -0.1350523978471756, 0.5703738927841187, 0.30839279294013977, 0.30511048436164856, 0.1486266851425171, 0.03662550076842308, 0.21334408223628998, 0.3408700227737427, 0.3427566587924957, -0.08797609061002731, -0.5264524221420288, 0.11533164978027344, 0.10138897597789764, -0.2487451732158661, 0.3112865686416626, -0.025520477443933487, -0.13280843198299408, 0.08339379727840424, 0.136338010430336, -0.15560345351696014, 0.7455669641494751, -0.039734914898872375, -0.035457316786050797, -0.28082653880119324, 0.03716284781694412, 0.11922270804643631, 0.4201548397541046, -0.25129786133766174, -0.347031831741333, 0.16821645200252533, -0.008842499926686287, 0.015246610157191753, -0.0847235694527626, -0.2783452868461609, -0.13347071409225464, -0.08477503806352615, 0.4227772355079651, 0.6038344502449036, -0.28059524297714233, 0.0918525978922844, -0.17814278602600098, -0.1570250391960144, -0.3050040006637573, 0.1333552449941635, 0.11942055076360703, -0.2961907386779785, -0.10183912515640259, 0.03781842812895775, -0.5758021473884583, 0.04483459144830704, 0.0051617808640003204, 0.21619810163974762, 0.037909135222435, 0.00035911743179894984, -0.02143578603863716, 0.15768153965473175, -0.1705913245677948, -0.17004239559173584, 0.22458796203136444, -0.01683751307427883, 0.15682920813560486, 0.20371142029762268, -0.14720290899276733, -0.0818861722946167, -0.1438668668270111, -0.23264367878437042, -0.1232125386595726, -0.09873093664646149, 0.015556255355477333, 0.014769323170185089, 0.20570844411849976, 0.01773526705801487, -0.0048467256128787994, -0.3854706883430481, -0.31051701307296753, -0.004290331620723009, 0.2872515320777893, 0.27468782663345337, 0.1649141013622284, -0.14161227643489838, 0.31380656361579895, 0.1407872438430786, 0.12249705195426941, 0.28898003697395325, 0.08827172219753265, -0.11518071591854095, -0.23118533194065094, 0.04726725071668625, 0.3444238305091858, 0.19115765392780304, 0.027941346168518066, 0.31815993785858154, 0.01414805930107832, -0.14393410086631775, 0.29777488112449646, 0.0694504901766777, 0.03509168699383736, -0.25533390045166016, 0.09169144183397293, 0.04919235035777092, 0.3180224895477295, -0.2223295122385025, -0.1012105643749237, -0.11708785593509674, -0.040875550359487534, 0.19497349858283997, -0.20359621942043304, 0.06205843389034271, 0.18827030062675476, -0.14926303923130035, -0.44428664445877075, 0.2878829836845398, -0.1227400004863739, -0.21753503382205963, 0.015293862670660019, -0.20539739727973938, -0.3540268838405609, -0.05433148145675659, -0.07915927469730377, -0.34266090393066406, -0.04413527622818947, 0.107016921043396, 0.03396350145339966, -0.08899731934070587, -0.14162549376487732, -0.3755715489387512, -0.25092434883117676, 0.3790995478630066, -0.11069485545158386, 0.45544907450675964, -0.1788966804742813, 0.03792951628565788, 0.482616126537323, 0.25953033566474915, 0.3171903192996979, -0.15238535404205322, -0.11860717087984085, 0.3567129671573639, -0.22139759361743927, -0.01868443191051483, -0.1454281508922577, 0.27080610394477844, -0.10431953519582748, -0.2651239037513733, 0.013973258435726166, 0.3768295645713806, 0.3657298684120178, -0.23709847033023834, 0.0758894681930542, -0.1415012776851654, -0.19418957829475403, 0.25071680545806885, 0.09513425081968307, -0.5479303002357483, -0.14723749458789825, 0.0519273541867733, -0.4962365925312042, -0.2102660834789276, 0.11788485944271088, 0.17381592094898224, -0.12896643579006195, -0.23739413917064667, -0.19192518293857574, 0.11609677225351334, -0.04817567765712738, 0.3251163959503174, -0.04797285050153732, -0.03639446198940277, 0.17293423414230347, 0.16815294325351715, 0.2073259949684143, -0.21336336433887482, 0.00326964957639575, 0.011832919903099537, -0.4694884419441223, -0.007674672175198793, 0.06605659425258636, -0.010202501900494099, -0.2559543550014496, 0.13028614223003387, -0.01737251505255699, -0.3327489197254181, 0.18164551258087158, -0.09827734529972076, 0.1588699072599411, -0.1376625895500183, -0.022074302658438683, 0.04374285414814949, -0.21247564256191254, 0.04986933618783951, -0.02883213199675083, -0.5318745970726013, -0.03575752303004265, 0.2711971700191498, 0.16485662758350372, 0.22558511793613434, 0.36783549189567566, 0.3646897077560425, -0.29242777824401855, -0.2286078780889511, -0.05170682445168495, -0.10972929745912552, -0.24120739102363586, 0.25743943452835083, 0.08565452694892883, -0.05389326065778732, 0.1460500955581665, 0.11913635581731796, -0.19015057384967804, 0.4299938380718231, 0.09539315104484558, -0.06140272691845894, 0.3489593267440796, -0.0487636961042881, -0.18051590025424957, -0.10494886338710785, 0.3533973693847656, -0.062179505825042725, -0.056755442172288895, -0.17526710033416748, -0.1731213480234146, -0.5708741545677185, -0.16606323421001434, -0.40786314010620117, -0.23253664374351501, 0.08867457509040833, -0.3413715362548828, -0.014144793152809143, -0.028007972985506058, 0.07907313853502274, 0.21014940738677979, 0.12396219372749329, 0.3268871009349823, -0.027859413996338844, 0.8606637120246887, -0.03494303673505783, -0.09136267006397247, -0.15156686305999756, 0.19572828710079193, 0.2876845598220825, 0.27459633350372314, 0.006950749084353447, -0.1626606583595276, -0.3229452967643738, 0.1367548555135727, -0.21654507517814636, 0.12808458507061005, 0.035909973084926605, 0.26527148485183716, 0.284772127866745, 0.15013357996940613, 0.07325806468725204, -0.13220994174480438, 0.42953312397003174, -0.07674572616815567, 0.23103591799736023, -0.043848562985658646, 0.04187994450330734, -0.106208436191082, -0.053887344896793365, -0.24559585750102997, 0.05318533256649971, -0.1335233747959137, -0.14738473296165466, 0.2236211895942688, -0.13275037705898285, 0.468875527381897, -0.01454820204526186, -0.060552336275577545, 0.1397087574005127, 0.107284314930439, -0.1527608335018158, -0.019919514656066895, 0.14772047102451324, -0.054295558482408524, -0.20333227515220642, 0.400454044342041, 0.0892917811870575, 0.10516899079084396, -0.19160626828670502, -0.2597140967845917, 0.1409440040588379, 0.0698268711566925, -0.47132882475852966, 0.0901290625333786, 0.2579675614833832, 0.10873040556907654, 0.027479946613311768, -0.25586459040641785, -0.20308618247509003, -0.05538294091820717, -0.155864417552948, -0.047896530479192734, 0.5165060758590698, -0.22344209253787994, 0.028847061097621918, -0.12467263638973236, 0.8631656169891357, -0.4535711109638214, 0.12782615423202515, 0.12321639060974121, -0.13919177651405334, 0.09287093579769135, 0.07270928472280502, -0.3467055559158325, 0.21759286522865295, 0.11189612001180649, 0.060637086629867554, 0.14302442967891693, 0.06977388262748718, 0.32452771067619324, -0.1999017596244812, 0.016387488692998886, -0.126900777220726, -0.2686883807182312, -0.15935993194580078, 0.0586230494081974, -0.17008699476718903, 0.2972322702407837, 0.24153722822666168, 0.11204016953706741, -0.09587923437356949, 0.3482614755630493, 0.19879351556301117, -0.04741373285651207, -0.1008525863289833, 0.38458651304244995, -0.0762590542435646, 0.10656096041202545, -0.13900932669639587, -0.3523784279823303, 0.5421360731124878, -0.27266696095466614, -0.3375215232372284, -0.038675688207149506, -0.11102962493896484, 0.4851844012737274, -0.20760586857795715, 0.276705265045166, 0.09800717234611511, -0.15366481244564056, -0.009627381339669228, -0.2971838712692261, -0.31288155913352966, -0.4430472254753113, -0.06967482715845108, -0.09874451905488968, 0.1745520979166031, 0.1879362016916275, 0.15133614838123322, -0.16668225824832916, -0.4425296187400818, 0.09226061403751373, -0.22164539992809296, -0.07179629057645798, 0.013308398425579071, -0.3672401010990143, 0.002406742889434099, -0.16745887696743011, 0.0473405122756958, -0.09682494401931763, -0.052471503615379333, -0.20555897057056427, -0.023631971329450607, 0.05378061532974243, -0.10017851740121841, 0.07509167492389679, -0.01610816828906536, -0.09846242517232895, 0.7613425254821777, -0.0073745716363191605, 0.03782366216182709, 0.3623352348804474, 0.16950523853302002, 0.2514556646347046, -0.387317419052124, 0.3183012902736664, 0.4349760115146637, 0.04100309684872627, 0.09706967324018478, 0.16235575079917908, 0.16278481483459473, -0.43648776412010193, 0.15485422313213348, 0.3088013231754303, 0.1546640545129776, -0.12570667266845703, 0.258533239364624, -0.1698087453842163, -0.17489439249038696, -0.08721291273832321, 0.09140099585056305, 0.06647584587335587, -0.13693895936012268, -0.004173628054559231, 0.3242347240447998, 1.1233007907867432, 0.15025939047336578, -0.1698981672525406, -0.04774123430252075, -0.21323715150356293, 0.1872589886188507, 0.036910854279994965, 0.06496904790401459, -0.004903714172542095, -0.3180469274520874, 0.017401529476046562, -0.12107132375240326, 0.05117947235703468, -0.11253130435943604, -0.13849729299545288, 0.2169991135597229, -0.04505366459488869, 0.05618239939212799, -0.12271098047494888, -0.2058892697095871, 0.01526934839785099, 0.2311249077320099, 0.2272472083568573, 0.23958033323287964, -0.09453728795051575, 0.2221435010433197, -0.4699304401874542, 0.11798734962940216, 0.35149556398391724, -0.05041123926639557, -0.49859949946403503, -0.1785188466310501, 0.05546518787741661, -0.11241623014211655, 0.0799178034067154, 0.03641588240861893, 0.18287579715251923, -0.40959981083869934, -0.04456164315342903, 0.2798415422439575, -0.23020298779010773, 0.3202441930770874, -0.32962727546691895, -0.06283992528915405, -0.27470794320106506, 0.2673708200454712, 0.10335376858711243, -0.24039073288440704, -0.2861955463886261, -0.20912565290927887, 0.16750898957252502, 0.038308124989271164, -0.2467409372329712, 0.006507501471787691, 0.6036246418952942, -0.11287818104028702, 0.0026138152461498976, 0.14665651321411133, 0.014178586192429066, -0.22859716415405273, 0.2553492784500122, -0.37302109599113464, -0.017994102090597153, 0.3542594015598297, 0.23963934183120728, 0.051481686532497406, -0.15116876363754272, 0.287657767534256, -0.18267333507537842, -0.12781798839569092, 0.22961579263210297, 0.46617722511291504, -0.11884115636348724, -0.39411529898643494, 0.2742910385131836, 0.14454549551010132, -0.03954723849892616, -0.0286712683737278, 0.04380369931459427, -0.052183229476213455, 0.11837385594844818, 0.7647326588630676, 0.24332669377326965, 0.010291640646755695, -0.24644041061401367, -0.23972101509571075, -0.11437966674566269, 0.09103043377399445, 0.05201973766088486, -0.04178359732031822, -0.3893435597419739, 0.16752459108829498, 0.05794821307063103, 0.40958377718925476, -0.40430790185928345, -0.008675807155668736, 0.1265982836484909, -0.18045492470264435, -0.5414806008338928, -0.20328640937805176, -0.3174267113208771, 0.08643735200166702, 0.248979851603508, 0.2796224355697632, -0.14738322794437408, -0.330710768699646, -0.1973094642162323, 0.10940248519182205, 0.1433369219303131, -0.4588650166988373, -0.009495796635746956, 0.0937858521938324, 0.03608214482665062, 0.14240442216396332, -0.22964420914649963, 0.1646294742822647, 0.03121277131140232, 0.2096392661333084, 0.29708588123321533, 0.18936634063720703, -0.29668065905570984, -0.033557549118995667, 0.3762030005455017, 0.40018633008003235, -0.06056145951151848, -0.20735444128513336, 0.26047948002815247, -0.07433280348777771, -0.14987821877002716, 0.11013361811637878, 0.21448159217834473, 0.0880252942442894, 0.5254945158958435, -0.14395496249198914, -0.23604190349578857, -0.05818168818950653, 0.08328937739133835, 0.2811155915260315, 0.006059849169105291, 0.015129863284528255, 0.0811132863163948, 0.3361239433288574, -0.46216800808906555, 0.20476678013801575, -0.10345536470413208, 0.18187418580055237, -0.007738064043223858, 0.019298754632472992, -0.19356973469257355, -0.49990782141685486, -0.20816783607006073, 0.27005642652511597, 0.05626112222671509, -0.3453062176704407, -0.21267299354076385, 0.04451137036085129, -0.031454067677259445, -0.05613476037979126, 0.13595975935459137, 0.1939862221479416, 0.19637425243854523, 0.2014327496290207, 0.1934201866388321, 0.1359262615442276, -0.20524802803993225, 0.2491166740655899, 0.11809340864419937, -0.17811064422130585, 0.23761804401874542, 0.2681538462638855, -0.16841258108615875, -0.049437593668699265, 0.036186106503009796, -0.00797569751739502, 0.11659154295921326, -0.18031682074069977, 0.018294895067811012, -0.024879315868020058, -0.11668340861797333, -0.13383471965789795, -0.43562254309654236, -0.06083865091204643, -0.28743404150009155, 0.029927851632237434, 0.28634852170944214, 0.017909133806824684, -0.1082589402794838, 0.28816738724708557, -0.16741180419921875, 0.09506469964981079, -0.19675728678703308, -0.026048295199871063, 0.19353829324245453, -0.17315047979354858, 0.05526481941342354, 0.14222288131713867, 0.18377229571342468, 0.2684367597103119, 0.2458735555410385, -0.110324926674366, -0.06016523018479347, -0.31312865018844604, 0.17781953513622284, 0.20565146207809448, -0.18090534210205078, -0.34455496072769165, 0.3547895550727844, 0.07221034169197083, 0.22111694514751434, -0.17910166084766388, 0.2947072386741638, -0.2648681402206421, 0.1890796422958374, -0.007150333374738693, -0.10530469566583633, -0.0571119524538517, -0.21149632334709167, 0.055377230048179626, 0.09089741855859756, -0.018576454371213913, 0.19230413436889648, -0.17933601140975952, 0.1469135582447052, 0.17807769775390625, 0.05304955318570137, 0.3218934237957001, -0.006101365201175213, 0.1310756802558899, -0.026996493339538574, 0.32767802476882935, 0.21335174143314362, 0.021654263138771057, -0.05056921765208244, -0.13976582884788513, -0.2809254825115204, 0.18278832733631134, 0.34362101554870605, 0.23780229687690735, -0.04021591693162918, -0.1882888525724411, 0.34493380784988403, 0.03722110763192177, 0.21996694803237915, 0.426961749792099, -0.21051713824272156, -0.0004412449197843671, -0.22677914798259735, -0.25495514273643494, 0.13391399383544922, 0.12669406831264496, -0.051960282027721405, 0.041852641850709915, 0.2604612410068512, -0.19374875724315643, 0.18308669328689575, -0.18647350370883942, -0.34664076566696167, -0.22934111952781677, 0.41393181681632996, 0.0016316707478836179, 0.13710397481918335, -0.18117541074752808, -0.15324220061302185, 0.06153988465666771, -0.3785364031791687, -0.21618837118148804, 0.0976833626627922, 0.031235486268997192, 0.10068146139383316, -0.0647125095129013, 0.16549666225910187, 0.1099005937576294, -0.1952960342168808, 0.08075001090765, -0.009312833659350872, 0.20917047560214996, -0.2076280415058136, 0.13286438584327698, -0.1537029892206192, -0.0029484154656529427, 0.20490367710590363, 0.027874555438756943, -0.0051749772392213345, -0.06934410333633423, -0.23384155333042145, 0.0038987435400485992, 0.07966360449790955, 0.18304625153541565, -0.30415430665016174, -0.5495538711547852, 0.2966749668121338, -0.4286758005619049, 0.27643078565597534, -0.1503823697566986, -0.2592562139034271, 0.08137742429971695, -0.12309202551841736, -0.13167934119701385, 0.13393263518810272, -0.0034002638421952724, 0.04161498323082924, -0.021828146651387215, 0.11772674322128296, 0.1594548374414444, 0.08355704694986343, -0.36099204421043396, 0.17012722790241241 ]
https://github.com/huggingface/datasets/issues/1983
The size of CoNLL-2003 is not consistant with the official release.
Hi, if you inspect the raw data, you can find there are 946 occurrences of `-DOCSTART- -X- -X- O` in the train split and `14041 + 946 = 14987`, which is exactly the number of sentences the authors report. `-DOCSTART-` is a special line that acts as a boundary between two different documents and is filtered out in our implementation. @lhoestq What do you think about including these lines? ([Link](https://github.com/flairNLP/flair/issues/1097) to a similar issue in the flairNLP repo)
Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~
78
The size of CoNLL-2003 is not consistant with the official release.
[ -0.022572508081793785, -0.2767099440097809, -0.21833929419517517, 0.30166035890579224, -0.20240063965320587, -0.2749671936035156, 0.19355984032154083, 0.01175008900463581, -0.8861897587776184, 0.09503652155399323, 0.03348317742347717, 0.009693018160760403, -0.038414184004068375, 0.09106376767158508, -0.22358576953411102, 0.12661053240299225, 0.09088994562625885, -0.007131856866180897, 0.14055563509464264, -0.09344522655010223, -0.14023417234420776, 0.42252597212791443, -0.2532884478569031, 0.051187947392463684, -0.27357926964759827, 0.21037644147872925, 0.12547700107097626, 0.06188962981104851, -0.49723172187805176, -0.15831418335437775, 0.2840145230293274, -0.19046732783317566, 0.3106396794319153, 0.2683355510234833, -0.00010672792268451303, -0.2817142605781555, 0.3390074670314789, -0.1947612315416336, -0.17951306700706482, 0.32574132084846497, -0.23706725239753723, 0.02776803821325302, -0.17484049499034882, 0.08344747126102448, -0.0552891306579113, 0.24720728397369385, -0.26104655861854553, 0.381862610578537, 0.1921624094247818, 0.028235962614417076, 0.3105134069919586, 0.07731557637453079, 0.2390664964914322, -0.14935243129730225, 0.15626859664916992, -0.025450028479099274, -0.0746888518333435, 0.08173272758722305, 0.028168534860014915, 0.0617099367082119, 0.12247554957866669, 0.1220935508608818, 0.2806965112686157, -0.26371026039123535, 0.1012946367263794, -0.3428458571434021, 0.12399464845657349, -0.1899757981300354, 0.20613285899162292, 0.09576316922903061, 0.31680089235305786, -0.12118332087993622, -0.16597247123718262, -0.024553101509809494, 0.08120160549879074, -0.08138865232467651, 0.015205278061330318, -0.15140938758850098, -0.08303950726985931, 0.022554578259587288, -0.40751874446868896, -0.1560589075088501, -0.24788329005241394, 0.04231451079249382, -0.4987002909183502, 0.42907950282096863, -0.1845710724592209, -0.00821264460682869, -0.008327586576342583, -0.10574869066476822, 0.4953666627407074, 0.1345149278640747, 0.013392253778874874, -0.10277915745973587, -0.12778891623020172, -0.18314318358898163, 0.08585088700056076, 0.08656570315361023, 0.1239456832408905, -0.2265016883611679, -0.18718528747558594, -0.4050774574279785, 0.1544632762670517, -0.2825954258441925, -0.06680646538734436, 0.3634123206138611, -0.05819293111562729, 0.21230673789978027, -0.1367029845714569, 0.0357184000313282, 0.4489479959011078, 0.17065563797950745, -0.4203414022922516, -0.18082073330879211, -0.3488228917121887, 0.12705262005329132, -0.3326706290245056, -0.15675725042819977, -0.1365022212266922, 0.05081092193722725, -0.01358914002776146, 0.012167843990027905, -0.10528430342674255, -0.020637087523937225, 0.2518486976623535, 0.27313879132270813, 0.045487239956855774, 0.071282759308815, 0.036240048706531525, -0.2117261439561844, -0.2609070837497711, -0.16671866178512573, 0.006703454069793224, -0.3742072284221649, -0.4067037105560303, 0.06736241281032562, 0.12780867516994476, -0.17745216190814972, 0.2661740481853485, 0.16453146934509277, -0.22997920215129852, 0.11954058706760406, -0.07387690246105194, 0.062447864562273026, -0.1409534513950348, -0.2945055067539215, -0.1597357839345932, 0.05860188230872154, -0.08018137514591217, 0.1586964726448059, 0.17554545402526855, -0.18243739008903503, -0.41238486766815186, 0.21314510703086853, -0.06235870346426964, 0.11798375844955444, 0.8060513734817505, -0.11078984290361404, 0.08951811492443085, 0.10517935454845428, 0.10223864018917084, -0.1992698460817337, -0.10143190622329712, -0.04813398793339729, 0.01127136405557394, -0.06864050775766373, -0.2628445029258728, 0.008068461902439594, -0.13388578593730927, -0.061014726758003235, 0.29929572343826294, 0.020542550832033157, 0.16222544014453888, 0.14833717048168182, -0.21865598857402802, -0.4454043507575989, 0.22771552205085754, -0.4016478359699249, -0.5035942196846008, 0.3029189705848694, -0.09411289542913437, -0.1736520528793335, 0.16982825100421906, -0.01366975624114275, 0.022462472319602966, 0.2135234773159027, 0.0005464006680995226, 0.016552602872252464, -0.013442320749163628, -0.15434980392456055, -0.27730417251586914, -0.21355868875980377, -0.3621767461299896, -0.12669645249843597, 0.3312520384788513, -0.13527032732963562, 0.012125466018915176, 0.10811913758516312, 0.461444616317749, 0.3244870603084564, -0.09367776662111282, 0.045855652540922165, 0.3705053925514221, -0.23641283810138702, -0.07180329412221909, 0.268494576215744, -0.20599500834941864, -0.016450317576527596, -0.09772885590791702, 0.010073328390717506, 0.5478811860084534, -0.0043445853516459465, -0.5303122997283936, 0.0010156916687265038, 0.22437451779842377, -0.01734016090631485, 0.18010491132736206, 0.15971317887306213, 0.41229745745658875, -0.014872949570417404, 0.21271882951259613, 0.150686576962471, 0.21918189525604248, -0.18882806599140167, 0.19228595495224, -0.2911267578601837, -0.20476679503917694, 0.1312037706375122, 0.14030571281909943, 0.012780541554093361, 0.025028083473443985, 0.057096607983112335, -0.10592125356197357, 0.16647043824195862, 0.37653636932373047, -0.14847369492053986, -0.08939830213785172, -0.059386253356933594, 0.03513926640152931, 0.12259070575237274, 0.13687008619308472, -0.2028556764125824, -0.1177479550242424, 0.19696879386901855, 0.0006009775679558516, 0.1637307107448578, 0.39289072155952454, -0.3859156370162964, -0.018118461593985558, -0.09771224111318588, -0.01558940950781107, 0.007656024768948555, 0.16201850771903992, -0.4739133417606354, -0.3914753794670105, 0.5039001703262329, -0.021045900881290436, 0.06855437159538269, -0.13497300446033478, -0.09010445326566696, 0.325300931930542, 0.06008632108569145, -0.08413579314947128, 0.23003913462162018, -0.21889743208885193, 0.19303447008132935, 0.18525855243206024, 0.40847474336624146, -0.060334477573633194, 0.3445313572883606, 0.3331589698791504, 0.041291799396276474, 0.08394427597522736, -0.07499634474515915, 0.3300824761390686, -0.0018523805774748325, 0.30436673760414124, 0.3480854034423828, 0.10998210310935974, 0.05833682790398598, 0.16711944341659546, -0.07100042700767517, 0.003371904604136944, -0.1245030015707016, 0.01662147231400013, -0.48473232984542847, -0.11000041663646698, -0.09867704659700394, 0.11820856481790543, -0.021822160109877586, -0.09064505994319916, -0.029657650738954544, 0.26839742064476013, -0.19142909348011017, 0.18572545051574707, 0.0634949654340744, -0.33322638273239136, 0.3465755581855774, 0.2403910756111145, 0.3038322329521179, 0.21179154515266418, 0.14157631993293762, -0.49571800231933594, 0.21589143574237823, -0.014213750138878822, -0.5701175332069397, -0.10598347336053848, -0.4750978350639343, 0.17815440893173218, -0.025804059579968452, -0.29827603697776794, 0.3745495676994324, -0.05198896676301956, -0.06566396355628967, 0.17829155921936035, -0.355293333530426, -0.273557186126709, 0.2984168231487274, -0.2658047080039978, 0.08762826770544052, -0.5192985534667969, 0.012188686057925224, -0.2725401222705841, -0.1042686179280281, -0.349770724773407, -0.020035358145833015, 0.09169914573431015, -0.2672080993652344, 0.1475326120853424, 0.08087838441133499, -0.05764206498861313, 0.22740529477596283, 0.06913333386182785, -0.029087800532579422, -0.06301398575305939, 0.11781362444162369, -0.18071827292442322, 0.07029853016138077, 0.02535719983279705, 0.07630736380815506, -0.12452159076929092, -0.2085568755865097, -0.010702693834900856, 0.10321453958749771, -0.2599649727344513, -0.487912654876709, -0.016522247344255447, -0.1387799084186554, 0.03269163891673088, -0.17243151366710663, -0.008402688428759575, 0.26774513721466064, 0.08621613681316376, -0.08203922212123871, -0.24911357462406158, -0.17636200785636902, -0.03169645741581917, 0.15906402468681335, 0.5323254466056824, 0.052739664912223816, 0.04339234530925751, 0.1888972669839859, 0.2820562720298767, 0.251185804605484, -0.12057926505804062, -0.02501247450709343, 0.18139320611953735, 0.09636994451284409, 0.009501022286713123, 0.25151312351226807, 0.31352341175079346, 0.1795312613248825, -0.16547459363937378, 0.4498836398124695, 0.020888781175017357, -0.14291821420192719, 0.15084236860275269, 0.26795607805252075, -0.14383329451084137, 0.17282967269420624, -0.17959171533584595, 0.4732537269592285, 0.22718121111392975, -0.006306116934865713, 0.008820257149636745, 0.002320989966392517, 0.018845656886696815, 0.0785498395562172, -0.17858251929283142, 0.22474214434623718, 0.09505392611026764, 0.23501668870449066, 0.4209257662296295, -0.3212703466415405, 0.44288501143455505, 0.15224702656269073, 0.02328299917280674, -0.08015422523021698, -0.4096827208995819, -0.07043271511793137, 0.11867596954107285, 0.4821475148200989, 0.022077521309256554, -0.09619108587503433, 0.24378447234630585, 0.013927462510764599, -0.352298766374588, -0.11796864122152328, -0.2614353895187378, -0.45558029413223267, 0.8263459801673889, 0.3348656892776489, -0.018218887969851494, 0.06972033530473709, 0.06277190148830414, -0.02482769824564457, -0.011795153841376305, -0.12731173634529114, -0.39889782667160034, 0.007636726833879948, -0.0031670944299548864, 0.1071193516254425, 0.069416843354702, 0.0420171394944191, 0.07557613402605057, -0.19552475214004517, 0.09036848694086075, -0.4469473361968994, -0.02550312876701355, 0.42245644330978394, 0.29173845052719116, 0.10061704367399216, 0.15840959548950195, -0.1817956566810608, 0.3792453706264496, 0.11066806316375732, 0.13746829330921173, 0.09990385919809341, -0.03924199193716049, 0.4952967166900635, -0.08497604727745056, 0.35482415556907654, 0.3592450022697449, 0.008620478212833405, -0.3032210171222687, -0.20779885351657867, 0.12667423486709595, 0.2708435654640198, -0.1556272953748703, 0.10607823729515076, -0.1638234555721283, -0.07096295803785324, 0.23734378814697266, -0.17294147610664368, 0.03190845623612404, -0.17305749654769897, -0.1710033416748047, -0.04999583959579468, 0.003717142390087247, -0.041541941463947296, 0.005044788587838411, 1.0388965606689453, -0.07649253308773041, -0.08363912254571915, -0.035283006727695465, -0.4231882691383362, 0.06691738218069077, -0.04103980213403702, 0.27628225088119507, -0.23826715350151062, -0.05274379625916481, 0.13258881866931915, -0.0023539226967841387, -0.2614169120788574, -0.053602661937475204, -0.2159799337387085, -0.009573218412697315, -0.27264803647994995, -0.3094085454940796, 0.17926430702209473, 0.17066052556037903, -0.005344582721590996, 0.31627506017684937, 0.5167540907859802, 0.20155607163906097, 0.3328982889652252, 0.2457006722688675, -0.2476808875799179, -0.16384121775627136, -0.26253458857536316, -0.13709093630313873, -0.35469064116477966, -0.0635029524564743, -0.18048332631587982, 0.08327142149209976, 0.10629524290561676, -0.39232394099235535, -0.08975858986377716, 0.286294549703598, 0.15266729891300201, 0.14012062549591064, -0.11725885421037674, 0.1869405061006546, 0.3880334794521332, 0.05991044268012047, 0.06004135683178902, 0.2792298197746277, -0.09260563552379608, -0.23888149857521057, -0.227744460105896, -0.05697440356016159, 0.06795845925807953, -0.08405163139104843, 0.008240279741585255, -0.043683819472789764, 0.3191702663898468, -0.1908513605594635, -0.024412851780653, -0.13747237622737885, -0.006009562872350216, -0.06735112518072128, 0.2628646790981293, -0.2052488923072815, 0.043781835585832596, -0.18708163499832153, 0.28900763392448425, -0.5104198455810547, -0.18842826783657074, 0.06609059870243073, 0.0998314693570137, 0.39400938153266907, -0.17056594789028168, -0.022948989644646645, -0.10048197954893112, -0.1889527589082718, 0.0628332644701004, -0.3068481385707855, -0.09035483002662659, -0.0892488956451416, 0.02719203382730484, -0.4944099485874176, -0.021963922306895256, 0.2982761263847351, 0.6405790448188782, 0.17974834144115448, -0.15325383841991425, 0.049514107406139374, -0.17117270827293396, 0.13626204431056976, -0.38009998202323914, 0.3457321524620056, -0.23593281209468842, 0.204773411154747, 0.026651890948414803, -0.3089701533317566, -0.3860304057598114, -0.09849522262811661, -0.12113560736179352, -0.07438915222883224, -0.3411923348903656, -0.2019113004207611, -0.16137434542179108, 0.12058301270008087, 0.28007766604423523, 0.1655416190624237, -0.2026142179965973, -0.3271569609642029, 0.04182502627372742, 0.07364049553871155, -0.02286709100008011, -0.1251097470521927, 0.028798241168260574, 0.24821029603481293, -0.33185112476348877, 0.1462431699037552, 0.06124679744243622, -0.17100757360458374, 0.23177318274974823, 0.32527050375938416, -0.44383880496025085, -0.05064227059483528, 0.16512173414230347, 0.1096014678478241, 0.32799169421195984, 0.39894899725914, -0.09240484237670898, 0.3391415476799011, 0.19116605818271637, 0.05688424035906792, 0.05992993712425232, 0.07735630869865417, -0.1157444417476654, 0.20907709002494812, 0.04265449196100235, 0.2418622523546219, 0.03182530403137207, 0.1690337210893631, -0.06173219159245491, -0.060725048184394836, 0.03230791911482811, -0.022507641464471817, 0.17174798250198364, 0.32716551423072815, -0.5012680888175964, -0.15168724954128265, -0.28217723965644836, 0.12045994400978088, -0.023792007938027382, 0.2686139941215515, 0.22752118110656738, -0.12979257106781006, 0.1984781175851822, 0.08398159593343735, 0.04149826243519783, 0.29043421149253845, -0.2605460286140442, 0.17614220082759857, 0.1514301598072052, 0.4610494375228882, 0.23095329105854034, -0.13396872580051422, 0.12786602973937988, -0.0649629458785057, 0.2542835772037506, -0.08645695447921753, -0.29181304574012756, 0.4955708980560303, 0.4399629235267639, -0.25073888897895813, 0.2871616780757904, 0.0694303885102272, -0.1416214257478714, 0.20177386701107025, 0.11070304363965988, -0.19990922510623932, 0.1270267367362976, 0.08912840485572815, -0.7043936848640442, -0.23104393482208252, -0.04831898584961891, 0.0186303798109293, 0.1699623465538025, -0.22270342707633972, 0.07849830389022827, 0.15956857800483704, -0.034884802997112274, -0.011149714700877666, -0.04022569954395294, 0.03964674100279808, -0.011653384193778038, 0.12968836724758148, -0.17145706713199615, 0.3007211685180664, -0.015067975036799908, -0.37153109908103943, 0.32017189264297485, -0.06827554851770401, 0.08982950448989868, -0.17261911928653717, 0.4848839044570923, 0.27971094846725464, 0.042088426649570465, -0.07101822644472122, -0.37227773666381836, 0.2504350543022156, -0.017294980585575104, -0.4809264838695526, 0.05716526508331299, 0.2593075633049011, -0.05719003453850746, 0.10693038254976273, 0.2786807119846344, -0.1893259584903717, -0.11426577717065811, -0.04620682820677757, -0.15514516830444336, -0.17747211456298828, -0.09467154741287231, -0.2452990859746933, 0.10621844977140427, -0.011368798092007637, 0.34999674558639526, -0.6226937174797058, 0.33196014165878296, 0.17121656239032745, 0.015196898952126503, 0.33800676465034485, 0.14182941615581512, 0.09312080591917038, -0.25959962606430054, -0.20819948613643646, 0.27154502272605896, 0.22469232976436615, 0.1590118259191513, -0.5216649770736694, 0.09037217497825623, 0.3705972731113434, -0.006287833210080862, -0.2327970713376999, -0.00437084911391139, 0.22055338323116302, -0.07517620176076889, -0.09177076816558838, 0.4965042471885681, -0.050740450620651245, -0.27507075667381287, 0.22257721424102783, -0.19634388387203217, 0.22278054058551788, 0.3211480677127838, -0.11566673219203949, 0.10358633100986481, -0.1430971473455429, -0.005721121095120907, -0.18222224712371826, 0.16605818271636963, -0.028343863785266876, -0.044447191059589386, 0.20890776813030243, 0.42337191104888916, 0.36630886793136597, 0.008421773090958595, 0.44603070616722107, -0.323752760887146, -0.40159931778907776, 0.04747314751148224, 0.15326851606369019, 0.08984679728746414, 0.017138196155428886, -0.2875155210494995, -0.23933164775371552, -0.2985086739063263, -0.05411685258150101, 0.21113187074661255, 0.43223369121551514, 0.3039759397506714, -0.07889453321695328, -0.31689080595970154, -0.07289892435073853, -0.33724087476730347, -0.1819048523902893, 0.27998748421669006, 0.2304299920797348, -0.15271875262260437, -0.29185956716537476, 0.10738172382116318, -0.1696673184633255, 0.13111825287342072, 0.060736965388059616, -0.1081564649939537, -0.12581324577331543, -0.17613574862480164, 0.08869573473930359, 0.015167168341577053, -0.09027532488107681, 0.0901707261800766, 0.21857880055904388, 0.17470355331897736, 0.1227765902876854, 0.3131079375743866, 0.08371076732873917, -0.17824335396289825, 0.03253156319260597, 0.6282631754875183, -0.06628323346376419, -0.3925221562385559, -0.17873571813106537, -0.08008860796689987 ]
https://github.com/huggingface/datasets/issues/1983
The size of CoNLL-2003 is not consistant with the official release.
We should mention in the Conll2003 dataset card that these lines have been removed indeed. If some users are interested in using these lines (maybe to recombine documents ?) then we can add a parameter to the conll2003 dataset to include them. But IMO the default config should stay the current one (without the `-DOCSTART-` stuff), so that you can directly train NER models without additional preprocessing. Let me know what you think
Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~
73
The size of CoNLL-2003 is not consistant with the official release.
[ -0.022572508081793785, -0.2767099440097809, -0.21833929419517517, 0.30166035890579224, -0.20240063965320587, -0.2749671936035156, 0.19355984032154083, 0.01175008900463581, -0.8861897587776184, 0.09503652155399323, 0.03348317742347717, 0.009693018160760403, -0.038414184004068375, 0.09106376767158508, -0.22358576953411102, 0.12661053240299225, 0.09088994562625885, -0.007131856866180897, 0.14055563509464264, -0.09344522655010223, -0.14023417234420776, 0.42252597212791443, -0.2532884478569031, 0.051187947392463684, -0.27357926964759827, 0.21037644147872925, 0.12547700107097626, 0.06188962981104851, -0.49723172187805176, -0.15831418335437775, 0.2840145230293274, -0.19046732783317566, 0.3106396794319153, 0.2683355510234833, -0.00010672792268451303, -0.2817142605781555, 0.3390074670314789, -0.1947612315416336, -0.17951306700706482, 0.32574132084846497, -0.23706725239753723, 0.02776803821325302, -0.17484049499034882, 0.08344747126102448, -0.0552891306579113, 0.24720728397369385, -0.26104655861854553, 0.381862610578537, 0.1921624094247818, 0.028235962614417076, 0.3105134069919586, 0.07731557637453079, 0.2390664964914322, -0.14935243129730225, 0.15626859664916992, -0.025450028479099274, -0.0746888518333435, 0.08173272758722305, 0.028168534860014915, 0.0617099367082119, 0.12247554957866669, 0.1220935508608818, 0.2806965112686157, -0.26371026039123535, 0.1012946367263794, -0.3428458571434021, 0.12399464845657349, -0.1899757981300354, 0.20613285899162292, 0.09576316922903061, 0.31680089235305786, -0.12118332087993622, -0.16597247123718262, -0.024553101509809494, 0.08120160549879074, -0.08138865232467651, 0.015205278061330318, -0.15140938758850098, -0.08303950726985931, 0.022554578259587288, -0.40751874446868896, -0.1560589075088501, -0.24788329005241394, 0.04231451079249382, -0.4987002909183502, 0.42907950282096863, -0.1845710724592209, -0.00821264460682869, -0.008327586576342583, -0.10574869066476822, 0.4953666627407074, 0.1345149278640747, 0.013392253778874874, -0.10277915745973587, -0.12778891623020172, -0.18314318358898163, 0.08585088700056076, 0.08656570315361023, 0.1239456832408905, -0.2265016883611679, -0.18718528747558594, -0.4050774574279785, 0.1544632762670517, -0.2825954258441925, -0.06680646538734436, 0.3634123206138611, -0.05819293111562729, 0.21230673789978027, -0.1367029845714569, 0.0357184000313282, 0.4489479959011078, 0.17065563797950745, -0.4203414022922516, -0.18082073330879211, -0.3488228917121887, 0.12705262005329132, -0.3326706290245056, -0.15675725042819977, -0.1365022212266922, 0.05081092193722725, -0.01358914002776146, 0.012167843990027905, -0.10528430342674255, -0.020637087523937225, 0.2518486976623535, 0.27313879132270813, 0.045487239956855774, 0.071282759308815, 0.036240048706531525, -0.2117261439561844, -0.2609070837497711, -0.16671866178512573, 0.006703454069793224, -0.3742072284221649, -0.4067037105560303, 0.06736241281032562, 0.12780867516994476, -0.17745216190814972, 0.2661740481853485, 0.16453146934509277, -0.22997920215129852, 0.11954058706760406, -0.07387690246105194, 0.062447864562273026, -0.1409534513950348, -0.2945055067539215, -0.1597357839345932, 0.05860188230872154, -0.08018137514591217, 0.1586964726448059, 0.17554545402526855, -0.18243739008903503, -0.41238486766815186, 0.21314510703086853, -0.06235870346426964, 0.11798375844955444, 0.8060513734817505, -0.11078984290361404, 0.08951811492443085, 0.10517935454845428, 0.10223864018917084, -0.1992698460817337, -0.10143190622329712, -0.04813398793339729, 0.01127136405557394, -0.06864050775766373, -0.2628445029258728, 0.008068461902439594, -0.13388578593730927, -0.061014726758003235, 0.29929572343826294, 0.020542550832033157, 0.16222544014453888, 0.14833717048168182, -0.21865598857402802, -0.4454043507575989, 0.22771552205085754, -0.4016478359699249, -0.5035942196846008, 0.3029189705848694, -0.09411289542913437, -0.1736520528793335, 0.16982825100421906, -0.01366975624114275, 0.022462472319602966, 0.2135234773159027, 0.0005464006680995226, 0.016552602872252464, -0.013442320749163628, -0.15434980392456055, -0.27730417251586914, -0.21355868875980377, -0.3621767461299896, -0.12669645249843597, 0.3312520384788513, -0.13527032732963562, 0.012125466018915176, 0.10811913758516312, 0.461444616317749, 0.3244870603084564, -0.09367776662111282, 0.045855652540922165, 0.3705053925514221, -0.23641283810138702, -0.07180329412221909, 0.268494576215744, -0.20599500834941864, -0.016450317576527596, -0.09772885590791702, 0.010073328390717506, 0.5478811860084534, -0.0043445853516459465, -0.5303122997283936, 0.0010156916687265038, 0.22437451779842377, -0.01734016090631485, 0.18010491132736206, 0.15971317887306213, 0.41229745745658875, -0.014872949570417404, 0.21271882951259613, 0.150686576962471, 0.21918189525604248, -0.18882806599140167, 0.19228595495224, -0.2911267578601837, -0.20476679503917694, 0.1312037706375122, 0.14030571281909943, 0.012780541554093361, 0.025028083473443985, 0.057096607983112335, -0.10592125356197357, 0.16647043824195862, 0.37653636932373047, -0.14847369492053986, -0.08939830213785172, -0.059386253356933594, 0.03513926640152931, 0.12259070575237274, 0.13687008619308472, -0.2028556764125824, -0.1177479550242424, 0.19696879386901855, 0.0006009775679558516, 0.1637307107448578, 0.39289072155952454, -0.3859156370162964, -0.018118461593985558, -0.09771224111318588, -0.01558940950781107, 0.007656024768948555, 0.16201850771903992, -0.4739133417606354, -0.3914753794670105, 0.5039001703262329, -0.021045900881290436, 0.06855437159538269, -0.13497300446033478, -0.09010445326566696, 0.325300931930542, 0.06008632108569145, -0.08413579314947128, 0.23003913462162018, -0.21889743208885193, 0.19303447008132935, 0.18525855243206024, 0.40847474336624146, -0.060334477573633194, 0.3445313572883606, 0.3331589698791504, 0.041291799396276474, 0.08394427597522736, -0.07499634474515915, 0.3300824761390686, -0.0018523805774748325, 0.30436673760414124, 0.3480854034423828, 0.10998210310935974, 0.05833682790398598, 0.16711944341659546, -0.07100042700767517, 0.003371904604136944, -0.1245030015707016, 0.01662147231400013, -0.48473232984542847, -0.11000041663646698, -0.09867704659700394, 0.11820856481790543, -0.021822160109877586, -0.09064505994319916, -0.029657650738954544, 0.26839742064476013, -0.19142909348011017, 0.18572545051574707, 0.0634949654340744, -0.33322638273239136, 0.3465755581855774, 0.2403910756111145, 0.3038322329521179, 0.21179154515266418, 0.14157631993293762, -0.49571800231933594, 0.21589143574237823, -0.014213750138878822, -0.5701175332069397, -0.10598347336053848, -0.4750978350639343, 0.17815440893173218, -0.025804059579968452, -0.29827603697776794, 0.3745495676994324, -0.05198896676301956, -0.06566396355628967, 0.17829155921936035, -0.355293333530426, -0.273557186126709, 0.2984168231487274, -0.2658047080039978, 0.08762826770544052, -0.5192985534667969, 0.012188686057925224, -0.2725401222705841, -0.1042686179280281, -0.349770724773407, -0.020035358145833015, 0.09169914573431015, -0.2672080993652344, 0.1475326120853424, 0.08087838441133499, -0.05764206498861313, 0.22740529477596283, 0.06913333386182785, -0.029087800532579422, -0.06301398575305939, 0.11781362444162369, -0.18071827292442322, 0.07029853016138077, 0.02535719983279705, 0.07630736380815506, -0.12452159076929092, -0.2085568755865097, -0.010702693834900856, 0.10321453958749771, -0.2599649727344513, -0.487912654876709, -0.016522247344255447, -0.1387799084186554, 0.03269163891673088, -0.17243151366710663, -0.008402688428759575, 0.26774513721466064, 0.08621613681316376, -0.08203922212123871, -0.24911357462406158, -0.17636200785636902, -0.03169645741581917, 0.15906402468681335, 0.5323254466056824, 0.052739664912223816, 0.04339234530925751, 0.1888972669839859, 0.2820562720298767, 0.251185804605484, -0.12057926505804062, -0.02501247450709343, 0.18139320611953735, 0.09636994451284409, 0.009501022286713123, 0.25151312351226807, 0.31352341175079346, 0.1795312613248825, -0.16547459363937378, 0.4498836398124695, 0.020888781175017357, -0.14291821420192719, 0.15084236860275269, 0.26795607805252075, -0.14383329451084137, 0.17282967269420624, -0.17959171533584595, 0.4732537269592285, 0.22718121111392975, -0.006306116934865713, 0.008820257149636745, 0.002320989966392517, 0.018845656886696815, 0.0785498395562172, -0.17858251929283142, 0.22474214434623718, 0.09505392611026764, 0.23501668870449066, 0.4209257662296295, -0.3212703466415405, 0.44288501143455505, 0.15224702656269073, 0.02328299917280674, -0.08015422523021698, -0.4096827208995819, -0.07043271511793137, 0.11867596954107285, 0.4821475148200989, 0.022077521309256554, -0.09619108587503433, 0.24378447234630585, 0.013927462510764599, -0.352298766374588, -0.11796864122152328, -0.2614353895187378, -0.45558029413223267, 0.8263459801673889, 0.3348656892776489, -0.018218887969851494, 0.06972033530473709, 0.06277190148830414, -0.02482769824564457, -0.011795153841376305, -0.12731173634529114, -0.39889782667160034, 0.007636726833879948, -0.0031670944299548864, 0.1071193516254425, 0.069416843354702, 0.0420171394944191, 0.07557613402605057, -0.19552475214004517, 0.09036848694086075, -0.4469473361968994, -0.02550312876701355, 0.42245644330978394, 0.29173845052719116, 0.10061704367399216, 0.15840959548950195, -0.1817956566810608, 0.3792453706264496, 0.11066806316375732, 0.13746829330921173, 0.09990385919809341, -0.03924199193716049, 0.4952967166900635, -0.08497604727745056, 0.35482415556907654, 0.3592450022697449, 0.008620478212833405, -0.3032210171222687, -0.20779885351657867, 0.12667423486709595, 0.2708435654640198, -0.1556272953748703, 0.10607823729515076, -0.1638234555721283, -0.07096295803785324, 0.23734378814697266, -0.17294147610664368, 0.03190845623612404, -0.17305749654769897, -0.1710033416748047, -0.04999583959579468, 0.003717142390087247, -0.041541941463947296, 0.005044788587838411, 1.0388965606689453, -0.07649253308773041, -0.08363912254571915, -0.035283006727695465, -0.4231882691383362, 0.06691738218069077, -0.04103980213403702, 0.27628225088119507, -0.23826715350151062, -0.05274379625916481, 0.13258881866931915, -0.0023539226967841387, -0.2614169120788574, -0.053602661937475204, -0.2159799337387085, -0.009573218412697315, -0.27264803647994995, -0.3094085454940796, 0.17926430702209473, 0.17066052556037903, -0.005344582721590996, 0.31627506017684937, 0.5167540907859802, 0.20155607163906097, 0.3328982889652252, 0.2457006722688675, -0.2476808875799179, -0.16384121775627136, -0.26253458857536316, -0.13709093630313873, -0.35469064116477966, -0.0635029524564743, -0.18048332631587982, 0.08327142149209976, 0.10629524290561676, -0.39232394099235535, -0.08975858986377716, 0.286294549703598, 0.15266729891300201, 0.14012062549591064, -0.11725885421037674, 0.1869405061006546, 0.3880334794521332, 0.05991044268012047, 0.06004135683178902, 0.2792298197746277, -0.09260563552379608, -0.23888149857521057, -0.227744460105896, -0.05697440356016159, 0.06795845925807953, -0.08405163139104843, 0.008240279741585255, -0.043683819472789764, 0.3191702663898468, -0.1908513605594635, -0.024412851780653, -0.13747237622737885, -0.006009562872350216, -0.06735112518072128, 0.2628646790981293, -0.2052488923072815, 0.043781835585832596, -0.18708163499832153, 0.28900763392448425, -0.5104198455810547, -0.18842826783657074, 0.06609059870243073, 0.0998314693570137, 0.39400938153266907, -0.17056594789028168, -0.022948989644646645, -0.10048197954893112, -0.1889527589082718, 0.0628332644701004, -0.3068481385707855, -0.09035483002662659, -0.0892488956451416, 0.02719203382730484, -0.4944099485874176, -0.021963922306895256, 0.2982761263847351, 0.6405790448188782, 0.17974834144115448, -0.15325383841991425, 0.049514107406139374, -0.17117270827293396, 0.13626204431056976, -0.38009998202323914, 0.3457321524620056, -0.23593281209468842, 0.204773411154747, 0.026651890948414803, -0.3089701533317566, -0.3860304057598114, -0.09849522262811661, -0.12113560736179352, -0.07438915222883224, -0.3411923348903656, -0.2019113004207611, -0.16137434542179108, 0.12058301270008087, 0.28007766604423523, 0.1655416190624237, -0.2026142179965973, -0.3271569609642029, 0.04182502627372742, 0.07364049553871155, -0.02286709100008011, -0.1251097470521927, 0.028798241168260574, 0.24821029603481293, -0.33185112476348877, 0.1462431699037552, 0.06124679744243622, -0.17100757360458374, 0.23177318274974823, 0.32527050375938416, -0.44383880496025085, -0.05064227059483528, 0.16512173414230347, 0.1096014678478241, 0.32799169421195984, 0.39894899725914, -0.09240484237670898, 0.3391415476799011, 0.19116605818271637, 0.05688424035906792, 0.05992993712425232, 0.07735630869865417, -0.1157444417476654, 0.20907709002494812, 0.04265449196100235, 0.2418622523546219, 0.03182530403137207, 0.1690337210893631, -0.06173219159245491, -0.060725048184394836, 0.03230791911482811, -0.022507641464471817, 0.17174798250198364, 0.32716551423072815, -0.5012680888175964, -0.15168724954128265, -0.28217723965644836, 0.12045994400978088, -0.023792007938027382, 0.2686139941215515, 0.22752118110656738, -0.12979257106781006, 0.1984781175851822, 0.08398159593343735, 0.04149826243519783, 0.29043421149253845, -0.2605460286140442, 0.17614220082759857, 0.1514301598072052, 0.4610494375228882, 0.23095329105854034, -0.13396872580051422, 0.12786602973937988, -0.0649629458785057, 0.2542835772037506, -0.08645695447921753, -0.29181304574012756, 0.4955708980560303, 0.4399629235267639, -0.25073888897895813, 0.2871616780757904, 0.0694303885102272, -0.1416214257478714, 0.20177386701107025, 0.11070304363965988, -0.19990922510623932, 0.1270267367362976, 0.08912840485572815, -0.7043936848640442, -0.23104393482208252, -0.04831898584961891, 0.0186303798109293, 0.1699623465538025, -0.22270342707633972, 0.07849830389022827, 0.15956857800483704, -0.034884802997112274, -0.011149714700877666, -0.04022569954395294, 0.03964674100279808, -0.011653384193778038, 0.12968836724758148, -0.17145706713199615, 0.3007211685180664, -0.015067975036799908, -0.37153109908103943, 0.32017189264297485, -0.06827554851770401, 0.08982950448989868, -0.17261911928653717, 0.4848839044570923, 0.27971094846725464, 0.042088426649570465, -0.07101822644472122, -0.37227773666381836, 0.2504350543022156, -0.017294980585575104, -0.4809264838695526, 0.05716526508331299, 0.2593075633049011, -0.05719003453850746, 0.10693038254976273, 0.2786807119846344, -0.1893259584903717, -0.11426577717065811, -0.04620682820677757, -0.15514516830444336, -0.17747211456298828, -0.09467154741287231, -0.2452990859746933, 0.10621844977140427, -0.011368798092007637, 0.34999674558639526, -0.6226937174797058, 0.33196014165878296, 0.17121656239032745, 0.015196898952126503, 0.33800676465034485, 0.14182941615581512, 0.09312080591917038, -0.25959962606430054, -0.20819948613643646, 0.27154502272605896, 0.22469232976436615, 0.1590118259191513, -0.5216649770736694, 0.09037217497825623, 0.3705972731113434, -0.006287833210080862, -0.2327970713376999, -0.00437084911391139, 0.22055338323116302, -0.07517620176076889, -0.09177076816558838, 0.4965042471885681, -0.050740450620651245, -0.27507075667381287, 0.22257721424102783, -0.19634388387203217, 0.22278054058551788, 0.3211480677127838, -0.11566673219203949, 0.10358633100986481, -0.1430971473455429, -0.005721121095120907, -0.18222224712371826, 0.16605818271636963, -0.028343863785266876, -0.044447191059589386, 0.20890776813030243, 0.42337191104888916, 0.36630886793136597, 0.008421773090958595, 0.44603070616722107, -0.323752760887146, -0.40159931778907776, 0.04747314751148224, 0.15326851606369019, 0.08984679728746414, 0.017138196155428886, -0.2875155210494995, -0.23933164775371552, -0.2985086739063263, -0.05411685258150101, 0.21113187074661255, 0.43223369121551514, 0.3039759397506714, -0.07889453321695328, -0.31689080595970154, -0.07289892435073853, -0.33724087476730347, -0.1819048523902893, 0.27998748421669006, 0.2304299920797348, -0.15271875262260437, -0.29185956716537476, 0.10738172382116318, -0.1696673184633255, 0.13111825287342072, 0.060736965388059616, -0.1081564649939537, -0.12581324577331543, -0.17613574862480164, 0.08869573473930359, 0.015167168341577053, -0.09027532488107681, 0.0901707261800766, 0.21857880055904388, 0.17470355331897736, 0.1227765902876854, 0.3131079375743866, 0.08371076732873917, -0.17824335396289825, 0.03253156319260597, 0.6282631754875183, -0.06628323346376419, -0.3925221562385559, -0.17873571813106537, -0.08008860796689987 ]
https://github.com/huggingface/datasets/issues/1983
The size of CoNLL-2003 is not consistant with the official release.
@lhoestq Yes, I agree adding a small note should be sufficient. Currently, NLTK's `ConllCorpusReader` ignores the `-DOCSTART-` lines so I think it's ok if we do the same. If there is an interest in the future to use these lines, then we can include them.
Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~
45
The size of CoNLL-2003 is not consistant with the official release.
[ -0.022572508081793785, -0.2767099440097809, -0.21833929419517517, 0.30166035890579224, -0.20240063965320587, -0.2749671936035156, 0.19355984032154083, 0.01175008900463581, -0.8861897587776184, 0.09503652155399323, 0.03348317742347717, 0.009693018160760403, -0.038414184004068375, 0.09106376767158508, -0.22358576953411102, 0.12661053240299225, 0.09088994562625885, -0.007131856866180897, 0.14055563509464264, -0.09344522655010223, -0.14023417234420776, 0.42252597212791443, -0.2532884478569031, 0.051187947392463684, -0.27357926964759827, 0.21037644147872925, 0.12547700107097626, 0.06188962981104851, -0.49723172187805176, -0.15831418335437775, 0.2840145230293274, -0.19046732783317566, 0.3106396794319153, 0.2683355510234833, -0.00010672792268451303, -0.2817142605781555, 0.3390074670314789, -0.1947612315416336, -0.17951306700706482, 0.32574132084846497, -0.23706725239753723, 0.02776803821325302, -0.17484049499034882, 0.08344747126102448, -0.0552891306579113, 0.24720728397369385, -0.26104655861854553, 0.381862610578537, 0.1921624094247818, 0.028235962614417076, 0.3105134069919586, 0.07731557637453079, 0.2390664964914322, -0.14935243129730225, 0.15626859664916992, -0.025450028479099274, -0.0746888518333435, 0.08173272758722305, 0.028168534860014915, 0.0617099367082119, 0.12247554957866669, 0.1220935508608818, 0.2806965112686157, -0.26371026039123535, 0.1012946367263794, -0.3428458571434021, 0.12399464845657349, -0.1899757981300354, 0.20613285899162292, 0.09576316922903061, 0.31680089235305786, -0.12118332087993622, -0.16597247123718262, -0.024553101509809494, 0.08120160549879074, -0.08138865232467651, 0.015205278061330318, -0.15140938758850098, -0.08303950726985931, 0.022554578259587288, -0.40751874446868896, -0.1560589075088501, -0.24788329005241394, 0.04231451079249382, -0.4987002909183502, 0.42907950282096863, -0.1845710724592209, -0.00821264460682869, -0.008327586576342583, -0.10574869066476822, 0.4953666627407074, 0.1345149278640747, 0.013392253778874874, -0.10277915745973587, -0.12778891623020172, -0.18314318358898163, 0.08585088700056076, 0.08656570315361023, 0.1239456832408905, -0.2265016883611679, -0.18718528747558594, -0.4050774574279785, 0.1544632762670517, -0.2825954258441925, -0.06680646538734436, 0.3634123206138611, -0.05819293111562729, 0.21230673789978027, -0.1367029845714569, 0.0357184000313282, 0.4489479959011078, 0.17065563797950745, -0.4203414022922516, -0.18082073330879211, -0.3488228917121887, 0.12705262005329132, -0.3326706290245056, -0.15675725042819977, -0.1365022212266922, 0.05081092193722725, -0.01358914002776146, 0.012167843990027905, -0.10528430342674255, -0.020637087523937225, 0.2518486976623535, 0.27313879132270813, 0.045487239956855774, 0.071282759308815, 0.036240048706531525, -0.2117261439561844, -0.2609070837497711, -0.16671866178512573, 0.006703454069793224, -0.3742072284221649, -0.4067037105560303, 0.06736241281032562, 0.12780867516994476, -0.17745216190814972, 0.2661740481853485, 0.16453146934509277, -0.22997920215129852, 0.11954058706760406, -0.07387690246105194, 0.062447864562273026, -0.1409534513950348, -0.2945055067539215, -0.1597357839345932, 0.05860188230872154, -0.08018137514591217, 0.1586964726448059, 0.17554545402526855, -0.18243739008903503, -0.41238486766815186, 0.21314510703086853, -0.06235870346426964, 0.11798375844955444, 0.8060513734817505, -0.11078984290361404, 0.08951811492443085, 0.10517935454845428, 0.10223864018917084, -0.1992698460817337, -0.10143190622329712, -0.04813398793339729, 0.01127136405557394, -0.06864050775766373, -0.2628445029258728, 0.008068461902439594, -0.13388578593730927, -0.061014726758003235, 0.29929572343826294, 0.020542550832033157, 0.16222544014453888, 0.14833717048168182, -0.21865598857402802, -0.4454043507575989, 0.22771552205085754, -0.4016478359699249, -0.5035942196846008, 0.3029189705848694, -0.09411289542913437, -0.1736520528793335, 0.16982825100421906, -0.01366975624114275, 0.022462472319602966, 0.2135234773159027, 0.0005464006680995226, 0.016552602872252464, -0.013442320749163628, -0.15434980392456055, -0.27730417251586914, -0.21355868875980377, -0.3621767461299896, -0.12669645249843597, 0.3312520384788513, -0.13527032732963562, 0.012125466018915176, 0.10811913758516312, 0.461444616317749, 0.3244870603084564, -0.09367776662111282, 0.045855652540922165, 0.3705053925514221, -0.23641283810138702, -0.07180329412221909, 0.268494576215744, -0.20599500834941864, -0.016450317576527596, -0.09772885590791702, 0.010073328390717506, 0.5478811860084534, -0.0043445853516459465, -0.5303122997283936, 0.0010156916687265038, 0.22437451779842377, -0.01734016090631485, 0.18010491132736206, 0.15971317887306213, 0.41229745745658875, -0.014872949570417404, 0.21271882951259613, 0.150686576962471, 0.21918189525604248, -0.18882806599140167, 0.19228595495224, -0.2911267578601837, -0.20476679503917694, 0.1312037706375122, 0.14030571281909943, 0.012780541554093361, 0.025028083473443985, 0.057096607983112335, -0.10592125356197357, 0.16647043824195862, 0.37653636932373047, -0.14847369492053986, -0.08939830213785172, -0.059386253356933594, 0.03513926640152931, 0.12259070575237274, 0.13687008619308472, -0.2028556764125824, -0.1177479550242424, 0.19696879386901855, 0.0006009775679558516, 0.1637307107448578, 0.39289072155952454, -0.3859156370162964, -0.018118461593985558, -0.09771224111318588, -0.01558940950781107, 0.007656024768948555, 0.16201850771903992, -0.4739133417606354, -0.3914753794670105, 0.5039001703262329, -0.021045900881290436, 0.06855437159538269, -0.13497300446033478, -0.09010445326566696, 0.325300931930542, 0.06008632108569145, -0.08413579314947128, 0.23003913462162018, -0.21889743208885193, 0.19303447008132935, 0.18525855243206024, 0.40847474336624146, -0.060334477573633194, 0.3445313572883606, 0.3331589698791504, 0.041291799396276474, 0.08394427597522736, -0.07499634474515915, 0.3300824761390686, -0.0018523805774748325, 0.30436673760414124, 0.3480854034423828, 0.10998210310935974, 0.05833682790398598, 0.16711944341659546, -0.07100042700767517, 0.003371904604136944, -0.1245030015707016, 0.01662147231400013, -0.48473232984542847, -0.11000041663646698, -0.09867704659700394, 0.11820856481790543, -0.021822160109877586, -0.09064505994319916, -0.029657650738954544, 0.26839742064476013, -0.19142909348011017, 0.18572545051574707, 0.0634949654340744, -0.33322638273239136, 0.3465755581855774, 0.2403910756111145, 0.3038322329521179, 0.21179154515266418, 0.14157631993293762, -0.49571800231933594, 0.21589143574237823, -0.014213750138878822, -0.5701175332069397, -0.10598347336053848, -0.4750978350639343, 0.17815440893173218, -0.025804059579968452, -0.29827603697776794, 0.3745495676994324, -0.05198896676301956, -0.06566396355628967, 0.17829155921936035, -0.355293333530426, -0.273557186126709, 0.2984168231487274, -0.2658047080039978, 0.08762826770544052, -0.5192985534667969, 0.012188686057925224, -0.2725401222705841, -0.1042686179280281, -0.349770724773407, -0.020035358145833015, 0.09169914573431015, -0.2672080993652344, 0.1475326120853424, 0.08087838441133499, -0.05764206498861313, 0.22740529477596283, 0.06913333386182785, -0.029087800532579422, -0.06301398575305939, 0.11781362444162369, -0.18071827292442322, 0.07029853016138077, 0.02535719983279705, 0.07630736380815506, -0.12452159076929092, -0.2085568755865097, -0.010702693834900856, 0.10321453958749771, -0.2599649727344513, -0.487912654876709, -0.016522247344255447, -0.1387799084186554, 0.03269163891673088, -0.17243151366710663, -0.008402688428759575, 0.26774513721466064, 0.08621613681316376, -0.08203922212123871, -0.24911357462406158, -0.17636200785636902, -0.03169645741581917, 0.15906402468681335, 0.5323254466056824, 0.052739664912223816, 0.04339234530925751, 0.1888972669839859, 0.2820562720298767, 0.251185804605484, -0.12057926505804062, -0.02501247450709343, 0.18139320611953735, 0.09636994451284409, 0.009501022286713123, 0.25151312351226807, 0.31352341175079346, 0.1795312613248825, -0.16547459363937378, 0.4498836398124695, 0.020888781175017357, -0.14291821420192719, 0.15084236860275269, 0.26795607805252075, -0.14383329451084137, 0.17282967269420624, -0.17959171533584595, 0.4732537269592285, 0.22718121111392975, -0.006306116934865713, 0.008820257149636745, 0.002320989966392517, 0.018845656886696815, 0.0785498395562172, -0.17858251929283142, 0.22474214434623718, 0.09505392611026764, 0.23501668870449066, 0.4209257662296295, -0.3212703466415405, 0.44288501143455505, 0.15224702656269073, 0.02328299917280674, -0.08015422523021698, -0.4096827208995819, -0.07043271511793137, 0.11867596954107285, 0.4821475148200989, 0.022077521309256554, -0.09619108587503433, 0.24378447234630585, 0.013927462510764599, -0.352298766374588, -0.11796864122152328, -0.2614353895187378, -0.45558029413223267, 0.8263459801673889, 0.3348656892776489, -0.018218887969851494, 0.06972033530473709, 0.06277190148830414, -0.02482769824564457, -0.011795153841376305, -0.12731173634529114, -0.39889782667160034, 0.007636726833879948, -0.0031670944299548864, 0.1071193516254425, 0.069416843354702, 0.0420171394944191, 0.07557613402605057, -0.19552475214004517, 0.09036848694086075, -0.4469473361968994, -0.02550312876701355, 0.42245644330978394, 0.29173845052719116, 0.10061704367399216, 0.15840959548950195, -0.1817956566810608, 0.3792453706264496, 0.11066806316375732, 0.13746829330921173, 0.09990385919809341, -0.03924199193716049, 0.4952967166900635, -0.08497604727745056, 0.35482415556907654, 0.3592450022697449, 0.008620478212833405, -0.3032210171222687, -0.20779885351657867, 0.12667423486709595, 0.2708435654640198, -0.1556272953748703, 0.10607823729515076, -0.1638234555721283, -0.07096295803785324, 0.23734378814697266, -0.17294147610664368, 0.03190845623612404, -0.17305749654769897, -0.1710033416748047, -0.04999583959579468, 0.003717142390087247, -0.041541941463947296, 0.005044788587838411, 1.0388965606689453, -0.07649253308773041, -0.08363912254571915, -0.035283006727695465, -0.4231882691383362, 0.06691738218069077, -0.04103980213403702, 0.27628225088119507, -0.23826715350151062, -0.05274379625916481, 0.13258881866931915, -0.0023539226967841387, -0.2614169120788574, -0.053602661937475204, -0.2159799337387085, -0.009573218412697315, -0.27264803647994995, -0.3094085454940796, 0.17926430702209473, 0.17066052556037903, -0.005344582721590996, 0.31627506017684937, 0.5167540907859802, 0.20155607163906097, 0.3328982889652252, 0.2457006722688675, -0.2476808875799179, -0.16384121775627136, -0.26253458857536316, -0.13709093630313873, -0.35469064116477966, -0.0635029524564743, -0.18048332631587982, 0.08327142149209976, 0.10629524290561676, -0.39232394099235535, -0.08975858986377716, 0.286294549703598, 0.15266729891300201, 0.14012062549591064, -0.11725885421037674, 0.1869405061006546, 0.3880334794521332, 0.05991044268012047, 0.06004135683178902, 0.2792298197746277, -0.09260563552379608, -0.23888149857521057, -0.227744460105896, -0.05697440356016159, 0.06795845925807953, -0.08405163139104843, 0.008240279741585255, -0.043683819472789764, 0.3191702663898468, -0.1908513605594635, -0.024412851780653, -0.13747237622737885, -0.006009562872350216, -0.06735112518072128, 0.2628646790981293, -0.2052488923072815, 0.043781835585832596, -0.18708163499832153, 0.28900763392448425, -0.5104198455810547, -0.18842826783657074, 0.06609059870243073, 0.0998314693570137, 0.39400938153266907, -0.17056594789028168, -0.022948989644646645, -0.10048197954893112, -0.1889527589082718, 0.0628332644701004, -0.3068481385707855, -0.09035483002662659, -0.0892488956451416, 0.02719203382730484, -0.4944099485874176, -0.021963922306895256, 0.2982761263847351, 0.6405790448188782, 0.17974834144115448, -0.15325383841991425, 0.049514107406139374, -0.17117270827293396, 0.13626204431056976, -0.38009998202323914, 0.3457321524620056, -0.23593281209468842, 0.204773411154747, 0.026651890948414803, -0.3089701533317566, -0.3860304057598114, -0.09849522262811661, -0.12113560736179352, -0.07438915222883224, -0.3411923348903656, -0.2019113004207611, -0.16137434542179108, 0.12058301270008087, 0.28007766604423523, 0.1655416190624237, -0.2026142179965973, -0.3271569609642029, 0.04182502627372742, 0.07364049553871155, -0.02286709100008011, -0.1251097470521927, 0.028798241168260574, 0.24821029603481293, -0.33185112476348877, 0.1462431699037552, 0.06124679744243622, -0.17100757360458374, 0.23177318274974823, 0.32527050375938416, -0.44383880496025085, -0.05064227059483528, 0.16512173414230347, 0.1096014678478241, 0.32799169421195984, 0.39894899725914, -0.09240484237670898, 0.3391415476799011, 0.19116605818271637, 0.05688424035906792, 0.05992993712425232, 0.07735630869865417, -0.1157444417476654, 0.20907709002494812, 0.04265449196100235, 0.2418622523546219, 0.03182530403137207, 0.1690337210893631, -0.06173219159245491, -0.060725048184394836, 0.03230791911482811, -0.022507641464471817, 0.17174798250198364, 0.32716551423072815, -0.5012680888175964, -0.15168724954128265, -0.28217723965644836, 0.12045994400978088, -0.023792007938027382, 0.2686139941215515, 0.22752118110656738, -0.12979257106781006, 0.1984781175851822, 0.08398159593343735, 0.04149826243519783, 0.29043421149253845, -0.2605460286140442, 0.17614220082759857, 0.1514301598072052, 0.4610494375228882, 0.23095329105854034, -0.13396872580051422, 0.12786602973937988, -0.0649629458785057, 0.2542835772037506, -0.08645695447921753, -0.29181304574012756, 0.4955708980560303, 0.4399629235267639, -0.25073888897895813, 0.2871616780757904, 0.0694303885102272, -0.1416214257478714, 0.20177386701107025, 0.11070304363965988, -0.19990922510623932, 0.1270267367362976, 0.08912840485572815, -0.7043936848640442, -0.23104393482208252, -0.04831898584961891, 0.0186303798109293, 0.1699623465538025, -0.22270342707633972, 0.07849830389022827, 0.15956857800483704, -0.034884802997112274, -0.011149714700877666, -0.04022569954395294, 0.03964674100279808, -0.011653384193778038, 0.12968836724758148, -0.17145706713199615, 0.3007211685180664, -0.015067975036799908, -0.37153109908103943, 0.32017189264297485, -0.06827554851770401, 0.08982950448989868, -0.17261911928653717, 0.4848839044570923, 0.27971094846725464, 0.042088426649570465, -0.07101822644472122, -0.37227773666381836, 0.2504350543022156, -0.017294980585575104, -0.4809264838695526, 0.05716526508331299, 0.2593075633049011, -0.05719003453850746, 0.10693038254976273, 0.2786807119846344, -0.1893259584903717, -0.11426577717065811, -0.04620682820677757, -0.15514516830444336, -0.17747211456298828, -0.09467154741287231, -0.2452990859746933, 0.10621844977140427, -0.011368798092007637, 0.34999674558639526, -0.6226937174797058, 0.33196014165878296, 0.17121656239032745, 0.015196898952126503, 0.33800676465034485, 0.14182941615581512, 0.09312080591917038, -0.25959962606430054, -0.20819948613643646, 0.27154502272605896, 0.22469232976436615, 0.1590118259191513, -0.5216649770736694, 0.09037217497825623, 0.3705972731113434, -0.006287833210080862, -0.2327970713376999, -0.00437084911391139, 0.22055338323116302, -0.07517620176076889, -0.09177076816558838, 0.4965042471885681, -0.050740450620651245, -0.27507075667381287, 0.22257721424102783, -0.19634388387203217, 0.22278054058551788, 0.3211480677127838, -0.11566673219203949, 0.10358633100986481, -0.1430971473455429, -0.005721121095120907, -0.18222224712371826, 0.16605818271636963, -0.028343863785266876, -0.044447191059589386, 0.20890776813030243, 0.42337191104888916, 0.36630886793136597, 0.008421773090958595, 0.44603070616722107, -0.323752760887146, -0.40159931778907776, 0.04747314751148224, 0.15326851606369019, 0.08984679728746414, 0.017138196155428886, -0.2875155210494995, -0.23933164775371552, -0.2985086739063263, -0.05411685258150101, 0.21113187074661255, 0.43223369121551514, 0.3039759397506714, -0.07889453321695328, -0.31689080595970154, -0.07289892435073853, -0.33724087476730347, -0.1819048523902893, 0.27998748421669006, 0.2304299920797348, -0.15271875262260437, -0.29185956716537476, 0.10738172382116318, -0.1696673184633255, 0.13111825287342072, 0.060736965388059616, -0.1081564649939537, -0.12581324577331543, -0.17613574862480164, 0.08869573473930359, 0.015167168341577053, -0.09027532488107681, 0.0901707261800766, 0.21857880055904388, 0.17470355331897736, 0.1227765902876854, 0.3131079375743866, 0.08371076732873917, -0.17824335396289825, 0.03253156319260597, 0.6282631754875183, -0.06628323346376419, -0.3925221562385559, -0.17873571813106537, -0.08008860796689987 ]
https://github.com/huggingface/datasets/issues/1983
The size of CoNLL-2003 is not consistant with the official release.
I added a mention of this in conll2003's dataset card: https://github.com/huggingface/datasets/blob/fc9796920da88486c3b97690969aabf03d6b4088/datasets/conll2003/README.md#conll2003 Edit: just saw your PR @mariosasko (noticed it too late ^^) Let me take a look at it :)
Thanks for the dataset sharing! But when I use conll-2003, I meet some questions. The statistics of conll-2003 in this repo is : \#train 14041 \#dev 3250 \#test 3453 While the official statistics is: \#train 14987 \#dev 3466 \#test 3684 Wish for your reply~
30
The size of CoNLL-2003 is not consistant with the official release.
[ -0.022572508081793785, -0.2767099440097809, -0.21833929419517517, 0.30166035890579224, -0.20240063965320587, -0.2749671936035156, 0.19355984032154083, 0.01175008900463581, -0.8861897587776184, 0.09503652155399323, 0.03348317742347717, 0.009693018160760403, -0.038414184004068375, 0.09106376767158508, -0.22358576953411102, 0.12661053240299225, 0.09088994562625885, -0.007131856866180897, 0.14055563509464264, -0.09344522655010223, -0.14023417234420776, 0.42252597212791443, -0.2532884478569031, 0.051187947392463684, -0.27357926964759827, 0.21037644147872925, 0.12547700107097626, 0.06188962981104851, -0.49723172187805176, -0.15831418335437775, 0.2840145230293274, -0.19046732783317566, 0.3106396794319153, 0.2683355510234833, -0.00010672792268451303, -0.2817142605781555, 0.3390074670314789, -0.1947612315416336, -0.17951306700706482, 0.32574132084846497, -0.23706725239753723, 0.02776803821325302, -0.17484049499034882, 0.08344747126102448, -0.0552891306579113, 0.24720728397369385, -0.26104655861854553, 0.381862610578537, 0.1921624094247818, 0.028235962614417076, 0.3105134069919586, 0.07731557637453079, 0.2390664964914322, -0.14935243129730225, 0.15626859664916992, -0.025450028479099274, -0.0746888518333435, 0.08173272758722305, 0.028168534860014915, 0.0617099367082119, 0.12247554957866669, 0.1220935508608818, 0.2806965112686157, -0.26371026039123535, 0.1012946367263794, -0.3428458571434021, 0.12399464845657349, -0.1899757981300354, 0.20613285899162292, 0.09576316922903061, 0.31680089235305786, -0.12118332087993622, -0.16597247123718262, -0.024553101509809494, 0.08120160549879074, -0.08138865232467651, 0.015205278061330318, -0.15140938758850098, -0.08303950726985931, 0.022554578259587288, -0.40751874446868896, -0.1560589075088501, -0.24788329005241394, 0.04231451079249382, -0.4987002909183502, 0.42907950282096863, -0.1845710724592209, -0.00821264460682869, -0.008327586576342583, -0.10574869066476822, 0.4953666627407074, 0.1345149278640747, 0.013392253778874874, -0.10277915745973587, -0.12778891623020172, -0.18314318358898163, 0.08585088700056076, 0.08656570315361023, 0.1239456832408905, -0.2265016883611679, -0.18718528747558594, -0.4050774574279785, 0.1544632762670517, -0.2825954258441925, -0.06680646538734436, 0.3634123206138611, -0.05819293111562729, 0.21230673789978027, -0.1367029845714569, 0.0357184000313282, 0.4489479959011078, 0.17065563797950745, -0.4203414022922516, -0.18082073330879211, -0.3488228917121887, 0.12705262005329132, -0.3326706290245056, -0.15675725042819977, -0.1365022212266922, 0.05081092193722725, -0.01358914002776146, 0.012167843990027905, -0.10528430342674255, -0.020637087523937225, 0.2518486976623535, 0.27313879132270813, 0.045487239956855774, 0.071282759308815, 0.036240048706531525, -0.2117261439561844, -0.2609070837497711, -0.16671866178512573, 0.006703454069793224, -0.3742072284221649, -0.4067037105560303, 0.06736241281032562, 0.12780867516994476, -0.17745216190814972, 0.2661740481853485, 0.16453146934509277, -0.22997920215129852, 0.11954058706760406, -0.07387690246105194, 0.062447864562273026, -0.1409534513950348, -0.2945055067539215, -0.1597357839345932, 0.05860188230872154, -0.08018137514591217, 0.1586964726448059, 0.17554545402526855, -0.18243739008903503, -0.41238486766815186, 0.21314510703086853, -0.06235870346426964, 0.11798375844955444, 0.8060513734817505, -0.11078984290361404, 0.08951811492443085, 0.10517935454845428, 0.10223864018917084, -0.1992698460817337, -0.10143190622329712, -0.04813398793339729, 0.01127136405557394, -0.06864050775766373, -0.2628445029258728, 0.008068461902439594, -0.13388578593730927, -0.061014726758003235, 0.29929572343826294, 0.020542550832033157, 0.16222544014453888, 0.14833717048168182, -0.21865598857402802, -0.4454043507575989, 0.22771552205085754, -0.4016478359699249, -0.5035942196846008, 0.3029189705848694, -0.09411289542913437, -0.1736520528793335, 0.16982825100421906, -0.01366975624114275, 0.022462472319602966, 0.2135234773159027, 0.0005464006680995226, 0.016552602872252464, -0.013442320749163628, -0.15434980392456055, -0.27730417251586914, -0.21355868875980377, -0.3621767461299896, -0.12669645249843597, 0.3312520384788513, -0.13527032732963562, 0.012125466018915176, 0.10811913758516312, 0.461444616317749, 0.3244870603084564, -0.09367776662111282, 0.045855652540922165, 0.3705053925514221, -0.23641283810138702, -0.07180329412221909, 0.268494576215744, -0.20599500834941864, -0.016450317576527596, -0.09772885590791702, 0.010073328390717506, 0.5478811860084534, -0.0043445853516459465, -0.5303122997283936, 0.0010156916687265038, 0.22437451779842377, -0.01734016090631485, 0.18010491132736206, 0.15971317887306213, 0.41229745745658875, -0.014872949570417404, 0.21271882951259613, 0.150686576962471, 0.21918189525604248, -0.18882806599140167, 0.19228595495224, -0.2911267578601837, -0.20476679503917694, 0.1312037706375122, 0.14030571281909943, 0.012780541554093361, 0.025028083473443985, 0.057096607983112335, -0.10592125356197357, 0.16647043824195862, 0.37653636932373047, -0.14847369492053986, -0.08939830213785172, -0.059386253356933594, 0.03513926640152931, 0.12259070575237274, 0.13687008619308472, -0.2028556764125824, -0.1177479550242424, 0.19696879386901855, 0.0006009775679558516, 0.1637307107448578, 0.39289072155952454, -0.3859156370162964, -0.018118461593985558, -0.09771224111318588, -0.01558940950781107, 0.007656024768948555, 0.16201850771903992, -0.4739133417606354, -0.3914753794670105, 0.5039001703262329, -0.021045900881290436, 0.06855437159538269, -0.13497300446033478, -0.09010445326566696, 0.325300931930542, 0.06008632108569145, -0.08413579314947128, 0.23003913462162018, -0.21889743208885193, 0.19303447008132935, 0.18525855243206024, 0.40847474336624146, -0.060334477573633194, 0.3445313572883606, 0.3331589698791504, 0.041291799396276474, 0.08394427597522736, -0.07499634474515915, 0.3300824761390686, -0.0018523805774748325, 0.30436673760414124, 0.3480854034423828, 0.10998210310935974, 0.05833682790398598, 0.16711944341659546, -0.07100042700767517, 0.003371904604136944, -0.1245030015707016, 0.01662147231400013, -0.48473232984542847, -0.11000041663646698, -0.09867704659700394, 0.11820856481790543, -0.021822160109877586, -0.09064505994319916, -0.029657650738954544, 0.26839742064476013, -0.19142909348011017, 0.18572545051574707, 0.0634949654340744, -0.33322638273239136, 0.3465755581855774, 0.2403910756111145, 0.3038322329521179, 0.21179154515266418, 0.14157631993293762, -0.49571800231933594, 0.21589143574237823, -0.014213750138878822, -0.5701175332069397, -0.10598347336053848, -0.4750978350639343, 0.17815440893173218, -0.025804059579968452, -0.29827603697776794, 0.3745495676994324, -0.05198896676301956, -0.06566396355628967, 0.17829155921936035, -0.355293333530426, -0.273557186126709, 0.2984168231487274, -0.2658047080039978, 0.08762826770544052, -0.5192985534667969, 0.012188686057925224, -0.2725401222705841, -0.1042686179280281, -0.349770724773407, -0.020035358145833015, 0.09169914573431015, -0.2672080993652344, 0.1475326120853424, 0.08087838441133499, -0.05764206498861313, 0.22740529477596283, 0.06913333386182785, -0.029087800532579422, -0.06301398575305939, 0.11781362444162369, -0.18071827292442322, 0.07029853016138077, 0.02535719983279705, 0.07630736380815506, -0.12452159076929092, -0.2085568755865097, -0.010702693834900856, 0.10321453958749771, -0.2599649727344513, -0.487912654876709, -0.016522247344255447, -0.1387799084186554, 0.03269163891673088, -0.17243151366710663, -0.008402688428759575, 0.26774513721466064, 0.08621613681316376, -0.08203922212123871, -0.24911357462406158, -0.17636200785636902, -0.03169645741581917, 0.15906402468681335, 0.5323254466056824, 0.052739664912223816, 0.04339234530925751, 0.1888972669839859, 0.2820562720298767, 0.251185804605484, -0.12057926505804062, -0.02501247450709343, 0.18139320611953735, 0.09636994451284409, 0.009501022286713123, 0.25151312351226807, 0.31352341175079346, 0.1795312613248825, -0.16547459363937378, 0.4498836398124695, 0.020888781175017357, -0.14291821420192719, 0.15084236860275269, 0.26795607805252075, -0.14383329451084137, 0.17282967269420624, -0.17959171533584595, 0.4732537269592285, 0.22718121111392975, -0.006306116934865713, 0.008820257149636745, 0.002320989966392517, 0.018845656886696815, 0.0785498395562172, -0.17858251929283142, 0.22474214434623718, 0.09505392611026764, 0.23501668870449066, 0.4209257662296295, -0.3212703466415405, 0.44288501143455505, 0.15224702656269073, 0.02328299917280674, -0.08015422523021698, -0.4096827208995819, -0.07043271511793137, 0.11867596954107285, 0.4821475148200989, 0.022077521309256554, -0.09619108587503433, 0.24378447234630585, 0.013927462510764599, -0.352298766374588, -0.11796864122152328, -0.2614353895187378, -0.45558029413223267, 0.8263459801673889, 0.3348656892776489, -0.018218887969851494, 0.06972033530473709, 0.06277190148830414, -0.02482769824564457, -0.011795153841376305, -0.12731173634529114, -0.39889782667160034, 0.007636726833879948, -0.0031670944299548864, 0.1071193516254425, 0.069416843354702, 0.0420171394944191, 0.07557613402605057, -0.19552475214004517, 0.09036848694086075, -0.4469473361968994, -0.02550312876701355, 0.42245644330978394, 0.29173845052719116, 0.10061704367399216, 0.15840959548950195, -0.1817956566810608, 0.3792453706264496, 0.11066806316375732, 0.13746829330921173, 0.09990385919809341, -0.03924199193716049, 0.4952967166900635, -0.08497604727745056, 0.35482415556907654, 0.3592450022697449, 0.008620478212833405, -0.3032210171222687, -0.20779885351657867, 0.12667423486709595, 0.2708435654640198, -0.1556272953748703, 0.10607823729515076, -0.1638234555721283, -0.07096295803785324, 0.23734378814697266, -0.17294147610664368, 0.03190845623612404, -0.17305749654769897, -0.1710033416748047, -0.04999583959579468, 0.003717142390087247, -0.041541941463947296, 0.005044788587838411, 1.0388965606689453, -0.07649253308773041, -0.08363912254571915, -0.035283006727695465, -0.4231882691383362, 0.06691738218069077, -0.04103980213403702, 0.27628225088119507, -0.23826715350151062, -0.05274379625916481, 0.13258881866931915, -0.0023539226967841387, -0.2614169120788574, -0.053602661937475204, -0.2159799337387085, -0.009573218412697315, -0.27264803647994995, -0.3094085454940796, 0.17926430702209473, 0.17066052556037903, -0.005344582721590996, 0.31627506017684937, 0.5167540907859802, 0.20155607163906097, 0.3328982889652252, 0.2457006722688675, -0.2476808875799179, -0.16384121775627136, -0.26253458857536316, -0.13709093630313873, -0.35469064116477966, -0.0635029524564743, -0.18048332631587982, 0.08327142149209976, 0.10629524290561676, -0.39232394099235535, -0.08975858986377716, 0.286294549703598, 0.15266729891300201, 0.14012062549591064, -0.11725885421037674, 0.1869405061006546, 0.3880334794521332, 0.05991044268012047, 0.06004135683178902, 0.2792298197746277, -0.09260563552379608, -0.23888149857521057, -0.227744460105896, -0.05697440356016159, 0.06795845925807953, -0.08405163139104843, 0.008240279741585255, -0.043683819472789764, 0.3191702663898468, -0.1908513605594635, -0.024412851780653, -0.13747237622737885, -0.006009562872350216, -0.06735112518072128, 0.2628646790981293, -0.2052488923072815, 0.043781835585832596, -0.18708163499832153, 0.28900763392448425, -0.5104198455810547, -0.18842826783657074, 0.06609059870243073, 0.0998314693570137, 0.39400938153266907, -0.17056594789028168, -0.022948989644646645, -0.10048197954893112, -0.1889527589082718, 0.0628332644701004, -0.3068481385707855, -0.09035483002662659, -0.0892488956451416, 0.02719203382730484, -0.4944099485874176, -0.021963922306895256, 0.2982761263847351, 0.6405790448188782, 0.17974834144115448, -0.15325383841991425, 0.049514107406139374, -0.17117270827293396, 0.13626204431056976, -0.38009998202323914, 0.3457321524620056, -0.23593281209468842, 0.204773411154747, 0.026651890948414803, -0.3089701533317566, -0.3860304057598114, -0.09849522262811661, -0.12113560736179352, -0.07438915222883224, -0.3411923348903656, -0.2019113004207611, -0.16137434542179108, 0.12058301270008087, 0.28007766604423523, 0.1655416190624237, -0.2026142179965973, -0.3271569609642029, 0.04182502627372742, 0.07364049553871155, -0.02286709100008011, -0.1251097470521927, 0.028798241168260574, 0.24821029603481293, -0.33185112476348877, 0.1462431699037552, 0.06124679744243622, -0.17100757360458374, 0.23177318274974823, 0.32527050375938416, -0.44383880496025085, -0.05064227059483528, 0.16512173414230347, 0.1096014678478241, 0.32799169421195984, 0.39894899725914, -0.09240484237670898, 0.3391415476799011, 0.19116605818271637, 0.05688424035906792, 0.05992993712425232, 0.07735630869865417, -0.1157444417476654, 0.20907709002494812, 0.04265449196100235, 0.2418622523546219, 0.03182530403137207, 0.1690337210893631, -0.06173219159245491, -0.060725048184394836, 0.03230791911482811, -0.022507641464471817, 0.17174798250198364, 0.32716551423072815, -0.5012680888175964, -0.15168724954128265, -0.28217723965644836, 0.12045994400978088, -0.023792007938027382, 0.2686139941215515, 0.22752118110656738, -0.12979257106781006, 0.1984781175851822, 0.08398159593343735, 0.04149826243519783, 0.29043421149253845, -0.2605460286140442, 0.17614220082759857, 0.1514301598072052, 0.4610494375228882, 0.23095329105854034, -0.13396872580051422, 0.12786602973937988, -0.0649629458785057, 0.2542835772037506, -0.08645695447921753, -0.29181304574012756, 0.4955708980560303, 0.4399629235267639, -0.25073888897895813, 0.2871616780757904, 0.0694303885102272, -0.1416214257478714, 0.20177386701107025, 0.11070304363965988, -0.19990922510623932, 0.1270267367362976, 0.08912840485572815, -0.7043936848640442, -0.23104393482208252, -0.04831898584961891, 0.0186303798109293, 0.1699623465538025, -0.22270342707633972, 0.07849830389022827, 0.15956857800483704, -0.034884802997112274, -0.011149714700877666, -0.04022569954395294, 0.03964674100279808, -0.011653384193778038, 0.12968836724758148, -0.17145706713199615, 0.3007211685180664, -0.015067975036799908, -0.37153109908103943, 0.32017189264297485, -0.06827554851770401, 0.08982950448989868, -0.17261911928653717, 0.4848839044570923, 0.27971094846725464, 0.042088426649570465, -0.07101822644472122, -0.37227773666381836, 0.2504350543022156, -0.017294980585575104, -0.4809264838695526, 0.05716526508331299, 0.2593075633049011, -0.05719003453850746, 0.10693038254976273, 0.2786807119846344, -0.1893259584903717, -0.11426577717065811, -0.04620682820677757, -0.15514516830444336, -0.17747211456298828, -0.09467154741287231, -0.2452990859746933, 0.10621844977140427, -0.011368798092007637, 0.34999674558639526, -0.6226937174797058, 0.33196014165878296, 0.17121656239032745, 0.015196898952126503, 0.33800676465034485, 0.14182941615581512, 0.09312080591917038, -0.25959962606430054, -0.20819948613643646, 0.27154502272605896, 0.22469232976436615, 0.1590118259191513, -0.5216649770736694, 0.09037217497825623, 0.3705972731113434, -0.006287833210080862, -0.2327970713376999, -0.00437084911391139, 0.22055338323116302, -0.07517620176076889, -0.09177076816558838, 0.4965042471885681, -0.050740450620651245, -0.27507075667381287, 0.22257721424102783, -0.19634388387203217, 0.22278054058551788, 0.3211480677127838, -0.11566673219203949, 0.10358633100986481, -0.1430971473455429, -0.005721121095120907, -0.18222224712371826, 0.16605818271636963, -0.028343863785266876, -0.044447191059589386, 0.20890776813030243, 0.42337191104888916, 0.36630886793136597, 0.008421773090958595, 0.44603070616722107, -0.323752760887146, -0.40159931778907776, 0.04747314751148224, 0.15326851606369019, 0.08984679728746414, 0.017138196155428886, -0.2875155210494995, -0.23933164775371552, -0.2985086739063263, -0.05411685258150101, 0.21113187074661255, 0.43223369121551514, 0.3039759397506714, -0.07889453321695328, -0.31689080595970154, -0.07289892435073853, -0.33724087476730347, -0.1819048523902893, 0.27998748421669006, 0.2304299920797348, -0.15271875262260437, -0.29185956716537476, 0.10738172382116318, -0.1696673184633255, 0.13111825287342072, 0.060736965388059616, -0.1081564649939537, -0.12581324577331543, -0.17613574862480164, 0.08869573473930359, 0.015167168341577053, -0.09027532488107681, 0.0901707261800766, 0.21857880055904388, 0.17470355331897736, 0.1227765902876854, 0.3131079375743866, 0.08371076732873917, -0.17824335396289825, 0.03253156319260597, 0.6282631754875183, -0.06628323346376419, -0.3925221562385559, -0.17873571813106537, -0.08008860796689987 ]
https://github.com/huggingface/datasets/issues/1981
wmt datasets fail to load
yes, of course, I reverted to the version before that and it works ;) but since a new release was just made you will probably need to make a hotfix. and add the wmt to the tests?
on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova
37
wmt datasets fail to load
[ -0.5040450096130371, -0.012289609760046005, -0.10162171721458435, 0.4486389756202698, 0.2820448577404022, 0.1888657808303833, 0.2616220712661743, 0.0475592315196991, 0.2945083975791931, 0.00625629210844636, -0.02292943373322487, 0.061173781752586365, -0.12945328652858734, 0.14877133071422577, -0.07433541864156723, 0.10901498794555664, -0.19671672582626343, -0.01385597325861454, -0.5899648070335388, -0.15190917253494263, -0.3240792751312256, 0.09356583654880524, -0.14941120147705078, 0.032533396035432816, -0.5062142014503479, -0.04846522957086563, 0.08289573341608047, 0.38963061571121216, -0.122432179749012, -0.11811469495296478, 0.10607492178678513, 0.10025470703840256, 0.1335815042257309, 0.2746760845184326, -0.00010421323531772941, 0.0806918814778328, 0.19244582951068878, -0.015605486929416656, -0.3004933297634125, 0.03895893692970276, -0.7674546241760254, -0.35253769159317017, 0.0247234757989645, 0.09601426869630814, 0.015225055627524853, -0.18482019007205963, -0.07726708054542542, -0.2983512282371521, 0.377294659614563, 0.11116912961006165, 0.33635786175727844, 0.38139471411705017, -0.17115263640880585, -0.248180091381073, 0.35873451828956604, -0.02472851797938347, -0.12182914465665817, 0.10658875107765198, 0.26844802498817444, -0.2445075511932373, 0.005407616030424833, 0.1470826417207718, -0.014653709717094898, 0.2408381849527359, 0.05604016035795212, -0.031049566343426704, 0.20531709492206573, 0.2572157084941864, 0.24885237216949463, 0.272779256105423, 0.8188565969467163, 0.1886385828256607, -0.14593060314655304, 0.2437734603881836, 0.11888304352760315, -0.2227771133184433, 0.3543090522289276, 0.20041361451148987, -0.029934288933873177, 0.2717733383178711, -0.35431256890296936, 0.19089162349700928, 0.07752624154090881, 0.20518507063388824, -0.3316650390625, 0.24674092233181, -0.09010700136423111, 0.0655597448348999, -0.26716041564941406, -0.0763569250702858, 0.3563441038131714, -0.02935776114463806, 0.037742674350738525, -0.22713840007781982, -0.10570287704467773, 0.18150703608989716, 0.14379331469535828, 0.08166936784982681, -0.17848524451255798, -0.05701390653848648, 0.2370951622724533, 0.30979496240615845, 0.1454690545797348, 0.006305574905127287, 0.21896009147167206, 0.005251002032309771, -0.007021836470812559, -0.3549134135246277, 0.34600773453712463, -0.03121507167816162, -0.3577424883842468, 0.0012214846210554242, -0.13835029304027557, -0.25961652398109436, -0.01885160617530346, -0.24637296795845032, 0.21985748410224915, -0.07373698800802231, -0.2831859588623047, 0.11910822987556458, 0.21498969197273254, -0.23190471529960632, -0.12706588208675385, 0.4086160659790039, 0.03098955564200878, 0.00025371331139467657, 0.2871180772781372, 0.02871767431497574, -0.0022823456674814224, -0.12132101505994797, -0.37591710686683655, -0.22132298350334167, -0.26416030526161194, 0.13792863488197327, 0.45426857471466064, 0.2641155421733856, 0.2826014459133148, -0.26260948181152344, -0.22346541285514832, -0.26898208260536194, 0.171986922621727, 0.20146328210830688, 0.09035003185272217, 0.48288822174072266, 0.04902251809835434, 0.30365297198295593, 0.20640255510807037, 0.2715119421482086, 0.11468954384326935, 0.19967013597488403, -0.2417280226945877, -0.11830577999353409, 0.23715244233608246, 0.28204870223999023, 0.029911138117313385, 0.031146619468927383, 0.00410859938710928, 0.020917601883411407, -0.11837759613990784, 0.024291429668664932, -0.2683120667934418, -0.17727358639240265, -0.11296426504850388, -0.0732014998793602, -0.019845664501190186, 0.6070684790611267, -0.32408204674720764, -0.07762882858514786, -0.030831994488835335, -0.018046336248517036, 0.21610747277736664, 0.21110109984874725, -0.2616664469242096, 0.13972148299217224, -0.1389142870903015, -0.16079045832157135, 0.16654115915298462, -0.06419539451599121, -0.13701950013637543, 0.10637178272008896, -0.14075328409671783, -0.0868937224149704, -0.07207286357879639, 0.013785799965262413, -0.10730966180562973, -0.06685476750135422, 0.2701515555381775, 0.1366487443447113, -0.031287625432014465, -0.01925731636583805, -0.12125860154628754, -0.334975004196167, 0.35592934489250183, 0.22091621160507202, 0.20940212905406952, -0.1203981339931488, 0.2201641947031021, 0.2003934532403946, 0.07498305290937424, 0.08207076787948608, -0.06626952439546585, 0.08112755417823792, -0.21618764102458954, -0.11500178277492523, 0.02260356768965721, -0.06371735036373138, -0.3131362199783325, 0.09110231697559357, 0.11640577763319016, 0.0893620029091835, 0.3512340188026428, 0.26421821117401123, -0.24576261639595032, 0.21450373530387878, -0.1604067087173462, 0.025140702724456787, 0.26419681310653687, 0.23862513899803162, -0.5213552713394165, -0.014900604262948036, -0.007057921029627323, -0.31839051842689514, -0.20874656736850739, -0.017958246171474457, 0.11259153485298157, 0.18638038635253906, 0.011482924222946167, -0.12365955859422684, 0.14691448211669922, 0.11674397438764572, 0.20603856444358826, -0.03769366070628166, -0.1636894941329956, 0.08183905482292175, 0.0635751485824585, 0.2392227202653885, -0.007346279453486204, 0.1462496668100357, 0.14933985471725464, -0.5040812492370605, 0.32844698429107666, 0.03061501868069172, 0.010691214352846146, -0.28886866569519043, -0.1626727133989334, 0.0214216485619545, -0.1362721472978592, 0.00392434187233448, -0.0615716390311718, 0.044970978051424026, 0.2920598089694977, -0.1561054289340973, -0.011926203966140747, -0.3764980137348175, 0.1173393726348877, 0.19359122216701508, -0.03897034004330635, 0.09089697152376175, 0.010577261447906494, -0.03546799719333649, 0.31356576085090637, 0.2299640029668808, 0.33201563358306885, -0.272352397441864, -0.5296446681022644, -0.09911618381738663, 0.20402370393276215, 0.10517515987157822, 0.29706311225891113, 0.24278588593006134, 0.2133161872625351, -0.044527262449264526, -0.2006705403327942, -0.47084781527519226, 0.156050443649292, 0.026797574013471603, 0.0309431292116642, 0.3396027684211731, 0.10517051070928574, -0.1589699685573578, -0.545521080493927, 0.21983730792999268, 0.20825891196727753, -0.011348320171236992, -0.23276843130588531, -0.1801825910806656, -0.47197261452674866, 0.09684430062770844, -0.1440057009458542, -0.26684704422950745, 0.02032875269651413, -0.4320564866065979, 0.021692950278520584, 0.09513211250305176, -0.1275620311498642, 0.20186972618103027, -0.01571427658200264, 0.3902011215686798, 0.018059179186820984, 0.5125479698181152, 0.03602314367890358, -0.33321085572242737, -0.1769740879535675, 0.15371857583522797, 0.3135702908039093, 0.19039073586463928, 0.3164433538913727, -0.2868943512439728, 0.10795294493436813, -0.18451590836048126, -0.13897398114204407, 0.0705532431602478, 0.1647895872592926, 0.28912797570228577, 0.10881219804286957, 0.4299696981906891, 0.08942099660634995, -0.19669732451438904, 0.3859315514564514, -0.138739213347435, 0.12940017879009247, -0.006028300151228905, 0.038782086223363876, -0.22685816884040833, -0.12752851843833923, -0.6302875280380249, -0.14749360084533691, -0.3035428524017334, -0.29948481917381287, 0.031002849340438843, -0.018555626273155212, 0.23151814937591553, 0.16045144200325012, 0.0575282908976078, -0.030500449240207672, 0.17306481301784515, -0.361752986907959, -0.32874974608421326, 0.34948861598968506, -0.2451474964618683, -0.42908748984336853, 0.3955519199371338, 0.005282774567604065, 0.1456427425146103, 0.2557879686355591, -0.3369433283805847, 0.08731154352426529, 0.019360169768333435, -0.20379678905010223, 0.18526142835617065, 0.12655982375144958, 0.02320765145123005, 0.17080821096897125, -0.2017573118209839, -0.3857734799385071, -0.1389865130186081, -0.05622288957238197, 0.016742438077926636, 0.30322396755218506, -0.2680341601371765, 0.12903185188770294, -0.3002912402153015, 0.5823432803153992, -0.296398788690567, -0.17703163623809814, 0.20707151293754578, 0.01468750275671482, 0.3663729727268219, 0.15313315391540527, -0.20383983850479126, -0.062059495598077774, -0.10711207240819931, 0.11066675931215286, 0.4840126037597656, 0.3072628080844879, 0.010873927734792233, -0.17196208238601685, 0.23852653801441193, -0.2715992033481598, -0.3046002984046936, -0.041058335453271866, 0.13595086336135864, 0.1042809709906578, 0.319793164730072, 0.27622783184051514, -0.13731767237186432, -0.15995250642299652, 0.0070247040130198, 0.26650193333625793, -0.013424941338598728, -0.025567645207047462, -0.06692630052566528, 0.15792658925056458, -0.15202771127223969, 0.02276144176721573, -0.17106729745864868, 0.5806255340576172, -0.23176325857639313, -0.1123596653342247, 0.04355812817811966, 0.01953505352139473, 0.34193894267082214, -0.3587394952774048, 0.4430396854877472, 0.10323549062013626, -0.16918189823627472, -0.07117113471031189, -0.1374605894088745, -0.3096317946910858, -0.15513285994529724, 0.08204261213541031, 0.19261711835861206, 0.08148642629384995, -0.1061810776591301, 0.05414401739835739, 0.1205267682671547, -0.17343205213546753, -0.202032670378685, 0.04092897102236748, -0.2111252099275589, -0.26557037234306335, -0.2560255527496338, -0.16515542566776276, -0.08505968749523163, -0.41968491673469543, -0.38456258177757263, -0.14121440052986145, 0.10530684888362885, 0.22571595013141632, 0.16960467398166656, 0.0006976287695579231, 0.26263943314552307, 0.14342427253723145, 0.08206504583358765, 0.6693819165229797, 0.5171396732330322, 0.5213221907615662, -0.16674314439296722, 0.01206304132938385, 0.14757733047008514, -0.3914068639278412, 0.04348291456699371, 0.45139065384864807, -0.026659322902560234, -0.06707095354795456, 0.039576366543769836, 0.045967064797878265, -0.26446735858917236, 0.4160865843296051, 0.14189526438713074, 0.10406000167131424, -0.24562039971351624, 0.014557693153619766, 0.08854126185178757, -0.1013343334197998, -0.08442265540361404, 0.18817754089832306, -0.03142105042934418, -0.27719053626060486, -0.11131235212087631, 0.19590069353580475, 0.7465793490409851, -0.3574509024620056, 0.22703363001346588, 0.17933404445648193, 0.050505176186561584, 0.2283754050731659, 0.09918313473463058, -0.051747169345617294, -0.18915322422981262, -0.2547939121723175, -0.09582878649234772, -0.12851418554782867, 0.19249653816223145, 0.3946770429611206, 0.08190476149320602, 0.09013452380895615, 0.2698702812194824, 0.28791993856430054, 0.08868735283613205, -0.0935160294175148, -0.026314178481698036, -0.06630156934261322, -0.20529517531394958, 0.23674233257770538, -0.07619278877973557, 0.06676264852285385, -0.3424857258796692, 0.004594792146235704, 0.270332396030426, -0.14228637516498566, -0.20552469789981842, -0.06865644454956055, -0.3395402431488037, 0.06763364374637604, -0.20817910134792328, -0.12804831564426422, 0.23876291513442993, -0.07630715519189835, -0.10291498154401779, 0.32941606640815735, -0.3634829521179199, 0.177858367562294, -0.2564801573753357, -0.12208210676908493, -0.4721459746360779, 0.14597904682159424, 0.1704738885164261, -0.07902751117944717, -0.11696288734674454, -0.10650475323200226, -0.055255237966775894, 0.01138162612915039, 0.04381049796938896, 0.16956867277622223, 0.05991025269031525, -0.1637258380651474, -0.10907816141843796, 0.029728522524237633, -0.059014879167079926, -0.23903866112232208, 0.21833842992782593, -0.04960726574063301, 0.17844337224960327, 0.45067232847213745, 0.5201157927513123, -0.16838674247264862, -0.15878328680992126, 0.4381595849990845, -0.14969609677791595, -0.026857465505599976, 0.39235788583755493, 0.4074569344520569, -0.09453557431697845, -0.4727303981781006, 0.007429639808833599, 0.16297811269760132, -0.17255406081676483, 0.13368169963359833, 0.18633243441581726, -0.017070528119802475, 0.32694700360298157, 0.5202243328094482, 0.25392353534698486, -0.08207494020462036, -0.03623713180422783, -0.5070524215698242, -0.12090577185153961, 0.23496703803539276, 0.15056361258029938, 0.23000270128250122, -0.06845404952764511, 0.02793528512120247, -0.09578818082809448, 0.2680700123310089, -0.4302646815776825, 0.17371289432048798, -0.017547104507684708, -0.03624044358730316, 0.03327887877821922, 0.06711632013320923, 0.06153023615479469, 0.045472633093595505, 0.17493222653865814, -0.11648834496736526, -0.25555843114852905, -0.3027447462081909, -0.06658249348402023, 0.1353299468755722, 0.07857406884431839, -0.3223883807659149, 0.02935056947171688, -0.33168724179267883, 0.12285206466913223, -0.13505543768405914, 0.0035936953499913216, 0.08143569529056549, -0.19675645232200623, -0.0315687470138073, 0.233700692653656, 0.1852831393480301, -0.15347981452941895, 0.2186335325241089, 0.010978072881698608, 0.07301275432109833, -0.07338561862707138, -0.28948312997817993, 0.32626745104789734, -0.028089886531233788, 0.045461609959602356, -0.036197494715452194, 0.13254567980766296, 0.15518540143966675, 0.5325073599815369, -0.3047625720500946, -0.11851323395967484, 0.357071191072464, 0.1231599748134613, 0.23802433907985687, 0.01218756940215826, -0.057813968509435654, 0.03511967882514, 0.2895934581756592, -0.39842766523361206, -0.08680103719234467, 0.08638066053390503, 0.02805880829691887, 0.10193408280611038, -0.019482776522636414, 0.22213773429393768, -0.3745911717414856, -0.3226584494113922, 0.1370231956243515, 0.19007472693920135, -0.06799565255641937, -0.11111766844987869, 0.21816037595272064, -0.1402377039194107, 0.16432249546051025, 0.0006585674127563834, -0.02587396278977394, -0.1296016126871109, 0.127098947763443, 0.14028455317020416, 0.46452629566192627, -0.008262083865702152, 0.1213604062795639, -0.12757748365402222, -0.5667855143547058, 0.23067407310009003, 0.17211535573005676, -0.09792137891054153, 0.042707815766334534, -0.14673836529254913, -0.06342197954654694, -0.15974637866020203, 0.11337477713823318, -0.38053977489471436, 0.16096799075603485, -0.16417920589447021, -0.11929207295179367, -0.2471773624420166, -0.23958297073841095, 0.027858056128025055, -0.131376251578331, -0.11390683799982071, -0.055269427597522736, 0.06778053194284439, 0.02206401899456978, 0.020845303311944008, -0.5018770694732666, 0.02371540106832981, 0.004262986127287149, -0.30677980184555054, -0.19393932819366455, 0.158971905708313, 0.24424239993095398, 0.032260600477457047, 0.37001833319664, 0.12960600852966309, 0.03159667178988457, 0.13642418384552002, -0.11615350097417831, -0.12512952089309692, 0.0011856157798320055, -0.13077634572982788, -0.4004696309566498, 0.41768205165863037, 0.04998593404889107, 0.04756765067577362, 0.2868407666683197, 0.3097047209739685, -0.19238905608654022, -0.025277694687247276, -0.009645304642617702, -0.38256141543388367, -0.11367346346378326, 0.0032847393304109573, 0.039891909807920456, -0.07131825387477875, 0.00382830947637558, 0.06870850175619125, -0.023827483877539635, -0.06388843059539795, 0.5726190805435181, -0.04960960894823074, 0.26008400321006775, -0.0148923946544528, 0.1439630687236786, -0.21124401688575745, 0.6071493625640869, 0.3660147488117218, 0.1777108758687973, -0.25817716121673584, -0.21177315711975098, -0.7352433800697327, 0.18610835075378418, 0.04444402456283569, 0.1088353618979454, -0.025703636929392815, -0.1287079006433487, 0.35315459966659546, -0.06531558930873871, 0.15507836639881134, 0.30718666315078735, 0.1784479022026062, -0.11069798469543457, -0.4991611838340759, -0.1145409643650055, 0.16700203716754913, 0.13352935016155243, -0.11581140011548996, -0.2415783852338791, 0.2721169590950012, -0.06511127948760986, 0.10375940799713135, -0.27131223678588867, 0.09949915111064911, -0.2071302831172943, 0.35852527618408203, 0.16408978402614594, 0.010721992701292038, 0.514580249786377, -0.12656192481517792, 0.0988529622554779, -0.4012969732284546, -0.532132089138031, 0.24264685809612274, -0.014246754348278046, -0.011461946181952953, 0.2798285484313965, -0.08936957269906998, 0.2170218676328659, -0.023276785388588905, -0.17679083347320557, -0.06720396876335144, 0.35355937480926514, -0.22769445180892944, 0.08449600636959076, -0.22778648138046265, -0.08090075105428696, 0.2553845942020416, 0.09842105954885483, 0.03512965887784958, -0.011167890392243862, 0.08697613328695297, -0.26541760563850403, 0.24053627252578735, -0.0523311123251915, -0.3960895240306854, -0.5806808471679688, 0.10815807431936264, -0.2533567547798157, 0.2729208767414093, -0.08799813687801361, 0.0435599647462368, 0.23037168383598328, -0.1812341809272766, -0.18883982300758362, 0.3305542469024658, -0.13660821318626404, -0.12761253118515015, -0.02602281980216503, 0.22953186929225922, 0.08285842835903168, -0.17492829263210297, -0.46964725852012634, 0.03233352676033974 ]
https://github.com/huggingface/datasets/issues/1981
wmt datasets fail to load
@stas00 it is fixed. @lhoestq are you releasing the hot fix or would you prefer me to do it?
on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova
19
wmt datasets fail to load
[ -0.5040450096130371, -0.012289609760046005, -0.10162171721458435, 0.4486389756202698, 0.2820448577404022, 0.1888657808303833, 0.2616220712661743, 0.0475592315196991, 0.2945083975791931, 0.00625629210844636, -0.02292943373322487, 0.061173781752586365, -0.12945328652858734, 0.14877133071422577, -0.07433541864156723, 0.10901498794555664, -0.19671672582626343, -0.01385597325861454, -0.5899648070335388, -0.15190917253494263, -0.3240792751312256, 0.09356583654880524, -0.14941120147705078, 0.032533396035432816, -0.5062142014503479, -0.04846522957086563, 0.08289573341608047, 0.38963061571121216, -0.122432179749012, -0.11811469495296478, 0.10607492178678513, 0.10025470703840256, 0.1335815042257309, 0.2746760845184326, -0.00010421323531772941, 0.0806918814778328, 0.19244582951068878, -0.015605486929416656, -0.3004933297634125, 0.03895893692970276, -0.7674546241760254, -0.35253769159317017, 0.0247234757989645, 0.09601426869630814, 0.015225055627524853, -0.18482019007205963, -0.07726708054542542, -0.2983512282371521, 0.377294659614563, 0.11116912961006165, 0.33635786175727844, 0.38139471411705017, -0.17115263640880585, -0.248180091381073, 0.35873451828956604, -0.02472851797938347, -0.12182914465665817, 0.10658875107765198, 0.26844802498817444, -0.2445075511932373, 0.005407616030424833, 0.1470826417207718, -0.014653709717094898, 0.2408381849527359, 0.05604016035795212, -0.031049566343426704, 0.20531709492206573, 0.2572157084941864, 0.24885237216949463, 0.272779256105423, 0.8188565969467163, 0.1886385828256607, -0.14593060314655304, 0.2437734603881836, 0.11888304352760315, -0.2227771133184433, 0.3543090522289276, 0.20041361451148987, -0.029934288933873177, 0.2717733383178711, -0.35431256890296936, 0.19089162349700928, 0.07752624154090881, 0.20518507063388824, -0.3316650390625, 0.24674092233181, -0.09010700136423111, 0.0655597448348999, -0.26716041564941406, -0.0763569250702858, 0.3563441038131714, -0.02935776114463806, 0.037742674350738525, -0.22713840007781982, -0.10570287704467773, 0.18150703608989716, 0.14379331469535828, 0.08166936784982681, -0.17848524451255798, -0.05701390653848648, 0.2370951622724533, 0.30979496240615845, 0.1454690545797348, 0.006305574905127287, 0.21896009147167206, 0.005251002032309771, -0.007021836470812559, -0.3549134135246277, 0.34600773453712463, -0.03121507167816162, -0.3577424883842468, 0.0012214846210554242, -0.13835029304027557, -0.25961652398109436, -0.01885160617530346, -0.24637296795845032, 0.21985748410224915, -0.07373698800802231, -0.2831859588623047, 0.11910822987556458, 0.21498969197273254, -0.23190471529960632, -0.12706588208675385, 0.4086160659790039, 0.03098955564200878, 0.00025371331139467657, 0.2871180772781372, 0.02871767431497574, -0.0022823456674814224, -0.12132101505994797, -0.37591710686683655, -0.22132298350334167, -0.26416030526161194, 0.13792863488197327, 0.45426857471466064, 0.2641155421733856, 0.2826014459133148, -0.26260948181152344, -0.22346541285514832, -0.26898208260536194, 0.171986922621727, 0.20146328210830688, 0.09035003185272217, 0.48288822174072266, 0.04902251809835434, 0.30365297198295593, 0.20640255510807037, 0.2715119421482086, 0.11468954384326935, 0.19967013597488403, -0.2417280226945877, -0.11830577999353409, 0.23715244233608246, 0.28204870223999023, 0.029911138117313385, 0.031146619468927383, 0.00410859938710928, 0.020917601883411407, -0.11837759613990784, 0.024291429668664932, -0.2683120667934418, -0.17727358639240265, -0.11296426504850388, -0.0732014998793602, -0.019845664501190186, 0.6070684790611267, -0.32408204674720764, -0.07762882858514786, -0.030831994488835335, -0.018046336248517036, 0.21610747277736664, 0.21110109984874725, -0.2616664469242096, 0.13972148299217224, -0.1389142870903015, -0.16079045832157135, 0.16654115915298462, -0.06419539451599121, -0.13701950013637543, 0.10637178272008896, -0.14075328409671783, -0.0868937224149704, -0.07207286357879639, 0.013785799965262413, -0.10730966180562973, -0.06685476750135422, 0.2701515555381775, 0.1366487443447113, -0.031287625432014465, -0.01925731636583805, -0.12125860154628754, -0.334975004196167, 0.35592934489250183, 0.22091621160507202, 0.20940212905406952, -0.1203981339931488, 0.2201641947031021, 0.2003934532403946, 0.07498305290937424, 0.08207076787948608, -0.06626952439546585, 0.08112755417823792, -0.21618764102458954, -0.11500178277492523, 0.02260356768965721, -0.06371735036373138, -0.3131362199783325, 0.09110231697559357, 0.11640577763319016, 0.0893620029091835, 0.3512340188026428, 0.26421821117401123, -0.24576261639595032, 0.21450373530387878, -0.1604067087173462, 0.025140702724456787, 0.26419681310653687, 0.23862513899803162, -0.5213552713394165, -0.014900604262948036, -0.007057921029627323, -0.31839051842689514, -0.20874656736850739, -0.017958246171474457, 0.11259153485298157, 0.18638038635253906, 0.011482924222946167, -0.12365955859422684, 0.14691448211669922, 0.11674397438764572, 0.20603856444358826, -0.03769366070628166, -0.1636894941329956, 0.08183905482292175, 0.0635751485824585, 0.2392227202653885, -0.007346279453486204, 0.1462496668100357, 0.14933985471725464, -0.5040812492370605, 0.32844698429107666, 0.03061501868069172, 0.010691214352846146, -0.28886866569519043, -0.1626727133989334, 0.0214216485619545, -0.1362721472978592, 0.00392434187233448, -0.0615716390311718, 0.044970978051424026, 0.2920598089694977, -0.1561054289340973, -0.011926203966140747, -0.3764980137348175, 0.1173393726348877, 0.19359122216701508, -0.03897034004330635, 0.09089697152376175, 0.010577261447906494, -0.03546799719333649, 0.31356576085090637, 0.2299640029668808, 0.33201563358306885, -0.272352397441864, -0.5296446681022644, -0.09911618381738663, 0.20402370393276215, 0.10517515987157822, 0.29706311225891113, 0.24278588593006134, 0.2133161872625351, -0.044527262449264526, -0.2006705403327942, -0.47084781527519226, 0.156050443649292, 0.026797574013471603, 0.0309431292116642, 0.3396027684211731, 0.10517051070928574, -0.1589699685573578, -0.545521080493927, 0.21983730792999268, 0.20825891196727753, -0.011348320171236992, -0.23276843130588531, -0.1801825910806656, -0.47197261452674866, 0.09684430062770844, -0.1440057009458542, -0.26684704422950745, 0.02032875269651413, -0.4320564866065979, 0.021692950278520584, 0.09513211250305176, -0.1275620311498642, 0.20186972618103027, -0.01571427658200264, 0.3902011215686798, 0.018059179186820984, 0.5125479698181152, 0.03602314367890358, -0.33321085572242737, -0.1769740879535675, 0.15371857583522797, 0.3135702908039093, 0.19039073586463928, 0.3164433538913727, -0.2868943512439728, 0.10795294493436813, -0.18451590836048126, -0.13897398114204407, 0.0705532431602478, 0.1647895872592926, 0.28912797570228577, 0.10881219804286957, 0.4299696981906891, 0.08942099660634995, -0.19669732451438904, 0.3859315514564514, -0.138739213347435, 0.12940017879009247, -0.006028300151228905, 0.038782086223363876, -0.22685816884040833, -0.12752851843833923, -0.6302875280380249, -0.14749360084533691, -0.3035428524017334, -0.29948481917381287, 0.031002849340438843, -0.018555626273155212, 0.23151814937591553, 0.16045144200325012, 0.0575282908976078, -0.030500449240207672, 0.17306481301784515, -0.361752986907959, -0.32874974608421326, 0.34948861598968506, -0.2451474964618683, -0.42908748984336853, 0.3955519199371338, 0.005282774567604065, 0.1456427425146103, 0.2557879686355591, -0.3369433283805847, 0.08731154352426529, 0.019360169768333435, -0.20379678905010223, 0.18526142835617065, 0.12655982375144958, 0.02320765145123005, 0.17080821096897125, -0.2017573118209839, -0.3857734799385071, -0.1389865130186081, -0.05622288957238197, 0.016742438077926636, 0.30322396755218506, -0.2680341601371765, 0.12903185188770294, -0.3002912402153015, 0.5823432803153992, -0.296398788690567, -0.17703163623809814, 0.20707151293754578, 0.01468750275671482, 0.3663729727268219, 0.15313315391540527, -0.20383983850479126, -0.062059495598077774, -0.10711207240819931, 0.11066675931215286, 0.4840126037597656, 0.3072628080844879, 0.010873927734792233, -0.17196208238601685, 0.23852653801441193, -0.2715992033481598, -0.3046002984046936, -0.041058335453271866, 0.13595086336135864, 0.1042809709906578, 0.319793164730072, 0.27622783184051514, -0.13731767237186432, -0.15995250642299652, 0.0070247040130198, 0.26650193333625793, -0.013424941338598728, -0.025567645207047462, -0.06692630052566528, 0.15792658925056458, -0.15202771127223969, 0.02276144176721573, -0.17106729745864868, 0.5806255340576172, -0.23176325857639313, -0.1123596653342247, 0.04355812817811966, 0.01953505352139473, 0.34193894267082214, -0.3587394952774048, 0.4430396854877472, 0.10323549062013626, -0.16918189823627472, -0.07117113471031189, -0.1374605894088745, -0.3096317946910858, -0.15513285994529724, 0.08204261213541031, 0.19261711835861206, 0.08148642629384995, -0.1061810776591301, 0.05414401739835739, 0.1205267682671547, -0.17343205213546753, -0.202032670378685, 0.04092897102236748, -0.2111252099275589, -0.26557037234306335, -0.2560255527496338, -0.16515542566776276, -0.08505968749523163, -0.41968491673469543, -0.38456258177757263, -0.14121440052986145, 0.10530684888362885, 0.22571595013141632, 0.16960467398166656, 0.0006976287695579231, 0.26263943314552307, 0.14342427253723145, 0.08206504583358765, 0.6693819165229797, 0.5171396732330322, 0.5213221907615662, -0.16674314439296722, 0.01206304132938385, 0.14757733047008514, -0.3914068639278412, 0.04348291456699371, 0.45139065384864807, -0.026659322902560234, -0.06707095354795456, 0.039576366543769836, 0.045967064797878265, -0.26446735858917236, 0.4160865843296051, 0.14189526438713074, 0.10406000167131424, -0.24562039971351624, 0.014557693153619766, 0.08854126185178757, -0.1013343334197998, -0.08442265540361404, 0.18817754089832306, -0.03142105042934418, -0.27719053626060486, -0.11131235212087631, 0.19590069353580475, 0.7465793490409851, -0.3574509024620056, 0.22703363001346588, 0.17933404445648193, 0.050505176186561584, 0.2283754050731659, 0.09918313473463058, -0.051747169345617294, -0.18915322422981262, -0.2547939121723175, -0.09582878649234772, -0.12851418554782867, 0.19249653816223145, 0.3946770429611206, 0.08190476149320602, 0.09013452380895615, 0.2698702812194824, 0.28791993856430054, 0.08868735283613205, -0.0935160294175148, -0.026314178481698036, -0.06630156934261322, -0.20529517531394958, 0.23674233257770538, -0.07619278877973557, 0.06676264852285385, -0.3424857258796692, 0.004594792146235704, 0.270332396030426, -0.14228637516498566, -0.20552469789981842, -0.06865644454956055, -0.3395402431488037, 0.06763364374637604, -0.20817910134792328, -0.12804831564426422, 0.23876291513442993, -0.07630715519189835, -0.10291498154401779, 0.32941606640815735, -0.3634829521179199, 0.177858367562294, -0.2564801573753357, -0.12208210676908493, -0.4721459746360779, 0.14597904682159424, 0.1704738885164261, -0.07902751117944717, -0.11696288734674454, -0.10650475323200226, -0.055255237966775894, 0.01138162612915039, 0.04381049796938896, 0.16956867277622223, 0.05991025269031525, -0.1637258380651474, -0.10907816141843796, 0.029728522524237633, -0.059014879167079926, -0.23903866112232208, 0.21833842992782593, -0.04960726574063301, 0.17844337224960327, 0.45067232847213745, 0.5201157927513123, -0.16838674247264862, -0.15878328680992126, 0.4381595849990845, -0.14969609677791595, -0.026857465505599976, 0.39235788583755493, 0.4074569344520569, -0.09453557431697845, -0.4727303981781006, 0.007429639808833599, 0.16297811269760132, -0.17255406081676483, 0.13368169963359833, 0.18633243441581726, -0.017070528119802475, 0.32694700360298157, 0.5202243328094482, 0.25392353534698486, -0.08207494020462036, -0.03623713180422783, -0.5070524215698242, -0.12090577185153961, 0.23496703803539276, 0.15056361258029938, 0.23000270128250122, -0.06845404952764511, 0.02793528512120247, -0.09578818082809448, 0.2680700123310089, -0.4302646815776825, 0.17371289432048798, -0.017547104507684708, -0.03624044358730316, 0.03327887877821922, 0.06711632013320923, 0.06153023615479469, 0.045472633093595505, 0.17493222653865814, -0.11648834496736526, -0.25555843114852905, -0.3027447462081909, -0.06658249348402023, 0.1353299468755722, 0.07857406884431839, -0.3223883807659149, 0.02935056947171688, -0.33168724179267883, 0.12285206466913223, -0.13505543768405914, 0.0035936953499913216, 0.08143569529056549, -0.19675645232200623, -0.0315687470138073, 0.233700692653656, 0.1852831393480301, -0.15347981452941895, 0.2186335325241089, 0.010978072881698608, 0.07301275432109833, -0.07338561862707138, -0.28948312997817993, 0.32626745104789734, -0.028089886531233788, 0.045461609959602356, -0.036197494715452194, 0.13254567980766296, 0.15518540143966675, 0.5325073599815369, -0.3047625720500946, -0.11851323395967484, 0.357071191072464, 0.1231599748134613, 0.23802433907985687, 0.01218756940215826, -0.057813968509435654, 0.03511967882514, 0.2895934581756592, -0.39842766523361206, -0.08680103719234467, 0.08638066053390503, 0.02805880829691887, 0.10193408280611038, -0.019482776522636414, 0.22213773429393768, -0.3745911717414856, -0.3226584494113922, 0.1370231956243515, 0.19007472693920135, -0.06799565255641937, -0.11111766844987869, 0.21816037595272064, -0.1402377039194107, 0.16432249546051025, 0.0006585674127563834, -0.02587396278977394, -0.1296016126871109, 0.127098947763443, 0.14028455317020416, 0.46452629566192627, -0.008262083865702152, 0.1213604062795639, -0.12757748365402222, -0.5667855143547058, 0.23067407310009003, 0.17211535573005676, -0.09792137891054153, 0.042707815766334534, -0.14673836529254913, -0.06342197954654694, -0.15974637866020203, 0.11337477713823318, -0.38053977489471436, 0.16096799075603485, -0.16417920589447021, -0.11929207295179367, -0.2471773624420166, -0.23958297073841095, 0.027858056128025055, -0.131376251578331, -0.11390683799982071, -0.055269427597522736, 0.06778053194284439, 0.02206401899456978, 0.020845303311944008, -0.5018770694732666, 0.02371540106832981, 0.004262986127287149, -0.30677980184555054, -0.19393932819366455, 0.158971905708313, 0.24424239993095398, 0.032260600477457047, 0.37001833319664, 0.12960600852966309, 0.03159667178988457, 0.13642418384552002, -0.11615350097417831, -0.12512952089309692, 0.0011856157798320055, -0.13077634572982788, -0.4004696309566498, 0.41768205165863037, 0.04998593404889107, 0.04756765067577362, 0.2868407666683197, 0.3097047209739685, -0.19238905608654022, -0.025277694687247276, -0.009645304642617702, -0.38256141543388367, -0.11367346346378326, 0.0032847393304109573, 0.039891909807920456, -0.07131825387477875, 0.00382830947637558, 0.06870850175619125, -0.023827483877539635, -0.06388843059539795, 0.5726190805435181, -0.04960960894823074, 0.26008400321006775, -0.0148923946544528, 0.1439630687236786, -0.21124401688575745, 0.6071493625640869, 0.3660147488117218, 0.1777108758687973, -0.25817716121673584, -0.21177315711975098, -0.7352433800697327, 0.18610835075378418, 0.04444402456283569, 0.1088353618979454, -0.025703636929392815, -0.1287079006433487, 0.35315459966659546, -0.06531558930873871, 0.15507836639881134, 0.30718666315078735, 0.1784479022026062, -0.11069798469543457, -0.4991611838340759, -0.1145409643650055, 0.16700203716754913, 0.13352935016155243, -0.11581140011548996, -0.2415783852338791, 0.2721169590950012, -0.06511127948760986, 0.10375940799713135, -0.27131223678588867, 0.09949915111064911, -0.2071302831172943, 0.35852527618408203, 0.16408978402614594, 0.010721992701292038, 0.514580249786377, -0.12656192481517792, 0.0988529622554779, -0.4012969732284546, -0.532132089138031, 0.24264685809612274, -0.014246754348278046, -0.011461946181952953, 0.2798285484313965, -0.08936957269906998, 0.2170218676328659, -0.023276785388588905, -0.17679083347320557, -0.06720396876335144, 0.35355937480926514, -0.22769445180892944, 0.08449600636959076, -0.22778648138046265, -0.08090075105428696, 0.2553845942020416, 0.09842105954885483, 0.03512965887784958, -0.011167890392243862, 0.08697613328695297, -0.26541760563850403, 0.24053627252578735, -0.0523311123251915, -0.3960895240306854, -0.5806808471679688, 0.10815807431936264, -0.2533567547798157, 0.2729208767414093, -0.08799813687801361, 0.0435599647462368, 0.23037168383598328, -0.1812341809272766, -0.18883982300758362, 0.3305542469024658, -0.13660821318626404, -0.12761253118515015, -0.02602281980216503, 0.22953186929225922, 0.08285842835903168, -0.17492829263210297, -0.46964725852012634, 0.03233352676033974 ]
https://github.com/huggingface/datasets/issues/1981
wmt datasets fail to load
I'll do a patch release for this issue early tomorrow. And yes we absolutly need tests for the wmt datasets: The missing tests for wmt are an artifact from the early development of the lib but now we have tools to generate automatically the dummy data used for tests :)
on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova
50
wmt datasets fail to load
[ -0.5040450096130371, -0.012289609760046005, -0.10162171721458435, 0.4486389756202698, 0.2820448577404022, 0.1888657808303833, 0.2616220712661743, 0.0475592315196991, 0.2945083975791931, 0.00625629210844636, -0.02292943373322487, 0.061173781752586365, -0.12945328652858734, 0.14877133071422577, -0.07433541864156723, 0.10901498794555664, -0.19671672582626343, -0.01385597325861454, -0.5899648070335388, -0.15190917253494263, -0.3240792751312256, 0.09356583654880524, -0.14941120147705078, 0.032533396035432816, -0.5062142014503479, -0.04846522957086563, 0.08289573341608047, 0.38963061571121216, -0.122432179749012, -0.11811469495296478, 0.10607492178678513, 0.10025470703840256, 0.1335815042257309, 0.2746760845184326, -0.00010421323531772941, 0.0806918814778328, 0.19244582951068878, -0.015605486929416656, -0.3004933297634125, 0.03895893692970276, -0.7674546241760254, -0.35253769159317017, 0.0247234757989645, 0.09601426869630814, 0.015225055627524853, -0.18482019007205963, -0.07726708054542542, -0.2983512282371521, 0.377294659614563, 0.11116912961006165, 0.33635786175727844, 0.38139471411705017, -0.17115263640880585, -0.248180091381073, 0.35873451828956604, -0.02472851797938347, -0.12182914465665817, 0.10658875107765198, 0.26844802498817444, -0.2445075511932373, 0.005407616030424833, 0.1470826417207718, -0.014653709717094898, 0.2408381849527359, 0.05604016035795212, -0.031049566343426704, 0.20531709492206573, 0.2572157084941864, 0.24885237216949463, 0.272779256105423, 0.8188565969467163, 0.1886385828256607, -0.14593060314655304, 0.2437734603881836, 0.11888304352760315, -0.2227771133184433, 0.3543090522289276, 0.20041361451148987, -0.029934288933873177, 0.2717733383178711, -0.35431256890296936, 0.19089162349700928, 0.07752624154090881, 0.20518507063388824, -0.3316650390625, 0.24674092233181, -0.09010700136423111, 0.0655597448348999, -0.26716041564941406, -0.0763569250702858, 0.3563441038131714, -0.02935776114463806, 0.037742674350738525, -0.22713840007781982, -0.10570287704467773, 0.18150703608989716, 0.14379331469535828, 0.08166936784982681, -0.17848524451255798, -0.05701390653848648, 0.2370951622724533, 0.30979496240615845, 0.1454690545797348, 0.006305574905127287, 0.21896009147167206, 0.005251002032309771, -0.007021836470812559, -0.3549134135246277, 0.34600773453712463, -0.03121507167816162, -0.3577424883842468, 0.0012214846210554242, -0.13835029304027557, -0.25961652398109436, -0.01885160617530346, -0.24637296795845032, 0.21985748410224915, -0.07373698800802231, -0.2831859588623047, 0.11910822987556458, 0.21498969197273254, -0.23190471529960632, -0.12706588208675385, 0.4086160659790039, 0.03098955564200878, 0.00025371331139467657, 0.2871180772781372, 0.02871767431497574, -0.0022823456674814224, -0.12132101505994797, -0.37591710686683655, -0.22132298350334167, -0.26416030526161194, 0.13792863488197327, 0.45426857471466064, 0.2641155421733856, 0.2826014459133148, -0.26260948181152344, -0.22346541285514832, -0.26898208260536194, 0.171986922621727, 0.20146328210830688, 0.09035003185272217, 0.48288822174072266, 0.04902251809835434, 0.30365297198295593, 0.20640255510807037, 0.2715119421482086, 0.11468954384326935, 0.19967013597488403, -0.2417280226945877, -0.11830577999353409, 0.23715244233608246, 0.28204870223999023, 0.029911138117313385, 0.031146619468927383, 0.00410859938710928, 0.020917601883411407, -0.11837759613990784, 0.024291429668664932, -0.2683120667934418, -0.17727358639240265, -0.11296426504850388, -0.0732014998793602, -0.019845664501190186, 0.6070684790611267, -0.32408204674720764, -0.07762882858514786, -0.030831994488835335, -0.018046336248517036, 0.21610747277736664, 0.21110109984874725, -0.2616664469242096, 0.13972148299217224, -0.1389142870903015, -0.16079045832157135, 0.16654115915298462, -0.06419539451599121, -0.13701950013637543, 0.10637178272008896, -0.14075328409671783, -0.0868937224149704, -0.07207286357879639, 0.013785799965262413, -0.10730966180562973, -0.06685476750135422, 0.2701515555381775, 0.1366487443447113, -0.031287625432014465, -0.01925731636583805, -0.12125860154628754, -0.334975004196167, 0.35592934489250183, 0.22091621160507202, 0.20940212905406952, -0.1203981339931488, 0.2201641947031021, 0.2003934532403946, 0.07498305290937424, 0.08207076787948608, -0.06626952439546585, 0.08112755417823792, -0.21618764102458954, -0.11500178277492523, 0.02260356768965721, -0.06371735036373138, -0.3131362199783325, 0.09110231697559357, 0.11640577763319016, 0.0893620029091835, 0.3512340188026428, 0.26421821117401123, -0.24576261639595032, 0.21450373530387878, -0.1604067087173462, 0.025140702724456787, 0.26419681310653687, 0.23862513899803162, -0.5213552713394165, -0.014900604262948036, -0.007057921029627323, -0.31839051842689514, -0.20874656736850739, -0.017958246171474457, 0.11259153485298157, 0.18638038635253906, 0.011482924222946167, -0.12365955859422684, 0.14691448211669922, 0.11674397438764572, 0.20603856444358826, -0.03769366070628166, -0.1636894941329956, 0.08183905482292175, 0.0635751485824585, 0.2392227202653885, -0.007346279453486204, 0.1462496668100357, 0.14933985471725464, -0.5040812492370605, 0.32844698429107666, 0.03061501868069172, 0.010691214352846146, -0.28886866569519043, -0.1626727133989334, 0.0214216485619545, -0.1362721472978592, 0.00392434187233448, -0.0615716390311718, 0.044970978051424026, 0.2920598089694977, -0.1561054289340973, -0.011926203966140747, -0.3764980137348175, 0.1173393726348877, 0.19359122216701508, -0.03897034004330635, 0.09089697152376175, 0.010577261447906494, -0.03546799719333649, 0.31356576085090637, 0.2299640029668808, 0.33201563358306885, -0.272352397441864, -0.5296446681022644, -0.09911618381738663, 0.20402370393276215, 0.10517515987157822, 0.29706311225891113, 0.24278588593006134, 0.2133161872625351, -0.044527262449264526, -0.2006705403327942, -0.47084781527519226, 0.156050443649292, 0.026797574013471603, 0.0309431292116642, 0.3396027684211731, 0.10517051070928574, -0.1589699685573578, -0.545521080493927, 0.21983730792999268, 0.20825891196727753, -0.011348320171236992, -0.23276843130588531, -0.1801825910806656, -0.47197261452674866, 0.09684430062770844, -0.1440057009458542, -0.26684704422950745, 0.02032875269651413, -0.4320564866065979, 0.021692950278520584, 0.09513211250305176, -0.1275620311498642, 0.20186972618103027, -0.01571427658200264, 0.3902011215686798, 0.018059179186820984, 0.5125479698181152, 0.03602314367890358, -0.33321085572242737, -0.1769740879535675, 0.15371857583522797, 0.3135702908039093, 0.19039073586463928, 0.3164433538913727, -0.2868943512439728, 0.10795294493436813, -0.18451590836048126, -0.13897398114204407, 0.0705532431602478, 0.1647895872592926, 0.28912797570228577, 0.10881219804286957, 0.4299696981906891, 0.08942099660634995, -0.19669732451438904, 0.3859315514564514, -0.138739213347435, 0.12940017879009247, -0.006028300151228905, 0.038782086223363876, -0.22685816884040833, -0.12752851843833923, -0.6302875280380249, -0.14749360084533691, -0.3035428524017334, -0.29948481917381287, 0.031002849340438843, -0.018555626273155212, 0.23151814937591553, 0.16045144200325012, 0.0575282908976078, -0.030500449240207672, 0.17306481301784515, -0.361752986907959, -0.32874974608421326, 0.34948861598968506, -0.2451474964618683, -0.42908748984336853, 0.3955519199371338, 0.005282774567604065, 0.1456427425146103, 0.2557879686355591, -0.3369433283805847, 0.08731154352426529, 0.019360169768333435, -0.20379678905010223, 0.18526142835617065, 0.12655982375144958, 0.02320765145123005, 0.17080821096897125, -0.2017573118209839, -0.3857734799385071, -0.1389865130186081, -0.05622288957238197, 0.016742438077926636, 0.30322396755218506, -0.2680341601371765, 0.12903185188770294, -0.3002912402153015, 0.5823432803153992, -0.296398788690567, -0.17703163623809814, 0.20707151293754578, 0.01468750275671482, 0.3663729727268219, 0.15313315391540527, -0.20383983850479126, -0.062059495598077774, -0.10711207240819931, 0.11066675931215286, 0.4840126037597656, 0.3072628080844879, 0.010873927734792233, -0.17196208238601685, 0.23852653801441193, -0.2715992033481598, -0.3046002984046936, -0.041058335453271866, 0.13595086336135864, 0.1042809709906578, 0.319793164730072, 0.27622783184051514, -0.13731767237186432, -0.15995250642299652, 0.0070247040130198, 0.26650193333625793, -0.013424941338598728, -0.025567645207047462, -0.06692630052566528, 0.15792658925056458, -0.15202771127223969, 0.02276144176721573, -0.17106729745864868, 0.5806255340576172, -0.23176325857639313, -0.1123596653342247, 0.04355812817811966, 0.01953505352139473, 0.34193894267082214, -0.3587394952774048, 0.4430396854877472, 0.10323549062013626, -0.16918189823627472, -0.07117113471031189, -0.1374605894088745, -0.3096317946910858, -0.15513285994529724, 0.08204261213541031, 0.19261711835861206, 0.08148642629384995, -0.1061810776591301, 0.05414401739835739, 0.1205267682671547, -0.17343205213546753, -0.202032670378685, 0.04092897102236748, -0.2111252099275589, -0.26557037234306335, -0.2560255527496338, -0.16515542566776276, -0.08505968749523163, -0.41968491673469543, -0.38456258177757263, -0.14121440052986145, 0.10530684888362885, 0.22571595013141632, 0.16960467398166656, 0.0006976287695579231, 0.26263943314552307, 0.14342427253723145, 0.08206504583358765, 0.6693819165229797, 0.5171396732330322, 0.5213221907615662, -0.16674314439296722, 0.01206304132938385, 0.14757733047008514, -0.3914068639278412, 0.04348291456699371, 0.45139065384864807, -0.026659322902560234, -0.06707095354795456, 0.039576366543769836, 0.045967064797878265, -0.26446735858917236, 0.4160865843296051, 0.14189526438713074, 0.10406000167131424, -0.24562039971351624, 0.014557693153619766, 0.08854126185178757, -0.1013343334197998, -0.08442265540361404, 0.18817754089832306, -0.03142105042934418, -0.27719053626060486, -0.11131235212087631, 0.19590069353580475, 0.7465793490409851, -0.3574509024620056, 0.22703363001346588, 0.17933404445648193, 0.050505176186561584, 0.2283754050731659, 0.09918313473463058, -0.051747169345617294, -0.18915322422981262, -0.2547939121723175, -0.09582878649234772, -0.12851418554782867, 0.19249653816223145, 0.3946770429611206, 0.08190476149320602, 0.09013452380895615, 0.2698702812194824, 0.28791993856430054, 0.08868735283613205, -0.0935160294175148, -0.026314178481698036, -0.06630156934261322, -0.20529517531394958, 0.23674233257770538, -0.07619278877973557, 0.06676264852285385, -0.3424857258796692, 0.004594792146235704, 0.270332396030426, -0.14228637516498566, -0.20552469789981842, -0.06865644454956055, -0.3395402431488037, 0.06763364374637604, -0.20817910134792328, -0.12804831564426422, 0.23876291513442993, -0.07630715519189835, -0.10291498154401779, 0.32941606640815735, -0.3634829521179199, 0.177858367562294, -0.2564801573753357, -0.12208210676908493, -0.4721459746360779, 0.14597904682159424, 0.1704738885164261, -0.07902751117944717, -0.11696288734674454, -0.10650475323200226, -0.055255237966775894, 0.01138162612915039, 0.04381049796938896, 0.16956867277622223, 0.05991025269031525, -0.1637258380651474, -0.10907816141843796, 0.029728522524237633, -0.059014879167079926, -0.23903866112232208, 0.21833842992782593, -0.04960726574063301, 0.17844337224960327, 0.45067232847213745, 0.5201157927513123, -0.16838674247264862, -0.15878328680992126, 0.4381595849990845, -0.14969609677791595, -0.026857465505599976, 0.39235788583755493, 0.4074569344520569, -0.09453557431697845, -0.4727303981781006, 0.007429639808833599, 0.16297811269760132, -0.17255406081676483, 0.13368169963359833, 0.18633243441581726, -0.017070528119802475, 0.32694700360298157, 0.5202243328094482, 0.25392353534698486, -0.08207494020462036, -0.03623713180422783, -0.5070524215698242, -0.12090577185153961, 0.23496703803539276, 0.15056361258029938, 0.23000270128250122, -0.06845404952764511, 0.02793528512120247, -0.09578818082809448, 0.2680700123310089, -0.4302646815776825, 0.17371289432048798, -0.017547104507684708, -0.03624044358730316, 0.03327887877821922, 0.06711632013320923, 0.06153023615479469, 0.045472633093595505, 0.17493222653865814, -0.11648834496736526, -0.25555843114852905, -0.3027447462081909, -0.06658249348402023, 0.1353299468755722, 0.07857406884431839, -0.3223883807659149, 0.02935056947171688, -0.33168724179267883, 0.12285206466913223, -0.13505543768405914, 0.0035936953499913216, 0.08143569529056549, -0.19675645232200623, -0.0315687470138073, 0.233700692653656, 0.1852831393480301, -0.15347981452941895, 0.2186335325241089, 0.010978072881698608, 0.07301275432109833, -0.07338561862707138, -0.28948312997817993, 0.32626745104789734, -0.028089886531233788, 0.045461609959602356, -0.036197494715452194, 0.13254567980766296, 0.15518540143966675, 0.5325073599815369, -0.3047625720500946, -0.11851323395967484, 0.357071191072464, 0.1231599748134613, 0.23802433907985687, 0.01218756940215826, -0.057813968509435654, 0.03511967882514, 0.2895934581756592, -0.39842766523361206, -0.08680103719234467, 0.08638066053390503, 0.02805880829691887, 0.10193408280611038, -0.019482776522636414, 0.22213773429393768, -0.3745911717414856, -0.3226584494113922, 0.1370231956243515, 0.19007472693920135, -0.06799565255641937, -0.11111766844987869, 0.21816037595272064, -0.1402377039194107, 0.16432249546051025, 0.0006585674127563834, -0.02587396278977394, -0.1296016126871109, 0.127098947763443, 0.14028455317020416, 0.46452629566192627, -0.008262083865702152, 0.1213604062795639, -0.12757748365402222, -0.5667855143547058, 0.23067407310009003, 0.17211535573005676, -0.09792137891054153, 0.042707815766334534, -0.14673836529254913, -0.06342197954654694, -0.15974637866020203, 0.11337477713823318, -0.38053977489471436, 0.16096799075603485, -0.16417920589447021, -0.11929207295179367, -0.2471773624420166, -0.23958297073841095, 0.027858056128025055, -0.131376251578331, -0.11390683799982071, -0.055269427597522736, 0.06778053194284439, 0.02206401899456978, 0.020845303311944008, -0.5018770694732666, 0.02371540106832981, 0.004262986127287149, -0.30677980184555054, -0.19393932819366455, 0.158971905708313, 0.24424239993095398, 0.032260600477457047, 0.37001833319664, 0.12960600852966309, 0.03159667178988457, 0.13642418384552002, -0.11615350097417831, -0.12512952089309692, 0.0011856157798320055, -0.13077634572982788, -0.4004696309566498, 0.41768205165863037, 0.04998593404889107, 0.04756765067577362, 0.2868407666683197, 0.3097047209739685, -0.19238905608654022, -0.025277694687247276, -0.009645304642617702, -0.38256141543388367, -0.11367346346378326, 0.0032847393304109573, 0.039891909807920456, -0.07131825387477875, 0.00382830947637558, 0.06870850175619125, -0.023827483877539635, -0.06388843059539795, 0.5726190805435181, -0.04960960894823074, 0.26008400321006775, -0.0148923946544528, 0.1439630687236786, -0.21124401688575745, 0.6071493625640869, 0.3660147488117218, 0.1777108758687973, -0.25817716121673584, -0.21177315711975098, -0.7352433800697327, 0.18610835075378418, 0.04444402456283569, 0.1088353618979454, -0.025703636929392815, -0.1287079006433487, 0.35315459966659546, -0.06531558930873871, 0.15507836639881134, 0.30718666315078735, 0.1784479022026062, -0.11069798469543457, -0.4991611838340759, -0.1145409643650055, 0.16700203716754913, 0.13352935016155243, -0.11581140011548996, -0.2415783852338791, 0.2721169590950012, -0.06511127948760986, 0.10375940799713135, -0.27131223678588867, 0.09949915111064911, -0.2071302831172943, 0.35852527618408203, 0.16408978402614594, 0.010721992701292038, 0.514580249786377, -0.12656192481517792, 0.0988529622554779, -0.4012969732284546, -0.532132089138031, 0.24264685809612274, -0.014246754348278046, -0.011461946181952953, 0.2798285484313965, -0.08936957269906998, 0.2170218676328659, -0.023276785388588905, -0.17679083347320557, -0.06720396876335144, 0.35355937480926514, -0.22769445180892944, 0.08449600636959076, -0.22778648138046265, -0.08090075105428696, 0.2553845942020416, 0.09842105954885483, 0.03512965887784958, -0.011167890392243862, 0.08697613328695297, -0.26541760563850403, 0.24053627252578735, -0.0523311123251915, -0.3960895240306854, -0.5806808471679688, 0.10815807431936264, -0.2533567547798157, 0.2729208767414093, -0.08799813687801361, 0.0435599647462368, 0.23037168383598328, -0.1812341809272766, -0.18883982300758362, 0.3305542469024658, -0.13660821318626404, -0.12761253118515015, -0.02602281980216503, 0.22953186929225922, 0.08285842835903168, -0.17492829263210297, -0.46964725852012634, 0.03233352676033974 ]
https://github.com/huggingface/datasets/issues/1981
wmt datasets fail to load
still facing the same issue or similar: from datasets import load_dataset wtm14_test = load_dataset('wmt14',"de-en",cache_dir='./datasets') ~.cache\huggingface\modules\datasets_modules\datasets\wmt14\43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e\wmt_utils.py in _split_generators(self, dl_manager) 758 # Extract manually downloaded files. 759 manual_files = dl_manager.extract(manual_paths_dict) --> 760 extraction_map = dict(downloaded_files, **manual_files) 761 762 for language in self.config.language_pair: TypeError: type object argument after ** must be a mapping, not list
on master: ``` python -c 'from datasets import load_dataset; load_dataset("wmt14", "de-en")' Downloading and preparing dataset wmt14/de-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/stas/.cache/huggingface/datasets/wmt14/de-en/1.0.0/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e... Traceback (most recent call last): File "<string>", line 1, in <module> File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 740, in load_dataset builder_instance.download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 578, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 634, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt14/43e717d978d2261502b0194999583acb874ba73b0f4aed0ada2889d1bb00f36e/wmt_utils.py", line 760, in _split_generators extraction_map = dict(downloaded_files, **manual_files) ``` it worked fine recently. same problem if I try wmt16. git bisect points to this commit from Feb 25 as the culprit https://github.com/huggingface/datasets/commit/792f1d9bb1c5361908f73e2ef7f0181b2be409fa @albertvillanova
52
wmt datasets fail to load
[ -0.5040450096130371, -0.012289609760046005, -0.10162171721458435, 0.4486389756202698, 0.2820448577404022, 0.1888657808303833, 0.2616220712661743, 0.0475592315196991, 0.2945083975791931, 0.00625629210844636, -0.02292943373322487, 0.061173781752586365, -0.12945328652858734, 0.14877133071422577, -0.07433541864156723, 0.10901498794555664, -0.19671672582626343, -0.01385597325861454, -0.5899648070335388, -0.15190917253494263, -0.3240792751312256, 0.09356583654880524, -0.14941120147705078, 0.032533396035432816, -0.5062142014503479, -0.04846522957086563, 0.08289573341608047, 0.38963061571121216, -0.122432179749012, -0.11811469495296478, 0.10607492178678513, 0.10025470703840256, 0.1335815042257309, 0.2746760845184326, -0.00010421323531772941, 0.0806918814778328, 0.19244582951068878, -0.015605486929416656, -0.3004933297634125, 0.03895893692970276, -0.7674546241760254, -0.35253769159317017, 0.0247234757989645, 0.09601426869630814, 0.015225055627524853, -0.18482019007205963, -0.07726708054542542, -0.2983512282371521, 0.377294659614563, 0.11116912961006165, 0.33635786175727844, 0.38139471411705017, -0.17115263640880585, -0.248180091381073, 0.35873451828956604, -0.02472851797938347, -0.12182914465665817, 0.10658875107765198, 0.26844802498817444, -0.2445075511932373, 0.005407616030424833, 0.1470826417207718, -0.014653709717094898, 0.2408381849527359, 0.05604016035795212, -0.031049566343426704, 0.20531709492206573, 0.2572157084941864, 0.24885237216949463, 0.272779256105423, 0.8188565969467163, 0.1886385828256607, -0.14593060314655304, 0.2437734603881836, 0.11888304352760315, -0.2227771133184433, 0.3543090522289276, 0.20041361451148987, -0.029934288933873177, 0.2717733383178711, -0.35431256890296936, 0.19089162349700928, 0.07752624154090881, 0.20518507063388824, -0.3316650390625, 0.24674092233181, -0.09010700136423111, 0.0655597448348999, -0.26716041564941406, -0.0763569250702858, 0.3563441038131714, -0.02935776114463806, 0.037742674350738525, -0.22713840007781982, -0.10570287704467773, 0.18150703608989716, 0.14379331469535828, 0.08166936784982681, -0.17848524451255798, -0.05701390653848648, 0.2370951622724533, 0.30979496240615845, 0.1454690545797348, 0.006305574905127287, 0.21896009147167206, 0.005251002032309771, -0.007021836470812559, -0.3549134135246277, 0.34600773453712463, -0.03121507167816162, -0.3577424883842468, 0.0012214846210554242, -0.13835029304027557, -0.25961652398109436, -0.01885160617530346, -0.24637296795845032, 0.21985748410224915, -0.07373698800802231, -0.2831859588623047, 0.11910822987556458, 0.21498969197273254, -0.23190471529960632, -0.12706588208675385, 0.4086160659790039, 0.03098955564200878, 0.00025371331139467657, 0.2871180772781372, 0.02871767431497574, -0.0022823456674814224, -0.12132101505994797, -0.37591710686683655, -0.22132298350334167, -0.26416030526161194, 0.13792863488197327, 0.45426857471466064, 0.2641155421733856, 0.2826014459133148, -0.26260948181152344, -0.22346541285514832, -0.26898208260536194, 0.171986922621727, 0.20146328210830688, 0.09035003185272217, 0.48288822174072266, 0.04902251809835434, 0.30365297198295593, 0.20640255510807037, 0.2715119421482086, 0.11468954384326935, 0.19967013597488403, -0.2417280226945877, -0.11830577999353409, 0.23715244233608246, 0.28204870223999023, 0.029911138117313385, 0.031146619468927383, 0.00410859938710928, 0.020917601883411407, -0.11837759613990784, 0.024291429668664932, -0.2683120667934418, -0.17727358639240265, -0.11296426504850388, -0.0732014998793602, -0.019845664501190186, 0.6070684790611267, -0.32408204674720764, -0.07762882858514786, -0.030831994488835335, -0.018046336248517036, 0.21610747277736664, 0.21110109984874725, -0.2616664469242096, 0.13972148299217224, -0.1389142870903015, -0.16079045832157135, 0.16654115915298462, -0.06419539451599121, -0.13701950013637543, 0.10637178272008896, -0.14075328409671783, -0.0868937224149704, -0.07207286357879639, 0.013785799965262413, -0.10730966180562973, -0.06685476750135422, 0.2701515555381775, 0.1366487443447113, -0.031287625432014465, -0.01925731636583805, -0.12125860154628754, -0.334975004196167, 0.35592934489250183, 0.22091621160507202, 0.20940212905406952, -0.1203981339931488, 0.2201641947031021, 0.2003934532403946, 0.07498305290937424, 0.08207076787948608, -0.06626952439546585, 0.08112755417823792, -0.21618764102458954, -0.11500178277492523, 0.02260356768965721, -0.06371735036373138, -0.3131362199783325, 0.09110231697559357, 0.11640577763319016, 0.0893620029091835, 0.3512340188026428, 0.26421821117401123, -0.24576261639595032, 0.21450373530387878, -0.1604067087173462, 0.025140702724456787, 0.26419681310653687, 0.23862513899803162, -0.5213552713394165, -0.014900604262948036, -0.007057921029627323, -0.31839051842689514, -0.20874656736850739, -0.017958246171474457, 0.11259153485298157, 0.18638038635253906, 0.011482924222946167, -0.12365955859422684, 0.14691448211669922, 0.11674397438764572, 0.20603856444358826, -0.03769366070628166, -0.1636894941329956, 0.08183905482292175, 0.0635751485824585, 0.2392227202653885, -0.007346279453486204, 0.1462496668100357, 0.14933985471725464, -0.5040812492370605, 0.32844698429107666, 0.03061501868069172, 0.010691214352846146, -0.28886866569519043, -0.1626727133989334, 0.0214216485619545, -0.1362721472978592, 0.00392434187233448, -0.0615716390311718, 0.044970978051424026, 0.2920598089694977, -0.1561054289340973, -0.011926203966140747, -0.3764980137348175, 0.1173393726348877, 0.19359122216701508, -0.03897034004330635, 0.09089697152376175, 0.010577261447906494, -0.03546799719333649, 0.31356576085090637, 0.2299640029668808, 0.33201563358306885, -0.272352397441864, -0.5296446681022644, -0.09911618381738663, 0.20402370393276215, 0.10517515987157822, 0.29706311225891113, 0.24278588593006134, 0.2133161872625351, -0.044527262449264526, -0.2006705403327942, -0.47084781527519226, 0.156050443649292, 0.026797574013471603, 0.0309431292116642, 0.3396027684211731, 0.10517051070928574, -0.1589699685573578, -0.545521080493927, 0.21983730792999268, 0.20825891196727753, -0.011348320171236992, -0.23276843130588531, -0.1801825910806656, -0.47197261452674866, 0.09684430062770844, -0.1440057009458542, -0.26684704422950745, 0.02032875269651413, -0.4320564866065979, 0.021692950278520584, 0.09513211250305176, -0.1275620311498642, 0.20186972618103027, -0.01571427658200264, 0.3902011215686798, 0.018059179186820984, 0.5125479698181152, 0.03602314367890358, -0.33321085572242737, -0.1769740879535675, 0.15371857583522797, 0.3135702908039093, 0.19039073586463928, 0.3164433538913727, -0.2868943512439728, 0.10795294493436813, -0.18451590836048126, -0.13897398114204407, 0.0705532431602478, 0.1647895872592926, 0.28912797570228577, 0.10881219804286957, 0.4299696981906891, 0.08942099660634995, -0.19669732451438904, 0.3859315514564514, -0.138739213347435, 0.12940017879009247, -0.006028300151228905, 0.038782086223363876, -0.22685816884040833, -0.12752851843833923, -0.6302875280380249, -0.14749360084533691, -0.3035428524017334, -0.29948481917381287, 0.031002849340438843, -0.018555626273155212, 0.23151814937591553, 0.16045144200325012, 0.0575282908976078, -0.030500449240207672, 0.17306481301784515, -0.361752986907959, -0.32874974608421326, 0.34948861598968506, -0.2451474964618683, -0.42908748984336853, 0.3955519199371338, 0.005282774567604065, 0.1456427425146103, 0.2557879686355591, -0.3369433283805847, 0.08731154352426529, 0.019360169768333435, -0.20379678905010223, 0.18526142835617065, 0.12655982375144958, 0.02320765145123005, 0.17080821096897125, -0.2017573118209839, -0.3857734799385071, -0.1389865130186081, -0.05622288957238197, 0.016742438077926636, 0.30322396755218506, -0.2680341601371765, 0.12903185188770294, -0.3002912402153015, 0.5823432803153992, -0.296398788690567, -0.17703163623809814, 0.20707151293754578, 0.01468750275671482, 0.3663729727268219, 0.15313315391540527, -0.20383983850479126, -0.062059495598077774, -0.10711207240819931, 0.11066675931215286, 0.4840126037597656, 0.3072628080844879, 0.010873927734792233, -0.17196208238601685, 0.23852653801441193, -0.2715992033481598, -0.3046002984046936, -0.041058335453271866, 0.13595086336135864, 0.1042809709906578, 0.319793164730072, 0.27622783184051514, -0.13731767237186432, -0.15995250642299652, 0.0070247040130198, 0.26650193333625793, -0.013424941338598728, -0.025567645207047462, -0.06692630052566528, 0.15792658925056458, -0.15202771127223969, 0.02276144176721573, -0.17106729745864868, 0.5806255340576172, -0.23176325857639313, -0.1123596653342247, 0.04355812817811966, 0.01953505352139473, 0.34193894267082214, -0.3587394952774048, 0.4430396854877472, 0.10323549062013626, -0.16918189823627472, -0.07117113471031189, -0.1374605894088745, -0.3096317946910858, -0.15513285994529724, 0.08204261213541031, 0.19261711835861206, 0.08148642629384995, -0.1061810776591301, 0.05414401739835739, 0.1205267682671547, -0.17343205213546753, -0.202032670378685, 0.04092897102236748, -0.2111252099275589, -0.26557037234306335, -0.2560255527496338, -0.16515542566776276, -0.08505968749523163, -0.41968491673469543, -0.38456258177757263, -0.14121440052986145, 0.10530684888362885, 0.22571595013141632, 0.16960467398166656, 0.0006976287695579231, 0.26263943314552307, 0.14342427253723145, 0.08206504583358765, 0.6693819165229797, 0.5171396732330322, 0.5213221907615662, -0.16674314439296722, 0.01206304132938385, 0.14757733047008514, -0.3914068639278412, 0.04348291456699371, 0.45139065384864807, -0.026659322902560234, -0.06707095354795456, 0.039576366543769836, 0.045967064797878265, -0.26446735858917236, 0.4160865843296051, 0.14189526438713074, 0.10406000167131424, -0.24562039971351624, 0.014557693153619766, 0.08854126185178757, -0.1013343334197998, -0.08442265540361404, 0.18817754089832306, -0.03142105042934418, -0.27719053626060486, -0.11131235212087631, 0.19590069353580475, 0.7465793490409851, -0.3574509024620056, 0.22703363001346588, 0.17933404445648193, 0.050505176186561584, 0.2283754050731659, 0.09918313473463058, -0.051747169345617294, -0.18915322422981262, -0.2547939121723175, -0.09582878649234772, -0.12851418554782867, 0.19249653816223145, 0.3946770429611206, 0.08190476149320602, 0.09013452380895615, 0.2698702812194824, 0.28791993856430054, 0.08868735283613205, -0.0935160294175148, -0.026314178481698036, -0.06630156934261322, -0.20529517531394958, 0.23674233257770538, -0.07619278877973557, 0.06676264852285385, -0.3424857258796692, 0.004594792146235704, 0.270332396030426, -0.14228637516498566, -0.20552469789981842, -0.06865644454956055, -0.3395402431488037, 0.06763364374637604, -0.20817910134792328, -0.12804831564426422, 0.23876291513442993, -0.07630715519189835, -0.10291498154401779, 0.32941606640815735, -0.3634829521179199, 0.177858367562294, -0.2564801573753357, -0.12208210676908493, -0.4721459746360779, 0.14597904682159424, 0.1704738885164261, -0.07902751117944717, -0.11696288734674454, -0.10650475323200226, -0.055255237966775894, 0.01138162612915039, 0.04381049796938896, 0.16956867277622223, 0.05991025269031525, -0.1637258380651474, -0.10907816141843796, 0.029728522524237633, -0.059014879167079926, -0.23903866112232208, 0.21833842992782593, -0.04960726574063301, 0.17844337224960327, 0.45067232847213745, 0.5201157927513123, -0.16838674247264862, -0.15878328680992126, 0.4381595849990845, -0.14969609677791595, -0.026857465505599976, 0.39235788583755493, 0.4074569344520569, -0.09453557431697845, -0.4727303981781006, 0.007429639808833599, 0.16297811269760132, -0.17255406081676483, 0.13368169963359833, 0.18633243441581726, -0.017070528119802475, 0.32694700360298157, 0.5202243328094482, 0.25392353534698486, -0.08207494020462036, -0.03623713180422783, -0.5070524215698242, -0.12090577185153961, 0.23496703803539276, 0.15056361258029938, 0.23000270128250122, -0.06845404952764511, 0.02793528512120247, -0.09578818082809448, 0.2680700123310089, -0.4302646815776825, 0.17371289432048798, -0.017547104507684708, -0.03624044358730316, 0.03327887877821922, 0.06711632013320923, 0.06153023615479469, 0.045472633093595505, 0.17493222653865814, -0.11648834496736526, -0.25555843114852905, -0.3027447462081909, -0.06658249348402023, 0.1353299468755722, 0.07857406884431839, -0.3223883807659149, 0.02935056947171688, -0.33168724179267883, 0.12285206466913223, -0.13505543768405914, 0.0035936953499913216, 0.08143569529056549, -0.19675645232200623, -0.0315687470138073, 0.233700692653656, 0.1852831393480301, -0.15347981452941895, 0.2186335325241089, 0.010978072881698608, 0.07301275432109833, -0.07338561862707138, -0.28948312997817993, 0.32626745104789734, -0.028089886531233788, 0.045461609959602356, -0.036197494715452194, 0.13254567980766296, 0.15518540143966675, 0.5325073599815369, -0.3047625720500946, -0.11851323395967484, 0.357071191072464, 0.1231599748134613, 0.23802433907985687, 0.01218756940215826, -0.057813968509435654, 0.03511967882514, 0.2895934581756592, -0.39842766523361206, -0.08680103719234467, 0.08638066053390503, 0.02805880829691887, 0.10193408280611038, -0.019482776522636414, 0.22213773429393768, -0.3745911717414856, -0.3226584494113922, 0.1370231956243515, 0.19007472693920135, -0.06799565255641937, -0.11111766844987869, 0.21816037595272064, -0.1402377039194107, 0.16432249546051025, 0.0006585674127563834, -0.02587396278977394, -0.1296016126871109, 0.127098947763443, 0.14028455317020416, 0.46452629566192627, -0.008262083865702152, 0.1213604062795639, -0.12757748365402222, -0.5667855143547058, 0.23067407310009003, 0.17211535573005676, -0.09792137891054153, 0.042707815766334534, -0.14673836529254913, -0.06342197954654694, -0.15974637866020203, 0.11337477713823318, -0.38053977489471436, 0.16096799075603485, -0.16417920589447021, -0.11929207295179367, -0.2471773624420166, -0.23958297073841095, 0.027858056128025055, -0.131376251578331, -0.11390683799982071, -0.055269427597522736, 0.06778053194284439, 0.02206401899456978, 0.020845303311944008, -0.5018770694732666, 0.02371540106832981, 0.004262986127287149, -0.30677980184555054, -0.19393932819366455, 0.158971905708313, 0.24424239993095398, 0.032260600477457047, 0.37001833319664, 0.12960600852966309, 0.03159667178988457, 0.13642418384552002, -0.11615350097417831, -0.12512952089309692, 0.0011856157798320055, -0.13077634572982788, -0.4004696309566498, 0.41768205165863037, 0.04998593404889107, 0.04756765067577362, 0.2868407666683197, 0.3097047209739685, -0.19238905608654022, -0.025277694687247276, -0.009645304642617702, -0.38256141543388367, -0.11367346346378326, 0.0032847393304109573, 0.039891909807920456, -0.07131825387477875, 0.00382830947637558, 0.06870850175619125, -0.023827483877539635, -0.06388843059539795, 0.5726190805435181, -0.04960960894823074, 0.26008400321006775, -0.0148923946544528, 0.1439630687236786, -0.21124401688575745, 0.6071493625640869, 0.3660147488117218, 0.1777108758687973, -0.25817716121673584, -0.21177315711975098, -0.7352433800697327, 0.18610835075378418, 0.04444402456283569, 0.1088353618979454, -0.025703636929392815, -0.1287079006433487, 0.35315459966659546, -0.06531558930873871, 0.15507836639881134, 0.30718666315078735, 0.1784479022026062, -0.11069798469543457, -0.4991611838340759, -0.1145409643650055, 0.16700203716754913, 0.13352935016155243, -0.11581140011548996, -0.2415783852338791, 0.2721169590950012, -0.06511127948760986, 0.10375940799713135, -0.27131223678588867, 0.09949915111064911, -0.2071302831172943, 0.35852527618408203, 0.16408978402614594, 0.010721992701292038, 0.514580249786377, -0.12656192481517792, 0.0988529622554779, -0.4012969732284546, -0.532132089138031, 0.24264685809612274, -0.014246754348278046, -0.011461946181952953, 0.2798285484313965, -0.08936957269906998, 0.2170218676328659, -0.023276785388588905, -0.17679083347320557, -0.06720396876335144, 0.35355937480926514, -0.22769445180892944, 0.08449600636959076, -0.22778648138046265, -0.08090075105428696, 0.2553845942020416, 0.09842105954885483, 0.03512965887784958, -0.011167890392243862, 0.08697613328695297, -0.26541760563850403, 0.24053627252578735, -0.0523311123251915, -0.3960895240306854, -0.5806808471679688, 0.10815807431936264, -0.2533567547798157, 0.2729208767414093, -0.08799813687801361, 0.0435599647462368, 0.23037168383598328, -0.1812341809272766, -0.18883982300758362, 0.3305542469024658, -0.13660821318626404, -0.12761253118515015, -0.02602281980216503, 0.22953186929225922, 0.08285842835903168, -0.17492829263210297, -0.46964725852012634, 0.03233352676033974 ]
https://github.com/huggingface/datasets/issues/1977
ModuleNotFoundError: No module named 'apache_beam' for wikipedia datasets
I sometimes also get this error with other languages of the same dataset: File "/dara/libs/anaconda3/envs/code/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory @lhoestq
Hi I am trying to run run_mlm.py code [1] of huggingface with following "wikipedia"/ "20200501.aa" dataset: `python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.aa --do_train --do_eval --output_dir /tmp/test-mlm --max_seq_length 256 ` I am getting this error, but as per documentation, huggingface dataset provide processed version of this dataset and users can load it without requiring setup extra settings for apache-beam. could you help me please to load this dataset? Do you think I can run run_ml.py with this dataset? or anyway I could subsample and train the model? I greatly appreciate providing the processed version of all languages for this dataset, which allow the user to use them without setting up apache-beam,. thanks I really appreciate your help. @lhoestq thanks. [1] https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py error I get: ``` >>> import datasets >>> datasets.load_dataset("wikipedia", "20200501.aa") Downloading and preparing dataset wikipedia/20200501.aa (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /dara/temp/cache_home_2/datasets/wikipedia/20200501.aa/1.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 1099, in _download_and_prepare import apache_beam as beam ModuleNotFoundError: No module named 'apache_beam' ```
55
ModuleNotFoundError: No module named 'apache_beam' for wikipedia datasets
[ -0.18386918306350708, 0.17475412786006927, -0.1421947330236435, -0.0529252253472805, 0.10295772552490234, 0.10062025487422943, 0.2252286821603775, 0.4323127269744873, 0.19135963916778564, 0.08329508453607559, 0.10029827803373337, 0.04303157702088356, -0.11944741755723953, -0.07014935463666916, -0.06589287519454956, -0.31829598546028137, 0.19600065052509308, 0.05558784306049347, -0.33970075845718384, -0.14814205467700958, -0.06438431143760681, 0.20117324590682983, -0.34766367077827454, 0.0486002080142498, -0.05418163537979126, -0.17078477144241333, 0.18837375938892365, -0.0548577755689621, -0.17925810813903809, -0.032352250069379807, -0.09357190877199173, 0.0868961438536644, -0.09015212953090668, 0.06785913556814194, -0.0001006173697533086, 0.08643534034490585, 0.40342533588409424, -0.09345989674329758, -0.45201992988586426, 0.10810985416173935, -0.03795139491558075, -0.09957956522703171, -0.018870698288083076, -0.2843053638935089, -0.1818573772907257, -0.33717572689056396, 0.12298508733510971, -0.2601838707923889, 0.20191466808319092, 0.06759154051542282, 0.3162064850330353, 0.20873574912548065, 0.24779342114925385, -0.18885332345962524, 0.6365301012992859, -0.15545468032360077, -0.08969547599554062, -0.23988930881023407, -0.13995659351348877, -0.050715405493974686, -0.22452925145626068, 0.6588404178619385, -0.06879861652851105, 0.15369848906993866, 0.31196001172065735, -0.394704669713974, -0.3209276497364044, -0.3059908449649811, 0.17521513998508453, 0.024286603555083275, 0.7652042508125305, -0.2006426304578781, 0.016007917001843452, 0.18801236152648926, -0.0817159116268158, 0.3493155539035797, 0.17208832502365112, 0.1223197728395462, -0.10420646518468857, -0.0577201321721077, 0.32508525252342224, -0.25819161534309387, -0.06341546773910522, 0.21869784593582153, 0.1191059872508049, 0.3106241822242737, 0.04091094806790352, 0.1664155125617981, 0.058851208537817, -0.18205203115940094, -0.042681481689214706, 0.07966555655002594, -0.0031094353180378675, 0.1020963191986084, -0.21455910801887512, 0.06477390974760056, 0.16820389032363892, 0.07744579762220383, 0.16297084093093872, 0.054826345294713974, -0.24566486477851868, 0.2402893602848053, 0.2974536120891571, -0.017803825438022614, 0.16380183398723602, -0.0061199236661195755, 0.16861511766910553, 0.05729598551988602, 0.4593702554702759, 0.1105702593922615, -0.045807965099811554, 0.001769575523212552, 0.18743759393692017, -0.41661661863327026, -0.35234859585762024, -0.030768107622861862, 0.054451584815979004, 0.017847862094640732, 0.05175153538584709, -0.0007428270182572305, -0.17550833523273468, -0.1029541939496994, -0.20200271904468536, 0.38142311573028564, 0.1860513836145401, 0.12292729318141937, 0.3185395300388336, 0.11278871446847916, -0.24809055030345917, -0.2729974091053009, -0.15017950534820557, 0.4101320505142212, -0.1384357064962387, 0.09467559307813644, 0.22569319605827332, 0.16905544698238373, 0.15009357035160065, -0.1274048537015915, -0.013335132971405983, 0.019138602539896965, 0.10072286427021027, 0.20004837214946747, -0.13144905865192413, 0.2731570303440094, 0.26791074872016907, 0.4087880849838257, 0.021595528349280357, 0.01134068239480257, -0.011299733072519302, -0.0894860327243805, -0.2799864411354065, -0.057709310203790665, -0.09863358736038208, 0.22409343719482422, -0.11001364141702652, 0.16788733005523682, 0.07386603951454163, -0.09253585338592529, -0.09869895875453949, -0.18604756891727448, -0.13076013326644897, 0.19467435777187347, 0.2834005653858185, -0.10330867022275925, 0.08842955529689789, 0.2821328341960907, 0.15229296684265137, 0.026739079505205154, 0.03198743984103203, -0.018730971962213516, -0.11331046372652054, 0.05115215480327606, 0.03245759382843971, 0.24238109588623047, -0.06209887936711311, -0.006997002754360437, 0.7502671480178833, -0.4452926218509674, -0.20456694066524506, -0.003705758135765791, 0.19883935153484344, -0.2542281746864319, 0.08455212414264679, 0.050599150359630585, -0.005755309946835041, 0.08713336288928986, -0.20400607585906982, 0.24450697004795074, 0.18076740205287933, 0.22367388010025024, -0.242844820022583, -0.10007460415363312, -0.0978442132472992, 0.24665062129497528, 0.33903002738952637, -0.08864651620388031, 0.25471240282058716, 0.5604710578918457, 0.048042599111795425, -0.2846047878265381, 0.1963690221309662, 0.4121881127357483, -0.15691471099853516, -0.024923816323280334, 0.23305128514766693, -0.039502792060375214, -0.017659708857536316, -0.08155859261751175, -0.14693579077720642, 0.5790417194366455, -0.08944755792617798, -0.026097241789102554, -0.39474067091941833, -0.117869071662426, -0.1541384905576706, -0.31333768367767334, 0.33047959208488464, -0.01621319353580475, -0.011654692701995373, 0.43842318654060364, -0.06793095916509628, 0.10713440179824829, -0.09629404544830322, 0.004815256223082542, -0.4760436713695526, 0.25186723470687866, -0.39351385831832886, 0.044685348868370056, 0.2291252613067627, 0.127713143825531, 0.13390199840068817, -0.13319827616214752, -0.08415193110704422, 0.26893162727355957, -0.017839845269918442, 0.0698189064860344, 0.14587906002998352, -0.20475532114505768, 0.17667479813098907, -0.4464576840400696, 0.2928157448768616, 0.008160391822457314, 0.03174703195691109, 0.048176493495702744, -0.10549148172140121, -0.11364847421646118, 0.08196424692869186, 0.0031309660989791155, 0.08007810264825821, 0.15875358879566193, 0.26549696922302246, 0.049491479992866516, -0.04756154492497444, -0.31889158487319946, 0.1917378157377243, 0.17142412066459656, 0.037516120821237564, -0.15823890268802643, 0.17005617916584015, -0.2599182426929474, 0.4808512330055237, 0.17462344467639923, 0.2930222749710083, -0.12194205820560455, -0.41782158613204956, -0.023121977224946022, 0.34289029240608215, -0.0915064662694931, -0.12769126892089844, 0.21191862225532532, -0.00945265218615532, -0.09538976103067398, 0.08077458292245865, -0.13116875290870667, 0.03092217445373535, -0.022035500034689903, 0.27139583230018616, 0.0025111937429755926, 0.04407552629709244, -0.09939184784889221, -0.2953939437866211, -0.016987377777695656, -0.31011849641799927, 0.13099265098571777, -0.15434278547763824, -0.054786670953035355, -0.2556625306606293, -0.35080161690711975, -0.022206798195838928, 0.31072312593460083, -0.26598915457725525, -0.5131368041038513, 0.19592545926570892, 0.013374079950153828, -0.1645640730857849, 0.39312681555747986, 0.4268993139266968, -0.03798222169280052, 0.4208064079284668, 0.004748114384710789, -0.23611286282539368, -0.4067037105560303, -0.053587816655635834, 0.18749581277370453, 0.019086217507719994, 0.2395535409450531, 0.2671535611152649, -0.10507823526859283, 0.13347068428993225, -0.4666675925254822, -0.24161042273044586, 0.20776544511318207, -0.058996956795454025, -0.0798916444182396, 0.11709658801555634, 0.3278503119945526, 0.014520661905407906, -0.05598142743110657, 0.2820068895816803, -0.2659558951854706, -0.013516939245164394, 0.19444839656352997, -0.08390683680772781, 0.051752928644418716, -0.050162214785814285, -0.4305015802383423, -0.047170497477054596, -0.37019842863082886, -0.23480062186717987, 0.2776602506637573, -0.05038372427225113, 0.20569436252117157, 0.30839803814888, -0.12087312340736389, 0.2291516363620758, 0.1260220855474472, -0.1279110312461853, 0.2047230750322342, 0.38311535120010376, -0.3976655900478363, -0.5359206795692444, 0.06254832446575165, -0.15371115505695343, 0.1091763824224472, 0.36462894082069397, -0.22236670553684235, -0.08741292357444763, 0.2564120590686798, -0.23767082393169403, 0.04957007244229317, 0.24466472864151, 0.17643815279006958, -0.014492948539555073, -0.15223102271556854, -0.191010519862175, 0.12572216987609863, -0.13556841015815735, -0.2939881682395935, 0.1658942550420761, 0.11574108153581619, 0.1463117003440857, 0.05211332067847252, 0.7827802896499634, -0.0180130023509264, 0.15619055926799774, 0.3527955412864685, -0.06914150714874268, 0.30127909779548645, -0.1311013251543045, -0.11710244417190552, 0.08595341444015503, 0.020729796960949898, 0.2546404004096985, 0.11521050333976746, 0.039078839123249054, -0.20997081696987152, -0.42115744948387146, 0.04307662323117256, -0.2867547571659088, -0.22641564905643463, -0.08275166898965836, -0.13161179423332214, 0.19160392880439758, 0.17336812615394592, 0.2290537804365158, -0.10273437947034836, -0.17823179066181183, 0.3827938139438629, 0.14982078969478607, -0.2369796186685562, -0.07967245578765869, 0.2063172310590744, 0.1313115656375885, -0.4876498878002167, 0.3548654019832611, -0.13966995477676392, -0.05031491443514824, -0.05210207402706146, -0.21807362139225006, 0.044931165874004364, -0.050252515822649, 0.313418447971344, -0.4858025908470154, 0.05874419957399368, 0.1909717619419098, 0.3328934609889984, -0.6268222332000732, 0.052324339747428894, -0.16803015768527985, 0.011109834536910057, -0.04278583452105522, 0.008846879936754704, -0.23640206456184387, -0.006711722817271948, 0.5034677386283875, -0.07618769258260727, -0.002889200346544385, -0.023921726271510124, -0.21035143733024597, -0.13169820606708527, -0.4964351952075958, -0.4191794693470001, -0.03223853558301926, 0.09884393215179443, 0.0901779979467392, 0.0007615638896822929, 0.025017304345965385, -0.04220127686858177, -0.13848869502544403, 0.23484700918197632, 0.17812149226665497, 0.014504062943160534, -0.3595145642757416, -0.10438144952058792, 0.1906280517578125, -0.13196437060832977, 0.03812457621097565, 0.11697032302618027, -0.02656424231827259, 0.08349674195051193, -0.23965060710906982, -0.2688278257846832, 0.022157903760671616, -0.17414286732673645, -0.049643125385046005, -0.2637581527233124, 0.04693761095404625, 0.104322649538517, 0.17712177336215973, 0.012315310537815094, -0.07045002281665802, -0.14714019000530243, -0.17217229306697845, 0.4515824615955353, 0.12712213397026062, -0.09849676489830017, 0.3751353919506073, 0.264837384223938, -0.23558035492897034, 0.35489609837532043, 0.14824144542217255, 0.431858092546463, -0.09417843818664551, 0.05066964030265808, 0.25009047985076904, 0.1405714750289917, 0.6423081755638123, -0.8080417513847351, 0.2172238677740097, -0.2939468324184418, 0.004860225133597851, -0.021662637591362, 0.03473775088787079, 0.2072337567806244, -0.01166919432580471, -0.19715365767478943, 0.2932273745536804, 0.4645334482192993, 0.31930074095726013, -0.26943647861480713, 0.2228875309228897, -0.08942114561796188, -0.09235936403274536, -0.22697080671787262, 0.22009633481502533, -0.19625842571258545, 0.39865219593048096, -0.3656198978424072, 0.104950912296772, -0.16523267328739166, -0.2327420860528946, -0.15640704333782196, 0.11826133728027344, 0.09928915649652481, 0.5043957829475403, -0.2796171307563782, -0.3920159637928009, -0.03954830765724182, 0.1416320651769638, 0.1105099692940712, 0.043153464794158936, -0.24364344775676727, 0.3178546130657196, -0.1841263622045517, -0.3432987332344055, -0.29022350907325745, 0.373735636472702, 0.3311217129230499, -0.22933559119701385, -0.19204111397266388, 0.15905418992042542, -0.08102898299694061, -0.294314980506897, -0.04168372228741646, 0.011765732429921627, 0.19693976640701294, 0.09861550480127335, 0.05706461891531944, 0.27624040842056274, -0.17376340925693512, -0.07653602957725525, 0.2137432098388672, -0.30886414647102356, 0.06042769178748131, 0.015259945765137672, 0.308902382850647, 0.0007252782816067338, 0.062247805297374725, 0.4179445207118988, 0.10648024827241898, -0.08910545706748962, 0.248170867562294, 0.17953968048095703, -0.2903856933116913, -0.35592296719551086, 0.007796210236847401, -0.13734455406665802, -0.28186073899269104, 0.019075190648436546, -0.1042160838842392, -0.1730104237794876, 0.052834656089544296, 0.18582849204540253, -0.01857662759721279, 0.011423221789300442, 0.12854664027690887, -0.14737701416015625, -0.0042704385705292225, 0.3444249927997589, -0.28315627574920654, -0.060113999992609024, 0.05080817639827728, -0.06973773241043091, 0.3648489713668823, -0.09638668596744537, -0.35459572076797485, -0.15451961755752563, -0.06253635138273239, 0.1348763406276703, 0.5038730502128601, -0.015618585981428623, -0.22506460547447205, 0.09780298918485641, 0.19504414498806, -0.09957509487867355, -0.39496368169784546, -0.2668876647949219, 0.1246529221534729, 0.06076633185148239, -0.1411563754081726, 0.02638019621372223, 0.009839074686169624, -0.2202032059431076, -0.13195572793483734, -0.22459152340888977, 0.1447843313217163, -0.14617560803890228, -0.13042069971561432, 0.29048487544059753, -0.0365791842341423, 0.06832198798656464, -0.09845924377441406, 0.07641828805208206, -0.06759718805551529, 0.16982631385326385, 0.0349293015897274, -0.09998416900634766, 0.3674372732639313, -0.0574934147298336, -0.277142196893692, 0.12348327040672302, -0.1067081168293953, 0.04030950367450714, 0.26512032747268677, -0.09976492822170258, -0.11072634905576706, 0.14316660165786743, 0.2830250859260559, -0.012762658298015594, -0.19654077291488647, -0.1257636845111847, -0.07599246501922607, 0.26547473669052124, -0.314296156167984, 0.12536394596099854, 0.5137038826942444, 0.022824062034487724, 0.09076492488384247, 0.08916936069726944, 0.235385924577713, -0.12558002769947052, 0.15193495154380798, 0.32111966609954834, 0.1912938505411148, -0.2647177577018738, 0.28121402859687805, -0.07946936041116714, 0.028935527428984642, -0.0047139739617705345, -0.00636389572173357, -0.05769297108054161, 0.19768722355365753, 0.6419140696525574, -0.12985768914222717, 0.46353957056999207, 0.12194057554006577, -0.05022856965661049, -0.08016566187143326, 0.05651063844561577, 0.38809293508529663, 0.23213297128677368, 0.12497619539499283, 0.12392738461494446, 0.030962854623794556, -0.059462353587150574, 0.2620338797569275, -0.0659010112285614, -0.31795480847358704, 0.15556573867797852, -0.034853704273700714, 0.11733585596084595, -0.11649760603904724, -0.24427257478237152, -0.0914243757724762, 0.039689596742391586, 0.10737660527229309, -0.10619457066059113, 0.3135954737663269, 0.17052602767944336, -0.09655030816793442, -0.23723885416984558, 0.5881303548812866, -0.11054021865129471, 0.21121497452259064, -0.02344476990401745, -0.05923587083816528, -0.12435832619667053, 0.10265084356069565, 0.057363543659448624, 0.117696113884449, 0.19249464571475983, 0.13950049877166748, -0.3138737678527832, -0.06005939468741417, 0.038679007440805435, -0.17485009133815765, -0.06351073086261749, 0.002310517244040966, 0.17952026426792145, 0.10392007976770401, 0.18432489037513733, 0.2253539115190506, -0.26935863494873047, -0.23354433476924896, 0.27328649163246155, 0.07787163555622101, -0.20262585580348969, -0.48957687616348267, -0.3240405321121216, -0.14021416008472443, -0.21083226799964905, -0.019156495109200478, -0.4590386152267456, 0.053886547684669495, -0.028106171637773514, 0.016204843297600746, -0.020786583423614502, -0.390584260225296, 0.11542030423879623, -0.08812963217496872, 0.4757470488548279, 0.11618037521839142, 0.1820056289434433, 0.08333045244216919, -0.5447028279304504, -0.45890164375305176, 0.1597353219985962, -0.20063871145248413, -0.16958358883857727, -0.2461383193731308, 0.3585275709629059, 0.1983938068151474, 0.25503551959991455, 0.21317748725414276, 0.04031778499484062, -0.09221518784761429, -0.1349356472492218, -0.3495143949985504, -0.09550423175096512, -0.1479821354150772, -0.081879161298275, -0.10761575400829315, -0.2452351450920105, -0.080650694668293, -0.10198772698640823, 0.25588616728782654, -0.0801217332482338, -0.37175068259239197, 0.38970646262168884, -0.0725327730178833, 0.4558621644973755, -0.11503279954195023, 0.3274829685688019, -0.10979039967060089, -0.0716419443488121, -0.16223593056201935, -0.2997159957885742, 0.08298543095588684, 0.08520961552858353, 0.09931118786334991, 0.18841993808746338, -0.030719028785824776, -0.05747897922992706, -0.1251826137304306, 0.6608219742774963, 0.14399155974388123, 0.47033584117889404, -0.17099305987358093, 0.09879154711961746, 0.10341905057430267, 0.08695730566978455, -0.1472233086824417, -0.12254822999238968, -0.1906205266714096, -0.0174259040504694, -0.2779275178909302, -0.38308170437812805, 0.1040460392832756, -0.45476657152175903, -0.3334031403064728, 0.020560098811984062, 0.046477530151605606, -0.14194345474243164, -0.08730144798755646, -0.4439980089664459, 0.20249895751476288, 0.11072175204753876, 0.10015475004911423, 0.06157758831977844, 0.07116339355707169, -0.09981172531843185, -0.1630801409482956, -0.00792075414210558, -0.2623300850391388, 0.0226469486951828, -0.17002402245998383, -0.14472168684005737, -0.20675572752952576 ]
https://github.com/huggingface/datasets/issues/1977
ModuleNotFoundError: No module named 'apache_beam' for wikipedia datasets
Hi ! Thanks for reporting Some wikipedia configurations do require the user to have `apache_beam` in order to parse the wikimedia data. On the other hand regarding your second issue ``` OSError: Memory mapping file failed: Cannot allocate memory ``` I've never experienced this, can you open a new issue for this specific error and provide more details please ? For example what script did you use to get this, what language did you use, what's your environment details (os, python version, pyarrow version)..
Hi I am trying to run run_mlm.py code [1] of huggingface with following "wikipedia"/ "20200501.aa" dataset: `python run_mlm.py --model_name_or_path bert-base-multilingual-cased --dataset_name wikipedia --dataset_config_name 20200501.aa --do_train --do_eval --output_dir /tmp/test-mlm --max_seq_length 256 ` I am getting this error, but as per documentation, huggingface dataset provide processed version of this dataset and users can load it without requiring setup extra settings for apache-beam. could you help me please to load this dataset? Do you think I can run run_ml.py with this dataset? or anyway I could subsample and train the model? I greatly appreciate providing the processed version of all languages for this dataset, which allow the user to use them without setting up apache-beam,. thanks I really appreciate your help. @lhoestq thanks. [1] https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py error I get: ``` >>> import datasets >>> datasets.load_dataset("wikipedia", "20200501.aa") Downloading and preparing dataset wikipedia/20200501.aa (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /dara/temp/cache_home_2/datasets/wikipedia/20200501.aa/1.0.0/4021357e28509391eab2f8300d9b689e7e8f3a877ebb3d354b01577d497ebc63... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/dara/temp/libs/anaconda3/envs/codes/lib/python3.7/site-packages/datasets-1.3.0-py3.7.egg/datasets/builder.py", line 1099, in _download_and_prepare import apache_beam as beam ModuleNotFoundError: No module named 'apache_beam' ```
84
ModuleNotFoundError: No module named 'apache_beam' for wikipedia datasets
[ -0.18386918306350708, 0.17475412786006927, -0.1421947330236435, -0.0529252253472805, 0.10295772552490234, 0.10062025487422943, 0.2252286821603775, 0.4323127269744873, 0.19135963916778564, 0.08329508453607559, 0.10029827803373337, 0.04303157702088356, -0.11944741755723953, -0.07014935463666916, -0.06589287519454956, -0.31829598546028137, 0.19600065052509308, 0.05558784306049347, -0.33970075845718384, -0.14814205467700958, -0.06438431143760681, 0.20117324590682983, -0.34766367077827454, 0.0486002080142498, -0.05418163537979126, -0.17078477144241333, 0.18837375938892365, -0.0548577755689621, -0.17925810813903809, -0.032352250069379807, -0.09357190877199173, 0.0868961438536644, -0.09015212953090668, 0.06785913556814194, -0.0001006173697533086, 0.08643534034490585, 0.40342533588409424, -0.09345989674329758, -0.45201992988586426, 0.10810985416173935, -0.03795139491558075, -0.09957956522703171, -0.018870698288083076, -0.2843053638935089, -0.1818573772907257, -0.33717572689056396, 0.12298508733510971, -0.2601838707923889, 0.20191466808319092, 0.06759154051542282, 0.3162064850330353, 0.20873574912548065, 0.24779342114925385, -0.18885332345962524, 0.6365301012992859, -0.15545468032360077, -0.08969547599554062, -0.23988930881023407, -0.13995659351348877, -0.050715405493974686, -0.22452925145626068, 0.6588404178619385, -0.06879861652851105, 0.15369848906993866, 0.31196001172065735, -0.394704669713974, -0.3209276497364044, -0.3059908449649811, 0.17521513998508453, 0.024286603555083275, 0.7652042508125305, -0.2006426304578781, 0.016007917001843452, 0.18801236152648926, -0.0817159116268158, 0.3493155539035797, 0.17208832502365112, 0.1223197728395462, -0.10420646518468857, -0.0577201321721077, 0.32508525252342224, -0.25819161534309387, -0.06341546773910522, 0.21869784593582153, 0.1191059872508049, 0.3106241822242737, 0.04091094806790352, 0.1664155125617981, 0.058851208537817, -0.18205203115940094, -0.042681481689214706, 0.07966555655002594, -0.0031094353180378675, 0.1020963191986084, -0.21455910801887512, 0.06477390974760056, 0.16820389032363892, 0.07744579762220383, 0.16297084093093872, 0.054826345294713974, -0.24566486477851868, 0.2402893602848053, 0.2974536120891571, -0.017803825438022614, 0.16380183398723602, -0.0061199236661195755, 0.16861511766910553, 0.05729598551988602, 0.4593702554702759, 0.1105702593922615, -0.045807965099811554, 0.001769575523212552, 0.18743759393692017, -0.41661661863327026, -0.35234859585762024, -0.030768107622861862, 0.054451584815979004, 0.017847862094640732, 0.05175153538584709, -0.0007428270182572305, -0.17550833523273468, -0.1029541939496994, -0.20200271904468536, 0.38142311573028564, 0.1860513836145401, 0.12292729318141937, 0.3185395300388336, 0.11278871446847916, -0.24809055030345917, -0.2729974091053009, -0.15017950534820557, 0.4101320505142212, -0.1384357064962387, 0.09467559307813644, 0.22569319605827332, 0.16905544698238373, 0.15009357035160065, -0.1274048537015915, -0.013335132971405983, 0.019138602539896965, 0.10072286427021027, 0.20004837214946747, -0.13144905865192413, 0.2731570303440094, 0.26791074872016907, 0.4087880849838257, 0.021595528349280357, 0.01134068239480257, -0.011299733072519302, -0.0894860327243805, -0.2799864411354065, -0.057709310203790665, -0.09863358736038208, 0.22409343719482422, -0.11001364141702652, 0.16788733005523682, 0.07386603951454163, -0.09253585338592529, -0.09869895875453949, -0.18604756891727448, -0.13076013326644897, 0.19467435777187347, 0.2834005653858185, -0.10330867022275925, 0.08842955529689789, 0.2821328341960907, 0.15229296684265137, 0.026739079505205154, 0.03198743984103203, -0.018730971962213516, -0.11331046372652054, 0.05115215480327606, 0.03245759382843971, 0.24238109588623047, -0.06209887936711311, -0.006997002754360437, 0.7502671480178833, -0.4452926218509674, -0.20456694066524506, -0.003705758135765791, 0.19883935153484344, -0.2542281746864319, 0.08455212414264679, 0.050599150359630585, -0.005755309946835041, 0.08713336288928986, -0.20400607585906982, 0.24450697004795074, 0.18076740205287933, 0.22367388010025024, -0.242844820022583, -0.10007460415363312, -0.0978442132472992, 0.24665062129497528, 0.33903002738952637, -0.08864651620388031, 0.25471240282058716, 0.5604710578918457, 0.048042599111795425, -0.2846047878265381, 0.1963690221309662, 0.4121881127357483, -0.15691471099853516, -0.024923816323280334, 0.23305128514766693, -0.039502792060375214, -0.017659708857536316, -0.08155859261751175, -0.14693579077720642, 0.5790417194366455, -0.08944755792617798, -0.026097241789102554, -0.39474067091941833, -0.117869071662426, -0.1541384905576706, -0.31333768367767334, 0.33047959208488464, -0.01621319353580475, -0.011654692701995373, 0.43842318654060364, -0.06793095916509628, 0.10713440179824829, -0.09629404544830322, 0.004815256223082542, -0.4760436713695526, 0.25186723470687866, -0.39351385831832886, 0.044685348868370056, 0.2291252613067627, 0.127713143825531, 0.13390199840068817, -0.13319827616214752, -0.08415193110704422, 0.26893162727355957, -0.017839845269918442, 0.0698189064860344, 0.14587906002998352, -0.20475532114505768, 0.17667479813098907, -0.4464576840400696, 0.2928157448768616, 0.008160391822457314, 0.03174703195691109, 0.048176493495702744, -0.10549148172140121, -0.11364847421646118, 0.08196424692869186, 0.0031309660989791155, 0.08007810264825821, 0.15875358879566193, 0.26549696922302246, 0.049491479992866516, -0.04756154492497444, -0.31889158487319946, 0.1917378157377243, 0.17142412066459656, 0.037516120821237564, -0.15823890268802643, 0.17005617916584015, -0.2599182426929474, 0.4808512330055237, 0.17462344467639923, 0.2930222749710083, -0.12194205820560455, -0.41782158613204956, -0.023121977224946022, 0.34289029240608215, -0.0915064662694931, -0.12769126892089844, 0.21191862225532532, -0.00945265218615532, -0.09538976103067398, 0.08077458292245865, -0.13116875290870667, 0.03092217445373535, -0.022035500034689903, 0.27139583230018616, 0.0025111937429755926, 0.04407552629709244, -0.09939184784889221, -0.2953939437866211, -0.016987377777695656, -0.31011849641799927, 0.13099265098571777, -0.15434278547763824, -0.054786670953035355, -0.2556625306606293, -0.35080161690711975, -0.022206798195838928, 0.31072312593460083, -0.26598915457725525, -0.5131368041038513, 0.19592545926570892, 0.013374079950153828, -0.1645640730857849, 0.39312681555747986, 0.4268993139266968, -0.03798222169280052, 0.4208064079284668, 0.004748114384710789, -0.23611286282539368, -0.4067037105560303, -0.053587816655635834, 0.18749581277370453, 0.019086217507719994, 0.2395535409450531, 0.2671535611152649, -0.10507823526859283, 0.13347068428993225, -0.4666675925254822, -0.24161042273044586, 0.20776544511318207, -0.058996956795454025, -0.0798916444182396, 0.11709658801555634, 0.3278503119945526, 0.014520661905407906, -0.05598142743110657, 0.2820068895816803, -0.2659558951854706, -0.013516939245164394, 0.19444839656352997, -0.08390683680772781, 0.051752928644418716, -0.050162214785814285, -0.4305015802383423, -0.047170497477054596, -0.37019842863082886, -0.23480062186717987, 0.2776602506637573, -0.05038372427225113, 0.20569436252117157, 0.30839803814888, -0.12087312340736389, 0.2291516363620758, 0.1260220855474472, -0.1279110312461853, 0.2047230750322342, 0.38311535120010376, -0.3976655900478363, -0.5359206795692444, 0.06254832446575165, -0.15371115505695343, 0.1091763824224472, 0.36462894082069397, -0.22236670553684235, -0.08741292357444763, 0.2564120590686798, -0.23767082393169403, 0.04957007244229317, 0.24466472864151, 0.17643815279006958, -0.014492948539555073, -0.15223102271556854, -0.191010519862175, 0.12572216987609863, -0.13556841015815735, -0.2939881682395935, 0.1658942550420761, 0.11574108153581619, 0.1463117003440857, 0.05211332067847252, 0.7827802896499634, -0.0180130023509264, 0.15619055926799774, 0.3527955412864685, -0.06914150714874268, 0.30127909779548645, -0.1311013251543045, -0.11710244417190552, 0.08595341444015503, 0.020729796960949898, 0.2546404004096985, 0.11521050333976746, 0.039078839123249054, -0.20997081696987152, -0.42115744948387146, 0.04307662323117256, -0.2867547571659088, -0.22641564905643463, -0.08275166898965836, -0.13161179423332214, 0.19160392880439758, 0.17336812615394592, 0.2290537804365158, -0.10273437947034836, -0.17823179066181183, 0.3827938139438629, 0.14982078969478607, -0.2369796186685562, -0.07967245578765869, 0.2063172310590744, 0.1313115656375885, -0.4876498878002167, 0.3548654019832611, -0.13966995477676392, -0.05031491443514824, -0.05210207402706146, -0.21807362139225006, 0.044931165874004364, -0.050252515822649, 0.313418447971344, -0.4858025908470154, 0.05874419957399368, 0.1909717619419098, 0.3328934609889984, -0.6268222332000732, 0.052324339747428894, -0.16803015768527985, 0.011109834536910057, -0.04278583452105522, 0.008846879936754704, -0.23640206456184387, -0.006711722817271948, 0.5034677386283875, -0.07618769258260727, -0.002889200346544385, -0.023921726271510124, -0.21035143733024597, -0.13169820606708527, -0.4964351952075958, -0.4191794693470001, -0.03223853558301926, 0.09884393215179443, 0.0901779979467392, 0.0007615638896822929, 0.025017304345965385, -0.04220127686858177, -0.13848869502544403, 0.23484700918197632, 0.17812149226665497, 0.014504062943160534, -0.3595145642757416, -0.10438144952058792, 0.1906280517578125, -0.13196437060832977, 0.03812457621097565, 0.11697032302618027, -0.02656424231827259, 0.08349674195051193, -0.23965060710906982, -0.2688278257846832, 0.022157903760671616, -0.17414286732673645, -0.049643125385046005, -0.2637581527233124, 0.04693761095404625, 0.104322649538517, 0.17712177336215973, 0.012315310537815094, -0.07045002281665802, -0.14714019000530243, -0.17217229306697845, 0.4515824615955353, 0.12712213397026062, -0.09849676489830017, 0.3751353919506073, 0.264837384223938, -0.23558035492897034, 0.35489609837532043, 0.14824144542217255, 0.431858092546463, -0.09417843818664551, 0.05066964030265808, 0.25009047985076904, 0.1405714750289917, 0.6423081755638123, -0.8080417513847351, 0.2172238677740097, -0.2939468324184418, 0.004860225133597851, -0.021662637591362, 0.03473775088787079, 0.2072337567806244, -0.01166919432580471, -0.19715365767478943, 0.2932273745536804, 0.4645334482192993, 0.31930074095726013, -0.26943647861480713, 0.2228875309228897, -0.08942114561796188, -0.09235936403274536, -0.22697080671787262, 0.22009633481502533, -0.19625842571258545, 0.39865219593048096, -0.3656198978424072, 0.104950912296772, -0.16523267328739166, -0.2327420860528946, -0.15640704333782196, 0.11826133728027344, 0.09928915649652481, 0.5043957829475403, -0.2796171307563782, -0.3920159637928009, -0.03954830765724182, 0.1416320651769638, 0.1105099692940712, 0.043153464794158936, -0.24364344775676727, 0.3178546130657196, -0.1841263622045517, -0.3432987332344055, -0.29022350907325745, 0.373735636472702, 0.3311217129230499, -0.22933559119701385, -0.19204111397266388, 0.15905418992042542, -0.08102898299694061, -0.294314980506897, -0.04168372228741646, 0.011765732429921627, 0.19693976640701294, 0.09861550480127335, 0.05706461891531944, 0.27624040842056274, -0.17376340925693512, -0.07653602957725525, 0.2137432098388672, -0.30886414647102356, 0.06042769178748131, 0.015259945765137672, 0.308902382850647, 0.0007252782816067338, 0.062247805297374725, 0.4179445207118988, 0.10648024827241898, -0.08910545706748962, 0.248170867562294, 0.17953968048095703, -0.2903856933116913, -0.35592296719551086, 0.007796210236847401, -0.13734455406665802, -0.28186073899269104, 0.019075190648436546, -0.1042160838842392, -0.1730104237794876, 0.052834656089544296, 0.18582849204540253, -0.01857662759721279, 0.011423221789300442, 0.12854664027690887, -0.14737701416015625, -0.0042704385705292225, 0.3444249927997589, -0.28315627574920654, -0.060113999992609024, 0.05080817639827728, -0.06973773241043091, 0.3648489713668823, -0.09638668596744537, -0.35459572076797485, -0.15451961755752563, -0.06253635138273239, 0.1348763406276703, 0.5038730502128601, -0.015618585981428623, -0.22506460547447205, 0.09780298918485641, 0.19504414498806, -0.09957509487867355, -0.39496368169784546, -0.2668876647949219, 0.1246529221534729, 0.06076633185148239, -0.1411563754081726, 0.02638019621372223, 0.009839074686169624, -0.2202032059431076, -0.13195572793483734, -0.22459152340888977, 0.1447843313217163, -0.14617560803890228, -0.13042069971561432, 0.29048487544059753, -0.0365791842341423, 0.06832198798656464, -0.09845924377441406, 0.07641828805208206, -0.06759718805551529, 0.16982631385326385, 0.0349293015897274, -0.09998416900634766, 0.3674372732639313, -0.0574934147298336, -0.277142196893692, 0.12348327040672302, -0.1067081168293953, 0.04030950367450714, 0.26512032747268677, -0.09976492822170258, -0.11072634905576706, 0.14316660165786743, 0.2830250859260559, -0.012762658298015594, -0.19654077291488647, -0.1257636845111847, -0.07599246501922607, 0.26547473669052124, -0.314296156167984, 0.12536394596099854, 0.5137038826942444, 0.022824062034487724, 0.09076492488384247, 0.08916936069726944, 0.235385924577713, -0.12558002769947052, 0.15193495154380798, 0.32111966609954834, 0.1912938505411148, -0.2647177577018738, 0.28121402859687805, -0.07946936041116714, 0.028935527428984642, -0.0047139739617705345, -0.00636389572173357, -0.05769297108054161, 0.19768722355365753, 0.6419140696525574, -0.12985768914222717, 0.46353957056999207, 0.12194057554006577, -0.05022856965661049, -0.08016566187143326, 0.05651063844561577, 0.38809293508529663, 0.23213297128677368, 0.12497619539499283, 0.12392738461494446, 0.030962854623794556, -0.059462353587150574, 0.2620338797569275, -0.0659010112285614, -0.31795480847358704, 0.15556573867797852, -0.034853704273700714, 0.11733585596084595, -0.11649760603904724, -0.24427257478237152, -0.0914243757724762, 0.039689596742391586, 0.10737660527229309, -0.10619457066059113, 0.3135954737663269, 0.17052602767944336, -0.09655030816793442, -0.23723885416984558, 0.5881303548812866, -0.11054021865129471, 0.21121497452259064, -0.02344476990401745, -0.05923587083816528, -0.12435832619667053, 0.10265084356069565, 0.057363543659448624, 0.117696113884449, 0.19249464571475983, 0.13950049877166748, -0.3138737678527832, -0.06005939468741417, 0.038679007440805435, -0.17485009133815765, -0.06351073086261749, 0.002310517244040966, 0.17952026426792145, 0.10392007976770401, 0.18432489037513733, 0.2253539115190506, -0.26935863494873047, -0.23354433476924896, 0.27328649163246155, 0.07787163555622101, -0.20262585580348969, -0.48957687616348267, -0.3240405321121216, -0.14021416008472443, -0.21083226799964905, -0.019156495109200478, -0.4590386152267456, 0.053886547684669495, -0.028106171637773514, 0.016204843297600746, -0.020786583423614502, -0.390584260225296, 0.11542030423879623, -0.08812963217496872, 0.4757470488548279, 0.11618037521839142, 0.1820056289434433, 0.08333045244216919, -0.5447028279304504, -0.45890164375305176, 0.1597353219985962, -0.20063871145248413, -0.16958358883857727, -0.2461383193731308, 0.3585275709629059, 0.1983938068151474, 0.25503551959991455, 0.21317748725414276, 0.04031778499484062, -0.09221518784761429, -0.1349356472492218, -0.3495143949985504, -0.09550423175096512, -0.1479821354150772, -0.081879161298275, -0.10761575400829315, -0.2452351450920105, -0.080650694668293, -0.10198772698640823, 0.25588616728782654, -0.0801217332482338, -0.37175068259239197, 0.38970646262168884, -0.0725327730178833, 0.4558621644973755, -0.11503279954195023, 0.3274829685688019, -0.10979039967060089, -0.0716419443488121, -0.16223593056201935, -0.2997159957885742, 0.08298543095588684, 0.08520961552858353, 0.09931118786334991, 0.18841993808746338, -0.030719028785824776, -0.05747897922992706, -0.1251826137304306, 0.6608219742774963, 0.14399155974388123, 0.47033584117889404, -0.17099305987358093, 0.09879154711961746, 0.10341905057430267, 0.08695730566978455, -0.1472233086824417, -0.12254822999238968, -0.1906205266714096, -0.0174259040504694, -0.2779275178909302, -0.38308170437812805, 0.1040460392832756, -0.45476657152175903, -0.3334031403064728, 0.020560098811984062, 0.046477530151605606, -0.14194345474243164, -0.08730144798755646, -0.4439980089664459, 0.20249895751476288, 0.11072175204753876, 0.10015475004911423, 0.06157758831977844, 0.07116339355707169, -0.09981172531843185, -0.1630801409482956, -0.00792075414210558, -0.2623300850391388, 0.0226469486951828, -0.17002402245998383, -0.14472168684005737, -0.20675572752952576 ]
https://github.com/huggingface/datasets/issues/1973
Question: what gets stored in the datasets cache and why is it so huge?
Echo'ing this observation: I have a few datasets in the neighborhood of 2GB CSVs uncompressed, and when I use something like `Dataset.save_to_disk()` it's ~18GB on disk. If this is unexpected behavior, would be happy to help run debugging as needed.
I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you!
40
Question: what gets stored in the datasets cache and why is it so huge?
[ -0.10808491706848145, 0.00734725734218955, -0.31755632162094116, 0.47385093569755554, 0.09540518373250961, 0.25874581933021545, 0.15500664710998535, 0.13928952813148499, 0.0007540832739323378, -0.010578552260994911, -0.0798853263258934, -0.12084835767745972, 0.07051625847816467, -0.04989858344197273, 0.09517747163772583, 0.1790550947189331, 0.11332304030656815, -0.04443009942770004, -0.26745596528053284, -0.1903010457754135, -0.11080199480056763, 0.062084391713142395, 0.1009640097618103, -0.2954944968223572, -0.4739367961883545, -0.18909379839897156, -0.10004761070013046, 0.17703813314437866, -0.1809816062450409, -0.2629290223121643, -0.2118981033563614, 0.06722239404916763, 0.021087681874632835, 0.2776344120502472, -0.00010297751578036696, -0.19333630800247192, 0.2443872094154358, 0.11073097586631775, -0.5772975087165833, 0.49662405252456665, -0.48889127373695374, -0.02257564663887024, -0.15339292585849762, -0.17672480642795563, 0.4793413281440735, 0.07488331943750381, 0.018487587571144104, -0.5027731657028198, 0.003981047309935093, 0.08214680105447769, 0.38029783964157104, -0.04523083567619324, -0.3524976074695587, -0.006345926783978939, 0.2572628855705261, 0.007860925979912281, -0.022702503949403763, -0.20537449419498444, 0.08132852613925934, 0.1940111517906189, -0.2913457155227661, 0.25346675515174866, 0.10989663004875183, 0.1243552640080452, 0.16341154277324677, 0.002786586293950677, -0.218936026096344, -0.04168974235653877, 0.6332963705062866, 0.2148439586162567, 0.7364737391471863, -0.3613794445991516, -0.1314031481742859, -0.15379022061824799, -0.2513435184955597, -0.19664180278778076, 0.1129676103591919, 0.238783061504364, 0.13717573881149292, 0.04901399835944176, -0.3703009784221649, -0.2862708866596222, -0.06530825048685074, -0.34114477038383484, -0.33067503571510315, -0.09371624141931534, -0.2900279760360718, -0.03160640597343445, -0.13005580008029938, 0.12008418142795563, 0.3364623785018921, -0.23995843529701233, -0.11529645323753357, -0.001725542824715376, -0.05928972363471985, -0.2366521656513214, 0.13610512018203735, 0.4087024927139282, 0.17540761828422546, 0.03623519837856293, -0.01311575248837471, -0.059569843113422394, 0.040267206728458405, -0.03875330835580826, 0.29884737730026245, 0.2497692108154297, 0.03774105757474899, -0.1384209394454956, 0.06603335589170456, -0.4769483208656311, -0.17218263447284698, -0.07733770459890366, 0.23422320187091827, 0.33423736691474915, 0.35849592089653015, -0.43259188532829285, 0.08807212859392166, -0.23615996539592743, -0.08487342298030853, 0.21977627277374268, 0.14729201793670654, -0.08595283329486847, 0.024206943809986115, 0.299508273601532, -0.19171491265296936, 0.10585787892341614, -0.3109043836593628, -0.25986048579216003, 0.10408420860767365, -0.1636878103017807, -0.49903127551078796, -0.11203614622354507, 0.08261738717556, 0.10854631662368774, 0.20601049065589905, -0.03438815474510193, 0.26639387011528015, -0.04536806792020798, -0.168847918510437, -0.013652920722961426, 0.3037680685520172, -0.24228596687316895, 0.34730011224746704, 0.41346490383148193, -0.06893843412399292, 0.35824456810951233, -0.1836213320493698, -0.02620411105453968, -0.24620835483074188, 0.09895504266023636, -0.39089179039001465, -0.35408273339271545, -0.021475642919540405, 0.28361305594444275, -0.04936506599187851, -0.04698442667722702, -0.062240295112133026, -0.02102971263229847, 0.2734436094760895, 0.1431177705526352, 0.08968327939510345, 0.19298362731933594, -0.25589296221733093, -0.26807039976119995, -0.14921481907367706, 0.2652566432952881, -0.4051693379878998, 0.12074121087789536, -0.07166244089603424, -0.1707097738981247, 0.034582946449518204, 0.26904091238975525, -0.025559401139616966, 0.07862617075443268, -0.054487161338329315, 0.04424290359020233, 0.23575705289840698, -0.15327291190624237, -0.4792572557926178, 0.03814244270324707, 0.20312367379665375, -0.23000293970108032, 0.13472628593444824, 0.36061805486679077, 0.03991779685020447, -0.12868072092533112, 0.02247951738536358, 0.11230982840061188, -0.2853686213493347, -0.009752036072313786, -0.19487595558166504, -0.05216590687632561, -0.041756559163331985, -0.013487621210515499, 0.0986342653632164, -0.014847997575998306, 0.18699094653129578, 0.2567116916179657, -0.046419426798820496, 0.1567358523607254, 0.10907046496868134, 0.2829180657863617, 0.01833159103989601, 0.10944166034460068, 0.1491803526878357, -0.06949090212583542, -0.37042057514190674, 0.05755726248025894, 0.23330163955688477, -0.4675639569759369, 0.12170157581567764, -0.22710895538330078, -0.09578333795070648, 0.2583024501800537, 0.10645367205142975, -0.09619000554084778, 0.26468947529792786, 0.2918547987937927, 0.028193451464176178, -0.14701221883296967, -0.16089555621147156, 0.35872140526771545, -0.03182363882660866, -0.16558106243610382, -0.2992199957370758, -0.22618311643600464, 0.020314130932092667, -0.03979909047484398, -0.03639659658074379, 0.02862672135233879, -0.004153728950768709, 0.037557948380708694, 0.06004432588815689, 0.21209439635276794, 0.12229873239994049, -0.037170782685279846, 0.4107740521430969, 0.5117470026016235, -0.013199582695960999, 0.09010490030050278, 0.4509545564651489, -0.2087702453136444, 0.15640951693058014, -0.10916128754615784, -0.32702377438545227, -0.09120059758424759, -0.012409956194460392, 0.06614373624324799, 0.15369649231433868, -0.18884123861789703, 0.06000193953514099, 0.06649642437696457, 0.1303439885377884, -0.3392874002456665, -0.05223752185702324, -0.013714921660721302, 0.302638441324234, 0.47840258479118347, -0.03698395937681198, 0.5226114392280579, 0.6085793375968933, -0.13788890838623047, 0.10055083781480789, -0.1595684438943863, -0.40404170751571655, -0.6192160844802856, 0.1736251264810562, 0.21230752766132355, 0.34883198142051697, 0.2126462161540985, 0.4494119882583618, -0.18786366283893585, 0.10206864774227142, -0.1718873679637909, 0.08028446137905121, 0.10775094479322433, -0.09276201575994492, -0.12388534098863602, 0.144579216837883, -0.06809259951114655, -0.29348254203796387, 0.12037789821624756, -0.1200297400355339, 0.08131507784128189, 0.04170851781964302, 0.2108370065689087, -0.25854530930519104, -0.13467848300933838, 0.27054721117019653, 0.2603501081466675, -0.05785972625017166, -0.4122338593006134, 0.03220883384346962, -0.12055656313896179, -0.0463717095553875, -0.13747581839561462, -0.1311439424753189, 0.49876394867897034, 0.15722814202308655, 0.17965619266033173, -0.0566384494304657, -0.3317055404186249, -0.12759074568748474, 0.2838551104068756, -0.034603945910930634, -0.1658676117658615, 0.3873916566371918, -0.029821744188666344, 0.1586914360523224, -0.3159695267677307, -0.19541162252426147, 0.09167874604463577, 0.05754673480987549, 0.13046519458293915, -0.16177798807621002, 0.09315986931324005, -0.2872444689273834, 0.14958131313323975, -0.3104250133037567, -0.17050427198410034, -0.21472090482711792, -0.013590285554528236, 0.011959673836827278, -0.07003216445446014, 0.1538921445608139, -0.05249125510454178, -0.07712027430534363, -0.033445172011852264, 0.14509464800357819, 0.013714871369302273, 0.11952641606330872, 0.08877250552177429, -0.20027054846286774, 0.029028648510575294, -0.2545992434024811, 0.19502891600131989, -0.5438519716262817, -0.5667839646339417, 0.14670079946517944, -0.10147856175899506, -0.05088013410568237, 0.18830418586730957, 0.1054091677069664, 0.07550633698701859, 0.1583506017923355, -0.5914525985717773, -0.0972985252737999, -0.1930381804704666, 0.1827489137649536, 0.07754578441381454, 0.22999562323093414, 0.39725977182388306, -0.01971149817109108, -0.21362102031707764, -0.08459050953388214, -0.2758578956127167, -0.30748987197875977, 0.01609627529978752, 0.2314085215330124, -0.3249143064022064, 0.041104886680841446, 0.1417553871870041, 0.460152268409729, 0.22698275744915009, 0.046005237847566605, 0.14110398292541504, 0.21274149417877197, 0.5951875448226929, -0.35851460695266724, 0.11300373822450638, 0.24625033140182495, -0.05981072783470154, -0.03933890163898468, 0.41810861229896545, 0.23704136908054352, -0.21067221462726593, 0.15554578602313995, 0.08363891392946243, -0.14786702394485474, 0.04123740270733833, 0.15532326698303223, -0.039337120950222015, -0.022248512133955956, 0.2962022125720978, -0.14082972705364227, -0.13511548936367035, -0.2193412035703659, -0.07283918559551239, -0.2200472354888916, -0.04536500200629234, 0.10370982438325882, -0.2835749685764313, 0.12541505694389343, -0.1651298850774765, 0.00938184093683958, -0.025148898363113403, 0.00733922841027379, -0.1102885976433754, -0.09451384097337723, 0.21272584795951843, 0.08572764694690704, 0.38151904940605164, -0.1648523062467575, 0.025754312053322792, -0.22003132104873657, -0.1632264256477356, -0.03521673008799553, 0.1895800679922104, -0.18975690007209778, 0.2466326206922531, 0.14012114703655243, 0.04588533565402031, 0.15543723106384277, -0.030403105542063713, 0.12765531241893768, 0.3607100248336792, -0.1845378577709198, -0.09414996951818466, -0.005566410720348358, -0.26286551356315613, 0.08824993669986725, -0.170728862285614, -0.13062649965286255, -0.2276826649904251, 0.04884537681937218, -0.04810862988233566, -0.46400970220565796, -0.08662570267915726, 0.05103468522429466, 0.05586923658847809, 0.12259925901889801, 0.14076924324035645, 0.12474124133586884, 0.041558317840099335, 0.20974157750606537, 0.03361114114522934, 0.37269023060798645, -0.09730876982212067, 0.24006274342536926, 0.2167057991027832, 0.05921517312526703, 0.006572136655449867, 0.34633150696754456, -0.10107499361038208, -0.2606765925884247, -0.1205529049038887, -0.004109441302716732, -0.1810602992773056, 0.1949300765991211, -0.145100936293602, 0.09555434435606003, -0.21331773698329926, -0.28644225001335144, 0.30084481835365295, 0.17308275401592255, -0.27221789956092834, 0.19999176263809204, -0.07415524870157242, 0.011105097830295563, 0.07523597776889801, 0.11053526401519775, 0.8210766911506653, -0.10490377992391586, 0.4101971983909607, -0.056808486580848694, -0.024569105356931686, 0.2683716416358948, -0.378397136926651, -0.03168774023652077, -0.08819283545017242, -0.3394925594329834, -0.020231977105140686, -0.03325194865465164, -0.1742268204689026, -0.025272902101278305, 0.0880463644862175, 0.11006450653076172, 0.06909429281949997, 0.13862240314483643, 0.14515717327594757, 0.20275673270225525, -0.07933633774518967, -0.11526127904653549, 0.049330342561006546, 0.3733749985694885, 0.028373094275593758, -0.23137781023979187, -0.07022261619567871, 0.29492679238319397, 0.1575106978416443, 0.051275379955768585, -0.10727067291736603, -0.15156416594982147, 0.009913024492561817, 0.30660566687583923, -0.1719440519809723, -0.1266108602285385, -0.5170778632164001, 0.08294817060232162, 0.3538132905960083, 0.17117275297641754, 0.0073080225847661495, 0.22136300802230835, 0.06797397136688232, 0.12048139423131943, 0.11075693368911743, -0.12826400995254517, 0.2456904947757721, -0.10492661595344543, 0.0744299441576004, -0.01633230596780777, -0.09171658009290695, -0.20413009822368622, -0.16660691797733307, 0.37741705775260925, 0.029211295768618584, -0.08508127927780151, -0.07006732374429703, 0.0434323251247406, -0.08773259818553925, 0.06469405442476273, 0.26675891876220703, 0.3747144341468811, 0.0948665589094162, 0.49061456322669983, -0.09890985488891602, -0.3613482117652893, -0.2741735577583313, 0.21561653912067413, 0.3719351887702942, -0.1036348044872284, 0.15882551670074463, -0.31925374269485474, -0.2637401223182678, -0.19440844655036926, 0.023211557418107986, 0.012040539644658566, 0.07632721960544586, 0.261421799659729, -0.22749564051628113, -0.20331868529319763, -0.18846185505390167, -0.25365152955055237, 0.08562472462654114, 0.020518967881798744, -0.2868632376194, -0.2088644802570343, -0.3294799327850342, 0.04711537808179855, -0.08657859265804291, 0.27041420340538025, 0.11574944853782654, -0.49181294441223145, 0.02899252623319626, 0.4363613426685333, -0.43561482429504395, -0.03300434350967407, 0.06706336885690689, 0.2527409791946411, 0.03412625938653946, -0.2120470553636551, 0.09769237041473389, -0.1699279546737671, 0.14587463438510895, -0.07770809531211853, -0.2656807601451874, -0.4547838866710663, 0.10162223130464554, 0.050408706068992615, 0.12292449176311493, -0.049448806792497635, -0.12975002825260162, -0.16032084822654724, 0.0002686789957806468, -0.1851365864276886, 0.2308768481016159, 0.2722444534301758, 0.1471392959356308, -0.18705028295516968, 0.15976177155971527, -0.08362280577421188, 0.1858585625886917, 0.1887930929660797, 0.11302441358566284, 0.23396778106689453, -0.12587213516235352, 0.19269295036792755, -0.07700561732053757, -0.23196028172969818, 0.031877726316452026, 0.25404995679855347, -0.06490346789360046, -0.1768486052751541, 0.12964820861816406, -0.18950968980789185, -0.015068462118506432, 0.34876927733421326, -0.03933139145374298, 0.22887033224105835, -0.03229193389415741, -0.25580498576164246, -0.046283796429634094, 0.33477336168289185, 0.0912390798330307, -0.050438541918992996, 0.09651951491832733, 0.23079979419708252, 0.052714720368385315, 0.24956655502319336, 0.2601078748703003, 0.015530082397162914, 0.23448783159255981, 0.15401962399482727, 0.4310411214828491, -0.3321046829223633, -0.033592455089092255, -0.05323706194758415, 0.10468993335962296, -0.0070605226792395115, 0.37549424171447754, 0.5283238291740417, 0.05245240032672882, 0.502163827419281, 0.25163471698760986, 0.3440803289413452, 0.3178846538066864, -0.24672672152519226, -0.0097734946757555, -0.2108060121536255, 0.2173793464899063, 0.3336772620677948, -0.166143536567688, 0.12729525566101074, 0.07155638188123703, -0.06963927298784256, 0.15569768846035004, -0.24618035554885864, -0.2320854514837265, 0.02253052406013012, -0.195156991481781, -0.1446705013513565, 0.19863568246364594, -0.002120533026754856, 0.06692046672105789, 0.30493685603141785, -0.15310345590114594, -0.31803858280181885, 0.34237998723983765, -0.15500296652317047, -0.09802283346652985, -0.3059692680835724, 0.3456639349460602, -0.028756165876984596, -0.21327154338359833, -0.026429088786244392, 0.33449235558509827, -0.14719896018505096, 0.1977217197418213, -0.015924477949738503, 0.17870324850082397, 0.12465370446443558, -0.03501040115952492, 0.08425701409578323, 0.26483237743377686, 0.16809366643428802, -0.3702258765697479, -0.32452982664108276, 0.09846081584692001, -0.07216154783964157, -0.06581808626651764, -0.028292665258049965, 0.28101402521133423, -0.14506973326206207, 0.19099965691566467, 0.036111656576395035, 0.07464228570461273, -0.006840749178081751, -0.09066959470510483, 0.023033682256937027, -0.13653209805488586, 0.023492826148867607, 0.16720694303512573, -0.5369561910629272, -0.19244186580181122, 0.46045830845832825, -0.281751811504364, 0.18116940557956696, -0.19347016513347626, 0.15678448975086212, -0.12289203703403473, 0.3877987265586853, 0.32318589091300964, 0.11716080456972122, 0.00966793205589056, -0.016856804490089417, -0.21007266640663147, 0.15057651698589325, -0.15255805850028992, 0.23570576310157776, -0.23631207644939423, 0.6189528703689575, -0.08298952132463455, 0.13771508634090424, 0.048985663801431656, -0.07464417070150375, -0.026097387075424194, -0.2068229764699936, -0.18484359979629517, -0.06932852417230606, 0.15485067665576935, 0.11449705064296722, 0.0789928138256073, -0.30426523089408875, 0.3449769914150238, -0.0702199786901474, 0.1855618804693222, -0.18413446843624115, 0.00787145085632801, 0.0769135132431984, 0.06184280291199684, 0.12790507078170776, 0.01290170568972826, -0.00472772354260087, -0.10051902383565903, -0.031026428565382957, -0.25752320885658264, -0.11632788926362991, 0.030725881457328796, -0.03235334903001785, 0.20119808614253998, -0.05519869923591614, -0.33697715401649475, 0.0544012151658535, 0.3542932868003845, 0.25542929768562317, -0.08546127378940582, 0.0860777497291565, 0.11463622003793716, -0.17093926668167114, -0.32261472940444946, 0.3248215913772583, 0.20720647275447845, 0.05041360482573509, -0.05845293775200844, -0.08268438279628754, -0.05747077241539955, -0.3227720558643341, 0.2198040932416916, 0.058231595903635025, -0.36005762219429016, -0.15508833527565002, 0.07148982584476471, 0.5010796189308167, -0.3292316794395447, -0.15831556916236877, 0.13155990839004517, 0.35914888978004456, -0.31230971217155457, -0.29438647627830505, 0.2606883645057678, -0.2558932304382324, 0.08577688783407211, -0.12555581331253052, 0.49628984928131104, 0.000974999857135117, -0.12853078544139862, 0.029098091647028923, -0.1688874363899231 ]
https://github.com/huggingface/datasets/issues/1973
Question: what gets stored in the datasets cache and why is it so huge?
Thanks @ioana-blue for pointing out this problem (and thanks also @justin-yan). You are right that current implementation of the datasets caching files take too much memory. We are definitely changing this and optimizing the defaults, so that the file sizes are considerably reduced. I will come back to you as soon as this is fixed.
I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you!
55
Question: what gets stored in the datasets cache and why is it so huge?
[ -0.10808491706848145, 0.00734725734218955, -0.31755632162094116, 0.47385093569755554, 0.09540518373250961, 0.25874581933021545, 0.15500664710998535, 0.13928952813148499, 0.0007540832739323378, -0.010578552260994911, -0.0798853263258934, -0.12084835767745972, 0.07051625847816467, -0.04989858344197273, 0.09517747163772583, 0.1790550947189331, 0.11332304030656815, -0.04443009942770004, -0.26745596528053284, -0.1903010457754135, -0.11080199480056763, 0.062084391713142395, 0.1009640097618103, -0.2954944968223572, -0.4739367961883545, -0.18909379839897156, -0.10004761070013046, 0.17703813314437866, -0.1809816062450409, -0.2629290223121643, -0.2118981033563614, 0.06722239404916763, 0.021087681874632835, 0.2776344120502472, -0.00010297751578036696, -0.19333630800247192, 0.2443872094154358, 0.11073097586631775, -0.5772975087165833, 0.49662405252456665, -0.48889127373695374, -0.02257564663887024, -0.15339292585849762, -0.17672480642795563, 0.4793413281440735, 0.07488331943750381, 0.018487587571144104, -0.5027731657028198, 0.003981047309935093, 0.08214680105447769, 0.38029783964157104, -0.04523083567619324, -0.3524976074695587, -0.006345926783978939, 0.2572628855705261, 0.007860925979912281, -0.022702503949403763, -0.20537449419498444, 0.08132852613925934, 0.1940111517906189, -0.2913457155227661, 0.25346675515174866, 0.10989663004875183, 0.1243552640080452, 0.16341154277324677, 0.002786586293950677, -0.218936026096344, -0.04168974235653877, 0.6332963705062866, 0.2148439586162567, 0.7364737391471863, -0.3613794445991516, -0.1314031481742859, -0.15379022061824799, -0.2513435184955597, -0.19664180278778076, 0.1129676103591919, 0.238783061504364, 0.13717573881149292, 0.04901399835944176, -0.3703009784221649, -0.2862708866596222, -0.06530825048685074, -0.34114477038383484, -0.33067503571510315, -0.09371624141931534, -0.2900279760360718, -0.03160640597343445, -0.13005580008029938, 0.12008418142795563, 0.3364623785018921, -0.23995843529701233, -0.11529645323753357, -0.001725542824715376, -0.05928972363471985, -0.2366521656513214, 0.13610512018203735, 0.4087024927139282, 0.17540761828422546, 0.03623519837856293, -0.01311575248837471, -0.059569843113422394, 0.040267206728458405, -0.03875330835580826, 0.29884737730026245, 0.2497692108154297, 0.03774105757474899, -0.1384209394454956, 0.06603335589170456, -0.4769483208656311, -0.17218263447284698, -0.07733770459890366, 0.23422320187091827, 0.33423736691474915, 0.35849592089653015, -0.43259188532829285, 0.08807212859392166, -0.23615996539592743, -0.08487342298030853, 0.21977627277374268, 0.14729201793670654, -0.08595283329486847, 0.024206943809986115, 0.299508273601532, -0.19171491265296936, 0.10585787892341614, -0.3109043836593628, -0.25986048579216003, 0.10408420860767365, -0.1636878103017807, -0.49903127551078796, -0.11203614622354507, 0.08261738717556, 0.10854631662368774, 0.20601049065589905, -0.03438815474510193, 0.26639387011528015, -0.04536806792020798, -0.168847918510437, -0.013652920722961426, 0.3037680685520172, -0.24228596687316895, 0.34730011224746704, 0.41346490383148193, -0.06893843412399292, 0.35824456810951233, -0.1836213320493698, -0.02620411105453968, -0.24620835483074188, 0.09895504266023636, -0.39089179039001465, -0.35408273339271545, -0.021475642919540405, 0.28361305594444275, -0.04936506599187851, -0.04698442667722702, -0.062240295112133026, -0.02102971263229847, 0.2734436094760895, 0.1431177705526352, 0.08968327939510345, 0.19298362731933594, -0.25589296221733093, -0.26807039976119995, -0.14921481907367706, 0.2652566432952881, -0.4051693379878998, 0.12074121087789536, -0.07166244089603424, -0.1707097738981247, 0.034582946449518204, 0.26904091238975525, -0.025559401139616966, 0.07862617075443268, -0.054487161338329315, 0.04424290359020233, 0.23575705289840698, -0.15327291190624237, -0.4792572557926178, 0.03814244270324707, 0.20312367379665375, -0.23000293970108032, 0.13472628593444824, 0.36061805486679077, 0.03991779685020447, -0.12868072092533112, 0.02247951738536358, 0.11230982840061188, -0.2853686213493347, -0.009752036072313786, -0.19487595558166504, -0.05216590687632561, -0.041756559163331985, -0.013487621210515499, 0.0986342653632164, -0.014847997575998306, 0.18699094653129578, 0.2567116916179657, -0.046419426798820496, 0.1567358523607254, 0.10907046496868134, 0.2829180657863617, 0.01833159103989601, 0.10944166034460068, 0.1491803526878357, -0.06949090212583542, -0.37042057514190674, 0.05755726248025894, 0.23330163955688477, -0.4675639569759369, 0.12170157581567764, -0.22710895538330078, -0.09578333795070648, 0.2583024501800537, 0.10645367205142975, -0.09619000554084778, 0.26468947529792786, 0.2918547987937927, 0.028193451464176178, -0.14701221883296967, -0.16089555621147156, 0.35872140526771545, -0.03182363882660866, -0.16558106243610382, -0.2992199957370758, -0.22618311643600464, 0.020314130932092667, -0.03979909047484398, -0.03639659658074379, 0.02862672135233879, -0.004153728950768709, 0.037557948380708694, 0.06004432588815689, 0.21209439635276794, 0.12229873239994049, -0.037170782685279846, 0.4107740521430969, 0.5117470026016235, -0.013199582695960999, 0.09010490030050278, 0.4509545564651489, -0.2087702453136444, 0.15640951693058014, -0.10916128754615784, -0.32702377438545227, -0.09120059758424759, -0.012409956194460392, 0.06614373624324799, 0.15369649231433868, -0.18884123861789703, 0.06000193953514099, 0.06649642437696457, 0.1303439885377884, -0.3392874002456665, -0.05223752185702324, -0.013714921660721302, 0.302638441324234, 0.47840258479118347, -0.03698395937681198, 0.5226114392280579, 0.6085793375968933, -0.13788890838623047, 0.10055083781480789, -0.1595684438943863, -0.40404170751571655, -0.6192160844802856, 0.1736251264810562, 0.21230752766132355, 0.34883198142051697, 0.2126462161540985, 0.4494119882583618, -0.18786366283893585, 0.10206864774227142, -0.1718873679637909, 0.08028446137905121, 0.10775094479322433, -0.09276201575994492, -0.12388534098863602, 0.144579216837883, -0.06809259951114655, -0.29348254203796387, 0.12037789821624756, -0.1200297400355339, 0.08131507784128189, 0.04170851781964302, 0.2108370065689087, -0.25854530930519104, -0.13467848300933838, 0.27054721117019653, 0.2603501081466675, -0.05785972625017166, -0.4122338593006134, 0.03220883384346962, -0.12055656313896179, -0.0463717095553875, -0.13747581839561462, -0.1311439424753189, 0.49876394867897034, 0.15722814202308655, 0.17965619266033173, -0.0566384494304657, -0.3317055404186249, -0.12759074568748474, 0.2838551104068756, -0.034603945910930634, -0.1658676117658615, 0.3873916566371918, -0.029821744188666344, 0.1586914360523224, -0.3159695267677307, -0.19541162252426147, 0.09167874604463577, 0.05754673480987549, 0.13046519458293915, -0.16177798807621002, 0.09315986931324005, -0.2872444689273834, 0.14958131313323975, -0.3104250133037567, -0.17050427198410034, -0.21472090482711792, -0.013590285554528236, 0.011959673836827278, -0.07003216445446014, 0.1538921445608139, -0.05249125510454178, -0.07712027430534363, -0.033445172011852264, 0.14509464800357819, 0.013714871369302273, 0.11952641606330872, 0.08877250552177429, -0.20027054846286774, 0.029028648510575294, -0.2545992434024811, 0.19502891600131989, -0.5438519716262817, -0.5667839646339417, 0.14670079946517944, -0.10147856175899506, -0.05088013410568237, 0.18830418586730957, 0.1054091677069664, 0.07550633698701859, 0.1583506017923355, -0.5914525985717773, -0.0972985252737999, -0.1930381804704666, 0.1827489137649536, 0.07754578441381454, 0.22999562323093414, 0.39725977182388306, -0.01971149817109108, -0.21362102031707764, -0.08459050953388214, -0.2758578956127167, -0.30748987197875977, 0.01609627529978752, 0.2314085215330124, -0.3249143064022064, 0.041104886680841446, 0.1417553871870041, 0.460152268409729, 0.22698275744915009, 0.046005237847566605, 0.14110398292541504, 0.21274149417877197, 0.5951875448226929, -0.35851460695266724, 0.11300373822450638, 0.24625033140182495, -0.05981072783470154, -0.03933890163898468, 0.41810861229896545, 0.23704136908054352, -0.21067221462726593, 0.15554578602313995, 0.08363891392946243, -0.14786702394485474, 0.04123740270733833, 0.15532326698303223, -0.039337120950222015, -0.022248512133955956, 0.2962022125720978, -0.14082972705364227, -0.13511548936367035, -0.2193412035703659, -0.07283918559551239, -0.2200472354888916, -0.04536500200629234, 0.10370982438325882, -0.2835749685764313, 0.12541505694389343, -0.1651298850774765, 0.00938184093683958, -0.025148898363113403, 0.00733922841027379, -0.1102885976433754, -0.09451384097337723, 0.21272584795951843, 0.08572764694690704, 0.38151904940605164, -0.1648523062467575, 0.025754312053322792, -0.22003132104873657, -0.1632264256477356, -0.03521673008799553, 0.1895800679922104, -0.18975690007209778, 0.2466326206922531, 0.14012114703655243, 0.04588533565402031, 0.15543723106384277, -0.030403105542063713, 0.12765531241893768, 0.3607100248336792, -0.1845378577709198, -0.09414996951818466, -0.005566410720348358, -0.26286551356315613, 0.08824993669986725, -0.170728862285614, -0.13062649965286255, -0.2276826649904251, 0.04884537681937218, -0.04810862988233566, -0.46400970220565796, -0.08662570267915726, 0.05103468522429466, 0.05586923658847809, 0.12259925901889801, 0.14076924324035645, 0.12474124133586884, 0.041558317840099335, 0.20974157750606537, 0.03361114114522934, 0.37269023060798645, -0.09730876982212067, 0.24006274342536926, 0.2167057991027832, 0.05921517312526703, 0.006572136655449867, 0.34633150696754456, -0.10107499361038208, -0.2606765925884247, -0.1205529049038887, -0.004109441302716732, -0.1810602992773056, 0.1949300765991211, -0.145100936293602, 0.09555434435606003, -0.21331773698329926, -0.28644225001335144, 0.30084481835365295, 0.17308275401592255, -0.27221789956092834, 0.19999176263809204, -0.07415524870157242, 0.011105097830295563, 0.07523597776889801, 0.11053526401519775, 0.8210766911506653, -0.10490377992391586, 0.4101971983909607, -0.056808486580848694, -0.024569105356931686, 0.2683716416358948, -0.378397136926651, -0.03168774023652077, -0.08819283545017242, -0.3394925594329834, -0.020231977105140686, -0.03325194865465164, -0.1742268204689026, -0.025272902101278305, 0.0880463644862175, 0.11006450653076172, 0.06909429281949997, 0.13862240314483643, 0.14515717327594757, 0.20275673270225525, -0.07933633774518967, -0.11526127904653549, 0.049330342561006546, 0.3733749985694885, 0.028373094275593758, -0.23137781023979187, -0.07022261619567871, 0.29492679238319397, 0.1575106978416443, 0.051275379955768585, -0.10727067291736603, -0.15156416594982147, 0.009913024492561817, 0.30660566687583923, -0.1719440519809723, -0.1266108602285385, -0.5170778632164001, 0.08294817060232162, 0.3538132905960083, 0.17117275297641754, 0.0073080225847661495, 0.22136300802230835, 0.06797397136688232, 0.12048139423131943, 0.11075693368911743, -0.12826400995254517, 0.2456904947757721, -0.10492661595344543, 0.0744299441576004, -0.01633230596780777, -0.09171658009290695, -0.20413009822368622, -0.16660691797733307, 0.37741705775260925, 0.029211295768618584, -0.08508127927780151, -0.07006732374429703, 0.0434323251247406, -0.08773259818553925, 0.06469405442476273, 0.26675891876220703, 0.3747144341468811, 0.0948665589094162, 0.49061456322669983, -0.09890985488891602, -0.3613482117652893, -0.2741735577583313, 0.21561653912067413, 0.3719351887702942, -0.1036348044872284, 0.15882551670074463, -0.31925374269485474, -0.2637401223182678, -0.19440844655036926, 0.023211557418107986, 0.012040539644658566, 0.07632721960544586, 0.261421799659729, -0.22749564051628113, -0.20331868529319763, -0.18846185505390167, -0.25365152955055237, 0.08562472462654114, 0.020518967881798744, -0.2868632376194, -0.2088644802570343, -0.3294799327850342, 0.04711537808179855, -0.08657859265804291, 0.27041420340538025, 0.11574944853782654, -0.49181294441223145, 0.02899252623319626, 0.4363613426685333, -0.43561482429504395, -0.03300434350967407, 0.06706336885690689, 0.2527409791946411, 0.03412625938653946, -0.2120470553636551, 0.09769237041473389, -0.1699279546737671, 0.14587463438510895, -0.07770809531211853, -0.2656807601451874, -0.4547838866710663, 0.10162223130464554, 0.050408706068992615, 0.12292449176311493, -0.049448806792497635, -0.12975002825260162, -0.16032084822654724, 0.0002686789957806468, -0.1851365864276886, 0.2308768481016159, 0.2722444534301758, 0.1471392959356308, -0.18705028295516968, 0.15976177155971527, -0.08362280577421188, 0.1858585625886917, 0.1887930929660797, 0.11302441358566284, 0.23396778106689453, -0.12587213516235352, 0.19269295036792755, -0.07700561732053757, -0.23196028172969818, 0.031877726316452026, 0.25404995679855347, -0.06490346789360046, -0.1768486052751541, 0.12964820861816406, -0.18950968980789185, -0.015068462118506432, 0.34876927733421326, -0.03933139145374298, 0.22887033224105835, -0.03229193389415741, -0.25580498576164246, -0.046283796429634094, 0.33477336168289185, 0.0912390798330307, -0.050438541918992996, 0.09651951491832733, 0.23079979419708252, 0.052714720368385315, 0.24956655502319336, 0.2601078748703003, 0.015530082397162914, 0.23448783159255981, 0.15401962399482727, 0.4310411214828491, -0.3321046829223633, -0.033592455089092255, -0.05323706194758415, 0.10468993335962296, -0.0070605226792395115, 0.37549424171447754, 0.5283238291740417, 0.05245240032672882, 0.502163827419281, 0.25163471698760986, 0.3440803289413452, 0.3178846538066864, -0.24672672152519226, -0.0097734946757555, -0.2108060121536255, 0.2173793464899063, 0.3336772620677948, -0.166143536567688, 0.12729525566101074, 0.07155638188123703, -0.06963927298784256, 0.15569768846035004, -0.24618035554885864, -0.2320854514837265, 0.02253052406013012, -0.195156991481781, -0.1446705013513565, 0.19863568246364594, -0.002120533026754856, 0.06692046672105789, 0.30493685603141785, -0.15310345590114594, -0.31803858280181885, 0.34237998723983765, -0.15500296652317047, -0.09802283346652985, -0.3059692680835724, 0.3456639349460602, -0.028756165876984596, -0.21327154338359833, -0.026429088786244392, 0.33449235558509827, -0.14719896018505096, 0.1977217197418213, -0.015924477949738503, 0.17870324850082397, 0.12465370446443558, -0.03501040115952492, 0.08425701409578323, 0.26483237743377686, 0.16809366643428802, -0.3702258765697479, -0.32452982664108276, 0.09846081584692001, -0.07216154783964157, -0.06581808626651764, -0.028292665258049965, 0.28101402521133423, -0.14506973326206207, 0.19099965691566467, 0.036111656576395035, 0.07464228570461273, -0.006840749178081751, -0.09066959470510483, 0.023033682256937027, -0.13653209805488586, 0.023492826148867607, 0.16720694303512573, -0.5369561910629272, -0.19244186580181122, 0.46045830845832825, -0.281751811504364, 0.18116940557956696, -0.19347016513347626, 0.15678448975086212, -0.12289203703403473, 0.3877987265586853, 0.32318589091300964, 0.11716080456972122, 0.00966793205589056, -0.016856804490089417, -0.21007266640663147, 0.15057651698589325, -0.15255805850028992, 0.23570576310157776, -0.23631207644939423, 0.6189528703689575, -0.08298952132463455, 0.13771508634090424, 0.048985663801431656, -0.07464417070150375, -0.026097387075424194, -0.2068229764699936, -0.18484359979629517, -0.06932852417230606, 0.15485067665576935, 0.11449705064296722, 0.0789928138256073, -0.30426523089408875, 0.3449769914150238, -0.0702199786901474, 0.1855618804693222, -0.18413446843624115, 0.00787145085632801, 0.0769135132431984, 0.06184280291199684, 0.12790507078170776, 0.01290170568972826, -0.00472772354260087, -0.10051902383565903, -0.031026428565382957, -0.25752320885658264, -0.11632788926362991, 0.030725881457328796, -0.03235334903001785, 0.20119808614253998, -0.05519869923591614, -0.33697715401649475, 0.0544012151658535, 0.3542932868003845, 0.25542929768562317, -0.08546127378940582, 0.0860777497291565, 0.11463622003793716, -0.17093926668167114, -0.32261472940444946, 0.3248215913772583, 0.20720647275447845, 0.05041360482573509, -0.05845293775200844, -0.08268438279628754, -0.05747077241539955, -0.3227720558643341, 0.2198040932416916, 0.058231595903635025, -0.36005762219429016, -0.15508833527565002, 0.07148982584476471, 0.5010796189308167, -0.3292316794395447, -0.15831556916236877, 0.13155990839004517, 0.35914888978004456, -0.31230971217155457, -0.29438647627830505, 0.2606883645057678, -0.2558932304382324, 0.08577688783407211, -0.12555581331253052, 0.49628984928131104, 0.000974999857135117, -0.12853078544139862, 0.029098091647028923, -0.1688874363899231 ]
https://github.com/huggingface/datasets/issues/1973
Question: what gets stored in the datasets cache and why is it so huge?
Thank you! Also I noticed that the files don't seem to be cleaned after the jobs finish. Last night I had only 3 jobs running, but the cache was still at 180GB.
I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you!
32
Question: what gets stored in the datasets cache and why is it so huge?
[ -0.10808491706848145, 0.00734725734218955, -0.31755632162094116, 0.47385093569755554, 0.09540518373250961, 0.25874581933021545, 0.15500664710998535, 0.13928952813148499, 0.0007540832739323378, -0.010578552260994911, -0.0798853263258934, -0.12084835767745972, 0.07051625847816467, -0.04989858344197273, 0.09517747163772583, 0.1790550947189331, 0.11332304030656815, -0.04443009942770004, -0.26745596528053284, -0.1903010457754135, -0.11080199480056763, 0.062084391713142395, 0.1009640097618103, -0.2954944968223572, -0.4739367961883545, -0.18909379839897156, -0.10004761070013046, 0.17703813314437866, -0.1809816062450409, -0.2629290223121643, -0.2118981033563614, 0.06722239404916763, 0.021087681874632835, 0.2776344120502472, -0.00010297751578036696, -0.19333630800247192, 0.2443872094154358, 0.11073097586631775, -0.5772975087165833, 0.49662405252456665, -0.48889127373695374, -0.02257564663887024, -0.15339292585849762, -0.17672480642795563, 0.4793413281440735, 0.07488331943750381, 0.018487587571144104, -0.5027731657028198, 0.003981047309935093, 0.08214680105447769, 0.38029783964157104, -0.04523083567619324, -0.3524976074695587, -0.006345926783978939, 0.2572628855705261, 0.007860925979912281, -0.022702503949403763, -0.20537449419498444, 0.08132852613925934, 0.1940111517906189, -0.2913457155227661, 0.25346675515174866, 0.10989663004875183, 0.1243552640080452, 0.16341154277324677, 0.002786586293950677, -0.218936026096344, -0.04168974235653877, 0.6332963705062866, 0.2148439586162567, 0.7364737391471863, -0.3613794445991516, -0.1314031481742859, -0.15379022061824799, -0.2513435184955597, -0.19664180278778076, 0.1129676103591919, 0.238783061504364, 0.13717573881149292, 0.04901399835944176, -0.3703009784221649, -0.2862708866596222, -0.06530825048685074, -0.34114477038383484, -0.33067503571510315, -0.09371624141931534, -0.2900279760360718, -0.03160640597343445, -0.13005580008029938, 0.12008418142795563, 0.3364623785018921, -0.23995843529701233, -0.11529645323753357, -0.001725542824715376, -0.05928972363471985, -0.2366521656513214, 0.13610512018203735, 0.4087024927139282, 0.17540761828422546, 0.03623519837856293, -0.01311575248837471, -0.059569843113422394, 0.040267206728458405, -0.03875330835580826, 0.29884737730026245, 0.2497692108154297, 0.03774105757474899, -0.1384209394454956, 0.06603335589170456, -0.4769483208656311, -0.17218263447284698, -0.07733770459890366, 0.23422320187091827, 0.33423736691474915, 0.35849592089653015, -0.43259188532829285, 0.08807212859392166, -0.23615996539592743, -0.08487342298030853, 0.21977627277374268, 0.14729201793670654, -0.08595283329486847, 0.024206943809986115, 0.299508273601532, -0.19171491265296936, 0.10585787892341614, -0.3109043836593628, -0.25986048579216003, 0.10408420860767365, -0.1636878103017807, -0.49903127551078796, -0.11203614622354507, 0.08261738717556, 0.10854631662368774, 0.20601049065589905, -0.03438815474510193, 0.26639387011528015, -0.04536806792020798, -0.168847918510437, -0.013652920722961426, 0.3037680685520172, -0.24228596687316895, 0.34730011224746704, 0.41346490383148193, -0.06893843412399292, 0.35824456810951233, -0.1836213320493698, -0.02620411105453968, -0.24620835483074188, 0.09895504266023636, -0.39089179039001465, -0.35408273339271545, -0.021475642919540405, 0.28361305594444275, -0.04936506599187851, -0.04698442667722702, -0.062240295112133026, -0.02102971263229847, 0.2734436094760895, 0.1431177705526352, 0.08968327939510345, 0.19298362731933594, -0.25589296221733093, -0.26807039976119995, -0.14921481907367706, 0.2652566432952881, -0.4051693379878998, 0.12074121087789536, -0.07166244089603424, -0.1707097738981247, 0.034582946449518204, 0.26904091238975525, -0.025559401139616966, 0.07862617075443268, -0.054487161338329315, 0.04424290359020233, 0.23575705289840698, -0.15327291190624237, -0.4792572557926178, 0.03814244270324707, 0.20312367379665375, -0.23000293970108032, 0.13472628593444824, 0.36061805486679077, 0.03991779685020447, -0.12868072092533112, 0.02247951738536358, 0.11230982840061188, -0.2853686213493347, -0.009752036072313786, -0.19487595558166504, -0.05216590687632561, -0.041756559163331985, -0.013487621210515499, 0.0986342653632164, -0.014847997575998306, 0.18699094653129578, 0.2567116916179657, -0.046419426798820496, 0.1567358523607254, 0.10907046496868134, 0.2829180657863617, 0.01833159103989601, 0.10944166034460068, 0.1491803526878357, -0.06949090212583542, -0.37042057514190674, 0.05755726248025894, 0.23330163955688477, -0.4675639569759369, 0.12170157581567764, -0.22710895538330078, -0.09578333795070648, 0.2583024501800537, 0.10645367205142975, -0.09619000554084778, 0.26468947529792786, 0.2918547987937927, 0.028193451464176178, -0.14701221883296967, -0.16089555621147156, 0.35872140526771545, -0.03182363882660866, -0.16558106243610382, -0.2992199957370758, -0.22618311643600464, 0.020314130932092667, -0.03979909047484398, -0.03639659658074379, 0.02862672135233879, -0.004153728950768709, 0.037557948380708694, 0.06004432588815689, 0.21209439635276794, 0.12229873239994049, -0.037170782685279846, 0.4107740521430969, 0.5117470026016235, -0.013199582695960999, 0.09010490030050278, 0.4509545564651489, -0.2087702453136444, 0.15640951693058014, -0.10916128754615784, -0.32702377438545227, -0.09120059758424759, -0.012409956194460392, 0.06614373624324799, 0.15369649231433868, -0.18884123861789703, 0.06000193953514099, 0.06649642437696457, 0.1303439885377884, -0.3392874002456665, -0.05223752185702324, -0.013714921660721302, 0.302638441324234, 0.47840258479118347, -0.03698395937681198, 0.5226114392280579, 0.6085793375968933, -0.13788890838623047, 0.10055083781480789, -0.1595684438943863, -0.40404170751571655, -0.6192160844802856, 0.1736251264810562, 0.21230752766132355, 0.34883198142051697, 0.2126462161540985, 0.4494119882583618, -0.18786366283893585, 0.10206864774227142, -0.1718873679637909, 0.08028446137905121, 0.10775094479322433, -0.09276201575994492, -0.12388534098863602, 0.144579216837883, -0.06809259951114655, -0.29348254203796387, 0.12037789821624756, -0.1200297400355339, 0.08131507784128189, 0.04170851781964302, 0.2108370065689087, -0.25854530930519104, -0.13467848300933838, 0.27054721117019653, 0.2603501081466675, -0.05785972625017166, -0.4122338593006134, 0.03220883384346962, -0.12055656313896179, -0.0463717095553875, -0.13747581839561462, -0.1311439424753189, 0.49876394867897034, 0.15722814202308655, 0.17965619266033173, -0.0566384494304657, -0.3317055404186249, -0.12759074568748474, 0.2838551104068756, -0.034603945910930634, -0.1658676117658615, 0.3873916566371918, -0.029821744188666344, 0.1586914360523224, -0.3159695267677307, -0.19541162252426147, 0.09167874604463577, 0.05754673480987549, 0.13046519458293915, -0.16177798807621002, 0.09315986931324005, -0.2872444689273834, 0.14958131313323975, -0.3104250133037567, -0.17050427198410034, -0.21472090482711792, -0.013590285554528236, 0.011959673836827278, -0.07003216445446014, 0.1538921445608139, -0.05249125510454178, -0.07712027430534363, -0.033445172011852264, 0.14509464800357819, 0.013714871369302273, 0.11952641606330872, 0.08877250552177429, -0.20027054846286774, 0.029028648510575294, -0.2545992434024811, 0.19502891600131989, -0.5438519716262817, -0.5667839646339417, 0.14670079946517944, -0.10147856175899506, -0.05088013410568237, 0.18830418586730957, 0.1054091677069664, 0.07550633698701859, 0.1583506017923355, -0.5914525985717773, -0.0972985252737999, -0.1930381804704666, 0.1827489137649536, 0.07754578441381454, 0.22999562323093414, 0.39725977182388306, -0.01971149817109108, -0.21362102031707764, -0.08459050953388214, -0.2758578956127167, -0.30748987197875977, 0.01609627529978752, 0.2314085215330124, -0.3249143064022064, 0.041104886680841446, 0.1417553871870041, 0.460152268409729, 0.22698275744915009, 0.046005237847566605, 0.14110398292541504, 0.21274149417877197, 0.5951875448226929, -0.35851460695266724, 0.11300373822450638, 0.24625033140182495, -0.05981072783470154, -0.03933890163898468, 0.41810861229896545, 0.23704136908054352, -0.21067221462726593, 0.15554578602313995, 0.08363891392946243, -0.14786702394485474, 0.04123740270733833, 0.15532326698303223, -0.039337120950222015, -0.022248512133955956, 0.2962022125720978, -0.14082972705364227, -0.13511548936367035, -0.2193412035703659, -0.07283918559551239, -0.2200472354888916, -0.04536500200629234, 0.10370982438325882, -0.2835749685764313, 0.12541505694389343, -0.1651298850774765, 0.00938184093683958, -0.025148898363113403, 0.00733922841027379, -0.1102885976433754, -0.09451384097337723, 0.21272584795951843, 0.08572764694690704, 0.38151904940605164, -0.1648523062467575, 0.025754312053322792, -0.22003132104873657, -0.1632264256477356, -0.03521673008799553, 0.1895800679922104, -0.18975690007209778, 0.2466326206922531, 0.14012114703655243, 0.04588533565402031, 0.15543723106384277, -0.030403105542063713, 0.12765531241893768, 0.3607100248336792, -0.1845378577709198, -0.09414996951818466, -0.005566410720348358, -0.26286551356315613, 0.08824993669986725, -0.170728862285614, -0.13062649965286255, -0.2276826649904251, 0.04884537681937218, -0.04810862988233566, -0.46400970220565796, -0.08662570267915726, 0.05103468522429466, 0.05586923658847809, 0.12259925901889801, 0.14076924324035645, 0.12474124133586884, 0.041558317840099335, 0.20974157750606537, 0.03361114114522934, 0.37269023060798645, -0.09730876982212067, 0.24006274342536926, 0.2167057991027832, 0.05921517312526703, 0.006572136655449867, 0.34633150696754456, -0.10107499361038208, -0.2606765925884247, -0.1205529049038887, -0.004109441302716732, -0.1810602992773056, 0.1949300765991211, -0.145100936293602, 0.09555434435606003, -0.21331773698329926, -0.28644225001335144, 0.30084481835365295, 0.17308275401592255, -0.27221789956092834, 0.19999176263809204, -0.07415524870157242, 0.011105097830295563, 0.07523597776889801, 0.11053526401519775, 0.8210766911506653, -0.10490377992391586, 0.4101971983909607, -0.056808486580848694, -0.024569105356931686, 0.2683716416358948, -0.378397136926651, -0.03168774023652077, -0.08819283545017242, -0.3394925594329834, -0.020231977105140686, -0.03325194865465164, -0.1742268204689026, -0.025272902101278305, 0.0880463644862175, 0.11006450653076172, 0.06909429281949997, 0.13862240314483643, 0.14515717327594757, 0.20275673270225525, -0.07933633774518967, -0.11526127904653549, 0.049330342561006546, 0.3733749985694885, 0.028373094275593758, -0.23137781023979187, -0.07022261619567871, 0.29492679238319397, 0.1575106978416443, 0.051275379955768585, -0.10727067291736603, -0.15156416594982147, 0.009913024492561817, 0.30660566687583923, -0.1719440519809723, -0.1266108602285385, -0.5170778632164001, 0.08294817060232162, 0.3538132905960083, 0.17117275297641754, 0.0073080225847661495, 0.22136300802230835, 0.06797397136688232, 0.12048139423131943, 0.11075693368911743, -0.12826400995254517, 0.2456904947757721, -0.10492661595344543, 0.0744299441576004, -0.01633230596780777, -0.09171658009290695, -0.20413009822368622, -0.16660691797733307, 0.37741705775260925, 0.029211295768618584, -0.08508127927780151, -0.07006732374429703, 0.0434323251247406, -0.08773259818553925, 0.06469405442476273, 0.26675891876220703, 0.3747144341468811, 0.0948665589094162, 0.49061456322669983, -0.09890985488891602, -0.3613482117652893, -0.2741735577583313, 0.21561653912067413, 0.3719351887702942, -0.1036348044872284, 0.15882551670074463, -0.31925374269485474, -0.2637401223182678, -0.19440844655036926, 0.023211557418107986, 0.012040539644658566, 0.07632721960544586, 0.261421799659729, -0.22749564051628113, -0.20331868529319763, -0.18846185505390167, -0.25365152955055237, 0.08562472462654114, 0.020518967881798744, -0.2868632376194, -0.2088644802570343, -0.3294799327850342, 0.04711537808179855, -0.08657859265804291, 0.27041420340538025, 0.11574944853782654, -0.49181294441223145, 0.02899252623319626, 0.4363613426685333, -0.43561482429504395, -0.03300434350967407, 0.06706336885690689, 0.2527409791946411, 0.03412625938653946, -0.2120470553636551, 0.09769237041473389, -0.1699279546737671, 0.14587463438510895, -0.07770809531211853, -0.2656807601451874, -0.4547838866710663, 0.10162223130464554, 0.050408706068992615, 0.12292449176311493, -0.049448806792497635, -0.12975002825260162, -0.16032084822654724, 0.0002686789957806468, -0.1851365864276886, 0.2308768481016159, 0.2722444534301758, 0.1471392959356308, -0.18705028295516968, 0.15976177155971527, -0.08362280577421188, 0.1858585625886917, 0.1887930929660797, 0.11302441358566284, 0.23396778106689453, -0.12587213516235352, 0.19269295036792755, -0.07700561732053757, -0.23196028172969818, 0.031877726316452026, 0.25404995679855347, -0.06490346789360046, -0.1768486052751541, 0.12964820861816406, -0.18950968980789185, -0.015068462118506432, 0.34876927733421326, -0.03933139145374298, 0.22887033224105835, -0.03229193389415741, -0.25580498576164246, -0.046283796429634094, 0.33477336168289185, 0.0912390798330307, -0.050438541918992996, 0.09651951491832733, 0.23079979419708252, 0.052714720368385315, 0.24956655502319336, 0.2601078748703003, 0.015530082397162914, 0.23448783159255981, 0.15401962399482727, 0.4310411214828491, -0.3321046829223633, -0.033592455089092255, -0.05323706194758415, 0.10468993335962296, -0.0070605226792395115, 0.37549424171447754, 0.5283238291740417, 0.05245240032672882, 0.502163827419281, 0.25163471698760986, 0.3440803289413452, 0.3178846538066864, -0.24672672152519226, -0.0097734946757555, -0.2108060121536255, 0.2173793464899063, 0.3336772620677948, -0.166143536567688, 0.12729525566101074, 0.07155638188123703, -0.06963927298784256, 0.15569768846035004, -0.24618035554885864, -0.2320854514837265, 0.02253052406013012, -0.195156991481781, -0.1446705013513565, 0.19863568246364594, -0.002120533026754856, 0.06692046672105789, 0.30493685603141785, -0.15310345590114594, -0.31803858280181885, 0.34237998723983765, -0.15500296652317047, -0.09802283346652985, -0.3059692680835724, 0.3456639349460602, -0.028756165876984596, -0.21327154338359833, -0.026429088786244392, 0.33449235558509827, -0.14719896018505096, 0.1977217197418213, -0.015924477949738503, 0.17870324850082397, 0.12465370446443558, -0.03501040115952492, 0.08425701409578323, 0.26483237743377686, 0.16809366643428802, -0.3702258765697479, -0.32452982664108276, 0.09846081584692001, -0.07216154783964157, -0.06581808626651764, -0.028292665258049965, 0.28101402521133423, -0.14506973326206207, 0.19099965691566467, 0.036111656576395035, 0.07464228570461273, -0.006840749178081751, -0.09066959470510483, 0.023033682256937027, -0.13653209805488586, 0.023492826148867607, 0.16720694303512573, -0.5369561910629272, -0.19244186580181122, 0.46045830845832825, -0.281751811504364, 0.18116940557956696, -0.19347016513347626, 0.15678448975086212, -0.12289203703403473, 0.3877987265586853, 0.32318589091300964, 0.11716080456972122, 0.00966793205589056, -0.016856804490089417, -0.21007266640663147, 0.15057651698589325, -0.15255805850028992, 0.23570576310157776, -0.23631207644939423, 0.6189528703689575, -0.08298952132463455, 0.13771508634090424, 0.048985663801431656, -0.07464417070150375, -0.026097387075424194, -0.2068229764699936, -0.18484359979629517, -0.06932852417230606, 0.15485067665576935, 0.11449705064296722, 0.0789928138256073, -0.30426523089408875, 0.3449769914150238, -0.0702199786901474, 0.1855618804693222, -0.18413446843624115, 0.00787145085632801, 0.0769135132431984, 0.06184280291199684, 0.12790507078170776, 0.01290170568972826, -0.00472772354260087, -0.10051902383565903, -0.031026428565382957, -0.25752320885658264, -0.11632788926362991, 0.030725881457328796, -0.03235334903001785, 0.20119808614253998, -0.05519869923591614, -0.33697715401649475, 0.0544012151658535, 0.3542932868003845, 0.25542929768562317, -0.08546127378940582, 0.0860777497291565, 0.11463622003793716, -0.17093926668167114, -0.32261472940444946, 0.3248215913772583, 0.20720647275447845, 0.05041360482573509, -0.05845293775200844, -0.08268438279628754, -0.05747077241539955, -0.3227720558643341, 0.2198040932416916, 0.058231595903635025, -0.36005762219429016, -0.15508833527565002, 0.07148982584476471, 0.5010796189308167, -0.3292316794395447, -0.15831556916236877, 0.13155990839004517, 0.35914888978004456, -0.31230971217155457, -0.29438647627830505, 0.2606883645057678, -0.2558932304382324, 0.08577688783407211, -0.12555581331253052, 0.49628984928131104, 0.000974999857135117, -0.12853078544139862, 0.029098091647028923, -0.1688874363899231 ]
https://github.com/huggingface/datasets/issues/1973
Question: what gets stored in the datasets cache and why is it so huge?
Hi ! As Albert said they can sometimes take more space that expected but we'll fix that soon. Also, to give more details about caching: computations on a dataset are cached by default so that you don't have to recompute them the next time you run them. So by default the cache files stay on your disk when you job is finished (so that if you re-execute it, it will be reloaded from the cache). Feel free to clear your cache after your job has finished, or disable caching using ```python import datasets datasets.set_caching_enabled(False) ```
I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you!
95
Question: what gets stored in the datasets cache and why is it so huge?
[ -0.10808491706848145, 0.00734725734218955, -0.31755632162094116, 0.47385093569755554, 0.09540518373250961, 0.25874581933021545, 0.15500664710998535, 0.13928952813148499, 0.0007540832739323378, -0.010578552260994911, -0.0798853263258934, -0.12084835767745972, 0.07051625847816467, -0.04989858344197273, 0.09517747163772583, 0.1790550947189331, 0.11332304030656815, -0.04443009942770004, -0.26745596528053284, -0.1903010457754135, -0.11080199480056763, 0.062084391713142395, 0.1009640097618103, -0.2954944968223572, -0.4739367961883545, -0.18909379839897156, -0.10004761070013046, 0.17703813314437866, -0.1809816062450409, -0.2629290223121643, -0.2118981033563614, 0.06722239404916763, 0.021087681874632835, 0.2776344120502472, -0.00010297751578036696, -0.19333630800247192, 0.2443872094154358, 0.11073097586631775, -0.5772975087165833, 0.49662405252456665, -0.48889127373695374, -0.02257564663887024, -0.15339292585849762, -0.17672480642795563, 0.4793413281440735, 0.07488331943750381, 0.018487587571144104, -0.5027731657028198, 0.003981047309935093, 0.08214680105447769, 0.38029783964157104, -0.04523083567619324, -0.3524976074695587, -0.006345926783978939, 0.2572628855705261, 0.007860925979912281, -0.022702503949403763, -0.20537449419498444, 0.08132852613925934, 0.1940111517906189, -0.2913457155227661, 0.25346675515174866, 0.10989663004875183, 0.1243552640080452, 0.16341154277324677, 0.002786586293950677, -0.218936026096344, -0.04168974235653877, 0.6332963705062866, 0.2148439586162567, 0.7364737391471863, -0.3613794445991516, -0.1314031481742859, -0.15379022061824799, -0.2513435184955597, -0.19664180278778076, 0.1129676103591919, 0.238783061504364, 0.13717573881149292, 0.04901399835944176, -0.3703009784221649, -0.2862708866596222, -0.06530825048685074, -0.34114477038383484, -0.33067503571510315, -0.09371624141931534, -0.2900279760360718, -0.03160640597343445, -0.13005580008029938, 0.12008418142795563, 0.3364623785018921, -0.23995843529701233, -0.11529645323753357, -0.001725542824715376, -0.05928972363471985, -0.2366521656513214, 0.13610512018203735, 0.4087024927139282, 0.17540761828422546, 0.03623519837856293, -0.01311575248837471, -0.059569843113422394, 0.040267206728458405, -0.03875330835580826, 0.29884737730026245, 0.2497692108154297, 0.03774105757474899, -0.1384209394454956, 0.06603335589170456, -0.4769483208656311, -0.17218263447284698, -0.07733770459890366, 0.23422320187091827, 0.33423736691474915, 0.35849592089653015, -0.43259188532829285, 0.08807212859392166, -0.23615996539592743, -0.08487342298030853, 0.21977627277374268, 0.14729201793670654, -0.08595283329486847, 0.024206943809986115, 0.299508273601532, -0.19171491265296936, 0.10585787892341614, -0.3109043836593628, -0.25986048579216003, 0.10408420860767365, -0.1636878103017807, -0.49903127551078796, -0.11203614622354507, 0.08261738717556, 0.10854631662368774, 0.20601049065589905, -0.03438815474510193, 0.26639387011528015, -0.04536806792020798, -0.168847918510437, -0.013652920722961426, 0.3037680685520172, -0.24228596687316895, 0.34730011224746704, 0.41346490383148193, -0.06893843412399292, 0.35824456810951233, -0.1836213320493698, -0.02620411105453968, -0.24620835483074188, 0.09895504266023636, -0.39089179039001465, -0.35408273339271545, -0.021475642919540405, 0.28361305594444275, -0.04936506599187851, -0.04698442667722702, -0.062240295112133026, -0.02102971263229847, 0.2734436094760895, 0.1431177705526352, 0.08968327939510345, 0.19298362731933594, -0.25589296221733093, -0.26807039976119995, -0.14921481907367706, 0.2652566432952881, -0.4051693379878998, 0.12074121087789536, -0.07166244089603424, -0.1707097738981247, 0.034582946449518204, 0.26904091238975525, -0.025559401139616966, 0.07862617075443268, -0.054487161338329315, 0.04424290359020233, 0.23575705289840698, -0.15327291190624237, -0.4792572557926178, 0.03814244270324707, 0.20312367379665375, -0.23000293970108032, 0.13472628593444824, 0.36061805486679077, 0.03991779685020447, -0.12868072092533112, 0.02247951738536358, 0.11230982840061188, -0.2853686213493347, -0.009752036072313786, -0.19487595558166504, -0.05216590687632561, -0.041756559163331985, -0.013487621210515499, 0.0986342653632164, -0.014847997575998306, 0.18699094653129578, 0.2567116916179657, -0.046419426798820496, 0.1567358523607254, 0.10907046496868134, 0.2829180657863617, 0.01833159103989601, 0.10944166034460068, 0.1491803526878357, -0.06949090212583542, -0.37042057514190674, 0.05755726248025894, 0.23330163955688477, -0.4675639569759369, 0.12170157581567764, -0.22710895538330078, -0.09578333795070648, 0.2583024501800537, 0.10645367205142975, -0.09619000554084778, 0.26468947529792786, 0.2918547987937927, 0.028193451464176178, -0.14701221883296967, -0.16089555621147156, 0.35872140526771545, -0.03182363882660866, -0.16558106243610382, -0.2992199957370758, -0.22618311643600464, 0.020314130932092667, -0.03979909047484398, -0.03639659658074379, 0.02862672135233879, -0.004153728950768709, 0.037557948380708694, 0.06004432588815689, 0.21209439635276794, 0.12229873239994049, -0.037170782685279846, 0.4107740521430969, 0.5117470026016235, -0.013199582695960999, 0.09010490030050278, 0.4509545564651489, -0.2087702453136444, 0.15640951693058014, -0.10916128754615784, -0.32702377438545227, -0.09120059758424759, -0.012409956194460392, 0.06614373624324799, 0.15369649231433868, -0.18884123861789703, 0.06000193953514099, 0.06649642437696457, 0.1303439885377884, -0.3392874002456665, -0.05223752185702324, -0.013714921660721302, 0.302638441324234, 0.47840258479118347, -0.03698395937681198, 0.5226114392280579, 0.6085793375968933, -0.13788890838623047, 0.10055083781480789, -0.1595684438943863, -0.40404170751571655, -0.6192160844802856, 0.1736251264810562, 0.21230752766132355, 0.34883198142051697, 0.2126462161540985, 0.4494119882583618, -0.18786366283893585, 0.10206864774227142, -0.1718873679637909, 0.08028446137905121, 0.10775094479322433, -0.09276201575994492, -0.12388534098863602, 0.144579216837883, -0.06809259951114655, -0.29348254203796387, 0.12037789821624756, -0.1200297400355339, 0.08131507784128189, 0.04170851781964302, 0.2108370065689087, -0.25854530930519104, -0.13467848300933838, 0.27054721117019653, 0.2603501081466675, -0.05785972625017166, -0.4122338593006134, 0.03220883384346962, -0.12055656313896179, -0.0463717095553875, -0.13747581839561462, -0.1311439424753189, 0.49876394867897034, 0.15722814202308655, 0.17965619266033173, -0.0566384494304657, -0.3317055404186249, -0.12759074568748474, 0.2838551104068756, -0.034603945910930634, -0.1658676117658615, 0.3873916566371918, -0.029821744188666344, 0.1586914360523224, -0.3159695267677307, -0.19541162252426147, 0.09167874604463577, 0.05754673480987549, 0.13046519458293915, -0.16177798807621002, 0.09315986931324005, -0.2872444689273834, 0.14958131313323975, -0.3104250133037567, -0.17050427198410034, -0.21472090482711792, -0.013590285554528236, 0.011959673836827278, -0.07003216445446014, 0.1538921445608139, -0.05249125510454178, -0.07712027430534363, -0.033445172011852264, 0.14509464800357819, 0.013714871369302273, 0.11952641606330872, 0.08877250552177429, -0.20027054846286774, 0.029028648510575294, -0.2545992434024811, 0.19502891600131989, -0.5438519716262817, -0.5667839646339417, 0.14670079946517944, -0.10147856175899506, -0.05088013410568237, 0.18830418586730957, 0.1054091677069664, 0.07550633698701859, 0.1583506017923355, -0.5914525985717773, -0.0972985252737999, -0.1930381804704666, 0.1827489137649536, 0.07754578441381454, 0.22999562323093414, 0.39725977182388306, -0.01971149817109108, -0.21362102031707764, -0.08459050953388214, -0.2758578956127167, -0.30748987197875977, 0.01609627529978752, 0.2314085215330124, -0.3249143064022064, 0.041104886680841446, 0.1417553871870041, 0.460152268409729, 0.22698275744915009, 0.046005237847566605, 0.14110398292541504, 0.21274149417877197, 0.5951875448226929, -0.35851460695266724, 0.11300373822450638, 0.24625033140182495, -0.05981072783470154, -0.03933890163898468, 0.41810861229896545, 0.23704136908054352, -0.21067221462726593, 0.15554578602313995, 0.08363891392946243, -0.14786702394485474, 0.04123740270733833, 0.15532326698303223, -0.039337120950222015, -0.022248512133955956, 0.2962022125720978, -0.14082972705364227, -0.13511548936367035, -0.2193412035703659, -0.07283918559551239, -0.2200472354888916, -0.04536500200629234, 0.10370982438325882, -0.2835749685764313, 0.12541505694389343, -0.1651298850774765, 0.00938184093683958, -0.025148898363113403, 0.00733922841027379, -0.1102885976433754, -0.09451384097337723, 0.21272584795951843, 0.08572764694690704, 0.38151904940605164, -0.1648523062467575, 0.025754312053322792, -0.22003132104873657, -0.1632264256477356, -0.03521673008799553, 0.1895800679922104, -0.18975690007209778, 0.2466326206922531, 0.14012114703655243, 0.04588533565402031, 0.15543723106384277, -0.030403105542063713, 0.12765531241893768, 0.3607100248336792, -0.1845378577709198, -0.09414996951818466, -0.005566410720348358, -0.26286551356315613, 0.08824993669986725, -0.170728862285614, -0.13062649965286255, -0.2276826649904251, 0.04884537681937218, -0.04810862988233566, -0.46400970220565796, -0.08662570267915726, 0.05103468522429466, 0.05586923658847809, 0.12259925901889801, 0.14076924324035645, 0.12474124133586884, 0.041558317840099335, 0.20974157750606537, 0.03361114114522934, 0.37269023060798645, -0.09730876982212067, 0.24006274342536926, 0.2167057991027832, 0.05921517312526703, 0.006572136655449867, 0.34633150696754456, -0.10107499361038208, -0.2606765925884247, -0.1205529049038887, -0.004109441302716732, -0.1810602992773056, 0.1949300765991211, -0.145100936293602, 0.09555434435606003, -0.21331773698329926, -0.28644225001335144, 0.30084481835365295, 0.17308275401592255, -0.27221789956092834, 0.19999176263809204, -0.07415524870157242, 0.011105097830295563, 0.07523597776889801, 0.11053526401519775, 0.8210766911506653, -0.10490377992391586, 0.4101971983909607, -0.056808486580848694, -0.024569105356931686, 0.2683716416358948, -0.378397136926651, -0.03168774023652077, -0.08819283545017242, -0.3394925594329834, -0.020231977105140686, -0.03325194865465164, -0.1742268204689026, -0.025272902101278305, 0.0880463644862175, 0.11006450653076172, 0.06909429281949997, 0.13862240314483643, 0.14515717327594757, 0.20275673270225525, -0.07933633774518967, -0.11526127904653549, 0.049330342561006546, 0.3733749985694885, 0.028373094275593758, -0.23137781023979187, -0.07022261619567871, 0.29492679238319397, 0.1575106978416443, 0.051275379955768585, -0.10727067291736603, -0.15156416594982147, 0.009913024492561817, 0.30660566687583923, -0.1719440519809723, -0.1266108602285385, -0.5170778632164001, 0.08294817060232162, 0.3538132905960083, 0.17117275297641754, 0.0073080225847661495, 0.22136300802230835, 0.06797397136688232, 0.12048139423131943, 0.11075693368911743, -0.12826400995254517, 0.2456904947757721, -0.10492661595344543, 0.0744299441576004, -0.01633230596780777, -0.09171658009290695, -0.20413009822368622, -0.16660691797733307, 0.37741705775260925, 0.029211295768618584, -0.08508127927780151, -0.07006732374429703, 0.0434323251247406, -0.08773259818553925, 0.06469405442476273, 0.26675891876220703, 0.3747144341468811, 0.0948665589094162, 0.49061456322669983, -0.09890985488891602, -0.3613482117652893, -0.2741735577583313, 0.21561653912067413, 0.3719351887702942, -0.1036348044872284, 0.15882551670074463, -0.31925374269485474, -0.2637401223182678, -0.19440844655036926, 0.023211557418107986, 0.012040539644658566, 0.07632721960544586, 0.261421799659729, -0.22749564051628113, -0.20331868529319763, -0.18846185505390167, -0.25365152955055237, 0.08562472462654114, 0.020518967881798744, -0.2868632376194, -0.2088644802570343, -0.3294799327850342, 0.04711537808179855, -0.08657859265804291, 0.27041420340538025, 0.11574944853782654, -0.49181294441223145, 0.02899252623319626, 0.4363613426685333, -0.43561482429504395, -0.03300434350967407, 0.06706336885690689, 0.2527409791946411, 0.03412625938653946, -0.2120470553636551, 0.09769237041473389, -0.1699279546737671, 0.14587463438510895, -0.07770809531211853, -0.2656807601451874, -0.4547838866710663, 0.10162223130464554, 0.050408706068992615, 0.12292449176311493, -0.049448806792497635, -0.12975002825260162, -0.16032084822654724, 0.0002686789957806468, -0.1851365864276886, 0.2308768481016159, 0.2722444534301758, 0.1471392959356308, -0.18705028295516968, 0.15976177155971527, -0.08362280577421188, 0.1858585625886917, 0.1887930929660797, 0.11302441358566284, 0.23396778106689453, -0.12587213516235352, 0.19269295036792755, -0.07700561732053757, -0.23196028172969818, 0.031877726316452026, 0.25404995679855347, -0.06490346789360046, -0.1768486052751541, 0.12964820861816406, -0.18950968980789185, -0.015068462118506432, 0.34876927733421326, -0.03933139145374298, 0.22887033224105835, -0.03229193389415741, -0.25580498576164246, -0.046283796429634094, 0.33477336168289185, 0.0912390798330307, -0.050438541918992996, 0.09651951491832733, 0.23079979419708252, 0.052714720368385315, 0.24956655502319336, 0.2601078748703003, 0.015530082397162914, 0.23448783159255981, 0.15401962399482727, 0.4310411214828491, -0.3321046829223633, -0.033592455089092255, -0.05323706194758415, 0.10468993335962296, -0.0070605226792395115, 0.37549424171447754, 0.5283238291740417, 0.05245240032672882, 0.502163827419281, 0.25163471698760986, 0.3440803289413452, 0.3178846538066864, -0.24672672152519226, -0.0097734946757555, -0.2108060121536255, 0.2173793464899063, 0.3336772620677948, -0.166143536567688, 0.12729525566101074, 0.07155638188123703, -0.06963927298784256, 0.15569768846035004, -0.24618035554885864, -0.2320854514837265, 0.02253052406013012, -0.195156991481781, -0.1446705013513565, 0.19863568246364594, -0.002120533026754856, 0.06692046672105789, 0.30493685603141785, -0.15310345590114594, -0.31803858280181885, 0.34237998723983765, -0.15500296652317047, -0.09802283346652985, -0.3059692680835724, 0.3456639349460602, -0.028756165876984596, -0.21327154338359833, -0.026429088786244392, 0.33449235558509827, -0.14719896018505096, 0.1977217197418213, -0.015924477949738503, 0.17870324850082397, 0.12465370446443558, -0.03501040115952492, 0.08425701409578323, 0.26483237743377686, 0.16809366643428802, -0.3702258765697479, -0.32452982664108276, 0.09846081584692001, -0.07216154783964157, -0.06581808626651764, -0.028292665258049965, 0.28101402521133423, -0.14506973326206207, 0.19099965691566467, 0.036111656576395035, 0.07464228570461273, -0.006840749178081751, -0.09066959470510483, 0.023033682256937027, -0.13653209805488586, 0.023492826148867607, 0.16720694303512573, -0.5369561910629272, -0.19244186580181122, 0.46045830845832825, -0.281751811504364, 0.18116940557956696, -0.19347016513347626, 0.15678448975086212, -0.12289203703403473, 0.3877987265586853, 0.32318589091300964, 0.11716080456972122, 0.00966793205589056, -0.016856804490089417, -0.21007266640663147, 0.15057651698589325, -0.15255805850028992, 0.23570576310157776, -0.23631207644939423, 0.6189528703689575, -0.08298952132463455, 0.13771508634090424, 0.048985663801431656, -0.07464417070150375, -0.026097387075424194, -0.2068229764699936, -0.18484359979629517, -0.06932852417230606, 0.15485067665576935, 0.11449705064296722, 0.0789928138256073, -0.30426523089408875, 0.3449769914150238, -0.0702199786901474, 0.1855618804693222, -0.18413446843624115, 0.00787145085632801, 0.0769135132431984, 0.06184280291199684, 0.12790507078170776, 0.01290170568972826, -0.00472772354260087, -0.10051902383565903, -0.031026428565382957, -0.25752320885658264, -0.11632788926362991, 0.030725881457328796, -0.03235334903001785, 0.20119808614253998, -0.05519869923591614, -0.33697715401649475, 0.0544012151658535, 0.3542932868003845, 0.25542929768562317, -0.08546127378940582, 0.0860777497291565, 0.11463622003793716, -0.17093926668167114, -0.32261472940444946, 0.3248215913772583, 0.20720647275447845, 0.05041360482573509, -0.05845293775200844, -0.08268438279628754, -0.05747077241539955, -0.3227720558643341, 0.2198040932416916, 0.058231595903635025, -0.36005762219429016, -0.15508833527565002, 0.07148982584476471, 0.5010796189308167, -0.3292316794395447, -0.15831556916236877, 0.13155990839004517, 0.35914888978004456, -0.31230971217155457, -0.29438647627830505, 0.2606883645057678, -0.2558932304382324, 0.08577688783407211, -0.12555581331253052, 0.49628984928131104, 0.000974999857135117, -0.12853078544139862, 0.029098091647028923, -0.1688874363899231 ]
https://github.com/huggingface/datasets/issues/1973
Question: what gets stored in the datasets cache and why is it so huge?
Hi @ioana-blue, we have optimized Datasets' disk usage in the latest release v1.5. Feel free to update your Datasets version ```shell pip install -U datasets ``` and see if it better suits your needs.
I'm running several training jobs (around 10) with a relatively large dataset (3M samples). The datasets cache reached 178G and it seems really large. What is it stored in there and why is it so large? I don't think I noticed this problem before and seems to be related to the new version of the datasets library. Any insight? Thank you!
34
Question: what gets stored in the datasets cache and why is it so huge?
[ -0.10808491706848145, 0.00734725734218955, -0.31755632162094116, 0.47385093569755554, 0.09540518373250961, 0.25874581933021545, 0.15500664710998535, 0.13928952813148499, 0.0007540832739323378, -0.010578552260994911, -0.0798853263258934, -0.12084835767745972, 0.07051625847816467, -0.04989858344197273, 0.09517747163772583, 0.1790550947189331, 0.11332304030656815, -0.04443009942770004, -0.26745596528053284, -0.1903010457754135, -0.11080199480056763, 0.062084391713142395, 0.1009640097618103, -0.2954944968223572, -0.4739367961883545, -0.18909379839897156, -0.10004761070013046, 0.17703813314437866, -0.1809816062450409, -0.2629290223121643, -0.2118981033563614, 0.06722239404916763, 0.021087681874632835, 0.2776344120502472, -0.00010297751578036696, -0.19333630800247192, 0.2443872094154358, 0.11073097586631775, -0.5772975087165833, 0.49662405252456665, -0.48889127373695374, -0.02257564663887024, -0.15339292585849762, -0.17672480642795563, 0.4793413281440735, 0.07488331943750381, 0.018487587571144104, -0.5027731657028198, 0.003981047309935093, 0.08214680105447769, 0.38029783964157104, -0.04523083567619324, -0.3524976074695587, -0.006345926783978939, 0.2572628855705261, 0.007860925979912281, -0.022702503949403763, -0.20537449419498444, 0.08132852613925934, 0.1940111517906189, -0.2913457155227661, 0.25346675515174866, 0.10989663004875183, 0.1243552640080452, 0.16341154277324677, 0.002786586293950677, -0.218936026096344, -0.04168974235653877, 0.6332963705062866, 0.2148439586162567, 0.7364737391471863, -0.3613794445991516, -0.1314031481742859, -0.15379022061824799, -0.2513435184955597, -0.19664180278778076, 0.1129676103591919, 0.238783061504364, 0.13717573881149292, 0.04901399835944176, -0.3703009784221649, -0.2862708866596222, -0.06530825048685074, -0.34114477038383484, -0.33067503571510315, -0.09371624141931534, -0.2900279760360718, -0.03160640597343445, -0.13005580008029938, 0.12008418142795563, 0.3364623785018921, -0.23995843529701233, -0.11529645323753357, -0.001725542824715376, -0.05928972363471985, -0.2366521656513214, 0.13610512018203735, 0.4087024927139282, 0.17540761828422546, 0.03623519837856293, -0.01311575248837471, -0.059569843113422394, 0.040267206728458405, -0.03875330835580826, 0.29884737730026245, 0.2497692108154297, 0.03774105757474899, -0.1384209394454956, 0.06603335589170456, -0.4769483208656311, -0.17218263447284698, -0.07733770459890366, 0.23422320187091827, 0.33423736691474915, 0.35849592089653015, -0.43259188532829285, 0.08807212859392166, -0.23615996539592743, -0.08487342298030853, 0.21977627277374268, 0.14729201793670654, -0.08595283329486847, 0.024206943809986115, 0.299508273601532, -0.19171491265296936, 0.10585787892341614, -0.3109043836593628, -0.25986048579216003, 0.10408420860767365, -0.1636878103017807, -0.49903127551078796, -0.11203614622354507, 0.08261738717556, 0.10854631662368774, 0.20601049065589905, -0.03438815474510193, 0.26639387011528015, -0.04536806792020798, -0.168847918510437, -0.013652920722961426, 0.3037680685520172, -0.24228596687316895, 0.34730011224746704, 0.41346490383148193, -0.06893843412399292, 0.35824456810951233, -0.1836213320493698, -0.02620411105453968, -0.24620835483074188, 0.09895504266023636, -0.39089179039001465, -0.35408273339271545, -0.021475642919540405, 0.28361305594444275, -0.04936506599187851, -0.04698442667722702, -0.062240295112133026, -0.02102971263229847, 0.2734436094760895, 0.1431177705526352, 0.08968327939510345, 0.19298362731933594, -0.25589296221733093, -0.26807039976119995, -0.14921481907367706, 0.2652566432952881, -0.4051693379878998, 0.12074121087789536, -0.07166244089603424, -0.1707097738981247, 0.034582946449518204, 0.26904091238975525, -0.025559401139616966, 0.07862617075443268, -0.054487161338329315, 0.04424290359020233, 0.23575705289840698, -0.15327291190624237, -0.4792572557926178, 0.03814244270324707, 0.20312367379665375, -0.23000293970108032, 0.13472628593444824, 0.36061805486679077, 0.03991779685020447, -0.12868072092533112, 0.02247951738536358, 0.11230982840061188, -0.2853686213493347, -0.009752036072313786, -0.19487595558166504, -0.05216590687632561, -0.041756559163331985, -0.013487621210515499, 0.0986342653632164, -0.014847997575998306, 0.18699094653129578, 0.2567116916179657, -0.046419426798820496, 0.1567358523607254, 0.10907046496868134, 0.2829180657863617, 0.01833159103989601, 0.10944166034460068, 0.1491803526878357, -0.06949090212583542, -0.37042057514190674, 0.05755726248025894, 0.23330163955688477, -0.4675639569759369, 0.12170157581567764, -0.22710895538330078, -0.09578333795070648, 0.2583024501800537, 0.10645367205142975, -0.09619000554084778, 0.26468947529792786, 0.2918547987937927, 0.028193451464176178, -0.14701221883296967, -0.16089555621147156, 0.35872140526771545, -0.03182363882660866, -0.16558106243610382, -0.2992199957370758, -0.22618311643600464, 0.020314130932092667, -0.03979909047484398, -0.03639659658074379, 0.02862672135233879, -0.004153728950768709, 0.037557948380708694, 0.06004432588815689, 0.21209439635276794, 0.12229873239994049, -0.037170782685279846, 0.4107740521430969, 0.5117470026016235, -0.013199582695960999, 0.09010490030050278, 0.4509545564651489, -0.2087702453136444, 0.15640951693058014, -0.10916128754615784, -0.32702377438545227, -0.09120059758424759, -0.012409956194460392, 0.06614373624324799, 0.15369649231433868, -0.18884123861789703, 0.06000193953514099, 0.06649642437696457, 0.1303439885377884, -0.3392874002456665, -0.05223752185702324, -0.013714921660721302, 0.302638441324234, 0.47840258479118347, -0.03698395937681198, 0.5226114392280579, 0.6085793375968933, -0.13788890838623047, 0.10055083781480789, -0.1595684438943863, -0.40404170751571655, -0.6192160844802856, 0.1736251264810562, 0.21230752766132355, 0.34883198142051697, 0.2126462161540985, 0.4494119882583618, -0.18786366283893585, 0.10206864774227142, -0.1718873679637909, 0.08028446137905121, 0.10775094479322433, -0.09276201575994492, -0.12388534098863602, 0.144579216837883, -0.06809259951114655, -0.29348254203796387, 0.12037789821624756, -0.1200297400355339, 0.08131507784128189, 0.04170851781964302, 0.2108370065689087, -0.25854530930519104, -0.13467848300933838, 0.27054721117019653, 0.2603501081466675, -0.05785972625017166, -0.4122338593006134, 0.03220883384346962, -0.12055656313896179, -0.0463717095553875, -0.13747581839561462, -0.1311439424753189, 0.49876394867897034, 0.15722814202308655, 0.17965619266033173, -0.0566384494304657, -0.3317055404186249, -0.12759074568748474, 0.2838551104068756, -0.034603945910930634, -0.1658676117658615, 0.3873916566371918, -0.029821744188666344, 0.1586914360523224, -0.3159695267677307, -0.19541162252426147, 0.09167874604463577, 0.05754673480987549, 0.13046519458293915, -0.16177798807621002, 0.09315986931324005, -0.2872444689273834, 0.14958131313323975, -0.3104250133037567, -0.17050427198410034, -0.21472090482711792, -0.013590285554528236, 0.011959673836827278, -0.07003216445446014, 0.1538921445608139, -0.05249125510454178, -0.07712027430534363, -0.033445172011852264, 0.14509464800357819, 0.013714871369302273, 0.11952641606330872, 0.08877250552177429, -0.20027054846286774, 0.029028648510575294, -0.2545992434024811, 0.19502891600131989, -0.5438519716262817, -0.5667839646339417, 0.14670079946517944, -0.10147856175899506, -0.05088013410568237, 0.18830418586730957, 0.1054091677069664, 0.07550633698701859, 0.1583506017923355, -0.5914525985717773, -0.0972985252737999, -0.1930381804704666, 0.1827489137649536, 0.07754578441381454, 0.22999562323093414, 0.39725977182388306, -0.01971149817109108, -0.21362102031707764, -0.08459050953388214, -0.2758578956127167, -0.30748987197875977, 0.01609627529978752, 0.2314085215330124, -0.3249143064022064, 0.041104886680841446, 0.1417553871870041, 0.460152268409729, 0.22698275744915009, 0.046005237847566605, 0.14110398292541504, 0.21274149417877197, 0.5951875448226929, -0.35851460695266724, 0.11300373822450638, 0.24625033140182495, -0.05981072783470154, -0.03933890163898468, 0.41810861229896545, 0.23704136908054352, -0.21067221462726593, 0.15554578602313995, 0.08363891392946243, -0.14786702394485474, 0.04123740270733833, 0.15532326698303223, -0.039337120950222015, -0.022248512133955956, 0.2962022125720978, -0.14082972705364227, -0.13511548936367035, -0.2193412035703659, -0.07283918559551239, -0.2200472354888916, -0.04536500200629234, 0.10370982438325882, -0.2835749685764313, 0.12541505694389343, -0.1651298850774765, 0.00938184093683958, -0.025148898363113403, 0.00733922841027379, -0.1102885976433754, -0.09451384097337723, 0.21272584795951843, 0.08572764694690704, 0.38151904940605164, -0.1648523062467575, 0.025754312053322792, -0.22003132104873657, -0.1632264256477356, -0.03521673008799553, 0.1895800679922104, -0.18975690007209778, 0.2466326206922531, 0.14012114703655243, 0.04588533565402031, 0.15543723106384277, -0.030403105542063713, 0.12765531241893768, 0.3607100248336792, -0.1845378577709198, -0.09414996951818466, -0.005566410720348358, -0.26286551356315613, 0.08824993669986725, -0.170728862285614, -0.13062649965286255, -0.2276826649904251, 0.04884537681937218, -0.04810862988233566, -0.46400970220565796, -0.08662570267915726, 0.05103468522429466, 0.05586923658847809, 0.12259925901889801, 0.14076924324035645, 0.12474124133586884, 0.041558317840099335, 0.20974157750606537, 0.03361114114522934, 0.37269023060798645, -0.09730876982212067, 0.24006274342536926, 0.2167057991027832, 0.05921517312526703, 0.006572136655449867, 0.34633150696754456, -0.10107499361038208, -0.2606765925884247, -0.1205529049038887, -0.004109441302716732, -0.1810602992773056, 0.1949300765991211, -0.145100936293602, 0.09555434435606003, -0.21331773698329926, -0.28644225001335144, 0.30084481835365295, 0.17308275401592255, -0.27221789956092834, 0.19999176263809204, -0.07415524870157242, 0.011105097830295563, 0.07523597776889801, 0.11053526401519775, 0.8210766911506653, -0.10490377992391586, 0.4101971983909607, -0.056808486580848694, -0.024569105356931686, 0.2683716416358948, -0.378397136926651, -0.03168774023652077, -0.08819283545017242, -0.3394925594329834, -0.020231977105140686, -0.03325194865465164, -0.1742268204689026, -0.025272902101278305, 0.0880463644862175, 0.11006450653076172, 0.06909429281949997, 0.13862240314483643, 0.14515717327594757, 0.20275673270225525, -0.07933633774518967, -0.11526127904653549, 0.049330342561006546, 0.3733749985694885, 0.028373094275593758, -0.23137781023979187, -0.07022261619567871, 0.29492679238319397, 0.1575106978416443, 0.051275379955768585, -0.10727067291736603, -0.15156416594982147, 0.009913024492561817, 0.30660566687583923, -0.1719440519809723, -0.1266108602285385, -0.5170778632164001, 0.08294817060232162, 0.3538132905960083, 0.17117275297641754, 0.0073080225847661495, 0.22136300802230835, 0.06797397136688232, 0.12048139423131943, 0.11075693368911743, -0.12826400995254517, 0.2456904947757721, -0.10492661595344543, 0.0744299441576004, -0.01633230596780777, -0.09171658009290695, -0.20413009822368622, -0.16660691797733307, 0.37741705775260925, 0.029211295768618584, -0.08508127927780151, -0.07006732374429703, 0.0434323251247406, -0.08773259818553925, 0.06469405442476273, 0.26675891876220703, 0.3747144341468811, 0.0948665589094162, 0.49061456322669983, -0.09890985488891602, -0.3613482117652893, -0.2741735577583313, 0.21561653912067413, 0.3719351887702942, -0.1036348044872284, 0.15882551670074463, -0.31925374269485474, -0.2637401223182678, -0.19440844655036926, 0.023211557418107986, 0.012040539644658566, 0.07632721960544586, 0.261421799659729, -0.22749564051628113, -0.20331868529319763, -0.18846185505390167, -0.25365152955055237, 0.08562472462654114, 0.020518967881798744, -0.2868632376194, -0.2088644802570343, -0.3294799327850342, 0.04711537808179855, -0.08657859265804291, 0.27041420340538025, 0.11574944853782654, -0.49181294441223145, 0.02899252623319626, 0.4363613426685333, -0.43561482429504395, -0.03300434350967407, 0.06706336885690689, 0.2527409791946411, 0.03412625938653946, -0.2120470553636551, 0.09769237041473389, -0.1699279546737671, 0.14587463438510895, -0.07770809531211853, -0.2656807601451874, -0.4547838866710663, 0.10162223130464554, 0.050408706068992615, 0.12292449176311493, -0.049448806792497635, -0.12975002825260162, -0.16032084822654724, 0.0002686789957806468, -0.1851365864276886, 0.2308768481016159, 0.2722444534301758, 0.1471392959356308, -0.18705028295516968, 0.15976177155971527, -0.08362280577421188, 0.1858585625886917, 0.1887930929660797, 0.11302441358566284, 0.23396778106689453, -0.12587213516235352, 0.19269295036792755, -0.07700561732053757, -0.23196028172969818, 0.031877726316452026, 0.25404995679855347, -0.06490346789360046, -0.1768486052751541, 0.12964820861816406, -0.18950968980789185, -0.015068462118506432, 0.34876927733421326, -0.03933139145374298, 0.22887033224105835, -0.03229193389415741, -0.25580498576164246, -0.046283796429634094, 0.33477336168289185, 0.0912390798330307, -0.050438541918992996, 0.09651951491832733, 0.23079979419708252, 0.052714720368385315, 0.24956655502319336, 0.2601078748703003, 0.015530082397162914, 0.23448783159255981, 0.15401962399482727, 0.4310411214828491, -0.3321046829223633, -0.033592455089092255, -0.05323706194758415, 0.10468993335962296, -0.0070605226792395115, 0.37549424171447754, 0.5283238291740417, 0.05245240032672882, 0.502163827419281, 0.25163471698760986, 0.3440803289413452, 0.3178846538066864, -0.24672672152519226, -0.0097734946757555, -0.2108060121536255, 0.2173793464899063, 0.3336772620677948, -0.166143536567688, 0.12729525566101074, 0.07155638188123703, -0.06963927298784256, 0.15569768846035004, -0.24618035554885864, -0.2320854514837265, 0.02253052406013012, -0.195156991481781, -0.1446705013513565, 0.19863568246364594, -0.002120533026754856, 0.06692046672105789, 0.30493685603141785, -0.15310345590114594, -0.31803858280181885, 0.34237998723983765, -0.15500296652317047, -0.09802283346652985, -0.3059692680835724, 0.3456639349460602, -0.028756165876984596, -0.21327154338359833, -0.026429088786244392, 0.33449235558509827, -0.14719896018505096, 0.1977217197418213, -0.015924477949738503, 0.17870324850082397, 0.12465370446443558, -0.03501040115952492, 0.08425701409578323, 0.26483237743377686, 0.16809366643428802, -0.3702258765697479, -0.32452982664108276, 0.09846081584692001, -0.07216154783964157, -0.06581808626651764, -0.028292665258049965, 0.28101402521133423, -0.14506973326206207, 0.19099965691566467, 0.036111656576395035, 0.07464228570461273, -0.006840749178081751, -0.09066959470510483, 0.023033682256937027, -0.13653209805488586, 0.023492826148867607, 0.16720694303512573, -0.5369561910629272, -0.19244186580181122, 0.46045830845832825, -0.281751811504364, 0.18116940557956696, -0.19347016513347626, 0.15678448975086212, -0.12289203703403473, 0.3877987265586853, 0.32318589091300964, 0.11716080456972122, 0.00966793205589056, -0.016856804490089417, -0.21007266640663147, 0.15057651698589325, -0.15255805850028992, 0.23570576310157776, -0.23631207644939423, 0.6189528703689575, -0.08298952132463455, 0.13771508634090424, 0.048985663801431656, -0.07464417070150375, -0.026097387075424194, -0.2068229764699936, -0.18484359979629517, -0.06932852417230606, 0.15485067665576935, 0.11449705064296722, 0.0789928138256073, -0.30426523089408875, 0.3449769914150238, -0.0702199786901474, 0.1855618804693222, -0.18413446843624115, 0.00787145085632801, 0.0769135132431984, 0.06184280291199684, 0.12790507078170776, 0.01290170568972826, -0.00472772354260087, -0.10051902383565903, -0.031026428565382957, -0.25752320885658264, -0.11632788926362991, 0.030725881457328796, -0.03235334903001785, 0.20119808614253998, -0.05519869923591614, -0.33697715401649475, 0.0544012151658535, 0.3542932868003845, 0.25542929768562317, -0.08546127378940582, 0.0860777497291565, 0.11463622003793716, -0.17093926668167114, -0.32261472940444946, 0.3248215913772583, 0.20720647275447845, 0.05041360482573509, -0.05845293775200844, -0.08268438279628754, -0.05747077241539955, -0.3227720558643341, 0.2198040932416916, 0.058231595903635025, -0.36005762219429016, -0.15508833527565002, 0.07148982584476471, 0.5010796189308167, -0.3292316794395447, -0.15831556916236877, 0.13155990839004517, 0.35914888978004456, -0.31230971217155457, -0.29438647627830505, 0.2606883645057678, -0.2558932304382324, 0.08577688783407211, -0.12555581331253052, 0.49628984928131104, 0.000974999857135117, -0.12853078544139862, 0.029098091647028923, -0.1688874363899231 ]
https://github.com/huggingface/datasets/issues/1965
Can we parallelized the add_faiss_index process over dataset shards ?
Hi ! As far as I know not all faiss indexes can be computed in parallel and then merged. For example [here](https://github.com/facebookresearch/faiss/wiki/Special-operations-on-indexes#splitting-and-merging-indexes) is is mentioned that only IndexIVF indexes can be merged. Moreover faiss already works using multithreading to parallelize the workload over your different CPU cores. You can find more info [here](https://github.com/facebookresearch/faiss/wiki/Threads-and-asynchronous-calls#internal-threading) So I feel like the gains we would get by implementing a parallel `add_faiss_index` would not be that important, but let me know what you think.
I am thinking of making the **add_faiss_index** process faster. What if we run the add_faiss_index process on separate dataset shards and then combine them before (dataset.concatenate) saving the faiss.index file ? I feel theoretically this will reduce the accuracy of retrieval since it affects the indexing process. @lhoestq
79
Can we parallelized the add_faiss_index process over dataset shards ?
[ -0.5191422700881958, 0.018097443506121635, -0.24734126031398773, 0.05070125311613083, -0.2641361355781555, 0.21948835253715515, 0.5797526240348816, 0.10292130708694458, 0.3235553205013275, 0.1889716535806656, -0.1406574696302414, 0.08990705013275146, 0.09929607063531876, 0.18317309021949768, -0.10149990022182465, 0.4139242172241211, 0.22083772718906403, 0.1232750192284584, -0.21225987374782562, 0.020861851051449776, -0.14759406447410583, -0.14860095083713531, 0.09686887264251709, -0.24167579412460327, -0.22527137398719788, 0.021859560161828995, -0.21710577607154846, 0.2075321525335312, -0.0004611079639289528, -0.2111838459968567, -0.06761262565851212, 0.3548230230808258, -0.1620163768529892, 0.1623712033033371, -0.00011079254909418523, 0.1206476017832756, 0.2035173624753952, 0.0750432163476944, -0.08723298460245132, 0.7610898017883301, -0.3877255916595459, -0.011985675431787968, -0.17599406838417053, -0.4006524384021759, -0.10169936716556549, -0.14689947664737701, 0.1845727413892746, -0.17802472412586212, -0.13042110204696655, -0.20939654111862183, 0.15690027177333832, 0.016448887065052986, 0.04529384523630142, -0.17353303730487823, 0.16532480716705322, -0.26468926668167114, -0.08303610235452652, -0.060167424380779266, 0.12149932235479355, 0.12199171632528305, -0.27851471304893494, 0.224332794547081, -0.07105136662721634, -0.0023420199286192656, -0.057727012783288956, -0.03634710982441902, 0.3138706088066101, 0.26497316360473633, -0.02496872842311859, -0.14483612775802612, 0.03129732236266136, -0.3428860604763031, -0.5328404903411865, -0.18275971710681915, -0.09211304038763046, -0.055565930902957916, -0.3752448260784149, -0.23530247807502747, 0.0012924178736284375, -0.03421694040298462, 0.32511985301971436, -0.34579259157180786, 0.10711190849542618, -0.08148691058158875, 0.25643908977508545, 0.2027496099472046, 0.24466532468795776, 0.08152776956558228, 0.08597920835018158, -0.0004907236434519291, 0.02170354314148426, 0.07945907860994339, -0.07610584050416946, 0.029265405610203743, -0.5357478857040405, -0.007609605323523283, 0.18022504448890686, -0.2189747542142868, 0.09660166501998901, -0.1721358448266983, -0.24404701590538025, 0.33348676562309265, 0.2945499122142792, 0.2313254028558731, -0.016874415799975395, -0.2363976091146469, -0.03669773414731026, -0.08702362328767776, 0.017666883766651154, -0.4158300459384918, -0.04711608588695526, 0.23127341270446777, 0.09949228167533875, -0.24752147495746613, -0.5549658536911011, 0.050532374531030655, -0.28037020564079285, 0.23421193659305573, -0.18691891431808472, 0.012241188436746597, 0.29079943895339966, -0.010866756550967693, 0.07636668533086777, 0.12535075843334198, 0.455619752407074, -0.26994624733924866, -0.2456304430961609, -0.1167413741350174, -0.1367756724357605, 0.26941877603530884, -0.24231816828250885, 0.10417512059211731, 0.13321156799793243, 0.28804200887680054, 0.06991221755743027, -0.14379334449768066, -0.2840699851512909, -0.03353969007730484, -0.06324972957372665, 0.35158997774124146, -0.11243927478790283, -0.06809698045253754, -0.05491200089454651, 0.1918903887271881, -0.07184747606515884, -0.04259641095995903, -0.1829977035522461, 0.14188414812088013, -0.1370600461959839, 0.002572240075096488, -0.10608584433794022, -0.26661014556884766, 0.15923018753528595, 0.15926788747310638, -0.04668405279517174, -0.20221205055713654, 0.05674021691083908, 0.3628476858139038, 0.2240990251302719, -0.11801287531852722, -0.05595345050096512, 0.23741424083709717, -0.277138888835907, -0.024403030052781105, 0.19475972652435303, 0.31331583857536316, -0.39615628123283386, -0.07240130752325058, 0.1133527159690857, -0.06366726756095886, -0.035285964608192444, 0.3836368918418884, 0.023763518780469894, -0.09594621509313583, -0.23546342551708221, 0.5163629055023193, 0.25156500935554504, -0.2773793637752533, -0.030320851132273674, -0.08206725865602493, -0.2577815055847168, -0.366769939661026, 0.41690564155578613, 0.10811793804168701, 0.27233782410621643, -0.16780425608158112, 0.05007890984416008, 0.12599174678325653, 0.009748277254402637, 0.07444075495004654, -0.23546822369098663, -0.2326941341161728, 0.01440001092851162, 0.35787639021873474, 0.152786985039711, -0.04642440006136894, 0.10611125826835632, -0.6398224830627441, 0.2133341282606125, -0.18333521485328674, 0.34580159187316895, -0.20012997090816498, 0.321870356798172, 0.2531155049800873, 0.3038591742515564, -0.18021607398986816, -0.02884301356971264, 0.25835737586021423, -0.006052578799426556, 0.0847296193242073, 0.1501159816980362, -0.32978761196136475, 0.18298551440238953, 0.2052363157272339, 0.09797446429729462, 0.37194734811782837, 0.1787450760602951, -0.12051980197429657, -0.0592818558216095, -0.3213268518447876, -0.31711068749427795, 0.26823505759239197, -0.4108473062515259, -0.1616099327802658, -0.06389512121677399, 0.18012073636054993, -0.08236932009458542, -0.09733541309833527, -0.20098917186260223, 0.06823042035102844, -0.06530533730983734, -0.1773657351732254, 0.07424510270357132, 0.09712111204862595, 0.010960204526782036, 0.139976367354393, 0.7356367707252502, 0.08824849128723145, -0.012933731079101562, 0.392328679561615, 0.051309872418642044, -0.3214663565158844, 0.04511193558573723, -0.06335479766130447, 0.11671163886785507, 0.17665384709835052, 0.10426642000675201, 0.31330999732017517, 0.06925774365663528, -0.12432015687227249, 0.24170905351638794, 0.011996736750006676, 0.09567604959011078, -0.09153293073177338, -0.07107635587453842, -0.15171627700328827, -0.03729455918073654, 0.03432665020227432, 0.0889226421713829, 0.5157924294471741, 0.11084361374378204, -0.1289280205965042, 0.06316470354795456, -0.31334757804870605, 0.18517890572547913, 0.092791348695755, 0.038428232073783875, 0.06738118082284927, 0.20707391202449799, 0.2541511356830597, 0.15730619430541992, -0.195621520280838, 0.07911281287670135, -0.15393227338790894, -0.04340946674346924, 0.07455206662416458, 0.02085426077246666, 0.19056637585163116, 0.07419228553771973, -0.4210660457611084, -0.25783321261405945, -0.22935092449188232, 0.18607071042060852, 0.07887212187051773, -0.004444312769919634, -0.12328340113162994, 0.15292038023471832, 0.18435195088386536, -0.02385135181248188, 0.00932739581912756, -0.003787839086726308, -0.1900690197944641, 0.32927146553993225, -0.0032452086452394724, -0.45333585143089294, 0.12772607803344727, -0.0302592683583498, 0.23318636417388916, 0.04453703761100769, -0.2581404149532318, -0.2538296580314636, -0.33645007014274597, 0.2346995770931244, 0.10628893971443176, 0.12659627199172974, 0.2059866189956665, 0.14176610112190247, 0.015466365031898022, 0.013570779003202915, -0.2967798709869385, 0.025555837899446487, -0.1027088388800621, -0.14332161843776703, -0.11807259172201157, -0.08990955352783203, -0.24877962470054626, -0.139106884598732, -0.18068011105060577, 0.08141770213842392, 0.004425308667123318, -0.09957756102085114, -0.3122890591621399, -0.10336174070835114, -0.04481010138988495, -0.03977717459201813, -0.13424435257911682, -0.28350281715393066, -0.44755828380584717, 0.2205514907836914, -0.029618317261338234, 0.1916072517633438, -0.17398464679718018, -0.04441731423139572, -0.14749130606651306, 0.051903702318668365, -0.12440858036279678, -0.31035834550857544, 0.11497079581022263, 0.029595667496323586, -0.12968450784683228, -0.07773103564977646, -0.10695044696331024, -0.08453641086816788, 0.039226826280355453, 0.6252667903900146, 0.02865184284746647, -0.039396021515131, 0.0034731042105704546, 0.12079735845327377, 0.06736857444047928, 0.28900066018104553, 0.28873634338378906, -0.009235559031367302, -0.15084438025951385, -0.0029461849480867386, 0.21201886236667633, 0.310398668050766, -0.05779287964105606, -0.44866135716438293, -0.1834743618965149, 0.26422029733657837, -0.019840963184833527, 0.6879945397377014, -0.03932344540953636, -0.20733392238616943, 0.11669038981199265, -0.14267554879188538, 0.29668089747428894, -0.003303497564047575, -0.0924348458647728, 0.24203990399837494, 0.2540544867515564, -0.274122953414917, -0.027571042999625206, -0.20323529839515686, -0.2172584980726242, 0.09842652082443237, 0.06800100207328796, -0.06196846812963486, -0.24922671914100647, -0.043198905885219574, 0.08021362870931625, 0.45001327991485596, 0.06836827844381332, 0.13164687156677246, -0.24853040277957916, 0.1404668092727661, 0.14833512902259827, 0.16945324838161469, 0.27450647950172424, -0.22149929404258728, 0.09086135029792786, -0.009834389202296734, -0.3193863332271576, 0.23366719484329224, 0.08531143516302109, 0.300117552280426, 0.01844840869307518, -0.30163243412971497, 0.19524477422237396, -0.28131192922592163, 0.6698226928710938, -0.08812712132930756, -0.1427498757839203, 0.08449676632881165, 0.08529046177864075, -0.3253358006477356, -0.007390972226858139, 0.06920947134494781, 0.34509700536727905, 0.15091572701931, 0.2555367052555084, -0.4040537178516388, -0.19163905084133148, 0.22014273703098297, -0.04385373741388321, -0.13932353258132935, -0.4169158935546875, -0.09573126584291458, -0.09547644853591919, -0.24548779428005219, 0.27164047956466675, -0.018331091850996017, -0.04862317815423012, 0.11144876480102539, -0.17153306305408478, -0.4967261552810669, 0.00329972174949944, 0.026171166449785233, 0.17321665585041046, -0.1006120815873146, 0.04979030415415764, 0.38801902532577515, -0.0022057839669287205, -0.09888048470020294, 0.13129296898841858, 0.10561081767082214, 0.09816552698612213, 0.36733871698379517, 0.14960038661956787, 0.007215022575110197, 0.05044171214103699, 0.169656440615654, 0.0948287770152092, 0.1032317653298378, -0.3547782301902771, 0.033797770738601685, -0.24259193241596222, -0.07632943987846375, -0.009653246961534023, 0.3417239189147949, -0.04937991127371788, -0.24326443672180176, 0.3187004029750824, -0.010056267492473125, -0.16416926681995392, -0.24440951645374298, 0.43200600147247314, -0.04521248862147331, 0.6982612609863281, 0.07161545008420944, 0.4227198362350464, -0.21774804592132568, 0.05832963064312935, -0.02770722471177578, 0.14095036685466766, 0.08949996531009674, -0.5966725945472717, 0.27805987000465393, -0.2801518738269806, -0.15409128367900848, 0.1864040493965149, -0.0374855138361454, 0.11325501650571823, 0.3849713206291199, 0.3675767779350281, 0.08693850040435791, 0.3521806597709656, 0.010904472321271896, -0.24010469019412994, 0.14006011188030243, -0.10820180922746658, -0.25436800718307495, 0.2157985121011734, 0.14871972799301147, 0.2444225400686264, -0.21617087721824646, -0.023898513987660408, 0.14983299374580383, -0.18428482115268707, 0.25613901019096375, -0.03534718230366707, -0.12342163920402527, 0.33480724692344666, 0.45750343799591064, -0.25008803606033325, -0.26062634587287903, -0.13434523344039917, -0.6012104153633118, 0.05455582216382027, -0.003074096515774727, 0.07558291405439377, 0.08489899337291718, -0.014010022394359112, 0.06671314686536789, -0.09468293935060501, -0.3383060097694397, 0.007171747274696827, 0.07694817334413528, -0.2481846958398819, -0.17387601733207703, 0.2158828228712082, -0.7082304954528809, -0.3287295401096344, 0.20511330664157867, -0.2988663911819458, 0.049181025475263596, -0.01575596258044243, 0.32819241285324097, -0.1439489722251892, -0.1310930997133255, 0.09787777066230774, 0.1034262627363205, -0.2718546986579895, 0.672083854675293, -0.337316632270813, 0.016360443085432053, 0.01203569769859314, 0.3440152704715729, 0.21171551942825317, 0.04573282599449158, 0.0814640000462532, -0.1686500459909439, -0.26467227935791016, -0.21307015419006348, -0.7022055983543396, 0.1853775531053543, 0.26877838373184204, -0.03955273702740669, -0.0913173109292984, -0.5154584050178528, 0.14778561890125275, -0.39701589941978455, -0.012991135939955711, 0.11046048253774643, -0.4760311245918274, -0.17739558219909668, -0.3686239719390869, 0.19486621022224426, 0.16874286532402039, 0.4251123070716858, 0.2839125692844391, 0.07629583775997162, -0.4782853126525879, -0.04203280434012413, -0.3161086440086365, -0.006946575827896595, 0.008534163236618042, 0.20975294709205627, 0.2692435085773468, -0.2237919718027115, 0.026770010590553284, 0.04496382921934128, 0.18151117861270905, 0.12166470289230347, -0.10175009816884995, -0.2320009469985962, 0.30302518606185913, 0.06586439907550812, 0.0944085568189621, 0.4269428551197052, -0.0821678414940834, -0.10989414900541306, -0.30530649423599243, -0.1700516790151596, 0.4064728319644928, 0.11060184240341187, -0.37072956562042236, -0.026733841747045517, 0.3114248514175415, -0.05006961524486542, 0.12966613471508026, 0.5225722193717957, 0.4114125967025757, 0.13744254410266876, -0.21708716452121735, 0.5186088681221008, -0.23239028453826904, 0.04411029443144798, 0.3670928180217743, 0.2691371738910675, 0.22534853219985962, 0.17295871675014496, 0.003802380757406354, 0.1241442933678627, -0.2543223202228546, 0.040067851543426514, 0.6586116552352905, 0.4928215444087982, 0.3612264394760132, -0.3558276891708374, 0.01848488301038742, 0.230978325009346, -0.21699325740337372, -0.1585831344127655, 0.558480441570282, -0.2976125180721283, 0.6102125644683838, 0.20111502707004547, 0.45850202441215515, 0.13355426490306854, -0.12000115215778351, 0.08723564445972443, 0.1108115091919899, 0.20262056589126587, -0.22872255742549896, -0.2376023530960083, 0.021618878468871117, -0.0617864616215229, 0.2897350788116455, -0.14262151718139648, 0.3153962194919586, 0.9709669947624207, -0.1667764037847519, 0.701324999332428, 0.15583184361457825, 0.04993847757577896, -0.008686728775501251, -0.19312652945518494, 0.5427348613739014, 0.10192378610372543, 0.3573799431324005, 0.14380799233913422, 0.13205520808696747, 0.3489201068878174, 0.12067973613739014, -0.21033480763435364, -0.28193631768226624, 0.21787327527999878, -0.2332637459039688, -0.22337983548641205, 0.38342583179473877, -0.0950765311717987, 0.03682328015565872, 0.03540603816509247, -0.016120506450533867, -0.006870407145470381, 0.3030068576335907, -0.16871927678585052, 0.29032233357429504, 0.2956767678260803, 0.12993136048316956, 0.23774468898773193, 0.28332024812698364, -0.07468705624341965, -0.12301229685544968, 0.01588239148259163, -0.013660942204296589, -0.06089396774768829, 0.1258181482553482, 0.06604670733213425, -0.1148136705160141, 0.10281231254339218, 0.2561715841293335, 0.01923764869570732, 0.008589474484324455, -0.2849317491054535, 0.033858150243759155, -0.3887956142425537, -0.037114862352609634, 0.3359081447124481, 0.11048322916030884, -0.21989750862121582, -0.5509698390960693, 0.06383286416530609, 0.07752539962530136, 0.0005554966628551483, -0.2247244119644165, 0.03888722136616707, -0.33188754320144653, 0.06366557627916336, 0.15589813888072968, -0.2576231360435486, -0.43146201968193054, 0.21979334950447083, -0.5598781704902649, -0.05673696845769882, 0.12032944709062576, 0.07321567833423615, -0.2620742917060852, 0.571392297744751, -0.09542997181415558, 0.30423009395599365, 0.03041609190404415, 0.038878604769706726, -0.2711058557033539, 0.29969361424446106, -0.10501448810100555, 0.13826116919517517, -0.336672306060791, 0.43722981214523315, 0.21022944152355194, -0.012051736935973167, 0.41268593072891235, 0.13569360971450806, 0.16400662064552307, 0.42071589827537537, -0.21148742735385895, 0.19726857542991638, -0.3063652217388153, -0.4552590250968933, 0.18392567336559296, -0.3151111602783203, 0.15969811379909515, 0.2635115683078766, 0.06953097134828568, 0.13269095122814178, -0.023630257695913315, 0.2467518299818039, -0.533249020576477, 0.5072774291038513, -0.0756295770406723, 0.3371918499469757, -0.2067309021949768, 0.013019131496548653, -0.5133357048034668, -0.3321557641029358, -0.3217625319957733, 0.06563819199800491, -0.1348838359117508, -0.19066834449768066, -0.08335402607917786, -0.3476395606994629, 0.16280493140220642, 0.31887421011924744, 0.04505399987101555, -0.00015045315376482904, 0.1928245574235916, 0.16862830519676208, -0.37702682614326477, 0.10879205167293549, -0.06497826427221298, 0.22903792560100555, 0.2357947826385498, 0.09344729036092758, -0.0370764434337616, -0.10469187051057816, 0.17223741114139557, -0.17953424155712128, -0.1562102884054184, -0.5025671124458313, 0.12703855335712433, 0.38669130206108093, 0.08671337366104126, -0.2168150544166565, -0.2601381242275238, 0.003099455265328288, 0.18102163076400757, 0.09492525458335876, 0.3426593542098999, 0.1125728189945221, -0.33408939838409424, -0.18278628587722778, -0.312158465385437, 0.011983747594058514, -0.12209860980510712, -0.14230823516845703, -0.23046863079071045 ]
https://github.com/huggingface/datasets/issues/1965
Can we parallelized the add_faiss_index process over dataset shards ?
Actually, you are right. I also had the same idea. I am trying this in the context of end-ton-end retrieval training in RAG. So far I have parallelized the embedding re-computation within the training loop by using datasets shards. Then I was thinking of can I calculate the indexes for each shard and combined them with **concatenate** before I save.
I am thinking of making the **add_faiss_index** process faster. What if we run the add_faiss_index process on separate dataset shards and then combine them before (dataset.concatenate) saving the faiss.index file ? I feel theoretically this will reduce the accuracy of retrieval since it affects the indexing process. @lhoestq
60
Can we parallelized the add_faiss_index process over dataset shards ?
[ -0.5191422700881958, 0.018097443506121635, -0.24734126031398773, 0.05070125311613083, -0.2641361355781555, 0.21948835253715515, 0.5797526240348816, 0.10292130708694458, 0.3235553205013275, 0.1889716535806656, -0.1406574696302414, 0.08990705013275146, 0.09929607063531876, 0.18317309021949768, -0.10149990022182465, 0.4139242172241211, 0.22083772718906403, 0.1232750192284584, -0.21225987374782562, 0.020861851051449776, -0.14759406447410583, -0.14860095083713531, 0.09686887264251709, -0.24167579412460327, -0.22527137398719788, 0.021859560161828995, -0.21710577607154846, 0.2075321525335312, -0.0004611079639289528, -0.2111838459968567, -0.06761262565851212, 0.3548230230808258, -0.1620163768529892, 0.1623712033033371, -0.00011079254909418523, 0.1206476017832756, 0.2035173624753952, 0.0750432163476944, -0.08723298460245132, 0.7610898017883301, -0.3877255916595459, -0.011985675431787968, -0.17599406838417053, -0.4006524384021759, -0.10169936716556549, -0.14689947664737701, 0.1845727413892746, -0.17802472412586212, -0.13042110204696655, -0.20939654111862183, 0.15690027177333832, 0.016448887065052986, 0.04529384523630142, -0.17353303730487823, 0.16532480716705322, -0.26468926668167114, -0.08303610235452652, -0.060167424380779266, 0.12149932235479355, 0.12199171632528305, -0.27851471304893494, 0.224332794547081, -0.07105136662721634, -0.0023420199286192656, -0.057727012783288956, -0.03634710982441902, 0.3138706088066101, 0.26497316360473633, -0.02496872842311859, -0.14483612775802612, 0.03129732236266136, -0.3428860604763031, -0.5328404903411865, -0.18275971710681915, -0.09211304038763046, -0.055565930902957916, -0.3752448260784149, -0.23530247807502747, 0.0012924178736284375, -0.03421694040298462, 0.32511985301971436, -0.34579259157180786, 0.10711190849542618, -0.08148691058158875, 0.25643908977508545, 0.2027496099472046, 0.24466532468795776, 0.08152776956558228, 0.08597920835018158, -0.0004907236434519291, 0.02170354314148426, 0.07945907860994339, -0.07610584050416946, 0.029265405610203743, -0.5357478857040405, -0.007609605323523283, 0.18022504448890686, -0.2189747542142868, 0.09660166501998901, -0.1721358448266983, -0.24404701590538025, 0.33348676562309265, 0.2945499122142792, 0.2313254028558731, -0.016874415799975395, -0.2363976091146469, -0.03669773414731026, -0.08702362328767776, 0.017666883766651154, -0.4158300459384918, -0.04711608588695526, 0.23127341270446777, 0.09949228167533875, -0.24752147495746613, -0.5549658536911011, 0.050532374531030655, -0.28037020564079285, 0.23421193659305573, -0.18691891431808472, 0.012241188436746597, 0.29079943895339966, -0.010866756550967693, 0.07636668533086777, 0.12535075843334198, 0.455619752407074, -0.26994624733924866, -0.2456304430961609, -0.1167413741350174, -0.1367756724357605, 0.26941877603530884, -0.24231816828250885, 0.10417512059211731, 0.13321156799793243, 0.28804200887680054, 0.06991221755743027, -0.14379334449768066, -0.2840699851512909, -0.03353969007730484, -0.06324972957372665, 0.35158997774124146, -0.11243927478790283, -0.06809698045253754, -0.05491200089454651, 0.1918903887271881, -0.07184747606515884, -0.04259641095995903, -0.1829977035522461, 0.14188414812088013, -0.1370600461959839, 0.002572240075096488, -0.10608584433794022, -0.26661014556884766, 0.15923018753528595, 0.15926788747310638, -0.04668405279517174, -0.20221205055713654, 0.05674021691083908, 0.3628476858139038, 0.2240990251302719, -0.11801287531852722, -0.05595345050096512, 0.23741424083709717, -0.277138888835907, -0.024403030052781105, 0.19475972652435303, 0.31331583857536316, -0.39615628123283386, -0.07240130752325058, 0.1133527159690857, -0.06366726756095886, -0.035285964608192444, 0.3836368918418884, 0.023763518780469894, -0.09594621509313583, -0.23546342551708221, 0.5163629055023193, 0.25156500935554504, -0.2773793637752533, -0.030320851132273674, -0.08206725865602493, -0.2577815055847168, -0.366769939661026, 0.41690564155578613, 0.10811793804168701, 0.27233782410621643, -0.16780425608158112, 0.05007890984416008, 0.12599174678325653, 0.009748277254402637, 0.07444075495004654, -0.23546822369098663, -0.2326941341161728, 0.01440001092851162, 0.35787639021873474, 0.152786985039711, -0.04642440006136894, 0.10611125826835632, -0.6398224830627441, 0.2133341282606125, -0.18333521485328674, 0.34580159187316895, -0.20012997090816498, 0.321870356798172, 0.2531155049800873, 0.3038591742515564, -0.18021607398986816, -0.02884301356971264, 0.25835737586021423, -0.006052578799426556, 0.0847296193242073, 0.1501159816980362, -0.32978761196136475, 0.18298551440238953, 0.2052363157272339, 0.09797446429729462, 0.37194734811782837, 0.1787450760602951, -0.12051980197429657, -0.0592818558216095, -0.3213268518447876, -0.31711068749427795, 0.26823505759239197, -0.4108473062515259, -0.1616099327802658, -0.06389512121677399, 0.18012073636054993, -0.08236932009458542, -0.09733541309833527, -0.20098917186260223, 0.06823042035102844, -0.06530533730983734, -0.1773657351732254, 0.07424510270357132, 0.09712111204862595, 0.010960204526782036, 0.139976367354393, 0.7356367707252502, 0.08824849128723145, -0.012933731079101562, 0.392328679561615, 0.051309872418642044, -0.3214663565158844, 0.04511193558573723, -0.06335479766130447, 0.11671163886785507, 0.17665384709835052, 0.10426642000675201, 0.31330999732017517, 0.06925774365663528, -0.12432015687227249, 0.24170905351638794, 0.011996736750006676, 0.09567604959011078, -0.09153293073177338, -0.07107635587453842, -0.15171627700328827, -0.03729455918073654, 0.03432665020227432, 0.0889226421713829, 0.5157924294471741, 0.11084361374378204, -0.1289280205965042, 0.06316470354795456, -0.31334757804870605, 0.18517890572547913, 0.092791348695755, 0.038428232073783875, 0.06738118082284927, 0.20707391202449799, 0.2541511356830597, 0.15730619430541992, -0.195621520280838, 0.07911281287670135, -0.15393227338790894, -0.04340946674346924, 0.07455206662416458, 0.02085426077246666, 0.19056637585163116, 0.07419228553771973, -0.4210660457611084, -0.25783321261405945, -0.22935092449188232, 0.18607071042060852, 0.07887212187051773, -0.004444312769919634, -0.12328340113162994, 0.15292038023471832, 0.18435195088386536, -0.02385135181248188, 0.00932739581912756, -0.003787839086726308, -0.1900690197944641, 0.32927146553993225, -0.0032452086452394724, -0.45333585143089294, 0.12772607803344727, -0.0302592683583498, 0.23318636417388916, 0.04453703761100769, -0.2581404149532318, -0.2538296580314636, -0.33645007014274597, 0.2346995770931244, 0.10628893971443176, 0.12659627199172974, 0.2059866189956665, 0.14176610112190247, 0.015466365031898022, 0.013570779003202915, -0.2967798709869385, 0.025555837899446487, -0.1027088388800621, -0.14332161843776703, -0.11807259172201157, -0.08990955352783203, -0.24877962470054626, -0.139106884598732, -0.18068011105060577, 0.08141770213842392, 0.004425308667123318, -0.09957756102085114, -0.3122890591621399, -0.10336174070835114, -0.04481010138988495, -0.03977717459201813, -0.13424435257911682, -0.28350281715393066, -0.44755828380584717, 0.2205514907836914, -0.029618317261338234, 0.1916072517633438, -0.17398464679718018, -0.04441731423139572, -0.14749130606651306, 0.051903702318668365, -0.12440858036279678, -0.31035834550857544, 0.11497079581022263, 0.029595667496323586, -0.12968450784683228, -0.07773103564977646, -0.10695044696331024, -0.08453641086816788, 0.039226826280355453, 0.6252667903900146, 0.02865184284746647, -0.039396021515131, 0.0034731042105704546, 0.12079735845327377, 0.06736857444047928, 0.28900066018104553, 0.28873634338378906, -0.009235559031367302, -0.15084438025951385, -0.0029461849480867386, 0.21201886236667633, 0.310398668050766, -0.05779287964105606, -0.44866135716438293, -0.1834743618965149, 0.26422029733657837, -0.019840963184833527, 0.6879945397377014, -0.03932344540953636, -0.20733392238616943, 0.11669038981199265, -0.14267554879188538, 0.29668089747428894, -0.003303497564047575, -0.0924348458647728, 0.24203990399837494, 0.2540544867515564, -0.274122953414917, -0.027571042999625206, -0.20323529839515686, -0.2172584980726242, 0.09842652082443237, 0.06800100207328796, -0.06196846812963486, -0.24922671914100647, -0.043198905885219574, 0.08021362870931625, 0.45001327991485596, 0.06836827844381332, 0.13164687156677246, -0.24853040277957916, 0.1404668092727661, 0.14833512902259827, 0.16945324838161469, 0.27450647950172424, -0.22149929404258728, 0.09086135029792786, -0.009834389202296734, -0.3193863332271576, 0.23366719484329224, 0.08531143516302109, 0.300117552280426, 0.01844840869307518, -0.30163243412971497, 0.19524477422237396, -0.28131192922592163, 0.6698226928710938, -0.08812712132930756, -0.1427498757839203, 0.08449676632881165, 0.08529046177864075, -0.3253358006477356, -0.007390972226858139, 0.06920947134494781, 0.34509700536727905, 0.15091572701931, 0.2555367052555084, -0.4040537178516388, -0.19163905084133148, 0.22014273703098297, -0.04385373741388321, -0.13932353258132935, -0.4169158935546875, -0.09573126584291458, -0.09547644853591919, -0.24548779428005219, 0.27164047956466675, -0.018331091850996017, -0.04862317815423012, 0.11144876480102539, -0.17153306305408478, -0.4967261552810669, 0.00329972174949944, 0.026171166449785233, 0.17321665585041046, -0.1006120815873146, 0.04979030415415764, 0.38801902532577515, -0.0022057839669287205, -0.09888048470020294, 0.13129296898841858, 0.10561081767082214, 0.09816552698612213, 0.36733871698379517, 0.14960038661956787, 0.007215022575110197, 0.05044171214103699, 0.169656440615654, 0.0948287770152092, 0.1032317653298378, -0.3547782301902771, 0.033797770738601685, -0.24259193241596222, -0.07632943987846375, -0.009653246961534023, 0.3417239189147949, -0.04937991127371788, -0.24326443672180176, 0.3187004029750824, -0.010056267492473125, -0.16416926681995392, -0.24440951645374298, 0.43200600147247314, -0.04521248862147331, 0.6982612609863281, 0.07161545008420944, 0.4227198362350464, -0.21774804592132568, 0.05832963064312935, -0.02770722471177578, 0.14095036685466766, 0.08949996531009674, -0.5966725945472717, 0.27805987000465393, -0.2801518738269806, -0.15409128367900848, 0.1864040493965149, -0.0374855138361454, 0.11325501650571823, 0.3849713206291199, 0.3675767779350281, 0.08693850040435791, 0.3521806597709656, 0.010904472321271896, -0.24010469019412994, 0.14006011188030243, -0.10820180922746658, -0.25436800718307495, 0.2157985121011734, 0.14871972799301147, 0.2444225400686264, -0.21617087721824646, -0.023898513987660408, 0.14983299374580383, -0.18428482115268707, 0.25613901019096375, -0.03534718230366707, -0.12342163920402527, 0.33480724692344666, 0.45750343799591064, -0.25008803606033325, -0.26062634587287903, -0.13434523344039917, -0.6012104153633118, 0.05455582216382027, -0.003074096515774727, 0.07558291405439377, 0.08489899337291718, -0.014010022394359112, 0.06671314686536789, -0.09468293935060501, -0.3383060097694397, 0.007171747274696827, 0.07694817334413528, -0.2481846958398819, -0.17387601733207703, 0.2158828228712082, -0.7082304954528809, -0.3287295401096344, 0.20511330664157867, -0.2988663911819458, 0.049181025475263596, -0.01575596258044243, 0.32819241285324097, -0.1439489722251892, -0.1310930997133255, 0.09787777066230774, 0.1034262627363205, -0.2718546986579895, 0.672083854675293, -0.337316632270813, 0.016360443085432053, 0.01203569769859314, 0.3440152704715729, 0.21171551942825317, 0.04573282599449158, 0.0814640000462532, -0.1686500459909439, -0.26467227935791016, -0.21307015419006348, -0.7022055983543396, 0.1853775531053543, 0.26877838373184204, -0.03955273702740669, -0.0913173109292984, -0.5154584050178528, 0.14778561890125275, -0.39701589941978455, -0.012991135939955711, 0.11046048253774643, -0.4760311245918274, -0.17739558219909668, -0.3686239719390869, 0.19486621022224426, 0.16874286532402039, 0.4251123070716858, 0.2839125692844391, 0.07629583775997162, -0.4782853126525879, -0.04203280434012413, -0.3161086440086365, -0.006946575827896595, 0.008534163236618042, 0.20975294709205627, 0.2692435085773468, -0.2237919718027115, 0.026770010590553284, 0.04496382921934128, 0.18151117861270905, 0.12166470289230347, -0.10175009816884995, -0.2320009469985962, 0.30302518606185913, 0.06586439907550812, 0.0944085568189621, 0.4269428551197052, -0.0821678414940834, -0.10989414900541306, -0.30530649423599243, -0.1700516790151596, 0.4064728319644928, 0.11060184240341187, -0.37072956562042236, -0.026733841747045517, 0.3114248514175415, -0.05006961524486542, 0.12966613471508026, 0.5225722193717957, 0.4114125967025757, 0.13744254410266876, -0.21708716452121735, 0.5186088681221008, -0.23239028453826904, 0.04411029443144798, 0.3670928180217743, 0.2691371738910675, 0.22534853219985962, 0.17295871675014496, 0.003802380757406354, 0.1241442933678627, -0.2543223202228546, 0.040067851543426514, 0.6586116552352905, 0.4928215444087982, 0.3612264394760132, -0.3558276891708374, 0.01848488301038742, 0.230978325009346, -0.21699325740337372, -0.1585831344127655, 0.558480441570282, -0.2976125180721283, 0.6102125644683838, 0.20111502707004547, 0.45850202441215515, 0.13355426490306854, -0.12000115215778351, 0.08723564445972443, 0.1108115091919899, 0.20262056589126587, -0.22872255742549896, -0.2376023530960083, 0.021618878468871117, -0.0617864616215229, 0.2897350788116455, -0.14262151718139648, 0.3153962194919586, 0.9709669947624207, -0.1667764037847519, 0.701324999332428, 0.15583184361457825, 0.04993847757577896, -0.008686728775501251, -0.19312652945518494, 0.5427348613739014, 0.10192378610372543, 0.3573799431324005, 0.14380799233913422, 0.13205520808696747, 0.3489201068878174, 0.12067973613739014, -0.21033480763435364, -0.28193631768226624, 0.21787327527999878, -0.2332637459039688, -0.22337983548641205, 0.38342583179473877, -0.0950765311717987, 0.03682328015565872, 0.03540603816509247, -0.016120506450533867, -0.006870407145470381, 0.3030068576335907, -0.16871927678585052, 0.29032233357429504, 0.2956767678260803, 0.12993136048316956, 0.23774468898773193, 0.28332024812698364, -0.07468705624341965, -0.12301229685544968, 0.01588239148259163, -0.013660942204296589, -0.06089396774768829, 0.1258181482553482, 0.06604670733213425, -0.1148136705160141, 0.10281231254339218, 0.2561715841293335, 0.01923764869570732, 0.008589474484324455, -0.2849317491054535, 0.033858150243759155, -0.3887956142425537, -0.037114862352609634, 0.3359081447124481, 0.11048322916030884, -0.21989750862121582, -0.5509698390960693, 0.06383286416530609, 0.07752539962530136, 0.0005554966628551483, -0.2247244119644165, 0.03888722136616707, -0.33188754320144653, 0.06366557627916336, 0.15589813888072968, -0.2576231360435486, -0.43146201968193054, 0.21979334950447083, -0.5598781704902649, -0.05673696845769882, 0.12032944709062576, 0.07321567833423615, -0.2620742917060852, 0.571392297744751, -0.09542997181415558, 0.30423009395599365, 0.03041609190404415, 0.038878604769706726, -0.2711058557033539, 0.29969361424446106, -0.10501448810100555, 0.13826116919517517, -0.336672306060791, 0.43722981214523315, 0.21022944152355194, -0.012051736935973167, 0.41268593072891235, 0.13569360971450806, 0.16400662064552307, 0.42071589827537537, -0.21148742735385895, 0.19726857542991638, -0.3063652217388153, -0.4552590250968933, 0.18392567336559296, -0.3151111602783203, 0.15969811379909515, 0.2635115683078766, 0.06953097134828568, 0.13269095122814178, -0.023630257695913315, 0.2467518299818039, -0.533249020576477, 0.5072774291038513, -0.0756295770406723, 0.3371918499469757, -0.2067309021949768, 0.013019131496548653, -0.5133357048034668, -0.3321557641029358, -0.3217625319957733, 0.06563819199800491, -0.1348838359117508, -0.19066834449768066, -0.08335402607917786, -0.3476395606994629, 0.16280493140220642, 0.31887421011924744, 0.04505399987101555, -0.00015045315376482904, 0.1928245574235916, 0.16862830519676208, -0.37702682614326477, 0.10879205167293549, -0.06497826427221298, 0.22903792560100555, 0.2357947826385498, 0.09344729036092758, -0.0370764434337616, -0.10469187051057816, 0.17223741114139557, -0.17953424155712128, -0.1562102884054184, -0.5025671124458313, 0.12703855335712433, 0.38669130206108093, 0.08671337366104126, -0.2168150544166565, -0.2601381242275238, 0.003099455265328288, 0.18102163076400757, 0.09492525458335876, 0.3426593542098999, 0.1125728189945221, -0.33408939838409424, -0.18278628587722778, -0.312158465385437, 0.011983747594058514, -0.12209860980510712, -0.14230823516845703, -0.23046863079071045 ]
https://github.com/huggingface/datasets/issues/1965
Can we parallelized the add_faiss_index process over dataset shards ?
@lhoestq As you mentioned faiss is already using multiprocessing. I tried to do the add_index with faiss for a dataset object inside a RAY actor and the process became very slow... if fact it takes so much time. It is because a ray actor comes with a single CPU core unless we assign it more. I also tried assigning more cores but still running add_index in the main process is very fast.
I am thinking of making the **add_faiss_index** process faster. What if we run the add_faiss_index process on separate dataset shards and then combine them before (dataset.concatenate) saving the faiss.index file ? I feel theoretically this will reduce the accuracy of retrieval since it affects the indexing process. @lhoestq
72
Can we parallelized the add_faiss_index process over dataset shards ?
[ -0.5191422700881958, 0.018097443506121635, -0.24734126031398773, 0.05070125311613083, -0.2641361355781555, 0.21948835253715515, 0.5797526240348816, 0.10292130708694458, 0.3235553205013275, 0.1889716535806656, -0.1406574696302414, 0.08990705013275146, 0.09929607063531876, 0.18317309021949768, -0.10149990022182465, 0.4139242172241211, 0.22083772718906403, 0.1232750192284584, -0.21225987374782562, 0.020861851051449776, -0.14759406447410583, -0.14860095083713531, 0.09686887264251709, -0.24167579412460327, -0.22527137398719788, 0.021859560161828995, -0.21710577607154846, 0.2075321525335312, -0.0004611079639289528, -0.2111838459968567, -0.06761262565851212, 0.3548230230808258, -0.1620163768529892, 0.1623712033033371, -0.00011079254909418523, 0.1206476017832756, 0.2035173624753952, 0.0750432163476944, -0.08723298460245132, 0.7610898017883301, -0.3877255916595459, -0.011985675431787968, -0.17599406838417053, -0.4006524384021759, -0.10169936716556549, -0.14689947664737701, 0.1845727413892746, -0.17802472412586212, -0.13042110204696655, -0.20939654111862183, 0.15690027177333832, 0.016448887065052986, 0.04529384523630142, -0.17353303730487823, 0.16532480716705322, -0.26468926668167114, -0.08303610235452652, -0.060167424380779266, 0.12149932235479355, 0.12199171632528305, -0.27851471304893494, 0.224332794547081, -0.07105136662721634, -0.0023420199286192656, -0.057727012783288956, -0.03634710982441902, 0.3138706088066101, 0.26497316360473633, -0.02496872842311859, -0.14483612775802612, 0.03129732236266136, -0.3428860604763031, -0.5328404903411865, -0.18275971710681915, -0.09211304038763046, -0.055565930902957916, -0.3752448260784149, -0.23530247807502747, 0.0012924178736284375, -0.03421694040298462, 0.32511985301971436, -0.34579259157180786, 0.10711190849542618, -0.08148691058158875, 0.25643908977508545, 0.2027496099472046, 0.24466532468795776, 0.08152776956558228, 0.08597920835018158, -0.0004907236434519291, 0.02170354314148426, 0.07945907860994339, -0.07610584050416946, 0.029265405610203743, -0.5357478857040405, -0.007609605323523283, 0.18022504448890686, -0.2189747542142868, 0.09660166501998901, -0.1721358448266983, -0.24404701590538025, 0.33348676562309265, 0.2945499122142792, 0.2313254028558731, -0.016874415799975395, -0.2363976091146469, -0.03669773414731026, -0.08702362328767776, 0.017666883766651154, -0.4158300459384918, -0.04711608588695526, 0.23127341270446777, 0.09949228167533875, -0.24752147495746613, -0.5549658536911011, 0.050532374531030655, -0.28037020564079285, 0.23421193659305573, -0.18691891431808472, 0.012241188436746597, 0.29079943895339966, -0.010866756550967693, 0.07636668533086777, 0.12535075843334198, 0.455619752407074, -0.26994624733924866, -0.2456304430961609, -0.1167413741350174, -0.1367756724357605, 0.26941877603530884, -0.24231816828250885, 0.10417512059211731, 0.13321156799793243, 0.28804200887680054, 0.06991221755743027, -0.14379334449768066, -0.2840699851512909, -0.03353969007730484, -0.06324972957372665, 0.35158997774124146, -0.11243927478790283, -0.06809698045253754, -0.05491200089454651, 0.1918903887271881, -0.07184747606515884, -0.04259641095995903, -0.1829977035522461, 0.14188414812088013, -0.1370600461959839, 0.002572240075096488, -0.10608584433794022, -0.26661014556884766, 0.15923018753528595, 0.15926788747310638, -0.04668405279517174, -0.20221205055713654, 0.05674021691083908, 0.3628476858139038, 0.2240990251302719, -0.11801287531852722, -0.05595345050096512, 0.23741424083709717, -0.277138888835907, -0.024403030052781105, 0.19475972652435303, 0.31331583857536316, -0.39615628123283386, -0.07240130752325058, 0.1133527159690857, -0.06366726756095886, -0.035285964608192444, 0.3836368918418884, 0.023763518780469894, -0.09594621509313583, -0.23546342551708221, 0.5163629055023193, 0.25156500935554504, -0.2773793637752533, -0.030320851132273674, -0.08206725865602493, -0.2577815055847168, -0.366769939661026, 0.41690564155578613, 0.10811793804168701, 0.27233782410621643, -0.16780425608158112, 0.05007890984416008, 0.12599174678325653, 0.009748277254402637, 0.07444075495004654, -0.23546822369098663, -0.2326941341161728, 0.01440001092851162, 0.35787639021873474, 0.152786985039711, -0.04642440006136894, 0.10611125826835632, -0.6398224830627441, 0.2133341282606125, -0.18333521485328674, 0.34580159187316895, -0.20012997090816498, 0.321870356798172, 0.2531155049800873, 0.3038591742515564, -0.18021607398986816, -0.02884301356971264, 0.25835737586021423, -0.006052578799426556, 0.0847296193242073, 0.1501159816980362, -0.32978761196136475, 0.18298551440238953, 0.2052363157272339, 0.09797446429729462, 0.37194734811782837, 0.1787450760602951, -0.12051980197429657, -0.0592818558216095, -0.3213268518447876, -0.31711068749427795, 0.26823505759239197, -0.4108473062515259, -0.1616099327802658, -0.06389512121677399, 0.18012073636054993, -0.08236932009458542, -0.09733541309833527, -0.20098917186260223, 0.06823042035102844, -0.06530533730983734, -0.1773657351732254, 0.07424510270357132, 0.09712111204862595, 0.010960204526782036, 0.139976367354393, 0.7356367707252502, 0.08824849128723145, -0.012933731079101562, 0.392328679561615, 0.051309872418642044, -0.3214663565158844, 0.04511193558573723, -0.06335479766130447, 0.11671163886785507, 0.17665384709835052, 0.10426642000675201, 0.31330999732017517, 0.06925774365663528, -0.12432015687227249, 0.24170905351638794, 0.011996736750006676, 0.09567604959011078, -0.09153293073177338, -0.07107635587453842, -0.15171627700328827, -0.03729455918073654, 0.03432665020227432, 0.0889226421713829, 0.5157924294471741, 0.11084361374378204, -0.1289280205965042, 0.06316470354795456, -0.31334757804870605, 0.18517890572547913, 0.092791348695755, 0.038428232073783875, 0.06738118082284927, 0.20707391202449799, 0.2541511356830597, 0.15730619430541992, -0.195621520280838, 0.07911281287670135, -0.15393227338790894, -0.04340946674346924, 0.07455206662416458, 0.02085426077246666, 0.19056637585163116, 0.07419228553771973, -0.4210660457611084, -0.25783321261405945, -0.22935092449188232, 0.18607071042060852, 0.07887212187051773, -0.004444312769919634, -0.12328340113162994, 0.15292038023471832, 0.18435195088386536, -0.02385135181248188, 0.00932739581912756, -0.003787839086726308, -0.1900690197944641, 0.32927146553993225, -0.0032452086452394724, -0.45333585143089294, 0.12772607803344727, -0.0302592683583498, 0.23318636417388916, 0.04453703761100769, -0.2581404149532318, -0.2538296580314636, -0.33645007014274597, 0.2346995770931244, 0.10628893971443176, 0.12659627199172974, 0.2059866189956665, 0.14176610112190247, 0.015466365031898022, 0.013570779003202915, -0.2967798709869385, 0.025555837899446487, -0.1027088388800621, -0.14332161843776703, -0.11807259172201157, -0.08990955352783203, -0.24877962470054626, -0.139106884598732, -0.18068011105060577, 0.08141770213842392, 0.004425308667123318, -0.09957756102085114, -0.3122890591621399, -0.10336174070835114, -0.04481010138988495, -0.03977717459201813, -0.13424435257911682, -0.28350281715393066, -0.44755828380584717, 0.2205514907836914, -0.029618317261338234, 0.1916072517633438, -0.17398464679718018, -0.04441731423139572, -0.14749130606651306, 0.051903702318668365, -0.12440858036279678, -0.31035834550857544, 0.11497079581022263, 0.029595667496323586, -0.12968450784683228, -0.07773103564977646, -0.10695044696331024, -0.08453641086816788, 0.039226826280355453, 0.6252667903900146, 0.02865184284746647, -0.039396021515131, 0.0034731042105704546, 0.12079735845327377, 0.06736857444047928, 0.28900066018104553, 0.28873634338378906, -0.009235559031367302, -0.15084438025951385, -0.0029461849480867386, 0.21201886236667633, 0.310398668050766, -0.05779287964105606, -0.44866135716438293, -0.1834743618965149, 0.26422029733657837, -0.019840963184833527, 0.6879945397377014, -0.03932344540953636, -0.20733392238616943, 0.11669038981199265, -0.14267554879188538, 0.29668089747428894, -0.003303497564047575, -0.0924348458647728, 0.24203990399837494, 0.2540544867515564, -0.274122953414917, -0.027571042999625206, -0.20323529839515686, -0.2172584980726242, 0.09842652082443237, 0.06800100207328796, -0.06196846812963486, -0.24922671914100647, -0.043198905885219574, 0.08021362870931625, 0.45001327991485596, 0.06836827844381332, 0.13164687156677246, -0.24853040277957916, 0.1404668092727661, 0.14833512902259827, 0.16945324838161469, 0.27450647950172424, -0.22149929404258728, 0.09086135029792786, -0.009834389202296734, -0.3193863332271576, 0.23366719484329224, 0.08531143516302109, 0.300117552280426, 0.01844840869307518, -0.30163243412971497, 0.19524477422237396, -0.28131192922592163, 0.6698226928710938, -0.08812712132930756, -0.1427498757839203, 0.08449676632881165, 0.08529046177864075, -0.3253358006477356, -0.007390972226858139, 0.06920947134494781, 0.34509700536727905, 0.15091572701931, 0.2555367052555084, -0.4040537178516388, -0.19163905084133148, 0.22014273703098297, -0.04385373741388321, -0.13932353258132935, -0.4169158935546875, -0.09573126584291458, -0.09547644853591919, -0.24548779428005219, 0.27164047956466675, -0.018331091850996017, -0.04862317815423012, 0.11144876480102539, -0.17153306305408478, -0.4967261552810669, 0.00329972174949944, 0.026171166449785233, 0.17321665585041046, -0.1006120815873146, 0.04979030415415764, 0.38801902532577515, -0.0022057839669287205, -0.09888048470020294, 0.13129296898841858, 0.10561081767082214, 0.09816552698612213, 0.36733871698379517, 0.14960038661956787, 0.007215022575110197, 0.05044171214103699, 0.169656440615654, 0.0948287770152092, 0.1032317653298378, -0.3547782301902771, 0.033797770738601685, -0.24259193241596222, -0.07632943987846375, -0.009653246961534023, 0.3417239189147949, -0.04937991127371788, -0.24326443672180176, 0.3187004029750824, -0.010056267492473125, -0.16416926681995392, -0.24440951645374298, 0.43200600147247314, -0.04521248862147331, 0.6982612609863281, 0.07161545008420944, 0.4227198362350464, -0.21774804592132568, 0.05832963064312935, -0.02770722471177578, 0.14095036685466766, 0.08949996531009674, -0.5966725945472717, 0.27805987000465393, -0.2801518738269806, -0.15409128367900848, 0.1864040493965149, -0.0374855138361454, 0.11325501650571823, 0.3849713206291199, 0.3675767779350281, 0.08693850040435791, 0.3521806597709656, 0.010904472321271896, -0.24010469019412994, 0.14006011188030243, -0.10820180922746658, -0.25436800718307495, 0.2157985121011734, 0.14871972799301147, 0.2444225400686264, -0.21617087721824646, -0.023898513987660408, 0.14983299374580383, -0.18428482115268707, 0.25613901019096375, -0.03534718230366707, -0.12342163920402527, 0.33480724692344666, 0.45750343799591064, -0.25008803606033325, -0.26062634587287903, -0.13434523344039917, -0.6012104153633118, 0.05455582216382027, -0.003074096515774727, 0.07558291405439377, 0.08489899337291718, -0.014010022394359112, 0.06671314686536789, -0.09468293935060501, -0.3383060097694397, 0.007171747274696827, 0.07694817334413528, -0.2481846958398819, -0.17387601733207703, 0.2158828228712082, -0.7082304954528809, -0.3287295401096344, 0.20511330664157867, -0.2988663911819458, 0.049181025475263596, -0.01575596258044243, 0.32819241285324097, -0.1439489722251892, -0.1310930997133255, 0.09787777066230774, 0.1034262627363205, -0.2718546986579895, 0.672083854675293, -0.337316632270813, 0.016360443085432053, 0.01203569769859314, 0.3440152704715729, 0.21171551942825317, 0.04573282599449158, 0.0814640000462532, -0.1686500459909439, -0.26467227935791016, -0.21307015419006348, -0.7022055983543396, 0.1853775531053543, 0.26877838373184204, -0.03955273702740669, -0.0913173109292984, -0.5154584050178528, 0.14778561890125275, -0.39701589941978455, -0.012991135939955711, 0.11046048253774643, -0.4760311245918274, -0.17739558219909668, -0.3686239719390869, 0.19486621022224426, 0.16874286532402039, 0.4251123070716858, 0.2839125692844391, 0.07629583775997162, -0.4782853126525879, -0.04203280434012413, -0.3161086440086365, -0.006946575827896595, 0.008534163236618042, 0.20975294709205627, 0.2692435085773468, -0.2237919718027115, 0.026770010590553284, 0.04496382921934128, 0.18151117861270905, 0.12166470289230347, -0.10175009816884995, -0.2320009469985962, 0.30302518606185913, 0.06586439907550812, 0.0944085568189621, 0.4269428551197052, -0.0821678414940834, -0.10989414900541306, -0.30530649423599243, -0.1700516790151596, 0.4064728319644928, 0.11060184240341187, -0.37072956562042236, -0.026733841747045517, 0.3114248514175415, -0.05006961524486542, 0.12966613471508026, 0.5225722193717957, 0.4114125967025757, 0.13744254410266876, -0.21708716452121735, 0.5186088681221008, -0.23239028453826904, 0.04411029443144798, 0.3670928180217743, 0.2691371738910675, 0.22534853219985962, 0.17295871675014496, 0.003802380757406354, 0.1241442933678627, -0.2543223202228546, 0.040067851543426514, 0.6586116552352905, 0.4928215444087982, 0.3612264394760132, -0.3558276891708374, 0.01848488301038742, 0.230978325009346, -0.21699325740337372, -0.1585831344127655, 0.558480441570282, -0.2976125180721283, 0.6102125644683838, 0.20111502707004547, 0.45850202441215515, 0.13355426490306854, -0.12000115215778351, 0.08723564445972443, 0.1108115091919899, 0.20262056589126587, -0.22872255742549896, -0.2376023530960083, 0.021618878468871117, -0.0617864616215229, 0.2897350788116455, -0.14262151718139648, 0.3153962194919586, 0.9709669947624207, -0.1667764037847519, 0.701324999332428, 0.15583184361457825, 0.04993847757577896, -0.008686728775501251, -0.19312652945518494, 0.5427348613739014, 0.10192378610372543, 0.3573799431324005, 0.14380799233913422, 0.13205520808696747, 0.3489201068878174, 0.12067973613739014, -0.21033480763435364, -0.28193631768226624, 0.21787327527999878, -0.2332637459039688, -0.22337983548641205, 0.38342583179473877, -0.0950765311717987, 0.03682328015565872, 0.03540603816509247, -0.016120506450533867, -0.006870407145470381, 0.3030068576335907, -0.16871927678585052, 0.29032233357429504, 0.2956767678260803, 0.12993136048316956, 0.23774468898773193, 0.28332024812698364, -0.07468705624341965, -0.12301229685544968, 0.01588239148259163, -0.013660942204296589, -0.06089396774768829, 0.1258181482553482, 0.06604670733213425, -0.1148136705160141, 0.10281231254339218, 0.2561715841293335, 0.01923764869570732, 0.008589474484324455, -0.2849317491054535, 0.033858150243759155, -0.3887956142425537, -0.037114862352609634, 0.3359081447124481, 0.11048322916030884, -0.21989750862121582, -0.5509698390960693, 0.06383286416530609, 0.07752539962530136, 0.0005554966628551483, -0.2247244119644165, 0.03888722136616707, -0.33188754320144653, 0.06366557627916336, 0.15589813888072968, -0.2576231360435486, -0.43146201968193054, 0.21979334950447083, -0.5598781704902649, -0.05673696845769882, 0.12032944709062576, 0.07321567833423615, -0.2620742917060852, 0.571392297744751, -0.09542997181415558, 0.30423009395599365, 0.03041609190404415, 0.038878604769706726, -0.2711058557033539, 0.29969361424446106, -0.10501448810100555, 0.13826116919517517, -0.336672306060791, 0.43722981214523315, 0.21022944152355194, -0.012051736935973167, 0.41268593072891235, 0.13569360971450806, 0.16400662064552307, 0.42071589827537537, -0.21148742735385895, 0.19726857542991638, -0.3063652217388153, -0.4552590250968933, 0.18392567336559296, -0.3151111602783203, 0.15969811379909515, 0.2635115683078766, 0.06953097134828568, 0.13269095122814178, -0.023630257695913315, 0.2467518299818039, -0.533249020576477, 0.5072774291038513, -0.0756295770406723, 0.3371918499469757, -0.2067309021949768, 0.013019131496548653, -0.5133357048034668, -0.3321557641029358, -0.3217625319957733, 0.06563819199800491, -0.1348838359117508, -0.19066834449768066, -0.08335402607917786, -0.3476395606994629, 0.16280493140220642, 0.31887421011924744, 0.04505399987101555, -0.00015045315376482904, 0.1928245574235916, 0.16862830519676208, -0.37702682614326477, 0.10879205167293549, -0.06497826427221298, 0.22903792560100555, 0.2357947826385498, 0.09344729036092758, -0.0370764434337616, -0.10469187051057816, 0.17223741114139557, -0.17953424155712128, -0.1562102884054184, -0.5025671124458313, 0.12703855335712433, 0.38669130206108093, 0.08671337366104126, -0.2168150544166565, -0.2601381242275238, 0.003099455265328288, 0.18102163076400757, 0.09492525458335876, 0.3426593542098999, 0.1125728189945221, -0.33408939838409424, -0.18278628587722778, -0.312158465385437, 0.011983747594058514, -0.12209860980510712, -0.14230823516845703, -0.23046863079071045 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
Hi ! To fix 1, an you try to run this code ? ```python from datasets import load_dataset load_dataset("squad", download_mode="force_redownload") ``` Maybe the file your downloaded was corrupted, in this case redownloading this way should fix your issue 1. Regarding your 2nd point, you're right that loading the raw json this way doesn't give you a dataset with the column "context", "question" and "answers". Indeed the squad format is a very nested format so you have to preprocess the data. You can do it this way: ```python def process_squad(examples): """ Process a dataset in the squad format with columns "title" and "paragraphs" to return the dataset with columns "context", "question" and "answers". """ out = {"context": [], "question": [], "answers":[]} for paragraphs in examples["paragraphs"]: for paragraph in paragraphs: for qa in paragraph["qas"]: answers = [{"answer_start": answer["answer_start"], "text": answer["text"].strip()} for answer in qa["answers"]] out["context"].append(paragraph["context"].strip()) out["question"].append(qa["question"].strip()) out["answers"].append(answers) return out datasets = load_dataset(extension, data_files=data_files, field="data") column_names = datasets["train"].column_names if set(column_names) == {"title", "paragraphs"}: datasets = datasets.map(process_squad, batched=True, remove_columns=column_names) ``` Hope that helps :)
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
170
Datasets.py function load_dataset does not match squad dataset
[ -0.2998250424861908, 0.12020309269428253, -0.15699218213558197, 0.0823507308959961, 0.4167197048664093, -0.0847940668463707, 0.5316449403762817, 0.2711387872695923, -0.0065111941657960415, -0.017319386824965477, -0.1609886735677719, 0.5503365397453308, 0.150523841381073, 0.07789125293493271, 0.11018604785203934, 0.23736515641212463, 0.010464250110089779, 0.09030061960220337, -0.12949097156524658, -0.2575986683368683, -0.2034173607826233, 0.20164217054843903, -0.13875532150268555, 0.11138229817152023, -0.22186745703220367, 0.028062129393219948, 0.13371312618255615, 0.442314475774765, -0.17299987375736237, -0.19048668444156647, 0.41556358337402344, 0.035696931183338165, 0.1042858362197876, 0.27871638536453247, -0.0001056996188708581, 0.1129588931798935, 0.05943353474140167, -0.33825820684432983, -0.36003217101097107, -0.018360087648034096, 0.0002486356534063816, -0.24281461536884308, 0.13176609575748444, -0.25253623723983765, -0.037198156118392944, 0.10641910880804062, 0.06554736942052841, -0.4953899085521698, 0.43399778008461, 0.40980732440948486, 0.2371395230293274, 0.438122421503067, -0.11713653057813644, -0.11686152219772339, -0.036546800285577774, -0.1822066754102707, 0.10973108559846878, 0.07259169220924377, 0.27582427859306335, -0.3366225063800812, 0.04135819524526596, 0.13668574392795563, -0.021092431619763374, 0.15926077961921692, 0.2125745266675949, -0.0035643954761326313, -0.02636541612446308, -0.43729084730148315, 0.1611965298652649, 0.017477327957749367, 0.3183021545410156, -0.36399316787719727, -0.29190152883529663, -0.08227324485778809, 0.07842104136943817, 0.09924867749214172, 0.010607302188873291, 0.08126289397478104, -0.01679878495633602, 0.04306372255086899, -0.0007834798307158053, 0.10655173659324646, 0.00043992523569613695, 0.14376933872699738, -0.1311233788728714, 0.22874557971954346, 0.03480004891753197, 0.17725330591201782, -0.07647833973169327, -0.010735319927334785, 0.18803535401821136, -0.07239624112844467, 0.2071283459663391, 0.26880863308906555, -0.5724685788154602, 0.0006433883681893349, 0.020190702751278877, -0.08973818272352219, 0.38686108589172363, 0.1354181170463562, 0.1299229860305786, 0.2343025803565979, 0.10844762623310089, 0.2524869740009308, 0.3849013149738312, -0.17944251000881195, 0.20820683240890503, 0.22734715044498444, -0.004829047713428736, -0.16204240918159485, -0.32465988397598267, 0.12480674684047699, -0.21612156927585602, -0.31538817286491394, 0.1438092142343521, -0.059499308466911316, 0.20007064938545227, -0.1569245606660843, -0.20113401114940643, -0.0003877943381667137, 0.2738442122936249, 0.006841422524303198, -0.0989030972123146, 0.5390006899833679, 0.08911511301994324, 0.026435380801558495, -0.1659827083349228, 0.4766300916671753, -0.18758991360664368, 0.007091795559972525, -0.33609434962272644, -0.04061020910739899, 0.13712652027606964, -0.11525749415159225, 0.2261858731508255, -0.21576839685440063, 0.33101221919059753, 0.07733535766601562, 0.15671473741531372, -0.10189693421125412, 0.22385813295841217, -0.06130889803171158, 0.1597970724105835, 0.18790704011917114, 0.1918220818042755, -0.021396052092313766, 0.2958236038684845, -0.25240933895111084, 0.0011046333238482475, 0.17823468148708344, -0.38711562752723694, -0.20557209849357605, -0.09795234352350235, 0.287084698677063, -0.1282433271408081, -0.0032022118102759123, -0.1313919872045517, 0.022787151858210564, 0.17587505280971527, -0.32721537351608276, -0.12182467430830002, -0.23383517563343048, 0.03540382161736488, -0.26731786131858826, 0.16701926290988922, 0.44077637791633606, -0.46817702054977417, -0.1830703616142273, 0.1860961616039276, -0.36814790964126587, -0.08038468658924103, 0.13087433576583862, -0.1885644644498825, -0.12792493402957916, -0.15034803748130798, -0.04389156401157379, 0.6551920175552368, -0.6224268674850464, -0.4217080771923065, 0.06263399869203568, -0.0498165488243103, -0.17380404472351074, -0.03150675445795059, 0.18202470242977142, 0.23074956238269806, 0.20330840349197388, 0.1252625286579132, 0.5107231736183167, 0.029220541939139366, 0.23928435146808624, -0.003932921681553125, -0.09315705299377441, 0.25630348920822144, 0.3310657739639282, 0.08679164201021194, 0.12913401424884796, 0.21655648946762085, 0.11368345469236374, 0.32795682549476624, -0.16272494196891785, -0.1179349347949028, 0.07631540298461914, -0.04931776970624924, -0.014115803875029087, 0.16728851199150085, -0.06583657115697861, -0.43786466121673584, 0.058252062648534775, -0.21051470935344696, 0.16849932074546814, -0.10497941821813583, -0.07587900757789612, -0.27248889207839966, 0.04220366105437279, -0.34123310446739197, -0.08691473305225372, 0.19447879493236542, -0.04302484169602394, -0.02352280169725418, -0.15154387056827545, -0.2501008212566376, 0.27649539709091187, -0.370095819234848, 0.2190152257680893, -0.18985635042190552, 0.34149253368377686, -0.0777321308851242, -0.06276828795671463, 0.2659725248813629, 0.2100512683391571, 0.23659396171569824, -0.050769295543432236, -0.05536145344376564, 0.26077455282211304, 0.18723814189434052, -0.05181698128581047, 0.21708324551582336, -0.2811430096626282, 0.011765909381210804, -0.029680980369448662, 0.07513981312513351, 0.1934490203857422, 0.1883487105369568, -0.062192730605602264, -0.27202412486076355, 0.4420435130596161, -0.017061732709407806, 0.11585095524787903, 0.04944539815187454, -0.16947941482067108, 0.3759162127971649, 0.18009401857852936, -0.13374756276607513, 0.04781809449195862, -0.24240736663341522, 0.16433146595954895, 0.5680739283561707, 0.015505621209740639, -0.16975009441375732, 0.1085631400346756, 0.4505138099193573, 0.032077860087156296, 0.29333367943763733, -0.036020223051309586, -0.10872724652290344, -0.18194641172885895, 0.06361231207847595, -0.08778048306703568, 0.3902532160282135, 0.17935293912887573, -0.27952104806900024, -0.13287553191184998, -0.08172884583473206, -0.04622839391231537, 0.010311751626431942, -0.1345154494047165, 0.13704074919223785, 0.061419785022735596, 0.2184826135635376, -0.21950864791870117, -0.4104281961917877, -0.024330707266926765, -0.12358129769563675, 0.10532621294260025, -0.30359911918640137, 0.09293687343597412, -0.01373581774532795, 0.001306232763454318, -0.15516896545886993, 0.18761178851127625, -0.39176464080810547, -0.22875435650348663, -0.017671285197138786, -0.15886087715625763, 0.1847948282957077, 0.31021082401275635, 0.04456203430891037, -0.010953566059470177, 0.34706225991249084, -0.4207341969013214, 0.22205783426761627, -0.25410330295562744, 0.04728333279490471, 0.16790108382701874, -0.08465944230556488, 0.05398627370595932, 0.004793247207999229, -0.16465549170970917, 0.04535752907395363, -0.21630516648292542, -0.11999417096376419, 0.10937222093343735, 0.007976694032549858, 0.3002690076828003, -0.018698563799262047, 0.34490641951560974, 0.08685795217752457, -0.06529247760772705, 0.14354221522808075, -0.2654168903827667, -0.029110869392752647, -0.012711109593510628, -0.07928492873907089, -0.1373021900653839, -0.033442992717027664, -0.6007948517799377, -0.5734248161315918, -0.16729503870010376, -0.14252588152885437, 0.3864935040473938, 0.18440550565719604, 0.09418952465057373, 0.2696404457092285, 0.035866256803274155, -0.053563784807920456, 0.05444986745715141, -0.41472193598747253, -0.246537983417511, 0.2518569529056549, -0.017272653058171272, -0.3264833390712738, -0.03727316856384277, -0.0011129669146612287, 0.14987486600875854, -0.07140252739191055, -0.030533896759152412, -0.4041302800178528, 0.29167914390563965, 0.0205694530159235, -0.06532128155231476, 0.29491186141967773, 0.20298545062541962, -0.01829621009528637, -0.03227635845541954, -0.27613404393196106, -0.3759132921695709, -0.006883351597934961, 0.11543800681829453, 0.047503095120191574, -0.1788564920425415, 0.12981536984443665, -0.24663741886615753, 0.5865738391876221, 0.09862031787633896, -0.03814651072025299, 0.24710819125175476, -0.3439517915248871, 0.4482141435146332, 0.024231547489762306, -0.3213604986667633, 0.17666800320148468, 0.09833937883377075, 0.05121323838829994, 0.2737872898578644, 0.0036067746113985777, -0.2950943112373352, -0.05453956127166748, 0.23464910686016083, -0.40477702021598816, -0.03170009329915047, -0.030274279415607452, 0.3744451701641083, -0.2566518485546112, 0.3307300806045532, 0.3852333724498749, -0.4384694993495941, -0.00405505858361721, -0.20967774093151093, 0.19041122496128082, -0.11197885125875473, 0.23128722608089447, -0.5138875246047974, 0.09372362494468689, -0.1294698268175125, 0.1951238214969635, -0.14417307078838348, 0.28250619769096375, 0.14633671939373016, -0.19448456168174744, -0.13568663597106934, -0.07952473312616348, 0.5552323460578918, -0.07203070819377899, 0.1971219927072525, -0.006087476387619972, 0.2329624444246292, -0.46464410424232483, 0.05347427725791931, -0.0029379138723015785, 0.38842782378196716, -0.04440031945705414, 0.28457775712013245, -0.07923436909914017, 0.03513895347714424, 0.17115338146686554, 0.08725389093160629, -0.09166643023490906, -0.11627418547868729, -0.4479885399341583, -0.17506924271583557, -0.627711296081543, 0.01577116921544075, -0.187601238489151, 0.046810779720544815, 0.013543054461479187, -0.0015811451012268662, -0.02171361818909645, 0.010483832098543644, 0.27501723170280457, 0.41941556334495544, 0.30644577741622925, 0.20718419551849365, -0.15765219926834106, 0.17673946917057037, 0.016632257029414177, -0.0027110064402222633, 0.5667644143104553, -0.23822662234306335, -0.33092063665390015, 0.13169258832931519, -0.16201597452163696, 0.3260578513145447, 0.3317364454269409, -0.10753252357244492, -0.0597737580537796, -0.22794106602668762, -0.13390879333019257, 0.22525112330913544, 0.0699809119105339, 0.20376434922218323, 0.036020807921886444, -0.1605217009782791, -0.5301191210746765, 0.2597106099128723, -0.11268135160207748, -0.03829963505268097, 0.09651787579059601, -0.1024332046508789, -0.13797572255134583, 0.2667334973812103, -0.15056224167346954, 0.6316713690757751, -0.17624284327030182, 0.19670695066452026, 0.40996024012565613, 0.16481272876262665, 0.25959405303001404, -0.27532073855400085, 0.05469802767038345, -0.5823909640312195, -0.1681002378463745, 0.08679531514644623, -0.1962476670742035, 0.05456799268722534, 0.5981958508491516, -0.04453008621931076, 0.3876834213733673, -0.09858276695013046, 0.27085018157958984, 0.041654568165540695, 0.4236886501312256, 0.044538646936416626, -0.07822541892528534, -0.7120158672332764, 0.2798592448234558, -0.04649616777896881, 0.1288078874349594, -0.1825537383556366, 0.013240222819149494, -0.07400157302618027, -0.2164384126663208, 0.0037712077610194683, 0.22937650978565216, -0.3000645935535431, 0.2244684249162674, 0.04462290182709694, -0.2387934774160385, -0.16962936520576477, 0.45931002497673035, 0.016059109941124916, 0.007565907668322325, 0.060394518077373505, 0.2545706033706665, 0.040586020797491074, 0.130835622549057, -0.029854854568839073, 0.16194257140159607, 0.1792600303888321, -0.10465362668037415, -0.20567306876182556, 0.14509962499141693, -0.07080937922000885, -0.3034808337688446, -0.15455149114131927, 0.27450013160705566, 0.0763385221362114, -0.4211510419845581, -0.3913385272026062, -0.1140381246805191, -0.025250865146517754, -0.16961506009101868, 0.17721086740493774, 0.028664708137512207, 0.03885537013411522, 0.17800654470920563, 0.2504345774650574, -0.32701778411865234, -0.14217251539230347, 0.4985520541667938, -0.0677962601184845, -0.020474374294281006, 0.42333775758743286, 0.06578077375888824, 0.00041380521724931896, -0.27826786041259766, 0.036286551505327225, 0.15433856844902039, -0.08467802405357361, 0.04904188588261604, 0.061506569385528564, -0.2746557593345642, 0.05106477439403534, 0.035926926881074905, 0.02851448766887188, 0.10137409716844559, 0.018431616947054863, -0.523977518081665, -0.2626744210720062, -0.0619947612285614, 0.09049448370933533, -0.01272659283131361, 0.4315132796764374, 0.0034448220394551754, 0.13707976043224335, 0.03125104680657387, -0.3643430769443512, 0.16508153080940247, -0.13909725844860077, 0.13931643962860107, 0.08876640349626541, -0.14343978464603424, 0.18855011463165283, -0.1634921431541443, 0.18509958684444427, -0.14249354600906372, -0.18012501299381256, -0.3694358468055725, -0.01919381134212017, 0.08338990062475204, 0.011668733321130276, 0.10785593092441559, -0.10996939986944199, -0.17138750851154327, -0.2691737711429596, -0.2065410017967224, 0.1806064248085022, 0.16010530292987823, 0.000026488838557270356, 0.07370275259017944, 0.027638044208288193, -0.1645941436290741, 0.019298354163765907, -0.20424947142601013, -0.058726731687784195, 0.022210311144590378, -0.03266249597072601, 0.03639841079711914, -0.07722441852092743, -0.04254315048456192, 0.05212673917412758, 0.21407915651798248, 0.22803834080696106, 0.3412548899650574, 0.15694351494312286, -0.3609628677368164, 0.0044098664075136185, 0.1863173246383667, 0.12000609189271927, 0.43498873710632324, -0.2972394824028015, 0.15554563701152802, -0.25893712043762207, 0.22714191675186157, -0.4334772229194641, -0.18806006014347076, 0.4090466797351837, -0.3000755310058594, 0.14320534467697144, 0.2864754796028137, 0.05183585360646248, 0.07583536207675934, 0.2621586322784424, 0.09967953711748123, 0.6660313010215759, -0.21230417490005493, 0.0398978553712368, 0.10710952430963516, -0.11900245398283005, 0.0996585488319397, 0.2994224429130554, 0.15727388858795166, 0.10206471383571625, 0.42619574069976807, -0.14833301305770874, 0.26642507314682007, -0.122111976146698, -0.36722299456596375, 0.13551156222820282, -0.2455262690782547, 0.026389462873339653, 0.24628184735774994, -0.12420481443405151, 0.1544213443994522, 0.11686975508928299, 0.5965229272842407, -0.25843802094459534, -0.06912888586521149, -0.15614154934883118, -0.08295394480228424, -0.14987622201442719, -0.08158737421035767, -0.017405586317181587, -0.2997385561466217, -0.06690231710672379, -0.14097395539283752, -0.2120470255613327, -0.29312583804130554, 0.0983612984418869, -0.15882405638694763, -0.03809541091322899, -0.07838349789381027, 0.19114911556243896, 0.13870863616466522, -0.2078130841255188, -0.07431317865848541, 0.12290052324533463, -0.05940396338701248, 0.12607590854167938, 0.4389858543872833, -0.029079174622893333, 0.4884476661682129, 0.12701928615570068, 0.0897422730922699, -0.057978902012109756, 0.10457172989845276, -0.20697380602359772, -0.17081031203269958, -0.02231730706989765, 0.018877079710364342, -0.18468733131885529, 0.3132624626159668, 0.28204333782196045, -0.17799514532089233, -0.3093818128108978, 0.3847790062427521, -0.2710109353065491, -0.1802840232849121, 0.04424823448061943, -0.24358537793159485, -0.1345912665128708, -0.399787575006485, 0.1639948934316635, -0.23374652862548828, -0.07225719094276428, 0.22488906979560852, 0.3407231867313385, 0.25729110836982727, -0.21555869281291962, 0.1400146335363388, 0.07993565499782562, 0.4810807704925537, 0.05077645927667618, 0.02381708100438118, -0.09896356612443924, 0.14447765052318573, -0.8653197288513184, 0.27431944012641907, 0.071525439620018, -0.0296923890709877, 0.08682737499475479, 0.2977502942085266, 0.36441275477409363, 0.26280730962753296, 0.13416709005832672, -0.016772814095020294, 0.09204930067062378, -0.15833406150341034, -0.3410514295101166, -0.3134925067424774, -0.3367227017879486, 0.23586151003837585, 0.16240042448043823, -0.44275254011154175, 0.10830571502447128, -0.26066136360168457, 0.15531396865844727, -0.21741001307964325, -0.2456168234348297, 0.030765453353524208, -0.34204789996147156, 0.28386351466178894, -0.15341375768184662, 0.5771335959434509, -0.1938948631286621, 0.05528736487030983, 0.025708932429552078, -0.2676868736743927, -0.12878164649009705, 0.40078845620155334, -0.022608937695622444, 0.13381969928741455, 0.11246032267808914, -0.05757209658622742, -0.1269058883190155, 0.21785135567188263, 0.1798737645149231, -0.11947008222341537, -0.31198012828826904, 0.2218105047941208, 0.08595585823059082, 0.03924080356955528, -0.2240085005760193, 0.33197396993637085, -0.1717492640018463, 0.2168576717376709, -0.001556594856083393, -0.254236102104187, 0.3602680563926697, -0.27248942852020264, -0.4081890881061554, -0.33742642402648926, 0.09029371291399002, 0.04484287649393082, -0.02065376378595829, -0.413510262966156, 0.3036614656448364, 0.2020743042230606, -0.20469485223293304, -0.2143043577671051, 0.08762155473232269, -0.34388747811317444, 0.20044414699077606, -0.1334540843963623, -0.0660395398736, 0.06662184745073318, -0.10810072720050812, -0.06604710221290588, -0.26499035954475403 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
Thks for quickly answering! ### 1 I try the first way,but seems not work ``` Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 503, in <module> main() File "examples/question-answering/run_qa.py", line 218, in main datasets = load_dataset(data_args.dataset_name, download_mode="force_redownload") File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` ### 2 I try the second way,and run the examples/question-answering/run_qa.py,it lead to another bug orz.. ``` Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 523, in <module> main() File "examples/question-answering/run_qa.py", line 379, in main load_from_cache_file=not data_args.overwrite_cache, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1120, in map update_data = does_function_return_dict(test_inputs, test_indices) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1091, in does_function_return_dict function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "examples/question-answering/run_qa.py", line 339, in prepare_train_features if len(answers["answer_start"]) == 0: TypeError: list indices must be integers or slices, not str ``` ## may be the function prepare_train_features in run_qa.py need to fix,I think is that the prep ```python for i, offsets in enumerate(offset_mapping): # We will label impossible answers with the index of the CLS token. input_ids = tokenized_examples["input_ids"][i] cls_index = input_ids.index(tokenizer.cls_token_id) # Grab the sequence corresponding to that example (to know what is the context and what is the question). sequence_ids = tokenized_examples.sequence_ids(i) # One example can give several spans, this is the index of the example containing this span of text. sample_index = sample_mapping[i] answers = examples[answer_column_name][sample_index] print(examples,answers) # If no answers are given, set the cls_index as answer. if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != (1 if pad_on_right else 0): token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != (1 if pad_on_right else 0): token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append(token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ```
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
434
Datasets.py function load_dataset does not match squad dataset
[ -0.2998250424861908, 0.12020309269428253, -0.15699218213558197, 0.0823507308959961, 0.4167197048664093, -0.0847940668463707, 0.5316449403762817, 0.2711387872695923, -0.0065111941657960415, -0.017319386824965477, -0.1609886735677719, 0.5503365397453308, 0.150523841381073, 0.07789125293493271, 0.11018604785203934, 0.23736515641212463, 0.010464250110089779, 0.09030061960220337, -0.12949097156524658, -0.2575986683368683, -0.2034173607826233, 0.20164217054843903, -0.13875532150268555, 0.11138229817152023, -0.22186745703220367, 0.028062129393219948, 0.13371312618255615, 0.442314475774765, -0.17299987375736237, -0.19048668444156647, 0.41556358337402344, 0.035696931183338165, 0.1042858362197876, 0.27871638536453247, -0.0001056996188708581, 0.1129588931798935, 0.05943353474140167, -0.33825820684432983, -0.36003217101097107, -0.018360087648034096, 0.0002486356534063816, -0.24281461536884308, 0.13176609575748444, -0.25253623723983765, -0.037198156118392944, 0.10641910880804062, 0.06554736942052841, -0.4953899085521698, 0.43399778008461, 0.40980732440948486, 0.2371395230293274, 0.438122421503067, -0.11713653057813644, -0.11686152219772339, -0.036546800285577774, -0.1822066754102707, 0.10973108559846878, 0.07259169220924377, 0.27582427859306335, -0.3366225063800812, 0.04135819524526596, 0.13668574392795563, -0.021092431619763374, 0.15926077961921692, 0.2125745266675949, -0.0035643954761326313, -0.02636541612446308, -0.43729084730148315, 0.1611965298652649, 0.017477327957749367, 0.3183021545410156, -0.36399316787719727, -0.29190152883529663, -0.08227324485778809, 0.07842104136943817, 0.09924867749214172, 0.010607302188873291, 0.08126289397478104, -0.01679878495633602, 0.04306372255086899, -0.0007834798307158053, 0.10655173659324646, 0.00043992523569613695, 0.14376933872699738, -0.1311233788728714, 0.22874557971954346, 0.03480004891753197, 0.17725330591201782, -0.07647833973169327, -0.010735319927334785, 0.18803535401821136, -0.07239624112844467, 0.2071283459663391, 0.26880863308906555, -0.5724685788154602, 0.0006433883681893349, 0.020190702751278877, -0.08973818272352219, 0.38686108589172363, 0.1354181170463562, 0.1299229860305786, 0.2343025803565979, 0.10844762623310089, 0.2524869740009308, 0.3849013149738312, -0.17944251000881195, 0.20820683240890503, 0.22734715044498444, -0.004829047713428736, -0.16204240918159485, -0.32465988397598267, 0.12480674684047699, -0.21612156927585602, -0.31538817286491394, 0.1438092142343521, -0.059499308466911316, 0.20007064938545227, -0.1569245606660843, -0.20113401114940643, -0.0003877943381667137, 0.2738442122936249, 0.006841422524303198, -0.0989030972123146, 0.5390006899833679, 0.08911511301994324, 0.026435380801558495, -0.1659827083349228, 0.4766300916671753, -0.18758991360664368, 0.007091795559972525, -0.33609434962272644, -0.04061020910739899, 0.13712652027606964, -0.11525749415159225, 0.2261858731508255, -0.21576839685440063, 0.33101221919059753, 0.07733535766601562, 0.15671473741531372, -0.10189693421125412, 0.22385813295841217, -0.06130889803171158, 0.1597970724105835, 0.18790704011917114, 0.1918220818042755, -0.021396052092313766, 0.2958236038684845, -0.25240933895111084, 0.0011046333238482475, 0.17823468148708344, -0.38711562752723694, -0.20557209849357605, -0.09795234352350235, 0.287084698677063, -0.1282433271408081, -0.0032022118102759123, -0.1313919872045517, 0.022787151858210564, 0.17587505280971527, -0.32721537351608276, -0.12182467430830002, -0.23383517563343048, 0.03540382161736488, -0.26731786131858826, 0.16701926290988922, 0.44077637791633606, -0.46817702054977417, -0.1830703616142273, 0.1860961616039276, -0.36814790964126587, -0.08038468658924103, 0.13087433576583862, -0.1885644644498825, -0.12792493402957916, -0.15034803748130798, -0.04389156401157379, 0.6551920175552368, -0.6224268674850464, -0.4217080771923065, 0.06263399869203568, -0.0498165488243103, -0.17380404472351074, -0.03150675445795059, 0.18202470242977142, 0.23074956238269806, 0.20330840349197388, 0.1252625286579132, 0.5107231736183167, 0.029220541939139366, 0.23928435146808624, -0.003932921681553125, -0.09315705299377441, 0.25630348920822144, 0.3310657739639282, 0.08679164201021194, 0.12913401424884796, 0.21655648946762085, 0.11368345469236374, 0.32795682549476624, -0.16272494196891785, -0.1179349347949028, 0.07631540298461914, -0.04931776970624924, -0.014115803875029087, 0.16728851199150085, -0.06583657115697861, -0.43786466121673584, 0.058252062648534775, -0.21051470935344696, 0.16849932074546814, -0.10497941821813583, -0.07587900757789612, -0.27248889207839966, 0.04220366105437279, -0.34123310446739197, -0.08691473305225372, 0.19447879493236542, -0.04302484169602394, -0.02352280169725418, -0.15154387056827545, -0.2501008212566376, 0.27649539709091187, -0.370095819234848, 0.2190152257680893, -0.18985635042190552, 0.34149253368377686, -0.0777321308851242, -0.06276828795671463, 0.2659725248813629, 0.2100512683391571, 0.23659396171569824, -0.050769295543432236, -0.05536145344376564, 0.26077455282211304, 0.18723814189434052, -0.05181698128581047, 0.21708324551582336, -0.2811430096626282, 0.011765909381210804, -0.029680980369448662, 0.07513981312513351, 0.1934490203857422, 0.1883487105369568, -0.062192730605602264, -0.27202412486076355, 0.4420435130596161, -0.017061732709407806, 0.11585095524787903, 0.04944539815187454, -0.16947941482067108, 0.3759162127971649, 0.18009401857852936, -0.13374756276607513, 0.04781809449195862, -0.24240736663341522, 0.16433146595954895, 0.5680739283561707, 0.015505621209740639, -0.16975009441375732, 0.1085631400346756, 0.4505138099193573, 0.032077860087156296, 0.29333367943763733, -0.036020223051309586, -0.10872724652290344, -0.18194641172885895, 0.06361231207847595, -0.08778048306703568, 0.3902532160282135, 0.17935293912887573, -0.27952104806900024, -0.13287553191184998, -0.08172884583473206, -0.04622839391231537, 0.010311751626431942, -0.1345154494047165, 0.13704074919223785, 0.061419785022735596, 0.2184826135635376, -0.21950864791870117, -0.4104281961917877, -0.024330707266926765, -0.12358129769563675, 0.10532621294260025, -0.30359911918640137, 0.09293687343597412, -0.01373581774532795, 0.001306232763454318, -0.15516896545886993, 0.18761178851127625, -0.39176464080810547, -0.22875435650348663, -0.017671285197138786, -0.15886087715625763, 0.1847948282957077, 0.31021082401275635, 0.04456203430891037, -0.010953566059470177, 0.34706225991249084, -0.4207341969013214, 0.22205783426761627, -0.25410330295562744, 0.04728333279490471, 0.16790108382701874, -0.08465944230556488, 0.05398627370595932, 0.004793247207999229, -0.16465549170970917, 0.04535752907395363, -0.21630516648292542, -0.11999417096376419, 0.10937222093343735, 0.007976694032549858, 0.3002690076828003, -0.018698563799262047, 0.34490641951560974, 0.08685795217752457, -0.06529247760772705, 0.14354221522808075, -0.2654168903827667, -0.029110869392752647, -0.012711109593510628, -0.07928492873907089, -0.1373021900653839, -0.033442992717027664, -0.6007948517799377, -0.5734248161315918, -0.16729503870010376, -0.14252588152885437, 0.3864935040473938, 0.18440550565719604, 0.09418952465057373, 0.2696404457092285, 0.035866256803274155, -0.053563784807920456, 0.05444986745715141, -0.41472193598747253, -0.246537983417511, 0.2518569529056549, -0.017272653058171272, -0.3264833390712738, -0.03727316856384277, -0.0011129669146612287, 0.14987486600875854, -0.07140252739191055, -0.030533896759152412, -0.4041302800178528, 0.29167914390563965, 0.0205694530159235, -0.06532128155231476, 0.29491186141967773, 0.20298545062541962, -0.01829621009528637, -0.03227635845541954, -0.27613404393196106, -0.3759132921695709, -0.006883351597934961, 0.11543800681829453, 0.047503095120191574, -0.1788564920425415, 0.12981536984443665, -0.24663741886615753, 0.5865738391876221, 0.09862031787633896, -0.03814651072025299, 0.24710819125175476, -0.3439517915248871, 0.4482141435146332, 0.024231547489762306, -0.3213604986667633, 0.17666800320148468, 0.09833937883377075, 0.05121323838829994, 0.2737872898578644, 0.0036067746113985777, -0.2950943112373352, -0.05453956127166748, 0.23464910686016083, -0.40477702021598816, -0.03170009329915047, -0.030274279415607452, 0.3744451701641083, -0.2566518485546112, 0.3307300806045532, 0.3852333724498749, -0.4384694993495941, -0.00405505858361721, -0.20967774093151093, 0.19041122496128082, -0.11197885125875473, 0.23128722608089447, -0.5138875246047974, 0.09372362494468689, -0.1294698268175125, 0.1951238214969635, -0.14417307078838348, 0.28250619769096375, 0.14633671939373016, -0.19448456168174744, -0.13568663597106934, -0.07952473312616348, 0.5552323460578918, -0.07203070819377899, 0.1971219927072525, -0.006087476387619972, 0.2329624444246292, -0.46464410424232483, 0.05347427725791931, -0.0029379138723015785, 0.38842782378196716, -0.04440031945705414, 0.28457775712013245, -0.07923436909914017, 0.03513895347714424, 0.17115338146686554, 0.08725389093160629, -0.09166643023490906, -0.11627418547868729, -0.4479885399341583, -0.17506924271583557, -0.627711296081543, 0.01577116921544075, -0.187601238489151, 0.046810779720544815, 0.013543054461479187, -0.0015811451012268662, -0.02171361818909645, 0.010483832098543644, 0.27501723170280457, 0.41941556334495544, 0.30644577741622925, 0.20718419551849365, -0.15765219926834106, 0.17673946917057037, 0.016632257029414177, -0.0027110064402222633, 0.5667644143104553, -0.23822662234306335, -0.33092063665390015, 0.13169258832931519, -0.16201597452163696, 0.3260578513145447, 0.3317364454269409, -0.10753252357244492, -0.0597737580537796, -0.22794106602668762, -0.13390879333019257, 0.22525112330913544, 0.0699809119105339, 0.20376434922218323, 0.036020807921886444, -0.1605217009782791, -0.5301191210746765, 0.2597106099128723, -0.11268135160207748, -0.03829963505268097, 0.09651787579059601, -0.1024332046508789, -0.13797572255134583, 0.2667334973812103, -0.15056224167346954, 0.6316713690757751, -0.17624284327030182, 0.19670695066452026, 0.40996024012565613, 0.16481272876262665, 0.25959405303001404, -0.27532073855400085, 0.05469802767038345, -0.5823909640312195, -0.1681002378463745, 0.08679531514644623, -0.1962476670742035, 0.05456799268722534, 0.5981958508491516, -0.04453008621931076, 0.3876834213733673, -0.09858276695013046, 0.27085018157958984, 0.041654568165540695, 0.4236886501312256, 0.044538646936416626, -0.07822541892528534, -0.7120158672332764, 0.2798592448234558, -0.04649616777896881, 0.1288078874349594, -0.1825537383556366, 0.013240222819149494, -0.07400157302618027, -0.2164384126663208, 0.0037712077610194683, 0.22937650978565216, -0.3000645935535431, 0.2244684249162674, 0.04462290182709694, -0.2387934774160385, -0.16962936520576477, 0.45931002497673035, 0.016059109941124916, 0.007565907668322325, 0.060394518077373505, 0.2545706033706665, 0.040586020797491074, 0.130835622549057, -0.029854854568839073, 0.16194257140159607, 0.1792600303888321, -0.10465362668037415, -0.20567306876182556, 0.14509962499141693, -0.07080937922000885, -0.3034808337688446, -0.15455149114131927, 0.27450013160705566, 0.0763385221362114, -0.4211510419845581, -0.3913385272026062, -0.1140381246805191, -0.025250865146517754, -0.16961506009101868, 0.17721086740493774, 0.028664708137512207, 0.03885537013411522, 0.17800654470920563, 0.2504345774650574, -0.32701778411865234, -0.14217251539230347, 0.4985520541667938, -0.0677962601184845, -0.020474374294281006, 0.42333775758743286, 0.06578077375888824, 0.00041380521724931896, -0.27826786041259766, 0.036286551505327225, 0.15433856844902039, -0.08467802405357361, 0.04904188588261604, 0.061506569385528564, -0.2746557593345642, 0.05106477439403534, 0.035926926881074905, 0.02851448766887188, 0.10137409716844559, 0.018431616947054863, -0.523977518081665, -0.2626744210720062, -0.0619947612285614, 0.09049448370933533, -0.01272659283131361, 0.4315132796764374, 0.0034448220394551754, 0.13707976043224335, 0.03125104680657387, -0.3643430769443512, 0.16508153080940247, -0.13909725844860077, 0.13931643962860107, 0.08876640349626541, -0.14343978464603424, 0.18855011463165283, -0.1634921431541443, 0.18509958684444427, -0.14249354600906372, -0.18012501299381256, -0.3694358468055725, -0.01919381134212017, 0.08338990062475204, 0.011668733321130276, 0.10785593092441559, -0.10996939986944199, -0.17138750851154327, -0.2691737711429596, -0.2065410017967224, 0.1806064248085022, 0.16010530292987823, 0.000026488838557270356, 0.07370275259017944, 0.027638044208288193, -0.1645941436290741, 0.019298354163765907, -0.20424947142601013, -0.058726731687784195, 0.022210311144590378, -0.03266249597072601, 0.03639841079711914, -0.07722441852092743, -0.04254315048456192, 0.05212673917412758, 0.21407915651798248, 0.22803834080696106, 0.3412548899650574, 0.15694351494312286, -0.3609628677368164, 0.0044098664075136185, 0.1863173246383667, 0.12000609189271927, 0.43498873710632324, -0.2972394824028015, 0.15554563701152802, -0.25893712043762207, 0.22714191675186157, -0.4334772229194641, -0.18806006014347076, 0.4090466797351837, -0.3000755310058594, 0.14320534467697144, 0.2864754796028137, 0.05183585360646248, 0.07583536207675934, 0.2621586322784424, 0.09967953711748123, 0.6660313010215759, -0.21230417490005493, 0.0398978553712368, 0.10710952430963516, -0.11900245398283005, 0.0996585488319397, 0.2994224429130554, 0.15727388858795166, 0.10206471383571625, 0.42619574069976807, -0.14833301305770874, 0.26642507314682007, -0.122111976146698, -0.36722299456596375, 0.13551156222820282, -0.2455262690782547, 0.026389462873339653, 0.24628184735774994, -0.12420481443405151, 0.1544213443994522, 0.11686975508928299, 0.5965229272842407, -0.25843802094459534, -0.06912888586521149, -0.15614154934883118, -0.08295394480228424, -0.14987622201442719, -0.08158737421035767, -0.017405586317181587, -0.2997385561466217, -0.06690231710672379, -0.14097395539283752, -0.2120470255613327, -0.29312583804130554, 0.0983612984418869, -0.15882405638694763, -0.03809541091322899, -0.07838349789381027, 0.19114911556243896, 0.13870863616466522, -0.2078130841255188, -0.07431317865848541, 0.12290052324533463, -0.05940396338701248, 0.12607590854167938, 0.4389858543872833, -0.029079174622893333, 0.4884476661682129, 0.12701928615570068, 0.0897422730922699, -0.057978902012109756, 0.10457172989845276, -0.20697380602359772, -0.17081031203269958, -0.02231730706989765, 0.018877079710364342, -0.18468733131885529, 0.3132624626159668, 0.28204333782196045, -0.17799514532089233, -0.3093818128108978, 0.3847790062427521, -0.2710109353065491, -0.1802840232849121, 0.04424823448061943, -0.24358537793159485, -0.1345912665128708, -0.399787575006485, 0.1639948934316635, -0.23374652862548828, -0.07225719094276428, 0.22488906979560852, 0.3407231867313385, 0.25729110836982727, -0.21555869281291962, 0.1400146335363388, 0.07993565499782562, 0.4810807704925537, 0.05077645927667618, 0.02381708100438118, -0.09896356612443924, 0.14447765052318573, -0.8653197288513184, 0.27431944012641907, 0.071525439620018, -0.0296923890709877, 0.08682737499475479, 0.2977502942085266, 0.36441275477409363, 0.26280730962753296, 0.13416709005832672, -0.016772814095020294, 0.09204930067062378, -0.15833406150341034, -0.3410514295101166, -0.3134925067424774, -0.3367227017879486, 0.23586151003837585, 0.16240042448043823, -0.44275254011154175, 0.10830571502447128, -0.26066136360168457, 0.15531396865844727, -0.21741001307964325, -0.2456168234348297, 0.030765453353524208, -0.34204789996147156, 0.28386351466178894, -0.15341375768184662, 0.5771335959434509, -0.1938948631286621, 0.05528736487030983, 0.025708932429552078, -0.2676868736743927, -0.12878164649009705, 0.40078845620155334, -0.022608937695622444, 0.13381969928741455, 0.11246032267808914, -0.05757209658622742, -0.1269058883190155, 0.21785135567188263, 0.1798737645149231, -0.11947008222341537, -0.31198012828826904, 0.2218105047941208, 0.08595585823059082, 0.03924080356955528, -0.2240085005760193, 0.33197396993637085, -0.1717492640018463, 0.2168576717376709, -0.001556594856083393, -0.254236102104187, 0.3602680563926697, -0.27248942852020264, -0.4081890881061554, -0.33742642402648926, 0.09029371291399002, 0.04484287649393082, -0.02065376378595829, -0.413510262966156, 0.3036614656448364, 0.2020743042230606, -0.20469485223293304, -0.2143043577671051, 0.08762155473232269, -0.34388747811317444, 0.20044414699077606, -0.1334540843963623, -0.0660395398736, 0.06662184745073318, -0.10810072720050812, -0.06604710221290588, -0.26499035954475403 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
## I have fixed it, @lhoestq ### the first section change as you said and add ["id"] ```python def process_squad(examples): """ Process a dataset in the squad format with columns "title" and "paragraphs" to return the dataset with columns "context", "question" and "answers". """ # print(examples) out = {"context": [], "question": [], "answers":[],"id":[]} for paragraphs in examples["paragraphs"]: for paragraph in paragraphs: for qa in paragraph["qas"]: answers = [{"answer_start": answer["answer_start"], "text": answer["text"].strip()} for answer in qa["answers"]] out["context"].append(paragraph["context"].strip()) out["question"].append(qa["question"].strip()) out["answers"].append(answers) out["id"].append(qa["id"]) return out column_names = datasets["train"].column_names if training_args.do_train else datasets["validation"].column_names # print(datasets["train"].column_names) if set(column_names) == {"title", "paragraphs"}: datasets = datasets.map(process_squad, batched=True, remove_columns=column_names) # Preprocessing the datasets. # Preprocessing is slighlty different for training and evaluation. if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names # print(column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ### the second section ```python def prepare_train_features(examples): # Tokenize our examples with truncation and maybe padding, but keep the overflows using a stride. This results # in one example possible giving several features when a context is long, each of those features having a # context that overlaps a bit the context of the previous feature. tokenized_examples = tokenizer( examples[question_column_name if pad_on_right else context_column_name], examples[context_column_name if pad_on_right else question_column_name], truncation="only_second" if pad_on_right else "only_first", max_length=data_args.max_seq_length, stride=data_args.doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" if data_args.pad_to_max_length else False, ) # Since one example might give us several features if it has a long context, we need a map from a feature to # its corresponding example. This key gives us just that. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position in the original context. This will # help us compute the start_positions and end_positions. offset_mapping = tokenized_examples.pop("offset_mapping") # Let's label those examples! tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] for i, offsets in enumerate(offset_mapping): # We will label impossible answers with the index of the CLS token. input_ids = tokenized_examples["input_ids"][i] cls_index = input_ids.index(tokenizer.cls_token_id) # Grab the sequence corresponding to that example (to know what is the context and what is the question). sequence_ids = tokenized_examples.sequence_ids(i) # One example can give several spans, this is the index of the example containing this span of text. sample_index = sample_mapping[i] answers = examples[answer_column_name][sample_index] # print(examples,answers,offset_mapping,tokenized_examples) # If no answers are given, set the cls_index as answer. if len(answers) == 0:#len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers[0]["answer_start"] end_char = start_char + len(answers[0]["text"]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != (1 if pad_on_right else 0): token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != (1 if pad_on_right else 0): token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append(token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ```
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
569
Datasets.py function load_dataset does not match squad dataset
[ -0.2998250424861908, 0.12020309269428253, -0.15699218213558197, 0.0823507308959961, 0.4167197048664093, -0.0847940668463707, 0.5316449403762817, 0.2711387872695923, -0.0065111941657960415, -0.017319386824965477, -0.1609886735677719, 0.5503365397453308, 0.150523841381073, 0.07789125293493271, 0.11018604785203934, 0.23736515641212463, 0.010464250110089779, 0.09030061960220337, -0.12949097156524658, -0.2575986683368683, -0.2034173607826233, 0.20164217054843903, -0.13875532150268555, 0.11138229817152023, -0.22186745703220367, 0.028062129393219948, 0.13371312618255615, 0.442314475774765, -0.17299987375736237, -0.19048668444156647, 0.41556358337402344, 0.035696931183338165, 0.1042858362197876, 0.27871638536453247, -0.0001056996188708581, 0.1129588931798935, 0.05943353474140167, -0.33825820684432983, -0.36003217101097107, -0.018360087648034096, 0.0002486356534063816, -0.24281461536884308, 0.13176609575748444, -0.25253623723983765, -0.037198156118392944, 0.10641910880804062, 0.06554736942052841, -0.4953899085521698, 0.43399778008461, 0.40980732440948486, 0.2371395230293274, 0.438122421503067, -0.11713653057813644, -0.11686152219772339, -0.036546800285577774, -0.1822066754102707, 0.10973108559846878, 0.07259169220924377, 0.27582427859306335, -0.3366225063800812, 0.04135819524526596, 0.13668574392795563, -0.021092431619763374, 0.15926077961921692, 0.2125745266675949, -0.0035643954761326313, -0.02636541612446308, -0.43729084730148315, 0.1611965298652649, 0.017477327957749367, 0.3183021545410156, -0.36399316787719727, -0.29190152883529663, -0.08227324485778809, 0.07842104136943817, 0.09924867749214172, 0.010607302188873291, 0.08126289397478104, -0.01679878495633602, 0.04306372255086899, -0.0007834798307158053, 0.10655173659324646, 0.00043992523569613695, 0.14376933872699738, -0.1311233788728714, 0.22874557971954346, 0.03480004891753197, 0.17725330591201782, -0.07647833973169327, -0.010735319927334785, 0.18803535401821136, -0.07239624112844467, 0.2071283459663391, 0.26880863308906555, -0.5724685788154602, 0.0006433883681893349, 0.020190702751278877, -0.08973818272352219, 0.38686108589172363, 0.1354181170463562, 0.1299229860305786, 0.2343025803565979, 0.10844762623310089, 0.2524869740009308, 0.3849013149738312, -0.17944251000881195, 0.20820683240890503, 0.22734715044498444, -0.004829047713428736, -0.16204240918159485, -0.32465988397598267, 0.12480674684047699, -0.21612156927585602, -0.31538817286491394, 0.1438092142343521, -0.059499308466911316, 0.20007064938545227, -0.1569245606660843, -0.20113401114940643, -0.0003877943381667137, 0.2738442122936249, 0.006841422524303198, -0.0989030972123146, 0.5390006899833679, 0.08911511301994324, 0.026435380801558495, -0.1659827083349228, 0.4766300916671753, -0.18758991360664368, 0.007091795559972525, -0.33609434962272644, -0.04061020910739899, 0.13712652027606964, -0.11525749415159225, 0.2261858731508255, -0.21576839685440063, 0.33101221919059753, 0.07733535766601562, 0.15671473741531372, -0.10189693421125412, 0.22385813295841217, -0.06130889803171158, 0.1597970724105835, 0.18790704011917114, 0.1918220818042755, -0.021396052092313766, 0.2958236038684845, -0.25240933895111084, 0.0011046333238482475, 0.17823468148708344, -0.38711562752723694, -0.20557209849357605, -0.09795234352350235, 0.287084698677063, -0.1282433271408081, -0.0032022118102759123, -0.1313919872045517, 0.022787151858210564, 0.17587505280971527, -0.32721537351608276, -0.12182467430830002, -0.23383517563343048, 0.03540382161736488, -0.26731786131858826, 0.16701926290988922, 0.44077637791633606, -0.46817702054977417, -0.1830703616142273, 0.1860961616039276, -0.36814790964126587, -0.08038468658924103, 0.13087433576583862, -0.1885644644498825, -0.12792493402957916, -0.15034803748130798, -0.04389156401157379, 0.6551920175552368, -0.6224268674850464, -0.4217080771923065, 0.06263399869203568, -0.0498165488243103, -0.17380404472351074, -0.03150675445795059, 0.18202470242977142, 0.23074956238269806, 0.20330840349197388, 0.1252625286579132, 0.5107231736183167, 0.029220541939139366, 0.23928435146808624, -0.003932921681553125, -0.09315705299377441, 0.25630348920822144, 0.3310657739639282, 0.08679164201021194, 0.12913401424884796, 0.21655648946762085, 0.11368345469236374, 0.32795682549476624, -0.16272494196891785, -0.1179349347949028, 0.07631540298461914, -0.04931776970624924, -0.014115803875029087, 0.16728851199150085, -0.06583657115697861, -0.43786466121673584, 0.058252062648534775, -0.21051470935344696, 0.16849932074546814, -0.10497941821813583, -0.07587900757789612, -0.27248889207839966, 0.04220366105437279, -0.34123310446739197, -0.08691473305225372, 0.19447879493236542, -0.04302484169602394, -0.02352280169725418, -0.15154387056827545, -0.2501008212566376, 0.27649539709091187, -0.370095819234848, 0.2190152257680893, -0.18985635042190552, 0.34149253368377686, -0.0777321308851242, -0.06276828795671463, 0.2659725248813629, 0.2100512683391571, 0.23659396171569824, -0.050769295543432236, -0.05536145344376564, 0.26077455282211304, 0.18723814189434052, -0.05181698128581047, 0.21708324551582336, -0.2811430096626282, 0.011765909381210804, -0.029680980369448662, 0.07513981312513351, 0.1934490203857422, 0.1883487105369568, -0.062192730605602264, -0.27202412486076355, 0.4420435130596161, -0.017061732709407806, 0.11585095524787903, 0.04944539815187454, -0.16947941482067108, 0.3759162127971649, 0.18009401857852936, -0.13374756276607513, 0.04781809449195862, -0.24240736663341522, 0.16433146595954895, 0.5680739283561707, 0.015505621209740639, -0.16975009441375732, 0.1085631400346756, 0.4505138099193573, 0.032077860087156296, 0.29333367943763733, -0.036020223051309586, -0.10872724652290344, -0.18194641172885895, 0.06361231207847595, -0.08778048306703568, 0.3902532160282135, 0.17935293912887573, -0.27952104806900024, -0.13287553191184998, -0.08172884583473206, -0.04622839391231537, 0.010311751626431942, -0.1345154494047165, 0.13704074919223785, 0.061419785022735596, 0.2184826135635376, -0.21950864791870117, -0.4104281961917877, -0.024330707266926765, -0.12358129769563675, 0.10532621294260025, -0.30359911918640137, 0.09293687343597412, -0.01373581774532795, 0.001306232763454318, -0.15516896545886993, 0.18761178851127625, -0.39176464080810547, -0.22875435650348663, -0.017671285197138786, -0.15886087715625763, 0.1847948282957077, 0.31021082401275635, 0.04456203430891037, -0.010953566059470177, 0.34706225991249084, -0.4207341969013214, 0.22205783426761627, -0.25410330295562744, 0.04728333279490471, 0.16790108382701874, -0.08465944230556488, 0.05398627370595932, 0.004793247207999229, -0.16465549170970917, 0.04535752907395363, -0.21630516648292542, -0.11999417096376419, 0.10937222093343735, 0.007976694032549858, 0.3002690076828003, -0.018698563799262047, 0.34490641951560974, 0.08685795217752457, -0.06529247760772705, 0.14354221522808075, -0.2654168903827667, -0.029110869392752647, -0.012711109593510628, -0.07928492873907089, -0.1373021900653839, -0.033442992717027664, -0.6007948517799377, -0.5734248161315918, -0.16729503870010376, -0.14252588152885437, 0.3864935040473938, 0.18440550565719604, 0.09418952465057373, 0.2696404457092285, 0.035866256803274155, -0.053563784807920456, 0.05444986745715141, -0.41472193598747253, -0.246537983417511, 0.2518569529056549, -0.017272653058171272, -0.3264833390712738, -0.03727316856384277, -0.0011129669146612287, 0.14987486600875854, -0.07140252739191055, -0.030533896759152412, -0.4041302800178528, 0.29167914390563965, 0.0205694530159235, -0.06532128155231476, 0.29491186141967773, 0.20298545062541962, -0.01829621009528637, -0.03227635845541954, -0.27613404393196106, -0.3759132921695709, -0.006883351597934961, 0.11543800681829453, 0.047503095120191574, -0.1788564920425415, 0.12981536984443665, -0.24663741886615753, 0.5865738391876221, 0.09862031787633896, -0.03814651072025299, 0.24710819125175476, -0.3439517915248871, 0.4482141435146332, 0.024231547489762306, -0.3213604986667633, 0.17666800320148468, 0.09833937883377075, 0.05121323838829994, 0.2737872898578644, 0.0036067746113985777, -0.2950943112373352, -0.05453956127166748, 0.23464910686016083, -0.40477702021598816, -0.03170009329915047, -0.030274279415607452, 0.3744451701641083, -0.2566518485546112, 0.3307300806045532, 0.3852333724498749, -0.4384694993495941, -0.00405505858361721, -0.20967774093151093, 0.19041122496128082, -0.11197885125875473, 0.23128722608089447, -0.5138875246047974, 0.09372362494468689, -0.1294698268175125, 0.1951238214969635, -0.14417307078838348, 0.28250619769096375, 0.14633671939373016, -0.19448456168174744, -0.13568663597106934, -0.07952473312616348, 0.5552323460578918, -0.07203070819377899, 0.1971219927072525, -0.006087476387619972, 0.2329624444246292, -0.46464410424232483, 0.05347427725791931, -0.0029379138723015785, 0.38842782378196716, -0.04440031945705414, 0.28457775712013245, -0.07923436909914017, 0.03513895347714424, 0.17115338146686554, 0.08725389093160629, -0.09166643023490906, -0.11627418547868729, -0.4479885399341583, -0.17506924271583557, -0.627711296081543, 0.01577116921544075, -0.187601238489151, 0.046810779720544815, 0.013543054461479187, -0.0015811451012268662, -0.02171361818909645, 0.010483832098543644, 0.27501723170280457, 0.41941556334495544, 0.30644577741622925, 0.20718419551849365, -0.15765219926834106, 0.17673946917057037, 0.016632257029414177, -0.0027110064402222633, 0.5667644143104553, -0.23822662234306335, -0.33092063665390015, 0.13169258832931519, -0.16201597452163696, 0.3260578513145447, 0.3317364454269409, -0.10753252357244492, -0.0597737580537796, -0.22794106602668762, -0.13390879333019257, 0.22525112330913544, 0.0699809119105339, 0.20376434922218323, 0.036020807921886444, -0.1605217009782791, -0.5301191210746765, 0.2597106099128723, -0.11268135160207748, -0.03829963505268097, 0.09651787579059601, -0.1024332046508789, -0.13797572255134583, 0.2667334973812103, -0.15056224167346954, 0.6316713690757751, -0.17624284327030182, 0.19670695066452026, 0.40996024012565613, 0.16481272876262665, 0.25959405303001404, -0.27532073855400085, 0.05469802767038345, -0.5823909640312195, -0.1681002378463745, 0.08679531514644623, -0.1962476670742035, 0.05456799268722534, 0.5981958508491516, -0.04453008621931076, 0.3876834213733673, -0.09858276695013046, 0.27085018157958984, 0.041654568165540695, 0.4236886501312256, 0.044538646936416626, -0.07822541892528534, -0.7120158672332764, 0.2798592448234558, -0.04649616777896881, 0.1288078874349594, -0.1825537383556366, 0.013240222819149494, -0.07400157302618027, -0.2164384126663208, 0.0037712077610194683, 0.22937650978565216, -0.3000645935535431, 0.2244684249162674, 0.04462290182709694, -0.2387934774160385, -0.16962936520576477, 0.45931002497673035, 0.016059109941124916, 0.007565907668322325, 0.060394518077373505, 0.2545706033706665, 0.040586020797491074, 0.130835622549057, -0.029854854568839073, 0.16194257140159607, 0.1792600303888321, -0.10465362668037415, -0.20567306876182556, 0.14509962499141693, -0.07080937922000885, -0.3034808337688446, -0.15455149114131927, 0.27450013160705566, 0.0763385221362114, -0.4211510419845581, -0.3913385272026062, -0.1140381246805191, -0.025250865146517754, -0.16961506009101868, 0.17721086740493774, 0.028664708137512207, 0.03885537013411522, 0.17800654470920563, 0.2504345774650574, -0.32701778411865234, -0.14217251539230347, 0.4985520541667938, -0.0677962601184845, -0.020474374294281006, 0.42333775758743286, 0.06578077375888824, 0.00041380521724931896, -0.27826786041259766, 0.036286551505327225, 0.15433856844902039, -0.08467802405357361, 0.04904188588261604, 0.061506569385528564, -0.2746557593345642, 0.05106477439403534, 0.035926926881074905, 0.02851448766887188, 0.10137409716844559, 0.018431616947054863, -0.523977518081665, -0.2626744210720062, -0.0619947612285614, 0.09049448370933533, -0.01272659283131361, 0.4315132796764374, 0.0034448220394551754, 0.13707976043224335, 0.03125104680657387, -0.3643430769443512, 0.16508153080940247, -0.13909725844860077, 0.13931643962860107, 0.08876640349626541, -0.14343978464603424, 0.18855011463165283, -0.1634921431541443, 0.18509958684444427, -0.14249354600906372, -0.18012501299381256, -0.3694358468055725, -0.01919381134212017, 0.08338990062475204, 0.011668733321130276, 0.10785593092441559, -0.10996939986944199, -0.17138750851154327, -0.2691737711429596, -0.2065410017967224, 0.1806064248085022, 0.16010530292987823, 0.000026488838557270356, 0.07370275259017944, 0.027638044208288193, -0.1645941436290741, 0.019298354163765907, -0.20424947142601013, -0.058726731687784195, 0.022210311144590378, -0.03266249597072601, 0.03639841079711914, -0.07722441852092743, -0.04254315048456192, 0.05212673917412758, 0.21407915651798248, 0.22803834080696106, 0.3412548899650574, 0.15694351494312286, -0.3609628677368164, 0.0044098664075136185, 0.1863173246383667, 0.12000609189271927, 0.43498873710632324, -0.2972394824028015, 0.15554563701152802, -0.25893712043762207, 0.22714191675186157, -0.4334772229194641, -0.18806006014347076, 0.4090466797351837, -0.3000755310058594, 0.14320534467697144, 0.2864754796028137, 0.05183585360646248, 0.07583536207675934, 0.2621586322784424, 0.09967953711748123, 0.6660313010215759, -0.21230417490005493, 0.0398978553712368, 0.10710952430963516, -0.11900245398283005, 0.0996585488319397, 0.2994224429130554, 0.15727388858795166, 0.10206471383571625, 0.42619574069976807, -0.14833301305770874, 0.26642507314682007, -0.122111976146698, -0.36722299456596375, 0.13551156222820282, -0.2455262690782547, 0.026389462873339653, 0.24628184735774994, -0.12420481443405151, 0.1544213443994522, 0.11686975508928299, 0.5965229272842407, -0.25843802094459534, -0.06912888586521149, -0.15614154934883118, -0.08295394480228424, -0.14987622201442719, -0.08158737421035767, -0.017405586317181587, -0.2997385561466217, -0.06690231710672379, -0.14097395539283752, -0.2120470255613327, -0.29312583804130554, 0.0983612984418869, -0.15882405638694763, -0.03809541091322899, -0.07838349789381027, 0.19114911556243896, 0.13870863616466522, -0.2078130841255188, -0.07431317865848541, 0.12290052324533463, -0.05940396338701248, 0.12607590854167938, 0.4389858543872833, -0.029079174622893333, 0.4884476661682129, 0.12701928615570068, 0.0897422730922699, -0.057978902012109756, 0.10457172989845276, -0.20697380602359772, -0.17081031203269958, -0.02231730706989765, 0.018877079710364342, -0.18468733131885529, 0.3132624626159668, 0.28204333782196045, -0.17799514532089233, -0.3093818128108978, 0.3847790062427521, -0.2710109353065491, -0.1802840232849121, 0.04424823448061943, -0.24358537793159485, -0.1345912665128708, -0.399787575006485, 0.1639948934316635, -0.23374652862548828, -0.07225719094276428, 0.22488906979560852, 0.3407231867313385, 0.25729110836982727, -0.21555869281291962, 0.1400146335363388, 0.07993565499782562, 0.4810807704925537, 0.05077645927667618, 0.02381708100438118, -0.09896356612443924, 0.14447765052318573, -0.8653197288513184, 0.27431944012641907, 0.071525439620018, -0.0296923890709877, 0.08682737499475479, 0.2977502942085266, 0.36441275477409363, 0.26280730962753296, 0.13416709005832672, -0.016772814095020294, 0.09204930067062378, -0.15833406150341034, -0.3410514295101166, -0.3134925067424774, -0.3367227017879486, 0.23586151003837585, 0.16240042448043823, -0.44275254011154175, 0.10830571502447128, -0.26066136360168457, 0.15531396865844727, -0.21741001307964325, -0.2456168234348297, 0.030765453353524208, -0.34204789996147156, 0.28386351466178894, -0.15341375768184662, 0.5771335959434509, -0.1938948631286621, 0.05528736487030983, 0.025708932429552078, -0.2676868736743927, -0.12878164649009705, 0.40078845620155334, -0.022608937695622444, 0.13381969928741455, 0.11246032267808914, -0.05757209658622742, -0.1269058883190155, 0.21785135567188263, 0.1798737645149231, -0.11947008222341537, -0.31198012828826904, 0.2218105047941208, 0.08595585823059082, 0.03924080356955528, -0.2240085005760193, 0.33197396993637085, -0.1717492640018463, 0.2168576717376709, -0.001556594856083393, -0.254236102104187, 0.3602680563926697, -0.27248942852020264, -0.4081890881061554, -0.33742642402648926, 0.09029371291399002, 0.04484287649393082, -0.02065376378595829, -0.413510262966156, 0.3036614656448364, 0.2020743042230606, -0.20469485223293304, -0.2143043577671051, 0.08762155473232269, -0.34388747811317444, 0.20044414699077606, -0.1334540843963623, -0.0660395398736, 0.06662184745073318, -0.10810072720050812, -0.06604710221290588, -0.26499035954475403 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
I'm glad you managed to fix run_qa.py for your case :) Regarding the checksum error, I'm not able to reproduce on my side. This errors says that the downloaded file doesn't match the expected file. Could you try running this and let me know if you get the same output as me ? ```python from datasets.utils.info_utils import get_size_checksum_dict from datasets import cached_path get_size_checksum_dict(cached_path("https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json")) # {'num_bytes': 30288272, 'checksum': '3527663986b8295af4f7fcdff1ba1ff3f72d07d61a20f487cb238a6ef92fd955'} ```
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
69
Datasets.py function load_dataset does not match squad dataset
[ -0.2998250424861908, 0.12020309269428253, -0.15699218213558197, 0.0823507308959961, 0.4167197048664093, -0.0847940668463707, 0.5316449403762817, 0.2711387872695923, -0.0065111941657960415, -0.017319386824965477, -0.1609886735677719, 0.5503365397453308, 0.150523841381073, 0.07789125293493271, 0.11018604785203934, 0.23736515641212463, 0.010464250110089779, 0.09030061960220337, -0.12949097156524658, -0.2575986683368683, -0.2034173607826233, 0.20164217054843903, -0.13875532150268555, 0.11138229817152023, -0.22186745703220367, 0.028062129393219948, 0.13371312618255615, 0.442314475774765, -0.17299987375736237, -0.19048668444156647, 0.41556358337402344, 0.035696931183338165, 0.1042858362197876, 0.27871638536453247, -0.0001056996188708581, 0.1129588931798935, 0.05943353474140167, -0.33825820684432983, -0.36003217101097107, -0.018360087648034096, 0.0002486356534063816, -0.24281461536884308, 0.13176609575748444, -0.25253623723983765, -0.037198156118392944, 0.10641910880804062, 0.06554736942052841, -0.4953899085521698, 0.43399778008461, 0.40980732440948486, 0.2371395230293274, 0.438122421503067, -0.11713653057813644, -0.11686152219772339, -0.036546800285577774, -0.1822066754102707, 0.10973108559846878, 0.07259169220924377, 0.27582427859306335, -0.3366225063800812, 0.04135819524526596, 0.13668574392795563, -0.021092431619763374, 0.15926077961921692, 0.2125745266675949, -0.0035643954761326313, -0.02636541612446308, -0.43729084730148315, 0.1611965298652649, 0.017477327957749367, 0.3183021545410156, -0.36399316787719727, -0.29190152883529663, -0.08227324485778809, 0.07842104136943817, 0.09924867749214172, 0.010607302188873291, 0.08126289397478104, -0.01679878495633602, 0.04306372255086899, -0.0007834798307158053, 0.10655173659324646, 0.00043992523569613695, 0.14376933872699738, -0.1311233788728714, 0.22874557971954346, 0.03480004891753197, 0.17725330591201782, -0.07647833973169327, -0.010735319927334785, 0.18803535401821136, -0.07239624112844467, 0.2071283459663391, 0.26880863308906555, -0.5724685788154602, 0.0006433883681893349, 0.020190702751278877, -0.08973818272352219, 0.38686108589172363, 0.1354181170463562, 0.1299229860305786, 0.2343025803565979, 0.10844762623310089, 0.2524869740009308, 0.3849013149738312, -0.17944251000881195, 0.20820683240890503, 0.22734715044498444, -0.004829047713428736, -0.16204240918159485, -0.32465988397598267, 0.12480674684047699, -0.21612156927585602, -0.31538817286491394, 0.1438092142343521, -0.059499308466911316, 0.20007064938545227, -0.1569245606660843, -0.20113401114940643, -0.0003877943381667137, 0.2738442122936249, 0.006841422524303198, -0.0989030972123146, 0.5390006899833679, 0.08911511301994324, 0.026435380801558495, -0.1659827083349228, 0.4766300916671753, -0.18758991360664368, 0.007091795559972525, -0.33609434962272644, -0.04061020910739899, 0.13712652027606964, -0.11525749415159225, 0.2261858731508255, -0.21576839685440063, 0.33101221919059753, 0.07733535766601562, 0.15671473741531372, -0.10189693421125412, 0.22385813295841217, -0.06130889803171158, 0.1597970724105835, 0.18790704011917114, 0.1918220818042755, -0.021396052092313766, 0.2958236038684845, -0.25240933895111084, 0.0011046333238482475, 0.17823468148708344, -0.38711562752723694, -0.20557209849357605, -0.09795234352350235, 0.287084698677063, -0.1282433271408081, -0.0032022118102759123, -0.1313919872045517, 0.022787151858210564, 0.17587505280971527, -0.32721537351608276, -0.12182467430830002, -0.23383517563343048, 0.03540382161736488, -0.26731786131858826, 0.16701926290988922, 0.44077637791633606, -0.46817702054977417, -0.1830703616142273, 0.1860961616039276, -0.36814790964126587, -0.08038468658924103, 0.13087433576583862, -0.1885644644498825, -0.12792493402957916, -0.15034803748130798, -0.04389156401157379, 0.6551920175552368, -0.6224268674850464, -0.4217080771923065, 0.06263399869203568, -0.0498165488243103, -0.17380404472351074, -0.03150675445795059, 0.18202470242977142, 0.23074956238269806, 0.20330840349197388, 0.1252625286579132, 0.5107231736183167, 0.029220541939139366, 0.23928435146808624, -0.003932921681553125, -0.09315705299377441, 0.25630348920822144, 0.3310657739639282, 0.08679164201021194, 0.12913401424884796, 0.21655648946762085, 0.11368345469236374, 0.32795682549476624, -0.16272494196891785, -0.1179349347949028, 0.07631540298461914, -0.04931776970624924, -0.014115803875029087, 0.16728851199150085, -0.06583657115697861, -0.43786466121673584, 0.058252062648534775, -0.21051470935344696, 0.16849932074546814, -0.10497941821813583, -0.07587900757789612, -0.27248889207839966, 0.04220366105437279, -0.34123310446739197, -0.08691473305225372, 0.19447879493236542, -0.04302484169602394, -0.02352280169725418, -0.15154387056827545, -0.2501008212566376, 0.27649539709091187, -0.370095819234848, 0.2190152257680893, -0.18985635042190552, 0.34149253368377686, -0.0777321308851242, -0.06276828795671463, 0.2659725248813629, 0.2100512683391571, 0.23659396171569824, -0.050769295543432236, -0.05536145344376564, 0.26077455282211304, 0.18723814189434052, -0.05181698128581047, 0.21708324551582336, -0.2811430096626282, 0.011765909381210804, -0.029680980369448662, 0.07513981312513351, 0.1934490203857422, 0.1883487105369568, -0.062192730605602264, -0.27202412486076355, 0.4420435130596161, -0.017061732709407806, 0.11585095524787903, 0.04944539815187454, -0.16947941482067108, 0.3759162127971649, 0.18009401857852936, -0.13374756276607513, 0.04781809449195862, -0.24240736663341522, 0.16433146595954895, 0.5680739283561707, 0.015505621209740639, -0.16975009441375732, 0.1085631400346756, 0.4505138099193573, 0.032077860087156296, 0.29333367943763733, -0.036020223051309586, -0.10872724652290344, -0.18194641172885895, 0.06361231207847595, -0.08778048306703568, 0.3902532160282135, 0.17935293912887573, -0.27952104806900024, -0.13287553191184998, -0.08172884583473206, -0.04622839391231537, 0.010311751626431942, -0.1345154494047165, 0.13704074919223785, 0.061419785022735596, 0.2184826135635376, -0.21950864791870117, -0.4104281961917877, -0.024330707266926765, -0.12358129769563675, 0.10532621294260025, -0.30359911918640137, 0.09293687343597412, -0.01373581774532795, 0.001306232763454318, -0.15516896545886993, 0.18761178851127625, -0.39176464080810547, -0.22875435650348663, -0.017671285197138786, -0.15886087715625763, 0.1847948282957077, 0.31021082401275635, 0.04456203430891037, -0.010953566059470177, 0.34706225991249084, -0.4207341969013214, 0.22205783426761627, -0.25410330295562744, 0.04728333279490471, 0.16790108382701874, -0.08465944230556488, 0.05398627370595932, 0.004793247207999229, -0.16465549170970917, 0.04535752907395363, -0.21630516648292542, -0.11999417096376419, 0.10937222093343735, 0.007976694032549858, 0.3002690076828003, -0.018698563799262047, 0.34490641951560974, 0.08685795217752457, -0.06529247760772705, 0.14354221522808075, -0.2654168903827667, -0.029110869392752647, -0.012711109593510628, -0.07928492873907089, -0.1373021900653839, -0.033442992717027664, -0.6007948517799377, -0.5734248161315918, -0.16729503870010376, -0.14252588152885437, 0.3864935040473938, 0.18440550565719604, 0.09418952465057373, 0.2696404457092285, 0.035866256803274155, -0.053563784807920456, 0.05444986745715141, -0.41472193598747253, -0.246537983417511, 0.2518569529056549, -0.017272653058171272, -0.3264833390712738, -0.03727316856384277, -0.0011129669146612287, 0.14987486600875854, -0.07140252739191055, -0.030533896759152412, -0.4041302800178528, 0.29167914390563965, 0.0205694530159235, -0.06532128155231476, 0.29491186141967773, 0.20298545062541962, -0.01829621009528637, -0.03227635845541954, -0.27613404393196106, -0.3759132921695709, -0.006883351597934961, 0.11543800681829453, 0.047503095120191574, -0.1788564920425415, 0.12981536984443665, -0.24663741886615753, 0.5865738391876221, 0.09862031787633896, -0.03814651072025299, 0.24710819125175476, -0.3439517915248871, 0.4482141435146332, 0.024231547489762306, -0.3213604986667633, 0.17666800320148468, 0.09833937883377075, 0.05121323838829994, 0.2737872898578644, 0.0036067746113985777, -0.2950943112373352, -0.05453956127166748, 0.23464910686016083, -0.40477702021598816, -0.03170009329915047, -0.030274279415607452, 0.3744451701641083, -0.2566518485546112, 0.3307300806045532, 0.3852333724498749, -0.4384694993495941, -0.00405505858361721, -0.20967774093151093, 0.19041122496128082, -0.11197885125875473, 0.23128722608089447, -0.5138875246047974, 0.09372362494468689, -0.1294698268175125, 0.1951238214969635, -0.14417307078838348, 0.28250619769096375, 0.14633671939373016, -0.19448456168174744, -0.13568663597106934, -0.07952473312616348, 0.5552323460578918, -0.07203070819377899, 0.1971219927072525, -0.006087476387619972, 0.2329624444246292, -0.46464410424232483, 0.05347427725791931, -0.0029379138723015785, 0.38842782378196716, -0.04440031945705414, 0.28457775712013245, -0.07923436909914017, 0.03513895347714424, 0.17115338146686554, 0.08725389093160629, -0.09166643023490906, -0.11627418547868729, -0.4479885399341583, -0.17506924271583557, -0.627711296081543, 0.01577116921544075, -0.187601238489151, 0.046810779720544815, 0.013543054461479187, -0.0015811451012268662, -0.02171361818909645, 0.010483832098543644, 0.27501723170280457, 0.41941556334495544, 0.30644577741622925, 0.20718419551849365, -0.15765219926834106, 0.17673946917057037, 0.016632257029414177, -0.0027110064402222633, 0.5667644143104553, -0.23822662234306335, -0.33092063665390015, 0.13169258832931519, -0.16201597452163696, 0.3260578513145447, 0.3317364454269409, -0.10753252357244492, -0.0597737580537796, -0.22794106602668762, -0.13390879333019257, 0.22525112330913544, 0.0699809119105339, 0.20376434922218323, 0.036020807921886444, -0.1605217009782791, -0.5301191210746765, 0.2597106099128723, -0.11268135160207748, -0.03829963505268097, 0.09651787579059601, -0.1024332046508789, -0.13797572255134583, 0.2667334973812103, -0.15056224167346954, 0.6316713690757751, -0.17624284327030182, 0.19670695066452026, 0.40996024012565613, 0.16481272876262665, 0.25959405303001404, -0.27532073855400085, 0.05469802767038345, -0.5823909640312195, -0.1681002378463745, 0.08679531514644623, -0.1962476670742035, 0.05456799268722534, 0.5981958508491516, -0.04453008621931076, 0.3876834213733673, -0.09858276695013046, 0.27085018157958984, 0.041654568165540695, 0.4236886501312256, 0.044538646936416626, -0.07822541892528534, -0.7120158672332764, 0.2798592448234558, -0.04649616777896881, 0.1288078874349594, -0.1825537383556366, 0.013240222819149494, -0.07400157302618027, -0.2164384126663208, 0.0037712077610194683, 0.22937650978565216, -0.3000645935535431, 0.2244684249162674, 0.04462290182709694, -0.2387934774160385, -0.16962936520576477, 0.45931002497673035, 0.016059109941124916, 0.007565907668322325, 0.060394518077373505, 0.2545706033706665, 0.040586020797491074, 0.130835622549057, -0.029854854568839073, 0.16194257140159607, 0.1792600303888321, -0.10465362668037415, -0.20567306876182556, 0.14509962499141693, -0.07080937922000885, -0.3034808337688446, -0.15455149114131927, 0.27450013160705566, 0.0763385221362114, -0.4211510419845581, -0.3913385272026062, -0.1140381246805191, -0.025250865146517754, -0.16961506009101868, 0.17721086740493774, 0.028664708137512207, 0.03885537013411522, 0.17800654470920563, 0.2504345774650574, -0.32701778411865234, -0.14217251539230347, 0.4985520541667938, -0.0677962601184845, -0.020474374294281006, 0.42333775758743286, 0.06578077375888824, 0.00041380521724931896, -0.27826786041259766, 0.036286551505327225, 0.15433856844902039, -0.08467802405357361, 0.04904188588261604, 0.061506569385528564, -0.2746557593345642, 0.05106477439403534, 0.035926926881074905, 0.02851448766887188, 0.10137409716844559, 0.018431616947054863, -0.523977518081665, -0.2626744210720062, -0.0619947612285614, 0.09049448370933533, -0.01272659283131361, 0.4315132796764374, 0.0034448220394551754, 0.13707976043224335, 0.03125104680657387, -0.3643430769443512, 0.16508153080940247, -0.13909725844860077, 0.13931643962860107, 0.08876640349626541, -0.14343978464603424, 0.18855011463165283, -0.1634921431541443, 0.18509958684444427, -0.14249354600906372, -0.18012501299381256, -0.3694358468055725, -0.01919381134212017, 0.08338990062475204, 0.011668733321130276, 0.10785593092441559, -0.10996939986944199, -0.17138750851154327, -0.2691737711429596, -0.2065410017967224, 0.1806064248085022, 0.16010530292987823, 0.000026488838557270356, 0.07370275259017944, 0.027638044208288193, -0.1645941436290741, 0.019298354163765907, -0.20424947142601013, -0.058726731687784195, 0.022210311144590378, -0.03266249597072601, 0.03639841079711914, -0.07722441852092743, -0.04254315048456192, 0.05212673917412758, 0.21407915651798248, 0.22803834080696106, 0.3412548899650574, 0.15694351494312286, -0.3609628677368164, 0.0044098664075136185, 0.1863173246383667, 0.12000609189271927, 0.43498873710632324, -0.2972394824028015, 0.15554563701152802, -0.25893712043762207, 0.22714191675186157, -0.4334772229194641, -0.18806006014347076, 0.4090466797351837, -0.3000755310058594, 0.14320534467697144, 0.2864754796028137, 0.05183585360646248, 0.07583536207675934, 0.2621586322784424, 0.09967953711748123, 0.6660313010215759, -0.21230417490005493, 0.0398978553712368, 0.10710952430963516, -0.11900245398283005, 0.0996585488319397, 0.2994224429130554, 0.15727388858795166, 0.10206471383571625, 0.42619574069976807, -0.14833301305770874, 0.26642507314682007, -0.122111976146698, -0.36722299456596375, 0.13551156222820282, -0.2455262690782547, 0.026389462873339653, 0.24628184735774994, -0.12420481443405151, 0.1544213443994522, 0.11686975508928299, 0.5965229272842407, -0.25843802094459534, -0.06912888586521149, -0.15614154934883118, -0.08295394480228424, -0.14987622201442719, -0.08158737421035767, -0.017405586317181587, -0.2997385561466217, -0.06690231710672379, -0.14097395539283752, -0.2120470255613327, -0.29312583804130554, 0.0983612984418869, -0.15882405638694763, -0.03809541091322899, -0.07838349789381027, 0.19114911556243896, 0.13870863616466522, -0.2078130841255188, -0.07431317865848541, 0.12290052324533463, -0.05940396338701248, 0.12607590854167938, 0.4389858543872833, -0.029079174622893333, 0.4884476661682129, 0.12701928615570068, 0.0897422730922699, -0.057978902012109756, 0.10457172989845276, -0.20697380602359772, -0.17081031203269958, -0.02231730706989765, 0.018877079710364342, -0.18468733131885529, 0.3132624626159668, 0.28204333782196045, -0.17799514532089233, -0.3093818128108978, 0.3847790062427521, -0.2710109353065491, -0.1802840232849121, 0.04424823448061943, -0.24358537793159485, -0.1345912665128708, -0.399787575006485, 0.1639948934316635, -0.23374652862548828, -0.07225719094276428, 0.22488906979560852, 0.3407231867313385, 0.25729110836982727, -0.21555869281291962, 0.1400146335363388, 0.07993565499782562, 0.4810807704925537, 0.05077645927667618, 0.02381708100438118, -0.09896356612443924, 0.14447765052318573, -0.8653197288513184, 0.27431944012641907, 0.071525439620018, -0.0296923890709877, 0.08682737499475479, 0.2977502942085266, 0.36441275477409363, 0.26280730962753296, 0.13416709005832672, -0.016772814095020294, 0.09204930067062378, -0.15833406150341034, -0.3410514295101166, -0.3134925067424774, -0.3367227017879486, 0.23586151003837585, 0.16240042448043823, -0.44275254011154175, 0.10830571502447128, -0.26066136360168457, 0.15531396865844727, -0.21741001307964325, -0.2456168234348297, 0.030765453353524208, -0.34204789996147156, 0.28386351466178894, -0.15341375768184662, 0.5771335959434509, -0.1938948631286621, 0.05528736487030983, 0.025708932429552078, -0.2676868736743927, -0.12878164649009705, 0.40078845620155334, -0.022608937695622444, 0.13381969928741455, 0.11246032267808914, -0.05757209658622742, -0.1269058883190155, 0.21785135567188263, 0.1798737645149231, -0.11947008222341537, -0.31198012828826904, 0.2218105047941208, 0.08595585823059082, 0.03924080356955528, -0.2240085005760193, 0.33197396993637085, -0.1717492640018463, 0.2168576717376709, -0.001556594856083393, -0.254236102104187, 0.3602680563926697, -0.27248942852020264, -0.4081890881061554, -0.33742642402648926, 0.09029371291399002, 0.04484287649393082, -0.02065376378595829, -0.413510262966156, 0.3036614656448364, 0.2020743042230606, -0.20469485223293304, -0.2143043577671051, 0.08762155473232269, -0.34388747811317444, 0.20044414699077606, -0.1334540843963623, -0.0660395398736, 0.06662184745073318, -0.10810072720050812, -0.06604710221290588, -0.26499035954475403 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
I run the code,and it show below: ``` >>> from datasets.utils.info_utils import get_size_checksum_dict >>> from datasets import cached_path >>> get_size_checksum_dict(cached_path("https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json")) Downloading: 30.3MB [04:13, 120kB/s] {'num_bytes': 30288272, 'checksum': '3527663986b8295af4f7fcdff1ba1ff3f72d07d61a20f487cb238a6ef92fd955'} ```
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
29
Datasets.py function load_dataset does not match squad dataset
[ -0.2998250424861908, 0.12020309269428253, -0.15699218213558197, 0.0823507308959961, 0.4167197048664093, -0.0847940668463707, 0.5316449403762817, 0.2711387872695923, -0.0065111941657960415, -0.017319386824965477, -0.1609886735677719, 0.5503365397453308, 0.150523841381073, 0.07789125293493271, 0.11018604785203934, 0.23736515641212463, 0.010464250110089779, 0.09030061960220337, -0.12949097156524658, -0.2575986683368683, -0.2034173607826233, 0.20164217054843903, -0.13875532150268555, 0.11138229817152023, -0.22186745703220367, 0.028062129393219948, 0.13371312618255615, 0.442314475774765, -0.17299987375736237, -0.19048668444156647, 0.41556358337402344, 0.035696931183338165, 0.1042858362197876, 0.27871638536453247, -0.0001056996188708581, 0.1129588931798935, 0.05943353474140167, -0.33825820684432983, -0.36003217101097107, -0.018360087648034096, 0.0002486356534063816, -0.24281461536884308, 0.13176609575748444, -0.25253623723983765, -0.037198156118392944, 0.10641910880804062, 0.06554736942052841, -0.4953899085521698, 0.43399778008461, 0.40980732440948486, 0.2371395230293274, 0.438122421503067, -0.11713653057813644, -0.11686152219772339, -0.036546800285577774, -0.1822066754102707, 0.10973108559846878, 0.07259169220924377, 0.27582427859306335, -0.3366225063800812, 0.04135819524526596, 0.13668574392795563, -0.021092431619763374, 0.15926077961921692, 0.2125745266675949, -0.0035643954761326313, -0.02636541612446308, -0.43729084730148315, 0.1611965298652649, 0.017477327957749367, 0.3183021545410156, -0.36399316787719727, -0.29190152883529663, -0.08227324485778809, 0.07842104136943817, 0.09924867749214172, 0.010607302188873291, 0.08126289397478104, -0.01679878495633602, 0.04306372255086899, -0.0007834798307158053, 0.10655173659324646, 0.00043992523569613695, 0.14376933872699738, -0.1311233788728714, 0.22874557971954346, 0.03480004891753197, 0.17725330591201782, -0.07647833973169327, -0.010735319927334785, 0.18803535401821136, -0.07239624112844467, 0.2071283459663391, 0.26880863308906555, -0.5724685788154602, 0.0006433883681893349, 0.020190702751278877, -0.08973818272352219, 0.38686108589172363, 0.1354181170463562, 0.1299229860305786, 0.2343025803565979, 0.10844762623310089, 0.2524869740009308, 0.3849013149738312, -0.17944251000881195, 0.20820683240890503, 0.22734715044498444, -0.004829047713428736, -0.16204240918159485, -0.32465988397598267, 0.12480674684047699, -0.21612156927585602, -0.31538817286491394, 0.1438092142343521, -0.059499308466911316, 0.20007064938545227, -0.1569245606660843, -0.20113401114940643, -0.0003877943381667137, 0.2738442122936249, 0.006841422524303198, -0.0989030972123146, 0.5390006899833679, 0.08911511301994324, 0.026435380801558495, -0.1659827083349228, 0.4766300916671753, -0.18758991360664368, 0.007091795559972525, -0.33609434962272644, -0.04061020910739899, 0.13712652027606964, -0.11525749415159225, 0.2261858731508255, -0.21576839685440063, 0.33101221919059753, 0.07733535766601562, 0.15671473741531372, -0.10189693421125412, 0.22385813295841217, -0.06130889803171158, 0.1597970724105835, 0.18790704011917114, 0.1918220818042755, -0.021396052092313766, 0.2958236038684845, -0.25240933895111084, 0.0011046333238482475, 0.17823468148708344, -0.38711562752723694, -0.20557209849357605, -0.09795234352350235, 0.287084698677063, -0.1282433271408081, -0.0032022118102759123, -0.1313919872045517, 0.022787151858210564, 0.17587505280971527, -0.32721537351608276, -0.12182467430830002, -0.23383517563343048, 0.03540382161736488, -0.26731786131858826, 0.16701926290988922, 0.44077637791633606, -0.46817702054977417, -0.1830703616142273, 0.1860961616039276, -0.36814790964126587, -0.08038468658924103, 0.13087433576583862, -0.1885644644498825, -0.12792493402957916, -0.15034803748130798, -0.04389156401157379, 0.6551920175552368, -0.6224268674850464, -0.4217080771923065, 0.06263399869203568, -0.0498165488243103, -0.17380404472351074, -0.03150675445795059, 0.18202470242977142, 0.23074956238269806, 0.20330840349197388, 0.1252625286579132, 0.5107231736183167, 0.029220541939139366, 0.23928435146808624, -0.003932921681553125, -0.09315705299377441, 0.25630348920822144, 0.3310657739639282, 0.08679164201021194, 0.12913401424884796, 0.21655648946762085, 0.11368345469236374, 0.32795682549476624, -0.16272494196891785, -0.1179349347949028, 0.07631540298461914, -0.04931776970624924, -0.014115803875029087, 0.16728851199150085, -0.06583657115697861, -0.43786466121673584, 0.058252062648534775, -0.21051470935344696, 0.16849932074546814, -0.10497941821813583, -0.07587900757789612, -0.27248889207839966, 0.04220366105437279, -0.34123310446739197, -0.08691473305225372, 0.19447879493236542, -0.04302484169602394, -0.02352280169725418, -0.15154387056827545, -0.2501008212566376, 0.27649539709091187, -0.370095819234848, 0.2190152257680893, -0.18985635042190552, 0.34149253368377686, -0.0777321308851242, -0.06276828795671463, 0.2659725248813629, 0.2100512683391571, 0.23659396171569824, -0.050769295543432236, -0.05536145344376564, 0.26077455282211304, 0.18723814189434052, -0.05181698128581047, 0.21708324551582336, -0.2811430096626282, 0.011765909381210804, -0.029680980369448662, 0.07513981312513351, 0.1934490203857422, 0.1883487105369568, -0.062192730605602264, -0.27202412486076355, 0.4420435130596161, -0.017061732709407806, 0.11585095524787903, 0.04944539815187454, -0.16947941482067108, 0.3759162127971649, 0.18009401857852936, -0.13374756276607513, 0.04781809449195862, -0.24240736663341522, 0.16433146595954895, 0.5680739283561707, 0.015505621209740639, -0.16975009441375732, 0.1085631400346756, 0.4505138099193573, 0.032077860087156296, 0.29333367943763733, -0.036020223051309586, -0.10872724652290344, -0.18194641172885895, 0.06361231207847595, -0.08778048306703568, 0.3902532160282135, 0.17935293912887573, -0.27952104806900024, -0.13287553191184998, -0.08172884583473206, -0.04622839391231537, 0.010311751626431942, -0.1345154494047165, 0.13704074919223785, 0.061419785022735596, 0.2184826135635376, -0.21950864791870117, -0.4104281961917877, -0.024330707266926765, -0.12358129769563675, 0.10532621294260025, -0.30359911918640137, 0.09293687343597412, -0.01373581774532795, 0.001306232763454318, -0.15516896545886993, 0.18761178851127625, -0.39176464080810547, -0.22875435650348663, -0.017671285197138786, -0.15886087715625763, 0.1847948282957077, 0.31021082401275635, 0.04456203430891037, -0.010953566059470177, 0.34706225991249084, -0.4207341969013214, 0.22205783426761627, -0.25410330295562744, 0.04728333279490471, 0.16790108382701874, -0.08465944230556488, 0.05398627370595932, 0.004793247207999229, -0.16465549170970917, 0.04535752907395363, -0.21630516648292542, -0.11999417096376419, 0.10937222093343735, 0.007976694032549858, 0.3002690076828003, -0.018698563799262047, 0.34490641951560974, 0.08685795217752457, -0.06529247760772705, 0.14354221522808075, -0.2654168903827667, -0.029110869392752647, -0.012711109593510628, -0.07928492873907089, -0.1373021900653839, -0.033442992717027664, -0.6007948517799377, -0.5734248161315918, -0.16729503870010376, -0.14252588152885437, 0.3864935040473938, 0.18440550565719604, 0.09418952465057373, 0.2696404457092285, 0.035866256803274155, -0.053563784807920456, 0.05444986745715141, -0.41472193598747253, -0.246537983417511, 0.2518569529056549, -0.017272653058171272, -0.3264833390712738, -0.03727316856384277, -0.0011129669146612287, 0.14987486600875854, -0.07140252739191055, -0.030533896759152412, -0.4041302800178528, 0.29167914390563965, 0.0205694530159235, -0.06532128155231476, 0.29491186141967773, 0.20298545062541962, -0.01829621009528637, -0.03227635845541954, -0.27613404393196106, -0.3759132921695709, -0.006883351597934961, 0.11543800681829453, 0.047503095120191574, -0.1788564920425415, 0.12981536984443665, -0.24663741886615753, 0.5865738391876221, 0.09862031787633896, -0.03814651072025299, 0.24710819125175476, -0.3439517915248871, 0.4482141435146332, 0.024231547489762306, -0.3213604986667633, 0.17666800320148468, 0.09833937883377075, 0.05121323838829994, 0.2737872898578644, 0.0036067746113985777, -0.2950943112373352, -0.05453956127166748, 0.23464910686016083, -0.40477702021598816, -0.03170009329915047, -0.030274279415607452, 0.3744451701641083, -0.2566518485546112, 0.3307300806045532, 0.3852333724498749, -0.4384694993495941, -0.00405505858361721, -0.20967774093151093, 0.19041122496128082, -0.11197885125875473, 0.23128722608089447, -0.5138875246047974, 0.09372362494468689, -0.1294698268175125, 0.1951238214969635, -0.14417307078838348, 0.28250619769096375, 0.14633671939373016, -0.19448456168174744, -0.13568663597106934, -0.07952473312616348, 0.5552323460578918, -0.07203070819377899, 0.1971219927072525, -0.006087476387619972, 0.2329624444246292, -0.46464410424232483, 0.05347427725791931, -0.0029379138723015785, 0.38842782378196716, -0.04440031945705414, 0.28457775712013245, -0.07923436909914017, 0.03513895347714424, 0.17115338146686554, 0.08725389093160629, -0.09166643023490906, -0.11627418547868729, -0.4479885399341583, -0.17506924271583557, -0.627711296081543, 0.01577116921544075, -0.187601238489151, 0.046810779720544815, 0.013543054461479187, -0.0015811451012268662, -0.02171361818909645, 0.010483832098543644, 0.27501723170280457, 0.41941556334495544, 0.30644577741622925, 0.20718419551849365, -0.15765219926834106, 0.17673946917057037, 0.016632257029414177, -0.0027110064402222633, 0.5667644143104553, -0.23822662234306335, -0.33092063665390015, 0.13169258832931519, -0.16201597452163696, 0.3260578513145447, 0.3317364454269409, -0.10753252357244492, -0.0597737580537796, -0.22794106602668762, -0.13390879333019257, 0.22525112330913544, 0.0699809119105339, 0.20376434922218323, 0.036020807921886444, -0.1605217009782791, -0.5301191210746765, 0.2597106099128723, -0.11268135160207748, -0.03829963505268097, 0.09651787579059601, -0.1024332046508789, -0.13797572255134583, 0.2667334973812103, -0.15056224167346954, 0.6316713690757751, -0.17624284327030182, 0.19670695066452026, 0.40996024012565613, 0.16481272876262665, 0.25959405303001404, -0.27532073855400085, 0.05469802767038345, -0.5823909640312195, -0.1681002378463745, 0.08679531514644623, -0.1962476670742035, 0.05456799268722534, 0.5981958508491516, -0.04453008621931076, 0.3876834213733673, -0.09858276695013046, 0.27085018157958984, 0.041654568165540695, 0.4236886501312256, 0.044538646936416626, -0.07822541892528534, -0.7120158672332764, 0.2798592448234558, -0.04649616777896881, 0.1288078874349594, -0.1825537383556366, 0.013240222819149494, -0.07400157302618027, -0.2164384126663208, 0.0037712077610194683, 0.22937650978565216, -0.3000645935535431, 0.2244684249162674, 0.04462290182709694, -0.2387934774160385, -0.16962936520576477, 0.45931002497673035, 0.016059109941124916, 0.007565907668322325, 0.060394518077373505, 0.2545706033706665, 0.040586020797491074, 0.130835622549057, -0.029854854568839073, 0.16194257140159607, 0.1792600303888321, -0.10465362668037415, -0.20567306876182556, 0.14509962499141693, -0.07080937922000885, -0.3034808337688446, -0.15455149114131927, 0.27450013160705566, 0.0763385221362114, -0.4211510419845581, -0.3913385272026062, -0.1140381246805191, -0.025250865146517754, -0.16961506009101868, 0.17721086740493774, 0.028664708137512207, 0.03885537013411522, 0.17800654470920563, 0.2504345774650574, -0.32701778411865234, -0.14217251539230347, 0.4985520541667938, -0.0677962601184845, -0.020474374294281006, 0.42333775758743286, 0.06578077375888824, 0.00041380521724931896, -0.27826786041259766, 0.036286551505327225, 0.15433856844902039, -0.08467802405357361, 0.04904188588261604, 0.061506569385528564, -0.2746557593345642, 0.05106477439403534, 0.035926926881074905, 0.02851448766887188, 0.10137409716844559, 0.018431616947054863, -0.523977518081665, -0.2626744210720062, -0.0619947612285614, 0.09049448370933533, -0.01272659283131361, 0.4315132796764374, 0.0034448220394551754, 0.13707976043224335, 0.03125104680657387, -0.3643430769443512, 0.16508153080940247, -0.13909725844860077, 0.13931643962860107, 0.08876640349626541, -0.14343978464603424, 0.18855011463165283, -0.1634921431541443, 0.18509958684444427, -0.14249354600906372, -0.18012501299381256, -0.3694358468055725, -0.01919381134212017, 0.08338990062475204, 0.011668733321130276, 0.10785593092441559, -0.10996939986944199, -0.17138750851154327, -0.2691737711429596, -0.2065410017967224, 0.1806064248085022, 0.16010530292987823, 0.000026488838557270356, 0.07370275259017944, 0.027638044208288193, -0.1645941436290741, 0.019298354163765907, -0.20424947142601013, -0.058726731687784195, 0.022210311144590378, -0.03266249597072601, 0.03639841079711914, -0.07722441852092743, -0.04254315048456192, 0.05212673917412758, 0.21407915651798248, 0.22803834080696106, 0.3412548899650574, 0.15694351494312286, -0.3609628677368164, 0.0044098664075136185, 0.1863173246383667, 0.12000609189271927, 0.43498873710632324, -0.2972394824028015, 0.15554563701152802, -0.25893712043762207, 0.22714191675186157, -0.4334772229194641, -0.18806006014347076, 0.4090466797351837, -0.3000755310058594, 0.14320534467697144, 0.2864754796028137, 0.05183585360646248, 0.07583536207675934, 0.2621586322784424, 0.09967953711748123, 0.6660313010215759, -0.21230417490005493, 0.0398978553712368, 0.10710952430963516, -0.11900245398283005, 0.0996585488319397, 0.2994224429130554, 0.15727388858795166, 0.10206471383571625, 0.42619574069976807, -0.14833301305770874, 0.26642507314682007, -0.122111976146698, -0.36722299456596375, 0.13551156222820282, -0.2455262690782547, 0.026389462873339653, 0.24628184735774994, -0.12420481443405151, 0.1544213443994522, 0.11686975508928299, 0.5965229272842407, -0.25843802094459534, -0.06912888586521149, -0.15614154934883118, -0.08295394480228424, -0.14987622201442719, -0.08158737421035767, -0.017405586317181587, -0.2997385561466217, -0.06690231710672379, -0.14097395539283752, -0.2120470255613327, -0.29312583804130554, 0.0983612984418869, -0.15882405638694763, -0.03809541091322899, -0.07838349789381027, 0.19114911556243896, 0.13870863616466522, -0.2078130841255188, -0.07431317865848541, 0.12290052324533463, -0.05940396338701248, 0.12607590854167938, 0.4389858543872833, -0.029079174622893333, 0.4884476661682129, 0.12701928615570068, 0.0897422730922699, -0.057978902012109756, 0.10457172989845276, -0.20697380602359772, -0.17081031203269958, -0.02231730706989765, 0.018877079710364342, -0.18468733131885529, 0.3132624626159668, 0.28204333782196045, -0.17799514532089233, -0.3093818128108978, 0.3847790062427521, -0.2710109353065491, -0.1802840232849121, 0.04424823448061943, -0.24358537793159485, -0.1345912665128708, -0.399787575006485, 0.1639948934316635, -0.23374652862548828, -0.07225719094276428, 0.22488906979560852, 0.3407231867313385, 0.25729110836982727, -0.21555869281291962, 0.1400146335363388, 0.07993565499782562, 0.4810807704925537, 0.05077645927667618, 0.02381708100438118, -0.09896356612443924, 0.14447765052318573, -0.8653197288513184, 0.27431944012641907, 0.071525439620018, -0.0296923890709877, 0.08682737499475479, 0.2977502942085266, 0.36441275477409363, 0.26280730962753296, 0.13416709005832672, -0.016772814095020294, 0.09204930067062378, -0.15833406150341034, -0.3410514295101166, -0.3134925067424774, -0.3367227017879486, 0.23586151003837585, 0.16240042448043823, -0.44275254011154175, 0.10830571502447128, -0.26066136360168457, 0.15531396865844727, -0.21741001307964325, -0.2456168234348297, 0.030765453353524208, -0.34204789996147156, 0.28386351466178894, -0.15341375768184662, 0.5771335959434509, -0.1938948631286621, 0.05528736487030983, 0.025708932429552078, -0.2676868736743927, -0.12878164649009705, 0.40078845620155334, -0.022608937695622444, 0.13381969928741455, 0.11246032267808914, -0.05757209658622742, -0.1269058883190155, 0.21785135567188263, 0.1798737645149231, -0.11947008222341537, -0.31198012828826904, 0.2218105047941208, 0.08595585823059082, 0.03924080356955528, -0.2240085005760193, 0.33197396993637085, -0.1717492640018463, 0.2168576717376709, -0.001556594856083393, -0.254236102104187, 0.3602680563926697, -0.27248942852020264, -0.4081890881061554, -0.33742642402648926, 0.09029371291399002, 0.04484287649393082, -0.02065376378595829, -0.413510262966156, 0.3036614656448364, 0.2020743042230606, -0.20469485223293304, -0.2143043577671051, 0.08762155473232269, -0.34388747811317444, 0.20044414699077606, -0.1334540843963623, -0.0660395398736, 0.06662184745073318, -0.10810072720050812, -0.06604710221290588, -0.26499035954475403 ]
https://github.com/huggingface/datasets/issues/1964
Datasets.py function load_dataset does not match squad dataset
Alright ! So in this case redownloading the file with `download_mode="force_redownload"` should fix it. Can you try using `download_mode="force_redownload"` again ? Not sure why it didn't work for you the first time though :/
### 1 When I try to train lxmert,and follow the code in README that --dataset name: ```shell python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --dataset_name squad --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` the bug is that: ``` Downloading and preparing dataset squad/plain_text (download: 33.51 MiB, generated: 85.75 MiB, post-processed: Unknown size, total: 119.27 MiB) to /home2/zhenggo1/.cache/huggingface/datasets/squad/plain_text/1.0.0/4c81550d83a2ac7c7ce23783bd8ff36642800e6633c1f18417fb58c3ff50cdd7... Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 217, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/builder.py", line 633, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/zhenggo1/anaconda3/envs/lpot/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json'] ``` And I try to find the [checksum link](https://github.com/huggingface/datasets/blob/master/datasets/squad/dataset_infos.json) ,is the problem plain_text do not have a checksum? ### 2 When I try to train lxmert,and use local dataset: ``` python examples/question-answering/run_qa.py --model_name_or_path unc-nlp/lxmert-base-uncased --train_file $SQUAD_DIR/train-v1.1.json --validation_file $SQUAD_DIR/dev-v1.1.json --do_train --do_eval --per_device_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 2 --max_seq_length 384 --doc_stride 128 --output_dir /home2/zhenggo1/checkpoint/lxmert_squad ``` The bug is that ``` ['title', 'paragraphs'] Traceback (most recent call last): File "examples/question-answering/run_qa.py", line 501, in <module> main() File "examples/question-answering/run_qa.py", line 273, in main answer_column_name = "answers" if "answers" in column_names else column_names[2] IndexError: list index out of range ``` I print the answer_column_name and find that local squad dataset need the package datasets to preprocessing so that the code below can work: ``` if training_args.do_train: column_names = datasets["train"].column_names else: column_names = datasets["validation"].column_names print(datasets["train"].column_names) question_column_name = "question" if "question" in column_names else column_names[0] context_column_name = "context" if "context" in column_names else column_names[1] answer_column_name = "answers" if "answers" in column_names else column_names[2] ``` ## Please tell me how to fix the bug,thks a lot!
34
Datasets.py function load_dataset does not match squad dataset
[ -0.2998250424861908, 0.12020309269428253, -0.15699218213558197, 0.0823507308959961, 0.4167197048664093, -0.0847940668463707, 0.5316449403762817, 0.2711387872695923, -0.0065111941657960415, -0.017319386824965477, -0.1609886735677719, 0.5503365397453308, 0.150523841381073, 0.07789125293493271, 0.11018604785203934, 0.23736515641212463, 0.010464250110089779, 0.09030061960220337, -0.12949097156524658, -0.2575986683368683, -0.2034173607826233, 0.20164217054843903, -0.13875532150268555, 0.11138229817152023, -0.22186745703220367, 0.028062129393219948, 0.13371312618255615, 0.442314475774765, -0.17299987375736237, -0.19048668444156647, 0.41556358337402344, 0.035696931183338165, 0.1042858362197876, 0.27871638536453247, -0.0001056996188708581, 0.1129588931798935, 0.05943353474140167, -0.33825820684432983, -0.36003217101097107, -0.018360087648034096, 0.0002486356534063816, -0.24281461536884308, 0.13176609575748444, -0.25253623723983765, -0.037198156118392944, 0.10641910880804062, 0.06554736942052841, -0.4953899085521698, 0.43399778008461, 0.40980732440948486, 0.2371395230293274, 0.438122421503067, -0.11713653057813644, -0.11686152219772339, -0.036546800285577774, -0.1822066754102707, 0.10973108559846878, 0.07259169220924377, 0.27582427859306335, -0.3366225063800812, 0.04135819524526596, 0.13668574392795563, -0.021092431619763374, 0.15926077961921692, 0.2125745266675949, -0.0035643954761326313, -0.02636541612446308, -0.43729084730148315, 0.1611965298652649, 0.017477327957749367, 0.3183021545410156, -0.36399316787719727, -0.29190152883529663, -0.08227324485778809, 0.07842104136943817, 0.09924867749214172, 0.010607302188873291, 0.08126289397478104, -0.01679878495633602, 0.04306372255086899, -0.0007834798307158053, 0.10655173659324646, 0.00043992523569613695, 0.14376933872699738, -0.1311233788728714, 0.22874557971954346, 0.03480004891753197, 0.17725330591201782, -0.07647833973169327, -0.010735319927334785, 0.18803535401821136, -0.07239624112844467, 0.2071283459663391, 0.26880863308906555, -0.5724685788154602, 0.0006433883681893349, 0.020190702751278877, -0.08973818272352219, 0.38686108589172363, 0.1354181170463562, 0.1299229860305786, 0.2343025803565979, 0.10844762623310089, 0.2524869740009308, 0.3849013149738312, -0.17944251000881195, 0.20820683240890503, 0.22734715044498444, -0.004829047713428736, -0.16204240918159485, -0.32465988397598267, 0.12480674684047699, -0.21612156927585602, -0.31538817286491394, 0.1438092142343521, -0.059499308466911316, 0.20007064938545227, -0.1569245606660843, -0.20113401114940643, -0.0003877943381667137, 0.2738442122936249, 0.006841422524303198, -0.0989030972123146, 0.5390006899833679, 0.08911511301994324, 0.026435380801558495, -0.1659827083349228, 0.4766300916671753, -0.18758991360664368, 0.007091795559972525, -0.33609434962272644, -0.04061020910739899, 0.13712652027606964, -0.11525749415159225, 0.2261858731508255, -0.21576839685440063, 0.33101221919059753, 0.07733535766601562, 0.15671473741531372, -0.10189693421125412, 0.22385813295841217, -0.06130889803171158, 0.1597970724105835, 0.18790704011917114, 0.1918220818042755, -0.021396052092313766, 0.2958236038684845, -0.25240933895111084, 0.0011046333238482475, 0.17823468148708344, -0.38711562752723694, -0.20557209849357605, -0.09795234352350235, 0.287084698677063, -0.1282433271408081, -0.0032022118102759123, -0.1313919872045517, 0.022787151858210564, 0.17587505280971527, -0.32721537351608276, -0.12182467430830002, -0.23383517563343048, 0.03540382161736488, -0.26731786131858826, 0.16701926290988922, 0.44077637791633606, -0.46817702054977417, -0.1830703616142273, 0.1860961616039276, -0.36814790964126587, -0.08038468658924103, 0.13087433576583862, -0.1885644644498825, -0.12792493402957916, -0.15034803748130798, -0.04389156401157379, 0.6551920175552368, -0.6224268674850464, -0.4217080771923065, 0.06263399869203568, -0.0498165488243103, -0.17380404472351074, -0.03150675445795059, 0.18202470242977142, 0.23074956238269806, 0.20330840349197388, 0.1252625286579132, 0.5107231736183167, 0.029220541939139366, 0.23928435146808624, -0.003932921681553125, -0.09315705299377441, 0.25630348920822144, 0.3310657739639282, 0.08679164201021194, 0.12913401424884796, 0.21655648946762085, 0.11368345469236374, 0.32795682549476624, -0.16272494196891785, -0.1179349347949028, 0.07631540298461914, -0.04931776970624924, -0.014115803875029087, 0.16728851199150085, -0.06583657115697861, -0.43786466121673584, 0.058252062648534775, -0.21051470935344696, 0.16849932074546814, -0.10497941821813583, -0.07587900757789612, -0.27248889207839966, 0.04220366105437279, -0.34123310446739197, -0.08691473305225372, 0.19447879493236542, -0.04302484169602394, -0.02352280169725418, -0.15154387056827545, -0.2501008212566376, 0.27649539709091187, -0.370095819234848, 0.2190152257680893, -0.18985635042190552, 0.34149253368377686, -0.0777321308851242, -0.06276828795671463, 0.2659725248813629, 0.2100512683391571, 0.23659396171569824, -0.050769295543432236, -0.05536145344376564, 0.26077455282211304, 0.18723814189434052, -0.05181698128581047, 0.21708324551582336, -0.2811430096626282, 0.011765909381210804, -0.029680980369448662, 0.07513981312513351, 0.1934490203857422, 0.1883487105369568, -0.062192730605602264, -0.27202412486076355, 0.4420435130596161, -0.017061732709407806, 0.11585095524787903, 0.04944539815187454, -0.16947941482067108, 0.3759162127971649, 0.18009401857852936, -0.13374756276607513, 0.04781809449195862, -0.24240736663341522, 0.16433146595954895, 0.5680739283561707, 0.015505621209740639, -0.16975009441375732, 0.1085631400346756, 0.4505138099193573, 0.032077860087156296, 0.29333367943763733, -0.036020223051309586, -0.10872724652290344, -0.18194641172885895, 0.06361231207847595, -0.08778048306703568, 0.3902532160282135, 0.17935293912887573, -0.27952104806900024, -0.13287553191184998, -0.08172884583473206, -0.04622839391231537, 0.010311751626431942, -0.1345154494047165, 0.13704074919223785, 0.061419785022735596, 0.2184826135635376, -0.21950864791870117, -0.4104281961917877, -0.024330707266926765, -0.12358129769563675, 0.10532621294260025, -0.30359911918640137, 0.09293687343597412, -0.01373581774532795, 0.001306232763454318, -0.15516896545886993, 0.18761178851127625, -0.39176464080810547, -0.22875435650348663, -0.017671285197138786, -0.15886087715625763, 0.1847948282957077, 0.31021082401275635, 0.04456203430891037, -0.010953566059470177, 0.34706225991249084, -0.4207341969013214, 0.22205783426761627, -0.25410330295562744, 0.04728333279490471, 0.16790108382701874, -0.08465944230556488, 0.05398627370595932, 0.004793247207999229, -0.16465549170970917, 0.04535752907395363, -0.21630516648292542, -0.11999417096376419, 0.10937222093343735, 0.007976694032549858, 0.3002690076828003, -0.018698563799262047, 0.34490641951560974, 0.08685795217752457, -0.06529247760772705, 0.14354221522808075, -0.2654168903827667, -0.029110869392752647, -0.012711109593510628, -0.07928492873907089, -0.1373021900653839, -0.033442992717027664, -0.6007948517799377, -0.5734248161315918, -0.16729503870010376, -0.14252588152885437, 0.3864935040473938, 0.18440550565719604, 0.09418952465057373, 0.2696404457092285, 0.035866256803274155, -0.053563784807920456, 0.05444986745715141, -0.41472193598747253, -0.246537983417511, 0.2518569529056549, -0.017272653058171272, -0.3264833390712738, -0.03727316856384277, -0.0011129669146612287, 0.14987486600875854, -0.07140252739191055, -0.030533896759152412, -0.4041302800178528, 0.29167914390563965, 0.0205694530159235, -0.06532128155231476, 0.29491186141967773, 0.20298545062541962, -0.01829621009528637, -0.03227635845541954, -0.27613404393196106, -0.3759132921695709, -0.006883351597934961, 0.11543800681829453, 0.047503095120191574, -0.1788564920425415, 0.12981536984443665, -0.24663741886615753, 0.5865738391876221, 0.09862031787633896, -0.03814651072025299, 0.24710819125175476, -0.3439517915248871, 0.4482141435146332, 0.024231547489762306, -0.3213604986667633, 0.17666800320148468, 0.09833937883377075, 0.05121323838829994, 0.2737872898578644, 0.0036067746113985777, -0.2950943112373352, -0.05453956127166748, 0.23464910686016083, -0.40477702021598816, -0.03170009329915047, -0.030274279415607452, 0.3744451701641083, -0.2566518485546112, 0.3307300806045532, 0.3852333724498749, -0.4384694993495941, -0.00405505858361721, -0.20967774093151093, 0.19041122496128082, -0.11197885125875473, 0.23128722608089447, -0.5138875246047974, 0.09372362494468689, -0.1294698268175125, 0.1951238214969635, -0.14417307078838348, 0.28250619769096375, 0.14633671939373016, -0.19448456168174744, -0.13568663597106934, -0.07952473312616348, 0.5552323460578918, -0.07203070819377899, 0.1971219927072525, -0.006087476387619972, 0.2329624444246292, -0.46464410424232483, 0.05347427725791931, -0.0029379138723015785, 0.38842782378196716, -0.04440031945705414, 0.28457775712013245, -0.07923436909914017, 0.03513895347714424, 0.17115338146686554, 0.08725389093160629, -0.09166643023490906, -0.11627418547868729, -0.4479885399341583, -0.17506924271583557, -0.627711296081543, 0.01577116921544075, -0.187601238489151, 0.046810779720544815, 0.013543054461479187, -0.0015811451012268662, -0.02171361818909645, 0.010483832098543644, 0.27501723170280457, 0.41941556334495544, 0.30644577741622925, 0.20718419551849365, -0.15765219926834106, 0.17673946917057037, 0.016632257029414177, -0.0027110064402222633, 0.5667644143104553, -0.23822662234306335, -0.33092063665390015, 0.13169258832931519, -0.16201597452163696, 0.3260578513145447, 0.3317364454269409, -0.10753252357244492, -0.0597737580537796, -0.22794106602668762, -0.13390879333019257, 0.22525112330913544, 0.0699809119105339, 0.20376434922218323, 0.036020807921886444, -0.1605217009782791, -0.5301191210746765, 0.2597106099128723, -0.11268135160207748, -0.03829963505268097, 0.09651787579059601, -0.1024332046508789, -0.13797572255134583, 0.2667334973812103, -0.15056224167346954, 0.6316713690757751, -0.17624284327030182, 0.19670695066452026, 0.40996024012565613, 0.16481272876262665, 0.25959405303001404, -0.27532073855400085, 0.05469802767038345, -0.5823909640312195, -0.1681002378463745, 0.08679531514644623, -0.1962476670742035, 0.05456799268722534, 0.5981958508491516, -0.04453008621931076, 0.3876834213733673, -0.09858276695013046, 0.27085018157958984, 0.041654568165540695, 0.4236886501312256, 0.044538646936416626, -0.07822541892528534, -0.7120158672332764, 0.2798592448234558, -0.04649616777896881, 0.1288078874349594, -0.1825537383556366, 0.013240222819149494, -0.07400157302618027, -0.2164384126663208, 0.0037712077610194683, 0.22937650978565216, -0.3000645935535431, 0.2244684249162674, 0.04462290182709694, -0.2387934774160385, -0.16962936520576477, 0.45931002497673035, 0.016059109941124916, 0.007565907668322325, 0.060394518077373505, 0.2545706033706665, 0.040586020797491074, 0.130835622549057, -0.029854854568839073, 0.16194257140159607, 0.1792600303888321, -0.10465362668037415, -0.20567306876182556, 0.14509962499141693, -0.07080937922000885, -0.3034808337688446, -0.15455149114131927, 0.27450013160705566, 0.0763385221362114, -0.4211510419845581, -0.3913385272026062, -0.1140381246805191, -0.025250865146517754, -0.16961506009101868, 0.17721086740493774, 0.028664708137512207, 0.03885537013411522, 0.17800654470920563, 0.2504345774650574, -0.32701778411865234, -0.14217251539230347, 0.4985520541667938, -0.0677962601184845, -0.020474374294281006, 0.42333775758743286, 0.06578077375888824, 0.00041380521724931896, -0.27826786041259766, 0.036286551505327225, 0.15433856844902039, -0.08467802405357361, 0.04904188588261604, 0.061506569385528564, -0.2746557593345642, 0.05106477439403534, 0.035926926881074905, 0.02851448766887188, 0.10137409716844559, 0.018431616947054863, -0.523977518081665, -0.2626744210720062, -0.0619947612285614, 0.09049448370933533, -0.01272659283131361, 0.4315132796764374, 0.0034448220394551754, 0.13707976043224335, 0.03125104680657387, -0.3643430769443512, 0.16508153080940247, -0.13909725844860077, 0.13931643962860107, 0.08876640349626541, -0.14343978464603424, 0.18855011463165283, -0.1634921431541443, 0.18509958684444427, -0.14249354600906372, -0.18012501299381256, -0.3694358468055725, -0.01919381134212017, 0.08338990062475204, 0.011668733321130276, 0.10785593092441559, -0.10996939986944199, -0.17138750851154327, -0.2691737711429596, -0.2065410017967224, 0.1806064248085022, 0.16010530292987823, 0.000026488838557270356, 0.07370275259017944, 0.027638044208288193, -0.1645941436290741, 0.019298354163765907, -0.20424947142601013, -0.058726731687784195, 0.022210311144590378, -0.03266249597072601, 0.03639841079711914, -0.07722441852092743, -0.04254315048456192, 0.05212673917412758, 0.21407915651798248, 0.22803834080696106, 0.3412548899650574, 0.15694351494312286, -0.3609628677368164, 0.0044098664075136185, 0.1863173246383667, 0.12000609189271927, 0.43498873710632324, -0.2972394824028015, 0.15554563701152802, -0.25893712043762207, 0.22714191675186157, -0.4334772229194641, -0.18806006014347076, 0.4090466797351837, -0.3000755310058594, 0.14320534467697144, 0.2864754796028137, 0.05183585360646248, 0.07583536207675934, 0.2621586322784424, 0.09967953711748123, 0.6660313010215759, -0.21230417490005493, 0.0398978553712368, 0.10710952430963516, -0.11900245398283005, 0.0996585488319397, 0.2994224429130554, 0.15727388858795166, 0.10206471383571625, 0.42619574069976807, -0.14833301305770874, 0.26642507314682007, -0.122111976146698, -0.36722299456596375, 0.13551156222820282, -0.2455262690782547, 0.026389462873339653, 0.24628184735774994, -0.12420481443405151, 0.1544213443994522, 0.11686975508928299, 0.5965229272842407, -0.25843802094459534, -0.06912888586521149, -0.15614154934883118, -0.08295394480228424, -0.14987622201442719, -0.08158737421035767, -0.017405586317181587, -0.2997385561466217, -0.06690231710672379, -0.14097395539283752, -0.2120470255613327, -0.29312583804130554, 0.0983612984418869, -0.15882405638694763, -0.03809541091322899, -0.07838349789381027, 0.19114911556243896, 0.13870863616466522, -0.2078130841255188, -0.07431317865848541, 0.12290052324533463, -0.05940396338701248, 0.12607590854167938, 0.4389858543872833, -0.029079174622893333, 0.4884476661682129, 0.12701928615570068, 0.0897422730922699, -0.057978902012109756, 0.10457172989845276, -0.20697380602359772, -0.17081031203269958, -0.02231730706989765, 0.018877079710364342, -0.18468733131885529, 0.3132624626159668, 0.28204333782196045, -0.17799514532089233, -0.3093818128108978, 0.3847790062427521, -0.2710109353065491, -0.1802840232849121, 0.04424823448061943, -0.24358537793159485, -0.1345912665128708, -0.399787575006485, 0.1639948934316635, -0.23374652862548828, -0.07225719094276428, 0.22488906979560852, 0.3407231867313385, 0.25729110836982727, -0.21555869281291962, 0.1400146335363388, 0.07993565499782562, 0.4810807704925537, 0.05077645927667618, 0.02381708100438118, -0.09896356612443924, 0.14447765052318573, -0.8653197288513184, 0.27431944012641907, 0.071525439620018, -0.0296923890709877, 0.08682737499475479, 0.2977502942085266, 0.36441275477409363, 0.26280730962753296, 0.13416709005832672, -0.016772814095020294, 0.09204930067062378, -0.15833406150341034, -0.3410514295101166, -0.3134925067424774, -0.3367227017879486, 0.23586151003837585, 0.16240042448043823, -0.44275254011154175, 0.10830571502447128, -0.26066136360168457, 0.15531396865844727, -0.21741001307964325, -0.2456168234348297, 0.030765453353524208, -0.34204789996147156, 0.28386351466178894, -0.15341375768184662, 0.5771335959434509, -0.1938948631286621, 0.05528736487030983, 0.025708932429552078, -0.2676868736743927, -0.12878164649009705, 0.40078845620155334, -0.022608937695622444, 0.13381969928741455, 0.11246032267808914, -0.05757209658622742, -0.1269058883190155, 0.21785135567188263, 0.1798737645149231, -0.11947008222341537, -0.31198012828826904, 0.2218105047941208, 0.08595585823059082, 0.03924080356955528, -0.2240085005760193, 0.33197396993637085, -0.1717492640018463, 0.2168576717376709, -0.001556594856083393, -0.254236102104187, 0.3602680563926697, -0.27248942852020264, -0.4081890881061554, -0.33742642402648926, 0.09029371291399002, 0.04484287649393082, -0.02065376378595829, -0.413510262966156, 0.3036614656448364, 0.2020743042230606, -0.20469485223293304, -0.2143043577671051, 0.08762155473232269, -0.34388747811317444, 0.20044414699077606, -0.1334540843963623, -0.0660395398736, 0.06662184745073318, -0.10810072720050812, -0.06604710221290588, -0.26499035954475403 ]
https://github.com/huggingface/datasets/issues/1963
bug in SNLI dataset
Hi ! The labels -1 correspond to the examples without gold labels in the original snli dataset. Feel free to remove these examples if you don't need them by using ```python data = data.filter(lambda x: x["label"] != -1) ```
Hi There is label of -1 in train set of SNLI dataset, please find the code below: ``` import numpy as np import datasets data = datasets.load_dataset("snli")["train"] labels = [] for d in data: labels.append(d["label"]) print(np.unique(labels)) ``` and results: `[-1 0 1 2]` version of datasets used: `datasets 1.2.1 <pip> ` thanks for your help. @lhoestq
39
bug in SNLI dataset
[ -0.07942735403776169, -0.25020572543144226, -0.17207525670528412, 0.3313981890678406, 0.14458170533180237, -0.1714281588792801, 0.2936325967311859, 0.06475547701120377, -0.1578761488199234, 0.22389215230941772, -0.1943313479423523, 0.46466371417045593, 0.07125262916088104, 0.08998224139213562, -0.1444968730211258, 0.35929369926452637, 0.29639101028442383, 0.324550062417984, 0.09740497916936874, -0.4700869917869568, -0.34878429770469666, 0.10315082967281342, -0.3270317018032074, 0.016882378607988358, -0.1906941831111908, 0.26728174090385437, -0.04541727155447006, 0.2284630388021469, -0.026969056576490402, -0.19286620616912842, 0.008122771047055721, -0.009291992522776127, 0.11739989370107651, 0.1225142553448677, -0.00011046059080399573, -0.4243401885032654, 0.05451544001698494, -0.011537083424627781, -0.5299981236457825, 0.5566730499267578, -0.18151649832725525, 0.0981466993689537, -0.30778738856315613, -0.3009074628353119, -0.07553329318761826, -0.0966922789812088, 0.011269878596067429, -0.25490036606788635, -0.016853976994752884, 0.2941676378250122, 0.3195573091506958, 0.37474820017814636, -0.5602566003799438, 0.06864000111818314, 0.4241514205932617, -0.09670887887477875, 0.010808147490024567, -0.03513103350996971, -0.01695389673113823, -0.07034797221422195, 0.06845180690288544, 0.2402585744857788, -0.1699109524488449, -0.13205188512802124, 0.17840810120105743, 0.1929744929075241, 0.012396219186484814, 0.006207318045198917, 0.031066780909895897, 0.4092045724391937, 0.0494975745677948, -0.0859021246433258, -0.2971864342689514, -0.021836863830685616, -0.11886895447969437, -0.04533933103084564, 0.23374897241592407, 0.05059077963232994, 0.06418856978416443, 0.17420732975006104, 0.23813840746879578, 0.06909158080816269, -0.0452776663005352, 0.1772196888923645, -0.3672693371772766, 0.7014239430427551, -0.04087837040424347, 0.07996752113103867, -0.20249958336353302, -0.019685132429003716, -0.056207988411188126, -0.05667788162827492, -0.16084130108356476, 0.25050216913223267, -0.4453023374080658, -0.06769361346960068, 0.07321260869503021, -0.11134375631809235, 0.07430525869131088, 0.40345731377601624, 0.085666224360466, -0.08771916478872299, -0.059312254190444946, -0.035588338971138, 0.10297264903783798, -0.020507197827100754, -0.04647785797715187, 0.24907925724983215, 0.2616780400276184, -0.05332093685865402, 0.16902002692222595, 0.05997997149825096, 0.15326866507530212, -0.2652221620082855, 0.12794528901576996, -0.2751323878765106, 0.10440690815448761, -0.16539274156093597, -0.3105088472366333, 0.3845875859260559, -0.2412124127149582, -0.0015094354748725891, -0.2263539880514145, 0.1117241382598877, -0.11111972481012344, 0.05758944898843765, -0.040615763515233994, 0.21449074149131775, -0.16952817142009735, -0.3869950771331787, -0.3538529574871063, -0.197764590382576, -0.12971271574497223, -0.2030704915523529, -0.0705045610666275, -0.328166663646698, 0.23409903049468994, 0.10760697722434998, -0.27073150873184204, 0.0032283945474773645, -0.026950977742671967, -0.11304017156362534, 0.46573778986930847, 0.019248852506279945, -0.06816381216049194, 0.3853401839733124, -0.38549575209617615, 0.10554449260234833, 0.05136136710643768, 0.23276852071285248, -0.12218623608350754, -0.17176343500614166, -0.1916302591562271, 0.2424824833869934, -0.20605987310409546, -0.11700848489999771, 0.409670352935791, -0.23917201161384583, 0.23009684681892395, -0.3601377308368683, 0.22033457458019257, 0.038553349673748016, -0.07711423933506012, -0.14657661318778992, 0.12716475129127502, 0.16534613072872162, -0.18464642763137817, -0.023712728172540665, -0.3877624571323395, -0.27586615085601807, 0.48068058490753174, 0.4256594181060791, 0.23002786934375763, -0.2054409235715866, -0.4855348765850067, 0.399863064289093, 0.5633825659751892, -0.09106199443340302, -0.6272241473197937, 0.26263996958732605, -0.09235996752977371, -0.06832359731197357, 0.1665927618741989, 0.39083537459373474, -0.09548529982566833, -0.15783314406871796, -0.14712604880332947, 0.2520517110824585, -0.00228030513972044, 0.0933913066983223, -0.4330832064151764, -0.3383792042732239, 0.39783063530921936, 0.14742256700992584, 0.1561051607131958, 0.32044628262519836, 0.1811927706003189, 0.042837489396333694, 0.5374115109443665, 0.000916202727239579, 0.15556269884109497, 0.13556070625782013, 0.5644596815109253, -0.09469197690486908, 0.14384189248085022, -0.12388361245393753, -0.1136460155248642, -0.14713849127292633, -0.225754052400589, 0.18824973702430725, 0.13833285868167877, 0.08795040845870972, -0.18788674473762512, -0.07086154818534851, -0.1872398406267166, -0.10998449474573135, 0.22796647250652313, 0.3200584352016449, -0.1890382170677185, -0.02717764303088188, 0.10591401904821396, 0.18033315241336823, -0.1821572631597519, -0.1563027948141098, -0.3634003698825836, 0.3344981074333191, -0.023349972441792488, -0.13366194069385529, -0.06897256523370743, 0.1755944788455963, 0.007038912270218134, 0.009030020795762539, -0.05641282722353935, 0.09101422131061554, 0.003740025218576193, 0.0687883198261261, 0.10920856893062592, 0.18848176300525665, -0.020721176639199257, -0.4118525981903076, 0.25473830103874207, 0.3919696807861328, 0.07132192701101303, 0.04330086335539818, -0.14320047199726105, 0.29709792137145996, -0.2014157921075821, 0.055226534605026245, -0.2748313844203949, 0.23073674738407135, 0.34304434061050415, -0.1947646141052246, -0.010763676837086678, -0.1428671032190323, 0.0958009660243988, -0.015026952140033245, 0.42393335700035095, 0.2694786489009857, -0.5694238543510437, 0.013480323366820812, 0.4895339906215668, -0.04940000921487808, 0.21901492774486542, -0.016994886100292206, -0.11890312284231186, -0.13136661052703857, 0.38873690366744995, 0.02372881956398487, 0.43923142552375793, 0.18485821783542633, 0.01416258979588747, 0.029344741255044937, -0.022371839731931686, -0.4124596416950226, 0.10447636246681213, 0.09910418093204498, -0.06084588170051575, 0.3666371703147888, 0.31946343183517456, 0.1284445822238922, -0.05247671157121658, -0.11667525768280029, -0.12283725291490555, 0.0351177416741848, -0.29993295669555664, 0.19216610491275787, -0.18249768018722534, -0.33404117822647095, -0.3308042883872986, 0.30581673979759216, -0.10432498902082443, -0.23130084574222565, 0.08475621044635773, -0.19551849365234375, -0.1660219132900238, 0.024570610374212265, 0.20880773663520813, 0.5518541932106018, 0.07041215896606445, 0.21145915985107422, -0.15732645988464355, -0.24722066521644592, -0.3287392258644104, 0.20486822724342346, -0.08470132201910019, 0.23534229397773743, 0.18319711089134216, -0.09307292848825455, -0.07736776024103165, -0.39711716771125793, -0.20566359162330627, 0.060428187251091, 0.4113912284374237, 0.20866620540618896, 0.06124073266983032, 0.17637254297733307, 0.061400607228279114, 0.03420291095972061, 0.16117306053638458, -0.044826313853263855, -0.10309052467346191, 0.3044191002845764, -0.4018633961677551, -0.1982412487268448, -0.21575181186199188, -0.38017556071281433, -0.03930184990167618, -0.18399383127689362, 0.031039021909236908, -0.057214025408029556, 0.10869845002889633, -0.04942923039197922, 0.07427332550287247, -0.07616303116083145, -0.03620690479874611, -0.0699000433087349, -0.2782543897628784, 0.1610170304775238, 0.20787721872329712, -0.015867136418819427, -0.3993660509586334, -0.1179075837135315, 0.0012000438291579485, -0.06987545639276505, 0.00881931185722351, -0.4194096326828003, 0.05635981261730194, 0.0010807500220835209, 0.3102666437625885, -0.1813027709722519, -0.07970025390386581, -0.0261066947132349, -0.22363705933094025, -0.02219042368233204, -0.41338783502578735, 0.03596120327711105, 0.07626690715551376, -0.13169007003307343, 0.48307958245277405, -0.19080209732055664, 0.4663112163543701, -0.056640855967998505, 0.0847996398806572, 0.614057719707489, -0.12681935727596283, 0.28666168451309204, -0.30295833945274353, 0.11973623931407928, 0.010963678359985352, 0.057685475796461105, 0.4430665671825409, 0.46032842993736267, -0.14432835578918457, 0.3432120978832245, -0.04507815092802048, -0.06910240650177002, 0.06502003967761993, 0.005957962479442358, -0.01727319322526455, -0.1890251636505127, 0.061316002160310745, -0.02367192879319191, 0.09309612214565277, 0.15312176942825317, -0.1422707736492157, -0.07316827028989792, -0.2757670283317566, -0.021070605143904686, 0.0032056046184152365, 0.031368859112262726, -0.00326899578794837, -0.11821850389242172, 0.008074767887592316, -0.24462617933750153, 0.002931484952569008, 0.027730070054531097, 0.4500221014022827, 0.09342572093009949, -0.11034482717514038, 0.23142869770526886, -0.01580161415040493, 0.6911367177963257, -0.344487726688385, 0.27413809299468994, 0.10598482191562653, 0.5681214928627014, -0.5175485014915466, -0.13939759135246277, -0.4242507815361023, -0.11979607492685318, 0.5680108070373535, 0.1009417474269867, 0.046984367072582245, -0.040130533277988434, 0.3802962005138397, 0.07643800228834152, -0.2845878303050995, -0.3263336718082428, -0.19684703648090363, -0.12735797464847565, -0.05975627899169922, -0.16725490987300873, -0.12963025271892548, 0.03403548523783684, -0.05356360226869583, -0.15289393067359924, -0.09197477996349335, 0.04208306968212128, -0.1273798942565918, 0.12272193282842636, 0.4246353209018707, -0.08327572047710419, 0.18265514075756073, -0.11366172134876251, 0.30325454473495483, -0.021774081513285637, 0.5773440003395081, 0.16685324907302856, -0.27738314867019653, 0.28525465726852417, -0.3975965976715088, 0.3600425124168396, 0.2736840546131134, -0.14752259850502014, 0.093040831387043, -0.030151840299367905, 0.1419782042503357, -0.001392949023284018, -0.01259889081120491, 0.10453936457633972, 0.01785821095108986, 0.02889786846935749, -0.16138635575771332, 0.4426881968975067, 0.0000048269230319419876, -0.18549172580242157, -0.022632932290434837, -0.08523291349411011, 0.003739925567060709, 0.37547382712364197, 0.263017475605011, 1.1846944093704224, 0.3462333679199219, 0.06937538832426071, 0.6137896180152893, -0.3065434396266937, 0.3448632061481476, -0.1700100600719452, -0.3181163966655731, -0.5208578109741211, 0.15597806870937347, 0.21408843994140625, -0.0236783716827631, -0.17191605269908905, 0.010716685093939304, 0.006453392561525106, 0.12281202524900436, -0.20050276815891266, -0.04252016916871071, -0.10868611931800842, 0.11588186770677567, 0.1397746503353119, 0.047307129949331284, -0.2546035051345825, 0.1982540488243103, 0.07365071028470993, 0.16487812995910645, -0.12598662078380585, -0.05376690626144409, -0.25611576437950134, 0.002057635225355625, -0.17236490547657013, 0.0543854683637619, 0.428276926279068, -0.058190394192934036, 0.15548010170459747, -0.20428438484668732, -0.2584831714630127, 0.21516801416873932, 0.43179851770401, -0.014107445254921913, 0.025437919422984123, 0.10057433694601059, 0.12464604526758194, 0.32037660479545593, 0.08797498792409897, 0.24697940051555634, 0.14341841638088226, -0.2005760371685028, -0.2805427014827728, -0.10053826123476028, -0.042877912521362305, -0.13732492923736572, -0.17659249901771545, 0.13191336393356323, -0.2899415194988251, -0.018010837957262993, 0.010186200961470604, -0.029843708500266075, 0.09363611787557602, -0.126879021525383, 0.22975918650627136, 0.27729880809783936, 0.11333608627319336, 0.15747106075286865, -0.002628565765917301, -0.2742091715335846, -0.4095515310764313, 0.5052922964096069, 0.15626809000968933, 0.1856970638036728, 0.272800475358963, -0.007862236350774765, -0.10544995963573456, -0.397271990776062, 0.05575212091207504, -0.0010390097741037607, -0.4107898771762848, 0.056016769260168076, -0.4418346583843231, -0.16053001582622528, 0.045226745307445526, 0.33403757214546204, 0.16582255065441132, 0.14616206288337708, -0.17085416615009308, -0.43381267786026, -0.0699678361415863, -0.19931186735630035, 0.03185165673494339, 0.18013492226600647, -0.21922938525676727, -0.005362044088542461, -0.20649482309818268, -0.1757728010416031, -0.41775187849998474, -0.21693165600299835, -0.1720985770225525, 0.18075989186763763, 0.05601153522729874, 0.2306973785161972, -0.12813422083854675, -0.12777267396450043, 0.15957136452198029, -0.04907643422484398, -0.15776608884334564, -0.32368823885917664, -0.2196802794933319, 0.0774812325835228, 0.21670101583003998, -0.31583988666534424, -0.029849177226424217, 0.027950599789619446, -0.1907552033662796, -0.049544841051101685, 0.05340639874339104, -0.007045652251690626, 0.13950523734092712, 0.48798954486846924, -0.06450406461954117, -0.31145238876342773, -0.13329461216926575, 0.13770882785320282, 0.1709717959165573, -0.21316905319690704, -0.008492263033986092, 0.2361740618944168, 0.025473417714238167, -0.062282465398311615, -0.0012151988921687007, -0.1244899109005928, -0.04671198129653931, 0.30352339148521423, -0.022423796355724335, -0.4130050539970398, 0.03077918104827404, 0.28845056891441345, 0.05123010650277138, 0.422621488571167, -0.3404480814933777, -0.2683757543563843, 0.0068543148227036, 0.34776362776756287, -0.28976261615753174, -0.17361459136009216, 0.2570962905883789, 0.19127564132213593, 0.017072314396500587, -0.014479049481451511, 0.1338694542646408, -0.33154961466789246, 0.19825023412704468, 0.003243052400648594, 0.0015398116083815694, -0.3214098811149597, -0.0958767682313919, 0.4270852506160736, 0.06610160320997238, 0.21246100962162018, 0.1413245052099228, -0.02264147810637951, -0.0030442876741290092, 0.6892545819282532, 0.04235577583312988, 0.14398884773254395, 0.01872367039322853, 0.20537425577640533, -0.0007965178228914738, -0.20158763229846954, -0.08260336518287659, 0.24674052000045776, -0.49421533942222595, 0.09095390886068344, 0.2827520966529846, 0.3746088743209839, 0.099641352891922, -0.11505525559186935, -0.2586063742637634, -0.030021008104085922, -0.34129244089126587, -0.22510182857513428, -0.3137389123439789, -0.07746363431215286, 0.04977601021528244, -0.11080918461084366, 0.003908670507371426, 0.08816679567098618, 0.21884174644947052, 0.1273498833179474, -0.15190796554088593, -0.4249311089515686, -0.000034793662052834406, 0.11953078955411911, 0.019871622323989868, -0.2618139982223511, 0.15171216428279877, 0.06729599833488464, 0.09921377152204514, 0.29049286246299744, 0.01947714202105999, 0.2747802734375, 0.22194772958755493, 0.4829528033733368, -0.05258817598223686, 0.2303825318813324, -0.27760669589042664, -0.1497526913881302, 0.05546285957098007, 0.20372426509857178, -0.11098206043243408, 0.19709016382694244, 0.19369609653949738, -0.31238484382629395, 0.3771071434020996, 0.2040746510028839, 0.4109061658382416, -0.19976526498794556, 0.20754405856132507, -0.29464107751846313, -0.4311223030090332, -0.24046553671360016, -0.19522346556186676, -0.17362093925476074, 0.2684929370880127, 0.11512895673513412, 0.13136665523052216, 0.304662823677063, -0.09716516733169556, 0.11132970452308655, -0.07973387092351913, 0.45308899879455566, 0.046285536140203476, 0.03111518919467926, 0.008815602399408817, -0.3094310760498047, -0.6377722024917603, 0.3261079788208008, 0.026335375383496284, 0.018752770498394966, -0.08484189212322235, 0.44405192136764526, -0.4578704237937927, -0.1471034586429596, 0.1694457232952118, 0.15835848450660706, 0.03890024125576019, 0.3272053897380829, -0.3723881244659424, -0.3886982500553131, 0.07833623886108398, -0.1526331603527069, -0.04601415619254112, -0.25878551602363586, 0.3148707151412964, -0.23872846364974976, 0.22729188203811646, 0.009497841820120811, -0.07423719018697739, -0.011823111213743687, 0.34117424488067627, 0.4646167755126953, 0.07805810868740082, 0.30523040890693665, -0.17300733923912048, 0.13065944612026215, -0.510732114315033, -0.17341943085193634, -0.09805909544229507, -0.042477186769247055, -0.09460186958312988, 0.33018019795417786, -0.0725082978606224, 0.16612762212753296, 0.027858499437570572, 0.022857729345560074, 0.024026034399867058, 0.20134547352790833, -0.3387768268585205, 0.47834211587905884, -0.2609810531139374, 0.21177466213703156, -0.13763999938964844, 0.002996838418766856, 0.015247857198119164, -0.13016001880168915, -0.19260387122631073, -0.31252771615982056, 0.1203068271279335, -0.4546014368534088, 0.026221618056297302, -0.23753485083580017, 0.2704552114009857, 0.05107720196247101, -0.24111583828926086, -0.26571664214134216, 0.031170226633548737, 0.3804839253425598, -0.1209276020526886, -0.03672993555665016, 0.20423056185245514, 0.2005351483821869, 0.0684925839304924, -0.058901384472846985, 0.1151023656129837, 0.2718372941017151, -0.25937947630882263, 0.35771504044532776, -0.3360666036605835 ]
https://github.com/huggingface/datasets/issues/1959
Bug in skip_rows argument of load_dataset function ?
Hi, try `skiprows` instead. This part is not properly documented in the docs it seems. @lhoestq I'll fix this as part of a bigger PR that fixes typos in the docs.
Hello everyone, I'm quite new to Git so sorry in advance if I'm breaking some ground rules of issues posting... :/ I tried to use the load_dataset function, from Huggingface datasets library, on a csv file using the skip_rows argument described on Huggingface page to skip the first row containing column names `test_dataset = load_dataset('csv', data_files=['test_wLabel.tsv'], delimiter='\t', column_names=["id", "sentence", "label"], skip_rows=1)` But I got the following error message `__init__() got an unexpected keyword argument 'skip_rows'` Have I used the wrong argument ? Am I missing something or is this a bug ? Thank you very much for your time, Best regards, Arthur
31
Bug in skip_rows argument of load_dataset function ?
[ -0.33803316950798035, -0.07339759171009064, -0.18715651333332062, 0.22775928676128387, 0.16146497428417206, 0.18520542979240417, 0.41886141896247864, 0.15966294705867767, 0.2981720566749573, 0.2891400158405304, 0.13534095883369446, 0.46664679050445557, 0.17796365916728973, 0.08776800334453583, 0.011883478611707687, 0.1923058182001114, 0.14678622782230377, 0.1004701554775238, -0.38270702958106995, -0.16458220779895782, -0.44237634539604187, 0.07623369991779327, -0.39521175622940063, -0.15233516693115234, 0.005557440686970949, 0.08022507280111313, 0.055271171033382416, 0.26540297269821167, 0.10904256254434586, 0.10029279440641403, 0.2507036626338959, 0.12710298597812653, 0.010987352579832077, 0.291348397731781, -0.0001022106662276201, 0.0022544274106621742, 0.11897555738687515, 0.01795828528702259, -0.40722203254699707, 0.15034762024879456, -0.25175946950912476, 0.16320431232452393, -0.11989346146583557, -0.27730441093444824, 0.0832708477973938, 0.02259598672389984, -0.18997235596179962, -0.3506161868572235, -0.053400274366140366, 0.16046655178070068, 0.29805880784988403, 0.13652759790420532, -0.3589825928211212, -0.21481461822986603, 0.5048932433128357, 0.0652533695101738, -0.022569095715880394, 0.3966485857963562, -0.006473332643508911, -0.15557551383972168, -0.22475434839725494, 0.3549709916114807, -0.18467040359973907, 0.09661328792572021, 0.2292245626449585, 0.038913365453481674, 0.08186352998018265, 0.15886306762695312, 0.2425023764371872, -0.01928289234638214, 0.25192469358444214, -0.16548435389995575, 0.06445837020874023, -0.33447083830833435, 0.010209714062511921, -0.16678744554519653, 0.06406021863222122, -0.24709473550319672, 0.042534083127975464, 0.0912795290350914, -0.022357378154993057, -0.09707452356815338, -0.1715785712003708, -0.04132290557026863, -0.0009402238065376878, -0.31515535712242126, -0.03595755994319916, 0.11825646460056305, 0.22846736013889313, 0.20478147268295288, 0.4302559196949005, -0.08331869542598724, 0.22815895080566406, 0.12798528373241425, -0.3827580511569977, 0.08716670423746109, 0.18435600399971008, 0.2831360399723053, 0.057642512023448944, 0.20014315843582153, 0.35248512029647827, -0.0702139139175415, 0.3841722905635834, 0.1186915934085846, 0.06387294828891754, -0.23069852590560913, -0.04784977808594704, 0.15183627605438232, 0.03922256454825401, 0.13673271238803864, -0.06204677373170853, 0.017465442419052124, 0.11092645674943924, -0.02577240951359272, 0.04038592800498009, -0.08323610574007034, 0.20808842778205872, -0.07039462774991989, -0.5596942901611328, 0.27782759070396423, -0.06672391295433044, -0.14179663360118866, -0.0895712673664093, 0.4563150703907013, 0.14824126660823822, 0.036028679460287094, -0.0845460593700409, 0.23121310770511627, -0.2688816487789154, -0.1842438280582428, -0.4719927906990051, 0.03953824192285538, 0.06407813727855682, 0.012056740000844002, 0.061512310057878494, -0.005635530222207308, 0.06396407634019852, 0.15211619436740875, 0.016136007383465767, -0.04693220555782318, 0.10381361097097397, -0.17660284042358398, 0.24920952320098877, 0.18784227967262268, 0.04058568924665451, -0.19609057903289795, 0.04387799650430679, 0.24051830172538757, 0.21493230760097504, 0.591054379940033, -0.25589776039123535, -0.1580597460269928, 0.23243950307369232, 0.29158124327659607, -0.010770372115075588, 0.1253185272216797, -0.15101395547389984, 0.27721548080444336, 0.2804420590400696, -0.36588671803474426, 0.1702325940132141, -0.2008323073387146, -0.38028955459594727, -0.24864263832569122, 0.08900792896747589, 0.43800997734069824, -0.5144989490509033, -0.13458916544914246, 0.07372210174798965, -0.17882275581359863, 0.36851152777671814, -0.1123567521572113, -0.006839508190751076, 0.02340138703584671, -0.43675848841667175, 0.3069573640823364, 0.27200692892074585, -0.09908036887645721, -0.3198750913143158, 0.14087100327014923, 0.047451600432395935, 0.0709075778722763, -0.018618712201714516, -0.09630431979894638, 0.11111991107463837, -0.08374693989753723, 0.3409431576728821, -0.04422670975327492, -0.10426297038793564, 0.01014485489577055, -0.08802642673254013, 0.15604402124881744, 0.44266021251678467, 0.17971192300319672, -0.22221234440803528, 0.12334134429693222, 0.18957394361495972, -0.16302867233753204, 0.4816630184650421, 0.04442102462053299, -0.1611943393945694, 0.08990755677223206, -0.1896081417798996, -0.15548627078533173, 0.09535744041204453, 0.003845814848318696, -0.5874320864677429, -0.02039870247244835, 0.07487643510103226, -0.1438257396221161, 0.11721818149089813, -0.09933886677026749, -0.3186006546020508, -0.032224345952272415, -0.05505603179335594, 0.2396254539489746, 0.21960321068763733, 0.0657423809170723, -0.32806822657585144, -0.08553621172904968, -0.05758071318268776, 0.2232462465763092, -0.47667744755744934, -0.0037456874269992113, -0.5134155750274658, 0.2789909839630127, 0.15480676293373108, -0.09595987200737, 0.1283618062734604, 0.0784180536866188, 0.27535495162010193, -0.17613273859024048, -0.04276677966117859, 0.2540978789329529, 0.3137744665145874, -0.05841391161084175, -0.2677953541278839, -0.10306531190872192, -0.13515836000442505, -0.030466841533780098, 0.13625699281692505, 0.04374963417649269, 0.16886936128139496, -0.06618157774209976, -0.032583896070718765, 0.31288114190101624, -0.2686818540096283, -0.04185659438371658, -0.010679768398404121, -0.19384737312793732, 0.07715226709842682, 0.09966564923524857, 0.014647134579718113, -0.37971630692481995, 0.2131861299276352, 0.25566765666007996, 0.2457902580499649, 0.1723642349243164, -0.3861098289489746, 0.13424637913703918, 0.4678252339363098, -0.15371976792812347, 0.002257303800433874, -0.027960220351815224, 0.21503663063049316, -0.333550363779068, 0.2450474202632904, 0.1209501102566719, 0.5566228628158569, 0.2715893089771271, 0.1735997051000595, -0.1057882010936737, -0.06253132224082947, -0.2841185927391052, 0.09068553149700165, -0.15194442868232727, 0.28779879212379456, 0.16657571494579315, 0.0095152473077178, -0.0927567109465599, -0.3409413993358612, 0.06809211522340775, 0.17568816244602203, 0.0449657179415226, -0.38815218210220337, 0.20493558049201965, -0.10622642934322357, 0.0349440835416317, 0.19238735735416412, 0.15129882097244263, -0.07110584527254105, -0.4103241562843323, 0.05017487332224846, 0.1056976467370987, -0.3361929655075073, 0.1550246775150299, -0.345802903175354, 0.32729625701904297, 0.18576361238956451, -0.12057577073574066, -0.1880785971879959, 0.09803973883390427, -0.248223215341568, 0.19698475301265717, -0.14921852946281433, 0.34933459758758545, 0.1864461451768875, -0.13751280307769775, -0.14225850999355316, 0.054705385118722916, 0.16027122735977173, 0.2283545434474945, -0.12921211123466492, 0.10040180385112762, 0.18059027194976807, 0.2038452923297882, -0.09228156507015228, 0.2726331353187561, -0.040435563772916794, -0.2628031075000763, -0.12700912356376648, 0.03311822935938835, 0.04773436486721039, 0.2559471130371094, -0.15615859627723694, -0.29012542963027954, -0.16454705595970154, -0.2241697460412979, -0.2325984686613083, 0.04207228869199753, 0.028807779774069786, -0.04504143446683884, 0.2753709554672241, -0.01732007972896099, 0.2408626675605774, -0.0690070390701294, -0.6459048390388489, -0.347356379032135, 0.27913591265678406, -0.16202130913734436, -0.18542541563510895, -0.08844614028930664, 0.13569684326648712, 0.11513817310333252, 0.2892887592315674, -0.3499683737754822, -0.09931482374668121, 0.13247200846672058, 0.03218337148427963, -0.4343378245830536, -0.07340086251497269, 0.1312490850687027, -0.11398967355489731, -0.15550310909748077, -0.3767344653606415, -0.08193342387676239, 0.18019670248031616, -0.10192103683948517, -0.169732928276062, 0.017837023362517357, 0.11603140830993652, -0.16872504353523254, 0.21722319722175598, 0.0789017602801323, 0.2128380984067917, 0.49015551805496216, -0.07581973075866699, 0.480812668800354, -0.1737789809703827, -0.10784652829170227, 0.19608628749847412, 0.04480034112930298, -0.12174428254365921, 0.11779817193746567, -0.25466790795326233, -0.17829200625419617, -0.05997655913233757, -0.23647341132164001, -0.07175701856613159, -0.28859081864356995, 0.1328672468662262, -0.2543788552284241, -0.05060882121324539, 0.3057919442653656, 0.5215309262275696, -0.15904772281646729, -0.024079792201519012, 0.0025848201476037502, -0.24954597651958466, 0.32815560698509216, -0.09993789345026016, -0.11258658766746521, 0.17115582525730133, -0.3056335151195526, 0.26267004013061523, 0.0932222455739975, 0.11759904026985168, 0.2015286684036255, -0.3565446436405182, -0.06618081033229828, 0.029914485290646553, 0.8221397399902344, 0.0017091571353375912, 0.3925181031227112, 0.24329282343387604, 0.2499806433916092, -0.15323662757873535, 0.05447493493556976, -0.1618383377790451, 0.18035636842250824, 0.1433941125869751, -0.0004410613910295069, -0.20712493360042572, -0.1801273673772812, 0.3363036811351776, 0.2170185148715973, -0.07236193865537643, -0.2817078232765198, -0.19373536109924316, -0.15940038859844208, -0.1983180046081543, 0.03895345702767372, 0.25861313939094543, 0.12500770390033722, -0.5479116439819336, -0.1429002434015274, -0.0648621991276741, -0.2743779718875885, -0.15399789810180664, 0.14245127141475677, 0.2895607650279999, -0.13638687133789062, 0.0542437881231308, 0.15583841502666473, -0.156391441822052, 0.5399506688117981, 0.6777298450469971, -0.34907084703445435, -0.3582664728164673, 0.2742787301540375, -0.35701465606689453, 0.17016543447971344, 0.26750999689102173, -0.19183102250099182, -0.020317595452070236, 0.07629404962062836, -0.10186265408992767, 0.07969418913125992, -0.1087305024266243, 0.06939671188592911, -0.17680294811725616, 0.01670425571501255, -0.31981736421585083, 0.0060449689626693726, -0.11267510056495667, -0.1223636120557785, 0.1992403268814087, -0.09800103306770325, -0.12256062030792236, 0.30518630146980286, -0.3031611442565918, 0.6407255530357361, 0.44008973240852356, 0.17688249051570892, 0.40048080682754517, 0.21307523548603058, 0.1486273854970932, 0.11203452944755554, 0.03666293993592262, -0.1660861223936081, -0.39646852016448975, 0.09975013881921768, -0.060076504945755005, -0.023003846406936646, 0.20298776030540466, 0.021442512050271034, 0.18345898389816284, 0.06372766941785812, 0.10448674112558365, 0.006141717080026865, -0.390167236328125, 0.10294003784656525, 0.023502960801124573, -0.3396203815937042, 0.19413773715496063, 0.2537291944026947, -0.26114046573638916, -0.05960635095834732, 0.014635667204856873, 0.17687706649303436, -0.3432217836380005, 0.2338019162416458, 0.1932007521390915, -0.32508137822151184, -0.11268510669469833, 0.11833228915929794, -0.4473032057285309, -0.18372012674808502, 0.019294237717986107, -0.2116096466779709, -0.15496987104415894, -0.02262328937649727, -0.025321736931800842, 0.1498306393623352, 0.3941364884376526, -0.242451012134552, -0.10008315742015839, 0.4332217872142792, 0.06629035621881485, -0.13407905399799347, 0.042994339019060135, -0.2501333951950073, -0.33884382247924805, 0.2833700478076935, 0.1747257262468338, -0.1827661246061325, -0.38300833106040955, -0.2273581176996231, -0.22801944613456726, 0.3024706244468689, -0.4369848370552063, 0.19148604571819305, 0.10222099721431732, 0.1086883470416069, 0.01670011691749096, -0.000924471125472337, -0.26780936121940613, -0.3327418565750122, 0.48880496621131897, 0.01732257939875126, -0.041569869965314865, 0.1558978408575058, 0.08899465948343277, -0.24059374630451202, -0.27259957790374756, -0.02503092959523201, 0.2539346218109131, -0.33444809913635254, 0.5010037422180176, -0.14543509483337402, 0.19042296707630157, 0.04811866953969002, 0.033651355654001236, -0.17378301918506622, 0.028755633160471916, -0.04316062107682228, -0.39195671677589417, -0.16659484803676605, 0.04080524668097496, 0.3509552478790283, 0.2142094373703003, 0.3699672222137451, -0.052177198231220245, 0.03834337741136551, -0.04980895295739174, -0.40379247069358826, -0.031572747975587845, -0.12369287759065628, -0.14412052929401398, 0.17957252264022827, 0.05430125072598457, 0.06676256656646729, 0.09151413291692734, 0.18970881402492523, 0.21566738188266754, -0.07734218239784241, -0.3115122616291046, -0.18757931888103485, 0.0833035483956337, -0.08030512183904648, 0.14146555960178375, -0.04747721180319786, -0.10431413352489471, -0.32760390639305115, -0.1617298722267151, 0.17226542532444, -0.0268996711820364, -0.05281366407871246, -0.010027692653238773, 0.3566022515296936, 0.25356191396713257, 0.10383258014917374, 0.0005951680359430611, 0.029782919213175774, 0.1353737860918045, -0.20819474756717682, -0.020562604069709778, -0.15916955471038818, -0.043872982263565063, 0.21390627324581146, -0.14392459392547607, 0.22864344716072083, 0.06608367711305618, -0.009303546510636806, -0.21659840643405914, -0.15530918538570404, -0.020626690238714218, 0.21005336940288544, 0.4422125518321991, -0.28291213512420654, -0.20441314578056335, -0.12406805157661438, 0.2976583242416382, -0.4387616813182831, -0.24862796068191528, 0.3186980187892914, 0.07825864851474762, 0.17659030854701996, 0.18903647363185883, 0.019152794033288956, -0.18925106525421143, 0.019827840849757195, 0.07810832560062408, 0.2670878767967224, -0.08363882452249527, -0.1798475831747055, 0.3188977539539337, -0.14277462661266327, 0.3177816867828369, 0.21230660378932953, 0.26854053139686584, 0.23365418612957, 0.7591952085494995, 0.025638921186327934, 0.2297443449497223, 0.024547144770622253, 0.09756123274564743, -0.5741220116615295, -0.7515185475349426, 0.09657328575849533, 0.467961847782135, -0.48563912510871887, 0.1250120848417282, 0.18532191216945648, -0.12428786605596542, 0.211862251162529, -0.02385036088526249, -0.11165937036275864, -0.14396683871746063, -0.18561257421970367, -0.13524261116981506, -0.24644702672958374, -0.19408312439918518, -0.1462923139333725, -0.01671067625284195, -0.10294409096240997, 0.04947765916585922, 0.49654480814933777, -0.3314410150051117, 0.009331443347036839, -0.1250566691160202, 0.1627718210220337, -0.19671793282032013, -0.2825278341770172, -0.011535909958183765, 0.12961725890636444, 0.10468679666519165, 0.14914028346538544, 0.30267369747161865, -0.1412600874900818, 0.3563106656074524, -0.04651453346014023, 0.20729678869247437, -0.4273403286933899, 0.11937588453292847, -0.1740422248840332, -0.3262491524219513, 0.1882341355085373, 0.0713670626282692, 0.14079518616199493, 0.42249706387519836, 0.20099137723445892, -0.27646031975746155, 0.33311060070991516, 0.5390545129776001, 0.16631579399108887, -0.32189106941223145, 0.1707785427570343, -0.13663481175899506, -0.20278750360012054, -0.29038482904434204, -0.036265648901462555, -0.18594084680080414, 0.07367028295993805, 0.20702651143074036, -0.1014450266957283, 0.1957026720046997, 0.07884944975376129, 0.17301516234874725, -0.11952177435159683, 0.5130138993263245, -0.09636066108942032, 0.1649138331413269, -0.2809998691082001, -0.07757987082004547, -0.5139694809913635, 0.29314467310905457, 0.09435353428125381, 0.36624646186828613, 0.24237525463104248, 0.1260942816734314, 0.25301089882850647, -0.03319930657744408, 0.2180042713880539, 0.06344763934612274, 0.3150160610675812, 0.15723665058612823, -0.23755556344985962, -0.49966368079185486, -0.25940728187561035, -0.0744975134730339, 0.049643661826848984, -0.4115406572818756, 0.1532813161611557, -0.0977294072508812, 0.12969082593917847, -0.17437782883644104, -0.2658125162124634, 0.05926447734236717, 0.27549609541893005, 0.41290444135665894, -0.032634321600198746, 0.1487838327884674, -0.3131239712238312, 0.11871622502803802, -0.0614795945584774, 0.07747865468263626, 0.025476273149251938, 0.16091544926166534, 0.10505034029483795, -0.021566754207015038, -0.15169893205165863, -0.0882924422621727, 0.1793699413537979, 0.013888416811823845, 0.23020653426647186, 0.230361670255661, -0.3899775445461273, 0.4650983214378357, -0.13918143510818481, 0.045327797532081604, -0.19784770905971527, -0.19427478313446045, -0.08848728984594345, 0.13073799014091492, -0.04161427542567253, -0.18074743449687958, 0.46039456129074097, -0.11099251359701157, -0.15288135409355164, -0.4631563723087311, 0.10182176530361176, 0.03872370347380638, -0.22354534268379211, -0.38846534490585327, 0.125681534409523, 0.3752150237560272, -0.02768695540726185, -0.15516720712184906, 0.46025827527046204, -0.4374008774757385, 0.11162912100553513, 0.013001739978790283, 0.34687235951423645, 0.161002516746521, -0.19528032839298248, 0.10985468327999115, -0.34333354234695435 ]
https://github.com/huggingface/datasets/issues/1956
[distributed env] potentially unsafe parallel execution
You can pass the same `experiment_id` for all the metrics of the same group, and use another `experiment_id` for the other groups. Maybe we can add an environment variable that sets the default value for `experiment_id` ? What do you think ?
``` metric = load_metric('glue', 'mrpc', num_process=num_process, process_id=rank) ``` presumes that there is only one set of parallel processes running - and will intermittently fail if you have multiple sets running as they will surely overwrite each other. Similar to https://github.com/huggingface/datasets/issues/1942 (but for a different reason). That's why dist environments use some unique to a group identifier so that each group is dealt with separately. e.g. the env-way of pytorch dist syncing is done with a unique per set `MASTER_ADDRESS+MASTER_PORT` So ideally this interface should ask for a shared secret to do the right thing. I'm not reporting an immediate need, but am only flagging that this will hit someone down the road. This problem can be remedied by adding a new optional `shared_secret` option, which can then be used to differentiate different groups of processes. and this secret should be part of the file lock name and the experiment. Thank you
42
[distributed env] potentially unsafe parallel execution
[ -0.42758268117904663, -0.6003287434577942, -0.2647993266582489, 0.07452613860368729, -0.054945893585681915, 0.09083164483308792, 0.19177642464637756, -0.08875168114900589, 0.3725544214248657, 0.16053421795368195, 0.12260472029447556, 0.178650364279747, 0.030003055930137634, -0.15806834399700165, -0.0873938798904419, 0.3351169526576996, 0.07544675469398499, -0.10706061869859695, -0.29877325892448425, -0.33793503046035767, -0.21075597405433655, -0.0990150198340416, -0.22630561888217926, 0.25374898314476013, 0.12641699612140656, -0.05852759629487991, -0.10556158423423767, 0.4435559809207916, -0.10126278549432755, -0.04587316885590553, -0.06360826641321182, 0.15555347502231598, 0.005293522495776415, -0.007821177132427692, -0.00009849783236859366, 0.08654775470495224, 0.04048652574419975, 0.08883637934923172, 0.0614829882979393, 0.5240612030029297, -0.1699196696281433, -0.039190419018268585, 0.0014788263943046331, -0.5406050682067871, 0.3608366847038269, -0.170587956905365, 0.26131293177604675, -0.45573773980140686, 0.15154744684696198, -0.282740980386734, 0.30815041065216064, 0.17498131096363068, -0.29060885310173035, -0.01138982828706503, -0.20633047819137573, -0.2010161131620407, 0.19028298556804657, 0.2286229282617569, 0.27002111077308655, -0.1325681060552597, -0.17703470587730408, 0.059522777795791626, -0.09206529706716537, 0.07618208229541779, 0.47277960181236267, -0.02975984290242195, 0.2441522181034088, 0.15760552883148193, -0.27581512928009033, 0.13211388885974884, -0.17549236118793488, 0.14929208159446716, -0.041018348187208176, 0.08213887363672256, -0.36979201436042786, -0.22354091703891754, 0.11948215216398239, 0.0915525034070015, -0.2414456307888031, 0.07221093773841858, -0.18141935765743256, -0.10043886303901672, -0.12248191237449646, -0.2536787986755371, 0.18013717234134674, 0.9216433763504028, 0.23755449056625366, 0.14265955984592438, 0.20749574899673462, 0.2513978183269501, -0.2602120041847229, 0.18692614138126373, -0.04964020475745201, -0.23922161757946014, -0.009621987119317055, 0.028324637562036514, -0.08019314706325531, -0.30309855937957764, 0.059281572699546814, -0.27075105905532837, 0.01290659885853529, -0.19331930577754974, 0.48141130805015564, 0.2154056280851364, 0.37169280648231506, -0.19662070274353027, -0.2927619516849518, 0.19630876183509827, 0.1394965499639511, 0.10678616911172867, 0.16706132888793945, 0.2123585194349289, -0.04086979478597641, -0.07301078736782074, -0.34406742453575134, 0.3254716098308563, -0.1380428671836853, -0.08722089976072311, -0.4030042290687561, 0.11458409577608109, 0.029965685680508614, 0.07852458953857422, 0.017734209075570107, 0.22551436722278595, 0.1992868036031723, -0.1813923567533493, 0.15647396445274353, -0.09876305609941483, -0.163545161485672, 0.037955619394779205, -0.18128107488155365, 0.08748359233140945, -0.4264011085033417, -0.35215485095977783, -0.2452043741941452, 0.4555695056915283, 0.012061027809977531, -0.02299206331372261, 0.38338160514831543, 0.16516035795211792, -0.12426137924194336, -0.06315629929304123, 0.17420147359371185, -0.11424881964921951, -0.2624594271183014, -0.17729148268699646, -0.024161363020539284, 0.2708464562892914, 0.06833906471729279, -0.1257423460483551, -0.028763262555003166, -0.15293434262275696, 0.06422678381204605, 0.29305514693260193, 0.06972724199295044, 0.0309642031788826, 0.41794630885124207, -0.09202271699905396, 0.3724149167537689, 0.01835050992667675, 0.4789646863937378, 0.017127500846982002, -0.3643651604652405, -0.032052621245384216, 0.10116846114397049, 0.4992172122001648, 0.10996635258197784, 0.12716758251190186, 0.2883836627006531, 0.034204065799713135, -0.2664051353931427, 0.5076540112495422, -0.13402484357357025, -0.10457167774438858, -0.1549360603094101, -0.2518349587917328, -0.15711720287799835, -0.6111143827438354, 0.09708450734615326, 0.45560896396636963, -0.35584011673927307, -0.19771236181259155, 0.14607401192188263, 0.060266681015491486, 0.23104329407215118, -0.4167247712612152, 0.32306766510009766, 0.23527072370052338, -0.17268826067447662, 0.10215513408184052, -0.3868226408958435, -0.21034446358680725, -0.004397451877593994, -0.08389990776777267, -0.021607711911201477, -0.03309496119618416, -0.009933099150657654, -0.17443063855171204, 0.393402636051178, -0.22114938497543335, 0.09602569788694382, 0.026829561218619347, -0.10319339483976364, 0.172062948346138, 0.04423041269183159, 0.3552168309688568, -0.00782145094126463, 0.01729961857199669, -0.23585110902786255, 0.0226601492613554, 0.12209492176771164, -0.1244111880660057, 0.407073050737381, 0.29740583896636963, -0.16843418776988983, -0.11458037048578262, 0.25388193130493164, -0.18144284188747406, -0.4528248608112335, 0.00493541918694973, -0.06052765995264053, 0.03435751795768738, -0.1970156580209732, -0.19660185277462006, -0.028096042573451996, -0.15385617315769196, -0.2320328801870346, 0.14457781612873077, -0.23946599662303925, 0.09546491503715515, -0.1139327809214592, -0.08243751525878906, -0.07707767188549042, 0.28542590141296387, -0.24940884113311768, 0.10166113823652267, 0.2831384539604187, 0.1177540272474289, 0.10112889856100082, -0.28967851400375366, 0.3237534165382385, 0.14674589037895203, 0.19744575023651123, 0.33469638228416443, -0.1122426688671112, 0.06490562111139297, -0.4601023495197296, -0.018631165847182274, -0.049757760018110275, -0.10646215826272964, -0.20059794187545776, -0.12344937026500702, 0.09921769052743912, 0.0350235179066658, 0.3692314028739929, 0.31974130868911743, -0.15716424584388733, -0.08029194176197052, -0.1610725373029709, -0.015638988465070724, -0.23533624410629272, 0.16760610044002533, -0.004832730162888765, -0.2733505070209503, 0.5463670492172241, 0.060240231454372406, 0.21978764235973358, 0.20128628611564636, 0.3320479393005371, 0.08937300741672516, 0.10520713031291962, 0.3796665668487549, 0.007336133159697056, -0.17972473800182343, 0.06995812803506851, 0.10843813419342041, 0.22544798254966736, 0.10555221140384674, -0.0902259424328804, 0.03630968928337097, -0.11379341781139374, -0.27032360434532166, 0.031729672104120255, -0.05666214972734451, -0.06150291487574577, 0.40387049317359924, -0.13648994266986847, 0.07422031462192535, -0.18909764289855957, 0.19074876606464386, 0.03977665677666664, -0.1244022473692894, 0.24394501745700836, 0.03260111063718796, -0.47594738006591797, -0.024844950065016747, 0.027488484978675842, -0.03634561970829964, -0.03820042312145233, 0.48175016045570374, 0.054610103368759155, -0.09162594377994537, -0.10361285507678986, 0.16431497037410736, -0.061038341373205185, 0.1509130299091339, 0.41158175468444824, 0.26942551136016846, -0.1684739589691162, -0.07620494812726974, -0.031517621129751205, -0.04011683166027069, -0.002772061387076974, -0.18056146800518036, 0.2488003671169281, -0.23314598202705383, -0.3193986117839813, -0.4010481536388397, 0.12153850495815277, -0.3968745470046997, 0.09258141368627548, -0.2645168602466583, 0.19955192506313324, -0.5112457275390625, -0.26174819469451904, -0.4320746958255768, -0.3818296194076538, -0.1821550875902176, 0.1673654466867447, -0.12939126789569855, 0.11854546517133713, -0.08826328814029694, -0.23165099322795868, -0.27778464555740356, 0.23234538733959198, -0.371167927980423, -0.16664402186870575, -0.06715851277112961, 0.01898321881890297, -0.1715373545885086, -0.1903449147939682, -0.19351544976234436, 0.08089325577020645, -0.0062111979350447655, 0.36715757846832275, -0.20110459625720978, -0.002381661208346486, 0.4293907880783081, -0.042846404016017914, -0.25746336579322815, -0.0014324424555525184, -0.06952572613954544, -0.09997111558914185, -0.25044453144073486, 0.008676518686115742, 0.10439692437648773, 0.5254635214805603, -0.3391615152359009, -0.07297033071517944, -0.009748080745339394, 0.4389498233795166, 0.20742763578891754, 0.5305876731872559, 0.15406061708927155, -0.01597372442483902, 0.27209174633026123, 0.021737776696681976, 0.2147064208984375, 0.16373570263385773, -0.1385284662246704, 0.5275136232376099, 0.13735832273960114, -0.4894166886806488, 0.1732187122106552, -0.319474995136261, 0.029035229235887527, 0.20332635939121246, -0.08722857385873795, 0.48025617003440857, -0.30217209458351135, 0.10712505877017975, -0.3134734034538269, 0.2931150496006012, 0.10025972872972488, 0.2643139064311981, 0.06742437928915024, -0.029813691973686218, 0.0861164927482605, 0.12730379402637482, 0.08029335737228394, -0.193366140127182, -0.17278240621089935, -0.13000988960266113, -0.05400939658284187, 0.19364339113235474, 0.07672794163227081, 0.6708190441131592, -0.1621188074350357, -0.016793593764305115, 0.293514221906662, -0.1790688931941986, 0.44859448075294495, -0.025275234133005142, 0.2430851310491562, -0.20063868165016174, -0.05357937142252922, 0.088128961622715, -0.2018466591835022, -0.04784281551837921, 0.13064570724964142, 0.06522393226623535, -0.453073650598526, -0.24875976145267487, -0.053338672965765, 0.3085360527038574, -0.28432589769363403, -0.37766265869140625, -0.3207350969314575, -0.40889549255371094, -0.005050516687333584, -0.3703977167606354, 0.29421207308769226, -0.14908190071582794, -0.519931972026825, -0.23383870720863342, -0.08502402901649475, 0.11213163286447525, 0.6375276446342468, -0.1469283550977707, -0.012310541234910488, -0.18902398645877838, -0.353665828704834, 0.09870460629463196, 0.06338188052177429, 0.22364529967308044, 0.05433966591954231, 0.03650873526930809, -0.08685117214918137, 0.05171502009034157, 0.09198174625635147, 0.10182289034128189, 0.227779820561409, 0.3567544221878052, 0.1809781789779663, -0.1937067210674286, 0.320487916469574, -0.02837532013654709, -0.040098149329423904, -0.35887834429740906, 0.28633567690849304, 0.08770114928483963, -0.11818825453519821, 0.07878097146749496, -0.009239781647920609, -0.06200431287288666, -0.13650983572006226, -0.07415896654129028, -0.31289142370224, -0.0747951865196228, 0.08972354233264923, 0.35493898391723633, 0.587993860244751, 0.011408419348299503, -0.03594844043254852, 0.16661280393600464, 0.09679391980171204, 0.003924440126866102, -0.3281819820404053, 0.008506923913955688, -0.514053225517273, -0.25204646587371826, -0.02599085494875908, 0.015468025580048561, 0.23650819063186646, 0.00747575331479311, -0.19689251482486725, 0.2008192539215088, 0.21531634032726288, -0.20069383084774017, -0.3904220163822174, 0.23389095067977905, 0.10944101214408875, -0.18236437439918518, 0.19210505485534668, 0.1752409040927887, 0.16395536065101624, 0.034687720239162445, -0.19702984392642975, -0.31921491026878357, 0.04462924599647522, -0.3427501618862152, -0.19779887795448303, 0.14875902235507965, 0.25196966528892517, 0.5657718777656555, 0.09027396887540817, -0.0197946447879076, 0.08745869994163513, -0.08021441847085953, 0.3185746371746063, 0.22508226335048676, 0.0681961253285408, 0.09086862206459045, -0.16493555903434753, 0.050465747714042664, -0.05318818986415863, -0.14518821239471436, -0.33118778467178345, -0.28088098764419556, -0.4808148443698883, -0.08410659432411194, 0.20074595510959625, -0.3593468964099884, -0.0561583936214447, 0.1994830220937729, 0.3760150372982025, 0.03229460492730141, 0.2806674540042877, 0.10538990050554276, -0.188393697142601, -0.050348009914159775, 0.174808531999588, 0.17690879106521606, -0.12457224726676941, 0.2542584240436554, -0.05989226698875427, -0.19193005561828613, 0.017241783440113068, 0.3288024365901947, 0.1170872300863266, 0.17490391433238983, 0.11464986950159073, -0.07966546714305878, -0.04862415790557861, -0.26693353056907654, -0.23497185111045837, -0.11361412703990936, 0.0280592143535614, -0.20459063351154327, -0.16714997589588165, -0.31205564737319946, -0.016267472878098488, -0.04651159420609474, 0.07645170390605927, 0.07443850487470627, -0.06092045456171036, -0.08494526147842407, -0.29691869020462036, 0.22214685380458832, -0.3462570309638977, 0.00004640463157556951, 0.28654175996780396, -0.011880523525178432, -0.00789063610136509, 0.21736513078212738, -0.42576864361763, 0.15094822645187378, -0.1472303420305252, -0.03616724908351898, 0.21381300687789917, -0.42265602946281433, -0.07991809397935867, 0.08711865544319153, 0.22241143882274628, 0.05624837800860405, -0.4151115417480469, -0.2122250646352768, 0.06514711678028107, 0.06838224828243256, 0.07378122210502625, -0.23911719024181366, -0.07254627346992493, -0.43453672528266907, -0.12057535350322723, -0.057274021208286285, 0.13787932693958282, 0.07003675401210785, -0.037679772824048996, -0.15629224479198456, 0.016370849683880806, 0.411140501499176, 0.07939186692237854, 0.19961602985858917, 0.10578728467226028, 0.0038862156216055155, -0.2365400195121765, 0.1504056453704834, 0.02817656844854355, -0.3382037878036499, -0.36920830607414246, 0.10559597611427307, 0.4603841006755829, 0.3644225299358368, 0.048025358468294144, 0.07009008526802063, -0.3067328631877899, -0.2037430852651596, 0.20602309703826904, 0.5727947354316711, -0.11559924483299255, -0.2809847891330719, 0.011610282585024834, 0.282966673374176, -0.052304718643426895, -0.022322120144963264, 0.10482475161552429, 0.09552840888500214, 0.04458518698811531, 0.22633901238441467, 0.4661850333213806, -0.49734368920326233, 0.16790300607681274, 0.13718292117118835, 0.2609982192516327, -0.34383904933929443, -0.0644390806555748, -0.08337535709142685, -0.08887171000242233, 0.21144381165504456, -0.055335793644189835, 0.16388626396656036, 0.700674295425415, 0.2906429171562195, 0.10009464621543884, 0.07391151040792465, 0.4245782792568207, 0.10557668656110764, 0.14507991075515747, -0.17853207886219025, -0.07704909890890121, -0.16557464003562927, 0.14654888212680817, 0.005050659645348787, 0.4394398629665375, 0.23413778841495514, -0.2695488929748535, -0.22049421072006226, -0.5822014808654785, 0.37707483768463135, -0.35137778520584106, -0.10396729409694672, 0.3877240717411041, 0.06287819892168045, 0.007827093824744225, -0.05247953161597252, 0.09265562891960144, 0.20912988483905792, 0.5180501937866211, -0.041179109364748, 0.13292770087718964, 0.007830651476979256, 0.20795680582523346, 0.16835863888263702, -0.00533833634108305, -0.14460355043411255, 0.11314844340085983, 0.3802165985107422, 0.08026913553476334, 0.10717266798019409, 0.3360094130039215, 0.21227769553661346, 0.29003816843032837, -0.057836178690195084, -0.03854548931121826, 0.13257163763046265, 0.1765879988670349, -0.18487028777599335, 0.20621733367443085, -0.1080256998538971, 0.4161776602268219, 0.21976467967033386, 0.11717256903648376, -0.2146165817975998, 0.05005718395113945, 0.26203209161758423, 0.03635364770889282, 0.45301109552383423, 0.13598109781742096, 0.21801108121871948, 0.22215496003627777, 0.13248960673809052, 0.10782326757907867, -0.5244892239570618, 0.008494463749229908, -0.15572871267795563, -0.23923486471176147, 0.1197722852230072, 0.02336053177714348, 0.1319759637117386, 0.0775563195347786, 0.5108352303504944, 0.1254594773054123, 0.030074570327997208, -0.16887414455413818, 0.17231792211532593, -0.46961450576782227, 0.5369275212287903, -0.03934300318360329, -0.19604609906673431, -0.2333744466304779, 0.15982937812805176, 0.17437681555747986, -0.08876334875822067, 0.08534470200538635, -0.04229941964149475, -0.11522768437862396, 0.5460299253463745, -0.29675379395484924, 0.21649745106697083, 0.1982450783252716, -0.10747333616018295, 0.19620178639888763, -0.24239236116409302, 0.379440575838089, 0.0786883533000946, 0.2289935201406479, 0.20936520397663116, 0.002248388482257724, -0.2999710738658905, -0.20246373116970062, 0.3730171322822571, -0.024105532094836235, 0.3407144844532013, -0.18719778954982758, -0.35193219780921936, -0.1917150914669037, -0.063128761947155, 0.019312659278512, 0.09994035214185715, 0.29963377118110657, -0.29050615429878235, -0.1418093591928482, 0.111158587038517, -0.06938246637582779, -0.07148516178131104, -0.2644709646701813, 0.44952917098999023, -0.10396365821361542, 0.39786043763160706, 0.07614187896251678, 0.26527050137519836, -0.26078131794929504, 0.01904064230620861, 0.1734514981508255, -0.11813915520906448, -0.21346871554851532, 0.1787257343530655, 0.40935322642326355, -0.007001674734055996, 0.04089221730828285, -0.5535708069801331, 0.3126896321773529, 0.25586599111557007, 0.08376605808734894, -0.1673174798488617, -0.1367863416671753, -0.04019434377551079, -0.15386885404586792, -0.28737595677375793, 0.007564910687506199, -0.03721889853477478, -0.45216014981269836, -0.12400760501623154, 0.007771328557282686, -0.2546418607234955, -0.7018741369247437, 0.33290982246398926, -0.09619252383708954 ]
https://github.com/huggingface/datasets/issues/1956
[distributed env] potentially unsafe parallel execution
Ah, you're absolutely correct, @lhoestq - it's exactly the equivalent of the shared secret. Thank you!
``` metric = load_metric('glue', 'mrpc', num_process=num_process, process_id=rank) ``` presumes that there is only one set of parallel processes running - and will intermittently fail if you have multiple sets running as they will surely overwrite each other. Similar to https://github.com/huggingface/datasets/issues/1942 (but for a different reason). That's why dist environments use some unique to a group identifier so that each group is dealt with separately. e.g. the env-way of pytorch dist syncing is done with a unique per set `MASTER_ADDRESS+MASTER_PORT` So ideally this interface should ask for a shared secret to do the right thing. I'm not reporting an immediate need, but am only flagging that this will hit someone down the road. This problem can be remedied by adding a new optional `shared_secret` option, which can then be used to differentiate different groups of processes. and this secret should be part of the file lock name and the experiment. Thank you
16
[distributed env] potentially unsafe parallel execution
[ -0.42758268117904663, -0.6003287434577942, -0.2647993266582489, 0.07452613860368729, -0.054945893585681915, 0.09083164483308792, 0.19177642464637756, -0.08875168114900589, 0.3725544214248657, 0.16053421795368195, 0.12260472029447556, 0.178650364279747, 0.030003055930137634, -0.15806834399700165, -0.0873938798904419, 0.3351169526576996, 0.07544675469398499, -0.10706061869859695, -0.29877325892448425, -0.33793503046035767, -0.21075597405433655, -0.0990150198340416, -0.22630561888217926, 0.25374898314476013, 0.12641699612140656, -0.05852759629487991, -0.10556158423423767, 0.4435559809207916, -0.10126278549432755, -0.04587316885590553, -0.06360826641321182, 0.15555347502231598, 0.005293522495776415, -0.007821177132427692, -0.00009849783236859366, 0.08654775470495224, 0.04048652574419975, 0.08883637934923172, 0.0614829882979393, 0.5240612030029297, -0.1699196696281433, -0.039190419018268585, 0.0014788263943046331, -0.5406050682067871, 0.3608366847038269, -0.170587956905365, 0.26131293177604675, -0.45573773980140686, 0.15154744684696198, -0.282740980386734, 0.30815041065216064, 0.17498131096363068, -0.29060885310173035, -0.01138982828706503, -0.20633047819137573, -0.2010161131620407, 0.19028298556804657, 0.2286229282617569, 0.27002111077308655, -0.1325681060552597, -0.17703470587730408, 0.059522777795791626, -0.09206529706716537, 0.07618208229541779, 0.47277960181236267, -0.02975984290242195, 0.2441522181034088, 0.15760552883148193, -0.27581512928009033, 0.13211388885974884, -0.17549236118793488, 0.14929208159446716, -0.041018348187208176, 0.08213887363672256, -0.36979201436042786, -0.22354091703891754, 0.11948215216398239, 0.0915525034070015, -0.2414456307888031, 0.07221093773841858, -0.18141935765743256, -0.10043886303901672, -0.12248191237449646, -0.2536787986755371, 0.18013717234134674, 0.9216433763504028, 0.23755449056625366, 0.14265955984592438, 0.20749574899673462, 0.2513978183269501, -0.2602120041847229, 0.18692614138126373, -0.04964020475745201, -0.23922161757946014, -0.009621987119317055, 0.028324637562036514, -0.08019314706325531, -0.30309855937957764, 0.059281572699546814, -0.27075105905532837, 0.01290659885853529, -0.19331930577754974, 0.48141130805015564, 0.2154056280851364, 0.37169280648231506, -0.19662070274353027, -0.2927619516849518, 0.19630876183509827, 0.1394965499639511, 0.10678616911172867, 0.16706132888793945, 0.2123585194349289, -0.04086979478597641, -0.07301078736782074, -0.34406742453575134, 0.3254716098308563, -0.1380428671836853, -0.08722089976072311, -0.4030042290687561, 0.11458409577608109, 0.029965685680508614, 0.07852458953857422, 0.017734209075570107, 0.22551436722278595, 0.1992868036031723, -0.1813923567533493, 0.15647396445274353, -0.09876305609941483, -0.163545161485672, 0.037955619394779205, -0.18128107488155365, 0.08748359233140945, -0.4264011085033417, -0.35215485095977783, -0.2452043741941452, 0.4555695056915283, 0.012061027809977531, -0.02299206331372261, 0.38338160514831543, 0.16516035795211792, -0.12426137924194336, -0.06315629929304123, 0.17420147359371185, -0.11424881964921951, -0.2624594271183014, -0.17729148268699646, -0.024161363020539284, 0.2708464562892914, 0.06833906471729279, -0.1257423460483551, -0.028763262555003166, -0.15293434262275696, 0.06422678381204605, 0.29305514693260193, 0.06972724199295044, 0.0309642031788826, 0.41794630885124207, -0.09202271699905396, 0.3724149167537689, 0.01835050992667675, 0.4789646863937378, 0.017127500846982002, -0.3643651604652405, -0.032052621245384216, 0.10116846114397049, 0.4992172122001648, 0.10996635258197784, 0.12716758251190186, 0.2883836627006531, 0.034204065799713135, -0.2664051353931427, 0.5076540112495422, -0.13402484357357025, -0.10457167774438858, -0.1549360603094101, -0.2518349587917328, -0.15711720287799835, -0.6111143827438354, 0.09708450734615326, 0.45560896396636963, -0.35584011673927307, -0.19771236181259155, 0.14607401192188263, 0.060266681015491486, 0.23104329407215118, -0.4167247712612152, 0.32306766510009766, 0.23527072370052338, -0.17268826067447662, 0.10215513408184052, -0.3868226408958435, -0.21034446358680725, -0.004397451877593994, -0.08389990776777267, -0.021607711911201477, -0.03309496119618416, -0.009933099150657654, -0.17443063855171204, 0.393402636051178, -0.22114938497543335, 0.09602569788694382, 0.026829561218619347, -0.10319339483976364, 0.172062948346138, 0.04423041269183159, 0.3552168309688568, -0.00782145094126463, 0.01729961857199669, -0.23585110902786255, 0.0226601492613554, 0.12209492176771164, -0.1244111880660057, 0.407073050737381, 0.29740583896636963, -0.16843418776988983, -0.11458037048578262, 0.25388193130493164, -0.18144284188747406, -0.4528248608112335, 0.00493541918694973, -0.06052765995264053, 0.03435751795768738, -0.1970156580209732, -0.19660185277462006, -0.028096042573451996, -0.15385617315769196, -0.2320328801870346, 0.14457781612873077, -0.23946599662303925, 0.09546491503715515, -0.1139327809214592, -0.08243751525878906, -0.07707767188549042, 0.28542590141296387, -0.24940884113311768, 0.10166113823652267, 0.2831384539604187, 0.1177540272474289, 0.10112889856100082, -0.28967851400375366, 0.3237534165382385, 0.14674589037895203, 0.19744575023651123, 0.33469638228416443, -0.1122426688671112, 0.06490562111139297, -0.4601023495197296, -0.018631165847182274, -0.049757760018110275, -0.10646215826272964, -0.20059794187545776, -0.12344937026500702, 0.09921769052743912, 0.0350235179066658, 0.3692314028739929, 0.31974130868911743, -0.15716424584388733, -0.08029194176197052, -0.1610725373029709, -0.015638988465070724, -0.23533624410629272, 0.16760610044002533, -0.004832730162888765, -0.2733505070209503, 0.5463670492172241, 0.060240231454372406, 0.21978764235973358, 0.20128628611564636, 0.3320479393005371, 0.08937300741672516, 0.10520713031291962, 0.3796665668487549, 0.007336133159697056, -0.17972473800182343, 0.06995812803506851, 0.10843813419342041, 0.22544798254966736, 0.10555221140384674, -0.0902259424328804, 0.03630968928337097, -0.11379341781139374, -0.27032360434532166, 0.031729672104120255, -0.05666214972734451, -0.06150291487574577, 0.40387049317359924, -0.13648994266986847, 0.07422031462192535, -0.18909764289855957, 0.19074876606464386, 0.03977665677666664, -0.1244022473692894, 0.24394501745700836, 0.03260111063718796, -0.47594738006591797, -0.024844950065016747, 0.027488484978675842, -0.03634561970829964, -0.03820042312145233, 0.48175016045570374, 0.054610103368759155, -0.09162594377994537, -0.10361285507678986, 0.16431497037410736, -0.061038341373205185, 0.1509130299091339, 0.41158175468444824, 0.26942551136016846, -0.1684739589691162, -0.07620494812726974, -0.031517621129751205, -0.04011683166027069, -0.002772061387076974, -0.18056146800518036, 0.2488003671169281, -0.23314598202705383, -0.3193986117839813, -0.4010481536388397, 0.12153850495815277, -0.3968745470046997, 0.09258141368627548, -0.2645168602466583, 0.19955192506313324, -0.5112457275390625, -0.26174819469451904, -0.4320746958255768, -0.3818296194076538, -0.1821550875902176, 0.1673654466867447, -0.12939126789569855, 0.11854546517133713, -0.08826328814029694, -0.23165099322795868, -0.27778464555740356, 0.23234538733959198, -0.371167927980423, -0.16664402186870575, -0.06715851277112961, 0.01898321881890297, -0.1715373545885086, -0.1903449147939682, -0.19351544976234436, 0.08089325577020645, -0.0062111979350447655, 0.36715757846832275, -0.20110459625720978, -0.002381661208346486, 0.4293907880783081, -0.042846404016017914, -0.25746336579322815, -0.0014324424555525184, -0.06952572613954544, -0.09997111558914185, -0.25044453144073486, 0.008676518686115742, 0.10439692437648773, 0.5254635214805603, -0.3391615152359009, -0.07297033071517944, -0.009748080745339394, 0.4389498233795166, 0.20742763578891754, 0.5305876731872559, 0.15406061708927155, -0.01597372442483902, 0.27209174633026123, 0.021737776696681976, 0.2147064208984375, 0.16373570263385773, -0.1385284662246704, 0.5275136232376099, 0.13735832273960114, -0.4894166886806488, 0.1732187122106552, -0.319474995136261, 0.029035229235887527, 0.20332635939121246, -0.08722857385873795, 0.48025617003440857, -0.30217209458351135, 0.10712505877017975, -0.3134734034538269, 0.2931150496006012, 0.10025972872972488, 0.2643139064311981, 0.06742437928915024, -0.029813691973686218, 0.0861164927482605, 0.12730379402637482, 0.08029335737228394, -0.193366140127182, -0.17278240621089935, -0.13000988960266113, -0.05400939658284187, 0.19364339113235474, 0.07672794163227081, 0.6708190441131592, -0.1621188074350357, -0.016793593764305115, 0.293514221906662, -0.1790688931941986, 0.44859448075294495, -0.025275234133005142, 0.2430851310491562, -0.20063868165016174, -0.05357937142252922, 0.088128961622715, -0.2018466591835022, -0.04784281551837921, 0.13064570724964142, 0.06522393226623535, -0.453073650598526, -0.24875976145267487, -0.053338672965765, 0.3085360527038574, -0.28432589769363403, -0.37766265869140625, -0.3207350969314575, -0.40889549255371094, -0.005050516687333584, -0.3703977167606354, 0.29421207308769226, -0.14908190071582794, -0.519931972026825, -0.23383870720863342, -0.08502402901649475, 0.11213163286447525, 0.6375276446342468, -0.1469283550977707, -0.012310541234910488, -0.18902398645877838, -0.353665828704834, 0.09870460629463196, 0.06338188052177429, 0.22364529967308044, 0.05433966591954231, 0.03650873526930809, -0.08685117214918137, 0.05171502009034157, 0.09198174625635147, 0.10182289034128189, 0.227779820561409, 0.3567544221878052, 0.1809781789779663, -0.1937067210674286, 0.320487916469574, -0.02837532013654709, -0.040098149329423904, -0.35887834429740906, 0.28633567690849304, 0.08770114928483963, -0.11818825453519821, 0.07878097146749496, -0.009239781647920609, -0.06200431287288666, -0.13650983572006226, -0.07415896654129028, -0.31289142370224, -0.0747951865196228, 0.08972354233264923, 0.35493898391723633, 0.587993860244751, 0.011408419348299503, -0.03594844043254852, 0.16661280393600464, 0.09679391980171204, 0.003924440126866102, -0.3281819820404053, 0.008506923913955688, -0.514053225517273, -0.25204646587371826, -0.02599085494875908, 0.015468025580048561, 0.23650819063186646, 0.00747575331479311, -0.19689251482486725, 0.2008192539215088, 0.21531634032726288, -0.20069383084774017, -0.3904220163822174, 0.23389095067977905, 0.10944101214408875, -0.18236437439918518, 0.19210505485534668, 0.1752409040927887, 0.16395536065101624, 0.034687720239162445, -0.19702984392642975, -0.31921491026878357, 0.04462924599647522, -0.3427501618862152, -0.19779887795448303, 0.14875902235507965, 0.25196966528892517, 0.5657718777656555, 0.09027396887540817, -0.0197946447879076, 0.08745869994163513, -0.08021441847085953, 0.3185746371746063, 0.22508226335048676, 0.0681961253285408, 0.09086862206459045, -0.16493555903434753, 0.050465747714042664, -0.05318818986415863, -0.14518821239471436, -0.33118778467178345, -0.28088098764419556, -0.4808148443698883, -0.08410659432411194, 0.20074595510959625, -0.3593468964099884, -0.0561583936214447, 0.1994830220937729, 0.3760150372982025, 0.03229460492730141, 0.2806674540042877, 0.10538990050554276, -0.188393697142601, -0.050348009914159775, 0.174808531999588, 0.17690879106521606, -0.12457224726676941, 0.2542584240436554, -0.05989226698875427, -0.19193005561828613, 0.017241783440113068, 0.3288024365901947, 0.1170872300863266, 0.17490391433238983, 0.11464986950159073, -0.07966546714305878, -0.04862415790557861, -0.26693353056907654, -0.23497185111045837, -0.11361412703990936, 0.0280592143535614, -0.20459063351154327, -0.16714997589588165, -0.31205564737319946, -0.016267472878098488, -0.04651159420609474, 0.07645170390605927, 0.07443850487470627, -0.06092045456171036, -0.08494526147842407, -0.29691869020462036, 0.22214685380458832, -0.3462570309638977, 0.00004640463157556951, 0.28654175996780396, -0.011880523525178432, -0.00789063610136509, 0.21736513078212738, -0.42576864361763, 0.15094822645187378, -0.1472303420305252, -0.03616724908351898, 0.21381300687789917, -0.42265602946281433, -0.07991809397935867, 0.08711865544319153, 0.22241143882274628, 0.05624837800860405, -0.4151115417480469, -0.2122250646352768, 0.06514711678028107, 0.06838224828243256, 0.07378122210502625, -0.23911719024181366, -0.07254627346992493, -0.43453672528266907, -0.12057535350322723, -0.057274021208286285, 0.13787932693958282, 0.07003675401210785, -0.037679772824048996, -0.15629224479198456, 0.016370849683880806, 0.411140501499176, 0.07939186692237854, 0.19961602985858917, 0.10578728467226028, 0.0038862156216055155, -0.2365400195121765, 0.1504056453704834, 0.02817656844854355, -0.3382037878036499, -0.36920830607414246, 0.10559597611427307, 0.4603841006755829, 0.3644225299358368, 0.048025358468294144, 0.07009008526802063, -0.3067328631877899, -0.2037430852651596, 0.20602309703826904, 0.5727947354316711, -0.11559924483299255, -0.2809847891330719, 0.011610282585024834, 0.282966673374176, -0.052304718643426895, -0.022322120144963264, 0.10482475161552429, 0.09552840888500214, 0.04458518698811531, 0.22633901238441467, 0.4661850333213806, -0.49734368920326233, 0.16790300607681274, 0.13718292117118835, 0.2609982192516327, -0.34383904933929443, -0.0644390806555748, -0.08337535709142685, -0.08887171000242233, 0.21144381165504456, -0.055335793644189835, 0.16388626396656036, 0.700674295425415, 0.2906429171562195, 0.10009464621543884, 0.07391151040792465, 0.4245782792568207, 0.10557668656110764, 0.14507991075515747, -0.17853207886219025, -0.07704909890890121, -0.16557464003562927, 0.14654888212680817, 0.005050659645348787, 0.4394398629665375, 0.23413778841495514, -0.2695488929748535, -0.22049421072006226, -0.5822014808654785, 0.37707483768463135, -0.35137778520584106, -0.10396729409694672, 0.3877240717411041, 0.06287819892168045, 0.007827093824744225, -0.05247953161597252, 0.09265562891960144, 0.20912988483905792, 0.5180501937866211, -0.041179109364748, 0.13292770087718964, 0.007830651476979256, 0.20795680582523346, 0.16835863888263702, -0.00533833634108305, -0.14460355043411255, 0.11314844340085983, 0.3802165985107422, 0.08026913553476334, 0.10717266798019409, 0.3360094130039215, 0.21227769553661346, 0.29003816843032837, -0.057836178690195084, -0.03854548931121826, 0.13257163763046265, 0.1765879988670349, -0.18487028777599335, 0.20621733367443085, -0.1080256998538971, 0.4161776602268219, 0.21976467967033386, 0.11717256903648376, -0.2146165817975998, 0.05005718395113945, 0.26203209161758423, 0.03635364770889282, 0.45301109552383423, 0.13598109781742096, 0.21801108121871948, 0.22215496003627777, 0.13248960673809052, 0.10782326757907867, -0.5244892239570618, 0.008494463749229908, -0.15572871267795563, -0.23923486471176147, 0.1197722852230072, 0.02336053177714348, 0.1319759637117386, 0.0775563195347786, 0.5108352303504944, 0.1254594773054123, 0.030074570327997208, -0.16887414455413818, 0.17231792211532593, -0.46961450576782227, 0.5369275212287903, -0.03934300318360329, -0.19604609906673431, -0.2333744466304779, 0.15982937812805176, 0.17437681555747986, -0.08876334875822067, 0.08534470200538635, -0.04229941964149475, -0.11522768437862396, 0.5460299253463745, -0.29675379395484924, 0.21649745106697083, 0.1982450783252716, -0.10747333616018295, 0.19620178639888763, -0.24239236116409302, 0.379440575838089, 0.0786883533000946, 0.2289935201406479, 0.20936520397663116, 0.002248388482257724, -0.2999710738658905, -0.20246373116970062, 0.3730171322822571, -0.024105532094836235, 0.3407144844532013, -0.18719778954982758, -0.35193219780921936, -0.1917150914669037, -0.063128761947155, 0.019312659278512, 0.09994035214185715, 0.29963377118110657, -0.29050615429878235, -0.1418093591928482, 0.111158587038517, -0.06938246637582779, -0.07148516178131104, -0.2644709646701813, 0.44952917098999023, -0.10396365821361542, 0.39786043763160706, 0.07614187896251678, 0.26527050137519836, -0.26078131794929504, 0.01904064230620861, 0.1734514981508255, -0.11813915520906448, -0.21346871554851532, 0.1787257343530655, 0.40935322642326355, -0.007001674734055996, 0.04089221730828285, -0.5535708069801331, 0.3126896321773529, 0.25586599111557007, 0.08376605808734894, -0.1673174798488617, -0.1367863416671753, -0.04019434377551079, -0.15386885404586792, -0.28737595677375793, 0.007564910687506199, -0.03721889853477478, -0.45216014981269836, -0.12400760501623154, 0.007771328557282686, -0.2546418607234955, -0.7018741369247437, 0.33290982246398926, -0.09619252383708954 ]
https://github.com/huggingface/datasets/issues/1954
add a new column
Hi not sure how change the lable after creation, but this is an issue not dataset request. thanks
Hi I'd need to add a new column to the dataset, I was wondering how this can be done? thanks @lhoestq
18
add a new column
[ -0.02693687565624714, -0.1509024053812027, -0.27932435274124146, -0.1457475870847702, -0.030114835128188133, 0.1737024486064911, 0.41256266832351685, 0.0882929116487503, 0.13778863847255707, 0.21159422397613525, 0.015964070335030556, 0.11135454475879669, -0.0835975781083107, 0.23562602698802948, 0.2339172214269638, -0.2115928679704666, 0.04979761317372322, 0.2675940692424774, 0.2383442521095276, 0.023231804370880127, -0.5509243011474609, -0.00537187559530139, 0.0835832804441452, -0.03425595909357071, -0.08043713867664337, -0.003945139702409506, -0.16328391432762146, -0.11825521290302277, -0.22562050819396973, -0.25550439953804016, -0.1971256285905838, -0.045904576778411865, 0.0195254385471344, 0.2858090102672577, -0.00009518289152765647, -0.17868109047412872, -0.19198039174079895, 0.019947445020079613, -0.09121853858232498, 0.0952712744474411, -0.16755826771259308, -0.24777625501155853, -0.20884235203266144, -0.3406478464603424, -0.14512093365192413, -0.21621695160865784, -0.24703800678253174, 0.048678912222385406, -0.27612945437431335, 0.10840120911598206, 0.44107937812805176, -0.1990053802728653, -0.142190620303154, -0.4363873302936554, 0.27485933899879456, -0.0430513471364975, -0.09831655025482178, 0.03459298983216286, 0.1661192625761032, -0.038026925176382065, 0.31908637285232544, 0.11381325870752335, -0.0768500566482544, -0.26280152797698975, 0.11694411933422089, 0.30830898880958557, 0.3485623598098755, 0.23873211443424225, 0.16205887496471405, 0.182949960231781, 0.2943863570690155, -0.03254443779587746, 0.038211461156606674, 0.17006829380989075, 0.42953866720199585, -0.44243597984313965, -0.2387358695268631, 0.010435034520924091, 0.2403346747159958, -0.021801229566335678, 0.36878153681755066, -0.2027176022529602, -0.15895597636699677, 0.37577441334724426, -0.14306823909282684, 0.2982346713542938, -0.024161433801054955, -0.08473528176546097, 0.05984029546380043, 0.014294873923063278, -0.14401797950267792, 0.04776443541049957, -0.2208668738603592, 0.27520614862442017, 0.1475004255771637, -0.273517906665802, 0.03713638707995415, -0.11357995867729187, -0.10856881737709045, -0.18746821582317352, 0.0909813791513443, -0.20176438987255096, 0.062354087829589844, -0.0028060348704457283, -0.21438686549663544, -0.15775062143802643, 0.03869141265749931, 0.1129075363278389, -0.07153380662202835, 0.11660080403089523, 0.21218276023864746, -0.26927071809768677, -0.026676835492253304, 0.18214276432991028, -0.045871224254369736, -0.02313261106610298, 0.00812433660030365, 0.22246508300304413, 0.053295545279979706, 0.15065500140190125, 0.1897549331188202, -0.2773117125034332, 0.018873870372772217, 0.44870996475219727, 0.17271646857261658, -0.19304467737674713, -0.030338529497385025, 0.17491203546524048, 0.09245101362466812, -0.10450740158557892, -0.33868148922920227, 0.36072200536727905, -0.07486547529697418, 0.17302891612052917, -0.07671739906072617, 0.2709789276123047, -0.17411887645721436, 0.09959083795547485, -0.10128358751535416, -0.2202758938074112, -0.15565934777259827, -0.04685719683766365, -0.07723172754049301, -0.00914420373737812, -0.014590219594538212, -0.14523401856422424, 0.08855625987052917, -0.22425015270709991, -0.06925307959318161, 0.3019183874130249, 0.10531093180179596, -0.3176448345184326, -0.5498153567314148, 0.392501562833786, 0.3592066466808319, -0.22851283848285675, 0.3318122625350952, 0.1613982617855072, -0.008362670429050922, -0.30994629859924316, 0.24876390397548676, 0.4131583869457245, -0.319840669631958, -0.22750544548034668, -0.18826992809772491, 0.08929268270730972, -0.20494677126407623, -0.010035155341029167, -0.2680915594100952, 0.027051465585827827, 0.019870730116963387, -0.25235021114349365, -0.040125008672475815, 0.22300294041633606, 0.031752366572618484, -0.13728037476539612, 0.42923447489738464, 0.24326224625110626, -0.0945000946521759, -0.2483711838722229, -0.35749948024749756, -0.23445792496204376, 0.3072189390659332, 0.4185827076435089, 0.006455907132476568, 0.10158132761716843, 0.013973942026495934, -0.3260095715522766, -0.04435091093182564, -0.0412876196205616, 0.05820212513208389, -0.031911879777908325, 0.21247348189353943, 0.06777987629175186, 0.007284235209226608, 0.32554158568382263, 0.08368474990129471, -0.01901211030781269, 0.08423122018575668, -0.004111488815397024, -0.1400245577096939, 0.0064959158189594746, 0.4816173017024994, 0.07583986967802048, -0.07684113085269928, -0.13030606508255005, -0.1293911188840866, -0.1398676335811615, 0.3058077394962311, 0.03764704614877701, 0.40145593881607056, -0.1927143782377243, -0.28916168212890625, -0.08016858249902725, 0.14851780235767365, 0.18910637497901917, 0.3373737335205078, -0.0042455485090613365, 0.05908578261733055, -0.17760294675827026, -0.13387209177017212, 0.16024327278137207, -0.17338208854198456, -0.07538696378469467, 0.13295826315879822, 0.027391429990530014, -0.14169447124004364, -0.11864285916090012, -0.23577459156513214, 0.28391382098197937, 0.23186786472797394, 0.26540085673332214, 0.2722351551055908, 0.09056564420461655, -0.2955460250377655, 0.07444170117378235, 0.04193582013249397, 0.22192294895648956, -0.12510792911052704, 0.17721161246299744, 0.041141629219055176, -0.3812628984451294, -0.004294056445360184, 0.0849153995513916, -0.07436838001012802, 0.18403644859790802, -0.0038631947245448828, 0.15206541121006012, -0.1769125610589981, 0.002884647808969021, -0.009238618426024914, -0.21668751537799835, 0.31601691246032715, -0.39442095160484314, 0.10078250616788864, 0.1328582465648651, -0.45435860753059387, -0.19244004786014557, -0.09932313859462738, 0.32894596457481384, 0.09589062631130219, -0.11281885951757431, 0.18046589195728302, 0.019801855087280273, 0.07872597128152847, 0.3053372800350189, -0.05123012140393257, 0.15759265422821045, 0.43251466751098633, 0.30008092522621155, -0.062165144830942154, 0.03605331853032112, -0.19430726766586304, -0.2142500877380371, 0.014472498558461666, -0.009578387252986431, -0.11351241171360016, 0.16963233053684235, 0.1181514635682106, -0.17721033096313477, 0.07455804944038391, 0.018667256459593773, 0.08950038254261017, 0.2877524495124817, -0.10470964759588242, -0.13373805582523346, 0.051675304770469666, 0.012269656173884869, 0.10846564173698425, -0.2860136330127716, 0.2504579722881317, -0.07561901956796646, 0.2721817195415497, 0.2615968585014343, 0.060053639113903046, -0.1964150369167328, -0.2550515830516815, 0.4842497408390045, -0.10143649578094482, 0.18620887398719788, -0.2651236951351166, -0.1168394461274147, 0.20394304394721985, 0.3802669048309326, -0.28796571493148804, -0.0033926379401236773, 0.3441201150417328, 0.0743054449558258, 0.1467348337173462, -0.19946818053722382, -0.2503301501274109, -0.04015698656439781, -0.19129188358783722, -0.07717850059270859, 0.14952003955841064, 0.36121660470962524, -0.12146640568971634, -0.24867023527622223, 0.2513287365436554, 0.13396917283535004, -0.022741256281733513, -0.018518898636102676, 0.014010421000421047, 0.09309586882591248, -0.04146510735154152, -0.4448573589324951, 0.03742662072181702, -0.11692845076322556, 0.06664619594812393, 0.0474141500890255, 0.24274618923664093, -0.2936093509197235, 0.14597783982753754, 0.05837159976363182, 0.056686386466026306, 0.07085584104061127, -0.3099246919155121, 0.08957754820585251, 0.1822480410337448, -0.29542773962020874, -0.11237799376249313, 0.11196005344390869, -0.25255969166755676, -0.13901112973690033, -0.3131418526172638, -0.07482989132404327, -0.20135094225406647, -0.00037080919719301164, -0.07005715370178223, -0.2588006258010864, 0.003744580317288637, 0.42031967639923096, -0.11841753125190735, -0.32900330424308777, -0.18919140100479126, -0.13733048737049103, 0.04546009376645088, 0.3180861175060272, 0.13223858177661896, -0.29781895875930786, 0.2524784803390503, -0.12222884595394135, -0.09535764157772064, -0.0076272375881671906, -0.029294004663825035, 0.21345645189285278, -0.4326043128967285, 0.25140389800071716, 0.11376481503248215, -0.28897199034690857, -0.2122645229101181, 0.29659655690193176, 0.14488445222377777, 0.14441607892513275, -0.009594556875526905, 0.08618123829364777, 0.05020275339484215, 0.04039245843887329, -0.18791227042675018, 0.08316318690776825, 0.0794348418712616, 0.04686860740184784, 0.21392309665679932, -0.1697913408279419, -0.36873599886894226, -0.41027942299842834, -0.08757539838552475, -0.1615549623966217, 0.30427590012550354, -0.10931926965713501, -0.3019362986087799, -0.10327079147100449, -0.1209053322672844, -0.1674833446741104, 0.1681274026632309, 0.22252598404884338, -0.1689995676279068, -0.08677344769239426, -0.15436406433582306, -0.010865824297070503, 0.02609463408589363, 0.4995240271091461, -0.20700831711292267, -0.43763917684555054, 0.2450130432844162, 0.12455432116985321, -0.036278609186410904, 0.09321220964193344, -0.017387744039297104, -0.24404437839984894, -0.04448625072836876, 0.23739759624004364, -0.08024178445339203, 0.33327847719192505, 0.7833759188652039, -0.03170683607459068, -0.2371649146080017, -0.3989008665084839, -0.27140775322914124, -0.14335006475448608, -0.0703633576631546, 0.2548763155937195, -0.14460857212543488, 0.18256860971450806, 0.3385111093521118, -0.20386524498462677, 0.13844487071037292, -0.17874090373516083, 0.1523866206407547, 0.011641476303339005, -0.08770857751369476, 0.3760984539985657, -0.10072096437215805, -0.06280766427516937, -0.20164918899536133, -0.09329358488321304, 0.03908197581768036, -0.08727581799030304, 0.2466765195131302, 0.00660331267863512, -0.3799689710140228, 0.43317946791648865, 0.09845156222581863, 0.29270583391189575, 0.6632260680198669, -0.10618244111537933, -0.04403000697493553, -0.05503382533788681, -0.23330825567245483, 0.16527079045772552, -0.12531939148902893, 0.3071742653846741, -0.18612390756607056, 0.3980177640914917, -0.19466978311538696, -0.036036401987075806, 0.18574972450733185, 0.304778516292572, 0.0620807521045208, -0.018319182097911835, -0.07032404839992523, 1.044223427772522, -0.2265903800725937, -0.11635316163301468, -0.1253633201122284, -0.42113494873046875, 0.20954199135303497, -0.3655849099159241, 0.18452481925487518, -0.26209986209869385, -0.2549084722995758, 0.03326510265469551, 0.025392740964889526, 0.23407317698001862, 0.008435307070612907, -0.15408042073249817, -0.1865117847919464, -0.24190865457057953, 0.36497199535369873, -0.020942414179444313, -0.009845839813351631, 0.08785679936408997, -0.13208550214767456, -0.0023008740972727537, 0.3472798466682434, -0.005303550977259874, -0.30565667152404785, -0.09110447764396667, 0.3256855607032776, -0.2586652934551239, -0.20539312064647675, -0.04263821244239807, -0.28651687502861023, 0.24355638027191162, -0.1544613391160965, 0.18414543569087982, -0.3798941671848297, -0.18621695041656494, -0.22426748275756836, 0.09231829643249512, -0.07159392535686493, 0.17682266235351562, -0.06700544059276581, 0.21698345243930817, 0.018867051228880882, -0.08010304719209671, -0.0238187275826931, -0.04823891073465347, -0.11504791676998138, -0.35661986470222473, 0.4392969608306885, 0.15677624940872192, -0.47114109992980957, -0.40612348914146423, 0.22379077970981598, 0.2772243320941925, -0.47812286019325256, -0.07716106623411179, 0.3007986843585968, 0.10584799200296402, -0.4115447402000427, 0.34002822637557983, 0.06439948827028275, 0.023897171020507812, -0.10377423465251923, 0.06600435823202133, -0.1086975559592247, -0.17770744860172272, 0.10616877675056458, 0.21171164512634277, 0.08622667193412781, 0.11417485028505325, -0.02354179136455059, -0.16448406875133514, -0.34498533606529236, -0.17501308023929596, 0.25238072872161865, -0.023271774873137474, -0.18682798743247986, 0.031255822628736496, -0.19087636470794678, 0.08829968422651291, 0.1601865589618683, -0.09504581987857819, 0.3628206253051758, -0.22869934141635895, -0.012485112994909286, -0.1932692676782608, 0.14165516197681427, 0.12290571630001068, 0.21820981800556183, -0.05837555229663849, 0.29865166544914246, -0.1669415682554245, 0.29030680656433105, -0.541178286075592, -0.17058907449245453, -0.05814844369888306, 0.051739294081926346, 0.42763179540634155, 0.02046309970319271, -0.050435926765203476, -0.06981736421585083, 0.4709223806858063, 0.13774365186691284, 0.10296878963708878, -0.44638583064079285, -0.10701805353164673, 0.0214555487036705, 0.014394720084965229, 0.1629640907049179, -0.21228817105293274, -0.044027842581272125, 0.006184088531881571, 0.09383103996515274, -0.020824521780014038, -0.10385987162590027, 0.04179922491312027, 0.08964602649211884, 0.03132094070315361, -0.13994425535202026, -0.24152323603630066, -0.1183997243642807, -0.06322149187326431, 0.11185593158006668, -0.03555939346551895, -0.07397526502609253, 0.008562755770981312, 0.1220373809337616, 0.02137073315680027, 0.2024512141942978, 0.2085999846458435, -0.14458592236042023, 0.21177703142166138, 0.13068433105945587, 0.04110676422715187, 0.029925629496574402, -0.17182040214538574, -0.10566879063844681, 0.044099487364292145, 0.09290993958711624, 0.047482434660196304, 0.40100881457328796, -0.3626379072666168, -0.005845227278769016, -0.011747995391488075, -0.10710258781909943, 0.30700060725212097, 0.3580927550792694, -0.0740596130490303, -0.012750187888741493, 0.22501146793365479, 0.034436944872140884, -0.25027501583099365, -0.16941599547863007, -0.023020584136247635, 0.295143187046051, 0.06400233507156372, -0.09273112565279007, 0.38750553131103516, 0.08718112111091614, -0.11837803572416306, 0.08086208999156952, 0.03206773102283478, -0.1560610979795456, -0.02001396007835865, 0.042896829545497894, -0.05328108370304108, -0.06525018811225891, 0.34259936213493347, 0.13231037557125092, 0.13938577473163605, -0.17937111854553223, 0.3573027551174164, -0.01568511314690113, 0.1233198344707489, 0.32105711102485657, -0.03392210975289345, 0.061240509152412415, -0.036876022815704346, 0.08989701420068741, -0.16533629596233368, -0.14879296720027924, -0.15860651433467865, -0.2962168753147125, 0.22419695556163788, -0.160074383020401, 0.28786173462867737, -0.1032794862985611, 0.21512629091739655, 0.013134201057255268, 0.15850935876369476, 0.05930014327168465, -0.015710707753896713, -0.11930707842111588, -0.091754250228405, 0.07918079197406769, 0.03690525144338608, 0.19664601981639862, 0.13473865389823914, -0.2148580104112625, -0.14996905624866486, 0.3990989029407501, 0.20754297077655792, -0.29163408279418945, -0.3105964958667755, 0.15587782859802246, -0.02915547788143158, 0.38187694549560547, 0.306815505027771, -0.2306152582168579, 0.3685772120952606, -0.3782348930835724, 0.19446036219596863, 0.1211928129196167, 0.15621379017829895, -0.19136106967926025, 0.3020947575569153, 0.3115278482437134, -0.38790103793144226, -0.1282765418291092, 0.03449060022830963, -0.015268972143530846, -0.025510646402835846, -0.19799360632896423, -0.1578095704317093, 0.007489038165658712, 0.1852020025253296, 0.2106662392616272, 0.4206821322441101, -0.14862412214279175, -0.07589425146579742, -0.07616069912910461, -0.10914807766675949, -0.2717249095439911, -0.10278940945863724, 0.21072056889533997, -0.23251618444919586, -0.2580419182777405, -0.17136621475219727, 0.056108102202415466, 0.2946982979774475, 0.05943154916167259, 0.34277409315109253, -0.10613507777452469, -0.07317498326301575, 0.06644684821367264, -0.10747246444225311, -0.11949799209833145, 0.4292658865451813, 0.002438571769744158, -0.06145738810300827, 0.15504202246665955, 0.10127551108598709, 0.2083902209997177, 0.37315332889556885, -0.12112591415643692, -0.11147483438253403, -0.14377406239509583, 0.13873328268527985, 0.27743417024612427, -0.3643423616886139, 0.22292307019233704, -0.3395034968852997, 0.13036753237247467, 0.12946860492229462, 0.10016511380672455, -0.04183854162693024, 0.17619584500789642, 0.25668996572494507, 0.049509238451719284, -0.01218333188444376, -0.08634524792432785, 0.027589723467826843, 0.17950402200222015, -0.13437959551811218, -0.005665208678692579, 0.010589837096631527, 0.2870606482028961, 0.12560811638832092, -0.058260176330804825, -0.05630555376410484, -0.011578607372939587, 0.08917480707168579, 0.20131829380989075, -0.0015600455226376653, -0.04708664119243622, 0.022719228640198708, 0.11878544092178345, -0.3439943492412567, 0.1804819256067276, 0.28916725516319275, 0.12313038855791092, 0.0601729191839695, -0.15565615892410278, -0.16128890216350555, 0.3074227273464203, -0.06319839507341385, 0.20015637576580048, 0.23211681842803955, 0.022759011015295982, 0.04113340750336647, 0.05414982885122299, 0.06313198059797287, -0.010810603387653828, -0.000004659748356061755, -0.3241437077522278, -0.32179349660873413 ]
https://github.com/huggingface/datasets/issues/1954
add a new column
Hi ! Currently you have to use `map` . You can see an example of how to do it in this comment: https://github.com/huggingface/datasets/issues/853#issuecomment-727872188 In the future we'll add support for a more native way of adding a new column ;)
Hi I'd need to add a new column to the dataset, I was wondering how this can be done? thanks @lhoestq
40
add a new column
[ -0.02693687565624714, -0.1509024053812027, -0.27932435274124146, -0.1457475870847702, -0.030114835128188133, 0.1737024486064911, 0.41256266832351685, 0.0882929116487503, 0.13778863847255707, 0.21159422397613525, 0.015964070335030556, 0.11135454475879669, -0.0835975781083107, 0.23562602698802948, 0.2339172214269638, -0.2115928679704666, 0.04979761317372322, 0.2675940692424774, 0.2383442521095276, 0.023231804370880127, -0.5509243011474609, -0.00537187559530139, 0.0835832804441452, -0.03425595909357071, -0.08043713867664337, -0.003945139702409506, -0.16328391432762146, -0.11825521290302277, -0.22562050819396973, -0.25550439953804016, -0.1971256285905838, -0.045904576778411865, 0.0195254385471344, 0.2858090102672577, -0.00009518289152765647, -0.17868109047412872, -0.19198039174079895, 0.019947445020079613, -0.09121853858232498, 0.0952712744474411, -0.16755826771259308, -0.24777625501155853, -0.20884235203266144, -0.3406478464603424, -0.14512093365192413, -0.21621695160865784, -0.24703800678253174, 0.048678912222385406, -0.27612945437431335, 0.10840120911598206, 0.44107937812805176, -0.1990053802728653, -0.142190620303154, -0.4363873302936554, 0.27485933899879456, -0.0430513471364975, -0.09831655025482178, 0.03459298983216286, 0.1661192625761032, -0.038026925176382065, 0.31908637285232544, 0.11381325870752335, -0.0768500566482544, -0.26280152797698975, 0.11694411933422089, 0.30830898880958557, 0.3485623598098755, 0.23873211443424225, 0.16205887496471405, 0.182949960231781, 0.2943863570690155, -0.03254443779587746, 0.038211461156606674, 0.17006829380989075, 0.42953866720199585, -0.44243597984313965, -0.2387358695268631, 0.010435034520924091, 0.2403346747159958, -0.021801229566335678, 0.36878153681755066, -0.2027176022529602, -0.15895597636699677, 0.37577441334724426, -0.14306823909282684, 0.2982346713542938, -0.024161433801054955, -0.08473528176546097, 0.05984029546380043, 0.014294873923063278, -0.14401797950267792, 0.04776443541049957, -0.2208668738603592, 0.27520614862442017, 0.1475004255771637, -0.273517906665802, 0.03713638707995415, -0.11357995867729187, -0.10856881737709045, -0.18746821582317352, 0.0909813791513443, -0.20176438987255096, 0.062354087829589844, -0.0028060348704457283, -0.21438686549663544, -0.15775062143802643, 0.03869141265749931, 0.1129075363278389, -0.07153380662202835, 0.11660080403089523, 0.21218276023864746, -0.26927071809768677, -0.026676835492253304, 0.18214276432991028, -0.045871224254369736, -0.02313261106610298, 0.00812433660030365, 0.22246508300304413, 0.053295545279979706, 0.15065500140190125, 0.1897549331188202, -0.2773117125034332, 0.018873870372772217, 0.44870996475219727, 0.17271646857261658, -0.19304467737674713, -0.030338529497385025, 0.17491203546524048, 0.09245101362466812, -0.10450740158557892, -0.33868148922920227, 0.36072200536727905, -0.07486547529697418, 0.17302891612052917, -0.07671739906072617, 0.2709789276123047, -0.17411887645721436, 0.09959083795547485, -0.10128358751535416, -0.2202758938074112, -0.15565934777259827, -0.04685719683766365, -0.07723172754049301, -0.00914420373737812, -0.014590219594538212, -0.14523401856422424, 0.08855625987052917, -0.22425015270709991, -0.06925307959318161, 0.3019183874130249, 0.10531093180179596, -0.3176448345184326, -0.5498153567314148, 0.392501562833786, 0.3592066466808319, -0.22851283848285675, 0.3318122625350952, 0.1613982617855072, -0.008362670429050922, -0.30994629859924316, 0.24876390397548676, 0.4131583869457245, -0.319840669631958, -0.22750544548034668, -0.18826992809772491, 0.08929268270730972, -0.20494677126407623, -0.010035155341029167, -0.2680915594100952, 0.027051465585827827, 0.019870730116963387, -0.25235021114349365, -0.040125008672475815, 0.22300294041633606, 0.031752366572618484, -0.13728037476539612, 0.42923447489738464, 0.24326224625110626, -0.0945000946521759, -0.2483711838722229, -0.35749948024749756, -0.23445792496204376, 0.3072189390659332, 0.4185827076435089, 0.006455907132476568, 0.10158132761716843, 0.013973942026495934, -0.3260095715522766, -0.04435091093182564, -0.0412876196205616, 0.05820212513208389, -0.031911879777908325, 0.21247348189353943, 0.06777987629175186, 0.007284235209226608, 0.32554158568382263, 0.08368474990129471, -0.01901211030781269, 0.08423122018575668, -0.004111488815397024, -0.1400245577096939, 0.0064959158189594746, 0.4816173017024994, 0.07583986967802048, -0.07684113085269928, -0.13030606508255005, -0.1293911188840866, -0.1398676335811615, 0.3058077394962311, 0.03764704614877701, 0.40145593881607056, -0.1927143782377243, -0.28916168212890625, -0.08016858249902725, 0.14851780235767365, 0.18910637497901917, 0.3373737335205078, -0.0042455485090613365, 0.05908578261733055, -0.17760294675827026, -0.13387209177017212, 0.16024327278137207, -0.17338208854198456, -0.07538696378469467, 0.13295826315879822, 0.027391429990530014, -0.14169447124004364, -0.11864285916090012, -0.23577459156513214, 0.28391382098197937, 0.23186786472797394, 0.26540085673332214, 0.2722351551055908, 0.09056564420461655, -0.2955460250377655, 0.07444170117378235, 0.04193582013249397, 0.22192294895648956, -0.12510792911052704, 0.17721161246299744, 0.041141629219055176, -0.3812628984451294, -0.004294056445360184, 0.0849153995513916, -0.07436838001012802, 0.18403644859790802, -0.0038631947245448828, 0.15206541121006012, -0.1769125610589981, 0.002884647808969021, -0.009238618426024914, -0.21668751537799835, 0.31601691246032715, -0.39442095160484314, 0.10078250616788864, 0.1328582465648651, -0.45435860753059387, -0.19244004786014557, -0.09932313859462738, 0.32894596457481384, 0.09589062631130219, -0.11281885951757431, 0.18046589195728302, 0.019801855087280273, 0.07872597128152847, 0.3053372800350189, -0.05123012140393257, 0.15759265422821045, 0.43251466751098633, 0.30008092522621155, -0.062165144830942154, 0.03605331853032112, -0.19430726766586304, -0.2142500877380371, 0.014472498558461666, -0.009578387252986431, -0.11351241171360016, 0.16963233053684235, 0.1181514635682106, -0.17721033096313477, 0.07455804944038391, 0.018667256459593773, 0.08950038254261017, 0.2877524495124817, -0.10470964759588242, -0.13373805582523346, 0.051675304770469666, 0.012269656173884869, 0.10846564173698425, -0.2860136330127716, 0.2504579722881317, -0.07561901956796646, 0.2721817195415497, 0.2615968585014343, 0.060053639113903046, -0.1964150369167328, -0.2550515830516815, 0.4842497408390045, -0.10143649578094482, 0.18620887398719788, -0.2651236951351166, -0.1168394461274147, 0.20394304394721985, 0.3802669048309326, -0.28796571493148804, -0.0033926379401236773, 0.3441201150417328, 0.0743054449558258, 0.1467348337173462, -0.19946818053722382, -0.2503301501274109, -0.04015698656439781, -0.19129188358783722, -0.07717850059270859, 0.14952003955841064, 0.36121660470962524, -0.12146640568971634, -0.24867023527622223, 0.2513287365436554, 0.13396917283535004, -0.022741256281733513, -0.018518898636102676, 0.014010421000421047, 0.09309586882591248, -0.04146510735154152, -0.4448573589324951, 0.03742662072181702, -0.11692845076322556, 0.06664619594812393, 0.0474141500890255, 0.24274618923664093, -0.2936093509197235, 0.14597783982753754, 0.05837159976363182, 0.056686386466026306, 0.07085584104061127, -0.3099246919155121, 0.08957754820585251, 0.1822480410337448, -0.29542773962020874, -0.11237799376249313, 0.11196005344390869, -0.25255969166755676, -0.13901112973690033, -0.3131418526172638, -0.07482989132404327, -0.20135094225406647, -0.00037080919719301164, -0.07005715370178223, -0.2588006258010864, 0.003744580317288637, 0.42031967639923096, -0.11841753125190735, -0.32900330424308777, -0.18919140100479126, -0.13733048737049103, 0.04546009376645088, 0.3180861175060272, 0.13223858177661896, -0.29781895875930786, 0.2524784803390503, -0.12222884595394135, -0.09535764157772064, -0.0076272375881671906, -0.029294004663825035, 0.21345645189285278, -0.4326043128967285, 0.25140389800071716, 0.11376481503248215, -0.28897199034690857, -0.2122645229101181, 0.29659655690193176, 0.14488445222377777, 0.14441607892513275, -0.009594556875526905, 0.08618123829364777, 0.05020275339484215, 0.04039245843887329, -0.18791227042675018, 0.08316318690776825, 0.0794348418712616, 0.04686860740184784, 0.21392309665679932, -0.1697913408279419, -0.36873599886894226, -0.41027942299842834, -0.08757539838552475, -0.1615549623966217, 0.30427590012550354, -0.10931926965713501, -0.3019362986087799, -0.10327079147100449, -0.1209053322672844, -0.1674833446741104, 0.1681274026632309, 0.22252598404884338, -0.1689995676279068, -0.08677344769239426, -0.15436406433582306, -0.010865824297070503, 0.02609463408589363, 0.4995240271091461, -0.20700831711292267, -0.43763917684555054, 0.2450130432844162, 0.12455432116985321, -0.036278609186410904, 0.09321220964193344, -0.017387744039297104, -0.24404437839984894, -0.04448625072836876, 0.23739759624004364, -0.08024178445339203, 0.33327847719192505, 0.7833759188652039, -0.03170683607459068, -0.2371649146080017, -0.3989008665084839, -0.27140775322914124, -0.14335006475448608, -0.0703633576631546, 0.2548763155937195, -0.14460857212543488, 0.18256860971450806, 0.3385111093521118, -0.20386524498462677, 0.13844487071037292, -0.17874090373516083, 0.1523866206407547, 0.011641476303339005, -0.08770857751369476, 0.3760984539985657, -0.10072096437215805, -0.06280766427516937, -0.20164918899536133, -0.09329358488321304, 0.03908197581768036, -0.08727581799030304, 0.2466765195131302, 0.00660331267863512, -0.3799689710140228, 0.43317946791648865, 0.09845156222581863, 0.29270583391189575, 0.6632260680198669, -0.10618244111537933, -0.04403000697493553, -0.05503382533788681, -0.23330825567245483, 0.16527079045772552, -0.12531939148902893, 0.3071742653846741, -0.18612390756607056, 0.3980177640914917, -0.19466978311538696, -0.036036401987075806, 0.18574972450733185, 0.304778516292572, 0.0620807521045208, -0.018319182097911835, -0.07032404839992523, 1.044223427772522, -0.2265903800725937, -0.11635316163301468, -0.1253633201122284, -0.42113494873046875, 0.20954199135303497, -0.3655849099159241, 0.18452481925487518, -0.26209986209869385, -0.2549084722995758, 0.03326510265469551, 0.025392740964889526, 0.23407317698001862, 0.008435307070612907, -0.15408042073249817, -0.1865117847919464, -0.24190865457057953, 0.36497199535369873, -0.020942414179444313, -0.009845839813351631, 0.08785679936408997, -0.13208550214767456, -0.0023008740972727537, 0.3472798466682434, -0.005303550977259874, -0.30565667152404785, -0.09110447764396667, 0.3256855607032776, -0.2586652934551239, -0.20539312064647675, -0.04263821244239807, -0.28651687502861023, 0.24355638027191162, -0.1544613391160965, 0.18414543569087982, -0.3798941671848297, -0.18621695041656494, -0.22426748275756836, 0.09231829643249512, -0.07159392535686493, 0.17682266235351562, -0.06700544059276581, 0.21698345243930817, 0.018867051228880882, -0.08010304719209671, -0.0238187275826931, -0.04823891073465347, -0.11504791676998138, -0.35661986470222473, 0.4392969608306885, 0.15677624940872192, -0.47114109992980957, -0.40612348914146423, 0.22379077970981598, 0.2772243320941925, -0.47812286019325256, -0.07716106623411179, 0.3007986843585968, 0.10584799200296402, -0.4115447402000427, 0.34002822637557983, 0.06439948827028275, 0.023897171020507812, -0.10377423465251923, 0.06600435823202133, -0.1086975559592247, -0.17770744860172272, 0.10616877675056458, 0.21171164512634277, 0.08622667193412781, 0.11417485028505325, -0.02354179136455059, -0.16448406875133514, -0.34498533606529236, -0.17501308023929596, 0.25238072872161865, -0.023271774873137474, -0.18682798743247986, 0.031255822628736496, -0.19087636470794678, 0.08829968422651291, 0.1601865589618683, -0.09504581987857819, 0.3628206253051758, -0.22869934141635895, -0.012485112994909286, -0.1932692676782608, 0.14165516197681427, 0.12290571630001068, 0.21820981800556183, -0.05837555229663849, 0.29865166544914246, -0.1669415682554245, 0.29030680656433105, -0.541178286075592, -0.17058907449245453, -0.05814844369888306, 0.051739294081926346, 0.42763179540634155, 0.02046309970319271, -0.050435926765203476, -0.06981736421585083, 0.4709223806858063, 0.13774365186691284, 0.10296878963708878, -0.44638583064079285, -0.10701805353164673, 0.0214555487036705, 0.014394720084965229, 0.1629640907049179, -0.21228817105293274, -0.044027842581272125, 0.006184088531881571, 0.09383103996515274, -0.020824521780014038, -0.10385987162590027, 0.04179922491312027, 0.08964602649211884, 0.03132094070315361, -0.13994425535202026, -0.24152323603630066, -0.1183997243642807, -0.06322149187326431, 0.11185593158006668, -0.03555939346551895, -0.07397526502609253, 0.008562755770981312, 0.1220373809337616, 0.02137073315680027, 0.2024512141942978, 0.2085999846458435, -0.14458592236042023, 0.21177703142166138, 0.13068433105945587, 0.04110676422715187, 0.029925629496574402, -0.17182040214538574, -0.10566879063844681, 0.044099487364292145, 0.09290993958711624, 0.047482434660196304, 0.40100881457328796, -0.3626379072666168, -0.005845227278769016, -0.011747995391488075, -0.10710258781909943, 0.30700060725212097, 0.3580927550792694, -0.0740596130490303, -0.012750187888741493, 0.22501146793365479, 0.034436944872140884, -0.25027501583099365, -0.16941599547863007, -0.023020584136247635, 0.295143187046051, 0.06400233507156372, -0.09273112565279007, 0.38750553131103516, 0.08718112111091614, -0.11837803572416306, 0.08086208999156952, 0.03206773102283478, -0.1560610979795456, -0.02001396007835865, 0.042896829545497894, -0.05328108370304108, -0.06525018811225891, 0.34259936213493347, 0.13231037557125092, 0.13938577473163605, -0.17937111854553223, 0.3573027551174164, -0.01568511314690113, 0.1233198344707489, 0.32105711102485657, -0.03392210975289345, 0.061240509152412415, -0.036876022815704346, 0.08989701420068741, -0.16533629596233368, -0.14879296720027924, -0.15860651433467865, -0.2962168753147125, 0.22419695556163788, -0.160074383020401, 0.28786173462867737, -0.1032794862985611, 0.21512629091739655, 0.013134201057255268, 0.15850935876369476, 0.05930014327168465, -0.015710707753896713, -0.11930707842111588, -0.091754250228405, 0.07918079197406769, 0.03690525144338608, 0.19664601981639862, 0.13473865389823914, -0.2148580104112625, -0.14996905624866486, 0.3990989029407501, 0.20754297077655792, -0.29163408279418945, -0.3105964958667755, 0.15587782859802246, -0.02915547788143158, 0.38187694549560547, 0.306815505027771, -0.2306152582168579, 0.3685772120952606, -0.3782348930835724, 0.19446036219596863, 0.1211928129196167, 0.15621379017829895, -0.19136106967926025, 0.3020947575569153, 0.3115278482437134, -0.38790103793144226, -0.1282765418291092, 0.03449060022830963, -0.015268972143530846, -0.025510646402835846, -0.19799360632896423, -0.1578095704317093, 0.007489038165658712, 0.1852020025253296, 0.2106662392616272, 0.4206821322441101, -0.14862412214279175, -0.07589425146579742, -0.07616069912910461, -0.10914807766675949, -0.2717249095439911, -0.10278940945863724, 0.21072056889533997, -0.23251618444919586, -0.2580419182777405, -0.17136621475219727, 0.056108102202415466, 0.2946982979774475, 0.05943154916167259, 0.34277409315109253, -0.10613507777452469, -0.07317498326301575, 0.06644684821367264, -0.10747246444225311, -0.11949799209833145, 0.4292658865451813, 0.002438571769744158, -0.06145738810300827, 0.15504202246665955, 0.10127551108598709, 0.2083902209997177, 0.37315332889556885, -0.12112591415643692, -0.11147483438253403, -0.14377406239509583, 0.13873328268527985, 0.27743417024612427, -0.3643423616886139, 0.22292307019233704, -0.3395034968852997, 0.13036753237247467, 0.12946860492229462, 0.10016511380672455, -0.04183854162693024, 0.17619584500789642, 0.25668996572494507, 0.049509238451719284, -0.01218333188444376, -0.08634524792432785, 0.027589723467826843, 0.17950402200222015, -0.13437959551811218, -0.005665208678692579, 0.010589837096631527, 0.2870606482028961, 0.12560811638832092, -0.058260176330804825, -0.05630555376410484, -0.011578607372939587, 0.08917480707168579, 0.20131829380989075, -0.0015600455226376653, -0.04708664119243622, 0.022719228640198708, 0.11878544092178345, -0.3439943492412567, 0.1804819256067276, 0.28916725516319275, 0.12313038855791092, 0.0601729191839695, -0.15565615892410278, -0.16128890216350555, 0.3074227273464203, -0.06319839507341385, 0.20015637576580048, 0.23211681842803955, 0.022759011015295982, 0.04113340750336647, 0.05414982885122299, 0.06313198059797287, -0.010810603387653828, -0.000004659748356061755, -0.3241437077522278, -0.32179349660873413 ]
https://github.com/huggingface/datasets/issues/1949
Enable Fast Filtering using Arrow Dataset
Hi @gchhablani :) Thanks for proposing your help ! I'll be doing a refactor of some parts related to filtering in the scope of https://github.com/huggingface/datasets/issues/1877 So I would first wait for this refactor to be done before working on the filtering. In particular because I plan to make things simpler to manipulate. Your feedback on this refactor would also be appreciated since it also aims at making the core code more accessible (basically my goal is that no one's ever "having troubles getting started" ^^) This will be available in a few days, I will be able to give you more details at that time if you don't mind waiting a bit !
Hi @lhoestq, As mentioned in Issue #1796, I would love to work on enabling fast filtering/mapping. Can you please share the expectations? It would be great if you could point me to the relevant methods/files involved. Or the docs or maybe an overview of `arrow_dataset.py`. I only ask this because I am having trouble getting started ;-; Any help would be appreciated. Thanks, Gunjan
113
Enable Fast Filtering using Arrow Dataset
[ -0.6722643375396729, -0.13568761944770813, -0.2701323628425598, -0.12929101288318634, 0.02693447843194008, -0.19892767071723938, -0.0010038750478997827, 0.13426153361797333, 0.17523790895938873, -0.022231344133615494, -0.29653772711753845, 0.590641975402832, -0.10258866846561432, 0.24933309853076935, -0.2876223027706146, 0.07075104862451553, -0.17131264507770538, 0.22432684898376465, -0.20967762172222137, -0.14475060999393463, 0.2587355971336365, -0.16064347326755524, -0.12668955326080322, -0.014128518290817738, 0.2375277578830719, -0.2132214456796646, 0.6711678504943848, -0.1269502341747284, -0.3265079855918884, -0.264868825674057, 0.03233509510755539, 0.2734835147857666, -0.2923096716403961, 0.031369950622320175, -0.00011529700714163482, 0.06788846105337143, 0.2706451117992401, 0.06705176085233688, -0.2190217524766922, 0.4081295430660248, -0.5399060845375061, -0.26561442017555237, 0.3335131108760834, -0.20262561738491058, -0.17919526994228363, -0.28330302238464355, -0.2610395550727844, -0.7032365798950195, 0.33270275592803955, 0.16472628712654114, 0.2319876253604889, 0.23976068198680878, -0.14855368435382843, -0.06191224977374077, 0.2392175793647766, 0.051243092864751816, -0.23652179539203644, -0.3142613172531128, 0.5774208903312683, 0.08905139565467834, -0.3014974892139435, 0.5011569857597351, 0.06644334644079208, 0.04305342212319374, 0.08278194069862366, -0.08149607479572296, -0.077032670378685, -0.00170943234115839, 0.29545626044273376, 0.3033408522605896, 0.31348156929016113, -0.06876406073570251, -0.20011533796787262, -0.13073931634426117, -0.22085382044315338, -0.17359328269958496, -0.18084155023097992, -0.1501246988773346, -0.1885583996772766, 0.13890494406223297, 0.06832913309335709, -0.23776590824127197, -0.160008043050766, 0.1407669633626938, 0.2321838140487671, 0.5398327112197876, -0.0757354125380516, -0.011611763387918472, 0.2273206263780594, -0.12688404321670532, 0.2889363169670105, -0.05807504430413246, -0.09826420247554779, 0.19323688745498657, -0.16114205121994019, -0.13929280638694763, -0.042170118540525436, 0.16315796971321106, 0.19485794007778168, 0.12249579280614853, 0.19665484130382538, 0.380650132894516, 0.15951594710350037, -0.050561096519231796, 0.04589998349547386, -0.09509202837944031, -0.02427555061876774, 0.26194828748703003, 0.19256360828876495, -0.14752142131328583, -0.14673282206058502, 0.08268823474645615, 0.10358170419931412, -0.26299169659614563, 0.08693433552980423, -0.08048074692487717, -0.33469441533088684, -0.18245765566825867, -0.3445492088794708, -0.11336752772331238, -0.004504985176026821, -0.23095175623893738, 0.2908879220485687, 0.2541428506374359, 0.07358106970787048, -0.04697967320680618, -0.23929676413536072, -0.11667931824922562, -0.13914518058300018, -0.10205578804016113, -0.0969548150897026, -0.020529592409729958, -0.005864339414983988, -0.2939281463623047, 0.11205270886421204, 0.13018527626991272, 0.02358453907072544, -0.13806937634944916, -0.14230188727378845, 0.093523308634758, 0.25920894742012024, -0.04491468518972397, 0.2734931409358978, 0.2405550181865692, -0.2227543592453003, 0.07091227173805237, 0.1227169930934906, -0.004096752032637596, -0.11086089164018631, 0.034888532012701035, -0.0768861398100853, -0.34680163860321045, -0.05749063193798065, 0.1821921318769455, 0.0591108500957489, -0.22065889835357666, -0.12197984009981155, 0.43659910559654236, -0.10398513078689575, -0.0979415774345398, 0.2289629578590393, 0.1281149983406067, -0.07847343385219574, 0.02457296848297119, 0.040168337523937225, 0.2484530806541443, -0.7239992022514343, -0.044980455189943314, -0.3747532367706299, -0.07105114310979843, 0.3496183454990387, 0.08771324902772903, -0.3941574692726135, -0.24085582792758942, 0.07226963341236115, 0.08869504183530807, 0.871864914894104, -0.05758025497198105, -0.4286932647228241, 0.17992018163204193, -0.063356414437294, -0.06843830645084381, 0.2937781512737274, 0.17111420631408691, 0.10304919630289078, -0.04105600342154503, -0.019082920625805855, 0.5279583930969238, -0.08630480617284775, -0.1365813910961151, -0.13090482354164124, -0.08306232839822769, 0.04783184453845024, 0.03147180378437042, 0.05051961913704872, 0.11314323544502258, 0.22680993378162384, -0.3357849419116974, 0.36444026231765747, 0.14176003634929657, 0.1342303454875946, -0.049947794526815414, 0.3268411457538605, -0.23584933578968048, 0.1326567381620407, 0.0659407377243042, -0.09744228422641754, -0.06257081776857376, 0.17739614844322205, -0.20211337506771088, -0.27142438292503357, 0.006688940338790417, -0.2290889024734497, 0.2237645536661148, -0.16477042436599731, 0.3195211887359619, 0.17043623328208923, -0.03912399336695671, -0.0029895498882979155, -0.030327532440423965, -0.12717676162719727, 0.22975283861160278, -0.18359246850013733, -0.11049392819404602, 0.10696593672037125, 0.09642133116722107, 0.26101362705230713, 0.04395369812846184, 0.13976553082466125, -0.20888665318489075, -0.11164869368076324, 0.02340165339410305, -0.16517740488052368, 0.02108302339911461, 0.1509348750114441, 0.07048014551401138, 0.2610824406147003, 0.3614192306995392, -0.09765969216823578, -0.39217084646224976, 0.13834351301193237, 0.1933494657278061, 0.24635161459445953, 0.19808092713356018, -0.24003371596336365, 0.6781232357025146, -0.30097734928131104, 0.11274868249893188, 0.1536760777235031, 0.02605283260345459, 0.3949274718761444, 0.14744041860103607, -0.14786094427108765, -0.3406691551208496, 0.1834164559841156, -0.16805048286914825, 0.30524900555610657, -0.017964979633688927, -0.2835662364959717, 0.4424179196357727, 0.15242350101470947, 0.3122333288192749, 0.06718654930591583, 0.054215289652347565, 0.017117956653237343, -0.03992847725749016, 0.20012971758842468, 0.37206387519836426, 0.0350433848798275, 0.4002551734447479, 0.05384168028831482, -0.3499951660633087, -0.013728123158216476, -0.11962010711431503, 0.34931132197380066, -0.08234019577503204, 0.5449925661087036, 0.1454576700925827, 0.20879031717777252, -0.31538867950439453, -0.5517770051956177, -0.3914582133293152, -0.025623342022299767, 0.0431242398917675, -0.06608942896127701, 0.0095165790989995, -0.04780261591076851, -0.29324743151664734, 0.22324873507022858, -0.19627299904823303, 0.4195476174354553, -0.15692138671875, 0.30343058705329895, -0.06872913241386414, -0.13068248331546783, 0.258112370967865, -0.49053964018821716, 0.28505170345306396, 0.25660014152526855, -0.30929940938949585, -0.23965729773044586, -0.21063148975372314, 0.1842350959777832, 0.12726327776908875, -0.05782324820756912, 0.3213192820549011, 0.21942563354969025, 0.3977992832660675, 0.15359999239444733, -0.14726883172988892, -0.18998807668685913, 0.06886418163776398, 0.1518048793077469, 0.19665943086147308, -0.004375692456960678, 0.2047644853591919, -0.12187962234020233, -0.06821015477180481, 0.26931604743003845, -0.1996452659368515, -0.15235000848770142, -0.14559179544448853, -0.291673481464386, 0.045495036989450455, 0.2507050931453705, -0.14038218557834625, -0.15111690759658813, -0.36879628896713257, -0.4158363938331604, 0.04748891294002533, 0.024779479950666428, -0.0049965279176831245, 0.23199139535427094, 0.02318153716623783, -0.037489451467990875, 0.14067687094211578, -0.036960117518901825, 0.24829241633415222, 0.4436713457107544, -0.18455804884433746, -0.1947115808725357, -0.39320436120033264, -0.3625234365463257, -0.03749064728617668, 0.4798482656478882, -0.06555500626564026, 0.1807824820280075, -0.5071492791175842, 0.08714412152767181, -0.08605147153139114, -0.032243210822343826, 0.3360256552696228, -0.14285831153392792, -0.18616636097431183, -0.2749576270580292, -0.11613098531961441, 0.25642141699790955, -0.2617165148258209, -0.08386251330375671, 0.008025787770748138, 0.4963255822658539, -0.030137842521071434, 0.8357369899749756, -0.015074222348630428, -0.0681772530078888, 0.15674500167369843, 0.0007381757022812963, 0.07558536529541016, -0.08771434426307678, -0.16252350807189941, -0.20673386752605438, 0.1489664912223816, 0.1556248515844345, 0.06867807358503342, -0.000042727828258648515, -0.5525867342948914, -0.13322873413562775, -0.012921568937599659, -0.18351662158966064, 0.010887032374739647, -0.02280241623520851, -0.109469935297966, 0.051018305122852325, 0.19185678660869598, 0.05481572821736336, -0.28313148021698, -0.001209424575790763, 0.06574874371290207, -0.10066088289022446, 0.19664467871189117, -0.2213578075170517, -0.2906760573387146, -0.046032197773456573, -0.2642359137535095, 0.2516547441482544, 0.025965122506022453, 0.28033646941185, 0.19200237095355988, -0.34082695841789246, 0.15514247119426727, -0.1447215974330902, 0.48384591937065125, -0.10062293708324432, 0.08286964893341064, -0.10475287586450577, 0.06911841034889221, -0.5193313360214233, 0.2765272557735443, -0.21144303679466248, 0.1505274772644043, -0.1627161204814911, -0.03912316635251045, -0.36008739471435547, -0.025384679436683655, -0.02760845236480236, -0.24112755060195923, 0.06010892614722252, 0.20690439641475677, 0.11427351832389832, -0.0605461485683918, -0.0047226762399077415, 0.24380218982696533, 0.039629679173231125, 0.038081105798482895, 0.3081309199333191, -0.1432706117630005, -0.24325110018253326, -0.2183046191930771, -0.2065226435661316, 0.0881410464644432, 0.16847828030586243, 0.16404129564762115, 0.0921349823474884, -0.1584332436323166, 0.17511354386806488, -0.16350652277469635, 0.43804121017456055, 0.06823774427175522, -0.0854450911283493, -0.14231447875499725, 0.23483040928840637, 0.23002442717552185, 0.42150264978408813, -0.09606825560331345, 0.44374147057533264, 0.15534570813179016, 0.07189428806304932, 0.3506891429424286, 0.08590015023946762, -0.19466347992420197, 0.015403901226818562, -0.2230285108089447, -0.17093923687934875, 0.5300084352493286, 0.08896411210298538, -0.14772656559944153, 0.6929609775543213, 0.4400462806224823, -0.0007977457717061043, 0.29304084181785583, 0.19678013026714325, 0.7061800956726074, 0.02822372317314148, -0.19213366508483887, -0.09616805613040924, -0.44476181268692017, 0.1535969376564026, 0.1644788384437561, 0.1062912568449974, -0.02077767811715603, -0.12133291363716125, 0.07876068353652954, -0.15589138865470886, 0.1528858244419098, 0.12513162195682526, -0.07122710347175598, -0.20194688439369202, 0.01489190198481083, -0.2063632756471634, -0.16967329382896423, 0.060907188802957535, 0.05543318763375282, -0.21640750765800476, -0.23503421247005463, 0.0976208746433258, 0.0076740095391869545, -0.05041377991437912, 0.15203867852687836, -0.026444751769304276, -0.09533294290304184, -0.06630697101354599, -0.06292285770177841, -0.17499656975269318, -0.5646550059318542, 0.11926668137311935, 0.16672341525554657, -0.8394319415092468, 0.1612471491098404, -0.38152873516082764, -0.19838614761829376, -0.035735346376895905, -0.10763430595397949, 0.34811127185821533, 0.34763991832733154, 0.1864442229270935, -0.09668692946434021, -0.21954543888568878, 0.276870459318161, -0.13279063999652863, 0.1074276864528656, 0.10945956408977509, -0.09691975265741348, -0.48301124572753906, 0.18631616234779358, 0.07530855387449265, 0.12309304624795914, 0.028537239879369736, -0.22309619188308716, 0.2141164094209671, -0.2685176432132721, -0.23454251885414124, 0.1447737067937851, 0.06374100595712662, 0.08551318198442459, 0.29427751898765564, 0.4144352078437805, -0.11643137037754059, -0.1541648656129837, 0.19212616980075836, 0.11660241335630417, 0.25639456510543823, 0.19030199944972992, 0.043581120669841766, -0.3825547695159912, -0.2904313802719116, -0.15886099636554718, 0.5080578923225403, -0.23794476687908173, 0.2266160100698471, -0.15025728940963745, -0.2905224859714508, 0.34298452734947205, 0.10003673285245895, -0.050075192004442215, 0.23245994746685028, -0.32126569747924805, -0.19295160472393036, -0.16414667665958405, 0.13302050530910492, -0.28786495327949524, -0.022943636402487755, -0.33993375301361084, -0.2548712491989136, -0.03834192454814911, 0.2575266659259796, -0.35526135563850403, 0.02248791791498661, 0.2111068069934845, 0.03215840086340904, -0.30809327960014343, 0.23130880296230316, 0.06812331080436707, 0.2882329225540161, 0.16108258068561554, -0.07303626090288162, -0.3458625078201294, -0.26877057552337646, 0.18495699763298035, 0.09337565302848816, -0.0625014528632164, -0.35984134674072266, 0.05192474275827408, -0.2375895380973816, -0.44546768069267273, 0.0015478593995794654, 0.022138040512800217, -0.0924249067902565, -0.20555254817008972, -0.4600048065185547, -0.11696739494800568, -0.5949610471725464, 0.03606247529387474, -0.09824936836957932, 0.05873553082346916, -0.07209132611751556, 0.23721611499786377, 0.2440606653690338, 0.24742741882801056, -0.237446591258049, 0.11144382506608963, 0.11286553740501404, 0.19166485965251923, -0.0342869870364666, 0.15563179552555084, -0.33905893564224243, -0.36858782172203064, -0.07104689627885818, 0.41161978244781494, 0.35069146752357483, 0.08266787230968475, -0.007246985565871, 0.1447691172361374, 0.23701968789100647, -0.4321819841861725, -0.25394558906555176, 0.04746001586318016, 0.054457854479551315, 0.4416564404964447, 0.09025364369153976, 0.08752337843179703, 0.1309596449136734, 0.1268070787191391, 0.1989433318376541, -0.0955682173371315, -0.2603248059749603, -0.1265779286623001, 0.1991988718509674, 0.40785035490989685, -0.26140883564949036, 0.39078962802886963, 0.24546745419502258, 0.23597204685211182, 0.4933338761329651, 0.07698237895965576, 0.6513720750808716, 0.4014391601085663, 0.36735519766807556, -0.3085564374923706, -0.14622025191783905, -0.1214243695139885, 0.1558392345905304, -0.3456903100013733, 0.16994743049144745, 0.32942742109298706, 0.08906259387731552, 0.38002869486808777, -0.06966625154018402, -0.04237767681479454, -0.18368025124073029, 0.12338247150182724, -0.22194504737854004, -0.11272222548723221, -0.3636731803417206, 0.013472278602421284, -0.06081119552254677, -0.07748013734817505, 0.23456156253814697, 0.25340208411216736, -0.18791915476322174, 0.4130476415157318, -0.3207256495952606, 0.34474050998687744, 0.011252346448600292, 0.28387418389320374, -0.005186663009226322, 0.2273581475019455, -0.11079782992601395, 0.06958682090044022, 0.0925850197672844, 0.1264035701751709, -0.029238371178507805, 0.051887426525354385, -0.007692574057728052, -0.19281934201717377, 0.03724132105708122, -0.43837085366249084, -0.3117055296897888, 0.3593307137489319, 0.3843206465244293, -0.3522305488586426, 0.17649798095226288, 0.13849854469299316, -0.2371571660041809, 0.21164967119693756, 0.04236329719424248, -0.15700529515743256, 0.09082744270563126, -0.34166419506073, 0.11451032757759094, 0.04088876023888588, -0.23011037707328796, -0.16077913343906403, 0.0608917661011219, -0.1879270225763321, 0.3111082911491394, -0.5680630207061768, 0.01236010529100895, -0.06908171623945236, 0.0955103263258934, -0.2574511766433716, 0.4111177325248718, 0.027340739965438843, 0.4188325107097626, 0.030996881425380707, -0.3023630678653717, -0.08500191569328308, -0.04370933026075363, -0.13211125135421753, 0.0856068953871727, 0.00022980771609582007, 0.34855785965919495, 0.38462191820144653, 0.4509739875793457, 0.386875718832016, -0.04667248949408531, 0.2629532516002655, 0.18978136777877808, -0.34197998046875, -0.024734731763601303, 0.15729673206806183, 0.2826598882675171, -0.10783923417329788, -0.2975102961063385, 0.023536615073680878, -0.27539265155792236, 0.20898549258708954, 0.004240125417709351, -0.0634121224284172, 0.25831642746925354, 0.3095329701900482, 0.252217173576355, 0.039555955678224564, 0.1956516057252884, -0.18308882415294647, 0.2871645390987396, -0.1316133439540863, -0.0971568152308464, -0.21566413342952728, 0.07429058104753494, 0.4711776077747345, 0.3647769093513489, 0.03664693608880043, 0.015760120004415512, 0.21614721417427063, -0.10264675319194794, -0.09164601564407349, 0.2691194713115692, 0.14891208708286285, 0.17412665486335754, -0.1291932910680771, 0.16246776282787323, -0.3536192774772644, 0.04278389737010002, 0.1374121457338333, -0.052189670503139496, -0.23450998961925507, -0.28051015734672546, 0.4326307773590088, -0.19070352613925934, -0.24320362508296967, -0.20355582237243652, 0.03452913090586662, 0.38753998279571533, 0.009606758132576942, -0.0007665400044061244, -0.08033840358257294, 0.08166083693504333, -0.2786995470523834, -0.06545472145080566, 0.250710666179657, 0.17084293067455292, 0.21037353575229645, -0.051294367760419846, 0.34963110089302063, 0.2321997731924057, 0.11995922774076462, -0.6211880445480347, -0.09720459580421448 ]
https://github.com/huggingface/datasets/issues/1949
Enable Fast Filtering using Arrow Dataset
Sure! I don't mind waiting. I'll check the refactor and try to understand what you're trying to do :)
Hi @lhoestq, As mentioned in Issue #1796, I would love to work on enabling fast filtering/mapping. Can you please share the expectations? It would be great if you could point me to the relevant methods/files involved. Or the docs or maybe an overview of `arrow_dataset.py`. I only ask this because I am having trouble getting started ;-; Any help would be appreciated. Thanks, Gunjan
19
Enable Fast Filtering using Arrow Dataset
[ -0.6722643375396729, -0.13568761944770813, -0.2701323628425598, -0.12929101288318634, 0.02693447843194008, -0.19892767071723938, -0.0010038750478997827, 0.13426153361797333, 0.17523790895938873, -0.022231344133615494, -0.29653772711753845, 0.590641975402832, -0.10258866846561432, 0.24933309853076935, -0.2876223027706146, 0.07075104862451553, -0.17131264507770538, 0.22432684898376465, -0.20967762172222137, -0.14475060999393463, 0.2587355971336365, -0.16064347326755524, -0.12668955326080322, -0.014128518290817738, 0.2375277578830719, -0.2132214456796646, 0.6711678504943848, -0.1269502341747284, -0.3265079855918884, -0.264868825674057, 0.03233509510755539, 0.2734835147857666, -0.2923096716403961, 0.031369950622320175, -0.00011529700714163482, 0.06788846105337143, 0.2706451117992401, 0.06705176085233688, -0.2190217524766922, 0.4081295430660248, -0.5399060845375061, -0.26561442017555237, 0.3335131108760834, -0.20262561738491058, -0.17919526994228363, -0.28330302238464355, -0.2610395550727844, -0.7032365798950195, 0.33270275592803955, 0.16472628712654114, 0.2319876253604889, 0.23976068198680878, -0.14855368435382843, -0.06191224977374077, 0.2392175793647766, 0.051243092864751816, -0.23652179539203644, -0.3142613172531128, 0.5774208903312683, 0.08905139565467834, -0.3014974892139435, 0.5011569857597351, 0.06644334644079208, 0.04305342212319374, 0.08278194069862366, -0.08149607479572296, -0.077032670378685, -0.00170943234115839, 0.29545626044273376, 0.3033408522605896, 0.31348156929016113, -0.06876406073570251, -0.20011533796787262, -0.13073931634426117, -0.22085382044315338, -0.17359328269958496, -0.18084155023097992, -0.1501246988773346, -0.1885583996772766, 0.13890494406223297, 0.06832913309335709, -0.23776590824127197, -0.160008043050766, 0.1407669633626938, 0.2321838140487671, 0.5398327112197876, -0.0757354125380516, -0.011611763387918472, 0.2273206263780594, -0.12688404321670532, 0.2889363169670105, -0.05807504430413246, -0.09826420247554779, 0.19323688745498657, -0.16114205121994019, -0.13929280638694763, -0.042170118540525436, 0.16315796971321106, 0.19485794007778168, 0.12249579280614853, 0.19665484130382538, 0.380650132894516, 0.15951594710350037, -0.050561096519231796, 0.04589998349547386, -0.09509202837944031, -0.02427555061876774, 0.26194828748703003, 0.19256360828876495, -0.14752142131328583, -0.14673282206058502, 0.08268823474645615, 0.10358170419931412, -0.26299169659614563, 0.08693433552980423, -0.08048074692487717, -0.33469441533088684, -0.18245765566825867, -0.3445492088794708, -0.11336752772331238, -0.004504985176026821, -0.23095175623893738, 0.2908879220485687, 0.2541428506374359, 0.07358106970787048, -0.04697967320680618, -0.23929676413536072, -0.11667931824922562, -0.13914518058300018, -0.10205578804016113, -0.0969548150897026, -0.020529592409729958, -0.005864339414983988, -0.2939281463623047, 0.11205270886421204, 0.13018527626991272, 0.02358453907072544, -0.13806937634944916, -0.14230188727378845, 0.093523308634758, 0.25920894742012024, -0.04491468518972397, 0.2734931409358978, 0.2405550181865692, -0.2227543592453003, 0.07091227173805237, 0.1227169930934906, -0.004096752032637596, -0.11086089164018631, 0.034888532012701035, -0.0768861398100853, -0.34680163860321045, -0.05749063193798065, 0.1821921318769455, 0.0591108500957489, -0.22065889835357666, -0.12197984009981155, 0.43659910559654236, -0.10398513078689575, -0.0979415774345398, 0.2289629578590393, 0.1281149983406067, -0.07847343385219574, 0.02457296848297119, 0.040168337523937225, 0.2484530806541443, -0.7239992022514343, -0.044980455189943314, -0.3747532367706299, -0.07105114310979843, 0.3496183454990387, 0.08771324902772903, -0.3941574692726135, -0.24085582792758942, 0.07226963341236115, 0.08869504183530807, 0.871864914894104, -0.05758025497198105, -0.4286932647228241, 0.17992018163204193, -0.063356414437294, -0.06843830645084381, 0.2937781512737274, 0.17111420631408691, 0.10304919630289078, -0.04105600342154503, -0.019082920625805855, 0.5279583930969238, -0.08630480617284775, -0.1365813910961151, -0.13090482354164124, -0.08306232839822769, 0.04783184453845024, 0.03147180378437042, 0.05051961913704872, 0.11314323544502258, 0.22680993378162384, -0.3357849419116974, 0.36444026231765747, 0.14176003634929657, 0.1342303454875946, -0.049947794526815414, 0.3268411457538605, -0.23584933578968048, 0.1326567381620407, 0.0659407377243042, -0.09744228422641754, -0.06257081776857376, 0.17739614844322205, -0.20211337506771088, -0.27142438292503357, 0.006688940338790417, -0.2290889024734497, 0.2237645536661148, -0.16477042436599731, 0.3195211887359619, 0.17043623328208923, -0.03912399336695671, -0.0029895498882979155, -0.030327532440423965, -0.12717676162719727, 0.22975283861160278, -0.18359246850013733, -0.11049392819404602, 0.10696593672037125, 0.09642133116722107, 0.26101362705230713, 0.04395369812846184, 0.13976553082466125, -0.20888665318489075, -0.11164869368076324, 0.02340165339410305, -0.16517740488052368, 0.02108302339911461, 0.1509348750114441, 0.07048014551401138, 0.2610824406147003, 0.3614192306995392, -0.09765969216823578, -0.39217084646224976, 0.13834351301193237, 0.1933494657278061, 0.24635161459445953, 0.19808092713356018, -0.24003371596336365, 0.6781232357025146, -0.30097734928131104, 0.11274868249893188, 0.1536760777235031, 0.02605283260345459, 0.3949274718761444, 0.14744041860103607, -0.14786094427108765, -0.3406691551208496, 0.1834164559841156, -0.16805048286914825, 0.30524900555610657, -0.017964979633688927, -0.2835662364959717, 0.4424179196357727, 0.15242350101470947, 0.3122333288192749, 0.06718654930591583, 0.054215289652347565, 0.017117956653237343, -0.03992847725749016, 0.20012971758842468, 0.37206387519836426, 0.0350433848798275, 0.4002551734447479, 0.05384168028831482, -0.3499951660633087, -0.013728123158216476, -0.11962010711431503, 0.34931132197380066, -0.08234019577503204, 0.5449925661087036, 0.1454576700925827, 0.20879031717777252, -0.31538867950439453, -0.5517770051956177, -0.3914582133293152, -0.025623342022299767, 0.0431242398917675, -0.06608942896127701, 0.0095165790989995, -0.04780261591076851, -0.29324743151664734, 0.22324873507022858, -0.19627299904823303, 0.4195476174354553, -0.15692138671875, 0.30343058705329895, -0.06872913241386414, -0.13068248331546783, 0.258112370967865, -0.49053964018821716, 0.28505170345306396, 0.25660014152526855, -0.30929940938949585, -0.23965729773044586, -0.21063148975372314, 0.1842350959777832, 0.12726327776908875, -0.05782324820756912, 0.3213192820549011, 0.21942563354969025, 0.3977992832660675, 0.15359999239444733, -0.14726883172988892, -0.18998807668685913, 0.06886418163776398, 0.1518048793077469, 0.19665943086147308, -0.004375692456960678, 0.2047644853591919, -0.12187962234020233, -0.06821015477180481, 0.26931604743003845, -0.1996452659368515, -0.15235000848770142, -0.14559179544448853, -0.291673481464386, 0.045495036989450455, 0.2507050931453705, -0.14038218557834625, -0.15111690759658813, -0.36879628896713257, -0.4158363938331604, 0.04748891294002533, 0.024779479950666428, -0.0049965279176831245, 0.23199139535427094, 0.02318153716623783, -0.037489451467990875, 0.14067687094211578, -0.036960117518901825, 0.24829241633415222, 0.4436713457107544, -0.18455804884433746, -0.1947115808725357, -0.39320436120033264, -0.3625234365463257, -0.03749064728617668, 0.4798482656478882, -0.06555500626564026, 0.1807824820280075, -0.5071492791175842, 0.08714412152767181, -0.08605147153139114, -0.032243210822343826, 0.3360256552696228, -0.14285831153392792, -0.18616636097431183, -0.2749576270580292, -0.11613098531961441, 0.25642141699790955, -0.2617165148258209, -0.08386251330375671, 0.008025787770748138, 0.4963255822658539, -0.030137842521071434, 0.8357369899749756, -0.015074222348630428, -0.0681772530078888, 0.15674500167369843, 0.0007381757022812963, 0.07558536529541016, -0.08771434426307678, -0.16252350807189941, -0.20673386752605438, 0.1489664912223816, 0.1556248515844345, 0.06867807358503342, -0.000042727828258648515, -0.5525867342948914, -0.13322873413562775, -0.012921568937599659, -0.18351662158966064, 0.010887032374739647, -0.02280241623520851, -0.109469935297966, 0.051018305122852325, 0.19185678660869598, 0.05481572821736336, -0.28313148021698, -0.001209424575790763, 0.06574874371290207, -0.10066088289022446, 0.19664467871189117, -0.2213578075170517, -0.2906760573387146, -0.046032197773456573, -0.2642359137535095, 0.2516547441482544, 0.025965122506022453, 0.28033646941185, 0.19200237095355988, -0.34082695841789246, 0.15514247119426727, -0.1447215974330902, 0.48384591937065125, -0.10062293708324432, 0.08286964893341064, -0.10475287586450577, 0.06911841034889221, -0.5193313360214233, 0.2765272557735443, -0.21144303679466248, 0.1505274772644043, -0.1627161204814911, -0.03912316635251045, -0.36008739471435547, -0.025384679436683655, -0.02760845236480236, -0.24112755060195923, 0.06010892614722252, 0.20690439641475677, 0.11427351832389832, -0.0605461485683918, -0.0047226762399077415, 0.24380218982696533, 0.039629679173231125, 0.038081105798482895, 0.3081309199333191, -0.1432706117630005, -0.24325110018253326, -0.2183046191930771, -0.2065226435661316, 0.0881410464644432, 0.16847828030586243, 0.16404129564762115, 0.0921349823474884, -0.1584332436323166, 0.17511354386806488, -0.16350652277469635, 0.43804121017456055, 0.06823774427175522, -0.0854450911283493, -0.14231447875499725, 0.23483040928840637, 0.23002442717552185, 0.42150264978408813, -0.09606825560331345, 0.44374147057533264, 0.15534570813179016, 0.07189428806304932, 0.3506891429424286, 0.08590015023946762, -0.19466347992420197, 0.015403901226818562, -0.2230285108089447, -0.17093923687934875, 0.5300084352493286, 0.08896411210298538, -0.14772656559944153, 0.6929609775543213, 0.4400462806224823, -0.0007977457717061043, 0.29304084181785583, 0.19678013026714325, 0.7061800956726074, 0.02822372317314148, -0.19213366508483887, -0.09616805613040924, -0.44476181268692017, 0.1535969376564026, 0.1644788384437561, 0.1062912568449974, -0.02077767811715603, -0.12133291363716125, 0.07876068353652954, -0.15589138865470886, 0.1528858244419098, 0.12513162195682526, -0.07122710347175598, -0.20194688439369202, 0.01489190198481083, -0.2063632756471634, -0.16967329382896423, 0.060907188802957535, 0.05543318763375282, -0.21640750765800476, -0.23503421247005463, 0.0976208746433258, 0.0076740095391869545, -0.05041377991437912, 0.15203867852687836, -0.026444751769304276, -0.09533294290304184, -0.06630697101354599, -0.06292285770177841, -0.17499656975269318, -0.5646550059318542, 0.11926668137311935, 0.16672341525554657, -0.8394319415092468, 0.1612471491098404, -0.38152873516082764, -0.19838614761829376, -0.035735346376895905, -0.10763430595397949, 0.34811127185821533, 0.34763991832733154, 0.1864442229270935, -0.09668692946434021, -0.21954543888568878, 0.276870459318161, -0.13279063999652863, 0.1074276864528656, 0.10945956408977509, -0.09691975265741348, -0.48301124572753906, 0.18631616234779358, 0.07530855387449265, 0.12309304624795914, 0.028537239879369736, -0.22309619188308716, 0.2141164094209671, -0.2685176432132721, -0.23454251885414124, 0.1447737067937851, 0.06374100595712662, 0.08551318198442459, 0.29427751898765564, 0.4144352078437805, -0.11643137037754059, -0.1541648656129837, 0.19212616980075836, 0.11660241335630417, 0.25639456510543823, 0.19030199944972992, 0.043581120669841766, -0.3825547695159912, -0.2904313802719116, -0.15886099636554718, 0.5080578923225403, -0.23794476687908173, 0.2266160100698471, -0.15025728940963745, -0.2905224859714508, 0.34298452734947205, 0.10003673285245895, -0.050075192004442215, 0.23245994746685028, -0.32126569747924805, -0.19295160472393036, -0.16414667665958405, 0.13302050530910492, -0.28786495327949524, -0.022943636402487755, -0.33993375301361084, -0.2548712491989136, -0.03834192454814911, 0.2575266659259796, -0.35526135563850403, 0.02248791791498661, 0.2111068069934845, 0.03215840086340904, -0.30809327960014343, 0.23130880296230316, 0.06812331080436707, 0.2882329225540161, 0.16108258068561554, -0.07303626090288162, -0.3458625078201294, -0.26877057552337646, 0.18495699763298035, 0.09337565302848816, -0.0625014528632164, -0.35984134674072266, 0.05192474275827408, -0.2375895380973816, -0.44546768069267273, 0.0015478593995794654, 0.022138040512800217, -0.0924249067902565, -0.20555254817008972, -0.4600048065185547, -0.11696739494800568, -0.5949610471725464, 0.03606247529387474, -0.09824936836957932, 0.05873553082346916, -0.07209132611751556, 0.23721611499786377, 0.2440606653690338, 0.24742741882801056, -0.237446591258049, 0.11144382506608963, 0.11286553740501404, 0.19166485965251923, -0.0342869870364666, 0.15563179552555084, -0.33905893564224243, -0.36858782172203064, -0.07104689627885818, 0.41161978244781494, 0.35069146752357483, 0.08266787230968475, -0.007246985565871, 0.1447691172361374, 0.23701968789100647, -0.4321819841861725, -0.25394558906555176, 0.04746001586318016, 0.054457854479551315, 0.4416564404964447, 0.09025364369153976, 0.08752337843179703, 0.1309596449136734, 0.1268070787191391, 0.1989433318376541, -0.0955682173371315, -0.2603248059749603, -0.1265779286623001, 0.1991988718509674, 0.40785035490989685, -0.26140883564949036, 0.39078962802886963, 0.24546745419502258, 0.23597204685211182, 0.4933338761329651, 0.07698237895965576, 0.6513720750808716, 0.4014391601085663, 0.36735519766807556, -0.3085564374923706, -0.14622025191783905, -0.1214243695139885, 0.1558392345905304, -0.3456903100013733, 0.16994743049144745, 0.32942742109298706, 0.08906259387731552, 0.38002869486808777, -0.06966625154018402, -0.04237767681479454, -0.18368025124073029, 0.12338247150182724, -0.22194504737854004, -0.11272222548723221, -0.3636731803417206, 0.013472278602421284, -0.06081119552254677, -0.07748013734817505, 0.23456156253814697, 0.25340208411216736, -0.18791915476322174, 0.4130476415157318, -0.3207256495952606, 0.34474050998687744, 0.011252346448600292, 0.28387418389320374, -0.005186663009226322, 0.2273581475019455, -0.11079782992601395, 0.06958682090044022, 0.0925850197672844, 0.1264035701751709, -0.029238371178507805, 0.051887426525354385, -0.007692574057728052, -0.19281934201717377, 0.03724132105708122, -0.43837085366249084, -0.3117055296897888, 0.3593307137489319, 0.3843206465244293, -0.3522305488586426, 0.17649798095226288, 0.13849854469299316, -0.2371571660041809, 0.21164967119693756, 0.04236329719424248, -0.15700529515743256, 0.09082744270563126, -0.34166419506073, 0.11451032757759094, 0.04088876023888588, -0.23011037707328796, -0.16077913343906403, 0.0608917661011219, -0.1879270225763321, 0.3111082911491394, -0.5680630207061768, 0.01236010529100895, -0.06908171623945236, 0.0955103263258934, -0.2574511766433716, 0.4111177325248718, 0.027340739965438843, 0.4188325107097626, 0.030996881425380707, -0.3023630678653717, -0.08500191569328308, -0.04370933026075363, -0.13211125135421753, 0.0856068953871727, 0.00022980771609582007, 0.34855785965919495, 0.38462191820144653, 0.4509739875793457, 0.386875718832016, -0.04667248949408531, 0.2629532516002655, 0.18978136777877808, -0.34197998046875, -0.024734731763601303, 0.15729673206806183, 0.2826598882675171, -0.10783923417329788, -0.2975102961063385, 0.023536615073680878, -0.27539265155792236, 0.20898549258708954, 0.004240125417709351, -0.0634121224284172, 0.25831642746925354, 0.3095329701900482, 0.252217173576355, 0.039555955678224564, 0.1956516057252884, -0.18308882415294647, 0.2871645390987396, -0.1316133439540863, -0.0971568152308464, -0.21566413342952728, 0.07429058104753494, 0.4711776077747345, 0.3647769093513489, 0.03664693608880043, 0.015760120004415512, 0.21614721417427063, -0.10264675319194794, -0.09164601564407349, 0.2691194713115692, 0.14891208708286285, 0.17412665486335754, -0.1291932910680771, 0.16246776282787323, -0.3536192774772644, 0.04278389737010002, 0.1374121457338333, -0.052189670503139496, -0.23450998961925507, -0.28051015734672546, 0.4326307773590088, -0.19070352613925934, -0.24320362508296967, -0.20355582237243652, 0.03452913090586662, 0.38753998279571533, 0.009606758132576942, -0.0007665400044061244, -0.08033840358257294, 0.08166083693504333, -0.2786995470523834, -0.06545472145080566, 0.250710666179657, 0.17084293067455292, 0.21037353575229645, -0.051294367760419846, 0.34963110089302063, 0.2321997731924057, 0.11995922774076462, -0.6211880445480347, -0.09720459580421448 ]
https://github.com/huggingface/datasets/issues/1948
dataset loading logger level
These warnings are showed when there's a call to `.map` to say to the user that a dataset is reloaded from the cache instead of being recomputed. They are warnings since we want to make sure the users know that it's not recomputed.
on master I get this with `--dataset_name wmt16 --dataset_config ro-en`: ``` WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-2e01bead8cf42e26.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-ac3bebaf4f91f776.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-810c3e61259d73a9.arrow ``` why are those WARNINGs? Should be INFO, no? warnings should only be used when a user needs to pay attention to something, this is just informative - I'd even say it should be DEBUG, but definitely not WARNING. Thank you.
43
dataset loading logger level
[ -0.5710362792015076, -0.22678527235984802, -0.1709415316581726, 0.3303821086883545, 0.17111368477344513, 0.06736862659454346, 0.5659655928611755, -0.1179983913898468, 0.49279528856277466, -0.09417404979467392, 0.031093424186110497, 0.013129595667123795, -0.24947403371334076, 0.4830567240715027, -0.09546808898448944, 0.10681183636188507, 0.08181857317686081, 0.12011218070983887, -0.460593581199646, -0.18189480900764465, -0.13930237293243408, -0.08760147541761398, -0.13876810669898987, -0.1291678100824356, -0.5351738929748535, -0.17644760012626648, 0.1845659762620926, 0.29660564661026, -0.26018187403678894, -0.5112336874008179, 0.045216385275125504, 0.06656964868307114, 0.4741315245628357, 0.360034316778183, -0.00011206003546249121, -0.009068813174962997, 0.26932066679000854, 0.05191831663250923, -0.5753480195999146, 0.2509801685810089, -0.5173022150993347, -0.267160028219223, 0.30549460649490356, -0.12198583036661148, 0.10777582973241806, -0.5154058933258057, 0.2804920971393585, -0.19067206978797913, 0.46934041380882263, -0.08476804196834564, 0.223621666431427, -0.17622129619121552, -0.3117254078388214, -0.12230831384658813, -0.08249111473560333, 0.18179480731487274, 0.08193636685609818, 0.5134300589561462, 0.41936808824539185, -0.015895962715148926, -0.5816338062286377, -0.063713937997818, 0.17581531405448914, 0.012310652993619442, 0.31650876998901367, -0.044354699552059174, 0.44115084409713745, 0.09437364339828491, 0.26126861572265625, 0.2497021108865738, 0.7590944170951843, -0.07765225321054459, -0.14875313639640808, -0.2261624038219452, -0.003019520081579685, -0.4835507273674011, 0.323538213968277, 0.024060873314738274, -0.33238255977630615, 0.08901014178991318, 0.32266005873680115, -0.21502964198589325, -0.25350460410118103, -0.11118680983781815, -0.30224159359931946, 0.2684139907360077, -0.2048722207546234, -0.09992426633834839, 0.021296046674251556, -0.038856130093336105, 0.34208807349205017, -0.06475815176963806, 0.05109800398349762, 0.06596479564905167, -0.46257284283638, -0.01010226272046566, 0.03953554853796959, 0.32412758469581604, -0.18613050878047943, 0.2193925529718399, -0.12143146246671677, 0.18846993148326874, 0.1668311208486557, 0.06567815691232681, 0.6823034882545471, 0.03349872678518295, 0.3392876088619232, 0.14434869587421417, 0.15888220071792603, -0.2990451753139496, -0.07614801824092865, 0.014932684600353241, -0.3415622115135193, -0.22543743252754211, 0.6365724802017212, 0.02230641059577465, -0.09937302023172379, -0.2171088010072708, 0.08009228855371475, -0.028278373181819916, 0.23148439824581146, -0.2091027945280075, -0.09745730459690094, 0.46946871280670166, 0.18897734582424164, -0.2738291323184967, 0.02106485143303871, 0.011241587810218334, 0.005698161665350199, -0.0384691022336483, -0.22735139727592468, -0.26121971011161804, -0.20146805047988892, -0.1018688902258873, 0.10499340295791626, -0.13761261105537415, 0.2811278700828552, 0.18913120031356812, -0.3388740122318268, -0.09562180936336517, 0.5024253726005554, -0.14643622934818268, -0.0783437117934227, 0.1089399978518486, -0.04214818775653839, -0.06402157992124557, -0.09069487452507019, -0.1449347883462906, -0.15483781695365906, 0.265645295381546, 0.04808741807937622, -0.1186116635799408, -0.13830196857452393, 0.23193474113941193, -0.10210420191287994, -0.15613730251789093, -0.4589063227176666, 0.16849423944950104, 0.010672476142644882, 0.07802026718854904, 0.004523966461420059, -0.14478939771652222, 0.12394918501377106, -0.08515819907188416, -0.27159324288368225, 0.4130572974681854, -0.3962259888648987, -0.44688525795936584, -0.432104229927063, -0.41146811842918396, 0.24273961782455444, 0.034819096326828, -0.11731094121932983, 0.2663813531398773, -0.2572166323661804, 0.01845548488199711, 0.5129498839378357, -0.1243736669421196, 0.13963884115219116, 0.4420614242553711, -0.2702764868736267, -0.0808066725730896, 0.31743761897087097, 0.3539780080318451, 0.09906916320323944, -0.2639194428920746, 0.16566656529903412, 0.19430705904960632, 0.17610615491867065, -0.10340388119220734, -0.04408387467265129, 0.10224628448486328, 0.19645078480243683, 0.33265221118927, 0.03629719465970993, -0.0011103504803031683, 0.09258854389190674, -0.031368955969810486, 0.24768474698066711, -0.06656195223331451, -0.029242023825645447, 0.27524158358573914, -0.064655601978302, -0.05322170630097389, -0.04461459070444107, -0.09803949296474457, -0.3728833794593811, -0.05838506668806076, -0.1953139454126358, 0.11130081862211227, 0.2759040892124176, -0.031373631209135056, -0.14088557660579681, -0.003697225358337164, -0.20386691391468048, 0.23357582092285156, 0.1202821210026741, 0.2781201899051666, -0.6812921166419983, -0.06309130787849426, -0.3414549231529236, 0.1853891760110855, -0.3295518755912781, 0.1620083600282669, -0.20652084052562714, 0.0020491182804107666, 0.2106291502714157, 0.08053521811962128, 0.18616610765457153, 0.027488477528095245, 0.017443092539906502, -0.12825386226177216, 0.13715913891792297, 0.0809297040104866, 0.26619991660118103, 0.5331134796142578, 0.1878400444984436, 0.3013123869895935, -0.02418656460940838, 0.22144174575805664, 0.2719064950942993, -0.1002006009221077, -0.019597699865698814, -0.11523552238941193, -0.012455436401069164, 0.3883741796016693, 0.2773917019367218, -0.041285835206508636, -0.05529729276895523, -0.17901471257209778, 0.18274982273578644, -0.013139651156961918, 0.11348467320203781, -0.2528981566429138, 0.360399067401886, 0.016297856345772743, 0.32956957817077637, 0.3078851103782654, -0.1373496800661087, 0.03786839172244072, 0.27965840697288513, -0.197469562292099, 0.32581189274787903, -0.04788762331008911, -0.3686225116252899, -0.2580445110797882, 0.3337206244468689, 0.0006098984158597887, 0.17157746851444244, 0.2771221101284027, 0.3132883608341217, -0.006952719297260046, 0.18748731911182404, -0.07764080911874771, 0.32040533423423767, -0.21768859028816223, 0.11224710196256638, 0.385976105928421, -0.2922498285770416, -0.19118358194828033, -0.3623853325843811, -0.014458747580647469, -0.10621079057455063, 0.09501156955957413, -0.2740161120891571, -0.23934948444366455, -0.2063247561454773, -0.41360780596733093, -0.3863835334777832, 0.17954203486442566, -0.15350976586341858, -0.2808585464954376, 0.060236893594264984, -0.006196797825396061, -0.0016915538581088185, 0.007010201457887888, -0.16700220108032227, 0.37760618329048157, 0.15954476594924927, 0.2792351245880127, -0.16208235919475555, -0.2947850227355957, -0.023254619911313057, 0.17097921669483185, 0.17685560882091522, 0.12213606387376785, 0.2125571370124817, -0.11446622759103775, 0.03965418040752411, 0.21441282331943512, -0.34341907501220703, 0.2781924903392792, 0.09978321939706802, 0.15568968653678894, 0.12285715341567993, 0.1936846524477005, 0.15185754001140594, 0.17171089351177216, -0.12367777526378632, 0.14349550008773804, -0.21329714357852936, -0.14465633034706116, -0.11499405652284622, 0.13292552530765533, 0.13973653316497803, -0.21180421113967896, -0.1916455626487732, -0.12172331660985947, -0.08772271871566772, 0.20115569233894348, 0.11639575660228729, 0.06850399076938629, -0.2387060821056366, 0.01057103369385004, -0.0803084447979927, 0.36157190799713135, -0.15618444979190826, -0.45547404885292053, -0.0289631225168705, -0.3322910666465759, -0.1032540500164032, -0.1468319445848465, 0.008754780516028404, -0.07435449957847595, -0.032412074506282806, -0.48869428038597107, -0.09882032126188278, -0.08773486316204071, -0.16846394538879395, 0.035995516926050186, -0.06740298122167587, 0.007284156046807766, 0.2441398650407791, -0.21105267107486725, -0.05370088294148445, -0.19702745974063873, 0.11170808225870132, -0.16710883378982544, 0.14644336700439453, -0.11963769793510437, 0.3578414022922516, -0.19193658232688904, 0.4393883943557739, -0.030810682103037834, -0.2351454794406891, -0.14296959340572357, -0.06777361035346985, 0.36199668049812317, -0.21951766312122345, -0.09674574434757233, 0.014449249021708965, 0.1331198811531067, -0.1860724687576294, 0.03542541339993477, 0.06047620251774788, -0.23550920188426971, -0.08303575962781906, -0.19210441410541534, -0.21761736273765564, -0.25229987502098083, 0.03890906274318695, 0.04863639548420906, 0.027874480932950974, -0.07807596772909164, 0.24044792354106903, -0.30279645323753357, -0.06676831841468811, -0.020056473091244698, 0.3312399685382843, 0.13261878490447998, -0.13296093046665192, -0.4730229377746582, 0.07415377348661423, -0.3892539143562317, 0.22536972165107727, -0.18956640362739563, -0.015414652414619923, -0.13970468938350677, -0.22707007825374603, 0.22422097623348236, 0.07704824209213257, 0.3149817883968353, -0.06013184413313866, 0.6949784159660339, -0.1805131435394287, -0.1156444102525711, -0.15557685494422913, 0.2968992292881012, -0.32414358854293823, 0.6504986882209778, 0.19908234477043152, 0.2666238248348236, -0.2269904911518097, -0.2913488447666168, 0.006025685928761959, -0.11130201071500778, -0.3343282639980316, -0.39169901609420776, -0.25385844707489014, 0.18949489295482635, 0.2051984965801239, -0.21835435926914215, -0.11235371232032776, 0.01613258570432663, -0.009222372435033321, -0.17264236509799957, -0.16699419915676117, -0.11905739456415176, 0.23089298605918884, 0.0010929589625447989, -0.08892142027616501, -0.059405144304037094, 0.09809443354606628, 0.0682595893740654, 0.7409496307373047, 0.23401108384132385, 0.6017733812332153, -0.12478221207857132, -0.19232270121574402, 0.33647260069847107, -0.1382383406162262, 0.16654792428016663, 0.21791169047355652, -0.08653775602579117, 0.04288319870829582, 0.25271227955818176, 0.1612343192100525, -0.38567081093788147, 0.1571153998374939, 0.2365347146987915, 0.3201121985912323, -0.5767799615859985, -0.14332428574562073, 0.5086935758590698, 0.015084510669112206, -0.3148716390132904, 0.3986354470252991, 0.03588758409023285, -0.2643142342567444, 0.1909695267677307, 0.1441921442747116, 0.8768264651298523, -0.1367381066083908, 0.1674260050058365, 0.041437506675720215, -0.21666283905506134, -0.09949750453233719, -0.021467601880431175, -0.010245340876281261, -0.37640076875686646, -0.09925691783428192, -0.12517240643501282, -0.21275383234024048, 0.19588592648506165, 0.3785432279109955, 0.12946440279483795, -0.1870340257883072, -0.22315528988838196, 0.02124534733593464, -0.10062967985868454, 0.48852217197418213, -0.15415909886360168, 0.22387899458408356, -0.37209731340408325, 0.11135559529066086, 0.18090395629405975, -0.05144485831260681, -0.3525238037109375, 0.11744169145822525, 0.44386330246925354, -0.006108171306550503, -0.09164271503686905, -0.33084529638290405, 0.2364431917667389, 0.03771239146590233, -0.04688937962055206, -0.22831638157367706, -0.25518280267715454, 0.20345571637153625, -0.19639652967453003, -0.10193892568349838, 0.10307633131742477, 0.20185953378677368, -0.33454424142837524, 0.10415174067020416, -0.059283096343278885, 0.0360165610909462, 0.20127436518669128, -0.23678451776504517, -0.14642542600631714, 0.21467462182044983, -0.07153081148862839, -0.5006355047225952, 0.07211872935295105, 0.045120690017938614, -0.35453560948371887, -0.43495386838912964, 0.2555713355541229, 0.06556511670351028, 0.08223524689674377, 0.11966776847839355, 0.13188162446022034, 0.14539004862308502, 0.24451947212219238, 0.26861393451690674, 0.16661709547042847, -0.24183836579322815, -0.2195737510919571, 0.6619013547897339, 0.18030649423599243, 0.15217676758766174, 0.3287948668003082, 0.10810563713312149, -0.09405741840600967, -0.4026694595813751, 0.16561473906040192, 0.3973868787288666, 0.02773633785545826, 0.21359050273895264, 0.10610342770814896, -0.07352858036756516, 0.2427390068769455, 0.10970199853181839, 0.2568984627723694, -0.21989578008651733, -0.06533285975456238, -0.38505440950393677, -0.21417172253131866, 0.18595780432224274, -0.1574256718158722, 0.25660109519958496, -0.09421651810407639, -0.11451951414346695, -0.0727081149816513, 0.2392483800649643, -0.39438366889953613, -0.1690690815448761, 0.10838057845830917, -0.03611943498253822, 0.1662895530462265, 0.16543419659137726, 0.14097364246845245, 0.20339298248291016, 0.2827632427215576, -0.34482309222221375, -0.055689405649900436, -0.22912965714931488, 0.1465030461549759, 0.14123117923736572, -0.16885995864868164, 0.009050457738339901, -0.13696464896202087, -0.31026482582092285, -0.2188807725906372, 0.0725114643573761, 0.34602057933807373, 0.06931882351636887, -0.047011520713567734, 0.22976994514465332, 0.06265532970428467, 0.15523214638233185, -0.1936204880475998, 0.07261258363723755, 0.22305229306221008, -0.13076455891132355, -0.15724638104438782, 0.04196411371231079, -0.019496213644742966, -0.06987915188074112, 0.32440540194511414, 0.25411298871040344, 0.23635001480579376, -0.16746142506599426, 0.27880215644836426, -0.1220320612192154, -0.08334049582481384, 0.24064618349075317, 0.2304198443889618, 0.2785644233226776, -0.2249424010515213, -0.08982448279857635, -0.25595128536224365, 0.2387360781431198, -0.21368516981601715, -0.017206909134984016, -0.1380697637796402, 0.0025729897897690535, 0.02953658066689968, 0.2047785073518753, -0.0915110781788826, -0.14929693937301636, 0.3693176209926605, -0.007042608689516783, 0.039597850292921066, 0.039686381816864014, 0.18686378002166748, 0.20219360291957855, -0.28882989287376404, -0.1119227409362793, 0.6428165435791016, 0.6408287882804871, 0.253515362739563, 0.44126665592193604, 0.26943519711494446, 0.17449788749217987, -0.04499835520982742, 0.26345202326774597, -0.08403562754392624, -0.5655350685119629, 0.2881830632686615, 0.8604243993759155, -0.28275489807128906, -0.17474980652332306, 0.15267720818519592, 0.29428330063819885, 0.10830079019069672, -0.05020173639059067, -0.4168488383293152, -0.17341500520706177, -0.23656930029392242, -0.13039511442184448, -0.21054375171661377, -0.27834686636924744, 0.00838136300444603, -0.07137177884578705, -0.16050884127616882, -0.33196350932121277, -0.20460551977157593, -0.03173019737005234, 0.042396143078804016, -0.13823221623897552, 0.3571154773235321, 0.2023465633392334, -0.0892745777964592, -0.07558240741491318, 0.2784966230392456, 0.13815250992774963, 0.2516103684902191, 0.6769722700119019, 0.24401816725730896, 0.25638025999069214, 0.08562184870243073, -0.12150096893310547, 0.021897410973906517, 0.05985233932733536, -0.20374061167240143, -0.27535805106163025, 0.3373664617538452, -0.02122105285525322, 0.08806714415550232, 0.42048972845077515, 0.16685165464878082, -0.14847035706043243, 0.25482043623924255, 0.15859635174274445, 0.024627583101391792, -0.12438865751028061, 0.3744620978832245, 0.08152082562446594, -0.13966195285320282, -0.10367713868618011, -0.23168618977069855, -0.42621201276779175, -0.4791351854801178, 0.5124905705451965, 0.09826864302158356, -0.02191351167857647, -0.018853316083550453, 0.11830326169729233, -0.19235120713710785, 0.356894850730896, 0.3311571776866913, -0.010110469534993172, 0.18515124917030334, -0.1275094896554947, -0.4346546232700348, 0.20719236135482788, 0.25019365549087524, -0.21991722285747528, -0.17706167697906494, -0.17794078588485718, 0.28324005007743835, 0.1756814867258072, 0.25215885043144226, -0.14121633768081665, 0.23801365494728088, -0.08646456897258759, -0.2531774044036865, -0.157217875123024, 0.2746284008026123, 0.18540515005588531, -0.29336655139923096, -0.23944899439811707, 0.21925289928913116, -0.4275979995727539, 0.09658470749855042, -0.01753893308341503, -0.17168869078159332, -0.11336107552051544, 0.1790868192911148, 0.5761045217514038, -0.019111307337880135, 0.30973929166793823, -0.009624728932976723, -0.11084646731615067, -0.1207648366689682, -0.18318842351436615, -0.18562474846839905, 0.05380485579371452, 0.22188149392604828, 0.15734292566776276, -0.22151029109954834, 0.2793307900428772, 0.17226272821426392, -0.021472729742527008, -0.21418029069900513, -0.21958380937576294, -0.17389144003391266, 0.032785214483737946, -0.23595282435417175, -0.23193997144699097, 0.041947584599256516, 0.2532181143760681, 0.2655842900276184, -0.14873769879341125, -0.015625184401869774, -0.046538371592760086, 0.2515624761581421, -0.34122347831726074, 0.08177617937326431, -0.265837162733078, 0.31004130840301514, 0.257419228553772, -0.06840554624795914, -0.3025915026664734, 0.2909716069698334, 0.4464830458164215, -0.11434130370616913, 0.19248013198375702, 0.40550869703292847, -0.30428022146224976, 0.14241237938404083, -0.1077011302113533, 0.08174052834510803, 0.05935223400592804, -0.12544313073158264, -0.5662623643875122, -0.1778532862663269 ]
https://github.com/huggingface/datasets/issues/1948
dataset loading logger level
Thank you for explaining the intention, @lhoestq 1. Could it be then made more human-friendly? Currently the hex gibberish tells me nothing of what's really going on. e.g. the following is instructive, IMHO: ``` WARNING: wmt16/ro-en/train dataset was loaded from cache instead of being recomputed WARNING: wmt16/ro-en/validation dataset was loaded from cache instead of being recomputed WARNING: wmt16/ro-en/test dataset was loaded from cache instead of being recomputed ``` note that it removes the not so useful hex info and tells the user instead which split it's referring to - but probably no harm in keeping the path if it helps the debug. But the key is that now the warning is telling me what it is it's warning me about. ``` Warning:Loading cache path ``` on the other hand isn't telling what it is warning about. And I still suggest this is INFO level, otherwise you need to turn all 'using cache' statements to WARNING to be consistent. The user is most likely well aware the cache is used for models, etc. So this feels very similar. 2. Should there be a way for a user to void warranty by having a flag - `I know I'm expecting the cached version to load if it's available - please do not warn me about it=True` To explain the need: Warnings are a problem, they constantly take attention away because they could be the harbinger of a problem. Therefore I prefer not to have any warnings in the log, and if I get any I usually try to deal with those so that my log is clean. It's less of an issue for somebody doing long runs. It's a huge issue for someone who does a new run every few minutes and on the lookout for any potential problems which is what I have been doing a lot of integrating DeepSpeed and other things. And since there are already problems to deal with during the integration it's nice to have a clean log to start with. I hope my need is not unreasonable and I was able to explain it adequately. Thank you.
on master I get this with `--dataset_name wmt16 --dataset_config ro-en`: ``` WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-2e01bead8cf42e26.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-ac3bebaf4f91f776.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-810c3e61259d73a9.arrow ``` why are those WARNINGs? Should be INFO, no? warnings should only be used when a user needs to pay attention to something, this is just informative - I'd even say it should be DEBUG, but definitely not WARNING. Thank you.
351
dataset loading logger level
[ -0.5710362792015076, -0.22678527235984802, -0.1709415316581726, 0.3303821086883545, 0.17111368477344513, 0.06736862659454346, 0.5659655928611755, -0.1179983913898468, 0.49279528856277466, -0.09417404979467392, 0.031093424186110497, 0.013129595667123795, -0.24947403371334076, 0.4830567240715027, -0.09546808898448944, 0.10681183636188507, 0.08181857317686081, 0.12011218070983887, -0.460593581199646, -0.18189480900764465, -0.13930237293243408, -0.08760147541761398, -0.13876810669898987, -0.1291678100824356, -0.5351738929748535, -0.17644760012626648, 0.1845659762620926, 0.29660564661026, -0.26018187403678894, -0.5112336874008179, 0.045216385275125504, 0.06656964868307114, 0.4741315245628357, 0.360034316778183, -0.00011206003546249121, -0.009068813174962997, 0.26932066679000854, 0.05191831663250923, -0.5753480195999146, 0.2509801685810089, -0.5173022150993347, -0.267160028219223, 0.30549460649490356, -0.12198583036661148, 0.10777582973241806, -0.5154058933258057, 0.2804920971393585, -0.19067206978797913, 0.46934041380882263, -0.08476804196834564, 0.223621666431427, -0.17622129619121552, -0.3117254078388214, -0.12230831384658813, -0.08249111473560333, 0.18179480731487274, 0.08193636685609818, 0.5134300589561462, 0.41936808824539185, -0.015895962715148926, -0.5816338062286377, -0.063713937997818, 0.17581531405448914, 0.012310652993619442, 0.31650876998901367, -0.044354699552059174, 0.44115084409713745, 0.09437364339828491, 0.26126861572265625, 0.2497021108865738, 0.7590944170951843, -0.07765225321054459, -0.14875313639640808, -0.2261624038219452, -0.003019520081579685, -0.4835507273674011, 0.323538213968277, 0.024060873314738274, -0.33238255977630615, 0.08901014178991318, 0.32266005873680115, -0.21502964198589325, -0.25350460410118103, -0.11118680983781815, -0.30224159359931946, 0.2684139907360077, -0.2048722207546234, -0.09992426633834839, 0.021296046674251556, -0.038856130093336105, 0.34208807349205017, -0.06475815176963806, 0.05109800398349762, 0.06596479564905167, -0.46257284283638, -0.01010226272046566, 0.03953554853796959, 0.32412758469581604, -0.18613050878047943, 0.2193925529718399, -0.12143146246671677, 0.18846993148326874, 0.1668311208486557, 0.06567815691232681, 0.6823034882545471, 0.03349872678518295, 0.3392876088619232, 0.14434869587421417, 0.15888220071792603, -0.2990451753139496, -0.07614801824092865, 0.014932684600353241, -0.3415622115135193, -0.22543743252754211, 0.6365724802017212, 0.02230641059577465, -0.09937302023172379, -0.2171088010072708, 0.08009228855371475, -0.028278373181819916, 0.23148439824581146, -0.2091027945280075, -0.09745730459690094, 0.46946871280670166, 0.18897734582424164, -0.2738291323184967, 0.02106485143303871, 0.011241587810218334, 0.005698161665350199, -0.0384691022336483, -0.22735139727592468, -0.26121971011161804, -0.20146805047988892, -0.1018688902258873, 0.10499340295791626, -0.13761261105537415, 0.2811278700828552, 0.18913120031356812, -0.3388740122318268, -0.09562180936336517, 0.5024253726005554, -0.14643622934818268, -0.0783437117934227, 0.1089399978518486, -0.04214818775653839, -0.06402157992124557, -0.09069487452507019, -0.1449347883462906, -0.15483781695365906, 0.265645295381546, 0.04808741807937622, -0.1186116635799408, -0.13830196857452393, 0.23193474113941193, -0.10210420191287994, -0.15613730251789093, -0.4589063227176666, 0.16849423944950104, 0.010672476142644882, 0.07802026718854904, 0.004523966461420059, -0.14478939771652222, 0.12394918501377106, -0.08515819907188416, -0.27159324288368225, 0.4130572974681854, -0.3962259888648987, -0.44688525795936584, -0.432104229927063, -0.41146811842918396, 0.24273961782455444, 0.034819096326828, -0.11731094121932983, 0.2663813531398773, -0.2572166323661804, 0.01845548488199711, 0.5129498839378357, -0.1243736669421196, 0.13963884115219116, 0.4420614242553711, -0.2702764868736267, -0.0808066725730896, 0.31743761897087097, 0.3539780080318451, 0.09906916320323944, -0.2639194428920746, 0.16566656529903412, 0.19430705904960632, 0.17610615491867065, -0.10340388119220734, -0.04408387467265129, 0.10224628448486328, 0.19645078480243683, 0.33265221118927, 0.03629719465970993, -0.0011103504803031683, 0.09258854389190674, -0.031368955969810486, 0.24768474698066711, -0.06656195223331451, -0.029242023825645447, 0.27524158358573914, -0.064655601978302, -0.05322170630097389, -0.04461459070444107, -0.09803949296474457, -0.3728833794593811, -0.05838506668806076, -0.1953139454126358, 0.11130081862211227, 0.2759040892124176, -0.031373631209135056, -0.14088557660579681, -0.003697225358337164, -0.20386691391468048, 0.23357582092285156, 0.1202821210026741, 0.2781201899051666, -0.6812921166419983, -0.06309130787849426, -0.3414549231529236, 0.1853891760110855, -0.3295518755912781, 0.1620083600282669, -0.20652084052562714, 0.0020491182804107666, 0.2106291502714157, 0.08053521811962128, 0.18616610765457153, 0.027488477528095245, 0.017443092539906502, -0.12825386226177216, 0.13715913891792297, 0.0809297040104866, 0.26619991660118103, 0.5331134796142578, 0.1878400444984436, 0.3013123869895935, -0.02418656460940838, 0.22144174575805664, 0.2719064950942993, -0.1002006009221077, -0.019597699865698814, -0.11523552238941193, -0.012455436401069164, 0.3883741796016693, 0.2773917019367218, -0.041285835206508636, -0.05529729276895523, -0.17901471257209778, 0.18274982273578644, -0.013139651156961918, 0.11348467320203781, -0.2528981566429138, 0.360399067401886, 0.016297856345772743, 0.32956957817077637, 0.3078851103782654, -0.1373496800661087, 0.03786839172244072, 0.27965840697288513, -0.197469562292099, 0.32581189274787903, -0.04788762331008911, -0.3686225116252899, -0.2580445110797882, 0.3337206244468689, 0.0006098984158597887, 0.17157746851444244, 0.2771221101284027, 0.3132883608341217, -0.006952719297260046, 0.18748731911182404, -0.07764080911874771, 0.32040533423423767, -0.21768859028816223, 0.11224710196256638, 0.385976105928421, -0.2922498285770416, -0.19118358194828033, -0.3623853325843811, -0.014458747580647469, -0.10621079057455063, 0.09501156955957413, -0.2740161120891571, -0.23934948444366455, -0.2063247561454773, -0.41360780596733093, -0.3863835334777832, 0.17954203486442566, -0.15350976586341858, -0.2808585464954376, 0.060236893594264984, -0.006196797825396061, -0.0016915538581088185, 0.007010201457887888, -0.16700220108032227, 0.37760618329048157, 0.15954476594924927, 0.2792351245880127, -0.16208235919475555, -0.2947850227355957, -0.023254619911313057, 0.17097921669483185, 0.17685560882091522, 0.12213606387376785, 0.2125571370124817, -0.11446622759103775, 0.03965418040752411, 0.21441282331943512, -0.34341907501220703, 0.2781924903392792, 0.09978321939706802, 0.15568968653678894, 0.12285715341567993, 0.1936846524477005, 0.15185754001140594, 0.17171089351177216, -0.12367777526378632, 0.14349550008773804, -0.21329714357852936, -0.14465633034706116, -0.11499405652284622, 0.13292552530765533, 0.13973653316497803, -0.21180421113967896, -0.1916455626487732, -0.12172331660985947, -0.08772271871566772, 0.20115569233894348, 0.11639575660228729, 0.06850399076938629, -0.2387060821056366, 0.01057103369385004, -0.0803084447979927, 0.36157190799713135, -0.15618444979190826, -0.45547404885292053, -0.0289631225168705, -0.3322910666465759, -0.1032540500164032, -0.1468319445848465, 0.008754780516028404, -0.07435449957847595, -0.032412074506282806, -0.48869428038597107, -0.09882032126188278, -0.08773486316204071, -0.16846394538879395, 0.035995516926050186, -0.06740298122167587, 0.007284156046807766, 0.2441398650407791, -0.21105267107486725, -0.05370088294148445, -0.19702745974063873, 0.11170808225870132, -0.16710883378982544, 0.14644336700439453, -0.11963769793510437, 0.3578414022922516, -0.19193658232688904, 0.4393883943557739, -0.030810682103037834, -0.2351454794406891, -0.14296959340572357, -0.06777361035346985, 0.36199668049812317, -0.21951766312122345, -0.09674574434757233, 0.014449249021708965, 0.1331198811531067, -0.1860724687576294, 0.03542541339993477, 0.06047620251774788, -0.23550920188426971, -0.08303575962781906, -0.19210441410541534, -0.21761736273765564, -0.25229987502098083, 0.03890906274318695, 0.04863639548420906, 0.027874480932950974, -0.07807596772909164, 0.24044792354106903, -0.30279645323753357, -0.06676831841468811, -0.020056473091244698, 0.3312399685382843, 0.13261878490447998, -0.13296093046665192, -0.4730229377746582, 0.07415377348661423, -0.3892539143562317, 0.22536972165107727, -0.18956640362739563, -0.015414652414619923, -0.13970468938350677, -0.22707007825374603, 0.22422097623348236, 0.07704824209213257, 0.3149817883968353, -0.06013184413313866, 0.6949784159660339, -0.1805131435394287, -0.1156444102525711, -0.15557685494422913, 0.2968992292881012, -0.32414358854293823, 0.6504986882209778, 0.19908234477043152, 0.2666238248348236, -0.2269904911518097, -0.2913488447666168, 0.006025685928761959, -0.11130201071500778, -0.3343282639980316, -0.39169901609420776, -0.25385844707489014, 0.18949489295482635, 0.2051984965801239, -0.21835435926914215, -0.11235371232032776, 0.01613258570432663, -0.009222372435033321, -0.17264236509799957, -0.16699419915676117, -0.11905739456415176, 0.23089298605918884, 0.0010929589625447989, -0.08892142027616501, -0.059405144304037094, 0.09809443354606628, 0.0682595893740654, 0.7409496307373047, 0.23401108384132385, 0.6017733812332153, -0.12478221207857132, -0.19232270121574402, 0.33647260069847107, -0.1382383406162262, 0.16654792428016663, 0.21791169047355652, -0.08653775602579117, 0.04288319870829582, 0.25271227955818176, 0.1612343192100525, -0.38567081093788147, 0.1571153998374939, 0.2365347146987915, 0.3201121985912323, -0.5767799615859985, -0.14332428574562073, 0.5086935758590698, 0.015084510669112206, -0.3148716390132904, 0.3986354470252991, 0.03588758409023285, -0.2643142342567444, 0.1909695267677307, 0.1441921442747116, 0.8768264651298523, -0.1367381066083908, 0.1674260050058365, 0.041437506675720215, -0.21666283905506134, -0.09949750453233719, -0.021467601880431175, -0.010245340876281261, -0.37640076875686646, -0.09925691783428192, -0.12517240643501282, -0.21275383234024048, 0.19588592648506165, 0.3785432279109955, 0.12946440279483795, -0.1870340257883072, -0.22315528988838196, 0.02124534733593464, -0.10062967985868454, 0.48852217197418213, -0.15415909886360168, 0.22387899458408356, -0.37209731340408325, 0.11135559529066086, 0.18090395629405975, -0.05144485831260681, -0.3525238037109375, 0.11744169145822525, 0.44386330246925354, -0.006108171306550503, -0.09164271503686905, -0.33084529638290405, 0.2364431917667389, 0.03771239146590233, -0.04688937962055206, -0.22831638157367706, -0.25518280267715454, 0.20345571637153625, -0.19639652967453003, -0.10193892568349838, 0.10307633131742477, 0.20185953378677368, -0.33454424142837524, 0.10415174067020416, -0.059283096343278885, 0.0360165610909462, 0.20127436518669128, -0.23678451776504517, -0.14642542600631714, 0.21467462182044983, -0.07153081148862839, -0.5006355047225952, 0.07211872935295105, 0.045120690017938614, -0.35453560948371887, -0.43495386838912964, 0.2555713355541229, 0.06556511670351028, 0.08223524689674377, 0.11966776847839355, 0.13188162446022034, 0.14539004862308502, 0.24451947212219238, 0.26861393451690674, 0.16661709547042847, -0.24183836579322815, -0.2195737510919571, 0.6619013547897339, 0.18030649423599243, 0.15217676758766174, 0.3287948668003082, 0.10810563713312149, -0.09405741840600967, -0.4026694595813751, 0.16561473906040192, 0.3973868787288666, 0.02773633785545826, 0.21359050273895264, 0.10610342770814896, -0.07352858036756516, 0.2427390068769455, 0.10970199853181839, 0.2568984627723694, -0.21989578008651733, -0.06533285975456238, -0.38505440950393677, -0.21417172253131866, 0.18595780432224274, -0.1574256718158722, 0.25660109519958496, -0.09421651810407639, -0.11451951414346695, -0.0727081149816513, 0.2392483800649643, -0.39438366889953613, -0.1690690815448761, 0.10838057845830917, -0.03611943498253822, 0.1662895530462265, 0.16543419659137726, 0.14097364246845245, 0.20339298248291016, 0.2827632427215576, -0.34482309222221375, -0.055689405649900436, -0.22912965714931488, 0.1465030461549759, 0.14123117923736572, -0.16885995864868164, 0.009050457738339901, -0.13696464896202087, -0.31026482582092285, -0.2188807725906372, 0.0725114643573761, 0.34602057933807373, 0.06931882351636887, -0.047011520713567734, 0.22976994514465332, 0.06265532970428467, 0.15523214638233185, -0.1936204880475998, 0.07261258363723755, 0.22305229306221008, -0.13076455891132355, -0.15724638104438782, 0.04196411371231079, -0.019496213644742966, -0.06987915188074112, 0.32440540194511414, 0.25411298871040344, 0.23635001480579376, -0.16746142506599426, 0.27880215644836426, -0.1220320612192154, -0.08334049582481384, 0.24064618349075317, 0.2304198443889618, 0.2785644233226776, -0.2249424010515213, -0.08982448279857635, -0.25595128536224365, 0.2387360781431198, -0.21368516981601715, -0.017206909134984016, -0.1380697637796402, 0.0025729897897690535, 0.02953658066689968, 0.2047785073518753, -0.0915110781788826, -0.14929693937301636, 0.3693176209926605, -0.007042608689516783, 0.039597850292921066, 0.039686381816864014, 0.18686378002166748, 0.20219360291957855, -0.28882989287376404, -0.1119227409362793, 0.6428165435791016, 0.6408287882804871, 0.253515362739563, 0.44126665592193604, 0.26943519711494446, 0.17449788749217987, -0.04499835520982742, 0.26345202326774597, -0.08403562754392624, -0.5655350685119629, 0.2881830632686615, 0.8604243993759155, -0.28275489807128906, -0.17474980652332306, 0.15267720818519592, 0.29428330063819885, 0.10830079019069672, -0.05020173639059067, -0.4168488383293152, -0.17341500520706177, -0.23656930029392242, -0.13039511442184448, -0.21054375171661377, -0.27834686636924744, 0.00838136300444603, -0.07137177884578705, -0.16050884127616882, -0.33196350932121277, -0.20460551977157593, -0.03173019737005234, 0.042396143078804016, -0.13823221623897552, 0.3571154773235321, 0.2023465633392334, -0.0892745777964592, -0.07558240741491318, 0.2784966230392456, 0.13815250992774963, 0.2516103684902191, 0.6769722700119019, 0.24401816725730896, 0.25638025999069214, 0.08562184870243073, -0.12150096893310547, 0.021897410973906517, 0.05985233932733536, -0.20374061167240143, -0.27535805106163025, 0.3373664617538452, -0.02122105285525322, 0.08806714415550232, 0.42048972845077515, 0.16685165464878082, -0.14847035706043243, 0.25482043623924255, 0.15859635174274445, 0.024627583101391792, -0.12438865751028061, 0.3744620978832245, 0.08152082562446594, -0.13966195285320282, -0.10367713868618011, -0.23168618977069855, -0.42621201276779175, -0.4791351854801178, 0.5124905705451965, 0.09826864302158356, -0.02191351167857647, -0.018853316083550453, 0.11830326169729233, -0.19235120713710785, 0.356894850730896, 0.3311571776866913, -0.010110469534993172, 0.18515124917030334, -0.1275094896554947, -0.4346546232700348, 0.20719236135482788, 0.25019365549087524, -0.21991722285747528, -0.17706167697906494, -0.17794078588485718, 0.28324005007743835, 0.1756814867258072, 0.25215885043144226, -0.14121633768081665, 0.23801365494728088, -0.08646456897258759, -0.2531774044036865, -0.157217875123024, 0.2746284008026123, 0.18540515005588531, -0.29336655139923096, -0.23944899439811707, 0.21925289928913116, -0.4275979995727539, 0.09658470749855042, -0.01753893308341503, -0.17168869078159332, -0.11336107552051544, 0.1790868192911148, 0.5761045217514038, -0.019111307337880135, 0.30973929166793823, -0.009624728932976723, -0.11084646731615067, -0.1207648366689682, -0.18318842351436615, -0.18562474846839905, 0.05380485579371452, 0.22188149392604828, 0.15734292566776276, -0.22151029109954834, 0.2793307900428772, 0.17226272821426392, -0.021472729742527008, -0.21418029069900513, -0.21958380937576294, -0.17389144003391266, 0.032785214483737946, -0.23595282435417175, -0.23193997144699097, 0.041947584599256516, 0.2532181143760681, 0.2655842900276184, -0.14873769879341125, -0.015625184401869774, -0.046538371592760086, 0.2515624761581421, -0.34122347831726074, 0.08177617937326431, -0.265837162733078, 0.31004130840301514, 0.257419228553772, -0.06840554624795914, -0.3025915026664734, 0.2909716069698334, 0.4464830458164215, -0.11434130370616913, 0.19248013198375702, 0.40550869703292847, -0.30428022146224976, 0.14241237938404083, -0.1077011302113533, 0.08174052834510803, 0.05935223400592804, -0.12544313073158264, -0.5662623643875122, -0.1778532862663269 ]
https://github.com/huggingface/datasets/issues/1948
dataset loading logger level
Hey, any news about the issue? So many warnings when I'm really ok with the dataset not being recomputed :)
on master I get this with `--dataset_name wmt16 --dataset_config ro-en`: ``` WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-2e01bead8cf42e26.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-ac3bebaf4f91f776.arrow WARNING:datasets.arrow_dataset:Loading cached processed dataset at /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/9dc00622c30446e99c4c63d12a484ea4fb653f2f37c867d6edcec839d7eae50f/cache-810c3e61259d73a9.arrow ``` why are those WARNINGs? Should be INFO, no? warnings should only be used when a user needs to pay attention to something, this is just informative - I'd even say it should be DEBUG, but definitely not WARNING. Thank you.
20
dataset loading logger level
[ -0.5710362792015076, -0.22678527235984802, -0.1709415316581726, 0.3303821086883545, 0.17111368477344513, 0.06736862659454346, 0.5659655928611755, -0.1179983913898468, 0.49279528856277466, -0.09417404979467392, 0.031093424186110497, 0.013129595667123795, -0.24947403371334076, 0.4830567240715027, -0.09546808898448944, 0.10681183636188507, 0.08181857317686081, 0.12011218070983887, -0.460593581199646, -0.18189480900764465, -0.13930237293243408, -0.08760147541761398, -0.13876810669898987, -0.1291678100824356, -0.5351738929748535, -0.17644760012626648, 0.1845659762620926, 0.29660564661026, -0.26018187403678894, -0.5112336874008179, 0.045216385275125504, 0.06656964868307114, 0.4741315245628357, 0.360034316778183, -0.00011206003546249121, -0.009068813174962997, 0.26932066679000854, 0.05191831663250923, -0.5753480195999146, 0.2509801685810089, -0.5173022150993347, -0.267160028219223, 0.30549460649490356, -0.12198583036661148, 0.10777582973241806, -0.5154058933258057, 0.2804920971393585, -0.19067206978797913, 0.46934041380882263, -0.08476804196834564, 0.223621666431427, -0.17622129619121552, -0.3117254078388214, -0.12230831384658813, -0.08249111473560333, 0.18179480731487274, 0.08193636685609818, 0.5134300589561462, 0.41936808824539185, -0.015895962715148926, -0.5816338062286377, -0.063713937997818, 0.17581531405448914, 0.012310652993619442, 0.31650876998901367, -0.044354699552059174, 0.44115084409713745, 0.09437364339828491, 0.26126861572265625, 0.2497021108865738, 0.7590944170951843, -0.07765225321054459, -0.14875313639640808, -0.2261624038219452, -0.003019520081579685, -0.4835507273674011, 0.323538213968277, 0.024060873314738274, -0.33238255977630615, 0.08901014178991318, 0.32266005873680115, -0.21502964198589325, -0.25350460410118103, -0.11118680983781815, -0.30224159359931946, 0.2684139907360077, -0.2048722207546234, -0.09992426633834839, 0.021296046674251556, -0.038856130093336105, 0.34208807349205017, -0.06475815176963806, 0.05109800398349762, 0.06596479564905167, -0.46257284283638, -0.01010226272046566, 0.03953554853796959, 0.32412758469581604, -0.18613050878047943, 0.2193925529718399, -0.12143146246671677, 0.18846993148326874, 0.1668311208486557, 0.06567815691232681, 0.6823034882545471, 0.03349872678518295, 0.3392876088619232, 0.14434869587421417, 0.15888220071792603, -0.2990451753139496, -0.07614801824092865, 0.014932684600353241, -0.3415622115135193, -0.22543743252754211, 0.6365724802017212, 0.02230641059577465, -0.09937302023172379, -0.2171088010072708, 0.08009228855371475, -0.028278373181819916, 0.23148439824581146, -0.2091027945280075, -0.09745730459690094, 0.46946871280670166, 0.18897734582424164, -0.2738291323184967, 0.02106485143303871, 0.011241587810218334, 0.005698161665350199, -0.0384691022336483, -0.22735139727592468, -0.26121971011161804, -0.20146805047988892, -0.1018688902258873, 0.10499340295791626, -0.13761261105537415, 0.2811278700828552, 0.18913120031356812, -0.3388740122318268, -0.09562180936336517, 0.5024253726005554, -0.14643622934818268, -0.0783437117934227, 0.1089399978518486, -0.04214818775653839, -0.06402157992124557, -0.09069487452507019, -0.1449347883462906, -0.15483781695365906, 0.265645295381546, 0.04808741807937622, -0.1186116635799408, -0.13830196857452393, 0.23193474113941193, -0.10210420191287994, -0.15613730251789093, -0.4589063227176666, 0.16849423944950104, 0.010672476142644882, 0.07802026718854904, 0.004523966461420059, -0.14478939771652222, 0.12394918501377106, -0.08515819907188416, -0.27159324288368225, 0.4130572974681854, -0.3962259888648987, -0.44688525795936584, -0.432104229927063, -0.41146811842918396, 0.24273961782455444, 0.034819096326828, -0.11731094121932983, 0.2663813531398773, -0.2572166323661804, 0.01845548488199711, 0.5129498839378357, -0.1243736669421196, 0.13963884115219116, 0.4420614242553711, -0.2702764868736267, -0.0808066725730896, 0.31743761897087097, 0.3539780080318451, 0.09906916320323944, -0.2639194428920746, 0.16566656529903412, 0.19430705904960632, 0.17610615491867065, -0.10340388119220734, -0.04408387467265129, 0.10224628448486328, 0.19645078480243683, 0.33265221118927, 0.03629719465970993, -0.0011103504803031683, 0.09258854389190674, -0.031368955969810486, 0.24768474698066711, -0.06656195223331451, -0.029242023825645447, 0.27524158358573914, -0.064655601978302, -0.05322170630097389, -0.04461459070444107, -0.09803949296474457, -0.3728833794593811, -0.05838506668806076, -0.1953139454126358, 0.11130081862211227, 0.2759040892124176, -0.031373631209135056, -0.14088557660579681, -0.003697225358337164, -0.20386691391468048, 0.23357582092285156, 0.1202821210026741, 0.2781201899051666, -0.6812921166419983, -0.06309130787849426, -0.3414549231529236, 0.1853891760110855, -0.3295518755912781, 0.1620083600282669, -0.20652084052562714, 0.0020491182804107666, 0.2106291502714157, 0.08053521811962128, 0.18616610765457153, 0.027488477528095245, 0.017443092539906502, -0.12825386226177216, 0.13715913891792297, 0.0809297040104866, 0.26619991660118103, 0.5331134796142578, 0.1878400444984436, 0.3013123869895935, -0.02418656460940838, 0.22144174575805664, 0.2719064950942993, -0.1002006009221077, -0.019597699865698814, -0.11523552238941193, -0.012455436401069164, 0.3883741796016693, 0.2773917019367218, -0.041285835206508636, -0.05529729276895523, -0.17901471257209778, 0.18274982273578644, -0.013139651156961918, 0.11348467320203781, -0.2528981566429138, 0.360399067401886, 0.016297856345772743, 0.32956957817077637, 0.3078851103782654, -0.1373496800661087, 0.03786839172244072, 0.27965840697288513, -0.197469562292099, 0.32581189274787903, -0.04788762331008911, -0.3686225116252899, -0.2580445110797882, 0.3337206244468689, 0.0006098984158597887, 0.17157746851444244, 0.2771221101284027, 0.3132883608341217, -0.006952719297260046, 0.18748731911182404, -0.07764080911874771, 0.32040533423423767, -0.21768859028816223, 0.11224710196256638, 0.385976105928421, -0.2922498285770416, -0.19118358194828033, -0.3623853325843811, -0.014458747580647469, -0.10621079057455063, 0.09501156955957413, -0.2740161120891571, -0.23934948444366455, -0.2063247561454773, -0.41360780596733093, -0.3863835334777832, 0.17954203486442566, -0.15350976586341858, -0.2808585464954376, 0.060236893594264984, -0.006196797825396061, -0.0016915538581088185, 0.007010201457887888, -0.16700220108032227, 0.37760618329048157, 0.15954476594924927, 0.2792351245880127, -0.16208235919475555, -0.2947850227355957, -0.023254619911313057, 0.17097921669483185, 0.17685560882091522, 0.12213606387376785, 0.2125571370124817, -0.11446622759103775, 0.03965418040752411, 0.21441282331943512, -0.34341907501220703, 0.2781924903392792, 0.09978321939706802, 0.15568968653678894, 0.12285715341567993, 0.1936846524477005, 0.15185754001140594, 0.17171089351177216, -0.12367777526378632, 0.14349550008773804, -0.21329714357852936, -0.14465633034706116, -0.11499405652284622, 0.13292552530765533, 0.13973653316497803, -0.21180421113967896, -0.1916455626487732, -0.12172331660985947, -0.08772271871566772, 0.20115569233894348, 0.11639575660228729, 0.06850399076938629, -0.2387060821056366, 0.01057103369385004, -0.0803084447979927, 0.36157190799713135, -0.15618444979190826, -0.45547404885292053, -0.0289631225168705, -0.3322910666465759, -0.1032540500164032, -0.1468319445848465, 0.008754780516028404, -0.07435449957847595, -0.032412074506282806, -0.48869428038597107, -0.09882032126188278, -0.08773486316204071, -0.16846394538879395, 0.035995516926050186, -0.06740298122167587, 0.007284156046807766, 0.2441398650407791, -0.21105267107486725, -0.05370088294148445, -0.19702745974063873, 0.11170808225870132, -0.16710883378982544, 0.14644336700439453, -0.11963769793510437, 0.3578414022922516, -0.19193658232688904, 0.4393883943557739, -0.030810682103037834, -0.2351454794406891, -0.14296959340572357, -0.06777361035346985, 0.36199668049812317, -0.21951766312122345, -0.09674574434757233, 0.014449249021708965, 0.1331198811531067, -0.1860724687576294, 0.03542541339993477, 0.06047620251774788, -0.23550920188426971, -0.08303575962781906, -0.19210441410541534, -0.21761736273765564, -0.25229987502098083, 0.03890906274318695, 0.04863639548420906, 0.027874480932950974, -0.07807596772909164, 0.24044792354106903, -0.30279645323753357, -0.06676831841468811, -0.020056473091244698, 0.3312399685382843, 0.13261878490447998, -0.13296093046665192, -0.4730229377746582, 0.07415377348661423, -0.3892539143562317, 0.22536972165107727, -0.18956640362739563, -0.015414652414619923, -0.13970468938350677, -0.22707007825374603, 0.22422097623348236, 0.07704824209213257, 0.3149817883968353, -0.06013184413313866, 0.6949784159660339, -0.1805131435394287, -0.1156444102525711, -0.15557685494422913, 0.2968992292881012, -0.32414358854293823, 0.6504986882209778, 0.19908234477043152, 0.2666238248348236, -0.2269904911518097, -0.2913488447666168, 0.006025685928761959, -0.11130201071500778, -0.3343282639980316, -0.39169901609420776, -0.25385844707489014, 0.18949489295482635, 0.2051984965801239, -0.21835435926914215, -0.11235371232032776, 0.01613258570432663, -0.009222372435033321, -0.17264236509799957, -0.16699419915676117, -0.11905739456415176, 0.23089298605918884, 0.0010929589625447989, -0.08892142027616501, -0.059405144304037094, 0.09809443354606628, 0.0682595893740654, 0.7409496307373047, 0.23401108384132385, 0.6017733812332153, -0.12478221207857132, -0.19232270121574402, 0.33647260069847107, -0.1382383406162262, 0.16654792428016663, 0.21791169047355652, -0.08653775602579117, 0.04288319870829582, 0.25271227955818176, 0.1612343192100525, -0.38567081093788147, 0.1571153998374939, 0.2365347146987915, 0.3201121985912323, -0.5767799615859985, -0.14332428574562073, 0.5086935758590698, 0.015084510669112206, -0.3148716390132904, 0.3986354470252991, 0.03588758409023285, -0.2643142342567444, 0.1909695267677307, 0.1441921442747116, 0.8768264651298523, -0.1367381066083908, 0.1674260050058365, 0.041437506675720215, -0.21666283905506134, -0.09949750453233719, -0.021467601880431175, -0.010245340876281261, -0.37640076875686646, -0.09925691783428192, -0.12517240643501282, -0.21275383234024048, 0.19588592648506165, 0.3785432279109955, 0.12946440279483795, -0.1870340257883072, -0.22315528988838196, 0.02124534733593464, -0.10062967985868454, 0.48852217197418213, -0.15415909886360168, 0.22387899458408356, -0.37209731340408325, 0.11135559529066086, 0.18090395629405975, -0.05144485831260681, -0.3525238037109375, 0.11744169145822525, 0.44386330246925354, -0.006108171306550503, -0.09164271503686905, -0.33084529638290405, 0.2364431917667389, 0.03771239146590233, -0.04688937962055206, -0.22831638157367706, -0.25518280267715454, 0.20345571637153625, -0.19639652967453003, -0.10193892568349838, 0.10307633131742477, 0.20185953378677368, -0.33454424142837524, 0.10415174067020416, -0.059283096343278885, 0.0360165610909462, 0.20127436518669128, -0.23678451776504517, -0.14642542600631714, 0.21467462182044983, -0.07153081148862839, -0.5006355047225952, 0.07211872935295105, 0.045120690017938614, -0.35453560948371887, -0.43495386838912964, 0.2555713355541229, 0.06556511670351028, 0.08223524689674377, 0.11966776847839355, 0.13188162446022034, 0.14539004862308502, 0.24451947212219238, 0.26861393451690674, 0.16661709547042847, -0.24183836579322815, -0.2195737510919571, 0.6619013547897339, 0.18030649423599243, 0.15217676758766174, 0.3287948668003082, 0.10810563713312149, -0.09405741840600967, -0.4026694595813751, 0.16561473906040192, 0.3973868787288666, 0.02773633785545826, 0.21359050273895264, 0.10610342770814896, -0.07352858036756516, 0.2427390068769455, 0.10970199853181839, 0.2568984627723694, -0.21989578008651733, -0.06533285975456238, -0.38505440950393677, -0.21417172253131866, 0.18595780432224274, -0.1574256718158722, 0.25660109519958496, -0.09421651810407639, -0.11451951414346695, -0.0727081149816513, 0.2392483800649643, -0.39438366889953613, -0.1690690815448761, 0.10838057845830917, -0.03611943498253822, 0.1662895530462265, 0.16543419659137726, 0.14097364246845245, 0.20339298248291016, 0.2827632427215576, -0.34482309222221375, -0.055689405649900436, -0.22912965714931488, 0.1465030461549759, 0.14123117923736572, -0.16885995864868164, 0.009050457738339901, -0.13696464896202087, -0.31026482582092285, -0.2188807725906372, 0.0725114643573761, 0.34602057933807373, 0.06931882351636887, -0.047011520713567734, 0.22976994514465332, 0.06265532970428467, 0.15523214638233185, -0.1936204880475998, 0.07261258363723755, 0.22305229306221008, -0.13076455891132355, -0.15724638104438782, 0.04196411371231079, -0.019496213644742966, -0.06987915188074112, 0.32440540194511414, 0.25411298871040344, 0.23635001480579376, -0.16746142506599426, 0.27880215644836426, -0.1220320612192154, -0.08334049582481384, 0.24064618349075317, 0.2304198443889618, 0.2785644233226776, -0.2249424010515213, -0.08982448279857635, -0.25595128536224365, 0.2387360781431198, -0.21368516981601715, -0.017206909134984016, -0.1380697637796402, 0.0025729897897690535, 0.02953658066689968, 0.2047785073518753, -0.0915110781788826, -0.14929693937301636, 0.3693176209926605, -0.007042608689516783, 0.039597850292921066, 0.039686381816864014, 0.18686378002166748, 0.20219360291957855, -0.28882989287376404, -0.1119227409362793, 0.6428165435791016, 0.6408287882804871, 0.253515362739563, 0.44126665592193604, 0.26943519711494446, 0.17449788749217987, -0.04499835520982742, 0.26345202326774597, -0.08403562754392624, -0.5655350685119629, 0.2881830632686615, 0.8604243993759155, -0.28275489807128906, -0.17474980652332306, 0.15267720818519592, 0.29428330063819885, 0.10830079019069672, -0.05020173639059067, -0.4168488383293152, -0.17341500520706177, -0.23656930029392242, -0.13039511442184448, -0.21054375171661377, -0.27834686636924744, 0.00838136300444603, -0.07137177884578705, -0.16050884127616882, -0.33196350932121277, -0.20460551977157593, -0.03173019737005234, 0.042396143078804016, -0.13823221623897552, 0.3571154773235321, 0.2023465633392334, -0.0892745777964592, -0.07558240741491318, 0.2784966230392456, 0.13815250992774963, 0.2516103684902191, 0.6769722700119019, 0.24401816725730896, 0.25638025999069214, 0.08562184870243073, -0.12150096893310547, 0.021897410973906517, 0.05985233932733536, -0.20374061167240143, -0.27535805106163025, 0.3373664617538452, -0.02122105285525322, 0.08806714415550232, 0.42048972845077515, 0.16685165464878082, -0.14847035706043243, 0.25482043623924255, 0.15859635174274445, 0.024627583101391792, -0.12438865751028061, 0.3744620978832245, 0.08152082562446594, -0.13966195285320282, -0.10367713868618011, -0.23168618977069855, -0.42621201276779175, -0.4791351854801178, 0.5124905705451965, 0.09826864302158356, -0.02191351167857647, -0.018853316083550453, 0.11830326169729233, -0.19235120713710785, 0.356894850730896, 0.3311571776866913, -0.010110469534993172, 0.18515124917030334, -0.1275094896554947, -0.4346546232700348, 0.20719236135482788, 0.25019365549087524, -0.21991722285747528, -0.17706167697906494, -0.17794078588485718, 0.28324005007743835, 0.1756814867258072, 0.25215885043144226, -0.14121633768081665, 0.23801365494728088, -0.08646456897258759, -0.2531774044036865, -0.157217875123024, 0.2746284008026123, 0.18540515005588531, -0.29336655139923096, -0.23944899439811707, 0.21925289928913116, -0.4275979995727539, 0.09658470749855042, -0.01753893308341503, -0.17168869078159332, -0.11336107552051544, 0.1790868192911148, 0.5761045217514038, -0.019111307337880135, 0.30973929166793823, -0.009624728932976723, -0.11084646731615067, -0.1207648366689682, -0.18318842351436615, -0.18562474846839905, 0.05380485579371452, 0.22188149392604828, 0.15734292566776276, -0.22151029109954834, 0.2793307900428772, 0.17226272821426392, -0.021472729742527008, -0.21418029069900513, -0.21958380937576294, -0.17389144003391266, 0.032785214483737946, -0.23595282435417175, -0.23193997144699097, 0.041947584599256516, 0.2532181143760681, 0.2655842900276184, -0.14873769879341125, -0.015625184401869774, -0.046538371592760086, 0.2515624761581421, -0.34122347831726074, 0.08177617937326431, -0.265837162733078, 0.31004130840301514, 0.257419228553772, -0.06840554624795914, -0.3025915026664734, 0.2909716069698334, 0.4464830458164215, -0.11434130370616913, 0.19248013198375702, 0.40550869703292847, -0.30428022146224976, 0.14241237938404083, -0.1077011302113533, 0.08174052834510803, 0.05935223400592804, -0.12544313073158264, -0.5662623643875122, -0.1778532862663269 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
Hi ! The cache at `~/.cache/huggingface/metrics` stores the users data for metrics computations (hence the arrow files). However python modules (i.e. dataset scripts, metric scripts) are stored in `~/.cache/huggingface/modules/datasets_modules`. In particular the metrics are cached in `~/.cache/huggingface/modules/datasets_modules/metrics/` Feel free to take a look at your cache and let me know if you find any issue that would help explaining why you had an issue with `rouge` with no connection. I'm doing some tests on my side to try to reproduce the issue you have
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
84
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
Thank you for clarifying that the metrics files are to be found elsewhere, @lhoestq > The cache at ~/.cache/huggingface/metrics stores the users data for metrics computations (hence the arrow files). could it be renamed to reflect that? otherwise it misleadingly suggests that it's the metrics. Perhaps `~/.cache/huggingface/metrics-user-data`? And there are so many `.lock` files w/o corresponding files under `~/.cache/huggingface/metrics/`. Why are they there? for example after I wipe out the dir completely and do one training I end up with: ``` ~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock ``` what is that lock file locking when nothing is running?
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
93
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
The lock files come from an issue with filelock (see comment in the code [here](https://github.com/benediktschmitt/py-filelock/blob/master/filelock.py#L394-L398)). Basically on unix there're always .lock files left behind. I haven't dove into this issue
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
30
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
are you sure you need an external lock file? if it's a single purpose locking in the same scope you can lock the caller `__file__` instead, e.g. here is how one can `flock` the script file itself to ensure atomic printing: ``` import fcntl def printflock(*msgs): """ print in multiprocess env so that the outputs from different processes don't get interleaved """ with open(__file__, "r") as fh: fcntl.flock(fh, fcntl.LOCK_EX) try: print(*msgs) finally: fcntl.flock(fh, fcntl.LOCK_UN) ```
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
75
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
OK, this issue is not about caching but some internal conflict/race condition it seems, I have just run into it on my normal env: ``` Traceback (most recent call last): File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 356, in _finalize self.data = Dataset(**reader.read_files([{"filename": f} for f in file_paths])) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/mnt/nvme1/code/huggingface/datasets-master/src/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 "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/home/stas/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "examples/seq2seq/run_seq2seq.py", line 655, in <module> main() File "examples/seq2seq/run_seq2seq.py", line 619, in main test_results = trainer.predict( File "/mnt/nvme1/code/huggingface/transformers-master/src/transformers/trainer_seq2seq.py", line 121, in predict return super().predict(test_dataset, ignore_keys=ignore_keys, metric_key_prefix=metric_key_prefix) File "/mnt/nvme1/code/huggingface/transformers-master/src/transformers/trainer.py", line 1706, in predict output = self.prediction_loop( File "/mnt/nvme1/code/huggingface/transformers-master/src/transformers/trainer.py", line 1813, in prediction_loop metrics = self.compute_metrics(EvalPrediction(predictions=preds, label_ids=label_ids)) File "examples/seq2seq/run_seq2seq.py", line 556, in compute_metrics result = metric.compute(predictions=decoded_preds, references=decoded_labels) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 388, in compute self._finalize() File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 358, in _finalize raise ValueError( ValueError: Error in finalize: another metric instance is already using the local cache file. Please specify an experiment_id to avoid colision between distributed metric instances. ``` I'm just running `run_seq2seq.py` under DeepSpeed: ``` export BS=16; rm -r output_dir; PYTHONPATH=src USE_TF=0 CUDA_VISIBLE_DEVICES=0,1 deepspeed --num_gpus=2 examples/seq2seq/run_seq2seq.py --model_name_or_path t5-small --output_dir output_dir --adam_eps 1e-06 --do_eval --do_train --do_predict --evaluation_strategy=steps --label_smoothing 0.1 --learning_rate 3e-5 --logging_first_step --logging_steps 1000 --max_source_length 128 --max_target_length 128 --num_train_epochs 1 --overwrite_output_dir --per_device_eval_batch_size $BS --per_device_train_batch_size $BS --predict_with_generate --eval_steps 25000 --sortish_sampler --task translation_en_to_ro --val_max_target_length 128 --warmup_steps 500 --max_train_samples 100 --max_val_samples 100 --max_test_samples 100 --dataset_name wmt16 --dataset_config ro-en --source_prefix "translate English to Romanian: " --deepspeed examples/tests/deepspeed/ds_config.json ``` It finished the evaluation OK and crashed on the prediction part of the Trainer. But the eval / predict parts no longer run under Deepspeed, it's just plain ddp. Is this some kind of race condition? It happens intermittently - there is nothing else running at the same time. But if 2 independent instances of the same script were to run at the same time it's clear to see that this problem would happen. Perhaps it'd help to create a unique hash which is shared between all processes in the group and use that as the default experiment id?
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
409
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
When you're using metrics in a distributed setup, there are two cases: 1. you're doing two completely different experiments (two evaluations) and the 2 metrics jobs have nothing to do with each other 2. you're doing one experiment (one evaluation) but use multiple processes to feed the data to the metric. In case 1. you just need to provide two different `experiment_id` so that the metrics don't collide. In case 2. they must have the same experiment_id (or use the default one), but in this case you also need to provide the `num_processes` and `process_id` If understand correctly you're in situation 2. If so, you make sure that you instantiate the metrics with both the right `num_processes` and `process_id` parameters ? If they're not set, then the cache files of the two metrics collide it can cause issues. For example if one metric finishes before the other, then the cache file is deleted and the other metric gets a FileNotFoundError There's more information in the [documentation](https://huggingface.co/docs/datasets/loading_metrics.html#distributed-setups) if you want Hope that helps !
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
173
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
Thank you for explaining that in a great way, @lhoestq So the bottom line is that the `transformers` examples are broken since they don't do any of that. At least `run_seq2seq.py` just does `metric = load_metric(metric_name)` What test would you recommend to reliably reproduce this bug in `examples/seq2seq/run_seq2seq.py`?
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
48
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
To give more context, we are just using the metrics for the `comput_metric` function and nothing else. Is there something else we can use that just applies the function to the full arrays of predictions and labels? Because that's all we need, all the gathering has already been done because the datasets Metric multiprocessing relies on file storage and thus does not work in a multi-node distributed setup (whereas the Trainer does). Otherwise, we'll have to switch to something else to compute the metrics :-(
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
85
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
OK, it definitely leads to a race condition in how it's used right now. Here is how you can reproduce it - by injecting a random sleep time different for each process before the locks are acquired. ``` --- a/src/datasets/metric.py +++ b/src/datasets/metric.py @@ -348,6 +348,16 @@ class Metric(MetricInfoMixin): elif self.process_id == 0: # Let's acquire a lock on each node files to be sure they are finished writing + + import time + import random + import os + pid = os.getpid() + random.seed(pid) + secs = random.randint(1, 15) + time.sleep(secs) + print(f"sleeping {secs}") + file_paths, filelocks = self._get_all_cache_files() # Read the predictions and references @@ -385,7 +395,10 @@ class Metric(MetricInfoMixin): if predictions is not None: self.add_batch(predictions=predictions, references=references) + print("FINALIZE START") + self._finalize() + print("FINALIZE END") self.cache_file_name = None self.filelock = None ``` then run with 2 procs: `python -m torch.distributed.launch --nproc_per_node=2` ``` export BS=16; rm -r output_dir; PYTHONPATH=src USE_TF=0 CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=2 examples/seq2seq/run_seq2seq.py --model_name_or_path t5-small --output_dir output_dir --adam_eps 1e-06 --do_eval --do_train --do_predict --evaluation_strategy=steps --label_smoothing 0.1 --learning_rate 3e-5 --logging_first_step --logging_steps 1000 --max_source_length 128 --max_target_length 128 --num_train_epochs 1 --overwrite_output_dir --per_device_eval_batch_size $BS --per_device_train_batch_size $BS --predict_with_generate --eval_steps 25000 --sortish_sampler --task translation_en_to_ro --val_max_target_length 128 --warmup_steps 500 --max_train_samples 10 --max_val_samples 10 --max_test_samples 10 --dataset_name wmt16 --dataset_config ro-en --source_prefix "translate English to Romanian: " ``` ``` ***** Running Evaluation ***** Num examples = 10 Batch size = 16 0%| | 0/1 [00:00<?, ?it/s]FINALIZE START FINALIZE START sleeping 11 FINALIZE END 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:11<00:00, 11.06s/it] sleeping 11 Traceback (most recent call last): File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 368, in _finalize self.data = Dataset(**reader.read_files([{"filename": f} for f in file_paths])) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/mnt/nvme1/code/huggingface/datasets-master/src/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 "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/arrow_reader.py", line 322, in read_table stream = stream_from(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/home/stas/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "examples/seq2seq/run_seq2seq.py", line 645, in <module> main() File "examples/seq2seq/run_seq2seq.py", line 601, in main metrics = trainer.evaluate( File "/mnt/nvme1/code/huggingface/transformers-mp-pp/src/transformers/trainer_seq2seq.py", line 74, in evaluate return super().evaluate(eval_dataset, ignore_keys=ignore_keys, metric_key_prefix=metric_key_prefix) File "/mnt/nvme1/code/huggingface/transformers-mp-pp/src/transformers/trainer.py", line 1703, in evaluate output = self.prediction_loop( File "/mnt/nvme1/code/huggingface/transformers-mp-pp/src/transformers/trainer.py", line 1876, in prediction_loop metrics = self.compute_metrics(EvalPrediction(predictions=preds, label_ids=label_ids)) File "examples/seq2seq/run_seq2seq.py", line 556, in compute_metrics result = metric.compute(predictions=decoded_preds, references=decoded_labels) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 402, in compute self._finalize() File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 370, in _finalize raise ValueError( ValueError: Error in finalize: another metric instance is already using the local cache file. Please specify an experiment_id to avoid colision between distributed metric instances. ```
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
452
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
I tried to adjust `run_seq2seq.py` and trainer to use the suggested dist env: ``` import torch.distributed as dist metric = load_metric(metric_name, num_process=dist.get_world_size(), process_id=dist.get_rank()) ``` and in `trainer.py` added to call just for rank 0: ``` if self.is_world_process_zero() and self.compute_metrics is not None and preds is not None and label_ids is not None: metrics = self.compute_metrics(EvalPrediction(predictions=preds, label_ids=label_ids)) ``` and then the process hangs in a deadlock. Here is the tb: ``` File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/filelock.py", line 275 in acquire File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 306 in _check_all_processes_locks File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 501 in _init_writer File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 440 in add_batch File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/metric.py", line 397 in compute File "examples/seq2seq/run_seq2seq.py", line 558 in compute_metrics File "/mnt/nvme1/code/huggingface/transformers-mp-pp/src/transformers/trainer.py", line 1876 in prediction_loop File "/mnt/nvme1/code/huggingface/transformers-mp-pp/src/transformers/trainer.py", line 1703 in evaluate File "/mnt/nvme1/code/huggingface/transformers-mp-pp/src/transformers/trainer_seq2seq.py", line 74 in evaluate File "examples/seq2seq/run_seq2seq.py", line 603 in main File "examples/seq2seq/run_seq2seq.py", line 651 in <module> ``` But this sounds right, since in the above diff I set up a distributed metric and only called one process - so it's blocking on waiting for other processes to do the same. So one working solution is to leave: ``` metric = load_metric(metric_name) ``` alone, and only call `compute_metrics` from rank 0 ``` if self.is_world_process_zero() and self.compute_metrics is not None and preds is not None and label_ids is not None: metrics = self.compute_metrics(EvalPrediction(predictions=preds, label_ids=label_ids)) ``` so we now no longer use the distributed env as far as `datasets` is concerned, it's just a single process. Are there any repercussions/side-effects to this proposed change in Trainer? If it always gathers all inputs on rank 0 then this is how it should have been done in first place - i.e. only run for rank 0. It appears that currently it was re-calculating the metrics on all processes on the same data just to throw the results away other than for rank 0. Unless I missed something.
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
302
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
But no, since ` metric = load_metric(metric_name) ` is called for each process, the race condition is still there. So still getting: ``` ValueError: Error in finalize: another metric instance is already using the local cache file. Please specify an experiment_id to avoid colision between distributed metric instances. ``` i.e. the only way to fix this is to `load_metric` only for rank 0, but this requires huge changes in the code and all end users' code.
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
76
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]
https://github.com/huggingface/datasets/issues/1942
[experiment] missing default_experiment-1-0.arrow
OK, here is a workaround that works. The onus here is absolutely on the user: ``` diff --git a/examples/seq2seq/run_seq2seq.py b/examples/seq2seq/run_seq2seq.py index 2a060dac5..c82fd83ea 100755 --- a/examples/seq2seq/run_seq2seq.py +++ b/examples/seq2seq/run_seq2seq.py @@ -520,7 +520,11 @@ def main(): # Metric metric_name = "rouge" if data_args.task.startswith("summarization") else "sacrebleu" - metric = load_metric(metric_name) + import torch.distributed as dist + if dist.is_initialized(): + metric = load_metric(metric_name, num_process=dist.get_world_size(), process_id=dist.get_rank()) + else: + metric = load_metric(metric_name) def postprocess_text(preds, labels): preds = [pred.strip() for pred in preds] @@ -548,12 +552,17 @@ def main(): # Some simple post-processing decoded_preds, decoded_labels = postprocess_text(decoded_preds, decoded_labels) + kwargs = dict(predictions=decoded_preds, references=decoded_labels) + if metric_name == "rouge": + kwargs.update(use_stemmer=True) + result = metric.compute(**kwargs) # must call for all processes + if result is None: # only process with rank-0 will return metrics, others None + return {} + if metric_name == "rouge": - result = metric.compute(predictions=decoded_preds, references=decoded_labels, use_stemmer=True) # Extract a few results from ROUGE result = {key: value.mid.fmeasure * 100 for key, value in result.items()} else: - result = metric.compute(predictions=decoded_preds, references=decoded_labels) result = {"bleu": result["score"]} prediction_lens = [np.count_nonzero(pred != tokenizer.pad_token_id) for pred in preds] ``` This is not user-friendly to say the least. And it's still wasteful as we don't need other processes to do anything. But it solves the current race condition. Clearly this calls for a design discussion as it's the responsibility of the Trainer to handle this and not user's. Perhaps in the `transformers` land?
the original report was pretty bad and incomplete - my apologies! Please see the complete version here: https://github.com/huggingface/datasets/issues/1942#issuecomment-786336481 ------------ As mentioned here https://github.com/huggingface/datasets/issues/1939 metrics don't get cached, looking at my local `~/.cache/huggingface/metrics` - there are many `*.arrow.lock` files but zero metrics files. w/o the network I get: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow ``` there is just `~/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock` I did run the same `run_seq2seq.py` script on the instance with network and it worked just fine, but only the lock file was left behind. this is with master. Thank you.
233
[experiment] missing default_experiment-1-0.arrow
[ -0.07338229566812515, -0.2563176453113556, -0.19142918288707733, -0.23882794380187988, 0.09620597213506699, -0.09454365074634552, 0.25715136528015137, 0.29895901679992676, 0.2939397692680359, 0.3312016725540161, 0.41444849967956543, 0.48433589935302734, -0.3909769356250763, 0.20366349816322327, -0.12836064398288727, -0.012427924200892448, 0.04852054640650749, 0.1361445188522339, 0.025064844638109207, -0.1442653238773346, -0.2635476291179657, 0.3152832090854645, -0.35496819019317627, 0.4231581389904022, -0.002535457257181406, -0.013908006250858307, 0.10223031789064407, -0.05633821710944176, -0.02639392390847206, -0.6756616234779358, 0.23726284503936768, 0.04641937464475632, -0.00952453725039959, -0.1055658608675003, -0.00010767835192382336, -0.0948563739657402, 0.5123885273933411, 0.03505726531147957, -0.17420154809951782, 0.011398395523428917, 0.0707426592707634, 0.15889862179756165, 0.38810914754867554, -0.14761310815811157, 0.16947367787361145, -0.30423954129219055, 0.26135754585266113, -0.422943651676178, -0.07617928832769394, 0.1717883199453354, 0.2683282792568207, -0.00816939864307642, -0.0634726881980896, -0.33573949337005615, 0.5302495956420898, 0.08845501393079758, 0.1139148399233818, 0.09628438204526901, 0.07557585835456848, 0.16408513486385345, 0.0690593495965004, 0.11897782981395721, 0.2644070088863373, 0.05816793069243431, -0.19567054510116577, -0.16340163350105286, 0.5767311453819275, -0.14351409673690796, 0.025102313607931137, 0.24788957834243774, 0.34044796228408813, 0.01857348531484604, 0.1922793835401535, 0.30116721987724304, 0.05913456529378891, -0.08740293234586716, -0.032410621643066406, -0.05190327391028404, -0.020251858979463577, -0.06938675791025162, 0.3593166172504425, -0.15168605744838715, -0.2578505873680115, 0.3865874111652374, 0.1405244767665863, 0.3565194606781006, -0.023153677582740784, 0.286739319562912, -0.06822386384010315, 0.10204007476568222, 0.10807342082262039, 0.27494099736213684, -0.24306157231330872, -0.0657973662018776, 0.07387864589691162, 0.08613324910402298, 0.27057474851608276, -0.3036779761314392, 0.17930208146572113, 0.6141868233680725, -0.01293075829744339, 0.22090479731559753, 0.23036789894104004, 0.12060167640447617, 0.07964973896741867, 0.03102932870388031, 0.20042355358600616, 0.317363440990448, 0.13779470324516296, 0.19155651330947876, -0.06675458699464798, 0.14685659110546112, -0.06887591630220413, -0.3990168869495392, 0.17460009455680847, 0.129692941904068, 0.10372945666313171, 0.05483289435505867, -0.03603186830878258, 0.26561638712882996, -0.3884243071079254, 0.0022139642387628555, -0.1612589806318283, 0.1449425369501114, 0.4625319838523865, 0.21429257094860077, 0.1965084969997406, 0.09748291224241257, -0.009771961718797684, -0.05262811854481697, -0.4250442087650299, 0.0025981080252677202, -0.17704519629478455, -0.1913677603006363, 0.03061969019472599, 0.19627849757671356, 0.4444088339805603, -0.3651845455169678, 0.21415290236473083, -0.13829578459262848, 0.3954489827156067, 0.15283967554569244, -0.027447914704680443, 0.3350647985935211, -0.0732627734541893, 0.1361035257577896, 0.1754363477230072, 0.19057917594909668, -0.077956423163414, 0.11955490708351135, -0.09534356743097305, -0.4341011643409729, -0.0288234893232584, 0.3067198693752289, -0.07763015478849411, 0.15394942462444305, -0.05404318869113922, -0.02063642255961895, -0.3747020363807678, 0.032997358590364456, -0.031789630651474, -0.2605237364768982, 0.2639870047569275, -0.3770076632499695, 0.3088131546974182, 0.16727660596370697, -0.12999841570854187, -0.22238898277282715, -0.024991990998387337, -0.23230090737342834, 0.11292507499456406, -0.19562387466430664, -0.5058309435844421, 0.24647654592990875, -0.3310911953449249, 0.1429615169763565, 0.2998787760734558, -0.09179210662841797, -0.23893140256404877, -0.20469889044761658, -0.30205821990966797, -0.2659786641597748, -0.029440218582749367, 0.0044500320218503475, -0.21736246347427368, 0.18367742002010345, -0.27238836884498596, 0.02016986347734928, 0.1693471372127533, -0.03234697878360748, -0.18225504457950592, -0.25899526476860046, 0.048848289996385574, -0.052097514271736145, 0.1546834260225296, -0.15414829552173615, -0.07670103013515472, -0.3403382897377014, 0.16223862767219543, 0.025481723248958588, 0.02829020842909813, 0.10332115739583969, 0.7165560126304626, -0.16275666654109955, 0.17911645770072937, -0.07468649744987488, 0.13091085851192474, -0.07517582178115845, 0.10728751868009567, -0.015602481551468372, 0.19432300329208374, 0.025597210973501205, -0.22547553479671478, 0.2012774497270584, -0.0500803217291832, -0.2339639812707901, 0.2732841372489929, 0.26506710052490234, -0.12888842821121216, 0.0829780101776123, -0.3442956507205963, -0.05752526968717575, -0.1618824601173401, -0.030195189639925957, -0.2611466646194458, 0.06926008313894272, -0.26397499442100525, -0.3842495381832123, -0.10789772868156433, -0.22746221721172333, -0.0683184489607811, 0.016749968752264977, -0.16446061432361603, 0.3158847689628601, 0.043215926736593246, -0.055559251457452774, 0.43773457407951355, -0.12265276163816452, -0.23247578740119934, -0.735174834728241, -0.26286134123802185, 0.3016657531261444, -0.006505555473268032, 0.29546666145324707, 0.08304084837436676, 0.3100711703300476, 0.049696989357471466, 0.01852414384484291, -0.11342592537403107, 0.13245470821857452, -0.009198872372508049, -0.03326760232448578, -0.3611816167831421, -0.20121103525161743, 0.20325499773025513, -0.21787138283252716, 0.12303392589092255, -0.3473706543445587, -0.22518165409564972, -0.06970786303281784, 0.10411021113395691, 0.027811016887426376, 0.12992289662361145, 0.09136902540922165, -0.1197759360074997, -0.0891968384385109, 0.01607249304652214, -0.009544366039335728, 0.3703768253326416, 0.4228544533252716, -0.12804411351680756, -0.07461211085319519, -0.2005106657743454, -0.05668347328901291, 0.1839074343442917, -0.03355102986097336, 0.45091909170150757, -0.05093175172805786, 0.15958374738693237, -0.13477765023708344, -0.26546981930732727, -0.3288883864879608, -0.19555054605007172, 0.22848893702030182, -0.30532699823379517, -0.02459276281297207, -0.23335760831832886, 0.28394338488578796, 0.01103182416409254, -0.14625808596611023, 0.4144638776779175, -0.3514454662799835, 0.1744059920310974, -0.22567947208881378, -0.2941601872444153, 0.3789617121219635, -0.3192503750324249, 0.32827913761138916, 0.17772741615772247, 0.0697418674826622, -0.18572381138801575, -0.06771644949913025, -0.4145723879337311, 0.061483610421419144, -0.3339463174343109, 0.1797294318675995, 0.024549763649702072, 0.039277516305446625, 0.07654374837875366, -0.11699072271585464, -0.3463263213634491, 0.049980372190475464, 0.2755492627620697, 0.40122994780540466, 0.5701850056648254, 0.08026251941919327, -0.3707701861858368, -0.22303952276706696, 0.29647523164749146, -0.5859362483024597, -0.08604350686073303, 0.05789485201239586, -0.08056391030550003, -0.102237768471241, -0.20492659509181976, -0.3865140378475189, 0.15681809186935425, -0.1408044546842575, -0.09452179074287415, -0.08903910964727402, 0.07393313944339752, -0.07149233669042587, 0.38413572311401367, 0.04541575908660889, -0.06319884210824966, 0.03155040740966797, -0.2197457253932953, -0.39766159653663635, 0.1726865917444229, -0.15046648681163788, -0.2470550388097763, -0.06909353286027908, -0.24015216529369354, -0.1720326542854309, 0.15119755268096924, -0.41926708817481995, -0.053985390812158585, 0.29399627447128296, -0.09595032036304474, -0.22539925575256348, 0.0384097583591938, 0.2643980085849762, 0.23701231181621552, -0.23434412479400635, -0.2823922336101532, -0.2202741503715515, 0.5622429847717285, -0.13834506273269653, 0.1576588749885559, -0.15814439952373505, 0.17846961319446564, 0.06861432641744614, 0.5787314176559448, 0.05753106251358986, 0.005523559171706438, 0.07554646581411362, -0.10162732750177383, 0.04005178436636925, 0.0013344655744731426, 0.19249841570854187, 0.0964350625872612, 0.275795578956604, 0.09991700947284698, 0.13543906807899475, -0.09503737837076187, -0.21383094787597656, 0.16573871672153473, 0.2253512442111969, -0.19740030169487, -0.17269812524318695, -0.07937930524349213, -0.26450687646865845, 0.17802797257900238, -0.14596568048000336, -0.16186895966529846, -0.2763844132423401, 0.23072192072868347, 0.17050403356552124, 0.2143685668706894, -0.0142023004591465, 0.11561442911624908, -0.1304686963558197, 0.019938532263040543, -0.0728554055094719, 0.27057474851608276, -0.3465678095817566, 0.31095683574676514, 0.12476027011871338, -0.199081689119339, 0.0632655993103981, -0.23907583951950073, 0.5555779337882996, -0.21369734406471252, -0.05590081587433815, 0.045771244913339615, 0.5499215126037598, -0.49922314286231995, -0.38678431510925293, -0.14785893261432648, -0.02390875667333603, 0.1480982005596161, 0.015496044419705868, -0.009966571815311909, 0.053609758615493774, 0.4032469689846039, -0.19727888703346252, 0.042959656566381454, -0.08398469537496567, -0.3231596350669861, -0.5041266083717346, -0.17668870091438293, -0.09038788825273514, -0.1212175041437149, -0.028618192300200462, 0.11303319782018661, -0.029134241864085197, -0.24746489524841309, -0.20340846478939056, -0.07499391585588455, -0.08725621551275253, 0.25422200560569763, -0.24510692059993744, 0.0472249835729599, 0.16470268368721008, 0.13692232966423035, 0.3939920663833618, 0.08993075042963028, 0.07777455449104309, -0.04424583539366722, 0.22407805919647217, -0.15216152369976044, 0.3052811324596405, 0.3963155150413513, -0.16503241658210754, 0.17141205072402954, -0.19537119567394257, 0.12074442952871323, 0.4065832197666168, 0.2974751591682434, 0.39014503359794617, -0.23376984894275665, 0.21583575010299683, 0.0418514758348465, 0.14214670658111572, -0.16791486740112305, -0.17954030632972717, 0.4618099629878998, 0.0016146327834576368, -0.2205052673816681, 0.551200807094574, -0.020139802247285843, 0.7275046110153198, 0.4271324574947357, -0.0719362199306488, 0.23172366619110107, -0.48550042510032654, -0.17662498354911804, 0.35336416959762573, 0.22193369269371033, -0.29762959480285645, 0.05653533339500427, 0.08810136467218399, -0.31069034337997437, 0.20999391376972198, 0.06150103360414505, -0.13516642153263092, -0.054921746253967285, -0.3186900019645691, -0.030002208426594734, 0.06897790729999542, 0.09034651517868042, 0.17793762683868408, 0.12064623832702637, 0.34213516116142273, 0.17998173832893372, -0.12005409598350525, 0.12995533645153046, -0.056798920035362244, -0.04693141207098961, -0.2868349254131317, -0.2513922452926636, -0.12357806414365768, 0.043624915182590485, -0.31604906916618347, 0.26310062408447266, 0.2465209662914276, -0.12392108887434006, -0.15334336459636688, -0.10628177970647812, -0.0717230960726738, 0.16459310054779053, 0.02178170531988144, 0.2244691550731659, 0.7356694340705872, -0.31103143095970154, -0.10330842435359955, -0.0472026988863945, 0.18336030840873718, -0.034296225756406784, -0.4415014982223511, 0.24587087333202362, -0.07831568270921707, -0.1968427449464798, -0.05263688787817955, -0.15010368824005127, 0.2237682044506073, 0.11698814481496811, -0.09414774924516678, 0.26398515701293945, 0.0991922989487648, -0.22158992290496826, 0.24340100586414337, 0.05768607556819916, -0.07735776901245117, 0.007427734322845936, 0.17865434288978577, -0.08693143725395203, -0.05918387696146965, 0.016482412815093994, -0.07025766372680664, 0.12721432745456696, 0.4418889582157135, -0.303492933511734, -0.04920727387070656, -0.24086853861808777, 0.35167235136032104, 0.5980312824249268, -0.5040037631988525, 0.08273280411958694, -0.22433249652385712, -0.1405806988477707, 0.23787645995616913, 0.151678666472435, 0.18219254910945892, 0.025884414091706276, -0.05522395297884941, -0.07693187892436981, -0.3262910544872284, 0.2976842224597931, -0.3800983726978302, 0.3495447635650635, -0.29061928391456604, 0.06828244775533676, -0.27491670846939087, -0.05599164590239525, -0.45808732509613037, 0.17504218220710754, -0.02774493768811226, -0.1328863799571991, -0.3782581388950348, 0.05254589766263962, -0.044740281999111176, -0.06645707041025162, 0.2924724519252777, -0.14733535051345825, -0.19807475805282593, -0.36135777831077576, -0.1212720051407814, 0.06749767810106277, -0.1900569498538971, -0.0679909735918045, 0.0851222351193428, 0.04816756397485733, -0.12315084785223007, 0.14557668566703796, -0.13605906069278717, 0.03645617142319679, -0.03182367607951164, -0.08509685844182968, 0.0256769061088562, 0.07440804690122604, 0.09053093194961548, 0.008591077290475368, 0.09222570806741714, 0.12269804626703262, -0.0601789653301239, 0.04129414260387421, 0.002628382993862033, -0.09343773126602173, 0.18997494876384735, -0.011773832142353058, -0.27196893095970154, 0.45674818754196167, -0.08323000371456146, -0.3791641294956207, -0.3320375084877014, -0.30419600009918213, 0.20091620087623596, 0.058162253350019455, -0.45328426361083984, 0.023168206214904785, 0.03457120060920715, 0.2772741913795471, -0.1987772285938263, 0.13515089452266693, 0.23516283929347992, 0.19554059207439423, 0.05574650689959526, 0.13007961213588715, 0.28008970618247986, 0.004382469691336155, -0.07505227625370026, 0.28275585174560547, -0.05505428835749626, -0.0020123340655118227, 0.18402670323848724, 0.12701070308685303, -0.191808819770813, 0.034108567982912064, 0.11474467068910599, 0.15916353464126587, 0.5101093053817749, 0.1402721405029297, 0.39319872856140137, 0.21879073977470398, 0.30925023555755615, 0.08420917391777039, -0.20198285579681396, -0.10012135654687881, 0.1556759625673294, 0.17437435686588287, -0.07907614856958389, 0.11985009908676147, 0.297529935836792, 0.523160994052887, -0.07049862295389175, -0.1263708919286728, -0.05998150259256363, -0.06919710338115692, -0.03404867276549339, -0.2948487401008606, -0.26769593358039856, -0.056075919419527054, -0.35850009322166443, 0.021827787160873413, 0.0852581039071083, 0.079247385263443, -0.10512660443782806, 0.006841063033789396, -0.35907942056655884, -0.021083226427435875, 0.045942701399326324, 0.1251343935728073, 0.2897728383541107, -0.1121123656630516, 0.12781015038490295, -0.17390459775924683, -0.2710684537887573, 0.08542943000793457, 0.3444783389568329, 0.15591607987880707, 0.20469620823860168, -0.48853373527526855, -0.27416783571243286, 0.4546129107475281, -0.18124304711818695, 0.1042744591832161, -0.2722580134868622, 0.6661026477813721, -0.150001659989357, 0.11897220462560654, 0.27008408308029175, -0.26642727851867676, 0.11110973358154297, 0.22039155662059784, 0.2393447458744049, 0.10495764017105103, -0.027974441647529602, -0.20977942645549774, 0.04713478311896324, 0.13767220079898834, -0.10951192677021027, -0.42086634039878845, 0.025492025539278984, -0.01933063007891178, 0.05343477427959442, -0.07183245569467545, -0.13362319767475128, 0.13135820627212524, -0.13859650492668152, 0.21286779642105103, 0.09542371332645416, 0.1667448878288269, -0.07739390432834625, -0.49988043308258057, -0.16228152811527252, 0.46386653184890747, -0.15928927063941956, -0.12301899492740631, 0.20654097199440002, 0.12575890123844147, 0.050703827291727066, -0.20149141550064087, 0.4277804493904114, 0.1337045282125473, -0.0012911700177937746, 0.36178672313690186, -0.2743280827999115, -0.15342596173286438, 0.317817747592926, -0.044663358479738235, 0.024154070764780045, -0.167465478181839, -0.19011695683002472, 0.031027359887957573, 0.25186729431152344, 0.07940498739480972, -0.302703857421875, 0.1453576385974884, -0.12642282247543335, 0.6104909181594849, -0.13626687228679657, 0.22465942800045013, -0.09688831865787506, -0.008991768583655357, -0.19671279191970825, -0.1396997720003128, -0.18452610075473785, 0.2383011132478714, 0.034197062253952026, 0.33526232838630676, 0.0071235643699765205, -0.08720909059047699, -0.15097036957740784, -0.24825020134449005, 0.30554676055908203, 0.17499811947345734, -0.3641285300254822, 0.2883700430393219, -0.08304545283317566, -0.1307295262813568, -0.02709234319627285, 0.010530885308980942, -0.030312465503811836, 0.03268476575613022, -0.2733916938304901, -0.07725540548563004, 0.4568531811237335, -0.13775940239429474, -0.07872314006090164, -0.19743241369724274, 0.21073180437088013, 0.38373494148254395, 0.07123758643865585, -0.5163736343383789, -0.0896122083067894, 0.20244310796260834, 0.04563817009329796, -0.35704565048217773, 0.06682098656892776, -0.1259520798921585, 0.042168110609054565, 0.15921980142593384, 0.47707608342170715, 0.07246534526348114, 0.040262334048748016, -0.33871057629585266, -0.23821936547756195 ]