html_url
stringlengths
51
51
comments
stringlengths
67
24.7k
title
stringlengths
6
280
body
stringlengths
51
36.2k
comment_length
int64
16
1.45k
text
stringlengths
190
38.3k
embeddings
sequence
https://github.com/huggingface/datasets/issues/1973
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.
Question: what gets stored in the datasets cache and why is it so huge?
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? 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! 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.
[ -0.083351269364357, 0.012125179171562195, -0.12917551398277283, 0.5186681747436523, 0.14931663870811462, 0.24268411099910736, -0.07578988373279572, 0.30196478962898254, -0.08773332834243774, -0.03593554347753525, -0.029559383168816566, -0.2534342408180237, -0.09368433058261871, -0.20080336928367615, 0.07230770587921143, 0.13656356930732727, 0.09018171578645706, -0.06537248194217682, -0.07659350335597992, -0.07977360486984253, -0.1062292829155922, -0.043325863778591156, -0.013511911034584045, -0.17180104553699493, -0.5766088962554932, -0.18230772018432617, -0.12539711594581604, -0.005154190585017204, -0.20074281096458435, -0.178348109126091, 0.18084004521369934, -0.029162446036934853, 0.32375776767730713, 0.38231003284454346, -0.00010807604849105701, -0.31838861107826233, 0.35694918036460876, 0.025818049907684326, -0.359981507062912, 0.34427011013031006, -0.500037431716919, -0.2974618077278137, -0.13125795125961304, -0.13604414463043213, 0.34045925736427307, -0.04578777402639389, -0.03741244971752167, -0.3942118287086487, -0.007716543972492218, 0.2449932098388672, 0.27596545219421387, -0.22573740780353546, -0.30558323860168457, 0.09275811910629272, 0.2078102082014084, 0.023613635450601578, -0.13388359546661377, -0.2668147683143616, 0.2703861892223358, 0.16546976566314697, -0.17307280004024506, 0.18160931766033173, 0.09015263617038727, -0.04119528830051422, 0.2849493622779846, -0.0867876261472702, -0.24214377999305725, -0.2034812867641449, 0.6005625128746033, 0.21978552639484406, 0.9331114888191223, -0.3052317500114441, -0.10026450455188751, -0.1678258776664734, -0.1438966542482376, -0.15129095315933228, 0.21347478032112122, 0.4073270261287689, 0.07088311016559601, -0.00555082131177187, -0.5161410570144653, -0.4197384715080261, -0.14416591823101044, -0.12126165628433228, -0.1735284924507141, -0.2512039542198181, -0.2740026116371155, 0.058907367289066315, 0.16172842681407928, -0.061854343861341476, 0.4042036533355713, -0.24128006398677826, -0.16097186505794525, 0.1731909215450287, -0.3817916810512543, -0.2755793333053589, -0.22292403876781464, 0.4864886403083801, 0.24029533565044403, 0.003844626247882843, -0.26005789637565613, -0.10929202288389206, -0.1039828360080719, -0.02029542252421379, 0.22253361344337463, 0.39484506845474243, -0.10594756156206131, 0.10321484506130219, -0.03397013992071152, -0.35649317502975464, -0.23452839255332947, -0.17827552556991577, 0.1071285754442215, 0.02326561138033867, 0.43477344512939453, -0.4517470598220825, -0.19633576273918152, -0.35398629307746887, 0.20494788885116577, 0.14514026045799255, -0.020994804799556732, -0.024574704468250275, 0.14594870805740356, 0.19458219408988953, -0.16341917216777802, 0.2311793565750122, -0.2916729748249054, -0.2418980449438095, 0.01457814872264862, -0.2142631709575653, -0.24923725426197052, -0.0623592808842659, -0.1481209695339203, 0.3357029855251312, 0.3038076162338257, -0.17901358008384705, 0.2806240916252136, 0.06774473190307617, -0.024850770831108093, -0.14286865293979645, 0.23853960633277893, -0.3573532700538635, 0.4010711908340454, 0.32826557755470276, -0.1311090588569641, 0.2729569971561432, -0.20016679167747498, 0.1455441415309906, -0.19071358442306519, 0.19668680429458618, -0.5129280090332031, -0.4545750617980957, -0.005171626806259155, 0.11762925982475281, -0.10547609627246857, 0.03789423406124115, -0.31925123929977417, 0.047287940979003906, 0.4130821228027344, 0.16914790868759155, 0.17519228160381317, -0.12079060077667236, -0.40182480216026306, -0.23242735862731934, -0.12635931372642517, 0.18704436719417572, -0.3892208933830261, 0.21346180140972137, 0.00994645431637764, 0.21145999431610107, 0.05776025727391243, 0.38362351059913635, -0.14838218688964844, 0.07767549902200699, -0.08700759708881378, -0.12093755602836609, 0.00015602260828018188, -0.0795794278383255, -0.6367112398147583, 0.121822789311409, 0.3812287747859955, -0.11843281984329224, -0.018993739038705826, 0.4304908514022827, 0.028324440121650696, -0.09627887606620789, -0.17109984159469604, 0.23588773608207703, -0.270553857088089, -0.13954415917396545, -0.2917768955230713, -0.12081360816955566, -0.008378236554563046, -0.03804628551006317, 0.08657791465520859, -0.16433614492416382, -0.014614716172218323, 0.3307114541530609, -0.0058594271540641785, 0.13749012351036072, 0.0867403894662857, 0.34328222274780273, -0.030141349881887436, 0.2613256275653839, 0.3053286075592041, 0.04604729264974594, -0.43413597345352173, 0.27020832896232605, 0.18654239177703857, -0.6862897872924805, 0.19061625003814697, -0.13464300334453583, 0.14363634586334229, 0.04208240658044815, -0.0126283448189497, -0.19467326998710632, 0.02075967565178871, 0.0416753850877285, 0.06791277229785919, -0.2097647786140442, -0.018892548978328705, 0.5739927291870117, -0.09885572642087936, -0.18633444607257843, -0.39654019474983215, -0.21634909510612488, 0.043104469776153564, 0.03913123160600662, -0.07313458621501923, -0.01377023383975029, 0.05581396073102951, -0.08921067416667938, -0.1688680797815323, 0.13615231215953827, 0.232118621468544, -0.1308441162109375, 0.21741905808448792, 0.5695487260818481, -0.03552957996726036, 0.09772704541683197, 0.37127044796943665, -0.100741446018219, 0.07561762630939484, -0.19840531051158905, -0.24194926023483276, -0.017981037497520447, -0.15060193836688995, 0.1063496395945549, 0.027817800641059875, -0.11540144681930542, 0.00165470689535141, 0.06064079701900482, 0.29642021656036377, 0.0728689581155777, 0.13805486261844635, -0.105886310338974, 0.32459205389022827, 0.43826767802238464, -0.07809954881668091, 0.1765003353357315, 0.46059027314186096, -0.15093907713890076, -0.04101954400539398, 0.15645891427993774, -0.24239349365234375, -0.47892963886260986, 0.1506144106388092, 0.33113807439804077, 0.3907628655433655, 0.10922098159790039, 0.2850664556026459, -0.10331206023693085, 0.28684157133102417, -0.16082417964935303, 0.08122281730175018, 0.06671321392059326, 0.02194913476705551, -0.28847363591194153, 0.09321268647909164, -0.04104219377040863, -0.012691706418991089, 0.21647179126739502, -0.05561837926506996, 0.2983463406562805, -0.010992564260959625, 0.34918448328971863, -0.2550541162490845, -0.1621958315372467, -0.0070123858749866486, 0.3860314190387726, -0.23294776678085327, -0.1407172828912735, -0.10029157996177673, -0.058441922068595886, 0.2660433053970337, -0.14862437546253204, -0.23000767827033997, 0.5778570771217346, 0.08205220848321915, 0.14235779643058777, 0.08803539723157883, -0.0799468457698822, -0.3060517907142639, 0.11107517778873444, 0.2493349015712738, -0.3045138120651245, 0.1999036818742752, 0.11631274223327637, 0.06194917485117912, -0.27682942152023315, -0.1332399696111679, -0.10868600010871887, 0.1835203915834427, 0.19871506094932556, -0.30276232957839966, 0.010949578136205673, -0.31781136989593506, 0.13803234696388245, -0.36269769072532654, -0.18484386801719666, -0.11651099473237991, 0.14849182963371277, -0.044606488198041916, -0.006233222782611847, 0.21585291624069214, -0.07369847595691681, -0.16288445889949799, -0.019652321934700012, 0.17239540815353394, -0.161550372838974, 0.04386012256145477, 0.30778753757476807, -0.13090229034423828, 0.03141215816140175, -0.2782611846923828, -0.04710661619901657, -0.32294952869415283, -0.8187432289123535, 0.29752117395401, 0.10099118947982788, -0.22606679797172546, 0.13213323056697845, 0.24605898559093475, 0.0601857453584671, 0.19010335206985474, -0.7528630495071411, 0.15993741154670715, -0.24015824496746063, 0.15511037409305573, -0.0018200328340753913, -0.03075486794114113, 0.2011796087026596, -0.17981603741645813, 0.0073361583054065704, -0.12457916885614395, -0.19678792357444763, -0.2765602469444275, 0.14565631747245789, 0.49150389432907104, -0.19250282645225525, -0.06338517367839813, 0.33709874749183655, 0.5671010613441467, 0.5190480351448059, 0.044670216739177704, -0.07052545994520187, 0.3782271146774292, 0.44874027371406555, -0.3152044713497162, -0.08806606382131577, 0.26867467164993286, -0.14358356595039368, -0.04211730137467384, 0.4030550718307495, 0.34275004267692566, -0.16616614162921906, 0.21249550580978394, -0.06964315474033356, 0.17014940083026886, 0.036047592759132385, 0.1999654620885849, -0.28181809186935425, 0.16307853162288666, 0.19151422381401062, -0.21352340281009674, -0.08052893728017807, -0.4090752601623535, -0.009726013988256454, -0.04902387037873268, 0.06044083833694458, 0.31397244334220886, -0.20419147610664368, -0.021627983078360558, -0.03547976538538933, 0.09545398503541946, 0.037373319268226624, 0.03401898592710495, -0.07384800910949707, 0.2846226692199707, 0.21864473819732666, 0.30762672424316406, 0.37588587403297424, -0.18458257615566254, -0.12808284163475037, -0.19487692415714264, -0.15428954362869263, 0.04977218806743622, 0.004588477313518524, 0.07709994912147522, 0.31253674626350403, 0.10592927038669586, 0.12062159180641174, 0.31958895921707153, -0.16949500143527985, -0.0632762461900711, 0.44007793068885803, -0.3505926728248596, -0.34305888414382935, 0.03119412064552307, -0.1552644968032837, 0.2621400058269501, -0.11667093634605408, -0.07119590044021606, -0.22512155771255493, 0.028257571160793304, -0.039983686059713364, -0.11761835962533951, 0.08859752118587494, 0.14254075288772583, -0.14572429656982422, 0.1115199625492096, 0.23307058215141296, 0.1177615225315094, 0.16494232416152954, 0.1629829704761505, 0.13254323601722717, 0.29924941062927246, -0.10561061650514603, 0.17948997020721436, 0.04357912763953209, -0.051701441407203674, 0.19084084033966064, 0.08868308365345001, -0.21062883734703064, -0.19950354099273682, -0.21762770414352417, -0.10438524186611176, -0.177401602268219, 0.24699072539806366, 0.049936503171920776, 0.15932446718215942, -0.28423649072647095, -0.5892309546470642, 0.4678241014480591, 0.2875884473323822, -0.05030324310064316, 0.28165021538734436, -0.3000888228416443, -0.026213165372610092, -0.1170727014541626, 0.07197947800159454, 0.64000004529953, -0.21708503365516663, 0.3547424376010895, -0.1607196182012558, -0.0057513415813446045, 0.32526347041130066, -0.4948312044143677, -0.020331980660557747, -0.03172171860933304, -0.2943030893802643, 0.0027604028582572937, -0.07939692586660385, -0.1042395606637001, 0.016008127480745316, -0.03759901970624924, 0.38064560294151306, -0.07707986235618591, 0.01714608632028103, 0.10230306535959244, 0.21115723252296448, 0.06839176267385483, -0.12194783985614777, 0.14120334386825562, 0.282170832157135, -0.13760429620742798, -0.14865592122077942, -0.025010444223880768, 0.10325049608945847, 0.033487409353256226, 0.22285041213035583, -0.29270264506340027, -0.17541369795799255, -0.02821662276983261, 0.319963276386261, -0.0239457618445158, -0.11030609905719757, 0.022418320178985596, 0.15084631741046906, 0.1966027170419693, 0.22022265195846558, -0.17551344633102417, 0.29170098900794983, -0.05908002331852913, 0.1441815048456192, 0.22621753811836243, -0.13732516765594482, 0.1802840381860733, -0.09225533902645111, -0.015595868229866028, -0.006195595487952232, 0.07561682164669037, -0.20754656195640564, -0.18158088624477386, 0.25903627276420593, 0.17530035972595215, -0.03187050670385361, -0.18097379803657532, 0.011145170778036118, 0.0968552976846695, 0.07200310379266739, 0.178218275308609, 0.3341042101383209, -0.014710275456309319, 0.5450965166091919, -0.19173571467399597, -0.40850841999053955, -0.03902474790811539, 0.03764554113149643, 0.4952646493911743, -0.26499080657958984, 0.296145498752594, 0.010836146771907806, -0.21051043272018433, -0.030077781528234482, 0.24015142023563385, 0.10652485489845276, -0.01922179013490677, 0.04640539363026619, -0.19875448942184448, 0.23846442997455597, -0.10023343563079834, -0.3699207007884979, 0.06721990555524826, -0.36938270926475525, -0.15306425094604492, -0.11523054540157318, -0.4739055037498474, -0.05565830320119858, -0.24850673973560333, 0.21754039824008942, -0.003382563591003418, -0.44056835770606995, 0.12124781310558319, 0.496489018201828, -0.2847177982330322, 0.0173555426299572, 0.07669522613286972, 0.25611448287963867, 0.012819483876228333, -0.10730955749750137, 0.06617902219295502, -0.13967496156692505, -0.08898721635341644, -0.08182470500469208, -0.14626546204090118, -0.2698169946670532, 0.06404075026512146, 0.1060323715209961, 0.17889443039894104, -0.0970170721411705, -0.1527717262506485, -0.38588255643844604, -0.00404991302639246, -0.24052123725414276, 0.050816960632801056, 0.2874116599559784, 0.2743217945098877, 0.09709447622299194, 0.02815713733434677, -0.3459441065788269, 0.1409604549407959, 0.3457018733024597, 0.0663541704416275, 0.2746600806713104, 0.05741584300994873, 0.1722717136144638, 0.15250813961029053, -0.2675606608390808, -0.3174440264701843, 0.19160962104797363, -0.10968665778636932, -0.11077544093132019, 0.1850317418575287, -0.20563389360904694, 0.21950763463974, 0.4261026680469513, -0.15347279608249664, 0.1396079659461975, -0.06268114596605301, -0.1825830340385437, 0.1420995444059372, 0.1769847422838211, 0.21078085899353027, -0.15529939532279968, 0.02702793851494789, 0.38250964879989624, -0.263172447681427, 0.10178646445274353, 0.18272235989570618, -0.09958221763372421, 0.11504150927066803, 0.09167831391096115, 0.348876953125, -0.32273513078689575, 0.08936365693807602, -0.001847204752266407, 0.23433305323123932, -0.14708980917930603, 0.4342317581176758, 0.5094911456108093, 0.055607348680496216, 0.5676189661026001, 0.21294182538986206, 0.3438631296157837, 0.42684346437454224, -0.13542112708091736, -0.07074737548828125, -0.26903000473976135, -0.22017359733581543, 0.43182486295700073, -0.1616871953010559, 0.060006193816661835, -0.09151024371385574, 0.20035529136657715, 0.25256091356277466, -0.3557160496711731, -0.10636129975318909, -0.09107479453086853, -0.2840983271598816, -0.05441412329673767, 0.4328335225582123, 0.01951521635055542, 0.16266277432441711, 0.2804257869720459, -0.0502702072262764, -0.31966614723205566, 0.4784550964832306, 0.017623666673898697, -0.231543630361557, -0.2045261263847351, 0.26570987701416016, 0.2216135859489441, -0.0962502658367157, -0.1503150761127472, 0.2840472459793091, -0.2878264784812927, -0.05214701220393181, -0.002057373058050871, 0.13535000383853912, 0.10797477513551712, 0.11734338849782944, 0.0900891125202179, 0.29024994373321533, 0.12607815861701965, -0.11774709820747375, -0.1577920913696289, 0.24564489722251892, -0.1479882001876831, -0.16312427818775177, -0.05842380225658417, 0.10515078902244568, 0.08605799823999405, 0.18093451857566833, -0.010962732136249542, 0.20414358377456665, -0.2903202772140503, -0.18781547248363495, 0.08265344798564911, -0.02916301041841507, -0.1981458216905594, 0.3062012493610382, -0.39896905422210693, -0.1746676117181778, 0.6400591135025024, -0.2770073711872101, 0.07932482659816742, -0.1532570868730545, 0.11832151561975479, -0.25594425201416016, 0.5393369197845459, 0.46384283900260925, 0.06437891721725464, -0.2885501980781555, -0.06692662835121155, -0.2184085100889206, 0.09966051578521729, -0.32707974314689636, 0.4932589530944824, -0.029724914580583572, 0.4698670506477356, -0.20549798011779785, -0.10499174892902374, -0.09086846560239792, -0.10213950276374817, -0.010525327175855637, -0.10089132934808731, -0.3023272156715393, -0.048751723021268845, 0.13508716225624084, 0.18933823704719543, 0.03125413507223129, -0.14794626832008362, 0.3177109658718109, -0.2440878003835678, 0.013977088034152985, -0.1394675076007843, -0.006686680018901825, 0.15136374533176422, 0.35545575618743896, 0.08276582509279251, 0.04882548749446869, -0.047821205109357834, 0.15646131336688995, 0.14938688278198242, -0.3969498574733734, -0.05113629251718521, 0.08510055392980576, -0.06664634495973587, 0.028011180460453033, -0.04668707400560379, -0.5293644666671753, 0.19655841588974, 0.09991392493247986, 0.12868915498256683, -0.27230745553970337, -0.0669393539428711, 0.06155897676944733, -0.38561493158340454, -0.1979496330022812, 0.38144317269325256, 0.3347817659378052, 0.1350271999835968, -0.11805056035518646, -0.10023900866508484, -0.28793472051620483, -0.06453908979892731, 0.2868935465812683, 0.008070491254329681, -0.3462715744972229, 0.06570084393024445, 0.10393251478672028, 0.4476659595966339, -0.12307938933372498, -0.39590492844581604, 0.1256313920021057, 0.40894371271133423, -0.09788438677787781, -0.1693582534790039, 0.2278122901916504, -0.13476134836673737, 0.22644512355327606, -0.09897688031196594, 0.5771961212158203, -0.05495820194482803, -0.007208332419395447, 0.20377424359321594, -0.15643367171287537 ]
https://github.com/huggingface/datasets/issues/1973
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.
Question: what gets stored in the datasets cache and why is it so huge?
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? 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! 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.
[ -0.16135650873184204, 0.07331600785255432, -0.1333290934562683, 0.5806113481521606, 0.07841743528842926, 0.2742607295513153, -0.05600647255778313, 0.2457103431224823, -0.12449808418750763, -0.08306530117988586, -0.040894266217947006, -0.27977681159973145, -0.10303002595901489, -0.1785741150379181, 0.09679725766181946, 0.21813398599624634, 0.08794700354337692, -0.12072987854480743, -0.1814735233783722, -0.16226376593112946, -0.10233274102210999, -0.01791669987142086, 0.022489279508590698, -0.11800529062747955, -0.652338981628418, -0.2212355136871338, -0.11310683190822601, 0.05517330765724182, -0.1404678374528885, -0.09337922930717468, 0.14397668838500977, -0.04608601704239845, 0.3950195908546448, 0.5104982852935791, -0.00011396428453736007, -0.2925596237182617, 0.3823724091053009, 0.054507046937942505, -0.40455538034439087, 0.3270021677017212, -0.45708414912223816, -0.3279610276222229, -0.10859270393848419, -0.10039503872394562, 0.4394215941429138, -0.020424075424671173, 0.0014367494732141495, -0.34280920028686523, -0.018662799149751663, 0.26404517889022827, 0.23587557673454285, -0.30489450693130493, -0.36351919174194336, 0.11350012570619583, 0.1681373417377472, 0.12315856665372849, -0.044124454259872437, -0.2613186538219452, 0.24550467729568481, 0.12986153364181519, -0.13263536989688873, 0.1569850891828537, 0.10747438669204712, -0.029607106000185013, 0.18506112694740295, -0.05028685927391052, -0.21645587682724, -0.2998596429824829, 0.7091445922851562, 0.2274084836244583, 0.8417990207672119, -0.238404780626297, -0.08283193409442902, -0.27496111392974854, -0.1479179561138153, -0.15803246200084686, 0.2207847535610199, 0.5174492597579956, 0.11287862062454224, -0.03170405328273773, -0.5117551684379578, -0.3802757263183594, -0.06558087468147278, -0.18402908742427826, -0.17930488288402557, -0.20469067990779877, -0.30948102474212646, 0.08251364529132843, 0.14816109836101532, -0.005911370273679495, 0.3916049003601074, -0.2668059766292572, -0.14145693182945251, 0.2316584587097168, -0.3380458652973175, -0.24815522134304047, -0.1725747287273407, 0.5365598797798157, 0.18176010251045227, -0.03296520933508873, -0.34442007541656494, -0.11244174093008041, -0.21145886182785034, -0.00009309127926826477, 0.2603338956832886, 0.3116799294948578, -0.08617018163204193, 0.11873979866504669, 0.008573288097977638, -0.38542959094047546, -0.32199886441230774, -0.1497400850057602, 0.0372534915804863, 0.022133518010377884, 0.39942288398742676, -0.4164707660675049, -0.17342941462993622, -0.3614159822463989, 0.19853782653808594, 0.19566363096237183, -0.004233524203300476, -0.07227513194084167, 0.112116239964962, 0.21831652522087097, -0.18712656199932098, 0.20367135107517242, -0.2611677348613739, -0.23135881125926971, 0.028411418199539185, -0.15328052639961243, -0.22855079174041748, -0.09090612828731537, -0.13276413083076477, 0.2995838522911072, 0.27651557326316833, -0.13965456187725067, 0.3309638798236847, 0.036887772381305695, -0.06481777131557465, -0.15633389353752136, 0.25494349002838135, -0.3582819104194641, 0.39509984850883484, 0.409376859664917, -0.11242853105068207, 0.33273977041244507, -0.22172005474567413, 0.21154437959194183, -0.18270739912986755, 0.2137182652950287, -0.5258373022079468, -0.4418342113494873, -0.015943588688969612, 0.09838327765464783, -0.15725252032279968, 0.07682522386312485, -0.34537142515182495, -0.018948975950479507, 0.457103967666626, 0.22756145894527435, 0.22568225860595703, -0.16460183262825012, -0.327908456325531, -0.18948078155517578, -0.22783705592155457, 0.1464494913816452, -0.39103803038597107, 0.25113654136657715, 0.017940599471330643, 0.14544273912906647, 0.07118398696184158, 0.29794740676879883, -0.11915399134159088, 0.13153959810733795, -0.09786944091320038, -0.13482937216758728, 0.02798352763056755, -0.04060835763812065, -0.5370234251022339, 0.14215362071990967, 0.4007994532585144, -0.16228267550468445, -0.0745798647403717, 0.3459576368331909, 0.029050521552562714, -0.0679926723241806, -0.15144817531108856, 0.2860538959503174, -0.21083350479602814, -0.12791737914085388, -0.26541420817375183, -0.0885380357503891, -0.038382478058338165, -0.018470723181962967, 0.0998503565788269, -0.22328928112983704, -0.03680524230003357, 0.18819589912891388, 0.02879282273352146, 0.16778533160686493, 0.09766267240047455, 0.3306000232696533, -0.13978376984596252, 0.428025484085083, 0.2879229187965393, 0.030645698308944702, -0.43177711963653564, 0.23434025049209595, 0.13497446477413177, -0.6966274976730347, 0.16239652037620544, -0.12691153585910797, 0.255429208278656, 0.07292601466178894, -0.073100246489048, -0.23378953337669373, -0.02797136828303337, 0.18455487489700317, 0.030133016407489777, -0.18576768040657043, -0.07111489027738571, 0.49552029371261597, -0.11407344043254852, -0.16077885031700134, -0.42972105741500854, -0.18484492599964142, 0.14315485954284668, -0.002323571592569351, -0.1459566354751587, 0.04111892729997635, 0.07868631184101105, -0.11176121234893799, -0.1637635976076126, 0.11105522513389587, 0.24776634573936462, -0.14847104251384735, 0.26828205585479736, 0.5673515200614929, -0.054856471717357635, 0.1951502412557602, 0.30026736855506897, -0.07163188606500626, 0.06362515687942505, -0.17340657114982605, -0.24021783471107483, -0.05086926370859146, -0.20770718157291412, 0.15258382260799408, 0.0015329346060752869, -0.1117343008518219, 0.05426669865846634, 0.019022032618522644, 0.26369571685791016, 0.12933962047100067, 0.16328711807727814, -0.07560355961322784, 0.21680346131324768, 0.4447784721851349, -0.15190565586090088, 0.17478115856647491, 0.47067365050315857, -0.17711672186851501, -0.05168406665325165, 0.11131913959980011, -0.28502538800239563, -0.4193943440914154, 0.10504424571990967, 0.4016011655330658, 0.445222944021225, 0.0496109202504158, 0.36043891310691833, -0.07568245381116867, 0.27754634618759155, -0.18372842669487, 0.020887643098831177, 0.0748990848660469, -0.048793502151966095, -0.1522929072380066, 0.0795726329088211, -0.007895473390817642, -0.03030967339873314, 0.16812044382095337, -0.07387136667966843, 0.29049211740493774, -0.03633507713675499, 0.35726797580718994, -0.258059561252594, -0.13162389397621155, -0.07329103350639343, 0.3482123613357544, -0.21507878601551056, -0.13651269674301147, -0.10949185490608215, -0.07098633050918579, 0.23806992173194885, -0.1624610722064972, -0.2139178216457367, 0.5364329218864441, -0.014211490750312805, 0.15005765855312347, 0.07355234771966934, -0.08932934701442719, -0.3087902069091797, 0.06903234869241714, 0.25723156332969666, -0.2098606377840042, 0.20478904247283936, 0.09221147000789642, 0.06648366153240204, -0.2757596969604492, -0.12378253042697906, -0.1766272336244583, 0.19516810774803162, 0.20612147450447083, -0.28823786973953247, 0.0006668455898761749, -0.26265963912010193, 0.09052561968564987, -0.33990851044654846, -0.14419257640838623, -0.043229617178440094, 0.06099618971347809, -0.06964794546365738, 0.007228147238492966, 0.20787955820560455, -0.005457226186990738, -0.20654363930225372, -0.026030294597148895, 0.19364818930625916, -0.1558229625225067, -0.006877453997731209, 0.20635364949703217, -0.2218584567308426, 0.01618874818086624, -0.24534854292869568, -0.015154184773564339, -0.3820665776729584, -0.9283382892608643, 0.2592497766017914, 0.036852169781923294, -0.16974741220474243, 0.20853659510612488, 0.1965109407901764, 0.023202218115329742, 0.16150560975074768, -0.7610756158828735, 0.20209960639476776, -0.23725493252277374, 0.1262795478105545, 0.007773073390126228, 0.03110247291624546, 0.20271974802017212, -0.17444920539855957, 0.042353831231594086, -0.1398317515850067, -0.2366737723350525, -0.30541303753852844, 0.18709085881710052, 0.5237818360328674, -0.21063722670078278, -0.0840957909822464, 0.18112455308437347, 0.5365935564041138, 0.486647367477417, -0.03816461190581322, -0.12050739675760269, 0.42254334688186646, 0.4848381280899048, -0.2912488579750061, -0.07838442176580429, 0.2911514341831207, -0.08664323389530182, -0.09044158458709717, 0.4184951186180115, 0.35391467809677124, -0.0811956375837326, 0.25119438767433167, -0.033270616084337234, 0.040464796125888824, 0.08541711419820786, 0.2601003050804138, -0.34807488322257996, 0.13716736435890198, 0.12855024635791779, -0.16645511984825134, -0.05668756738305092, -0.38691264390945435, -0.04106646776199341, -0.008741900324821472, 0.0842420905828476, 0.2667950689792633, -0.19630195200443268, -0.09375376999378204, 0.010485273785889149, 0.10130954533815384, -0.008818123489618301, -0.035811007022857666, -0.061878837645053864, 0.29164639115333557, 0.2779177129268646, 0.32211562991142273, 0.365098237991333, -0.3677513599395752, -0.06260188668966293, -0.13756556808948517, -0.17675825953483582, 0.05980224907398224, -0.052274610847234726, 0.0341918021440506, 0.2674119472503662, 0.17843404412269592, 0.18543295562267303, 0.3122751712799072, -0.13318733870983124, 0.056502100080251694, 0.43409985303878784, -0.3935496509075165, -0.3147127628326416, 0.018036141991615295, -0.19345374405384064, 0.26688578724861145, -0.09675337374210358, -0.11345221847295761, -0.25437986850738525, -0.01344609260559082, -0.04582497477531433, -0.15634304285049438, 0.1244400218129158, 0.15522509813308716, -0.16096282005310059, 0.08118098974227905, 0.31416764855384827, 0.11197832971811295, 0.17026107013225555, 0.21741534769535065, 0.1782798171043396, 0.3218364119529724, -0.17879800498485565, 0.20747408270835876, 0.09105771780014038, -0.06859870254993439, 0.2785598039627075, 0.07792679965496063, -0.17360486090183258, -0.2642304599285126, -0.23684047162532806, -0.06790975481271744, -0.17781448364257812, 0.274740993976593, 0.07858395576477051, 0.2560666501522064, -0.2771655321121216, -0.5995445847511292, 0.38575100898742676, 0.28626641631126404, -0.1092853769659996, 0.26713964343070984, -0.48955440521240234, -0.010604238137602806, -0.1321151852607727, -0.0013049691915512085, 0.6466200351715088, -0.20871594548225403, 0.32602787017822266, -0.19991624355316162, -0.06675836443901062, 0.36438798904418945, -0.5225833654403687, -0.0769261047244072, -0.0006271228194236755, -0.2032233476638794, -0.03743153437972069, -0.07650362700223923, -0.13979105651378632, 0.03800220787525177, -0.0022655874490737915, 0.33843961358070374, -0.08165208995342255, 0.017325488850474358, 0.07315117120742798, 0.1452869027853012, 0.06336208432912827, -0.08831464499235153, 0.11700823158025742, 0.21215340495109558, -0.1198505163192749, -0.08313955366611481, -0.08992704749107361, 0.12233752012252808, 0.10651901364326477, 0.2631840109825134, -0.26845747232437134, -0.18616698682308197, -0.016653794795274734, 0.29705843329429626, 0.023721817880868912, -0.15677161514759064, -0.08040158450603485, 0.19315911829471588, 0.18699225783348083, 0.14789576828479767, -0.10960192233324051, 0.2880505621433258, -0.09818367660045624, 0.12493786215782166, 0.19413596391677856, -0.10727611184120178, 0.2267090231180191, -0.06493604928255081, -0.024834424257278442, 0.024596458300948143, 0.04482392966747284, -0.17323681712150574, -0.2194976955652237, 0.3592066168785095, 0.1631358563899994, -0.05183077231049538, -0.20334027707576752, 0.05336132273077965, 0.05762888491153717, 0.1359996497631073, 0.13847599923610687, 0.33636027574539185, -0.0736914724111557, 0.6109346151351929, -0.21784162521362305, -0.4782264530658722, -0.07675139605998993, -0.023202769458293915, 0.5032828450202942, -0.23378069698810577, 0.28604018688201904, 0.018465891480445862, -0.1751321405172348, -0.031149905174970627, 0.2559078633785248, 0.14707672595977783, 0.042816728353500366, 0.08567986637353897, -0.16492190957069397, 0.2176072746515274, -0.06420120596885681, -0.4341560900211334, 0.013234935700893402, -0.394558310508728, -0.23240213096141815, -0.17341655492782593, -0.43588751554489136, -0.03037072718143463, -0.22160018980503082, 0.25275060534477234, 0.029493853449821472, -0.39381352066993713, 0.216848224401474, 0.4286860525608063, -0.2361280620098114, 0.1436593383550644, 0.0652046874165535, 0.31113970279693604, 0.06429070234298706, -0.05766276642680168, 0.08792507648468018, -0.10325860977172852, -0.15508460998535156, -0.06536702811717987, -0.12484873831272125, -0.2228999137878418, 0.05259212851524353, 0.13725896179676056, 0.18830826878547668, -0.0488751195371151, -0.14311958849430084, -0.3217913508415222, 0.08516738563776016, -0.21216946840286255, 0.0646224394440651, 0.1869441717863083, 0.20908114314079285, 0.15641330182552338, 0.1074780523777008, -0.2736563980579376, 0.07986536622047424, 0.3291400969028473, 0.04492346942424774, 0.2957022786140442, 0.04721662029623985, 0.12260335683822632, 0.1379893720149994, -0.2660236060619354, -0.34097665548324585, 0.09064797312021255, -0.0949324294924736, -0.06992971897125244, 0.20950356125831604, -0.21705147624015808, 0.23173069953918457, 0.432890385389328, -0.12617766857147217, 0.25920116901397705, -0.020914921537041664, -0.17933326959609985, 0.1794489473104477, 0.13025975227355957, 0.22333046793937683, -0.06034357473254204, 0.0664517730474472, 0.4383385479450226, -0.3042237162590027, 0.09798559546470642, 0.10236740112304688, -0.12074059247970581, 0.060667529702186584, 0.15093576908111572, 0.34647440910339355, -0.36711782217025757, 0.1173057109117508, 0.07255999743938446, 0.15377646684646606, -0.07003000378608704, 0.45173946022987366, 0.4793986678123474, 0.01838500052690506, 0.5429627299308777, 0.3200550079345703, 0.4149710536003113, 0.4656388461589813, -0.18553441762924194, -0.0896623507142067, -0.3549956679344177, -0.23531176149845123, 0.5174937844276428, -0.12136638164520264, 0.042586274445056915, -0.12810315191745758, 0.19108846783638, 0.21330220997333527, -0.3449544608592987, -0.11829829216003418, -0.022355753928422928, -0.28346797823905945, -0.06173205375671387, 0.3831985592842102, 0.034875378012657166, 0.2570714056491852, 0.3279585540294647, -0.03918015584349632, -0.2646867036819458, 0.5557452440261841, -0.01713358238339424, -0.277116984128952, -0.24271249771118164, 0.2536899745464325, 0.1225280612707138, -0.13679882884025574, -0.1073719710111618, 0.2526152431964874, -0.3126506209373474, -0.033710286021232605, -0.012857098132371902, 0.14730459451675415, 0.19368213415145874, 0.19008228182792664, -0.014122484251856804, 0.3107689619064331, 0.09389185905456543, -0.05197308585047722, -0.21078625321388245, 0.3367968201637268, -0.16807153820991516, -0.1389777809381485, -0.06917047500610352, 0.09623188525438309, 0.09664160013198853, 0.24900716543197632, -0.050926703959703445, 0.22335630655288696, -0.2308836281299591, -0.1931045800447464, 0.13382798433303833, -0.01476607471704483, -0.22119681537151337, 0.25750160217285156, -0.3979862630367279, -0.17361058294773102, 0.6114830374717712, -0.25984513759613037, 0.0722600668668747, -0.14950445294380188, 0.07011094689369202, -0.26538440585136414, 0.56453937292099, 0.5225408673286438, 0.08851499855518341, -0.27808523178100586, -0.08638283610343933, -0.2743106186389923, 0.06438115239143372, -0.33529046177864075, 0.527192234992981, -0.11854191869497299, 0.4859296977519989, -0.20189812779426575, -0.11495430767536163, -0.04285712540149689, -0.12204188108444214, -0.0005123838782310486, -0.11984749138355255, -0.34227168560028076, -0.09232082962989807, 0.1259983479976654, 0.19102029502391815, 0.08991865813732147, -0.16043075919151306, 0.2859538793563843, -0.2384634017944336, -0.05761698633432388, -0.05389305576682091, -0.045309267938137054, 0.10334809124469757, 0.3779555857181549, 0.14626841247081757, 0.07114885747432709, -0.009199138730764389, 0.1375868022441864, 0.2291775643825531, -0.39523011445999146, -0.07520024478435516, 0.1247665137052536, 0.019207926467061043, 0.02907230332493782, -0.05750184506177902, -0.5672248601913452, 0.291117399930954, 0.11378911137580872, 0.05809253081679344, -0.24751007556915283, -0.039872586727142334, 0.09269469976425171, -0.4392722249031067, -0.18697765469551086, 0.33820784091949463, 0.36804404854774475, 0.1801198422908783, -0.11657154560089111, -0.14169707894325256, -0.24149185419082642, -0.03491748124361038, 0.3328413963317871, 0.04152359813451767, -0.4040128290653229, -0.04936493933200836, 0.09169736504554749, 0.41542258858680725, -0.06200941652059555, -0.41349270939826965, 0.1519259214401245, 0.42605966329574585, -0.07751132547855377, -0.1994902789592743, 0.16507458686828613, -0.08299118280410767, 0.2037355899810791, -0.06600827723741531, 0.48993590474128723, -0.06266957521438599, -0.03969353809952736, 0.22041931748390198, -0.13789567351341248 ]
https://github.com/huggingface/datasets/issues/1973
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) ```
Question: what gets stored in the datasets cache and why is it so huge?
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? 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! 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) ```
[ -0.06116240471601486, -0.03349564969539642, -0.12972283363342285, 0.5127941370010376, 0.11739452183246613, 0.24730423092842102, -0.01042349822819233, 0.24276427924633026, -0.07567548751831055, -0.03844780474901199, -0.05764545500278473, -0.28561240434646606, -0.06284116208553314, -0.13853353261947632, 0.13607323169708252, 0.0736558735370636, 0.05712859332561493, -0.092401884496212, -0.06304828077554703, -0.16052499413490295, -0.1804126352071762, 0.0023384783416986465, -0.04351242631673813, -0.10900483280420303, -0.6069414615631104, -0.16713003814220428, -0.17605054378509521, 0.013318382203578949, -0.126620352268219, -0.2256072461605072, 0.181264266371727, -0.08109291642904282, 0.32982051372528076, 0.5128857493400574, -0.00011297241871943697, -0.3193744719028473, 0.3587915003299713, 0.06239975988864899, -0.4379306733608246, 0.2950620949268341, -0.3354637622833252, -0.42711883783340454, -0.02036343328654766, -0.16869744658470154, 0.3214414119720459, -0.0767429769039154, -0.13293255865573883, -0.4167051613330841, -0.058726418763399124, 0.29307252168655396, 0.24946996569633484, -0.13664546608924866, -0.3039156198501587, 0.11788912117481232, 0.1235293596982956, -0.01466524600982666, -0.045234110206365585, -0.24537384510040283, 0.21589317917823792, 0.16461017727851868, 0.002535346895456314, 0.1477699875831604, 0.01694207638502121, 0.0003062766045331955, 0.26844149827957153, -0.03967727720737457, -0.2254716157913208, -0.3118252158164978, 0.6033416986465454, 0.22328966856002808, 0.8363258242607117, -0.28806087374687195, -0.20296406745910645, -0.2979714572429657, -0.1118040680885315, -0.23303869366645813, 0.10092414170503616, 0.4950154721736908, 0.09886889159679413, -0.045519690960645676, -0.48677223920822144, -0.34488874673843384, -0.07778587937355042, -0.0465623140335083, -0.28217950463294983, -0.14238044619560242, -0.25241950154304504, 0.11254097521305084, 0.10554227977991104, -0.02849467284977436, 0.35754796862602234, -0.3363456428050995, -0.015786651521921158, 0.23456788063049316, -0.3509428799152374, -0.20114922523498535, -0.1322091817855835, 0.5577654242515564, 0.12475994229316711, 0.005221186205744743, -0.3312215507030487, -0.18048277497291565, -0.1822400689125061, 0.01676882989704609, 0.19568368792533875, 0.38347378373146057, -0.17569464445114136, 0.18440477550029755, 0.035915181040763855, -0.3828604817390442, -0.2349632978439331, -0.1346767246723175, 0.13123947381973267, -0.0012335442006587982, 0.4762331545352936, -0.4796629846096039, -0.0986841544508934, -0.302920401096344, 0.1707354187965393, 0.24442854523658752, -0.0966220274567604, 0.02732216566801071, 0.11690309643745422, 0.21486563980579376, -0.25458502769470215, 0.2108531892299652, -0.23043105006217957, -0.12434309720993042, -0.04876120388507843, -0.14547327160835266, -0.24924106895923615, -0.09256482869386673, -0.06721493601799011, 0.268597275018692, 0.28568321466445923, -0.22348859906196594, 0.3373493552207947, 0.0277760811150074, 0.10636387020349503, -0.1411568820476532, 0.259274423122406, -0.37533456087112427, 0.3710654377937317, 0.4655982255935669, -0.016244404017925262, 0.37491753697395325, -0.13969095051288605, 0.12049469351768494, -0.2708759307861328, 0.2553669214248657, -0.5015742778778076, -0.42222777009010315, 0.019115200266242027, 0.10458823293447495, -0.2029600441455841, -0.022889908403158188, -0.3181249499320984, -0.0490737222135067, 0.4451744556427002, 0.22988946735858917, 0.23397371172904968, -0.22580677270889282, -0.3481409549713135, -0.2585400640964508, -0.17184637486934662, 0.11320354789495468, -0.38377755880355835, 0.20078051090240479, 0.018800493329763412, 0.28245028853416443, 0.04340704157948494, 0.41585102677345276, -0.1315065622329712, 0.1567608267068863, -0.053813233971595764, -0.12092374265193939, 0.030462678521871567, -0.1566624641418457, -0.6271008849143982, 0.12026483565568924, 0.4168609380722046, -0.027488984167575836, -0.12232354283332825, 0.4630420506000519, 0.07040572166442871, -0.015833277255296707, -0.10969182848930359, 0.328400194644928, -0.15589290857315063, -0.09018334001302719, -0.2928342819213867, -0.03867392987012863, 0.1061437577009201, -0.021642405539751053, 0.11887121200561523, -0.2305830717086792, -0.1309049427509308, 0.1836874634027481, 0.05275193229317665, 0.1259610503911972, 0.06942345947027206, 0.34377551078796387, -0.01014641858637333, 0.3748396933078766, 0.3232589662075043, -0.007865555584430695, -0.3653470277786255, 0.25736331939697266, 0.24196353554725647, -0.6245028376579285, 0.14552733302116394, -0.13397331535816193, 0.12722496688365936, 0.14506644010543823, -0.09690825641155243, -0.2118736356496811, -0.02233368344604969, 0.029769089072942734, 0.11519913375377655, -0.21089611947536469, -0.04496893286705017, 0.5452654361724854, -0.06355760246515274, -0.11038020998239517, -0.4182029366493225, -0.1708039939403534, 0.09381186217069626, 0.04920244216918945, -0.13592840731143951, 0.06500773131847382, 0.10108400881290436, -0.08951233327388763, -0.17469316720962524, 0.10818631201982498, 0.29734185338020325, -0.1439444124698639, 0.10779902338981628, 0.5784066915512085, -0.014512548223137856, 0.11640049517154694, 0.42337098717689514, -0.010668412782251835, 0.090521901845932, -0.18797245621681213, -0.16970035433769226, 0.05671045929193497, -0.1616249978542328, 0.1676456779241562, -0.002933986485004425, -0.058843888342380524, 0.06384512782096863, 0.10506066679954529, 0.18707804381847382, 0.08603917062282562, 0.1927024871110916, -0.06624495983123779, 0.37927284836769104, 0.41965988278388977, -0.08191117644309998, 0.16549961268901825, 0.4912530183792114, -0.18894198536872864, 0.020428452640771866, 0.11435361951589584, -0.3488580584526062, -0.4260422885417938, 0.0824614092707634, 0.30587175488471985, 0.42761799693107605, 0.09186923503875732, 0.27860671281814575, -0.018704691901803017, 0.19489142298698425, -0.1964648962020874, 0.11109396070241928, 0.1457485556602478, -0.08426912128925323, -0.263913094997406, 0.16103315353393555, -0.008886335417628288, 0.019063018262386322, 0.1868857443332672, -0.1532471477985382, 0.31507474184036255, -0.0810951441526413, 0.4258529245853424, -0.21984732151031494, -0.06663339585065842, -0.04216589033603668, 0.185402050614357, -0.23999068140983582, -0.2696065306663513, -0.164760559797287, -0.09104220569133759, 0.2942963242530823, -0.1827508807182312, -0.2300925999879837, 0.4699302613735199, 0.018560588359832764, 0.010769026353955269, 0.14713600277900696, -0.0653238520026207, -0.33127498626708984, 0.0642060860991478, 0.13775961101055145, -0.25509023666381836, 0.209071546792984, 0.07851476967334747, 0.031591370701789856, -0.23038515448570251, -0.1585237681865692, -0.19498789310455322, 0.1075047105550766, 0.1837015002965927, -0.2883613705635071, 0.052175700664520264, -0.2645149230957031, 0.1547861248254776, -0.2806057631969452, -0.11429562419652939, -0.057797834277153015, 0.1149195060133934, -0.05098982900381088, 0.02694343775510788, 0.20001402497291565, -0.0313190296292305, -0.2764134109020233, 0.0005235150456428528, 0.2373342216014862, -0.026539944112300873, 0.012947967275977135, 0.23928788304328918, -0.15576417744159698, -0.017659740522503853, -0.1436423659324646, -0.01000385545194149, -0.3633744716644287, -0.7905565500259399, 0.3151324987411499, 0.03856075182557106, -0.17887476086616516, 0.20860856771469116, 0.18666091561317444, 0.09249921143054962, 0.1387997269630432, -0.708563506603241, 0.07248212397098541, -0.3142879009246826, 0.2180022895336151, 0.014360336586833, 0.07650843262672424, 0.13859757781028748, -0.18085475265979767, 0.08067262172698975, -0.11428643763065338, -0.25084012746810913, -0.4035724401473999, 0.20292101800441742, 0.38248395919799805, -0.2886650264263153, -0.03457265347242355, 0.2057441622018814, 0.4963882267475128, 0.5578780174255371, -0.019025016576051712, -0.10989649593830109, 0.37469297647476196, 0.4645799398422241, -0.3987114429473877, -0.11856821179389954, 0.2061815708875656, -0.1018318384885788, -0.1222379207611084, 0.35369375348091125, 0.3558352291584015, -0.07255689054727554, 0.28180912137031555, -0.048495374619960785, 0.03525034338235855, 0.06988348066806793, 0.22349585592746735, -0.2844494879245758, 0.19335417449474335, 0.11918164789676666, -0.16556671261787415, -0.14250382781028748, -0.39732855558395386, -0.07350850105285645, -0.021416950970888138, 0.04561389982700348, 0.28269779682159424, -0.1842951774597168, -0.12794426083564758, -0.07540124654769897, 0.14234179258346558, -0.02312064915895462, -0.049724798649549484, 0.05146174132823944, 0.2763727307319641, 0.30833837389945984, 0.30733969807624817, 0.3131420612335205, -0.27446243166923523, -0.21389174461364746, -0.10583740472793579, -0.24112606048583984, -0.11868803948163986, -0.03182237595319748, -0.005750089883804321, 0.30125892162323, 0.15123119950294495, 0.1316511034965515, 0.3211076855659485, -0.14404283463954926, 0.00877511315047741, 0.5344347357749939, -0.38880735635757446, -0.29434916377067566, -0.08408315479755402, -0.27626827359199524, 0.216451495885849, -0.12520918250083923, -0.12012903392314911, -0.15077818930149078, 0.023403584957122803, -0.0632726401090622, -0.24044989049434662, 0.11370006203651428, 0.1901485025882721, -0.12031877785921097, 0.15611013770103455, 0.20858173072338104, 0.08535891771316528, 0.1842173933982849, 0.14799576997756958, 0.1042303666472435, 0.37578603625297546, -0.19130313396453857, 0.11269829422235489, -0.0072584254667162895, 0.03526267781853676, 0.2778847813606262, 0.056312140077352524, -0.1737893670797348, -0.18324632942676544, -0.26123547554016113, 0.0143590047955513, -0.2691158056259155, 0.2237628698348999, 0.1496376395225525, 0.2776620388031006, -0.2618527412414551, -0.6982128620147705, 0.46162012219429016, 0.27646321058273315, -0.07165606319904327, 0.24240094423294067, -0.4183204770088196, -0.036516208201646805, -0.05436321720480919, -0.006419233977794647, 0.6589260101318359, -0.22360917925834656, 0.4306711256504059, -0.0395674966275692, 0.034416377544403076, 0.4065586030483246, -0.4473711848258972, -0.028658073395490646, -0.07948608696460724, -0.1845748871564865, 0.004068024456501007, -0.10198717564344406, -0.1771421730518341, -0.057525694370269775, -0.04519541934132576, 0.44016870856285095, -0.18058925867080688, -0.01421551313251257, 0.016240384429693222, 0.18617014586925507, 0.043686963617801666, -0.1095273494720459, -0.042176198214292526, 0.2492515742778778, -0.12847161293029785, -0.04252143204212189, -0.06162410229444504, 0.1496697962284088, 0.01997389644384384, 0.18912449479103088, -0.31401368975639343, -0.20124560594558716, -0.02886693924665451, 0.32458844780921936, 0.009894441813230515, -0.18066762387752533, -0.058039382100105286, 0.191376730799675, 0.22039642930030823, 0.2901023328304291, -0.09614378213882446, 0.2670595347881317, -0.18764585256576538, 0.1555694043636322, 0.2435380220413208, -0.09146957099437714, 0.1821192353963852, -0.027039486914873123, -0.03389762341976166, 0.03840405493974686, 0.08266226947307587, -0.2128390669822693, -0.15913449227809906, 0.33413243293762207, 0.09771405160427094, -0.06410998851060867, -0.2387065887451172, 0.030995089560747147, 0.116492360830307, 0.08354593813419342, 0.13956229388713837, 0.373408704996109, -0.05978696793317795, 0.6573858261108398, -0.21889080107212067, -0.5179989337921143, -0.09089702367782593, -0.04303959012031555, 0.5688453316688538, -0.24621069431304932, 0.3715309202671051, 0.02285788208246231, -0.21903090178966522, -0.026474345475435257, 0.23503784835338593, 0.06352904438972473, 0.10498373210430145, 0.13248547911643982, -0.13336071372032166, 0.2987751066684723, -0.12851537764072418, -0.3920570909976959, 0.03708505630493164, -0.38797372579574585, -0.286027193069458, -0.16716569662094116, -0.4105100631713867, -0.026691827923059464, -0.08780589699745178, 0.22428768873214722, 0.0568859726190567, -0.2973288595676422, 0.1887330561876297, 0.4064843952655792, -0.24334359169006348, 0.08193401247262955, 0.02971469610929489, 0.22580604255199432, 0.06756098568439484, -0.09677611291408539, 0.09969174861907959, -0.12727975845336914, -0.13189518451690674, -0.09469741582870483, -0.11855773627758026, -0.23982758820056915, -0.017909642308950424, 0.14610305428504944, 0.17136311531066895, -0.09413397312164307, -0.10986784845590591, -0.35581275820732117, 0.1286485195159912, -0.2562296688556671, 0.08476077765226364, 0.2919306457042694, 0.2346149981021881, 0.12776809930801392, 0.023525992408394814, -0.2593021094799042, 0.1167764663696289, 0.3148725926876068, 0.037009112536907196, 0.23481830954551697, 0.16095438599586487, 0.18932028114795685, 0.23608942329883575, -0.18186014890670776, -0.2923300564289093, 0.09817436337471008, -0.139273539185524, -0.11103592813014984, 0.19219771027565002, -0.22428590059280396, 0.2773993909358978, 0.38683637976646423, -0.1051514595746994, 0.24715960025787354, -0.05146409943699837, -0.1714700162410736, 0.14368686079978943, 0.13635800778865814, 0.16662083566188812, -0.16293147206306458, 0.07049236446619034, 0.44747981429100037, -0.2449590265750885, 0.18087106943130493, 0.11145666241645813, -0.008500151336193085, -0.021918747574090958, 0.07802290469408035, 0.3410855531692505, -0.3142293095588684, 0.152182936668396, 0.07506513595581055, 0.181465283036232, -0.12329837679862976, 0.4441088140010834, 0.4823722541332245, 0.015976782888174057, 0.5705834031105042, 0.17768067121505737, 0.3709157705307007, 0.35532259941101074, -0.2679767608642578, -0.06162598356604576, -0.30101442337036133, -0.23535151779651642, 0.38645464181900024, -0.17252705991268158, 0.07773417234420776, -0.07969038933515549, 0.15310737490653992, 0.14852923154830933, -0.3190408945083618, -0.2061377465724945, -0.008643083274364471, -0.2841354310512543, -0.12843061983585358, 0.43972593545913696, 0.06067878007888794, 0.21454188227653503, 0.2614770531654358, -0.01053787674754858, -0.4243505597114563, 0.5057743787765503, -0.02884455770254135, -0.21090905368328094, -0.26324376463890076, 0.28053390979766846, 0.14052145183086395, -0.13639774918556213, -0.10086921602487564, 0.18540552258491516, -0.23705488443374634, -0.03490176051855087, -0.12824276089668274, 0.08834300190210342, 0.2755078375339508, 0.14686673879623413, 0.016594287008047104, 0.38167640566825867, 0.06199703738093376, -0.06606343388557434, -0.19621169567108154, 0.17964060604572296, -0.21971136331558228, -0.09329821169376373, -0.0303408931940794, 0.10746437311172485, 0.06471012532711029, 0.21080650389194489, -0.06530191004276276, 0.22275808453559875, -0.34730851650238037, -0.011110018938779831, 0.060689494013786316, -0.06442911922931671, -0.2514471113681793, 0.30589792132377625, -0.41585206985473633, -0.17797279357910156, 0.6756237745285034, -0.17455603182315826, 0.04350544139742851, -0.20436596870422363, 0.08278625458478928, -0.23638764023780823, 0.5724009871482849, 0.5509408712387085, 0.1847085952758789, -0.2911017835140228, 0.0006310194730758667, -0.26497936248779297, 0.09146182239055634, -0.4748072326183319, 0.3963684141635895, -0.04347771406173706, 0.46918895840644836, -0.2120288610458374, -0.06281104683876038, -0.0016785934567451477, -0.016443300992250443, -0.03968436270952225, -0.17218391597270966, -0.3049775958061218, -0.07415930926799774, 0.03930120915174484, 0.14384950697422028, 0.09578579664230347, -0.16422411799430847, 0.2386150062084198, -0.301319420337677, -0.0327400341629982, -0.16073425114154816, 0.05226324498653412, 0.1634509116411209, 0.33783605694770813, 0.16874901950359344, 0.09036873281002045, 0.08495880663394928, 0.21904249489307404, 0.17336702346801758, -0.3463302552700043, -0.06033821403980255, 0.08934976160526276, 0.07502517104148865, -0.05699790641665459, -0.03859461471438408, -0.526283323764801, 0.135794535279274, 0.10509742796421051, 0.15552519261837006, -0.1740640103816986, -0.18519556522369385, 0.13137111067771912, -0.32320767641067505, -0.18270832300186157, 0.39093053340911865, 0.3479948937892914, 0.1791636198759079, -0.15757553279399872, -0.03871805593371391, -0.19114913046360016, -0.07482316344976425, 0.30766183137893677, -0.043851934373378754, -0.387653112411499, -0.05052507668733597, 0.1258734166622162, 0.43574124574661255, -0.14103278517723083, -0.4110240638256073, 0.12452158331871033, 0.4666089713573456, -0.08974042534828186, -0.22205448150634766, 0.267652302980423, -0.11964467912912369, 0.16837051510810852, -0.07176238298416138, 0.5194827318191528, -0.12566642463207245, -0.052936866879463196, 0.21935924887657166, -0.18383976817131042 ]
https://github.com/huggingface/datasets/issues/1973
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.
Question: what gets stored in the datasets cache and why is it so huge?
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? 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! 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.
[ -0.12553682923316956, -0.03367792069911957, -0.14823266863822937, 0.5212607979774475, 0.1614958941936493, 0.24268440902233124, -0.0925321877002716, 0.2584301233291626, -0.08027980476617813, -0.022632092237472534, -0.0793154388666153, -0.19939672946929932, -0.08902513980865479, -0.19370636343955994, 0.060005880892276764, 0.14411139488220215, 0.10287411510944366, -0.06647078692913055, -0.07058202475309372, -0.09681367129087448, -0.12117058038711548, 0.019459804520010948, 0.03529427945613861, -0.16793538630008698, -0.5302935838699341, -0.18176472187042236, -0.10133826732635498, -0.04366490989923477, -0.16515004634857178, -0.17851513624191284, 0.17768293619155884, -0.02903941087424755, 0.3176937401294708, 0.4055047929286957, -0.00011095382069470361, -0.30997273325920105, 0.371454656124115, 0.11500173062086105, -0.4696368873119354, 0.30746251344680786, -0.3643326163291931, -0.37403246760368347, -0.026445422321558, -0.1428350806236267, 0.3908941149711609, 0.006897520273923874, -0.04977201670408249, -0.4210889935493469, -0.06840042769908905, 0.18612542748451233, 0.25606921315193176, -0.1310577094554901, -0.32159650325775146, 0.10462318360805511, 0.11983716487884521, 0.01389092206954956, -0.14686894416809082, -0.27661776542663574, 0.2572322189807892, 0.30191075801849365, -0.10688608884811401, 0.2367849051952362, 0.061818502843379974, 0.04761558398604393, 0.2798643112182617, -0.0198587104678154, -0.13032108545303345, -0.15880616009235382, 0.6128358244895935, 0.22039969265460968, 0.9452202320098877, -0.32518094778060913, -0.10904421657323837, -0.2270801067352295, -0.16994354128837585, -0.1856394112110138, 0.20531123876571655, 0.3774014711380005, 0.062372732907533646, -0.0036444119177758694, -0.4708917438983917, -0.42041605710983276, -0.1368875950574875, -0.10697843879461288, -0.19356359541416168, -0.2392662614583969, -0.29302769899368286, 0.0738702192902565, 0.20061081647872925, -0.035828687250614166, 0.3408767879009247, -0.21221396327018738, -0.17623573541641235, 0.1255204975605011, -0.3456111550331116, -0.2916094958782196, -0.1444859355688095, 0.4545300006866455, 0.16601227223873138, 0.039215344935655594, -0.3247307538986206, -0.11981640011072159, -0.1323128342628479, 0.005871202796697617, 0.28602951765060425, 0.3430543541908264, -0.06693927943706512, 0.10380326211452484, -0.042931925505399704, -0.3748679459095001, -0.13341845571994781, -0.18650192022323608, 0.15706831216812134, 0.06314878165721893, 0.4441577196121216, -0.5209648013114929, -0.0817442461848259, -0.3450354039669037, 0.1652759313583374, 0.1584218144416809, 0.05724833905696869, -0.03584950789809227, 0.14354673027992249, 0.1911144256591797, -0.11076147854328156, 0.21821990609169006, -0.2996867001056671, -0.21457460522651672, 0.01778309792280197, -0.16057038307189941, -0.228149875998497, -0.13163375854492188, -0.09491638094186783, 0.2396891862154007, 0.2744668424129486, -0.1647273302078247, 0.23715707659721375, 0.06348927319049835, -0.09071473777294159, -0.14221954345703125, 0.23490571975708008, -0.40325406193733215, 0.37492796778678894, 0.41676631569862366, -0.07437146455049515, 0.36810317635536194, -0.19709007441997528, 0.1527629941701889, -0.22742581367492676, 0.2449008673429489, -0.4916742444038391, -0.4740641713142395, -0.11707031726837158, 0.1085805594921112, -0.1619235724210739, -0.028812166303396225, -0.3449946641921997, 0.09223820269107819, 0.3634020686149597, 0.15356773138046265, 0.16030986607074738, -0.091957226395607, -0.4179095923900604, -0.22896143794059753, -0.15715742111206055, 0.17402797937393188, -0.4291955232620239, 0.15516334772109985, -0.13559551537036896, 0.1866014301776886, 0.0713290125131607, 0.3658941686153412, -0.12019334733486176, 0.07647024095058441, -0.051855720579624176, -0.15323713421821594, 0.04061777889728546, -0.10573165118694305, -0.6648840308189392, 0.10291363298892975, 0.35747742652893066, -0.17406225204467773, -0.03679222986102104, 0.45617738366127014, -0.002471446990966797, -0.03705994784832001, -0.23030424118041992, 0.29075080156326294, -0.20545704662799835, -0.14547161757946014, -0.3278050422668457, -0.07766205817461014, 0.037857454270124435, -0.015408247709274292, 0.06592389941215515, -0.23206903040409088, -0.03714432567358017, 0.27977454662323, -0.010811228305101395, 0.19344554841518402, 0.11483543366193771, 0.34571200609207153, 0.03142724931240082, 0.3540056347846985, 0.30153149366378784, -0.02189376950263977, -0.36114630103111267, 0.25093716382980347, 0.23517143726348877, -0.70488041639328, 0.1734371930360794, -0.1321183294057846, 0.1448073536157608, 0.14322467148303986, -0.020702853798866272, -0.1719018667936325, -0.004552077502012253, 0.08709145337343216, 0.07007546722888947, -0.17848914861679077, -0.01823703944683075, 0.4595893621444702, -0.02541445940732956, -0.12793689966201782, -0.35392796993255615, -0.1449453979730606, 0.04878240078687668, 0.009200137108564377, -0.15379971265792847, 0.0313858799636364, 0.0623050183057785, -0.07687804102897644, -0.15969420969486237, 0.15247948467731476, 0.2265719771385193, -0.1928768754005432, 0.29526659846305847, 0.5493299961090088, -0.06635507196187973, 0.1707335263490677, 0.38524794578552246, -0.0702984631061554, 0.10173413157463074, -0.12995238602161407, -0.2927914559841156, -0.03750958293676376, -0.15197376906871796, 0.14031969010829926, -0.024933740496635437, -0.029297608882188797, 0.04167098551988602, 0.08926992863416672, 0.34361732006073, 0.010455653071403503, 0.1606140434741974, -0.14703881740570068, 0.29275667667388916, 0.4069287180900574, -0.024014122784137726, 0.25196993350982666, 0.47828999161720276, -0.1528935581445694, 0.028991688042879105, 0.17442762851715088, -0.23875628411769867, -0.5282304883003235, 0.11873238533735275, 0.3788324296474457, 0.4037414789199829, 0.1002400666475296, 0.3153688907623291, -0.15072323381900787, 0.2983992397785187, -0.14193189144134521, 0.07695011049509048, 0.08003702759742737, -0.03909742459654808, -0.2749997079372406, 0.1334964632987976, -0.06807015836238861, -0.015676669776439667, 0.19873490929603577, -0.08296827226877213, 0.3320786654949188, -0.036524344235658646, 0.34009405970573425, -0.2261350452899933, -0.11018211394548416, 0.08747825026512146, 0.3231964707374573, -0.20590724050998688, -0.2550525665283203, -0.11160336434841156, -0.05905147269368172, 0.27817168831825256, -0.1644495278596878, -0.11989150941371918, 0.4901142716407776, 0.07628032565116882, 0.10169392824172974, 0.07007716596126556, -0.07086773216724396, -0.31645554304122925, 0.10305182635784149, 0.1625663787126541, -0.2699267268180847, 0.23979580402374268, 0.10292009264230728, 0.08525501191616058, -0.3361770510673523, -0.15106923878192902, -0.1490521878004074, 0.11909404397010803, 0.2485794574022293, -0.253400593996048, 0.012669052928686142, -0.39178940653800964, 0.1810092329978943, -0.2936207056045532, -0.1614062786102295, -0.039520956575870514, 0.16289202868938446, -0.10196079313755035, -0.04075925424695015, 0.17625238001346588, 0.010380513966083527, -0.2491559535264969, -0.0023533478379249573, 0.21229968965053558, -0.1259874403476715, 0.05490700528025627, 0.26557061076164246, -0.11264654994010925, 0.05556351691484451, -0.1928708553314209, -0.049712616950273514, -0.3669956624507904, -0.7784827947616577, 0.25135600566864014, 0.1395718902349472, -0.12406014651060104, 0.16954699158668518, 0.22488266229629517, -0.019255075603723526, 0.15983420610427856, -0.7960985898971558, 0.08482284843921661, -0.2673853933811188, 0.2629157602787018, 0.026032328605651855, 0.03807826340198517, 0.2360246479511261, -0.17748643457889557, 0.02845335379242897, -0.15285295248031616, -0.2566245198249817, -0.30627205967903137, 0.13671645522117615, 0.41938352584838867, -0.23109513521194458, -0.027123376727104187, 0.3263314664363861, 0.5199460983276367, 0.4282686114311218, 0.01441774982959032, -0.05717996507883072, 0.3847503960132599, 0.553659975528717, -0.38876664638519287, -0.07960883527994156, 0.20065566897392273, -0.07270267605781555, -0.0731620118021965, 0.32966935634613037, 0.34068912267684937, -0.12321878224611282, 0.2847546339035034, -0.08130055665969849, 0.09379026293754578, 0.10117781162261963, 0.19880837202072144, -0.2678990960121155, 0.15994355082511902, 0.18611174821853638, -0.16084308922290802, -0.06561405211687088, -0.3909841775894165, -0.0692705363035202, -0.030938461422920227, 0.07837498188018799, 0.26835983991622925, -0.20413990318775177, 0.0029264017939567566, -0.06782828271389008, 0.10111837089061737, -0.02878558076918125, -0.006164923310279846, -0.08387590944766998, 0.3064674735069275, 0.28351080417633057, 0.2794947922229767, 0.3214495778083801, -0.26331856846809387, -0.06171122565865517, -0.16461998224258423, -0.16500772535800934, -0.10181239247322083, 0.006461769342422485, -0.010832905769348145, 0.2996635138988495, 0.08372528851032257, 0.08623424172401428, 0.307832270860672, -0.18520307540893555, 0.03754417225718498, 0.43103042244911194, -0.3830850422382355, -0.3002847135066986, 0.04140913486480713, -0.26254987716674805, 0.23264554142951965, -0.1294325590133667, -0.11873890459537506, -0.21533578634262085, 0.07149680703878403, 0.00596463680267334, -0.20017337799072266, 0.13650263845920563, 0.1608419120311737, -0.1547916829586029, 0.19323068857192993, 0.21817851066589355, 0.11206823587417603, 0.15249276161193848, 0.11460812389850616, 0.09786472469568253, 0.26037177443504333, -0.11085578054189682, 0.2093982696533203, 0.03438814356923103, -0.013866011053323746, 0.15962764620780945, 0.013840548694133759, -0.19946616888046265, -0.18680928647518158, -0.319331556558609, -0.05327894166111946, -0.16185496747493744, 0.226172536611557, 0.06218408793210983, 0.2645357847213745, -0.2653851807117462, -0.5795576572418213, 0.47429588437080383, 0.33996477723121643, -0.1296413540840149, 0.25791043043136597, -0.2862511873245239, 0.0161556638777256, -0.06674207001924515, 0.011174807325005531, 0.5658615231513977, -0.1947554349899292, 0.32545000314712524, -0.0794115960597992, -0.0616300106048584, 0.30239206552505493, -0.4567989110946655, -0.06524091958999634, -0.046861425042152405, -0.3045465350151062, -0.0021180063486099243, -0.07209902256727219, -0.14111360907554626, -0.019983861595392227, -0.0946822389960289, 0.34433168172836304, -0.16534535586833954, -0.05447376146912575, 0.1015559509396553, 0.16015759110450745, 0.050244905054569244, -0.1256176382303238, 0.040408942848443985, 0.27858778834342957, -0.18076547980308533, -0.11137367784976959, -0.053993333131074905, 0.13071209192276, 0.08629777282476425, 0.21490052342414856, -0.3181106448173523, -0.24077922105789185, 0.01395956426858902, 0.3552248477935791, -0.0003478587605059147, -0.12526795268058777, -0.06686706095933914, 0.13323795795440674, 0.2062506228685379, 0.23439596593379974, -0.1449889987707138, 0.3111362159252167, -0.12193414568901062, 0.1470763236284256, 0.24586257338523865, -0.13601545989513397, 0.118489108979702, -0.08178497105836868, -0.03650612384080887, -0.04343154653906822, 0.0705958902835846, -0.22965684533119202, -0.1445901095867157, 0.28536754846572876, 0.17216306924819946, -0.011902417987585068, -0.2052931934595108, 0.03546652942895889, 0.03150346130132675, 0.07947692275047302, 0.14196905493736267, 0.38440626859664917, -0.06099650263786316, 0.5599355697631836, -0.2562154531478882, -0.4541349411010742, -0.04628324508666992, 0.02246282808482647, 0.5034427046775818, -0.21780824661254883, 0.2553483843803406, -0.03123798966407776, -0.17679351568222046, -0.046937644481658936, 0.25336548686027527, 0.06018190085887909, -0.020442157983779907, 0.15678687393665314, -0.18092525005340576, 0.22175657749176025, -0.14142262935638428, -0.4298365116119385, 0.026533756405115128, -0.3845815062522888, -0.2996763288974762, -0.11566580832004547, -0.43055158853530884, -0.0555204376578331, -0.23347830772399902, 0.19693461060523987, 0.028453074395656586, -0.453621506690979, 0.16285628080368042, 0.41744133830070496, -0.26163363456726074, 0.09885454177856445, 0.182999849319458, 0.26799631118774414, 0.01615256816148758, -0.14392276108264923, 0.1268775761127472, -0.16161896288394928, -0.10911425948143005, -0.14186802506446838, -0.14570274949073792, -0.2609522044658661, 0.05034799873828888, 0.1333000510931015, 0.1298934817314148, -0.07710522413253784, -0.16118532419204712, -0.3070394694805145, 0.047632042318582535, -0.26329582929611206, 0.05942218750715256, 0.34526798129081726, 0.2517390549182892, 0.09511378407478333, 0.1064111739397049, -0.3073001801967621, 0.12782645225524902, 0.32236310839653015, 0.06484284996986389, 0.25070661306381226, 0.039330001920461655, 0.20244146883487701, 0.16778752207756042, -0.2629607915878296, -0.3952638506889343, 0.1813609004020691, -0.06677711009979248, -0.11520812660455704, 0.1839222013950348, -0.24107465147972107, 0.20931555330753326, 0.4576958119869232, -0.09308931976556778, 0.13186046481132507, -0.061267439275979996, -0.22615045309066772, 0.03258666768670082, 0.1872493028640747, 0.258386492729187, -0.17711003124713898, 0.061477139592170715, 0.44825929403305054, -0.23756062984466553, 0.09747055172920227, 0.17231561243534088, -0.0793057531118393, 0.09265267848968506, 0.15113389492034912, 0.37127819657325745, -0.34848469495773315, 0.17746567726135254, 0.11492561548948288, 0.18828697502613068, -0.16113999485969543, 0.4405621886253357, 0.46502387523651123, 0.03153242915868759, 0.5609923601150513, 0.1833839863538742, 0.3716111183166504, 0.5011682510375977, -0.19158275425434113, -0.11417394876480103, -0.2393338978290558, -0.20154879987239838, 0.4385493993759155, -0.11617627739906311, 0.05928477644920349, -0.07144806534051895, 0.20830796658992767, 0.18380329012870789, -0.3680931627750397, -0.18310953676700592, -0.12172050774097443, -0.3449110686779022, -0.1100354865193367, 0.4735722243785858, 0.07529717683792114, 0.1437612771987915, 0.29531344771385193, -0.06254436075687408, -0.38595709204673767, 0.44119396805763245, -0.014913864433765411, -0.19180649518966675, -0.2876873314380646, 0.2943647503852844, 0.27622145414352417, -0.16019466519355774, -0.12198644876480103, 0.28918367624282837, -0.2347114384174347, -0.04510461166501045, -0.0269340630620718, 0.1330801248550415, 0.21976348757743835, 0.08573701232671738, 0.0260295569896698, 0.3150087296962738, 0.0979129821062088, -0.10025113821029663, -0.2087869793176651, 0.22685213387012482, -0.23611165583133698, -0.09080728888511658, -0.08618874847888947, 0.10703831911087036, 0.07988253235816956, 0.27716055512428284, -0.0013054469600319862, 0.27859506011009216, -0.2990994155406952, -0.12700292468070984, 0.05658344924449921, -0.028875134885311127, -0.15548987686634064, 0.3027583062648773, -0.3916991353034973, -0.2383485585451126, 0.6524434089660645, -0.21377058327198029, 0.04228883981704712, -0.1606043577194214, 0.10845011472702026, -0.23499906063079834, 0.4478152096271515, 0.46892914175987244, 0.036988094449043274, -0.30871790647506714, -0.026965253055095673, -0.24805507063865662, 0.06575630605220795, -0.3029731214046478, 0.4378800690174103, -0.012735020369291306, 0.5008689761161804, -0.23981700837612152, -0.0382048562169075, -0.0074696168303489685, -0.06819888949394226, -0.03516640514135361, -0.13187521696090698, -0.30610835552215576, -0.013797298073768616, 0.13779756426811218, 0.15438951551914215, 0.0681297779083252, -0.2035735696554184, 0.21413585543632507, -0.23551009595394135, -0.028905171900987625, -0.1541021168231964, -0.011040367186069489, 0.15294195711612701, 0.4067371189594269, 0.08646802604198456, 0.12576979398727417, -0.0493973046541214, 0.15266385674476624, 0.15464293956756592, -0.39143311977386475, -0.07627682387828827, 0.051948536187410355, -0.02186056599020958, 0.046379733830690384, 0.003566175699234009, -0.5463694334030151, 0.2738308012485504, 0.13444441556930542, 0.1515660434961319, -0.16159194707870483, 0.00875336304306984, 0.10737624764442444, -0.3834521770477295, -0.20468974113464355, 0.3414938449859619, 0.31232336163520813, 0.14370205998420715, -0.07226967066526413, -0.03942294418811798, -0.3186279237270355, -0.07897783070802689, 0.3032262325286865, 0.08692033588886261, -0.4065343737602234, -0.0037894435226917267, 0.10156743973493576, 0.5180825591087341, -0.1703476905822754, -0.3908231854438782, 0.1476501226425171, 0.47722840309143066, -0.10269607603549957, -0.19707876443862915, 0.26071447134017944, -0.12446065992116928, 0.200964093208313, -0.06363647431135178, 0.5886348485946655, -0.059142593294382095, -0.037485189735889435, 0.22273381054401398, -0.1312391310930252 ]
https://github.com/huggingface/datasets/issues/1965
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.
Can we parallelized the add_faiss_index process over dataset shards ?
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 ? 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 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.
[ -0.2789406478404999, -0.06273186951875687, -0.15734592080116272, 0.11061215400695801, -0.3771446943283081, 0.2478516399860382, 0.20978881418704987, 0.10627029836177826, 0.13710227608680725, 0.17192494869232178, -0.17660266160964966, -0.13538452982902527, 0.34148725867271423, 0.11399637907743454, -0.3853699564933777, 0.24953877925872803, 0.3513413369655609, -0.10339166224002838, 0.25243866443634033, 0.1125718504190445, -0.3173969089984894, 0.010329337790608406, 0.029140353202819824, -0.2674211263656616, -0.17801477015018463, 0.35085567831993103, -0.2582988440990448, 0.053239427506923676, -0.01328650675714016, -0.24838897585868835, -0.24804523587226868, 0.39262914657592773, 0.06793710589408875, 0.30049192905426025, -0.00012694447650574148, -0.05022583156824112, 0.10692000389099121, 0.06911782920360565, 0.15334552526474, 0.5967575311660767, -0.27112138271331787, 0.012097418308258057, -0.07629472017288208, -0.17294679582118988, -0.0013869106769561768, -0.3030722737312317, -0.03392932564020157, -0.26206350326538086, -0.20397251844406128, -0.17197896540164948, -0.010248977690935135, -0.12378878891468048, 0.08485867828130722, 0.04814446344971657, -0.042805418372154236, -0.20388539135456085, -0.15537092089653015, -0.14555710554122925, 0.08886553347110748, 0.22371843457221985, 0.23216357827186584, 0.17097501456737518, 0.018992573022842407, -0.1704600602388382, 0.0877622663974762, -0.044863004237413406, 0.45251595973968506, -0.05265166610479355, 0.010519647970795631, -0.12257863581180573, 0.10863134264945984, 0.0454835519194603, -0.4651238024234772, -0.21258953213691711, 0.0684301108121872, 0.08244293183088303, -0.22744545340538025, -0.17533190548419952, 0.03901391848921776, 0.009271971881389618, 0.07140637934207916, -0.47306305170059204, 0.049428969621658325, 0.11151532083749771, 0.39118343591690063, 0.06083071976900101, 0.26112696528434753, 0.11175049096345901, 0.400232195854187, -0.10470551997423172, 0.026290688663721085, -0.11287987232208252, -0.0963890478014946, 0.13144497573375702, -0.6142696142196655, 0.023287437856197357, -0.08992403745651245, -0.2996661067008972, 0.020942233502864838, -0.1793348789215088, -0.3022095859050751, 0.28851771354675293, 0.020277250558137894, 0.11981610953807831, 0.0016667619347572327, -0.15365225076675415, 0.2066202610731125, -0.2501230537891388, -0.012503957375884056, -0.4881717562675476, -0.11448027193546295, 0.13744817674160004, 0.1478855460882187, -0.12011600285768509, -0.630025327205658, -0.14399689435958862, -0.3549613058567047, -0.16061553359031677, -0.06207094341516495, -0.18197400867938995, 0.023842744529247284, -0.09950163960456848, 0.1697283387184143, 0.1614191085100174, 0.3377496898174286, -0.00167094636708498, -0.13387039303779602, 0.01122511550784111, -0.06729888170957565, -0.054043132811784744, -0.002299059182405472, -0.27954381704330444, 0.24345147609710693, 0.53028404712677, -0.004261009395122528, -0.2697485387325287, -0.4165174067020416, -0.027876779437065125, -0.0764702707529068, 0.15636704862117767, 0.033606983721256256, -0.1561209261417389, 0.033615950495004654, 0.07779273390769958, -0.02355330064892769, 0.0020427852869033813, -0.05854516103863716, 0.16879397630691528, -0.2429046332836151, 0.16567030549049377, -0.21596461534500122, -0.3029150366783142, 0.055675119161605835, 0.005409039556980133, -0.03209675848484039, -0.13710884749889374, -0.16576525568962097, 0.569916844367981, 0.17614787817001343, -0.043269895017147064, -0.03847050666809082, 0.18389025330543518, -0.32821589708328247, -0.11314570158720016, 0.16092544794082642, 0.15643611550331116, -0.29618510603904724, -0.21464495360851288, -0.14362239837646484, -0.18578559160232544, 0.006723545491695404, 0.5707306265830994, -0.0211950670927763, 0.08170713484287262, -0.2875504791736603, 0.5438028573989868, 0.2934737801551819, -0.28156596422195435, 0.05051890015602112, 0.08856526762247086, -0.06114477664232254, -0.16531087458133698, 0.052084434777498245, 0.19225069880485535, 0.11792811751365662, -0.05686494708061218, 0.22767969965934753, 0.29446491599082947, -0.08390139788389206, -0.11941152811050415, -0.2615697383880615, -0.3065005838871002, 0.4936809837818146, 0.24300916492938995, -0.10712449997663498, 0.07610912621021271, 0.04399043321609497, -0.7627871036529541, 0.28600361943244934, -0.13234058022499084, 0.19447210431098938, 0.038324955850839615, 0.28911536931991577, 0.4427100121974945, 0.4458395838737488, -0.11409687995910645, 0.047264985740184784, 0.2294328212738037, -0.15346848964691162, -0.0019358880817890167, 0.30323895812034607, -0.34508174657821655, 0.47406718134880066, -0.05071765184402466, 0.03056391142308712, 0.39551863074302673, -0.06766747683286667, -0.21175411343574524, 0.14257533848285675, -0.3888503313064575, -0.33143311738967896, 0.46580371260643005, -0.39556992053985596, -0.1659504473209381, -0.07246007770299911, 0.22638103365898132, -0.031209900975227356, -0.03370849788188934, -0.3186897039413452, 0.09592895954847336, 0.15915411710739136, -0.24058698117733002, -0.10593245178461075, 0.3029583692550659, 0.02472994476556778, 0.03768632933497429, 0.9103009104728699, 0.2225016951560974, -0.07068502902984619, 0.24210956692695618, 0.05819936841726303, -0.25952231884002686, -0.15857917070388794, -0.18931367993354797, 0.3330984115600586, 0.0545157790184021, 0.08871143311262131, 0.5726431608200073, 0.002658046782016754, -0.17207574844360352, 0.13808439671993256, 0.16192997992038727, 0.06609901785850525, -0.02432762086391449, -0.01522914320230484, -0.1266031563282013, -0.11309629678726196, 0.08865198493003845, -0.027729101479053497, 0.5910168290138245, -0.2684079706668854, -0.08228573948144913, -0.17265304923057556, -0.0034395866096019745, -0.032699231058359146, 0.08870179206132889, -0.04202088713645935, -0.19486810266971588, 0.31219929456710815, 0.11687736213207245, 0.05203063413500786, -0.15843060612678528, 0.3804953098297119, -0.11364765465259552, -0.03972017765045166, 0.3633245527744293, 0.2026495337486267, 0.07501377910375595, 0.16845650970935822, -0.05808553099632263, -0.05710156261920929, -0.13150474429130554, 0.06884436309337616, 0.03194281458854675, -0.011060908436775208, -0.08506886661052704, 0.12294116616249084, 0.08009032905101776, -0.1491919755935669, -0.20431342720985413, -0.39691105484962463, -0.1968986690044403, 0.22377519309520721, 0.012625908479094505, -0.25353744626045227, -0.05805148184299469, -0.0775192528963089, 0.5329555869102478, -0.0946546196937561, -0.26840364933013916, -0.3124781847000122, -0.017047042027115822, 0.14786145091056824, -0.12594012916088104, 0.2970302402973175, 0.18879207968711853, -0.05323157459497452, 0.11885115504264832, -0.08682656288146973, -0.3709447979927063, -0.09349779039621353, -0.1448415219783783, -0.01734035089612007, -0.14438901841640472, -0.29891687631607056, -0.2838769257068634, -0.1429504156112671, -0.1644759625196457, 0.15370984375476837, -0.04506396874785423, -0.09645523130893707, -0.2686011791229248, 0.029159918427467346, 0.049685679376125336, 0.10258898138999939, 0.07483908534049988, -0.39372146129608154, -0.23962774872779846, 0.34491533041000366, -0.06186128407716751, 0.09715390205383301, -0.3533826172351837, -0.2882672846317291, -0.19735172390937805, -0.26235654950141907, -0.2343727946281433, -0.3656177222728729, 0.020294681191444397, 0.16198422014713287, -0.11174672842025757, -0.13177774846553802, 0.0018891841173171997, 0.08150185644626617, -0.2325872927904129, 0.33538955450057983, 0.007211916148662567, 0.07340225577354431, -0.006611236371099949, 0.12840485572814941, -0.2605769634246826, 0.1623672991991043, 0.14471453428268433, -0.11158180236816406, -0.006871502846479416, 0.09250019490718842, 0.15546034276485443, 0.2978830635547638, 0.16144728660583496, 0.1604873090982437, -0.1416187286376953, -0.025723271071910858, -0.1567707657814026, 0.7340025901794434, 0.2577255368232727, -0.02546543814241886, 0.15250135958194733, 0.11774492263793945, 0.03646901622414589, 0.06441640853881836, -0.14035823941230774, 0.2962307333946228, 0.08804886788129807, -0.11837457120418549, 0.02492060884833336, 0.048686105757951736, -0.09814753383398056, 0.04401504993438721, -0.19937016069889069, -0.1111699789762497, -0.11878090351819992, -0.0568946972489357, 0.2207624614238739, 0.512608528137207, 0.002517290413379669, -0.05494673177599907, -0.2808341979980469, 0.009422387927770615, 0.18328189849853516, 0.36201584339141846, 0.49926838278770447, -0.19273777306079865, 0.15172040462493896, -0.2025243043899536, -0.46557003259658813, 0.46372824907302856, 0.008780937641859055, 0.2816372215747833, 0.01659732311964035, -0.04479110613465309, 0.24940559267997742, -0.19141364097595215, 0.8901626467704773, 0.003486994653940201, -0.47722044587135315, 0.11347965151071548, -0.045214515179395676, -0.32665374875068665, -0.23263747990131378, 0.3000528812408447, 0.21723663806915283, 0.4511129856109619, 0.2308518886566162, -0.24606725573539734, -0.30183759331703186, 0.17565250396728516, 0.07519085705280304, -0.28824296593666077, -0.518256664276123, -0.14690256118774414, 0.06615684181451797, -0.08232786506414413, 0.11566586792469025, -0.2963603138923645, 0.11399190127849579, 0.036133766174316406, 0.009262718260288239, -0.19299067556858063, 0.029859647154808044, -0.03710915148258209, 0.06028619408607483, 0.05106440931558609, 0.11202357709407806, 0.4447425305843353, 0.3219394087791443, -0.28902798891067505, 0.26622945070266724, 0.08223137259483337, 0.3286917507648468, 0.010901585221290588, -0.0902361124753952, -0.004466995596885681, 0.21505451202392578, 0.07194311916828156, 0.06396207213401794, 0.28535544872283936, -0.1218382716178894, 0.20228435099124908, -0.21379448473453522, 0.12985111773014069, 0.1342012733221054, 0.2930411398410797, -0.19150137901306152, -0.17332778871059418, 0.4962489902973175, 0.044202663004398346, -0.10585375130176544, -0.07675813138484955, 0.47343480587005615, -0.009986676275730133, 0.714695394039154, 0.045512605458498, 0.7037380933761597, -0.12488524615764618, -0.15265947580337524, -0.26155269145965576, 0.11584490537643433, 0.04207253083586693, -0.647425651550293, 0.31069719791412354, -0.1907191276550293, -0.2052682638168335, 0.12215381115674973, -0.10489214956760406, 0.11495745182037354, 0.3697926700115204, 0.27974796295166016, 0.11209563910961151, 0.21661239862442017, -0.20353643596172333, -0.20710739493370056, 0.3400915861129761, 0.18269656598567963, -0.22831031680107117, 0.2803768515586853, 0.039110906422138214, 0.07976101338863373, -0.03066524676978588, 0.02267548069357872, 0.061544910073280334, -0.1580808013677597, 0.3526022434234619, -0.11979899555444717, -0.04830221086740494, 0.3265136480331421, 0.2986389398574829, -0.23021036386489868, -0.04550884664058685, 0.12094411253929138, -0.5679501891136169, 0.22752951085567474, -0.25742414593696594, -0.14876452088356018, 0.10445147007703781, 0.14288721978664398, -0.15386909246444702, -0.06042042374610901, -0.5270251035690308, -0.0879804790019989, 0.01989874243736267, -0.30471277236938477, -0.1901981383562088, 0.2688496708869934, -0.8522258996963501, -0.3888075053691864, 0.09307035803794861, -0.07288983464241028, 0.06558924913406372, -0.12638317048549652, 0.5215659737586975, -0.19129198789596558, 0.035854898393154144, -0.047652073204517365, 0.2592449188232422, -0.44251304864883423, 0.7070087194442749, -0.39102014899253845, -0.008542656898498535, -0.022107446566224098, 0.2433185577392578, 0.2357959747314453, -0.3659253418445587, 0.08451075851917267, -0.09706725180149078, -0.19156156480312347, 0.03983404487371445, -0.5570604801177979, 0.09053637832403183, 0.49570465087890625, -0.08260764181613922, 0.02873803675174713, -0.12357956916093826, 0.05283563584089279, -0.18909087777137756, -0.14166873693466187, -0.04336106777191162, -0.6022048592567444, -0.14400064945220947, -0.25018325448036194, 0.094724141061306, 0.20089103281497955, 0.3670533299446106, 0.13654813170433044, 0.11507268995046616, -0.33184897899627686, 0.15168917179107666, -0.10885381698608398, -0.0053227730095386505, 0.12211191654205322, 0.095904141664505, -0.020484687760472298, -0.09278815984725952, 0.1320216953754425, -0.08136464655399323, -0.0900849774479866, 0.16270680725574493, 0.1668037474155426, -0.06546635925769806, 0.23711130023002625, 0.22617438435554504, 0.31293103098869324, 0.15668146312236786, -0.19543130695819855, -0.2620934247970581, -0.19076327979564667, -0.2348841279745102, 0.044474922120571136, 0.038603439927101135, -0.22148999571800232, -0.07369277626276016, 0.38635188341140747, -0.2686000168323517, 0.10821621119976044, 0.5082783102989197, 0.43939903378486633, 0.4513736963272095, -0.002762291580438614, 0.517433762550354, -0.2549321949481964, 0.09658710658550262, 0.13370314240455627, 0.049999088048934937, 0.24496111273765564, 0.05043709650635719, 0.02628561481833458, -0.008234664797782898, -0.2804999351501465, -0.08184470236301422, 0.4896751940250397, 0.6631747484207153, 0.2678462862968445, -0.22270743548870087, -0.025631889700889587, 0.007558039389550686, -0.048143062740564346, -0.07651624083518982, 0.83915776014328, -0.11111094057559967, 0.13976314663887024, 0.1743851602077484, 0.3427315950393677, 0.34773874282836914, -0.20524071156978607, 0.06248919665813446, 0.06301011145114899, 0.37671342492103577, -0.14992403984069824, -0.6269668936729431, 0.23163677752017975, 0.04863988235592842, 0.26757141947746277, -0.153596892952919, 0.12408424913883209, 0.7165519595146179, -0.06391424685716629, 0.4785977005958557, 0.09931616485118866, -0.049742598086595535, 0.1411433070898056, -0.12962430715560913, 0.4695599675178528, 0.1944601833820343, 0.36478346586227417, 0.16910243034362793, 0.15549439191818237, 0.2924838066101074, -0.098726786673069, -0.5738973021507263, -0.15056627988815308, 0.4674294888973236, -0.012079549953341484, -0.04541092365980148, 0.4208980202674866, 0.041887685656547546, -0.012128926813602448, 0.028094008564949036, 0.1323242038488388, -0.1338592767715454, 0.19459861516952515, -0.002214718610048294, 0.10796493291854858, 0.21001259982585907, -0.020181622356176376, 0.4173363447189331, 0.47107142210006714, -0.02770359069108963, -0.2999332547187805, -0.0784052312374115, -0.08581790328025818, 0.12370962649583817, 0.16512031853199005, -0.005409142933785915, 0.16382433474063873, -0.010343272238969803, 0.30541136860847473, -0.0628252625465393, 0.1377594918012619, 0.003501512110233307, -0.05208848789334297, -0.3109496831893921, -0.18729466199874878, 0.2082958221435547, -0.03139691799879074, -0.007856141775846481, -0.5724868774414062, -0.19813545048236847, 0.4705941677093506, -0.15608331561088562, -0.09748148918151855, 0.09796278178691864, -0.0830199122428894, -0.053194571286439896, -0.0803229808807373, -0.038372792303562164, -0.23927649855613708, 0.07290197908878326, -0.48644253611564636, -0.20754525065422058, 0.13428950309753418, -0.029610194265842438, -0.16733118891716003, 0.3975629508495331, 0.23188281059265137, 0.5182492733001709, -0.19910046458244324, -0.18079587817192078, -0.24874021112918854, 0.14206892251968384, -0.14213469624519348, 0.3399438261985779, 0.047940026968717575, 0.549087405204773, 0.07892611622810364, -0.06037744879722595, 0.6871287226676941, 0.13677339255809784, 0.10939560830593109, 0.4636112153530121, -0.18782290816307068, 0.3570117950439453, -0.3443451523780823, -0.28470662236213684, 0.13399995863437653, -0.034075118601322174, 0.4974752962589264, 0.20115476846694946, -0.24784164130687714, 0.22268319129943848, -0.25103330612182617, 0.3260992169380188, -0.4909695088863373, 0.5764996409416199, 0.06350762397050858, 0.12978117167949677, -0.07986484467983246, 0.04564213752746582, -0.12331855297088623, -0.20516029000282288, -0.3342982828617096, 0.06621478497982025, -0.3860468864440918, -0.20562174916267395, -0.281048059463501, -0.15919384360313416, 0.0470137782394886, 0.23685438930988312, -0.13969089090824127, -0.19904974102973938, -0.06035707890987396, 0.08848001062870026, -0.13465121388435364, 0.22493299841880798, -0.08058449625968933, 0.1380123496055603, 0.19085365533828735, 0.2626539468765259, -0.2852630615234375, 0.28086531162261963, 0.2794204354286194, -0.1816105842590332, -0.021358568221330643, -0.4958339333534241, 0.13552021980285645, 0.4050750136375427, 0.10906104743480682, -0.5247438549995422, -0.5293171405792236, 0.12687444686889648, 0.3336171507835388, 0.24437837302684784, 0.15769684314727783, -0.010748710483312607, -0.30923178791999817, -0.27809208631515503, -0.3314504027366638, 0.0037305112928152084, 0.19734594225883484, 0.03424486517906189, -0.03396081551909447 ]
https://github.com/huggingface/datasets/issues/1965
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.
Can we parallelized the add_faiss_index process over dataset shards ?
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 ? 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 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.
[ -0.2849659323692322, -0.16969680786132812, -0.09126099199056625, 0.16800282895565033, -0.3235112428665161, 0.3758886456489563, 0.33479973673820496, 0.06972001492977142, -0.03588647022843361, 0.1546953022480011, -0.08760654181241989, 0.06187278777360916, 0.3824174404144287, -0.020075790584087372, -0.3032028377056122, 0.1434958577156067, 0.2809820771217346, -0.05846419557929039, 0.21261680126190186, 0.039479419589042664, -0.3338528871536255, -0.13826428353786469, -0.07154765725135803, -0.28070321679115295, -0.22384312748908997, 0.18625523149967194, -0.3562583029270172, 0.11157426238059998, -0.0008239187300205231, -0.3895474076271057, -0.19009357690811157, 0.31381261348724365, 0.25591009855270386, 0.02997029758989811, -0.00012776213407050818, -0.09971974790096283, 0.1779816597700119, 0.018381379544734955, 0.11612318456172943, 0.689120888710022, -0.2972027063369751, -0.026711005717515945, -0.040404170751571655, -0.24459397792816162, 0.08226418495178223, -0.25055792927742004, 0.0011064410209655762, -0.2517290711402893, -0.07024051249027252, -0.26906755566596985, -0.046679653227329254, -0.06079145893454552, 0.0575929656624794, 0.0574583038687706, 0.040684595704078674, -0.3079020380973816, -0.12135912477970123, 0.13983702659606934, 0.08395213633775711, 0.2245057374238968, 0.1343080997467041, 0.050792500376701355, -0.04773828759789467, -0.16000273823738098, 0.07260745763778687, 0.11297831684350967, 0.245279461145401, 0.13472577929496765, -0.05123910680413246, -0.12121507525444031, 0.2552976608276367, -0.09927913546562195, -0.5349692702293396, -0.15823273360729218, 0.26636838912963867, -0.15956293046474457, -0.14388039708137512, -0.16599954664707184, 0.10479879379272461, 0.062221452593803406, 0.06627349555492401, -0.5065566897392273, -0.010438397526741028, 0.03255906701087952, 0.40569067001342773, 0.09201517701148987, 0.2955590486526489, 0.12985317409038544, 0.34587687253952026, 0.044557441025972366, 0.09975510090589523, -0.20291127264499664, -0.19971835613250732, 0.11312498152256012, -0.6591156125068665, -0.03317747265100479, -0.20639440417289734, -0.22286638617515564, -0.12412048131227493, -0.03510178625583649, -0.10607674717903137, 0.1871548742055893, 0.23890236020088196, 0.16097228229045868, -0.005883973091840744, -0.08958511799573898, 0.034384388476610184, -0.12985822558403015, -0.1368226408958435, -0.4281221926212311, -0.10758761316537857, 0.048834335058927536, 0.03502505272626877, -0.1958867311477661, -0.5263501405715942, -0.06330849975347519, -0.486552894115448, -0.07199292629957199, -0.10264229029417038, -0.17343981564044952, -0.1677078753709793, -0.12919197976589203, 0.1297934353351593, 0.020617250353097916, 0.28228628635406494, -0.15922412276268005, -0.17018327116966248, 0.0673738494515419, -0.05598708242177963, 0.00455537810921669, -0.027997272089123726, -0.21618346869945526, 0.017426006495952606, 0.5126783847808838, -0.0436442606151104, -0.2863789200782776, -0.38278669118881226, 0.050587527453899384, -0.04815833270549774, 0.1748679280281067, 0.06641393154859543, -0.21543428301811218, 0.12092484533786774, 0.07724285870790482, -0.1290803849697113, -0.16774490475654602, -0.03657511994242668, 0.2454083263874054, -0.19669345021247864, 0.209824338555336, -0.23114024102687836, -0.20992976427078247, 0.1646123230457306, -0.0386468842625618, -0.03481772169470787, -0.14416374266147614, -0.04465015232563019, 0.3352724313735962, 0.3445597290992737, -0.006437055766582489, 0.006295356899499893, 0.15912222862243652, -0.28740406036376953, -0.13964170217514038, 0.24949350953102112, 0.2338722050189972, -0.40149185061454773, -0.1169343814253807, -0.04878206551074982, 0.019494198262691498, 0.16721554100513458, 0.5547193288803101, -0.13143222033977509, 0.16451969742774963, -0.38139283657073975, 0.547781765460968, 0.3399353623390198, -0.28260549902915955, -0.0182865709066391, 0.032842155545949936, -0.19533467292785645, -0.09613446146249771, 0.26372337341308594, 0.15843793749809265, 0.44600000977516174, 0.029370393604040146, 0.2704941928386688, 0.2283855676651001, -0.06693039834499359, -0.30632713437080383, -0.3454909920692444, -0.24789029359817505, 0.2212373912334442, 0.14133009314537048, -0.0717565193772316, 0.19854691624641418, 0.05113769322633743, -0.8309341669082642, 0.3635241687297821, -0.08406689763069153, 0.2159191071987152, -0.0107423085719347, 0.20923960208892822, 0.3811725378036499, 0.377061128616333, -0.0781182050704956, 0.07714901864528656, 0.15998584032058716, -0.02807433158159256, -0.04097572714090347, 0.24880173802375793, -0.35382989048957825, 0.48316338658332825, -0.07563077658414841, 0.024190861731767654, 0.4689192771911621, -0.11990950256586075, -0.2062515914440155, 0.06219807267189026, -0.33142396807670593, -0.29417067766189575, 0.5498022437095642, -0.4779761731624603, -0.09684394299983978, -0.18878063559532166, 0.2802513837814331, 0.07799018174409866, -0.1488746702671051, -0.28165292739868164, 0.047595299780368805, 0.07335767894983292, -0.24420571327209473, -0.05964701622724533, 0.2386414110660553, -0.08092674612998962, 0.10199283063411713, 0.8778345584869385, 0.10956905782222748, -0.15415748953819275, 0.07112754881381989, 0.15453359484672546, -0.3248102068901062, -0.08525271713733673, -0.205834299325943, 0.32248643040657043, 0.22681312263011932, 0.0249039176851511, 0.3609709143638611, 0.030859433114528656, -0.09083351492881775, 0.019549593329429626, 0.023492999374866486, 0.014460951089859009, 0.0800580084323883, -0.102484330534935, 0.0013241320848464966, -0.07055391371250153, 0.04509937763214111, -0.11206933856010437, 0.32657209038734436, -0.13850311934947968, -0.1785280406475067, -0.2923906743526459, -0.05336553230881691, -0.034008271992206573, 0.1097717136144638, -0.07186400890350342, -0.15300175547599792, 0.3807485103607178, 0.16276977956295013, 0.1704767644405365, -0.12954626977443695, 0.2641077935695648, -0.19424492120742798, 0.02438124641776085, 0.25026243925094604, 0.0645522028207779, 0.21181388199329376, 0.06966202706098557, -0.08770997822284698, -0.03260419890284538, -0.02604617178440094, 0.09287308901548386, 0.06399782001972198, -0.015880286693572998, -0.04162648692727089, 0.08641258627176285, 0.3875238001346588, -0.3104657828807831, -0.11043901741504669, -0.2621288001537323, -0.16850657761096954, 0.1309843212366104, 0.03513305261731148, -0.17594581842422485, -0.014068473130464554, -0.04725267365574837, 0.5214400887489319, -0.14268887042999268, -0.3105711042881012, -0.14791926741600037, -0.11272910237312317, 0.11967030167579651, -0.12968891859054565, 0.2577826976776123, 0.15934233367443085, 0.13176026940345764, 0.11900945007801056, -0.047824013978242874, -0.2820169925689697, 0.0005477592349052429, -0.17021754384040833, 0.022503536194562912, -0.2009870857000351, -0.3025679886341095, -0.230427548289299, -0.3104279041290283, -0.12138929218053818, 0.06954000145196915, 0.15595774352550507, -0.015111047774553299, -0.2252912074327469, 0.11300519108772278, 0.06514676660299301, 0.13852904736995697, -0.13715949654579163, -0.3187461793422699, -0.25401848554611206, 0.3161887526512146, -0.19767287373542786, -0.00866706483066082, -0.40100622177124023, -0.13119098544120789, -0.14471113681793213, -0.19444136321544647, -0.24840715527534485, -0.3096931278705597, -0.1726856529712677, 0.15253973007202148, -0.02631111443042755, -0.07675350457429886, -0.0058419108390808105, -0.03326357156038284, -0.12815061211585999, 0.6561335325241089, -0.010741882026195526, 0.21730080246925354, 0.047665707767009735, 0.09334692358970642, -0.25064754486083984, 0.26371124386787415, 0.2129894345998764, -0.028158875182271004, 0.00790645182132721, 0.15562696754932404, 0.29472100734710693, 0.3695465922355652, 0.09744542092084885, 0.06610540300607681, 0.040857553482055664, 0.028863850980997086, -0.1932777315378189, 0.9015140533447266, 0.24907851219177246, -0.18509337306022644, 0.1608608514070511, 0.25943461060523987, 0.14952614903450012, 0.007931482046842575, -0.11607396602630615, 0.23999159038066864, 0.14359423518180847, -0.13714739680290222, 0.0009889677166938782, -0.036458853632211685, -0.09459040313959122, 0.10961824655532837, -0.20129549503326416, 0.01153324544429779, -0.17153450846672058, -0.0033565573394298553, 0.05448602885007858, 0.5516693592071533, 0.055048421025276184, 0.021414533257484436, -0.20256797969341278, 0.04373118653893471, 0.12830333411693573, 0.3945731818675995, 0.5861863493919373, -0.2756177484989166, -0.05626814067363739, -0.25801903009414673, -0.3013847768306732, 0.4053608775138855, 0.06612231582403183, 0.3546910881996155, 0.13341253995895386, -0.10776546597480774, 0.33406418561935425, -0.11553730070590973, 0.8974549770355225, -0.13130921125411987, -0.5274403095245361, 0.1343754231929779, 0.05332755297422409, -0.14586761593818665, -0.26067373156547546, 0.3020033836364746, 0.18603186309337616, 0.3533151149749756, 0.1942872703075409, -0.2180706262588501, -0.20826777815818787, 0.33163851499557495, 0.13434435427188873, -0.2656058669090271, -0.6529960036277771, -0.09411800652742386, 0.17214368283748627, -0.047479692846536636, 0.2200230360031128, -0.35414254665374756, 0.035739000886678696, 0.026646003127098083, -0.020588912069797516, -0.3798433840274811, -0.018366754055023193, 0.010570388287305832, -0.041841886937618256, 0.08754312992095947, 0.021941564977169037, 0.5158407688140869, 0.36036738753318787, -0.04023120179772377, 0.4263276755809784, 0.09635108709335327, 0.07933757454156876, 0.013032004237174988, -0.186869814991951, -0.19683554768562317, 0.30670011043548584, 0.09572398662567139, 0.06545844674110413, 0.3111417591571808, -0.2788870632648468, 0.06300956010818481, -0.34858012199401855, 0.0565938726067543, 0.10232646763324738, 0.43894413113594055, -0.1225832998752594, -0.1930825412273407, 0.4389567971229553, 0.05041317641735077, -0.15144816040992737, -0.05453043803572655, 0.34553489089012146, -0.18948017060756683, 0.6812265515327454, 0.06648292392492294, 0.8806687593460083, -0.15946459770202637, 0.04830832779407501, -0.2123776078224182, 0.09757042676210403, -0.017821718007326126, -0.6159809827804565, 0.4225201904773712, -0.23770633339881897, -0.17719346284866333, 0.1049712523818016, -0.20924198627471924, 0.2017689198255539, 0.4122805595397949, 0.1896030455827713, 0.1242857426404953, -0.07643117010593414, -0.09920653700828552, -0.17659634351730347, 0.25096994638442993, 0.2230386584997177, -0.23942407965660095, 0.34468960762023926, -0.059055112302303314, 0.23828071355819702, -0.2323365956544876, 0.019142087548971176, 0.026444464921951294, -0.17033591866493225, 0.37963631749153137, -0.10863574594259262, -0.016726985573768616, 0.4481120705604553, 0.19661347568035126, -0.1731836199760437, -0.21931707859039307, 0.2574959099292755, -0.3695749342441559, 0.30111944675445557, -0.2077331393957138, -0.031781990081071854, -0.007087574806064367, -0.004874585196375847, -0.2725214958190918, -0.10242374241352081, -0.3807836174964905, -0.03312508389353752, 0.11104622483253479, -0.37116551399230957, -0.1661393940448761, 0.2631867825984955, -0.7294946908950806, -0.4386249780654907, 0.12840692698955536, -0.053171172738075256, -0.11926032602787018, -0.13654087483882904, 0.41326528787612915, -0.11440690606832504, 0.001917138695716858, -0.06892560422420502, 0.2600789964199066, -0.48175039887428284, 0.82442706823349, -0.3634016513824463, 0.025420919060707092, 0.019300032407045364, 0.28812095522880554, 0.31210243701934814, -0.25792235136032104, 0.2277696281671524, -0.15170788764953613, -0.23489299416542053, -0.0000379905104637146, -0.5809664726257324, 0.1541992872953415, 0.44840943813323975, -0.09266921877861023, 0.018247801810503006, -0.028131425380706787, -0.009678840637207031, -0.47595444321632385, -0.09658259153366089, 0.026091398671269417, -0.5716094970703125, -0.12791091203689575, -0.35548052191734314, 0.10130983591079712, 0.20632541179656982, 0.4299418330192566, 0.05845598876476288, 0.11122006922960281, -0.38225340843200684, 0.18692219257354736, -0.10912705957889557, 0.053486429154872894, 0.10149317979812622, 0.21285155415534973, 0.1496153175830841, -0.09739254415035248, 0.10516305267810822, -0.04660125821828842, -0.06393496692180634, 0.180693581700325, 0.09858192503452301, -0.026734208688139915, 0.2877894937992096, 0.23278206586837769, 0.14269420504570007, 0.1709013283252716, -0.08537063002586365, -0.31873977184295654, -0.2249474823474884, -0.24467220902442932, -0.024626273661851883, -0.053323760628700256, -0.13815948367118835, -0.08234909176826477, 0.45317748188972473, -0.08842697739601135, 0.03707241266965866, 0.4527212977409363, 0.39832887053489685, 0.3977433145046234, -0.055001191794872284, 0.42541053891181946, -0.21702775359153748, 0.004388369619846344, 0.018851306289434433, 0.10606563091278076, 0.3288211226463318, 0.007381835952401161, 0.100065216422081, -0.017516296356916428, -0.30240994691848755, -0.22446824610233307, 0.5101445913314819, 0.6108431816101074, 0.3429231345653534, -0.43773043155670166, 0.11149980872869492, -0.01582399196922779, -0.039865642786026, -0.15325598418712616, 0.7825087308883667, 0.029847465455532074, 0.14657042920589447, 0.12595856189727783, 0.2123565971851349, 0.2996015250682831, -0.3592544198036194, -0.004761107265949249, 0.14062179625034332, 0.3161541819572449, -0.17538166046142578, -0.4867199659347534, 0.3327386975288391, 0.08386586606502533, 0.1554298996925354, -0.11788496375083923, 0.14410188794136047, 0.6216909289360046, -0.14541234076023102, 0.5556601285934448, 0.09311089664697647, 0.008559108711779118, -0.05139882490038872, -0.3147474229335785, 0.3127994239330292, 0.41585883498191833, 0.34784138202667236, 0.13523781299591064, 0.14624114334583282, 0.38302552700042725, 0.2558973729610443, -0.5684160590171814, -0.14769506454467773, 0.41329655051231384, -0.1333668977022171, -0.15755371749401093, 0.3834909200668335, -0.054032206535339355, 0.10455051064491272, 0.07881316542625427, 0.1858239769935608, 0.09291470050811768, 0.3751930296421051, -0.07365098595619202, 0.24327266216278076, 0.2592490315437317, 0.09749822318553925, 0.3380102217197418, 0.2684294879436493, -0.13517199456691742, -0.31364548206329346, -0.185309499502182, 0.03454001992940903, 0.1235911101102829, 0.08640003204345703, 0.04472319781780243, 0.18193566799163818, 0.1531488597393036, 0.2662106156349182, -0.06556952744722366, 0.1450531780719757, -0.008477792143821716, -0.024816086515784264, -0.22288857400417328, -0.14583976566791534, 0.18721364438533783, -0.0870501846075058, 0.02451188489794731, -0.4995051622390747, -0.11769929528236389, 0.33345794677734375, -0.21950609982013702, -0.17442423105239868, 0.26474469900131226, -0.3016049265861511, 0.06765403598546982, -0.03312051668763161, -0.1562541425228119, -0.06319794058799744, 0.28234824538230896, -0.36151596903800964, -0.2766748368740082, 0.28016290068626404, -0.0707581490278244, -0.30863672494888306, 0.48068949580192566, 0.33418333530426025, 0.5037380456924438, -0.2653267979621887, -0.10254809260368347, -0.2228054404258728, 0.1971823275089264, -0.15940508246421814, 0.29113221168518066, -0.020268650725483894, 0.4730786979198456, 0.16392487287521362, -0.13332204520702362, 0.5242289900779724, 0.03662414476275444, 0.0648772194981575, 0.5568506121635437, -0.2519758343696594, 0.1873481422662735, -0.297560453414917, -0.3276861310005188, 0.05730227380990982, -0.15199598670005798, 0.4205702543258667, 0.18870623409748077, -0.2505377531051636, 0.185219407081604, -0.0281149223446846, 0.32328492403030396, -0.29086628556251526, 0.5298871397972107, -0.020297521725296974, 0.29535382986068726, -0.05300722271203995, 0.07547997683286667, -0.13151830434799194, -0.1362612545490265, -0.3146403431892395, 0.08520331978797913, -0.2904396653175354, -0.08892710506916046, -0.4956982135772705, -0.12599757313728333, -0.02690601348876953, 0.13266491889953613, -0.09398078918457031, -0.1971270740032196, -0.023479245603084564, 0.10474386811256409, -0.052262045443058014, 0.2000952959060669, 0.04602423310279846, 0.23741334676742554, 0.1900675892829895, 0.24535951018333435, -0.2602972388267517, 0.3165748119354248, 0.28972166776657104, -0.18972346186637878, -0.06015909090638161, -0.36150556802749634, 0.08744796365499496, 0.3728885054588318, 0.15714764595031738, -0.5834988951683044, -0.49876129627227783, 0.21879029273986816, 0.2269463837146759, 0.16322600841522217, 0.2620418965816498, 0.327162504196167, -0.2740883529186249, -0.26983022689819336, -0.5132445693016052, -0.0430748350918293, 0.07804048806428909, -0.10161557048559189, -0.21672335267066956 ]
https://github.com/huggingface/datasets/issues/1965
@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.
Can we parallelized the add_faiss_index process over dataset shards ?
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 ? 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 @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.
[ -0.4054989814758301, -0.1552562415599823, -0.12579795718193054, 0.1830274760723114, -0.30512383580207825, 0.25111350417137146, 0.33917713165283203, 0.07270124554634094, 0.13479046523571014, 0.17686857283115387, -0.14357319474220276, 0.19608797132968903, 0.35047605633735657, 0.08793177455663681, -0.22224591672420502, 0.07715985924005508, 0.3349463641643524, -0.07375098019838333, 0.18786488473415375, 0.14426672458648682, -0.3492167890071869, -0.07901188731193542, -0.07370343804359436, -0.3046618700027466, -0.20647084712982178, 0.2073303759098053, -0.22254186868667603, 0.005088300444185734, 0.11361270397901535, -0.3396570682525635, -0.21135514974594116, 0.296941339969635, 0.2204650193452835, 0.20225949585437775, -0.00012361624976620078, -0.09303204715251923, 0.24472975730895996, 0.13536286354064941, 0.21268662810325623, 0.7094953060150146, -0.28600558638572693, 0.08429673314094543, 0.011854633688926697, -0.21310968697071075, 0.039123594760894775, -0.22459013760089874, 0.03139900416135788, -0.30766162276268005, -0.19457846879959106, -0.21643418073654175, 0.017886551097035408, -0.042015500366687775, 0.12756669521331787, 0.03970850631594658, -0.05559440329670906, -0.23347485065460205, -0.1960603892803192, -0.14217427372932434, 0.1881551742553711, 0.4077613651752472, 0.09287761151790619, 0.16318224370479584, -0.08151201158761978, -0.111018106341362, 0.044254228472709656, 0.019148528575897217, 0.31260937452316284, 0.11187154054641724, 0.062025539577007294, 0.02742883563041687, 0.193861186504364, -0.14183980226516724, -0.5114313960075378, -0.1815447211265564, 0.14776623249053955, -0.1431189477443695, -0.18862339854240417, -0.1851346492767334, 0.06340231001377106, 0.009576198644936085, 0.11919625103473663, -0.4742814898490906, 0.013795115053653717, -0.014570090919733047, 0.3781154453754425, 0.18483546376228333, 0.25527292490005493, 0.15273821353912354, 0.4181760847568512, 0.06405061483383179, 0.13895633816719055, -0.091933973133564, -0.22015351057052612, 0.09680072963237762, -0.7896097302436829, 0.06173330545425415, -0.14578132331371307, -0.1499474197626114, -0.05596595257520676, -0.1912727802991867, -0.3814217150211334, 0.29473987221717834, 0.11319155991077423, 0.1418476402759552, 0.02557237818837166, -0.10432656854391098, 0.06323827803134918, -0.27632367610931396, -0.0681232362985611, -0.37504786252975464, -0.058492548763751984, 0.06475386023521423, 0.045929521322250366, -0.11015020310878754, -0.4853461980819702, -0.03424566611647606, -0.3445422053337097, -0.11491334438323975, -0.03970044478774071, -0.2562004327774048, 0.12141851335763931, -0.17952877283096313, 0.2044481635093689, 0.1827089786529541, 0.3225756883621216, 0.10100476443767548, -0.23285704851150513, -0.0010059764608740807, -0.02153981849551201, -0.022383738309144974, 0.004832655191421509, -0.16785743832588196, 0.18900933861732483, 0.49306347966194153, -0.024606309831142426, -0.4299057722091675, -0.365510493516922, 0.011461503803730011, -0.05713428929448128, 0.16193339228630066, 0.021369993686676025, -0.21686451137065887, -0.030049502849578857, 0.03818390890955925, -0.0198899507522583, -0.06552762538194656, -0.13445302844047546, 0.2728840410709381, -0.23504485189914703, 0.21519479155540466, -0.20928725600242615, -0.39149242639541626, 0.017466144636273384, -0.005247587338089943, -0.02163214236497879, -0.16315996646881104, -0.0698067769408226, 0.37775924801826477, 0.1984349489212036, 0.03650751709938049, -0.08536165952682495, 0.1062021479010582, -0.25039899349212646, -0.1264425814151764, 0.23133860528469086, 0.17421655356884003, -0.41215217113494873, -0.04122447967529297, -0.3235960900783539, -0.16854795813560486, 0.18647953867912292, 0.4758313000202179, -0.02924497425556183, 0.10942445695400238, -0.3331197202205658, 0.3905990421772003, 0.1770891547203064, -0.3672056496143341, 0.047123245894908905, 0.1398412585258484, -0.12045428156852722, -0.16564488410949707, 0.331510454416275, 0.28885865211486816, 0.34537509083747864, -0.008352991193532944, 0.13555890321731567, 0.14658968150615692, -0.061241261661052704, -0.1479458510875702, -0.21273303031921387, -0.2535599172115326, 0.16676554083824158, 0.29508471488952637, -0.020949024707078934, 0.1681787520647049, -0.031033065170049667, -0.8039101362228394, 0.31606900691986084, -0.1459507793188095, 0.2999193072319031, -0.0677223727107048, 0.2666432857513428, 0.37279659509658813, 0.37046486139297485, -0.11623567342758179, 0.0769767314195633, 0.23828637599945068, 0.020909376442432404, -0.0338546484708786, 0.22270111739635468, -0.38553470373153687, 0.48760610818862915, 0.04594087600708008, 0.04906395077705383, 0.42215052247047424, -0.05523295700550079, -0.1752132624387741, 0.00954236090183258, -0.4162950813770294, -0.3488959074020386, 0.5179665684700012, -0.23984874784946442, -0.18467572331428528, -0.06958112865686417, 0.06049111485481262, 0.008524127304553986, -0.1463851034641266, -0.3137205243110657, 0.08755193650722504, 0.07638831436634064, -0.2518973648548126, -0.08707374334335327, 0.3075045049190521, -0.02118571661412716, 0.04601185396313667, 0.8042541146278381, 0.07749667018651962, -0.14136669039726257, 0.23544271290302277, 0.0844636783003807, -0.29082271456718445, -0.060300976037979126, -0.10215308517217636, 0.3470936715602875, 0.1247011125087738, 0.1034972295165062, 0.4663466513156891, 0.048449479043483734, -0.010287027806043625, 0.20893073081970215, 0.049425385892391205, 0.17527857422828674, 0.04046519100666046, -0.003979664295911789, -0.11052192747592926, -0.05945690721273422, 0.07425472140312195, -0.2332381308078766, 0.5649155974388123, -0.17173346877098083, -0.10277712345123291, -0.20153439044952393, -0.04614711180329323, -0.08021831512451172, 0.14783303439617157, 0.08415034413337708, -0.09524156153202057, 0.24148188531398773, 0.2003471851348877, 0.030858919024467468, -0.27468758821487427, 0.25011464953422546, -0.1929260790348053, 0.025579925626516342, 0.2707829475402832, 0.15450121462345123, 0.039126284420490265, -0.03483588621020317, -0.19228452444076538, 0.02709900587797165, -0.1999223828315735, 0.05151931196451187, 0.12112811207771301, -0.016695640981197357, -0.1093713641166687, 0.01896868646144867, 0.1860828399658203, -0.21278628706932068, -0.1081465482711792, -0.2143586128950119, -0.1133391484618187, 0.17644082009792328, 0.09759320318698883, -0.19175586104393005, -0.060949765145778656, -0.09612703323364258, 0.3963814079761505, -0.15533706545829773, -0.45281776785850525, -0.29405879974365234, -0.1470530480146408, 0.13233475387096405, -0.06619012355804443, 0.31425395607948303, 0.08563072979450226, 0.0921734943985939, 0.1264202892780304, -0.04045415669679642, -0.34408092498779297, 0.0950985699892044, -0.15184706449508667, -0.003403708804398775, -0.09410333633422852, -0.293623149394989, -0.3489650785923004, -0.18191301822662354, -0.08247444033622742, 0.041147381067276, 0.018942594528198242, 0.016700617969036102, -0.14761164784431458, -0.1336667537689209, -0.07111578434705734, 0.06771387159824371, -0.11715193092823029, -0.2093515396118164, -0.30554652214050293, 0.3475598692893982, -0.11588120460510254, 0.14105048775672913, -0.4759964048862457, -0.12767887115478516, -0.06294867396354675, -0.30444538593292236, -0.19564750790596008, -0.24050620198249817, -0.10523360967636108, 0.16405969858169556, 0.049934692680835724, -0.15389719605445862, 0.09570682048797607, 0.002941638231277466, -0.028932906687259674, 0.4696129262447357, 0.020341843366622925, 0.0658017098903656, -0.07608772069215775, 0.18250446021556854, -0.16493961215019226, 0.1721915602684021, 0.3239162862300873, 0.0056631602346897125, -0.055341608822345734, 0.11921371519565582, 0.11729826033115387, 0.3369155526161194, 0.0030354969203472137, 0.03292962163686752, 0.006407041102647781, 0.04007080942392349, -0.20114624500274658, 0.7294511198997498, 0.12230266630649567, -0.19572210311889648, 0.19463789463043213, 0.08249764889478683, 0.02501184307038784, 0.08616721630096436, -0.17827600240707397, 0.3500838875770569, 0.10125716775655746, -0.0929718092083931, 0.00261712446808815, -0.04388215392827988, -0.1264021396636963, 0.04118816554546356, -0.12937888503074646, -0.10389402508735657, -0.1315622627735138, -0.054846297949552536, 0.2528618574142456, 0.5113691687583923, -0.04363377392292023, 0.007744781672954559, -0.23664961755275726, -0.006544571369886398, 0.13556650280952454, 0.46199873089790344, 0.542089581489563, -0.33161288499832153, 0.0905430018901825, -0.3064233660697937, -0.3880169689655304, 0.44909265637397766, 0.037872981280088425, 0.4197950065135956, 0.08413964509963989, 0.02109771966934204, 0.2919823229312897, -0.22190986573696136, 0.9026581645011902, 0.027074771001935005, -0.5150843858718872, 0.0960618108510971, -0.025999072939157486, -0.33184903860092163, -0.09381147474050522, 0.15249057114124298, 0.2472437620162964, 0.36811259388923645, 0.15485510230064392, -0.21205219626426697, -0.2917936146259308, 0.13432681560516357, 0.08310820907354355, -0.27843257784843445, -0.6738580465316772, -0.14986203610897064, -0.007725447416305542, -0.053408704698085785, 0.182050421833992, -0.28816425800323486, 0.11419370770454407, 0.09480801969766617, -0.005959413945674896, -0.330171674489975, -0.023258745670318604, 0.04418494179844856, 0.004074830561876297, 0.09150825440883636, -0.020535646006464958, 0.5346844792366028, 0.2204897552728653, -0.07354841381311417, 0.24176079034805298, -0.016407568007707596, 0.22247254848480225, 0.1455620974302292, -0.17924456298351288, -0.13927525281906128, 0.20921383798122406, 0.009841933846473694, -0.0030312947928905487, 0.34914183616638184, -0.29796648025512695, 0.142367884516716, -0.20837433636188507, -0.009265601634979248, 0.06156151741743088, 0.43851810693740845, -0.09405259788036346, -0.28461891412734985, 0.3209880292415619, 0.12117549031972885, -0.14986088871955872, -0.11453612148761749, 0.3715475797653198, -0.0501348078250885, 0.6364876627922058, 0.12835350632667542, 0.6783902645111084, -0.27334508299827576, -0.09647558629512787, -0.17579376697540283, 0.1353343427181244, 0.07753956317901611, -0.5695587396621704, 0.40794628858566284, -0.26181262731552124, -0.17296704649925232, 0.11519873887300491, -0.10116533935070038, 0.18221092224121094, 0.26776060461997986, 0.09976427257061005, 0.24945013225078583, 0.09000919759273529, -0.28328803181648254, -0.13832516968250275, 0.3152260184288025, 0.17804646492004395, -0.3854477107524872, 0.35677370429039, 0.008521325886249542, 0.1185498833656311, -0.25745445489883423, 0.04755435883998871, 0.09952723979949951, -0.09647895395755768, 0.401167094707489, -0.16188162565231323, -0.06225680559873581, 0.47251710295677185, 0.07849441468715668, -0.17505165934562683, 0.014990344643592834, 0.22652219235897064, -0.4040827751159668, 0.2418203055858612, -0.2935246229171753, -0.13236340880393982, 0.0944528877735138, -0.051643360406160355, -0.16644719243049622, 0.0012742802500724792, -0.4851127862930298, -0.07424907386302948, 0.05078639090061188, -0.45488911867141724, -0.1688658595085144, 0.27504462003707886, -0.7210448980331421, -0.31666773557662964, 0.09682717174291611, -0.06114703416824341, 0.1004590317606926, -0.1454283446073532, 0.38272523880004883, -0.13408032059669495, -0.04663194343447685, -0.02645038440823555, 0.25200706720352173, -0.476729154586792, 0.8772207498550415, -0.3962699770927429, -0.023491300642490387, 0.006420863792300224, 0.20888033509254456, 0.30375319719314575, -0.18574944138526917, 0.03599030151963234, 0.031861305236816406, -0.1825810670852661, -0.029721464961767197, -0.7237130999565125, -0.06158311665058136, 0.34775543212890625, -0.13566292822360992, 0.08269400149583817, -0.21268939971923828, 0.04302634298801422, -0.5923835635185242, -0.09861886501312256, -0.03552936762571335, -0.6348738670349121, -0.09416258335113525, -0.3619500398635864, 0.08763159066438675, 0.12045195698738098, 0.3645612895488739, 0.10344736278057098, 0.10336635261774063, -0.34730690717697144, 0.21937386691570282, -0.1451958566904068, -0.05489320307970047, 0.21072934567928314, 0.18047663569450378, 0.2133190929889679, -0.058699775487184525, 0.13685718178749084, -0.06410765647888184, -0.011960405856370926, 0.12396860122680664, 0.1416327953338623, -0.09107784926891327, 0.24574147164821625, 0.20721803605556488, 0.059508066624403, 0.06053891032934189, -0.11349450051784515, -0.29336950182914734, -0.2580485939979553, -0.22777388989925385, 0.07088619470596313, -0.055041320621967316, -0.2842024564743042, -0.03738758713006973, 0.37967371940612793, -0.2199351191520691, -0.03676566109061241, 0.5711759328842163, 0.36384478211402893, 0.4119435250759125, -0.1304623782634735, 0.5840528011322021, -0.15031318366527557, -0.011617377400398254, 0.11013269424438477, 0.0380048044025898, 0.3578718304634094, 0.12730363011360168, 0.025770485401153564, 0.10055133700370789, -0.26178455352783203, -0.20990046858787537, 0.5314102172851562, 0.5130408406257629, 0.41174858808517456, -0.26429489254951477, 0.09690071642398834, 0.043632782995700836, -0.0635160282254219, -0.14135591685771942, 0.7605382800102234, -0.06528933346271515, 0.25896787643432617, 0.22889995574951172, 0.3385692238807678, 0.324619859457016, -0.243942528963089, 0.07135428488254547, 0.18408900499343872, 0.3953976035118103, -0.259202241897583, -0.511333703994751, 0.33472371101379395, 0.03192920237779617, 0.275127112865448, -0.1516726315021515, 0.110772043466568, 0.9230403900146484, -0.1979517638683319, 0.5783289074897766, 0.26970309019088745, 0.07318960875272751, 0.047750309109687805, -0.11277596652507782, 0.5054672360420227, 0.2119084894657135, 0.2594747543334961, 0.04255804419517517, 0.15682339668273926, 0.4555433392524719, 0.08629176020622253, -0.4791409373283386, -0.20306766033172607, 0.36334264278411865, -0.06513211131095886, -0.16902533173561096, 0.3964124023914337, 0.001290053129196167, 0.09322665631771088, 0.04580449312925339, 0.21787670254707336, 0.035757534205913544, 0.32464599609375, 0.04910565912723541, 0.1516367793083191, 0.1504165381193161, 0.035743214190006256, 0.4240093529224396, 0.2561798691749573, 0.019646860659122467, -0.2027694135904312, -0.10230538994073868, -0.03314672037959099, 0.12796422839164734, 0.16810844838619232, 0.07434271275997162, 0.16057048738002777, 0.06228204444050789, 0.327392578125, -0.0757853090763092, 0.1349637508392334, -0.02735670655965805, -0.07910501956939697, -0.3827723562717438, -0.03947792202234268, 0.19168424606323242, -0.02119615487754345, -0.013057395815849304, -0.4874782860279083, -0.2010090947151184, 0.3620593845844269, -0.09396948665380478, -0.06353069841861725, 0.13494201004505157, -0.30623364448547363, 0.0034931860864162445, 0.012620683759450912, -0.14362764358520508, -0.130995512008667, 0.3259010910987854, -0.595831036567688, -0.25220155715942383, 0.1412501037120819, -0.02178097516298294, -0.2656867802143097, 0.41395050287246704, 0.09342023730278015, 0.5814163684844971, -0.21570980548858643, -0.01815153658390045, -0.2982735335826874, 0.17798984050750732, -0.1417059451341629, 0.056823983788490295, -0.03097275272011757, 0.47341349720954895, -0.012744180858135223, -0.10036218166351318, 0.640220046043396, 0.08161622285842896, 0.2973898947238922, 0.5808255076408386, -0.21284322440624237, 0.18882612884044647, -0.20312756299972534, -0.2613910436630249, 0.12964969873428345, -0.1679711490869522, 0.43932390213012695, 0.16547700762748718, -0.175612211227417, 0.15023988485336304, -0.11338361352682114, 0.4254378080368042, -0.4664507806301117, 0.47779595851898193, 0.06497970968484879, 0.25795626640319824, -0.13468581438064575, 0.16846412420272827, -0.13285188376903534, -0.11704961210489273, -0.3317900002002716, -0.09994561970233917, -0.25477054715156555, -0.13744646310806274, -0.3246656656265259, -0.14228767156600952, -0.03424554690718651, 0.3217969536781311, -0.15799209475517273, -0.047162845730781555, -0.12769076228141785, 0.19939322769641876, -0.1976647973060608, 0.1830361932516098, -0.05482325702905655, 0.16007789969444275, 0.20749349892139435, 0.1919040083885193, -0.2801051735877991, 0.20808205008506775, 0.22397130727767944, -0.22357863187789917, -0.016886837780475616, -0.4630410075187683, 0.15188363194465637, 0.30876675248146057, 0.14948321878910065, -0.43698638677597046, -0.4406082034111023, 0.07448339462280273, 0.2929985523223877, 0.17049624025821686, 0.19402387738227844, 0.05825626105070114, -0.2841021418571472, -0.2611773908138275, -0.5086885690689087, 0.018264707177877426, 0.10921263694763184, -0.04962306469678879, -0.08739705383777618 ]
https://github.com/huggingface/datasets/issues/1964
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 :)
Datasets.py function load_dataset does not match squad dataset
### 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 ### 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! 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 :)
[ -0.3537203371524811, 0.06250801682472229, 0.0333654023706913, 0.3963988423347473, 0.5554531216621399, 0.005721107125282288, 0.5457586050033569, 0.3404688835144043, -0.09830991178750992, -0.12162333726882935, -0.1650662124156952, 0.4508377015590668, 0.10841506719589233, -0.07741951197385788, 0.18592917919158936, 0.22716158628463745, -0.12422424554824829, -0.012336846441030502, -0.14610841870307922, -0.2893434762954712, -0.1109781339764595, 0.12829115986824036, -0.08231398463249207, 0.2603987157344818, -0.17889921367168427, 0.016690736636519432, 0.2006344199180603, 0.2723645567893982, -0.003796106204390526, -0.21996872127056122, 0.3428422808647156, -0.26060497760772705, 0.23610159754753113, 0.5758857131004333, -0.00011485807772260159, 0.11325585842132568, -0.011543221771717072, -0.3397287130355835, -0.5327043533325195, -0.20022176206111908, -0.1021842211484909, -0.37577250599861145, 0.14864513278007507, -0.2605549395084381, -0.15953220427036285, 0.09373734891414642, 0.020316677168011665, -0.4645366370677948, 0.354454904794693, 0.48831355571746826, 0.21398255228996277, 0.25225698947906494, -0.10010091960430145, 0.0775509923696518, 0.1142546758055687, -0.0009759888052940369, -0.06950906664133072, 0.13609902560710907, 0.3347511291503906, -0.05826897174119949, 0.0025541260838508606, 0.17244571447372437, 0.08280830830335617, 0.056823331862688065, 0.2703096866607666, 0.006403941661119461, 0.19911514222621918, -0.31615516543388367, 0.05644179880619049, 0.31778383255004883, 0.4627762734889984, -0.46301543712615967, -0.3347054421901703, -0.2631347179412842, 0.13310442864894867, -0.2565729022026062, 0.13201650977134705, 0.06727737188339233, 0.05115877464413643, -0.04242759570479393, 0.047776106745004654, 0.03766487538814545, 0.11142879724502563, 0.03682874143123627, 0.0068919360637664795, 0.19999471306800842, 0.028867308050394058, 0.23839621245861053, -0.20153968036174774, -0.11354831606149673, 0.11489177495241165, -0.08314938843250275, 0.08183199912309647, 0.39249321818351746, -0.8285175561904907, -0.08141127228736877, -0.20429499447345734, -0.14217224717140198, 0.2562873959541321, 0.0819007009267807, 0.038692303001880646, -0.0269712395966053, 0.1486688107252121, 0.10445725917816162, 0.1687798649072647, 0.36920395493507385, 0.3052026629447937, 0.26740193367004395, -0.06636322289705276, 0.06682053208351135, -0.3717198967933655, 0.22541043162345886, -0.32258158922195435, -0.16180571913719177, 0.09600909054279327, 0.08358832448720932, 0.006230264902114868, -0.19273823499679565, -0.5517169237136841, 0.17618036270141602, 0.15440873801708221, 0.002642374485731125, 0.09743714332580566, 0.3247913718223572, 0.07591647654771805, 0.3802294433116913, 0.0263226255774498, 0.10485537350177765, -0.2946239709854126, -0.3704160749912262, -0.24087835848331451, 0.033055733889341354, -0.08801040798425674, 0.02683628723025322, 0.018338829278945923, -0.035600557923316956, 0.322783499956131, -0.19576209783554077, 0.21149525046348572, -0.17907950282096863, 0.11500419676303864, -0.25567108392715454, -0.1285901963710785, -0.006595594808459282, 0.029809780418872833, 0.03220510482788086, 0.17429716885089874, -0.37307173013687134, -0.04825257509946823, 0.12229256331920624, -0.3712681531906128, -0.033652275800704956, -0.18205899000167847, 0.18711602687835693, -0.13910828530788422, 0.020878655835986137, -0.23736880719661713, 0.16988682746887207, 0.3073554039001465, -0.18783962726593018, 0.10639594495296478, -0.39612263441085815, -0.16640032827854156, -0.21222715079784393, 0.31516438722610474, 0.38828787207603455, -0.4074566960334778, -0.21171043813228607, 0.12493982166051865, -0.09521395713090897, -0.038163717836141586, 0.12166545540094376, -0.15160539746284485, 0.15556125342845917, -0.20622381567955017, -0.007025681436061859, 0.7145839333534241, -0.8443273305892944, -0.42433780431747437, 0.10997285693883896, -0.30592384934425354, -0.019498728215694427, -0.07101312279701233, 0.06640781462192535, 0.19300879538059235, 0.01473374292254448, 0.08273063600063324, 0.5066142678260803, -0.036293044686317444, 0.09140332043170929, -0.17245793342590332, -0.27121296525001526, 0.252664715051651, 0.17085151374340057, 0.0318140871822834, -0.038064464926719666, 0.03883747383952141, 0.49898386001586914, 0.33221378922462463, 0.14261676371097565, 0.11120495945215225, -0.02995867282152176, -0.03593960404396057, -0.08216360211372375, 0.11460567265748978, -0.14810879528522491, -0.6798554062843323, 0.16386587917804718, -0.1644514799118042, 0.04398901388049126, 0.2410784214735031, -0.15083035826683044, -0.21351328492164612, -0.09173688292503357, -0.4252312183380127, -0.10238797217607498, 0.07439269125461578, 0.14959847927093506, -0.05852027237415314, -0.1226448267698288, -0.15988466143608093, 0.35147908329963684, -0.21545112133026123, 0.22845783829689026, -0.48490622639656067, -0.09653894603252411, -0.06374525278806686, -0.036215607076883316, 0.053700998425483704, 0.33184105157852173, 0.08719216287136078, -0.07095823436975479, -0.10575331747531891, 0.49799561500549316, 0.018025953322649002, 0.10239638388156891, 0.28836333751678467, -0.2016444355249405, 0.09963368624448776, -0.09904501587152481, 0.0020645521581172943, 0.22590908408164978, 0.19466568529605865, -0.08126148581504822, 0.022443100810050964, 0.14189189672470093, 0.1574392020702362, 0.07465554028749466, -0.004861198365688324, -0.15361106395721436, 0.1390526294708252, 0.011864937841892242, 0.011101335287094116, 0.09716247022151947, 0.05203810706734657, 0.2940087914466858, 0.5483118891716003, 0.11113646626472473, -0.18689323961734772, 0.1310926377773285, 0.3315555155277252, -0.06504487991333008, 0.27572643756866455, -0.004397663287818432, -0.17132261395454407, -0.07833901792764664, 0.10100606083869934, 0.17894616723060608, 0.5017951130867004, -0.0036268122494220734, -0.18634852766990662, -0.1349208801984787, -0.06367739289999008, -0.04682379215955734, 0.07113368809223175, -0.18242906033992767, 0.25537219643592834, 0.25777801871299744, 0.18398043513298035, 0.05479762703180313, -0.153158038854599, -0.04974379763007164, 0.020757600665092468, 0.29052525758743286, -0.37411344051361084, 0.046158283948898315, -0.12720459699630737, 0.09795059263706207, -0.37771856784820557, 0.13381057977676392, -0.35025554895401, -0.183357834815979, -0.13573098182678223, -0.11081051826477051, 0.309304416179657, 0.21016693115234375, -0.34853553771972656, 0.15559464693069458, 0.24026420712471008, -0.5443781018257141, 0.15760445594787598, 0.10098983347415924, -0.3830034136772156, 0.052952639758586884, 0.12054223567247391, -0.06962183862924576, -0.09691084176301956, -0.15282732248306274, 0.017325982451438904, -0.12010211497545242, -0.16800369322299957, 0.18687120079994202, -0.052908457815647125, 0.5768340826034546, -0.012331932783126831, 0.17038743197917938, -0.007594861090183258, -0.06801220029592514, 0.16675721108913422, -0.18430808186531067, -0.1167619526386261, -0.16574060916900635, -0.11217031627893448, 0.03648824244737625, -0.07768663018941879, -0.6224924921989441, -0.46739909052848816, -0.29881760478019714, -0.18050433695316315, 0.0007811859250068665, 0.26494741439819336, 0.09364889562129974, 0.010278474539518356, 0.34073975682258606, -0.035576291382312775, 0.036125898361206055, -0.4035869240760803, -0.28184086084365845, 0.2556055188179016, 0.06284698843955994, -0.29479333758354187, -0.09946499764919281, 0.0628201961517334, 0.2072017341852188, -0.09563598036766052, -0.3958396911621094, -0.27399563789367676, 0.230788916349411, -0.011216901242733002, -0.09100937843322754, 0.04723811894655228, 0.11515731364488602, -0.16135556995868683, 0.10615263879299164, -0.2067127823829651, -0.506161093711853, 0.14503443241119385, 0.1470153033733368, 0.6205664873123169, -0.16600996255874634, 0.29800546169281006, -0.052638228982686996, 0.6775237917900085, 0.189077228307724, -0.22801735997200012, 0.2107890248298645, -0.21052329242229462, 0.3032870888710022, 0.0035380683839321136, -0.2769273817539215, 0.30394303798675537, 0.07190602272748947, 0.045916102826595306, 0.3248112201690674, 0.053421955555677414, -0.016675665974617004, -0.06131933256983757, 0.35972917079925537, -0.13923083245754242, -0.15712758898735046, -0.060563988983631134, -0.07529260218143463, -0.27003154158592224, 0.07413188368082047, 0.30652832984924316, -0.1772010326385498, -0.16730031371116638, -0.15177607536315918, 0.4453921914100647, -0.08596482127904892, 0.2577696740627289, -0.679118812084198, -0.004350252449512482, -0.1259898990392685, 0.28680625557899475, -0.14499707520008087, 0.6176645755767822, -0.05449534207582474, -0.18573802709579468, -0.06501908600330353, 0.07910099625587463, 0.47988399863243103, -0.04599786177277565, -0.009340331889688969, -0.03611714392900467, 0.29465252161026, -0.6179636120796204, -0.18783140182495117, 0.17760296165943146, 0.1685306429862976, 0.09368540346622467, 0.3528566062450409, -0.18216069042682648, -0.07711070775985718, 0.16134020686149597, 0.19918093085289001, -0.16626110672950745, -0.01700810343027115, -0.3835245966911316, -0.20730125904083252, -0.3429887890815735, -0.05118146166205406, -0.2764178216457367, 0.13280610740184784, 0.13914865255355835, 0.11733482778072357, 0.2389439195394516, -0.11288419365882874, 0.373893678188324, 0.13678820431232452, 0.38359445333480835, 0.19739732146263123, 0.13533741235733032, 0.2334740310907364, 0.2617395520210266, -0.15024729073047638, 0.48923033475875854, -0.4564044177532196, -0.30006474256515503, 0.03433966264128685, -0.07370370626449585, 0.14769825339317322, 0.3775250017642975, -0.14361843466758728, 0.08376488089561462, -0.3207884430885315, -0.08625549077987671, 0.27541592717170715, 0.1629420816898346, 0.25100910663604736, 0.0771014541387558, -0.11339537799358368, -0.40982621908187866, 0.17985612154006958, -0.11203449964523315, -0.04261976480484009, 0.21456505358219147, -0.4636401832103729, -0.28889524936676025, 0.09641458839178085, -0.10397233068943024, 0.893983006477356, -0.06497412919998169, 0.18897664546966553, 0.3377414047718048, 0.16326281428337097, 0.2822512090206146, -0.07744459807872772, 0.16547738015651703, -0.4589555859565735, -0.07823064923286438, 0.07447439432144165, -0.13921254873275757, -0.06478658318519592, 0.36636248230934143, 0.014166459441184998, 0.5146530866622925, -0.268801212310791, 0.31165680289268494, 0.05401430279016495, 0.521040678024292, -0.13379952311515808, -0.010874943807721138, -0.3472369611263275, 0.19491878151893616, -0.1809045672416687, 0.280245304107666, -0.12038958817720413, 0.0054682157933712006, -0.3029423654079437, -0.13794125616550446, -0.13194090127944946, 0.2274259328842163, -0.5376272201538086, 0.16697660088539124, 0.09342782199382782, -0.34864234924316406, 0.019177034497261047, 0.5643283128738403, -0.10029111802577972, -0.08207681775093079, -0.10845579952001572, 0.35308247804641724, 0.020763326436281204, 0.3046311140060425, 0.07688789069652557, 0.04578070715069771, 0.4243015646934509, -0.016855895519256592, -0.09482476860284805, 0.07203932106494904, -0.004246965050697327, -0.30940836668014526, -0.2513001561164856, 0.04081521928310394, 0.3062189519405365, -0.27568814158439636, -0.1972322016954422, -0.11883857846260071, 0.01594579964876175, -0.05961310863494873, 0.11982608586549759, 0.0611225962638855, -0.09665697813034058, 0.20687231421470642, 0.12961195409297943, -0.4074324369430542, 0.0401296503841877, 0.3414311110973358, 0.05819598585367203, 0.0030539557337760925, 0.6670223474502563, 0.0741891860961914, 0.07047639787197113, -0.19490255415439606, 0.14977401494979858, 0.3011733591556549, -0.23362332582473755, -0.039200495928525925, -0.20007863640785217, -0.2490168660879135, 0.00048480555415153503, -0.12109510600566864, 0.2407468557357788, -0.01767057180404663, 0.04028014838695526, -0.4578702449798584, -0.4342665374279022, 0.03151044249534607, -0.06306120753288269, 0.009265553206205368, 0.07820267230272293, -0.04398735612630844, 0.14506469666957855, 0.04536610096693039, -0.2561044692993164, 0.21077021956443787, -0.19661468267440796, 0.2120199352502823, 0.09935258328914642, -0.040149979293346405, 0.24972477555274963, -0.02280794084072113, 0.050334252417087555, -0.027215197682380676, -0.3081600069999695, -0.1973446160554886, -0.12951253354549408, 0.1182672530412674, 0.022085994482040405, -0.015638776123523712, -0.17388004064559937, -0.29436779022216797, -0.15431952476501465, -0.24747700989246368, -0.0346161350607872, 0.08816249668598175, 0.02744934894144535, 0.014234136790037155, -0.05347251147031784, 0.026538727805018425, 0.06578829139471054, -0.07397418469190598, 0.037588756531476974, 0.044000737369060516, 0.2452986240386963, 0.10125744342803955, 0.047980744391679764, -0.00903959572315216, -0.5060151219367981, 0.10130941867828369, 0.18785497546195984, 0.38351359963417053, 0.02990729548037052, -0.16318653523921967, -0.0384693443775177, 0.2729741930961609, 0.058359429240226746, 0.4147219955921173, -0.4566238224506378, -0.04420894384384155, -0.08864644169807434, 0.14343230426311493, -0.217178612947464, 0.09706588089466095, 0.36258041858673096, -0.1833089292049408, -0.01555740088224411, 0.273564875125885, 0.12666447460651398, 0.18971790373325348, 0.021740756928920746, 0.10689912736415863, 0.5871456265449524, -0.08740194141864777, 0.16464053094387054, 0.2900642454624176, -0.21607980132102966, 0.22053629159927368, 0.33497846126556396, -0.08375467360019684, -0.008730825036764145, 0.3994483947753906, -0.19293498992919922, 0.343112051486969, -0.07903444766998291, -0.12809881567955017, 0.24404433369636536, -0.24880191683769226, 0.07992838323116302, 0.40243133902549744, -0.15660536289215088, 0.16993317008018494, 0.04696962982416153, 0.5395814776420593, -0.4212687313556671, -0.13744276762008667, -0.03823883458971977, -0.16593119502067566, -0.14843502640724182, -0.05985618755221367, 0.06483689695596695, -0.1156122013926506, -0.10017085075378418, -0.23885436356067657, -0.1484498232603073, -0.3574168086051941, -0.050309330224990845, -0.003966514021158218, -0.3478865921497345, -0.07140540331602097, -0.06869851052761078, 0.35503849387168884, -0.19642069935798645, -0.10585729032754898, 0.3332424759864807, -0.14164839684963226, 0.03708989545702934, 0.32675838470458984, 0.25708135962486267, 0.19539295136928558, 0.4452641010284424, 0.07810191810131073, -0.11831741034984589, 0.31555822491645813, 0.04472564160823822, 0.014626048505306244, 0.14780694246292114, -0.13302841782569885, -0.19756880402565002, 0.39231592416763306, 0.13721923530101776, -0.05480096861720085, -0.27560243010520935, 0.34414926171302795, -0.0665346086025238, -0.24723607301712036, 0.21512021124362946, -0.24406269192695618, -0.03808317333459854, -0.5316836833953857, 0.3191310167312622, -0.3130171298980713, 0.09808237850666046, 0.4218282699584961, 0.15430966019630432, 0.3799420893192291, -0.25793689489364624, 0.0727035328745842, -0.028827037662267685, 0.38972821831703186, 0.17298999428749084, -0.24616889655590057, -0.18266984820365906, 0.18811100721359253, -0.9209600687026978, 0.44583964347839355, 0.0589725598692894, -0.039083994925022125, 0.033437423408031464, 0.34398937225341797, 0.05375004559755325, 0.053144391626119614, 0.2887403964996338, -0.09628324955701828, 0.16246503591537476, -0.041559167206287384, -0.37896308302879333, -0.3341311514377594, -0.3106013536453247, 0.4049323797225952, 0.14943212270736694, -0.5924780368804932, 0.2898760139942169, 0.03848930448293686, -0.050169408321380615, -0.10498639941215515, -0.21322359144687653, 0.15900085866451263, -0.13477949798107147, 0.417912095785141, -0.14029110968112946, 0.49387127161026, -0.027379080653190613, -0.019106123596429825, -0.21526303887367249, -0.11116942018270493, -0.29576918482780457, 0.26909953355789185, -0.14611554145812988, 0.07679354399442673, 0.12510305643081665, 0.07603248953819275, -0.2987893521785736, 0.3234615623950958, 0.14698410034179688, -0.2812112867832184, -0.40665340423583984, -0.021511297672986984, 0.03775439411401749, 0.09225723147392273, 0.06012312322854996, 0.3981383442878723, -0.14989034831523895, 0.23341816663742065, -0.1931374967098236, -0.3373353183269501, 0.5052193403244019, -0.3257141411304474, -0.1926414966583252, -0.27418220043182373, 0.2520015239715576, 0.13264641165733337, 0.005211593583226204, -0.6400471329689026, 0.053773388266563416, 0.36803552508354187, -0.18959751725196838, -0.1688362956047058, 0.1406751275062561, -0.23442137241363525, 0.4075177311897278, 0.004643328487873077, 0.037530384957790375, 0.00678706169128418, -0.130524680018425, 0.16363085806369781, -0.25506019592285156 ]
https://github.com/huggingface/datasets/issues/1964
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 ```
Datasets.py function load_dataset does not match squad dataset
### 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 ### 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! 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 ```
[ -0.3537203371524811, 0.06250801682472229, 0.0333654023706913, 0.3963988423347473, 0.5554531216621399, 0.005721107125282288, 0.5457586050033569, 0.3404688835144043, -0.09830991178750992, -0.12162333726882935, -0.1650662124156952, 0.4508377015590668, 0.10841506719589233, -0.07741951197385788, 0.18592917919158936, 0.22716158628463745, -0.12422424554824829, -0.012336846441030502, -0.14610841870307922, -0.2893434762954712, -0.1109781339764595, 0.12829115986824036, -0.08231398463249207, 0.2603987157344818, -0.17889921367168427, 0.016690736636519432, 0.2006344199180603, 0.2723645567893982, -0.003796106204390526, -0.21996872127056122, 0.3428422808647156, -0.26060497760772705, 0.23610159754753113, 0.5758857131004333, -0.00011485807772260159, 0.11325585842132568, -0.011543221771717072, -0.3397287130355835, -0.5327043533325195, -0.20022176206111908, -0.1021842211484909, -0.37577250599861145, 0.14864513278007507, -0.2605549395084381, -0.15953220427036285, 0.09373734891414642, 0.020316677168011665, -0.4645366370677948, 0.354454904794693, 0.48831355571746826, 0.21398255228996277, 0.25225698947906494, -0.10010091960430145, 0.0775509923696518, 0.1142546758055687, -0.0009759888052940369, -0.06950906664133072, 0.13609902560710907, 0.3347511291503906, -0.05826897174119949, 0.0025541260838508606, 0.17244571447372437, 0.08280830830335617, 0.056823331862688065, 0.2703096866607666, 0.006403941661119461, 0.19911514222621918, -0.31615516543388367, 0.05644179880619049, 0.31778383255004883, 0.4627762734889984, -0.46301543712615967, -0.3347054421901703, -0.2631347179412842, 0.13310442864894867, -0.2565729022026062, 0.13201650977134705, 0.06727737188339233, 0.05115877464413643, -0.04242759570479393, 0.047776106745004654, 0.03766487538814545, 0.11142879724502563, 0.03682874143123627, 0.0068919360637664795, 0.19999471306800842, 0.028867308050394058, 0.23839621245861053, -0.20153968036174774, -0.11354831606149673, 0.11489177495241165, -0.08314938843250275, 0.08183199912309647, 0.39249321818351746, -0.8285175561904907, -0.08141127228736877, -0.20429499447345734, -0.14217224717140198, 0.2562873959541321, 0.0819007009267807, 0.038692303001880646, -0.0269712395966053, 0.1486688107252121, 0.10445725917816162, 0.1687798649072647, 0.36920395493507385, 0.3052026629447937, 0.26740193367004395, -0.06636322289705276, 0.06682053208351135, -0.3717198967933655, 0.22541043162345886, -0.32258158922195435, -0.16180571913719177, 0.09600909054279327, 0.08358832448720932, 0.006230264902114868, -0.19273823499679565, -0.5517169237136841, 0.17618036270141602, 0.15440873801708221, 0.002642374485731125, 0.09743714332580566, 0.3247913718223572, 0.07591647654771805, 0.3802294433116913, 0.0263226255774498, 0.10485537350177765, -0.2946239709854126, -0.3704160749912262, -0.24087835848331451, 0.033055733889341354, -0.08801040798425674, 0.02683628723025322, 0.018338829278945923, -0.035600557923316956, 0.322783499956131, -0.19576209783554077, 0.21149525046348572, -0.17907950282096863, 0.11500419676303864, -0.25567108392715454, -0.1285901963710785, -0.006595594808459282, 0.029809780418872833, 0.03220510482788086, 0.17429716885089874, -0.37307173013687134, -0.04825257509946823, 0.12229256331920624, -0.3712681531906128, -0.033652275800704956, -0.18205899000167847, 0.18711602687835693, -0.13910828530788422, 0.020878655835986137, -0.23736880719661713, 0.16988682746887207, 0.3073554039001465, -0.18783962726593018, 0.10639594495296478, -0.39612263441085815, -0.16640032827854156, -0.21222715079784393, 0.31516438722610474, 0.38828787207603455, -0.4074566960334778, -0.21171043813228607, 0.12493982166051865, -0.09521395713090897, -0.038163717836141586, 0.12166545540094376, -0.15160539746284485, 0.15556125342845917, -0.20622381567955017, -0.007025681436061859, 0.7145839333534241, -0.8443273305892944, -0.42433780431747437, 0.10997285693883896, -0.30592384934425354, -0.019498728215694427, -0.07101312279701233, 0.06640781462192535, 0.19300879538059235, 0.01473374292254448, 0.08273063600063324, 0.5066142678260803, -0.036293044686317444, 0.09140332043170929, -0.17245793342590332, -0.27121296525001526, 0.252664715051651, 0.17085151374340057, 0.0318140871822834, -0.038064464926719666, 0.03883747383952141, 0.49898386001586914, 0.33221378922462463, 0.14261676371097565, 0.11120495945215225, -0.02995867282152176, -0.03593960404396057, -0.08216360211372375, 0.11460567265748978, -0.14810879528522491, -0.6798554062843323, 0.16386587917804718, -0.1644514799118042, 0.04398901388049126, 0.2410784214735031, -0.15083035826683044, -0.21351328492164612, -0.09173688292503357, -0.4252312183380127, -0.10238797217607498, 0.07439269125461578, 0.14959847927093506, -0.05852027237415314, -0.1226448267698288, -0.15988466143608093, 0.35147908329963684, -0.21545112133026123, 0.22845783829689026, -0.48490622639656067, -0.09653894603252411, -0.06374525278806686, -0.036215607076883316, 0.053700998425483704, 0.33184105157852173, 0.08719216287136078, -0.07095823436975479, -0.10575331747531891, 0.49799561500549316, 0.018025953322649002, 0.10239638388156891, 0.28836333751678467, -0.2016444355249405, 0.09963368624448776, -0.09904501587152481, 0.0020645521581172943, 0.22590908408164978, 0.19466568529605865, -0.08126148581504822, 0.022443100810050964, 0.14189189672470093, 0.1574392020702362, 0.07465554028749466, -0.004861198365688324, -0.15361106395721436, 0.1390526294708252, 0.011864937841892242, 0.011101335287094116, 0.09716247022151947, 0.05203810706734657, 0.2940087914466858, 0.5483118891716003, 0.11113646626472473, -0.18689323961734772, 0.1310926377773285, 0.3315555155277252, -0.06504487991333008, 0.27572643756866455, -0.004397663287818432, -0.17132261395454407, -0.07833901792764664, 0.10100606083869934, 0.17894616723060608, 0.5017951130867004, -0.0036268122494220734, -0.18634852766990662, -0.1349208801984787, -0.06367739289999008, -0.04682379215955734, 0.07113368809223175, -0.18242906033992767, 0.25537219643592834, 0.25777801871299744, 0.18398043513298035, 0.05479762703180313, -0.153158038854599, -0.04974379763007164, 0.020757600665092468, 0.29052525758743286, -0.37411344051361084, 0.046158283948898315, -0.12720459699630737, 0.09795059263706207, -0.37771856784820557, 0.13381057977676392, -0.35025554895401, -0.183357834815979, -0.13573098182678223, -0.11081051826477051, 0.309304416179657, 0.21016693115234375, -0.34853553771972656, 0.15559464693069458, 0.24026420712471008, -0.5443781018257141, 0.15760445594787598, 0.10098983347415924, -0.3830034136772156, 0.052952639758586884, 0.12054223567247391, -0.06962183862924576, -0.09691084176301956, -0.15282732248306274, 0.017325982451438904, -0.12010211497545242, -0.16800369322299957, 0.18687120079994202, -0.052908457815647125, 0.5768340826034546, -0.012331932783126831, 0.17038743197917938, -0.007594861090183258, -0.06801220029592514, 0.16675721108913422, -0.18430808186531067, -0.1167619526386261, -0.16574060916900635, -0.11217031627893448, 0.03648824244737625, -0.07768663018941879, -0.6224924921989441, -0.46739909052848816, -0.29881760478019714, -0.18050433695316315, 0.0007811859250068665, 0.26494741439819336, 0.09364889562129974, 0.010278474539518356, 0.34073975682258606, -0.035576291382312775, 0.036125898361206055, -0.4035869240760803, -0.28184086084365845, 0.2556055188179016, 0.06284698843955994, -0.29479333758354187, -0.09946499764919281, 0.0628201961517334, 0.2072017341852188, -0.09563598036766052, -0.3958396911621094, -0.27399563789367676, 0.230788916349411, -0.011216901242733002, -0.09100937843322754, 0.04723811894655228, 0.11515731364488602, -0.16135556995868683, 0.10615263879299164, -0.2067127823829651, -0.506161093711853, 0.14503443241119385, 0.1470153033733368, 0.6205664873123169, -0.16600996255874634, 0.29800546169281006, -0.052638228982686996, 0.6775237917900085, 0.189077228307724, -0.22801735997200012, 0.2107890248298645, -0.21052329242229462, 0.3032870888710022, 0.0035380683839321136, -0.2769273817539215, 0.30394303798675537, 0.07190602272748947, 0.045916102826595306, 0.3248112201690674, 0.053421955555677414, -0.016675665974617004, -0.06131933256983757, 0.35972917079925537, -0.13923083245754242, -0.15712758898735046, -0.060563988983631134, -0.07529260218143463, -0.27003154158592224, 0.07413188368082047, 0.30652832984924316, -0.1772010326385498, -0.16730031371116638, -0.15177607536315918, 0.4453921914100647, -0.08596482127904892, 0.2577696740627289, -0.679118812084198, -0.004350252449512482, -0.1259898990392685, 0.28680625557899475, -0.14499707520008087, 0.6176645755767822, -0.05449534207582474, -0.18573802709579468, -0.06501908600330353, 0.07910099625587463, 0.47988399863243103, -0.04599786177277565, -0.009340331889688969, -0.03611714392900467, 0.29465252161026, -0.6179636120796204, -0.18783140182495117, 0.17760296165943146, 0.1685306429862976, 0.09368540346622467, 0.3528566062450409, -0.18216069042682648, -0.07711070775985718, 0.16134020686149597, 0.19918093085289001, -0.16626110672950745, -0.01700810343027115, -0.3835245966911316, -0.20730125904083252, -0.3429887890815735, -0.05118146166205406, -0.2764178216457367, 0.13280610740184784, 0.13914865255355835, 0.11733482778072357, 0.2389439195394516, -0.11288419365882874, 0.373893678188324, 0.13678820431232452, 0.38359445333480835, 0.19739732146263123, 0.13533741235733032, 0.2334740310907364, 0.2617395520210266, -0.15024729073047638, 0.48923033475875854, -0.4564044177532196, -0.30006474256515503, 0.03433966264128685, -0.07370370626449585, 0.14769825339317322, 0.3775250017642975, -0.14361843466758728, 0.08376488089561462, -0.3207884430885315, -0.08625549077987671, 0.27541592717170715, 0.1629420816898346, 0.25100910663604736, 0.0771014541387558, -0.11339537799358368, -0.40982621908187866, 0.17985612154006958, -0.11203449964523315, -0.04261976480484009, 0.21456505358219147, -0.4636401832103729, -0.28889524936676025, 0.09641458839178085, -0.10397233068943024, 0.893983006477356, -0.06497412919998169, 0.18897664546966553, 0.3377414047718048, 0.16326281428337097, 0.2822512090206146, -0.07744459807872772, 0.16547738015651703, -0.4589555859565735, -0.07823064923286438, 0.07447439432144165, -0.13921254873275757, -0.06478658318519592, 0.36636248230934143, 0.014166459441184998, 0.5146530866622925, -0.268801212310791, 0.31165680289268494, 0.05401430279016495, 0.521040678024292, -0.13379952311515808, -0.010874943807721138, -0.3472369611263275, 0.19491878151893616, -0.1809045672416687, 0.280245304107666, -0.12038958817720413, 0.0054682157933712006, -0.3029423654079437, -0.13794125616550446, -0.13194090127944946, 0.2274259328842163, -0.5376272201538086, 0.16697660088539124, 0.09342782199382782, -0.34864234924316406, 0.019177034497261047, 0.5643283128738403, -0.10029111802577972, -0.08207681775093079, -0.10845579952001572, 0.35308247804641724, 0.020763326436281204, 0.3046311140060425, 0.07688789069652557, 0.04578070715069771, 0.4243015646934509, -0.016855895519256592, -0.09482476860284805, 0.07203932106494904, -0.004246965050697327, -0.30940836668014526, -0.2513001561164856, 0.04081521928310394, 0.3062189519405365, -0.27568814158439636, -0.1972322016954422, -0.11883857846260071, 0.01594579964876175, -0.05961310863494873, 0.11982608586549759, 0.0611225962638855, -0.09665697813034058, 0.20687231421470642, 0.12961195409297943, -0.4074324369430542, 0.0401296503841877, 0.3414311110973358, 0.05819598585367203, 0.0030539557337760925, 0.6670223474502563, 0.0741891860961914, 0.07047639787197113, -0.19490255415439606, 0.14977401494979858, 0.3011733591556549, -0.23362332582473755, -0.039200495928525925, -0.20007863640785217, -0.2490168660879135, 0.00048480555415153503, -0.12109510600566864, 0.2407468557357788, -0.01767057180404663, 0.04028014838695526, -0.4578702449798584, -0.4342665374279022, 0.03151044249534607, -0.06306120753288269, 0.009265553206205368, 0.07820267230272293, -0.04398735612630844, 0.14506469666957855, 0.04536610096693039, -0.2561044692993164, 0.21077021956443787, -0.19661468267440796, 0.2120199352502823, 0.09935258328914642, -0.040149979293346405, 0.24972477555274963, -0.02280794084072113, 0.050334252417087555, -0.027215197682380676, -0.3081600069999695, -0.1973446160554886, -0.12951253354549408, 0.1182672530412674, 0.022085994482040405, -0.015638776123523712, -0.17388004064559937, -0.29436779022216797, -0.15431952476501465, -0.24747700989246368, -0.0346161350607872, 0.08816249668598175, 0.02744934894144535, 0.014234136790037155, -0.05347251147031784, 0.026538727805018425, 0.06578829139471054, -0.07397418469190598, 0.037588756531476974, 0.044000737369060516, 0.2452986240386963, 0.10125744342803955, 0.047980744391679764, -0.00903959572315216, -0.5060151219367981, 0.10130941867828369, 0.18785497546195984, 0.38351359963417053, 0.02990729548037052, -0.16318653523921967, -0.0384693443775177, 0.2729741930961609, 0.058359429240226746, 0.4147219955921173, -0.4566238224506378, -0.04420894384384155, -0.08864644169807434, 0.14343230426311493, -0.217178612947464, 0.09706588089466095, 0.36258041858673096, -0.1833089292049408, -0.01555740088224411, 0.273564875125885, 0.12666447460651398, 0.18971790373325348, 0.021740756928920746, 0.10689912736415863, 0.5871456265449524, -0.08740194141864777, 0.16464053094387054, 0.2900642454624176, -0.21607980132102966, 0.22053629159927368, 0.33497846126556396, -0.08375467360019684, -0.008730825036764145, 0.3994483947753906, -0.19293498992919922, 0.343112051486969, -0.07903444766998291, -0.12809881567955017, 0.24404433369636536, -0.24880191683769226, 0.07992838323116302, 0.40243133902549744, -0.15660536289215088, 0.16993317008018494, 0.04696962982416153, 0.5395814776420593, -0.4212687313556671, -0.13744276762008667, -0.03823883458971977, -0.16593119502067566, -0.14843502640724182, -0.05985618755221367, 0.06483689695596695, -0.1156122013926506, -0.10017085075378418, -0.23885436356067657, -0.1484498232603073, -0.3574168086051941, -0.050309330224990845, -0.003966514021158218, -0.3478865921497345, -0.07140540331602097, -0.06869851052761078, 0.35503849387168884, -0.19642069935798645, -0.10585729032754898, 0.3332424759864807, -0.14164839684963226, 0.03708989545702934, 0.32675838470458984, 0.25708135962486267, 0.19539295136928558, 0.4452641010284424, 0.07810191810131073, -0.11831741034984589, 0.31555822491645813, 0.04472564160823822, 0.014626048505306244, 0.14780694246292114, -0.13302841782569885, -0.19756880402565002, 0.39231592416763306, 0.13721923530101776, -0.05480096861720085, -0.27560243010520935, 0.34414926171302795, -0.0665346086025238, -0.24723607301712036, 0.21512021124362946, -0.24406269192695618, -0.03808317333459854, -0.5316836833953857, 0.3191310167312622, -0.3130171298980713, 0.09808237850666046, 0.4218282699584961, 0.15430966019630432, 0.3799420893192291, -0.25793689489364624, 0.0727035328745842, -0.028827037662267685, 0.38972821831703186, 0.17298999428749084, -0.24616889655590057, -0.18266984820365906, 0.18811100721359253, -0.9209600687026978, 0.44583964347839355, 0.0589725598692894, -0.039083994925022125, 0.033437423408031464, 0.34398937225341797, 0.05375004559755325, 0.053144391626119614, 0.2887403964996338, -0.09628324955701828, 0.16246503591537476, -0.041559167206287384, -0.37896308302879333, -0.3341311514377594, -0.3106013536453247, 0.4049323797225952, 0.14943212270736694, -0.5924780368804932, 0.2898760139942169, 0.03848930448293686, -0.050169408321380615, -0.10498639941215515, -0.21322359144687653, 0.15900085866451263, -0.13477949798107147, 0.417912095785141, -0.14029110968112946, 0.49387127161026, -0.027379080653190613, -0.019106123596429825, -0.21526303887367249, -0.11116942018270493, -0.29576918482780457, 0.26909953355789185, -0.14611554145812988, 0.07679354399442673, 0.12510305643081665, 0.07603248953819275, -0.2987893521785736, 0.3234615623950958, 0.14698410034179688, -0.2812112867832184, -0.40665340423583984, -0.021511297672986984, 0.03775439411401749, 0.09225723147392273, 0.06012312322854996, 0.3981383442878723, -0.14989034831523895, 0.23341816663742065, -0.1931374967098236, -0.3373353183269501, 0.5052193403244019, -0.3257141411304474, -0.1926414966583252, -0.27418220043182373, 0.2520015239715576, 0.13264641165733337, 0.005211593583226204, -0.6400471329689026, 0.053773388266563416, 0.36803552508354187, -0.18959751725196838, -0.1688362956047058, 0.1406751275062561, -0.23442137241363525, 0.4075177311897278, 0.004643328487873077, 0.037530384957790375, 0.00678706169128418, -0.130524680018425, 0.16363085806369781, -0.25506019592285156 ]
https://github.com/huggingface/datasets/issues/1964
## 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 ```
Datasets.py function load_dataset does not match squad dataset
### 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 ### 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! ## 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 ```
[ -0.3537203371524811, 0.06250801682472229, 0.0333654023706913, 0.3963988423347473, 0.5554531216621399, 0.005721107125282288, 0.5457586050033569, 0.3404688835144043, -0.09830991178750992, -0.12162333726882935, -0.1650662124156952, 0.4508377015590668, 0.10841506719589233, -0.07741951197385788, 0.18592917919158936, 0.22716158628463745, -0.12422424554824829, -0.012336846441030502, -0.14610841870307922, -0.2893434762954712, -0.1109781339764595, 0.12829115986824036, -0.08231398463249207, 0.2603987157344818, -0.17889921367168427, 0.016690736636519432, 0.2006344199180603, 0.2723645567893982, -0.003796106204390526, -0.21996872127056122, 0.3428422808647156, -0.26060497760772705, 0.23610159754753113, 0.5758857131004333, -0.00011485807772260159, 0.11325585842132568, -0.011543221771717072, -0.3397287130355835, -0.5327043533325195, -0.20022176206111908, -0.1021842211484909, -0.37577250599861145, 0.14864513278007507, -0.2605549395084381, -0.15953220427036285, 0.09373734891414642, 0.020316677168011665, -0.4645366370677948, 0.354454904794693, 0.48831355571746826, 0.21398255228996277, 0.25225698947906494, -0.10010091960430145, 0.0775509923696518, 0.1142546758055687, -0.0009759888052940369, -0.06950906664133072, 0.13609902560710907, 0.3347511291503906, -0.05826897174119949, 0.0025541260838508606, 0.17244571447372437, 0.08280830830335617, 0.056823331862688065, 0.2703096866607666, 0.006403941661119461, 0.19911514222621918, -0.31615516543388367, 0.05644179880619049, 0.31778383255004883, 0.4627762734889984, -0.46301543712615967, -0.3347054421901703, -0.2631347179412842, 0.13310442864894867, -0.2565729022026062, 0.13201650977134705, 0.06727737188339233, 0.05115877464413643, -0.04242759570479393, 0.047776106745004654, 0.03766487538814545, 0.11142879724502563, 0.03682874143123627, 0.0068919360637664795, 0.19999471306800842, 0.028867308050394058, 0.23839621245861053, -0.20153968036174774, -0.11354831606149673, 0.11489177495241165, -0.08314938843250275, 0.08183199912309647, 0.39249321818351746, -0.8285175561904907, -0.08141127228736877, -0.20429499447345734, -0.14217224717140198, 0.2562873959541321, 0.0819007009267807, 0.038692303001880646, -0.0269712395966053, 0.1486688107252121, 0.10445725917816162, 0.1687798649072647, 0.36920395493507385, 0.3052026629447937, 0.26740193367004395, -0.06636322289705276, 0.06682053208351135, -0.3717198967933655, 0.22541043162345886, -0.32258158922195435, -0.16180571913719177, 0.09600909054279327, 0.08358832448720932, 0.006230264902114868, -0.19273823499679565, -0.5517169237136841, 0.17618036270141602, 0.15440873801708221, 0.002642374485731125, 0.09743714332580566, 0.3247913718223572, 0.07591647654771805, 0.3802294433116913, 0.0263226255774498, 0.10485537350177765, -0.2946239709854126, -0.3704160749912262, -0.24087835848331451, 0.033055733889341354, -0.08801040798425674, 0.02683628723025322, 0.018338829278945923, -0.035600557923316956, 0.322783499956131, -0.19576209783554077, 0.21149525046348572, -0.17907950282096863, 0.11500419676303864, -0.25567108392715454, -0.1285901963710785, -0.006595594808459282, 0.029809780418872833, 0.03220510482788086, 0.17429716885089874, -0.37307173013687134, -0.04825257509946823, 0.12229256331920624, -0.3712681531906128, -0.033652275800704956, -0.18205899000167847, 0.18711602687835693, -0.13910828530788422, 0.020878655835986137, -0.23736880719661713, 0.16988682746887207, 0.3073554039001465, -0.18783962726593018, 0.10639594495296478, -0.39612263441085815, -0.16640032827854156, -0.21222715079784393, 0.31516438722610474, 0.38828787207603455, -0.4074566960334778, -0.21171043813228607, 0.12493982166051865, -0.09521395713090897, -0.038163717836141586, 0.12166545540094376, -0.15160539746284485, 0.15556125342845917, -0.20622381567955017, -0.007025681436061859, 0.7145839333534241, -0.8443273305892944, -0.42433780431747437, 0.10997285693883896, -0.30592384934425354, -0.019498728215694427, -0.07101312279701233, 0.06640781462192535, 0.19300879538059235, 0.01473374292254448, 0.08273063600063324, 0.5066142678260803, -0.036293044686317444, 0.09140332043170929, -0.17245793342590332, -0.27121296525001526, 0.252664715051651, 0.17085151374340057, 0.0318140871822834, -0.038064464926719666, 0.03883747383952141, 0.49898386001586914, 0.33221378922462463, 0.14261676371097565, 0.11120495945215225, -0.02995867282152176, -0.03593960404396057, -0.08216360211372375, 0.11460567265748978, -0.14810879528522491, -0.6798554062843323, 0.16386587917804718, -0.1644514799118042, 0.04398901388049126, 0.2410784214735031, -0.15083035826683044, -0.21351328492164612, -0.09173688292503357, -0.4252312183380127, -0.10238797217607498, 0.07439269125461578, 0.14959847927093506, -0.05852027237415314, -0.1226448267698288, -0.15988466143608093, 0.35147908329963684, -0.21545112133026123, 0.22845783829689026, -0.48490622639656067, -0.09653894603252411, -0.06374525278806686, -0.036215607076883316, 0.053700998425483704, 0.33184105157852173, 0.08719216287136078, -0.07095823436975479, -0.10575331747531891, 0.49799561500549316, 0.018025953322649002, 0.10239638388156891, 0.28836333751678467, -0.2016444355249405, 0.09963368624448776, -0.09904501587152481, 0.0020645521581172943, 0.22590908408164978, 0.19466568529605865, -0.08126148581504822, 0.022443100810050964, 0.14189189672470093, 0.1574392020702362, 0.07465554028749466, -0.004861198365688324, -0.15361106395721436, 0.1390526294708252, 0.011864937841892242, 0.011101335287094116, 0.09716247022151947, 0.05203810706734657, 0.2940087914466858, 0.5483118891716003, 0.11113646626472473, -0.18689323961734772, 0.1310926377773285, 0.3315555155277252, -0.06504487991333008, 0.27572643756866455, -0.004397663287818432, -0.17132261395454407, -0.07833901792764664, 0.10100606083869934, 0.17894616723060608, 0.5017951130867004, -0.0036268122494220734, -0.18634852766990662, -0.1349208801984787, -0.06367739289999008, -0.04682379215955734, 0.07113368809223175, -0.18242906033992767, 0.25537219643592834, 0.25777801871299744, 0.18398043513298035, 0.05479762703180313, -0.153158038854599, -0.04974379763007164, 0.020757600665092468, 0.29052525758743286, -0.37411344051361084, 0.046158283948898315, -0.12720459699630737, 0.09795059263706207, -0.37771856784820557, 0.13381057977676392, -0.35025554895401, -0.183357834815979, -0.13573098182678223, -0.11081051826477051, 0.309304416179657, 0.21016693115234375, -0.34853553771972656, 0.15559464693069458, 0.24026420712471008, -0.5443781018257141, 0.15760445594787598, 0.10098983347415924, -0.3830034136772156, 0.052952639758586884, 0.12054223567247391, -0.06962183862924576, -0.09691084176301956, -0.15282732248306274, 0.017325982451438904, -0.12010211497545242, -0.16800369322299957, 0.18687120079994202, -0.052908457815647125, 0.5768340826034546, -0.012331932783126831, 0.17038743197917938, -0.007594861090183258, -0.06801220029592514, 0.16675721108913422, -0.18430808186531067, -0.1167619526386261, -0.16574060916900635, -0.11217031627893448, 0.03648824244737625, -0.07768663018941879, -0.6224924921989441, -0.46739909052848816, -0.29881760478019714, -0.18050433695316315, 0.0007811859250068665, 0.26494741439819336, 0.09364889562129974, 0.010278474539518356, 0.34073975682258606, -0.035576291382312775, 0.036125898361206055, -0.4035869240760803, -0.28184086084365845, 0.2556055188179016, 0.06284698843955994, -0.29479333758354187, -0.09946499764919281, 0.0628201961517334, 0.2072017341852188, -0.09563598036766052, -0.3958396911621094, -0.27399563789367676, 0.230788916349411, -0.011216901242733002, -0.09100937843322754, 0.04723811894655228, 0.11515731364488602, -0.16135556995868683, 0.10615263879299164, -0.2067127823829651, -0.506161093711853, 0.14503443241119385, 0.1470153033733368, 0.6205664873123169, -0.16600996255874634, 0.29800546169281006, -0.052638228982686996, 0.6775237917900085, 0.189077228307724, -0.22801735997200012, 0.2107890248298645, -0.21052329242229462, 0.3032870888710022, 0.0035380683839321136, -0.2769273817539215, 0.30394303798675537, 0.07190602272748947, 0.045916102826595306, 0.3248112201690674, 0.053421955555677414, -0.016675665974617004, -0.06131933256983757, 0.35972917079925537, -0.13923083245754242, -0.15712758898735046, -0.060563988983631134, -0.07529260218143463, -0.27003154158592224, 0.07413188368082047, 0.30652832984924316, -0.1772010326385498, -0.16730031371116638, -0.15177607536315918, 0.4453921914100647, -0.08596482127904892, 0.2577696740627289, -0.679118812084198, -0.004350252449512482, -0.1259898990392685, 0.28680625557899475, -0.14499707520008087, 0.6176645755767822, -0.05449534207582474, -0.18573802709579468, -0.06501908600330353, 0.07910099625587463, 0.47988399863243103, -0.04599786177277565, -0.009340331889688969, -0.03611714392900467, 0.29465252161026, -0.6179636120796204, -0.18783140182495117, 0.17760296165943146, 0.1685306429862976, 0.09368540346622467, 0.3528566062450409, -0.18216069042682648, -0.07711070775985718, 0.16134020686149597, 0.19918093085289001, -0.16626110672950745, -0.01700810343027115, -0.3835245966911316, -0.20730125904083252, -0.3429887890815735, -0.05118146166205406, -0.2764178216457367, 0.13280610740184784, 0.13914865255355835, 0.11733482778072357, 0.2389439195394516, -0.11288419365882874, 0.373893678188324, 0.13678820431232452, 0.38359445333480835, 0.19739732146263123, 0.13533741235733032, 0.2334740310907364, 0.2617395520210266, -0.15024729073047638, 0.48923033475875854, -0.4564044177532196, -0.30006474256515503, 0.03433966264128685, -0.07370370626449585, 0.14769825339317322, 0.3775250017642975, -0.14361843466758728, 0.08376488089561462, -0.3207884430885315, -0.08625549077987671, 0.27541592717170715, 0.1629420816898346, 0.25100910663604736, 0.0771014541387558, -0.11339537799358368, -0.40982621908187866, 0.17985612154006958, -0.11203449964523315, -0.04261976480484009, 0.21456505358219147, -0.4636401832103729, -0.28889524936676025, 0.09641458839178085, -0.10397233068943024, 0.893983006477356, -0.06497412919998169, 0.18897664546966553, 0.3377414047718048, 0.16326281428337097, 0.2822512090206146, -0.07744459807872772, 0.16547738015651703, -0.4589555859565735, -0.07823064923286438, 0.07447439432144165, -0.13921254873275757, -0.06478658318519592, 0.36636248230934143, 0.014166459441184998, 0.5146530866622925, -0.268801212310791, 0.31165680289268494, 0.05401430279016495, 0.521040678024292, -0.13379952311515808, -0.010874943807721138, -0.3472369611263275, 0.19491878151893616, -0.1809045672416687, 0.280245304107666, -0.12038958817720413, 0.0054682157933712006, -0.3029423654079437, -0.13794125616550446, -0.13194090127944946, 0.2274259328842163, -0.5376272201538086, 0.16697660088539124, 0.09342782199382782, -0.34864234924316406, 0.019177034497261047, 0.5643283128738403, -0.10029111802577972, -0.08207681775093079, -0.10845579952001572, 0.35308247804641724, 0.020763326436281204, 0.3046311140060425, 0.07688789069652557, 0.04578070715069771, 0.4243015646934509, -0.016855895519256592, -0.09482476860284805, 0.07203932106494904, -0.004246965050697327, -0.30940836668014526, -0.2513001561164856, 0.04081521928310394, 0.3062189519405365, -0.27568814158439636, -0.1972322016954422, -0.11883857846260071, 0.01594579964876175, -0.05961310863494873, 0.11982608586549759, 0.0611225962638855, -0.09665697813034058, 0.20687231421470642, 0.12961195409297943, -0.4074324369430542, 0.0401296503841877, 0.3414311110973358, 0.05819598585367203, 0.0030539557337760925, 0.6670223474502563, 0.0741891860961914, 0.07047639787197113, -0.19490255415439606, 0.14977401494979858, 0.3011733591556549, -0.23362332582473755, -0.039200495928525925, -0.20007863640785217, -0.2490168660879135, 0.00048480555415153503, -0.12109510600566864, 0.2407468557357788, -0.01767057180404663, 0.04028014838695526, -0.4578702449798584, -0.4342665374279022, 0.03151044249534607, -0.06306120753288269, 0.009265553206205368, 0.07820267230272293, -0.04398735612630844, 0.14506469666957855, 0.04536610096693039, -0.2561044692993164, 0.21077021956443787, -0.19661468267440796, 0.2120199352502823, 0.09935258328914642, -0.040149979293346405, 0.24972477555274963, -0.02280794084072113, 0.050334252417087555, -0.027215197682380676, -0.3081600069999695, -0.1973446160554886, -0.12951253354549408, 0.1182672530412674, 0.022085994482040405, -0.015638776123523712, -0.17388004064559937, -0.29436779022216797, -0.15431952476501465, -0.24747700989246368, -0.0346161350607872, 0.08816249668598175, 0.02744934894144535, 0.014234136790037155, -0.05347251147031784, 0.026538727805018425, 0.06578829139471054, -0.07397418469190598, 0.037588756531476974, 0.044000737369060516, 0.2452986240386963, 0.10125744342803955, 0.047980744391679764, -0.00903959572315216, -0.5060151219367981, 0.10130941867828369, 0.18785497546195984, 0.38351359963417053, 0.02990729548037052, -0.16318653523921967, -0.0384693443775177, 0.2729741930961609, 0.058359429240226746, 0.4147219955921173, -0.4566238224506378, -0.04420894384384155, -0.08864644169807434, 0.14343230426311493, -0.217178612947464, 0.09706588089466095, 0.36258041858673096, -0.1833089292049408, -0.01555740088224411, 0.273564875125885, 0.12666447460651398, 0.18971790373325348, 0.021740756928920746, 0.10689912736415863, 0.5871456265449524, -0.08740194141864777, 0.16464053094387054, 0.2900642454624176, -0.21607980132102966, 0.22053629159927368, 0.33497846126556396, -0.08375467360019684, -0.008730825036764145, 0.3994483947753906, -0.19293498992919922, 0.343112051486969, -0.07903444766998291, -0.12809881567955017, 0.24404433369636536, -0.24880191683769226, 0.07992838323116302, 0.40243133902549744, -0.15660536289215088, 0.16993317008018494, 0.04696962982416153, 0.5395814776420593, -0.4212687313556671, -0.13744276762008667, -0.03823883458971977, -0.16593119502067566, -0.14843502640724182, -0.05985618755221367, 0.06483689695596695, -0.1156122013926506, -0.10017085075378418, -0.23885436356067657, -0.1484498232603073, -0.3574168086051941, -0.050309330224990845, -0.003966514021158218, -0.3478865921497345, -0.07140540331602097, -0.06869851052761078, 0.35503849387168884, -0.19642069935798645, -0.10585729032754898, 0.3332424759864807, -0.14164839684963226, 0.03708989545702934, 0.32675838470458984, 0.25708135962486267, 0.19539295136928558, 0.4452641010284424, 0.07810191810131073, -0.11831741034984589, 0.31555822491645813, 0.04472564160823822, 0.014626048505306244, 0.14780694246292114, -0.13302841782569885, -0.19756880402565002, 0.39231592416763306, 0.13721923530101776, -0.05480096861720085, -0.27560243010520935, 0.34414926171302795, -0.0665346086025238, -0.24723607301712036, 0.21512021124362946, -0.24406269192695618, -0.03808317333459854, -0.5316836833953857, 0.3191310167312622, -0.3130171298980713, 0.09808237850666046, 0.4218282699584961, 0.15430966019630432, 0.3799420893192291, -0.25793689489364624, 0.0727035328745842, -0.028827037662267685, 0.38972821831703186, 0.17298999428749084, -0.24616889655590057, -0.18266984820365906, 0.18811100721359253, -0.9209600687026978, 0.44583964347839355, 0.0589725598692894, -0.039083994925022125, 0.033437423408031464, 0.34398937225341797, 0.05375004559755325, 0.053144391626119614, 0.2887403964996338, -0.09628324955701828, 0.16246503591537476, -0.041559167206287384, -0.37896308302879333, -0.3341311514377594, -0.3106013536453247, 0.4049323797225952, 0.14943212270736694, -0.5924780368804932, 0.2898760139942169, 0.03848930448293686, -0.050169408321380615, -0.10498639941215515, -0.21322359144687653, 0.15900085866451263, -0.13477949798107147, 0.417912095785141, -0.14029110968112946, 0.49387127161026, -0.027379080653190613, -0.019106123596429825, -0.21526303887367249, -0.11116942018270493, -0.29576918482780457, 0.26909953355789185, -0.14611554145812988, 0.07679354399442673, 0.12510305643081665, 0.07603248953819275, -0.2987893521785736, 0.3234615623950958, 0.14698410034179688, -0.2812112867832184, -0.40665340423583984, -0.021511297672986984, 0.03775439411401749, 0.09225723147392273, 0.06012312322854996, 0.3981383442878723, -0.14989034831523895, 0.23341816663742065, -0.1931374967098236, -0.3373353183269501, 0.5052193403244019, -0.3257141411304474, -0.1926414966583252, -0.27418220043182373, 0.2520015239715576, 0.13264641165733337, 0.005211593583226204, -0.6400471329689026, 0.053773388266563416, 0.36803552508354187, -0.18959751725196838, -0.1688362956047058, 0.1406751275062561, -0.23442137241363525, 0.4075177311897278, 0.004643328487873077, 0.037530384957790375, 0.00678706169128418, -0.130524680018425, 0.16363085806369781, -0.25506019592285156 ]
https://github.com/huggingface/datasets/issues/1964
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'} ```
Datasets.py function load_dataset does not match squad dataset
### 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 ### 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! 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'} ```
[ -0.3537203371524811, 0.06250801682472229, 0.0333654023706913, 0.3963988423347473, 0.5554531216621399, 0.005721107125282288, 0.5457586050033569, 0.3404688835144043, -0.09830991178750992, -0.12162333726882935, -0.1650662124156952, 0.4508377015590668, 0.10841506719589233, -0.07741951197385788, 0.18592917919158936, 0.22716158628463745, -0.12422424554824829, -0.012336846441030502, -0.14610841870307922, -0.2893434762954712, -0.1109781339764595, 0.12829115986824036, -0.08231398463249207, 0.2603987157344818, -0.17889921367168427, 0.016690736636519432, 0.2006344199180603, 0.2723645567893982, -0.003796106204390526, -0.21996872127056122, 0.3428422808647156, -0.26060497760772705, 0.23610159754753113, 0.5758857131004333, -0.00011485807772260159, 0.11325585842132568, -0.011543221771717072, -0.3397287130355835, -0.5327043533325195, -0.20022176206111908, -0.1021842211484909, -0.37577250599861145, 0.14864513278007507, -0.2605549395084381, -0.15953220427036285, 0.09373734891414642, 0.020316677168011665, -0.4645366370677948, 0.354454904794693, 0.48831355571746826, 0.21398255228996277, 0.25225698947906494, -0.10010091960430145, 0.0775509923696518, 0.1142546758055687, -0.0009759888052940369, -0.06950906664133072, 0.13609902560710907, 0.3347511291503906, -0.05826897174119949, 0.0025541260838508606, 0.17244571447372437, 0.08280830830335617, 0.056823331862688065, 0.2703096866607666, 0.006403941661119461, 0.19911514222621918, -0.31615516543388367, 0.05644179880619049, 0.31778383255004883, 0.4627762734889984, -0.46301543712615967, -0.3347054421901703, -0.2631347179412842, 0.13310442864894867, -0.2565729022026062, 0.13201650977134705, 0.06727737188339233, 0.05115877464413643, -0.04242759570479393, 0.047776106745004654, 0.03766487538814545, 0.11142879724502563, 0.03682874143123627, 0.0068919360637664795, 0.19999471306800842, 0.028867308050394058, 0.23839621245861053, -0.20153968036174774, -0.11354831606149673, 0.11489177495241165, -0.08314938843250275, 0.08183199912309647, 0.39249321818351746, -0.8285175561904907, -0.08141127228736877, -0.20429499447345734, -0.14217224717140198, 0.2562873959541321, 0.0819007009267807, 0.038692303001880646, -0.0269712395966053, 0.1486688107252121, 0.10445725917816162, 0.1687798649072647, 0.36920395493507385, 0.3052026629447937, 0.26740193367004395, -0.06636322289705276, 0.06682053208351135, -0.3717198967933655, 0.22541043162345886, -0.32258158922195435, -0.16180571913719177, 0.09600909054279327, 0.08358832448720932, 0.006230264902114868, -0.19273823499679565, -0.5517169237136841, 0.17618036270141602, 0.15440873801708221, 0.002642374485731125, 0.09743714332580566, 0.3247913718223572, 0.07591647654771805, 0.3802294433116913, 0.0263226255774498, 0.10485537350177765, -0.2946239709854126, -0.3704160749912262, -0.24087835848331451, 0.033055733889341354, -0.08801040798425674, 0.02683628723025322, 0.018338829278945923, -0.035600557923316956, 0.322783499956131, -0.19576209783554077, 0.21149525046348572, -0.17907950282096863, 0.11500419676303864, -0.25567108392715454, -0.1285901963710785, -0.006595594808459282, 0.029809780418872833, 0.03220510482788086, 0.17429716885089874, -0.37307173013687134, -0.04825257509946823, 0.12229256331920624, -0.3712681531906128, -0.033652275800704956, -0.18205899000167847, 0.18711602687835693, -0.13910828530788422, 0.020878655835986137, -0.23736880719661713, 0.16988682746887207, 0.3073554039001465, -0.18783962726593018, 0.10639594495296478, -0.39612263441085815, -0.16640032827854156, -0.21222715079784393, 0.31516438722610474, 0.38828787207603455, -0.4074566960334778, -0.21171043813228607, 0.12493982166051865, -0.09521395713090897, -0.038163717836141586, 0.12166545540094376, -0.15160539746284485, 0.15556125342845917, -0.20622381567955017, -0.007025681436061859, 0.7145839333534241, -0.8443273305892944, -0.42433780431747437, 0.10997285693883896, -0.30592384934425354, -0.019498728215694427, -0.07101312279701233, 0.06640781462192535, 0.19300879538059235, 0.01473374292254448, 0.08273063600063324, 0.5066142678260803, -0.036293044686317444, 0.09140332043170929, -0.17245793342590332, -0.27121296525001526, 0.252664715051651, 0.17085151374340057, 0.0318140871822834, -0.038064464926719666, 0.03883747383952141, 0.49898386001586914, 0.33221378922462463, 0.14261676371097565, 0.11120495945215225, -0.02995867282152176, -0.03593960404396057, -0.08216360211372375, 0.11460567265748978, -0.14810879528522491, -0.6798554062843323, 0.16386587917804718, -0.1644514799118042, 0.04398901388049126, 0.2410784214735031, -0.15083035826683044, -0.21351328492164612, -0.09173688292503357, -0.4252312183380127, -0.10238797217607498, 0.07439269125461578, 0.14959847927093506, -0.05852027237415314, -0.1226448267698288, -0.15988466143608093, 0.35147908329963684, -0.21545112133026123, 0.22845783829689026, -0.48490622639656067, -0.09653894603252411, -0.06374525278806686, -0.036215607076883316, 0.053700998425483704, 0.33184105157852173, 0.08719216287136078, -0.07095823436975479, -0.10575331747531891, 0.49799561500549316, 0.018025953322649002, 0.10239638388156891, 0.28836333751678467, -0.2016444355249405, 0.09963368624448776, -0.09904501587152481, 0.0020645521581172943, 0.22590908408164978, 0.19466568529605865, -0.08126148581504822, 0.022443100810050964, 0.14189189672470093, 0.1574392020702362, 0.07465554028749466, -0.004861198365688324, -0.15361106395721436, 0.1390526294708252, 0.011864937841892242, 0.011101335287094116, 0.09716247022151947, 0.05203810706734657, 0.2940087914466858, 0.5483118891716003, 0.11113646626472473, -0.18689323961734772, 0.1310926377773285, 0.3315555155277252, -0.06504487991333008, 0.27572643756866455, -0.004397663287818432, -0.17132261395454407, -0.07833901792764664, 0.10100606083869934, 0.17894616723060608, 0.5017951130867004, -0.0036268122494220734, -0.18634852766990662, -0.1349208801984787, -0.06367739289999008, -0.04682379215955734, 0.07113368809223175, -0.18242906033992767, 0.25537219643592834, 0.25777801871299744, 0.18398043513298035, 0.05479762703180313, -0.153158038854599, -0.04974379763007164, 0.020757600665092468, 0.29052525758743286, -0.37411344051361084, 0.046158283948898315, -0.12720459699630737, 0.09795059263706207, -0.37771856784820557, 0.13381057977676392, -0.35025554895401, -0.183357834815979, -0.13573098182678223, -0.11081051826477051, 0.309304416179657, 0.21016693115234375, -0.34853553771972656, 0.15559464693069458, 0.24026420712471008, -0.5443781018257141, 0.15760445594787598, 0.10098983347415924, -0.3830034136772156, 0.052952639758586884, 0.12054223567247391, -0.06962183862924576, -0.09691084176301956, -0.15282732248306274, 0.017325982451438904, -0.12010211497545242, -0.16800369322299957, 0.18687120079994202, -0.052908457815647125, 0.5768340826034546, -0.012331932783126831, 0.17038743197917938, -0.007594861090183258, -0.06801220029592514, 0.16675721108913422, -0.18430808186531067, -0.1167619526386261, -0.16574060916900635, -0.11217031627893448, 0.03648824244737625, -0.07768663018941879, -0.6224924921989441, -0.46739909052848816, -0.29881760478019714, -0.18050433695316315, 0.0007811859250068665, 0.26494741439819336, 0.09364889562129974, 0.010278474539518356, 0.34073975682258606, -0.035576291382312775, 0.036125898361206055, -0.4035869240760803, -0.28184086084365845, 0.2556055188179016, 0.06284698843955994, -0.29479333758354187, -0.09946499764919281, 0.0628201961517334, 0.2072017341852188, -0.09563598036766052, -0.3958396911621094, -0.27399563789367676, 0.230788916349411, -0.011216901242733002, -0.09100937843322754, 0.04723811894655228, 0.11515731364488602, -0.16135556995868683, 0.10615263879299164, -0.2067127823829651, -0.506161093711853, 0.14503443241119385, 0.1470153033733368, 0.6205664873123169, -0.16600996255874634, 0.29800546169281006, -0.052638228982686996, 0.6775237917900085, 0.189077228307724, -0.22801735997200012, 0.2107890248298645, -0.21052329242229462, 0.3032870888710022, 0.0035380683839321136, -0.2769273817539215, 0.30394303798675537, 0.07190602272748947, 0.045916102826595306, 0.3248112201690674, 0.053421955555677414, -0.016675665974617004, -0.06131933256983757, 0.35972917079925537, -0.13923083245754242, -0.15712758898735046, -0.060563988983631134, -0.07529260218143463, -0.27003154158592224, 0.07413188368082047, 0.30652832984924316, -0.1772010326385498, -0.16730031371116638, -0.15177607536315918, 0.4453921914100647, -0.08596482127904892, 0.2577696740627289, -0.679118812084198, -0.004350252449512482, -0.1259898990392685, 0.28680625557899475, -0.14499707520008087, 0.6176645755767822, -0.05449534207582474, -0.18573802709579468, -0.06501908600330353, 0.07910099625587463, 0.47988399863243103, -0.04599786177277565, -0.009340331889688969, -0.03611714392900467, 0.29465252161026, -0.6179636120796204, -0.18783140182495117, 0.17760296165943146, 0.1685306429862976, 0.09368540346622467, 0.3528566062450409, -0.18216069042682648, -0.07711070775985718, 0.16134020686149597, 0.19918093085289001, -0.16626110672950745, -0.01700810343027115, -0.3835245966911316, -0.20730125904083252, -0.3429887890815735, -0.05118146166205406, -0.2764178216457367, 0.13280610740184784, 0.13914865255355835, 0.11733482778072357, 0.2389439195394516, -0.11288419365882874, 0.373893678188324, 0.13678820431232452, 0.38359445333480835, 0.19739732146263123, 0.13533741235733032, 0.2334740310907364, 0.2617395520210266, -0.15024729073047638, 0.48923033475875854, -0.4564044177532196, -0.30006474256515503, 0.03433966264128685, -0.07370370626449585, 0.14769825339317322, 0.3775250017642975, -0.14361843466758728, 0.08376488089561462, -0.3207884430885315, -0.08625549077987671, 0.27541592717170715, 0.1629420816898346, 0.25100910663604736, 0.0771014541387558, -0.11339537799358368, -0.40982621908187866, 0.17985612154006958, -0.11203449964523315, -0.04261976480484009, 0.21456505358219147, -0.4636401832103729, -0.28889524936676025, 0.09641458839178085, -0.10397233068943024, 0.893983006477356, -0.06497412919998169, 0.18897664546966553, 0.3377414047718048, 0.16326281428337097, 0.2822512090206146, -0.07744459807872772, 0.16547738015651703, -0.4589555859565735, -0.07823064923286438, 0.07447439432144165, -0.13921254873275757, -0.06478658318519592, 0.36636248230934143, 0.014166459441184998, 0.5146530866622925, -0.268801212310791, 0.31165680289268494, 0.05401430279016495, 0.521040678024292, -0.13379952311515808, -0.010874943807721138, -0.3472369611263275, 0.19491878151893616, -0.1809045672416687, 0.280245304107666, -0.12038958817720413, 0.0054682157933712006, -0.3029423654079437, -0.13794125616550446, -0.13194090127944946, 0.2274259328842163, -0.5376272201538086, 0.16697660088539124, 0.09342782199382782, -0.34864234924316406, 0.019177034497261047, 0.5643283128738403, -0.10029111802577972, -0.08207681775093079, -0.10845579952001572, 0.35308247804641724, 0.020763326436281204, 0.3046311140060425, 0.07688789069652557, 0.04578070715069771, 0.4243015646934509, -0.016855895519256592, -0.09482476860284805, 0.07203932106494904, -0.004246965050697327, -0.30940836668014526, -0.2513001561164856, 0.04081521928310394, 0.3062189519405365, -0.27568814158439636, -0.1972322016954422, -0.11883857846260071, 0.01594579964876175, -0.05961310863494873, 0.11982608586549759, 0.0611225962638855, -0.09665697813034058, 0.20687231421470642, 0.12961195409297943, -0.4074324369430542, 0.0401296503841877, 0.3414311110973358, 0.05819598585367203, 0.0030539557337760925, 0.6670223474502563, 0.0741891860961914, 0.07047639787197113, -0.19490255415439606, 0.14977401494979858, 0.3011733591556549, -0.23362332582473755, -0.039200495928525925, -0.20007863640785217, -0.2490168660879135, 0.00048480555415153503, -0.12109510600566864, 0.2407468557357788, -0.01767057180404663, 0.04028014838695526, -0.4578702449798584, -0.4342665374279022, 0.03151044249534607, -0.06306120753288269, 0.009265553206205368, 0.07820267230272293, -0.04398735612630844, 0.14506469666957855, 0.04536610096693039, -0.2561044692993164, 0.21077021956443787, -0.19661468267440796, 0.2120199352502823, 0.09935258328914642, -0.040149979293346405, 0.24972477555274963, -0.02280794084072113, 0.050334252417087555, -0.027215197682380676, -0.3081600069999695, -0.1973446160554886, -0.12951253354549408, 0.1182672530412674, 0.022085994482040405, -0.015638776123523712, -0.17388004064559937, -0.29436779022216797, -0.15431952476501465, -0.24747700989246368, -0.0346161350607872, 0.08816249668598175, 0.02744934894144535, 0.014234136790037155, -0.05347251147031784, 0.026538727805018425, 0.06578829139471054, -0.07397418469190598, 0.037588756531476974, 0.044000737369060516, 0.2452986240386963, 0.10125744342803955, 0.047980744391679764, -0.00903959572315216, -0.5060151219367981, 0.10130941867828369, 0.18785497546195984, 0.38351359963417053, 0.02990729548037052, -0.16318653523921967, -0.0384693443775177, 0.2729741930961609, 0.058359429240226746, 0.4147219955921173, -0.4566238224506378, -0.04420894384384155, -0.08864644169807434, 0.14343230426311493, -0.217178612947464, 0.09706588089466095, 0.36258041858673096, -0.1833089292049408, -0.01555740088224411, 0.273564875125885, 0.12666447460651398, 0.18971790373325348, 0.021740756928920746, 0.10689912736415863, 0.5871456265449524, -0.08740194141864777, 0.16464053094387054, 0.2900642454624176, -0.21607980132102966, 0.22053629159927368, 0.33497846126556396, -0.08375467360019684, -0.008730825036764145, 0.3994483947753906, -0.19293498992919922, 0.343112051486969, -0.07903444766998291, -0.12809881567955017, 0.24404433369636536, -0.24880191683769226, 0.07992838323116302, 0.40243133902549744, -0.15660536289215088, 0.16993317008018494, 0.04696962982416153, 0.5395814776420593, -0.4212687313556671, -0.13744276762008667, -0.03823883458971977, -0.16593119502067566, -0.14843502640724182, -0.05985618755221367, 0.06483689695596695, -0.1156122013926506, -0.10017085075378418, -0.23885436356067657, -0.1484498232603073, -0.3574168086051941, -0.050309330224990845, -0.003966514021158218, -0.3478865921497345, -0.07140540331602097, -0.06869851052761078, 0.35503849387168884, -0.19642069935798645, -0.10585729032754898, 0.3332424759864807, -0.14164839684963226, 0.03708989545702934, 0.32675838470458984, 0.25708135962486267, 0.19539295136928558, 0.4452641010284424, 0.07810191810131073, -0.11831741034984589, 0.31555822491645813, 0.04472564160823822, 0.014626048505306244, 0.14780694246292114, -0.13302841782569885, -0.19756880402565002, 0.39231592416763306, 0.13721923530101776, -0.05480096861720085, -0.27560243010520935, 0.34414926171302795, -0.0665346086025238, -0.24723607301712036, 0.21512021124362946, -0.24406269192695618, -0.03808317333459854, -0.5316836833953857, 0.3191310167312622, -0.3130171298980713, 0.09808237850666046, 0.4218282699584961, 0.15430966019630432, 0.3799420893192291, -0.25793689489364624, 0.0727035328745842, -0.028827037662267685, 0.38972821831703186, 0.17298999428749084, -0.24616889655590057, -0.18266984820365906, 0.18811100721359253, -0.9209600687026978, 0.44583964347839355, 0.0589725598692894, -0.039083994925022125, 0.033437423408031464, 0.34398937225341797, 0.05375004559755325, 0.053144391626119614, 0.2887403964996338, -0.09628324955701828, 0.16246503591537476, -0.041559167206287384, -0.37896308302879333, -0.3341311514377594, -0.3106013536453247, 0.4049323797225952, 0.14943212270736694, -0.5924780368804932, 0.2898760139942169, 0.03848930448293686, -0.050169408321380615, -0.10498639941215515, -0.21322359144687653, 0.15900085866451263, -0.13477949798107147, 0.417912095785141, -0.14029110968112946, 0.49387127161026, -0.027379080653190613, -0.019106123596429825, -0.21526303887367249, -0.11116942018270493, -0.29576918482780457, 0.26909953355789185, -0.14611554145812988, 0.07679354399442673, 0.12510305643081665, 0.07603248953819275, -0.2987893521785736, 0.3234615623950958, 0.14698410034179688, -0.2812112867832184, -0.40665340423583984, -0.021511297672986984, 0.03775439411401749, 0.09225723147392273, 0.06012312322854996, 0.3981383442878723, -0.14989034831523895, 0.23341816663742065, -0.1931374967098236, -0.3373353183269501, 0.5052193403244019, -0.3257141411304474, -0.1926414966583252, -0.27418220043182373, 0.2520015239715576, 0.13264641165733337, 0.005211593583226204, -0.6400471329689026, 0.053773388266563416, 0.36803552508354187, -0.18959751725196838, -0.1688362956047058, 0.1406751275062561, -0.23442137241363525, 0.4075177311897278, 0.004643328487873077, 0.037530384957790375, 0.00678706169128418, -0.130524680018425, 0.16363085806369781, -0.25506019592285156 ]
https://github.com/huggingface/datasets/issues/1964
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'} ```
Datasets.py function load_dataset does not match squad dataset
### 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 ### 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! 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'} ```
[ -0.3537203371524811, 0.06250801682472229, 0.0333654023706913, 0.3963988423347473, 0.5554531216621399, 0.005721107125282288, 0.5457586050033569, 0.3404688835144043, -0.09830991178750992, -0.12162333726882935, -0.1650662124156952, 0.4508377015590668, 0.10841506719589233, -0.07741951197385788, 0.18592917919158936, 0.22716158628463745, -0.12422424554824829, -0.012336846441030502, -0.14610841870307922, -0.2893434762954712, -0.1109781339764595, 0.12829115986824036, -0.08231398463249207, 0.2603987157344818, -0.17889921367168427, 0.016690736636519432, 0.2006344199180603, 0.2723645567893982, -0.003796106204390526, -0.21996872127056122, 0.3428422808647156, -0.26060497760772705, 0.23610159754753113, 0.5758857131004333, -0.00011485807772260159, 0.11325585842132568, -0.011543221771717072, -0.3397287130355835, -0.5327043533325195, -0.20022176206111908, -0.1021842211484909, -0.37577250599861145, 0.14864513278007507, -0.2605549395084381, -0.15953220427036285, 0.09373734891414642, 0.020316677168011665, -0.4645366370677948, 0.354454904794693, 0.48831355571746826, 0.21398255228996277, 0.25225698947906494, -0.10010091960430145, 0.0775509923696518, 0.1142546758055687, -0.0009759888052940369, -0.06950906664133072, 0.13609902560710907, 0.3347511291503906, -0.05826897174119949, 0.0025541260838508606, 0.17244571447372437, 0.08280830830335617, 0.056823331862688065, 0.2703096866607666, 0.006403941661119461, 0.19911514222621918, -0.31615516543388367, 0.05644179880619049, 0.31778383255004883, 0.4627762734889984, -0.46301543712615967, -0.3347054421901703, -0.2631347179412842, 0.13310442864894867, -0.2565729022026062, 0.13201650977134705, 0.06727737188339233, 0.05115877464413643, -0.04242759570479393, 0.047776106745004654, 0.03766487538814545, 0.11142879724502563, 0.03682874143123627, 0.0068919360637664795, 0.19999471306800842, 0.028867308050394058, 0.23839621245861053, -0.20153968036174774, -0.11354831606149673, 0.11489177495241165, -0.08314938843250275, 0.08183199912309647, 0.39249321818351746, -0.8285175561904907, -0.08141127228736877, -0.20429499447345734, -0.14217224717140198, 0.2562873959541321, 0.0819007009267807, 0.038692303001880646, -0.0269712395966053, 0.1486688107252121, 0.10445725917816162, 0.1687798649072647, 0.36920395493507385, 0.3052026629447937, 0.26740193367004395, -0.06636322289705276, 0.06682053208351135, -0.3717198967933655, 0.22541043162345886, -0.32258158922195435, -0.16180571913719177, 0.09600909054279327, 0.08358832448720932, 0.006230264902114868, -0.19273823499679565, -0.5517169237136841, 0.17618036270141602, 0.15440873801708221, 0.002642374485731125, 0.09743714332580566, 0.3247913718223572, 0.07591647654771805, 0.3802294433116913, 0.0263226255774498, 0.10485537350177765, -0.2946239709854126, -0.3704160749912262, -0.24087835848331451, 0.033055733889341354, -0.08801040798425674, 0.02683628723025322, 0.018338829278945923, -0.035600557923316956, 0.322783499956131, -0.19576209783554077, 0.21149525046348572, -0.17907950282096863, 0.11500419676303864, -0.25567108392715454, -0.1285901963710785, -0.006595594808459282, 0.029809780418872833, 0.03220510482788086, 0.17429716885089874, -0.37307173013687134, -0.04825257509946823, 0.12229256331920624, -0.3712681531906128, -0.033652275800704956, -0.18205899000167847, 0.18711602687835693, -0.13910828530788422, 0.020878655835986137, -0.23736880719661713, 0.16988682746887207, 0.3073554039001465, -0.18783962726593018, 0.10639594495296478, -0.39612263441085815, -0.16640032827854156, -0.21222715079784393, 0.31516438722610474, 0.38828787207603455, -0.4074566960334778, -0.21171043813228607, 0.12493982166051865, -0.09521395713090897, -0.038163717836141586, 0.12166545540094376, -0.15160539746284485, 0.15556125342845917, -0.20622381567955017, -0.007025681436061859, 0.7145839333534241, -0.8443273305892944, -0.42433780431747437, 0.10997285693883896, -0.30592384934425354, -0.019498728215694427, -0.07101312279701233, 0.06640781462192535, 0.19300879538059235, 0.01473374292254448, 0.08273063600063324, 0.5066142678260803, -0.036293044686317444, 0.09140332043170929, -0.17245793342590332, -0.27121296525001526, 0.252664715051651, 0.17085151374340057, 0.0318140871822834, -0.038064464926719666, 0.03883747383952141, 0.49898386001586914, 0.33221378922462463, 0.14261676371097565, 0.11120495945215225, -0.02995867282152176, -0.03593960404396057, -0.08216360211372375, 0.11460567265748978, -0.14810879528522491, -0.6798554062843323, 0.16386587917804718, -0.1644514799118042, 0.04398901388049126, 0.2410784214735031, -0.15083035826683044, -0.21351328492164612, -0.09173688292503357, -0.4252312183380127, -0.10238797217607498, 0.07439269125461578, 0.14959847927093506, -0.05852027237415314, -0.1226448267698288, -0.15988466143608093, 0.35147908329963684, -0.21545112133026123, 0.22845783829689026, -0.48490622639656067, -0.09653894603252411, -0.06374525278806686, -0.036215607076883316, 0.053700998425483704, 0.33184105157852173, 0.08719216287136078, -0.07095823436975479, -0.10575331747531891, 0.49799561500549316, 0.018025953322649002, 0.10239638388156891, 0.28836333751678467, -0.2016444355249405, 0.09963368624448776, -0.09904501587152481, 0.0020645521581172943, 0.22590908408164978, 0.19466568529605865, -0.08126148581504822, 0.022443100810050964, 0.14189189672470093, 0.1574392020702362, 0.07465554028749466, -0.004861198365688324, -0.15361106395721436, 0.1390526294708252, 0.011864937841892242, 0.011101335287094116, 0.09716247022151947, 0.05203810706734657, 0.2940087914466858, 0.5483118891716003, 0.11113646626472473, -0.18689323961734772, 0.1310926377773285, 0.3315555155277252, -0.06504487991333008, 0.27572643756866455, -0.004397663287818432, -0.17132261395454407, -0.07833901792764664, 0.10100606083869934, 0.17894616723060608, 0.5017951130867004, -0.0036268122494220734, -0.18634852766990662, -0.1349208801984787, -0.06367739289999008, -0.04682379215955734, 0.07113368809223175, -0.18242906033992767, 0.25537219643592834, 0.25777801871299744, 0.18398043513298035, 0.05479762703180313, -0.153158038854599, -0.04974379763007164, 0.020757600665092468, 0.29052525758743286, -0.37411344051361084, 0.046158283948898315, -0.12720459699630737, 0.09795059263706207, -0.37771856784820557, 0.13381057977676392, -0.35025554895401, -0.183357834815979, -0.13573098182678223, -0.11081051826477051, 0.309304416179657, 0.21016693115234375, -0.34853553771972656, 0.15559464693069458, 0.24026420712471008, -0.5443781018257141, 0.15760445594787598, 0.10098983347415924, -0.3830034136772156, 0.052952639758586884, 0.12054223567247391, -0.06962183862924576, -0.09691084176301956, -0.15282732248306274, 0.017325982451438904, -0.12010211497545242, -0.16800369322299957, 0.18687120079994202, -0.052908457815647125, 0.5768340826034546, -0.012331932783126831, 0.17038743197917938, -0.007594861090183258, -0.06801220029592514, 0.16675721108913422, -0.18430808186531067, -0.1167619526386261, -0.16574060916900635, -0.11217031627893448, 0.03648824244737625, -0.07768663018941879, -0.6224924921989441, -0.46739909052848816, -0.29881760478019714, -0.18050433695316315, 0.0007811859250068665, 0.26494741439819336, 0.09364889562129974, 0.010278474539518356, 0.34073975682258606, -0.035576291382312775, 0.036125898361206055, -0.4035869240760803, -0.28184086084365845, 0.2556055188179016, 0.06284698843955994, -0.29479333758354187, -0.09946499764919281, 0.0628201961517334, 0.2072017341852188, -0.09563598036766052, -0.3958396911621094, -0.27399563789367676, 0.230788916349411, -0.011216901242733002, -0.09100937843322754, 0.04723811894655228, 0.11515731364488602, -0.16135556995868683, 0.10615263879299164, -0.2067127823829651, -0.506161093711853, 0.14503443241119385, 0.1470153033733368, 0.6205664873123169, -0.16600996255874634, 0.29800546169281006, -0.052638228982686996, 0.6775237917900085, 0.189077228307724, -0.22801735997200012, 0.2107890248298645, -0.21052329242229462, 0.3032870888710022, 0.0035380683839321136, -0.2769273817539215, 0.30394303798675537, 0.07190602272748947, 0.045916102826595306, 0.3248112201690674, 0.053421955555677414, -0.016675665974617004, -0.06131933256983757, 0.35972917079925537, -0.13923083245754242, -0.15712758898735046, -0.060563988983631134, -0.07529260218143463, -0.27003154158592224, 0.07413188368082047, 0.30652832984924316, -0.1772010326385498, -0.16730031371116638, -0.15177607536315918, 0.4453921914100647, -0.08596482127904892, 0.2577696740627289, -0.679118812084198, -0.004350252449512482, -0.1259898990392685, 0.28680625557899475, -0.14499707520008087, 0.6176645755767822, -0.05449534207582474, -0.18573802709579468, -0.06501908600330353, 0.07910099625587463, 0.47988399863243103, -0.04599786177277565, -0.009340331889688969, -0.03611714392900467, 0.29465252161026, -0.6179636120796204, -0.18783140182495117, 0.17760296165943146, 0.1685306429862976, 0.09368540346622467, 0.3528566062450409, -0.18216069042682648, -0.07711070775985718, 0.16134020686149597, 0.19918093085289001, -0.16626110672950745, -0.01700810343027115, -0.3835245966911316, -0.20730125904083252, -0.3429887890815735, -0.05118146166205406, -0.2764178216457367, 0.13280610740184784, 0.13914865255355835, 0.11733482778072357, 0.2389439195394516, -0.11288419365882874, 0.373893678188324, 0.13678820431232452, 0.38359445333480835, 0.19739732146263123, 0.13533741235733032, 0.2334740310907364, 0.2617395520210266, -0.15024729073047638, 0.48923033475875854, -0.4564044177532196, -0.30006474256515503, 0.03433966264128685, -0.07370370626449585, 0.14769825339317322, 0.3775250017642975, -0.14361843466758728, 0.08376488089561462, -0.3207884430885315, -0.08625549077987671, 0.27541592717170715, 0.1629420816898346, 0.25100910663604736, 0.0771014541387558, -0.11339537799358368, -0.40982621908187866, 0.17985612154006958, -0.11203449964523315, -0.04261976480484009, 0.21456505358219147, -0.4636401832103729, -0.28889524936676025, 0.09641458839178085, -0.10397233068943024, 0.893983006477356, -0.06497412919998169, 0.18897664546966553, 0.3377414047718048, 0.16326281428337097, 0.2822512090206146, -0.07744459807872772, 0.16547738015651703, -0.4589555859565735, -0.07823064923286438, 0.07447439432144165, -0.13921254873275757, -0.06478658318519592, 0.36636248230934143, 0.014166459441184998, 0.5146530866622925, -0.268801212310791, 0.31165680289268494, 0.05401430279016495, 0.521040678024292, -0.13379952311515808, -0.010874943807721138, -0.3472369611263275, 0.19491878151893616, -0.1809045672416687, 0.280245304107666, -0.12038958817720413, 0.0054682157933712006, -0.3029423654079437, -0.13794125616550446, -0.13194090127944946, 0.2274259328842163, -0.5376272201538086, 0.16697660088539124, 0.09342782199382782, -0.34864234924316406, 0.019177034497261047, 0.5643283128738403, -0.10029111802577972, -0.08207681775093079, -0.10845579952001572, 0.35308247804641724, 0.020763326436281204, 0.3046311140060425, 0.07688789069652557, 0.04578070715069771, 0.4243015646934509, -0.016855895519256592, -0.09482476860284805, 0.07203932106494904, -0.004246965050697327, -0.30940836668014526, -0.2513001561164856, 0.04081521928310394, 0.3062189519405365, -0.27568814158439636, -0.1972322016954422, -0.11883857846260071, 0.01594579964876175, -0.05961310863494873, 0.11982608586549759, 0.0611225962638855, -0.09665697813034058, 0.20687231421470642, 0.12961195409297943, -0.4074324369430542, 0.0401296503841877, 0.3414311110973358, 0.05819598585367203, 0.0030539557337760925, 0.6670223474502563, 0.0741891860961914, 0.07047639787197113, -0.19490255415439606, 0.14977401494979858, 0.3011733591556549, -0.23362332582473755, -0.039200495928525925, -0.20007863640785217, -0.2490168660879135, 0.00048480555415153503, -0.12109510600566864, 0.2407468557357788, -0.01767057180404663, 0.04028014838695526, -0.4578702449798584, -0.4342665374279022, 0.03151044249534607, -0.06306120753288269, 0.009265553206205368, 0.07820267230272293, -0.04398735612630844, 0.14506469666957855, 0.04536610096693039, -0.2561044692993164, 0.21077021956443787, -0.19661468267440796, 0.2120199352502823, 0.09935258328914642, -0.040149979293346405, 0.24972477555274963, -0.02280794084072113, 0.050334252417087555, -0.027215197682380676, -0.3081600069999695, -0.1973446160554886, -0.12951253354549408, 0.1182672530412674, 0.022085994482040405, -0.015638776123523712, -0.17388004064559937, -0.29436779022216797, -0.15431952476501465, -0.24747700989246368, -0.0346161350607872, 0.08816249668598175, 0.02744934894144535, 0.014234136790037155, -0.05347251147031784, 0.026538727805018425, 0.06578829139471054, -0.07397418469190598, 0.037588756531476974, 0.044000737369060516, 0.2452986240386963, 0.10125744342803955, 0.047980744391679764, -0.00903959572315216, -0.5060151219367981, 0.10130941867828369, 0.18785497546195984, 0.38351359963417053, 0.02990729548037052, -0.16318653523921967, -0.0384693443775177, 0.2729741930961609, 0.058359429240226746, 0.4147219955921173, -0.4566238224506378, -0.04420894384384155, -0.08864644169807434, 0.14343230426311493, -0.217178612947464, 0.09706588089466095, 0.36258041858673096, -0.1833089292049408, -0.01555740088224411, 0.273564875125885, 0.12666447460651398, 0.18971790373325348, 0.021740756928920746, 0.10689912736415863, 0.5871456265449524, -0.08740194141864777, 0.16464053094387054, 0.2900642454624176, -0.21607980132102966, 0.22053629159927368, 0.33497846126556396, -0.08375467360019684, -0.008730825036764145, 0.3994483947753906, -0.19293498992919922, 0.343112051486969, -0.07903444766998291, -0.12809881567955017, 0.24404433369636536, -0.24880191683769226, 0.07992838323116302, 0.40243133902549744, -0.15660536289215088, 0.16993317008018494, 0.04696962982416153, 0.5395814776420593, -0.4212687313556671, -0.13744276762008667, -0.03823883458971977, -0.16593119502067566, -0.14843502640724182, -0.05985618755221367, 0.06483689695596695, -0.1156122013926506, -0.10017085075378418, -0.23885436356067657, -0.1484498232603073, -0.3574168086051941, -0.050309330224990845, -0.003966514021158218, -0.3478865921497345, -0.07140540331602097, -0.06869851052761078, 0.35503849387168884, -0.19642069935798645, -0.10585729032754898, 0.3332424759864807, -0.14164839684963226, 0.03708989545702934, 0.32675838470458984, 0.25708135962486267, 0.19539295136928558, 0.4452641010284424, 0.07810191810131073, -0.11831741034984589, 0.31555822491645813, 0.04472564160823822, 0.014626048505306244, 0.14780694246292114, -0.13302841782569885, -0.19756880402565002, 0.39231592416763306, 0.13721923530101776, -0.05480096861720085, -0.27560243010520935, 0.34414926171302795, -0.0665346086025238, -0.24723607301712036, 0.21512021124362946, -0.24406269192695618, -0.03808317333459854, -0.5316836833953857, 0.3191310167312622, -0.3130171298980713, 0.09808237850666046, 0.4218282699584961, 0.15430966019630432, 0.3799420893192291, -0.25793689489364624, 0.0727035328745842, -0.028827037662267685, 0.38972821831703186, 0.17298999428749084, -0.24616889655590057, -0.18266984820365906, 0.18811100721359253, -0.9209600687026978, 0.44583964347839355, 0.0589725598692894, -0.039083994925022125, 0.033437423408031464, 0.34398937225341797, 0.05375004559755325, 0.053144391626119614, 0.2887403964996338, -0.09628324955701828, 0.16246503591537476, -0.041559167206287384, -0.37896308302879333, -0.3341311514377594, -0.3106013536453247, 0.4049323797225952, 0.14943212270736694, -0.5924780368804932, 0.2898760139942169, 0.03848930448293686, -0.050169408321380615, -0.10498639941215515, -0.21322359144687653, 0.15900085866451263, -0.13477949798107147, 0.417912095785141, -0.14029110968112946, 0.49387127161026, -0.027379080653190613, -0.019106123596429825, -0.21526303887367249, -0.11116942018270493, -0.29576918482780457, 0.26909953355789185, -0.14611554145812988, 0.07679354399442673, 0.12510305643081665, 0.07603248953819275, -0.2987893521785736, 0.3234615623950958, 0.14698410034179688, -0.2812112867832184, -0.40665340423583984, -0.021511297672986984, 0.03775439411401749, 0.09225723147392273, 0.06012312322854996, 0.3981383442878723, -0.14989034831523895, 0.23341816663742065, -0.1931374967098236, -0.3373353183269501, 0.5052193403244019, -0.3257141411304474, -0.1926414966583252, -0.27418220043182373, 0.2520015239715576, 0.13264641165733337, 0.005211593583226204, -0.6400471329689026, 0.053773388266563416, 0.36803552508354187, -0.18959751725196838, -0.1688362956047058, 0.1406751275062561, -0.23442137241363525, 0.4075177311897278, 0.004643328487873077, 0.037530384957790375, 0.00678706169128418, -0.130524680018425, 0.16363085806369781, -0.25506019592285156 ]
https://github.com/huggingface/datasets/issues/1964
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 :/
Datasets.py function load_dataset does not match squad dataset
### 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 ### 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! 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 :/
[ -0.3537203371524811, 0.06250801682472229, 0.0333654023706913, 0.3963988423347473, 0.5554531216621399, 0.005721107125282288, 0.5457586050033569, 0.3404688835144043, -0.09830991178750992, -0.12162333726882935, -0.1650662124156952, 0.4508377015590668, 0.10841506719589233, -0.07741951197385788, 0.18592917919158936, 0.22716158628463745, -0.12422424554824829, -0.012336846441030502, -0.14610841870307922, -0.2893434762954712, -0.1109781339764595, 0.12829115986824036, -0.08231398463249207, 0.2603987157344818, -0.17889921367168427, 0.016690736636519432, 0.2006344199180603, 0.2723645567893982, -0.003796106204390526, -0.21996872127056122, 0.3428422808647156, -0.26060497760772705, 0.23610159754753113, 0.5758857131004333, -0.00011485807772260159, 0.11325585842132568, -0.011543221771717072, -0.3397287130355835, -0.5327043533325195, -0.20022176206111908, -0.1021842211484909, -0.37577250599861145, 0.14864513278007507, -0.2605549395084381, -0.15953220427036285, 0.09373734891414642, 0.020316677168011665, -0.4645366370677948, 0.354454904794693, 0.48831355571746826, 0.21398255228996277, 0.25225698947906494, -0.10010091960430145, 0.0775509923696518, 0.1142546758055687, -0.0009759888052940369, -0.06950906664133072, 0.13609902560710907, 0.3347511291503906, -0.05826897174119949, 0.0025541260838508606, 0.17244571447372437, 0.08280830830335617, 0.056823331862688065, 0.2703096866607666, 0.006403941661119461, 0.19911514222621918, -0.31615516543388367, 0.05644179880619049, 0.31778383255004883, 0.4627762734889984, -0.46301543712615967, -0.3347054421901703, -0.2631347179412842, 0.13310442864894867, -0.2565729022026062, 0.13201650977134705, 0.06727737188339233, 0.05115877464413643, -0.04242759570479393, 0.047776106745004654, 0.03766487538814545, 0.11142879724502563, 0.03682874143123627, 0.0068919360637664795, 0.19999471306800842, 0.028867308050394058, 0.23839621245861053, -0.20153968036174774, -0.11354831606149673, 0.11489177495241165, -0.08314938843250275, 0.08183199912309647, 0.39249321818351746, -0.8285175561904907, -0.08141127228736877, -0.20429499447345734, -0.14217224717140198, 0.2562873959541321, 0.0819007009267807, 0.038692303001880646, -0.0269712395966053, 0.1486688107252121, 0.10445725917816162, 0.1687798649072647, 0.36920395493507385, 0.3052026629447937, 0.26740193367004395, -0.06636322289705276, 0.06682053208351135, -0.3717198967933655, 0.22541043162345886, -0.32258158922195435, -0.16180571913719177, 0.09600909054279327, 0.08358832448720932, 0.006230264902114868, -0.19273823499679565, -0.5517169237136841, 0.17618036270141602, 0.15440873801708221, 0.002642374485731125, 0.09743714332580566, 0.3247913718223572, 0.07591647654771805, 0.3802294433116913, 0.0263226255774498, 0.10485537350177765, -0.2946239709854126, -0.3704160749912262, -0.24087835848331451, 0.033055733889341354, -0.08801040798425674, 0.02683628723025322, 0.018338829278945923, -0.035600557923316956, 0.322783499956131, -0.19576209783554077, 0.21149525046348572, -0.17907950282096863, 0.11500419676303864, -0.25567108392715454, -0.1285901963710785, -0.006595594808459282, 0.029809780418872833, 0.03220510482788086, 0.17429716885089874, -0.37307173013687134, -0.04825257509946823, 0.12229256331920624, -0.3712681531906128, -0.033652275800704956, -0.18205899000167847, 0.18711602687835693, -0.13910828530788422, 0.020878655835986137, -0.23736880719661713, 0.16988682746887207, 0.3073554039001465, -0.18783962726593018, 0.10639594495296478, -0.39612263441085815, -0.16640032827854156, -0.21222715079784393, 0.31516438722610474, 0.38828787207603455, -0.4074566960334778, -0.21171043813228607, 0.12493982166051865, -0.09521395713090897, -0.038163717836141586, 0.12166545540094376, -0.15160539746284485, 0.15556125342845917, -0.20622381567955017, -0.007025681436061859, 0.7145839333534241, -0.8443273305892944, -0.42433780431747437, 0.10997285693883896, -0.30592384934425354, -0.019498728215694427, -0.07101312279701233, 0.06640781462192535, 0.19300879538059235, 0.01473374292254448, 0.08273063600063324, 0.5066142678260803, -0.036293044686317444, 0.09140332043170929, -0.17245793342590332, -0.27121296525001526, 0.252664715051651, 0.17085151374340057, 0.0318140871822834, -0.038064464926719666, 0.03883747383952141, 0.49898386001586914, 0.33221378922462463, 0.14261676371097565, 0.11120495945215225, -0.02995867282152176, -0.03593960404396057, -0.08216360211372375, 0.11460567265748978, -0.14810879528522491, -0.6798554062843323, 0.16386587917804718, -0.1644514799118042, 0.04398901388049126, 0.2410784214735031, -0.15083035826683044, -0.21351328492164612, -0.09173688292503357, -0.4252312183380127, -0.10238797217607498, 0.07439269125461578, 0.14959847927093506, -0.05852027237415314, -0.1226448267698288, -0.15988466143608093, 0.35147908329963684, -0.21545112133026123, 0.22845783829689026, -0.48490622639656067, -0.09653894603252411, -0.06374525278806686, -0.036215607076883316, 0.053700998425483704, 0.33184105157852173, 0.08719216287136078, -0.07095823436975479, -0.10575331747531891, 0.49799561500549316, 0.018025953322649002, 0.10239638388156891, 0.28836333751678467, -0.2016444355249405, 0.09963368624448776, -0.09904501587152481, 0.0020645521581172943, 0.22590908408164978, 0.19466568529605865, -0.08126148581504822, 0.022443100810050964, 0.14189189672470093, 0.1574392020702362, 0.07465554028749466, -0.004861198365688324, -0.15361106395721436, 0.1390526294708252, 0.011864937841892242, 0.011101335287094116, 0.09716247022151947, 0.05203810706734657, 0.2940087914466858, 0.5483118891716003, 0.11113646626472473, -0.18689323961734772, 0.1310926377773285, 0.3315555155277252, -0.06504487991333008, 0.27572643756866455, -0.004397663287818432, -0.17132261395454407, -0.07833901792764664, 0.10100606083869934, 0.17894616723060608, 0.5017951130867004, -0.0036268122494220734, -0.18634852766990662, -0.1349208801984787, -0.06367739289999008, -0.04682379215955734, 0.07113368809223175, -0.18242906033992767, 0.25537219643592834, 0.25777801871299744, 0.18398043513298035, 0.05479762703180313, -0.153158038854599, -0.04974379763007164, 0.020757600665092468, 0.29052525758743286, -0.37411344051361084, 0.046158283948898315, -0.12720459699630737, 0.09795059263706207, -0.37771856784820557, 0.13381057977676392, -0.35025554895401, -0.183357834815979, -0.13573098182678223, -0.11081051826477051, 0.309304416179657, 0.21016693115234375, -0.34853553771972656, 0.15559464693069458, 0.24026420712471008, -0.5443781018257141, 0.15760445594787598, 0.10098983347415924, -0.3830034136772156, 0.052952639758586884, 0.12054223567247391, -0.06962183862924576, -0.09691084176301956, -0.15282732248306274, 0.017325982451438904, -0.12010211497545242, -0.16800369322299957, 0.18687120079994202, -0.052908457815647125, 0.5768340826034546, -0.012331932783126831, 0.17038743197917938, -0.007594861090183258, -0.06801220029592514, 0.16675721108913422, -0.18430808186531067, -0.1167619526386261, -0.16574060916900635, -0.11217031627893448, 0.03648824244737625, -0.07768663018941879, -0.6224924921989441, -0.46739909052848816, -0.29881760478019714, -0.18050433695316315, 0.0007811859250068665, 0.26494741439819336, 0.09364889562129974, 0.010278474539518356, 0.34073975682258606, -0.035576291382312775, 0.036125898361206055, -0.4035869240760803, -0.28184086084365845, 0.2556055188179016, 0.06284698843955994, -0.29479333758354187, -0.09946499764919281, 0.0628201961517334, 0.2072017341852188, -0.09563598036766052, -0.3958396911621094, -0.27399563789367676, 0.230788916349411, -0.011216901242733002, -0.09100937843322754, 0.04723811894655228, 0.11515731364488602, -0.16135556995868683, 0.10615263879299164, -0.2067127823829651, -0.506161093711853, 0.14503443241119385, 0.1470153033733368, 0.6205664873123169, -0.16600996255874634, 0.29800546169281006, -0.052638228982686996, 0.6775237917900085, 0.189077228307724, -0.22801735997200012, 0.2107890248298645, -0.21052329242229462, 0.3032870888710022, 0.0035380683839321136, -0.2769273817539215, 0.30394303798675537, 0.07190602272748947, 0.045916102826595306, 0.3248112201690674, 0.053421955555677414, -0.016675665974617004, -0.06131933256983757, 0.35972917079925537, -0.13923083245754242, -0.15712758898735046, -0.060563988983631134, -0.07529260218143463, -0.27003154158592224, 0.07413188368082047, 0.30652832984924316, -0.1772010326385498, -0.16730031371116638, -0.15177607536315918, 0.4453921914100647, -0.08596482127904892, 0.2577696740627289, -0.679118812084198, -0.004350252449512482, -0.1259898990392685, 0.28680625557899475, -0.14499707520008087, 0.6176645755767822, -0.05449534207582474, -0.18573802709579468, -0.06501908600330353, 0.07910099625587463, 0.47988399863243103, -0.04599786177277565, -0.009340331889688969, -0.03611714392900467, 0.29465252161026, -0.6179636120796204, -0.18783140182495117, 0.17760296165943146, 0.1685306429862976, 0.09368540346622467, 0.3528566062450409, -0.18216069042682648, -0.07711070775985718, 0.16134020686149597, 0.19918093085289001, -0.16626110672950745, -0.01700810343027115, -0.3835245966911316, -0.20730125904083252, -0.3429887890815735, -0.05118146166205406, -0.2764178216457367, 0.13280610740184784, 0.13914865255355835, 0.11733482778072357, 0.2389439195394516, -0.11288419365882874, 0.373893678188324, 0.13678820431232452, 0.38359445333480835, 0.19739732146263123, 0.13533741235733032, 0.2334740310907364, 0.2617395520210266, -0.15024729073047638, 0.48923033475875854, -0.4564044177532196, -0.30006474256515503, 0.03433966264128685, -0.07370370626449585, 0.14769825339317322, 0.3775250017642975, -0.14361843466758728, 0.08376488089561462, -0.3207884430885315, -0.08625549077987671, 0.27541592717170715, 0.1629420816898346, 0.25100910663604736, 0.0771014541387558, -0.11339537799358368, -0.40982621908187866, 0.17985612154006958, -0.11203449964523315, -0.04261976480484009, 0.21456505358219147, -0.4636401832103729, -0.28889524936676025, 0.09641458839178085, -0.10397233068943024, 0.893983006477356, -0.06497412919998169, 0.18897664546966553, 0.3377414047718048, 0.16326281428337097, 0.2822512090206146, -0.07744459807872772, 0.16547738015651703, -0.4589555859565735, -0.07823064923286438, 0.07447439432144165, -0.13921254873275757, -0.06478658318519592, 0.36636248230934143, 0.014166459441184998, 0.5146530866622925, -0.268801212310791, 0.31165680289268494, 0.05401430279016495, 0.521040678024292, -0.13379952311515808, -0.010874943807721138, -0.3472369611263275, 0.19491878151893616, -0.1809045672416687, 0.280245304107666, -0.12038958817720413, 0.0054682157933712006, -0.3029423654079437, -0.13794125616550446, -0.13194090127944946, 0.2274259328842163, -0.5376272201538086, 0.16697660088539124, 0.09342782199382782, -0.34864234924316406, 0.019177034497261047, 0.5643283128738403, -0.10029111802577972, -0.08207681775093079, -0.10845579952001572, 0.35308247804641724, 0.020763326436281204, 0.3046311140060425, 0.07688789069652557, 0.04578070715069771, 0.4243015646934509, -0.016855895519256592, -0.09482476860284805, 0.07203932106494904, -0.004246965050697327, -0.30940836668014526, -0.2513001561164856, 0.04081521928310394, 0.3062189519405365, -0.27568814158439636, -0.1972322016954422, -0.11883857846260071, 0.01594579964876175, -0.05961310863494873, 0.11982608586549759, 0.0611225962638855, -0.09665697813034058, 0.20687231421470642, 0.12961195409297943, -0.4074324369430542, 0.0401296503841877, 0.3414311110973358, 0.05819598585367203, 0.0030539557337760925, 0.6670223474502563, 0.0741891860961914, 0.07047639787197113, -0.19490255415439606, 0.14977401494979858, 0.3011733591556549, -0.23362332582473755, -0.039200495928525925, -0.20007863640785217, -0.2490168660879135, 0.00048480555415153503, -0.12109510600566864, 0.2407468557357788, -0.01767057180404663, 0.04028014838695526, -0.4578702449798584, -0.4342665374279022, 0.03151044249534607, -0.06306120753288269, 0.009265553206205368, 0.07820267230272293, -0.04398735612630844, 0.14506469666957855, 0.04536610096693039, -0.2561044692993164, 0.21077021956443787, -0.19661468267440796, 0.2120199352502823, 0.09935258328914642, -0.040149979293346405, 0.24972477555274963, -0.02280794084072113, 0.050334252417087555, -0.027215197682380676, -0.3081600069999695, -0.1973446160554886, -0.12951253354549408, 0.1182672530412674, 0.022085994482040405, -0.015638776123523712, -0.17388004064559937, -0.29436779022216797, -0.15431952476501465, -0.24747700989246368, -0.0346161350607872, 0.08816249668598175, 0.02744934894144535, 0.014234136790037155, -0.05347251147031784, 0.026538727805018425, 0.06578829139471054, -0.07397418469190598, 0.037588756531476974, 0.044000737369060516, 0.2452986240386963, 0.10125744342803955, 0.047980744391679764, -0.00903959572315216, -0.5060151219367981, 0.10130941867828369, 0.18785497546195984, 0.38351359963417053, 0.02990729548037052, -0.16318653523921967, -0.0384693443775177, 0.2729741930961609, 0.058359429240226746, 0.4147219955921173, -0.4566238224506378, -0.04420894384384155, -0.08864644169807434, 0.14343230426311493, -0.217178612947464, 0.09706588089466095, 0.36258041858673096, -0.1833089292049408, -0.01555740088224411, 0.273564875125885, 0.12666447460651398, 0.18971790373325348, 0.021740756928920746, 0.10689912736415863, 0.5871456265449524, -0.08740194141864777, 0.16464053094387054, 0.2900642454624176, -0.21607980132102966, 0.22053629159927368, 0.33497846126556396, -0.08375467360019684, -0.008730825036764145, 0.3994483947753906, -0.19293498992919922, 0.343112051486969, -0.07903444766998291, -0.12809881567955017, 0.24404433369636536, -0.24880191683769226, 0.07992838323116302, 0.40243133902549744, -0.15660536289215088, 0.16993317008018494, 0.04696962982416153, 0.5395814776420593, -0.4212687313556671, -0.13744276762008667, -0.03823883458971977, -0.16593119502067566, -0.14843502640724182, -0.05985618755221367, 0.06483689695596695, -0.1156122013926506, -0.10017085075378418, -0.23885436356067657, -0.1484498232603073, -0.3574168086051941, -0.050309330224990845, -0.003966514021158218, -0.3478865921497345, -0.07140540331602097, -0.06869851052761078, 0.35503849387168884, -0.19642069935798645, -0.10585729032754898, 0.3332424759864807, -0.14164839684963226, 0.03708989545702934, 0.32675838470458984, 0.25708135962486267, 0.19539295136928558, 0.4452641010284424, 0.07810191810131073, -0.11831741034984589, 0.31555822491645813, 0.04472564160823822, 0.014626048505306244, 0.14780694246292114, -0.13302841782569885, -0.19756880402565002, 0.39231592416763306, 0.13721923530101776, -0.05480096861720085, -0.27560243010520935, 0.34414926171302795, -0.0665346086025238, -0.24723607301712036, 0.21512021124362946, -0.24406269192695618, -0.03808317333459854, -0.5316836833953857, 0.3191310167312622, -0.3130171298980713, 0.09808237850666046, 0.4218282699584961, 0.15430966019630432, 0.3799420893192291, -0.25793689489364624, 0.0727035328745842, -0.028827037662267685, 0.38972821831703186, 0.17298999428749084, -0.24616889655590057, -0.18266984820365906, 0.18811100721359253, -0.9209600687026978, 0.44583964347839355, 0.0589725598692894, -0.039083994925022125, 0.033437423408031464, 0.34398937225341797, 0.05375004559755325, 0.053144391626119614, 0.2887403964996338, -0.09628324955701828, 0.16246503591537476, -0.041559167206287384, -0.37896308302879333, -0.3341311514377594, -0.3106013536453247, 0.4049323797225952, 0.14943212270736694, -0.5924780368804932, 0.2898760139942169, 0.03848930448293686, -0.050169408321380615, -0.10498639941215515, -0.21322359144687653, 0.15900085866451263, -0.13477949798107147, 0.417912095785141, -0.14029110968112946, 0.49387127161026, -0.027379080653190613, -0.019106123596429825, -0.21526303887367249, -0.11116942018270493, -0.29576918482780457, 0.26909953355789185, -0.14611554145812988, 0.07679354399442673, 0.12510305643081665, 0.07603248953819275, -0.2987893521785736, 0.3234615623950958, 0.14698410034179688, -0.2812112867832184, -0.40665340423583984, -0.021511297672986984, 0.03775439411401749, 0.09225723147392273, 0.06012312322854996, 0.3981383442878723, -0.14989034831523895, 0.23341816663742065, -0.1931374967098236, -0.3373353183269501, 0.5052193403244019, -0.3257141411304474, -0.1926414966583252, -0.27418220043182373, 0.2520015239715576, 0.13264641165733337, 0.005211593583226204, -0.6400471329689026, 0.053773388266563416, 0.36803552508354187, -0.18959751725196838, -0.1688362956047058, 0.1406751275062561, -0.23442137241363525, 0.4075177311897278, 0.004643328487873077, 0.037530384957790375, 0.00678706169128418, -0.130524680018425, 0.16363085806369781, -0.25506019592285156 ]
https://github.com/huggingface/datasets/issues/1963
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) ```
bug in SNLI dataset
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 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 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) ```
[ 0.17582231760025024, -0.28252556920051575, -0.10357320308685303, 0.34963300824165344, 0.22197790443897247, 0.04719807207584381, 0.38742125034332275, 0.11834355443716049, 0.08081860095262527, 0.2969245910644531, -0.20272843539714813, 0.6121096611022949, -0.14272040128707886, 0.0958903580904007, 0.0018209367990493774, -0.0009764982387423515, 0.23305445909500122, 0.3379024863243103, 0.20979565382003784, -0.49668413400650024, -0.23596647381782532, -0.02350461855530739, -0.3817799389362335, 0.2652830481529236, -0.28697267174720764, 0.17844896018505096, -0.015560973435640335, -0.13333800435066223, 0.13340502977371216, -0.4898703396320343, 0.16046380996704102, -0.09861204773187637, 0.12261399626731873, 0.23259814083576202, -0.00010586658027023077, -0.27431923151016235, 0.11297321319580078, 0.0678982138633728, -0.36965352296829224, -0.2605838477611542, -0.11014622449874878, -0.022008921951055527, -0.14689239859580994, -0.1628938615322113, -0.20963378250598907, -0.17244258522987366, 0.014251984655857086, 0.0935409814119339, 0.1124735102057457, 0.26622429490089417, 0.23742882907390594, 0.0673881247639656, -0.12641145288944244, 0.13473361730575562, 0.23913823068141937, -0.3994211256504059, 0.14059582352638245, 0.11391445994377136, 0.04962823539972305, 0.04937569797039032, 0.4056084156036377, 0.6512390375137329, -0.062047116458415985, -0.043695610016584396, 0.11371268332004547, 0.09037397056818008, 0.1272946298122406, -0.32540398836135864, -0.07871179282665253, 0.3404751420021057, 0.10919177532196045, -0.32639598846435547, -0.41880589723587036, 0.06633158028125763, 0.17106081545352936, -0.46233123540878296, -0.028323333710432053, 0.25387221574783325, 0.14069801568984985, 0.20345766842365265, 0.01786564663052559, 0.04474863409996033, -0.07421877235174179, 0.31832417845726013, 0.05006451904773712, 0.6590715050697327, -0.044593002647161484, 0.18191662430763245, 0.08405432105064392, 0.047233983874320984, -0.14533451199531555, 0.15972384810447693, 0.06855753809213638, 0.34489622712135315, -0.54329514503479, -0.0704534575343132, -0.04777352884411812, -0.08302143961191177, -0.1924339234828949, 0.1565321981906891, 0.1354234516620636, 0.08604345470666885, -0.15990233421325684, 0.28582286834716797, -0.01849299669265747, 0.012239966541528702, 0.14362283051013947, 0.3150082230567932, 0.1404026597738266, -0.2455684393644333, 0.0978088527917862, -0.05021356791257858, -0.1937011033296585, -0.2610456347465515, 0.49027949571609497, 0.05906802788376808, 0.03147101402282715, -0.06056522578001022, -0.3164854943752289, 0.23881766200065613, -0.35136878490448, 0.030370865017175674, -0.047725968062877655, 0.0027172770351171494, -0.01628682389855385, -0.012746339663863182, -0.002686113119125366, 0.05189412087202072, 0.09694160521030426, -0.20989926159381866, -0.2651703655719757, 0.06385572254657745, -0.06404725462198257, -0.1516256034374237, -0.048341017216444016, -0.13813412189483643, 0.1749141663312912, 0.020046502351760864, -0.3853112459182739, -0.16888941824436188, 0.1255013346672058, 0.057871654629707336, 0.23584599792957306, 0.17662663757801056, -0.24856562912464142, 0.4699510633945465, -0.12973830103874207, -0.14698612689971924, 0.043061792850494385, -0.006361730396747589, -0.2545924484729767, -0.16277658939361572, -0.32555511593818665, 0.25451982021331787, 0.04575803875923157, -0.039669524878263474, 0.07416407763957977, -0.14031030237674713, 0.1460747867822647, 0.02398999035358429, 0.3011031746864319, -0.2547023594379425, -0.17414027452468872, 0.03515883907675743, 0.13508883118629456, -0.07145746797323227, -0.18609750270843506, -0.15408965945243835, -0.14980298280715942, -0.22058972716331482, 0.24820956587791443, 0.3248292803764343, 0.08307184278964996, -0.0982794463634491, -0.18110516667366028, 0.14556962251663208, 0.6714301109313965, -0.47132182121276855, -0.5759907364845276, -0.03737016022205353, -0.3127925395965576, -0.3483291566371918, -0.07229144126176834, 0.5257781147956848, -0.25417211651802063, 0.18412397801876068, 0.05591588467359543, -0.02845284529030323, 0.07024866342544556, -0.040790654718875885, -0.4820290207862854, -0.24430465698242188, 0.4282408654689789, 0.28797224164009094, 0.1184491291642189, 0.04848475381731987, -0.06535238027572632, -0.12453324347734451, 0.3911314606666565, 0.00045260414481163025, 0.15570363402366638, 0.2652799189090729, 0.5162928104400635, 0.13378700613975525, 0.10868439078330994, -0.2567133605480194, -0.019543085247278214, 0.19961489737033844, -0.10251804441213608, 0.3829931318759918, 0.1140020340681076, -0.03275001421570778, -0.22632163763046265, -0.22941239178180695, -0.37141984701156616, -0.16337721049785614, 0.17279452085494995, 0.11063872277736664, 0.12495972961187363, -0.00021366029977798462, -0.06906325370073318, 0.23491740226745605, -0.1951020061969757, 0.05741900950670242, -0.25348395109176636, 0.1734800487756729, -0.07221066206693649, 0.0002445206046104431, -0.2396928071975708, 0.19963043928146362, 0.19419705867767334, 0.11504419147968292, -0.13521739840507507, 0.23935888707637787, -0.28614360094070435, -0.25728172063827515, 0.12809905409812927, 0.08652087301015854, 0.07452563941478729, -0.6160663366317749, -0.23180034756660461, 0.5943586230278015, 0.12143673002719879, 0.03288169205188751, -0.1761130690574646, 0.2059391885995865, -0.1515798717737198, -0.15616267919540405, -0.364566445350647, 0.28048622608184814, 0.13990268111228943, -0.04664837568998337, -0.08440292626619339, -0.3972606062889099, -0.024835221469402313, -0.49289828538894653, 0.355615496635437, 0.12884749472141266, -0.38395845890045166, -0.07162953168153763, 0.3216441571712494, -0.05075598508119583, 0.16073814034461975, -0.01802595891058445, -0.15249353647232056, 0.030300073325634003, 0.2578043043613434, 0.11806344985961914, 0.14801928400993347, 0.1922578066587448, -0.08459089696407318, 0.19278092682361603, -0.15289312601089478, -0.1079917699098587, -0.031114771962165833, 0.11461511999368668, -0.019010255113244057, 0.06877169013023376, 0.20766857266426086, 0.10674981772899628, -0.17784175276756287, -0.2461327314376831, -0.13955610990524292, 0.26816585659980774, -0.23240533471107483, -0.07604743540287018, -0.1674966961145401, -0.20949089527130127, -0.5057199597358704, -0.15218263864517212, -0.05071093514561653, -0.09920701384544373, 0.1847670078277588, -0.08890709280967712, -0.010520227253437042, 0.3142927289009094, 0.19605694711208344, 0.1012292131781578, 0.1451549232006073, 0.13579389452934265, -0.18558558821678162, -0.3651708960533142, -0.23517103493213654, 0.0717461034655571, -0.31856903433799744, 0.2699111998081207, 0.36296358704566956, -0.1586461365222931, -0.0961315929889679, -0.08919481933116913, -0.24419476091861725, -0.019691240042448044, 0.06638248264789581, 0.05417989194393158, 0.024773679673671722, -0.012879952788352966, -0.2053205668926239, 0.29648566246032715, 0.2392025887966156, 0.010781824588775635, -0.08040085434913635, 0.16511431336402893, -0.08926284313201904, -0.04840555787086487, -0.29117152094841003, -0.4643012583255768, -0.5519579648971558, 0.002352401614189148, 0.016096390783786774, -0.17084813117980957, 0.19171376526355743, 0.12174326181411743, 0.05396511033177376, -0.022381184622645378, 0.15115250647068024, 0.1787068247795105, -0.21525394916534424, -0.15646250545978546, 0.16998200118541718, 0.04657924547791481, -0.2690295875072479, -0.13658040761947632, 0.03959926217794418, -0.03241023048758507, -0.1843263953924179, -0.25611379742622375, -0.1648024022579193, 0.14730174839496613, 0.10703618824481964, 0.056877993047237396, 0.03168639540672302, -0.033990077674388885, 0.11850990355014801, -0.07938040047883987, -0.20765648782253265, 0.1215781718492508, 0.13406109809875488, -0.32735395431518555, 0.41764962673187256, -0.025411969050765038, 0.29758358001708984, -0.008934378623962402, 0.05717552453279495, 0.645511269569397, -0.15639330446720123, 0.025855544954538345, -0.15974029898643494, 0.022055404260754585, 0.14319176971912384, -0.2573867738246918, 0.1051400899887085, 0.40435752272605896, -0.03751125559210777, 0.13612404465675354, -0.030933696776628494, 0.05624332278966904, 0.002218984067440033, 0.1778101623058319, -0.28662651777267456, -0.042188286781311035, -0.2883038818836212, 0.008180549368262291, 0.012103365734219551, 0.002479180693626404, -0.12977677583694458, -0.016994010657072067, -0.1806282103061676, 0.00005038455128669739, 0.12845200300216675, -0.19702360033988953, 0.10253491997718811, -0.24619029462337494, -0.11509199440479279, 0.04359487444162369, -0.14802394807338715, 0.16879883408546448, 0.36430442333221436, 0.1497536152601242, 0.16440317034721375, 0.2874143123626709, 0.2821745276451111, 0.6061435341835022, -0.5048746466636658, 0.20270466804504395, 0.24208979308605194, 0.49778008460998535, -0.33833640813827515, -0.3108198046684265, -0.4152241349220276, -0.23854532837867737, 0.4774545133113861, 0.19171161949634552, 0.04235358536243439, -0.17587296664714813, 0.27399393916130066, 0.11126190423965454, -0.3431810736656189, -0.16448692977428436, -0.2301604002714157, -0.04108951985836029, -0.11274021118879318, 0.13400547206401825, -0.06369134783744812, 0.189191073179245, -0.09731678664684296, -0.21464836597442627, 0.05494915693998337, 0.10770228505134583, 0.24982821941375732, 0.16660434007644653, 0.1703023463487625, 0.1368241161108017, 0.08837573230266571, 0.045365627855062485, 0.12431078404188156, 0.023089440539479256, 0.3792884349822998, -0.15081463754177094, -0.3487546741962433, -0.049025025218725204, -0.4373478293418884, 0.07481144368648529, -0.021191075444221497, -0.007609989494085312, -0.062071263790130615, -0.10662718862295151, 0.3135819137096405, 0.03357439115643501, 0.12503334879875183, 0.07766316086053848, 0.24305903911590576, -0.4002366065979004, -0.38174566626548767, 0.564103901386261, 0.1614263951778412, -0.31268924474716187, 0.12982940673828125, -0.11154037714004517, -0.2323857545852661, 0.24959462881088257, 0.17410661280155182, 0.8710390329360962, -0.043997179716825485, -0.07778307795524597, 0.18726152181625366, -0.5491981506347656, 0.41604137420654297, -0.09628409147262573, -0.15672293305397034, -0.5003467798233032, 0.017013512551784515, 0.0462396964430809, 0.02956736832857132, -0.3262172043323517, 0.38486209511756897, -0.01684250682592392, 0.33359602093696594, -0.0721830427646637, 0.13156025111675262, 0.06266572326421738, -0.0263761505484581, 0.39191561937332153, 0.11013846099376678, -0.13597935438156128, 0.1998818814754486, -0.08675485849380493, 0.3650979697704315, -0.18077899515628815, 0.005146652460098267, -0.15932753682136536, 0.051181137561798096, -0.1213788166642189, -0.01902160421013832, 0.18983709812164307, 0.21329855918884277, 0.045338891446590424, -0.17714765667915344, -0.337167352437973, 0.3609565496444702, 0.7153920531272888, 0.01663554273545742, -0.0032237377017736435, 0.0695008933544159, 0.24050679802894592, 0.4848550260066986, 0.04380171373486519, 0.2695525586605072, 0.4295510947704315, -0.01752331480383873, -0.3549789786338806, 0.16683611273765564, 0.14241495728492737, 0.15233710408210754, -0.4034620523452759, 0.046711672097444534, -0.10673446953296661, 0.18478064239025116, 0.10234396159648895, -0.07123082131147385, 0.2050367146730423, -0.24084648489952087, 0.19637049734592438, 0.0711250901222229, -0.16800802946090698, 0.007784372195601463, -0.006090249866247177, -0.29266732931137085, -0.14717355370521545, 0.35250788927078247, 0.11044874787330627, 0.15972448885440826, -0.010663678869605064, -0.12135504186153412, -0.07463011145591736, -0.2623015344142914, -0.0025097131729125977, 0.2081129550933838, -0.489086389541626, 0.1244211196899414, -0.0861644446849823, 0.019864633679389954, -0.12015373259782791, 0.22113944590091705, 0.05760680139064789, 0.2330545037984848, 0.12387454509735107, -0.2934541702270508, -0.4125737249851227, -0.19747379422187805, 0.09582120180130005, 0.34167131781578064, -0.12686634063720703, 0.1598142832517624, -0.18414732813835144, -0.17765076458454132, -0.37720638513565063, -0.05117955431342125, -0.2954213619232178, 0.2258235216140747, 0.19124238193035126, 0.28302690386772156, -0.185221865773201, 0.004718154668807983, 0.17053577303886414, -0.028829608112573624, -0.08574356883764267, -0.23700907826423645, -0.24623386561870575, 0.052825018763542175, 0.2717525064945221, -0.2514607608318329, -0.09449422359466553, 0.1243266835808754, 0.06078372150659561, 0.03640141710639, 0.2265709936618805, 0.24770958721637726, 0.23585623502731323, 0.9074828624725342, -0.19371123611927032, 0.01120986882597208, -0.08096659928560257, -0.09743721783161163, 0.012371180579066277, 0.000978853553533554, 0.05546315759420395, 0.06996716558933258, 0.1669418066740036, 0.09686587750911713, -0.2715979218482971, -0.10886412858963013, -0.30388787388801575, -0.0061020744033157825, 0.010286794975399971, -0.5755164623260498, 0.41760292649269104, 0.2746882140636444, 0.2566927671432495, 0.08164675533771515, -0.3946268856525421, -0.24726784229278564, 0.21572056412696838, 0.3618088364601135, -0.22961270809173584, -0.006482429802417755, 0.2608964145183563, 0.13528317213058472, 0.057564057409763336, 0.05012255907058716, -0.06294244527816772, -0.12929180264472961, -0.08826489746570587, 0.03692242130637169, 0.11343656480312347, -0.350660115480423, 0.08688794821500778, 0.41155946254730225, 0.06869539618492126, 0.016749614849686623, 0.1330556869506836, -0.08481106907129288, -0.12131358683109283, 0.6410635709762573, -0.02645573392510414, 0.43691250681877136, -0.0552830696105957, 0.17630919814109802, -0.2318536639213562, 0.17287853360176086, -0.06380441784858704, 0.133253276348114, -0.4932234585285187, 0.0759485587477684, -0.01458243653178215, 0.218390092253685, -0.08816803991794586, -0.2310972809791565, 0.1531068980693817, 0.22327905893325806, -0.17932291328907013, -0.2515394389629364, -0.37089845538139343, 0.12150141596794128, -0.08565202355384827, 0.21312770247459412, 0.008108572103083134, -0.04787438362836838, -0.07327532023191452, 0.1985648274421692, -0.25974446535110474, -0.48316484689712524, -0.4174053370952606, 0.4844004213809967, 0.33215203881263733, -0.20231446623802185, -0.09130588918924332, 0.12435904145240784, -0.00945793092250824, -0.00025887414813041687, -0.1325836181640625, 0.1982097029685974, 0.1807582974433899, 0.3041767179965973, 0.0009505487978458405, -0.016491960734128952, -0.12145404517650604, -0.017577894032001495, -0.001449674367904663, 0.23950688540935516, -0.07149036228656769, 0.1017908826470375, 0.10851826518774033, -0.26472166180610657, 0.4198533296585083, 0.0897679477930069, 0.5018247961997986, -0.3040900230407715, 0.2026567906141281, -0.23448917269706726, -0.2914103865623474, -0.4042404592037201, -0.21281926333904266, -0.19527272880077362, 0.2986361086368561, 0.17478004097938538, 0.41026583313941956, 0.24248841404914856, -0.24217376112937927, 0.11441881954669952, 0.07319734990596771, 0.174911230802536, 0.1492747962474823, 0.04616069421172142, -0.0892120897769928, -0.02911669760942459, -0.619448721408844, 0.10148783028125763, 0.08361214399337769, 0.004427514970302582, -0.024010851979255676, -0.07218239456415176, -0.513498067855835, -0.12841764092445374, 0.16380199790000916, 0.23621375858783722, 0.05364498123526573, 0.41738614439964294, -0.18740004301071167, -0.011312727816402912, -0.03486356511712074, -0.0060418881475925446, 0.273037850856781, -0.19156953692436218, -0.08356994390487671, -0.24818141758441925, 0.17092081904411316, -0.1321861445903778, 0.06142067909240723, -0.14781303703784943, 0.2032233625650406, 0.46397414803504944, -0.09679725766181946, 0.3414817154407501, 0.04732120782136917, 0.21526214480400085, -0.1106107085943222, -0.08454673737287521, -0.38632431626319885, 0.08178508281707764, -0.13895490765571594, 0.4932190179824829, 0.16441814601421356, -0.1385679841041565, -0.20462065935134888, 0.18930786848068237, 0.004149183630943298, -0.19064460694789886, -0.2836730480194092, 0.32732540369033813, -0.0022105127573013306, 0.13832229375839233, 0.036035675555467606, 0.0244637168943882, 0.20877063274383545, 0.2192704826593399, -0.2801862061023712, -0.5413850545883179, 0.39902645349502563, -0.27573853731155396, -0.03218787536025047, -0.21429821848869324, 0.33664190769195557, 0.3930225968360901, -0.20637108385562897, -0.6328858137130737, -0.011706657707691193, 0.38831186294555664, -0.10357064753770828, -0.4395233392715454, 0.06904765218496323, 0.2488582879304886, 0.27228671312332153, -0.012697122991085052, -0.16199856996536255, 0.23307344317436218, -0.06404716521501541, 0.4385647773742676, -0.2267674207687378 ]
https://github.com/huggingface/datasets/issues/1959
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.
Bug in skip_rows argument of load_dataset function ?
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 ? 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 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.
[ 0.11845922470092773, -0.5157742500305176, -0.00026070326566696167, 0.13413408398628235, 0.2405337244272232, 0.31625938415527344, 0.39962196350097656, 0.11639025062322617, 0.1897607445716858, 0.27678850293159485, 0.35766708850860596, 0.31011396646499634, 0.05233965441584587, 0.1391008347272873, 0.21228250861167908, 0.00977924931794405, 0.32224637269973755, -0.09710897505283356, -0.22786998748779297, -0.1425262987613678, -0.4665183424949646, 0.2059864103794098, -0.4954793453216553, -0.006219319999217987, 0.0046917349100112915, 0.2700178921222687, -0.14683638513088226, 0.32505837082862854, 0.14609253406524658, -0.08202151954174042, 0.4361986815929413, 0.09278850257396698, 0.06225244700908661, 0.49198469519615173, -0.0001279238349525258, -0.04852019250392914, 0.0909043699502945, -0.11743684113025665, -0.250883549451828, -0.2423616498708725, -0.010397665202617645, 0.15110847353935242, -0.15865923464298248, -0.3461464047431946, -0.07970836013555527, 0.22087377309799194, -0.19318313896656036, -0.31983086466789246, 0.01720987632870674, 0.2279166579246521, 0.11325205862522125, 0.09956265985965729, -0.23223388195037842, 0.013391125947237015, 0.3679783046245575, 0.1688149869441986, -0.20286831259727478, 0.5136334896087646, 0.07497945427894592, -0.1312934309244156, 0.21700341999530792, 0.30021950602531433, -0.21628938615322113, 0.18193700909614563, 0.6969508528709412, 0.23463693261146545, -0.008031187579035759, 0.06708565354347229, 0.15477892756462097, 0.1427001804113388, 0.3508742153644562, -0.2583889961242676, -0.1454957127571106, -0.5243524312973022, 0.11481152474880219, -0.4422195553779602, 0.3829132616519928, -0.07575279474258423, -0.1903965175151825, 0.18923169374465942, -0.1961868405342102, -0.3662991523742676, -0.23993292450904846, 0.1452038586139679, 0.27318862080574036, -0.3786742687225342, -0.10798458009958267, 0.20839427411556244, 0.6590319871902466, 0.01670856587588787, -0.07404628396034241, -0.14502988755702972, 0.13629642128944397, 0.41198426485061646, -0.5192497968673706, 0.04572761058807373, 0.2632995545864105, 0.5026040077209473, 0.1499713808298111, 0.15264944732189178, -0.0932038426399231, -0.4410415291786194, 0.41022181510925293, 0.16740411520004272, 0.15006983280181885, -0.004112187772989273, 0.1651005893945694, 0.23744463920593262, 0.17035344243049622, -0.05769617110490799, 0.11907536536455154, -0.0006029754877090454, -0.061961837112903595, -0.24278253316879272, -0.03869461640715599, -0.24579697847366333, 0.34291526675224304, -0.2678745985031128, -0.2375260442495346, 0.10176648199558258, -0.14117175340652466, -0.13431061804294586, -0.22987914085388184, 0.36129456758499146, 0.3145488202571869, -0.17312553524971008, 0.005755327641963959, 0.2405340075492859, -0.10801437497138977, -0.13948024809360504, -0.19838494062423706, 0.10628420114517212, -0.03512374311685562, 0.25283023715019226, 0.061963073909282684, -0.45683351159095764, 0.07690342515707016, 0.05455031991004944, 0.3502007722854614, -0.04964644834399223, -0.07918830215930939, -0.03805730864405632, -0.019057873636484146, 0.2549310028553009, -0.1363019496202469, -0.14486536383628845, 0.2976912558078766, 0.11850140988826752, -0.043542347848415375, 0.5042287111282349, -0.27940502762794495, -0.22225847840309143, 0.060796625912189484, -0.09450816363096237, -0.16958904266357422, 0.09456098079681396, -0.6603599786758423, 0.2222946435213089, 0.13860611617565155, -0.20156997442245483, 0.03442254662513733, -0.006375429220497608, -0.3262867331504822, -0.22639749944210052, 0.2093483954668045, 0.537298858165741, -0.5187486410140991, -0.35516616702079773, 0.10339976847171783, 0.0400552824139595, 0.019091162830591202, -0.011484412476420403, -0.029628895223140717, 0.10797854512929916, -0.30771923065185547, 0.24948355555534363, -0.05216839909553528, -0.2833322584629059, -0.13130275905132294, 0.0714629739522934, -0.0621325820684433, 0.21807804703712463, 0.026195818558335304, -0.2533245086669922, -0.020431751385331154, -0.1669732630252838, 0.2533341646194458, 0.1141669899225235, -0.2502171993255615, 0.09421324729919434, -0.11509755253791809, -0.196574866771698, 0.31666597723960876, 0.02505241334438324, -0.2964208126068115, 0.11448480188846588, -0.2064063847064972, -0.5897092819213867, 0.37784284353256226, -0.07288151234388351, -0.1749580055475235, 0.1832055002450943, 0.04381523281335831, 0.17986837029457092, 0.20967502892017365, 0.037998586893081665, -0.6307148933410645, 0.1086893379688263, 0.49497172236442566, -0.04626147076487541, -0.09232731908559799, -0.22490665316581726, -0.252122700214386, -0.05489823594689369, 0.188477024435997, 0.2854732275009155, -0.1327735185623169, 0.07811177521944046, -0.12399204075336456, -0.06868148595094681, -0.1948324292898178, 0.15494708716869354, -0.36756402254104614, 0.15373803675174713, -0.4071648120880127, 0.2684522271156311, 0.2598712146282196, -0.09592389315366745, 0.0065902844071388245, -0.09849277138710022, 0.2952405512332916, -0.3557016849517822, -0.13201993703842163, 0.4505611062049866, 0.23428483307361603, -0.009130958467721939, 0.08686509728431702, 0.061107754707336426, -0.18082953989505768, 0.019299879670143127, -0.1605570912361145, -0.16006702184677124, 0.12386586517095566, -0.09586755186319351, -0.19652613997459412, 0.3076043426990509, -0.36042430996894836, 0.32552051544189453, -0.2628004848957062, -0.03521836921572685, -0.07545913755893707, -0.03418642282485962, -0.08421805500984192, -0.19791573286056519, 0.5240821838378906, -0.006113108247518539, 0.11185317486524582, 0.003533989191055298, -0.5212613344192505, -0.20668241381645203, 0.38308486342430115, -0.06212092563509941, -0.20702937245368958, 0.31914371252059937, 0.1557871699333191, -0.026288677006959915, 0.34118416905403137, -0.12517620623111725, 0.5859799981117249, 0.044935472309589386, -0.304390013217926, -0.06664542108774185, 0.14785915613174438, -0.042321428656578064, 0.2223358303308487, 0.03854648768901825, 0.1551990807056427, -0.25571802258491516, -0.18964272737503052, 0.02308780699968338, -0.05833578109741211, 0.16188377141952515, 0.045328617095947266, 0.17932604253292084, -0.6254631876945496, 0.24870677292346954, -0.05884016305208206, -0.1682409644126892, 0.16828201711177826, 0.08795873075723648, -0.3060453236103058, -0.2525307834148407, -0.08423282951116562, 0.06497444957494736, -0.12928059697151184, 0.23389467597007751, -0.25235506892204285, 0.6201028823852539, -0.11220340430736542, -0.2239251732826233, -0.3348614275455475, -0.032821349799633026, -0.05888400971889496, -0.06675032526254654, 0.055775102227926254, 0.10146810114383698, 0.32079067826271057, -0.05892321094870567, -0.13965216279029846, -0.0037375204265117645, -0.07335005700588226, 0.16022996604442596, -0.3428148329257965, 0.3066678047180176, 0.2471906691789627, 0.39972975850105286, -0.15425387024879456, 0.15138132870197296, 0.054896172136068344, -0.04765530675649643, 0.10070127993822098, 0.0335223451256752, 0.2533080279827118, 0.07978760451078415, -0.29209601879119873, 0.0357823371887207, -0.12993834912776947, -0.000038743019104003906, 0.2213922142982483, 0.019871696829795837, -0.03764960169792175, -0.0669298842549324, 0.1179809644818306, 0.07339578866958618, -0.07193359732627869, -0.048487380146980286, -0.30793529748916626, -0.6267730593681335, 0.24090492725372314, -0.02643168531358242, -0.1951414942741394, -0.023692980408668518, 0.3533586263656616, -0.03119575046002865, -0.1339343935251236, -0.4656541347503662, -0.24693194031715393, 0.13054709136486053, 0.15176334977149963, -0.19698822498321533, 0.03885043412446976, 0.05033588781952858, -0.2450459599494934, 0.15364426374435425, -0.44388246536254883, -0.48125147819519043, 0.08252864331007004, 0.12091650068759918, 0.10656556487083435, 0.4717404842376709, 0.287964791059494, -0.27333617210388184, 0.31634148955345154, 0.1464787870645523, 0.3638208508491516, 0.3352498710155487, -0.1675289422273636, 0.26503750681877136, 0.07346168160438538, -0.31725165247917175, 0.1638057976961136, 0.046483300626277924, -0.21118393540382385, 0.17851729691028595, 0.004129108041524887, 0.14075562357902527, -0.22083961963653564, 0.08560582995414734, -0.010481014847755432, -0.3896545171737671, 0.017737137153744698, -0.2655601501464844, -0.000042440369725227356, 0.06671477854251862, 0.26846104860305786, -0.42858484387397766, -0.05788128450512886, -0.08755025267601013, 0.15575985610485077, 0.6310109496116638, 0.057340107858181, -0.07302999496459961, -0.08047585934400558, -0.3710915744304657, 0.32039743661880493, 0.09686653316020966, -0.03329521790146828, 0.08738579601049423, -0.05941706523299217, 0.12381143122911453, 0.19245645403862, 0.9702675938606262, 0.18083129823207855, 0.1366526037454605, 0.11058315634727478, 0.21757912635803223, -0.3055568337440491, -0.013412095606327057, 0.07338540256023407, 0.267216295003891, 0.38172417879104614, 0.26566949486732483, -0.40333473682403564, -0.22264567017555237, 0.27699169516563416, 0.2830926477909088, -0.04784870520234108, -0.32232972979545593, -0.3425840735435486, -0.10459784418344498, -0.36166301369667053, 0.11273916065692902, 0.29838716983795166, 0.0953749269247055, -0.3774104118347168, 0.36497849225997925, 0.2887406349182129, -0.17086859047412872, 0.0014059990644454956, 0.2205379158258438, 0.29849207401275635, -0.3236280679702759, -0.06633566319942474, 0.42652833461761475, -0.25235873460769653, 0.4026009440422058, 0.6713854074478149, -0.38973647356033325, -0.4563649296760559, -0.06504663079977036, -0.5007572770118713, 0.5561573505401611, 0.29151517152786255, -0.3470172584056854, 0.24943676590919495, -0.07463929802179337, 0.040895894169807434, -0.12026860564947128, -0.3268795609474182, 0.4433290660381317, 0.0008113309741020203, -0.12510040402412415, -0.35758811235427856, 0.2981072962284088, -0.08590720593929291, -0.18440085649490356, 0.42693841457366943, 0.7055800557136536, -0.20704779028892517, 0.07429523020982742, -0.4285736680030823, 0.9876384139060974, 0.44791916012763977, 0.1335490196943283, 0.18859480321407318, 0.2559271454811096, 0.5449032783508301, 0.41569840908050537, -0.039443086832761765, -0.11667957901954651, -0.3400418162345886, 0.03584019094705582, -0.043622810393571854, 0.08017362654209137, 0.11871665716171265, -0.16707946360111237, 0.2674461007118225, -0.08333243429660797, 0.09776611626148224, -0.0778849646449089, -0.38149839639663696, 0.3286139667034149, -0.018328692764043808, -0.2122379094362259, -0.021396532654762268, 0.1279190480709076, 0.029178332537412643, 0.002743348479270935, 0.07652921974658966, 0.02255021035671234, -0.46136337518692017, -0.3341672420501709, -0.07984916865825653, -0.15759365260601044, -0.35949137806892395, 0.2929360270500183, -0.27100473642349243, 0.25847581028938293, 0.18823282420635223, 0.07910621911287308, -0.10338376462459564, -0.2842766344547272, -0.08384250104427338, 0.08189770579338074, 0.19559434056282043, -0.39375951886177063, 0.0037558935582637787, 0.18032076954841614, 0.048467427492141724, -0.2307666391134262, 0.09259948879480362, -0.1555216908454895, -0.4176953434944153, 0.013823717832565308, 0.07138420641422272, -0.3471812903881073, -0.3193706274032593, -0.4029918909072876, -0.058287762105464935, 0.31885993480682373, -0.2722458243370056, -0.03191753476858139, 0.1824081540107727, 0.07711195945739746, 0.025237273424863815, -0.010483549907803535, -0.3415660262107849, -0.05790795013308525, 0.233440101146698, -0.18901699781417847, -0.1578361690044403, 0.22909605503082275, 0.39401447772979736, -0.12592919170856476, 0.011072739958763123, -0.01593571901321411, 0.1251060664653778, -0.4891856908798218, 0.5048874020576477, 0.40316176414489746, 0.45662111043930054, 0.11325877159833908, 0.15695494413375854, 0.0025208545848727226, -0.13168367743492126, 0.03982345759868622, -0.1272897869348526, 0.020668528974056244, 0.14955520629882812, 0.22389084100723267, 0.15022943913936615, 0.1870156228542328, 0.08872765302658081, 0.035887911915779114, -0.08481843769550323, -0.13496415317058563, 0.06100405007600784, -0.18004590272903442, -0.14428725838661194, 0.734352171421051, 0.42335695028305054, 0.24252952635288239, -0.1966067999601364, -0.07832862436771393, 0.06594791263341904, 0.0952811986207962, -0.04151433706283569, -0.36753737926483154, 0.21471786499023438, -0.007264958694577217, -0.03441872447729111, 0.04902435466647148, -0.20439517498016357, -0.12299305200576782, -0.2577933073043823, 0.2782374620437622, 0.0852607935667038, 0.052520960569381714, 0.23773503303527832, 0.39155057072639465, 0.10322299599647522, -0.0592515766620636, 0.11234119534492493, 0.05076250433921814, 0.2624184787273407, -0.18117381632328033, 0.10879268497228622, -0.14375732839107513, 0.07025983929634094, -0.041799258440732956, -0.0027777664363384247, 0.04034581407904625, 0.17102737724781036, -0.030533548444509506, -0.13135138154029846, 0.16985289752483368, 0.0017848871648311615, 0.06757605075836182, 0.3770522475242615, -0.3807772397994995, 0.09849634766578674, 0.07699727267026901, -0.010565221309661865, -0.35986119508743286, -0.19772715866565704, 0.29496192932128906, 0.12853725254535675, -0.015099331736564636, 0.2488168179988861, -0.21232092380523682, 0.036275386810302734, -0.14782516658306122, -0.15950721502304077, 0.5118709802627563, 0.06804420799016953, 0.008655402809381485, 0.5517325401306152, -0.11727762967348099, 0.24736812710762024, 0.0751565471291542, 0.37168174982070923, 0.20791061222553253, 0.3752683103084564, -0.09287746250629425, -0.15251334011554718, 0.02267681434750557, 0.033264607191085815, -0.3393268585205078, -0.6127122640609741, 0.11386731266975403, 0.46620792150497437, -0.41142481565475464, 0.023335788398981094, 0.012315766885876656, 0.375947505235672, 0.07821011543273926, -0.198050394654274, -0.1014164462685585, 0.07412612438201904, 0.02082781493663788, -0.12535572052001953, -0.24430705606937408, 0.05547735095024109, -0.047179289162158966, -0.011451661586761475, -0.20204715430736542, -0.09292370826005936, 0.6958202123641968, -0.10938024520874023, 0.21668221056461334, -0.26447731256484985, -0.06233124062418938, -0.20026898384094238, 0.11110390722751617, 0.020059742033481598, -0.014532720670104027, -0.03668556362390518, 0.04758383333683014, 0.33779868483543396, -0.07034391164779663, 0.33027851581573486, -0.004520461894571781, 0.3747518062591553, -0.37458622455596924, -0.20058126747608185, 0.03503195196390152, 0.05642387270927429, 0.22059902548789978, -0.08234120905399323, 0.29053065180778503, 0.1375497281551361, 0.007411658763885498, -0.04560928791761398, 0.40564167499542236, 0.2595394253730774, 0.1267186552286148, -0.5624564290046692, 0.23456457257270813, -0.45128512382507324, -0.253725528717041, -0.4652949571609497, 0.12219980359077454, 0.04524344205856323, 0.13856397569179535, 0.15857678651809692, 0.12557344138622284, -0.0869322419166565, 0.06176263466477394, 0.0072453804314136505, 0.10489640384912491, 0.42816996574401855, 0.27957582473754883, 0.22757640480995178, -0.45403119921684265, -0.19665749371051788, -0.40899649262428284, 0.10941486805677414, -0.058540794998407364, 0.15033021569252014, 0.43329644203186035, -0.10267084836959839, 0.21551679074764252, 0.07540462911128998, 0.259297639131546, 0.00647205114364624, -0.043553706258535385, 0.17270924150943756, -0.18864023685455322, -0.5312671065330505, -0.2145918607711792, 0.0049194637686014175, 0.14215776324272156, -0.1503656804561615, 0.1773812174797058, -0.07685984671115875, -0.18501564860343933, -0.2282264232635498, 0.16272883117198944, 0.12086199223995209, 0.11984468996524811, 0.27858591079711914, -0.16672666370868683, 0.23450735211372375, -0.016035646200180054, -0.06309696286916733, -0.009243769571185112, -0.04709044471383095, -0.35422465205192566, -0.052959926426410675, -0.20879289507865906, -0.000916793942451477, -0.3818289637565613, -0.3481460213661194, 0.020847633481025696, 0.015034813433885574, 0.13034027814865112, 0.20171982049942017, -0.4272085726261139, 0.2923903167247772, -0.07479269802570343, 0.026183083653450012, -0.14066553115844727, -0.09783409535884857, -0.1842043399810791, 0.3183945417404175, -0.06235593557357788, 0.03422442078590393, 0.8977258205413818, -0.2795376479625702, -0.14094658195972443, -0.33160898089408875, 0.16821348667144775, 0.13222695887088776, -0.5405362844467163, -0.6190083026885986, -0.05393863469362259, 0.2388799488544464, 0.3874325156211853, -0.26106345653533936, 0.542094886302948, -0.3744543194770813, 0.19211333990097046, 0.08877773582935333, 0.4205942153930664, 0.15648570656776428, -0.07320591807365417, 0.2644815444946289, -0.2102508246898651 ]
https://github.com/huggingface/datasets/issues/1956
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 ?
[distributed env] potentially unsafe parallel execution
``` 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 ``` 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 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 ?
[ -0.33885788917541504, -0.4435221552848816, -0.012153439223766327, 0.02591429091989994, -0.0003199847415089607, -0.11885195970535278, 0.41917434334754944, -0.022088225930929184, 0.6945430636405945, 0.33475685119628906, -0.07045724987983704, 0.25758615136146545, 0.020857609808444977, 0.09218931198120117, -0.13298600912094116, -0.029275093227624893, -0.06194170564413071, -0.1000039279460907, -0.13307440280914307, -0.13483697175979614, -0.32300475239753723, 0.14048083126544952, -0.10864884406328201, 0.03323579952120781, -0.11156637966632843, -0.05100792646408081, -0.24524664878845215, 0.2668408751487732, -0.21929585933685303, -0.3962019979953766, -0.04709698632359505, 0.6610618829727173, -0.040150873363018036, 0.37817132472991943, -0.00010520990326767787, -0.07338632643222809, 0.14036203920841217, -0.17861303687095642, 0.12552431225776672, -0.03168164938688278, -0.00041621923446655273, -0.22174525260925293, 0.17876912653446198, -0.5844719409942627, 0.16185984015464783, -0.3749361038208008, 0.16023367643356323, -0.6200056076049805, 0.522904634475708, -0.0920470803976059, 0.1828143298625946, 0.40896075963974, -0.35703834891319275, -0.17782248556613922, 0.0755404457449913, -0.07413044571876526, 0.06227625906467438, 0.4285990595817566, 0.4382113814353943, -0.16489139199256897, -0.3774009346961975, 0.04792279377579689, -0.009532377123832703, 0.4112263321876526, 0.523833155632019, 0.14570963382720947, 0.12895774841308594, -0.22623631358146667, -0.3590707778930664, 0.5437494516372681, 0.06215189769864082, -0.00591865973547101, -0.21750062704086304, -0.08759754151105881, -0.04452228173613548, -0.20186260342597961, 0.03165470436215401, 0.07307782024145126, -0.2755064070224762, 0.0701170414686203, -0.09080056846141815, 0.10950051248073578, -0.23342399299144745, -0.016613401472568512, 0.11798214912414551, 0.43917158246040344, 0.15651850402355194, 0.30736082792282104, 0.4072216749191284, 0.17440006136894226, -0.5871926546096802, 0.3229154050350189, -0.15731611847877502, -0.13749103248119354, -0.21635189652442932, -0.0715380609035492, -0.13450130820274353, -0.2474491000175476, 0.2707521319389343, 0.21801887452602386, -0.1847601979970932, -0.03473537415266037, 0.501208484172821, 0.22644586861133575, 0.1733482927083969, 0.22254890203475952, -0.01449991762638092, 0.2927635610103607, 0.33716222643852234, 0.04639354348182678, 0.013073980808258057, 0.10347312688827515, 0.21545293927192688, -0.08660638332366943, 0.040712498128414154, 0.029197316616773605, 0.04151252657175064, -0.010233886539936066, -0.4665403962135315, 0.17998215556144714, 0.12967830896377563, -0.0897996723651886, 0.1274871826171875, 0.23495669662952423, 0.276130735874176, -0.1984882354736328, 0.22400930523872375, 0.0891118198633194, -0.28509634733200073, 0.23979869484901428, -0.15580631792545319, -0.019201209768652916, -0.39224690198898315, 0.04793550819158554, -0.0023124292492866516, 0.2354629635810852, 0.3477460741996765, 0.09118629992008209, 0.372524619102478, 0.0711541622877121, 0.15798355638980865, 0.14984290301799774, 0.1748497486114502, 0.11640538275241852, -0.02796139195561409, -0.1533219814300537, 0.16139939427375793, -0.09244608879089355, -0.19187027215957642, -0.2538033723831177, -0.2990008294582367, -0.10781430453062057, -0.09574448317289352, 0.21044506132602692, -0.42886483669281006, 0.1794067919254303, 0.3127838373184204, -0.04418967664241791, -0.07376180589199066, -0.1354021430015564, 0.4412112534046173, -0.13975889980793, -0.06089811772108078, -0.10549578815698624, 0.06039214879274368, 0.5278871655464172, 0.11670669913291931, -0.31385332345962524, 0.17339543998241425, -0.21315056085586548, -0.06268110871315002, 0.2512880563735962, -0.07313762605190277, -0.1633244901895523, -0.17261911928653717, 0.045132651925086975, 0.18396808207035065, -0.5704571604728699, -0.45517581701278687, 0.2267526388168335, -0.46299245953559875, -0.1833774745464325, 0.5246550440788269, 0.39921578764915466, 0.4919350743293762, -0.18167442083358765, 0.1842801570892334, 0.1285001039505005, -0.022571073845028877, -0.02100463956594467, -0.21995434165000916, -0.21320828795433044, 0.20553894340991974, 0.13355517387390137, -0.04079033434391022, -0.029986515641212463, 0.18429556488990784, 0.044908396899700165, 0.3806380331516266, 0.05993286520242691, 0.049430400133132935, 0.024999909102916718, 0.20688378810882568, 0.02620488777756691, 0.17316146194934845, 0.07355892658233643, -0.07733795791864395, 0.19879940152168274, -0.2551988959312439, 0.07868505269289017, 0.16688302159309387, -0.2616325616836548, 0.05974489450454712, -0.18071353435516357, -0.3017635941505432, -0.3694491982460022, 0.1339281052350998, 0.10070963203907013, -0.4253528118133545, -0.22511442005634308, -0.17631572484970093, 0.41269057989120483, -0.002602986991405487, -0.07832518965005875, -0.17748941481113434, -0.11905284225940704, -0.28666073083877563, 0.00462346151471138, -0.035130783915519714, 0.10598991066217422, 0.1628839522600174, -0.16261820495128632, -0.18354034423828125, 0.35461562871932983, 0.3039301633834839, 0.10924622416496277, 0.33553236722946167, 0.18540813028812408, 0.11292073130607605, -0.15256057679653168, 0.15414614975452423, 0.03196542337536812, 0.02960307151079178, 0.04685214161872864, -0.17569886147975922, 0.3792436718940735, -0.1660756915807724, -0.042531903833150864, -0.17394912242889404, 0.20521008968353271, -0.04075772687792778, -0.1759888231754303, -0.3004975914955139, -0.11317331343889236, 0.5896613001823425, 0.2008986920118332, 0.18785542249679565, 0.009699838235974312, -0.07259579002857208, 0.03890443220734596, 0.09340548515319824, 0.17920580506324768, 0.013047977350652218, -0.12905694544315338, 0.26405566930770874, 0.03383886069059372, 0.010035229846835136, 0.3682820200920105, 0.529909074306488, 0.2942914366722107, -0.0035121161490678787, 0.2998711168766022, -0.022067727521061897, -0.2826879620552063, -0.008095897734165192, 0.030352264642715454, -0.151035875082016, 0.1437176913022995, -0.04279375821352005, 0.06231531873345375, -0.13876236975193024, -0.249697744846344, 0.10679622739553452, 0.05818353593349457, -0.3008232116699219, 0.24209916591644287, -0.09281251579523087, 0.25033503770828247, -0.0295378640294075, -0.17505353689193726, -0.17179517447948456, -0.32380056381225586, 0.2914563715457916, 0.08183759450912476, -0.45217233896255493, 0.18621036410331726, 0.05922757089138031, 0.35456395149230957, -0.14974896609783173, 0.07801014184951782, -0.06747235357761383, -0.3504399359226227, -0.028741439804434776, 0.03382684290409088, 0.0693555697798729, 0.28260576725006104, 0.7376531958580017, -0.08956417441368103, -0.17168457806110382, -0.3883169889450073, -0.16753855347633362, -0.05483214929699898, -0.2927384376525879, 0.575581967830658, 0.37705665826797485, 0.11709719896316528, -0.1565520465373993, -0.2018892914056778, 0.1285160928964615, -0.41249963641166687, -0.1544501781463623, -0.12410515546798706, 0.0733180046081543, -0.2878052294254303, -0.3132178783416748, -0.4251735210418701, -0.38649073243141174, -0.3381045460700989, 0.17827582359313965, -0.1811823695898056, 0.1448945850133896, 0.060122814029455185, -0.3515412509441376, -0.01522105187177658, 0.29288047552108765, -0.12439557909965515, -0.47473612427711487, -0.6132943034172058, 0.12478764355182648, -0.3289964199066162, -0.21057650446891785, -0.06991855800151825, 0.2135726362466812, -0.15817484259605408, 0.28090760111808777, -0.24127554893493652, -0.7833877205848694, 0.1669146567583084, 0.19822031259536743, -0.16280260682106018, 0.06336356699466705, 0.2734372913837433, -0.09015641361474991, -0.14654560387134552, -0.1769038438796997, 0.01828206330537796, 0.5482855439186096, -0.052514828741550446, 0.18943123519420624, -0.11485651135444641, 0.08949553966522217, 0.008357211947441101, 0.5683792233467102, 0.3369278013706207, 0.012904069386422634, 0.4058043956756592, -0.14947441220283508, 0.4014566242694855, 0.10181896388530731, -0.2884702682495117, 0.3126341700553894, 0.22907501459121704, -0.226639986038208, 0.05098121240735054, -0.28243792057037354, 0.21499258279800415, -0.02928280457854271, -0.11091689765453339, 0.15695489943027496, -0.3881767690181732, -0.11116266250610352, 0.012272102758288383, 0.08902985602617264, -0.20540574193000793, 0.1362082064151764, 0.022075392305850983, -0.026520861312747, 0.031830742955207825, 0.5858514308929443, -0.012493409216403961, 0.11777956783771515, -0.07972030341625214, -0.16686563193798065, -0.3578244149684906, 0.47021913528442383, -0.07139352709054947, 0.4873969256877899, -0.3471037745475769, 0.008833520114421844, 0.15241460502147675, -0.013330452144145966, 0.5068033933639526, 0.061241358518600464, 0.1467699110507965, -0.05104405805468559, 0.06661014258861542, -0.09265945851802826, -0.2801852226257324, -0.2568097710609436, -0.05835776776075363, 0.22958146035671234, 0.12829779088497162, -0.4007207155227661, -0.32332080602645874, 0.0673336312174797, -0.1687120795249939, -0.332030713558197, -0.45798730850219727, -0.4411280155181885, -0.285335898399353, -0.32423844933509827, 0.25264137983322144, 0.07134321331977844, -0.18165606260299683, -0.021464645862579346, 0.008204780519008636, 0.14704017341136932, 0.2471083104610443, 0.09784859418869019, 0.08335915207862854, 0.11417733877897263, -0.19499650597572327, 0.13161399960517883, 0.41058486700057983, 0.1862625926733017, 0.08911088854074478, 0.2787953317165375, -0.2423749715089798, 0.03017217293381691, 0.15171663463115692, -0.16280123591423035, 0.0851592868566513, 0.39661186933517456, 0.06362562626600266, -0.04280802235007286, 0.054501842707395554, 0.3373204469680786, -0.3178878128528595, 0.02521856129169464, 0.341880738735199, 0.032572366297245026, -0.11144888401031494, -0.08251998573541641, 0.11748149245977402, 0.11405344307422638, -0.23438005149364471, 0.37092283368110657, 0.01981130801141262, -0.14430826902389526, 0.3042149543762207, 0.18672075867652893, 0.9030952453613281, 0.031115762889385223, 0.22809450328350067, 0.21737726032733917, 0.07321692258119583, 0.1633869707584381, -0.01762239634990692, 0.04196751117706299, -0.39619433879852295, -0.3439328670501709, -0.18050670623779297, -0.13476960361003876, 0.29875749349594116, -0.2991395890712738, -0.3444770276546478, 0.302609384059906, -0.001498103141784668, -0.29542234539985657, -0.4523962438106537, 0.4312306344509125, -0.3331824839115143, -0.19384165108203888, 0.24190892279148102, 0.1094016581773758, -0.07541050016880035, 0.2564891576766968, -0.06211202219128609, -0.24368275701999664, 0.010554671287536621, -0.3213076889514923, -0.3890612721443176, -0.2424219846725464, 0.021955084055662155, 0.29037317633628845, -0.0039328099228441715, -0.15802691876888275, -0.1069825142621994, -0.04139573127031326, 0.06641614437103271, 0.24616080522537231, -0.13287661969661713, 0.2183261513710022, -0.25348421931266785, 0.03856503218412399, 0.07614652812480927, -0.3603299558162689, 0.3276645541191101, -0.11718777567148209, -0.5082361698150635, -0.17557980120182037, 0.1454012095928192, -0.2381668984889984, 0.03327496349811554, 0.13996855914592743, 0.35572296380996704, -0.029696768149733543, 0.19755135476589203, -0.15107916295528412, -0.27654337882995605, -0.14187288284301758, 0.12205275893211365, 0.24282655119895935, -0.27913233637809753, 0.35593289136886597, -0.14600685238838196, -0.3269096612930298, 0.13017435371875763, 0.10358741134405136, -0.04826873168349266, -0.05701577290892601, 0.21075457334518433, -0.21358898282051086, -0.07688973844051361, -0.25943589210510254, 0.07093113660812378, -0.008109748363494873, 0.005034394562244415, 0.012250669300556183, 0.13088509440422058, -0.205081045627594, 0.07979201525449753, 0.13936464488506317, 0.330121785402298, 0.11700829863548279, 0.060525551438331604, -0.4716096520423889, -0.277127206325531, 0.08817952126264572, -0.4826115667819977, 0.45300397276878357, 0.08736741542816162, 0.009403862059116364, 0.020022429525852203, 0.27942681312561035, -0.3884774446487427, 0.016566678881645203, -0.36010196805000305, -0.14829713106155396, 0.30398091673851013, -0.05867050960659981, 0.0161728672683239, -0.09149150550365448, 0.04039408266544342, 0.11124204844236374, -0.5826275944709778, -0.16323605179786682, -0.3143567442893982, 0.17230430245399475, -0.12407580018043518, -0.03536587208509445, 0.04861661419272423, -0.4985813498497009, -0.0422140471637249, -0.06051124632358551, 0.1797475814819336, 0.4235541522502899, -0.1383514404296875, 0.06990217417478561, 0.09847527742385864, 0.2840332090854645, 0.1419794261455536, 0.2620128393173218, 0.15050439536571503, -0.16041003167629242, -0.20004332065582275, 0.1210676059126854, -0.24180476367473602, -0.09770501405000687, -0.17028111219406128, 0.14156506955623627, 0.49245205521583557, 0.22729374468326569, -0.1555069386959076, 0.2823542058467865, -0.14494697749614716, -0.07721269130706787, 0.4140521287918091, 0.3748761713504791, -0.26123225688934326, -0.1307840347290039, 0.05381627008318901, 0.24839696288108826, -0.2528647482395172, -0.06490752100944519, 0.19498895108699799, 0.31591495871543884, 0.13840427994728088, 0.359870970249176, 0.3957141637802124, -0.0030837655067443848, -0.17214518785476685, 0.0037230104207992554, 0.3735213875770569, -0.17758706212043762, 0.23390863835811615, -0.24439695477485657, -0.15107402205467224, 0.1608310341835022, 0.38218599557876587, 0.013973373919725418, 0.3264165222644806, 0.011032878421247005, -0.2467038929462433, 0.37271609902381897, 0.3607269525527954, 0.09103694558143616, 0.09668861329555511, -0.02798423171043396, 0.0726909339427948, -0.14732159674167633, -0.06891144067049026, 0.08487850427627563, 0.23893333971500397, 0.6212897896766663, -0.572515070438385, -0.1553122103214264, -0.24761731922626495, 0.3540136218070984, -0.1840916872024536, -0.01061304658651352, 0.19679076969623566, -0.10304196178913116, -0.15268613398075104, -0.1799851953983307, 0.2436833530664444, -0.035268209874629974, 0.2975538372993469, 0.24691420793533325, 0.10619492828845978, -0.21368491649627686, -0.1666729599237442, 0.18434488773345947, 0.15778905153274536, -0.45864471793174744, -0.1551934778690338, 0.3142165243625641, -0.14426112174987793, 0.44450056552886963, 0.3467249870300293, 0.2973739802837372, 0.12907837331295013, -0.20954370498657227, -0.02850707247853279, 0.08482740074396133, 0.1700475811958313, -0.11638360470533371, 0.16529200971126556, -0.013125132769346237, -0.30188944935798645, 0.2105090618133545, 0.14454388618469238, -0.1336321383714676, 0.07900376617908478, 0.10948416590690613, -0.04852268844842911, -0.058964069932699203, 0.5235514044761658, 0.09811200201511383, 0.08143166452646255, 0.08044464886188507, 0.10094644129276276, -0.6264942288398743, 0.13668778538703918, 0.07188448309898376, 0.09417740255594254, 0.20183134078979492, -0.3069216310977936, 0.11718478798866272, -0.011822409927845001, 0.3767247796058655, 0.13909824192523956, 0.08681608736515045, -0.46197009086608887, 0.17214518785476685, -0.798682451248169, 0.5472496747970581, 0.053406208753585815, -0.43155455589294434, -0.016055643558502197, 0.044231101870536804, 0.0583803690969944, 0.1264326572418213, 0.3685826063156128, 0.3651021122932434, -0.03727438300848007, 0.3127584457397461, -0.5110434293746948, 0.21977123618125916, 0.10672064125537872, -0.16560246050357819, 0.21293050050735474, -0.21727195382118225, 0.18083369731903076, -0.012427102774381638, 0.06761321425437927, 0.07022327929735184, 0.07098110020160675, 0.24768830835819244, 0.04990523308515549, 0.29371464252471924, 0.0575810968875885, 0.5136569738388062, -0.020278073847293854, -0.019146796315908432, -0.10748110711574554, -0.02727968990802765, -0.22700974345207214, -0.39026185870170593, 0.19943967461585999, 0.01706809550523758, -0.20867662131786346, -0.18344445526599884, -0.4254196584224701, 0.17466102540493011, -0.28873324394226074, -0.030068127438426018, -0.3006601333618164, 0.22156576812267303, 0.03888048231601715, 0.13030070066452026, 0.014591500163078308, 0.3273492157459259, 0.2044256329536438, 0.1432473361492157, -0.12792690098285675, -0.08463359624147415, 0.5487346053123474, -0.2959807515144348, -0.18674111366271973, -0.2512257397174835, 0.4572097659111023, 0.10848771035671234, 0.13576136529445648, -0.45685938000679016, 0.008092716336250305, 0.023304235190153122, -0.0894661620259285, -0.34601473808288574, 0.15372717380523682, -0.2121056169271469, -0.19140705466270447, -0.0443379171192646, 0.02267169952392578, 0.09701373428106308, -0.4199601709842682, 0.200833261013031, -0.1824047565460205 ]
https://github.com/huggingface/datasets/issues/1956
Ah, you're absolutely correct, @lhoestq - it's exactly the equivalent of the shared secret. Thank you!
[distributed env] potentially unsafe parallel execution
``` 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 ``` 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 Ah, you're absolutely correct, @lhoestq - it's exactly the equivalent of the shared secret. Thank you!
[ -0.2438625693321228, -0.5634173154830933, -0.025240328162908554, -0.07892368733882904, -0.08833131194114685, -0.046587489545345306, 0.4310416579246521, -0.09473548829555511, 0.6884130239486694, 0.338245153427124, -0.032446619123220444, 0.24160611629486084, 0.029499240219593048, 0.06510757654905319, -0.06623627245426178, 0.05155041813850403, -0.013719204813241959, -0.07758940756320953, -0.2323584258556366, -0.13883471488952637, -0.258167028427124, 0.16429172456264496, -0.13473942875862122, 0.11826221644878387, -0.13105499744415283, -0.0675269216299057, -0.2938542664051056, 0.35187339782714844, -0.20695361495018005, -0.3734537959098816, -0.05111042410135269, 0.5885388851165771, -0.11151578277349472, 0.3470311760902405, -0.0001025435485644266, -0.029089801013469696, 0.23907524347305298, -0.1840212047100067, 0.09377549588680267, -0.022516466677188873, -0.006396397948265076, -0.21478000283241272, 0.23909051716327667, -0.6090912818908691, 0.25480085611343384, -0.3178233206272125, 0.3465065062046051, -0.5903222560882568, 0.4716383218765259, -0.19177065789699554, 0.2114199697971344, 0.43530362844467163, -0.2383696436882019, -0.21038860082626343, 0.07676943391561508, -0.14817306399345398, 0.06493773311376572, 0.36591973900794983, 0.40747708082199097, -0.16500096023082733, -0.31398510932922363, -0.039543405175209045, 0.04359837621450424, 0.3771083950996399, 0.5423665642738342, 0.21607960760593414, -0.007824068889021873, -0.3159536123275757, -0.368543416261673, 0.5449934601783752, 0.06899240612983704, -0.01756816729903221, -0.15521302819252014, -0.04322342574596405, -0.12458384037017822, -0.062433063983917236, 0.04052188992500305, 0.08017709851264954, -0.27956655621528625, 0.09574168920516968, -0.06339411437511444, 0.2075606882572174, -0.1429087370634079, -0.04526544362306595, 0.09621535241603851, 0.46743959188461304, 0.1451299637556076, 0.35896188020706177, 0.3896104693412781, 0.2626071274280548, -0.5951406955718994, 0.28871265053749084, -0.07769779860973358, -0.101150281727314, -0.1418187916278839, -0.06186578795313835, -0.043979085981845856, -0.1890522539615631, 0.20889446139335632, 0.17671218514442444, -0.22180216014385223, -0.09644199162721634, 0.45213860273361206, 0.294869065284729, 0.14310042560100555, 0.14083684980869293, -0.0696253851056099, 0.2683873474597931, 0.30051711201667786, 0.020661763846874237, 0.03067944198846817, 0.1363251507282257, 0.21088886260986328, 0.0027401410043239594, 0.04452995955944061, -0.03515607863664627, 0.02387954294681549, 0.05767524242401123, -0.4421527683734894, 0.17518624663352966, 0.07979553937911987, -0.10013595223426819, 0.016064699739217758, 0.18299157917499542, 0.31186753511428833, -0.27966824173927307, 0.175192192196846, -0.10047079622745514, -0.2744460105895996, 0.2910325229167938, -0.16422438621520996, 0.037668172270059586, -0.3985895812511444, -0.0958598330616951, -0.09179537743330002, 0.096087247133255, 0.39888903498649597, 0.0868709459900856, 0.4171563386917114, 0.12936565279960632, 0.22417746484279633, 0.13479089736938477, 0.2759166359901428, 0.1784476935863495, -0.0017333701252937317, -0.20296218991279602, 0.2175435721874237, -0.0810280591249466, -0.220954030752182, -0.2160373032093048, -0.2931867241859436, -0.07745937258005142, -0.1473878175020218, 0.2421826720237732, -0.35603487491607666, 0.2010427713394165, 0.380035936832428, -0.14753836393356323, -0.10681717097759247, -0.0983295813202858, 0.5739685893058777, -0.12180778384208679, 0.0830889642238617, -0.08407081663608551, 0.020189225673675537, 0.48589831590652466, 0.07170148938894272, -0.26587554812431335, 0.21521790325641632, -0.27686142921447754, -0.05221349000930786, 0.2739187479019165, -0.08503060042858124, -0.26398172974586487, -0.24579297006130219, 0.1607365906238556, 0.13079924881458282, -0.4818878769874573, -0.40573593974113464, 0.22609426081180573, -0.44266456365585327, -0.13565824925899506, 0.5243065357208252, 0.3977622091770172, 0.3573780953884125, -0.10867181420326233, 0.18214796483516693, 0.05344048887491226, 0.01588246412575245, -0.029905300587415695, -0.12901680171489716, -0.19473445415496826, 0.09866476058959961, 0.05324026942253113, -0.12172568589448929, -0.051457785069942474, 0.28309163451194763, 0.03298315033316612, 0.3958418369293213, 0.09935985505580902, 0.0005166977643966675, -0.021190214902162552, 0.09796787798404694, 0.11561152338981628, 0.21231789886951447, 0.1543368250131607, -0.09075316041707993, 0.24834176898002625, -0.32185181975364685, 0.13704191148281097, 0.125431090593338, -0.2333317995071411, 0.06567935645580292, -0.10632522404193878, -0.26597359776496887, -0.34089505672454834, 0.15977886319160461, 0.10320444405078888, -0.41802069544792175, -0.2754877507686615, -0.20622585713863373, 0.4432169497013092, -0.013851948082447052, -0.10898526757955551, -0.21696756780147552, -0.1268145889043808, -0.33461588621139526, 0.07277483493089676, -0.1406826674938202, 0.03652506321668625, 0.07471388578414917, -0.14100520312786102, -0.1647876501083374, 0.35445737838745117, 0.31959378719329834, 0.10617978125810623, 0.3022874593734741, 0.19273194670677185, 0.03287728130817413, -0.12416668236255646, 0.14961358904838562, 0.075630784034729, 0.10133488476276398, 0.08011756837368011, -0.08737172186374664, 0.2563191056251526, -0.14551210403442383, -0.10933199524879456, -0.13758064806461334, 0.13144482672214508, -0.07657377421855927, -0.13658644258975983, -0.29572758078575134, -0.10351094603538513, 0.6106166839599609, 0.3171098530292511, 0.23199668526649475, 0.024016397073864937, -0.08378484100103378, -0.026204131543636322, 0.11933773010969162, 0.11293763667345047, 0.03772296756505966, -0.147275909781456, 0.2499716728925705, -0.038914795964956284, -0.02892686054110527, 0.3769490718841553, 0.5130670666694641, 0.2503073513507843, 0.07169933617115021, 0.30518093705177307, 0.0016125142574310303, -0.28758206963539124, 0.03587344288825989, 0.05614175274968147, -0.11261676251888275, 0.06842181086540222, -0.043502043932676315, 0.04935648292303085, -0.1518484205007553, -0.3390768766403198, 0.13302722573280334, -0.030441921204328537, -0.1809447556734085, 0.21083655953407288, -0.09411462396383286, 0.22580380737781525, -0.0496726892888546, -0.12463875114917755, -0.20880161225795746, -0.4025353491306305, 0.2573354244232178, 0.09177306294441223, -0.460761159658432, 0.0951693132519722, -0.03857363015413284, 0.26648977398872375, -0.17466583847999573, 0.07355929166078568, -0.12355026602745056, -0.32146403193473816, -0.043706830590963364, 0.07954713702201843, -0.08806318044662476, 0.2526985704898834, 0.7304580807685852, -0.13113316893577576, -0.20094364881515503, -0.3724403977394104, -0.1643543839454651, 0.046200793236494064, -0.33298155665397644, 0.4429238736629486, 0.4895552694797516, 0.05335228517651558, -0.11206058412790298, -0.18444910645484924, 0.08406612277030945, -0.3830340504646301, -0.26600903272628784, -0.18450182676315308, 0.10685493052005768, -0.33747872710227966, -0.33879363536834717, -0.36855795979499817, -0.4663521647453308, -0.3014017939567566, 0.2419753223657608, -0.1762256920337677, 0.15747906267642975, 0.09842882305383682, -0.4044072926044464, 0.04330895096063614, 0.27883052825927734, -0.14253900945186615, -0.499093621969223, -0.5869211554527283, 0.07714153826236725, -0.29535984992980957, -0.14394257962703705, -0.045341961085796356, 0.15769246220588684, -0.20123255252838135, 0.16354840993881226, -0.24145561456680298, -0.745375394821167, 0.09376595914363861, 0.23544369637966156, -0.09968678653240204, 0.04349333792924881, 0.3776494860649109, -0.09505193680524826, -0.21618801355361938, -0.21728762984275818, 0.06110555678606033, 0.44025880098342896, -0.026333317160606384, 0.12342996150255203, -0.021924128755927086, 0.08857367932796478, -0.002502940595149994, 0.5244190096855164, 0.23146286606788635, 0.04150403290987015, 0.3437654972076416, -0.19125449657440186, 0.40830370783805847, -0.07386614382266998, -0.20435458421707153, 0.29848113656044006, 0.186542809009552, -0.37117981910705566, 0.047134630382061005, -0.346858412027359, 0.18000352382659912, 0.00911276787519455, -0.05820557475090027, 0.21169070899486542, -0.2857469916343689, -0.16053283214569092, 0.035520028322935104, 0.01723296009004116, -0.16561612486839294, 0.06951329857110977, 0.11101140081882477, -0.009553153067827225, 0.014305230230093002, 0.5648732781410217, -0.03477267548441887, 0.10024818778038025, -0.10711002349853516, -0.2136802226305008, -0.34587305784225464, 0.4169008731842041, -0.023503027856349945, 0.4492665231227875, -0.3281523883342743, -0.1347951591014862, 0.23456481099128723, 0.009292159229516983, 0.47907140851020813, 0.11264586448669434, 0.12306761741638184, -0.028025835752487183, 0.10078693926334381, 0.005192197859287262, -0.31535089015960693, -0.3267291486263275, -0.04210871830582619, 0.19923104345798492, 0.08157911896705627, -0.3377789556980133, -0.2619323432445526, -0.012428035959601402, -0.21600373089313507, -0.3102509379386902, -0.4012083113193512, -0.5420237183570862, -0.27511435747146606, -0.3600604832172394, 0.2392566204071045, 0.1309221088886261, -0.22036415338516235, -0.04891620948910713, 0.07707789540290833, 0.19680343568325043, 0.30315566062927246, 0.009149637073278427, 0.17453117668628693, 0.05399911105632782, -0.16380877792835236, 0.008414320647716522, 0.37501901388168335, 0.2809549868106842, -0.05843555927276611, 0.29423102736473083, -0.1721453219652176, 0.14522364735603333, 0.2947830557823181, -0.18582744896411896, 0.013918623328208923, 0.2652876377105713, 0.08812414109706879, -0.027772441506385803, 0.055149126797914505, 0.31722524762153625, -0.2777988910675049, -0.08820217847824097, 0.34987103939056396, 0.029935374855995178, -0.07990649342536926, -0.04342576116323471, 0.05509708821773529, 0.05680471658706665, -0.2567834258079529, 0.2959792912006378, 0.056592006236314774, -0.08834582567214966, 0.2275806963443756, 0.14348414540290833, 0.862320065498352, 0.06246841698884964, 0.41447651386260986, 0.18137718737125397, 0.05222262442111969, 0.263208270072937, 0.05155402421951294, 0.06292016059160233, -0.41024351119995117, -0.3862263858318329, -0.24339650571346283, -0.14128440618515015, 0.2726682126522064, -0.302634060382843, -0.40035495162010193, 0.30241960287094116, 0.03943526744842529, -0.20734421908855438, -0.40992188453674316, 0.3298555016517639, -0.29784175753593445, -0.08982868492603302, 0.27293312549591064, 0.11636601388454437, 0.06115884333848953, 0.39242440462112427, -0.07177844643592834, -0.12018480896949768, -0.03204828500747681, -0.35058125853538513, -0.37826859951019287, -0.20398223400115967, 0.011313434690237045, 0.3753531575202942, 0.035637516528367996, -0.08619753271341324, -0.19791150093078613, -0.06431874632835388, -0.013330504298210144, 0.23680955171585083, -0.10938499867916107, 0.22279535233974457, -0.0976635068655014, 0.023957882076501846, 0.14932796359062195, -0.348062127828598, 0.3557846248149872, -0.08913068473339081, -0.4809231460094452, -0.05535268411040306, 0.03743712231516838, -0.2613356113433838, -0.0033933520317077637, 0.28137531876564026, 0.3861358165740967, 0.01698360964655876, 0.09927941858768463, -0.1376868039369583, -0.3311130404472351, -0.08527615666389465, 0.1279795616865158, 0.15299935638904572, -0.2878355383872986, 0.20797127485275269, -0.1581048220396042, -0.38796794414520264, 0.1795874685049057, 0.10254252701997757, -0.04631251096725464, -0.03172704949975014, 0.27407002449035645, -0.2099536955356598, -0.05634110048413277, -0.21965672075748444, 0.07899495214223862, -0.03708238899707794, 0.03299776464700699, 0.015620477497577667, 0.14470773935317993, -0.25452813506126404, 0.05529645457863808, 0.12857744097709656, 0.35063594579696655, 0.28858235478401184, -0.0284397155046463, -0.4474082589149475, -0.320875883102417, 0.016020914539694786, -0.450933039188385, 0.48442545533180237, 0.22113065421581268, -0.03222351521253586, 0.1585775762796402, 0.1567704677581787, -0.3978053331375122, 0.03192969411611557, -0.4641883969306946, -0.12486676871776581, 0.34081122279167175, -0.07525420933961868, 0.060397643595933914, -0.06418941169977188, 0.0906214490532875, 0.13479943573474884, -0.5935947895050049, -0.18637612462043762, -0.3097168207168579, 0.13947643339633942, -0.17530573904514313, -0.038648538291454315, 0.07298793643712997, -0.4741799533367157, -0.004261944442987442, 0.009896300733089447, 0.21459810435771942, 0.41668701171875, -0.13149727880954742, 0.07421788573265076, 0.19489802420139313, 0.20956088602542877, -0.0010700225830078125, 0.22775325179100037, 0.12706615030765533, -0.1274961531162262, -0.17416375875473022, 0.06593413650989532, -0.3609362244606018, -0.1272587776184082, -0.1918007731437683, 0.2360033243894577, 0.46320536732673645, 0.2804304361343384, -0.14667530357837677, 0.3265676498413086, -0.10628430545330048, -0.21879932284355164, 0.4266740083694458, 0.32943829894065857, -0.26427093148231506, -0.275112509727478, 0.096902996301651, 0.22935287654399872, -0.2391538918018341, -0.0873810350894928, 0.200238898396492, 0.2963559627532959, 0.17132170498371124, 0.28998658061027527, 0.35270780324935913, 0.06610347330570221, -0.2116890251636505, -0.007586121559143066, 0.34111613035202026, -0.1817130595445633, 0.1577337384223938, -0.1876579225063324, -0.1835862398147583, 0.2591574490070343, 0.3726927638053894, -0.11586473882198334, 0.3025062084197998, -0.0012337726075202227, -0.30719757080078125, 0.38531965017318726, 0.4048245847225189, 0.0581488274037838, 0.1763494908809662, 0.014160700142383575, 0.10942874848842621, -0.1097697913646698, -0.08810345828533173, 0.1642715036869049, 0.1753254383802414, 0.5363362431526184, -0.5529483556747437, -0.015296997502446175, -0.2336350381374359, 0.3381834924221039, -0.16720636188983917, -0.11169619858264923, 0.24861310422420502, -0.08184614032506943, -0.13772806525230408, -0.17034664750099182, 0.23368684947490692, 0.022230682894587517, 0.39785444736480713, 0.22348788380622864, 0.15075238049030304, -0.1550404131412506, -0.15228129923343658, 0.09446817636489868, 0.10136616230010986, -0.49494683742523193, -0.1825050264596939, 0.3110487163066864, -0.11966411769390106, 0.4652063846588135, 0.33762624859809875, 0.33826711773872375, 0.10545320063829422, -0.14652296900749207, 0.013881072402000427, 0.07668697088956833, 0.15302792191505432, -0.1337040364742279, 0.14226406812667847, -0.004886046051979065, -0.24547749757766724, 0.16266824305057526, 0.1714867204427719, -0.1359950453042984, 0.08459515124559402, 0.13941417634487152, -0.018852028995752335, -0.048844680190086365, 0.48340898752212524, 0.06463354825973511, 0.036290399730205536, 0.041661377996206284, 0.3051948547363281, -0.685834527015686, 0.10997641086578369, 0.09440848231315613, 0.10074447840452194, 0.17099353671073914, -0.26725584268569946, 0.12593939900398254, -0.04703071713447571, 0.4904877543449402, 0.21885880827903748, 0.13421446084976196, -0.35990726947784424, 0.20006026327610016, -0.6501296758651733, 0.5871243476867676, 0.07819864153862, -0.5412566065788269, -0.046562559902668, 0.02647150307893753, 0.08515430241823196, 0.03362376615405083, 0.32508406043052673, 0.30616024136543274, -0.12713013589382172, 0.3344302475452423, -0.3145222067832947, 0.1504702866077423, 0.04445650056004524, -0.14692363142967224, 0.15821540355682373, -0.21731331944465637, 0.13036412000656128, 0.03237474337220192, 0.08129724860191345, 0.032424382865428925, 0.06893324851989746, 0.29046082496643066, -0.0080097746104002, 0.257901132106781, 0.0819113701581955, 0.4832305908203125, -0.07485894858837128, -0.05669921636581421, -0.02534797415137291, -0.055969201028347015, -0.17126856744289398, -0.36502596735954285, 0.22432266175746918, -0.08699320256710052, -0.19016429781913757, -0.17998328804969788, -0.3332694470882416, 0.2587377429008484, -0.28604641556739807, -0.04207603633403778, -0.31933560967445374, 0.12789742648601532, 0.006823725998401642, 0.11460024118423462, 0.07439003884792328, 0.3767511248588562, 0.2553519904613495, 0.001688450574874878, -0.09779973328113556, -0.09053897857666016, 0.4677690863609314, -0.328239381313324, -0.1754850298166275, -0.3249819874763489, 0.3709002137184143, 0.0376720167696476, 0.14351478219032288, -0.4403664469718933, 0.003519296646118164, 0.031730733811855316, -0.0757504254579544, -0.3692752718925476, 0.13336364924907684, -0.14574547111988068, -0.1425708830356598, -0.11559240520000458, 0.1194949746131897, 0.10374697297811508, -0.43057382106781006, 0.17318393290042877, -0.1977110207080841 ]
https://github.com/huggingface/datasets/issues/1954
Hi not sure how change the lable after creation, but this is an issue not dataset request. thanks
add 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
18
add 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 Hi not sure how change the lable after creation, but this is an issue not dataset request. thanks
[ -0.23425175249576569, -0.05491122603416443, -0.1812906265258789, -0.052450791001319885, 0.016532830893993378, 0.03545776754617691, 0.33985984325408936, -0.03660150617361069, 0.07984986901283264, 0.14450690150260925, 0.010777730494737625, 0.19783428311347961, 0.03063609078526497, 0.371920645236969, 0.14029094576835632, 0.10706353932619095, -0.24835923314094543, 0.4518115222454071, -0.17405298352241516, -0.07291844487190247, -0.3456431031227112, -0.0778270959854126, 0.17911839485168457, -0.2770398259162903, -0.3205130696296692, -0.22028687596321106, 0.03208036720752716, 0.09791103005409241, -0.34908241033554077, -0.4073871374130249, -0.007171157747507095, 0.3199302554130554, -0.058889951556921005, 0.12599341571331024, -0.00010250037303194404, -0.1651872992515564, -0.07424648106098175, -0.16725827753543854, -0.23249244689941406, 0.14842519164085388, -0.2225053757429123, -0.12047109007835388, -0.06497883051633835, -0.2121857851743698, -0.43377143144607544, 0.06666138768196106, -0.09070511907339096, -0.48849475383758545, -0.002818390727043152, 0.36390408873558044, 0.36487454175949097, 0.13792014122009277, -0.12982699275016785, -0.35102805495262146, 0.27514657378196716, 0.008014148101210594, -0.11318889260292053, 0.11602898687124252, 0.14049208164215088, -0.06844507902860641, -0.14307880401611328, 0.04524097591638565, 0.5009629726409912, 0.10056115686893463, 0.07364422082901001, 0.007634934037923813, -0.0122203528881073, -0.06883127987384796, 0.28710341453552246, 0.2532128691673279, 0.5526142120361328, -0.1473829746246338, -0.21274296939373016, 0.02773474156856537, 0.27150991559028625, -0.3950329124927521, -0.10236909985542297, 0.022989755496382713, 0.103537917137146, 0.0007529603317379951, 0.3265814781188965, -0.3593198359012604, -0.30724233388900757, 0.10333747416734695, -0.1509903520345688, 0.36306682229042053, -0.093753382563591, -0.023256074637174606, -0.1438334882259369, -0.045735593885183334, 0.04057926684617996, 0.5270216464996338, -0.0486876554787159, 0.08689305931329727, -0.16991662979125977, -0.15344944596290588, 0.12583744525909424, 0.07719835638999939, -0.0013113915920257568, 0.0071969106793403625, 0.01306077092885971, -0.1483258306980133, -0.10181046277284622, -0.049140822142362595, -0.09854140877723694, -0.258611798286438, 0.22411814332008362, 0.08142407238483429, 0.07129217684268951, -0.1250397264957428, -0.14090272784233093, -0.33871251344680786, 0.09047728031873703, -0.05911286175251007, 0.0375070795416832, -0.025563359260559082, 0.1908128559589386, -0.13255071640014648, -0.10774815082550049, -0.09479556232690811, 0.16827329993247986, -0.08055193722248077, 0.029845166951417923, 0.4504488408565521, 0.1969480812549591, -0.012531029060482979, -0.042834408581256866, 0.16813579201698303, 0.00004451721906661987, -0.3650209307670593, -0.2425490766763687, 0.0406484492123127, 0.023460082709789276, 0.044603027403354645, 0.06423869729042053, 0.19840750098228455, 0.3595161736011505, 0.0659383088350296, -0.02619752660393715, 0.14531850814819336, 0.17304885387420654, -0.0396583192050457, 0.25904160737991333, 0.1630304604768753, -0.03377481922507286, 0.038991779088974, -0.06438496708869934, -0.007023058831691742, 0.019939646124839783, 0.047415055334568024, 0.07716628909111023, -0.08520734310150146, -0.6027118563652039, 0.2963128387928009, 0.3269846439361572, -0.29822802543640137, 0.15073712170124054, 0.18765562772750854, -0.140733003616333, -0.2708616852760315, 0.08052284270524979, 0.18429407477378845, -0.14452773332595825, -0.18880318105220795, -0.09081727266311646, -0.051337435841560364, -0.34426748752593994, -0.007960416376590729, -0.2085408866405487, -0.10718808323144913, 0.14127585291862488, -0.16554489731788635, -0.07017426192760468, 0.17136354744434357, -0.036752212792634964, 0.0876222625374794, 0.5381997227668762, -0.031059637665748596, -0.3604515790939331, -0.24980980157852173, -0.15761584043502808, -0.36821895837783813, 0.2996690571308136, 0.5366461873054504, -0.01174495741724968, 0.020674675703048706, -0.20449882745742798, 0.024742230772972107, -0.26160311698913574, -0.09835237264633179, -0.11634436249732971, -0.028687339276075363, 0.1365668773651123, 0.061478957533836365, 0.12480170279741287, 0.19442185759544373, 0.3542417585849762, 0.16887669265270233, 0.1422252506017685, -0.2761054039001465, -0.07721509039402008, 0.11451158672571182, 0.5605571866035461, 0.0042301807552576065, -0.06035056337714195, -0.08651915192604065, -0.38093799352645874, -0.1319013386964798, -0.24192214012145996, 0.03423912823200226, 0.2410072684288025, -0.3780498504638672, -0.38331884145736694, -0.16412746906280518, -0.01169273816049099, -0.04706156253814697, 0.26367464661598206, 0.19561681151390076, -0.05683159828186035, -0.26757296919822693, -0.0989280566573143, 0.1625027060508728, -0.0958888828754425, -0.1135600209236145, -0.2682311534881592, 0.04265684634447098, -0.09479968994855881, -0.1658969223499298, 0.21449506282806396, 0.18033245205879211, 0.2492695301771164, 0.1912117600440979, -0.06452083587646484, 0.1831037849187851, -0.07892574369907379, 0.23831570148468018, 0.29697394371032715, 0.10078267753124237, 0.04475567489862442, 0.16802310943603516, 0.03457780182361603, -0.2406420111656189, 0.031039327383041382, 0.2691999673843384, -0.28427398204803467, 0.14337804913520813, 0.015318876132369041, -0.17715412378311157, 0.03035178780555725, -0.11713799834251404, 0.20753899216651917, -0.3155145049095154, 0.15549686551094055, -0.5195199251174927, 0.08139894902706146, 0.03968972712755203, -0.04321471229195595, -0.033990487456321716, -0.3423888683319092, 0.29297277331352234, 0.18482160568237305, 0.14852458238601685, 0.27356699109077454, -0.024573039263486862, -0.10604311525821686, -0.03459402918815613, -0.028358280658721924, 0.37504076957702637, 0.1763318032026291, 0.39459094405174255, 0.09668755531311035, -0.06563974171876907, -0.10753808915615082, -0.25654661655426025, -0.09513654559850693, -0.3713628947734833, 0.08351872861385345, 0.2370494306087494, 0.34341633319854736, -0.30877062678337097, -0.43077635765075684, 0.09735557436943054, 0.06298026442527771, 0.3789818286895752, -0.2094772905111313, -0.2184332013130188, -0.09588870406150818, 0.012610986828804016, 0.0270039401948452, 0.04286489263176918, 0.14224907755851746, -0.20521339774131775, 0.2989898920059204, 0.27555179595947266, -0.08692149072885513, -0.01693582721054554, -0.2405191957950592, 0.3863028883934021, 0.15152572095394135, 0.2785095274448395, -0.0031325221061706543, -0.35062524676322937, 0.17991983890533447, 0.2896727919578552, -0.2606050372123718, 0.1840181201696396, 0.8060861229896545, -0.14833441376686096, 0.22072777152061462, -0.4004448354244232, -0.3926118016242981, -0.09638938307762146, 0.2622619867324829, 0.39636850357055664, 0.11593300104141235, 0.25797146558761597, -0.04146549478173256, -0.11636271327733994, 0.08504218608140945, -0.1183883547782898, -0.17838972806930542, -0.24188391864299774, -0.2830156683921814, 0.3030080497264862, 0.0470835343003273, -0.6182641386985779, 0.14253979921340942, -0.21142566204071045, 0.09269587695598602, 0.04515945166349411, 0.024338826537132263, -0.24765603244304657, -0.10877887159585953, -0.08073721826076508, -0.17660671472549438, 0.019231151789426804, -0.5788750052452087, -0.32563114166259766, 0.20026297867298126, -0.4118049144744873, -0.29773959517478943, -0.18874162435531616, -0.13719774782657623, 0.38286495208740234, -0.17593680322170258, -0.09620985388755798, -0.25266674160957336, -0.19495618343353271, 0.2247779816389084, -0.17208190262317657, 0.029429519549012184, 0.5308920741081238, -0.16516341269016266, -0.23868457973003387, -0.23811060190200806, -0.18471099436283112, 0.1396241933107376, 0.2987616956233978, 0.10109904408454895, -0.2928362488746643, 0.3094174861907959, -0.21064752340316772, 0.17874345183372498, -0.20579828321933746, -0.2192951738834381, 0.4171488285064697, -0.44350919127464294, 0.44001415371894836, 0.006204292178153992, -0.24366456270217896, 0.04646196588873863, 0.354006826877594, 0.20395414531230927, 0.16614854335784912, 0.04585479199886322, 0.01178613118827343, 0.10087615251541138, -0.021409496665000916, -0.3324843645095825, -0.13767677545547485, 0.05811603367328644, -0.12523627281188965, 0.28810253739356995, 0.009422451257705688, -0.2280372679233551, -0.4572378098964691, -0.11592969298362732, -0.1513102501630783, -0.06434237957000732, 0.05909691005945206, -0.3631081283092499, -0.40823549032211304, -0.0058828964829444885, -0.3175399899482727, 0.16572989523410797, 0.07850158214569092, 0.24076810479164124, -0.151601642370224, 0.013291135430335999, 0.06752428412437439, -0.07930402457714081, 0.43091320991516113, -0.42508620023727417, -0.06465503573417664, 0.12956976890563965, 0.17283913493156433, -0.2631372809410095, 0.31786078214645386, -0.22508908808231354, 0.21267130970954895, 0.013209674507379532, 0.34535080194473267, -0.06168238818645477, 0.02513831853866577, 0.4632739722728729, 0.2184382826089859, -0.3159709572792053, -0.2171536386013031, -0.18420767784118652, -0.29163461923599243, -0.227674663066864, 0.08148978650569916, -0.08707868307828903, 0.19124507904052734, 0.3089253306388855, -0.11606265604496002, -0.14073984324932098, -0.22071059048175812, 0.14880704879760742, 0.2851302921772003, 0.07136891782283783, 0.38822558522224426, 0.11600174754858017, -0.10799186676740646, 0.03006836585700512, 0.16717961430549622, 0.22513346374034882, -0.2639663517475128, 0.1820216178894043, 0.05700596794486046, -0.37489962577819824, 0.4564008116722107, 0.08951245248317719, 0.15828098356723785, 0.4401010274887085, -0.1284201592206955, 0.09474415332078934, -0.16094909608364105, 0.2963096797466278, 0.3025244474411011, -0.18679727613925934, -0.020495492964982986, -0.2033824324607849, 0.3991324007511139, -0.06631096452474594, -0.20366179943084717, 0.2702282667160034, 0.25975218415260315, -0.11186793446540833, 0.11927005648612976, 0.13862240314483643, 0.8258506059646606, -0.1651408076286316, -0.1446482092142105, -0.016453208401799202, -0.43306440114974976, 0.20196984708309174, -0.12181369960308075, 0.14980098605155945, -0.36292263865470886, -0.1199740320444107, 0.05814641714096069, 0.059490516781806946, 0.2272733747959137, 0.0732949823141098, -0.040814440697431564, -0.027774997055530548, -0.21283067762851715, -0.12059774994850159, -0.06344521790742874, 0.3888409733772278, -0.17061682045459747, -0.038512349128723145, 0.030087009072303772, 0.24279510974884033, 0.09677337110042572, -0.32028141617774963, -0.06541025638580322, 0.13786748051643372, -0.002284415066242218, 0.027822434902191162, -0.09522613137960434, -0.3391868472099304, -0.09432339668273926, -0.12215973436832428, -0.09829189628362656, -0.35620570182800293, -0.08012992888689041, 0.11262864619493484, 0.4637310206890106, 0.2225898802280426, -0.14608754217624664, 0.3929460346698761, -0.02903047949075699, -0.010685037821531296, -0.035668596625328064, 0.10025930404663086, -0.02051484026014805, -0.29062533378601074, -0.3704017102718353, 0.03855808079242706, 0.12903407216072083, -0.44377443194389343, -0.06309263408184052, -0.06416593492031097, 0.13692696392536163, -0.5037251114845276, -0.09707999229431152, 0.19960713386535645, 0.17689241468906403, -0.40964972972869873, 0.26040026545524597, 0.20850707590579987, -0.050600241869688034, 0.1573241949081421, 0.2987822890281677, -0.15483495593070984, -0.1539892554283142, 0.15371638536453247, 0.2887459397315979, 0.37339502573013306, 0.2711698114871979, -0.10328765213489532, -0.09034644067287445, -0.506646454334259, 0.14251282811164856, 0.35260897874832153, -0.4496007561683655, 0.15665069222450256, 0.26199305057525635, -0.17890281975269318, 0.15852293372154236, 0.2552880048751831, -0.12556114792823792, 0.20802919566631317, -0.07645358890295029, 0.01932455599308014, -0.17728716135025024, -0.16746005415916443, -0.1012035682797432, 0.3335438668727875, -0.00860554724931717, 0.16603392362594604, -0.1989147663116455, 0.2513760030269623, -0.48639631271362305, 0.07725775986909866, -0.258661150932312, 0.3740483224391937, 0.28224509954452515, 0.02984590269625187, 0.0526982881128788, -0.20131167769432068, 0.3311569392681122, -0.16931480169296265, 0.02607274055480957, -0.3804882764816284, -0.1417732536792755, 0.02728097140789032, -0.04071056842803955, 0.22535081207752228, -0.12913262844085693, -0.09804315119981766, -0.09991820901632309, 0.15760208666324615, 0.09554356336593628, -0.013199970126152039, 0.10094954073429108, 0.2714952826499939, 0.08444411307573318, -0.08182796090841293, 0.09097687900066376, 0.06075175106525421, -0.09268225729465485, -0.08067364245653152, -0.2555573284626007, 0.12114447355270386, -0.08137036114931107, -0.0933389961719513, 0.21883010864257812, 0.0702439621090889, 0.14607349038124084, 0.08436200022697449, -0.005998333916068077, 0.018224909901618958, 0.10197074711322784, 0.3345038592815399, -0.040811773389577866, -0.1155472844839096, 0.06861793994903564, 0.14106887578964233, 0.2462552934885025, 0.41197049617767334, -0.5275211930274963, 0.19971708953380585, 0.10632626712322235, -0.2075493037700653, 0.4894813299179077, 0.23712386190891266, 0.09500192105770111, 0.17382770776748657, 0.05271525681018829, 0.06705309450626373, -0.12093232572078705, -0.15252013504505157, -0.044563841074705124, 0.25987958908081055, 0.0038236677646636963, -0.10282465815544128, 0.4838430881500244, 0.17440350353717804, 0.04011940211057663, 0.24546551704406738, -0.01535593718290329, 0.3443306088447571, 0.18549968302249908, -0.09018824994564056, 0.1924191415309906, 0.05229468643665314, 0.38689661026000977, 0.11543279886245728, 0.14202263951301575, 0.003346789628267288, 0.23964823782444, 0.34848448634147644, 0.09829834848642349, -0.17109078168869019, -0.0935463234782219, 0.1353795826435089, -0.1843031346797943, -0.22123175859451294, -0.3129013180732727, -0.16168154776096344, -0.020254142582416534, -0.10221808403730392, -0.015274567529559135, 0.019600598141551018, 0.021856755018234253, -0.12240444123744965, 0.053797584027051926, -0.17615605890750885, 0.2304535061120987, -0.02247512713074684, 0.09162096679210663, 0.00898701697587967, 0.1721441149711609, 0.166016086935997, 0.09334386885166168, 0.39024391770362854, 0.511795699596405, 0.02637237310409546, -0.10823240876197815, 0.1417188197374344, 0.30363163352012634, -0.048756714910268784, -0.30722808837890625, -0.09557457268238068, -0.11352857947349548, 0.2628571391105652, 0.2950417399406433, 0.06118360906839371, 0.3272846043109894, -0.3016420602798462, 0.25751209259033203, 0.0694977343082428, 0.03370298817753792, -0.08595998585224152, 0.02883155830204487, 0.14091572165489197, -0.2790927290916443, -0.23509427905082703, -0.05790727958083153, -0.17120611667633057, 0.008580062538385391, -0.022550882771611214, -0.34742438793182373, 0.060450419783592224, -0.11422105133533478, 0.13495059311389923, 0.24312010407447815, 0.31778663396835327, -0.03642873093485832, -0.07544104754924774, 0.055430129170417786, -0.3573131859302521, -0.4765752851963043, 0.14711147546768188, -0.1192050501704216, -0.387098103761673, -0.20987853407859802, 0.17803561687469482, 0.18694837391376495, 0.07806271314620972, 0.5429642200469971, -0.09808003902435303, -0.07929693162441254, 0.07781603932380676, -0.24519112706184387, -0.05722188949584961, 0.25009357929229736, 0.07048366218805313, -0.013024739921092987, -0.09304922819137573, 0.11711637675762177, 0.07590948790311813, 0.2199331372976303, -0.05632174760103226, -0.08383415639400482, 0.042114853858947754, -0.022646816447377205, 0.3171389400959015, 0.036646075546741486, 0.39632317423820496, -0.35927069187164307, 0.06935235857963562, -0.10800495743751526, -0.14518529176712036, -0.24001891911029816, -0.009766079485416412, 0.43313172459602356, 0.3607579469680786, -0.026503581553697586, -0.13127543032169342, 0.07545764744281769, 0.2446972131729126, -0.09463592618703842, 0.18300089240074158, -0.09275447577238083, 0.540756106376648, 0.23318195343017578, -0.17640039324760437, -0.0008146986365318298, -0.015257302671670914, 0.01844160258769989, 0.09156238287687302, -0.09915207326412201, -0.41160520911216736, 0.3260042667388916, -0.04731247201561928, -0.14675332605838776, -0.18497225642204285, 0.2483227699995041, 0.3317496180534363, -0.028645923361182213, -0.3332259953022003, 0.22924013435840607, 0.2574436068534851, 0.09491626918315887, 0.19303365051746368, 0.4474113881587982, 0.044158682227134705, 0.11143521964550018, -0.07227423042058945, 0.2434658408164978, 0.17459583282470703, -0.17945042252540588, -0.16468672454357147, -0.21297700703144073 ]
https://github.com/huggingface/datasets/issues/1954
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 ;)
add 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 Hi I'd need to add a new column to the dataset, I was wondering how this can be done? thanks @lhoestq 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 ;)
[ -0.26750531792640686, -0.3267516493797302, -0.22937515377998352, -0.030696872621774673, 0.07127964496612549, 0.1932583898305893, 0.2296765148639679, 0.09861139953136444, 0.22823941707611084, 0.14503580331802368, -0.15576067566871643, 0.1634855419397354, 0.0027358699589967728, 0.51192307472229, 0.2227688878774643, -0.1781960129737854, -0.06255313754081726, 0.19881302118301392, -0.05342438817024231, 0.0027412399649620056, -0.34956255555152893, 0.04845299571752548, 0.2379426658153534, -0.17027971148490906, -0.2530997693538666, -0.21148963272571564, -0.01952454075217247, 0.08667731285095215, -0.20675931870937347, -0.3567587435245514, 0.04237416386604309, 0.20986096560955048, -0.0749002993106842, 0.1859728842973709, -0.00009734221384860575, -0.06417198479175568, -0.03590716794133186, -0.13463017344474792, -0.10335326194763184, -0.034768179059028625, -0.24146045744419098, -0.16992998123168945, -0.06924344599246979, -0.08610144257545471, -0.4185829162597656, -0.10428708046674728, -0.02174636907875538, -0.15312634408473969, 0.1256466656923294, 0.11346849799156189, 0.4063778519630432, 0.25538304448127747, -0.07647604495286942, -0.3638366460800171, 0.17768768966197968, 0.14615431427955627, -0.22233137488365173, 0.060845933854579926, 0.029249679297208786, -0.09474529325962067, -0.08670125901699066, 0.20654386281967163, 0.37435582280158997, 0.14800845086574554, 0.19065380096435547, 0.24050068855285645, -0.16160589456558228, 0.08656484633684158, 0.18930648267269135, 0.32733359932899475, 0.4445171654224396, -0.10601156949996948, -0.3236677646636963, -0.25505751371383667, 0.030813585966825485, -0.3803776502609253, -0.09689170122146606, -0.0229368694126606, 0.0951690524816513, 0.1734921634197235, 0.014211401343345642, -0.1790035367012024, -0.14236019551753998, 0.18363675475120544, -0.22759178280830383, 0.21135857701301575, -0.2669084966182709, -0.0052920617163181305, 0.17067351937294006, -0.06781772524118423, -0.28970906138420105, 0.37437188625335693, -0.07317464798688889, 0.11415237188339233, -0.1223931759595871, -0.19329741597175598, 0.1971587836742401, 0.19131797552108765, 0.21269571781158447, 0.04854995757341385, 0.09133462607860565, -0.054154571145772934, -0.11076042056083679, 0.1634424328804016, 0.08284281194210052, -0.12979626655578613, 0.20901866257190704, -0.08886995911598206, 0.22251737117767334, 0.048869237303733826, 0.08254833519458771, -0.3772420883178711, 0.21399208903312683, -0.015440890565514565, -0.09381845593452454, -0.19490057229995728, 0.2368554174900055, -0.10491649806499481, -0.1222471296787262, -0.13324087858200073, 0.2561584711074829, -0.09181920439004898, 0.06565352529287338, 0.4747043251991272, 0.09470905363559723, -0.15841740369796753, -0.04562073200941086, 0.19813421368598938, 0.08058933168649673, -0.1449047029018402, -0.3359633982181549, -0.014934763312339783, 0.04813951253890991, 0.18083477020263672, 0.034531526267528534, -0.09466125071048737, 0.4725375175476074, -0.0024812743067741394, -0.030233073979616165, 0.12970177829265594, 0.0783945769071579, -0.004334885627031326, 0.19348523020744324, 0.16437941789627075, 0.00447053462266922, -0.057605184614658356, 0.04035506024956703, -0.11873507499694824, -0.13526217639446259, -0.03272680193185806, -0.010686971247196198, -0.12508843839168549, -0.36872005462646484, 0.3041079640388489, 0.10410868376493454, -0.2859867811203003, -0.09878277778625488, 0.4664134085178375, -0.059814196079969406, -0.24862927198410034, 0.05819671228528023, 0.322205126285553, -0.34057286381721497, -0.0693768560886383, 0.04087096452713013, -0.08704452216625214, -0.2525865435600281, -0.2556758224964142, -0.03492213785648346, -0.24317005276679993, -0.18378980457782745, 0.04731139913201332, -0.07543735206127167, 0.07972392439842224, -0.073588065803051, 0.22777600586414337, 0.2581999599933624, 0.10876663774251938, -0.22716452181339264, -0.14175213873386383, -0.27807778120040894, -0.09710033237934113, 0.14764881134033203, 0.34988078474998474, 0.14362110197544098, 0.041560716927051544, -0.0008694306015968323, 0.04293447732925415, -0.18484991788864136, 0.012602582573890686, 0.02971891313791275, -0.018510140478610992, 0.022534381598234177, 0.10270562767982483, -0.07577161490917206, 0.15584281086921692, 0.31769201159477234, 0.023015782237052917, 0.17117375135421753, -0.18102580308914185, -0.070137619972229, 0.200370654463768, 0.48002076148986816, 0.06733687222003937, -0.12192438542842865, -0.2546573877334595, -0.5289197564125061, -0.014889180660247803, 0.03897635638713837, -0.08878642320632935, 0.11922762542963028, -0.3768487572669983, -0.3831668198108673, -0.06150218844413757, -0.10847529768943787, -0.056979142129421234, 0.2907109260559082, 0.14308878779411316, 0.06793886423110962, -0.19130007922649384, -0.15945501625537872, 0.15207849442958832, -0.03694956377148628, 0.009119287133216858, -0.26504096388816833, 0.12841984629631042, 0.01736319623887539, -0.135955348610878, 0.0963122695684433, 0.11473990976810455, 0.10429685562849045, 0.03094552457332611, 0.12690749764442444, 0.29091429710388184, -0.10345349460840225, 0.3359624445438385, 0.2832552194595337, 0.14349988102912903, 0.11188260465860367, 0.05086483061313629, 0.04497712105512619, -0.154896080493927, 0.017394527792930603, 0.08942708373069763, -0.4237242043018341, 0.2668481469154358, 0.14286930859088898, -0.06324095278978348, -0.04194192960858345, -0.003818359225988388, 0.22778642177581787, -0.17412742972373962, 0.04262454807758331, -0.46208828687667847, 0.01829255372285843, -0.06943162530660629, 0.08987720310688019, -0.02626793645322323, -0.4064921736717224, 0.28280094265937805, 0.337998628616333, 0.03398826718330383, 0.04094104468822479, 0.10309793055057526, -0.25936824083328247, 0.05180281400680542, 0.16499054431915283, 0.20507937669754028, 0.22286903858184814, 0.4660230875015259, 0.2596602439880371, -0.001043020747601986, -0.1270841807126999, -0.1808648705482483, -0.0776132345199585, -0.20900589227676392, -0.036461811512708664, 0.11656990647315979, 0.28067508339881897, -0.3271845579147339, -0.5827217102050781, 0.0823417454957962, -0.08104829490184784, 0.19867633283138275, -0.18864771723747253, -0.2168993353843689, -0.09069953858852386, 0.009992621839046478, -0.0009747520089149475, -0.21577250957489014, -0.17188319563865662, -0.27085328102111816, 0.280083566904068, 0.3527168035507202, -0.20825554430484772, 0.012802360579371452, -0.018814727663993835, 0.2867794334888458, 0.04088292270898819, 0.19945503771305084, -0.07497219741344452, -0.24185560643672943, 0.1457321047782898, 0.3013760447502136, -0.22702427208423615, 0.059737663716077805, 0.6364293694496155, -0.19693110883235931, 0.1622604876756668, -0.4014014005661011, -0.45793408155441284, 0.04564973711967468, -0.09332799911499023, 0.22804005444049835, 0.19305694103240967, 0.4515182375907898, -0.11391066759824753, -0.17882610857486725, 0.24953815340995789, -0.08483860641717911, -0.3495542109012604, -0.2163495123386383, -0.1054067388176918, 0.12984880805015564, -0.05460047721862793, -0.3900424838066101, 0.030827848240733147, -0.30328214168548584, 0.5029951930046082, -0.006859935820102692, 0.04595863074064255, 0.024630237370729446, 0.06174401193857193, 0.061671532690525055, -0.3267001211643219, -0.0044151414185762405, -0.5509766936302185, -0.38175082206726074, 0.3346666395664215, -0.4371897876262665, -0.26867496967315674, -0.059144943952560425, -0.03562011197209358, 0.13678112626075745, -0.15665456652641296, -0.09535709023475647, -0.3855728507041931, -0.1848871111869812, 0.2939254641532898, -0.01769908331334591, 0.127898171544075, 0.48417964577674866, -0.14339734613895416, -0.24567019939422607, -0.22725456953048706, -0.31263214349746704, 0.15254591405391693, 0.3414376974105835, 0.11716917157173157, -0.23839135468006134, 0.278050035238266, -0.0030253976583480835, 0.2944169044494629, -0.06678199768066406, -0.10007503628730774, 0.363054484128952, -0.45253661274909973, 0.4308472275733948, -0.033302485942840576, -0.27243220806121826, 0.10235631465911865, 0.17037248611450195, 0.16822092235088348, 0.3327379822731018, 0.2433999627828598, 0.03778233379125595, 0.11290423572063446, -0.056823693215847015, -0.15217626094818115, -0.1492476761341095, 0.03249673545360565, 0.19751498103141785, 0.11522048711776733, -0.04780891537666321, -0.2434738576412201, -0.4107983112335205, -0.023717690259218216, 0.04721852391958237, 0.12109154462814331, 0.0176355242729187, -0.18581050634384155, -0.4173741936683655, 0.024255067110061646, -0.43657001852989197, 0.2714168429374695, 0.0817381888628006, -0.16423290967941284, -0.21879547834396362, -0.16949224472045898, -0.08012939244508743, 0.009445752948522568, 0.5412446856498718, -0.19441241025924683, -0.12438283860683441, -0.15094825625419617, -0.1719127595424652, -0.21474391222000122, 0.302773118019104, -0.13613852858543396, 0.03512071445584297, 0.08096293359994888, 0.3884942829608917, -0.16516649723052979, -0.0014951415359973907, 0.41995081305503845, 0.21463684737682343, -0.2711300253868103, -0.2036133110523224, -0.25951898097991943, -0.26609277725219727, -0.2679540812969208, 0.1394277811050415, 0.03624817728996277, 0.0924399197101593, 0.4106515645980835, -0.29055625200271606, 0.016165709123015404, -0.17761509120464325, 0.13794606924057007, 0.40611594915390015, 0.19169974327087402, 0.4186701476573944, -0.019862040877342224, 0.2423337996006012, 0.14398299157619476, 0.10789444297552109, 0.3881813585758209, -0.20443838834762573, -0.12444140762090683, -0.07862348854541779, -0.294545978307724, 0.5106816291809082, 0.13289262354373932, 0.09916925430297852, 0.33252397179603577, 0.014733687043190002, 0.16141866147518158, -0.2695330083370209, 0.31391018629074097, 0.1731737107038498, 0.14052417874336243, 0.03273312374949455, -0.1346593201160431, 0.48187193274497986, -0.010015968233346939, -0.10391759872436523, 0.2979791760444641, 0.37003135681152344, -0.20198334753513336, 0.04628932103514671, -0.05426602438092232, 0.7508455514907837, -0.1673709601163864, -0.03572770953178406, 0.03852304443717003, -0.17746439576148987, 0.22260139882564545, -0.10970482230186462, 0.11535455286502838, -0.14144301414489746, -0.32665136456489563, -0.02572948858141899, 0.12105995416641235, 0.24924199283123016, 0.07328756898641586, -0.053569160401821136, 0.0528164841234684, 0.05741898715496063, 0.15370714664459229, -0.19224217534065247, 0.07046237587928772, -0.009198860265314579, -0.29249101877212524, -0.26949286460876465, 0.30073121190071106, -0.010421480983495712, -0.09572313725948334, -0.07629674673080444, 0.1155962124466896, 0.01951099932193756, -0.20822016894817352, -0.12711703777313232, -0.3215966522693634, -0.058581240475177765, -0.1984928697347641, 0.12799015641212463, -0.24778975546360016, -0.25151756405830383, 0.17079463601112366, 0.4153108596801758, 0.05733209848403931, -0.22162477672100067, 0.20556843280792236, -0.22252261638641357, 0.08567824959754944, -0.24750149250030518, 0.03996670991182327, 0.10945139080286026, -0.17795872688293457, -0.23463819921016693, -0.010133620351552963, 0.10524170845746994, -0.413199245929718, -0.033825501799583435, 0.03213469311594963, -0.24255798757076263, -0.46906155347824097, -0.10522039234638214, 0.07982398569583893, 0.17732971906661987, -0.37298583984375, 0.26566070318222046, 0.19986477494239807, -0.1658199429512024, -0.044020917266607285, 0.3708615303039551, -0.12729936838150024, -0.1514556109905243, 0.3287454843521118, -0.06378185003995895, 0.06966938078403473, 0.20025047659873962, 0.00918770581483841, -0.17900708317756653, -0.3545346260070801, -0.073304682970047, 0.42468804121017456, -0.15350094437599182, 0.17293117940425873, 0.23481851816177368, -0.23098982870578766, -0.006676279008388519, 0.3626251816749573, 0.0038939581718295813, 0.1581721007823944, -0.04813801497220993, -0.12467385828495026, -0.4298342168331146, 0.07494939118623734, 0.004905210807919502, 0.3372642993927002, -0.03279789537191391, 0.24463814496994019, 0.009360887110233307, 0.16963140666484833, -0.5226578116416931, -0.06516724824905396, -0.2895471751689911, 0.2796228229999542, 0.37178969383239746, -0.028787575662136078, 0.208365797996521, -0.18753524124622345, 0.33293092250823975, -0.035203464329242706, -0.1669902503490448, -0.38315942883491516, -0.22144530713558197, 0.06086036562919617, 0.019637174904346466, 0.1678805649280548, 0.00876002386212349, 0.18110115826129913, -0.01785479672253132, -0.1832396686077118, 0.34551185369491577, 0.10265472531318665, 0.020297065377235413, 0.20282280445098877, 0.2382943034172058, -0.0692552775144577, 0.10747161507606506, -0.13947422802448273, 0.07200929522514343, -0.046745892614126205, -0.10002002120018005, -0.07315625250339508, -0.3047172427177429, -0.049512602388858795, 0.3234216272830963, 0.1798161119222641, 0.23365181684494019, -0.00630085589364171, 0.1078687235713005, 0.12717100977897644, -0.02521514892578125, 0.32400768995285034, 0.2929457128047943, -0.09652913361787796, 0.07200950384140015, 0.27706825733184814, 0.11181919276714325, 0.41035500168800354, -0.48795706033706665, 0.17544817924499512, 0.3631242513656616, -0.1352909505367279, 0.502909243106842, 0.2272496074438095, 0.06584078073501587, 0.2021550089120865, 0.09134997427463531, 0.05033614858984947, 0.0012867562472820282, -0.21147119998931885, 0.058178361505270004, 0.1365841180086136, -0.029676109552383423, -0.08123278617858887, 0.47530457377433777, 0.26255348324775696, 0.182461678981781, 0.11799733340740204, -0.27868086099624634, 0.21161475777626038, -0.058393046259880066, 0.04201272130012512, 0.1983388364315033, -0.11374197900295258, 0.35274791717529297, 0.16395175457000732, 0.1773964762687683, -0.04483858123421669, 0.1969459056854248, 0.4129960834980011, -0.08484162390232086, -0.11466093361377716, -0.16886892914772034, 0.29378241300582886, -0.10051482915878296, -0.253390371799469, -0.15734946727752686, -0.14923407137393951, -0.04935228079557419, -0.09135200083255768, 0.11065736413002014, -0.19926774501800537, 0.37309324741363525, -0.17388677597045898, 0.12572330236434937, -0.31641465425491333, 0.08245357125997543, -0.060583699494600296, 0.07006038725376129, 0.04045209288597107, 0.18767313659191132, 0.1593516767024994, -0.059955719858407974, 0.3969537019729614, 0.3891631066799164, -0.02847379446029663, -0.3357331454753876, 0.28786569833755493, 0.48703640699386597, -0.2670850455760956, -0.31025975942611694, -0.16280853748321533, -0.0846293643116951, 0.054523076862096786, 0.23951366543769836, 0.12234489619731903, 0.3468785583972931, -0.3152138590812683, 0.28676313161849976, -0.09157149493694305, 0.14006203413009644, -0.1972031593322754, 0.07507848739624023, 0.06843013316392899, -0.36133724451065063, -0.19586600363254547, -0.13095766305923462, -0.24482807517051697, -0.15849684178829193, -0.01643003337085247, -0.2886989116668701, 0.10807514190673828, 0.004858706146478653, 0.15961995720863342, 0.1991930454969406, 0.22237218916416168, 0.01570151001214981, -0.13886916637420654, 0.06641080230474472, -0.28174513578414917, -0.492003470659256, 0.03523828834295273, -0.03343722224235535, -0.2707377076148987, -0.14857184886932373, 0.06859956681728363, 0.22375784814357758, 0.15696093440055847, 0.3889603316783905, -0.15791931748390198, 0.027986876666545868, -0.22794464230537415, -0.28470852971076965, -0.09917730838060379, 0.0880909413099289, 0.059907399117946625, 0.13277937471866608, 0.1024203971028328, 0.04829508066177368, 0.10030476748943329, 0.19214411079883575, -0.21070727705955505, 0.19169166684150696, -0.28474247455596924, -0.24428220093250275, 0.19319961965084076, -0.015952985733747482, 0.25186294317245483, -0.37917301058769226, 0.158320814371109, -0.017983023077249527, -0.19982005655765533, -0.3959467113018036, 0.0735316127538681, 0.11076099425554276, 0.5224797129631042, -0.058419037610292435, -0.21861541271209717, 0.07508949935436249, 0.2099728286266327, 0.051512300968170166, -0.002999052405357361, -0.12153413891792297, 0.5358170866966248, 0.09558036923408508, -0.1547906994819641, 0.08245867490768433, 0.20315787196159363, -0.04030539467930794, 0.0380425751209259, -0.020088955760002136, -0.4734795093536377, 0.42276376485824585, -0.12494893372058868, -0.20192348957061768, 0.04584446921944618, 0.09440931677818298, 0.28258275985717773, -0.19846412539482117, -0.5064722299575806, 0.1899573802947998, 0.22147811949253082, 0.05484265089035034, 0.04975546896457672, 0.3494919538497925, -0.1279301941394806, 0.03900716453790665, -0.07181129604578018, 0.4237109422683716, 0.2931394875049591, -0.1638946533203125, -0.036173515021800995, -0.24570348858833313 ]
https://github.com/huggingface/datasets/issues/1949
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 !
Enable Fast Filtering using Arrow Dataset
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 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 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 !
[ -0.060965437442064285, -0.2426416426897049, -0.17645573616027832, -0.05401565507054329, 0.03825158625841141, -0.23882737755775452, -0.10741263628005981, 0.20392486453056335, 0.22310425341129303, -0.1845400631427765, -0.28573060035705566, 0.4401741623878479, -0.1111106425523758, 0.3817574977874756, 0.0005039423704147339, -0.22477984428405762, -0.1491405963897705, -0.10109296441078186, -0.16093304753303528, -0.02107902616262436, 0.2228643149137497, -0.031853239983320236, -0.1598430871963501, 0.011577874422073364, 0.099167600274086, -0.09085990488529205, 0.4640899896621704, -0.06035161763429642, -0.3861953914165497, -0.42571932077407837, 0.21595269441604614, 0.4622389078140259, -0.27724820375442505, 0.3484134078025818, -0.00011592390364967287, -0.10355812311172485, 0.3350032567977905, 0.06984880566596985, -0.1678132712841034, 0.14561446011066437, -0.27930712699890137, -0.4648910462856293, 0.34608519077301025, 0.09317383170127869, -0.24017226696014404, -0.3023803234100342, -0.4887274503707886, -0.5661332011222839, 0.42178961634635925, 0.17957213521003723, 0.1517729014158249, 0.1879252791404724, 0.17590242624282837, 0.05752234160900116, 0.16895917057991028, 0.3293294608592987, -0.24424868822097778, -0.0968683734536171, 0.7156171798706055, -0.11073087900876999, -0.07079747319221497, 0.41403964161872864, -0.060840852558612823, -0.16025908291339874, 0.3494179844856262, -0.2657899558544159, -0.11161263287067413, -0.5176677703857422, 0.24718570709228516, 0.3313285708427429, 0.4620247781276703, -0.1396791785955429, -0.38913312554359436, -0.2872939109802246, -0.2797900140285492, -0.13002949953079224, 0.02100369893014431, -0.04881492257118225, -0.1954258382320404, 0.1936590075492859, -0.16362425684928894, -0.2893838584423065, -0.3083903193473816, 0.022701017558574677, 0.23935946822166443, 0.26341789960861206, -0.26761025190353394, -0.03764713183045387, 0.2280460000038147, -0.3477036952972412, 0.023902378976345062, -0.18904872238636017, 0.09983514249324799, 0.3675713539123535, -0.22761906683444977, -0.07719902694225311, 0.16861489415168762, 0.46706727147102356, 0.30326417088508606, 0.19065064191818237, -0.1145787388086319, 0.37458154559135437, 0.06165427714586258, 0.011990314349532127, -0.0012416113168001175, 0.047506701201200485, -0.0682886466383934, 0.2453010380268097, 0.2181311696767807, -0.0863913893699646, -0.09938707947731018, 0.06047812104225159, 0.0828244537115097, -0.2747679352760315, -0.1462857723236084, -0.32151737809181213, -0.054243054240942, -0.47085219621658325, -0.0017118006944656372, -0.16676145792007446, -0.08136627823114395, -0.26734933257102966, 0.47375062108039856, 0.219733327627182, -0.11953935772180557, -0.05707328021526337, -0.2483893632888794, -0.10110354423522949, -0.17689266800880432, -0.0029421821236610413, 0.002706281840801239, -0.12553034722805023, -0.13104704022407532, -0.13740500807762146, 0.14855492115020752, -0.19489845633506775, -0.09963002055883408, 0.017674393951892853, -0.0331115797162056, 0.20600074529647827, 0.2575749158859253, 0.09093520045280457, 0.3814997673034668, 0.3757706582546234, -0.40137338638305664, -0.024761952459812164, 0.17754420638084412, 0.04006943106651306, -0.2153908759355545, -0.0036568976938724518, -0.21714097261428833, -0.5327579379081726, 0.003288019448518753, 0.09527420997619629, -0.21790564060211182, -0.13839957118034363, -0.17291080951690674, 0.6192805767059326, -0.21322937309741974, -0.0004943311214447021, 0.12610256671905518, 0.030385270714759827, -0.07469800114631653, -0.2937881350517273, 0.3139738440513611, 0.2567203938961029, -0.4902039170265198, -0.06085936352610588, -0.2886767089366913, -0.13479824364185333, 0.20838283002376556, 0.16209158301353455, -0.4143379330635071, -0.21320150792598724, 0.1621503233909607, -0.02546878159046173, 0.5568779706954956, -0.12114410847425461, -0.3929442763328552, 0.014311529695987701, -0.06481949985027313, 0.30865445733070374, 0.09950555115938187, 0.006143234670162201, 0.20013900101184845, -0.15307971835136414, 0.004877127707004547, 0.6350789070129395, -0.16574984788894653, -0.14844322204589844, -0.33045053482055664, -0.09369984269142151, 0.030059363692998886, 0.04498159885406494, -0.09544568508863449, -0.05105336382985115, 0.17063571512699127, -0.5012770891189575, 0.13602401316165924, 0.0712878480553627, 0.17591427266597748, -0.012835746631026268, 0.4707922339439392, 0.27332842350006104, 0.36180615425109863, 0.21726249158382416, -0.20606575906276703, 0.23443633317947388, 0.030113451182842255, -0.12152475118637085, -0.43914204835891724, -0.05719505995512009, -0.09989816695451736, 0.19224470853805542, -0.12858378887176514, -0.027591241523623466, 0.07850572466850281, -0.2916639447212219, 0.26784414052963257, -0.12587547302246094, -0.364238977432251, 0.2730606198310852, -0.12304811179637909, 0.07223398983478546, -0.15360157191753387, 0.09549298882484436, 0.23702889680862427, 0.15545117855072021, -0.010255895555019379, -0.09004213660955429, -0.03045835718512535, -0.10763314366340637, -0.10021606087684631, 0.006186455488204956, 0.13528308272361755, 0.24693891406059265, 0.4057644009590149, 0.5706697702407837, 0.12495606392621994, -0.45675039291381836, 0.41298797726631165, 0.08315214514732361, 0.166470006108284, 0.07931024581193924, -0.2738560736179352, 0.7109123468399048, -0.49604564905166626, 0.16535097360610962, 0.10608958452939987, 0.04116763174533844, 0.05848570168018341, 0.10999700427055359, -0.35932669043540955, 0.12872445583343506, 0.29988572001457214, -0.3171956539154053, 0.29169780015945435, -0.06382139772176743, -0.18377336859703064, 0.4710710644721985, -0.1567673534154892, 0.1237305998802185, -0.24502190947532654, 0.3046880066394806, 0.00024449266493320465, -0.15716858208179474, 0.006096113473176956, 0.3676767945289612, 0.04760384187102318, 0.31041717529296875, 0.07437141239643097, -0.19660262763500214, 0.16427534818649292, 0.020441625267267227, 0.3753751516342163, 0.09744761884212494, 0.3182750642299652, -0.07779395580291748, 0.25523659586906433, -0.005644509568810463, -0.24193453788757324, -0.32303014397621155, -0.16487644612789154, 0.13710558414459229, -0.14295215904712677, -0.04919121414422989, 0.10004691034555435, -0.3030158579349518, 0.07994693517684937, -0.47134068608283997, -0.080558642745018, -0.07916456460952759, 0.16309191286563873, -0.1481858491897583, -0.05907022953033447, 0.18472698330879211, -0.3384581208229065, 0.29403698444366455, -0.011671774089336395, -0.2430039495229721, -0.3440416753292084, -0.19075562059879303, 0.1860199123620987, 0.0658499076962471, 0.08439509570598602, 0.2708718180656433, 0.34369030594825745, 0.3919390141963959, 0.08910693228244781, -0.11091622710227966, -0.6208747625350952, 0.03765063360333443, -0.024423513561487198, 0.329495906829834, -0.05508894845843315, 0.17031560838222504, 0.09025035798549652, 0.02198055014014244, 0.22079743444919586, -0.18309178948402405, -0.0867152288556099, -0.20489178597927094, -0.2004709541797638, 0.17662344872951508, 0.15492340922355652, 0.047906793653964996, -0.40602606534957886, -0.3476780354976654, 0.2588636577129364, 0.021684274077415466, 0.11051156371831894, 0.14684361219406128, 0.10312794148921967, 0.11009660363197327, -0.30707457661628723, 0.2067844569683075, 0.07030017673969269, -0.07321495562791824, 0.2750939726829529, -0.14576664566993713, -0.2073546051979065, -0.16159577667713165, -0.23630796372890472, -0.098255954682827, 0.31429141759872437, -0.1593431979417801, 0.01027747243642807, -0.44955089688301086, 0.283490389585495, 0.08643411099910736, 0.027123255655169487, 0.33458152413368225, 0.08461275696754456, 0.009795181453227997, -0.2262040227651596, -0.23263563215732574, 0.015463966876268387, -0.15630657970905304, 0.14000016450881958, 0.34744584560394287, 0.3566597104072571, -0.02280522882938385, 0.7490890026092529, 0.27290913462638855, 0.31027844548225403, -0.021660860627889633, 0.2651238739490509, -0.010462034493684769, -0.004716657102108002, -0.38977909088134766, -0.20765775442123413, -0.18320515751838684, 0.07132355868816376, 0.06472279131412506, 0.47081658244132996, -0.29960906505584717, -0.25817593932151794, -0.12890669703483582, -0.2300778329372406, -0.12616558372974396, 0.1658201366662979, -0.08192586153745651, 0.22986027598381042, 0.021534711122512817, -0.24813443422317505, -0.3278767466545105, 0.021204844117164612, 0.09398932754993439, 0.1197003573179245, 0.36943042278289795, -0.11559246480464935, -0.3070031404495239, -0.011032633483409882, -0.4549892842769623, 0.37403982877731323, 0.01632925495505333, -0.0884348675608635, -0.07656360417604446, -0.1763865053653717, 0.17650413513183594, 0.0622376911342144, 0.4188167154788971, -0.1716434806585312, -0.20192475616931915, 0.008413873612880707, -0.21023839712142944, -0.347647488117218, 0.3733869791030884, -0.14675818383693695, 0.1551925092935562, -0.16362057626247406, 0.1940007507801056, -0.23166202008724213, -0.43525996804237366, 0.015354324132204056, 0.002566862851381302, 0.15510055422782898, 0.13517937064170837, 0.15717029571533203, -0.21651674807071686, -0.09740253537893295, 0.2244463562965393, -0.05692427232861519, -0.11574209481477737, -0.019044116139411926, 0.1077827736735344, 0.07157296687364578, 0.2140098214149475, -0.032881829887628555, 0.03057057410478592, 0.11675494909286499, 0.13748019933700562, 0.1845523864030838, 0.29869335889816284, 0.011475605890154839, -0.08316642045974731, 0.49864062666893005, 0.018176089972257614, -0.19700227677822113, -0.40659308433532715, 0.37676694989204407, 0.40933459997177124, 0.6419482827186584, 0.008380360901355743, 0.46726834774017334, 0.1627708375453949, 0.12523944675922394, 0.09516949951648712, -0.25142520666122437, 0.030358001589775085, 0.17898423969745636, -0.47328102588653564, -0.48954010009765625, 0.5944274663925171, 0.07975608110427856, -0.2069954127073288, 0.6742953062057495, 0.4888075888156891, -0.021363966166973114, 0.27315080165863037, 0.03178149461746216, 0.938129186630249, 0.13535046577453613, -0.2550574839115143, -0.05517183989286423, -0.4572877883911133, 0.22766327857971191, 0.19072604179382324, 0.06772694736719131, -0.12808069586753845, -0.02809780463576317, 0.09042894095182419, -0.16355428099632263, 0.26748207211494446, -0.062495969235897064, -0.13926705718040466, -0.13247819244861603, -0.01488516479730606, -0.36276760697364807, -0.11406481266021729, 0.14138811826705933, 0.14970016479492188, -0.3225054144859314, -0.45965397357940674, 0.13754072785377502, 0.02972002886235714, 0.2756154537200928, 0.12429670244455338, -0.336001992225647, -0.1396520733833313, 0.01166495680809021, -0.1610211580991745, -0.2538188099861145, -0.4586699604988098, 0.09000901877880096, 0.34692344069480896, -0.6894711852073669, 0.454146146774292, -0.21895261108875275, -0.02760792151093483, 0.024076981469988823, -0.26725059747695923, 0.31910440325737, 0.30878859758377075, 0.09234165400266647, 0.10269913077354431, -0.04482724145054817, 0.4351014196872711, -0.10172304511070251, -0.1091320589184761, -0.10323548316955566, -0.24624261260032654, -0.3320294916629791, -0.12454765290021896, -0.118308424949646, 0.44988545775413513, 0.040554869920015335, -0.1221790611743927, 0.18630298972129822, -0.23235729336738586, -0.07503212243318558, 0.14509131014347076, 0.2975465953350067, -0.13780294358730316, 0.3352736234664917, 0.21505267918109894, -0.018379777669906616, -0.08832931518554688, 0.1541644036769867, 0.01194254495203495, -0.2380981296300888, 0.19570405781269073, 0.4382343888282776, -0.36942726373672485, -0.07262668758630753, -0.04237644374370575, 0.41377243399620056, -0.38214311003685, 0.09193848818540573, 0.062323980033397675, 0.00007744133472442627, 0.33338212966918945, 0.27973058819770813, 0.04471650347113609, -0.11879004538059235, -0.20678120851516724, -0.2249268889427185, -0.23543024063110352, 0.22000527381896973, -0.24160605669021606, -0.0036622304469347, -0.6351544857025146, -0.3681568503379822, 0.12319807708263397, 0.273061066865921, -0.3414291739463806, 0.14667826890945435, 0.1788661926984787, 0.0029468536376953125, 0.10625564306974411, 0.12061694264411926, 0.25023043155670166, 0.08756902813911438, 0.05587621033191681, -0.16118007898330688, -0.4421407878398895, -0.1634097695350647, 0.04201330989599228, 0.15470561385154724, -0.22739103436470032, -0.3869338035583496, 0.12764379382133484, -0.2015356570482254, -0.4394991993904114, -0.024872388690710068, 0.011236928403377533, 0.10665285587310791, -0.008706077933311462, -0.41822999715805054, -0.14890480041503906, -0.3942817449569702, 0.10873591899871826, 0.11855792254209518, 0.18187572062015533, -0.05321125313639641, 0.25195667147636414, 0.07255688309669495, -0.09790941327810287, -0.2889055609703064, 0.06837888807058334, 0.2930142879486084, 0.08313532173633575, -0.14909276366233826, 0.37407904863357544, -0.31482961773872375, -0.020863957703113556, 0.0578756108880043, 0.4791155755519867, 0.13156422972679138, 0.04957909137010574, 0.2891438901424408, 0.2545943856239319, 0.15107619762420654, -0.29199206829071045, -0.06892280280590057, 0.22965945303440094, 0.056088630110025406, 0.1602948009967804, 0.09914273023605347, 0.155076265335083, 0.35702186822891235, 0.15565800666809082, 0.17967449128627777, 0.17280617356300354, -0.18251585960388184, 0.03437860310077667, 0.07581627368927002, 0.2442069947719574, -0.2312830090522766, 0.5170530080795288, 0.45991596579551697, 0.1527627557516098, 0.21123167872428894, 0.007761429995298386, 0.3438529372215271, 0.1532793641090393, 0.3685178756713867, -0.057391755282878876, -0.32483160495758057, 0.10440987348556519, 0.18205279111862183, -0.36715203523635864, 0.11095166206359863, 0.07195058465003967, 0.4479801058769226, 0.21058645844459534, -0.09668711572885513, 0.17769713699817657, 0.22941966354846954, 0.18426990509033203, -0.19847533106803894, 0.26828888058662415, -0.45543909072875977, -0.05679550766944885, -0.07008440047502518, -0.12462562322616577, 0.17927178740501404, 0.5062455534934998, -0.033642303198575974, 0.49239277839660645, -0.37712565064430237, 0.017750805243849754, 0.13470453023910522, 0.5880486369132996, 0.005455344915390015, 0.13433818519115448, -0.07563997805118561, -0.03956395387649536, 0.004060295410454273, 0.19123147428035736, 0.23963697254657745, 0.08824984729290009, -0.22153152525424957, 0.12171849608421326, -0.12782388925552368, -0.34071552753448486, 0.07590001076459885, 0.5048357844352722, 0.3018207252025604, -0.3505643308162689, 0.00603889673948288, 0.043285876512527466, -0.1411367803812027, -0.0027775398921221495, -0.1935838907957077, -0.018446993082761765, -0.01771591603755951, -0.07761391997337341, 0.07548394799232483, -0.13060152530670166, -0.47758424282073975, -0.14755353331565857, -0.12694114446640015, -0.27141907811164856, 0.2402142882347107, -0.20496314764022827, -0.11749620735645294, -0.022643622010946274, 0.07118551433086395, -0.004664178937673569, 0.5002955198287964, 0.2632889747619629, 0.38489192724227905, -0.08442789316177368, -0.3183431625366211, -0.22902196645736694, -0.315965473651886, -0.11552145332098007, 0.14337478578090668, 0.23993130028247833, 0.09606984257698059, 0.30706077814102173, 0.42698055505752563, 0.16422414779663086, -0.30780428647994995, 0.2154695689678192, 0.13452333211898804, -0.22972387075424194, 0.2803109288215637, 0.21079838275909424, 0.36050713062286377, -0.13375496864318848, 0.013904154300689697, 0.0631633996963501, -0.34347864985466003, 0.041712284088134766, -0.1177063062787056, 0.12522751092910767, 0.2732967436313629, 0.04240729659795761, 0.03959166258573532, 0.1712902933359146, 0.26892977952957153, 0.13549047708511353, -0.0002492368221282959, -0.24208000302314758, -0.18903397023677826, -0.07567353546619415, 0.1631835401058197, 0.17347285151481628, 0.3652729094028473, 0.08114293962717056, -0.4510498642921448, -0.039122074842453, -0.06694032996892929, -0.2234858274459839, -0.07102380692958832, 0.019272170960903168, -0.020331453531980515, 0.04774117469787598, 0.06423866748809814, -0.20725734531879425, 0.24403785169124603, 0.17397859692573547, 0.011301890015602112, -0.4065943956375122, -0.2832547128200531, 0.6696616411209106, -0.419806569814682, -0.21905308961868286, -0.12577742338180542, 0.06565437465906143, 0.3203109800815582, -0.13620057702064514, -0.24783480167388916, -0.12764587998390198, 0.004893586039543152, -0.29412025213241577, -0.09211110323667526, 0.331637978553772, 0.09296368062496185, 0.07616475224494934, -0.07245475798845291, 0.14147046208381653, 0.1727239191532135, 0.2042234241962433, -0.40603744983673096, 0.015545167028903961 ]
https://github.com/huggingface/datasets/issues/1949
Sure! I don't mind waiting. I'll check the refactor and try to understand what you're trying to do :)
Enable Fast Filtering using Arrow Dataset
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 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 Sure! I don't mind waiting. I'll check the refactor and try to understand what you're trying to do :)
[ -0.14752593636512756, -0.08898866176605225, -0.2098284214735031, -0.09189742803573608, 0.062438592314720154, -0.23314449191093445, -0.04701155051589012, 0.25649842619895935, 0.14091703295707703, -0.16528522968292236, -0.2117002308368683, 0.5572014451026917, -0.1610824465751648, 0.23407739400863647, -0.0721701979637146, -0.11153535544872284, -0.16302557289600372, -0.03340372070670128, -0.1529833972454071, -0.05704052746295929, 0.16058625280857086, -0.09267742186784744, -0.1693582534790039, -0.056953128427267075, 0.06413450837135315, -0.08233458548784256, 0.4899255037307739, -0.12235159426927567, -0.3783579468727112, -0.5257976651191711, 0.18048769235610962, 0.4125716984272003, -0.24240803718566895, 0.28198179602622986, -0.00011221013846807182, -0.0977284386754036, 0.375669002532959, 0.04600182920694351, -0.16331839561462402, 0.20180454850196838, -0.3833833932876587, -0.5163575410842896, 0.3023420572280884, -0.040229082107543945, -0.21402323246002197, -0.3167763352394104, -0.4475966691970825, -0.6233635544776917, 0.33330774307250977, 0.2781323790550232, 0.19776901602745056, 0.07796472311019897, 0.12961195409297943, 0.03435567021369934, 0.2299923598766327, 0.170278400182724, -0.2757144272327423, -0.16113047301769257, 0.6908953189849854, -0.13480186462402344, -0.11312912404537201, 0.4136621952056885, -0.05341862887144089, -0.1600669026374817, 0.26123806834220886, -0.3271077871322632, 0.09701120853424072, -0.5140103697776794, 0.27218878269195557, 0.24406710267066956, 0.5241882801055908, -0.06864528357982635, -0.250368595123291, -0.11549873650074005, -0.2959459722042084, -0.05412926524877548, -0.06654448807239532, -0.05930742621421814, -0.15230339765548706, 0.19537901878356934, -0.14100265502929688, -0.310604453086853, -0.3834902048110962, 0.04708661139011383, 0.19751302897930145, 0.3864697813987732, -0.11855736374855042, -0.07906652987003326, 0.13770300149917603, -0.3078044354915619, 0.243696391582489, -0.11394074559211731, 0.007782402448356152, 0.3805399537086487, -0.20300781726837158, -0.06273903697729111, 0.15590764582157135, 0.4094281792640686, 0.2585115432739258, 0.1290135681629181, -0.05375473573803902, 0.35999464988708496, 0.12094159424304962, 0.032454684376716614, -0.03650035336613655, 0.007736150175333023, -0.04557875543832779, 0.43219998478889465, 0.15057985484600067, -0.20714595913887024, -0.20907986164093018, 0.03769812360405922, 0.015788212418556213, -0.23574402928352356, -0.010546833276748657, -0.241712287068367, -0.0886402353644371, -0.4509323537349701, -0.029253806918859482, -0.1328238844871521, -0.1488553136587143, -0.2649077773094177, 0.3727763295173645, 0.24615976214408875, -0.09084749221801758, -0.042248085141181946, -0.27769818902015686, -0.13132846355438232, -0.20577584207057953, 0.06125510111451149, 0.01597391441464424, -0.1020885705947876, -0.153493732213974, -0.29027119278907776, 0.1802893728017807, -0.015766125172376633, -0.10327249020338058, -0.01908208802342415, -0.07435097545385361, 0.21518602967262268, 0.3460688591003418, 0.09925144910812378, 0.411331444978714, 0.35388320684432983, -0.4210657775402069, -0.018423214554786682, 0.1159558817744255, 0.06546463072299957, -0.2028469294309616, 0.11397844552993774, -0.23409396409988403, -0.5071295499801636, -0.012211855500936508, 0.15307919681072235, -0.16673247516155243, -0.16940461099147797, 0.06892232596874237, 0.5219022035598755, -0.14845393598079681, -0.053949985653162, 0.130165234208107, -0.04997875913977623, -0.01698257029056549, -0.3549629747867584, 0.19769248366355896, 0.16161713004112244, -0.5772004127502441, 0.05716381222009659, -0.39055854082107544, -0.037661999464035034, 0.2938014268875122, 0.10096365213394165, -0.40941470861434937, -0.2548655867576599, 0.14475040137767792, -0.08539971709251404, 0.6621944904327393, -0.1478879153728485, -0.5032473802566528, 0.021240051835775375, -0.11668277531862259, 0.23628094792366028, 0.13952188193798065, 0.07081712782382965, 0.2376328408718109, -0.14598533511161804, 0.01060696505010128, 0.5886853933334351, -0.1571553498506546, -0.13588067889213562, -0.38514822721481323, -0.03302151337265968, 0.09292245656251907, 0.014723829925060272, -0.01229154784232378, -0.048902034759521484, 0.22047969698905945, -0.38536179065704346, 0.19800826907157898, 0.07579304277896881, 0.16815313696861267, -0.046123526990413666, 0.5657214522361755, 0.14067710936069489, 0.39822542667388916, 0.2781226336956024, -0.08130472153425217, 0.24658280611038208, -0.05646134167909622, -0.10054624825716019, -0.37658968567848206, -0.006068110466003418, -0.10806916654109955, 0.17236310243606567, -0.11784151941537857, -0.0534227229654789, 0.14563408493995667, -0.2586219608783722, 0.1876114308834076, -0.11193285137414932, -0.2767268419265747, 0.18642379343509674, -0.14016762375831604, -0.02210475690662861, 0.07772859185934067, 0.04737940430641174, 0.15096138417720795, 0.1477295160293579, -0.03628864511847496, -0.20326346158981323, -0.03351493552327156, -0.09794124960899353, -0.1415889710187912, -0.04829232394695282, 0.1992948055267334, 0.20767046511173248, 0.3779621422290802, 0.5796352624893188, 0.0671273022890091, -0.45984309911727905, 0.4000546336174011, 0.1309714913368225, 0.12281692028045654, 0.0600435733795166, -0.2230878621339798, 0.648654043674469, -0.4913370907306671, 0.13018977642059326, 0.07430340349674225, 0.05713075399398804, 0.12090298533439636, 0.091638945043087, -0.3350031077861786, 0.10611516237258911, 0.23227381706237793, -0.27540281414985657, 0.27043408155441284, -0.046650808304548264, -0.10533033311367035, 0.4582204520702362, -0.1308727264404297, 0.21244379878044128, -0.20186929404735565, 0.21820378303527832, 0.03848472237586975, -0.13730010390281677, 0.049714140594005585, 0.4776945412158966, 0.05521908402442932, 0.32422441244125366, 0.1072232574224472, -0.23514099419116974, 0.07798807322978973, 0.03179619833827019, 0.4003835916519165, 0.033239006996154785, 0.3895939886569977, -0.022608716040849686, 0.25869202613830566, -0.07549106329679489, -0.19841882586479187, -0.3335966467857361, -0.09436091780662537, 0.1433904618024826, -0.09764771163463593, -0.10844343900680542, 0.12436071783304214, -0.2786761224269867, 0.08964194357395172, -0.4824870228767395, 0.06090735271573067, -0.11824744939804077, 0.1991487443447113, -0.27004435658454895, -0.025898192077875137, 0.2583578824996948, -0.4764936864376068, 0.22154338657855988, 0.06987699866294861, -0.22588922083377838, -0.2692488431930542, -0.23292487859725952, 0.1807035356760025, 0.11880229413509369, 0.009691894054412842, 0.2544654309749603, 0.3076717257499695, 0.4234212040901184, 0.1855798065662384, -0.06078694388270378, -0.5851412415504456, 0.017872687429189682, 0.057448066771030426, 0.24715299904346466, -0.10050049424171448, 0.09844629466533661, 0.06655056774616241, 0.0384894423186779, 0.19486162066459656, -0.17762914299964905, 0.0035020112991333008, -0.21517221629619598, -0.17990630865097046, 0.1618777960538864, 0.18149122595787048, -0.007470767945051193, -0.4025435447692871, -0.38489365577697754, 0.08398210257291794, 0.09535983204841614, 0.1507592499256134, 0.08645759522914886, 0.15757480263710022, 0.04981718957424164, -0.21996921300888062, 0.15545617043972015, 0.10198807716369629, 0.0315355509519577, 0.37059181928634644, -0.1950344741344452, -0.1830601990222931, -0.16387736797332764, -0.2358260154724121, -0.030139435082674026, 0.38966917991638184, -0.11736784875392914, 0.13257378339767456, -0.3845602869987488, 0.2650754451751709, 0.039227865636348724, -0.042985692620277405, 0.2871624529361725, 0.1398596167564392, -0.03580206632614136, -0.2890632450580597, -0.07785232365131378, 0.046831581741571426, -0.17451074719429016, 0.1589367836713791, 0.2671409249305725, 0.25156328082084656, -0.01352287083864212, 0.678164005279541, 0.23854464292526245, 0.3053131103515625, -0.027805697172880173, 0.23827868700027466, -0.08040386438369751, 0.005087852478027344, -0.36368995904922485, -0.2951537072658539, -0.15041667222976685, -0.05156085640192032, 0.03145965188741684, 0.39229127764701843, -0.5023051500320435, -0.253408282995224, -0.1076095700263977, -0.17409932613372803, -0.09398046135902405, 0.21850498020648956, -0.2374889850616455, 0.2750198543071747, 0.017765648663043976, -0.1958894431591034, -0.33128106594085693, 0.053434327244758606, 0.08936741948127747, -0.023731917142868042, 0.3159022927284241, -0.1551205962896347, -0.24721050262451172, -0.02247697487473488, -0.37847447395324707, 0.31829336285591125, -0.007368780672550201, -0.013121981173753738, -0.01672293245792389, -0.17597588896751404, 0.1313331127166748, 0.06827525049448013, 0.3394868075847626, -0.2564072608947754, -0.12993481755256653, 0.0996435284614563, -0.06546112895011902, -0.26347610354423523, 0.3052336871623993, -0.17200087010860443, 0.22458724677562714, -0.17203249037265778, 0.12673348188400269, -0.06897304207086563, -0.249893456697464, -0.01837337203323841, -0.06658325344324112, 0.11116756498813629, 0.10378007590770721, 0.22442315518856049, -0.1516263484954834, -0.07315891236066818, 0.20712515711784363, -0.05556129664182663, -0.12213411182165146, -0.020314805209636688, 0.057015955448150635, 0.05575787276029587, 0.20129963755607605, -0.06992091238498688, -0.002200361341238022, 0.12361165136098862, 0.09784664213657379, 0.15590809285640717, 0.18420355021953583, 0.0010707397013902664, -0.05710262060165405, 0.4396475851535797, -0.018719928339123726, -0.09308701008558273, -0.4215843677520752, 0.30520227551460266, 0.4174787104129791, 0.5442764759063721, 0.004980891942977905, 0.3545249402523041, 0.05230456590652466, 0.04450274631381035, 0.20790816843509674, -0.27359476685523987, 0.02003958821296692, 0.08169915527105331, -0.47999149560928345, -0.5529646277427673, 0.5566238760948181, 0.0445525199174881, -0.22316551208496094, 0.6911585330963135, 0.27645033597946167, -0.07426668703556061, 0.31618353724479675, 0.10925602167844772, 0.8662744760513306, 0.17565341293811798, -0.31623488664627075, -0.18965674936771393, -0.4516647458076477, 0.1645270437002182, 0.16493858397006989, 0.09664243459701538, -0.15550397336483002, -0.019743116572499275, 0.1007920429110527, -0.15752962231636047, 0.23834754526615143, 0.07579575479030609, -0.1866055130958557, -0.16352899372577667, -0.06922626495361328, -0.40895676612854004, -0.10138791054487228, 0.15640044212341309, 0.1919609010219574, -0.23695214092731476, -0.33749425411224365, 0.1550123691558838, 0.03767336905002594, 0.19410043954849243, 0.10980647057294846, -0.2859630584716797, -0.18543344736099243, 0.03390294313430786, -0.1372964233160019, -0.209849014878273, -0.42183738946914673, 0.20174238085746765, 0.17675849795341492, -0.6858206987380981, 0.40327510237693787, -0.2590157985687256, -0.17606808245182037, 0.06607381999492645, -0.26338502764701843, 0.3766177296638489, 0.45087024569511414, 0.0541924312710762, 0.15257780253887177, -0.04315803200006485, 0.36893677711486816, -0.11309882253408432, -0.1333816647529602, -0.09699281305074692, -0.34046778082847595, -0.337899774312973, -0.20133371651172638, -0.0738954246044159, 0.5246478319168091, 0.10631439089775085, -0.12581658363342285, 0.1729200929403305, -0.31837713718414307, -0.043561384081840515, 0.202471062541008, 0.27920210361480713, -0.10812702029943466, 0.4356886148452759, 0.2355087399482727, -0.02340582013130188, -0.07765514403581619, 0.14198137819766998, 0.11909205466508865, -0.17500609159469604, 0.18729375302791595, 0.3225570321083069, -0.3461343050003052, -0.11633622646331787, -0.004614181816577911, 0.32997751235961914, -0.2947356104850769, 0.0382048562169075, 0.010705295950174332, 0.03734144568443298, 0.3760465979576111, 0.2310846745967865, 0.08446663618087769, -0.019548021256923676, -0.3427930474281311, -0.19939696788787842, -0.28027185797691345, 0.13338536024093628, -0.22880305349826813, 0.017955772578716278, -0.6987083554267883, -0.39381295442581177, 0.12507891654968262, 0.2507767677307129, -0.3786206841468811, 0.1363944113254547, 0.18505258858203888, 0.06632763147354126, -0.012742657214403152, 0.12309151887893677, 0.12471649050712585, 0.15199856460094452, 0.10753968358039856, -0.1399764120578766, -0.36956921219825745, -0.19274045526981354, 0.12101898342370987, 0.14532646536827087, -0.19193024933338165, -0.3453674912452698, 0.0982166975736618, -0.2254563868045807, -0.46304813027381897, 0.06460024416446686, -0.11461497843265533, 0.0931692123413086, -0.08222166448831558, -0.3298390805721283, -0.17615258693695068, -0.4999932646751404, 0.114010289311409, 0.1175864189863205, 0.11435043066740036, -0.08847136795520782, 0.25747355818748474, 0.15938933193683624, -0.001237720251083374, -0.2922888994216919, 0.06251360476016998, 0.22083131968975067, -0.03972029685974121, -0.03188048303127289, 0.42715638875961304, -0.2684903144836426, 0.07350943982601166, 0.01198326051235199, 0.4289994537830353, 0.09976539015769958, -0.01496916450560093, 0.213655486702919, 0.23702241480350494, 0.21676196157932281, -0.28807106614112854, -0.1528850942850113, 0.21421831846237183, -0.014133654534816742, 0.17831489443778992, 0.09579592943191528, 0.16971033811569214, 0.2545417249202728, 0.1227245032787323, 0.1712328940629959, 0.14294078946113586, -0.26575058698654175, -0.009802069514989853, 0.20916670560836792, 0.1680658459663391, -0.25415340065956116, 0.45379728078842163, 0.36799171566963196, 0.16095204651355743, 0.3294350802898407, 0.08729170262813568, 0.41864240169525146, 0.295457661151886, 0.30998608469963074, -0.09882322698831558, -0.22408972680568695, 0.13486286997795105, 0.19339200854301453, -0.3778965175151825, 0.18933703005313873, 0.16090692579746246, 0.27722278237342834, 0.2905340790748596, 0.010082412511110306, 0.153879314661026, 0.11001719534397125, 0.1400521695613861, -0.1770976036787033, 0.2699902653694153, -0.46173256635665894, -0.04465779662132263, -0.08759773522615433, -0.1264297366142273, 0.3221152722835541, 0.4303366243839264, -0.04771197959780693, 0.4564765691757202, -0.2363162785768509, 0.14981593191623688, 0.0908820629119873, 0.5641852617263794, -0.1071922555565834, 0.0874125063419342, -0.10859730839729309, -0.04623687267303467, 0.00023114541545510292, 0.09868258982896805, 0.22506414353847504, 0.22646257281303406, -0.16155345737934113, 0.060765475034713745, -0.055297087877988815, -0.3745656907558441, -0.00881032645702362, 0.5079404711723328, 0.3447352945804596, -0.3521854281425476, 0.04004655033349991, 0.051124293357133865, -0.17201673984527588, 0.07840517163276672, -0.14195071160793304, -0.03022482804954052, 0.08697395026683807, -0.11167871952056885, 0.1773301362991333, -0.25695645809173584, -0.40467366576194763, -0.10242629796266556, -0.08185885101556778, -0.32881641387939453, 0.23116299510002136, -0.229225292801857, -0.08916535973548889, -0.0596248060464859, 0.09370236098766327, -0.07568207383155823, 0.5075567364692688, 0.1621737778186798, 0.366455078125, -0.058071285486221313, -0.37089431285858154, -0.20532657206058502, -0.1831037551164627, -0.24223685264587402, 0.17342853546142578, 0.2796367406845093, 0.15079855918884277, 0.2834039330482483, 0.41059988737106323, 0.22468169033527374, -0.2500523030757904, 0.12041947990655899, 0.28840065002441406, -0.22900952398777008, 0.2530551552772522, 0.24588926136493683, 0.38597655296325684, -0.1710740029811859, -0.04979284480214119, 0.08088640868663788, -0.32777857780456543, 0.13019481301307678, -0.1378733515739441, 0.034654244780540466, 0.4280060827732086, 0.11719819158315659, 0.16865791380405426, 0.11155862361192703, 0.31981489062309265, 0.13468194007873535, 0.05248092859983444, -0.26194635033607483, -0.21631918847560883, -0.021766871213912964, 0.1465342789888382, 0.2841082215309143, 0.33301958441734314, 0.10760783404111862, -0.41949090361595154, 0.011720467358827591, -0.11473724991083145, -0.32438454031944275, -0.0019167512655258179, 0.041120678186416626, -0.05163773149251938, 0.03586819767951965, 0.06997009366750717, -0.33063188195228577, 0.19535622000694275, 0.19897112250328064, -0.037824660539627075, -0.40848544239997864, -0.28062158823013306, 0.5808035135269165, -0.34404218196868896, -0.29825401306152344, -0.09368328750133514, 0.04274042695760727, 0.18096959590911865, -0.02742088958621025, -0.18481652438640594, -0.16655771434307098, 0.10743797570466995, -0.3471878170967102, -0.06203501671552658, 0.27253463864326477, 0.13910537958145142, 0.1319848895072937, -0.03504286706447601, 0.09188833832740784, 0.12543684244155884, 0.2822118401527405, -0.5548895597457886, -0.0043709054589271545 ]
https://github.com/huggingface/datasets/issues/1948
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.
dataset loading logger level
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 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. 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.
[ -0.1510903537273407, -0.36360716819763184, -0.017067182809114456, 0.3475189805030823, 0.40035152435302734, 0.4622993767261505, 0.4706435203552246, 0.14328472316265106, 0.25232356786727905, -0.004766695201396942, 0.02437867969274521, -0.016878560185432434, -0.24817007780075073, -0.19753310084342957, -0.36724185943603516, 0.194421648979187, -0.11710812151432037, -0.015378832817077637, -0.35186704993247986, -0.07572323083877563, -0.11711826920509338, 0.09068210422992706, -0.026626966893672943, 0.5081021785736084, -0.7216521501541138, -0.08369115740060806, 0.14005137979984283, 0.11884310096502304, 0.009919364005327225, -0.7821521759033203, 0.2707005441188812, -0.12800981104373932, 0.14961135387420654, 0.06408914178609848, -0.00012211497232783586, 0.20602917671203613, 0.6381808519363403, 0.05155469477176666, -0.4871641993522644, 0.029248565435409546, -0.4754452407360077, -0.4789412021636963, 0.25215208530426025, -0.104292131960392, -0.029728468507528305, -0.3696422278881073, 0.19222256541252136, -0.4077894687652588, 0.3286341428756714, 0.10217782855033875, 0.11399245262145996, 0.11369039118289948, -0.13955488801002502, 0.03268223628401756, 0.32325735688209534, 0.24589267373085022, 0.037366755306720734, 0.04795091971755028, -0.06448549032211304, 0.07008831948041916, -0.29776015877723694, 0.4409293830394745, -0.2956632673740387, 0.0528748519718647, 0.24016666412353516, -0.013478919863700867, 0.29893508553504944, -0.2302701324224472, 0.17107228934764862, 0.30267882347106934, 0.5181798934936523, -0.011202318593859673, 0.11310698091983795, -0.40323472023010254, -0.22678270936012268, -0.08019480854272842, 0.16736601293087006, 0.1750008761882782, 0.07175721228122711, 0.19279253482818604, -0.3779027760028839, 0.1259964555501938, 0.1591121256351471, -0.04511209577322006, 0.21880456805229187, 0.3621397018432617, -0.3730175197124481, 0.29358670115470886, 0.17117054760456085, -0.07916524261236191, 0.11436368525028229, -0.2527514398097992, -0.33055225014686584, 0.13762438297271729, -0.20997251570224762, 0.01383526623249054, -0.11737240850925446, 0.3929840326309204, -0.10361640900373459, 0.023690421134233475, 0.10741483420133591, -0.023576801642775536, 0.17982959747314453, 0.1378367841243744, 0.4080687165260315, 0.006589949131011963, 0.44696521759033203, 0.0536668635904789, -0.14916110038757324, -0.18659768998622894, 0.18634086847305298, -0.05389920622110367, 0.03642095997929573, -0.14015443623065948, 0.532808780670166, 0.13285547494888306, 0.11731761693954468, -0.1514059156179428, -0.08664068579673767, 0.032466400414705276, -0.10647545754909515, -0.2918033301830292, 0.012835755944252014, 0.18172889947891235, -0.04695594683289528, -0.04553845524787903, -0.12227387726306915, -0.0642842948436737, 0.057040683925151825, -0.17380794882774353, -0.08315680921077728, -0.3341277539730072, -0.3643178343772888, 0.11041755229234695, -0.024718865752220154, -0.20777393877506256, 0.329454243183136, 0.18764644861221313, -0.13659730553627014, 0.021015897393226624, 0.10928186774253845, -0.19647756218910217, 0.11478784680366516, 0.6276439428329468, -0.2282988429069519, 0.2196657359600067, 0.34400731325149536, 0.19593888521194458, -0.19973024725914001, 0.435393363237381, -0.41095417737960815, -0.46999168395996094, 0.018468866124749184, 0.08843205124139786, -0.13899242877960205, 0.04480975866317749, -0.30834969878196716, 0.1366654932498932, 0.3585320711135864, 0.12519527971744537, 0.24247659742832184, -0.10675523430109024, -0.32466554641723633, -0.15521833300590515, -0.19790911674499512, 0.5811362862586975, -0.1848367154598236, -0.30254900455474854, -0.3280838429927826, -0.4322117865085602, 0.2125726044178009, 0.12183395028114319, -0.21368993818759918, 0.2800590991973877, -0.3107714056968689, -0.09725359082221985, 0.308210551738739, -0.10507892817258835, 0.08229200541973114, 0.44698238372802734, -0.25029847025871277, 0.16800254583358765, 0.21252186596393585, 0.08360429108142853, -0.21567559242248535, -0.12242209166288376, 0.01358162984251976, -0.45363372564315796, 0.04069790244102478, -0.1546107828617096, -0.14736592769622803, -0.18950340151786804, 0.2960462272167206, 0.014489665627479553, -0.27103644609451294, -0.014096014201641083, 0.036744777113199234, -0.15546321868896484, 0.2397705316543579, 0.12712714076042175, 0.10408841818571091, 0.04312418773770332, -0.1647823452949524, 0.019825158640742302, -0.045083411037921906, 0.32804012298583984, -0.6091818809509277, 0.0961713045835495, 0.11653824150562286, -0.03059365600347519, 0.004508607089519501, -0.09093229472637177, -0.04900771751999855, -0.02732733264565468, -0.37920239567756653, -0.16405150294303894, -0.02219627983868122, 0.0016259681433439255, -0.059619709849357605, -0.08508620411157608, -0.07513397932052612, 0.22459140419960022, -0.5344881415367126, 0.08637133240699768, 0.005691144615411758, -0.1661025881767273, 0.011770747601985931, 0.3507806360721588, -0.2235100269317627, -0.10543467849493027, 0.1355484277009964, 0.07926808297634125, -0.15476886928081512, 0.21734336018562317, 0.10866714268922806, 0.2987658381462097, -0.04283551871776581, 0.3947451114654541, 0.03077581338584423, -0.1995360106229782, 0.4566539227962494, -0.19203081727027893, -0.19190478324890137, -0.11845797300338745, 0.14700967073440552, 0.1488824039697647, -0.029364343732595444, 0.24587494134902954, -0.3589742183685303, 0.0014749839901924133, 0.07247324287891388, 0.17635491490364075, -0.182746022939682, -0.5318390727043152, -0.05356026813387871, 0.1382284164428711, 0.22363285720348358, 0.3524543344974518, 0.03286151587963104, 0.061406977474689484, 0.5036967396736145, -0.022522415965795517, -0.03500240296125412, 0.17259478569030762, -0.1172599121928215, -0.12676192820072174, 0.2107434719800949, 0.09959931671619415, 0.4006415009498596, 0.14335758984088898, 0.09640374779701233, 0.21355554461479187, 0.03988323360681534, -0.02876051515340805, 0.2845730483531952, 0.0011580195277929306, 0.29194700717926025, 0.041264280676841736, -0.4688798189163208, -0.05349567532539368, -0.24643099308013916, 0.04263690859079361, -0.11076591908931732, -0.13385111093521118, -0.5484201312065125, -0.13524296879768372, -0.17941203713417053, -0.2473461925983429, -0.3247791528701782, -0.21801550686359406, -0.20573708415031433, -0.4174845516681671, 0.015990983694791794, -0.19676150381565094, -0.35590746998786926, 0.18646520376205444, -0.17965583503246307, 0.21858052909374237, 0.10874547064304352, 0.2702392637729645, -0.35940656065940857, -0.2073974758386612, -0.1868627369403839, 0.005662970244884491, -0.17537464201450348, -0.19876869022846222, 0.07206996530294418, -0.3009381592273712, 0.276123046875, -0.2969672679901123, -0.1735817790031433, 0.16288703680038452, -0.3161103129386902, -0.015854407101869583, 0.15415945649147034, 0.0007794685661792755, 0.034184232354164124, -0.13842442631721497, 0.0944356918334961, 0.12076711654663086, -0.06427892297506332, -0.3195791244506836, 0.16049537062644958, 0.1289813071489334, -0.15517261624336243, -0.21219833195209503, -0.3349228799343109, -0.15132036805152893, -0.17971491813659668, -0.3641606569290161, 0.18971627950668335, 0.3864743411540985, 0.002457261085510254, 0.12535402178764343, -0.2772359549999237, 0.2045513391494751, -0.3516034781932831, -0.6407561302185059, 0.0419360026717186, -0.09419836103916168, 0.044705525040626526, 0.023305386304855347, 0.11993800103664398, 0.16165831685066223, -0.07170726358890533, -0.8328555822372437, 0.08375710248947144, -0.11312299966812134, -0.24979300796985626, 0.21927568316459656, -0.031191078945994377, -0.08929696679115295, 0.29554882645606995, -0.004010934382677078, -0.015531107783317566, -0.29370126128196716, 0.03425435721874237, -0.4827653169631958, 0.23372237384319305, 0.0650283545255661, 0.49556371569633484, -0.12747688591480255, 0.66712486743927, 0.1786767840385437, -0.02755621448159218, 0.19708938896656036, 0.04708161950111389, 0.6038405299186707, -0.14998342096805573, -0.15485817193984985, -0.11122509837150574, 0.0743587538599968, -0.12592968344688416, -0.015710797160863876, -0.08414075523614883, 0.047663137316703796, 0.15049901604652405, 0.16547386348247528, 0.07865574955940247, -0.24259601533412933, 0.07335926592350006, -0.4269166588783264, -0.09125728905200958, -0.14465433359146118, 0.07399080693721771, 0.12816289067268372, -0.012372910976409912, 0.011063385754823685, 0.4801498055458069, 0.3755214512348175, 0.077374666929245, -0.2766479551792145, -0.15894028544425964, -0.16900336742401123, 0.11225516349077225, 0.09177426993846893, 0.0670727789402008, -0.388278067111969, -0.30648165941238403, -0.07212348282337189, 0.3549327254295349, 0.13718387484550476, -0.15701308846473694, 0.29493141174316406, 0.13180449604988098, -0.12168432772159576, -0.13472217321395874, -0.20342150330543518, 0.08792878687381744, 0.1541791558265686, 0.12763802707195282, 0.17175570130348206, -0.08386990427970886, -0.3960533142089844, 0.1100464016199112, -0.14198929071426392, -0.13921420276165009, -0.19154547154903412, -0.2848084270954132, 0.29925382137298584, -0.20380966365337372, -0.0032045505940914154, -0.04129678010940552, -0.13341790437698364, -0.4892788231372833, -0.12123076617717743, 0.17791660130023956, 0.29808127880096436, -0.07195831835269928, -0.10047395527362823, -0.01882985420525074, 0.33668363094329834, -0.093992680311203, 0.3638507127761841, 0.6472286581993103, 0.25554558634757996, 0.7740371227264404, 0.03637354075908661, -0.10403852164745331, -0.013920316472649574, -0.04849563166499138, 0.23075635731220245, 0.1523725837469101, -0.027460722252726555, 0.00007121637463569641, 0.3212536573410034, 0.344013512134552, -0.44214320182800293, 0.13374976813793182, 0.23138010501861572, 0.1668224036693573, -0.40833598375320435, -0.286803275346756, 0.511658251285553, 0.21427425742149353, -0.10439172387123108, 0.5442039966583252, 0.07111362367868423, -0.16159425675868988, -0.21875977516174316, 0.3741801679134369, 0.8942177295684814, -0.14716242253780365, 0.10027967393398285, -0.016028953716158867, -0.007123276591300964, 0.1717580407857895, 0.14405430853366852, -0.2678992748260498, 0.007318407297134399, 0.10291456431150436, -0.09251078218221664, -0.07077739387750626, 0.18815316259860992, 0.5290834307670593, -0.17879466712474823, 0.016060076653957367, -0.24337349832057953, 0.3730196952819824, 0.06178417056798935, -0.012121111154556274, -0.050251394510269165, -0.09360798448324203, -0.16601797938346863, 0.005270112305879593, 0.10450969636440277, 0.20410318672657013, -0.23948223888874054, 0.04600541293621063, 0.3798738718032837, -0.2689359784126282, -0.10608810186386108, -0.20111225545406342, -0.21681320667266846, 0.18504571914672852, -0.05727396532893181, -0.047017231583595276, 0.11913472414016724, 0.09375929832458496, -0.02343897894024849, 0.14460307359695435, 0.011946970596909523, -0.1187983974814415, 0.061576440930366516, 0.023820891976356506, -0.36431849002838135, 0.017900701612234116, 0.23255085945129395, -0.007284432649612427, -0.26463782787323, 0.20483732223510742, -0.38409268856048584, -0.5043622255325317, 0.022894397377967834, 0.07119306176900864, -0.19223874807357788, -0.20363572239875793, 0.05331273004412651, 0.16991597414016724, -0.23091506958007812, 0.2873205542564392, 0.029375804588198662, 0.15020479261875153, 0.19655285775661469, 0.0601564384996891, 0.2314128875732422, -0.6483148336410522, -0.18054534494876862, 0.2899327874183655, 0.07875124365091324, -0.07871543616056442, 0.4794628322124481, -0.21171608567237854, -0.07894960045814514, -0.13930155336856842, 0.06223294883966446, 0.36957818269729614, -0.02759528160095215, -0.11375707387924194, 0.34956976771354675, 0.03957340121269226, 0.11294963955879211, -0.025881510227918625, 0.2895485460758209, 0.21287989616394043, -0.2625928521156311, -0.3203585743904114, -0.626681387424469, 0.2629421055316925, -0.5137582421302795, 0.19107073545455933, -0.14088058471679688, -0.245164155960083, 0.3036811351776123, 0.10795452445745468, -0.19167302548885345, -0.09995649755001068, 0.05568965524435043, -0.007193371653556824, 0.1709098070859909, 0.1493299901485443, 0.33208420872688293, 0.27915480732917786, -0.0922304093837738, -0.32167133688926697, -0.44330209493637085, -0.0400056317448616, 0.1684953272342682, 0.2169547975063324, 0.009491126984357834, -0.07951755076646805, -0.2575773596763611, -0.12808065116405487, 0.10195266455411911, -0.07783975452184677, 0.390506386756897, 0.10491309314966202, -0.00959727168083191, 0.38178902864456177, -0.14263290166854858, -0.00867854617536068, -0.24568837881088257, -0.035754308104515076, 0.11091665923595428, 0.05501870810985565, -0.1513473242521286, -0.18014660477638245, -0.04910420998930931, -0.05397392064332962, 0.2511943578720093, 0.09992212057113647, 0.09720885753631592, -0.07859967648983002, 0.1991378217935562, 0.12781000137329102, 0.1732061505317688, 0.20663967728614807, 0.15527096390724182, 0.05591540038585663, 0.001971568912267685, -0.3858053684234619, -0.22157055139541626, 0.06467607617378235, 0.03560716658830643, 0.037821363657712936, -0.1296638697385788, 0.40166231989860535, 0.0059825703501701355, 0.0710972473025322, 0.1350279301404953, 0.10850133001804352, 0.550332248210907, 0.14010615646839142, 0.17034605145454407, -0.4319107234477997, 0.2125663012266159, 0.33128637075424194, -0.28092482686042786, 0.34736132621765137, 0.53546142578125, 0.13228821754455566, 0.2809293568134308, 0.08030704408884048, 0.23777545988559723, 0.5244956016540527, 0.32986631989479065, 0.06404830515384674, -0.1033366471529007, -0.5520820617675781, 0.10155830532312393, 0.6678974032402039, -0.5076915621757507, -0.15739256143569946, 0.11453229188919067, 0.01607845164835453, 0.13525009155273438, -0.13149650394916534, -0.16894474625587463, -0.14189399778842926, -0.15576966106891632, -0.06673407554626465, 0.09402598440647125, -0.01922067254781723, -0.05751855671405792, -0.03623858839273453, 0.10042296350002289, -0.043454915285110474, 0.24449200928211212, -0.3040907680988312, -0.2544708847999573, -0.027278341352939606, -0.03177168220281601, 0.27844226360321045, 0.11991426348686218, -0.23054024577140808, -0.08070274442434311, 0.15792116522789001, -0.021418415009975433, 0.4265594184398651, 0.5706607103347778, 0.5717048645019531, 0.6063530445098877, 0.1830431967973709, 0.12788578867912292, 0.01311187818646431, 0.05906781554222107, -0.007318239659070969, 0.6166630983352661, -0.004563130438327789, -0.5439006686210632, 0.27845299243927, 0.0439494363963604, 0.0041391849517822266, 0.35855594277381897, -0.21199153363704681, 0.3224884271621704, 0.1105729192495346, 0.1054096668958664, 0.06427011638879776, -0.05840980261564255, 0.13740642368793488, 0.08279713988304138, -0.2589647173881531, 0.07263688743114471, 0.9143498539924622, -0.13471806049346924, -0.005150392651557922, -0.3627817630767822, 0.02974073588848114, 0.07002557814121246, 0.7529671788215637, 0.6106796264648438, 0.0658990889787674, -0.3105236291885376, 0.028897151350975037, -0.5796040296554565, 0.08235333114862442, -0.014189887791872025, 0.3293287754058838, 0.19858424365520477, -0.21573057770729065, 0.11541621387004852, 0.3421984314918518, 0.22625304758548737, -0.306805819272995, -0.06983845680952072, -0.46820804476737976, -0.27011922001838684, -0.01698094792664051, 0.3454255759716034, 0.19136525690555573, -0.06660495698451996, -0.10963600128889084, 0.3333044648170471, -0.008853696286678314, -0.058481961488723755, -0.10184547305107117, 0.25465935468673706, 0.016831956803798676, 0.4844088554382324, 0.3636513650417328, 0.1958845853805542, 0.37260785698890686, 0.14364485442638397, 0.018105193972587585, -0.3456307649612427, -0.25102296471595764, 0.09016504883766174, 0.22327354550361633, 0.18798652291297913, 0.14586016535758972, -0.15427954494953156, -0.03820216283202171, -0.27585819363594055, 0.0652720183134079, 0.07069020718336105, 0.04286561161279678, 0.13854718208312988, -0.04373639449477196, -0.13417816162109375, -0.18135148286819458, -0.03783072531223297, 0.12091559171676636, 0.4951344430446625, 0.16491170227527618, -0.014204949140548706, -0.23019452393054962, 0.3458405137062073, -0.17770275473594666, 0.0022800564765930176, -0.020244330167770386, 0.17307999730110168, 0.10030867159366608, -0.22336556017398834, -0.8071296215057373, 0.08169195055961609, 0.4822101593017578, -0.2035747766494751, -0.17668843269348145, 0.025561261922121048, -0.060789041221141815, -0.008667603135108948, 0.034497037529945374, 0.4376497268676758, -0.106025829911232, -0.07573098689317703, -0.22174985706806183, -0.5205209255218506 ]
https://github.com/huggingface/datasets/issues/1948
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.
dataset loading logger level
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 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. 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.
[ -0.1465868055820465, -0.20244276523590088, 0.012918993830680847, 0.31020987033843994, 0.4003244936466217, 0.3999481201171875, 0.49052000045776367, 0.23117125034332275, 0.12436021864414215, 0.028232943266630173, 0.009334634989500046, -0.14726310968399048, -0.24832086265087128, -0.1882983148097992, -0.2508572041988373, 0.060939159244298935, -0.12649449706077576, -0.03155237436294556, -0.3859971761703491, -0.12803752720355988, 0.011019580066204071, -0.009376919828355312, 0.08198106288909912, 0.46154066920280457, -0.6953531503677368, -0.05773104727268219, 0.09077727794647217, 0.26928290724754333, 0.0484173521399498, -0.704439640045166, 0.2687949240207672, -0.06106102094054222, 0.17925873398780823, 0.1538810133934021, -0.0001220933918375522, 0.13016162812709808, 0.6268299221992493, 0.006786279380321503, -0.6243703961372375, 0.016163282096385956, -0.39791274070739746, -0.38230445981025696, 0.19095337390899658, -0.08937268704175949, -0.08788339793682098, -0.3329225778579712, 0.31746864318847656, -0.3982446789741516, 0.319102942943573, 0.15393179655075073, 0.09727315604686737, 0.13096408545970917, -0.15694472193717957, 0.1304766833782196, 0.32192331552505493, 0.26716098189353943, -0.06689952313899994, 0.0625433623790741, -0.027156654745340347, 0.18694768846035004, -0.3544817566871643, 0.365418016910553, -0.18978717923164368, -0.03559450805187225, 0.16825588047504425, -0.025154508650302887, 0.2707445025444031, -0.08298581838607788, 0.09802320599555969, 0.4570212960243225, 0.46933504939079285, -0.13812029361724854, 0.09600907564163208, -0.39516499638557434, -0.1142803430557251, -0.3058125972747803, 0.1722688525915146, 0.18179428577423096, -0.1236342340707779, 0.16428744792938232, -0.27864551544189453, 0.09623105823993683, 0.06331868469715118, -0.041200246661901474, 0.2753940224647522, 0.5356913208961487, -0.2549028694629669, 0.19949091970920563, 0.23215804994106293, -0.10864875465631485, 0.31809982657432556, -0.06474563479423523, -0.2923910617828369, 0.055742379277944565, -0.328454852104187, 0.09612391144037247, -0.15698185563087463, 0.22790874540805817, -0.1270325481891632, 0.055027399212121964, 0.030392803251743317, 0.06457453966140747, 0.17666250467300415, 0.04653703421354294, 0.30213168263435364, 0.07823823392391205, 0.33903640508651733, -0.043726593255996704, -0.20390458405017853, -0.023250754922628403, 0.1906760334968567, -0.052289173007011414, -0.1306728720664978, -0.08844448626041412, 0.44261419773101807, 0.20559367537498474, 0.006122909486293793, -0.03293795883655548, -0.1966417282819748, 0.02598544955253601, -0.15248923003673553, -0.3309822380542755, 0.024868488311767578, 0.19107657670974731, -0.07901735603809357, -0.03142457827925682, -0.13343659043312073, -0.026585331186652184, -0.04387998208403587, -0.2736993730068207, -0.07954972982406616, -0.28138014674186707, -0.3722063899040222, 0.17711472511291504, -0.11280176788568497, -0.16330920159816742, 0.17491266131401062, 0.17848844826221466, -0.05634503439068794, 0.07691427320241928, -0.04387689381837845, -0.14744098484516144, 0.12518590688705444, 0.488839328289032, -0.11889694631099701, 0.21091490983963013, 0.3153442442417145, 0.11441093683242798, -0.2508602738380432, 0.32191407680511475, -0.30886927247047424, -0.44297128915786743, -0.13885033130645752, 0.056897252798080444, -0.18728521466255188, -0.04270556569099426, -0.22634394466876984, 0.20497454702854156, 0.2080991119146347, 0.26164746284484863, 0.30431708693504333, -0.08705146610736847, -0.2893235683441162, -0.14004145562648773, -0.10680194944143295, 0.6045224070549011, -0.23004069924354553, -0.34489285945892334, -0.22338995337486267, -0.39084920287132263, 0.32200804352760315, 0.19409552216529846, -0.12529700994491577, 0.34292951226234436, -0.26696380972862244, -0.12755510210990906, 0.20651768147945404, -0.19930781424045563, 0.15382541716098785, 0.5722750425338745, -0.2666301131248474, 0.3573939800262451, 0.2487148642539978, 0.0757366418838501, -0.3795433044433594, -0.15874147415161133, 0.09316278994083405, -0.4061237573623657, 0.034649722278118134, -0.21954742074012756, -0.14228874444961548, -0.31017476320266724, 0.3162404000759125, 0.09567330777645111, -0.12433379888534546, -0.04076217859983444, -0.027005765587091446, -0.05965901538729668, 0.5715072751045227, 0.06594542413949966, 0.08812956511974335, 0.015974149107933044, -0.04747537523508072, 0.013790931552648544, -0.12476698309183121, 0.30474525690078735, -0.47335565090179443, 0.003331318497657776, 0.29657846689224243, 0.154142364859581, 0.060718752443790436, -0.03491271659731865, -0.11017666757106781, -0.04166464880108833, -0.465191513299942, -0.15921291708946228, -0.014824017882347107, 0.0448274239897728, -0.23151609301567078, -0.13399384915828705, -0.12283091992139816, 0.32832270860671997, -0.5877942442893982, 0.05917998030781746, -0.11736652255058289, -0.3510156273841858, 0.03717006742954254, 0.3243010938167572, -0.23668032884597778, 0.011676114983856678, 0.10599084198474884, 0.0001266002655029297, -0.13542355597019196, 0.2674868404865265, -0.04279379919171333, 0.3116444945335388, -0.08239492774009705, 0.5417580604553223, 0.038802698254585266, -0.15605400502681732, 0.36815983057022095, -0.20896795392036438, -0.2602340579032898, -0.05106985569000244, 0.11372379958629608, 0.02644997090101242, 0.02940603718161583, 0.26193100214004517, -0.2610863447189331, -0.10662484914064407, 0.07799214124679565, 0.05190577358007431, -0.17360498011112213, -0.362918883562088, 0.10125130414962769, 0.10452327132225037, 0.22245150804519653, 0.3565238416194916, -0.06059056147933006, 0.14013762772083282, 0.3738934397697449, -0.022656213492155075, -0.0009534545242786407, 0.21399642527103424, -0.06600683182477951, -0.12239262461662292, 0.196665421128273, 0.08962538838386536, 0.19973845779895782, 0.15022467076778412, 0.17851193249225616, 0.27789175510406494, -0.0631350576877594, -0.05725591257214546, 0.2577067017555237, 0.011919813230633736, 0.40474453568458557, 0.03575442358851433, -0.45619234442710876, 0.010988529771566391, -0.2117692232131958, -0.08415047824382782, -0.1447160840034485, -0.05291837453842163, -0.6462903022766113, 0.003194645047187805, -0.2683838903903961, -0.34339094161987305, -0.37497296929359436, -0.25267407298088074, -0.1563916951417923, -0.37855905294418335, 0.008687825873494148, -0.3024218678474426, -0.3954235911369324, 0.1360270380973816, -0.3061368465423584, 0.2309262752532959, 0.10016730427742004, 0.2513023614883423, -0.2852826714515686, -0.06618738174438477, -0.26804956793785095, -0.015258751809597015, -0.08351772278547287, -0.25199660658836365, 0.09852888435125351, -0.4905316233634949, 0.1629214882850647, -0.17520159482955933, -0.2026420682668686, 0.30885085463523865, -0.19750048220157623, 0.08799482136964798, 0.18976178765296936, -0.08937829732894897, -0.043289437890052795, -0.26714858412742615, 0.02504713088274002, 0.118578240275383, 0.008313685655593872, -0.3542826771736145, 0.07784830778837204, 0.14573067426681519, -0.11931048333644867, -0.09135565161705017, -0.32395607233047485, -0.1959175169467926, -0.12725065648555756, -0.3672882318496704, 0.29594892263412476, 0.47555938363075256, 0.031113773584365845, 0.0013715662062168121, -0.18174627423286438, 0.23562926054000854, -0.28047409653663635, -0.7693067789077759, -0.032526567578315735, -0.11969255656003952, 0.10966219007968903, -0.043509043753147125, 0.10027769207954407, 0.16287922859191895, 0.0031550265848636627, -0.8037422895431519, 0.18551549315452576, -0.1419699341058731, -0.3532150983810425, 0.16036926209926605, -0.0036666952073574066, -0.18760299682617188, 0.218183696269989, -0.01465730369091034, 0.00578983873128891, -0.28622114658355713, 0.05310460180044174, -0.46766433119773865, 0.42265650629997253, 0.1411723792552948, 0.4266452193260193, 0.11032498627901077, 0.4797784984111786, 0.17544551193714142, -0.009664343670010567, 0.220635324716568, -0.04050644859671593, 0.6518880128860474, -0.041456934064626694, -0.08224819600582123, 0.0396546833217144, 0.021217502653598785, -0.2239888310432434, -0.09894875437021255, -0.0745001807808876, 0.21004614233970642, 0.24136415123939514, 0.0937357023358345, 0.03523777425289154, -0.4016300439834595, 0.2715890109539032, -0.42449524998664856, -0.1394440233707428, -0.19973024725914001, 0.1225217804312706, 0.22780771553516388, -0.03288707137107849, 0.15644076466560364, 0.4967172145843506, 0.2978893518447876, 0.17151577770709991, -0.2740750014781952, -0.13115400075912476, -0.337291419506073, -0.01808549463748932, 0.055062588304281235, 0.1616724729537964, -0.3739036023616791, -0.30557918548583984, -0.1105579137802124, 0.3051779270172119, 0.13604852557182312, -0.13911347091197968, 0.2344476282596588, 0.17392578721046448, -0.06964712589979172, -0.08826001733541489, -0.1640913486480713, 0.05125933140516281, 0.029551714658737183, 0.14677798748016357, 0.08593685179948807, -0.1525842249393463, -0.43903878331184387, 0.13979661464691162, -0.09612806886434555, -0.23785755038261414, -0.25047436356544495, -0.20549097657203674, 0.1677541434764862, -0.09549876302480698, -0.024550732225179672, -0.04702433943748474, -0.028283486142754555, -0.5195003747940063, -0.008228451013565063, 0.11572252213954926, 0.3064213991165161, 0.07559327781200409, -0.14337462186813354, -0.09025809168815613, 0.3614208400249481, -0.1069241538643837, 0.4327397048473358, 0.7041022777557373, 0.25508183240890503, 0.7299550771713257, 0.07121596485376358, -0.08117485046386719, -0.05650409311056137, -0.05207226425409317, 0.21797645092010498, 0.34980323910713196, 0.11939194798469543, -0.05700361356139183, 0.3241610527038574, 0.4321882724761963, -0.4970782399177551, 0.3054850697517395, 0.24320942163467407, 0.10042473673820496, -0.47755855321884155, -0.3319886326789856, 0.498637318611145, 0.10592131316661835, -0.040184251964092255, 0.4706759452819824, 0.2508615553379059, -0.1733490377664566, -0.1791166365146637, 0.44859787821769714, 1.0204641819000244, -0.14132949709892273, 0.23796671628952026, 0.0887257307767868, -0.0671919509768486, 0.20323733985424042, 0.049839720129966736, -0.22870227694511414, -0.03398797661066055, 0.09549809992313385, -0.11026203632354736, -0.00790315866470337, 0.021774932742118835, 0.42593109607696533, -0.08149702101945877, 0.0552997961640358, -0.3799416422843933, 0.19976522028446198, 0.2381652295589447, 0.011174872517585754, -0.194865420460701, -0.1852944940328598, -0.1854829639196396, -0.010901529341936111, 0.19295543432235718, 0.12597450613975525, -0.25496402382850647, -0.07890433073043823, 0.35533687472343445, -0.1292886734008789, -0.20597846806049347, -0.12892229855060577, -0.21809937059879303, -0.02436995506286621, -0.10565060377120972, -0.09710381925106049, 0.024286508560180664, -0.0689304769039154, 0.044333040714263916, 0.16645547747612, 0.0667944848537445, 0.00580859649926424, 0.003596622496843338, 0.07688474655151367, -0.31640568375587463, -0.08070720732212067, 0.34266144037246704, 0.04996246099472046, -0.3006899356842041, 0.2033224105834961, -0.2766222059726715, -0.5778278112411499, 0.051915109157562256, -0.1594388782978058, -0.20737102627754211, -0.08856578171253204, 0.1399160921573639, 0.18799036741256714, -0.14146515727043152, 0.22174091637134552, 0.01671239361166954, 0.15365292131900787, 0.2042517215013504, 0.014399453997612, 0.25000694394111633, -0.579298734664917, -0.16281183063983917, 0.07869713008403778, 0.012921901419758797, -0.13104142248630524, 0.46480080485343933, -0.09843431413173676, -0.04922039061784744, -0.11446937173604965, -0.007003217935562134, 0.5963892340660095, -0.10437803715467453, -0.19340364634990692, 0.27258017659187317, -0.04871252179145813, 0.07696016132831573, -0.10617250949144363, 0.31250256299972534, 0.09994371980428696, -0.2827930450439453, -0.2267076075077057, -0.5409592390060425, 0.28084796667099, -0.4361151456832886, 0.2125406265258789, -0.16901223361492157, -0.14763452112674713, 0.22599998116493225, 0.0833064466714859, -0.178397536277771, -0.21111726760864258, -0.055946528911590576, -0.16252964735031128, 0.16571170091629028, 0.23914006352424622, 0.3696463108062744, 0.2524445652961731, -0.09031365811824799, -0.3158457279205322, -0.32055675983428955, -0.02163797616958618, -0.0654083639383316, 0.2244134545326233, -0.010435394011437893, -0.11759842187166214, -0.09662225842475891, -0.09005873650312424, 0.13845671713352203, -0.18280591070652008, 0.3072931170463562, 0.20304521918296814, 0.0739670917391777, 0.4574134945869446, -0.25119465589523315, 0.19564436376094818, -0.3103451132774353, -0.0566113255918026, 0.31306344270706177, 0.21393105387687683, -0.10515312105417252, -0.12772148847579956, -0.012836158275604248, -0.017927691340446472, 0.37555480003356934, 0.12439633905887604, 0.24559876322746277, -0.05017697811126709, 0.09541219472885132, 0.24056199193000793, 0.15265043079853058, 0.17367780208587646, 0.25295108556747437, 0.18288886547088623, -0.015157736837863922, -0.46143290400505066, -0.2064889371395111, 0.05497729033231735, 0.08747954666614532, 0.028456296771764755, -0.3894965350627899, 0.326739639043808, -0.0016325339674949646, 0.16338303685188293, 0.15703855454921722, 0.11064006388187408, 0.4825291037559509, -0.016539905220270157, 0.07947206497192383, -0.4653489589691162, 0.12036553025245667, 0.3244588375091553, -0.35498732328414917, 0.27514177560806274, 0.46561819314956665, -0.018454544246196747, 0.32588934898376465, 0.2565746605396271, 0.3138429820537567, 0.5164309740066528, 0.3635672926902771, 0.13832484185695648, -0.1878061592578888, -0.43224963545799255, 0.017832830548286438, 0.552819013595581, -0.3737697899341583, -0.09735582768917084, 0.12784473598003387, 0.03780657798051834, 0.2741696536540985, -0.10876068472862244, -0.1625676155090332, -0.26016485691070557, -0.08219550549983978, -0.12502533197402954, 0.05480755865573883, -0.060683950781822205, -0.21606123447418213, -0.055332034826278687, 0.08894720673561096, -0.17515693604946136, 0.15438318252563477, -0.2759080231189728, -0.1503821760416031, -0.08268429338932037, -0.023945370689034462, 0.3113578259944916, 0.1572372168302536, -0.23019574582576752, -0.17212185263633728, 0.33105844259262085, -0.11556363850831985, 0.40975221991539, 0.47527652978897095, 0.6177265644073486, 0.5910735130310059, 0.19774433970451355, 0.14102362096309662, -0.09593226760625839, 0.09920132160186768, -0.0008838623762130737, 0.46647387742996216, 0.053271666169166565, -0.5392207503318787, 0.32912757992744446, 0.019083436578512192, -0.01807190477848053, 0.4304615259170532, -0.1307462900876999, 0.3070873022079468, 0.09569771587848663, 0.16362085938453674, 0.05227039381861687, 0.04547274112701416, 0.07865943014621735, 0.10355249047279358, -0.2113204300403595, 0.08281394839286804, 0.9799095392227173, -0.21878153085708618, 0.008238714188337326, -0.35981473326683044, 0.037644874304533005, 0.133739173412323, 0.7505000233650208, 0.530143678188324, 0.019135022535920143, -0.26890578866004944, 0.10987164080142975, -0.6785557270050049, 0.16154924035072327, -0.01001092977821827, 0.11956412345170975, 0.2431478649377823, -0.17405956983566284, 0.1362667977809906, 0.23472946882247925, 0.22579723596572876, -0.34388551115989685, 0.07952574640512466, -0.3624972105026245, -0.2689085900783539, 0.03135950118303299, 0.4597536027431488, 0.26542359590530396, -0.04538668692111969, -0.13111069798469543, 0.2973898947238922, 0.03067845106124878, -0.07113451510667801, -0.121831014752388, 0.1676904559135437, 0.15737903118133545, 0.3829616904258728, 0.344510555267334, 0.15357352793216705, 0.36864233016967773, 0.032439932227134705, -0.12367809563875198, -0.4942081570625305, -0.19480262696743011, -0.06506098061800003, 0.2983179986476898, 0.18261408805847168, -0.017790094017982483, -0.09680016338825226, 0.010135069489479065, -0.38056713342666626, 0.106007419526577, 0.061049118638038635, 0.09095469117164612, -0.006786685436964035, 0.11688162386417389, -0.1358053982257843, -0.0998944640159607, 0.06736700236797333, 0.15545713901519775, 0.5111300945281982, 0.11317356675863266, 0.01158839464187622, -0.2730746567249298, 0.2586716413497925, -0.07006743550300598, -0.050063252449035645, -0.190566286444664, 0.1469297856092453, 0.226237490773201, -0.07692867517471313, -0.8204526305198669, 0.129343181848526, 0.35785019397735596, -0.1564282476902008, -0.11711258441209793, 0.13461163640022278, -0.0860334038734436, 0.006533950567245483, 0.08554751425981522, 0.4466446042060852, -0.07374440133571625, -0.12865711748600006, -0.1838977187871933, -0.517406165599823 ]
https://github.com/huggingface/datasets/issues/1948
Hey, any news about the issue? So many warnings when I'm really ok with the dataset not being recomputed :)
dataset loading logger level
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 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. Hey, any news about the issue? So many warnings when I'm really ok with the dataset not being recomputed :)
[ -0.20182105898857117, -0.2147749662399292, -0.01915048062801361, 0.4123525619506836, 0.4625154733657837, 0.41485950350761414, 0.46870338916778564, 0.12743055820465088, 0.12400504946708679, -0.009558700025081635, 0.01883823424577713, -0.08164338767528534, -0.26261836290359497, -0.11465027183294296, -0.36019930243492126, 0.2564833164215088, -0.06924861669540405, -0.035224705934524536, -0.42808017134666443, -0.07898453623056412, -0.11002281308174133, 0.08881540596485138, -0.038199521601200104, 0.4029664993286133, -0.7883703112602234, -0.08446290343999863, 0.1141555979847908, 0.033720944076776505, -0.014049779623746872, -0.7113648653030396, 0.27125316858291626, -0.015958786010742188, 0.17502880096435547, 0.17978113889694214, -0.00011945627920795232, 0.08074362576007843, 0.5874016284942627, 0.03469572216272354, -0.545455276966095, 0.08740006387233734, -0.3945811986923218, -0.4607204496860504, 0.2950288951396942, 0.06800967454910278, -0.08184556663036346, -0.4350314438343048, 0.10539025068283081, -0.4060838222503662, 0.343233197927475, 0.09426900744438171, 0.17412324249744415, 0.11275025457143784, -0.06376998126506805, 0.025896146893501282, 0.2801207900047302, 0.2445055991411209, -0.044320859014987946, 0.0054726675152778625, 0.005439078435301781, 0.05467131733894348, -0.3033309578895569, 0.4369637370109558, -0.18269793689250946, 0.05471466854214668, 0.19190660119056702, -0.057497959583997726, 0.2136772871017456, -0.18723230063915253, 0.18275156617164612, 0.3480861186981201, 0.5612226128578186, 0.011937037110328674, -0.02131763845682144, -0.43846139311790466, -0.1327173113822937, -0.2757674753665924, 0.1628352701663971, 0.2771093249320984, 0.06380315124988556, 0.20647138357162476, -0.33059173822402954, 0.053137727081775665, 0.12483380734920502, -0.14948396384716034, 0.1364181637763977, 0.2955518364906311, -0.4321041703224182, 0.181194007396698, 0.16963405907154083, -0.08379307389259338, 0.19440627098083496, -0.16435092687606812, -0.3497735857963562, 0.08970939368009567, -0.3535856604576111, 0.04631427675485611, -0.1576974093914032, 0.468955397605896, -0.07395901530981064, 0.21599771082401276, 0.0167459174990654, 0.033399201929569244, 0.16820406913757324, -0.025947686284780502, 0.43560847640037537, 0.015156060457229614, 0.308208703994751, -0.028809266164898872, -0.10628490895032883, -0.1515377014875412, 0.1799236238002777, -0.07515034079551697, 0.031502023339271545, -0.1234559714794159, 0.46636271476745605, 0.03606245294213295, 0.1819915771484375, -0.20728439092636108, -0.22617614269256592, 0.08143752813339233, -0.024426400661468506, -0.27105167508125305, 0.00017235055565834045, 0.1685471087694168, -0.08641676604747772, 0.03079300746321678, -0.09591586142778397, -0.031621649861335754, -0.006802219897508621, -0.20945537090301514, -0.1628878116607666, -0.35385921597480774, -0.3196653425693512, 0.1527388095855713, 0.04687827080488205, -0.21357254683971405, 0.27204734086990356, 0.213695228099823, -0.05377618223428726, 0.0015834793448448181, 0.00004131346940994263, -0.18579663336277008, 0.02915044128894806, 0.5929058194160461, -0.21606531739234924, 0.2531103193759918, 0.2836384177207947, 0.202816903591156, -0.14590829610824585, 0.30286186933517456, -0.3097997307777405, -0.501756489276886, -0.08633007109165192, 0.14246627688407898, -0.21305212378501892, -0.019823312759399414, -0.2632066607475281, 0.07651151716709137, 0.3247368037700653, 0.2773110270500183, 0.13102984428405762, -0.1277332305908203, -0.25393369793891907, -0.1192450150847435, -0.1299889087677002, 0.5831537246704102, -0.17043840885162354, -0.22820276021957397, -0.3527734577655792, -0.36910971999168396, 0.25047028064727783, 0.14596077799797058, -0.14161403477191925, 0.2105037271976471, -0.33150389790534973, -0.21822039783000946, 0.18913894891738892, -0.07659506052732468, 0.007530860602855682, 0.423481822013855, -0.18852707743644714, 0.14107665419578552, 0.25326013565063477, 0.057484179735183716, -0.21005386114120483, -0.17481876909732819, -0.0686212107539177, -0.3766583204269409, 0.007314663380384445, -0.19623221457004547, -0.12798118591308594, -0.25325602293014526, 0.3050474524497986, 0.07536109536886215, -0.2619210481643677, -0.061304349452257156, -0.034708280116319656, -0.16965258121490479, 0.2877300977706909, 0.1290988177061081, 0.10046453773975372, 0.04017268121242523, -0.06324581801891327, 0.07505761086940765, -0.00705932080745697, 0.2962646484375, -0.6046150326728821, 0.05703860521316528, 0.25272291898727417, 0.028345711529254913, -0.028158817440271378, -0.07783274352550507, -0.04098979011178017, 0.004593752324581146, -0.4720388650894165, -0.2500113248825073, 0.00770394504070282, 0.04795854538679123, -0.12385101616382599, -0.13560733199119568, -0.17048007249832153, 0.31036531925201416, -0.5672218799591064, 0.11397907137870789, 0.001796569675207138, -0.13010074198246002, 0.031194226816296577, 0.27802613377571106, -0.05371640622615814, -0.003340417519211769, 0.05970929190516472, 0.09261693805456161, -0.11943073570728302, 0.17147168517112732, 0.07955025136470795, 0.346110999584198, -0.06647814810276031, 0.34824442863464355, 0.04216432571411133, -0.22758926451206207, 0.3439953327178955, -0.19056293368339539, -0.1876615285873413, -0.09421442449092865, 0.12172858417034149, 0.1971226930618286, -0.09559732675552368, 0.2936928868293762, -0.26816636323928833, -0.0041470006108284, 0.11747976392507553, 0.11582900583744049, -0.15169274806976318, -0.5100902318954468, 0.035117462277412415, 0.11737827211618423, 0.25505074858665466, 0.34480032324790955, -0.04337429255247116, 0.12336317449808121, 0.4002450406551361, 0.03382401913404465, -0.03259829804301262, 0.18238487839698792, -0.10598687827587128, -0.07164449244737625, 0.1637205183506012, 0.1360665261745453, 0.36554020643234253, 0.19994330406188965, 0.06993318349123001, 0.17845681309700012, 0.0452740453183651, -0.09144477546215057, 0.34951120615005493, -0.08587006479501724, 0.3064243197441101, 0.14647391438484192, -0.3910762071609497, -0.05464138463139534, -0.3296445608139038, 0.11220186948776245, -0.08817731589078903, -0.04459163546562195, -0.5437100529670715, -0.1114683523774147, -0.3159330189228058, -0.2503339648246765, -0.42201101779937744, -0.23417459428310394, -0.22402331233024597, -0.3916385769844055, 0.0054609570652246475, -0.14004753530025482, -0.3002392053604126, 0.1975158154964447, -0.19294022023677826, 0.2459297478199005, 0.07076393812894821, 0.36000096797943115, -0.32172060012817383, -0.10659073293209076, -0.28889402747154236, 0.03221042454242706, -0.07774251699447632, -0.2631668746471405, 0.2102135568857193, -0.2736949920654297, 0.24598300457000732, -0.3104977011680603, -0.1889101266860962, 0.14478224515914917, -0.2983018457889557, 0.09630214422941208, 0.16814595460891724, -0.012931577861309052, 0.08769235014915466, -0.21439798176288605, 0.07863615453243256, 0.14712193608283997, -0.08586039394140244, -0.3568825125694275, 0.10549357533454895, 0.18410205841064453, -0.08350929617881775, -0.2449285238981247, -0.29049035906791687, -0.1300165355205536, -0.1924382746219635, -0.3609960079193115, 0.1438358724117279, 0.39303678274154663, -0.07039092481136322, 0.03164117410778999, -0.25434988737106323, 0.17635054886341095, -0.3930455446243286, -0.5929747223854065, 0.09327597916126251, -0.05303599685430527, -0.04792819544672966, 0.04735064506530762, 0.14028798043727875, 0.2511121928691864, -0.07661986351013184, -0.888705313205719, 0.14073848724365234, -0.1085185706615448, -0.26935845613479614, 0.14275673031806946, 0.003016151487827301, -0.03760404512286186, 0.28749018907546997, -0.028125349432229996, -0.058440644294023514, -0.3251954913139343, -0.0211486853659153, -0.5583199262619019, 0.4083807170391083, -0.07121255248785019, 0.4945525825023651, -0.11822877824306488, 0.6171674132347107, 0.2078091949224472, -0.061916910111904144, 0.25470465421676636, 0.023990115150809288, 0.6073728799819946, -0.10720163583755493, -0.2783244550228119, -0.08485959470272064, -0.023993320763111115, -0.08532732725143433, -0.00903262197971344, -0.058464594185352325, 0.11814596503973007, 0.07961167395114899, 0.2320280820131302, 0.07575559616088867, -0.24348823726177216, -0.020336778834462166, -0.42357414960861206, -0.0518680065870285, -0.13878238201141357, 0.0590234100818634, 0.2097693830728531, -0.04550745338201523, -0.004600103944540024, 0.44231072068214417, 0.31195804476737976, 0.0415232889354229, -0.22682103514671326, -0.17754700779914856, -0.15010115504264832, 0.08963572978973389, 0.000710565596818924, 0.1634250283241272, -0.29350265860557556, -0.24673613905906677, -0.02446381375193596, 0.2641924321651459, 0.19330160319805145, -0.10210222750902176, 0.2468358874320984, 0.14514070749282837, -0.12824077904224396, -0.22010117769241333, -0.16886603832244873, 0.07159283757209778, 0.07202941924333572, 0.12308403849601746, 0.10963228344917297, -0.09832147508859634, -0.4640812277793884, 0.22711941599845886, -0.10080784559249878, -0.22558897733688354, -0.21530920267105103, -0.364773690700531, 0.21516892313957214, -0.15598469972610474, 0.005607977509498596, -0.0892065241932869, -0.047691456973552704, -0.5302080512046814, -0.035444553941488266, 0.043367043137550354, 0.13199226558208466, -0.015117928385734558, -0.1747693419456482, 0.01589193567633629, 0.33528491854667664, 0.07759390771389008, 0.3122713565826416, 0.7089360952377319, 0.38063716888427734, 0.7758240699768066, 0.05142531543970108, -0.07939968258142471, 0.06198468059301376, -0.05229534953832626, 0.28303492069244385, 0.26357829570770264, 0.0025536343455314636, 0.017191942781209946, 0.23382440209388733, 0.3215700685977936, -0.5053795576095581, 0.156988263130188, 0.26421818137168884, 0.10648490488529205, -0.3957761228084564, -0.23987916111946106, 0.5792208909988403, 0.19906024634838104, -0.0721658244729042, 0.5011492967605591, 0.17187164723873138, -0.16018682718276978, -0.22229915857315063, 0.4092177748680115, 0.9316590428352356, -0.05026762932538986, 0.16563007235527039, 0.033548396080732346, -0.10239845514297485, 0.21515384316444397, 0.17124706506729126, -0.21690508723258972, -0.024008505046367645, 0.13635915517807007, -0.06080637872219086, -0.09427014738321304, 0.12992194294929504, 0.39603933691978455, -0.11037153005599976, 0.10915856808423996, -0.30378109216690063, 0.3193355202674866, 0.08287063241004944, 0.09246329963207245, -0.2181662768125534, -0.10453131794929504, -0.2052215039730072, 0.04869414493441582, 0.06083650887012482, 0.18075858056545258, -0.25417301058769226, -0.018848003819584846, 0.44621601700782776, -0.18769580125808716, -0.20399194955825806, -0.16988588869571686, -0.1652955710887909, 0.07981778681278229, -0.02387498877942562, -0.13402996957302094, 0.1769517958164215, -0.007408285513520241, 0.10807622969150543, 0.13101553916931152, -0.053570255637168884, -0.03932221233844757, -0.027714475989341736, 0.03496495634317398, -0.33624234795570374, 0.02497999370098114, 0.2612009644508362, -0.04321053624153137, -0.25691768527030945, 0.08156652748584747, -0.24109040200710297, -0.459990918636322, -0.011758953332901001, -0.01386817917227745, -0.2203839272260666, -0.2234913557767868, 0.19176065921783447, 0.25213345885276794, -0.05090588331222534, 0.20036087930202484, 0.09387874603271484, 0.1300971955060959, 0.10865245759487152, 0.14961889386177063, 0.25527429580688477, -0.5631155967712402, -0.20566010475158691, 0.35969841480255127, 0.11915412545204163, -0.08340562880039215, 0.596660315990448, -0.07552222162485123, -0.06990118324756622, -0.20344875752925873, 0.08132908493280411, 0.4912578761577606, -0.11065734922885895, -0.05119776725769043, 0.21343529224395752, 0.06482523679733276, 0.18649005889892578, 0.011882965452969074, 0.3163929283618927, 0.04991140961647034, -0.18912293016910553, -0.2757256031036377, -0.596808910369873, 0.1763007938861847, -0.5243198871612549, 0.19772160053253174, -0.258146733045578, -0.15779635310173035, 0.26301416754722595, 0.16344496607780457, -0.23727554082870483, -0.0650736540555954, 0.07959676533937454, -0.0064034974202513695, 0.12665215134620667, 0.0493781715631485, 0.27077651023864746, 0.23683862388134003, -0.0509185791015625, -0.3025643825531006, -0.4482942223548889, -0.0827125683426857, 0.07793796807527542, 0.19805368781089783, -0.0288228839635849, -0.050563957542181015, -0.20094802975654602, -0.14815431833267212, 0.008512783795595169, -0.014898529276251793, 0.3040983974933624, 0.10170239210128784, 0.012218714691698551, 0.2981623709201813, -0.13418348133563995, -0.052050258964300156, -0.14500777423381805, -0.12676337361335754, 0.11840307712554932, 0.1700136661529541, -0.05281512066721916, -0.17769832909107208, 0.055075179785490036, -0.053175248205661774, 0.2609739899635315, 0.07858793437480927, 0.04704825580120087, -0.1665113866329193, 0.16892845928668976, 0.017752783372998238, 0.08329960703849792, 0.28567928075790405, 0.26419657468795776, 0.20261520147323608, 0.00011724978685379028, -0.39493680000305176, -0.1265990436077118, 0.10802605748176575, -0.07887734472751617, 0.03021235764026642, -0.2441767454147339, 0.417874813079834, -0.1300906538963318, 0.10162433981895447, 0.20725595951080322, -0.003433316946029663, 0.5227724313735962, 0.15520235896110535, 0.24557918310165405, -0.5066168308258057, 0.2247365415096283, 0.277900367975235, -0.24849215149879456, 0.2828521132469177, 0.552602231502533, 0.15908965468406677, 0.2291986346244812, 0.20052003860473633, 0.1454208940267563, 0.5187023282051086, 0.3187764883041382, 0.06749996542930603, -0.07107314467430115, -0.5168733596801758, 0.06751862168312073, 0.611420214176178, -0.525299608707428, -0.18638654053211212, 0.04002465307712555, 0.1060190498828888, 0.11361248791217804, -0.1601576805114746, -0.26147544384002686, -0.10666469484567642, -0.1605531871318817, -0.10187344253063202, -0.008820563554763794, -0.04134448617696762, -0.0563134029507637, 0.01373118907213211, 0.09795266389846802, -0.05578495189547539, 0.17769305408000946, -0.22693447768688202, -0.2977190911769867, -0.17862439155578613, 0.025445546954870224, 0.2555101811885834, 0.18963053822517395, -0.22259382903575897, -0.016118351370096207, 0.22289606928825378, -0.09989786893129349, 0.3993678689002991, 0.6683422327041626, 0.554152250289917, 0.5690361261367798, 0.13204482197761536, 0.06553305685520172, -0.004325369372963905, 0.0803079679608345, -0.020640946924686432, 0.6196237206459045, -0.062143631279468536, -0.46151939034461975, 0.28260505199432373, 0.06006317585706711, -0.0013748891651630402, 0.35302600264549255, -0.19899559020996094, 0.238136887550354, -0.04340970143675804, 0.18397018313407898, -0.00432817917317152, 0.02679663896560669, 0.03361669182777405, 0.13427352905273438, -0.22741833329200745, 0.15014243125915527, 1.0164285898208618, -0.1379929482936859, 0.02961321920156479, -0.3269847631454468, 0.060329727828502655, 0.039489418268203735, 0.8118131160736084, 0.5566384196281433, 0.01798468455672264, -0.24989250302314758, -0.05135563760995865, -0.6797934770584106, 0.10754971206188202, 0.05823115259408951, 0.37350815534591675, 0.15615889430046082, -0.1018715500831604, 0.060034096240997314, 0.27879470586776733, 0.18062114715576172, -0.23451773822307587, 0.018387071788311005, -0.43923723697662354, -0.3589947819709778, -0.019951231777668, 0.32486456632614136, 0.23959003388881683, -0.11069110035896301, -0.04230021312832832, 0.32837387919425964, -0.026496876031160355, -0.03636498004198074, -0.06333059072494507, 0.2724044620990753, -0.00009895861148834229, 0.4668424725532532, 0.31178519129753113, 0.2629803717136383, 0.3411048352718353, 0.20293982326984406, 0.0029426366090774536, -0.4637702405452728, -0.27278709411621094, 0.026001691818237305, 0.2566903233528137, 0.2327900528907776, 0.08435522019863129, -0.08480547368526459, -0.038863614201545715, -0.3371565043926239, 0.06666804850101471, 0.08181983232498169, 0.07051554322242737, 0.07958405464887619, 0.007600605487823486, -0.01861169934272766, -0.15759006142616272, -0.00370827317237854, 0.1348814070224762, 0.41922903060913086, 0.195619136095047, -0.11854680627584457, -0.3421119749546051, 0.36061525344848633, -0.17715610563755035, -0.02683129906654358, -0.09983952343463898, 0.25502899289131165, 0.18010693788528442, -0.20323188602924347, -0.8239955306053162, 0.09448075294494629, 0.45217639207839966, -0.17559914290905, -0.16752713918685913, 0.13175511360168457, 0.05735248327255249, -0.06120236590504646, 0.10371541976928711, 0.45202285051345825, -0.0139026353135705, -0.11183629930019379, -0.17156822979450226, -0.43542423844337463 ]
https://github.com/huggingface/datasets/issues/1942
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
[experiment] missing default_experiment-1-0.arrow
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 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. 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
[ -0.035873740911483765, -0.0009468942880630493, 0.07417140156030655, 0.11846079677343369, 0.08373984694480896, -0.10975294560194016, 0.1720350682735443, 0.23171842098236084, 0.26387184858322144, 0.1391705572605133, 0.06787896156311035, 0.17331816256046295, -0.28547459840774536, -0.012177981436252594, 0.13692805171012878, 0.05513520911335945, -0.06285757571458817, -0.030149728059768677, -0.3259330093860626, -0.1252780556678772, -0.22006458044052124, 0.5307020545005798, -0.06286807358264923, 0.06450051069259644, -0.45623287558555603, 0.17522849142551422, -0.12847134470939636, 0.3620724081993103, -0.08335494995117188, -0.5840672850608826, 0.3293274939060211, 0.11464623361825943, 0.05395381897687912, 0.4142381250858307, -0.00011953302600886673, -0.10379655659198761, 0.2400079071521759, -0.18882903456687927, -0.27386346459388733, -0.27789491415023804, -0.07536155730485916, -0.2522023916244507, 0.5798793435096741, -0.0966043770313263, -0.13444781303405762, 0.09161127358675003, 0.010013623163104057, -0.4268665313720703, 0.4767812490463257, 0.12117418646812439, 0.11660255491733551, 0.40536415576934814, 0.033189356327056885, -0.333391398191452, 0.2213086485862732, -0.10460543632507324, 0.04156836122274399, 0.4594830870628357, 0.06875649094581604, 0.0936746746301651, -0.14647136628627777, 0.21141885221004486, 0.3470684885978699, -0.18441994488239288, 0.3098646402359009, 0.011212006211280823, 0.0013161767274141312, -0.10811847448348999, -0.028411801904439926, 0.3066343367099762, 0.236559197306633, -0.13058696687221527, -0.26080596446990967, 0.1283790022134781, -0.08799263834953308, -0.4039273262023926, 0.15386395156383514, -0.09391781687736511, 0.07636533677577972, 0.08911282569169998, 0.08736804127693176, -0.19800539314746857, -0.016059234738349915, 0.14742498099803925, -0.12845690548419952, -0.13980618119239807, -0.18762437999248505, 0.041487470269203186, -0.049505360424518585, 0.02194991707801819, -0.5056313276290894, 0.4271097779273987, -0.1831524819135666, 0.13204142451286316, -0.40208226442337036, 0.13704825937747955, 0.2792125344276428, 0.17435698211193085, 0.04856901615858078, 0.594081461429596, 0.054407067596912384, 0.09763842821121216, 0.32409757375717163, 0.11521859467029572, -0.14398539066314697, 0.46371695399284363, 0.14710673689842224, -0.031870823353528976, 0.22906780242919922, 0.24003303050994873, -0.09978596866130829, -0.2906396985054016, 0.22074027359485626, -0.2854762375354767, 0.18021003901958466, 0.22593103349208832, 0.23525993525981903, -0.3656277656555176, 0.010947190225124359, 0.251397967338562, -0.1731027066707611, -0.08807644993066788, 0.077851802110672, 0.3774324655532837, 0.020915646106004715, -0.06627978384494781, 0.3336493670940399, 0.3538488745689392, -0.23218995332717896, -0.04830002784729004, -0.45427194237709045, -0.1579868048429489, -0.1675678789615631, 0.3084726929664612, 0.12131604552268982, -0.042960308492183685, 0.5225877165794373, -0.13772480189800262, 0.36757591366767883, -0.06341570615768433, 0.2979547679424286, 0.1495724767446518, -0.05787314474582672, 0.2460668832063675, 0.004549309611320496, 0.17308641970157623, 0.31002041697502136, -0.015288203954696655, -0.10469163954257965, -0.31365954875946045, -0.21439659595489502, -0.49018675088882446, 0.08632370084524155, 0.028870839625597, -0.3260272443294525, 0.18415823578834534, 0.38498789072036743, 0.05456969514489174, -0.21494998037815094, -0.2581467628479004, 0.12042854726314545, 0.04440469294786453, -0.07320831716060638, -0.1320745199918747, 0.5114511251449585, 0.7114235758781433, -0.2573736906051636, -0.4081451892852783, 0.21534082293510437, 0.014480717480182648, -0.10832172632217407, 0.19757328927516937, -0.06309524178504944, 0.15639236569404602, -0.34030961990356445, -0.10439828038215637, 0.411384642124176, -0.5171522498130798, -0.4667462706565857, -0.01685899868607521, -0.3854104280471802, -0.10103318095207214, 0.1008027195930481, -0.035738974809646606, 0.07459399104118347, 0.2175188511610031, 0.11963067948818207, -0.17249849438667297, 0.24144749343395233, -0.32197192311286926, -0.26019999384880066, -0.2055729478597641, 0.11930331587791443, -0.060343001037836075, 0.23625051975250244, 0.1523997038602829, -0.005217425525188446, -0.073207788169384, 0.12558513879776, 0.10203735530376434, 0.19817817211151123, 0.3781461715698242, 0.2921810448169708, 0.18363875150680542, 0.19785085320472717, 0.15662533044815063, -0.16781990230083466, 0.2583167254924774, -0.46891891956329346, 0.15277788043022156, -0.050324875861406326, -0.014754414558410645, -0.2192661613225937, -0.22796845436096191, -0.08508479595184326, -0.4767321050167084, 0.017770662903785706, 0.012132620438933372, 0.2931831479072571, 0.31026917695999146, -0.16235509514808655, 0.27141308784484863, 0.09245987981557846, 0.29201608896255493, -0.6656673550605774, 0.032258011400699615, -0.11137203127145767, -0.33567357063293457, -0.09868424385786057, 0.16473537683486938, 0.061155494302511215, -0.008172180503606796, -0.17906181514263153, 0.38833537697792053, -0.016980454325675964, 0.17494535446166992, 0.37948301434516907, 0.08916186541318893, -0.05745651572942734, -0.4079514741897583, -0.032881684601306915, 0.1797972172498703, 0.05424687638878822, -0.0016226544976234436, -0.20078504085540771, 0.3237922191619873, -0.08257163316011429, 0.13314925134181976, -0.24502363801002502, 0.3666042983531952, -0.03995976597070694, -0.06882324069738388, -0.5726248025894165, -0.09332986176013947, 0.34850218892097473, -0.19066984951496124, 0.4904289245605469, -0.1709936112165451, -0.03202597796916962, 0.021892504766583443, 0.09914050996303558, 0.14012660086154938, 0.2501837909221649, -0.003782010404393077, -0.21714890003204346, -0.042443208396434784, 0.02694581262767315, -0.1459604948759079, 0.4352152645587921, 0.1362624168395996, 0.14398853480815887, 0.12434448301792145, 0.20968709886074066, -0.16947442293167114, 0.04247155785560608, -0.0767042487859726, -0.12147720158100128, 0.09510793536901474, 0.18493199348449707, 0.1680724024772644, -0.23352380096912384, -0.19564104080200195, -0.39713406562805176, 0.032226547598838806, -0.3484334945678711, 0.09465431421995163, -0.20371867716312408, 0.3464001417160034, 0.30306246876716614, -0.05599706619977951, -0.3411487340927124, -0.2638901472091675, 0.13857701420783997, -0.18776732683181763, 0.03016679733991623, 0.22298717498779297, -0.2555915117263794, 0.4870508909225464, 0.13525107502937317, -0.18637534976005554, -0.3071424067020416, -0.20046141743659973, -0.13957074284553528, -0.1502983272075653, -0.2870166301727295, 0.08714723587036133, 0.024952931329607964, -0.21356821060180664, 0.12923136353492737, -0.034374043345451355, -0.34831032156944275, 0.04832349717617035, 0.05183260515332222, 0.5172298550605774, 0.39365988969802856, 0.0021313950419425964, -0.2833373248577118, 0.22005249559879303, 0.5371547341346741, -0.3732427954673767, -0.30909931659698486, 0.09900392591953278, 0.05833638459444046, 0.20212790369987488, -0.25520381331443787, -0.31110894680023193, -0.0462789312005043, -0.38562506437301636, 0.6103235483169556, 0.10121899843215942, -0.10913965851068497, -0.06453372538089752, 0.012322396039962769, 0.17429135739803314, -0.21012017130851746, 0.3627810478210449, -0.3324128985404968, -0.6493902802467346, 0.33743253350257874, -0.19055487215518951, -0.36842620372772217, 0.028481021523475647, 0.03376155346632004, 0.38152557611465454, -0.02009212225675583, -0.5352693200111389, -0.38940000534057617, 0.04456669092178345, 0.24921822547912598, -0.10606683790683746, 0.06231941282749176, 0.5808557271957397, -0.05514217168092728, -0.02073349803686142, -0.05879353731870651, -0.1301969587802887, 0.4343070685863495, -0.10790497064590454, 0.13795536756515503, -0.10125097632408142, 0.4365171790122986, 0.0528162345290184, 0.7605788707733154, 0.4823167324066162, 0.2873232960700989, 0.266158789396286, 0.035839274525642395, 0.48658233880996704, -0.21431705355644226, -0.1602761298418045, 0.19477197527885437, 0.19498303532600403, -0.06847016513347626, 0.12586122751235962, 0.11121410876512527, 0.2847437262535095, -0.21912536025047302, -0.026884105056524277, -0.33545321226119995, -0.3300555348396301, -0.020689552649855614, -0.28731125593185425, 0.21774214506149292, -0.06900165975093842, 0.041390299797058105, -0.2042779177427292, 0.05395903065800667, 0.3671605885028839, 0.36464813351631165, 0.2758912444114685, 0.2595491111278534, -0.27756476402282715, 0.0905444398522377, -0.5864402055740356, 0.317091166973114, -0.5184069871902466, 0.16709080338478088, -0.25914254784584045, -0.2926998734474182, 0.0993681252002716, -0.01631762646138668, 0.5642926692962646, 0.0010580886155366898, -0.17029812932014465, 0.06868469715118408, -0.26072144508361816, -0.5911593437194824, -0.019503198564052582, -0.047078512609004974, -0.012028947472572327, 0.2525354027748108, 0.21937555074691772, -0.36213260889053345, -0.17560449242591858, -0.1045861691236496, -0.14550912380218506, -0.21616129577159882, -0.1501787304878235, -0.3854457139968872, 0.032044753432273865, -0.19628697633743286, 0.10332325100898743, -0.29601261019706726, 0.017189938575029373, 0.09631778299808502, 0.09739099442958832, -0.22833846509456635, -0.05175682157278061, -0.007131073623895645, 0.07474669814109802, 0.305720716714859, -0.3038361370563507, 0.17061200737953186, 0.467437744140625, 0.027276553213596344, -0.00022987835109233856, 0.5265596508979797, 0.05510169267654419, -0.27972692251205444, 0.29871946573257446, -0.06319272518157959, 0.21239717304706573, 0.53779536485672, -0.2559632658958435, 0.11146873980760574, -0.07350794970989227, 0.3654128313064575, -0.19086548686027527, -0.11269819736480713, 0.327238529920578, -0.1773872822523117, 0.37413161993026733, 0.16370388865470886, 0.06721943616867065, 0.1586407721042633, -0.13802161812782288, 0.15745478868484497, 0.040447648614645004, -0.14309334754943848, 0.39992955327033997, -0.10424164682626724, 0.9887387752532959, 0.2283455729484558, 0.24891389906406403, 0.13140416145324707, 0.05135607719421387, 0.45450884103775024, 0.016812622547149658, 0.02210865169763565, -0.24044476449489594, -0.20340092480182648, -0.011350572109222412, -0.11853733658790588, 0.02534942328929901, -0.23385952413082123, -0.25894415378570557, 0.4140233099460602, -0.39030611515045166, -0.05178716778755188, -0.20633870363235474, -0.1757088303565979, -0.2596440315246582, -0.1164499968290329, 0.01217338815331459, 0.0868629440665245, 0.07211123406887054, 0.6109398603439331, -0.2037319540977478, -0.15891709923744202, -0.456335186958313, -0.3336656391620636, -0.06745751947164536, 0.013048306107521057, -0.33015257120132446, 0.08816324174404144, 0.2974458932876587, -0.182451993227005, -0.184207484126091, 0.3558039963245392, 0.36322471499443054, 0.17264734208583832, -0.2810918688774109, 0.060784369707107544, 0.039595626294612885, 0.04630719870328903, 0.11979150027036667, 0.019387591630220413, 0.2255721241235733, 0.009945116937160492, -0.16760483384132385, 0.164151132106781, -0.2100360244512558, 0.05123664438724518, 0.013987928628921509, -0.05341612920165062, -0.19558262825012207, -0.11375750601291656, -0.020223181694746017, 0.10578075051307678, 0.09678176045417786, -0.15490487217903137, 0.08605694770812988, 0.3396829068660736, -0.17654097080230713, -0.015124734491109848, 0.1682719588279724, -0.20413604378700256, -0.05459623038768768, 0.5798853635787964, -0.3019779324531555, -0.10885271430015564, 0.39874008297920227, 0.033433981239795685, -0.0022550299763679504, -0.14963719248771667, 0.11928598582744598, 0.4620960056781769, -0.765127956867218, 0.06413447856903076, 0.08188698440790176, 0.04671904444694519, 0.09989041090011597, 0.1696164906024933, 0.3279043436050415, -0.17383699119091034, 0.059994980692863464, -0.24816487729549408, -0.43555188179016113, 0.3564049005508423, -0.13473983108997345, 0.13676533102989197, -0.34098225831985474, -0.0871531292796135, -0.09298811852931976, 0.21712444722652435, -0.28407180309295654, 0.14340510964393616, -0.28328782320022583, -0.11818352341651917, -0.072336345911026, -0.12729965150356293, 0.3977063000202179, -0.06969030201435089, -0.0448787547647953, 0.06672833859920502, -0.41740888357162476, -0.11436164379119873, -0.17390689253807068, 0.12881416082382202, -0.1347733736038208, 0.13337218761444092, -0.06167596951127052, 0.21458721160888672, 0.07326842844486237, -0.1694597750902176, 0.11978359520435333, 0.21725627779960632, 0.0872650295495987, 0.07291284203529358, -0.030087392777204514, 0.09658343344926834, -0.12265022844076157, 0.24553728103637695, 0.16510657966136932, -0.14881631731987, -0.07610098272562027, 0.020768476650118828, -0.31272196769714355, -0.09151682257652283, 0.16888032853603363, 0.10587961971759796, -0.17905807495117188, 0.14020764827728271, 0.13608410954475403, -0.09079685807228088, -0.30477413535118103, -0.21883508563041687, 0.40041425824165344, 0.12397187948226929, -0.17871861159801483, 0.06963735073804855, -0.05657092481851578, 0.13275058567523956, -0.08524299412965775, 0.31964409351348877, 0.09535512328147888, 0.3395169675350189, 0.135704904794693, 0.2389124184846878, 0.14464297890663147, -0.05259304493665695, 0.07869182527065277, 0.1679391711950302, -0.06463519483804703, -0.10238039493560791, 0.3450416922569275, -0.16041891276836395, 0.005042776465415955, 0.2077208161354065, 0.5121742486953735, 0.17642179131507874, 0.0708957239985466, 0.04355967789888382, -0.061132073402404785, 0.22626560926437378, -0.1423233598470688, 0.2956947684288025, -0.11363427340984344, -0.27593377232551575, -0.14247828722000122, 0.031171366572380066, -0.009072091430425644, -0.23273298144340515, -0.4316946566104889, 0.7024192810058594, -0.2806924879550934, -0.32129761576652527, -0.16677352786064148, 0.1408960521221161, -0.13209252059459686, -0.20296500623226166, -0.11449863016605377, -0.1392986923456192, -0.19084644317626953, -0.18482515215873718, 0.22906827926635742, -0.013292521238327026, 0.06347091495990753, 0.14398536086082458, 0.08353802561759949, -0.28047147393226624, -0.48558732867240906, 0.1773281693458557, 0.14256596565246582, -0.04154600575566292, 0.06290019303560257, 0.14360438287258148, -0.17079898715019226, 0.17580756545066833, 0.6104491949081421, 0.29044249653816223, 0.04359714686870575, -0.13938841223716736, 0.23933717608451843, 0.2593466639518738, -0.049691371619701385, -0.13222911953926086, 0.1564972698688507, 0.2695862948894501, -0.47440946102142334, 0.046650372445583344, 0.08541670441627502, -0.14472128450870514, 0.3480510711669922, -0.3163053095340729, 0.3591747581958771, -0.1538485437631607, 0.3500990867614746, -0.23644374310970306, 0.1475697159767151, -0.13085120916366577, -0.10094383358955383, -0.7179360389709473, 0.18951407074928284, -0.1232709288597107, 0.09288766980171204, 0.07198284566402435, -0.34842053055763245, 0.04713357612490654, -0.10727232694625854, 0.21449464559555054, 0.4300645589828491, 0.1629478633403778, -0.28521156311035156, -0.3108717203140259, -0.34765076637268066, 0.2463075816631317, 0.07309745252132416, 0.2230473756790161, -0.17706263065338135, 0.4440939128398895, -0.1031215637922287, 0.09222737699747086, 0.24108204245567322, 0.1612480729818344, -0.09699354320764542, 0.052456047385931015, -0.481361448764801, 0.166090190410614, -0.17895230650901794, -0.05624103173613548, 0.08141888678073883, 0.25357484817504883, -0.12289683520793915, -0.12917469441890717, 0.02049907296895981, 0.1910952776670456, -0.24187669157981873, -0.2137034684419632, 0.16134613752365112, 0.595405101776123, 0.172268345952034, 0.12852023541927338, 0.06850317120552063, -0.14167535305023193, -0.3088627755641937, -0.2423846274614334, 0.006213709712028503, 0.08711166679859161, -0.17132723331451416, 0.34399083256721497, -0.2581760883331299, -0.4227481186389923, -0.37955522537231445, 0.38926470279693604, 0.13249081373214722, -0.15348364412784576, -0.1188778281211853, 0.3110211491584778, -0.0710715651512146, 0.06518404185771942, 0.18139785528182983, 0.27379339933395386, -0.09742078185081482, 0.33291691541671753, -0.31576821208000183, -0.1971636861562729, 0.6771654486656189, -0.3671153783798218, 0.2805624306201935, -0.2694845199584961, 0.5114609599113464, 0.33682698011398315, -0.3409712314605713, -0.3263530135154724, 0.1121220588684082, 0.08076974004507065, 0.04198097437620163, -0.10847870260477066, 0.15342295169830322, -0.34552061557769775, 0.03237199783325195, -0.12154495716094971, 0.30723294615745544, 0.15464824438095093, 0.17467281222343445, 0.06775341928005219, -0.15501168370246887 ]
https://github.com/huggingface/datasets/issues/1942
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?
[experiment] missing default_experiment-1-0.arrow
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 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. 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?
[ 0.24744877219200134, 0.05092683434486389, 0.054808519780635834, 0.21402336657047272, 0.11529041826725006, 0.18768949806690216, 0.22765082120895386, 0.33815863728523254, 0.24619963765144348, 0.10040487349033356, 0.16332606971263885, 0.12003037333488464, -0.3513065278530121, -0.17235609889030457, 0.09936851263046265, -0.027356479316949844, 0.10812843590974808, -0.037812490016222, -0.231716126203537, -0.16497433185577393, -0.25259876251220703, 0.5168858766555786, -0.08084277808666229, 0.09388072788715363, -0.564119815826416, 0.2315034717321396, -0.16013894975185394, 0.24394144117832184, -0.04344895854592323, -0.5871254205703735, 0.3680899739265442, 0.11987151205539703, -0.06362926959991455, 0.506722092628479, -0.0001260310527868569, -0.11858682334423065, 0.25158777832984924, -0.1634838581085205, -0.24049091339111328, -0.130727618932724, -0.012982554733753204, -0.27894484996795654, 0.49156200885772705, -0.20365078747272491, 0.13523778319358826, -0.08423151075839996, 0.12144724279642105, -0.42598843574523926, 0.35127729177474976, 0.04313502460718155, 0.03662418574094772, 0.2477322220802307, -0.19899241626262665, -0.2882104516029358, 0.1527169644832611, -0.09240426868200302, 0.025272175669670105, 0.3664674162864685, -0.08361083269119263, -0.00948219746351242, -0.2560974955558777, 0.30512693524360657, 0.2019367218017578, -0.13740527629852295, 0.3521668612957001, 0.01504659652709961, -0.04265521094202995, -0.23013386130332947, 0.0013806717470288277, 0.2264510691165924, 0.23747025430202484, -0.1862584799528122, -0.22289618849754333, -0.053366854786872864, -0.08993740379810333, -0.2590973377227783, 0.22283540666103363, -0.05219051241874695, 0.06965893507003784, 0.14248126745224, 0.011555634438991547, -0.1976011097431183, 0.014812275767326355, -0.0037731919437646866, -0.10534884035587311, -0.005745701491832733, -0.15753808617591858, -0.015248525887727737, -0.05149595066905022, 0.19897469878196716, -0.3450109362602234, 0.3006661832332611, -0.048268597573041916, 0.2071722447872162, -0.22391216456890106, 0.04687415063381195, 0.19790032505989075, 0.11995291709899902, 0.04600144922733307, 0.4275062084197998, 0.022846445441246033, 0.026350636035203934, 0.41659125685691833, 0.09097781777381897, -0.10483037680387497, 0.46954044699668884, 0.34644392132759094, -0.06735110282897949, 0.08517573773860931, 0.1602269560098648, -0.1593470275402069, -0.2561870813369751, 0.12694862484931946, -0.22310461103916168, 0.27759161591529846, 0.09057451784610748, 0.01484566181898117, -0.40997645258903503, 0.0961337760090828, 0.3147747218608856, -0.2490139752626419, -0.23452910780906677, 0.08939597010612488, 0.3153010904788971, 0.25182676315307617, -0.004200231283903122, 0.18083998560905457, 0.2091759443283081, -0.2426619678735733, -0.050077542662620544, -0.39781996607780457, -0.10540671646595001, -0.22832132875919342, 0.3502310514450073, 0.05076366662979126, -0.13947227597236633, 0.700455367565155, -0.26050668954849243, 0.3893994390964508, -0.13972754776477814, 0.28263741731643677, 0.25333788990974426, 0.000768706202507019, 0.4032488465309143, -0.08812473714351654, 0.21159374713897705, 0.3516606390476227, 0.051488541066646576, -0.18926644325256348, -0.2525213658809662, -0.23737694323062897, -0.5181609988212585, 0.0860113874077797, -0.02841007709503174, -0.5039558410644531, 0.23909892141819, 0.4408910274505615, 0.1475692093372345, -0.02927330508828163, -0.137420654296875, 0.2848834693431854, 0.09872737526893616, 0.017405852675437927, -0.1247296929359436, 0.3923790454864502, 0.7586102485656738, -0.22842323780059814, -0.4756801128387451, 0.10442547500133514, -0.011790888383984566, -0.054339200258255005, 0.1477324664592743, -0.029107894748449326, 0.2321290373802185, -0.2840012311935425, 0.14211544394493103, 0.36685827374458313, -0.36095964908599854, -0.3620801568031311, -0.010618902742862701, -0.3919944167137146, -0.1379082053899765, 0.1821039319038391, 0.01609720289707184, 0.07284165173768997, 0.14381298422813416, 0.12581905722618103, -0.3850253224372864, 0.1877112090587616, -0.42153027653694153, -0.34677428007125854, -0.18966375291347504, -0.030479922890663147, -0.10466808080673218, 0.2787400186061859, 0.03704042732715607, 0.011154470965266228, 0.10090968012809753, 0.10363048315048218, 0.1744164526462555, 0.17486295104026794, 0.2626432776451111, 0.2613893449306488, 0.16206370294094086, 0.22220100462436676, 0.19308114051818848, -0.3110490143299103, 0.23779000341892242, -0.3628160357475281, -0.01763116382062435, 0.1102190911769867, -0.07321346551179886, -0.13981810212135315, -0.2352028489112854, -0.12443628907203674, -0.5270229578018188, -0.04629534110426903, -0.03606623411178589, 0.11838532239198685, 0.12279865145683289, -0.27263665199279785, 0.14731280505657196, -0.058788739144802094, 0.3274551033973694, -0.5532152056694031, 0.03203969448804855, 0.027866194024682045, -0.1970098614692688, -0.22579888999462128, 0.10934410244226456, -0.002599158324301243, 0.02326791360974312, -0.09750601649284363, 0.3807028532028198, -0.049936603754758835, 0.18320609629154205, 0.5586860179901123, 0.35411685705184937, -0.14207378029823303, -0.34817343950271606, 0.015895171090960503, 0.0016876012086868286, -0.1003439724445343, -0.0012896209955215454, -0.23879435658454895, 0.376533567905426, 0.13484761118888855, 0.13487836718559265, -0.36140942573547363, 0.276176780462265, -0.2093583047389984, -0.12332228571176529, -0.5444702506065369, -0.13534857332706451, 0.4068959653377533, -0.24760647118091583, 0.30684417486190796, -0.012320722453296185, 0.0024224594235420227, 0.030455296859145164, 0.14193114638328552, 0.04834434390068054, 0.04297596961259842, 0.008162773214280605, -0.23778977990150452, -0.05338490754365921, -0.02781120128929615, 0.0037662461400032043, 0.4933542311191559, 0.16628050804138184, 0.2230537235736847, 0.014451691880822182, 0.16779972612857819, -0.2444671392440796, 0.09016311168670654, 0.17396897077560425, -0.22108960151672363, 0.10150803625583649, 0.13787077367305756, 0.20834743976593018, -0.29465216398239136, -0.050339337438344955, -0.23480172455310822, 0.031877174973487854, -0.3016399145126343, 0.15123394131660461, -0.1539791226387024, 0.3830912709236145, 0.09869673103094101, -0.021069850772619247, -0.23647728562355042, -0.3332991600036621, 0.27751344442367554, -0.3183351755142212, -0.02702914923429489, 0.200596421957016, -0.38426631689071655, 0.6387851238250732, 0.018266692757606506, 0.016717353835701942, -0.28896912932395935, -0.08552557229995728, 0.012828288599848747, -0.21425046026706696, -0.14120960235595703, 0.026861287653446198, 0.08175233751535416, -0.2668956220149994, 0.06156335771083832, -0.1273283064365387, -0.4955731928348541, 0.05122305080294609, -0.016166215762495995, 0.6132106184959412, 0.2828388810157776, 0.03914976119995117, -0.34472960233688354, 0.06201200559735298, 0.28750938177108765, -0.26824426651000977, -0.37988558411598206, 0.04509808123111725, 0.05126884952187538, 0.23671528697013855, -0.3826584815979004, -0.3334692418575287, 0.15065041184425354, -0.3048088848590851, 0.5795779228210449, -0.07841406017541885, -0.010553408414125443, -0.12363263964653015, -0.13485565781593323, 0.22295086085796356, -0.34937337040901184, 0.27141398191452026, -0.3231596052646637, -0.7829339504241943, 0.409044086933136, -0.08613647520542145, -0.04923912510275841, 0.038975268602371216, 0.08901969343423843, 0.31415408849716187, -0.1025538519024849, -0.7185190320014954, -0.4109577238559723, 0.058769747614860535, 0.1837124079465866, -0.04234828054904938, 0.06456673890352249, 0.4620446562767029, -0.0869351327419281, -0.011390749365091324, -0.12593066692352295, -0.16659283638000488, 0.4881490468978882, -0.12382788956165314, 0.18694236874580383, -0.1846833974123001, 0.32117173075675964, 0.1527523696422577, 1.0194028615951538, 0.5859875082969666, 0.3531096279621124, 0.1362784057855606, 0.24889463186264038, 0.43302226066589355, -0.1152086853981018, -0.08475589752197266, 0.22512073814868927, 0.24764704704284668, -0.1349826604127884, 0.30659782886505127, 0.22314907610416412, 0.1870109736919403, -0.033317696303129196, 0.009336262941360474, -0.31775158643722534, -0.294136106967926, -0.004986580461263657, -0.14030539989471436, 0.2279345840215683, -0.07697455585002899, 0.17447346448898315, -0.18482890725135803, 0.07692434638738632, 0.3933352530002594, 0.5813072919845581, 0.3059708774089813, 0.2613007128238678, -0.1821737289428711, -0.1309935748577118, -0.5380687117576599, 0.1992972493171692, -0.44580069184303284, 0.09428094327449799, -0.22952304780483246, -0.31283891201019287, 0.21122361719608307, 0.1381264626979828, 0.5694955587387085, 0.18334494531154633, -0.2201475203037262, 0.05761294066905975, -0.15685716271400452, -0.23159655928611755, -0.15777632594108582, -0.004672713577747345, 0.06729653477668762, 0.2795845866203308, 0.39410316944122314, -0.39059993624687195, -0.30817854404449463, -0.12428160756826401, -0.10549040138721466, -0.3238489627838135, -0.27971240878105164, -0.2802342474460602, 0.023575082421302795, -0.09014301747083664, 0.06846094876527786, -0.20819012820720673, -0.08287680149078369, 0.017026551067829132, 0.11131595075130463, -0.03799302875995636, -0.08760087192058563, 0.15825743973255157, 0.07453085482120514, 0.29489070177078247, -0.23377148807048798, 0.14380955696105957, 0.5626403093338013, -0.055148329585790634, 0.05035529285669327, 0.455011248588562, -0.024470113217830658, -0.006120987236499786, 0.3603448271751404, -0.15289950370788574, 0.3670765161514282, 0.6862478852272034, -0.1970185935497284, 0.14562267065048218, 0.06505833566188812, 0.3557296395301819, -0.07406385242938995, -0.0981433093547821, 0.3586217164993286, -0.12248501181602478, 0.3750060200691223, 0.14543341100215912, 0.2473684400320053, 0.24308228492736816, -0.1910925656557083, 0.3061971068382263, 0.10862258076667786, -0.1157655119895935, 0.3354496359825134, 0.015060413628816605, 1.0408425331115723, 0.24469594657421112, 0.24995777010917664, 0.07146239280700684, 0.13124874234199524, 0.3983025550842285, 0.06466488540172577, 0.046755146235227585, -0.11987785995006561, -0.1944514960050583, -0.013267360627651215, -0.19407370686531067, -0.028272029012441635, -0.29230180382728577, -0.18565092980861664, 0.4099215865135193, -0.49293404817581177, -0.15507471561431885, -0.11956923454999924, -0.3021264672279358, -0.2614346742630005, -0.07505881786346436, 0.1547849476337433, -0.04126032441854477, 0.12928110361099243, 0.5553106665611267, -0.2514212429523468, -0.223262757062912, -0.33351072669029236, -0.2589263617992401, -0.1489756852388382, -0.21118927001953125, -0.1891939342021942, -0.023680375888943672, 0.3486911952495575, -0.15951567888259888, -0.15130063891410828, 0.2677077651023865, 0.39712440967559814, 0.07553526759147644, -0.30200403928756714, 0.06383125483989716, 0.16803228855133057, 0.008561957627534866, 0.06534988433122635, 0.034045830368995667, 0.3502122461795807, 0.0003312826156616211, 0.05111810564994812, 0.02497301809489727, -0.3353208899497986, 0.04922080039978027, -0.07945717871189117, -0.08356417715549469, -0.052629511803388596, -0.07556135207414627, 0.02676418423652649, 0.20421478152275085, -0.09683595597743988, -0.1874864548444748, 0.03314666077494621, 0.3781019151210785, -0.19608023762702942, -0.029933858662843704, 0.12115852534770966, -0.34346580505371094, -0.056023236364126205, 0.4342232346534729, -0.1925753951072693, -0.11954488605260849, 0.5066858530044556, -0.06454361975193024, -0.1223665177822113, -0.07415582239627838, 0.11448007822036743, 0.44301435351371765, -0.7368451952934265, 0.07671955227851868, 0.024228356778621674, 0.027922213077545166, 0.0765301063656807, -0.00715450756251812, 0.501512885093689, -0.19891008734703064, -0.24115526676177979, -0.21570372581481934, -0.3882724642753601, 0.3828386068344116, -0.3040483891963959, 0.13248440623283386, -0.6194872260093689, 0.059452202171087265, -0.05397578328847885, 0.12967896461486816, -0.2124767154455185, 0.210917130112648, -0.24375849962234497, -0.11705996841192245, -0.07463961094617844, 0.03466197848320007, 0.2913798391819, -0.056514449417591095, -0.13331952691078186, 0.02865021303296089, -0.38477686047554016, -0.051719341427087784, -0.1915149688720703, 0.18993836641311646, -0.10815329849720001, 0.24422776699066162, 0.00667344406247139, 0.3041708767414093, 0.0198463574051857, -0.05837734788656235, 0.010110639035701752, 0.25714111328125, 0.12796112895011902, 0.18519845604896545, 0.14323018491268158, 0.24807262420654297, -0.07290790230035782, 0.20494134724140167, 0.17639093101024628, -0.10004980862140656, -0.10002145171165466, -0.10397280752658844, -0.42858627438545227, -0.08489520102739334, 0.15666815638542175, 0.18530188500881195, -0.3170945644378662, 0.09997113049030304, 0.061854034662246704, 0.017346953973174095, -0.23536072671413422, 0.040374819189310074, 0.21114827692508698, 0.2245331108570099, -0.20505177974700928, 0.06447023153305054, -0.008453041315078735, 0.05217043310403824, 0.02298443764448166, 0.23037856817245483, -0.05529147386550903, 0.4240313470363617, -0.02684222161769867, 0.2237040102481842, 0.16702178120613098, -0.1279318928718567, 0.1427684873342514, 0.19890205562114716, -0.03726419806480408, -0.04335763305425644, 0.33801883459091187, -0.034877628087997437, 0.10343774408102036, 0.34327709674835205, 0.5569770336151123, 0.15409891307353973, 0.09348922222852707, -0.09546494483947754, 0.0071914587169885635, 0.2507786154747009, -0.09002763032913208, 0.25822603702545166, -0.27936503291130066, -0.1373145580291748, -0.22105485200881958, 0.17378512024879456, 0.051568906754255295, -0.14024877548217773, -0.38821396231651306, 0.8121157884597778, -0.1609298288822174, -0.2608855962753296, -0.0700841173529625, 0.12496451288461685, -0.16191944479942322, -0.15662263333797455, -0.11974683403968811, -0.18427136540412903, -0.12533211708068848, -0.1607535183429718, 0.22836297750473022, -0.006296001374721527, 0.14276628196239471, 0.06524670124053955, -0.03985431045293808, -0.10749667137861252, -0.43682125210762024, 0.272535115480423, 0.22840765118598938, -0.20359578728675842, 0.029751533642411232, 0.1274765431880951, -0.25280478596687317, 0.24953649938106537, 0.5566772818565369, 0.20992986857891083, -0.005962729454040527, -0.116363525390625, -0.0035181455314159393, 0.28830966353416443, -0.020212285220623016, -0.0466434508562088, 0.24021108448505402, 0.1830730140209198, -0.6153119802474976, -0.06216486543416977, 0.008608963340520859, -0.10766543447971344, 0.3888005316257477, -0.20842494070529938, 0.3229672610759735, -0.19215451180934906, 0.35304519534111023, -0.26911821961402893, 0.09267307817935944, 0.058544307947158813, -0.09182848036289215, -0.7468353509902954, 0.2137385606765747, -0.13593608140945435, 0.01622173562645912, 0.03304004296660423, -0.24746377766132355, 0.015221647918224335, -0.09553146362304688, 0.18054813146591187, 0.5530499815940857, 0.05326874181628227, -0.3335351049900055, -0.30677279829978943, -0.48266980051994324, 0.27090272307395935, 0.14466601610183716, 0.43359726667404175, -0.022839058190584183, 0.3380471467971802, -0.06302712857723236, -0.016166511923074722, 0.24614237248897552, -0.08552075922489166, -0.16110366582870483, 0.004001382738351822, -0.5652291178703308, 0.17199917137622833, 0.0195850171148777, -0.002538444474339485, 0.10010205954313278, 0.292696475982666, 0.020759502425789833, -0.2334728091955185, -0.09144728630781174, 0.25844311714172363, -0.21125930547714233, -0.0553380586206913, 0.35319575667381287, 0.4249582290649414, 0.07210905104875565, 0.03599584102630615, 0.030497021973133087, -0.19941633939743042, -0.2580091655254364, -0.14203175902366638, -0.041122809052467346, -0.14569003880023956, -0.29330918192863464, 0.3412894904613495, -0.46888601779937744, -0.43925410509109497, -0.2739019989967346, 0.25398412346839905, 0.09472081065177917, -0.1432620733976364, -0.3065037131309509, 0.3340899348258972, -0.2120441496372223, 0.015996776521205902, 0.3520700931549072, 0.38275814056396484, 0.03403817117214203, 0.2756767272949219, -0.36476925015449524, -0.11414626240730286, 0.79948490858078, -0.5541845560073853, 0.24261024594306946, -0.1927601844072342, 0.3955247104167938, 0.5046324729919434, -0.35080966353416443, -0.42241162061691284, -0.09678058326244354, 0.1382526159286499, 0.05504124239087105, -0.2188420295715332, 0.14419403672218323, -0.46639010310173035, -0.07431337982416153, -0.028897404670715332, 0.26519715785980225, 0.16106325387954712, 0.05470925569534302, 0.03757330775260925, -0.19372986257076263 ]
https://github.com/huggingface/datasets/issues/1942
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
[experiment] missing default_experiment-1-0.arrow
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 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. 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
[ 0.09786514937877655, 0.0017493367195129395, 0.1070125550031662, 0.1418972611427307, -0.0015060333535075188, 0.035928577184677124, 0.24486035108566284, 0.2713266909122467, 0.20910906791687012, 0.12138563394546509, 0.16886939108371735, 0.13612022995948792, -0.3981265723705292, -0.041328076273202896, 0.06575778126716614, 0.07755544781684875, 0.021228667348623276, -0.03959235921502113, -0.3166533410549164, -0.18077915906906128, -0.256591260433197, 0.5491788387298584, -0.11920115351676941, 0.00937589630484581, -0.5109116435050964, 0.23071593046188354, -0.2306174784898758, 0.2772120237350464, -0.027478111907839775, -0.5815616846084595, 0.3894340693950653, 0.12153629958629608, 0.047855593264102936, 0.47886377573013306, -0.00012740454985760152, -0.16634562611579895, 0.15728071331977844, -0.18699616193771362, -0.1530372053384781, -0.13628289103507996, 0.030532628297805786, -0.29679328203201294, 0.5233108997344971, -0.23394086956977844, 0.0798516497015953, -0.028846237808465958, 0.10235415399074554, -0.29979556798934937, 0.43832218647003174, 0.06246769800782204, 0.04676052927970886, 0.30752450227737427, -0.03421174734830856, -0.25703227519989014, 0.07026484608650208, -0.0924270749092102, 0.0015265941619873047, 0.3444686233997345, -0.20508944988250732, 0.09210038185119629, -0.20546826720237732, 0.23644882440567017, 0.24739551544189453, -0.15462298691272736, 0.26574698090553284, 0.020190827548503876, -0.06409870833158493, -0.13878154754638672, -0.09492049366235733, 0.3408108353614807, 0.192848339676857, -0.15215957164764404, -0.23427914083003998, 0.05924297869205475, -0.1122283861041069, -0.3646719455718994, 0.20424014329910278, -0.0701381266117096, 0.1202768087387085, 0.14263424277305603, 0.06805192679166794, -0.18239323794841766, -0.047196164727211, 0.07076264917850494, -0.15211036801338196, 0.04075649380683899, -0.14040248095989227, 0.020655030384659767, -0.040888529270887375, 0.18274477124214172, -0.41133034229278564, 0.3544475734233856, 0.011547675356268883, 0.12679947912693024, -0.3444465100765228, 0.11681148409843445, 0.24347546696662903, 0.02826230227947235, 0.04633651673793793, 0.4056181311607361, -0.05803729221224785, 0.019938744604587555, 0.39591217041015625, 0.1504533588886261, -0.07844120264053345, 0.4660254716873169, 0.23614491522312164, 0.016870610415935516, 0.1764596551656723, 0.1849360466003418, -0.21156297624111176, -0.26384803652763367, 0.13658078014850616, -0.2362142950296402, 0.42817223072052, 0.11228771507740021, 0.1105806976556778, -0.43199586868286133, 0.162894144654274, 0.2799922823905945, -0.14371606707572937, -0.1873987466096878, 0.0960945412516594, 0.3751060366630554, 0.17447496950626373, 0.0033348146826028824, 0.2302558273077011, 0.3915506601333618, -0.215375155210495, 0.00765325129032135, -0.39049580693244934, -0.21056205034255981, -0.054018739610910416, 0.30261287093162537, 0.13563089072704315, -0.11259683221578598, 0.6726791262626648, -0.20448695123195648, 0.4261625409126282, -0.0901327133178711, 0.32853278517723083, 0.21198025345802307, 0.06454210728406906, 0.3416902422904968, -0.0264645554125309, 0.21238626539707184, 0.289643794298172, 0.14808741211891174, -0.23938781023025513, -0.27585524320602417, -0.1812230348587036, -0.5380876660346985, 0.0798787921667099, -0.0424434170126915, -0.4659706950187683, 0.17925113439559937, 0.4528219699859619, 0.14641553163528442, -0.10152161866426468, -0.3035165071487427, 0.20090506970882416, -0.009810085408389568, -0.008477568626403809, -0.15026967227458954, 0.5102128982543945, 0.6958426237106323, -0.3465331792831421, -0.38049283623695374, 0.03678211197257042, 0.0076953694224357605, -0.005418442189693451, 0.26110565662384033, 0.03632307052612305, 0.16937771439552307, -0.3158250153064728, 0.1305023580789566, 0.3877381682395935, -0.33735525608062744, -0.45686963200569153, -0.06797416508197784, -0.36832496523857117, -0.11104658246040344, 0.1929326057434082, 0.01339908316731453, 0.1307077258825302, 0.1547207087278366, 0.03008897602558136, -0.2190198004245758, 0.2606109380722046, -0.3739929497241974, -0.35691124200820923, -0.2306002676486969, 0.0067294929176568985, -0.09209194779396057, 0.3358701765537262, 0.017614975571632385, 0.07479560375213623, 0.022998131811618805, 0.08267761766910553, 0.07520319521427155, 0.16263608634471893, 0.278436541557312, 0.33723586797714233, 0.100065678358078, 0.26613739132881165, 0.14856693148612976, -0.20923051238059998, 0.23498493432998657, -0.41469234228134155, 0.07084555923938751, 0.1174754872918129, 0.0061448439955711365, -0.11547651886940002, -0.20347321033477783, -0.09051141142845154, -0.41775429248809814, -0.05472227931022644, -0.04951927065849304, 0.21095378696918488, 0.24935469031333923, -0.1767958700656891, 0.038982562720775604, 0.0869969055056572, 0.2594941258430481, -0.4751545786857605, 0.010341361165046692, -0.09471739083528519, -0.3357907235622406, -0.06531601399183273, 0.1485406458377838, 0.010867174714803696, 0.03543222323060036, -0.1438516080379486, 0.37106961011886597, -0.17246674001216888, 0.2730034589767456, 0.4506235718727112, 0.24153795838356018, -0.11968451738357544, -0.3655080199241638, 0.03258712589740753, 0.14244067668914795, -0.10885699093341827, 0.03634176403284073, -0.24517500400543213, 0.3829999566078186, 0.21202656626701355, 0.07134818285703659, -0.33594921231269836, 0.3146030604839325, -0.07403530180454254, -0.098776675760746, -0.4815728962421417, -0.12808237969875336, 0.3917377293109894, -0.238181471824646, 0.241021990776062, -0.10555582493543625, 0.010551363229751587, 0.00256207212805748, 0.24971598386764526, 0.0799555778503418, 0.2332524061203003, 0.0780290812253952, -0.22277039289474487, -0.09491525590419769, 0.01848498173058033, -0.13007467985153198, 0.4450003504753113, 0.19067853689193726, 0.22785592079162598, 0.05384727567434311, 0.10525527596473694, -0.188812717795372, 0.10541117191314697, -0.011707223951816559, -0.16059525310993195, 0.12855291366577148, 0.21713542938232422, 0.21080338954925537, -0.28927579522132874, -0.13941191136837006, -0.4038008153438568, -0.03915940970182419, -0.3721092939376831, 0.07993385195732117, -0.25866347551345825, 0.4104158282279968, 0.18365831673145294, 0.17344743013381958, -0.2760927081108093, -0.3279845118522644, 0.24312768876552582, -0.29011714458465576, -0.055871449410915375, 0.23728471994400024, -0.34060966968536377, 0.5479471683502197, 0.1450071930885315, -0.20626255869865417, -0.29597699642181396, -0.13401289284229279, -0.09421544522047043, -0.2200794517993927, -0.2425163984298706, 0.09892202913761139, 0.10372294485569, -0.17250235378742218, 0.037233397364616394, -0.013778546825051308, -0.4823436141014099, 0.0696524977684021, 0.05114138871431351, 0.6196214556694031, 0.3521493673324585, 0.08152981102466583, -0.3057152330875397, 0.08349695801734924, 0.4136028289794922, -0.4095364212989807, -0.26881110668182373, 0.1824415773153305, 0.04347795248031616, 0.21138983964920044, -0.2620837986469269, -0.36174440383911133, 0.0265495702624321, -0.2976147532463074, 0.6853887438774109, 0.09610936045646667, -0.03407993167638779, -0.16203507781028748, -0.06332474946975708, 0.17374926805496216, -0.3233643174171448, 0.38059094548225403, -0.29307863116264343, -0.6595554351806641, 0.5047426223754883, -0.10251787304878235, -0.21881738305091858, -0.003695741295814514, 0.05864846706390381, 0.3344171643257141, -0.08944706618785858, -0.6739203929901123, -0.42967909574508667, 0.006740186363458633, 0.26610279083251953, -0.025428159162402153, 0.11975819617509842, 0.525269627571106, -0.08392015099525452, 0.013743162155151367, -0.0674874484539032, -0.20236465334892273, 0.5829996466636658, -0.0621240958571434, 0.13757997751235962, -0.08253102004528046, 0.3729037642478943, 0.12414216995239258, 0.9117966294288635, 0.4719630479812622, 0.35362929105758667, 0.24570022523403168, 0.09200063347816467, 0.38131946325302124, -0.14793580770492554, -0.11292523145675659, 0.3361160159111023, 0.23271769285202026, -0.15896658599376678, 0.24377001821994781, 0.1992550790309906, 0.1921728253364563, -0.06088642030954361, -0.07306231558322906, -0.38637131452560425, -0.3076613247394562, -0.032532934099435806, -0.04715544730424881, 0.23210342228412628, -0.0069956108927726746, 0.042478471994400024, -0.22808091342449188, 0.0112631656229496, 0.4220140278339386, 0.43126794695854187, 0.23228853940963745, 0.23787590861320496, -0.14411751925945282, 0.058937326073646545, -0.573026716709137, 0.27346929907798767, -0.5298240184783936, 0.08324743807315826, -0.22065487504005432, -0.3305585980415344, 0.15100622177124023, 0.04135679453611374, 0.5898937582969666, 0.17789509892463684, -0.13995209336280823, -0.07258907705545425, -0.20021864771842957, -0.4257739782333374, -0.15236252546310425, -0.1288875788450241, -0.11714351922273636, 0.3681681752204895, 0.3341633677482605, -0.39901629090309143, -0.14824196696281433, -0.13284125924110413, -0.0242103673517704, -0.28090980648994446, -0.36429378390312195, -0.299569308757782, 0.0558415949344635, -0.21094994246959686, 0.07945208996534348, -0.26781725883483887, -0.04501404985785484, 0.05151500552892685, 0.03768737614154816, -0.16772159934043884, -0.1312994360923767, 0.02001544088125229, 0.07444179058074951, 0.3540906310081482, -0.3674110174179077, 0.15729692578315735, 0.4705129861831665, -0.0993364229798317, 0.03395748883485794, 0.3758528232574463, 0.038675907999277115, 0.007548287510871887, 0.32316136360168457, -0.16325481235980988, 0.2435811460018158, 0.5914889574050903, -0.3155205547809601, 0.04857761040329933, 0.0017068013548851013, 0.4769367277622223, -0.1545538604259491, -0.1676846146583557, 0.37433600425720215, -0.18517570197582245, 0.39947259426116943, 0.2172228991985321, 0.14657220244407654, 0.23074518144130707, -0.14254556596279144, 0.21369968354701996, 0.09214471280574799, -0.14866472780704498, 0.4187478721141815, -0.019174352288246155, 1.0156922340393066, 0.20735383033752441, 0.28270018100738525, 0.13291913270950317, 0.17721621692180634, 0.45914801955223083, 0.10795019567012787, 0.055626001209020615, -0.2091245949268341, -0.29299435019493103, 0.0010577961802482605, -0.14981049299240112, -0.08077256381511688, -0.23135434091091156, -0.2762811481952667, 0.4570982754230499, -0.38542938232421875, -0.16031937301158905, -0.19623255729675293, -0.22333353757858276, -0.31734415888786316, -0.10513880848884583, 0.08479240536689758, -0.038976117968559265, 0.14872339367866516, 0.547158420085907, -0.22262898087501526, -0.17681118845939636, -0.3493131399154663, -0.38772886991500854, -0.12658356130123138, -0.03375592827796936, -0.20985905826091766, 0.031123455613851547, 0.3574778437614441, -0.11901004612445831, -0.20992162823677063, 0.2792098820209503, 0.34869930148124695, 0.14780695736408234, -0.32862380146980286, -0.05365800857543945, 0.1387411206960678, 0.06931570172309875, 0.11348830163478851, -0.016283128410577774, 0.28633642196655273, -0.0592636838555336, -0.020608946681022644, 0.013944047503173351, -0.2617380619049072, 0.0625099241733551, 0.062312766909599304, -0.17639069259166718, -0.20896050333976746, -0.04637693986296654, -0.02780892513692379, 0.09018151462078094, -0.04935223236680031, -0.20617704093456268, 0.03017481043934822, 0.3500422239303589, -0.23814332485198975, 0.07578440010547638, 0.194808691740036, -0.25368112325668335, -0.10465091466903687, 0.5353072285652161, -0.28396591544151306, -0.040486566722393036, 0.5257982611656189, 0.05214480310678482, -0.07392658293247223, -0.08796656876802444, 0.12314523756504059, 0.3842417597770691, -0.8295773267745972, 0.06232133507728577, -0.014783244580030441, 0.020647838711738586, 0.09306469559669495, 0.09818997979164124, 0.4433169364929199, -0.1498861163854599, -0.13712356984615326, -0.2625294029712677, -0.29951757192611694, 0.29502755403518677, -0.34774476289749146, 0.1463388353586197, -0.439057856798172, 0.0171235091984272, -0.142235666513443, 0.19405187666416168, -0.22373370826244354, 0.1365993320941925, -0.2280646562576294, -0.1690291166305542, -0.10428419709205627, -0.04424450919032097, 0.3885761499404907, -0.03314255177974701, -0.08409008383750916, 0.08145706355571747, -0.3113950788974762, -0.028935782611370087, -0.23613832890987396, 0.1762453317642212, -0.15209506452083588, 0.15426722168922424, -0.021332085132598877, 0.24183300137519836, -0.025644445791840553, -0.1351260542869568, 0.019991226494312286, 0.17463383078575134, 0.08195751905441284, 0.18295010924339294, 0.10141511261463165, 0.1096101775765419, -0.13104256987571716, 0.22930017113685608, 0.08278734982013702, -0.20016826689243317, -0.09072090685367584, 0.04416428133845329, -0.4078599810600281, -0.051729150116443634, 0.1881529837846756, 0.15266771614551544, -0.2726954519748688, 0.18537700176239014, 0.09128578007221222, -0.0026345616206526756, -0.30781060457229614, 0.0038793832063674927, 0.47025084495544434, 0.1285601109266281, -0.20488716661930084, 0.007432080805301666, -0.017101237550377846, 0.05226641148328781, -0.10663707554340363, 0.2567213177680969, 0.08002716302871704, 0.40848612785339355, -0.05406206473708153, 0.2842748165130615, 0.1380121260881424, -0.08002623915672302, 0.09523272514343262, 0.2558293640613556, -0.07375574856996536, -0.1462479829788208, 0.36566847562789917, -0.07033561170101166, 0.07684804499149323, 0.3500857651233673, 0.47741395235061646, 0.11019246280193329, 0.1348930150270462, -0.03434500843286514, -0.06223729997873306, 0.15862666070461273, -0.08707022666931152, 0.2827894985675812, -0.14436861872673035, -0.20006617903709412, -0.13749700784683228, 0.09462176263332367, 0.040701545774936676, -0.17436738312244415, -0.4197375774383545, 0.7717670202255249, -0.21964293718338013, -0.24264183640480042, -0.18698906898498535, 0.21876144409179688, -0.13129374384880066, -0.10288536548614502, -0.1330425888299942, -0.16275964677333832, -0.18819470703601837, -0.13699832558631897, 0.24130474030971527, 0.0748140811920166, 0.013571236282587051, 0.18319487571716309, 0.07792042195796967, -0.24016115069389343, -0.4097248315811157, 0.14712943136692047, 0.2348364293575287, -0.17239531874656677, 0.04436077922582626, 0.26969754695892334, -0.298866868019104, 0.18265856802463531, 0.6049940586090088, 0.31438472867012024, 0.018865447491407394, -0.10378941893577576, 0.11643234640359879, 0.27266085147857666, 0.010429874062538147, -0.12313532829284668, 0.14423340559005737, 0.24944517016410828, -0.4571603536605835, 0.045088283717632294, 0.0002659894526004791, -0.10976395010948181, 0.4263654053211212, -0.23725073039531708, 0.30661582946777344, -0.19230784475803375, 0.407646119594574, -0.17107093334197998, 0.10759541392326355, 0.04662467539310455, -0.1395915448665619, -0.738701581954956, 0.2041071653366089, -0.10148946195840836, 0.015131160616874695, 0.06889642775058746, -0.2466748058795929, 0.010789357125759125, -0.1486223191022873, 0.19654986262321472, 0.5074278712272644, 0.06303523480892181, -0.29217228293418884, -0.19248726963996887, -0.4941074252128601, 0.3129241466522217, 0.12778422236442566, 0.2551858723163605, -0.039415061473846436, 0.3570331633090973, -0.09034165740013123, 0.031094633042812347, 0.2803322970867157, -0.024328162893652916, -0.11024536937475204, 0.03344212844967842, -0.4978345036506653, 0.1731983870267868, -0.05183751881122589, -0.09609425812959671, 0.06452873349189758, 0.2707464098930359, -0.04463454335927963, -0.29148125648498535, -0.04362143948674202, 0.2637946307659149, -0.2875218987464905, -0.14535614848136902, 0.19273053109645844, 0.4304180145263672, 0.17271284759044647, 0.10352437943220139, -0.024154510349035263, -0.14476267993450165, -0.17577245831489563, -0.10067257285118103, -0.03856970742344856, -0.1139792874455452, -0.2793586254119873, 0.42396101355552673, -0.3997514247894287, -0.4653259515762329, -0.372726708650589, 0.31331372261047363, 0.04862382262945175, -0.13385015726089478, -0.2125532031059265, 0.35372504591941833, -0.15860424935817719, 0.016304444521665573, 0.2923787236213684, 0.2744099795818329, -0.012101486325263977, 0.3496609926223755, -0.29052361845970154, -0.18735051155090332, 0.7223866581916809, -0.523722231388092, 0.32367876172065735, -0.26649224758148193, 0.4198945164680481, 0.35440778732299805, -0.33504047989845276, -0.36007368564605713, -0.020265907049179077, 0.12779822945594788, 0.08860926330089569, -0.1551571786403656, 0.08907866477966309, -0.3894801437854767, -0.06166347116231918, 0.01640043407678604, 0.23974871635437012, 0.1686127781867981, -0.007857374846935272, -0.052272528409957886, -0.15975090861320496 ]
https://github.com/huggingface/datasets/issues/1942
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) ```
[experiment] missing default_experiment-1-0.arrow
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 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. 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) ```
[ -0.0958080068230629, -0.09423503279685974, 0.12555718421936035, 0.09274052828550339, -0.08685502409934998, -0.02963242679834366, 0.23172231018543243, 0.23752246797084808, 0.23480701446533203, 0.1782364398241043, 0.0034627914428710938, 0.1474098563194275, -0.23789221048355103, -0.0178871750831604, -0.02041373774409294, 0.17724594473838806, 0.007517233490943909, -0.08020156621932983, -0.3421196937561035, -0.14483816921710968, -0.2741200923919678, 0.5315678715705872, -0.13082367181777954, -0.07193440198898315, -0.4290018677711487, 0.21231535077095032, -0.2263917326927185, 0.12111471593379974, -0.008158538490533829, -0.3395676612854004, 0.10498543828725815, 0.3507533371448517, 0.10301569849252701, 0.46258774399757385, -0.00012232273002155125, -0.24794648587703705, 0.17067494988441467, -0.171824112534523, -0.10117558389902115, -0.06450224667787552, 0.14057153463363647, -0.3108261227607727, 0.47653692960739136, -0.297820508480072, 0.10284760594367981, 0.08410867303609848, 0.1408371776342392, -0.33956652879714966, 0.4358517527580261, -0.037872206419706345, 0.08938436955213547, 0.26288992166519165, 0.12001632153987885, -0.177528515458107, -0.033190224319696426, -0.17803336679935455, 0.012177564203739166, 0.2705990672111511, -0.11193682253360748, 0.08444888889789581, -0.2585884630680084, 0.2509040832519531, 0.22376956045627594, -0.20246295630931854, 0.14230968058109283, 0.06109555438160896, -0.1400083303451538, -0.2547034025192261, -0.16342595219612122, 0.2697407007217407, 0.1364801824092865, -0.3204963505268097, -0.30083876848220825, 0.0492604598402977, -0.11721871793270111, -0.34310677647590637, 0.026246441528201103, -0.034027229994535446, -0.0005131959915161133, 0.06185833364725113, 0.12329354882240295, -0.19930492341518402, -0.010440915822982788, 0.00031952373683452606, -0.01398748904466629, 0.09583573788404465, -0.16065171360969543, 0.08958019316196442, -0.13222914934158325, 0.2888586223125458, -0.3445696234703064, 0.38770148158073425, 0.00991845689713955, 0.10422681272029877, -0.26293128728866577, 0.1574040949344635, 0.2871653735637665, -0.10449984669685364, 0.10257841646671295, 0.3618665039539337, -0.03432561829686165, 0.011868147179484367, 0.5354157090187073, 0.15800438821315765, -0.014352045953273773, 0.32160061597824097, 0.2761749029159546, 0.019397974014282227, 0.20494985580444336, 0.40048840641975403, -0.23673516511917114, -0.29476988315582275, 0.2996625006198883, -0.20983049273490906, 0.3451395332813263, 0.11166749149560928, 0.14680686593055725, -0.4740608334541321, 0.31490087509155273, 0.34928515553474426, -0.06798612326383591, -0.06760570406913757, -0.027408095076680183, 0.36866897344589233, 0.23221421241760254, 0.09724535048007965, 0.35925930738449097, 0.22190217673778534, -0.2242744266986847, -0.0752861350774765, -0.32040610909461975, -0.1706395447254181, -0.02487422525882721, 0.40723881125450134, -0.07775238901376724, -0.05942614749073982, 0.5295737981796265, -0.058650873601436615, 0.5135623812675476, -0.08857633173465729, 0.06443683058023453, 0.17588916420936584, 0.0725545734167099, 0.23916779458522797, 0.025402739644050598, 0.23572391271591187, 0.34547367691993713, 0.24398387968540192, -0.2318500280380249, -0.3414820432662964, 0.0639524757862091, -0.46192145347595215, 0.10582274943590164, -0.018238801509141922, -0.39805567264556885, 0.19515258073806763, 0.6058903932571411, 0.172561377286911, -0.1805834323167801, -0.2601388990879059, 0.3114190101623535, 0.08526380360126495, -0.07603849470615387, -0.08741092681884766, 0.45650625228881836, 0.7431331276893616, -0.35835951566696167, -0.30697745084762573, 0.10752803832292557, -0.10939314216375351, 0.0635070726275444, 0.14912496507167816, 0.09730333089828491, 0.09650953114032745, -0.27666494250297546, -0.117821604013443, 0.3571414351463318, -0.47269147634506226, -0.47257423400878906, 0.0852726474404335, -0.4719012975692749, -0.02741272747516632, 0.20668189227581024, 0.007604099810123444, 0.2238251268863678, 0.2170168161392212, 0.1575411558151245, -0.19816403090953827, 0.2113954871892929, -0.27672696113586426, -0.3929210901260376, -0.17853960394859314, -0.1324966996908188, -0.0649426281452179, 0.20479297637939453, 0.011592399328947067, 0.08406481891870499, 0.03135373443365097, 0.22869181632995605, 0.08978351205587387, 0.1888236701488495, 0.28322017192840576, 0.37759602069854736, 0.17429117858409882, 0.24643313884735107, 0.11350740492343903, -0.27645719051361084, 0.21358564496040344, -0.4569095969200134, 0.11786427348852158, 0.08133996278047562, -0.048925913870334625, -0.021800346672534943, -0.10586202144622803, -0.0418674536049366, -0.41474029421806335, 0.008528467267751694, -0.043477583676576614, 0.30304890871047974, 0.24959778785705566, -0.17962346971035004, 0.23859170079231262, -0.01303112506866455, 0.2911894917488098, -0.4203342795372009, -0.14972969889640808, -0.04776255786418915, -0.38822516798973083, 0.05759815871715546, 0.1718960851430893, 0.0015684980899095535, 0.07485872507095337, -0.1377817839384079, 0.4197939336299896, -0.057103320956230164, 0.2876298725605011, 0.25214099884033203, 0.16788913309574127, -0.19712796807289124, -0.24207140505313873, -0.012514922767877579, 0.06570915877819061, -0.035609763115644455, 0.02549857646226883, -0.11233069002628326, 0.49019572138786316, 0.09704077243804932, 0.08579051494598389, -0.337297648191452, 0.2576318681240082, -0.12906163930892944, -0.062321681529283524, -0.5252737402915955, -0.1358708143234253, 0.3787255883216858, -0.22511941194534302, 0.236642986536026, -0.13150598108768463, 0.03011159598827362, 0.07980263233184814, 0.17857569456100464, 0.24597115814685822, 0.17151735723018646, -0.0005889760795980692, -0.13948997855186462, -0.012599390000104904, 0.03475666791200638, -0.08484727144241333, 0.25829219818115234, 0.23570595681667328, 0.10507083684206009, 0.08812806755304337, 0.10875102132558823, -0.17328381538391113, 0.1077507883310318, -0.06382571160793304, -0.10169628262519836, 0.16924992203712463, 0.18573851883411407, 0.11883749067783356, -0.29273751378059387, -0.17769856750965118, -0.3255644142627716, -0.032076261937618256, -0.23668555915355682, -0.020416654646396637, 0.03452294319868088, 0.3458482623100281, 0.009169701486825943, 0.08650020509958267, -0.2900828421115875, -0.40452563762664795, 0.21749411523342133, -0.1798904687166214, -0.06888153403997421, 0.18238146603107452, -0.44171154499053955, 0.41226160526275635, 0.10748863965272903, -0.24187293648719788, -0.32942330837249756, -0.15971824526786804, -0.07865825295448303, -0.20746755599975586, -0.2837303578853607, 0.12519609928131104, 0.22201210260391235, -0.04861140251159668, 0.08009704947471619, -0.13929875195026398, -0.34606894850730896, 0.0014419401995837688, -0.05105437710881233, 0.6285653710365295, 0.2911645770072937, -0.030541256070137024, -0.16637353599071503, 0.05472419038414955, 0.44961148500442505, -0.559389591217041, -0.19183075428009033, 0.10305136442184448, -0.05182339996099472, 0.18523097038269043, -0.2551890015602112, -0.2687283456325531, 0.044806107878685, -0.4148476719856262, 0.6636127233505249, 0.02341747283935547, -0.010174643248319626, -0.22359393537044525, -0.10768114775419235, 0.17810200154781342, -0.255353182554245, 0.4349592924118042, -0.14979365468025208, -0.5847466588020325, 0.4244234263896942, -0.12818637490272522, -0.2230437994003296, -0.14087191224098206, 0.08222797513008118, 0.17599248886108398, -0.1449054479598999, -0.5932174921035767, -0.5006263256072998, -0.10144446045160294, 0.24489456415176392, -0.026381853967905045, 0.14391350746154785, 0.4210921823978424, -0.14150755107402802, -0.017931245267391205, -0.012903451919555664, -0.12393397092819214, 0.532720685005188, -0.1963023990392685, 0.05324716120958328, -0.07954646646976471, 0.46163180470466614, 0.0842699408531189, 0.8287321329116821, 0.5620368719100952, 0.3317270278930664, 0.1832956075668335, 0.021969443187117577, 0.4228357672691345, -0.13682574033737183, -0.19047123193740845, 0.39913681149482727, 0.3047938048839569, -0.271465539932251, 0.21123015880584717, 0.04355102404952049, 0.22307181358337402, -0.1163758635520935, 0.010674826800823212, -0.4465950131416321, -0.4564574360847473, -0.07191293686628342, 0.09202026575803757, 0.2174004316329956, -0.09415216743946075, 0.03398697078227997, -0.0975618064403534, 0.020238302648067474, 0.5146846175193787, 0.37644609808921814, 0.16310009360313416, 0.1277969777584076, -0.18113310635089874, -0.005747061222791672, -0.6595855951309204, 0.3577417731285095, -0.464630126953125, 0.1572023630142212, -0.15832602977752686, -0.3413121998310089, 0.16603444516658783, -0.056494250893592834, 0.6355435848236084, 0.17357824742794037, -0.19562523066997528, -0.004677616059780121, -0.25474798679351807, -0.4369531273841858, -0.10279935598373413, -0.24217060208320618, -0.15076246857643127, 0.3620060086250305, 0.09184768795967102, -0.47356319427490234, -0.1324453353881836, -0.13018041849136353, -0.1474502980709076, -0.3104039132595062, -0.3958630859851837, -0.2934834063053131, 0.045616962015628815, -0.31544017791748047, 0.07384403049945831, -0.30792295932769775, 0.021521475166082382, 0.018109433352947235, 0.09272072464227676, 0.027186965569853783, -0.10777915269136429, 0.07735142111778259, 0.1022578775882721, 0.2887765169143677, -0.213611900806427, 0.09833809733390808, 0.437238872051239, -0.19153666496276855, -0.019296515733003616, 0.3132378160953522, 0.10187505185604095, -0.09997143596410751, 0.1759302020072937, -0.07945408672094345, 0.2799619436264038, 0.6032478213310242, -0.17293809354305267, 0.0549093633890152, -0.058639395982027054, 0.48188111186027527, -0.11789698898792267, -0.28555428981781006, 0.23732180893421173, -0.15471144020557404, 0.3927035331726074, 0.21921850740909576, 0.048575785011053085, 0.3099292814731598, -0.10572001338005066, 0.3555973768234253, -0.020597774535417557, -0.14115217328071594, 0.4236704111099243, 0.11919919401407242, 0.9506540894508362, 0.09765797853469849, 0.18604126572608948, 0.24220597743988037, -0.03768537938594818, 0.4492136836051941, 0.02965567260980606, 0.014284059405326843, -0.3872033953666687, -0.27566781640052795, 0.09175257384777069, -0.10323130339384079, -0.08164806663990021, -0.3444141447544098, -0.2914731502532959, 0.31552648544311523, -0.3911910057067871, -0.3037446439266205, -0.3794372081756592, -0.19600847363471985, -0.44469350576400757, -0.2635652422904968, -0.047704532742500305, -0.009024139493703842, 0.14331185817718506, 0.5026944875717163, -0.30788135528564453, -0.11070477962493896, -0.2886675298213959, -0.3712598979473114, -0.2273336946964264, -0.022258322685956955, -0.20273542404174805, -0.06409783661365509, 0.2401203066110611, 0.0918198823928833, -0.31991055607795715, 0.3298317790031433, 0.3815290927886963, 0.1273180991411209, -0.23588263988494873, -0.17804791033267975, 0.28619077801704407, 0.03824686259031296, 0.11241050064563751, 0.0014285854995250702, 0.2514292895793915, 0.035915084183216095, -0.03075927495956421, 0.17090938985347748, -0.16649313271045685, 0.08722247183322906, 0.10059577226638794, -0.1597258299589157, -0.1423918604850769, -0.1958404779434204, -0.0657532587647438, 0.1554861068725586, -0.06633955985307693, -0.21045705676078796, 0.0482373908162117, 0.24578994512557983, -0.3146841526031494, 0.14819054305553436, 0.03792694956064224, -0.27713507413864136, -0.07507660239934921, 0.5247076749801636, -0.26403161883354187, -0.024846840649843216, 0.39704516530036926, 0.2828391194343567, -0.08601595461368561, -0.1441112458705902, 0.12933248281478882, 0.29865890741348267, -0.7690413594245911, 0.20180335640907288, 0.14776656031608582, -0.019242316484451294, 0.04348061606287956, 0.2532590925693512, 0.3413792550563812, -0.15685898065567017, -0.09551361203193665, -0.22066418826580048, -0.34614038467407227, 0.3158048987388611, -0.21807390451431274, 0.20993375778198242, -0.29424849152565, 0.10178670287132263, -0.1563839614391327, 0.28417330980300903, -0.274208664894104, 0.009868796914815903, -0.23857933282852173, -0.18250292539596558, -0.07594446837902069, -0.03531736508011818, 0.37438464164733887, 0.1295119822025299, -0.032303325831890106, 0.22204545140266418, -0.29326382279396057, -0.08941052854061127, -0.20778368413448334, 0.1688522845506668, -0.10083156824111938, 0.22745677828788757, -0.09316812455654144, 0.16161783039569855, -0.14090898633003235, -0.15055635571479797, 0.12150333821773529, 0.34917137026786804, 0.034830592572689056, 0.15796349942684174, 0.22355374693870544, 0.05249897018074989, -0.15889126062393188, 0.17829598486423492, 0.096727654337883, -0.1647050678730011, -0.06736352294683456, 0.023815007880330086, -0.46839216351509094, -0.0754995197057724, 0.19766753911972046, 0.1554301381111145, -0.1301896870136261, 0.15470153093338013, 0.04385051876306534, 0.0733114555478096, -0.34984198212623596, 0.06819756329059601, 0.5667787790298462, 0.22933140397071838, -0.19471502304077148, -0.08456559479236603, -0.07618717104196548, 0.07484568655490875, -0.07977454364299774, 0.4089387059211731, 0.019624732434749603, 0.2220223844051361, 0.0884396880865097, 0.39188694953918457, 0.0069047436118125916, -0.15498436987400055, 0.08872229605913162, 0.15674510598182678, -0.12675970792770386, -0.14995498955249786, 0.27385833859443665, -0.09775427728891373, 0.18794065713882446, 0.36991995573043823, 0.5017710328102112, 0.18578752875328064, 0.17369285225868225, -0.1599157750606537, -0.008536547422409058, -0.00417618453502655, -0.1832285374403, 0.3578149378299713, -0.0631643533706665, -0.13510800898075104, -0.061901774257421494, 0.024735592305660248, 0.09998825192451477, -0.16193166375160217, -0.4995589554309845, 0.7212766408920288, -0.15969792008399963, -0.07274188101291656, -0.17294630408287048, 0.42023971676826477, -0.12579751014709473, -0.12015350908041, -0.08072305470705032, -0.13881947100162506, -0.08104352653026581, -0.10810555517673492, 0.35865747928619385, 0.14516331255435944, 0.0638321191072464, 0.2073589712381363, 0.11838514357805252, -0.27884262800216675, -0.48963528871536255, 0.2174432873725891, 0.28562501072883606, -0.24756798148155212, 0.012894542887806892, 0.2346801906824112, -0.23224444687366486, 0.1432935893535614, 0.6515596508979797, 0.24643182754516602, 0.011748271062970161, -0.01204739697277546, 0.2025606632232666, 0.2649376690387726, 0.050191909074783325, -0.12236954271793365, 0.16402310132980347, 0.2685830891132355, -0.457116037607193, 0.21599794924259186, 0.04372342675924301, -0.1576763093471527, 0.24952971935272217, -0.23333853483200073, 0.2681138813495636, -0.0029880106449127197, 0.5281675457954407, -0.08812791109085083, 0.28926849365234375, -0.09063443541526794, -0.15738926827907562, -0.6749100685119629, 0.10984212160110474, -0.1533481776714325, -0.1440504491329193, 0.039729442447423935, -0.313002347946167, 0.02674144133925438, -0.07663942873477936, 0.027147145941853523, 0.5202212929725647, 0.11984014511108398, -0.25064194202423096, -0.20043237507343292, -0.4098307490348816, 0.37094321846961975, 0.14974725246429443, 0.16134075820446014, -0.07273364067077637, 0.4148479104042053, -0.01667366549372673, 0.07864703238010406, 0.2746054530143738, -0.07722755521535873, -0.2901543080806732, 0.23604142665863037, -0.4297747313976288, 0.25153085589408875, -0.2711082994937897, -0.07245772331953049, 0.07364319264888763, 0.30464649200439453, -0.08415225893259048, -0.28139111399650574, -0.0065453872084617615, 0.2192518711090088, -0.26962077617645264, -0.14933085441589355, 0.038755737245082855, 0.3670332729816437, 0.14189113676548004, 0.0027357451617717743, -0.12455947697162628, -0.1818842887878418, -0.1920182853937149, -0.0750165656208992, -0.16398173570632935, -0.12110374867916107, -0.28941333293914795, 0.40888819098472595, -0.3357611894607544, -0.51497483253479, -0.3786817193031311, 0.31334188580513, 0.10887663066387177, -0.19067934155464172, -0.12741592526435852, 0.3311878442764282, -0.1567312479019165, 0.05280989781022072, 0.26025667786598206, 0.47145843505859375, 0.049616165459156036, 0.46612101793289185, -0.2932114005088806, -0.19221848249435425, 0.6927308440208435, -0.464907705783844, 0.26227372884750366, -0.19520123302936554, 0.44344812631607056, 0.13423429429531097, -0.37891796231269836, -0.3714774250984192, 0.021450787782669067, 0.05776102840900421, 0.14206373691558838, -0.03960461542010307, 0.13564027845859528, -0.3098529577255249, -0.11093057692050934, -0.06675402075052261, 0.1820855736732483, 0.16428042948246002, 0.12629464268684387, -0.11238756030797958, -0.030941806733608246 ]
https://github.com/huggingface/datasets/issues/1942
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?
[experiment] missing default_experiment-1-0.arrow
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 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. 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?
[ -0.05769076198339462, -0.002504408359527588, 0.10634616017341614, 0.3295958936214447, -0.073061004281044, 0.029177948832511902, 0.14746293425559998, 0.24182790517807007, 0.30566680431365967, 0.15990355610847473, 0.2047881782054901, 0.07196033000946045, -0.3148394525051117, -0.1378428041934967, -0.010298052802681923, 0.20240600407123566, 0.027013089507818222, 0.0037932544946670532, -0.20881853997707367, -0.1798241138458252, -0.3237955570220947, 0.5144023299217224, -0.09275378286838531, -0.030579444020986557, -0.3576313257217407, 0.33679595589637756, -0.17822718620300293, 0.3024887144565582, 0.020606480538845062, -0.6091864109039307, 0.45195192098617554, 0.15944626927375793, 0.1245751827955246, 0.4872964918613434, -0.00013039172335993499, -0.16218380630016327, 0.2800581455230713, -0.18595942854881287, -0.14247852563858032, -0.20112773776054382, -0.09631188213825226, -0.28037768602371216, 0.45109879970550537, -0.23437361419200897, -0.023727238178253174, -0.07733656466007233, 0.17581585049629211, -0.5915815830230713, 0.3542674481868744, 0.11364313960075378, -0.00488295778632164, 0.3083098232746124, -0.11448508501052856, -0.24255649745464325, 0.1217079758644104, -0.04254640266299248, 0.06900760531425476, 0.2845218777656555, -0.0860334187746048, -0.13884781301021576, -0.2688547968864441, 0.2733640670776367, 0.1988229751586914, -0.05408778414130211, 0.43520864844322205, 0.01692182943224907, 0.031385600566864014, -0.049776822328567505, -0.10199326276779175, 0.33292895555496216, 0.1740119755268097, -0.19382834434509277, -0.20873555541038513, 0.03631359338760376, -0.14477351307868958, -0.427595317363739, 0.2937576174736023, -0.0938260406255722, 0.05574968457221985, 0.11030884832143784, 0.07450927793979645, -0.0691118985414505, 0.019397974014282227, 0.173328697681427, -0.12241597473621368, 0.12378469109535217, -0.024819722399115562, 0.024881569668650627, -0.0011231435928493738, 0.24605609476566315, -0.16430993378162384, 0.13667947053909302, -0.08911600708961487, 0.20796161890029907, -0.37370434403419495, 0.13297498226165771, 0.17701119184494019, -0.02219579741358757, -0.0012673065066337585, 0.27911752462387085, -0.04042953997850418, 0.02429712563753128, 0.3617473542690277, 0.13961580395698547, -0.011977366171777248, 0.43151915073394775, 0.27999094128608704, 0.14803814888000488, 0.20102182030677795, 0.24547958374023438, -0.0930146723985672, -0.14893878996372223, 0.11774805188179016, -0.2112673968076706, 0.38432443141937256, 0.15628264844417572, -0.0006584972143173218, -0.46611472964286804, 0.06815953552722931, 0.36520639061927795, -0.22674131393432617, -0.1440909057855606, 0.20433376729488373, 0.39262399077415466, 0.19603970646858215, -0.036498717963695526, 0.16313707828521729, 0.2825304865837097, -0.2508920431137085, -0.026849448680877686, -0.4424969255924225, -0.2588558793067932, -0.13739845156669617, 0.22595223784446716, 0.19517813622951508, -0.03269078582525253, 0.5749137997627258, -0.2132207453250885, 0.3801065981388092, -0.07485555857419968, 0.2046855092048645, 0.10033780336380005, 0.041985154151916504, 0.2588789761066437, -0.07756824791431427, 0.24671420454978943, 0.45010286569595337, 0.08531399816274643, -0.222554013133049, -0.1783110499382019, -0.11476348340511322, -0.5404672622680664, 0.1880507618188858, -0.08223535120487213, -0.4932709038257599, 0.270361065864563, 0.44315284490585327, 0.15865272283554077, 0.058016642928123474, -0.34096288681030273, 0.2449737787246704, -0.0816505029797554, -0.24380916357040405, -0.082349993288517, 0.4338889718055725, 0.7405847907066345, -0.3018999695777893, -0.39198219776153564, 0.07098498195409775, 0.1103326827287674, -0.0848064124584198, 0.24703170359134674, -0.16768953204154968, -0.05899273231625557, -0.37111616134643555, 0.02976006269454956, 0.32901790738105774, -0.4905434250831604, -0.6476852893829346, -0.11120672523975372, -0.3637506067752838, -0.0950266569852829, 0.2161112129688263, 0.14017775654792786, 0.02393680438399315, -0.056367963552474976, 0.12309052050113678, -0.17411258816719055, 0.2157105803489685, -0.33622652292251587, -0.25478097796440125, -0.3030843734741211, 0.09217051416635513, 0.011652015149593353, 0.31641721725463867, -0.06923189759254456, -0.033965084701776505, -0.115987628698349, 0.10476095974445343, 0.12463351339101791, 0.19338342547416687, 0.331418514251709, 0.2837235927581787, -0.026937849819660187, 0.34102436900138855, 0.21127837896347046, -0.3488748073577881, 0.36414992809295654, -0.5019801259040833, 0.006201522424817085, 0.10066165030002594, 0.010766774415969849, -0.079102523624897, -0.23619291186332703, -0.14110957086086273, -0.4627401828765869, -0.09807759523391724, -0.11006787419319153, 0.058942802250385284, 0.19021639227867126, -0.1977372169494629, 0.18680880963802338, -0.0470205619931221, 0.2514113783836365, -0.4648359417915344, 0.020166561007499695, -0.08186867088079453, -0.2810687720775604, -0.07368521392345428, 0.12053309381008148, 0.016586190089583397, 0.052100807428359985, -0.24555319547653198, 0.3516988456249237, -0.08862312883138657, 0.29428717494010925, 0.29059118032455444, 0.2052251398563385, -0.04837840795516968, -0.4059664011001587, -0.011033952236175537, 0.19695274531841278, -0.10737160593271255, 0.02527206391096115, -0.3456170856952667, 0.42941659688949585, 0.06803210079669952, 0.17402952909469604, -0.378842830657959, 0.15676525235176086, -0.11762895435094833, -0.1660420000553131, -0.4288588762283325, -0.14519132673740387, 0.5433691740036011, -0.15084265172481537, 0.3000464141368866, -0.051460981369018555, 0.05121169984340668, -0.0064016953110694885, 0.2151770293712616, 0.21640139818191528, 0.12463384121656418, 0.09576625376939774, -0.28136584162712097, -0.10904956609010696, 0.08743266016244888, 0.013573870062828064, 0.5847152471542358, 0.19773638248443604, 0.25246256589889526, 0.14710886776447296, 0.035333301872015, -0.19763736426830292, 0.17178702354431152, -0.03189851716160774, -0.03356688469648361, 0.21777373552322388, 0.24054816365242004, 0.1597721129655838, -0.29816892743110657, -0.12360577285289764, -0.2751498818397522, 0.06643801927566528, -0.36514055728912354, 0.11226760596036911, -0.2560161352157593, 0.33950579166412354, 0.15663708746433258, 0.0014967136085033417, -0.26969295740127563, -0.23963049054145813, 0.17868250608444214, -0.1410638689994812, 0.023425616323947906, 0.25188252329826355, -0.4109795093536377, 0.43107640743255615, 0.03323701024055481, -0.21685738861560822, -0.2495378851890564, -0.31024080514907837, -0.19036513566970825, -0.2834860682487488, -0.11129699647426605, 0.055781543254852295, 0.009171843528747559, -0.05438867211341858, -0.052496664226055145, 0.021218933165073395, -0.36495041847229004, -0.010331904515624046, 0.15065889060497284, 0.611164927482605, 0.2543148398399353, 0.013904767110943794, -0.36839982867240906, 0.05788008123636246, 0.3914337754249573, -0.263077974319458, -0.3664731979370117, 0.08170948922634125, 0.04314538836479187, 0.2250201404094696, -0.259279727935791, -0.3096570670604706, 0.028025049716234207, -0.32855886220932007, 0.43633320927619934, -0.03278778865933418, 0.018658176064491272, -0.06976145505905151, -0.07860510796308517, 0.07858699560165405, -0.24388903379440308, 0.17522495985031128, -0.3726034164428711, -0.5516347885131836, 0.39548352360725403, -0.011283375322818756, -0.1737852692604065, -0.12639619410037994, 0.05140026658773422, 0.3583471477031708, 0.07415540516376495, -0.752051055431366, -0.4106815457344055, 0.050717130303382874, 0.22563478350639343, -0.13026368618011475, -0.06994383782148361, 0.6061972975730896, -0.03391163796186447, 0.061602529138326645, -0.09095175564289093, -0.1484256088733673, 0.6115363240242004, -0.15081404149532318, 0.1900128424167633, -0.09602443128824234, 0.45998522639274597, 0.2075084000825882, 0.9944367408752441, 0.5102086067199707, 0.18877065181732178, 0.273881196975708, 0.223853200674057, 0.40913575887680054, -0.09563548862934113, -0.19833388924598694, 0.2562209963798523, 0.24523738026618958, -0.08659157156944275, 0.20475614070892334, 0.03592318668961525, 0.12201206386089325, -0.06139107793569565, -0.06375652551651001, -0.25385162234306335, -0.31011325120925903, -0.013215366750955582, -0.16160477697849274, 0.3300979435443878, 0.06141886115074158, 0.021209724247455597, -0.27570825815200806, -0.06239237263798714, 0.366617351770401, 0.4859732389450073, 0.17571473121643066, 0.26323315501213074, -0.22516152262687683, 0.004416033625602722, -0.4434441328048706, 0.25225400924682617, -0.38547495007514954, 0.2858227789402008, -0.23304952681064606, -0.18564453721046448, 0.09819506108760834, -0.08339940011501312, 0.6718572974205017, 0.14308778941631317, -0.08481018245220184, -0.07815411686897278, -0.07732712477445602, -0.3918816149234772, -0.15821325778961182, 0.04955671727657318, 0.010754946619272232, 0.2382265031337738, 0.43415912985801697, -0.37356919050216675, -0.2426629364490509, -0.08382420241832733, -0.11221001297235489, -0.2599930763244629, -0.4525400996208191, -0.28153520822525024, 0.14461451768875122, -0.19288164377212524, 0.1833467185497284, -0.21134106814861298, -0.03745703771710396, 0.061242662370204926, -0.003539472818374634, -0.21292488276958466, -0.10199112445116043, 0.01823725551366806, -0.03920212388038635, 0.3360673189163208, -0.402411550283432, 0.2283702939748764, 0.5376235842704773, -0.10640855878591537, 0.037613049149513245, 0.3673107326030731, 0.1663351058959961, -0.1827934831380844, 0.2683011293411255, -0.034006599336862564, 0.21613508462905884, 0.6718820333480835, -0.16463014483451843, 0.1388862133026123, 0.19912993907928467, 0.208063542842865, -0.13909855484962463, -0.08849742263555527, 0.30133673548698425, -0.11337822675704956, 0.2461322844028473, 0.15485990047454834, 0.23602217435836792, 0.2951619029045105, -0.15966860949993134, 0.41722291707992554, -0.011695768684148788, -0.16241905093193054, 0.29467809200286865, 0.039343468844890594, 1.0834729671478271, 0.2922217547893524, 0.3179519474506378, 0.13592414557933807, -0.018277272582054138, 0.3813754618167877, 0.09504204243421555, 0.09875500947237015, -0.2544327974319458, -0.3131209909915924, -0.06559852510690689, -0.24730108678340912, -0.036886706948280334, -0.2755255699157715, -0.11368359625339508, 0.44127321243286133, -0.259443998336792, -0.003139310982078314, -0.1601790189743042, -0.2166806161403656, -0.29205799102783203, -0.13916605710983276, 0.17138247191905975, -0.061048343777656555, 0.019426919519901276, 0.5495753884315491, -0.19147606194019318, -0.17420518398284912, -0.428065687417984, -0.27436745166778564, -0.13417576253414154, -0.043769411742687225, -0.35164839029312134, 0.08984299004077911, 0.25000840425491333, -0.3409353792667389, -0.10550311207771301, 0.31689026951789856, 0.4565443992614746, 0.15143701434135437, -0.31814059615135193, 0.11403430998325348, 0.2022184431552887, 0.10659702867269516, 0.09550677984952927, -0.11068029701709747, 0.18088355660438538, -0.004412710666656494, -0.06094380468130112, 0.02494763396680355, -0.2868688106536865, 0.04453641176223755, 0.008089736104011536, -0.12844355404376984, -0.07483382523059845, 0.0710112601518631, -0.11483453214168549, 0.08654345571994781, 0.05672726035118103, -0.21925202012062073, -0.0001806928776204586, 0.3327893316745758, -0.14024676382541656, -0.05484960973262787, 0.0633067935705185, -0.3442891240119934, -0.10637851059436798, 0.7176713943481445, -0.08406546711921692, -0.17298167943954468, 0.638820469379425, -0.010844483971595764, -0.011488460004329681, -0.03300631418824196, 0.06862694770097733, 0.4259321987628937, -0.8050134181976318, -0.02118837460875511, -0.06666217744350433, -0.06683668494224548, 0.16895604133605957, 0.05284762382507324, 0.4529181122779846, -0.16567446291446686, -0.08272760361433029, -0.29197022318840027, -0.4071454107761383, 0.2054392695426941, -0.4431142807006836, 0.24856168031692505, -0.3803114891052246, -0.03451487794518471, -0.34715816378593445, 0.175929993391037, -0.17124037444591522, 0.2049071043729782, -0.1429181694984436, -0.11945897340774536, -0.10731044411659241, -0.02425314113497734, 0.28130224347114563, -0.10772918909788132, -0.1590747982263565, 0.056028224527835846, -0.42864546179771423, -0.0027018412947654724, -0.25461286306381226, 0.21965232491493225, -0.08068795502185822, 0.12864723801612854, -0.09285064041614532, 0.03881189227104187, 0.05748893693089485, -0.11338013410568237, -0.08583489805459976, 0.1680559366941452, 0.08278760313987732, 0.0316743329167366, 0.06515543907880783, 0.22051411867141724, -0.1086529865860939, 0.3121112585067749, 0.0699838176369667, -0.2269551157951355, -0.0963367372751236, 0.059795886278152466, -0.37264856696128845, -0.019532792270183563, 0.09808668494224548, 0.07362805306911469, -0.21889172494411469, 0.1540915071964264, 0.11285576224327087, 0.004294413607567549, -0.3112639784812927, 0.022829245775938034, 0.33973634243011475, 0.060158438980579376, -0.17542757093906403, -0.045322902500629425, 0.023644089698791504, 0.018523598089814186, -0.07672448456287384, 0.2651643455028534, 0.10489220172166824, 0.4075002074241638, 0.03533272445201874, 0.20183593034744263, 0.24290676414966583, -0.03189975768327713, 0.13883620500564575, 0.29658839106559753, 0.09316448867321014, -0.21631580591201782, 0.38504692912101746, -0.11202102899551392, 0.17037156224250793, 0.3353476822376251, 0.5294116735458374, 0.1533006727695465, 0.30331188440322876, 0.05588990077376366, -0.002909161150455475, 0.10367511957883835, 0.07924006879329681, 0.2830416262149811, -0.2751310467720032, -0.27329444885253906, -0.21052707731723785, 0.18022549152374268, 0.009964194148778915, -0.1593451201915741, -0.2688840329647064, 0.8103466033935547, -0.2867063879966736, -0.1412341594696045, -0.1363694667816162, 0.16488707065582275, -0.11852304637432098, -0.17483192682266235, -0.10902819037437439, -0.1780405044555664, -0.08616438508033752, -0.09196578711271286, 0.18509289622306824, 0.14983704686164856, -0.030898652970790863, 0.20677253603935242, -0.0318865068256855, -0.20174729824066162, -0.340405136346817, 0.36217010021209717, 0.1624513566493988, -0.15931817889213562, 0.09083505719900131, 0.29210686683654785, -0.3177044689655304, 0.14873428642749786, 0.5308631062507629, 0.25463348627090454, 0.019545890390872955, -0.2139032930135727, 0.06724558025598526, 0.4024709463119507, 0.020968995988368988, -0.10704892873764038, 0.10960035026073456, 0.2688019275665283, -0.4691239893436432, -0.009823422878980637, -0.016943322494626045, -0.051917366683483124, 0.3932636082172394, -0.1417684257030487, 0.25396639108657837, -0.16213417053222656, 0.3582158386707306, -0.1994123011827469, 0.1481005996465683, 0.16128768026828766, -0.0726233720779419, -0.6035974025726318, 0.22337739169597626, -0.026233091950416565, 0.08185538649559021, 0.11336866021156311, -0.14243683218955994, -0.004713306203484535, -0.08675362169742584, 0.1382465958595276, 0.511794924736023, -0.013996938243508339, -0.4154542088508606, -0.2745565176010132, -0.6609951257705688, 0.3881950378417969, 0.03339304402470589, 0.31135159730911255, 0.0009757913649082184, 0.28081029653549194, -0.022305335849523544, -0.03697173297405243, 0.24814261496067047, 0.07889984548091888, -0.0846417099237442, 0.10826589167118073, -0.4920292794704437, 0.09828054904937744, 0.0012782122939825058, -0.17083825170993805, 0.034142330288887024, 0.21963746845722198, 0.008480464108288288, -0.1435924768447876, -0.07738153636455536, 0.20275959372520447, -0.1723477691411972, -0.03578224033117294, 0.21059730648994446, 0.46619969606399536, 0.05238756537437439, 0.09635601937770844, 0.09342219680547714, -0.13390439748764038, -0.22283139824867249, -0.056693676859140396, -0.08898662775754929, -0.08463655412197113, -0.30634161829948425, 0.47978609800338745, -0.5571390390396118, -0.5037088990211487, -0.31825798749923706, 0.25286319851875305, 0.02007833868265152, -0.26037365198135376, -0.28141549229621887, 0.38652944564819336, -0.192747563123703, 0.12881144881248474, 0.2811796963214874, 0.3434963822364807, 0.1242486983537674, 0.3990006744861603, -0.41510555148124695, -0.15107771754264832, 0.7318445444107056, -0.47639304399490356, 0.3372201919555664, -0.12369586527347565, 0.3626723289489746, 0.4212174415588379, -0.31039026379585266, -0.28152793645858765, -0.08518922328948975, 0.18176668882369995, -0.05120836943387985, -0.15113839507102966, 0.09334778785705566, -0.2861337661743164, 0.03526432812213898, -0.08654175698757172, 0.19080932438373566, 0.24110056459903717, -0.11762863397598267, 0.04485662281513214, -0.09372924268245697 ]
https://github.com/huggingface/datasets/issues/1942
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 !
[experiment] missing default_experiment-1-0.arrow
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 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. 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 !
[ -0.05989833176136017, 0.006814852356910706, 0.08448436111211777, 0.1580616533756256, 0.01994118094444275, -0.03207594156265259, 0.2774339020252228, 0.22076499462127686, 0.3088779151439667, 0.16024130582809448, 0.01775214821100235, 0.10314176231622696, -0.22572368383407593, -0.020612236112356186, -0.05923894792795181, -0.031059961766004562, -0.04353008046746254, -0.06677636504173279, -0.3691176176071167, -0.13251154124736786, -0.30672121047973633, 0.501986026763916, -0.08011861890554428, 0.044525086879730225, -0.480796754360199, 0.1278131753206253, -0.17561084032058716, 0.22257424890995026, -0.07892531156539917, -0.5587316751480103, 0.37775418162345886, 0.18311865627765656, 0.042127422988414764, 0.6000638604164124, -0.00011763840302592143, -0.1433921754360199, 0.19273005425930023, -0.12452444434165955, -0.08328115195035934, -0.19301685690879822, 0.07417415082454681, -0.33293160796165466, 0.4511273205280304, -0.24422073364257812, 0.03449252247810364, -0.05119801685214043, 0.024772221222519875, -0.37215670943260193, 0.42741402983665466, -0.006434343755245209, 0.13074494898319244, 0.3117668628692627, -0.06822673976421356, -0.3215269148349762, -0.09998467564582825, -0.11435215175151825, 0.07761596888303757, 0.417180597782135, -0.1312238574028015, 0.08946255594491959, -0.27423277497291565, 0.12457673251628876, 0.21235376596450806, 0.02922787144780159, 0.23880426585674286, 0.02460714429616928, -0.014271382242441177, -0.1256716549396515, -0.06856042146682739, 0.28878048062324524, 0.1676783263683319, -0.15942662954330444, -0.20146876573562622, 0.00853206217288971, -0.22894243896007538, -0.4411576986312866, 0.17140623927116394, -0.12458054721355438, 0.07466971129179001, 0.10321446508169174, -0.07622742652893066, -0.1549820750951767, -0.023204974830150604, 0.11750377714633942, -0.14562378823757172, 0.03243710845708847, -0.16971305012702942, 0.12125865370035172, -0.027921535074710846, 0.14975033700466156, -0.3855254054069519, 0.35169118642807007, -0.019425826147198677, 0.07147464156150818, -0.3793984055519104, 0.1364801973104477, 0.2671201527118683, 0.021704338490962982, 0.10650543868541718, 0.4761020839214325, -0.00474213995039463, -0.013204648159444332, 0.38916659355163574, 0.17371642589569092, -0.06449861824512482, 0.5233270525932312, 0.2027723491191864, 0.06928557902574539, 0.21850377321243286, 0.21794134378433228, -0.17488574981689453, -0.34130772948265076, 0.283626914024353, -0.3860960900783539, 0.3315581679344177, 0.1842791736125946, 0.0930345430970192, -0.4868883490562439, 0.05852488428354263, 0.18447048962116241, -0.03636632114648819, -0.15779173374176025, 0.08758287131786346, 0.31535249948501587, 0.15016208589076996, 0.013547869399189949, 0.24008885025978088, 0.39811185002326965, -0.2120676338672638, 0.07808182388544083, -0.38808855414390564, -0.16349755227565765, -0.1441085934638977, 0.42935413122177124, 0.05171135812997818, -0.11056970804929733, 0.6856902241706848, -0.16227178275585175, 0.4642176032066345, -0.06139545142650604, 0.19080038368701935, 0.17559458315372467, 0.01883888989686966, 0.2674919068813324, 0.0719173401594162, 0.17589259147644043, 0.266917884349823, 0.10486218333244324, -0.2120068073272705, -0.37019264698028564, -0.18873685598373413, -0.5549442172050476, 0.12638328969478607, 0.03215303272008896, -0.41458553075790405, 0.28303056955337524, 0.34312906861305237, 0.21201637387275696, -0.07942506670951843, -0.23370546102523804, 0.1338796466588974, 0.05116445571184158, -0.08587329089641571, -0.127981036901474, 0.49152886867523193, 0.7377226948738098, -0.22204574942588806, -0.3446711301803589, 0.016837097704410553, -0.04871267080307007, -0.086471788585186, 0.30501052737236023, -0.09263628721237183, 0.22849605977535248, -0.27726879715919495, 0.12220904231071472, 0.3515833616256714, -0.4234384596347809, -0.4113767743110657, 0.008002974092960358, -0.4272920787334442, -0.1334395557641983, 0.10837405920028687, -0.07301726192235947, 0.258131742477417, 0.13084684312343597, 0.05481142923235893, -0.12674856185913086, 0.15680387616157532, -0.2836754024028778, -0.3865198493003845, -0.18580332398414612, -0.004547857213765383, -0.1014782041311264, 0.3006923198699951, 0.05632223188877106, 0.09863615036010742, 0.08756780624389648, 0.05970384553074837, 0.10621198266744614, 0.26060789823532104, 0.24774378538131714, 0.22620825469493866, 0.00035449862480163574, 0.2899070382118225, 0.11020061373710632, -0.1867312639951706, 0.25624847412109375, -0.3439139425754547, 0.12107421457767487, 0.16839872300624847, -0.015525303781032562, -0.2000712901353836, -0.2549753487110138, -0.15089543163776398, -0.42153286933898926, 0.047291941940784454, -0.07096926867961884, 0.3166152238845825, 0.15203316509723663, -0.14380182325839996, 0.09164901077747345, 0.15834060311317444, 0.18304069340229034, -0.4161328971385956, 0.0770384669303894, -0.07259409874677658, -0.3368438482284546, -0.014753229916095734, 0.0729852020740509, 0.08089835196733475, 0.042064957320690155, -0.18173885345458984, 0.477644681930542, -0.257447212934494, 0.2789972424507141, 0.3836795389652252, 0.18228042125701904, -0.07550517469644547, -0.30265146493911743, 0.05889924615621567, 0.04832523316144943, -0.016623985022306442, 0.001170627772808075, -0.17288339138031006, 0.35913702845573425, 0.05924619361758232, 0.09529316425323486, -0.30971357226371765, 0.3031129240989685, -0.04610579460859299, -0.14659465849399567, -0.4951240122318268, -0.11909700185060501, 0.39682936668395996, -0.3081519603729248, 0.2047470211982727, -0.15202896296977997, 0.05710741877555847, 0.03199268877506256, 0.14167636632919312, 0.13431039452552795, 0.12654882669448853, -0.006165663246065378, -0.16178448498249054, -0.010020904242992401, -0.00722314789891243, -0.13965414464473724, 0.5526065230369568, 0.19334125518798828, 0.21274128556251526, 0.12102315574884415, 0.039482809603214264, -0.20319204032421112, 0.0009545162320137024, 0.0007294788956642151, -0.14631779491901398, 0.15544691681861877, 0.22296525537967682, 0.13371619582176208, -0.23365184664726257, -0.07722671329975128, -0.3163040280342102, 0.006566023454070091, -0.3755756616592407, 0.07499843090772629, -0.15500104427337646, 0.410836398601532, 0.059940095990896225, 0.05435114726424217, -0.22622334957122803, -0.26067054271698, 0.20925042033195496, -0.11759679019451141, -0.06955958157777786, 0.3137815594673157, -0.18354040384292603, 0.5583069324493408, 0.01730881631374359, -0.020220056176185608, -0.22462496161460876, -0.21120113134384155, -0.08546898514032364, -0.14835724234580994, -0.18977069854736328, 0.23230549693107605, 0.13009868562221527, -0.16648341715335846, 0.058578744530677795, -0.06951035559177399, -0.32641372084617615, 0.03771508112549782, 0.030365630984306335, 0.6761787533760071, 0.2347935140132904, 0.00015205517411231995, -0.25184744596481323, 0.028368119150400162, 0.4868873953819275, -0.414020299911499, -0.2675403654575348, 0.05917210876941681, 0.019523553550243378, 0.05641850084066391, -0.29590362310409546, -0.3545249402523041, 0.07041414082050323, -0.3689339756965637, 0.5647745728492737, 0.007240548729896545, -0.06879296898841858, -0.28384238481521606, -0.08832933008670807, 0.10345177352428436, -0.2374039590358734, 0.2703515291213989, -0.33155742287635803, -0.7032841444015503, 0.3768458068370819, -0.3030439615249634, -0.2822328209877014, -0.04512022063136101, 0.07856917381286621, 0.4289895296096802, -0.0625869557261467, -0.5393744707107544, -0.4895908236503601, 0.05353520065546036, 0.18953558802604675, -0.010536138899624348, 0.1493694931268692, 0.5207619071006775, -0.1010601818561554, -0.018907535821199417, -0.07834828644990921, -0.23185940086841583, 0.6520735025405884, -0.08721721172332764, 0.1458658128976822, -0.10064134746789932, 0.4167238175868988, 0.09718575328588486, 0.8765504360198975, 0.5474238395690918, 0.2963707447052002, 0.2949186861515045, 0.12115133553743362, 0.33816784620285034, -0.026251960545778275, -0.19077758491039276, 0.4884668290615082, 0.23404034972190857, -0.14467743039131165, 0.21662473678588867, 0.12316442281007767, 0.13138648867607117, -0.17349347472190857, -0.09267336875200272, -0.3810843825340271, -0.32772961258888245, -0.105530746281147, -0.11764387786388397, 0.2585913836956024, -0.02236146852374077, -0.04345669597387314, -0.22743602097034454, 0.06315620243549347, 0.42332616448402405, 0.3457269072532654, 0.20060357451438904, 0.27264654636383057, -0.17815202474594116, 0.0196409672498703, -0.5355624556541443, 0.3346014618873596, -0.45417824387550354, 0.04898959770798683, -0.2220095694065094, -0.24327324330806732, 0.10356281697750092, 0.04796614125370979, 0.5427537560462952, 0.04694637656211853, -0.18992391228675842, -0.05576155707240105, -0.23729944229125977, -0.444370299577713, -0.12406482547521591, -0.047236036509275436, -0.06269104033708572, 0.24705737829208374, 0.34236055612564087, -0.5057761073112488, -0.14389842748641968, -0.12558245658874512, -0.10048237442970276, -0.3064892590045929, -0.39338749647140503, -0.36820799112319946, -0.07409602403640747, -0.256174772977829, 0.12169276177883148, -0.23810002207756042, 0.03573296219110489, -0.020144056528806686, 0.043873511254787445, -0.182723268866539, -0.007439799606800079, -0.026102405041456223, 0.1901346743106842, 0.31497907638549805, -0.3515063226222992, 0.25792914628982544, 0.5438991785049438, -0.023552365601062775, 0.05577034503221512, 0.4056897461414337, 0.049100663512945175, -0.00816987082362175, 0.2634592652320862, -0.07097155600786209, 0.28711989521980286, 0.5680274963378906, -0.20319019258022308, 0.01985129714012146, -0.044408995658159256, 0.41167864203453064, -0.1413417011499405, -0.156492680311203, 0.2634870409965515, -0.13031132519245148, 0.34178096055984497, 0.20452001690864563, 0.09889231622219086, 0.2688884735107422, -0.1753828227519989, 0.21536605060100555, -0.10175716876983643, -0.13415491580963135, 0.38264212012290955, 0.016426343470811844, 0.9436198472976685, 0.20540961623191833, 0.059228695929050446, 0.19342024624347687, 0.1771509349346161, 0.3641622066497803, 0.08761908113956451, 0.03288792446255684, -0.20555607974529266, -0.2237052172422409, 0.027885466814041138, -0.12023060023784637, -0.050121109932661057, -0.2236301600933075, -0.254504919052124, 0.4385678172111511, -0.26767539978027344, -0.23769383132457733, -0.34518784284591675, -0.15256257355213165, -0.21593236923217773, -0.20824049413204193, 0.034756556153297424, 0.07563889771699905, 0.05423509329557419, 0.5348836779594421, -0.21383725106716156, -0.18934962153434753, -0.33385464549064636, -0.30824708938598633, -0.07149938493967056, -0.08730342984199524, -0.10677707195281982, 0.006939008831977844, 0.3344351053237915, -0.059645965695381165, -0.23838326334953308, 0.2095322608947754, 0.4598332345485687, 0.06256787478923798, -0.2789725661277771, -0.06978727132081985, 0.06561838090419769, 0.018815744668245316, 0.08107087016105652, -0.07243378460407257, 0.2408837229013443, -0.10246194154024124, -0.15152695775032043, 0.09434865415096283, -0.14601576328277588, 0.08191162347793579, 0.0776296854019165, -0.13991208374500275, -0.1492317020893097, -0.08963585644960403, 0.05087680742144585, 0.14140601456165314, 0.09801492094993591, -0.20400658249855042, 0.10019984841346741, 0.2666703164577484, -0.19223597645759583, 0.137690007686615, 0.18949492275714874, -0.21311117708683014, -0.11559952795505524, 0.518800675868988, -0.2788776159286499, -0.0439729318022728, 0.3037276864051819, -0.022609420120716095, -0.05513106286525726, -0.0629001036286354, 0.0001369267702102661, 0.46461060643196106, -0.8037576675415039, 0.04567591845989227, 0.022015027701854706, 0.033820971846580505, 0.06629645079374313, 0.23312808573246002, 0.43972843885421753, -0.11970473825931549, -0.05981893464922905, -0.24635189771652222, -0.3375788927078247, 0.30760762095451355, -0.32854658365249634, 0.10883340984582901, -0.3543596565723419, 0.13916058838367462, -0.1507173776626587, 0.35286569595336914, -0.3035137355327606, 0.08823735266923904, -0.2990914583206177, -0.09926919639110565, -0.04459437355399132, -0.06505231559276581, 0.2502366304397583, 0.022468633949756622, -0.07759444415569305, 0.09114190191030502, -0.36749547719955444, -0.10122308880090714, -0.22152596712112427, 0.14032244682312012, -0.05274701490998268, 0.03716079890727997, -0.051650501787662506, 0.17350450158119202, -0.0011846572160720825, -0.16975726187229156, 0.09346751868724823, 0.21704360842704773, -0.0037537366151809692, 0.05088420584797859, 0.14056679606437683, 0.047379933297634125, -0.1137002632021904, 0.2166004478931427, 0.15279042720794678, -0.2643915116786957, -0.1714894324541092, 0.089015431702137, -0.3603461980819702, -0.09570033848285675, 0.24474364519119263, 0.07721979171037674, -0.1432611346244812, 0.20820029079914093, 0.047675471752882004, 0.016524534672498703, -0.2506275475025177, 0.009715285152196884, 0.4669167697429657, 0.12866340577602386, -0.1391877830028534, 0.09588680416345596, 0.004032783210277557, 0.11729396134614944, -0.04840688407421112, 0.3132457733154297, 0.03634950518608093, 0.3366864323616028, 0.06856177747249603, 0.27578455209732056, 0.23710480332374573, -0.10689687728881836, 0.10153511166572571, 0.25753122568130493, 0.03567120432853699, -0.16512393951416016, 0.22850991785526276, -0.1312105655670166, 0.08245675265789032, 0.3728131651878357, 0.6446860432624817, 0.12423385679721832, 0.21439191699028015, -0.1020229309797287, -0.0754537284374237, 0.20859040319919586, -0.14007912576198578, 0.3282518982887268, -0.15825317800045013, -0.12048883736133575, -0.12516933679580688, -0.06510131806135178, 0.0011578164994716644, -0.2720159888267517, -0.3687114715576172, 0.6771072149276733, -0.32417598366737366, -0.3469701111316681, -0.17905032634735107, 0.3376556932926178, -0.14561505615711212, -0.10695810616016388, -0.21527937054634094, -0.18843087553977966, -0.1496012657880783, -0.1088000163435936, 0.24066162109375, 0.04457901418209076, 0.22878792881965637, 0.05629429221153259, 0.016417047008872032, -0.2694598138332367, -0.472154438495636, 0.2357538342475891, 0.15945613384246826, -0.10116833448410034, 0.05342447757720947, 0.2343875914812088, -0.35955265164375305, 0.1360556185245514, 0.7672563195228577, 0.25827592611312866, 0.07559555768966675, -0.08454253524541855, 0.02337765321135521, 0.2670139670372009, 0.04793768376111984, -0.10871821641921997, 0.1379798948764801, 0.18534331023693085, -0.49848878383636475, 0.0855318158864975, 0.10606776177883148, -0.17251941561698914, 0.39952725172042847, -0.3463374674320221, 0.33045467734336853, -0.19336473941802979, 0.41679564118385315, -0.19883866608142853, 0.2309957891702652, 0.029862985014915466, -0.2229299545288086, -0.7316352128982544, 0.3039989769458771, -0.11737339198589325, -0.07473485171794891, 0.11654988676309586, -0.3806370198726654, 0.04770052060484886, -0.027140066027641296, 0.18965983390808105, 0.373329758644104, 0.04949413985013962, -0.334229439496994, -0.2568194568157196, -0.5867595076560974, 0.3230753242969513, 0.10149673372507095, 0.32359400391578674, -0.08981601893901825, 0.3570632338523865, -0.09747600555419922, 0.1376838982105255, 0.1949177086353302, 0.113539919257164, -0.10296133160591125, 0.07128839194774628, -0.49630916118621826, 0.15932011604309082, -0.11074261367321014, -0.14666646718978882, 0.15993191301822662, 0.28453677892684937, -0.04831983521580696, -0.20167727768421173, 0.02703683078289032, 0.2672986090183258, -0.12201998382806778, -0.11078427731990814, 0.15358659625053406, 0.3878780007362366, 0.22120174765586853, 0.11393557488918304, 0.0036387592554092407, 0.019244305789470673, -0.24250349402427673, -0.1357329785823822, -0.11997880041599274, -0.10627910494804382, -0.2875247001647949, 0.3848075568675995, -0.3711642622947693, -0.39154869318008423, -0.38616281747817993, 0.2148723006248474, 0.07461187243461609, -0.10546010732650757, -0.11295782029628754, 0.3017437160015106, -0.09596189856529236, -0.05756082385778427, 0.2854052782058716, 0.3148620128631592, 0.0014859260991215706, 0.44341200590133667, -0.2427063286304474, -0.15968063473701477, 0.7152581214904785, -0.45974576473236084, 0.26418837904930115, -0.25397130846977234, 0.3937130570411682, 0.39255693554878235, -0.41729292273521423, -0.3282018303871155, 0.012197569012641907, 0.06051945686340332, 0.0799088180065155, -0.16107025742530823, 0.09203755855560303, -0.39062947034835815, -0.1147465705871582, -0.03146444261074066, 0.13992953300476074, 0.22366993129253387, -0.05575278401374817, 0.09574896097183228, -0.057178132236003876 ]
https://github.com/huggingface/datasets/issues/1942
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`?
[experiment] missing default_experiment-1-0.arrow
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 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. 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`?
[ 0.07509259134531021, -0.15114611387252808, 0.15680891275405884, 0.18094371259212494, -0.0645124688744545, -0.012127801775932312, 0.3743317723274231, 0.2074543833732605, 0.20335929095745087, 0.06371428817510605, 0.23238079249858856, 0.10928809642791748, -0.3682083785533905, -0.24630272388458252, 0.11910444498062134, -0.15980738401412964, 0.061800289899110794, 0.07872360944747925, -0.3983016908168793, -0.14598514139652252, -0.22886206209659576, 0.5977007746696472, -0.21410608291625977, 0.04350388050079346, -0.5726749300956726, 0.2785581946372986, -0.22460739314556122, 0.18137523531913757, 0.10398173332214355, -0.5100977420806885, 0.49140119552612305, 0.10753054171800613, -0.03930886089801788, 0.6184605360031128, -0.00013106070400681347, -0.11597834527492523, 0.29059430956840515, -0.2518158555030823, -0.1454314887523651, -0.22694770991802216, -0.15841144323349, -0.246121346950531, 0.44910892844200134, -0.20539411902427673, 0.06181272864341736, 0.054206907749176025, 0.12603798508644104, -0.16776925325393677, 0.4823167324066162, 0.03672819212079048, 0.02787752076983452, 0.48978301882743835, -0.16251200437545776, -0.34335511922836304, 0.0686694085597992, 0.1456458866596222, 0.005533307790756226, 0.2566855251789093, -0.06828883290290833, 0.01180095225572586, -0.22109100222587585, 0.23914110660552979, 0.29167473316192627, -0.023156041279435158, 0.2404494732618332, 0.003298800438642502, -0.02927100658416748, -0.06838162243366241, -0.13758951425552368, 0.3957449793815613, 0.24701982736587524, -0.15065130591392517, -0.33149611949920654, -0.010517947375774384, -0.3707767426967621, -0.193893700838089, 0.3266065716743469, -0.17778745293617249, 0.07345104217529297, 0.11119480431079865, -0.088241346180439, -0.11937796324491501, -0.013347871601581573, 0.06756335496902466, -0.24272842705249786, 0.07755045592784882, -0.08891673386096954, 0.020289959385991096, -0.08267385512590408, 0.05750779062509537, -0.22459834814071655, 0.2535656988620758, -0.03927573189139366, 0.14837373793125153, -0.30130910873413086, -0.0075878724455833435, 0.15687695145606995, -0.09263601899147034, 0.03770575672388077, 0.39956724643707275, -0.01970490626990795, 0.13379813730716705, 0.3218587040901184, 0.1455347239971161, -0.08838239312171936, 0.56392502784729, 0.2473170906305313, 0.19566476345062256, 0.1423615664243698, 0.2767658829689026, -0.0769011601805687, -0.22305914759635925, 0.10545694828033447, -0.1692458540201187, 0.34779536724090576, 0.0648898184299469, 0.09193761646747589, -0.4264971911907196, 0.12014828622341156, 0.243101567029953, -0.042942989617586136, -0.14725810289382935, 0.14781369268894196, 0.46041423082351685, 0.19812896847724915, 0.07615263760089874, 0.17813044786453247, 0.36035215854644775, -0.10254986584186554, -0.06045859307050705, -0.34356963634490967, -0.17520928382873535, -0.21131131052970886, 0.25158971548080444, 0.23300299048423767, 0.12464378774166107, 0.6372712254524231, -0.24656718969345093, 0.3610938489437103, -0.11160950362682343, 0.30677685141563416, 0.28521332144737244, 0.15778078138828278, 0.4128851890563965, -0.13512851297855377, 0.2474038004875183, 0.33347436785697937, 0.07828807085752487, -0.261481910943985, -0.19103243947029114, -0.10880089551210403, -0.4993452727794647, 0.2095869928598404, -0.059375960379838943, -0.6320040822029114, 0.20999768376350403, 0.34449946880340576, 0.12523514032363892, -0.0880124568939209, -0.2906302213668823, 0.18991173803806305, 0.011304104700684547, 0.01943192631006241, 0.036364585161209106, 0.5021129846572876, 0.8084045648574829, -0.10712778568267822, -0.5354681015014648, -0.04042845219373703, 0.0006154458969831467, -0.05039462819695473, 0.17234402894973755, -0.02163810282945633, 0.15581275522708893, -0.2820476293563843, 0.02702467143535614, 0.30472296476364136, -0.34492141008377075, -0.3754401206970215, -0.042483601719141006, -0.21237587928771973, -0.013092219829559326, 0.17265944182872772, -0.09928806126117706, 0.1596006453037262, 0.06541594862937927, 0.03900349140167236, -0.15748532116413116, 0.17845000326633453, -0.14771568775177002, -0.28388455510139465, -0.3624427914619446, 0.020967453718185425, -0.007438041269779205, 0.39626407623291016, 0.14877218008041382, -0.042077310383319855, 0.2471258044242859, -0.01409061998128891, 0.15469515323638916, 0.12083087861537933, 0.25467580556869507, 0.15316613018512726, -0.23944397270679474, 0.33018988370895386, -0.004053167998790741, -0.3316985070705414, 0.3137979507446289, -0.4128645658493042, -0.0016718353144824505, 0.17176130414009094, 0.029931925237178802, -0.3266587257385254, -0.13338837027549744, -0.05592382326722145, -0.40573418140411377, -0.06406133621931076, -0.06816750764846802, 0.118989497423172, 0.09567956626415253, -0.13760048151016235, 0.03421401232481003, 0.29383930563926697, 0.2461945116519928, -0.4998989403247833, 0.08413496613502502, 0.014414744451642036, -0.21281088888645172, -0.22560521960258484, 0.013892724178731441, -0.011057991534471512, -0.1588861048221588, -0.2033102959394455, 0.36908626556396484, -0.0667351633310318, 0.37174004316329956, 0.27782413363456726, 0.32185277342796326, 0.011786973103880882, -0.4765178859233856, -0.05978405475616455, 0.2749156653881073, -0.05375020205974579, -0.016848035156726837, -0.4565022587776184, 0.34297266602516174, 0.10993914306163788, 0.05747174844145775, -0.27579814195632935, 0.3847724199295044, -0.03670090436935425, -0.23474586009979248, -0.5471621751785278, -0.11552819609642029, 0.4180023968219757, -0.2595302164554596, 0.2554793357849121, -0.10646387189626694, 0.11434850096702576, -0.20711050927639008, 0.1366576850414276, -0.03929360583424568, 0.28720128536224365, 0.15246248245239258, -0.35541683435440063, -0.061928652226924896, 0.033507123589515686, -0.08042283356189728, 0.36919355392456055, 0.07038834691047668, 0.28673774003982544, -0.03143749013543129, 0.08586536347866058, -0.1533983051776886, 0.1686103343963623, 0.1308804750442505, -0.11889457702636719, 0.1236361488699913, 0.21235983073711395, 0.1744193136692047, -0.2839016020298004, -0.1667080968618393, -0.23657462000846863, 0.06409817934036255, -0.39884570240974426, 0.1490958034992218, -0.01142234355211258, 0.5295212864875793, 0.04350411519408226, -0.060452088713645935, -0.22441665828227997, -0.29066136479377747, 0.15718720853328705, -0.22090622782707214, -0.053658533841371536, 0.32626932859420776, -0.22274456918239594, 0.66432785987854, 0.05257662385702133, -0.18655771017074585, -0.4059668779373169, -0.08926299214363098, -0.11268264800310135, -0.19451263546943665, -0.26272690296173096, 0.07344579696655273, -0.12263663113117218, -0.19257164001464844, 0.08054797351360321, 0.10650472342967987, -0.48349276185035706, 0.18507224321365356, 0.2666202783584595, 0.6751850843429565, 0.3146783411502838, -0.02355727180838585, -0.13792693614959717, -0.014028206467628479, 0.3056756258010864, -0.40944722294807434, -0.24370890855789185, 0.30836471915245056, -0.029944155365228653, 0.157907634973526, -0.2975550591945648, -0.2534160017967224, 0.16308443248271942, -0.2594072222709656, 0.5369831323623657, 0.035792700946331024, -0.03900286927819252, 0.04867720603942871, -0.04824882000684738, 0.19720116257667542, -0.22784185409545898, 0.24163445830345154, -0.09709203243255615, -0.4955853521823883, 0.493899941444397, -0.08997722715139389, -0.23254986107349396, -0.23300115764141083, -0.259603887796402, 0.29086610674858093, -0.04999197646975517, -0.49049413204193115, -0.28463175892829895, -0.15543566644191742, 0.1077013686299324, 0.051427554339170456, 0.04687809944152832, 0.5173732042312622, -0.07400843501091003, 0.08142828196287155, -0.1966247260570526, -0.10543446242809296, 0.482923299074173, -0.040345609188079834, 0.2072460800409317, -0.1482865959405899, 0.25237736105918884, 0.14570067822933197, 0.9683129787445068, 0.4021625518798828, 0.21088355779647827, 0.1378675103187561, 0.12127360701560974, 0.26914000511169434, -0.03276577591896057, -0.1612856686115265, 0.1290477216243744, 0.1736801713705063, -0.23896774649620056, 0.16252240538597107, 0.16194695234298706, 0.052404485642910004, -0.01705348491668701, 0.048059478402137756, -0.33722561597824097, -0.3736344575881958, 0.02589334361255169, -0.2867443561553955, 0.26747387647628784, 0.008465386927127838, 0.12985241413116455, -0.21059775352478027, 0.04961913079023361, 0.3940191864967346, 0.3825773000717163, 0.21303845942020416, 0.10412710905075073, -0.15156109631061554, 0.11649006605148315, -0.4340967535972595, 0.11251165717840195, -0.4435677230358124, 0.2958868443965912, -0.14936046302318573, -0.3472636342048645, -0.020361721515655518, -0.07411983609199524, 0.7864434123039246, 0.1294674575328827, -0.01218410860747099, -0.005625791847705841, -0.1805308759212494, -0.527990996837616, -0.17448736727237701, -0.24244844913482666, -0.06217966973781586, 0.3286208510398865, 0.41731908917427063, -0.34657254815101624, -0.0914418175816536, -0.08461820334196091, -0.11574873328208923, -0.25759416818618774, -0.18660098314285278, -0.3307993412017822, 0.09782866388559341, -0.17914938926696777, 0.10577438771724701, -0.17253831028938293, -0.1363506019115448, 0.003688111901283264, 0.10239312052726746, -0.19070863723754883, -0.08074089884757996, 0.07903478294610977, 0.32915955781936646, 0.3670138418674469, -0.4262428283691406, 0.20565396547317505, 0.5175892114639282, -0.32332560420036316, -0.13747897744178772, 0.3022692799568176, 0.1475372612476349, -0.10709560662508011, 0.41466283798217773, -0.05023350566625595, 0.16033977270126343, 0.5822027921676636, -0.20521536469459534, -0.015706725418567657, 0.08577680587768555, 0.35175076127052307, -0.12128332257270813, -0.059832073748111725, 0.28423091769218445, -0.10135416686534882, 0.2932528257369995, 0.2780110836029053, 0.4115166664123535, 0.20147542655467987, -0.26984304189682007, 0.2848835587501526, 0.020325861871242523, -0.15584158897399902, 0.5100287199020386, 0.03914323076605797, 1.0379655361175537, 0.1548091024160385, 0.2015148401260376, 0.1303996741771698, 0.16488780081272125, 0.4351429343223572, 0.12036065757274628, 0.043797172605991364, -0.2623809576034546, -0.35483288764953613, -0.018111877143383026, -0.28127071261405945, -0.0030665919184684753, -0.14458584785461426, -0.43784913420677185, 0.3533291220664978, -0.34263813495635986, 0.01780945435166359, -0.04031716287136078, -0.24229808151721954, -0.29604572057724, -0.12017558515071869, 0.154196098446846, -0.0456661693751812, 0.1980379819869995, 0.6490922570228577, -0.25890234112739563, -0.1568102240562439, -0.34866994619369507, -0.41286206245422363, -0.2985280752182007, 0.04459872841835022, -0.0711565613746643, -0.008400226011872292, 0.5609114766120911, -0.08843604475259781, -0.05020958185195923, 0.26438018679618835, 0.4029279053211212, 0.14585117995738983, -0.46773961186408997, 0.14154699444770813, -0.05905717611312866, 0.1639375537633896, 0.1763225942850113, 0.030241314321756363, 0.19745399057865143, 0.01599249243736267, -0.08116070181131363, 0.03174478933215141, -0.2748938202857971, 0.16124407947063446, 0.08959633111953735, -0.1340847611427307, -0.25044816732406616, -0.08253612369298935, 0.03576952591538429, 0.13382214307785034, -0.08205211907625198, -0.21473869681358337, 0.026969874277710915, 0.24677006900310516, -0.22925476729869843, 0.037118032574653625, 0.15162549912929535, -0.26286429166793823, -0.05792700871825218, 0.49281206727027893, -0.362527072429657, -0.09212856739759445, 0.3880809247493744, -0.014597535133361816, 0.0954931229352951, -0.09282322973012924, 0.10406966507434845, 0.42692697048187256, -0.976048469543457, 0.13699576258659363, -0.35071617364883423, -0.18698620796203613, 0.06632094085216522, 0.22577983140945435, 0.6225937008857727, -0.18982906639575958, -0.13349102437496185, -0.19522273540496826, -0.37366947531700134, 0.3917948007583618, -0.139020174741745, 0.1900530457496643, -0.5208065509796143, -0.0400969497859478, -0.09099045395851135, 0.24231848120689392, -0.18219327926635742, 0.22314944863319397, -0.29558444023132324, -0.06025436148047447, -0.16867612302303314, -0.09566032886505127, 0.32599031925201416, -0.19577401876449585, -0.14484833180904388, -0.0011053727939724922, -0.31090763211250305, -0.042405277490615845, -0.39046645164489746, 0.17317380011081696, -0.06930731236934662, 0.02031899243593216, -0.11179767549037933, 0.43310680985450745, 0.042607396841049194, -0.2253699153661728, 0.0421760156750679, 0.08080385625362396, 0.025740426033735275, 0.2968798875808716, 0.16805176436901093, 0.07123006880283356, -0.28174424171447754, 0.08829709142446518, 0.18182700872421265, -0.18841329216957092, 0.002574041485786438, 0.13771945238113403, -0.34462499618530273, -0.06451182067394257, 0.07769069075584412, 0.25679320096969604, -0.19012001156806946, 0.044310517609119415, 0.19963783025741577, -0.03540489077568054, -0.11887602508068085, -0.05542321503162384, 0.3305150270462036, 0.1367083638906479, -0.15939085185527802, 0.09502407163381577, -0.08860492706298828, 0.056829869747161865, -0.08027804642915726, 0.10481786727905273, 0.0006990619003772736, 0.32187825441360474, 0.08538155257701874, 0.32455915212631226, 0.16363462805747986, -0.16227973997592926, 0.35743337869644165, 0.19288364052772522, 0.19373393058776855, -0.13737881183624268, 0.3820768892765045, 0.023372506722807884, -0.026982523500919342, 0.4478304386138916, 0.4515416920185089, -0.07037957012653351, 0.2798921465873718, -0.140274778008461, 0.07535362243652344, 0.2244555950164795, -0.25272879004478455, 0.30907514691352844, -0.07722164690494537, -0.17820656299591064, -0.11375750601291656, 0.017701834440231323, 0.08196429163217545, 0.01495757419615984, -0.2574416697025299, 0.5996488928794861, -0.36095085740089417, -0.13592365384101868, -0.30584821105003357, 0.0015192702412605286, 0.010986631736159325, -0.26945850253105164, -0.01016700267791748, -0.14578142762184143, -0.21940428018569946, -0.23214443027973175, 0.222337007522583, 0.0849190354347229, 0.09279142320156097, 0.08691740036010742, 0.028184836730360985, -0.1800118088722229, -0.29463592171669006, 0.311285138130188, 0.22924530506134033, -0.25022512674331665, 0.11920825392007828, 0.29378795623779297, -0.3188093602657318, 0.08033737540245056, 0.6347105503082275, 0.29485952854156494, -0.08840791881084442, -0.07611458003520966, 0.12655992805957794, 0.18493518233299255, -0.010921202600002289, -0.09745801240205765, 0.23898811638355255, 0.17331647872924805, -0.3825121521949768, -0.04702701419591904, 0.034970562905073166, -0.11802807450294495, 0.3365170657634735, -0.2178981900215149, 0.17583929002285004, -0.27504393458366394, 0.5571630001068115, -0.22427521646022797, 0.04476143419742584, 0.12009879946708679, -0.11572969704866409, -0.6041257977485657, 0.25738203525543213, -0.13058143854141235, -0.02531965635716915, 0.12396565079689026, -0.04696374386548996, -0.017199287191033363, 0.02932141348719597, 0.20971393585205078, 0.4323579967021942, 0.23275621235370636, -0.2703857719898224, -0.23391540348529816, -0.5324946045875549, 0.26023051142692566, 0.1255425363779068, 0.3936372995376587, 0.23224812746047974, 0.22968514263629913, -0.015097223222255707, -0.03098459541797638, 0.1089068353176117, -0.006485357880592346, -0.19063203036785126, 0.05767970532178879, -0.44986021518707275, 0.09067274630069733, -0.06087784469127655, -0.042184848338365555, 0.033684104681015015, 0.09127727150917053, -0.019749710336327553, -0.08728806674480438, -0.08687756210565567, 0.16563507914543152, -0.2633644938468933, -0.05352730304002762, 0.14471542835235596, 0.33679425716400146, 0.16156764328479767, 0.07008840143680573, 0.018231630325317383, -0.16339725255966187, -0.24702367186546326, -0.19188092648983002, 0.04154474660754204, -0.2905658483505249, -0.36664167046546936, 0.4213342070579529, -0.29266849160194397, -0.38248753547668457, -0.32388836145401, 0.10427594184875488, 0.1808905452489853, -0.10405275970697403, -0.3937336206436157, 0.3160437345504761, -0.272499144077301, 0.04339456558227539, 0.28259778022766113, 0.3950484097003937, -0.12575805187225342, 0.3722696900367737, -0.2413482666015625, -0.03466128930449486, 0.6833052635192871, -0.5341158509254456, 0.19984614849090576, -0.33637893199920654, 0.34151214361190796, 0.26912009716033936, -0.33904343843460083, -0.33273035287857056, -0.15270061790943146, 0.15269875526428223, -0.008296830579638481, -0.14181384444236755, 0.06647295504808426, -0.14625155925750732, -0.07866640388965607, -0.08019229769706726, 0.41839659214019775, 0.16869179904460907, -0.09241729229688644, -0.027184441685676575, -0.10105016827583313 ]
https://github.com/huggingface/datasets/issues/1942
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 :-(
[experiment] missing default_experiment-1-0.arrow
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 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. 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 :-(
[ 0.036068111658096313, 0.03790454566478729, 0.09435877203941345, 0.12535876035690308, 0.17602407932281494, 0.05072297155857086, 0.18199415504932404, 0.25301533937454224, 0.20254598557949066, 0.2519219219684601, 0.0820867121219635, 0.18000075221061707, -0.37511253356933594, 0.0665903240442276, 0.1416405737400055, -0.07729043066501617, 0.016733694821596146, 0.0033794157207012177, -0.31330981850624084, -0.1381399929523468, -0.20796164870262146, 0.44817957282066345, -0.12280169129371643, 0.07436418533325195, -0.5695958733558655, 0.14984768629074097, -0.1701161414384842, 0.08054658770561218, -0.12551121413707733, -0.5812902450561523, 0.39192381501197815, 0.14580939710140228, 0.0017239674925804138, 0.4191243052482605, -0.00012620292545761913, -0.1343243569135666, 0.19364534318447113, -0.23333194851875305, -0.10474159568548203, -0.22250591218471527, 0.12687191367149353, -0.3101154565811157, 0.5224651098251343, -0.14608241617679596, -0.049545858055353165, -0.08384883403778076, 0.05436646193265915, -0.4214366376399994, 0.4781627655029297, 0.1183948963880539, 0.040327053517103195, 0.37585675716400146, 0.034930989146232605, -0.24925579130649567, -0.017678897827863693, -0.07745464891195297, 0.01024511456489563, 0.32990771532058716, -0.051730234175920486, -0.02977932244539261, -0.27941060066223145, 0.24368447065353394, 0.2794155478477478, -0.008850760757923126, 0.3128017783164978, -0.029778597876429558, -0.014522887766361237, -0.17379449307918549, -0.1312473714351654, 0.26085707545280457, 0.19493019580841064, -0.20897628366947174, -0.3556881844997406, -0.01329474151134491, -0.04114259406924248, -0.5314988493919373, 0.1682944893836975, -0.10754257440567017, -0.033615950495004654, 0.04749272018671036, -0.13163374364376068, -0.1672554314136505, -0.07197753340005875, 0.08746546506881714, -0.17601826786994934, 0.03989894315600395, -0.1421070098876953, 0.018771197646856308, 0.09591417014598846, 0.2716262936592102, -0.20973290503025055, 0.41070693731307983, 0.10142506659030914, 0.1463739424943924, -0.3606148958206177, 0.08255606144666672, 0.17219644784927368, -0.02823786810040474, 0.050263240933418274, 0.3950389623641968, 0.05608968436717987, 0.1017729714512825, 0.37559008598327637, 0.06026389077305794, -0.04597875475883484, 0.43117716908454895, 0.23442493379116058, 0.13575658202171326, 0.11606655269861221, 0.2224399745464325, -0.13671375811100006, -0.28103312849998474, 0.18331579864025116, -0.14497755467891693, 0.3832840919494629, 0.2245604693889618, -0.13696645200252533, -0.37693995237350464, 0.06372905522584915, 0.24648547172546387, -0.043697379529476166, -0.20415925979614258, 0.19650165736675262, 0.2750817835330963, 0.13415879011154175, 0.13874012231826782, 0.18686017394065857, 0.3029896020889282, -0.17224735021591187, -0.16569843888282776, -0.3989240825176239, -0.07464515417814255, -0.20949530601501465, 0.3997786045074463, 0.18941545486450195, -0.04119959473609924, 0.6616479158401489, -0.3590563237667084, 0.5086171627044678, -0.21403992176055908, 0.16022950410842896, 0.14580780267715454, 0.09742720425128937, 0.28981804847717285, -0.021446533501148224, 0.09919699281454086, 0.3203163743019104, 0.05838673561811447, -0.19333159923553467, -0.33342576026916504, -0.23355861008167267, -0.5762780904769897, 0.11607471853494644, -0.055239733308553696, -0.5121430158615112, 0.2240830659866333, 0.1648787260055542, 0.30899956822395325, -0.15303951501846313, -0.13488629460334778, 0.1365177184343338, -0.03619993478059769, -0.1778373122215271, -0.01817747950553894, 0.6248612999916077, 0.5545920133590698, -0.3065960109233856, -0.4664389491081238, 0.10928080976009369, -0.010735707357525826, -0.10184890031814575, 0.1589728742837906, -0.060335732996463776, 0.33441078662872314, -0.18207280337810516, 0.08704039454460144, 0.4544464349746704, -0.40800875425338745, -0.40839654207229614, -0.2533527612686157, -0.22930672764778137, -0.14331039786338806, 0.08849483728408813, -0.03393416479229927, 0.1266491413116455, 0.2276441752910614, 0.07505810260772705, -0.21009561419487, 0.1428101658821106, -0.34062573313713074, -0.22925502061843872, -0.25666001439094543, -0.0860026478767395, 0.01652025431394577, 0.46952277421951294, -0.0004949793219566345, -0.05021160840988159, 0.06699202209711075, 0.055292461067438126, 0.027339130640029907, 0.23161250352859497, 0.2274734526872635, 0.18492060899734497, -0.004150519147515297, 0.18678805232048035, -0.0504860058426857, -0.22157511115074158, 0.30263975262641907, -0.2930179238319397, 0.036022499203681946, 0.1714072823524475, -0.017463959753513336, -0.11598929017782211, -0.09481455385684967, -0.0791349709033966, -0.3731914162635803, -0.03578871116042137, -0.0878942459821701, 0.23291046917438507, 0.14194415509700775, -0.22978152334690094, 0.12307056039571762, -0.04622213914990425, 0.25933271646499634, -0.3241705596446991, 0.1597561240196228, -0.06094978004693985, -0.3210315406322479, -0.004019342362880707, 0.2121325433254242, -0.10067693144083023, 0.04240507632493973, -0.19414004683494568, 0.3698187470436096, -0.1435655951499939, 0.17639599740505219, 0.3263867199420929, 0.19481399655342102, -0.09464146941900253, -0.46809038519859314, -0.18683770298957825, 0.02265792340040207, -0.07801871746778488, -0.04257308691740036, -0.1915089637041092, 0.4211590886116028, 0.1166607066988945, 0.16901765763759613, -0.2548603415489197, 0.35264503955841064, -0.1358465999364853, -0.04654683172702789, -0.5137106776237488, -0.11196981370449066, 0.34000104665756226, -0.4222240149974823, 0.30110543966293335, -0.18350526690483093, -0.02506956458091736, -0.05429824814200401, 0.2423659861087799, 0.10839221626520157, 0.12556755542755127, 0.10390177369117737, -0.22009781002998352, -0.0708630308508873, -0.02158517763018608, -0.19329404830932617, 0.4366638958454132, 0.1965452879667282, 0.27748557925224304, 0.08605125546455383, 0.09428328275680542, -0.12305344641208649, 0.07706503570079803, 0.12158463150262833, -0.09862856566905975, 0.07372637838125229, 0.1942547857761383, 0.1487443745136261, -0.3226955831050873, -0.0074755847454071045, -0.3011009693145752, 0.019534217193722725, -0.3337208032608032, 0.0596698597073555, -0.2368711233139038, 0.3630673289299011, 0.16838382184505463, -0.0021912194788455963, -0.2333550602197647, -0.2706063985824585, 0.21536298096179962, -0.19626501202583313, -0.02218867465853691, 0.315024733543396, -0.2984651029109955, 0.604912519454956, 0.06154589354991913, -0.0226246640086174, -0.22797608375549316, -0.14951448142528534, -0.036812856793403625, -0.1780066043138504, -0.19407996535301208, 0.09684944152832031, 0.03748467564582825, -0.1499425172805786, 0.14265766739845276, -0.10253866016864777, -0.36010316014289856, 0.09334023296833038, 0.019536303356289864, 0.6119937300682068, 0.3463461697101593, -0.0454065278172493, -0.3527434468269348, 0.09915772080421448, 0.45000672340393066, -0.40799829363822937, -0.27670300006866455, 0.11332961916923523, 0.03144446387887001, 0.1227024719119072, -0.22309063374996185, -0.28906118869781494, 0.011266263201832771, -0.28152525424957275, 0.5991317629814148, 0.04106637090444565, -0.0020706448704004288, -0.2288423478603363, -0.023793406784534454, 0.17732784152030945, -0.32900547981262207, 0.24690976738929749, -0.2935868501663208, -0.7149358987808228, 0.4781394600868225, -0.09089212119579315, -0.27234217524528503, -0.10587059706449509, 0.06753179430961609, 0.43476855754852295, -0.0653749629855156, -0.6561150550842285, -0.4437873661518097, 0.09039799869060516, 0.09183883666992188, -0.042577020823955536, 0.1582767218351364, 0.5028116106987, -0.06402555853128433, 0.007704481482505798, -0.10601919889450073, -0.2926112115383148, 0.5380765199661255, -0.1749773770570755, 0.15554511547088623, -0.22708871960639954, 0.292768269777298, 0.2596624493598938, 0.9461435675621033, 0.5229729413986206, 0.14942875504493713, 0.2371041625738144, 0.1094772219657898, 0.44456377625465393, -0.06998561322689056, -0.14951372146606445, 0.37078869342803955, 0.11294899135828018, -0.016250815242528915, 0.21791991591453552, 0.08889080584049225, 0.14270877838134766, -0.14631325006484985, 0.06346163153648376, -0.2214713841676712, -0.3302627503871918, -0.0235037449747324, -0.139238640666008, 0.19613924622535706, 0.010512091219425201, 0.11610136181116104, -0.2785871922969818, -0.016078751534223557, 0.3919548988342285, 0.20685799419879913, 0.18290084600448608, 0.27927669882774353, -0.20794937014579773, -0.14122582972049713, -0.5621311664581299, 0.24529966711997986, -0.3804304599761963, 0.04530986025929451, -0.1028638482093811, -0.20989422500133514, 0.1184135228395462, 0.04326809570193291, 0.46755796670913696, 0.026983147487044334, -0.24991144239902496, 0.04417826980352402, -0.1463383436203003, -0.31953564286231995, -0.14337271451950073, -0.09260646998882294, -0.03627034276723862, 0.2236897200345993, 0.3636891543865204, -0.30877092480659485, -0.23445558547973633, -0.026469552889466286, -0.07689706981182098, -0.26224595308303833, -0.23041942715644836, -0.3326174318790436, 0.018140122294425964, -0.10066468268632889, 0.23805749416351318, -0.20818555355072021, 0.02906779572367668, 0.05815983563661575, 0.028123967349529266, -0.14813566207885742, -0.03082932159304619, 0.06674813479185104, 0.14221590757369995, 0.2505319118499756, -0.25250038504600525, 0.18543392419815063, 0.5488849878311157, -0.04898412153124809, 0.048274628818035126, 0.37693238258361816, -0.007540836930274963, -0.07657976448535919, 0.29729315638542175, -0.11364623159170151, 0.42946863174438477, 0.5456274151802063, -0.23863805830478668, -0.028839685022830963, 0.015082400292158127, 0.38630592823028564, -0.1887579709291458, 0.04191455617547035, 0.3080281615257263, -0.07010579109191895, 0.35144874453544617, 0.20134976506233215, 0.2649250030517578, 0.3189358711242676, -0.13597257435321808, 0.3833772838115692, 0.1452752649784088, -0.16847267746925354, 0.24440741539001465, 0.14068849384784698, 0.9382528066635132, 0.07552513480186462, 0.18952442705631256, 0.11681690812110901, 0.16130104660987854, 0.5568838715553284, 0.08649934828281403, 0.0911393016576767, -0.033671341836452484, -0.33768799901008606, -0.029873661696910858, -0.13863690197467804, -0.056579336524009705, -0.24171480536460876, -0.18628230690956116, 0.4872964322566986, -0.20205844938755035, -0.13702435791492462, -0.18318118155002594, -0.1983546018600464, -0.0345439575612545, -0.2534298598766327, 0.10109753906726837, -0.027763355523347855, -0.00010710302740335464, 0.45755743980407715, -0.19772955775260925, -0.1139499694108963, -0.27504467964172363, -0.3137761354446411, -0.23209114372730255, -0.06863822788000107, -0.3299615979194641, -0.06373617798089981, 0.38905149698257446, -0.07426290214061737, -0.06913118809461594, 0.2970839738845825, 0.4629923105239868, 0.0839800164103508, -0.34563907980918884, 0.023330289870500565, 0.0002663135528564453, 0.06646373122930527, 0.07841125875711441, 0.007358059287071228, 0.3216216266155243, -0.06627514958381653, 0.010204926133155823, 0.06473083794116974, -0.2347317636013031, 0.08673332631587982, 0.12230539321899414, -0.158500537276268, -0.025775540620088577, -0.016424857079982758, 0.1262872815132141, 0.09883670508861542, 0.030555643141269684, -0.3260997235774994, 0.0412871278822422, 0.283149778842926, -0.22109203040599823, 0.15189380943775177, 0.1960548460483551, -0.2191641628742218, -0.0440744012594223, 0.5630210638046265, -0.2119455486536026, -0.15109199285507202, 0.42015039920806885, -0.015550650656223297, -0.024256471544504166, -0.08764445781707764, -0.0401977002620697, 0.5411641597747803, -0.6515186429023743, 0.0948462188243866, -0.07887723296880722, -0.06764456629753113, 0.024186264723539352, 0.21469935774803162, 0.44760575890541077, -0.16356661915779114, -0.03578445687890053, -0.16672776639461517, -0.4597933888435364, 0.3591097891330719, -0.29165196418762207, 0.14361156523227692, -0.4845038950443268, 0.21597085893154144, -0.10502202808856964, 0.3118296265602112, -0.22530364990234375, 0.14614984393119812, -0.31804582476615906, -0.12919196486473083, -0.09332919120788574, 0.01104720402508974, 0.2815723121166229, -0.08909872174263, -0.11967098712921143, 0.05860799178481102, -0.3794823884963989, -0.05099087208509445, -0.23840034008026123, 0.1548076719045639, -0.06309551745653152, 0.1762828528881073, 0.07749827951192856, 0.29394271969795227, -0.12195483595132828, -0.20281575620174408, -0.07568718492984772, 0.15943403542041779, 0.0939316600561142, 0.15155264735221863, 0.04644615203142166, 0.16613930463790894, -0.0703115463256836, 0.09642651677131653, 0.2369106113910675, -0.12212887406349182, -0.1685437560081482, 0.07124532014131546, -0.22726406157016754, -0.10836586356163025, 0.14686517417430878, 0.085944265127182, -0.2312788963317871, 0.16140706837177277, 0.11704211682081223, 0.015742968767881393, -0.3260175883769989, -0.04473545402288437, 0.45712244510650635, 0.15185819566249847, -0.17275656759738922, 0.10716772824525833, -0.04832776263356209, 0.04195520654320717, -0.17856043577194214, 0.22043836116790771, 0.03086157888174057, 0.3870636522769928, 0.0750012993812561, 0.24143967032432556, 0.24136663973331451, -0.09067830443382263, 0.1284106969833374, 0.14797934889793396, -0.11518561840057373, -0.1851317286491394, 0.3271125257015228, -0.08665955066680908, 0.1272323727607727, 0.2972467243671417, 0.580282986164093, 0.1529763787984848, 0.18360856175422668, 0.026347998529672623, -0.14655813574790955, 0.20865125954151154, -0.138853520154953, 0.28440219163894653, -0.20599471032619476, -0.0926637053489685, -0.24104046821594238, 0.057758696377277374, 0.05927373096346855, -0.1637319177389145, -0.5557777881622314, 0.8412666916847229, -0.29073798656463623, -0.3601013422012329, -0.18301430344581604, 0.1928282380104065, -0.09188461303710938, -0.14441396296024323, -0.13947901129722595, -0.1471370905637741, -0.1995597779750824, -0.15213844180107117, 0.24228158593177795, -0.022782307118177414, 0.24971240758895874, 0.045651875436306, 0.029893659055233, -0.23452609777450562, -0.5137043595314026, 0.28726834058761597, 0.26455986499786377, -0.17977356910705566, 0.12786448001861572, 0.16443969309329987, -0.3647376000881195, 0.10350949317216873, 0.700533390045166, 0.2391313910484314, -0.05774027854204178, -0.10016712546348572, 0.045619383454322815, 0.25287294387817383, -0.04107164591550827, -0.06987836956977844, 0.1960648000240326, 0.35565218329429626, -0.5932103395462036, 0.10438691079616547, -0.0007090270519256592, -0.09658549726009369, 0.4026238024234772, -0.28773367404937744, 0.37890416383743286, -0.24127569794654846, 0.46474799513816833, -0.11825662106275558, 0.04425550997257233, 0.03363556042313576, -0.17678381502628326, -0.699065089225769, 0.37906983494758606, -0.060034118592739105, 0.005105741322040558, 0.0743907168507576, -0.2577636241912842, 0.013113602995872498, -0.034339047968387604, 0.29010555148124695, 0.42056629061698914, 0.060913681983947754, -0.29946115612983704, -0.264694482088089, -0.5396562814712524, 0.19276317954063416, 0.14145216345787048, 0.3431110382080078, -0.003989838063716888, 0.3530113101005554, 0.030911754816770554, 0.07167918980121613, 0.23825930058956146, -0.019662052392959595, -0.06008806452155113, -0.027957197278738022, -0.6378628015518188, 0.12464900314807892, -0.13509131968021393, 0.0022305194288492203, 0.17868229746818542, 0.32662394642829895, 0.01662609912455082, -0.22678285837173462, -0.08308824151754379, 0.30128490924835205, -0.08869026601314545, -0.13837209343910217, 0.309823215007782, 0.42410388588905334, 0.06092207133769989, 0.18108965456485748, 0.0859953761100769, -0.01585865020751953, -0.1867472380399704, -0.10264294594526291, -0.09077124297618866, -0.08473734557628632, -0.2794480323791504, 0.4343641996383667, -0.477682501077652, -0.3170902729034424, -0.36019402742385864, 0.0708860233426094, 0.15064725279808044, -0.1097971647977829, -0.31431931257247925, 0.3568701148033142, -0.11463180184364319, 0.050809551030397415, 0.36098676919937134, 0.36765944957733154, -0.09814450144767761, 0.35053467750549316, -0.37644481658935547, -0.17784778773784637, 0.772118091583252, -0.4845304489135742, 0.24514760076999664, -0.34266844391822815, 0.3337128460407257, 0.628501296043396, -0.2959866523742676, -0.5779035091400146, -0.01018930971622467, 0.16678926348686218, 0.05620221793651581, -0.30474430322647095, 0.1543697714805603, -0.47894302010536194, 0.01776808500289917, -0.06751730293035507, 0.3459014296531677, 0.11383123695850372, -0.029607530683279037, -0.04200826585292816, -0.18314677476882935 ]
https://github.com/huggingface/datasets/issues/1942
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. ```
[experiment] missing default_experiment-1-0.arrow
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 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. 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. ```
[ -0.08441560715436935, -0.06571947038173676, 0.06521785259246826, 0.27223727107048035, -0.08708636462688446, -0.03266456723213196, 0.1643523871898651, 0.26979658007621765, 0.3311938941478729, 0.08320550620555878, 0.09826107323169708, 0.19418516755104065, -0.358064740896225, -0.0889754444360733, -0.015605498105287552, 0.049804773181676865, 0.0008353926241397858, -0.12402713298797607, -0.4149838984012604, -0.10041286051273346, -0.34997642040252686, 0.5602378249168396, -0.15716812014579773, 0.0035178102552890778, -0.4620625376701355, 0.1669692099094391, -0.19281131029129028, 0.23859372735023499, -0.10552508383989334, -0.5698460936546326, 0.2600383162498474, 0.348897248506546, -0.017399396747350693, 0.5673115253448486, -0.00012186594540253282, -0.1565488874912262, 0.28980323672294617, -0.12593278288841248, -0.09288913011550903, -0.14964351058006287, 0.051642194390296936, -0.308516263961792, 0.4341695308685303, -0.19718682765960693, -0.08208292722702026, -0.009886903688311577, 0.07583107799291611, -0.49513083696365356, 0.42868363857269287, 0.064446359872818, 0.08911897242069244, 0.4689292907714844, -0.037480615079402924, -0.18650415539741516, -0.009300466626882553, -0.1247955709695816, 0.02364114671945572, 0.35945963859558105, -0.011902902275323868, 0.005028121173381805, -0.2551398277282715, 0.2341877818107605, 0.23509520292282104, -0.0686759501695633, 0.3630651533603668, 0.00024190545082092285, -0.023256365209817886, -0.1683155596256256, -0.19446706771850586, 0.3529823422431946, 0.13518504798412323, -0.19813047349452972, -0.2590881288051605, 0.028815671801567078, -0.18935422599315643, -0.4624345004558563, 0.14299269020557404, -0.13143780827522278, 0.030105173587799072, 0.08808726072311401, 0.0458044670522213, 0.0006790086627006531, 0.006420835852622986, 0.04804278910160065, -0.07506239414215088, 0.02688358724117279, -0.11028790473937988, 0.09666496515274048, -0.07707637548446655, 0.26744967699050903, -0.30811166763305664, 0.21201230585575104, -0.01616295985877514, 0.12042208760976791, -0.4356834888458252, 0.08948168158531189, 0.21628530323505402, 0.05340226739645004, 0.07262270152568817, 0.43138551712036133, -0.03192993625998497, 0.10222946852445602, 0.39791223406791687, 0.11392004042863846, -0.06713654100894928, 0.4132385849952698, 0.23916056752204895, -0.010475218296051025, 0.18749591708183289, 0.27393612265586853, -0.08546101301908493, -0.23059171438217163, 0.20110277831554413, -0.2459423542022705, 0.3607816696166992, 0.09591458737850189, 0.13559851050376892, -0.38999852538108826, 0.08053166419267654, 0.30113837122917175, -0.07508020102977753, -0.15682868659496307, 0.15802714228630066, 0.3855435252189636, 0.08523926138877869, -0.04637293517589569, 0.3243298828601837, 0.3055720627307892, -0.2333543598651886, 0.0019367821514606476, -0.4296099543571472, -0.23537379503250122, -0.11948801577091217, 0.3071150779724121, 0.05910806357860565, -0.013056417927145958, 0.6048249006271362, -0.18732059001922607, 0.3196304440498352, -0.09078776836395264, 0.3079954981803894, 0.17447742819786072, 0.07461252808570862, 0.2866275906562805, -0.08195118606090546, 0.18519631028175354, 0.3427528142929077, 0.12441422045230865, -0.2457849383354187, -0.28601813316345215, -0.0978621393442154, -0.4152008891105652, 0.1885589063167572, 0.000530916266143322, -0.5068398118019104, 0.239495187997818, 0.40413033962249756, 0.21877694129943848, -0.05336163192987442, -0.1476346254348755, 0.2692393362522125, -0.04100259020924568, -0.15806761384010315, -0.01709803007543087, 0.4377284049987793, 0.8433102965354919, -0.23218990862369537, -0.40205350518226624, 0.12696927785873413, -0.05514313280582428, 0.021092614158988, 0.226146399974823, -0.01515679806470871, 0.13138923048973083, -0.27693501114845276, 0.1363203227519989, 0.3145761489868164, -0.3304307460784912, -0.5092275738716125, -0.06677700579166412, -0.43747225403785706, -0.03406891971826553, 0.19259455800056458, 0.109986312687397, 0.08470264077186584, 0.12348459661006927, 0.11663594096899033, -0.26430797576904297, 0.26562318205833435, -0.34586912393569946, -0.3824670612812042, -0.2897079885005951, -0.03706550598144531, 0.017556585371494293, 0.3021220564842224, 0.001597527414560318, -0.06530424952507019, 0.037457097321748734, 0.13780345022678375, 0.19160868227481842, 0.1767643690109253, 0.24037213623523712, 0.23502272367477417, 0.006178846582770348, 0.24781325459480286, 0.11330099403858185, -0.23646065592765808, 0.3414188623428345, -0.3823016285896301, 0.09152115881443024, 0.184273824095726, 0.03444742411375046, -0.15899454057216644, -0.1162983775138855, -0.17906257510185242, -0.4125056564807892, 0.026913926005363464, -0.1299063265323639, 0.179064080119133, 0.17481492459774017, -0.19571012258529663, 0.1845989227294922, -0.031174108386039734, 0.244520366191864, -0.48669520020484924, 0.08091569691896439, -0.044164448976516724, -0.3607320487499237, -0.0655890479683876, 0.03901010751724243, 0.03761997073888779, 0.041150178760290146, -0.1389891654253006, 0.36880338191986084, -0.10381482541561127, 0.25143787264823914, 0.21939046680927277, 0.2252398133277893, -0.05831664055585861, -0.33098655939102173, -0.10561198741197586, 0.12392714619636536, 0.0039938874542713165, -0.04517178237438202, -0.17593204975128174, 0.388406902551651, 0.09001509845256805, 0.14617562294006348, -0.3499467670917511, 0.21827444434165955, -0.0972634106874466, -0.16630373895168304, -0.5556681752204895, -0.03804896026849747, 0.47285354137420654, -0.2647349238395691, 0.277021586894989, -0.16313184797763824, 0.013720937073230743, 0.022310730069875717, 0.23331685364246368, 0.15455262362957, 0.1547575294971466, 0.04337307810783386, -0.23330920934677124, -0.06448013335466385, 0.041828952729701996, -0.16155940294265747, 0.46006032824516296, 0.19558937847614288, 0.24319599568843842, 0.13276822865009308, 0.08745567500591278, -0.24595233798027039, 0.07576821744441986, 0.020698856562376022, -0.16910237073898315, 0.15930503606796265, 0.15148088335990906, 0.14352503418922424, -0.32884958386421204, -0.13800153136253357, -0.27435457706451416, 0.03291841596364975, -0.3341396749019623, 0.10207933187484741, -0.1349843144416809, 0.4001251757144928, 0.15465213358402252, 0.06453140079975128, -0.12728998064994812, -0.2716537415981293, 0.1869913935661316, -0.10144807398319244, 0.030564002692699432, 0.28098562359809875, -0.2944427728652954, 0.5300468802452087, 0.1100015938282013, -0.18119847774505615, -0.3561824858188629, -0.21118561923503876, -0.007686821278184652, -0.16226430237293243, -0.17943590879440308, 0.19308310747146606, 0.09394600242376328, -0.18358692526817322, -0.028658729046583176, -0.0898883044719696, -0.3543087840080261, 0.06462171673774719, 0.057999249547719955, 0.6808118224143982, 0.28626373410224915, 0.0012738145887851715, -0.22506390511989594, 0.06850582361221313, 0.40619033575057983, -0.4061916172504425, -0.3184203505516052, 0.0798088014125824, -0.027171552181243896, 0.13674713671207428, -0.31718796491622925, -0.2778089642524719, 0.1093105673789978, -0.3724225163459778, 0.6279048323631287, 0.03515910357236862, -0.0284731425344944, -0.11514419317245483, -0.006565231829881668, 0.24525035917758942, -0.20815372467041016, 0.21812187135219574, -0.37084490060806274, -0.6790496110916138, 0.37615877389907837, -0.07018303871154785, -0.2920278012752533, -0.1314426213502884, 0.04022715985774994, 0.3392746150493622, -0.07916892319917679, -0.5926973819732666, -0.5223212838172913, -0.032428376376628876, 0.3241589069366455, 0.022235209122300148, -0.010158839635550976, 0.5464064478874207, -0.09360206127166748, -0.02447468787431717, -0.0935697928071022, -0.115788035094738, 0.649882435798645, -0.16000628471374512, 0.12536272406578064, -0.0418158695101738, 0.5212670564651489, 0.14029788970947266, 0.9083524346351624, 0.5984097123146057, 0.10780861973762512, 0.2427329123020172, 0.08595667034387589, 0.37660837173461914, -0.132387176156044, -0.1446453034877777, 0.3193691670894623, 0.1811806559562683, -0.12004655599594116, 0.19486887753009796, 0.0696764588356018, 0.17363038659095764, -0.06704531610012054, 0.0006565526127815247, -0.2872377932071686, -0.31731879711151123, -0.08602087199687958, -0.022039713338017464, 0.19464530050754547, 0.02601996809244156, 0.04640187323093414, -0.1714588850736618, 0.021022837609052658, 0.4557759761810303, 0.46674108505249023, 0.24458900094032288, 0.15180635452270508, -0.2346043884754181, 0.15027174353599548, -0.6847790479660034, 0.2808539569377899, -0.4843691289424896, 0.09266173839569092, -0.20836690068244934, -0.22266650199890137, 0.12518058717250824, -0.10388556122779846, 0.5619886517524719, 0.11112570017576218, -0.09810038655996323, 0.038946643471717834, -0.20032311975955963, -0.4362589120864868, -0.0758717805147171, -0.152086079120636, -0.05483946204185486, 0.3091390132904053, 0.41017016768455505, -0.4372711777687073, -0.21955564618110657, -0.16748496890068054, -0.11535657197237015, -0.2638755440711975, -0.3710043132305145, -0.3840124309062958, -0.06934750080108643, -0.17286130785942078, 0.2685467600822449, -0.14940515160560608, -0.03379419445991516, -0.00021206960082054138, -0.017642445862293243, -0.17786604166030884, -0.11785805225372314, 0.009337924420833588, 0.1683959662914276, 0.32395046949386597, -0.31012794375419617, 0.2613332271575928, 0.5088198184967041, -0.28636839985847473, 0.007069343701004982, 0.3720153272151947, 0.11259472370147705, 0.01146557368338108, 0.35378873348236084, -0.03895672783255577, 0.1451953798532486, 0.6060225367546082, -0.2288956344127655, 0.13731275498867035, 0.07750916481018066, 0.38244718313217163, -0.17335447669029236, -0.03286025673151016, 0.35606399178504944, -0.06463761627674103, 0.36573007702827454, 0.1943792700767517, 0.21345768868923187, 0.25514543056488037, -0.21640907227993011, 0.3798711895942688, 0.0024195611476898193, -0.12546777725219727, 0.2896784842014313, 0.06626802682876587, 0.9412875771522522, 0.1287699192762375, 0.13162419199943542, 0.30742794275283813, 0.030038930475711823, 0.3580702245235443, 0.15755543112754822, 0.0769379734992981, -0.2155003696680069, -0.2878906726837158, 0.028125762939453125, -0.14260053634643555, 0.056501567363739014, -0.27865836024284363, -0.19922488927841187, 0.34682291746139526, -0.3472926914691925, -0.13689923286437988, -0.20961099863052368, -0.10002078115940094, -0.29520294070243835, -0.14413359761238098, 0.11082872748374939, 0.037924014031887054, 0.056116245687007904, 0.5053173303604126, -0.19627217948436737, -0.14567679166793823, -0.3237815201282501, -0.23610039055347443, -0.09891632199287415, -0.019242271780967712, -0.21282285451889038, 0.003183707594871521, 0.22556522488594055, -0.09052646905183792, -0.1694486290216446, 0.26232820749282837, 0.4520953595638275, 0.1580686867237091, -0.28062406182289124, 0.08062291145324707, 0.13055028021335602, 0.05935291200876236, 0.11809001117944717, -0.09613899886608124, 0.23948760330677032, -0.1169215589761734, -0.09714502096176147, 0.08975222706794739, -0.2411242574453354, 0.05968359112739563, 0.06250791251659393, -0.12475286424160004, -0.06132751703262329, -0.0006807409226894379, 0.018708303570747375, 0.17449790239334106, -0.013329647481441498, -0.24172276258468628, 0.07766910642385483, 0.3355977535247803, -0.19579949975013733, 0.08467662334442139, 0.11143656075000763, -0.26213109493255615, -0.16539858281612396, 0.559982180595398, -0.1930413395166397, -0.043804820626974106, 0.49424606561660767, 0.062081679701805115, -0.021479029208421707, -0.08959539979696274, 0.06654916703701019, 0.4614338278770447, -0.7272005677223206, 0.1340646594762802, -0.046932652592659, -0.0091647207736969, 0.11008164286613464, 0.2127385288476944, 0.37926018238067627, -0.1826423853635788, -0.08861586451530457, -0.1702747344970703, -0.34976914525032043, 0.23200875520706177, -0.3465443551540375, 0.18597525358200073, -0.41200074553489685, 0.08635115623474121, -0.2553623616695404, 0.232076033949852, -0.28227728605270386, 0.14034278690814972, -0.310970276594162, -0.1574935019016266, -0.08584767580032349, -0.10430368036031723, 0.3523842394351959, -0.04949256032705307, -0.0698431134223938, 0.12688478827476501, -0.469196617603302, -0.10155892372131348, -0.2797078788280487, 0.13883234560489655, -0.13049466907978058, 0.07796704769134521, -0.005185943096876144, 0.20577137172222137, -0.030487600713968277, -0.09407233446836472, 0.018716961145401, 0.19577445089817047, 0.026635849848389626, 0.04203372448682785, 0.20911292731761932, 0.1399056613445282, -0.1949334442615509, 0.16301122307777405, 0.08529462665319443, -0.2907067835330963, -0.11560381203889847, -0.01077123824506998, -0.29825371503829956, -0.07220315933227539, 0.16725030541419983, 0.12542252242565155, -0.1080610379576683, 0.14420470595359802, 0.12645231187343597, -0.007673371583223343, -0.3007795810699463, -0.021941378712654114, 0.4440125524997711, 0.14936988055706024, -0.13833525776863098, -0.10043754428625107, -0.14684641361236572, 0.09668351709842682, -0.09563805907964706, 0.2848829925060272, -0.005599038675427437, 0.3573439121246338, 0.1428941786289215, 0.2579460144042969, 0.17337939143180847, 0.0006108134984970093, 0.08385804295539856, 0.2874685227870941, 0.033803097903728485, -0.17453621327877045, 0.29081016778945923, -0.21252202987670898, 0.1121101975440979, 0.3444502651691437, 0.6617324352264404, 0.043683819472789764, 0.199688121676445, -0.13150735199451447, -0.0667860209941864, 0.2362423539161682, -0.10900381207466125, 0.3268863558769226, -0.2201712429523468, -0.10099571198225021, -0.11563725769519806, 0.07009970396757126, -0.10661521553993225, -0.13367845118045807, -0.37849265336990356, 0.6685900688171387, -0.3151123821735382, -0.203156977891922, -0.18476642668247223, 0.24267250299453735, -0.13577523827552795, -0.24703046679496765, -0.1185152605175972, -0.15957514941692352, -0.09611131250858307, -0.1728559285402298, 0.21040092408657074, 0.07222707569599152, 0.1171075701713562, 0.05226432532072067, 0.03292180597782135, -0.25325626134872437, -0.4568682610988617, 0.261801540851593, 0.23183104395866394, -0.22344203293323517, 0.02506793849170208, 0.28087109327316284, -0.3499056100845337, 0.11829108744859695, 0.6035224795341492, 0.23229989409446716, -0.05823144316673279, -0.08345922827720642, 0.10730729252099991, 0.32676637172698975, 0.016956426203250885, -0.09941990673542023, 0.1862424910068512, 0.31382471323013306, -0.5439273715019226, 0.06299439072608948, 0.06797370314598083, -0.17953646183013916, 0.39421358704566956, -0.23184552788734436, 0.33500146865844727, -0.25360551476478577, 0.41012945771217346, -0.23096883296966553, 0.1492195427417755, 0.04426776245236397, -0.1309385448694229, -0.6219239234924316, 0.2565176486968994, -0.05462934821844101, -0.05051790550351143, 0.06296111643314362, -0.2929472029209137, 0.04559851437807083, -0.12453929334878922, 0.25032487511634827, 0.32527488470077515, 0.02521831914782524, -0.35225415229797363, -0.19598743319511414, -0.5977162718772888, 0.2946242690086365, 0.1455523520708084, 0.24861210584640503, -0.014124106615781784, 0.363727867603302, -0.09741593897342682, 0.08272475004196167, 0.17929819226264954, -0.06952209770679474, -0.15201637148857117, 0.053688421845436096, -0.5792642831802368, 0.19037063419818878, -0.1522354930639267, -0.15250320732593536, 0.1285754293203354, 0.19375349581241608, 0.003823450766503811, -0.2565798759460449, 0.0009939298033714294, 0.249680757522583, -0.2043687105178833, 0.009800799190998077, 0.2409561574459076, 0.46134084463119507, 0.13741092383861542, 0.0890941470861435, 0.01199406385421753, -0.08010861277580261, -0.25068143010139465, -0.16014376282691956, -0.10503432154655457, -0.17497965693473816, -0.33288291096687317, 0.48537778854370117, -0.3128301501274109, -0.5159755349159241, -0.28950172662734985, 0.29526254534721375, 0.08795755356550217, -0.33340132236480713, -0.2367611974477768, 0.38184261322021484, -0.1371767222881317, 0.0356159582734108, 0.23869577050209045, 0.3839946985244751, 0.09104559570550919, 0.380901038646698, -0.32901448011398315, -0.17539483308792114, 0.7739757299423218, -0.526574969291687, 0.24812698364257812, -0.2379908710718155, 0.3535305857658386, 0.40057316422462463, -0.36860084533691406, -0.29910796880722046, -0.08650530129671097, 0.13885939121246338, 0.01363338902592659, -0.15857356786727905, 0.1545865386724472, -0.3073345124721527, -0.027186773717403412, -0.048386216163635254, 0.14586935937404633, 0.1749284863471985, -0.04910927265882492, -0.003015570342540741, -0.14773093163967133 ]
https://github.com/huggingface/datasets/issues/1942
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.
[experiment] missing default_experiment-1-0.arrow
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 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. 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.
[ 0.08813989162445068, -0.10928656905889511, 0.11583006381988525, 0.28568312525749207, 0.08457314968109131, 0.08065587282180786, 0.23499712347984314, 0.23771563172340393, 0.23479096591472626, 0.2356439232826233, 0.07886265963315964, 0.1667121797800064, -0.37396055459976196, -0.22426535189151764, 0.06688323616981506, 0.05039144679903984, -0.0005044862627983093, -0.14398832619190216, -0.22103016078472137, -0.1951076090335846, -0.20405533909797668, 0.531971275806427, -0.08883073180913925, -0.05025582015514374, -0.5913399457931519, 0.28818365931510925, -0.1651012897491455, 0.18235355615615845, -0.06840305775403976, -0.6171514987945557, 0.37008902430534363, 0.14901131391525269, 0.08295172452926636, 0.5546144247055054, -0.00013188803859520704, -0.19945375621318817, 0.2629813849925995, -0.22112983465194702, -0.1534063220024109, -0.2687930464744568, 0.15278255939483643, -0.25756457448005676, 0.5715035796165466, -0.16304631531238556, -0.14161823689937592, -0.08794593065977097, 0.09007924795150757, -0.448361873626709, 0.42596688866615295, 0.12692318856716156, -0.006798934191465378, 0.35280174016952515, -0.0033904090523719788, -0.28339502215385437, 0.0977121964097023, -0.12082541733980179, 0.03391392529010773, 0.38041025400161743, -0.024164732545614243, 0.06200265884399414, -0.3279881477355957, 0.20683924853801727, 0.23237869143486023, -0.0643237978219986, 0.33301106095314026, -0.07803218066692352, -0.10146905481815338, -0.13709628582000732, -0.0787225216627121, 0.30962157249450684, 0.2080828994512558, -0.1693374514579773, -0.2303851991891861, 0.06035850942134857, 0.01391240581870079, -0.34326791763305664, 0.1953565776348114, -0.03887919336557388, -0.013072263449430466, 0.04169374331831932, 0.002404291182756424, -0.19515246152877808, 0.0043455734848976135, 0.07444591820240021, -0.1773836612701416, 0.12958237528800964, -0.06614143401384354, 0.033493295311927795, 0.01628870889544487, 0.2591889202594757, -0.1607428640127182, 0.3018883466720581, 0.07131894677877426, 0.13713614642620087, -0.36192065477371216, 0.17033174633979797, 0.2666285037994385, 0.05786420777440071, -0.005657367408275604, 0.31952643394470215, -0.03618542104959488, 0.011449428275227547, 0.41848447918891907, 0.03819571062922478, -0.13897357881069183, 0.3627065122127533, 0.278694748878479, 0.10294372588396072, 0.1162610799074173, 0.18785282969474792, -0.08554533123970032, -0.22975671291351318, 0.019836343824863434, -0.1975075900554657, 0.31494399905204773, 0.24420422315597534, -0.03342176973819733, -0.42057326436042786, 0.11956591159105301, 0.29524239897727966, -0.12909013032913208, -0.0933247059583664, 0.16934296488761902, 0.3671608865261078, 0.08826454728841782, 0.0787009671330452, 0.33532923460006714, 0.2471679449081421, -0.1991896778345108, -0.017315704375505447, -0.4135643243789673, -0.09864264726638794, -0.12420880794525146, 0.2724475562572479, 0.21966318786144257, -0.1629006266593933, 0.6351844668388367, -0.1787700355052948, 0.4696889817714691, -0.030020616948604584, 0.13130921125411987, 0.18577821552753448, 0.13168753683567047, 0.2409881055355072, -0.030647534877061844, 0.21019470691680908, 0.33618929982185364, 0.3006998896598816, -0.192524254322052, -0.14585039019584656, -0.14280417561531067, -0.5472251176834106, 0.11472685635089874, -0.09641632437705994, -0.4572974443435669, 0.2726356089115143, 0.35762158036231995, 0.1117122620344162, -0.10761255770921707, -0.19043195247650146, 0.19325967133045197, -0.09188973903656006, -0.09976835548877716, -0.06609167158603668, 0.5843696594238281, 0.7293354868888855, -0.21475745737552643, -0.4012363851070404, 0.09883962571620941, 0.032571692019701004, -0.1022927463054657, 0.15294507145881653, -0.07881642878055573, 0.19331975281238556, -0.3543681502342224, -0.012708209455013275, 0.337830126285553, -0.4275302290916443, -0.5466858148574829, -0.15039277076721191, -0.3531804382801056, -0.12866541743278503, 0.21517975628376007, 0.05508509650826454, 0.12970981001853943, 0.1625276505947113, 0.11861225962638855, -0.18187068402767181, 0.13950994610786438, -0.31993213295936584, -0.28780078887939453, -0.17820240557193756, 0.05464902147650719, 0.004847928881645203, 0.3287588357925415, -0.021735824644565582, -0.06457418203353882, 0.1194036453962326, 0.12038879096508026, 0.17315730452537537, 0.14274002611637115, 0.34675413370132446, 0.15705138444900513, 0.038150493055582047, 0.2471781224012375, 0.1363053321838379, -0.3056512176990509, 0.30537787079811096, -0.35360074043273926, 0.0743500143289566, 0.0327291339635849, 0.021930821239948273, -0.11389707028865814, -0.20497025549411774, -0.16588133573532104, -0.4732401371002197, -0.10581421852111816, -0.044396188110113144, 0.1530439555644989, 0.10169147700071335, -0.16812469065189362, 0.11058125644922256, -0.0655052661895752, 0.271902859210968, -0.48792991042137146, 0.06126437336206436, -0.06387505680322647, -0.3398907482624054, -0.06352657824754715, 0.16161799430847168, 0.021204739809036255, 0.004957318305969238, -0.1978689581155777, 0.3824712634086609, -0.146609365940094, 0.2167607545852661, 0.25239670276641846, 0.1297357678413391, -0.02666604146361351, -0.5362625122070312, -0.024971332401037216, 0.17015525698661804, -0.06062665209174156, 0.010633550584316254, -0.22442634403705597, 0.37179216742515564, 0.11691568791866302, 0.15284235775470734, -0.3292895555496216, 0.25748535990715027, -0.1934429109096527, -0.03119216114282608, -0.47516030073165894, -0.052411340177059174, 0.46125099062919617, -0.12492448091506958, 0.3616279065608978, -0.0769224539399147, 0.04789464920759201, -0.05366870015859604, 0.15752284228801727, 0.16027575731277466, 0.09984612464904785, 0.08255301415920258, -0.19493302702903748, -0.05212399363517761, 0.08458960056304932, -0.29585111141204834, 0.4181762933731079, 0.18594565987586975, 0.29450178146362305, 0.06719048321247101, 0.13836519420146942, -0.16613474488258362, 0.0406898632645607, -0.03277364745736122, -0.179500013589859, 0.2156120091676712, 0.2768220007419586, 0.19160853326320648, -0.23656441271305084, -0.03022032231092453, -0.2584657669067383, 0.05398207902908325, -0.33966463804244995, 0.05451669543981552, -0.21140232682228088, 0.5269722938537598, 0.16094383597373962, -0.0017838701605796814, -0.3060412108898163, -0.2587701082229614, 0.19858397543430328, -0.15097537636756897, 0.10736740380525589, 0.2856147885322571, -0.1824018657207489, 0.3663709759712219, 0.12170206010341644, -0.16643106937408447, -0.21952353417873383, -0.21453234553337097, -0.05261887237429619, -0.2615051865577698, -0.22764450311660767, -0.017619304358959198, 0.10511580109596252, -0.18129514157772064, -0.014613077044487, -0.08384812623262405, -0.3236865997314453, 0.07898733019828796, 0.052583225071430206, 0.5157327055931091, 0.3757799565792084, 0.07813405990600586, -0.3018796443939209, 0.17287249863147736, 0.40369004011154175, -0.43356853723526, -0.2911330759525299, 0.05490288883447647, 0.028263598680496216, 0.2603512108325958, -0.2404194176197052, -0.363705575466156, 0.019595881924033165, -0.3122050166130066, 0.49769702553749084, 0.014730691909790039, -0.06709654629230499, -0.2401181310415268, 0.01591508835554123, 0.2207764834165573, -0.14016002416610718, 0.31641706824302673, -0.21797426044940948, -0.7374212145805359, 0.49740171432495117, -0.08447492122650146, -0.2427445650100708, -0.07193376123905182, 0.030422978103160858, 0.331031858921051, 0.05923234671354294, -0.6748085021972656, -0.3775846064090729, 0.04428016394376755, 0.2911629378795624, -0.12352810800075531, 0.1387414038181305, 0.5976382493972778, -0.09844623506069183, 0.09063258767127991, -0.08483809232711792, -0.16461971402168274, 0.5146775841712952, -0.23706889152526855, 0.2622247636318207, -0.05299343541264534, 0.39536944031715393, 0.20513716340065002, 1.0660388469696045, 0.4365729093551636, 0.13757950067520142, 0.24040377140045166, 0.07909809052944183, 0.3862742483615875, -0.14633138477802277, -0.19854557514190674, 0.2925942838191986, 0.29448869824409485, -0.012538976967334747, 0.1614469736814499, 0.10404101014137268, 0.2343330979347229, -0.11931467056274414, -0.05805143713951111, -0.23826482892036438, -0.2966468036174774, 0.012417847290635109, -0.24675321578979492, 0.28856828808784485, -0.0768275260925293, 0.1307218074798584, -0.2336004227399826, -0.030970359221100807, 0.4748423397541046, 0.36074432730674744, 0.3400713801383972, 0.2659285068511963, 0.013888761401176453, 0.018592040985822678, -0.5698676705360413, 0.21317443251609802, -0.35071292519569397, 0.04324616119265556, -0.11140524595975876, -0.20912250876426697, 0.19957639276981354, -0.016674211248755455, 0.6270526647567749, 0.2594262957572937, -0.132365882396698, -0.034422583878040314, -0.31464633345603943, -0.4235265254974365, -0.0951627641916275, 0.02026265114545822, -0.08072435855865479, 0.26198050379753113, 0.24435387551784515, -0.43673175573349, -0.2846648097038269, -0.07778885960578918, -0.05758632346987724, -0.2513467073440552, -0.3316430449485779, -0.29104238748550415, 0.07221519947052002, -0.21032793819904327, 0.15333910286426544, -0.12210667133331299, 0.015193410217761993, -0.0006408952176570892, 0.0610140860080719, -0.19727085530757904, -0.05856751650571823, 0.005117136985063553, 0.007977612316608429, 0.3492988646030426, -0.3426240086555481, 0.1846989393234253, 0.5938442349433899, 0.04623142629861832, 0.06946337223052979, 0.373118132352829, 0.02410254254937172, -0.007611911743879318, 0.32951921224594116, -0.10964426398277283, 0.19842274487018585, 0.6668335199356079, -0.2204793095588684, 0.009296974167227745, -0.10227565467357635, 0.26575967669487, -0.08403530716896057, -0.024089355021715164, 0.27517208456993103, -0.18578940629959106, 0.3366450071334839, 0.13389723002910614, 0.1865536868572235, 0.363166481256485, -0.07544902712106705, 0.39289140701293945, 0.01751738041639328, -0.13143989443778992, 0.16972747445106506, 0.09001139551401138, 1.0596702098846436, 0.17330855131149292, 0.28805696964263916, 0.07180413603782654, 0.11343340575695038, 0.2868272066116333, 0.07705140113830566, 0.06706942617893219, -0.23365625739097595, -0.29309698939323425, -0.023797165602445602, -0.2060994803905487, -0.026865966618061066, -0.25032493472099304, -0.08780326694250107, 0.4228726029396057, -0.39435911178588867, -0.07987008988857269, -0.2098238468170166, -0.15999263525009155, -0.2157907634973526, -0.15723885595798492, 0.18099632859230042, -0.08252407610416412, 0.02634565532207489, 0.5747038722038269, -0.21576125919818878, -0.1310919225215912, -0.3793375790119171, -0.3467715382575989, -0.1881609857082367, -0.06836967170238495, -0.3320908546447754, 0.004143238067626953, 0.3321133553981781, -0.34934693574905396, -0.1050177663564682, 0.4051664471626282, 0.41196349263191223, 0.1500433385372162, -0.31589022278785706, 0.013393688946962357, 0.152202308177948, 0.016330212354660034, 0.0662483349442482, 0.0037692897021770477, 0.21451370418071747, -0.023194946348667145, -0.03673543035984039, 0.1018836721777916, -0.2719019651412964, 0.07211990654468536, 0.04640719294548035, -0.1299455463886261, 0.1035781130194664, 0.007981248199939728, -0.03951122984290123, 0.04164764657616615, 0.008851885795593262, -0.22461050748825073, 0.009211814031004906, 0.31801730394363403, -0.3020227551460266, -0.1260165572166443, 0.1327930986881256, -0.23847422003746033, -0.09026060998439789, 0.7388560771942139, -0.18959233164787292, -0.08338097482919693, 0.5086653828620911, 0.11320611834526062, -0.09501253813505173, -0.0279415063560009, 0.05344035476446152, 0.5871479511260986, -0.7964071035385132, 0.03756502643227577, -0.028095148503780365, -0.07336992025375366, 0.05313033238053322, 0.1573774516582489, 0.41900336742401123, -0.195376455783844, -0.05119732394814491, -0.1429455727338791, -0.5170994400978088, 0.17477631568908691, -0.40158724784851074, 0.21361099183559418, -0.45799019932746887, 0.10379007458686829, -0.12055210024118423, 0.13685555756092072, -0.1713809072971344, 0.21452456712722778, -0.18431121110916138, -0.07607480138540268, -0.07964432239532471, -0.04088016226887703, 0.24941691756248474, -0.08301617950201035, -0.13238534331321716, 0.1427086591720581, -0.29920467734336853, -0.011041093617677689, -0.25976818799972534, 0.20036007463932037, -0.13546815514564514, 0.17640820145606995, -0.028693808242678642, 0.12278714776039124, -0.06178988888859749, -0.14075130224227905, 0.05862349271774292, 0.238239586353302, 0.14160510897636414, 0.1680944561958313, 0.1831716001033783, 0.20587418973445892, -0.1489623785018921, 0.1856941431760788, 0.11672977358102798, -0.1866593211889267, -0.12231063842773438, -0.04127107188105583, -0.31142476201057434, -0.030534714460372925, 0.07411089539527893, 0.1024201512336731, -0.16614915430545807, 0.20455358922481537, 0.09712934494018555, 0.03336356580257416, -0.25553739070892334, 0.01639833301305771, 0.36474159359931946, 0.09023797512054443, -0.20430058240890503, 0.05526735633611679, -0.0069349296391010284, 0.021738596260547638, -0.10062339901924133, 0.2891533076763153, 0.0024501942098140717, 0.37375694513320923, -0.007106103003025055, 0.23393885791301727, 0.155573308467865, -0.03681398928165436, 0.08146786689758301, 0.2663898468017578, -0.09578636288642883, -0.16460135579109192, 0.34943005442619324, -0.03943980485200882, 0.16964079439640045, 0.29156559705734253, 0.5672032833099365, 0.11481112241744995, 0.1399039775133133, -0.07182198017835617, -0.09390237927436829, 0.34270602464675903, -0.10728683322668076, 0.24986743927001953, -0.10577563941478729, -0.21433265507221222, -0.20155999064445496, -0.01007000356912613, 0.13645726442337036, -0.24155624210834503, -0.4650448262691498, 0.7891879677772522, -0.24943427741527557, -0.28571033477783203, -0.12217932194471359, 0.2552674412727356, -0.17642520368099213, -0.1262226551771164, -0.05820165574550629, -0.16125492751598358, -0.1629289984703064, -0.0820106640458107, 0.21774064004421234, -0.016078848391771317, 0.11151231080293655, 0.2160968780517578, -0.0037842541933059692, -0.31014516949653625, -0.4137938320636749, 0.23773904144763947, 0.2219979614019394, -0.15539641678333282, 0.07075120508670807, 0.16233037412166595, -0.2955520749092102, 0.1464754045009613, 0.526561439037323, 0.16103199124336243, 0.047172438353300095, -0.16886141896247864, 0.013886459171772003, 0.3292219638824463, -0.035810090601444244, -0.09134133160114288, 0.12986090779304504, 0.21267980337142944, -0.48048147559165955, -0.03399460390210152, -0.01843803934752941, -0.10494469851255417, 0.3532826006412506, -0.22453011572360992, 0.248627170920372, -0.142225444316864, 0.5203973054885864, -0.18592365086078644, 0.07209399342536926, 0.04600076749920845, -0.1357635259628296, -0.6475100517272949, 0.21839579939842224, -0.10870906710624695, 0.07478611916303635, 0.020017124712467194, -0.26381975412368774, -0.010150810703635216, -0.13982313871383667, 0.1454688012599945, 0.46227115392684937, 0.049820709973573685, -0.4014342129230499, -0.27440622448921204, -0.5686839818954468, 0.31847378611564636, 0.2554923892021179, 0.22371408343315125, -0.03902150318026543, 0.2768024802207947, -0.09094101190567017, 0.021814469248056412, 0.14139440655708313, -0.01647276058793068, 0.11341142654418945, 0.13151472806930542, -0.5518441200256348, 0.10670164227485657, -0.1301145702600479, -0.08022312819957733, 0.06746147572994232, 0.33035290241241455, -0.12949888408184052, -0.1872287094593048, -0.07675458490848541, 0.18274682760238647, -0.28801286220550537, -0.07198770344257355, 0.3570812940597534, 0.3660237789154053, -0.006994361057877541, 0.14160628616809845, 0.0799732431769371, -0.12991148233413696, -0.2005256712436676, -0.004807520657777786, -0.023691516369581223, -0.06905189156532288, -0.24204079806804657, 0.4297694265842438, -0.44231030344963074, -0.5072242617607117, -0.4338134229183197, 0.2354564368724823, 0.05852705240249634, -0.1644812822341919, -0.38999947905540466, 0.36861974000930786, -0.21354830265045166, 0.12733793258666992, 0.25623705983161926, 0.35715582966804504, 0.029829643666744232, 0.33138465881347656, -0.4535016119480133, -0.12043727934360504, 0.7448203563690186, -0.5261365175247192, 0.31900110840797424, -0.26161080598831177, 0.3419784903526306, 0.4516824781894684, -0.3614068031311035, -0.5016881227493286, 0.007907673716545105, 0.13308489322662354, -0.05423770472407341, -0.16160035133361816, 0.0992288738489151, -0.3082869052886963, 0.10131243616342545, -0.0707927718758583, 0.24134129285812378, 0.1822642683982849, 0.05412442237138748, -0.06669862568378448, -0.11394961923360825 ]
https://github.com/huggingface/datasets/issues/1942
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.
[experiment] missing default_experiment-1-0.arrow
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 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. 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.
[ -0.07438235729932785, 0.018933147192001343, 0.09862568974494934, 0.2385595738887787, 0.0015655439347028732, 0.02108946442604065, 0.1744566708803177, 0.29972144961357117, 0.36625856161117554, 0.12155461311340332, 0.02722800523042679, 0.1309891641139984, -0.31445831060409546, -0.013783730566501617, -0.009008362889289856, -0.03542095422744751, -0.017429202795028687, -0.011840526014566422, -0.21574994921684265, -0.140707865357399, -0.35497188568115234, 0.4909449517726898, -0.0940418690443039, -0.01967627927660942, -0.4025663435459137, 0.18620260059833527, -0.12081493437290192, 0.16422869265079498, -0.07121066749095917, -0.654862105846405, 0.37603330612182617, 0.21197812259197235, 0.0550227090716362, 0.5668938159942627, -0.00012283895921427757, -0.16476187109947205, 0.22245752811431885, -0.16542768478393555, -0.08953456580638885, -0.2089778482913971, 0.04199583828449249, -0.30182382464408875, 0.47464099526405334, -0.16721639037132263, -0.03546721115708351, -0.06638731062412262, 0.08340467512607574, -0.46138641238212585, 0.4682590067386627, -0.02543465793132782, 0.07653211057186127, 0.38008999824523926, -0.1043439507484436, -0.2316596508026123, -0.04950670152902603, -0.16138151288032532, 0.024174831807613373, 0.4295062720775604, -0.09058992564678192, 0.003693424165248871, -0.3325563371181488, 0.2633509635925293, 0.1676270067691803, 0.0209394171833992, 0.24537581205368042, -0.05597558617591858, 0.06492900103330612, -0.11889389157295227, -0.10504071414470673, 0.3209836483001709, 0.15203028917312622, -0.18834137916564941, -0.22983583807945251, 0.09783972799777985, -0.1813545823097229, -0.5551984310150146, 0.15352661907672882, -0.09724201261997223, 0.003979593515396118, 0.03924848884344101, -0.03802880644798279, -0.09521603584289551, -0.05683876946568489, 0.056629478931427, -0.15029361844062805, 0.07175362855195999, -0.13632796704769135, 0.05694926902651787, -0.062099386006593704, 0.2655829191207886, -0.3586180806159973, 0.3487272262573242, -0.016570791602134705, 0.13224095106124878, -0.4776328504085541, 0.103091761469841, 0.23336456716060638, 0.01927502080798149, 0.06380860507488251, 0.37100550532341003, 0.0047831349074840546, 0.11049690842628479, 0.4419558048248291, 0.09899847209453583, -0.06485344469547272, 0.4883599281311035, 0.26531362533569336, -0.09726296365261078, 0.17247581481933594, 0.1843724250793457, -0.1093549057841301, -0.3044107258319855, 0.1303543746471405, -0.23056960105895996, 0.3590710759162903, 0.14289240539073944, 0.05012360215187073, -0.4300652742385864, 0.026895105838775635, 0.3125569522380829, -0.01753643900156021, -0.10464231669902802, 0.11510990560054779, 0.32049205899238586, 0.08029206097126007, 0.037673503160476685, 0.24303904175758362, 0.31353023648262024, -0.23382386565208435, 0.05239211767911911, -0.4096278250217438, -0.2092064619064331, -0.05997753515839577, 0.3604544997215271, 0.08068674802780151, -0.08677715063095093, 0.6622604131698608, -0.24527880549430847, 0.43637141585350037, -0.009804755449295044, 0.20463398098945618, 0.1801852583885193, -0.052234161645174026, 0.33531948924064636, 0.02054300159215927, 0.20251819491386414, 0.42293837666511536, 0.11806824803352356, -0.2378181517124176, -0.222247913479805, -0.19658628106117249, -0.489033967256546, 0.13278740644454956, -0.011574191972613335, -0.49825388193130493, 0.21832366287708282, 0.28105705976486206, 0.23688334226608276, -0.07505744695663452, -0.18651139736175537, 0.17409372329711914, 0.06323277950286865, -0.1740942746400833, -0.07752089202404022, 0.5013920068740845, 0.8000813126564026, -0.31063735485076904, -0.40901046991348267, 0.06214421987533569, 0.019893158227205276, 0.059744808822870255, 0.1834789514541626, -0.026408188045024872, 0.11222313344478607, -0.23986698687076569, 0.04306158423423767, 0.4500410556793213, -0.3818281590938568, -0.4404712915420532, -0.010243847966194153, -0.48452410101890564, -0.09279914945363998, 0.15290658175945282, 0.013014741241931915, 0.11670498549938202, 0.17432117462158203, 0.0596252903342247, -0.230472132563591, 0.15839049220085144, -0.22320786118507385, -0.40990349650382996, -0.31592506170272827, 0.08278152346611023, 0.017518222332000732, 0.35110798478126526, 0.03127872943878174, -0.02165849134325981, 0.050297435373067856, 0.09388503432273865, 0.2171546220779419, 0.1900271773338318, 0.24951322376728058, 0.2989780902862549, 0.007448903284966946, 0.27943718433380127, 0.06266427040100098, -0.18638832867145538, 0.3330545723438263, -0.3847155272960663, 0.1210736334323883, 0.15582269430160522, 0.01018611341714859, -0.2554592192173004, -0.23366513848304749, -0.20747393369674683, -0.38170987367630005, 0.0072999559342861176, -0.18168306350708008, 0.2119554579257965, 0.20748615264892578, -0.23549595475196838, 0.15238261222839355, 0.02276192605495453, 0.21633900701999664, -0.42314809560775757, 0.014860324561595917, -0.029712742194533348, -0.33132606744766235, -0.020222127437591553, 0.060649625957012177, 0.04344560578465462, 0.052116185426712036, -0.207270547747612, 0.45055413246154785, -0.20412467420101166, 0.2718489170074463, 0.3489958643913269, 0.19499675929546356, -0.07314545661211014, -0.3825896978378296, -0.008680902421474457, 0.10359685122966766, -0.03734629601240158, 0.003466866910457611, -0.2115323692560196, 0.36567115783691406, 0.07403509318828583, 0.14685849845409393, -0.35114920139312744, 0.2701359987258911, -0.09334585070610046, -0.14940203726291656, -0.5120646357536316, -0.05640650540590286, 0.37466463446617126, -0.2972075641155243, 0.3142361640930176, -0.13483582437038422, 0.09554478526115417, -0.03137500211596489, 0.2216871678829193, 0.23034632205963135, 0.13243368268013, 0.05267913639545441, -0.2068915069103241, -0.08163630217313766, 0.04315229505300522, -0.2377360761165619, 0.37791723012924194, 0.18317116796970367, 0.2262164205312729, 0.08004553616046906, 0.10429990291595459, -0.17941400408744812, 0.061831314116716385, 0.017404571175575256, -0.09397570043802261, 0.15582787990570068, 0.2129647135734558, 0.14869317412376404, -0.3308371603488922, -0.04666459560394287, -0.22579136490821838, 0.0777692124247551, -0.32520484924316406, 0.04639279097318649, -0.16760244965553284, 0.3622933328151703, 0.10420385748147964, 0.0760788545012474, -0.3205081522464752, -0.2006610929965973, 0.21371324360370636, -0.12067998200654984, 0.05583025515079498, 0.372978150844574, -0.312583327293396, 0.5460641384124756, 0.12751802802085876, -0.18352097272872925, -0.2804270088672638, -0.21348059177398682, -0.0769837498664856, -0.17742383480072021, -0.16852818429470062, 0.1996258795261383, 0.13532698154449463, -0.1900617480278015, 0.03649027645587921, 0.067924864590168, -0.29238325357437134, 0.007269083522260189, 0.05444864183664322, 0.6009893417358398, 0.21985101699829102, 0.11276116967201233, -0.36189115047454834, 0.06612776219844818, 0.46608611941337585, -0.46539556980133057, -0.29881805181503296, 0.11081987619400024, -0.005610302090644836, 0.22635486721992493, -0.25666362047195435, -0.30301135778427124, 0.15034720301628113, -0.3555739223957062, 0.630639910697937, 0.03616321086883545, 0.004037290811538696, -0.18286462128162384, -0.021251648664474487, 0.1606975793838501, -0.14552117884159088, 0.1835412085056305, -0.3220936059951782, -0.7370197176933289, 0.3779357075691223, -0.08189573884010315, -0.2262861579656601, -0.028755947947502136, 0.12277957797050476, 0.38934436440467834, -0.026209712028503418, -0.5944404602050781, -0.4810173511505127, 0.07264973223209381, 0.20600494742393494, 0.020144036039710045, 0.05491358041763306, 0.5922464728355408, -0.0786324068903923, -0.003996659070253372, -0.06831008195877075, -0.11458280682563782, 0.5944652557373047, -0.14178906381130219, 0.14447292685508728, -0.09602279216051102, 0.48917335271835327, 0.17682211101055145, 0.9024279117584229, 0.5595240592956543, 0.32085686922073364, 0.28592151403427124, 0.1434481292963028, 0.3294371962547302, -0.09350176155567169, -0.18379929661750793, 0.340088814496994, 0.21252180635929108, -0.10732978582382202, 0.24068312346935272, 0.11647005379199982, 0.11552923917770386, -0.1355738341808319, -0.030692212283611298, -0.2832496464252472, -0.2555084228515625, -0.10000932961702347, -0.11113037914037704, 0.31133049726486206, -0.013860784471035004, -0.040890760719776154, -0.2783926725387573, 0.015579581260681152, 0.46127989888191223, 0.4263329803943634, 0.28302526473999023, 0.24659129977226257, -0.20430991053581238, 0.11604774743318558, -0.6026706695556641, 0.27500513195991516, -0.4224061965942383, 0.09260068833827972, -0.15659528970718384, -0.2295769900083542, 0.08885485678911209, -0.018762581050395966, 0.5770185589790344, 0.10729005187749863, -0.12361137568950653, 0.017496459186077118, -0.142274409532547, -0.47829264402389526, -0.04972203075885773, -0.021290667355060577, -0.01937829703092575, 0.26014551520347595, 0.3804855942726135, -0.4534817337989807, -0.24622207880020142, -0.0953102707862854, -0.09559611231088638, -0.32620853185653687, -0.385242760181427, -0.4633517265319824, -0.0032966583967208862, -0.1292664110660553, 0.2367420345544815, -0.23211443424224854, 0.06424754858016968, -0.026982130482792854, 0.06047585606575012, -0.15491975843906403, -0.07653538882732391, 0.036681801080703735, 0.12977682054042816, 0.3405138850212097, -0.2411496937274933, 0.2002919763326645, 0.5243803858757019, -0.21389177441596985, 0.05069933086633682, 0.3819577991962433, 0.07673193514347076, -0.04817116633057594, 0.31140583753585815, -0.005778606981039047, 0.2684093415737152, 0.5744402408599854, -0.22201716899871826, 0.06610427796840668, -0.04023072496056557, 0.34405961632728577, -0.17336159944534302, -0.08114910125732422, 0.23431065678596497, -0.1451413780450821, 0.3937271535396576, 0.17328961193561554, 0.27274850010871887, 0.2667101323604584, -0.15110234916210175, 0.3070547878742218, -0.024972990155220032, -0.06356564164161682, 0.33865317702293396, 0.0756162703037262, 0.9486909508705139, 0.12849101424217224, 0.05947364494204521, 0.13952483236789703, 0.13657286763191223, 0.32499998807907104, 0.05480781942605972, 0.11485837399959564, -0.20985230803489685, -0.2724109888076782, 0.015761367976665497, -0.10550206154584885, 0.07761178910732269, -0.2158326804637909, -0.12123168259859085, 0.4221632778644562, -0.3239583373069763, -0.17146572470664978, -0.2416451871395111, -0.18914172053337097, -0.23250502347946167, -0.22244906425476074, 0.06436680257320404, 0.019214041531085968, 0.001666294876486063, 0.5368846654891968, -0.22952532768249512, -0.18019314110279083, -0.2658548653125763, -0.286327600479126, -0.07870674133300781, -0.10809384286403656, -0.2214948534965515, -0.042068641632795334, 0.193216010928154, -0.16376392543315887, -0.2138141393661499, 0.2345356047153473, 0.4904160797595978, 0.11079789698123932, -0.3359956741333008, -0.03864444047212601, 0.11857298016548157, 0.04729796200990677, 0.10927573591470718, -0.016588613390922546, 0.18120664358139038, -0.059678420424461365, -0.07008834928274155, 0.023089610040187836, -0.20343105494976044, 0.02945694327354431, 0.14397478103637695, -0.18315747380256653, -0.07287317514419556, 0.027032118290662766, 0.0658264011144638, 0.1261666715145111, 0.14938798546791077, -0.2243226319551468, 0.08518116921186447, 0.27552539110183716, -0.22017976641654968, 0.05313202738761902, 0.10455388575792313, -0.24541768431663513, -0.10725420713424683, 0.6161940693855286, -0.12668399512767792, -0.08286600559949875, 0.3956391513347626, -0.02932063490152359, -0.02815799042582512, -0.09292811155319214, 0.004510551691055298, 0.47167763113975525, -0.7318612337112427, 0.02167908474802971, -0.004327371716499329, -0.018871083855628967, 0.059646010398864746, 0.20845496654510498, 0.4314274191856384, -0.11417478322982788, -0.01961088925600052, -0.17843085527420044, -0.42420870065689087, 0.29233652353286743, -0.29177263379096985, 0.12315663695335388, -0.4502270221710205, 0.13419131934642792, -0.18352992832660675, 0.29394227266311646, -0.26395416259765625, 0.1568066030740738, -0.27750638127326965, -0.13649268448352814, -0.16694402694702148, -0.055527638643980026, 0.3321182131767273, -0.02818094938993454, -0.09115320444107056, 0.1156948059797287, -0.39898067712783813, -0.07625482976436615, -0.2312701791524887, 0.15962037444114685, -0.12575793266296387, 0.055105164647102356, 0.007661018520593643, 0.18675056099891663, -0.0734078586101532, -0.11899851262569427, 0.07835696637630463, 0.25143271684646606, 0.0211225263774395, 0.07621601223945618, 0.21567676961421967, 0.18338543176651, -0.1267375349998474, 0.15074624121189117, 0.1054924875497818, -0.1982363611459732, -0.14859089255332947, -0.003762297797948122, -0.3089413344860077, -0.037823937833309174, 0.2045275866985321, 0.04695922136306763, -0.1688235104084015, 0.16532883048057556, 0.09480971843004227, -0.01975579746067524, -0.33757150173187256, 0.08407606184482574, 0.43391427397727966, 0.10847336053848267, -0.11390428245067596, 0.017161071300506592, -0.04847047105431557, 0.094180628657341, -0.15453091263771057, 0.272060364484787, 0.038872718811035156, 0.36068737506866455, 0.0561298131942749, 0.2945481538772583, 0.26394909620285034, -0.054616667330265045, 0.19453370571136475, 0.276958703994751, 0.07727110385894775, -0.16929838061332703, 0.3492945432662964, -0.20800034701824188, 0.12327628582715988, 0.2905895411968231, 0.6146332025527954, 0.15011125802993774, 0.19402460753917694, -0.1213560700416565, -0.04780964553356171, 0.17581723630428314, -0.12442420423030853, 0.3346285820007324, -0.325151264667511, -0.16841650009155273, -0.24932368099689484, 0.035642147064208984, -0.04461488500237465, -0.15549464523792267, -0.4124149978160858, 0.6928106546401978, -0.3596709668636322, -0.3196225166320801, -0.23969539999961853, 0.21373140811920166, -0.162191241979599, -0.16225044429302216, -0.12479769438505173, -0.17495998740196228, -0.12213204801082611, -0.12958011031150818, 0.2556285560131073, -0.00275353342294693, 0.13390791416168213, 0.05844055861234665, -0.012934673577547073, -0.19764560461044312, -0.5636008977890015, 0.3360028564929962, 0.23699018359184265, -0.16712212562561035, 0.03806481510400772, 0.2539331614971161, -0.3203013241291046, 0.05028705298900604, 0.6612640023231506, 0.14003953337669373, 0.020517423748970032, -0.10535119473934174, -0.0068344846367836, 0.3291796147823334, 0.00892116129398346, -0.09173376858234406, 0.11794020235538483, 0.21239806711673737, -0.4631313383579254, 0.014925561845302582, 0.04735506325960159, -0.14019109308719635, 0.4126121997833252, -0.28603678941726685, 0.31275808811187744, -0.2527722120285034, 0.4388633668422699, -0.20937985181808472, 0.13863123953342438, 0.033051516860723495, -0.20902866125106812, -0.6382527351379395, 0.2721562683582306, -0.12110958248376846, 0.005566589534282684, 0.07307276129722595, -0.31619611382484436, 0.03159363195300102, -0.06534019857645035, 0.18747417628765106, 0.3362928330898285, -0.04726134613156319, -0.3999139666557312, -0.3157871961593628, -0.6288836598396301, 0.3125654458999634, 0.11885280907154083, 0.39205610752105713, 0.0013998299837112427, 0.3996366262435913, -0.13931098580360413, 0.10772649943828583, 0.08064714819192886, 0.011524811387062073, -0.10849802941083908, 0.04302356392145157, -0.5370870232582092, 0.20433998107910156, -0.12056158483028412, -0.09203945100307465, 0.08092610538005829, 0.22699935734272003, 0.019759871065616608, -0.19265949726104736, -0.0032361671328544617, 0.2365332543849945, -0.18421341478824615, -0.03281882405281067, 0.22546815872192383, 0.39221781492233276, 0.09173886477947235, -0.0026019439101219177, 0.08171689510345459, -0.03826214373111725, -0.22938992083072662, -0.12276515364646912, -0.13187645375728607, -0.09890563786029816, -0.3089469075202942, 0.43592900037765503, -0.3517574667930603, -0.4784053564071655, -0.36547061800956726, 0.2429836392402649, 0.06123197078704834, -0.2057868242263794, -0.2005636990070343, 0.2870572507381439, -0.09072710573673248, 0.018358413130044937, 0.21710358560085297, 0.3107779920101166, 0.08685687184333801, 0.3682158589363098, -0.37481826543807983, -0.17780476808547974, 0.7422969937324524, -0.5126374363899231, 0.19518467783927917, -0.2612099349498749, 0.4384705424308777, 0.47670090198516846, -0.3749297559261322, -0.3257743716239929, -0.0008094906806945801, 0.14074942469596863, 0.09455862641334534, -0.1339273452758789, 0.1337973028421402, -0.452648788690567, -0.040646012872457504, -0.050308361649513245, 0.12358321249485016, 0.14360596239566803, 0.009016543626785278, 0.0242888405919075, -0.12265089899301529 ]
https://github.com/huggingface/datasets/issues/1942
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?
[experiment] missing default_experiment-1-0.arrow
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 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. 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?
[ -0.06407048553228378, -0.07876445353031158, 0.0965641587972641, 0.25347909331321716, -0.005687774159014225, -0.02128676325082779, 0.3123219609260559, 0.263801634311676, 0.2110244631767273, 0.2581808567047119, 0.045173682272434235, 0.36246827244758606, -0.35260722041130066, -0.17863957583904266, 0.03435748443007469, -0.03471659868955612, -0.0441436693072319, -0.1339791715145111, -0.35832276940345764, -0.12399423867464066, -0.1907992959022522, 0.4987676739692688, -0.03441673517227173, -0.029784061014652252, -0.39312633872032166, 0.22417719662189484, -0.1640091985464096, 0.1788710355758667, 0.0643504410982132, -0.561836302280426, 0.32260245084762573, 0.1360854208469391, 0.04529382288455963, 0.5764806270599365, -0.0001236323732882738, -0.16783514618873596, 0.18728643655776978, -0.24503757059574127, -0.18744249641895294, -0.27174633741378784, 0.22711990773677826, -0.31143561005592346, 0.49682000279426575, -0.23647725582122803, -0.15778592228889465, 0.03786817565560341, -0.005412021651864052, -0.3434019386768341, 0.4236994981765747, 0.057190150022506714, 0.08593142032623291, 0.3330076336860657, -0.03232545405626297, -0.19012323021888733, 0.12123390287160873, -0.06538626551628113, -0.03689856082201004, 0.3913043141365051, -0.04380000755190849, 0.0700678676366806, -0.23913703858852386, 0.2996979057788849, 0.1755199432373047, -0.04022584110498428, 0.314748615026474, -0.049445122480392456, -0.201166570186615, -0.07752631604671478, -0.10520941019058228, 0.3080209195613861, 0.23591430485248566, -0.22340598702430725, -0.23758375644683838, 0.05313669145107269, -0.11292017996311188, -0.3445171117782593, 0.1445094794034958, -0.005162891000509262, -0.01872587576508522, 0.02352129854261875, 0.05913975089788437, -0.13904504477977753, -0.06270241737365723, 0.09984607994556427, -0.045224107801914215, 0.013915760442614555, -0.1335919052362442, 0.10548685491085052, -0.0017540501430630684, 0.1352347731590271, -0.32759734988212585, 0.30690526962280273, 0.03917748108506203, 0.12898556888103485, -0.36778363585472107, 0.12433378398418427, 0.23370836675167084, 0.0210840106010437, 0.09180989861488342, 0.45607268810272217, 0.05863954871892929, 0.0463431179523468, 0.40546107292175293, 0.103166863322258, -0.18043111264705658, 0.491076797246933, 0.28822609782218933, 0.1206451952457428, 0.1309708058834076, 0.25089094042778015, -0.0607219822704792, -0.2949395477771759, 0.13427038490772247, -0.258698433637619, 0.28556954860687256, 0.2531370520591736, 0.06317459046840668, -0.41512611508369446, 0.046472229063510895, 0.169182687997818, -0.07708443701267242, -0.17743562161922455, 0.13148938119411469, 0.4097197353839874, 0.14884017407894135, 0.008470406755805016, 0.34833991527557373, 0.3792475461959839, -0.16200454533100128, 0.005470752716064453, -0.377583384513855, -0.1619015634059906, -0.0832366794347763, 0.3270740509033203, 0.15305370092391968, -0.11194559931755066, 0.6152179837226868, -0.2334931194782257, 0.43445372581481934, -0.06761500239372253, 0.20860490202903748, 0.21730303764343262, 0.08779498934745789, 0.17573769390583038, -0.00025237351655960083, 0.17261609435081482, 0.34997156262397766, 0.3042703866958618, -0.295320987701416, -0.1659078598022461, -0.10756371915340424, -0.5697389245033264, 0.10447455197572708, -0.025673143565654755, -0.36860746145248413, 0.25240257382392883, 0.3646578788757324, 0.17652097344398499, -0.08787666261196136, -0.17666873335838318, 0.21831262111663818, 0.04246392473578453, -0.18992693722248077, -0.13228900730609894, 0.5401468276977539, 0.7955900430679321, -0.22347041964530945, -0.39289650321006775, 0.08613140881061554, -0.030268747359514236, -0.06888601183891296, 0.17110618948936462, -0.13048264384269714, 0.1734696328639984, -0.3124316334724426, 0.013209998607635498, 0.45264917612075806, -0.45415937900543213, -0.5230979919433594, -0.05511971563100815, -0.3473707437515259, -0.10224427282810211, 0.18106408417224884, 0.019264422357082367, 0.14478087425231934, 0.14278443157672882, 0.12971529364585876, -0.1455383598804474, 0.20521590113639832, -0.2678942084312439, -0.3874983489513397, -0.2713221311569214, 0.06967653334140778, -0.052635032683610916, 0.25989726185798645, 0.01936059258878231, 0.03126661852002144, -0.0005677156150341034, 0.1223188042640686, 0.11257454752922058, 0.1530449390411377, 0.30945929884910583, 0.16733518242835999, 0.10949692130088806, 0.22717143595218658, 0.07975877076387405, -0.25354868173599243, 0.28060758113861084, -0.2641233801841736, 0.0964866429567337, 0.054757118225097656, -0.05912795662879944, -0.2017362117767334, -0.1917339563369751, -0.11897644400596619, -0.4788510203361511, -0.009312160313129425, 0.00259251706302166, 0.17788967490196228, 0.09800614416599274, -0.08332169055938721, 0.0272524394094944, 0.002278171479701996, 0.209314227104187, -0.4971337616443634, 0.04860323667526245, -0.13583099842071533, -0.35621532797813416, -0.05382853373885155, 0.1624727100133896, 0.08243490755558014, 0.02751816064119339, -0.21726225316524506, 0.4142545163631439, -0.22543616592884064, 0.2963482439517975, 0.2505713105201721, 0.08664754033088684, -0.15581446886062622, -0.4436958432197571, 0.07068388909101486, 0.15343694388866425, -0.02434060163795948, 0.059575073421001434, -0.2230672836303711, 0.40051859617233276, 0.05760487914085388, 0.08816447854042053, -0.39151549339294434, 0.3206074833869934, -0.06229300796985626, -0.12567347288131714, -0.5161961913108826, -0.06533178687095642, 0.464451402425766, -0.23383554816246033, 0.3068928122520447, -0.14852666854858398, -0.1147533655166626, 0.030450573191046715, 0.05521058291196823, 0.15260136127471924, 0.21612681448459625, 0.04920433089137077, -0.2106385976076126, 0.053928837180137634, 0.08031371235847473, -0.2700401544570923, 0.4026062488555908, 0.23013456165790558, 0.24466612935066223, 0.03960135579109192, 0.20693714916706085, -0.16495637595653534, 0.07625079154968262, -0.06335237622261047, -0.16900646686553955, 0.17895588278770447, 0.29942309856414795, 0.16940590739250183, -0.26870065927505493, -0.01160091906785965, -0.3858012855052948, -0.01773376762866974, -0.3161155879497528, 0.10858862102031708, -0.10618142783641815, 0.36001864075660706, 0.06289426237344742, 0.0278819277882576, -0.24970033764839172, -0.21150651574134827, 0.21720321476459503, -0.12876471877098083, -0.008214384317398071, 0.34039413928985596, -0.14383482933044434, 0.42476505041122437, 0.10055622458457947, -0.2894512414932251, -0.2572137117385864, -0.19980071485042572, -0.07604676485061646, -0.1793350875377655, -0.26567673683166504, 0.04569990187883377, 0.21805737912654877, -0.16106046736240387, 0.05532734841108322, -0.10836002230644226, -0.29961931705474854, 0.06077384576201439, 0.08644191920757294, 0.5465064644813538, 0.2948967218399048, 0.000549856573343277, -0.18708011507987976, 0.03015652671456337, 0.4708809554576874, -0.4639461040496826, -0.2469664216041565, 0.06979554891586304, 0.06876703351736069, 0.30053409934043884, -0.30282673239707947, -0.41082391142845154, 0.036948271095752716, -0.4303351938724518, 0.6223110556602478, 0.050560563802719116, 0.01929159089922905, -0.27669230103492737, 0.0470694825053215, 0.1442531943321228, -0.19022208452224731, 0.3671061396598816, -0.3098249137401581, -0.6642649173736572, 0.4911521077156067, -0.1532042771577835, -0.29700013995170593, -0.04935665428638458, 0.02735137939453125, 0.43385469913482666, 0.011327270418405533, -0.6472846269607544, -0.4276650547981262, 0.07342032343149185, 0.33113497495651245, -0.08208000659942627, 0.12343083322048187, 0.5292957425117493, -0.10365161299705505, 0.04328812286257744, -0.08598697930574417, -0.19328190386295319, 0.47616147994995117, -0.24799080193042755, 0.29042869806289673, -0.05023658648133278, 0.4710010886192322, 0.2042388767004013, 1.036251187324524, 0.4318809509277344, 0.19808457791805267, 0.24085015058517456, 0.062129855155944824, 0.3678741455078125, -0.13290095329284668, -0.2530630826950073, 0.3594073951244354, 0.21578365564346313, -0.06516573578119278, 0.17500323057174683, 0.14011238515377045, 0.11930427700281143, -0.11753682792186737, -0.13540661334991455, -0.3230398893356323, -0.3765500485897064, 0.05843913555145264, -0.31194472312927246, 0.229365736246109, -0.1024174615740776, 0.10978691279888153, -0.2834075689315796, -0.0170254185795784, 0.4524647891521454, 0.38117364048957825, 0.26876112818717957, 0.26868030428886414, -0.10616381466388702, 0.15579038858413696, -0.6143526434898376, 0.3195684552192688, -0.41507259011268616, 0.02042180672287941, -0.19645942747592926, -0.2585928440093994, 0.13277463614940643, 0.02861340343952179, 0.5701926350593567, 0.17041903734207153, -0.07723088562488556, -0.0223531574010849, -0.29009515047073364, -0.5728943943977356, -0.13066625595092773, 0.0335993617773056, 0.003916099667549133, 0.34304192662239075, 0.29839691519737244, -0.4971287250518799, -0.2174239158630371, -0.1325906664133072, -0.014352742582559586, -0.2948710322380066, -0.2986007332801819, -0.30334824323654175, 0.03769560903310776, -0.3638682961463928, 0.12579573690891266, -0.14816665649414062, 0.0019770637154579163, 0.012404963374137878, 0.09385457634925842, -0.17304085195064545, -0.03330167755484581, -0.04196572303771973, 0.08193913102149963, 0.44529950618743896, -0.36807242035865784, 0.21385401487350464, 0.4355836808681488, -0.08140547573566437, 0.04659639298915863, 0.4527381658554077, 0.020247463136911392, -0.032204482704401016, 0.24941593408584595, -0.17023657262325287, 0.17603692412376404, 0.568368136882782, -0.23605406284332275, -0.006552036851644516, -0.16837520897388458, 0.3352350890636444, -0.18134759366512299, -0.0947214663028717, 0.21489295363426208, -0.13993901014328003, 0.4028424918651581, 0.07977785170078278, 0.14915716648101807, 0.2951565980911255, -0.14584605395793915, 0.30895358324050903, -0.08969815075397491, -0.15840654075145721, 0.3474823832511902, 0.028356201946735382, 1.0431015491485596, 0.1858014315366745, 0.19397056102752686, 0.09419289976358414, 0.05948736518621445, 0.3286900520324707, 0.03224819898605347, 0.04235943406820297, -0.24553696811199188, -0.18558993935585022, 0.05523061752319336, -0.13384848833084106, -0.08925420045852661, -0.212892085313797, -0.24216963350772858, 0.4602893888950348, -0.39853185415267944, -0.11877666413784027, -0.2751252353191376, -0.21618446707725525, -0.3653043210506439, -0.1540289670228958, 0.16238129138946533, 0.010624386370182037, 0.038980819284915924, 0.5765026211738586, -0.20630282163619995, -0.17093613743782043, -0.3550463318824768, -0.42080482840538025, -0.17018261551856995, -0.0027210190892219543, -0.23454377055168152, 0.01264333724975586, 0.2596084475517273, -0.30039268732070923, -0.12752029299736023, 0.39789828658103943, 0.3753567337989807, 0.11191394180059433, -0.2954157888889313, -0.0671834796667099, 0.07277685403823853, 0.07807910442352295, -0.00955440104007721, -0.010506190359592438, 0.20222339034080505, -0.05342954397201538, -0.056714341044425964, 0.03708391636610031, -0.1553320288658142, 0.06443467736244202, 0.07998013496398926, -0.10455788671970367, -0.04249719902873039, -0.13240301609039307, 0.06719411909580231, 0.1465180516242981, 0.06255494803190231, -0.24411973357200623, 0.06316336244344711, 0.31701380014419556, -0.3118458688259125, -0.016404632478952408, 0.1300027072429657, -0.19149905443191528, -0.05262788012623787, 0.6006054878234863, -0.21806684136390686, -0.05749061331152916, 0.44398266077041626, 0.08638957887887955, -0.09001187235116959, -0.08966469019651413, -0.009559832513332367, 0.47020018100738525, -0.8980286717414856, 0.06320282071828842, -0.08247508108615875, -0.03754983842372894, 0.019532322883605957, 0.21734718978405, 0.3759928345680237, -0.05647134780883789, -0.05137494206428528, -0.133280947804451, -0.4421546757221222, 0.24910998344421387, -0.2822009325027466, 0.2810606360435486, -0.34981977939605713, 0.07528440654277802, -0.15406076610088348, 0.265462726354599, -0.2644132375717163, 0.1684679388999939, -0.17666661739349365, -0.039287447929382324, -0.08157534897327423, 0.003067427547648549, 0.31559962034225464, -0.01813608407974243, -0.09134045243263245, 0.1194010004401207, -0.3476511240005493, -0.08520376682281494, -0.2056669443845749, 0.15786528587341309, -0.16842089593410492, 0.11161191761493683, -0.1268760710954666, 0.17701619863510132, 0.022347062826156616, -0.18944574892520905, 0.1027839407324791, 0.27038824558258057, 0.049344152212142944, 0.21418653428554535, 0.11472401022911072, 0.2389000654220581, -0.049126602709293365, 0.20692294836044312, 0.08912385255098343, -0.09315025806427002, -0.1271398961544037, 0.026998184621334076, -0.319972425699234, -0.07948856055736542, 0.17680594325065613, 0.09920826554298401, -0.07457618415355682, 0.2261696457862854, 0.014386745169758797, 0.09509024769067764, -0.3218650817871094, -0.08318167179822922, 0.3944782614707947, 0.025238756090402603, -0.22403688728809357, 0.001487240195274353, -0.03906705230474472, 0.09078025817871094, -0.09615468978881836, 0.28724971413612366, -0.04950185492634773, 0.2823805809020996, 0.09911651164293289, 0.2836003005504608, 0.20869535207748413, -0.05666061490774155, 0.07487329840660095, 0.18410325050354004, -0.048547662794589996, -0.11431774497032166, 0.38754740357398987, -0.06663789600133896, 0.053139008581638336, 0.28880181908607483, 0.5470499396324158, 0.1314864456653595, 0.21062731742858887, -0.12648659944534302, -0.06287588179111481, 0.3586799204349518, -0.040675342082977295, 0.23274733126163483, -0.06825856864452362, -0.142031729221344, -0.10855279862880707, -0.11516360938549042, 0.12680324912071228, -0.2630982995033264, -0.3883002698421478, 0.6905953884124756, -0.19108687341213226, -0.27713754773139954, -0.04566685110330582, 0.27520573139190674, -0.13352322578430176, -0.16462308168411255, -0.1777416169643402, -0.14727841317653656, -0.13581068813800812, -0.13519501686096191, 0.252480149269104, -0.04293719679117203, 0.1753879338502884, 0.14474153518676758, 0.03292258828878403, -0.23313866555690765, -0.3482346534729004, 0.2942015826702118, 0.19793012738227844, -0.15604421496391296, -0.02976331114768982, 0.21491628885269165, -0.24487055838108063, 0.14040744304656982, 0.5754082798957825, 0.26745685935020447, -0.04272770136594772, -0.05801728740334511, 0.08852799236774445, 0.28953462839126587, 0.002485714852809906, -0.16172748804092407, 0.06457321345806122, 0.16745337843894958, -0.41416478157043457, 0.09653107821941376, 0.053854942321777344, -0.18950574100017548, 0.41366496682167053, -0.282778263092041, 0.22795142233371735, -0.1521187126636505, 0.4434228241443634, -0.22516494989395142, 0.11181962490081787, -0.035470955073833466, -0.17187754809856415, -0.6200802326202393, 0.2504793107509613, -0.11097177863121033, 0.03274714946746826, 0.09214136004447937, -0.28657400608062744, 0.034923255443573, -0.08170399069786072, 0.11806243658065796, 0.3765927851200104, 0.06291526556015015, -0.3114417791366577, -0.265231192111969, -0.5255100727081299, 0.3029748499393463, 0.20501813292503357, 0.2848009765148163, -0.0820881575345993, 0.35756969451904297, -0.07630214095115662, 0.11086226999759674, 0.20543581247329712, -0.08563792705535889, 0.06118791550397873, 0.16636574268341064, -0.5453775525093079, 0.03888309374451637, -0.13880422711372375, -0.03579520061612129, 0.19958354532718658, 0.24822622537612915, -0.2193724811077118, -0.19350548088550568, 0.02167748659849167, 0.16561192274093628, -0.32923752069473267, -0.14458566904067993, 0.2926347255706787, 0.441703200340271, 0.08793357759714127, 0.08148467540740967, 0.002032637596130371, -0.0957132875919342, -0.1901303380727768, -0.11783839762210846, -0.08167066425085068, -0.11695703864097595, -0.26386186480522156, 0.3734413981437683, -0.3695463538169861, -0.4859572947025299, -0.4547898769378662, 0.25927650928497314, 0.054992660880088806, -0.12216928601264954, -0.20493236184120178, 0.33473843336105347, -0.1531442254781723, 0.05859704315662384, 0.15209923684597015, 0.37373024225234985, 0.00798206590116024, 0.40606606006622314, -0.40492159128189087, -0.16031527519226074, 0.7884654402732849, -0.4327738285064697, 0.27885884046554565, -0.2969711422920227, 0.3566493093967438, 0.4510631561279297, -0.3289368450641632, -0.48537370562553406, 0.055371060967445374, 0.1302497684955597, 0.03577779233455658, -0.0032266750931739807, 0.09961244463920593, -0.3638702929019928, 0.0264713317155838, -0.08030914515256882, 0.18293994665145874, 0.18461507558822632, 0.06881196051836014, -0.015242248773574829, -0.17494073510169983 ]
https://github.com/huggingface/datasets/issues/1942
I don't see how this could be the responsibility of `Trainer`, who hasn't the faintest idea of what a `datasets.Metric` is. The trainer takes a function `compute_metrics` that goes from predictions + labels to metric results, there is nothing there. That computation is done on all processes The fact a `datasets.Metric` object cannot be used as a simple compute function in a multi-process environment is, in my opinion, a bug in `datasets`. Especially since, as I mentioned before, the multiprocessing part of `datasets.Metric` has a deep flaw since it can't work in a multinode environment. So you actually need to do the job of gather predictions and labels yourself. The changes you are proposing Stas are making the code less readable and also concatenate all the predictions and labels `number_of_processes` times I believe, which is not going to make the metric computation any faster.
[experiment] missing default_experiment-1-0.arrow
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.
144
[experiment] missing default_experiment-1-0.arrow 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. I don't see how this could be the responsibility of `Trainer`, who hasn't the faintest idea of what a `datasets.Metric` is. The trainer takes a function `compute_metrics` that goes from predictions + labels to metric results, there is nothing there. That computation is done on all processes The fact a `datasets.Metric` object cannot be used as a simple compute function in a multi-process environment is, in my opinion, a bug in `datasets`. Especially since, as I mentioned before, the multiprocessing part of `datasets.Metric` has a deep flaw since it can't work in a multinode environment. So you actually need to do the job of gather predictions and labels yourself. The changes you are proposing Stas are making the code less readable and also concatenate all the predictions and labels `number_of_processes` times I believe, which is not going to make the metric computation any faster.
[ -0.09867683053016663, 0.08746449649333954, 0.0754723846912384, 0.12414443492889404, 0.14742745459079742, -0.07018423080444336, 0.35259363055229187, 0.23563410341739655, 0.1611238420009613, 0.2098139375448227, 0.00042147934436798096, 0.21405579149723053, -0.34553542733192444, 0.19358880817890167, 0.07407018542289734, -0.08324599266052246, -0.007562745362520218, -0.11639460921287537, -0.28696921467781067, 0.00012397021055221558, -0.2612047791481018, 0.49580153822898865, -0.19592376053333282, 0.11653464287519455, -0.4939323365688324, 0.016064399853348732, -0.1405586153268814, 0.04365763068199158, -0.15716734528541565, -0.6827938556671143, 0.17797452211380005, 0.285054087638855, 0.05900082737207413, 0.6136053800582886, -0.00011972619540756568, -0.1275455504655838, 0.14323455095291138, -0.07664940506219864, -0.11422807723283768, -0.10186878591775894, 0.006203986704349518, -0.37502288818359375, 0.5041077136993408, -0.2027846723794937, -0.024638336151838303, -0.18710178136825562, -0.0009074527770280838, -0.3866349160671234, 0.4851270318031311, 0.1960166096687317, 0.11489713191986084, 0.3724754750728607, -0.06335538625717163, -0.2893131375312805, -0.030438005924224854, -0.17974646389484406, -0.0004411861300468445, 0.3063090145587921, -0.11803500354290009, 0.10417811572551727, -0.2638343572616577, 0.29876071214675903, 0.17475548386573792, -0.1579253375530243, 0.39857402443885803, 0.01085614413022995, 0.023738063871860504, -0.0750848799943924, -0.026344431564211845, 0.22809603810310364, 0.3640274107456207, -0.20819982886314392, -0.4027555584907532, 0.021322906017303467, -0.11361084878444672, -0.4449652433395386, 0.08677209913730621, -0.15449506044387817, -0.11249145865440369, 0.01735251024365425, -0.05120114982128143, -0.09186994284391403, -0.12050502002239227, -0.10657648742198944, -0.140008345246315, 0.04150537773966789, -0.1515365093946457, 0.10799341648817062, 0.09862087666988373, 0.29403895139694214, -0.22500047087669373, 0.46258947253227234, 0.10780876874923706, 0.08749076724052429, -0.5861871838569641, 0.051559269428253174, 0.1689261943101883, -0.13789309561252594, 0.026183485984802246, 0.34763529896736145, 0.13931550085544586, 0.16474558413028717, 0.4749913215637207, 0.046946726739406586, -0.08598019182682037, 0.49595195055007935, 0.11584056913852692, -0.041389063000679016, 0.21664327383041382, 0.23289939761161804, -0.1324019879102707, -0.3073428273200989, 0.15093719959259033, -0.2894471287727356, 0.4075077772140503, 0.1650964617729187, -0.024027477949857712, -0.3971653878688812, 0.01111401617527008, 0.2321660965681076, -0.16151782870292664, -0.30763518810272217, 0.1635744869709015, 0.30156636238098145, -0.018899258226156235, 0.154653862118721, 0.2649489939212799, 0.26770293712615967, -0.21538150310516357, 0.03367609158158302, -0.362700492143631, -0.1388624608516693, -0.2221658080816269, 0.5311318635940552, -0.0336129255592823, -0.10313449800014496, 0.4908146262168884, -0.22403375804424286, 0.361318439245224, -0.11431469023227692, 0.18688173592090607, 0.15122494101524353, 0.0729256421327591, 0.14488153159618378, -0.0949600487947464, 0.01916263997554779, 0.1993149071931839, -0.0007020905613899231, -0.23456698656082153, -0.3136926591396332, -0.1904587745666504, -0.5587620735168457, 0.04607853293418884, 0.011341813020408154, -0.41215065121650696, 0.1687011867761612, 0.1926003098487854, 0.43905478715896606, -0.08383255451917648, -0.08273769915103912, 0.15431885421276093, -0.06583692133426666, -0.25039413571357727, -0.053392842411994934, 0.5387089252471924, 0.6572609543800354, -0.2708118259906769, -0.3530545234680176, 0.1573341190814972, -0.07648240029811859, 0.03059813752770424, 0.18661248683929443, -0.06754162907600403, 0.33159708976745605, -0.1351323425769806, 0.03389886021614075, 0.3187025189399719, -0.31881195306777954, -0.28202998638153076, -0.11266374588012695, -0.2808202803134918, -0.06683410704135895, 0.1820887327194214, -0.03325510025024414, 0.20362356305122375, 0.1777174174785614, 0.07939529418945312, -0.2812538146972656, 0.19925230741500854, -0.27965423464775085, -0.3488394618034363, -0.25710082054138184, -0.016080765053629875, 0.03502577543258667, 0.41424936056137085, 0.14478690922260284, -0.015553634613752365, 0.2191111296415329, 0.09895898401737213, 0.012407282367348671, 0.18652337789535522, 0.13696332275867462, 0.21737690269947052, 0.030167963355779648, 0.21221253275871277, -0.06687068194150925, -0.2594882547855377, 0.1811952292919159, -0.2249533236026764, 0.2644391655921936, 0.1812698245048523, -0.1109844222664833, -0.13137637078762054, -0.031910885125398636, -0.04504634439945221, -0.380031555891037, 0.03814714774489403, 0.019369756802916527, 0.24619881808757782, 0.06360562890768051, -0.18636900186538696, 0.2601463198661804, -0.022920645773410797, 0.1970861256122589, -0.3077028691768646, 0.005411706864833832, -0.04932654649019241, -0.26938170194625854, -0.04723452404141426, 0.2843674421310425, 0.013506926596164703, 0.06207619234919548, -0.15631096065044403, 0.4471607208251953, -0.0971783697605133, 0.12081700563430786, 0.24604977667331696, 0.2522503137588501, -0.10014928132295609, -0.24725618958473206, 0.016244592145085335, -0.017738839611411095, 0.03096863254904747, -0.03842505067586899, -0.18673710525035858, 0.40487295389175415, -0.006322512403130531, 0.18027012050151825, -0.14440685510635376, 0.22862616181373596, -0.10404065996408463, -0.014684565365314484, -0.6104432940483093, -0.044122643768787384, 0.18177874386310577, -0.35883352160453796, 0.28547459840774536, -0.07321702688932419, -0.18792937695980072, 0.08731214702129364, 0.22041279077529907, 0.07845348119735718, -0.03888283669948578, 0.18408194184303284, -0.12218654900789261, -0.12937824428081512, -0.03139243274927139, -0.07528138160705566, 0.4372568726539612, 0.19817256927490234, 0.2658683657646179, 0.13686273992061615, 0.178986057639122, -0.2482045739889145, 0.15642660856246948, 0.1467079222202301, -0.19835281372070312, 0.02131705917418003, 0.19522562623023987, 0.18436548113822937, -0.22864983975887299, -0.1335853636264801, -0.2828974723815918, 0.09122055768966675, -0.34794971346855164, 0.1114819347858429, -0.16176192462444305, 0.3325735330581665, -0.025605622678995132, 0.09180417656898499, -0.18454797565937042, -0.26955878734588623, 0.24772050976753235, -0.1749943345785141, -0.08066153526306152, 0.3019289970397949, -0.1997394561767578, 0.5645966529846191, 0.045800402760505676, -0.05439372360706329, -0.15390817821025848, -0.12894509732723236, 0.024809546768665314, -0.12637923657894135, -0.11073959618806839, 0.23809577524662018, 0.1443103402853012, -0.14097817242145538, 0.0804133266210556, -0.11263848096132278, -0.37770402431488037, 0.031809598207473755, -0.07191365957260132, 0.6136099696159363, 0.36865493655204773, -0.06718312203884125, -0.3057752847671509, 0.05580760911107063, 0.4334179162979126, -0.46167421340942383, -0.1821400374174118, -0.01587359979748726, 0.021034609526395798, 0.11197756230831146, -0.22844114899635315, -0.40901410579681396, -0.03338680788874626, -0.39243775606155396, 0.6301873922348022, -0.030286196619272232, 0.06507079303264618, -0.14235833287239075, 0.004880763590335846, 0.3127191960811615, -0.21325010061264038, 0.285561740398407, -0.3027742803096771, -0.6883827447891235, 0.36150890588760376, -0.15260732173919678, -0.27845266461372375, -0.09227878600358963, 0.12466790527105331, 0.4610546827316284, -0.10107136517763138, -0.6390307545661926, -0.4874393343925476, -0.058332860469818115, 0.18378010392189026, -0.08548536151647568, 0.10195939987897873, 0.5934659242630005, 0.04026298597455025, -0.12499628961086273, -0.04016132652759552, -0.3275841176509857, 0.6002625226974487, -0.2267068475484848, -0.07993365824222565, -0.048087362200021744, 0.38079190254211426, 0.14219841361045837, 0.9527530670166016, 0.531283974647522, 0.0835818201303482, 0.24189075827598572, 0.06090064346790314, 0.42765745520591736, -0.12421344220638275, -0.20876272022724152, 0.35941195487976074, 0.05539702624082565, -0.069633349776268, 0.21968527138233185, 0.07537510991096497, 0.22842362523078918, -0.09308096021413803, 0.07470212876796722, -0.15958935022354126, -0.39051318168640137, 0.05162424594163895, -0.07099664211273193, 0.23398447036743164, -0.03209882974624634, 0.09940443933010101, -0.2225836217403412, 0.010591935366392136, 0.32390096783638, 0.32761967182159424, 0.2672768831253052, 0.1773556023836136, -0.4027302861213684, -0.014127064496278763, -0.6917688250541687, 0.29996341466903687, -0.33065763115882874, 0.055032551288604736, -0.17268219590187073, -0.30127328634262085, 0.15698301792144775, -0.00326460599899292, 0.5102088451385498, 0.1670263558626175, -0.32560715079307556, 0.09795141220092773, -0.27321210503578186, -0.3518058955669403, -0.03223704546689987, -0.1057448610663414, -0.09245447814464569, 0.13037344813346863, 0.46277308464050293, -0.38228148221969604, -0.402138888835907, -0.05754339322447777, -0.005528934299945831, -0.2024352252483368, -0.21226564049720764, -0.27538150548934937, -0.19060860574245453, -0.10534563660621643, 0.25935137271881104, -0.12863308191299438, 0.1493755578994751, -0.07511663436889648, 0.010561853647232056, -0.11095739156007767, 0.02949231117963791, 0.049825120717287064, 0.20067518949508667, 0.3328443765640259, -0.2227475941181183, 0.3211786448955536, 0.5052852630615234, 0.08248908817768097, 0.1085561215877533, 0.39503952860832214, -0.07122834771871567, -0.07629373669624329, 0.2625711262226105, -0.07876653969287872, 0.397754043340683, 0.5973270535469055, -0.3462333381175995, 0.05047345906496048, 0.0018158145248889923, 0.49820762872695923, -0.1901552826166153, 0.07296492159366608, 0.29023054242134094, 0.06372909247875214, 0.3196468949317932, 0.023754045367240906, 0.23199127614498138, 0.32069098949432373, -0.24009159207344055, 0.1433270275592804, 0.0838349461555481, -0.23083984851837158, 0.2619359493255615, 0.14538751542568207, 0.9682910442352295, 0.042449310421943665, 0.19077569246292114, 0.22429662942886353, 0.07919351756572723, 0.4160703122615814, 0.0028475001454353333, 0.048035718500614166, -0.2100679725408554, -0.3447064757347107, 0.04776770621538162, -0.08160040527582169, 0.002189840190112591, -0.2576916217803955, -0.35821259021759033, 0.3531532883644104, -0.12138321995735168, -0.09853581339120865, -0.218806654214859, -0.03296636417508125, -0.059155553579330444, -0.31488868594169617, 0.024919971823692322, 0.0341159850358963, 0.07029874622821808, 0.2626047432422638, -0.15069912374019623, -0.16716066002845764, -0.22099265456199646, -0.2636077105998993, -0.1547156572341919, -0.22305457293987274, -0.28210923075675964, -0.1693057119846344, 0.2403288036584854, -0.013151600956916809, 0.027642138302326202, 0.2988245189189911, 0.4105800986289978, 0.09326787292957306, -0.3142993748188019, -0.10853242874145508, -0.16057783365249634, 0.21303044259548187, 0.1821778118610382, -0.08106134831905365, 0.27954575419425964, -0.13188385963439941, -0.08076789975166321, -0.005721213296055794, -0.210821732878685, 0.014089047908782959, 0.04951554536819458, -0.14526605606079102, -0.04654587432742119, -0.1562492549419403, 0.1377623975276947, 0.029885193333029747, -0.06524480134248734, -0.3307304084300995, 0.09955543279647827, 0.23458978533744812, -0.2563970685005188, 0.2924689054489136, 0.16324932873249054, -0.2699543237686157, -0.001178123988211155, 0.4867059290409088, -0.07439304888248444, -0.046913351863622665, 0.5342655777931213, 0.04179377853870392, -0.07842280715703964, -0.15467509627342224, -0.03770267218351364, 0.3748117983341217, -0.61881023645401, 0.255361407995224, -0.092128686606884, -0.10343370586633682, 0.032472025603055954, 0.2574293911457062, 0.2556151747703552, -0.16101312637329102, -0.05117247253656387, -0.19509257376194, -0.39974281191825867, 0.3095517158508301, -0.20610389113426208, 0.2349153310060501, -0.4314937889575958, 0.2607114613056183, -0.1639532446861267, 0.2664737403392792, -0.3096977472305298, 0.07124226540327072, -0.31736963987350464, 0.004819467663764954, -0.042604684829711914, -0.0775403082370758, 0.35408815741539, 0.01961587369441986, -0.07910999655723572, 0.14677226543426514, -0.34195107221603394, -0.12278088182210922, -0.20550036430358887, 0.14327214658260345, -0.10307911038398743, 0.0037044771015644073, 0.10531493276357651, 0.28414386510849, -0.28896984457969666, -0.21636946499347687, 0.14466668665409088, 0.22013098001480103, -0.08031824231147766, 0.1649865210056305, 0.02273723855614662, 0.17311520874500275, 0.021794050931930542, 0.12754398584365845, 0.31939589977264404, -0.1167130321264267, -0.2552143633365631, 0.16741584241390228, -0.31023645401000977, -0.15827545523643494, 0.25836271047592163, 0.2446473240852356, -0.05301640182733536, 0.24762238562107086, -0.0005026347935199738, 0.03908497467637062, -0.41497641801834106, 0.01520334929227829, 0.5152157545089722, 0.2113124281167984, 0.014827471226453781, -0.013239126652479172, 0.030636809766292572, 0.06296884268522263, -0.2263820320367813, 0.22480767965316772, -0.02419465035200119, 0.1465187966823578, 0.1827189326286316, 0.3415963649749756, 0.20041799545288086, -0.008790060877799988, 0.11312982439994812, 0.16688190400600433, -0.07626849412918091, -0.0972016304731369, 0.39294540882110596, -0.0642775148153305, 0.013583235442638397, 0.32711538672447205, 0.6098666191101074, 0.07152985036373138, 0.10150551050901413, 0.10425455868244171, -0.1152171790599823, 0.3192862570285797, -0.045461785048246384, 0.323151171207428, -0.19624567031860352, -0.020482633262872696, -0.18805544078350067, 0.10278230905532837, 0.007894914597272873, -0.26486706733703613, -0.451008677482605, 0.760166585445404, -0.2982219457626343, -0.42819827795028687, -0.159536212682724, 0.2162979245185852, -0.22038032114505768, -0.25027376413345337, -0.11807286739349365, -0.22735914587974548, -0.18713699281215668, -0.13669762015342712, 0.1595187783241272, 0.005519607104361057, 0.3172374963760376, -0.09355141967535019, 0.11663885414600372, -0.2562333941459656, -0.6462205052375793, 0.12332245707511902, 0.21152454614639282, -0.1426580250263214, 0.058032914996147156, 0.1994389295578003, -0.2637610137462616, 0.19762927293777466, 0.7228571772575378, 0.25193583965301514, 0.02615382894873619, -0.07862487435340881, 0.05296656861901283, 0.08395548909902573, 0.08769617974758148, -0.00015541911125183105, 0.25211668014526367, 0.26595932245254517, -0.612806499004364, 0.1696702539920807, -0.011400854215025902, -0.1481030285358429, 0.4118885397911072, -0.2929540276527405, 0.32688724994659424, -0.349689781665802, 0.4951539933681488, -0.04618249088525772, 0.014040187001228333, 0.04056590422987938, -0.14252206683158875, -0.5717722177505493, 0.22465544939041138, -0.020058492198586464, -0.07189621031284332, 0.0829668641090393, -0.36042988300323486, 0.05440826341509819, -0.07369190454483032, 0.4507359266281128, 0.2547646760940552, 0.1308716982603073, -0.31338199973106384, -0.0882294699549675, -0.6293575763702393, 0.06412855535745621, 0.250454306602478, 0.31228941679000854, -0.020193664357066154, 0.22403742372989655, 0.006054937839508057, 0.15389543771743774, 0.2459772229194641, -0.062028564512729645, -0.01881946250796318, -0.054791126400232315, -0.6547976136207581, 0.23986493051052094, -0.11821644008159637, -0.02796695940196514, 0.18325616419315338, 0.1730833649635315, 0.08130040764808655, -0.2520495355129242, -0.008485257625579834, 0.24405354261398315, -0.06250666081905365, -0.08890378475189209, 0.2176324427127838, 0.4322577118873596, 0.12164393812417984, 0.09333182126283646, 0.0375455841422081, -0.04674367606639862, -0.27855560183525085, -0.14138785004615784, -0.19358181953430176, -0.008342849090695381, -0.11651215702295303, 0.4362841546535492, -0.3418881595134735, -0.2784528136253357, -0.3898366689682007, 0.2074490785598755, 0.09350186586380005, -0.09740293025970459, -0.1647612452507019, 0.4062650203704834, -0.03990507870912552, -0.04854243993759155, 0.277315616607666, 0.3931531310081482, -0.0078774094581604, 0.36912813782691956, -0.48152512311935425, -0.2000587284564972, 0.7874454259872437, -0.5091013312339783, 0.16220930218696594, -0.2533196806907654, 0.3058439791202545, 0.4537867605686188, -0.33907052874565125, -0.6162965297698975, 0.02361522614955902, 0.12553372979164124, 0.04671027883887291, -0.18864019215106964, 0.28450316190719604, -0.42693984508514404, -0.1252789944410324, -0.09739191830158234, 0.2794099748134613, 0.06486855447292328, 0.00036084651947021484, -0.004630133509635925, -0.21030420064926147 ]
https://github.com/huggingface/datasets/issues/1942
Right, to clarify, I meant it'd be good to have it sorted on the library side and not requiring the user to figure it out. This is too complex and error-prone and if not coded correctly the bug will be intermittent which is even worse. Oh I guess I wasn't clear in my message - in no way I'm proposing that we use this workaround code - I was just showing what I had to do to make it work. We are on the same page. > The changes you are proposing Stas are making the code less readable and also concatenate all the predictions and labels number_of_processes times I believe, which is not going to make the metric computation any faster. And yes, this is another problem that my workaround introduces. Thank you for pointing it out, @sgugger
[experiment] missing default_experiment-1-0.arrow
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.
139
[experiment] missing default_experiment-1-0.arrow 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. Right, to clarify, I meant it'd be good to have it sorted on the library side and not requiring the user to figure it out. This is too complex and error-prone and if not coded correctly the bug will be intermittent which is even worse. Oh I guess I wasn't clear in my message - in no way I'm proposing that we use this workaround code - I was just showing what I had to do to make it work. We are on the same page. > The changes you are proposing Stas are making the code less readable and also concatenate all the predictions and labels number_of_processes times I believe, which is not going to make the metric computation any faster. And yes, this is another problem that my workaround introduces. Thank you for pointing it out, @sgugger
[ 0.0017204061150550842, 0.048333555459976196, 0.07416580617427826, 0.05186332389712334, 0.003217451274394989, -0.08906735479831696, 0.27334892749786377, 0.3028242588043213, 0.2559511661529541, 0.15783792734146118, 0.09535101801156998, 0.18284198641777039, -0.3078092634677887, 0.11929574608802795, 0.050819627940654755, -0.008809887804090977, -0.02899250015616417, -0.11108279228210449, -0.2872489392757416, -0.05463792756199837, -0.2833441495895386, 0.5747830867767334, -0.1937367469072342, 0.02750725857913494, -0.4175572991371155, 0.1800844818353653, -0.09673983603715897, 0.09597170352935791, -0.07467535883188248, -0.6333745718002319, 0.34313440322875977, 0.19196084141731262, 0.043781302869319916, 0.4339027404785156, -0.00011918000382138416, -0.15346667170524597, 0.21580392122268677, -0.14567813277244568, -0.059399399906396866, -0.1108042299747467, 0.07215610146522522, -0.3260093629360199, 0.47298741340637207, -0.14690248668193817, -0.01356051117181778, -0.08721211552619934, 0.0065101925283670425, -0.42419710755348206, 0.3669988214969635, 0.034366674721241, 0.13243097066879272, 0.29459255933761597, -0.021674320101737976, -0.2921678125858307, 0.07116883993148804, -0.14810863137245178, 0.035357385873794556, 0.36072149872779846, -0.13390058279037476, 0.08966618776321411, -0.26979973912239075, 0.2661952078342438, 0.21884560585021973, -0.11347062140703201, 0.3259407877922058, 0.013476226478815079, -0.02875496819615364, -0.08862732350826263, -0.10249726474285126, 0.25067687034606934, 0.2891422212123871, -0.19533264636993408, -0.26150062680244446, 0.061968401074409485, -0.20917561650276184, -0.3798716962337494, 0.11826415359973907, -0.12414202094078064, -0.03860098496079445, 0.018316201865673065, 0.06635770201683044, -0.10467159003019333, -0.08908344805240631, -0.008115528151392937, -0.09867960959672928, 0.015846868976950645, -0.13018378615379333, 0.046752337366342545, 0.018720334395766258, 0.18902577459812164, -0.358173668384552, 0.46450820565223694, 0.0015238188207149506, 0.11638256162405014, -0.452660471200943, 0.07941488921642303, 0.23404470086097717, 0.0034458115696907043, 0.12753678858280182, 0.4340144991874695, 0.04869064316153526, 0.09660662710666656, 0.49239200353622437, 0.07360689342021942, -0.15171906352043152, 0.5450244545936584, 0.1368217170238495, -0.09425725042819977, 0.21535781025886536, 0.2788962721824646, -0.05922393873333931, -0.33494076132774353, 0.27658742666244507, -0.29649609327316284, 0.35461705923080444, 0.13821478188037872, 0.04874493181705475, -0.528661847114563, 0.06507029384374619, 0.17705367505550385, -0.11062463372945786, -0.21848347783088684, 0.15394631028175354, 0.35566002130508423, 0.06421767920255661, 0.07281464338302612, 0.3231693506240845, 0.24197933077812195, -0.24187543988227844, 0.07304836809635162, -0.3921152353286743, -0.09628583490848541, -0.1561843454837799, 0.3900669813156128, 0.04270194470882416, -0.06735561788082123, 0.5413694381713867, -0.20720908045768738, 0.3952535092830658, -0.05426321551203728, 0.20747323334217072, 0.27336326241493225, 0.08561863750219345, 0.24509574472904205, -0.09711600840091705, 0.11066759377717972, 0.25328677892684937, 0.03483952581882477, -0.2827267646789551, -0.3384746015071869, -0.1631167232990265, -0.593583881855011, 0.03588443994522095, 0.02733103185892105, -0.47868651151657104, 0.1723165065050125, 0.3216296434402466, 0.30572646856307983, -0.16275949776172638, -0.13744835555553436, 0.1271645426750183, 0.07384903728961945, -0.10786711424589157, -0.06054535508155823, 0.5470595955848694, 0.6318548321723938, -0.3070908486843109, -0.36325153708457947, 0.08321018517017365, -0.052888430655002594, 0.08494560420513153, 0.15143699944019318, 0.018265914171934128, 0.12317834794521332, -0.27108514308929443, 0.06608103215694427, 0.37519586086273193, -0.26436400413513184, -0.42114686965942383, -0.09552563726902008, -0.3790401220321655, -0.1714233160018921, 0.148389533162117, 0.019640274345874786, 0.2099820226430893, 0.15573298931121826, 0.046216823160648346, -0.24139045178890228, 0.21833549439907074, -0.20984861254692078, -0.43952351808547974, -0.3486971855163574, 0.018681716173887253, -0.04335831478238106, 0.2190101444721222, 0.041935864835977554, 0.036306481808423996, 0.17068777978420258, 0.12566246092319489, 0.06603974848985672, 0.1798492670059204, 0.12312984466552734, 0.32377058267593384, -0.03552975133061409, 0.29781562089920044, 0.04444172978401184, -0.2541935443878174, 0.17628714442253113, -0.3174496293067932, 0.21362531185150146, 0.1256953775882721, -0.10053291916847229, -0.20928791165351868, -0.14392489194869995, -0.007045665755867958, -0.41476643085479736, 0.0263378769159317, -0.0470581129193306, 0.2701236605644226, 0.13645416498184204, -0.11911246180534363, 0.12846088409423828, 0.10726509243249893, 0.21141326427459717, -0.4049314856529236, 0.013038352131843567, -0.0703824907541275, -0.3191622793674469, 0.029893159866333008, 0.18001343309879303, 0.03294982761144638, 0.10191049426794052, -0.16986438632011414, 0.3908297121524811, -0.15402565896511078, 0.2272181212902069, 0.30485332012176514, 0.28516578674316406, -0.16297297179698944, -0.3259813189506531, 0.02204016037285328, 0.11052964627742767, -0.01627252995967865, 0.06488028168678284, -0.2022494375705719, 0.4049360752105713, 0.04560236632823944, 0.13917016983032227, -0.25392282009124756, 0.29882359504699707, -0.08551433682441711, -0.043187305331230164, -0.5963209867477417, -0.09900949150323868, 0.33059942722320557, -0.3289656341075897, 0.21052230894565582, -0.14632529020309448, -0.03144700825214386, 0.08236533403396606, 0.24736788868904114, 0.12335014343261719, 0.07724612951278687, 0.09788040816783905, -0.1947138011455536, -0.08562944829463959, 0.08291395753622055, -0.13187648355960846, 0.3044792413711548, 0.21820202469825745, 0.16073089838027954, 0.10804248601198196, 0.1258927285671234, -0.19361180067062378, 0.1297408938407898, 0.08856222033500671, -0.1993187665939331, -0.05198433995246887, 0.25484687089920044, 0.15394675731658936, -0.2797269821166992, -0.06942422688007355, -0.4146267771720886, 0.02845516987144947, -0.3391502797603607, 0.09331110119819641, -0.16817620396614075, 0.2760874330997467, 0.04271480068564415, 0.018573764711618423, -0.2692074775695801, -0.2986364960670471, 0.24470271170139313, -0.21175964176654816, -0.105998195707798, 0.30402934551239014, -0.3279460668563843, 0.6078710556030273, 0.055426307022571564, -0.14635170996189117, -0.2999767065048218, -0.06743710488080978, -0.04666900634765625, -0.11463930457830429, -0.21068428456783295, 0.25728094577789307, 0.21621812880039215, -0.1139947697520256, 0.15124528110027313, -0.02404659241437912, -0.4987682104110718, 0.03638703003525734, 0.00801786221563816, 0.6357995271682739, 0.3888978958129883, 0.015771592035889626, -0.26178276538848877, 0.03161118924617767, 0.3991931676864624, -0.4438585340976715, -0.22244805097579956, 0.09161831438541412, -0.014788918197154999, 0.24652881920337677, -0.3239530920982361, -0.42381125688552856, 0.12430820614099503, -0.40120792388916016, 0.7106446027755737, -0.016969524323940277, 0.01682422310113907, -0.21963167190551758, -0.04161935672163963, 0.21598228812217712, -0.21113426983356476, 0.3168078064918518, -0.3373788297176361, -0.6845722794532776, 0.4224871098995209, -0.10476963222026825, -0.24465042352676392, -0.02559729665517807, 0.057674944400787354, 0.3486339747905731, -0.16222721338272095, -0.5894120931625366, -0.47635114192962646, -0.07482457906007767, 0.1999908834695816, -0.019493887200951576, 0.0612853541970253, 0.5578105449676514, -0.03319907933473587, -0.05183764919638634, -0.0575106106698513, -0.30198490619659424, 0.6153208613395691, -0.20546548068523407, 0.04104270786046982, -0.007632622495293617, 0.44333332777023315, 0.1814218908548355, 0.816695511341095, 0.5588746070861816, 0.23933348059654236, 0.265694797039032, 0.1434512585401535, 0.3056057095527649, -0.14144761860370636, -0.09462222456932068, 0.31857967376708984, 0.1920529156923294, -0.06735259294509888, 0.1947139948606491, 0.1703394502401352, 0.19527992606163025, -0.11140701919794083, 0.008402697741985321, -0.25267279148101807, -0.35944873094558716, -0.02859141305088997, -0.012255462817847729, 0.16762086749076843, -0.0411500483751297, 0.03357372432947159, -0.22445090115070343, -0.04317484423518181, 0.4540454149246216, 0.38331449031829834, 0.2945556938648224, 0.24339768290519714, -0.19091501832008362, 0.12452700734138489, -0.7305418848991394, 0.34487348794937134, -0.4099699556827545, -0.0014103502035140991, -0.15467259287834167, -0.3290133774280548, 0.11914563179016113, -0.0597265250980854, 0.5468214154243469, 0.22647762298583984, -0.19410432875156403, 0.02411475032567978, -0.20363643765449524, -0.4357721209526062, -0.07048185169696808, -0.059581175446510315, -0.14308810234069824, 0.268841952085495, 0.3386005461215973, -0.44495224952697754, -0.239760160446167, -0.10343542695045471, -0.031264886260032654, -0.21910452842712402, -0.3313038945198059, -0.29370826482772827, -0.09960498660802841, -0.22209173440933228, 0.2061285376548767, -0.13142359256744385, 0.0842834860086441, -0.0277879536151886, 0.028026945888996124, -0.08423810452222824, -0.15783166885375977, 0.025660455226898193, 0.16935041546821594, 0.38008230924606323, -0.291294664144516, 0.30208683013916016, 0.5443147420883179, -0.04822056367993355, 0.03388756513595581, 0.37226736545562744, 0.08802291750907898, -0.01483791321516037, 0.2595534920692444, -0.07961330562829971, 0.318983256816864, 0.5834524631500244, -0.3298601508140564, 0.12689203023910522, -0.03791475296020508, 0.45137497782707214, -0.22432079911231995, -0.10238061845302582, 0.22266000509262085, -0.04406285285949707, 0.3950963318347931, 0.15746921300888062, 0.2453727126121521, 0.2686671316623688, -0.23946717381477356, 0.13926541805267334, 0.08566102385520935, -0.1921716183423996, 0.36776021122932434, 0.07692286372184753, 0.9748388528823853, 0.14250949025154114, 0.13491789996623993, 0.1659119427204132, 0.08435170352458954, 0.450175404548645, 0.10982857644557953, 0.07947169989347458, -0.2773194909095764, -0.2535170018672943, 0.07524633407592773, -0.12011710554361343, -0.12606891989707947, -0.36189401149749756, -0.32510414719581604, 0.40819817781448364, -0.27148157358169556, -0.10563027858734131, -0.22906431555747986, -0.14422419667243958, -0.21998722851276398, -0.26975446939468384, 0.04471414536237717, 0.045338403433561325, 0.09074385464191437, 0.4384635090827942, -0.18369817733764648, -0.18409854173660278, -0.26523715257644653, -0.3652842342853546, -0.12896108627319336, -0.06732248514890671, -0.17662683129310608, -0.11386746913194656, 0.2795243561267853, 0.004497498273849487, -0.06960888206958771, 0.19479289650917053, 0.35744646191596985, 0.14179861545562744, -0.3306594789028168, -0.098199263215065, 0.05380997806787491, 0.10658514499664307, 0.14692826569080353, 0.009867720305919647, 0.25442564487457275, -0.14318111538887024, -0.018239140510559082, -0.02448027953505516, -0.15131840109825134, 0.04389921575784683, 0.005842730402946472, -0.21440860629081726, -0.06068609282374382, -0.10186976194381714, 0.09825432300567627, 0.10710038989782333, 0.011233046650886536, -0.23380568623542786, 0.11057200282812119, 0.3235706388950348, -0.1865554004907608, 0.16335460543632507, 0.24006804823875427, -0.22535863518714905, -0.05128934234380722, 0.46434351801872253, -0.13656219840049744, -0.06275136023759842, 0.45279234647750854, 0.04213578999042511, -0.13349801301956177, -0.08537527918815613, -0.07594260573387146, 0.386966735124588, -0.8485311269760132, 0.15765845775604248, -0.033878885209560394, -0.051560088992118835, 0.04327655956149101, 0.2604060471057892, 0.3408828675746918, -0.15887922048568726, -0.08228275179862976, -0.2311333417892456, -0.40423810482025146, 0.38172510266304016, -0.3052515983581543, 0.23065036535263062, -0.5099553465843201, 0.19028644263744354, -0.28125, 0.14815279841423035, -0.31903189420700073, 0.08821792155504227, -0.22051690518856049, -0.15573036670684814, -0.17639388144016266, -0.001824844628572464, 0.34784072637557983, 0.009573590010404587, -0.07263508439064026, 0.23804692924022675, -0.3705163300037384, -0.09262355417013168, -0.20688392221927643, 0.1353430151939392, -0.1777232438325882, 0.008945029228925705, 0.0565367229282856, 0.22773802280426025, -0.15983319282531738, -0.1410602629184723, 0.09388770163059235, 0.18515686690807343, -0.00969696044921875, 0.08809694647789001, 0.1260213553905487, 0.07567305862903595, -0.013595111668109894, 0.19776904582977295, 0.23785533010959625, -0.1603403389453888, -0.22638218104839325, 0.1338215172290802, -0.4602913558483124, -0.07375757396221161, 0.3484000563621521, 0.23294855654239655, -0.1067647933959961, 0.24610216915607452, -0.02356928214430809, 0.09503160417079926, -0.4482332468032837, 0.045112233608961105, 0.4445842206478119, 0.04899129271507263, -0.09401273727416992, -0.010875198990106583, -0.041326940059661865, 0.09794904291629791, -0.14025861024856567, 0.32914528250694275, -0.06227193400263786, 0.33630868792533875, 0.12065467238426208, 0.2768873870372772, 0.21162238717079163, 0.013937801122665405, 0.16844147443771362, 0.2232990264892578, -0.054731059819459915, -0.09147486090660095, 0.3676174581050873, -0.1182740181684494, 0.024996981024742126, 0.328946977853775, 0.5605509877204895, 0.07638472318649292, 0.14962074160575867, -0.10664026439189911, -0.06720240414142609, 0.14843343198299408, -0.06610660254955292, 0.38175901770591736, -0.2465207874774933, -0.09105721116065979, -0.15724048018455505, 0.12400217354297638, 0.006164520978927612, -0.19017407298088074, -0.33156952261924744, 0.6917668581008911, -0.10935141146183014, -0.2469642460346222, -0.18804803490638733, 0.2186512053012848, -0.1606261432170868, -0.18493957817554474, -0.0838894471526146, -0.21056920289993286, -0.2191712111234665, -0.1509547233581543, 0.16956298053264618, 0.018552428111433983, 0.1450957953929901, -0.03285277634859085, 0.11605232208967209, -0.18585704267024994, -0.5609817504882812, 0.14182111620903015, 0.2941444218158722, -0.11760326474905014, 0.01816864125430584, 0.22440195083618164, -0.2845524549484253, 0.19790035486221313, 0.6598454713821411, 0.2762862741947174, -0.0298539437353611, -0.08842143416404724, 0.055942270904779434, 0.19040334224700928, 0.07151426374912262, -0.07440657913684845, 0.19384250044822693, 0.26868531107902527, -0.6026162505149841, 0.10625678300857544, 0.03610076755285263, -0.1714393049478531, 0.40326955914497375, -0.342399537563324, 0.36246633529663086, -0.24447928369045258, 0.48350757360458374, -0.15710337460041046, 0.11792011559009552, 0.0028643645346164703, -0.19290298223495483, -0.5489093661308289, 0.16970887780189514, -0.11214269697666168, -0.05060388520359993, 0.03837549686431885, -0.3354281485080719, 0.06362446397542953, -0.10646453499794006, 0.24580858647823334, 0.2641924023628235, 0.18386901915073395, -0.2285054326057434, -0.21147799491882324, -0.5184432864189148, 0.17002485692501068, 0.22405961155891418, 0.4091750681400299, 0.006952792406082153, 0.2396065592765808, -0.02128048986196518, 0.10178934037685394, 0.24423721432685852, 0.05659199878573418, -0.0967075526714325, -0.09162372350692749, -0.5518028140068054, 0.19630341231822968, -0.037832893431186676, -0.12605689465999603, 0.13730041682720184, 0.18824836611747742, -0.03347114846110344, -0.2720348834991455, 0.01441599428653717, 0.16431519389152527, -0.0944957435131073, -0.09924648702144623, 0.18433350324630737, 0.44041207432746887, 0.20468413829803467, 0.09252981841564178, -0.01925358548760414, -0.09866534173488617, -0.22659088671207428, -0.1590007245540619, -0.17254352569580078, -0.1005912572145462, -0.2516171336174011, 0.4177379012107849, -0.2840109169483185, -0.4044751822948456, -0.3830950856208801, 0.265268474817276, 0.041874080896377563, -0.0697607696056366, -0.21408016979694366, 0.42742159962654114, -0.10891728103160858, -0.04244805872440338, 0.1821327656507492, 0.29488521814346313, 0.022018712013959885, 0.39422276616096497, -0.32599717378616333, -0.25369706749916077, 0.796842098236084, -0.4785507619380951, 0.26964718103408813, -0.19400948286056519, 0.3755394220352173, 0.40577372908592224, -0.3926136791706085, -0.46621382236480713, -0.01835242658853531, 0.0767979621887207, 0.11429160088300705, -0.10759804397821426, 0.22902485728263855, -0.40010350942611694, -0.05050523579120636, -0.0820423886179924, 0.3052808940410614, 0.16807599365711212, 0.018352985382080078, -0.02071210741996765, -0.16924995183944702 ]
https://github.com/huggingface/datasets/issues/1942
> The fact a datasets.Metric object cannot be used as a simple compute function in a multi-process environment is, in my opinion, a bug in datasets Yes totally, this use case is supposed to be supported by `datasets`. And in this case there shouldn't be any collision between the metrics. I'm looking into it :) My guess is that at one point the metric isn't using the right file name. It's supposed to use one with a unique uuid in order to avoid the collisions.
[experiment] missing default_experiment-1-0.arrow
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 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. > The fact a datasets.Metric object cannot be used as a simple compute function in a multi-process environment is, in my opinion, a bug in datasets Yes totally, this use case is supposed to be supported by `datasets`. And in this case there shouldn't be any collision between the metrics. I'm looking into it :) My guess is that at one point the metric isn't using the right file name. It's supposed to use one with a unique uuid in order to avoid the collisions.
[ -0.13352280855178833, 0.03711962699890137, 0.09259753674268723, 0.216525137424469, 0.11556136608123779, 0.0259055495262146, 0.289228230714798, 0.2465747594833374, 0.24306681752204895, 0.14857986569404602, 0.022333383560180664, 0.1771804541349411, -0.23990541696548462, 0.11342409998178482, -0.04128504544496536, -0.009081286378204823, -0.03215250372886658, -0.06480611115694046, -0.2784067392349243, -0.053297705948352814, -0.3712782561779022, 0.4944945275783539, -0.2136932760477066, 0.05758362263441086, -0.47527241706848145, 0.06896333396434784, -0.19879555702209473, 0.18762701749801636, -0.12070842832326889, -0.4874231815338135, 0.3815600275993347, 0.18133202195167542, 0.04924709349870682, 0.6484947204589844, -0.00012045366020174697, -0.1653452217578888, 0.24969851970672607, -0.09455912560224533, -0.17528867721557617, -0.2627052664756775, -0.0832367017865181, -0.31617897748947144, 0.4207962155342102, -0.21273688971996307, 0.1441110372543335, -0.09561500698328018, 0.03253985196352005, -0.4734928011894226, 0.3829442262649536, 0.07131685316562653, 0.10922428220510483, 0.4045964777469635, -0.029014043509960175, -0.31052714586257935, -0.02310415357351303, -0.06607173383235931, 0.008985191583633423, 0.3649274408817291, -0.1367456614971161, 0.0707324743270874, -0.2014988511800766, 0.17975330352783203, 0.16549214720726013, 0.004744404926896095, 0.2488136887550354, 0.00693083181977272, -0.08297446370124817, -0.12206277251243591, 0.01222088374197483, 0.3364716172218323, 0.27853840589523315, -0.2549470365047455, -0.31653380393981934, 0.08691563457250595, -0.21462905406951904, -0.44818705320358276, 0.18364977836608887, -0.10025541484355927, 0.06786727160215378, 0.05242066830396652, -0.05636744946241379, -0.17560064792633057, -0.051679424941539764, 0.05659494176506996, -0.1596508026123047, -0.13501408696174622, -0.25545692443847656, 0.17980767786502838, 0.0026668449863791466, 0.17144393920898438, -0.32666173577308655, 0.25906166434288025, 0.04861811175942421, 0.1027817353606224, -0.5279274582862854, 0.201327383518219, 0.1730945110321045, -0.02894454076886177, 0.10728291422128677, 0.430281400680542, -0.031063657253980637, 0.15899208188056946, 0.40299084782600403, 0.1944817304611206, -0.05510753393173218, 0.4064204692840576, 0.17822527885437012, 0.0014903359115123749, 0.28015437722206116, 0.17496900260448456, -0.2232087105512619, -0.3422784209251404, 0.15022890269756317, -0.34702348709106445, 0.3246975541114807, 0.07953954488039017, 0.17998163402080536, -0.3473767042160034, -0.0161982923746109, 0.1810605227947235, -0.11183751374483109, -0.16128864884376526, 0.09968796372413635, 0.2822611331939697, 0.18666331470012665, -0.051605645567178726, 0.21574530005455017, 0.40550994873046875, -0.1794898808002472, 0.02255914732813835, -0.4205359220504761, -0.12132443487644196, -0.11820697784423828, 0.40259355306625366, 0.04580671340227127, -0.17624527215957642, 0.5597071647644043, -0.17643997073173523, 0.3955847918987274, -0.14909915626049042, 0.342109352350235, 0.13213923573493958, 0.02099554054439068, 0.30175137519836426, 0.05071312189102173, 0.2459193468093872, 0.2705453634262085, -0.0035894960165023804, -0.10207612067461014, -0.3254127502441406, -0.18975010514259338, -0.5088413953781128, 0.0911109447479248, -0.004907154478132725, -0.4515233039855957, 0.2914339303970337, 0.2894195318222046, 0.22989656031131744, -0.07284577190876007, -0.24288980662822723, 0.043705329298973083, 0.03917022794485092, -0.24433529376983643, -0.17416274547576904, 0.5107155442237854, 0.6710846424102783, -0.3306003212928772, -0.34693264961242676, -0.07728274166584015, -0.03987973928451538, -0.04611550271511078, 0.2499619722366333, -0.04066162183880806, 0.24621018767356873, -0.2826664447784424, 0.13340049982070923, 0.2764790952205658, -0.3176393508911133, -0.43750643730163574, -0.012119010090827942, -0.36036860942840576, -0.13625216484069824, 0.05096910893917084, -0.00417526438832283, 0.14222511649131775, 0.1615346372127533, 0.05784951150417328, -0.1849367618560791, 0.1697218269109726, -0.3091488182544708, -0.3021734356880188, -0.2162056267261505, 0.012286987155675888, -0.06232665106654167, 0.34944161772727966, 0.09347967803478241, 0.08666618168354034, 0.053354911506175995, 0.04635099321603775, 0.06441375613212585, 0.2311800718307495, 0.2167263627052307, 0.297689825296402, -0.036091398447752, 0.30195116996765137, -0.08169231563806534, -0.2597101926803589, 0.36232316493988037, -0.1630401909351349, 0.09621962904930115, 0.1023656576871872, 0.02692912518978119, -0.17564362287521362, -0.0892353504896164, -0.17048610746860504, -0.43655821681022644, 0.04100974649190903, -0.01819482445716858, 0.22639544308185577, 0.16314567625522614, -0.17850744724273682, 0.23977157473564148, 0.10396478325128555, 0.18615581095218658, -0.4449470043182373, 0.07354119420051575, -0.030420545488595963, -0.29373133182525635, -0.006850488483905792, 0.11237059533596039, 0.05692129582166672, 0.06606949865818024, -0.1975279301404953, 0.46334323287010193, -0.04604041948914528, 0.2614341378211975, 0.430595725774765, 0.14583519101142883, -0.10933148860931396, -0.34084779024124146, -0.026246927678585052, -0.001361306756734848, 0.05358187481760979, -0.057273391634225845, -0.21753442287445068, 0.36213305592536926, 0.02304789237678051, 0.14793424308300018, -0.24666744470596313, 0.37452661991119385, -0.08101304620504379, -0.05619029328227043, -0.5400529503822327, -0.034652069211006165, 0.3048752248287201, -0.29329246282577515, 0.34064584970474243, -0.14904336631298065, -0.012554839253425598, -0.09736529737710953, 0.24002911150455475, 0.14147938787937164, 0.1339055895805359, 0.03124339133501053, -0.3177608847618103, -0.0283261239528656, 0.00002759881317615509, -0.019396759569644928, 0.5301392078399658, 0.1484723687171936, 0.26788008213043213, 0.13488437235355377, 0.08706209808588028, -0.1628808081150055, 0.0027408525347709656, 0.095441535115242, 0.005738396197557449, 0.07302570343017578, 0.20600846409797668, 0.12221427261829376, -0.2972865104675293, -0.054539453238248825, -0.2019449770450592, 0.03366459906101227, -0.38637053966522217, 0.10174515098333359, -0.24748140573501587, 0.42866766452789307, 0.13424208760261536, 0.10972104221582413, -0.22000113129615784, -0.2977715730667114, 0.11707784235477448, -0.12713325023651123, -0.0012807771563529968, 0.3124435245990753, -0.18251627683639526, 0.5101054310798645, 0.12004230171442032, -0.10822876542806625, -0.22827833890914917, -0.15585604310035706, -0.03291993588209152, -0.16117984056472778, -0.10288171470165253, 0.2642018795013428, 0.1315704584121704, -0.11255566775798798, 0.15096983313560486, -0.23505151271820068, -0.4278854727745056, 0.06328767538070679, 0.0025524944067001343, 0.7433798909187317, 0.411145955324173, -0.0036349892616271973, -0.2799820601940155, 0.1605410873889923, 0.43117189407348633, -0.4666100740432739, -0.23511508107185364, 0.13924455642700195, -0.011116955429315567, 0.08108004927635193, -0.24778985977172852, -0.333874374628067, 0.06769926100969315, -0.337590754032135, 0.6766373515129089, -0.06793464720249176, -0.07187493145465851, -0.22986826300621033, -0.03288218379020691, 0.25909876823425293, -0.24387454986572266, 0.22325047850608826, -0.37152099609375, -0.6017814874649048, 0.35365745425224304, -0.15858282148838043, -0.3658100962638855, -0.029339611530303955, 0.08941532671451569, 0.41207435727119446, 0.026932422071695328, -0.5248667597770691, -0.44248905777931213, -0.05574582517147064, 0.23259764909744263, 0.025585701689124107, 0.09235657006502151, 0.4470266103744507, -0.10330840945243835, 0.013612844049930573, -0.2129087746143341, -0.3032339811325073, 0.5885708332061768, -0.12531057000160217, 0.03131638839840889, -0.02468870021402836, 0.4544476866722107, 0.1785295158624649, 0.8193628191947937, 0.5739849209785461, 0.2213238775730133, 0.2435992956161499, 0.027240371331572533, 0.4192948043346405, 0.010075345635414124, -0.2407454252243042, 0.3913174569606781, 0.08352981507778168, -0.14876216650009155, 0.1663927137851715, 0.1160772293806076, 0.19520056247711182, -0.14006078243255615, 0.019041240215301514, -0.33526140451431274, -0.27098214626312256, -0.13985076546669006, -0.0637856274843216, 0.22852148115634918, 0.15511544048786163, 0.028276756405830383, -0.25396063923835754, 0.09257665276527405, 0.34883543848991394, 0.32728081941604614, 0.1989058405160904, 0.18664664030075073, -0.24825593829154968, 0.04568981006741524, -0.5986580848693848, 0.33027076721191406, -0.4330095052719116, 0.13604024052619934, -0.10700875520706177, -0.17609074711799622, 0.12093961238861084, -0.03605198115110397, 0.6881155371665955, -0.0618489608168602, -0.2268880307674408, -0.0087776780128479, -0.21075943112373352, -0.530898928642273, 0.03130628168582916, -0.14296498894691467, 0.0433674119412899, 0.27629905939102173, 0.4072861075401306, -0.4166148900985718, -0.1702871173620224, -0.17408518493175507, 0.023440122604370117, -0.21821379661560059, -0.3281386196613312, -0.30099865794181824, -0.06140955537557602, -0.2629104256629944, 0.057481128722429276, -0.2308468222618103, 0.0075309984385967255, -0.08313891291618347, 0.030484862625598907, -0.2600265443325043, 0.017163261771202087, 0.011988312005996704, 0.10356496274471283, 0.3259924650192261, -0.37207919359207153, 0.29578596353530884, 0.5614346861839294, -0.06971113383769989, 0.13721433281898499, 0.4020887017250061, 0.01942380517721176, -0.14991000294685364, 0.37073153257369995, -0.0855318084359169, 0.28408005833625793, 0.4530300498008728, -0.3448779881000519, -0.006679940968751907, -0.018519124016165733, 0.4108573794364929, -0.18408238887786865, -0.09802445769309998, 0.3913736939430237, 0.0029591917991638184, 0.24479685723781586, 0.14491039514541626, 0.2343631386756897, 0.38379746675491333, -0.15643276274204254, 0.289492130279541, 0.08613075315952301, -0.1000661551952362, 0.2511705160140991, 0.014950716868042946, 0.8027761578559875, 0.05477658286690712, 0.015825174748897552, 0.19365860521793365, 0.0883169025182724, 0.520569920539856, 0.11130694299936295, -0.019903406500816345, -0.2456328272819519, -0.33288922905921936, 0.0005450472235679626, -0.18193644285202026, 0.03311929106712341, -0.2277822196483612, -0.25388288497924805, 0.3600269854068756, -0.16873274743556976, -0.13008980453014374, -0.1787784844636917, -0.04953185096383095, -0.23852524161338806, -0.19917120039463043, 0.1351708173751831, 0.05465283989906311, 0.10975213348865509, 0.4981810450553894, -0.17062532901763916, -0.14475283026695251, -0.2722235321998596, -0.31783685088157654, -0.24827508628368378, -0.09000027179718018, -0.19775305688381195, -0.011112377047538757, 0.2499721497297287, -0.06390487402677536, -0.02526279166340828, 0.26778122782707214, 0.5074551105499268, 0.047265876084566116, -0.3525550961494446, 0.003476272337138653, 0.013043190352618694, 0.1437123417854309, 0.11612249910831451, -0.12112018465995789, 0.23731040954589844, -0.0689929649233818, -0.09269718825817108, -0.06571479141712189, -0.16488033533096313, 0.1208205372095108, 0.10180480778217316, -0.11479701846837997, -0.2134728729724884, -0.057704731822013855, 0.03447927162051201, 0.02075158804655075, 0.0414714589715004, -0.3736036419868469, 0.07582477480173111, 0.2722468674182892, -0.14655543863773346, 0.17229829728603363, 0.111396923661232, -0.2608969211578369, -0.014149930328130722, 0.5147311687469482, -0.23732931911945343, -0.0303419828414917, 0.410490483045578, 0.13083405792713165, -0.02832014113664627, -0.10002343356609344, 0.0894256979227066, 0.41365134716033936, -0.7102575302124023, 0.17285369336605072, -0.09832656383514404, 0.11896584928035736, 0.07432927191257477, 0.1602977067232132, 0.29233288764953613, -0.22330117225646973, -0.05295834317803383, -0.31341469287872314, -0.3251952528953552, 0.2963860034942627, -0.3277486562728882, 0.10880940407514572, -0.39963260293006897, 0.10982787609100342, -0.11144129931926727, 0.23521137237548828, -0.2688809037208557, 0.2411135733127594, -0.2456684112548828, -0.173437237739563, 0.020025979727506638, 0.029822468757629395, 0.35119426250457764, -0.05952664464712143, -0.08468037843704224, 0.2033030241727829, -0.3578532934188843, -0.07607503980398178, -0.23579362034797668, 0.14306600391864777, -0.09668292105197906, 0.0890798419713974, 0.027142338454723358, 0.17309217154979706, -0.1648477017879486, -0.1966080516576767, 0.09149353206157684, 0.2636886239051819, -0.05020284652709961, 0.08550761640071869, 0.11011424660682678, 0.15964341163635254, -0.047167081385850906, 0.1796097308397293, 0.15402565896511078, -0.1877581924200058, -0.13193009793758392, 0.1650541126728058, -0.2592051029205322, -0.05345369130373001, 0.21676528453826904, 0.012826239690184593, -0.12902943789958954, 0.1538245528936386, 0.06963548064231873, -0.08150351047515869, -0.30344492197036743, -0.040924713015556335, 0.5869250297546387, 0.22903645038604736, -0.1482739895582199, 0.09737808257341385, -0.08705392479896545, 0.07476802170276642, -0.1308407187461853, 0.285993754863739, 0.08047434687614441, 0.2450648993253708, 0.11032534390687943, 0.1948864459991455, 0.1472146213054657, 0.04473276436328888, -0.03326410427689552, 0.19883716106414795, -0.004026427865028381, -0.2192634642124176, 0.34055566787719727, -0.13425081968307495, 0.044611044228076935, 0.39511942863464355, 0.5971515774726868, 0.17305603623390198, 0.14528311789035797, 0.15263649821281433, -0.09550066292285919, 0.22595174610614777, -0.10517435520887375, 0.31717371940612793, -0.08283455669879913, -0.19245953857898712, -0.0912107527256012, 0.013280794024467468, -0.058170270174741745, -0.24169562757015228, -0.4781818091869354, 0.7504740953445435, -0.3104272186756134, -0.2048027515411377, -0.24979418516159058, 0.22829453647136688, -0.15333059430122375, -0.19662058353424072, -0.16781163215637207, -0.19489195942878723, -0.10059875249862671, -0.16224630177021027, 0.1900169849395752, 0.04402409493923187, 0.21800631284713745, -0.020990826189517975, 0.1075952798128128, -0.3651965856552124, -0.5040795803070068, 0.24005979299545288, 0.05987837538123131, -0.14691062271595, -0.037854038178920746, 0.24247445166110992, -0.3101004958152771, 0.1404377669095993, 0.625837504863739, 0.333903431892395, 0.035509850829839706, -0.1565677970647812, 0.09571169316768646, 0.2010086178779602, 0.002619117498397827, -0.11236236989498138, 0.19267691671848297, 0.1783115118741989, -0.4704281687736511, 0.2172088325023651, 0.06014830619096756, -0.1306460201740265, 0.263772189617157, -0.24893075227737427, 0.39112311601638794, -0.37394338846206665, 0.4142308533191681, -0.34038129448890686, 0.1366838812828064, 0.08562609553337097, -0.1665981113910675, -0.5777474045753479, 0.2350999414920807, 0.039167266339063644, -0.07885949313640594, 0.10470665991306305, -0.30963385105133057, 0.04950428009033203, -0.1320975124835968, 0.22660085558891296, 0.3706274926662445, 0.1260540634393692, -0.301186203956604, -0.2492922693490982, -0.7142771482467651, 0.31862491369247437, 0.12626756727695465, 0.303276002407074, -0.08998535573482513, 0.38006067276000977, -0.04942689836025238, 0.060903679579496384, 0.24525374174118042, 0.01206257939338684, -0.016422465443611145, 0.025114307180047035, -0.5366047024726868, 0.05485927313566208, -0.20195698738098145, -0.18900606036186218, 0.12953908741474152, 0.22963368892669678, 0.011595460586249828, -0.2051224559545517, -0.005605816841125488, 0.09439188241958618, -0.08768889307975769, -0.10650603473186493, 0.10452884435653687, 0.47489631175994873, 0.22467216849327087, 0.11737307161092758, -0.044018421322107315, -0.008405908942222595, -0.2767063081264496, -0.1092074066400528, -0.08436967432498932, -0.030133407562971115, -0.3517560660839081, 0.43233466148376465, -0.350294291973114, -0.3416683077812195, -0.3375522494316101, 0.15490436553955078, 0.1130460798740387, -0.11225462704896927, -0.25956282019615173, 0.4067009389400482, -0.13368529081344604, 0.044431980699300766, 0.24335357546806335, 0.3771452009677887, -0.04718378931283951, 0.4603341817855835, -0.2675013542175293, -0.1776425838470459, 0.753042995929718, -0.4552139937877655, 0.13267427682876587, -0.22017014026641846, 0.34383678436279297, 0.35475271940231323, -0.4648526608943939, -0.3702155351638794, 0.0004913508892059326, 0.16471216082572937, 0.09725691378116608, -0.20374172925949097, 0.15683767199516296, -0.3975246250629425, -0.03587063401937485, -0.041086647659540176, 0.2923153042793274, 0.1856917142868042, -0.08260736614465714, 0.12788556516170502, -0.03143627196550369 ]
https://github.com/huggingface/datasets/issues/1942
I just opened #1966 to fix this :) @stas00 if have a chance feel free to try it !
[experiment] missing default_experiment-1-0.arrow
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.
19
[experiment] missing default_experiment-1-0.arrow 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. I just opened #1966 to fix this :) @stas00 if have a chance feel free to try it !
[ 0.05026748776435852, -0.030785545706748962, 0.05852583795785904, 0.16687795519828796, 0.034458503127098083, 0.03031504899263382, 0.18300701677799225, 0.2939567565917969, 0.23588106036186218, 0.10173691809177399, 0.10235768556594849, 0.18876944482326508, -0.3214573264122009, 0.0011921226978302002, 0.05282632261514664, -0.028723126277327538, -0.050264161080121994, -0.009670820087194443, -0.35830995440483093, -0.12540321052074432, -0.23255090415477753, 0.5447104573249817, -0.15719029307365417, -0.004551835358142853, -0.508487343788147, 0.2233061045408249, -0.1877896934747696, 0.14021147787570953, -0.09688226878643036, -0.5538379549980164, 0.4047333002090454, 0.1505974680185318, 0.09103464335203171, 0.4610123634338379, -0.00012239768693689257, -0.18114840984344482, 0.19493740797042847, -0.19297242164611816, -0.1423966884613037, -0.10688886046409607, -0.0061707571148872375, -0.28630155324935913, 0.5193976759910583, -0.14925363659858704, -0.06222128868103027, -0.04207303375005722, 0.028299039229750633, -0.28608420491218567, 0.5111197233200073, 0.09695713222026825, 0.11174032092094421, 0.382009357213974, 0.035515256226062775, -0.30406278371810913, 0.04671354591846466, -0.058873362839221954, -0.023332074284553528, 0.33529573678970337, -0.1401585042476654, 0.031018435955047607, -0.18600940704345703, 0.2797895073890686, 0.26170244812965393, -0.0712251365184784, 0.2279258519411087, 0.01108437031507492, -0.12316730618476868, -0.16994328796863556, 0.001683346927165985, 0.2876954674720764, 0.24555188417434692, -0.10026725381612778, -0.2289029061794281, 0.13509061932563782, -0.14885461330413818, -0.2994294762611389, 0.15155602991580963, -0.10071828961372375, 0.09966486692428589, 0.11332923173904419, 0.029581844806671143, -0.186519056558609, -0.10757425427436829, 0.0627109706401825, -0.14745663106441498, -0.03275519236922264, -0.19666753709316254, 0.018770607188344002, -0.03976046293973923, 0.09620357304811478, -0.32393404841423035, 0.4986528754234314, -0.0832982286810875, 0.18760785460472107, -0.3713003396987915, 0.07090578973293304, 0.27392733097076416, 0.09479574114084244, 0.09211836010217667, 0.34635689854621887, -0.00807276926934719, 0.07987681776285172, 0.4184754192829132, 0.08149519562721252, -0.09677751362323761, 0.4281894862651825, 0.26069968938827515, -0.005804270505905151, 0.16065844893455505, 0.24372993409633636, -0.21308660507202148, -0.2938712239265442, 0.19967104494571686, -0.22338007390499115, 0.36322706937789917, 0.07742530107498169, 0.058749303221702576, -0.4959125518798828, 0.11174307763576508, 0.24869561195373535, -0.16795852780342102, -0.20728538930416107, 0.10421104729175568, 0.3869486153125763, 0.14245781302452087, -0.05021553114056587, 0.27873849868774414, 0.3803994655609131, -0.16843095421791077, -0.03608515113592148, -0.445757657289505, -0.17968381941318512, -0.09670549631118774, 0.32022637128829956, 0.14312951266765594, -0.07123474031686783, 0.6667421460151672, -0.16455931961536407, 0.33579403162002563, -0.12728872895240784, 0.25070273876190186, 0.2788630425930023, 0.050367988646030426, 0.2963222563266754, 0.017530739307403564, 0.15716642141342163, 0.3135044276714325, 0.15652772784233093, -0.19121262431144714, -0.33472660183906555, -0.15776634216308594, -0.5147594809532166, 0.07900732755661011, 0.009594437666237354, -0.387116014957428, 0.12224078178405762, 0.4855629503726959, 0.20774060487747192, -0.11910867691040039, -0.18440881371498108, 0.16409513354301453, 0.04714634642004967, -0.023804165422916412, -0.0801771804690361, 0.5420817136764526, 0.6158714294433594, -0.33375608921051025, -0.38105612993240356, 0.08578849583864212, -0.06351621448993683, -0.03960039094090462, 0.22017022967338562, -0.005628891289234161, 0.13967102766036987, -0.2328997403383255, 0.10886847972869873, 0.37031257152557373, -0.2679550349712372, -0.5212198495864868, -0.05523156374692917, -0.3564217984676361, -0.18505430221557617, 0.09046255797147751, 0.013421565294265747, 0.09283669292926788, 0.22545719146728516, 0.0927809476852417, -0.2245483547449112, 0.2309311032295227, -0.31173497438430786, -0.3569085896015167, -0.2340025007724762, 0.03084118664264679, -0.06277213245630264, 0.3183656930923462, 0.07013891637325287, 0.048934876918792725, 0.08756128698587418, 0.122126504778862, 0.04904691502451897, 0.13791806995868683, 0.228475421667099, 0.40505895018577576, 0.08815387636423111, 0.27078941464424133, 0.11753195524215698, -0.1957641988992691, 0.21271803975105286, -0.3725410997867584, 0.14727500081062317, 0.15399670600891113, -0.0014502182602882385, -0.21306869387626648, -0.15690366923809052, -0.0808192789554596, -0.4970971941947937, 0.030216097831726074, -0.13210080564022064, 0.2546531856060028, 0.18137353658676147, -0.16080576181411743, 0.09998562186956406, 0.07063351571559906, 0.25044459104537964, -0.44892388582229614, 0.08088783919811249, -0.10087352246046066, -0.35570934414863586, 0.01053483784198761, 0.12481760233640671, 0.06591819226741791, 0.05686313658952713, -0.2100694179534912, 0.36094799637794495, -0.19602255523204803, 0.2700864374637604, 0.3957688510417938, 0.1259014904499054, -0.17008407413959503, -0.46626004576683044, 0.01356389932334423, 0.09637366235256195, -0.11021098494529724, 0.034308575093746185, -0.22941911220550537, 0.3718852996826172, 0.11293978989124298, 0.08526048064231873, -0.35109996795654297, 0.36226314306259155, -0.04105091094970703, -0.16469356417655945, -0.46948039531707764, -0.15698674321174622, 0.3380328416824341, -0.26304155588150024, 0.16481053829193115, -0.13525712490081787, -0.006663165986537933, 0.026715606451034546, 0.1505914181470871, 0.1934218555688858, 0.19211921095848083, 0.06405480206012726, -0.26227590441703796, -0.13656412065029144, 0.03383331000804901, -0.1024969294667244, 0.367092490196228, 0.19501838088035583, 0.2114620953798294, 0.07378321141004562, 0.14461010694503784, -0.16914716362953186, 0.0960002914071083, -0.008499376475811005, -0.1350519061088562, 0.08923256397247314, 0.24385035037994385, 0.1896134316921234, -0.3362027406692505, -0.014699719846248627, -0.3934497535228729, 0.07330595701932907, -0.3259216248989105, -0.00993691012263298, -0.16362732648849487, 0.33445173501968384, 0.18393109738826752, 0.0512288399040699, -0.25673267245292664, -0.2762010097503662, 0.23069344460964203, -0.23793748021125793, -0.024227146059274673, 0.22729811072349548, -0.3410358428955078, 0.5317054390907288, 0.13483595848083496, -0.06541593372821808, -0.28553539514541626, -0.13303667306900024, -0.05075695365667343, -0.15444079041481018, -0.2762286961078644, 0.20583903789520264, 0.18347230553627014, -0.17061614990234375, 0.07365968823432922, -0.038526225835084915, -0.4664660692214966, 0.04712987691164017, -0.026977423578500748, 0.6298750042915344, 0.32986733317375183, 0.07966320216655731, -0.2673368453979492, 0.04086092859506607, 0.4414916932582855, -0.4318044185638428, -0.2710915207862854, 0.08754072338342667, 0.004803899675607681, 0.19618596136569977, -0.24639330804347992, -0.3488061726093292, 0.09987004846334457, -0.33137890696525574, 0.6622586846351624, 0.04678766429424286, -0.04924831911921501, -0.20697921514511108, -0.07087931782007217, 0.20376989245414734, -0.2940336763858795, 0.3168637156486511, -0.3551408052444458, -0.6845227479934692, 0.45145463943481445, -0.15228059887886047, -0.2791169583797455, 0.002912953495979309, 0.06945198774337769, 0.4111827611923218, -0.10439372062683105, -0.5750928521156311, -0.4180470407009125, -0.04968705028295517, 0.2071719914674759, -0.004324019420892, 0.06528365612030029, 0.4947386384010315, -0.12257912755012512, -0.03126685321331024, -0.08183364570140839, -0.2440454661846161, 0.506759524345398, -0.04283501207828522, 0.17587918043136597, -0.12492933124303818, 0.4491824805736542, 0.1300961822271347, 0.801787793636322, 0.583868145942688, 0.2834761440753937, 0.273136705160141, 0.06159594655036926, 0.3118469715118408, -0.11292879283428192, -0.2101449966430664, 0.3428446352481842, 0.22554609179496765, -0.08796628564596176, 0.2291419953107834, 0.1611827164888382, 0.17283625900745392, -0.11258478462696075, -0.058381907641887665, -0.36523541808128357, -0.3408972918987274, -0.08702199906110764, -0.028134215623140335, 0.2828761339187622, -0.03527699410915375, 0.04980632662773132, -0.20528104901313782, 0.022427063435316086, 0.4554182291030884, 0.32144397497177124, 0.17475247383117676, 0.20123635232448578, -0.18604105710983276, 0.08222256600856781, -0.6240657567977905, 0.28834691643714905, -0.5249199867248535, 0.12555508315563202, -0.2078334242105484, -0.30269867181777954, 0.14752954244613647, 0.028411615639925003, 0.5838215351104736, 0.09676001965999603, -0.11931835114955902, -0.03518218547105789, -0.21459129452705383, -0.43527382612228394, -0.05721592158079147, -0.10443542152643204, -0.05609435960650444, 0.36245033144950867, 0.31010234355926514, -0.3499494194984436, -0.18487146496772766, 0.0001565348356962204, -0.1191483661532402, -0.28002864122390747, -0.30773892998695374, -0.2760513424873352, 0.0416334867477417, -0.16645467281341553, 0.11144237220287323, -0.2791820466518402, -0.0038865916430950165, 0.04081154614686966, 0.0349704772233963, -0.14828312397003174, -0.11223551630973816, 0.014948956668376923, 0.1882759928703308, 0.3704339563846588, -0.28150835633277893, 0.21733783185482025, 0.5262381434440613, -0.16051113605499268, 0.03005809895694256, 0.39954522252082825, 0.09340494871139526, 0.007220115512609482, 0.21622434258460999, -0.126062273979187, 0.3122658133506775, 0.4790807366371155, -0.3064970374107361, 0.05840205401182175, -0.04493916034698486, 0.42540040612220764, -0.16948029398918152, -0.1294703334569931, 0.36590296030044556, -0.12864293158054352, 0.4067680537700653, 0.21685349941253662, 0.2520105242729187, 0.1982666701078415, -0.1372208148241043, 0.19229863584041595, 0.1228669285774231, -0.12983159720897675, 0.4037840962409973, 0.07251422852277756, 0.9066627025604248, 0.22849753499031067, 0.1569654494524002, 0.11428616940975189, 0.12872612476348877, 0.4183027446269989, 0.16600733995437622, 0.016889315098524094, -0.2391739785671234, -0.21635638177394867, 0.021836906671524048, -0.12945625185966492, -0.09220410883426666, -0.33413058519363403, -0.34917303919792175, 0.333942174911499, -0.41623666882514954, -0.17143261432647705, -0.2300451099872589, -0.25898537039756775, -0.2749917209148407, -0.11252471804618835, 0.08329261839389801, 0.03937196731567383, 0.12734892964363098, 0.5895766019821167, -0.19846661388874054, -0.1865692436695099, -0.30873554944992065, -0.37826061248779297, -0.19946038722991943, -0.0075617507100105286, -0.17805111408233643, -0.044649574905633926, 0.35637253522872925, -0.11402814090251923, -0.10815764963626862, 0.27475231885910034, 0.42483875155448914, 0.14102056622505188, -0.40953922271728516, -0.044790565967559814, 0.09709812700748444, -0.006465066224336624, 0.08821560442447662, 0.06078362464904785, 0.22274363040924072, -0.042729269713163376, -0.043267153203487396, 0.02648075483739376, -0.1708240807056427, 0.15133251249790192, -0.011529818177223206, -0.18385811150074005, -0.20100685954093933, -0.1706020087003708, -0.020678173750638962, 0.11993132531642914, 0.013187140226364136, -0.24384476244449615, 0.09454336762428284, 0.3195438086986542, -0.23661120235919952, 0.10288213938474655, 0.2528238892555237, -0.22306397557258606, -0.0671369880437851, 0.5790001749992371, -0.3150366246700287, -0.06644359976053238, 0.4722224473953247, 0.08926291763782501, -0.06687591969966888, -0.1505773961544037, 0.03986726701259613, 0.4476163685321808, -0.7930824756622314, 0.06827965378761292, -0.005273774266242981, 0.02920880913734436, 0.13696996867656708, 0.18249870836734772, 0.3927778899669647, -0.2080865502357483, -0.07182849943637848, -0.1729666143655777, -0.42520928382873535, 0.27524062991142273, -0.31395137310028076, 0.18464472889900208, -0.5226017236709595, 0.09049224108457565, -0.11348383873701096, 0.3245964050292969, -0.2781522274017334, 0.18216438591480255, -0.2456912398338318, -0.14797253906726837, -0.15704213082790375, -0.05666481330990791, 0.3577840030193329, -0.003350604325532913, -0.05184786394238472, 0.11873899400234222, -0.3425804376602173, -0.09741313755512238, -0.2557145357131958, 0.14420907199382782, -0.10516650974750519, 0.13444103300571442, -0.03437405824661255, 0.2559402585029602, -0.07857188582420349, -0.09549647569656372, 0.04427861422300339, 0.17842209339141846, 0.08846127241849899, 0.21357455849647522, 0.1516384780406952, 0.030044900253415108, -0.06557616591453552, 0.16766217350959778, 0.15364645421504974, -0.2112167626619339, -0.09855189919471741, 0.003976773004978895, -0.37372535467147827, -0.08036401867866516, 0.2566913366317749, 0.14994530379772186, -0.21905264258384705, 0.16028188169002533, 0.03164815530180931, 0.005518830381333828, -0.3093929588794708, -0.015097472816705704, 0.4742200970649719, 0.13637316226959229, -0.1317465752363205, 0.0929517075419426, -0.07258105278015137, 0.12052752822637558, -0.13494250178337097, 0.31593695282936096, 0.021919749677181244, 0.3718646168708801, -0.006272248923778534, 0.2041681557893753, 0.09085772186517715, -0.025144733488559723, 0.09299381822347641, 0.21556250751018524, -0.039973802864551544, -0.1805281788110733, 0.349017858505249, -0.09851351380348206, 0.023743703961372375, 0.2782061696052551, 0.5448622703552246, 0.10111729055643082, 0.14756444096565247, -0.053107600659132004, -0.08034223318099976, 0.17102941870689392, -0.16020436584949493, 0.3541838824748993, -0.11228495836257935, -0.10441375523805618, -0.19846001267433167, 0.0329710990190506, 0.054521769285202026, -0.17614220082759857, -0.42915037274360657, 0.8031212091445923, -0.18087002635002136, -0.24415865540504456, -0.1937088519334793, 0.20280924439430237, -0.16821613907814026, -0.15276671946048737, -0.16244462132453918, -0.2118789255619049, -0.17209358513355255, -0.14433595538139343, 0.2267822027206421, 0.036352820694446564, 0.06907932460308075, 0.1380733847618103, 0.0689270943403244, -0.34478047490119934, -0.46041926741600037, 0.2070622444152832, 0.17645496129989624, -0.16245228052139282, -0.008220979012548923, 0.18417295813560486, -0.30445873737335205, 0.171396404504776, 0.6305410861968994, 0.25835713744163513, 0.0060697291046381, -0.11084455996751785, 0.11104143410921097, 0.2097603678703308, -0.04998119920492172, -0.11431671679019928, 0.16084438562393188, 0.2634715735912323, -0.5008490681648254, 0.03625758737325668, 0.04995192587375641, -0.14376461505889893, 0.38079559803009033, -0.3335396349430084, 0.3961322009563446, -0.1687198281288147, 0.4106988310813904, -0.20035579800605774, 0.1380615234375, -0.0227756816893816, -0.21512843668460846, -0.6650731563568115, 0.21703609824180603, -0.11445222795009613, -0.024450333788990974, 0.08898767828941345, -0.26981720328330994, 0.040079884231090546, -0.1257959008216858, 0.23375791311264038, 0.4144930839538574, 0.10517988353967667, -0.2935042977333069, -0.3102204203605652, -0.508348822593689, 0.23868998885154724, 0.20748969912528992, 0.328726202249527, -0.030886847525835037, 0.3978417217731476, -0.09953805804252625, 0.03739313781261444, 0.2820655107498169, -0.053901661187410355, -0.07636972516775131, -0.03653756529092789, -0.5322999954223633, 0.20372828841209412, -0.09459272027015686, -0.0557687021791935, 0.12984196841716766, 0.355244517326355, -0.0351368747651577, -0.25368303060531616, -0.005523554980754852, 0.16822385787963867, -0.2035003900527954, -0.1541193127632141, 0.17023245990276337, 0.4273456037044525, 0.15145428478717804, 0.08788961917161942, -0.01819983497262001, -0.06744185090065002, -0.2374916523694992, -0.1905183047056198, -0.05240305885672569, -0.15061992406845093, -0.22235167026519775, 0.44250670075416565, -0.3113911747932434, -0.4462624788284302, -0.36007410287857056, 0.22348470985889435, 0.07130648195743561, -0.12159272283315659, -0.20352818071842194, 0.3574286699295044, -0.0377725213766098, -0.029808687046170235, 0.27873483300209045, 0.30114680528640747, -0.021017204970121384, 0.38512980937957764, -0.32224926352500916, -0.23386487364768982, 0.7657580375671387, -0.4776707887649536, 0.289294958114624, -0.22337020933628082, 0.39520856738090515, 0.37075936794281006, -0.4478721618652344, -0.42016077041625977, -0.00334891676902771, 0.1377256214618683, 0.0659002810716629, -0.09412333369255066, 0.1670299619436264, -0.27649426460266113, 0.003438889980316162, -0.024154897779226303, 0.322001576423645, 0.24887457489967346, 0.06362325698137283, -0.03559277206659317, -0.10956232994794846 ]
https://github.com/huggingface/datasets/issues/1941
Works great 👍 I just put a minor comment on the commit, I think you meant to pass the `train_size` from the one obtained from the config. Thanks for a quick response!
Loading of FAISS index fails for index_name = 'exact'
Hi, It looks like loading of FAISS index now fails when using index_name = 'exact'. For example, from the RAG [model card](https://huggingface.co/facebook/rag-token-nq?fbclid=IwAR3bTfhls5U_t9DqsX2Vzb7NhtRHxJxfQ-uwFT7VuCPMZUM2AdAlKF_qkI8#usage). Running `transformers==4.3.2` and datasets installed from source on latest `master` branch. ```bash (venv) sergey_mkrtchyan datasets (master) $ python Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from transformers import RagTokenizer, RagRetriever, RagTokenForGeneration >>> tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq") >>> retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=True) Using custom data configuration dummy.psgs_w100.nq.no_index-dummy=True,with_index=False Reusing dataset wiki_dpr (/Users/sergey_mkrtchyan/.cache/huggingface/datasets/wiki_dpr/dummy.psgs_w100.nq.no_index-dummy=True,with_index=False/0.0.0/8a97e0f4fa5bc46e179474db6a61b09d5d2419d2911835bd3f91d110c936d8bb) Using custom data configuration dummy.psgs_w100.nq.exact-50b6cda57ff32ab4 Reusing dataset wiki_dpr (/Users/sergey_mkrtchyan/.cache/huggingface/datasets/wiki_dpr/dummy.psgs_w100.nq.exact-50b6cda57ff32ab4/0.0.0/8a97e0f4fa5bc46e179474db6a61b09d5d2419d2911835bd3f91d110c936d8bb) 0%| | 0/10 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/transformers/models/rag/retrieval_rag.py", line 425, in from_pretrained return cls( File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/transformers/models/rag/retrieval_rag.py", line 387, in __init__ self.init_retrieval() File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/transformers/models/rag/retrieval_rag.py", line 458, in init_retrieval self.index.init_index() File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/transformers/models/rag/retrieval_rag.py", line 284, in init_index self.dataset = load_dataset( File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/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 "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/builder.py", line 734, in as_dataset datasets = utils.map_nested( File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/utils/py_utils.py", line 195, in map_nested return function(data_struct) File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/builder.py", line 769, in _build_single_dataset post_processed = self._post_process(ds, resources_paths) File "/Users/sergey_mkrtchyan/.cache/huggingface/modules/datasets_modules/datasets/wiki_dpr/8a97e0f4fa5bc46e179474db6a61b09d5d2419d2911835bd3f91d110c936d8bb/wiki_dpr.py", line 205, in _post_process dataset.add_faiss_index("embeddings", custom_index=index) File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/arrow_dataset.py", line 2516, in add_faiss_index super().add_faiss_index( File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/search.py", line 416, in add_faiss_index faiss_index.add_vectors(self, column=column, train_size=train_size, faiss_verbose=faiss_verbose) File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/search.py", line 281, in add_vectors self.faiss_index.add(vecs) File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/faiss/__init__.py", line 104, in replacement_add self.add_c(n, swig_ptr(x)) File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/faiss/swigfaiss.py", line 3263, in add return _swigfaiss.IndexHNSW_add(self, n, x) RuntimeError: Error in virtual void faiss::IndexHNSW::add(faiss::Index::idx_t, const float *) at /Users/runner/work/faiss-wheels/faiss-wheels/faiss/faiss/IndexHNSW.cpp:356: Error: 'is_trained' failed >>> ``` The issue seems to be related to the scalar quantization in faiss added in this commit: 8c5220307c33f00e01c3bf7b8. Reverting it fixes the issue.
32
Loading of FAISS index fails for index_name = 'exact' Hi, It looks like loading of FAISS index now fails when using index_name = 'exact'. For example, from the RAG [model card](https://huggingface.co/facebook/rag-token-nq?fbclid=IwAR3bTfhls5U_t9DqsX2Vzb7NhtRHxJxfQ-uwFT7VuCPMZUM2AdAlKF_qkI8#usage). Running `transformers==4.3.2` and datasets installed from source on latest `master` branch. ```bash (venv) sergey_mkrtchyan datasets (master) $ python Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from transformers import RagTokenizer, RagRetriever, RagTokenForGeneration >>> tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq") >>> retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=True) Using custom data configuration dummy.psgs_w100.nq.no_index-dummy=True,with_index=False Reusing dataset wiki_dpr (/Users/sergey_mkrtchyan/.cache/huggingface/datasets/wiki_dpr/dummy.psgs_w100.nq.no_index-dummy=True,with_index=False/0.0.0/8a97e0f4fa5bc46e179474db6a61b09d5d2419d2911835bd3f91d110c936d8bb) Using custom data configuration dummy.psgs_w100.nq.exact-50b6cda57ff32ab4 Reusing dataset wiki_dpr (/Users/sergey_mkrtchyan/.cache/huggingface/datasets/wiki_dpr/dummy.psgs_w100.nq.exact-50b6cda57ff32ab4/0.0.0/8a97e0f4fa5bc46e179474db6a61b09d5d2419d2911835bd3f91d110c936d8bb) 0%| | 0/10 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/transformers/models/rag/retrieval_rag.py", line 425, in from_pretrained return cls( File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/transformers/models/rag/retrieval_rag.py", line 387, in __init__ self.init_retrieval() File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/transformers/models/rag/retrieval_rag.py", line 458, in init_retrieval self.index.init_index() File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/transformers/models/rag/retrieval_rag.py", line 284, in init_index self.dataset = load_dataset( File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/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 "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/builder.py", line 734, in as_dataset datasets = utils.map_nested( File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/utils/py_utils.py", line 195, in map_nested return function(data_struct) File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/builder.py", line 769, in _build_single_dataset post_processed = self._post_process(ds, resources_paths) File "/Users/sergey_mkrtchyan/.cache/huggingface/modules/datasets_modules/datasets/wiki_dpr/8a97e0f4fa5bc46e179474db6a61b09d5d2419d2911835bd3f91d110c936d8bb/wiki_dpr.py", line 205, in _post_process dataset.add_faiss_index("embeddings", custom_index=index) File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/arrow_dataset.py", line 2516, in add_faiss_index super().add_faiss_index( File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/search.py", line 416, in add_faiss_index faiss_index.add_vectors(self, column=column, train_size=train_size, faiss_verbose=faiss_verbose) File "/Users/sergey_mkrtchyan/workspace/huggingface/datasets/src/datasets/search.py", line 281, in add_vectors self.faiss_index.add(vecs) File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/faiss/__init__.py", line 104, in replacement_add self.add_c(n, swig_ptr(x)) File "/Users/sergey_mkrtchyan/workspace/cformers/venv/lib/python3.8/site-packages/faiss/swigfaiss.py", line 3263, in add return _swigfaiss.IndexHNSW_add(self, n, x) RuntimeError: Error in virtual void faiss::IndexHNSW::add(faiss::Index::idx_t, const float *) at /Users/runner/work/faiss-wheels/faiss-wheels/faiss/faiss/IndexHNSW.cpp:356: Error: 'is_trained' failed >>> ``` The issue seems to be related to the scalar quantization in faiss added in this commit: 8c5220307c33f00e01c3bf7b8. Reverting it fixes the issue. Works great 👍 I just put a minor comment on the commit, I think you meant to pass the `train_size` from the one obtained from the config. Thanks for a quick response!
[ -0.08892602473497391, -0.11038333177566528, 0.010998383164405823, 0.05400155112147331, 0.4101669490337372, -0.05691791698336601, 0.29681292176246643, 0.25089752674102783, 0.2696114182472229, 0.19975534081459045, -0.22171977162361145, 0.13984401524066925, 0.1363164782524109, -0.13764774799346924, -0.1762496531009674, 0.2843902111053467, 0.21295803785324097, 0.1230240911245346, -0.08702000975608826, -0.10293424129486084, -0.2702941298484802, 0.20292876660823822, -0.2149685025215149, 0.21338078379631042, -0.3408917188644409, 0.4708951413631439, -0.10256482660770416, 0.151146799325943, -0.1406458467245102, -0.5798457264900208, 0.32323792576789856, -0.054223302751779556, 0.22875835001468658, 0.2792838513851166, -0.0001177264130092226, 0.19512435793876648, 0.5912722945213318, -0.0638967975974083, -0.3142659366130829, 0.09121154993772507, 0.1551291048526764, 0.25246742367744446, 0.1884162724018097, -0.11872901767492294, -0.2891574203968048, -0.27478471398353577, 0.1698509007692337, -0.06147099658846855, 0.18802519142627716, 0.2096889764070511, 0.15455405414104462, 0.11294278502464294, 0.3915560841560364, -0.2391125112771988, 0.35504308342933655, -0.43099164962768555, -0.23380637168884277, 0.4001964032649994, 0.030576001852750778, -0.05656098946928978, -0.022220145910978317, 0.09290021657943726, 0.18181800842285156, -0.02706439048051834, -0.033031951636075974, -0.14133507013320923, 0.3804669976234436, 0.08403187990188599, 0.2681780755519867, 0.12124225497245789, 0.2935321033000946, -0.03110496699810028, -0.44435107707977295, 0.03530697524547577, 0.14016282558441162, 0.09865184128284454, 0.21896430850028992, -0.40581876039505005, 0.09525608271360397, 0.2862180769443512, 0.08060295879840851, 0.019483178853988647, 0.05607326328754425, 0.2368137687444687, -0.0019366666674613953, 0.390317440032959, -0.12974396347999573, 0.09792450070381165, 0.07649090886116028, -0.21083687245845795, -0.21444487571716309, 0.09501917660236359, -0.27286380529403687, -0.02253606915473938, -0.6444883346557617, 0.11607863008975983, 0.05128072574734688, -0.21593467891216278, 0.035299502313137054, 0.04240098223090172, -0.27093076705932617, 0.29066115617752075, 0.1008521318435669, 0.03800208866596222, -0.030545156449079514, 0.02338932454586029, -0.001371564343571663, 0.006833657622337341, 0.1125110536813736, 0.004487901926040649, -0.15290482342243195, -0.05142616108059883, -0.27551543712615967, -0.05406481772661209, -0.6907647848129272, -0.3722566068172455, -0.014571841806173325, -0.28114044666290283, -0.4073476791381836, -0.08679376542568207, -0.24716195464134216, 0.128956139087677, 0.2523563802242279, 0.7027878761291504, 0.048568036407232285, -0.07921919226646423, 0.02723502367734909, 0.16439692676067352, -0.13524986803531647, 0.16393697261810303, -0.22569501399993896, -0.30652695894241333, -0.20858535170555115, -0.022372737526893616, 0.34250420331954956, -0.27232518792152405, 0.2192727029323578, 0.08674846589565277, -0.03164807707071304, 0.0625712051987648, -0.23854665458202362, -0.0671573355793953, 0.18520203232765198, 0.3195192813873291, -0.27936744689941406, 0.15585339069366455, 0.23476770520210266, 0.0704575628042221, 0.02920389175415039, -0.05646691098809242, -0.1806444674730301, -0.3224925398826599, 0.11471307277679443, 0.1720333993434906, -0.04859943687915802, -0.12307435274124146, 0.3416305184364319, 0.027854643762111664, -0.16015298664569855, 0.18213754892349243, -0.017321564257144928, -0.21018193662166595, -0.23647840321063995, 0.011875856667757034, 0.4402867555618286, 0.3116515874862671, -0.10297434777021408, -0.23424440622329712, -0.05697883293032646, 0.01644723117351532, -0.01924934983253479, 0.145180806517601, -0.18250495195388794, 0.10645617544651031, -0.35303443670272827, 0.048039913177490234, 0.24760735034942627, -0.21629415452480316, -0.09426180273294449, 0.04344457387924194, 0.0055870115756988525, 0.04869303107261658, 0.0026496872305870056, -0.23835699260234833, -0.07991965115070343, 0.10826681554317474, 0.19979099929332733, 0.15651290118694305, 0.20767438411712646, -0.16752293705940247, -0.29410046339035034, -0.454654335975647, 0.09839412569999695, 0.32059991359710693, 0.027210336178541183, 0.047255739569664, 0.021818455308675766, -0.11549530923366547, 0.37804925441741943, -0.15947285294532776, -0.05104682222008705, 0.11092423647642136, 0.31475600600242615, 0.22524581849575043, 0.5496628284454346, -0.11971071362495422, -0.02830963209271431, 0.4137914776802063, -0.17434626817703247, 0.0491158701479435, 0.02250351384282112, 0.0811980813741684, -0.3368808925151825, 0.06250755488872528, -0.08267658948898315, -0.054084111005067825, 0.0509437620639801, 0.10314289480447769, 0.16822300851345062, -0.22003895044326782, -0.21044740080833435, 0.24212902784347534, -0.37462353706359863, 0.21274134516716003, -0.2988704741001129, 0.13589751720428467, -0.13103392720222473, -0.3043181002140045, -0.025958962738513947, 0.12803538143634796, 0.33518487215042114, -0.2089739739894867, -0.14389568567276, 0.35375797748565674, 0.1275338977575302, -0.5363498330116272, 0.38859978318214417, -0.071189746260643, -0.22058232128620148, -0.2585742473602295, -0.08192509412765503, 0.4026679992675781, 0.09929929673671722, 0.028766989707946777, -0.12174876034259796, 0.46082624793052673, -0.016567183658480644, 0.24041534960269928, -0.012543164193630219, -0.1394442319869995, 0.3590925633907318, -0.10188914835453033, 0.02470649778842926, -0.26125264167785645, 0.17619538307189941, 0.11610950529575348, 0.1975637525320053, -0.23530074954032898, 0.02910684049129486, -0.10790160298347473, -0.1206866055727005, 0.1251833587884903, -0.08909892290830612, 0.1797405183315277, -0.19338089227676392, -0.018068678677082062, -0.16058693826198578, -0.4791117310523987, 0.2939760386943817, 0.21137037873268127, -0.20337380468845367, -0.24456647038459778, -0.04333972930908203, -0.25110775232315063, 0.447420597076416, 0.07028596103191376, -0.17687653005123138, 0.1726856231689453, 0.175490140914917, -0.2408616840839386, -0.45164626836776733, -0.14352577924728394, 0.13256625831127167, -0.012712535448372364, -0.31387776136398315, 0.16838091611862183, -0.05728553608059883, 0.0419999361038208, -0.041476134210824966, -0.26501622796058655, -0.3554299473762512, -0.19075658917427063, 0.1494046449661255, 0.026053842157125473, -0.06746464222669601, 0.40983158349990845, -0.15870028734207153, -0.02342355251312256, 0.13724341988563538, -0.2612147331237793, -0.32811439037323, -0.17549225687980652, -0.3357376754283905, 0.024365141987800598, -0.1582144796848297, -0.13490119576454163, -0.0027410760521888733, 0.04133901000022888, -0.11115211248397827, -0.40482237935066223, -0.2892027199268341, 0.27773064374923706, -0.053099967539310455, 0.1911066621541977, 0.051584020256996155, -0.12220866978168488, -0.05274639651179314, -0.022439859807491302, 0.34872522950172424, -0.2121926248073578, 0.02211017906665802, 0.10770878195762634, -0.09219697117805481, -0.0403694324195385, -0.15904894471168518, -0.07690521329641342, 0.05465520918369293, -0.25522249937057495, 0.2541983425617218, -0.09823814034461975, 0.009238976053893566, 0.16700930893421173, 0.09501810371875763, 0.10376925766468048, -0.2616455554962158, 0.003143254667520523, -0.3037979006767273, -0.08570316433906555, 0.32099661231040955, 0.023990537971258163, -0.27244463562965393, -0.06108231097459793, 0.0665891170501709, -0.272833913564682, 0.2826734781265259, -0.08030630648136139, -0.2875353693962097, -0.0009767543524503708, 0.21178171038627625, 0.1499062478542328, 0.18719132244586945, -0.07164119929075241, -0.2176821231842041, -0.18217304348945618, -0.07797584682703018, -0.057283271104097366, 0.35503289103507996, -0.18956434726715088, 0.22873790562152863, 0.015035320073366165, -0.06142747402191162, -0.3030911684036255, 0.6028997898101807, 0.07934655249118805, -0.24629522860050201, 0.41745880246162415, -0.056492455303668976, 0.22198078036308289, -0.150277242064476, -0.1705416440963745, 0.23742300271987915, 0.011255934834480286, 0.22989614307880402, 0.21185725927352905, -0.039245545864105225, 0.18081578612327576, 0.06559309363365173, 0.22123196721076965, -0.06330668926239014, -0.2813164293766022, 0.1477482169866562, 0.21139472723007202, 0.1398191750049591, 0.021609969437122345, 0.28036683797836304, -0.13127638399600983, -0.044824592769145966, 0.4365178048610687, 0.41243594884872437, -0.09380608797073364, -0.05845807492733002, -0.07345452159643173, -0.0941995307803154, -0.21264556050300598, 0.34667545557022095, -0.04203096777200699, 0.6930010914802551, -0.010785810649394989, 0.009975701570510864, 0.31167811155319214, -0.014864388853311539, 1.0188850164413452, 0.014352397993206978, 0.17961736023426056, 0.4301276206970215, 0.09609974920749664, -0.5665027499198914, -0.1661122739315033, -0.10352255403995514, -0.13216182589530945, 0.6401349306106567, 0.519868791103363, -0.31441909074783325, -0.36710217595100403, 0.17035266757011414, -0.01473560556769371, -0.12918907403945923, -0.45546650886535645, -0.430573970079422, 0.08002156019210815, -0.13211524486541748, 0.04716924577951431, -0.06325315684080124, 0.25333335995674133, 0.06124997138977051, 0.3186870515346527, -0.5520008206367493, -0.15950864553451538, -0.01621057838201523, 0.1304314285516739, 0.20889613032341003, -0.0035234391689300537, 0.4091516137123108, 0.41799336671829224, 0.2740355432033539, -0.0023828912526369095, 0.5052620768547058, -0.18624238669872284, -0.3868595361709595, 0.32317453622817993, 0.18951287865638733, -0.10252271592617035, 0.4031800925731659, -0.124461330473423, 0.05199555307626724, -0.19017332792282104, 0.10658035427331924, -0.1335677206516266, 0.17490938305854797, 0.07331342250108719, 0.021077558398246765, -0.038768619298934937, -0.38672205805778503, 0.641542375087738, -0.12388072907924652, -0.028198696672916412, 0.13706690073013306, 0.5084987282752991, -0.2649712562561035, 0.877435028553009, -0.1680254489183426, 0.7281210422515869, -0.14134612679481506, -0.052782244980335236, 0.2257828414440155, -0.13206933438777924, 0.20031289756298065, -0.4170899987220764, 0.12784522771835327, -0.5279294848442078, 0.011558383703231812, 0.1474643051624298, -0.022725127637386322, 0.07280609011650085, 0.29218971729278564, 0.013980701565742493, 0.25917407870292664, 0.01572255790233612, 0.2496103048324585, 0.09987908601760864, 0.4061022400856018, 0.16013720631599426, -0.27434512972831726, -0.26260337233543396, 0.12740689516067505, 0.2499644011259079, 0.3748719394207001, 0.08175074309110641, -0.12565669417381287, -0.15835216641426086, 0.07804146409034729, -0.1681935042142868, 0.4189150333404541, -0.208664670586586, 0.25260698795318604, 0.4359015226364136, -0.08813411742448807, 0.08524708449840546, -0.38598665595054626, 0.6924886703491211, -0.013518918305635452, -0.28343665599823, 0.47457072138786316, 0.03310949355363846, -0.1972593516111374, -0.1850915253162384, -0.1159423217177391, 0.05726145952939987, 0.12825825810432434, -0.14699184894561768, -0.11055439710617065, -0.06102118641138077, -0.12732304632663727, -0.1444336622953415, -0.05811542645096779, 0.017422690987586975, -0.33847111463546753, 0.002989158034324646, -0.1440849006175995, 0.22181344032287598, -0.21254988014698029, 0.12554562091827393, -0.003967544063925743, -0.11568277329206467, 0.06392058730125427, -0.08380621671676636, -0.32615169882774353, -0.05048135295510292, 0.4979912042617798, -0.30484309792518616, 0.033497266471385956, 0.4874071180820465, -0.0755843073129654, -0.22452479600906372, -0.07113854587078094, -0.5798051357269287, 0.4502626657485962, -0.44995567202568054, -0.06046251207590103, 0.23411774635314941, -0.3475359082221985, 0.2754637598991394, -0.06263020634651184, 0.15489482879638672, -0.3116756081581116, -0.18797972798347473, -0.18319016695022583, -0.09422620385885239, 0.08862054347991943, 0.07544000446796417, 0.2557687759399414, -0.008149437606334686, 0.16184131801128387, -0.2867749035358429, 0.014016112312674522, -0.2770027816295624, 0.10757694393396378, -0.07219366729259491, 0.2139977365732193, -0.2397187501192093, -0.4832121729850769, 0.2989865243434906, -0.026596199721097946, 0.1560487151145935, 0.08450158685445786, -0.19049745798110962, -0.15589085221290588, -0.22897081077098846, 0.11602341383695602, 0.06900355219841003, -0.11235709488391876, -0.4639090895652771, -0.05164617300033569, 0.0010403729975223541, -0.1568174660205841, 0.22379732131958008, 0.23947924375534058, -0.08706016838550568, 0.021417487412691116, 0.17097821831703186, -0.11722704768180847, -0.07646992057561874, 0.21975019574165344, -0.032182477414608, 0.33178073167800903, 0.3021886646747589, 0.2104402631521225, -0.6520292162895203, 0.06600354611873627, -0.11955747753381729, 0.16226787865161896, 0.026133054867386818, -0.04475769028067589, 0.11731547117233276, -0.2683812081813812, -0.46492519974708557, 0.07054310292005539, 0.12184584140777588, 0.5309672951698303, -0.18703891336917877, -0.404763400554657, 0.16664978861808777, 0.1591292917728424, -0.2034614533185959, -0.16168439388275146, 0.07302534580230713, -0.1118106096982956, 0.14554759860038757, 0.03496628999710083, 0.41186705231666565, -0.3259597420692444, -0.17591097950935364, 0.10350693762302399, 0.22165881097316742, 0.31522002816200256, -0.37312328815460205, -0.019730040803551674, 0.20622944831848145, 0.061096180230379105, 0.5360979437828064, 0.09458427876234055, 0.24770277738571167, 0.6870853304862976, -0.07228308916091919, 0.1744621992111206, 0.0550849623978138, 0.2124178260564804, -0.02448122203350067, -0.27398329973220825, 0.2910194396972656, 0.32362598180770874, -0.08948548883199692, 0.014198205433785915, -0.08310303092002869, 0.36987218260765076, 0.0705716609954834, -0.1630811095237732, -0.12235958874225616, -0.004594495519995689, -0.06483888626098633, -0.4671502709388733, 0.058506548404693604, -0.07930783182382584, -0.24045151472091675, 0.11372362077236176, -0.2591261565685272, -0.09388615190982819, -0.023094195872545242, 0.1891687959432602, -0.0880204439163208, -0.3320332467556, -0.5754649043083191, 0.27902084589004517, 0.33008435368537903, -0.2184935361146927, 0.1983409821987152, 0.22575387358665466, -0.228255033493042, 0.32019275426864624, 0.0007114280015230179, 0.44080400466918945, 0.07080352306365967, -0.07254718244075775, -0.053132735192775726, 0.003045845776796341, 0.010416306555271149, -0.09532894194126129, 0.06627481430768967, 0.005489818751811981, -0.27816542983055115, 0.22912465035915375, 0.08663100749254227, -0.21128292381763458, -0.6455813050270081, -0.08919106423854828, 0.44234001636505127, -0.08445309102535248, 0.11595430970191956, 0.1088770180940628, 0.23608537018299103, -0.14587867259979248, 0.01943165808916092, -0.4001847505569458, 0.32572996616363525, 0.30398547649383545, -0.051260873675346375, 0.09373030811548233, 0.2689380347728729, 0.06311369687318802, -0.05528512969613075, 0.26250362396240234, 0.29406285285949707, 0.062360964715480804, -0.406815767288208, -0.17300808429718018, -0.2244134545326233, 0.23283925652503967, -0.10309659689664841, 0.3240926265716553, 0.4435865879058838, 0.3735139071941376, -0.0393698550760746, -0.16750219464302063, 0.14119015634059906, -0.01994398981332779, 0.24014151096343994, 0.3795910179615021, -0.21412314474582672, 0.30252236127853394, -0.29221993684768677, 0.04902780055999756, 0.047159262001514435, -0.3806377649307251, 0.036353304982185364, -0.02763339877128601, -0.051583681255578995, -0.0018894672393798828, -0.2796107530593872, 0.23605947196483612, -0.3397529721260071, 0.3566702902317047, -0.020469291135668755, 0.09250859916210175, -0.041174013167619705, -0.21936160326004028, -0.3757416009902954, -0.362915962934494, -0.14480729401111603, 0.037005893886089325, -0.21651963889598846, -0.048719633370637894, -0.060093287378549576, -0.20906919240951538, -0.23124092817306519, 0.33260872960090637, 0.02241411805152893, -0.14256034791469574, -0.16463828086853027, 0.1618475466966629, -0.17546969652175903, 0.22523534297943115, -0.1536870002746582, 0.4404304027557373, 0.12067025899887085, 0.30568191409111023, -0.28308045864105225, -0.19846874475479126, 0.7958438396453857, -0.3033995032310486, -0.23394185304641724, -0.21639977395534515, 0.371120423078537, 0.18361417949199677, 0.23057931661605835, -0.6851296424865723, 0.23225978016853333, 0.27579939365386963, 0.14512325823307037, -0.2586947977542877, -0.10750716924667358, 0.29225510358810425, 0.08343996107578278, -0.30893367528915405, -0.04863401874899864, 0.43742018938064575, 0.0018164366483688354, -0.009878940880298615, -0.07168885320425034 ]
https://github.com/huggingface/datasets/issues/1940
Thanks for the report ! Currently we don't have a way to let the user easily disable this behavior. However I agree that we should support stateful processing functions, ideally by removing `does_function_return_dict`. We needed this function in order to know whether the `map` functions needs to write data or not. if `does_function_return_dict` returns False then we don't write anything. Instead of checking the output of the processing function outside of the for loop that iterates through the dataset to process it, we can check the output of the first processed example and at that point decide if we need to write data or not. Therefore it's definitely possible to fix this unwanted behavior, any contribution going into this direction is welcome :)
Side effect when filtering data due to `does_function_return_dict` call in `Dataset.map()`
Hi there! In my codebase I have a function to filter rows in a dataset, selecting only a certain number of examples per class. The function passes a extra argument to maintain a counter of the number of dataset rows/examples already selected per each class, which are the ones I want to keep in the end: ```python def fill_train_examples_per_class(example, per_class_limit: int, counter: collections.Counter): label = int(example['label']) current_counter = counter.get(label, 0) if current_counter < per_class_limit: counter[label] = current_counter + 1 return True return False ``` At some point I invoke it through the `Dataset.filter()` method in the `arrow_dataset.py` module like this: ```python ... kwargs = {"per_class_limit": train_examples_per_class_limit, "counter": Counter()} datasets['train'] = datasets['train'].filter(fill_train_examples_per_class, num_proc=1, fn_kwargs=kwargs) ... ``` The problem is that, passing a stateful container (the counter,) provokes a side effect in the new filtered dataset obtained. This is due to the fact that at some point in `filter()`, the `map()`'s function `does_function_return_dict` is invoked in line [1290](https://github.com/huggingface/datasets/blob/96578adface7e4bc1f3e8bafbac920d72ca1ca60/src/datasets/arrow_dataset.py#L1290). When this occurs, the state of the counter is initially modified by the effects of the function call on the 1 or 2 rows selected in lines 1288 and 1289 of the same file (which are marked as `test_inputs` & `test_indices` respectively in lines 1288 and 1289. This happens out of the control of the user (which for example can't reset the state of the counter before continuing the execution,) provoking in the end an undesired side effect in the results obtained. In my case, the resulting dataset -despite of the counter results are ok- lacks an instance of the classes 0 and 1 (which happen to be the classes of the first two examples of my dataset.) The rest of the classes I have in my dataset, contain the right number of examples as they were not affected by the effects of `does_function_return_dict` call. I've debugged my code extensively and made a workaround myself hardcoding the necessary stuff (basically putting `update_data=True` in line 1290,) and then I obtain the results I expected without the side effect. Is there a way to avoid that call to `does_function_return_dict` in map()'s line 1290 ? (e.g. extracting the required information that `does_function_return_dict` returns without making the testing calls to the user function on dataset rows 0 & 1) Thanks in advance, Francisco Perez-Sorrosal
123
Side effect when filtering data due to `does_function_return_dict` call in `Dataset.map()` Hi there! In my codebase I have a function to filter rows in a dataset, selecting only a certain number of examples per class. The function passes a extra argument to maintain a counter of the number of dataset rows/examples already selected per each class, which are the ones I want to keep in the end: ```python def fill_train_examples_per_class(example, per_class_limit: int, counter: collections.Counter): label = int(example['label']) current_counter = counter.get(label, 0) if current_counter < per_class_limit: counter[label] = current_counter + 1 return True return False ``` At some point I invoke it through the `Dataset.filter()` method in the `arrow_dataset.py` module like this: ```python ... kwargs = {"per_class_limit": train_examples_per_class_limit, "counter": Counter()} datasets['train'] = datasets['train'].filter(fill_train_examples_per_class, num_proc=1, fn_kwargs=kwargs) ... ``` The problem is that, passing a stateful container (the counter,) provokes a side effect in the new filtered dataset obtained. This is due to the fact that at some point in `filter()`, the `map()`'s function `does_function_return_dict` is invoked in line [1290](https://github.com/huggingface/datasets/blob/96578adface7e4bc1f3e8bafbac920d72ca1ca60/src/datasets/arrow_dataset.py#L1290). When this occurs, the state of the counter is initially modified by the effects of the function call on the 1 or 2 rows selected in lines 1288 and 1289 of the same file (which are marked as `test_inputs` & `test_indices` respectively in lines 1288 and 1289. This happens out of the control of the user (which for example can't reset the state of the counter before continuing the execution,) provoking in the end an undesired side effect in the results obtained. In my case, the resulting dataset -despite of the counter results are ok- lacks an instance of the classes 0 and 1 (which happen to be the classes of the first two examples of my dataset.) The rest of the classes I have in my dataset, contain the right number of examples as they were not affected by the effects of `does_function_return_dict` call. I've debugged my code extensively and made a workaround myself hardcoding the necessary stuff (basically putting `update_data=True` in line 1290,) and then I obtain the results I expected without the side effect. Is there a way to avoid that call to `does_function_return_dict` in map()'s line 1290 ? (e.g. extracting the required information that `does_function_return_dict` returns without making the testing calls to the user function on dataset rows 0 & 1) Thanks in advance, Francisco Perez-Sorrosal Thanks for the report ! Currently we don't have a way to let the user easily disable this behavior. However I agree that we should support stateful processing functions, ideally by removing `does_function_return_dict`. We needed this function in order to know whether the `map` functions needs to write data or not. if `does_function_return_dict` returns False then we don't write anything. Instead of checking the output of the processing function outside of the for loop that iterates through the dataset to process it, we can check the output of the first processed example and at that point decide if we need to write data or not. Therefore it's definitely possible to fix this unwanted behavior, any contribution going into this direction is welcome :)
[ -0.42141175270080566, 0.028957799077033997, -0.15750375390052795, 0.018457571044564247, -0.08442586660385132, -0.32018494606018066, 0.20511837303638458, 0.1946578323841095, 0.2660331130027771, 0.12066253274679184, 0.20738402009010315, 0.5199101567268372, -0.07889807224273682, 0.09672678261995316, 0.030145734548568726, 0.22624966502189636, 0.16681422293186188, -0.03250066563487053, -0.18960878252983093, -0.12377102673053741, -0.20703065395355225, -0.05538354814052582, -0.23519480228424072, 0.029467787593603134, 0.112200066447258, -0.20669330656528473, 0.2833380103111267, 0.08649900555610657, 0.1280571073293686, -0.2339864820241928, 0.37977591156959534, 0.2778170704841614, -0.38328438997268677, 0.48397231101989746, -0.00011909074237337336, 0.03430941700935364, 0.12991441786289215, -0.08027108013629913, -0.23564878106117249, -0.4382510185241699, -0.24813659489154816, 0.007895439863204956, 0.1348446011543274, -0.19252751767635345, 0.23548690974712372, -0.1303694248199463, -0.41929078102111816, -0.3500102758407593, 0.5882075428962708, 0.2834120988845825, 0.10798829793930054, 0.10530652850866318, -0.3432338833808899, 0.11238931119441986, 0.4360823929309845, 0.31567007303237915, 0.14103549718856812, 0.3769837021827698, 0.22261056303977966, -0.4172934293746948, -0.08979689329862595, 0.6554316282272339, -0.4193488359451294, 0.11998659372329712, -0.1365879327058792, 0.11721314489841461, 0.1939309537410736, 0.012664781883358955, 0.32338669896125793, 0.17256417870521545, 0.10556919872760773, -0.324895441532135, -0.14595744013786316, -0.420864462852478, -0.10077980160713196, 0.0005765557289123535, 0.07509736716747284, -0.28868845105171204, -0.20217835903167725, -0.12066507339477539, -0.12083315849304199, -0.012387067079544067, -0.020027153193950653, 0.16814863681793213, -0.21690674126148224, 0.18554289638996124, 0.0811171904206276, 0.26317837834358215, 0.08178088068962097, -0.051453202962875366, 0.20905272662639618, -0.36128509044647217, 0.20608383417129517, 0.21473434567451477, 0.11961423605680466, 0.07329581677913666, 0.37681844830513, -0.4789852797985077, 0.12412336468696594, -0.13665978610515594, 0.11461815237998962, 0.17474031448364258, -0.25791385769844055, 0.23018386960029602, 0.42530107498168945, 0.08500036597251892, -0.19792583584785461, 0.6640275716781616, 0.17299088835716248, -0.10684923827648163, -0.003735750913619995, 0.0037670666351914406, 0.2818766236305237, 0.026930104941129684, 0.2999613285064697, -0.13950476050376892, 0.1103355884552002, -0.1578749716281891, -0.23584279417991638, 0.4175381362438202, -0.3590547740459442, 0.2780916094779968, 0.09078466147184372, 0.09667159616947174, 0.3004826307296753, 0.4036150872707367, 0.16829849779605865, -0.1376376748085022, 0.0033885613083839417, 0.5379951596260071, -0.10661500692367554, -0.3244779407978058, -0.2710620164871216, -0.07709378004074097, -0.011990509927272797, 0.07865931838750839, 0.016985520720481873, 0.11045417189598083, -0.010913077741861343, -0.054171450436115265, 0.07578222453594208, -0.23633334040641785, 0.7913025617599487, 0.41185110807418823, -0.34805038571357727, 0.1737433820962906, 0.23742687702178955, -0.22436752915382385, -0.12604056298732758, 0.248386949300766, -0.05469140782952309, -0.19736608862876892, 0.1852191537618637, 0.11471347510814667, 0.005986370146274567, 0.3745831847190857, -0.016088753938674927, 0.1991489827632904, 0.4185601770877838, -0.4719986915588379, 0.39220961928367615, -0.5384453535079956, -0.3335292935371399, -0.21725645661354065, 0.12582074105739594, 0.5259783864021301, -0.8197146058082581, -0.12140586227178574, -0.24288231134414673, -0.11783448606729507, 0.07610579580068588, 0.17403154075145721, -0.2996687889099121, -0.0011383295059204102, -0.22554105520248413, 0.13410259783267975, 0.30714595317840576, -0.4831514358520508, -0.7054835557937622, 0.09820586442947388, -0.2767549157142639, 0.4992040991783142, -0.14603908360004425, 0.02130637690424919, 0.3568471670150757, -0.008165374398231506, 0.32673323154449463, 0.17965646088123322, -0.06690311431884766, 0.1762676239013672, 0.020326904952526093, 0.1293671429157257, 0.32438740134239197, -0.09543121606111526, -0.04371301457285881, -0.07708798348903656, -0.07497081160545349, -0.4875873029232025, 0.28106045722961426, 0.08210860937833786, 0.19246459007263184, -0.3172641098499298, 0.4052567183971405, 0.18986855447292328, 0.007957004010677338, -0.2883605360984802, -0.29155904054641724, 0.03083651512861252, 0.0936339721083641, -0.249001607298851, -0.20508193969726562, -0.15705722570419312, -0.13896805047988892, 0.391435444355011, -0.055880118161439896, 0.15721625089645386, 0.11448593437671661, -0.04181506484746933, 0.005538903176784515, 0.06280462443828583, 0.08529049158096313, 0.08044838160276413, -0.40575289726257324, -0.025778483599424362, 0.09386282414197922, 0.23856490850448608, 0.33904966711997986, -0.2808123230934143, -0.23513157665729523, 0.13477668166160583, 0.022655334323644638, -0.04785461351275444, -0.2866382896900177, 0.21921943128108978, 0.5091302990913391, -0.03453740105032921, -0.2714928090572357, 0.08000374585390091, -0.1027274951338768, 0.4487372636795044, -0.008444846607744694, 0.3058343529701233, 0.19038617610931396, -0.27053654193878174, -0.09976421296596527, 0.4954224228858948, 0.07653097808361053, 0.49168866872787476, -0.16451239585876465, 0.1364523470401764, 0.2814357578754425, 0.27634918689727783, -0.3366053104400635, -0.5444403290748596, -0.26323020458221436, -0.08055014908313751, 0.1870289444923401, -0.10619474202394485, -0.15596981346607208, -0.03802049905061722, 0.08435666561126709, -0.03689011186361313, 0.13838347792625427, 0.10385455191135406, -0.08232424408197403, -0.000345379114151001, 0.4746934473514557, 0.4552517831325531, 0.5759056210517883, 0.05551842227578163, -0.14084464311599731, 0.027664517983794212, -0.0354824960231781, -0.0613747164607048, 0.11174451559782028, 0.24673353135585785, 0.16282695531845093, 0.3262064754962921, 0.39102891087532043, -0.10812245309352875, -0.2600620985031128, -0.11211927980184555, -0.11884856224060059, -0.13792172074317932, -0.2318263053894043, 0.3826013505458832, -0.11688071489334106, -0.28173819184303284, -0.2118339240550995, -0.1495019942522049, 0.051916226744651794, -0.1294425129890442, -0.0069109355099499226, 0.40194207429885864, -0.37458860874176025, 0.0674525573849678, -0.07897119969129562, 0.3998449444770813, 0.15334968268871307, -0.4363390803337097, 0.14520016312599182, -0.3576052784919739, -0.14954574406147003, -0.00522996112704277, 0.0020300038158893585, 0.005977757275104523, 0.44752776622772217, 0.28232482075691223, -0.2104867547750473, 0.06307066977024078, -0.10929760336875916, 0.10171758383512497, -0.007605558726936579, -0.008098242804408073, 0.33187735080718994, 0.018759608268737793, -0.21667435765266418, 0.07014811784029007, 0.04844576492905617, 0.02425330877304077, -0.14985978603363037, -0.11062197387218475, 0.01910221576690674, 0.23511192202568054, -0.28891217708587646, 0.19243310391902924, -0.17239618301391602, -0.11958785355091095, 0.11220666021108627, -0.13099798560142517, 0.2291351705789566, 0.12438181042671204, 0.22224313020706177, 0.068009153008461, -0.007305551320314407, -0.2129322588443756, -0.4279070198535919, -0.013477623462677002, -0.17854361236095428, -0.1449950635433197, 0.07111485302448273, -0.24636758863925934, -0.21236900985240936, 0.14317137002944946, 0.5977714657783508, -0.5670164227485657, -0.198012575507164, 0.16903135180473328, 0.28045958280563354, -0.18543069064617157, 0.004356026649475098, 0.3448857069015503, 0.18388108909130096, -0.08021972328424454, -0.32174795866012573, -0.06448722630739212, 0.19702482223510742, 0.31259098649024963, 0.02312343567609787, 0.07976888120174408, 0.10336071252822876, 0.01538502424955368, 0.684320867061615, 0.27355557680130005, -0.14411422610282898, -0.0708046406507492, 0.2465561479330063, 0.2138896882534027, -0.32590141892433167, -0.07745198905467987, -0.34776943922042847, -0.23371098935604095, -0.19156542420387268, -0.12380851805210114, 0.04836618900299072, -0.2100284993648529, 0.1475333422422409, -0.11172163486480713, -0.2634606957435608, -0.4573829770088196, 0.2509598433971405, -0.26072391867637634, 0.3891143798828125, 0.004557348787784576, -0.03903455287218094, -0.3957882523536682, 0.09637507796287537, -0.08570272475481033, -0.20232154428958893, 0.39294883608818054, -0.215895414352417, -0.21319852769374847, -0.04445808753371239, 0.08769126236438751, 0.2771395742893219, 0.3724202811717987, 0.29096701741218567, -0.00696437805891037, -0.1946190595626831, -0.007531892508268356, 0.19208888709545135, 0.9212180972099304, -0.1532571017742157, 0.11456940323114395, 0.3606545925140381, -0.1634962558746338, -0.4281955063343048, -0.028870169073343277, -0.38118332624435425, 0.30402958393096924, 0.1288411021232605, 0.13621844351291656, -0.11254126578569412, 0.08106543123722076, -0.17523418366909027, 0.180023655295372, -0.23050712049007416, -0.029153920710086823, -0.045844949781894684, 0.043069735169410706, -0.24186982214450836, 0.41409608721733093, -0.04265294224023819, -0.34115099906921387, -0.027089545503258705, -0.30107468366622925, 0.14189350605010986, -0.27887362241744995, -0.1683323085308075, 0.02517755702137947, 0.32583051919937134, 0.028141655027866364, -0.033844899386167526, 0.42149052023887634, -0.04458034783601761, 0.3595966398715973, 0.20971046388149261, -0.184239000082016, -0.09934668987989426, -0.33857262134552, 0.2808579206466675, 0.08849605917930603, 0.6351358294487, -0.06621281057596207, 0.2925786077976227, 0.05392036586999893, 0.03404588997364044, 0.04684287682175636, 0.05284551531076431, 0.10877671092748642, 0.32280629873275757, 0.03725831210613251, -0.5029550790786743, 0.2584247589111328, 0.11584490537643433, -0.49889272451400757, 0.5093587040901184, 0.07071617245674133, -0.45022767782211304, 0.5003752112388611, 0.09674492478370667, 0.843786358833313, 0.3119133710861206, 0.16584767401218414, 0.22601255774497986, -0.17178668081760406, 0.08842066675424576, 0.25259697437286377, -0.05571012198925018, 0.11901452392339706, 0.15275633335113525, -0.03581980615854263, -0.29018428921699524, -0.020385198295116425, -0.10749274492263794, 0.04653024673461914, 0.07965309917926788, -0.5716615319252014, 0.3465051054954529, -0.12529483437538147, -0.2016383707523346, 0.28138241171836853, -0.36337798833847046, -0.07591862231492996, 0.11834478378295898, 0.15587440133094788, 0.007276345044374466, -0.11744870990514755, 0.10390365123748779, 0.03163113445043564, -0.10715378075838089, -0.17517252266407013, -0.29206180572509766, -0.41941338777542114, 0.40332871675491333, 0.07588987052440643, -0.4115694761276245, -0.05966075509786606, -0.020250268280506134, -0.43616217374801636, 0.27008697390556335, 0.053709179162979126, -0.0371725969016552, 0.49894723296165466, 0.5238935947418213, 0.10076649487018585, -0.26950007677078247, 0.4783496856689453, 0.18402069807052612, -0.28077051043510437, 0.006187332794070244, -0.08334837853908539, 0.021481618285179138, -0.11238012462854385, 0.09611306339502335, 0.375864714384079, -0.29282528162002563, 0.06433749198913574, 0.027196861803531647, -0.0029288530349731445, -0.10249985009431839, 0.04157868027687073, -0.07103501260280609, -0.04336889460682869, 0.2548508644104004, 0.060010164976119995, -0.035591915249824524, -0.02838042564690113, 0.219560444355011, 0.13356029987335205, 0.22230160236358643, 0.37287288904190063, -0.19034592807292938, -0.13060037791728973, -0.19041144847869873, -0.20184850692749023, 0.1169959157705307, 0.08543893694877625, 0.4244582951068878, 0.011542432010173798, -0.2601807117462158, -0.37018170952796936, 0.14873522520065308, -0.005065343342721462, 0.28736746311187744, -0.5665979385375977, -0.34183692932128906, -0.2227962166070938, 0.14224019646644592, 0.12130067497491837, 0.14613661170005798, -0.20595332980155945, 0.20341141521930695, -0.32865485548973083, 0.1982477754354477, -0.276305615901947, -0.0888119712471962, 0.07601414620876312, 0.3025520145893097, 0.07293039560317993, 0.2834869623184204, -0.2598806917667389, -0.19260931015014648, 0.0222352035343647, 0.44598889350891113, -0.24522510170936584, -0.19333422183990479, -0.013151858001947403, 0.14123375713825226, -0.030606333166360855, -0.3593328595161438, 0.048973195254802704, -0.32244980335235596, 0.18451890349388123, -0.23296934366226196, 0.45099493861198425, 0.11405879259109497, -0.08860107511281967, -0.2661247253417969, -0.072201207280159, 0.15203696489334106, 0.3301410377025604, 0.41991278529167175, -0.28250280022621155, -0.26608237624168396, -0.024581801146268845, 0.1808164119720459, 0.06540866196155548, -0.06924191117286682, -0.06781712919473648, 0.18809185922145844, 0.18252205848693848, 0.12440983951091766, 0.17349028587341309, -0.09263329207897186, -0.26102542877197266, 0.2713048458099365, 0.35505005717277527, 0.18514588475227356, -0.3361179530620575, -0.17698344588279724, 0.2839799225330353, 0.17896363139152527, -0.2347438633441925, -0.23299455642700195, -0.050818100571632385, -0.12231922149658203, 0.18500570952892303, 0.3649447560310364, -0.023766599595546722, -0.23164823651313782, -0.0074906423687934875, 0.13110287487506866, -0.05252090096473694, -0.04599178954958916, 0.19739682972431183, 0.3307223618030548, -0.06052137166261673, 0.07406976819038391, 0.20382246375083923, 0.33569610118865967, 0.14848068356513977, 0.44956889748573303, 0.3902043104171753, 0.40448760986328125, 0.2652183473110199, 0.10115363448858261, 0.010955726727843285, -0.3769710659980774, 0.1383008360862732, 0.24185428023338318, -0.6026107668876648, 0.2768875062465668, 0.25796619057655334, -0.1434611976146698, 0.038851793855428696, -0.1774977445602417, -0.15975651144981384, 0.044875286519527435, -0.25000640749931335, -0.12110352516174316, -0.0018089860677719116, -0.14621996879577637, 0.23509934544563293, -0.1145026758313179, -0.03382604941725731, -0.12580257654190063, 0.46037593483924866, -0.09141892194747925, -0.009352553635835648, -0.1481795608997345, -0.3311115801334381, -0.21725593507289886, 0.23958347737789154, -0.17054101824760437, -0.2877802550792694, 0.16753636300563812, 0.2746528089046478, -0.11727588623762131, -0.1353558748960495, 0.2621346116065979, 0.22123515605926514, -0.21208927035331726, -0.026126209646463394, -0.0590667650103569, -0.007386479526758194, -0.16099382936954498, 0.13521243631839752, 0.035655830055475235, -0.1427992284297943, 0.06981530785560608, 0.12925636768341064, -0.13090765476226807, 0.01881709136068821, 0.38505059480667114, 0.2576456069946289, -0.39666780829429626, 0.2288762480020523, -0.06538255512714386, 0.006533265113830566, -0.34229403734207153, -0.05667516961693764, 0.07176084816455841, -0.09213808178901672, 0.36329320073127747, -0.1265348494052887, 0.3559890687465668, 0.06830307841300964, 0.06756161898374557, -0.1695965826511383, 0.27546894550323486, -0.09377386420965195, 0.13425485789775848, -0.17686119675636292, -0.14776059985160828, -0.37071168422698975, -0.03241535276174545, -0.24158044159412384, -0.010143458843231201, 0.07884712517261505, -0.022221654653549194, 0.16965007781982422, 0.38572776317596436, -0.07344217598438263, -0.09604783356189728, -0.27175939083099365, -0.17860814929008484, -0.09535453468561172, -0.24099323153495789, -0.5097745656967163, -0.2365776002407074, 0.3167959451675415, -0.39363041520118713, 0.044606465846300125, -0.2630876302719116, 0.12877508997917175, 0.1057693362236023, 0.2196849286556244, -0.13275261223316193, 0.21460764110088348, 0.34506189823150635, 0.40040087699890137, 0.06164940819144249, 0.05663996934890747, 0.1534951776266098, 0.058425482362508774, -0.06497613340616226, -0.31194114685058594, 0.1824389398097992, -0.22259312868118286, 0.3479801416397095, -0.34023404121398926, -0.23437771201133728, 0.13010439276695251, -0.2715992033481598, 0.2384701669216156, -0.19207438826560974, -0.27106335759162903, 0.0018824338912963867, -0.27720674872398376, 0.0974600613117218, -0.2875547409057617, 0.18929487466812134, -0.0015226062387228012, 0.10948820412158966, 0.022503331303596497, -0.2070254385471344, 0.6020869612693787, -0.3814714550971985, -0.3790596127510071, -0.24998825788497925, 0.29250526428222656, -0.15664634108543396, -0.3191487193107605, -0.18798106908798218, -0.16802111268043518, 0.3404829800128937, -0.209842249751091, -0.25461190938949585, -0.11491139233112335, -0.0779229998588562, -0.04584965482354164, -0.2578429579734802, 0.060182709246873856, -0.04927632585167885, -0.14870965480804443, 0.3046516478061676, -0.2471383959054947 ]
https://github.com/huggingface/datasets/issues/1939
Thanks for reporting and for all the details and suggestions. I'm totally in favor of having a HF_DATASETS_OFFLINE env variable to disable manually all the connection checks, remove retries etc. Moreover you may know that the use case that you are mentioning is already supported from `datasets` 1.3.0, i.e. you already can: - first load datasets and metrics from an instance with internet connection - then be able to reload datasets and metrics from another instance without connection (as long as the filesystem is shared) This is already implemented, but currently it only works if the requests return a `ConnectionError` (or any error actually). Not sure why it would hang instead of returning an error. Maybe this is just a issue with the timeout value being not set or too high ? Is there a way I can have access to one of the instances on which there's this issue (we can discuss this offline) ?
[firewalled env] OFFLINE mode
This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks.
156
[firewalled env] OFFLINE mode This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks. Thanks for reporting and for all the details and suggestions. I'm totally in favor of having a HF_DATASETS_OFFLINE env variable to disable manually all the connection checks, remove retries etc. Moreover you may know that the use case that you are mentioning is already supported from `datasets` 1.3.0, i.e. you already can: - first load datasets and metrics from an instance with internet connection - then be able to reload datasets and metrics from another instance without connection (as long as the filesystem is shared) This is already implemented, but currently it only works if the requests return a `ConnectionError` (or any error actually). Not sure why it would hang instead of returning an error. Maybe this is just a issue with the timeout value being not set or too high ? Is there a way I can have access to one of the instances on which there's this issue (we can discuss this offline) ?
[ -0.4748803675174713, 0.1685332953929901, -0.06255339831113815, 0.10505624115467072, 0.04431166127324104, -0.22849176824092865, 0.4647971987724304, 0.07167980074882507, 0.25459128618240356, 0.04853060096502304, 0.01843962073326111, 0.06361503899097443, 0.08450675755739212, 0.19930414855480194, 0.01809133216738701, 0.10796750336885452, 0.019945114850997925, -0.1096389889717102, -0.2528401017189026, 0.06371643394231796, -0.2635917067527771, -0.053672678768634796, -0.2544519007205963, -0.2575804591178894, 0.07836796343326569, -0.5080999732017517, -0.21687796711921692, -0.01056952215731144, 0.009647846221923828, -0.22755646705627441, 0.308939129114151, 0.26126259565353394, 0.25188642740249634, 0.15301160514354706, -0.0001084151808754541, -0.0537569522857666, -0.1393844336271286, -0.03616767376661301, -0.27288758754730225, 0.022388078272342682, -0.31793373823165894, -0.38024231791496277, 0.16507773101329803, -0.4613102078437805, -0.1713552176952362, -0.17472559213638306, 0.14645598828792572, -0.6594021916389465, 0.5154662132263184, -0.07631567865610123, 0.09451653063297272, 0.00035171955823898315, -0.3278794288635254, -0.09941506385803223, -0.3226188123226166, -0.19805064797401428, -0.18144047260284424, 0.17103464901447296, 0.0883781835436821, -0.21749919652938843, -0.045586809515953064, 0.395288348197937, -0.3122882544994354, 0.15657144784927368, 0.3260604739189148, 0.018225304782390594, -0.33811303973197937, -0.11882248520851135, -0.128138467669487, 0.33762234449386597, 0.18121863901615143, -0.2216329127550125, -0.42623788118362427, -0.4555666148662567, -0.07907901704311371, -0.370331346988678, 0.302575945854187, 0.08893097192049026, -0.11691763997077942, 0.280956506729126, -0.3825724124908447, -0.21386654675006866, -0.12472154200077057, -0.0012390222400426865, -0.03082786500453949, 0.373820960521698, 0.07366867363452911, 0.17367605865001678, -0.0692528486251831, 0.10603053867816925, 0.013403583317995071, -0.3340771794319153, 0.2569809854030609, 0.027041267603635788, -0.5665547251701355, 0.02651851624250412, 0.12244778871536255, -0.006783895194530487, 0.016816020011901855, 0.45449501276016235, -0.1779249906539917, -0.042925894260406494, 0.49831557273864746, 0.1950368732213974, 0.039895232766866684, 0.29758965969085693, 0.15196223556995392, -0.1790611892938614, 0.377646803855896, 0.16026346385478973, -0.05687140300869942, -0.13450837135314941, -0.11364683508872986, -0.07069238275289536, 0.18111631274223328, 0.06406226754188538, 0.11976834386587143, -0.13770291209220886, -0.11664620041847229, 0.04696529731154442, -0.032321490347385406, 0.24013777077198029, 0.33137068152427673, 0.3093740940093994, -0.05559837073087692, -0.2358308583498001, 0.23331327736377716, 0.16671842336654663, -0.13828885555267334, -0.06039148196578026, 0.0725906491279602, -0.09849965572357178, -0.13131803274154663, 0.0826689600944519, 0.32860738039016724, 0.2563713490962982, 0.27478641271591187, -0.17551182210445404, 0.15285715460777283, 0.023828595876693726, 0.5519110560417175, -0.24586711823940277, 0.11386346071958542, 0.30219796299934387, 0.15453144907951355, -0.23060137033462524, 0.09803986549377441, 0.2813175320625305, -0.037536248564720154, 0.05061019957065582, 0.07994264364242554, -0.38581985235214233, 0.4044839143753052, 0.14399127662181854, -0.19753320515155792, -0.047603536397218704, 0.17821966111660004, 0.07425354421138763, -0.07214777916669846, -0.45193445682525635, 0.18317796289920807, 0.06677757203578949, -0.11934831738471985, -0.054319821298122406, 0.40796345472335815, 0.49361059069633484, -0.4202960133552551, 0.022812165319919586, -0.22172942757606506, 0.01910042017698288, -0.11971476674079895, 0.17130614817142487, -0.279461532831192, 0.1356067806482315, -0.1801663041114807, -0.20793181657791138, 0.24437960982322693, -0.30845558643341064, -0.3225480318069458, 0.4538067877292633, -0.1916147917509079, 0.2314610481262207, 0.31524229049682617, 0.1994497925043106, 0.2296580970287323, -0.033811863511800766, 0.12226610630750656, 0.3941688537597656, -0.24953345954418182, -0.06434554606676102, -0.1496426910161972, -0.19089116156101227, 0.27601876854896545, 0.10591883957386017, 0.23741024732589722, -0.10764497518539429, -0.08614017069339752, -0.29403868317604065, -0.03508055582642555, -0.08320796489715576, 0.20030343532562256, -0.1944313645362854, 0.08566102385520935, 0.07364268600940704, 0.049378566443920135, 0.14119230210781097, -0.46049803495407104, 0.3037669062614441, -0.2521933317184448, 0.07474815845489502, -0.33912742137908936, -0.32415837049484253, 0.23130542039871216, -0.07133319228887558, -0.10314342379570007, -0.3441323935985565, 0.07404391467571259, 0.05124038830399513, -0.10171829164028168, -0.037432726472616196, -0.017398491501808167, 0.024222608655691147, -0.08702250570058823, 0.11350785195827484, 0.15818266570568085, -0.06728853285312653, 0.07443524897098541, 0.09921999275684357, -0.2595794200897217, -0.11183764040470123, -0.018691297620534897, -0.14191938936710358, -0.0033472925424575806, 0.5071067214012146, 0.06701795756816864, 0.4341066777706146, 0.18010593950748444, 0.4344968795776367, 0.10020449012517929, 0.33201825618743896, 0.2241399735212326, 0.029281072318553925, 0.06675868481397629, -0.028143279254436493, -0.5865290760993958, 0.8847307562828064, -0.07729071378707886, 0.4949631690979004, -0.025368228554725647, -0.08966218680143356, 0.25813233852386475, -0.07005869597196579, -0.5748963952064514, -0.08963241428136826, -0.029292240738868713, 0.2472512274980545, 0.12467829883098602, -0.0695687085390091, -0.36455023288726807, 0.130946546792984, 0.06159970909357071, 0.2113250344991684, 0.4444035589694977, -0.2755914032459259, 0.2542673349380493, -0.0863385796546936, 0.4632284641265869, 0.20976227521896362, 0.2965559959411621, 0.25289100408554077, 0.04141148924827576, 0.1776759773492813, -0.07449950277805328, -0.23867392539978027, 0.36420226097106934, 0.15460720658302307, 0.31548061966896057, 0.16001398861408234, 0.082526296377182, -0.1450216919183731, -0.16566704213619232, -0.2701161503791809, 0.14416725933551788, -0.22853153944015503, -0.05243241414427757, 0.31882011890411377, -0.3138051927089691, -0.5460376739501953, -0.03305958956480026, 0.25674644112586975, -0.1731724739074707, -0.12655365467071533, 0.23259739577770233, 0.12153404951095581, -0.3687729239463806, 0.39795029163360596, -0.2202262133359909, 0.4702405333518982, -0.06497297435998917, -0.40428626537323, 0.2372112274169922, -0.37362706661224365, 0.09758931398391724, 0.07270218431949615, 0.24325808882713318, -0.09047739207744598, 0.682811439037323, 0.26522698998451233, -0.06649283319711685, -0.1724991798400879, -0.20482102036476135, 0.18044692277908325, 0.045394040644168854, 0.5188973546028137, 0.141069695353508, 0.09788531064987183, -0.1078776866197586, 0.03929784521460533, 0.26686444878578186, -0.13149294257164001, 0.2002529799938202, -0.10146770626306534, 0.005211304873228073, 0.11611956357955933, -0.24647867679595947, -0.5637350082397461, -0.2847307622432709, -0.2684568762779236, 0.11672686785459518, -0.22225487232208252, 0.2011251151561737, -0.023113276809453964, 0.10018469393253326, -0.05030616372823715, 0.1435735523700714, 0.09952307492494583, -0.03224733844399452, -0.5688082575798035, 0.11398935317993164, -0.16371692717075348, 0.09977690875530243, 0.05809617042541504, -0.011015482246875763, 0.3906190097332001, 0.5869695544242859, -0.4705565571784973, -0.2902960181236267, 0.38954296708106995, 0.2864702045917511, 0.0516616627573967, -0.3373519778251648, 0.6150394082069397, 0.0365743562579155, -0.08801586925983429, -0.08842797577381134, 0.35487452149391174, 0.4860232472419739, -0.18644899129867554, -0.0539083257317543, 0.17913495004177094, 0.7724382877349854, 0.20225585997104645, 0.2877366244792938, -0.16660530865192413, 0.48816293478012085, 0.2260148972272873, 0.1102789044380188, 0.304939329624176, -0.1625727415084839, 0.017958693206310272, 0.20340675115585327, -0.08152163028717041, -0.5336043834686279, 0.07162102311849594, 0.04705515131354332, -0.052730441093444824, -0.3611358404159546, -0.25824517011642456, -0.10325261950492859, -0.3916657865047455, 0.29612496495246887, -0.11279015243053436, 0.4995018243789673, 0.11789633333683014, 0.3723381757736206, -0.21824204921722412, 0.1661282479763031, -0.1418524980545044, 0.15018373727798462, 0.5369585752487183, -0.012885821983218193, -0.17996340990066528, 0.03488713875412941, -0.22274354100227356, 0.2784569263458252, 0.009933792054653168, 0.34172648191452026, -0.03639182448387146, 0.017497599124908447, 0.0015467405319213867, -0.07632867991924286, 0.44631311297416687, -0.11468236893415451, 0.06326872855424881, 0.008159436285495758, -0.2919882833957672, -0.21128490567207336, -0.13052445650100708, -0.04285780340433121, -0.0211983360350132, 0.06499707698822021, 0.19525305926799774, -0.2032025158405304, -0.039048098027706146, -0.318778395652771, 0.13518598675727844, -0.31977421045303345, -0.23671117424964905, 0.023485787212848663, 0.12672153115272522, -0.6222808361053467, 0.4204730689525604, -0.15719732642173767, -0.19054831564426422, -0.24808785319328308, -0.07479505985975266, -0.17830757796764374, 0.4812125563621521, -0.14594964683055878, 0.05651307851076126, 0.14703935384750366, -0.5123634934425354, 0.18588177859783173, 0.11237262189388275, 0.15006639063358307, 0.38386425375938416, 0.04613308236002922, 0.13638310134410858, 0.2845405340194702, 0.06376518309116364, 0.06648458540439606, 0.20517078042030334, 0.4261293113231659, -0.10892775654792786, -0.003009803593158722, 0.1616739183664322, 0.3030039072036743, -0.35880687832832336, -0.3979020118713379, 0.12244630604982376, 0.15586304664611816, 0.03350675478577614, -0.4153931438922882, 0.06711547821760178, 0.046053193509578705, -0.2596213221549988, 0.044562794268131256, 0.15214502811431885, -0.372885525226593, 0.26171448826789856, 0.2630717158317566, 0.9972520470619202, 0.21396183967590332, 0.21799236536026, 0.41700446605682373, 0.2532128691673279, 0.4726443290710449, -0.6332616209983826, 0.2983068525791168, 0.12729255855083466, -0.16704396903514862, -0.14996330440044403, -0.02559024840593338, 0.23217664659023285, 0.09987063705921173, -0.2685554027557373, 0.5433548092842102, -0.07013076543807983, 0.10143402218818665, -0.24331238865852356, -0.029644854366779327, -0.2376532107591629, -0.4036458432674408, -0.2663607597351074, 0.1260659098625183, 0.23340991139411926, -0.010481273755431175, -0.3751177191734314, -0.0689794197678566, 0.19255156815052032, 0.16315102577209473, 0.14545553922653198, 0.07217663526535034, 0.042894888669252396, 0.27666041254997253, -0.4192085266113281, 0.05593852698802948, -0.2763845920562744, 0.10907943546772003, 0.018098317086696625, 0.21089939773082733, -0.2886296808719635, 0.12599536776542664, -0.04192762449383736, 0.11407248675823212, -0.15391723811626434, -0.26681825518608093, 0.37291935086250305, -0.16628801822662354, -0.24871596693992615, -0.22058457136154175, -0.35827067494392395, -0.07715258002281189, 0.25149473547935486, -0.3500300943851471, 0.0939491018652916, -0.06916543841362, 0.06194734200835228, 0.19377562403678894, -0.11830870807170868, -0.21583852171897888, 0.08288004249334335, 0.10984296351671219, -0.047775935381650925, 0.2642476260662079, 0.08337484300136566, -0.029608190059661865, -0.18447332084178925, 0.5224730372428894, -0.012488043867051601, 0.29832175374031067, 0.3291597068309784, 0.17099744081497192, -0.24227283895015717, -0.3916771411895752, -0.11790511012077332, -0.0944124162197113, 0.171348437666893, 0.0689706802368164, 0.0006623156368732452, -0.025470107793807983, 0.058074530214071274, -0.2008400708436966, 0.17662759125232697, -0.0651131123304367, -0.10130364447832108, -0.4263278841972351, -0.09579499065876007, 0.3383995294570923, 0.20188510417938232, 0.09423648566007614, 0.12143006175756454, 0.12856470048427582, 0.03344278782606125, 0.011660726740956306, -0.3435807228088379, -0.19338984787464142, -0.26668792963027954, 0.22160618007183075, -0.011314526200294495, -0.047725990414619446, 0.17747147381305695, -0.015059325844049454, 0.056359484791755676, -0.029219742864370346, -0.253823846578598, -0.16195330023765564, -0.11365518718957901, 0.2258027195930481, -0.14830449223518372, -0.31576377153396606, 0.21605777740478516, -0.4238920211791992, -0.36643579602241516, -0.3153073191642761, 0.09185535460710526, -0.017071284353733063, -0.16778942942619324, -0.4335838854312897, -0.10714134573936462, 0.3017939329147339, -0.22438831627368927, 0.09498864412307739, -0.09777266532182693, -0.27250704169273376, -0.33457550406455994, 0.05389609932899475, -0.07341942191123962, -0.10961491614580154, -0.03956925868988037, 0.10273177921772003, 0.21060365438461304, 0.20557893812656403, 0.46399807929992676, 0.08929774165153503, -0.1204226091504097, 0.16045929491519928, 0.6960185766220093, 0.14337149262428284, 0.1893889456987381, 0.11123047024011612, 0.03070530667901039, 0.21474263072013855, -0.4058089554309845, 0.1708359718322754, -0.2121230959892273, -0.16528023779392242, 0.20117145776748657, 0.21826820075511932, 0.42116838693618774, 0.12281647324562073, 0.21153676509857178, -0.0768139511346817, 0.39609256386756897, -0.3639712929725647, 0.24522893130779266, -0.023213721811771393, -0.04850982502102852, 0.16922082006931305, -0.0433972030878067, 0.10812199115753174, 0.30696171522140503, 0.06820936501026154, -0.26930364966392517, 0.1668250858783722, 0.45572933554649353, 0.20227451622486115, -0.09087595343589783, -0.4782037138938904, -0.1009485125541687, 0.09568238258361816, -0.06034450978040695, 0.02443596161901951, -0.4648663401603699, -0.054251011461019516, -0.33958184719085693, -0.19133992493152618, -0.21458689868450165, 0.602753758430481, -0.3315453827381134, -0.1462773233652115, -0.4204238951206207, -0.43967103958129883, 0.011094853281974792, 0.0038176849484443665, 0.18702666461467743, -0.13848772644996643, -0.1736920177936554, 0.07968717813491821, 0.2774658203125, -0.2712736129760742, 0.09691332280635834, -0.02924550510942936, 0.1431991010904312, -0.3236314356327057, 0.1587519347667694, 0.5755221247673035, 0.0011657364666461945, 0.06278882920742035, 0.28588753938674927, 0.22666199505329132, 0.002276945859193802, -0.1239224225282669, 0.1276148408651352, 0.1615409106016159, 0.05334078520536423, -0.3756062984466553, -0.055949486792087555, -0.016708239912986755, 0.288196325302124, 0.32207757234573364, 0.1017412319779396, -0.04514307528734207, 0.5039827823638916, -0.057403676211833954, -0.33505484461784363, -0.21786297857761383, -0.05982311815023422, 0.4229668080806732, 0.11301763355731964, -0.09612630307674408, -0.018178626894950867, -0.11233401298522949, -0.09170924127101898, 0.2774384617805481, -0.16166779398918152, 0.038800954818725586, 0.01901658996939659, 0.062258072197437286, -0.19175463914871216, 0.5251256227493286, -0.08282503485679626, 0.10014017671346664, -0.35854482650756836, -0.0513545498251915, -0.6031895875930786, -0.23330381512641907, -0.04812794551253319, 0.05082517862319946, -0.12257902324199677, 0.13384482264518738, 0.22453975677490234, 0.15483270585536957, -0.2501182556152344, 0.02487754076719284, 0.1090887039899826, 0.07845699042081833, -0.36835572123527527, 0.03194895759224892, 0.021768465638160706, -0.03491009771823883, 0.14625617861747742, -0.24224013090133667, 0.2108057141304016, -0.1415775716304779, 0.06722825020551682, 0.3073819875717163, 0.024146035313606262, 0.01345660537481308, 0.15584667026996613, 0.7136695981025696, 0.09638743847608566, 0.3541612923145294, 0.0330817773938179, -0.03922588750720024, -0.1355392038822174, 0.006180610507726669, -0.17471472918987274, 0.04170835763216019, 0.04209598898887634, 0.2525860667228699, -0.16777381300926208, -0.13567857444286346, -0.17323368787765503, 0.07975313812494278, -0.05987585335969925, -0.006826143711805344, -0.1402486264705658, -0.12770134210586548, -0.19393405318260193, 0.1754538118839264, -0.08354964852333069, 0.20897319912910461, 0.1280008852481842, 0.2270999252796173, -0.255080908536911, -0.12457427382469177, 0.43263375759124756, -0.09964245557785034, 0.18829700350761414, -0.34960225224494934, 0.20391787588596344, 0.22937627136707306, 0.17083905637264252, -0.07593804597854614, -0.05381520837545395, 0.16046662628650665, -0.030330287292599678, 0.10782352089881897, -0.020900502800941467, 0.053911902010440826, -0.1801203489303589, -0.1716642528772354, 0.20660531520843506, -0.32496416568756104, -0.33783385157585144, -0.280019074678421, -0.24342207610607147 ]
https://github.com/huggingface/datasets/issues/1939
I'm on master, so using all the available bells and whistles already. If you look at the common issues - it for example tries to look up files if they appear in `_PACKAGED_DATASETS_MODULES` which it shouldn't do. -------------- Yes, there is a nuance to it. As I mentioned it's firewalled - that is it has a network but making any calls outside - it just hangs in: ``` sin_addr=inet_addr("xx.xx.xx.xx")}, [28->16]) = 0 close(5) = 0 socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) = 5 connect(5, {sa_family=AF_INET, sin_port=htons(3128), sin_addr=inet_addr("yy.yy.yy.yy")}, 16^C) = ? ERESTARTSYS (To be restarted if SA_RESTART is set) ``` until it times out. That's why we need to be able to tell the software that there is no network to rely on even if there is one (good for testing too). So what I'm thinking is that this is a simple matter of pre-ambling any network call wrappers with: ``` if HF_DATASETS_OFFLINE: assert "Attempting to make a network call under Offline mode" ``` and then fixing up if there is anything else to fix to make it work. -------------- Otherwise I think the only other problem I encountered is that we need to find a way to pre-cache metrics, for some reason it's not caching it and wanting to fetch it from online. Which is extra strange since it already has those files in the `datasets` repo itself that is on the filesystem. The workaround I had to do is to copy `rouge/rouge.py` (with the parent folder) from the datasets repo to the current dir - and then it proceeded.
[firewalled env] OFFLINE mode
This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks.
257
[firewalled env] OFFLINE mode This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks. I'm on master, so using all the available bells and whistles already. If you look at the common issues - it for example tries to look up files if they appear in `_PACKAGED_DATASETS_MODULES` which it shouldn't do. -------------- Yes, there is a nuance to it. As I mentioned it's firewalled - that is it has a network but making any calls outside - it just hangs in: ``` sin_addr=inet_addr("xx.xx.xx.xx")}, [28->16]) = 0 close(5) = 0 socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) = 5 connect(5, {sa_family=AF_INET, sin_port=htons(3128), sin_addr=inet_addr("yy.yy.yy.yy")}, 16^C) = ? ERESTARTSYS (To be restarted if SA_RESTART is set) ``` until it times out. That's why we need to be able to tell the software that there is no network to rely on even if there is one (good for testing too). So what I'm thinking is that this is a simple matter of pre-ambling any network call wrappers with: ``` if HF_DATASETS_OFFLINE: assert "Attempting to make a network call under Offline mode" ``` and then fixing up if there is anything else to fix to make it work. -------------- Otherwise I think the only other problem I encountered is that we need to find a way to pre-cache metrics, for some reason it's not caching it and wanting to fetch it from online. Which is extra strange since it already has those files in the `datasets` repo itself that is on the filesystem. The workaround I had to do is to copy `rouge/rouge.py` (with the parent folder) from the datasets repo to the current dir - and then it proceeded.
[ -0.4748803675174713, 0.1685332953929901, -0.06255339831113815, 0.10505624115467072, 0.04431166127324104, -0.22849176824092865, 0.4647971987724304, 0.07167980074882507, 0.25459128618240356, 0.04853060096502304, 0.01843962073326111, 0.06361503899097443, 0.08450675755739212, 0.19930414855480194, 0.01809133216738701, 0.10796750336885452, 0.019945114850997925, -0.1096389889717102, -0.2528401017189026, 0.06371643394231796, -0.2635917067527771, -0.053672678768634796, -0.2544519007205963, -0.2575804591178894, 0.07836796343326569, -0.5080999732017517, -0.21687796711921692, -0.01056952215731144, 0.009647846221923828, -0.22755646705627441, 0.308939129114151, 0.26126259565353394, 0.25188642740249634, 0.15301160514354706, -0.0001084151808754541, -0.0537569522857666, -0.1393844336271286, -0.03616767376661301, -0.27288758754730225, 0.022388078272342682, -0.31793373823165894, -0.38024231791496277, 0.16507773101329803, -0.4613102078437805, -0.1713552176952362, -0.17472559213638306, 0.14645598828792572, -0.6594021916389465, 0.5154662132263184, -0.07631567865610123, 0.09451653063297272, 0.00035171955823898315, -0.3278794288635254, -0.09941506385803223, -0.3226188123226166, -0.19805064797401428, -0.18144047260284424, 0.17103464901447296, 0.0883781835436821, -0.21749919652938843, -0.045586809515953064, 0.395288348197937, -0.3122882544994354, 0.15657144784927368, 0.3260604739189148, 0.018225304782390594, -0.33811303973197937, -0.11882248520851135, -0.128138467669487, 0.33762234449386597, 0.18121863901615143, -0.2216329127550125, -0.42623788118362427, -0.4555666148662567, -0.07907901704311371, -0.370331346988678, 0.302575945854187, 0.08893097192049026, -0.11691763997077942, 0.280956506729126, -0.3825724124908447, -0.21386654675006866, -0.12472154200077057, -0.0012390222400426865, -0.03082786500453949, 0.373820960521698, 0.07366867363452911, 0.17367605865001678, -0.0692528486251831, 0.10603053867816925, 0.013403583317995071, -0.3340771794319153, 0.2569809854030609, 0.027041267603635788, -0.5665547251701355, 0.02651851624250412, 0.12244778871536255, -0.006783895194530487, 0.016816020011901855, 0.45449501276016235, -0.1779249906539917, -0.042925894260406494, 0.49831557273864746, 0.1950368732213974, 0.039895232766866684, 0.29758965969085693, 0.15196223556995392, -0.1790611892938614, 0.377646803855896, 0.16026346385478973, -0.05687140300869942, -0.13450837135314941, -0.11364683508872986, -0.07069238275289536, 0.18111631274223328, 0.06406226754188538, 0.11976834386587143, -0.13770291209220886, -0.11664620041847229, 0.04696529731154442, -0.032321490347385406, 0.24013777077198029, 0.33137068152427673, 0.3093740940093994, -0.05559837073087692, -0.2358308583498001, 0.23331327736377716, 0.16671842336654663, -0.13828885555267334, -0.06039148196578026, 0.0725906491279602, -0.09849965572357178, -0.13131803274154663, 0.0826689600944519, 0.32860738039016724, 0.2563713490962982, 0.27478641271591187, -0.17551182210445404, 0.15285715460777283, 0.023828595876693726, 0.5519110560417175, -0.24586711823940277, 0.11386346071958542, 0.30219796299934387, 0.15453144907951355, -0.23060137033462524, 0.09803986549377441, 0.2813175320625305, -0.037536248564720154, 0.05061019957065582, 0.07994264364242554, -0.38581985235214233, 0.4044839143753052, 0.14399127662181854, -0.19753320515155792, -0.047603536397218704, 0.17821966111660004, 0.07425354421138763, -0.07214777916669846, -0.45193445682525635, 0.18317796289920807, 0.06677757203578949, -0.11934831738471985, -0.054319821298122406, 0.40796345472335815, 0.49361059069633484, -0.4202960133552551, 0.022812165319919586, -0.22172942757606506, 0.01910042017698288, -0.11971476674079895, 0.17130614817142487, -0.279461532831192, 0.1356067806482315, -0.1801663041114807, -0.20793181657791138, 0.24437960982322693, -0.30845558643341064, -0.3225480318069458, 0.4538067877292633, -0.1916147917509079, 0.2314610481262207, 0.31524229049682617, 0.1994497925043106, 0.2296580970287323, -0.033811863511800766, 0.12226610630750656, 0.3941688537597656, -0.24953345954418182, -0.06434554606676102, -0.1496426910161972, -0.19089116156101227, 0.27601876854896545, 0.10591883957386017, 0.23741024732589722, -0.10764497518539429, -0.08614017069339752, -0.29403868317604065, -0.03508055582642555, -0.08320796489715576, 0.20030343532562256, -0.1944313645362854, 0.08566102385520935, 0.07364268600940704, 0.049378566443920135, 0.14119230210781097, -0.46049803495407104, 0.3037669062614441, -0.2521933317184448, 0.07474815845489502, -0.33912742137908936, -0.32415837049484253, 0.23130542039871216, -0.07133319228887558, -0.10314342379570007, -0.3441323935985565, 0.07404391467571259, 0.05124038830399513, -0.10171829164028168, -0.037432726472616196, -0.017398491501808167, 0.024222608655691147, -0.08702250570058823, 0.11350785195827484, 0.15818266570568085, -0.06728853285312653, 0.07443524897098541, 0.09921999275684357, -0.2595794200897217, -0.11183764040470123, -0.018691297620534897, -0.14191938936710358, -0.0033472925424575806, 0.5071067214012146, 0.06701795756816864, 0.4341066777706146, 0.18010593950748444, 0.4344968795776367, 0.10020449012517929, 0.33201825618743896, 0.2241399735212326, 0.029281072318553925, 0.06675868481397629, -0.028143279254436493, -0.5865290760993958, 0.8847307562828064, -0.07729071378707886, 0.4949631690979004, -0.025368228554725647, -0.08966218680143356, 0.25813233852386475, -0.07005869597196579, -0.5748963952064514, -0.08963241428136826, -0.029292240738868713, 0.2472512274980545, 0.12467829883098602, -0.0695687085390091, -0.36455023288726807, 0.130946546792984, 0.06159970909357071, 0.2113250344991684, 0.4444035589694977, -0.2755914032459259, 0.2542673349380493, -0.0863385796546936, 0.4632284641265869, 0.20976227521896362, 0.2965559959411621, 0.25289100408554077, 0.04141148924827576, 0.1776759773492813, -0.07449950277805328, -0.23867392539978027, 0.36420226097106934, 0.15460720658302307, 0.31548061966896057, 0.16001398861408234, 0.082526296377182, -0.1450216919183731, -0.16566704213619232, -0.2701161503791809, 0.14416725933551788, -0.22853153944015503, -0.05243241414427757, 0.31882011890411377, -0.3138051927089691, -0.5460376739501953, -0.03305958956480026, 0.25674644112586975, -0.1731724739074707, -0.12655365467071533, 0.23259739577770233, 0.12153404951095581, -0.3687729239463806, 0.39795029163360596, -0.2202262133359909, 0.4702405333518982, -0.06497297435998917, -0.40428626537323, 0.2372112274169922, -0.37362706661224365, 0.09758931398391724, 0.07270218431949615, 0.24325808882713318, -0.09047739207744598, 0.682811439037323, 0.26522698998451233, -0.06649283319711685, -0.1724991798400879, -0.20482102036476135, 0.18044692277908325, 0.045394040644168854, 0.5188973546028137, 0.141069695353508, 0.09788531064987183, -0.1078776866197586, 0.03929784521460533, 0.26686444878578186, -0.13149294257164001, 0.2002529799938202, -0.10146770626306534, 0.005211304873228073, 0.11611956357955933, -0.24647867679595947, -0.5637350082397461, -0.2847307622432709, -0.2684568762779236, 0.11672686785459518, -0.22225487232208252, 0.2011251151561737, -0.023113276809453964, 0.10018469393253326, -0.05030616372823715, 0.1435735523700714, 0.09952307492494583, -0.03224733844399452, -0.5688082575798035, 0.11398935317993164, -0.16371692717075348, 0.09977690875530243, 0.05809617042541504, -0.011015482246875763, 0.3906190097332001, 0.5869695544242859, -0.4705565571784973, -0.2902960181236267, 0.38954296708106995, 0.2864702045917511, 0.0516616627573967, -0.3373519778251648, 0.6150394082069397, 0.0365743562579155, -0.08801586925983429, -0.08842797577381134, 0.35487452149391174, 0.4860232472419739, -0.18644899129867554, -0.0539083257317543, 0.17913495004177094, 0.7724382877349854, 0.20225585997104645, 0.2877366244792938, -0.16660530865192413, 0.48816293478012085, 0.2260148972272873, 0.1102789044380188, 0.304939329624176, -0.1625727415084839, 0.017958693206310272, 0.20340675115585327, -0.08152163028717041, -0.5336043834686279, 0.07162102311849594, 0.04705515131354332, -0.052730441093444824, -0.3611358404159546, -0.25824517011642456, -0.10325261950492859, -0.3916657865047455, 0.29612496495246887, -0.11279015243053436, 0.4995018243789673, 0.11789633333683014, 0.3723381757736206, -0.21824204921722412, 0.1661282479763031, -0.1418524980545044, 0.15018373727798462, 0.5369585752487183, -0.012885821983218193, -0.17996340990066528, 0.03488713875412941, -0.22274354100227356, 0.2784569263458252, 0.009933792054653168, 0.34172648191452026, -0.03639182448387146, 0.017497599124908447, 0.0015467405319213867, -0.07632867991924286, 0.44631311297416687, -0.11468236893415451, 0.06326872855424881, 0.008159436285495758, -0.2919882833957672, -0.21128490567207336, -0.13052445650100708, -0.04285780340433121, -0.0211983360350132, 0.06499707698822021, 0.19525305926799774, -0.2032025158405304, -0.039048098027706146, -0.318778395652771, 0.13518598675727844, -0.31977421045303345, -0.23671117424964905, 0.023485787212848663, 0.12672153115272522, -0.6222808361053467, 0.4204730689525604, -0.15719732642173767, -0.19054831564426422, -0.24808785319328308, -0.07479505985975266, -0.17830757796764374, 0.4812125563621521, -0.14594964683055878, 0.05651307851076126, 0.14703935384750366, -0.5123634934425354, 0.18588177859783173, 0.11237262189388275, 0.15006639063358307, 0.38386425375938416, 0.04613308236002922, 0.13638310134410858, 0.2845405340194702, 0.06376518309116364, 0.06648458540439606, 0.20517078042030334, 0.4261293113231659, -0.10892775654792786, -0.003009803593158722, 0.1616739183664322, 0.3030039072036743, -0.35880687832832336, -0.3979020118713379, 0.12244630604982376, 0.15586304664611816, 0.03350675478577614, -0.4153931438922882, 0.06711547821760178, 0.046053193509578705, -0.2596213221549988, 0.044562794268131256, 0.15214502811431885, -0.372885525226593, 0.26171448826789856, 0.2630717158317566, 0.9972520470619202, 0.21396183967590332, 0.21799236536026, 0.41700446605682373, 0.2532128691673279, 0.4726443290710449, -0.6332616209983826, 0.2983068525791168, 0.12729255855083466, -0.16704396903514862, -0.14996330440044403, -0.02559024840593338, 0.23217664659023285, 0.09987063705921173, -0.2685554027557373, 0.5433548092842102, -0.07013076543807983, 0.10143402218818665, -0.24331238865852356, -0.029644854366779327, -0.2376532107591629, -0.4036458432674408, -0.2663607597351074, 0.1260659098625183, 0.23340991139411926, -0.010481273755431175, -0.3751177191734314, -0.0689794197678566, 0.19255156815052032, 0.16315102577209473, 0.14545553922653198, 0.07217663526535034, 0.042894888669252396, 0.27666041254997253, -0.4192085266113281, 0.05593852698802948, -0.2763845920562744, 0.10907943546772003, 0.018098317086696625, 0.21089939773082733, -0.2886296808719635, 0.12599536776542664, -0.04192762449383736, 0.11407248675823212, -0.15391723811626434, -0.26681825518608093, 0.37291935086250305, -0.16628801822662354, -0.24871596693992615, -0.22058457136154175, -0.35827067494392395, -0.07715258002281189, 0.25149473547935486, -0.3500300943851471, 0.0939491018652916, -0.06916543841362, 0.06194734200835228, 0.19377562403678894, -0.11830870807170868, -0.21583852171897888, 0.08288004249334335, 0.10984296351671219, -0.047775935381650925, 0.2642476260662079, 0.08337484300136566, -0.029608190059661865, -0.18447332084178925, 0.5224730372428894, -0.012488043867051601, 0.29832175374031067, 0.3291597068309784, 0.17099744081497192, -0.24227283895015717, -0.3916771411895752, -0.11790511012077332, -0.0944124162197113, 0.171348437666893, 0.0689706802368164, 0.0006623156368732452, -0.025470107793807983, 0.058074530214071274, -0.2008400708436966, 0.17662759125232697, -0.0651131123304367, -0.10130364447832108, -0.4263278841972351, -0.09579499065876007, 0.3383995294570923, 0.20188510417938232, 0.09423648566007614, 0.12143006175756454, 0.12856470048427582, 0.03344278782606125, 0.011660726740956306, -0.3435807228088379, -0.19338984787464142, -0.26668792963027954, 0.22160618007183075, -0.011314526200294495, -0.047725990414619446, 0.17747147381305695, -0.015059325844049454, 0.056359484791755676, -0.029219742864370346, -0.253823846578598, -0.16195330023765564, -0.11365518718957901, 0.2258027195930481, -0.14830449223518372, -0.31576377153396606, 0.21605777740478516, -0.4238920211791992, -0.36643579602241516, -0.3153073191642761, 0.09185535460710526, -0.017071284353733063, -0.16778942942619324, -0.4335838854312897, -0.10714134573936462, 0.3017939329147339, -0.22438831627368927, 0.09498864412307739, -0.09777266532182693, -0.27250704169273376, -0.33457550406455994, 0.05389609932899475, -0.07341942191123962, -0.10961491614580154, -0.03956925868988037, 0.10273177921772003, 0.21060365438461304, 0.20557893812656403, 0.46399807929992676, 0.08929774165153503, -0.1204226091504097, 0.16045929491519928, 0.6960185766220093, 0.14337149262428284, 0.1893889456987381, 0.11123047024011612, 0.03070530667901039, 0.21474263072013855, -0.4058089554309845, 0.1708359718322754, -0.2121230959892273, -0.16528023779392242, 0.20117145776748657, 0.21826820075511932, 0.42116838693618774, 0.12281647324562073, 0.21153676509857178, -0.0768139511346817, 0.39609256386756897, -0.3639712929725647, 0.24522893130779266, -0.023213721811771393, -0.04850982502102852, 0.16922082006931305, -0.0433972030878067, 0.10812199115753174, 0.30696171522140503, 0.06820936501026154, -0.26930364966392517, 0.1668250858783722, 0.45572933554649353, 0.20227451622486115, -0.09087595343589783, -0.4782037138938904, -0.1009485125541687, 0.09568238258361816, -0.06034450978040695, 0.02443596161901951, -0.4648663401603699, -0.054251011461019516, -0.33958184719085693, -0.19133992493152618, -0.21458689868450165, 0.602753758430481, -0.3315453827381134, -0.1462773233652115, -0.4204238951206207, -0.43967103958129883, 0.011094853281974792, 0.0038176849484443665, 0.18702666461467743, -0.13848772644996643, -0.1736920177936554, 0.07968717813491821, 0.2774658203125, -0.2712736129760742, 0.09691332280635834, -0.02924550510942936, 0.1431991010904312, -0.3236314356327057, 0.1587519347667694, 0.5755221247673035, 0.0011657364666461945, 0.06278882920742035, 0.28588753938674927, 0.22666199505329132, 0.002276945859193802, -0.1239224225282669, 0.1276148408651352, 0.1615409106016159, 0.05334078520536423, -0.3756062984466553, -0.055949486792087555, -0.016708239912986755, 0.288196325302124, 0.32207757234573364, 0.1017412319779396, -0.04514307528734207, 0.5039827823638916, -0.057403676211833954, -0.33505484461784363, -0.21786297857761383, -0.05982311815023422, 0.4229668080806732, 0.11301763355731964, -0.09612630307674408, -0.018178626894950867, -0.11233401298522949, -0.09170924127101898, 0.2774384617805481, -0.16166779398918152, 0.038800954818725586, 0.01901658996939659, 0.062258072197437286, -0.19175463914871216, 0.5251256227493286, -0.08282503485679626, 0.10014017671346664, -0.35854482650756836, -0.0513545498251915, -0.6031895875930786, -0.23330381512641907, -0.04812794551253319, 0.05082517862319946, -0.12257902324199677, 0.13384482264518738, 0.22453975677490234, 0.15483270585536957, -0.2501182556152344, 0.02487754076719284, 0.1090887039899826, 0.07845699042081833, -0.36835572123527527, 0.03194895759224892, 0.021768465638160706, -0.03491009771823883, 0.14625617861747742, -0.24224013090133667, 0.2108057141304016, -0.1415775716304779, 0.06722825020551682, 0.3073819875717163, 0.024146035313606262, 0.01345660537481308, 0.15584667026996613, 0.7136695981025696, 0.09638743847608566, 0.3541612923145294, 0.0330817773938179, -0.03922588750720024, -0.1355392038822174, 0.006180610507726669, -0.17471472918987274, 0.04170835763216019, 0.04209598898887634, 0.2525860667228699, -0.16777381300926208, -0.13567857444286346, -0.17323368787765503, 0.07975313812494278, -0.05987585335969925, -0.006826143711805344, -0.1402486264705658, -0.12770134210586548, -0.19393405318260193, 0.1754538118839264, -0.08354964852333069, 0.20897319912910461, 0.1280008852481842, 0.2270999252796173, -0.255080908536911, -0.12457427382469177, 0.43263375759124756, -0.09964245557785034, 0.18829700350761414, -0.34960225224494934, 0.20391787588596344, 0.22937627136707306, 0.17083905637264252, -0.07593804597854614, -0.05381520837545395, 0.16046662628650665, -0.030330287292599678, 0.10782352089881897, -0.020900502800941467, 0.053911902010440826, -0.1801203489303589, -0.1716642528772354, 0.20660531520843506, -0.32496416568756104, -0.33783385157585144, -0.280019074678421, -0.24342207610607147 ]
https://github.com/huggingface/datasets/issues/1939
Ok understand better the hanging issue. I guess catching connection errors is not enough, we should also avoid all the hangings. Currently the offline mode tests are only done by simulating an instant connection fail that returns an error, let's have another connection mock that hangs instead. I'll also take a look at why you had to do this for `rouge`.
[firewalled env] OFFLINE mode
This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks.
61
[firewalled env] OFFLINE mode This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks. Ok understand better the hanging issue. I guess catching connection errors is not enough, we should also avoid all the hangings. Currently the offline mode tests are only done by simulating an instant connection fail that returns an error, let's have another connection mock that hangs instead. I'll also take a look at why you had to do this for `rouge`.
[ -0.4748803675174713, 0.1685332953929901, -0.06255339831113815, 0.10505624115467072, 0.04431166127324104, -0.22849176824092865, 0.4647971987724304, 0.07167980074882507, 0.25459128618240356, 0.04853060096502304, 0.01843962073326111, 0.06361503899097443, 0.08450675755739212, 0.19930414855480194, 0.01809133216738701, 0.10796750336885452, 0.019945114850997925, -0.1096389889717102, -0.2528401017189026, 0.06371643394231796, -0.2635917067527771, -0.053672678768634796, -0.2544519007205963, -0.2575804591178894, 0.07836796343326569, -0.5080999732017517, -0.21687796711921692, -0.01056952215731144, 0.009647846221923828, -0.22755646705627441, 0.308939129114151, 0.26126259565353394, 0.25188642740249634, 0.15301160514354706, -0.0001084151808754541, -0.0537569522857666, -0.1393844336271286, -0.03616767376661301, -0.27288758754730225, 0.022388078272342682, -0.31793373823165894, -0.38024231791496277, 0.16507773101329803, -0.4613102078437805, -0.1713552176952362, -0.17472559213638306, 0.14645598828792572, -0.6594021916389465, 0.5154662132263184, -0.07631567865610123, 0.09451653063297272, 0.00035171955823898315, -0.3278794288635254, -0.09941506385803223, -0.3226188123226166, -0.19805064797401428, -0.18144047260284424, 0.17103464901447296, 0.0883781835436821, -0.21749919652938843, -0.045586809515953064, 0.395288348197937, -0.3122882544994354, 0.15657144784927368, 0.3260604739189148, 0.018225304782390594, -0.33811303973197937, -0.11882248520851135, -0.128138467669487, 0.33762234449386597, 0.18121863901615143, -0.2216329127550125, -0.42623788118362427, -0.4555666148662567, -0.07907901704311371, -0.370331346988678, 0.302575945854187, 0.08893097192049026, -0.11691763997077942, 0.280956506729126, -0.3825724124908447, -0.21386654675006866, -0.12472154200077057, -0.0012390222400426865, -0.03082786500453949, 0.373820960521698, 0.07366867363452911, 0.17367605865001678, -0.0692528486251831, 0.10603053867816925, 0.013403583317995071, -0.3340771794319153, 0.2569809854030609, 0.027041267603635788, -0.5665547251701355, 0.02651851624250412, 0.12244778871536255, -0.006783895194530487, 0.016816020011901855, 0.45449501276016235, -0.1779249906539917, -0.042925894260406494, 0.49831557273864746, 0.1950368732213974, 0.039895232766866684, 0.29758965969085693, 0.15196223556995392, -0.1790611892938614, 0.377646803855896, 0.16026346385478973, -0.05687140300869942, -0.13450837135314941, -0.11364683508872986, -0.07069238275289536, 0.18111631274223328, 0.06406226754188538, 0.11976834386587143, -0.13770291209220886, -0.11664620041847229, 0.04696529731154442, -0.032321490347385406, 0.24013777077198029, 0.33137068152427673, 0.3093740940093994, -0.05559837073087692, -0.2358308583498001, 0.23331327736377716, 0.16671842336654663, -0.13828885555267334, -0.06039148196578026, 0.0725906491279602, -0.09849965572357178, -0.13131803274154663, 0.0826689600944519, 0.32860738039016724, 0.2563713490962982, 0.27478641271591187, -0.17551182210445404, 0.15285715460777283, 0.023828595876693726, 0.5519110560417175, -0.24586711823940277, 0.11386346071958542, 0.30219796299934387, 0.15453144907951355, -0.23060137033462524, 0.09803986549377441, 0.2813175320625305, -0.037536248564720154, 0.05061019957065582, 0.07994264364242554, -0.38581985235214233, 0.4044839143753052, 0.14399127662181854, -0.19753320515155792, -0.047603536397218704, 0.17821966111660004, 0.07425354421138763, -0.07214777916669846, -0.45193445682525635, 0.18317796289920807, 0.06677757203578949, -0.11934831738471985, -0.054319821298122406, 0.40796345472335815, 0.49361059069633484, -0.4202960133552551, 0.022812165319919586, -0.22172942757606506, 0.01910042017698288, -0.11971476674079895, 0.17130614817142487, -0.279461532831192, 0.1356067806482315, -0.1801663041114807, -0.20793181657791138, 0.24437960982322693, -0.30845558643341064, -0.3225480318069458, 0.4538067877292633, -0.1916147917509079, 0.2314610481262207, 0.31524229049682617, 0.1994497925043106, 0.2296580970287323, -0.033811863511800766, 0.12226610630750656, 0.3941688537597656, -0.24953345954418182, -0.06434554606676102, -0.1496426910161972, -0.19089116156101227, 0.27601876854896545, 0.10591883957386017, 0.23741024732589722, -0.10764497518539429, -0.08614017069339752, -0.29403868317604065, -0.03508055582642555, -0.08320796489715576, 0.20030343532562256, -0.1944313645362854, 0.08566102385520935, 0.07364268600940704, 0.049378566443920135, 0.14119230210781097, -0.46049803495407104, 0.3037669062614441, -0.2521933317184448, 0.07474815845489502, -0.33912742137908936, -0.32415837049484253, 0.23130542039871216, -0.07133319228887558, -0.10314342379570007, -0.3441323935985565, 0.07404391467571259, 0.05124038830399513, -0.10171829164028168, -0.037432726472616196, -0.017398491501808167, 0.024222608655691147, -0.08702250570058823, 0.11350785195827484, 0.15818266570568085, -0.06728853285312653, 0.07443524897098541, 0.09921999275684357, -0.2595794200897217, -0.11183764040470123, -0.018691297620534897, -0.14191938936710358, -0.0033472925424575806, 0.5071067214012146, 0.06701795756816864, 0.4341066777706146, 0.18010593950748444, 0.4344968795776367, 0.10020449012517929, 0.33201825618743896, 0.2241399735212326, 0.029281072318553925, 0.06675868481397629, -0.028143279254436493, -0.5865290760993958, 0.8847307562828064, -0.07729071378707886, 0.4949631690979004, -0.025368228554725647, -0.08966218680143356, 0.25813233852386475, -0.07005869597196579, -0.5748963952064514, -0.08963241428136826, -0.029292240738868713, 0.2472512274980545, 0.12467829883098602, -0.0695687085390091, -0.36455023288726807, 0.130946546792984, 0.06159970909357071, 0.2113250344991684, 0.4444035589694977, -0.2755914032459259, 0.2542673349380493, -0.0863385796546936, 0.4632284641265869, 0.20976227521896362, 0.2965559959411621, 0.25289100408554077, 0.04141148924827576, 0.1776759773492813, -0.07449950277805328, -0.23867392539978027, 0.36420226097106934, 0.15460720658302307, 0.31548061966896057, 0.16001398861408234, 0.082526296377182, -0.1450216919183731, -0.16566704213619232, -0.2701161503791809, 0.14416725933551788, -0.22853153944015503, -0.05243241414427757, 0.31882011890411377, -0.3138051927089691, -0.5460376739501953, -0.03305958956480026, 0.25674644112586975, -0.1731724739074707, -0.12655365467071533, 0.23259739577770233, 0.12153404951095581, -0.3687729239463806, 0.39795029163360596, -0.2202262133359909, 0.4702405333518982, -0.06497297435998917, -0.40428626537323, 0.2372112274169922, -0.37362706661224365, 0.09758931398391724, 0.07270218431949615, 0.24325808882713318, -0.09047739207744598, 0.682811439037323, 0.26522698998451233, -0.06649283319711685, -0.1724991798400879, -0.20482102036476135, 0.18044692277908325, 0.045394040644168854, 0.5188973546028137, 0.141069695353508, 0.09788531064987183, -0.1078776866197586, 0.03929784521460533, 0.26686444878578186, -0.13149294257164001, 0.2002529799938202, -0.10146770626306534, 0.005211304873228073, 0.11611956357955933, -0.24647867679595947, -0.5637350082397461, -0.2847307622432709, -0.2684568762779236, 0.11672686785459518, -0.22225487232208252, 0.2011251151561737, -0.023113276809453964, 0.10018469393253326, -0.05030616372823715, 0.1435735523700714, 0.09952307492494583, -0.03224733844399452, -0.5688082575798035, 0.11398935317993164, -0.16371692717075348, 0.09977690875530243, 0.05809617042541504, -0.011015482246875763, 0.3906190097332001, 0.5869695544242859, -0.4705565571784973, -0.2902960181236267, 0.38954296708106995, 0.2864702045917511, 0.0516616627573967, -0.3373519778251648, 0.6150394082069397, 0.0365743562579155, -0.08801586925983429, -0.08842797577381134, 0.35487452149391174, 0.4860232472419739, -0.18644899129867554, -0.0539083257317543, 0.17913495004177094, 0.7724382877349854, 0.20225585997104645, 0.2877366244792938, -0.16660530865192413, 0.48816293478012085, 0.2260148972272873, 0.1102789044380188, 0.304939329624176, -0.1625727415084839, 0.017958693206310272, 0.20340675115585327, -0.08152163028717041, -0.5336043834686279, 0.07162102311849594, 0.04705515131354332, -0.052730441093444824, -0.3611358404159546, -0.25824517011642456, -0.10325261950492859, -0.3916657865047455, 0.29612496495246887, -0.11279015243053436, 0.4995018243789673, 0.11789633333683014, 0.3723381757736206, -0.21824204921722412, 0.1661282479763031, -0.1418524980545044, 0.15018373727798462, 0.5369585752487183, -0.012885821983218193, -0.17996340990066528, 0.03488713875412941, -0.22274354100227356, 0.2784569263458252, 0.009933792054653168, 0.34172648191452026, -0.03639182448387146, 0.017497599124908447, 0.0015467405319213867, -0.07632867991924286, 0.44631311297416687, -0.11468236893415451, 0.06326872855424881, 0.008159436285495758, -0.2919882833957672, -0.21128490567207336, -0.13052445650100708, -0.04285780340433121, -0.0211983360350132, 0.06499707698822021, 0.19525305926799774, -0.2032025158405304, -0.039048098027706146, -0.318778395652771, 0.13518598675727844, -0.31977421045303345, -0.23671117424964905, 0.023485787212848663, 0.12672153115272522, -0.6222808361053467, 0.4204730689525604, -0.15719732642173767, -0.19054831564426422, -0.24808785319328308, -0.07479505985975266, -0.17830757796764374, 0.4812125563621521, -0.14594964683055878, 0.05651307851076126, 0.14703935384750366, -0.5123634934425354, 0.18588177859783173, 0.11237262189388275, 0.15006639063358307, 0.38386425375938416, 0.04613308236002922, 0.13638310134410858, 0.2845405340194702, 0.06376518309116364, 0.06648458540439606, 0.20517078042030334, 0.4261293113231659, -0.10892775654792786, -0.003009803593158722, 0.1616739183664322, 0.3030039072036743, -0.35880687832832336, -0.3979020118713379, 0.12244630604982376, 0.15586304664611816, 0.03350675478577614, -0.4153931438922882, 0.06711547821760178, 0.046053193509578705, -0.2596213221549988, 0.044562794268131256, 0.15214502811431885, -0.372885525226593, 0.26171448826789856, 0.2630717158317566, 0.9972520470619202, 0.21396183967590332, 0.21799236536026, 0.41700446605682373, 0.2532128691673279, 0.4726443290710449, -0.6332616209983826, 0.2983068525791168, 0.12729255855083466, -0.16704396903514862, -0.14996330440044403, -0.02559024840593338, 0.23217664659023285, 0.09987063705921173, -0.2685554027557373, 0.5433548092842102, -0.07013076543807983, 0.10143402218818665, -0.24331238865852356, -0.029644854366779327, -0.2376532107591629, -0.4036458432674408, -0.2663607597351074, 0.1260659098625183, 0.23340991139411926, -0.010481273755431175, -0.3751177191734314, -0.0689794197678566, 0.19255156815052032, 0.16315102577209473, 0.14545553922653198, 0.07217663526535034, 0.042894888669252396, 0.27666041254997253, -0.4192085266113281, 0.05593852698802948, -0.2763845920562744, 0.10907943546772003, 0.018098317086696625, 0.21089939773082733, -0.2886296808719635, 0.12599536776542664, -0.04192762449383736, 0.11407248675823212, -0.15391723811626434, -0.26681825518608093, 0.37291935086250305, -0.16628801822662354, -0.24871596693992615, -0.22058457136154175, -0.35827067494392395, -0.07715258002281189, 0.25149473547935486, -0.3500300943851471, 0.0939491018652916, -0.06916543841362, 0.06194734200835228, 0.19377562403678894, -0.11830870807170868, -0.21583852171897888, 0.08288004249334335, 0.10984296351671219, -0.047775935381650925, 0.2642476260662079, 0.08337484300136566, -0.029608190059661865, -0.18447332084178925, 0.5224730372428894, -0.012488043867051601, 0.29832175374031067, 0.3291597068309784, 0.17099744081497192, -0.24227283895015717, -0.3916771411895752, -0.11790511012077332, -0.0944124162197113, 0.171348437666893, 0.0689706802368164, 0.0006623156368732452, -0.025470107793807983, 0.058074530214071274, -0.2008400708436966, 0.17662759125232697, -0.0651131123304367, -0.10130364447832108, -0.4263278841972351, -0.09579499065876007, 0.3383995294570923, 0.20188510417938232, 0.09423648566007614, 0.12143006175756454, 0.12856470048427582, 0.03344278782606125, 0.011660726740956306, -0.3435807228088379, -0.19338984787464142, -0.26668792963027954, 0.22160618007183075, -0.011314526200294495, -0.047725990414619446, 0.17747147381305695, -0.015059325844049454, 0.056359484791755676, -0.029219742864370346, -0.253823846578598, -0.16195330023765564, -0.11365518718957901, 0.2258027195930481, -0.14830449223518372, -0.31576377153396606, 0.21605777740478516, -0.4238920211791992, -0.36643579602241516, -0.3153073191642761, 0.09185535460710526, -0.017071284353733063, -0.16778942942619324, -0.4335838854312897, -0.10714134573936462, 0.3017939329147339, -0.22438831627368927, 0.09498864412307739, -0.09777266532182693, -0.27250704169273376, -0.33457550406455994, 0.05389609932899475, -0.07341942191123962, -0.10961491614580154, -0.03956925868988037, 0.10273177921772003, 0.21060365438461304, 0.20557893812656403, 0.46399807929992676, 0.08929774165153503, -0.1204226091504097, 0.16045929491519928, 0.6960185766220093, 0.14337149262428284, 0.1893889456987381, 0.11123047024011612, 0.03070530667901039, 0.21474263072013855, -0.4058089554309845, 0.1708359718322754, -0.2121230959892273, -0.16528023779392242, 0.20117145776748657, 0.21826820075511932, 0.42116838693618774, 0.12281647324562073, 0.21153676509857178, -0.0768139511346817, 0.39609256386756897, -0.3639712929725647, 0.24522893130779266, -0.023213721811771393, -0.04850982502102852, 0.16922082006931305, -0.0433972030878067, 0.10812199115753174, 0.30696171522140503, 0.06820936501026154, -0.26930364966392517, 0.1668250858783722, 0.45572933554649353, 0.20227451622486115, -0.09087595343589783, -0.4782037138938904, -0.1009485125541687, 0.09568238258361816, -0.06034450978040695, 0.02443596161901951, -0.4648663401603699, -0.054251011461019516, -0.33958184719085693, -0.19133992493152618, -0.21458689868450165, 0.602753758430481, -0.3315453827381134, -0.1462773233652115, -0.4204238951206207, -0.43967103958129883, 0.011094853281974792, 0.0038176849484443665, 0.18702666461467743, -0.13848772644996643, -0.1736920177936554, 0.07968717813491821, 0.2774658203125, -0.2712736129760742, 0.09691332280635834, -0.02924550510942936, 0.1431991010904312, -0.3236314356327057, 0.1587519347667694, 0.5755221247673035, 0.0011657364666461945, 0.06278882920742035, 0.28588753938674927, 0.22666199505329132, 0.002276945859193802, -0.1239224225282669, 0.1276148408651352, 0.1615409106016159, 0.05334078520536423, -0.3756062984466553, -0.055949486792087555, -0.016708239912986755, 0.288196325302124, 0.32207757234573364, 0.1017412319779396, -0.04514307528734207, 0.5039827823638916, -0.057403676211833954, -0.33505484461784363, -0.21786297857761383, -0.05982311815023422, 0.4229668080806732, 0.11301763355731964, -0.09612630307674408, -0.018178626894950867, -0.11233401298522949, -0.09170924127101898, 0.2774384617805481, -0.16166779398918152, 0.038800954818725586, 0.01901658996939659, 0.062258072197437286, -0.19175463914871216, 0.5251256227493286, -0.08282503485679626, 0.10014017671346664, -0.35854482650756836, -0.0513545498251915, -0.6031895875930786, -0.23330381512641907, -0.04812794551253319, 0.05082517862319946, -0.12257902324199677, 0.13384482264518738, 0.22453975677490234, 0.15483270585536957, -0.2501182556152344, 0.02487754076719284, 0.1090887039899826, 0.07845699042081833, -0.36835572123527527, 0.03194895759224892, 0.021768465638160706, -0.03491009771823883, 0.14625617861747742, -0.24224013090133667, 0.2108057141304016, -0.1415775716304779, 0.06722825020551682, 0.3073819875717163, 0.024146035313606262, 0.01345660537481308, 0.15584667026996613, 0.7136695981025696, 0.09638743847608566, 0.3541612923145294, 0.0330817773938179, -0.03922588750720024, -0.1355392038822174, 0.006180610507726669, -0.17471472918987274, 0.04170835763216019, 0.04209598898887634, 0.2525860667228699, -0.16777381300926208, -0.13567857444286346, -0.17323368787765503, 0.07975313812494278, -0.05987585335969925, -0.006826143711805344, -0.1402486264705658, -0.12770134210586548, -0.19393405318260193, 0.1754538118839264, -0.08354964852333069, 0.20897319912910461, 0.1280008852481842, 0.2270999252796173, -0.255080908536911, -0.12457427382469177, 0.43263375759124756, -0.09964245557785034, 0.18829700350761414, -0.34960225224494934, 0.20391787588596344, 0.22937627136707306, 0.17083905637264252, -0.07593804597854614, -0.05381520837545395, 0.16046662628650665, -0.030330287292599678, 0.10782352089881897, -0.020900502800941467, 0.053911902010440826, -0.1801203489303589, -0.1716642528772354, 0.20660531520843506, -0.32496416568756104, -0.33783385157585144, -0.280019074678421, -0.24342207610607147 ]
https://github.com/huggingface/datasets/issues/1939
FWIW, I think instant failure on the behalf of a network call is the simplest solution to correctly represent the environment and having the caller to sort it out is the next thing to do, since here it is the case of having no functional network, it's just that the software doesn't know this is the case, because there is some network. So we just need to help it to bail out instantly rather than hang waiting for it to time out. And afterwards everything else you said.
[firewalled env] OFFLINE mode
This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks.
88
[firewalled env] OFFLINE mode This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks. FWIW, I think instant failure on the behalf of a network call is the simplest solution to correctly represent the environment and having the caller to sort it out is the next thing to do, since here it is the case of having no functional network, it's just that the software doesn't know this is the case, because there is some network. So we just need to help it to bail out instantly rather than hang waiting for it to time out. And afterwards everything else you said.
[ -0.4748803675174713, 0.1685332953929901, -0.06255339831113815, 0.10505624115467072, 0.04431166127324104, -0.22849176824092865, 0.4647971987724304, 0.07167980074882507, 0.25459128618240356, 0.04853060096502304, 0.01843962073326111, 0.06361503899097443, 0.08450675755739212, 0.19930414855480194, 0.01809133216738701, 0.10796750336885452, 0.019945114850997925, -0.1096389889717102, -0.2528401017189026, 0.06371643394231796, -0.2635917067527771, -0.053672678768634796, -0.2544519007205963, -0.2575804591178894, 0.07836796343326569, -0.5080999732017517, -0.21687796711921692, -0.01056952215731144, 0.009647846221923828, -0.22755646705627441, 0.308939129114151, 0.26126259565353394, 0.25188642740249634, 0.15301160514354706, -0.0001084151808754541, -0.0537569522857666, -0.1393844336271286, -0.03616767376661301, -0.27288758754730225, 0.022388078272342682, -0.31793373823165894, -0.38024231791496277, 0.16507773101329803, -0.4613102078437805, -0.1713552176952362, -0.17472559213638306, 0.14645598828792572, -0.6594021916389465, 0.5154662132263184, -0.07631567865610123, 0.09451653063297272, 0.00035171955823898315, -0.3278794288635254, -0.09941506385803223, -0.3226188123226166, -0.19805064797401428, -0.18144047260284424, 0.17103464901447296, 0.0883781835436821, -0.21749919652938843, -0.045586809515953064, 0.395288348197937, -0.3122882544994354, 0.15657144784927368, 0.3260604739189148, 0.018225304782390594, -0.33811303973197937, -0.11882248520851135, -0.128138467669487, 0.33762234449386597, 0.18121863901615143, -0.2216329127550125, -0.42623788118362427, -0.4555666148662567, -0.07907901704311371, -0.370331346988678, 0.302575945854187, 0.08893097192049026, -0.11691763997077942, 0.280956506729126, -0.3825724124908447, -0.21386654675006866, -0.12472154200077057, -0.0012390222400426865, -0.03082786500453949, 0.373820960521698, 0.07366867363452911, 0.17367605865001678, -0.0692528486251831, 0.10603053867816925, 0.013403583317995071, -0.3340771794319153, 0.2569809854030609, 0.027041267603635788, -0.5665547251701355, 0.02651851624250412, 0.12244778871536255, -0.006783895194530487, 0.016816020011901855, 0.45449501276016235, -0.1779249906539917, -0.042925894260406494, 0.49831557273864746, 0.1950368732213974, 0.039895232766866684, 0.29758965969085693, 0.15196223556995392, -0.1790611892938614, 0.377646803855896, 0.16026346385478973, -0.05687140300869942, -0.13450837135314941, -0.11364683508872986, -0.07069238275289536, 0.18111631274223328, 0.06406226754188538, 0.11976834386587143, -0.13770291209220886, -0.11664620041847229, 0.04696529731154442, -0.032321490347385406, 0.24013777077198029, 0.33137068152427673, 0.3093740940093994, -0.05559837073087692, -0.2358308583498001, 0.23331327736377716, 0.16671842336654663, -0.13828885555267334, -0.06039148196578026, 0.0725906491279602, -0.09849965572357178, -0.13131803274154663, 0.0826689600944519, 0.32860738039016724, 0.2563713490962982, 0.27478641271591187, -0.17551182210445404, 0.15285715460777283, 0.023828595876693726, 0.5519110560417175, -0.24586711823940277, 0.11386346071958542, 0.30219796299934387, 0.15453144907951355, -0.23060137033462524, 0.09803986549377441, 0.2813175320625305, -0.037536248564720154, 0.05061019957065582, 0.07994264364242554, -0.38581985235214233, 0.4044839143753052, 0.14399127662181854, -0.19753320515155792, -0.047603536397218704, 0.17821966111660004, 0.07425354421138763, -0.07214777916669846, -0.45193445682525635, 0.18317796289920807, 0.06677757203578949, -0.11934831738471985, -0.054319821298122406, 0.40796345472335815, 0.49361059069633484, -0.4202960133552551, 0.022812165319919586, -0.22172942757606506, 0.01910042017698288, -0.11971476674079895, 0.17130614817142487, -0.279461532831192, 0.1356067806482315, -0.1801663041114807, -0.20793181657791138, 0.24437960982322693, -0.30845558643341064, -0.3225480318069458, 0.4538067877292633, -0.1916147917509079, 0.2314610481262207, 0.31524229049682617, 0.1994497925043106, 0.2296580970287323, -0.033811863511800766, 0.12226610630750656, 0.3941688537597656, -0.24953345954418182, -0.06434554606676102, -0.1496426910161972, -0.19089116156101227, 0.27601876854896545, 0.10591883957386017, 0.23741024732589722, -0.10764497518539429, -0.08614017069339752, -0.29403868317604065, -0.03508055582642555, -0.08320796489715576, 0.20030343532562256, -0.1944313645362854, 0.08566102385520935, 0.07364268600940704, 0.049378566443920135, 0.14119230210781097, -0.46049803495407104, 0.3037669062614441, -0.2521933317184448, 0.07474815845489502, -0.33912742137908936, -0.32415837049484253, 0.23130542039871216, -0.07133319228887558, -0.10314342379570007, -0.3441323935985565, 0.07404391467571259, 0.05124038830399513, -0.10171829164028168, -0.037432726472616196, -0.017398491501808167, 0.024222608655691147, -0.08702250570058823, 0.11350785195827484, 0.15818266570568085, -0.06728853285312653, 0.07443524897098541, 0.09921999275684357, -0.2595794200897217, -0.11183764040470123, -0.018691297620534897, -0.14191938936710358, -0.0033472925424575806, 0.5071067214012146, 0.06701795756816864, 0.4341066777706146, 0.18010593950748444, 0.4344968795776367, 0.10020449012517929, 0.33201825618743896, 0.2241399735212326, 0.029281072318553925, 0.06675868481397629, -0.028143279254436493, -0.5865290760993958, 0.8847307562828064, -0.07729071378707886, 0.4949631690979004, -0.025368228554725647, -0.08966218680143356, 0.25813233852386475, -0.07005869597196579, -0.5748963952064514, -0.08963241428136826, -0.029292240738868713, 0.2472512274980545, 0.12467829883098602, -0.0695687085390091, -0.36455023288726807, 0.130946546792984, 0.06159970909357071, 0.2113250344991684, 0.4444035589694977, -0.2755914032459259, 0.2542673349380493, -0.0863385796546936, 0.4632284641265869, 0.20976227521896362, 0.2965559959411621, 0.25289100408554077, 0.04141148924827576, 0.1776759773492813, -0.07449950277805328, -0.23867392539978027, 0.36420226097106934, 0.15460720658302307, 0.31548061966896057, 0.16001398861408234, 0.082526296377182, -0.1450216919183731, -0.16566704213619232, -0.2701161503791809, 0.14416725933551788, -0.22853153944015503, -0.05243241414427757, 0.31882011890411377, -0.3138051927089691, -0.5460376739501953, -0.03305958956480026, 0.25674644112586975, -0.1731724739074707, -0.12655365467071533, 0.23259739577770233, 0.12153404951095581, -0.3687729239463806, 0.39795029163360596, -0.2202262133359909, 0.4702405333518982, -0.06497297435998917, -0.40428626537323, 0.2372112274169922, -0.37362706661224365, 0.09758931398391724, 0.07270218431949615, 0.24325808882713318, -0.09047739207744598, 0.682811439037323, 0.26522698998451233, -0.06649283319711685, -0.1724991798400879, -0.20482102036476135, 0.18044692277908325, 0.045394040644168854, 0.5188973546028137, 0.141069695353508, 0.09788531064987183, -0.1078776866197586, 0.03929784521460533, 0.26686444878578186, -0.13149294257164001, 0.2002529799938202, -0.10146770626306534, 0.005211304873228073, 0.11611956357955933, -0.24647867679595947, -0.5637350082397461, -0.2847307622432709, -0.2684568762779236, 0.11672686785459518, -0.22225487232208252, 0.2011251151561737, -0.023113276809453964, 0.10018469393253326, -0.05030616372823715, 0.1435735523700714, 0.09952307492494583, -0.03224733844399452, -0.5688082575798035, 0.11398935317993164, -0.16371692717075348, 0.09977690875530243, 0.05809617042541504, -0.011015482246875763, 0.3906190097332001, 0.5869695544242859, -0.4705565571784973, -0.2902960181236267, 0.38954296708106995, 0.2864702045917511, 0.0516616627573967, -0.3373519778251648, 0.6150394082069397, 0.0365743562579155, -0.08801586925983429, -0.08842797577381134, 0.35487452149391174, 0.4860232472419739, -0.18644899129867554, -0.0539083257317543, 0.17913495004177094, 0.7724382877349854, 0.20225585997104645, 0.2877366244792938, -0.16660530865192413, 0.48816293478012085, 0.2260148972272873, 0.1102789044380188, 0.304939329624176, -0.1625727415084839, 0.017958693206310272, 0.20340675115585327, -0.08152163028717041, -0.5336043834686279, 0.07162102311849594, 0.04705515131354332, -0.052730441093444824, -0.3611358404159546, -0.25824517011642456, -0.10325261950492859, -0.3916657865047455, 0.29612496495246887, -0.11279015243053436, 0.4995018243789673, 0.11789633333683014, 0.3723381757736206, -0.21824204921722412, 0.1661282479763031, -0.1418524980545044, 0.15018373727798462, 0.5369585752487183, -0.012885821983218193, -0.17996340990066528, 0.03488713875412941, -0.22274354100227356, 0.2784569263458252, 0.009933792054653168, 0.34172648191452026, -0.03639182448387146, 0.017497599124908447, 0.0015467405319213867, -0.07632867991924286, 0.44631311297416687, -0.11468236893415451, 0.06326872855424881, 0.008159436285495758, -0.2919882833957672, -0.21128490567207336, -0.13052445650100708, -0.04285780340433121, -0.0211983360350132, 0.06499707698822021, 0.19525305926799774, -0.2032025158405304, -0.039048098027706146, -0.318778395652771, 0.13518598675727844, -0.31977421045303345, -0.23671117424964905, 0.023485787212848663, 0.12672153115272522, -0.6222808361053467, 0.4204730689525604, -0.15719732642173767, -0.19054831564426422, -0.24808785319328308, -0.07479505985975266, -0.17830757796764374, 0.4812125563621521, -0.14594964683055878, 0.05651307851076126, 0.14703935384750366, -0.5123634934425354, 0.18588177859783173, 0.11237262189388275, 0.15006639063358307, 0.38386425375938416, 0.04613308236002922, 0.13638310134410858, 0.2845405340194702, 0.06376518309116364, 0.06648458540439606, 0.20517078042030334, 0.4261293113231659, -0.10892775654792786, -0.003009803593158722, 0.1616739183664322, 0.3030039072036743, -0.35880687832832336, -0.3979020118713379, 0.12244630604982376, 0.15586304664611816, 0.03350675478577614, -0.4153931438922882, 0.06711547821760178, 0.046053193509578705, -0.2596213221549988, 0.044562794268131256, 0.15214502811431885, -0.372885525226593, 0.26171448826789856, 0.2630717158317566, 0.9972520470619202, 0.21396183967590332, 0.21799236536026, 0.41700446605682373, 0.2532128691673279, 0.4726443290710449, -0.6332616209983826, 0.2983068525791168, 0.12729255855083466, -0.16704396903514862, -0.14996330440044403, -0.02559024840593338, 0.23217664659023285, 0.09987063705921173, -0.2685554027557373, 0.5433548092842102, -0.07013076543807983, 0.10143402218818665, -0.24331238865852356, -0.029644854366779327, -0.2376532107591629, -0.4036458432674408, -0.2663607597351074, 0.1260659098625183, 0.23340991139411926, -0.010481273755431175, -0.3751177191734314, -0.0689794197678566, 0.19255156815052032, 0.16315102577209473, 0.14545553922653198, 0.07217663526535034, 0.042894888669252396, 0.27666041254997253, -0.4192085266113281, 0.05593852698802948, -0.2763845920562744, 0.10907943546772003, 0.018098317086696625, 0.21089939773082733, -0.2886296808719635, 0.12599536776542664, -0.04192762449383736, 0.11407248675823212, -0.15391723811626434, -0.26681825518608093, 0.37291935086250305, -0.16628801822662354, -0.24871596693992615, -0.22058457136154175, -0.35827067494392395, -0.07715258002281189, 0.25149473547935486, -0.3500300943851471, 0.0939491018652916, -0.06916543841362, 0.06194734200835228, 0.19377562403678894, -0.11830870807170868, -0.21583852171897888, 0.08288004249334335, 0.10984296351671219, -0.047775935381650925, 0.2642476260662079, 0.08337484300136566, -0.029608190059661865, -0.18447332084178925, 0.5224730372428894, -0.012488043867051601, 0.29832175374031067, 0.3291597068309784, 0.17099744081497192, -0.24227283895015717, -0.3916771411895752, -0.11790511012077332, -0.0944124162197113, 0.171348437666893, 0.0689706802368164, 0.0006623156368732452, -0.025470107793807983, 0.058074530214071274, -0.2008400708436966, 0.17662759125232697, -0.0651131123304367, -0.10130364447832108, -0.4263278841972351, -0.09579499065876007, 0.3383995294570923, 0.20188510417938232, 0.09423648566007614, 0.12143006175756454, 0.12856470048427582, 0.03344278782606125, 0.011660726740956306, -0.3435807228088379, -0.19338984787464142, -0.26668792963027954, 0.22160618007183075, -0.011314526200294495, -0.047725990414619446, 0.17747147381305695, -0.015059325844049454, 0.056359484791755676, -0.029219742864370346, -0.253823846578598, -0.16195330023765564, -0.11365518718957901, 0.2258027195930481, -0.14830449223518372, -0.31576377153396606, 0.21605777740478516, -0.4238920211791992, -0.36643579602241516, -0.3153073191642761, 0.09185535460710526, -0.017071284353733063, -0.16778942942619324, -0.4335838854312897, -0.10714134573936462, 0.3017939329147339, -0.22438831627368927, 0.09498864412307739, -0.09777266532182693, -0.27250704169273376, -0.33457550406455994, 0.05389609932899475, -0.07341942191123962, -0.10961491614580154, -0.03956925868988037, 0.10273177921772003, 0.21060365438461304, 0.20557893812656403, 0.46399807929992676, 0.08929774165153503, -0.1204226091504097, 0.16045929491519928, 0.6960185766220093, 0.14337149262428284, 0.1893889456987381, 0.11123047024011612, 0.03070530667901039, 0.21474263072013855, -0.4058089554309845, 0.1708359718322754, -0.2121230959892273, -0.16528023779392242, 0.20117145776748657, 0.21826820075511932, 0.42116838693618774, 0.12281647324562073, 0.21153676509857178, -0.0768139511346817, 0.39609256386756897, -0.3639712929725647, 0.24522893130779266, -0.023213721811771393, -0.04850982502102852, 0.16922082006931305, -0.0433972030878067, 0.10812199115753174, 0.30696171522140503, 0.06820936501026154, -0.26930364966392517, 0.1668250858783722, 0.45572933554649353, 0.20227451622486115, -0.09087595343589783, -0.4782037138938904, -0.1009485125541687, 0.09568238258361816, -0.06034450978040695, 0.02443596161901951, -0.4648663401603699, -0.054251011461019516, -0.33958184719085693, -0.19133992493152618, -0.21458689868450165, 0.602753758430481, -0.3315453827381134, -0.1462773233652115, -0.4204238951206207, -0.43967103958129883, 0.011094853281974792, 0.0038176849484443665, 0.18702666461467743, -0.13848772644996643, -0.1736920177936554, 0.07968717813491821, 0.2774658203125, -0.2712736129760742, 0.09691332280635834, -0.02924550510942936, 0.1431991010904312, -0.3236314356327057, 0.1587519347667694, 0.5755221247673035, 0.0011657364666461945, 0.06278882920742035, 0.28588753938674927, 0.22666199505329132, 0.002276945859193802, -0.1239224225282669, 0.1276148408651352, 0.1615409106016159, 0.05334078520536423, -0.3756062984466553, -0.055949486792087555, -0.016708239912986755, 0.288196325302124, 0.32207757234573364, 0.1017412319779396, -0.04514307528734207, 0.5039827823638916, -0.057403676211833954, -0.33505484461784363, -0.21786297857761383, -0.05982311815023422, 0.4229668080806732, 0.11301763355731964, -0.09612630307674408, -0.018178626894950867, -0.11233401298522949, -0.09170924127101898, 0.2774384617805481, -0.16166779398918152, 0.038800954818725586, 0.01901658996939659, 0.062258072197437286, -0.19175463914871216, 0.5251256227493286, -0.08282503485679626, 0.10014017671346664, -0.35854482650756836, -0.0513545498251915, -0.6031895875930786, -0.23330381512641907, -0.04812794551253319, 0.05082517862319946, -0.12257902324199677, 0.13384482264518738, 0.22453975677490234, 0.15483270585536957, -0.2501182556152344, 0.02487754076719284, 0.1090887039899826, 0.07845699042081833, -0.36835572123527527, 0.03194895759224892, 0.021768465638160706, -0.03491009771823883, 0.14625617861747742, -0.24224013090133667, 0.2108057141304016, -0.1415775716304779, 0.06722825020551682, 0.3073819875717163, 0.024146035313606262, 0.01345660537481308, 0.15584667026996613, 0.7136695981025696, 0.09638743847608566, 0.3541612923145294, 0.0330817773938179, -0.03922588750720024, -0.1355392038822174, 0.006180610507726669, -0.17471472918987274, 0.04170835763216019, 0.04209598898887634, 0.2525860667228699, -0.16777381300926208, -0.13567857444286346, -0.17323368787765503, 0.07975313812494278, -0.05987585335969925, -0.006826143711805344, -0.1402486264705658, -0.12770134210586548, -0.19393405318260193, 0.1754538118839264, -0.08354964852333069, 0.20897319912910461, 0.1280008852481842, 0.2270999252796173, -0.255080908536911, -0.12457427382469177, 0.43263375759124756, -0.09964245557785034, 0.18829700350761414, -0.34960225224494934, 0.20391787588596344, 0.22937627136707306, 0.17083905637264252, -0.07593804597854614, -0.05381520837545395, 0.16046662628650665, -0.030330287292599678, 0.10782352089881897, -0.020900502800941467, 0.053911902010440826, -0.1801203489303589, -0.1716642528772354, 0.20660531520843506, -0.32496416568756104, -0.33783385157585144, -0.280019074678421, -0.24342207610607147 ]
https://github.com/huggingface/datasets/issues/1939
Update on this: I managed to create a mock environment for tests that makes the connections hang until timeout. I managed to reproduce the issue you're having in this environment. I'll update the offline test cases to also test the robustness to connection hangings, and make sure we set proper timeouts where it's needed in the code. This should cover the _automatic_ section you mentioned.
[firewalled env] OFFLINE mode
This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks.
65
[firewalled env] OFFLINE mode This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks. Update on this: I managed to create a mock environment for tests that makes the connections hang until timeout. I managed to reproduce the issue you're having in this environment. I'll update the offline test cases to also test the robustness to connection hangings, and make sure we set proper timeouts where it's needed in the code. This should cover the _automatic_ section you mentioned.
[ -0.4748803675174713, 0.1685332953929901, -0.06255339831113815, 0.10505624115467072, 0.04431166127324104, -0.22849176824092865, 0.4647971987724304, 0.07167980074882507, 0.25459128618240356, 0.04853060096502304, 0.01843962073326111, 0.06361503899097443, 0.08450675755739212, 0.19930414855480194, 0.01809133216738701, 0.10796750336885452, 0.019945114850997925, -0.1096389889717102, -0.2528401017189026, 0.06371643394231796, -0.2635917067527771, -0.053672678768634796, -0.2544519007205963, -0.2575804591178894, 0.07836796343326569, -0.5080999732017517, -0.21687796711921692, -0.01056952215731144, 0.009647846221923828, -0.22755646705627441, 0.308939129114151, 0.26126259565353394, 0.25188642740249634, 0.15301160514354706, -0.0001084151808754541, -0.0537569522857666, -0.1393844336271286, -0.03616767376661301, -0.27288758754730225, 0.022388078272342682, -0.31793373823165894, -0.38024231791496277, 0.16507773101329803, -0.4613102078437805, -0.1713552176952362, -0.17472559213638306, 0.14645598828792572, -0.6594021916389465, 0.5154662132263184, -0.07631567865610123, 0.09451653063297272, 0.00035171955823898315, -0.3278794288635254, -0.09941506385803223, -0.3226188123226166, -0.19805064797401428, -0.18144047260284424, 0.17103464901447296, 0.0883781835436821, -0.21749919652938843, -0.045586809515953064, 0.395288348197937, -0.3122882544994354, 0.15657144784927368, 0.3260604739189148, 0.018225304782390594, -0.33811303973197937, -0.11882248520851135, -0.128138467669487, 0.33762234449386597, 0.18121863901615143, -0.2216329127550125, -0.42623788118362427, -0.4555666148662567, -0.07907901704311371, -0.370331346988678, 0.302575945854187, 0.08893097192049026, -0.11691763997077942, 0.280956506729126, -0.3825724124908447, -0.21386654675006866, -0.12472154200077057, -0.0012390222400426865, -0.03082786500453949, 0.373820960521698, 0.07366867363452911, 0.17367605865001678, -0.0692528486251831, 0.10603053867816925, 0.013403583317995071, -0.3340771794319153, 0.2569809854030609, 0.027041267603635788, -0.5665547251701355, 0.02651851624250412, 0.12244778871536255, -0.006783895194530487, 0.016816020011901855, 0.45449501276016235, -0.1779249906539917, -0.042925894260406494, 0.49831557273864746, 0.1950368732213974, 0.039895232766866684, 0.29758965969085693, 0.15196223556995392, -0.1790611892938614, 0.377646803855896, 0.16026346385478973, -0.05687140300869942, -0.13450837135314941, -0.11364683508872986, -0.07069238275289536, 0.18111631274223328, 0.06406226754188538, 0.11976834386587143, -0.13770291209220886, -0.11664620041847229, 0.04696529731154442, -0.032321490347385406, 0.24013777077198029, 0.33137068152427673, 0.3093740940093994, -0.05559837073087692, -0.2358308583498001, 0.23331327736377716, 0.16671842336654663, -0.13828885555267334, -0.06039148196578026, 0.0725906491279602, -0.09849965572357178, -0.13131803274154663, 0.0826689600944519, 0.32860738039016724, 0.2563713490962982, 0.27478641271591187, -0.17551182210445404, 0.15285715460777283, 0.023828595876693726, 0.5519110560417175, -0.24586711823940277, 0.11386346071958542, 0.30219796299934387, 0.15453144907951355, -0.23060137033462524, 0.09803986549377441, 0.2813175320625305, -0.037536248564720154, 0.05061019957065582, 0.07994264364242554, -0.38581985235214233, 0.4044839143753052, 0.14399127662181854, -0.19753320515155792, -0.047603536397218704, 0.17821966111660004, 0.07425354421138763, -0.07214777916669846, -0.45193445682525635, 0.18317796289920807, 0.06677757203578949, -0.11934831738471985, -0.054319821298122406, 0.40796345472335815, 0.49361059069633484, -0.4202960133552551, 0.022812165319919586, -0.22172942757606506, 0.01910042017698288, -0.11971476674079895, 0.17130614817142487, -0.279461532831192, 0.1356067806482315, -0.1801663041114807, -0.20793181657791138, 0.24437960982322693, -0.30845558643341064, -0.3225480318069458, 0.4538067877292633, -0.1916147917509079, 0.2314610481262207, 0.31524229049682617, 0.1994497925043106, 0.2296580970287323, -0.033811863511800766, 0.12226610630750656, 0.3941688537597656, -0.24953345954418182, -0.06434554606676102, -0.1496426910161972, -0.19089116156101227, 0.27601876854896545, 0.10591883957386017, 0.23741024732589722, -0.10764497518539429, -0.08614017069339752, -0.29403868317604065, -0.03508055582642555, -0.08320796489715576, 0.20030343532562256, -0.1944313645362854, 0.08566102385520935, 0.07364268600940704, 0.049378566443920135, 0.14119230210781097, -0.46049803495407104, 0.3037669062614441, -0.2521933317184448, 0.07474815845489502, -0.33912742137908936, -0.32415837049484253, 0.23130542039871216, -0.07133319228887558, -0.10314342379570007, -0.3441323935985565, 0.07404391467571259, 0.05124038830399513, -0.10171829164028168, -0.037432726472616196, -0.017398491501808167, 0.024222608655691147, -0.08702250570058823, 0.11350785195827484, 0.15818266570568085, -0.06728853285312653, 0.07443524897098541, 0.09921999275684357, -0.2595794200897217, -0.11183764040470123, -0.018691297620534897, -0.14191938936710358, -0.0033472925424575806, 0.5071067214012146, 0.06701795756816864, 0.4341066777706146, 0.18010593950748444, 0.4344968795776367, 0.10020449012517929, 0.33201825618743896, 0.2241399735212326, 0.029281072318553925, 0.06675868481397629, -0.028143279254436493, -0.5865290760993958, 0.8847307562828064, -0.07729071378707886, 0.4949631690979004, -0.025368228554725647, -0.08966218680143356, 0.25813233852386475, -0.07005869597196579, -0.5748963952064514, -0.08963241428136826, -0.029292240738868713, 0.2472512274980545, 0.12467829883098602, -0.0695687085390091, -0.36455023288726807, 0.130946546792984, 0.06159970909357071, 0.2113250344991684, 0.4444035589694977, -0.2755914032459259, 0.2542673349380493, -0.0863385796546936, 0.4632284641265869, 0.20976227521896362, 0.2965559959411621, 0.25289100408554077, 0.04141148924827576, 0.1776759773492813, -0.07449950277805328, -0.23867392539978027, 0.36420226097106934, 0.15460720658302307, 0.31548061966896057, 0.16001398861408234, 0.082526296377182, -0.1450216919183731, -0.16566704213619232, -0.2701161503791809, 0.14416725933551788, -0.22853153944015503, -0.05243241414427757, 0.31882011890411377, -0.3138051927089691, -0.5460376739501953, -0.03305958956480026, 0.25674644112586975, -0.1731724739074707, -0.12655365467071533, 0.23259739577770233, 0.12153404951095581, -0.3687729239463806, 0.39795029163360596, -0.2202262133359909, 0.4702405333518982, -0.06497297435998917, -0.40428626537323, 0.2372112274169922, -0.37362706661224365, 0.09758931398391724, 0.07270218431949615, 0.24325808882713318, -0.09047739207744598, 0.682811439037323, 0.26522698998451233, -0.06649283319711685, -0.1724991798400879, -0.20482102036476135, 0.18044692277908325, 0.045394040644168854, 0.5188973546028137, 0.141069695353508, 0.09788531064987183, -0.1078776866197586, 0.03929784521460533, 0.26686444878578186, -0.13149294257164001, 0.2002529799938202, -0.10146770626306534, 0.005211304873228073, 0.11611956357955933, -0.24647867679595947, -0.5637350082397461, -0.2847307622432709, -0.2684568762779236, 0.11672686785459518, -0.22225487232208252, 0.2011251151561737, -0.023113276809453964, 0.10018469393253326, -0.05030616372823715, 0.1435735523700714, 0.09952307492494583, -0.03224733844399452, -0.5688082575798035, 0.11398935317993164, -0.16371692717075348, 0.09977690875530243, 0.05809617042541504, -0.011015482246875763, 0.3906190097332001, 0.5869695544242859, -0.4705565571784973, -0.2902960181236267, 0.38954296708106995, 0.2864702045917511, 0.0516616627573967, -0.3373519778251648, 0.6150394082069397, 0.0365743562579155, -0.08801586925983429, -0.08842797577381134, 0.35487452149391174, 0.4860232472419739, -0.18644899129867554, -0.0539083257317543, 0.17913495004177094, 0.7724382877349854, 0.20225585997104645, 0.2877366244792938, -0.16660530865192413, 0.48816293478012085, 0.2260148972272873, 0.1102789044380188, 0.304939329624176, -0.1625727415084839, 0.017958693206310272, 0.20340675115585327, -0.08152163028717041, -0.5336043834686279, 0.07162102311849594, 0.04705515131354332, -0.052730441093444824, -0.3611358404159546, -0.25824517011642456, -0.10325261950492859, -0.3916657865047455, 0.29612496495246887, -0.11279015243053436, 0.4995018243789673, 0.11789633333683014, 0.3723381757736206, -0.21824204921722412, 0.1661282479763031, -0.1418524980545044, 0.15018373727798462, 0.5369585752487183, -0.012885821983218193, -0.17996340990066528, 0.03488713875412941, -0.22274354100227356, 0.2784569263458252, 0.009933792054653168, 0.34172648191452026, -0.03639182448387146, 0.017497599124908447, 0.0015467405319213867, -0.07632867991924286, 0.44631311297416687, -0.11468236893415451, 0.06326872855424881, 0.008159436285495758, -0.2919882833957672, -0.21128490567207336, -0.13052445650100708, -0.04285780340433121, -0.0211983360350132, 0.06499707698822021, 0.19525305926799774, -0.2032025158405304, -0.039048098027706146, -0.318778395652771, 0.13518598675727844, -0.31977421045303345, -0.23671117424964905, 0.023485787212848663, 0.12672153115272522, -0.6222808361053467, 0.4204730689525604, -0.15719732642173767, -0.19054831564426422, -0.24808785319328308, -0.07479505985975266, -0.17830757796764374, 0.4812125563621521, -0.14594964683055878, 0.05651307851076126, 0.14703935384750366, -0.5123634934425354, 0.18588177859783173, 0.11237262189388275, 0.15006639063358307, 0.38386425375938416, 0.04613308236002922, 0.13638310134410858, 0.2845405340194702, 0.06376518309116364, 0.06648458540439606, 0.20517078042030334, 0.4261293113231659, -0.10892775654792786, -0.003009803593158722, 0.1616739183664322, 0.3030039072036743, -0.35880687832832336, -0.3979020118713379, 0.12244630604982376, 0.15586304664611816, 0.03350675478577614, -0.4153931438922882, 0.06711547821760178, 0.046053193509578705, -0.2596213221549988, 0.044562794268131256, 0.15214502811431885, -0.372885525226593, 0.26171448826789856, 0.2630717158317566, 0.9972520470619202, 0.21396183967590332, 0.21799236536026, 0.41700446605682373, 0.2532128691673279, 0.4726443290710449, -0.6332616209983826, 0.2983068525791168, 0.12729255855083466, -0.16704396903514862, -0.14996330440044403, -0.02559024840593338, 0.23217664659023285, 0.09987063705921173, -0.2685554027557373, 0.5433548092842102, -0.07013076543807983, 0.10143402218818665, -0.24331238865852356, -0.029644854366779327, -0.2376532107591629, -0.4036458432674408, -0.2663607597351074, 0.1260659098625183, 0.23340991139411926, -0.010481273755431175, -0.3751177191734314, -0.0689794197678566, 0.19255156815052032, 0.16315102577209473, 0.14545553922653198, 0.07217663526535034, 0.042894888669252396, 0.27666041254997253, -0.4192085266113281, 0.05593852698802948, -0.2763845920562744, 0.10907943546772003, 0.018098317086696625, 0.21089939773082733, -0.2886296808719635, 0.12599536776542664, -0.04192762449383736, 0.11407248675823212, -0.15391723811626434, -0.26681825518608093, 0.37291935086250305, -0.16628801822662354, -0.24871596693992615, -0.22058457136154175, -0.35827067494392395, -0.07715258002281189, 0.25149473547935486, -0.3500300943851471, 0.0939491018652916, -0.06916543841362, 0.06194734200835228, 0.19377562403678894, -0.11830870807170868, -0.21583852171897888, 0.08288004249334335, 0.10984296351671219, -0.047775935381650925, 0.2642476260662079, 0.08337484300136566, -0.029608190059661865, -0.18447332084178925, 0.5224730372428894, -0.012488043867051601, 0.29832175374031067, 0.3291597068309784, 0.17099744081497192, -0.24227283895015717, -0.3916771411895752, -0.11790511012077332, -0.0944124162197113, 0.171348437666893, 0.0689706802368164, 0.0006623156368732452, -0.025470107793807983, 0.058074530214071274, -0.2008400708436966, 0.17662759125232697, -0.0651131123304367, -0.10130364447832108, -0.4263278841972351, -0.09579499065876007, 0.3383995294570923, 0.20188510417938232, 0.09423648566007614, 0.12143006175756454, 0.12856470048427582, 0.03344278782606125, 0.011660726740956306, -0.3435807228088379, -0.19338984787464142, -0.26668792963027954, 0.22160618007183075, -0.011314526200294495, -0.047725990414619446, 0.17747147381305695, -0.015059325844049454, 0.056359484791755676, -0.029219742864370346, -0.253823846578598, -0.16195330023765564, -0.11365518718957901, 0.2258027195930481, -0.14830449223518372, -0.31576377153396606, 0.21605777740478516, -0.4238920211791992, -0.36643579602241516, -0.3153073191642761, 0.09185535460710526, -0.017071284353733063, -0.16778942942619324, -0.4335838854312897, -0.10714134573936462, 0.3017939329147339, -0.22438831627368927, 0.09498864412307739, -0.09777266532182693, -0.27250704169273376, -0.33457550406455994, 0.05389609932899475, -0.07341942191123962, -0.10961491614580154, -0.03956925868988037, 0.10273177921772003, 0.21060365438461304, 0.20557893812656403, 0.46399807929992676, 0.08929774165153503, -0.1204226091504097, 0.16045929491519928, 0.6960185766220093, 0.14337149262428284, 0.1893889456987381, 0.11123047024011612, 0.03070530667901039, 0.21474263072013855, -0.4058089554309845, 0.1708359718322754, -0.2121230959892273, -0.16528023779392242, 0.20117145776748657, 0.21826820075511932, 0.42116838693618774, 0.12281647324562073, 0.21153676509857178, -0.0768139511346817, 0.39609256386756897, -0.3639712929725647, 0.24522893130779266, -0.023213721811771393, -0.04850982502102852, 0.16922082006931305, -0.0433972030878067, 0.10812199115753174, 0.30696171522140503, 0.06820936501026154, -0.26930364966392517, 0.1668250858783722, 0.45572933554649353, 0.20227451622486115, -0.09087595343589783, -0.4782037138938904, -0.1009485125541687, 0.09568238258361816, -0.06034450978040695, 0.02443596161901951, -0.4648663401603699, -0.054251011461019516, -0.33958184719085693, -0.19133992493152618, -0.21458689868450165, 0.602753758430481, -0.3315453827381134, -0.1462773233652115, -0.4204238951206207, -0.43967103958129883, 0.011094853281974792, 0.0038176849484443665, 0.18702666461467743, -0.13848772644996643, -0.1736920177936554, 0.07968717813491821, 0.2774658203125, -0.2712736129760742, 0.09691332280635834, -0.02924550510942936, 0.1431991010904312, -0.3236314356327057, 0.1587519347667694, 0.5755221247673035, 0.0011657364666461945, 0.06278882920742035, 0.28588753938674927, 0.22666199505329132, 0.002276945859193802, -0.1239224225282669, 0.1276148408651352, 0.1615409106016159, 0.05334078520536423, -0.3756062984466553, -0.055949486792087555, -0.016708239912986755, 0.288196325302124, 0.32207757234573364, 0.1017412319779396, -0.04514307528734207, 0.5039827823638916, -0.057403676211833954, -0.33505484461784363, -0.21786297857761383, -0.05982311815023422, 0.4229668080806732, 0.11301763355731964, -0.09612630307674408, -0.018178626894950867, -0.11233401298522949, -0.09170924127101898, 0.2774384617805481, -0.16166779398918152, 0.038800954818725586, 0.01901658996939659, 0.062258072197437286, -0.19175463914871216, 0.5251256227493286, -0.08282503485679626, 0.10014017671346664, -0.35854482650756836, -0.0513545498251915, -0.6031895875930786, -0.23330381512641907, -0.04812794551253319, 0.05082517862319946, -0.12257902324199677, 0.13384482264518738, 0.22453975677490234, 0.15483270585536957, -0.2501182556152344, 0.02487754076719284, 0.1090887039899826, 0.07845699042081833, -0.36835572123527527, 0.03194895759224892, 0.021768465638160706, -0.03491009771823883, 0.14625617861747742, -0.24224013090133667, 0.2108057141304016, -0.1415775716304779, 0.06722825020551682, 0.3073819875717163, 0.024146035313606262, 0.01345660537481308, 0.15584667026996613, 0.7136695981025696, 0.09638743847608566, 0.3541612923145294, 0.0330817773938179, -0.03922588750720024, -0.1355392038822174, 0.006180610507726669, -0.17471472918987274, 0.04170835763216019, 0.04209598898887634, 0.2525860667228699, -0.16777381300926208, -0.13567857444286346, -0.17323368787765503, 0.07975313812494278, -0.05987585335969925, -0.006826143711805344, -0.1402486264705658, -0.12770134210586548, -0.19393405318260193, 0.1754538118839264, -0.08354964852333069, 0.20897319912910461, 0.1280008852481842, 0.2270999252796173, -0.255080908536911, -0.12457427382469177, 0.43263375759124756, -0.09964245557785034, 0.18829700350761414, -0.34960225224494934, 0.20391787588596344, 0.22937627136707306, 0.17083905637264252, -0.07593804597854614, -0.05381520837545395, 0.16046662628650665, -0.030330287292599678, 0.10782352089881897, -0.020900502800941467, 0.053911902010440826, -0.1801203489303589, -0.1716642528772354, 0.20660531520843506, -0.32496416568756104, -0.33783385157585144, -0.280019074678421, -0.24342207610607147 ]
https://github.com/huggingface/datasets/issues/1939
I lost access to the firewalled setup, but I emulated it with: ``` sudo ufw enable sudo ufw default deny outgoing ``` (thanks @mfuntowicz) I was able to test `HF_DATASETS_OFFLINE=1` and it worked great - i.e. didn't try to reach out with it and used the cached files instead. Thank you!
[firewalled env] OFFLINE mode
This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks.
51
[firewalled env] OFFLINE mode This issue comes from a need to be able to run `datasets` in a firewalled env, which currently makes the software hang until it times out, as it's unable to complete the network calls. I propose the following approach to solving this problem, using the example of `run_seq2seq.py` as a sample program. There are 2 possible ways to going about it. ## 1. Manual manually prepare data and metrics files, that is transfer to the firewalled instance the dataset and the metrics and run: ``` DATASETS_OFFLINE=1 run_seq2seq.py --train_file xyz.csv --validation_file xyz.csv ... ``` `datasets` must not make any network calls and if there is a logic to do that and something is missing it should assert that this or that action requires network and therefore it can't proceed. ## 2. Automatic In some clouds one can prepare a datastorage ahead of time with a normal networked environment but which doesn't have gpus and then one switches to the gpu instance which is firewalled, but it can access all the cached data. This is the ideal situation, since in this scenario we don't have to do anything manually, but simply run the same application twice: 1. on the non-firewalled instance: ``` run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` which should download and cached everything. 2. and then immediately after on the firewalled instance, which shares the same filesystem ``` DATASETS_OFFLINE=1 run_seq2seq.py --dataset_name wmt16 --dataset_config ro-en ... ``` and the metrics and datasets should be cached by the invocation number 1 and any network calls be skipped and if the logic is missing data it should assert and not try to fetch any data from online. ## Common Issues 1. for example currently `datasets` tries to look up online datasets if the files contain json or csv, despite the paths already provided ``` if dataset and path in _PACKAGED_DATASETS_MODULES: ``` 2. it has an issue with metrics. e.g. I had to manually copy `rouge/rouge.py` from the `datasets` repo to the current dir - or it was hanging. I had to comment out `head_hf_s3(...)` calls to make things work. So all those `try: head_hf_s3(...)` shouldn't be tried with `DATASETS_OFFLINE=1` Here is the corresponding issue for `transformers`: https://github.com/huggingface/transformers/issues/10379 Thanks. I lost access to the firewalled setup, but I emulated it with: ``` sudo ufw enable sudo ufw default deny outgoing ``` (thanks @mfuntowicz) I was able to test `HF_DATASETS_OFFLINE=1` and it worked great - i.e. didn't try to reach out with it and used the cached files instead. Thank you!
[ -0.4748803675174713, 0.1685332953929901, -0.06255339831113815, 0.10505624115467072, 0.04431166127324104, -0.22849176824092865, 0.4647971987724304, 0.07167980074882507, 0.25459128618240356, 0.04853060096502304, 0.01843962073326111, 0.06361503899097443, 0.08450675755739212, 0.19930414855480194, 0.01809133216738701, 0.10796750336885452, 0.019945114850997925, -0.1096389889717102, -0.2528401017189026, 0.06371643394231796, -0.2635917067527771, -0.053672678768634796, -0.2544519007205963, -0.2575804591178894, 0.07836796343326569, -0.5080999732017517, -0.21687796711921692, -0.01056952215731144, 0.009647846221923828, -0.22755646705627441, 0.308939129114151, 0.26126259565353394, 0.25188642740249634, 0.15301160514354706, -0.0001084151808754541, -0.0537569522857666, -0.1393844336271286, -0.03616767376661301, -0.27288758754730225, 0.022388078272342682, -0.31793373823165894, -0.38024231791496277, 0.16507773101329803, -0.4613102078437805, -0.1713552176952362, -0.17472559213638306, 0.14645598828792572, -0.6594021916389465, 0.5154662132263184, -0.07631567865610123, 0.09451653063297272, 0.00035171955823898315, -0.3278794288635254, -0.09941506385803223, -0.3226188123226166, -0.19805064797401428, -0.18144047260284424, 0.17103464901447296, 0.0883781835436821, -0.21749919652938843, -0.045586809515953064, 0.395288348197937, -0.3122882544994354, 0.15657144784927368, 0.3260604739189148, 0.018225304782390594, -0.33811303973197937, -0.11882248520851135, -0.128138467669487, 0.33762234449386597, 0.18121863901615143, -0.2216329127550125, -0.42623788118362427, -0.4555666148662567, -0.07907901704311371, -0.370331346988678, 0.302575945854187, 0.08893097192049026, -0.11691763997077942, 0.280956506729126, -0.3825724124908447, -0.21386654675006866, -0.12472154200077057, -0.0012390222400426865, -0.03082786500453949, 0.373820960521698, 0.07366867363452911, 0.17367605865001678, -0.0692528486251831, 0.10603053867816925, 0.013403583317995071, -0.3340771794319153, 0.2569809854030609, 0.027041267603635788, -0.5665547251701355, 0.02651851624250412, 0.12244778871536255, -0.006783895194530487, 0.016816020011901855, 0.45449501276016235, -0.1779249906539917, -0.042925894260406494, 0.49831557273864746, 0.1950368732213974, 0.039895232766866684, 0.29758965969085693, 0.15196223556995392, -0.1790611892938614, 0.377646803855896, 0.16026346385478973, -0.05687140300869942, -0.13450837135314941, -0.11364683508872986, -0.07069238275289536, 0.18111631274223328, 0.06406226754188538, 0.11976834386587143, -0.13770291209220886, -0.11664620041847229, 0.04696529731154442, -0.032321490347385406, 0.24013777077198029, 0.33137068152427673, 0.3093740940093994, -0.05559837073087692, -0.2358308583498001, 0.23331327736377716, 0.16671842336654663, -0.13828885555267334, -0.06039148196578026, 0.0725906491279602, -0.09849965572357178, -0.13131803274154663, 0.0826689600944519, 0.32860738039016724, 0.2563713490962982, 0.27478641271591187, -0.17551182210445404, 0.15285715460777283, 0.023828595876693726, 0.5519110560417175, -0.24586711823940277, 0.11386346071958542, 0.30219796299934387, 0.15453144907951355, -0.23060137033462524, 0.09803986549377441, 0.2813175320625305, -0.037536248564720154, 0.05061019957065582, 0.07994264364242554, -0.38581985235214233, 0.4044839143753052, 0.14399127662181854, -0.19753320515155792, -0.047603536397218704, 0.17821966111660004, 0.07425354421138763, -0.07214777916669846, -0.45193445682525635, 0.18317796289920807, 0.06677757203578949, -0.11934831738471985, -0.054319821298122406, 0.40796345472335815, 0.49361059069633484, -0.4202960133552551, 0.022812165319919586, -0.22172942757606506, 0.01910042017698288, -0.11971476674079895, 0.17130614817142487, -0.279461532831192, 0.1356067806482315, -0.1801663041114807, -0.20793181657791138, 0.24437960982322693, -0.30845558643341064, -0.3225480318069458, 0.4538067877292633, -0.1916147917509079, 0.2314610481262207, 0.31524229049682617, 0.1994497925043106, 0.2296580970287323, -0.033811863511800766, 0.12226610630750656, 0.3941688537597656, -0.24953345954418182, -0.06434554606676102, -0.1496426910161972, -0.19089116156101227, 0.27601876854896545, 0.10591883957386017, 0.23741024732589722, -0.10764497518539429, -0.08614017069339752, -0.29403868317604065, -0.03508055582642555, -0.08320796489715576, 0.20030343532562256, -0.1944313645362854, 0.08566102385520935, 0.07364268600940704, 0.049378566443920135, 0.14119230210781097, -0.46049803495407104, 0.3037669062614441, -0.2521933317184448, 0.07474815845489502, -0.33912742137908936, -0.32415837049484253, 0.23130542039871216, -0.07133319228887558, -0.10314342379570007, -0.3441323935985565, 0.07404391467571259, 0.05124038830399513, -0.10171829164028168, -0.037432726472616196, -0.017398491501808167, 0.024222608655691147, -0.08702250570058823, 0.11350785195827484, 0.15818266570568085, -0.06728853285312653, 0.07443524897098541, 0.09921999275684357, -0.2595794200897217, -0.11183764040470123, -0.018691297620534897, -0.14191938936710358, -0.0033472925424575806, 0.5071067214012146, 0.06701795756816864, 0.4341066777706146, 0.18010593950748444, 0.4344968795776367, 0.10020449012517929, 0.33201825618743896, 0.2241399735212326, 0.029281072318553925, 0.06675868481397629, -0.028143279254436493, -0.5865290760993958, 0.8847307562828064, -0.07729071378707886, 0.4949631690979004, -0.025368228554725647, -0.08966218680143356, 0.25813233852386475, -0.07005869597196579, -0.5748963952064514, -0.08963241428136826, -0.029292240738868713, 0.2472512274980545, 0.12467829883098602, -0.0695687085390091, -0.36455023288726807, 0.130946546792984, 0.06159970909357071, 0.2113250344991684, 0.4444035589694977, -0.2755914032459259, 0.2542673349380493, -0.0863385796546936, 0.4632284641265869, 0.20976227521896362, 0.2965559959411621, 0.25289100408554077, 0.04141148924827576, 0.1776759773492813, -0.07449950277805328, -0.23867392539978027, 0.36420226097106934, 0.15460720658302307, 0.31548061966896057, 0.16001398861408234, 0.082526296377182, -0.1450216919183731, -0.16566704213619232, -0.2701161503791809, 0.14416725933551788, -0.22853153944015503, -0.05243241414427757, 0.31882011890411377, -0.3138051927089691, -0.5460376739501953, -0.03305958956480026, 0.25674644112586975, -0.1731724739074707, -0.12655365467071533, 0.23259739577770233, 0.12153404951095581, -0.3687729239463806, 0.39795029163360596, -0.2202262133359909, 0.4702405333518982, -0.06497297435998917, -0.40428626537323, 0.2372112274169922, -0.37362706661224365, 0.09758931398391724, 0.07270218431949615, 0.24325808882713318, -0.09047739207744598, 0.682811439037323, 0.26522698998451233, -0.06649283319711685, -0.1724991798400879, -0.20482102036476135, 0.18044692277908325, 0.045394040644168854, 0.5188973546028137, 0.141069695353508, 0.09788531064987183, -0.1078776866197586, 0.03929784521460533, 0.26686444878578186, -0.13149294257164001, 0.2002529799938202, -0.10146770626306534, 0.005211304873228073, 0.11611956357955933, -0.24647867679595947, -0.5637350082397461, -0.2847307622432709, -0.2684568762779236, 0.11672686785459518, -0.22225487232208252, 0.2011251151561737, -0.023113276809453964, 0.10018469393253326, -0.05030616372823715, 0.1435735523700714, 0.09952307492494583, -0.03224733844399452, -0.5688082575798035, 0.11398935317993164, -0.16371692717075348, 0.09977690875530243, 0.05809617042541504, -0.011015482246875763, 0.3906190097332001, 0.5869695544242859, -0.4705565571784973, -0.2902960181236267, 0.38954296708106995, 0.2864702045917511, 0.0516616627573967, -0.3373519778251648, 0.6150394082069397, 0.0365743562579155, -0.08801586925983429, -0.08842797577381134, 0.35487452149391174, 0.4860232472419739, -0.18644899129867554, -0.0539083257317543, 0.17913495004177094, 0.7724382877349854, 0.20225585997104645, 0.2877366244792938, -0.16660530865192413, 0.48816293478012085, 0.2260148972272873, 0.1102789044380188, 0.304939329624176, -0.1625727415084839, 0.017958693206310272, 0.20340675115585327, -0.08152163028717041, -0.5336043834686279, 0.07162102311849594, 0.04705515131354332, -0.052730441093444824, -0.3611358404159546, -0.25824517011642456, -0.10325261950492859, -0.3916657865047455, 0.29612496495246887, -0.11279015243053436, 0.4995018243789673, 0.11789633333683014, 0.3723381757736206, -0.21824204921722412, 0.1661282479763031, -0.1418524980545044, 0.15018373727798462, 0.5369585752487183, -0.012885821983218193, -0.17996340990066528, 0.03488713875412941, -0.22274354100227356, 0.2784569263458252, 0.009933792054653168, 0.34172648191452026, -0.03639182448387146, 0.017497599124908447, 0.0015467405319213867, -0.07632867991924286, 0.44631311297416687, -0.11468236893415451, 0.06326872855424881, 0.008159436285495758, -0.2919882833957672, -0.21128490567207336, -0.13052445650100708, -0.04285780340433121, -0.0211983360350132, 0.06499707698822021, 0.19525305926799774, -0.2032025158405304, -0.039048098027706146, -0.318778395652771, 0.13518598675727844, -0.31977421045303345, -0.23671117424964905, 0.023485787212848663, 0.12672153115272522, -0.6222808361053467, 0.4204730689525604, -0.15719732642173767, -0.19054831564426422, -0.24808785319328308, -0.07479505985975266, -0.17830757796764374, 0.4812125563621521, -0.14594964683055878, 0.05651307851076126, 0.14703935384750366, -0.5123634934425354, 0.18588177859783173, 0.11237262189388275, 0.15006639063358307, 0.38386425375938416, 0.04613308236002922, 0.13638310134410858, 0.2845405340194702, 0.06376518309116364, 0.06648458540439606, 0.20517078042030334, 0.4261293113231659, -0.10892775654792786, -0.003009803593158722, 0.1616739183664322, 0.3030039072036743, -0.35880687832832336, -0.3979020118713379, 0.12244630604982376, 0.15586304664611816, 0.03350675478577614, -0.4153931438922882, 0.06711547821760178, 0.046053193509578705, -0.2596213221549988, 0.044562794268131256, 0.15214502811431885, -0.372885525226593, 0.26171448826789856, 0.2630717158317566, 0.9972520470619202, 0.21396183967590332, 0.21799236536026, 0.41700446605682373, 0.2532128691673279, 0.4726443290710449, -0.6332616209983826, 0.2983068525791168, 0.12729255855083466, -0.16704396903514862, -0.14996330440044403, -0.02559024840593338, 0.23217664659023285, 0.09987063705921173, -0.2685554027557373, 0.5433548092842102, -0.07013076543807983, 0.10143402218818665, -0.24331238865852356, -0.029644854366779327, -0.2376532107591629, -0.4036458432674408, -0.2663607597351074, 0.1260659098625183, 0.23340991139411926, -0.010481273755431175, -0.3751177191734314, -0.0689794197678566, 0.19255156815052032, 0.16315102577209473, 0.14545553922653198, 0.07217663526535034, 0.042894888669252396, 0.27666041254997253, -0.4192085266113281, 0.05593852698802948, -0.2763845920562744, 0.10907943546772003, 0.018098317086696625, 0.21089939773082733, -0.2886296808719635, 0.12599536776542664, -0.04192762449383736, 0.11407248675823212, -0.15391723811626434, -0.26681825518608093, 0.37291935086250305, -0.16628801822662354, -0.24871596693992615, -0.22058457136154175, -0.35827067494392395, -0.07715258002281189, 0.25149473547935486, -0.3500300943851471, 0.0939491018652916, -0.06916543841362, 0.06194734200835228, 0.19377562403678894, -0.11830870807170868, -0.21583852171897888, 0.08288004249334335, 0.10984296351671219, -0.047775935381650925, 0.2642476260662079, 0.08337484300136566, -0.029608190059661865, -0.18447332084178925, 0.5224730372428894, -0.012488043867051601, 0.29832175374031067, 0.3291597068309784, 0.17099744081497192, -0.24227283895015717, -0.3916771411895752, -0.11790511012077332, -0.0944124162197113, 0.171348437666893, 0.0689706802368164, 0.0006623156368732452, -0.025470107793807983, 0.058074530214071274, -0.2008400708436966, 0.17662759125232697, -0.0651131123304367, -0.10130364447832108, -0.4263278841972351, -0.09579499065876007, 0.3383995294570923, 0.20188510417938232, 0.09423648566007614, 0.12143006175756454, 0.12856470048427582, 0.03344278782606125, 0.011660726740956306, -0.3435807228088379, -0.19338984787464142, -0.26668792963027954, 0.22160618007183075, -0.011314526200294495, -0.047725990414619446, 0.17747147381305695, -0.015059325844049454, 0.056359484791755676, -0.029219742864370346, -0.253823846578598, -0.16195330023765564, -0.11365518718957901, 0.2258027195930481, -0.14830449223518372, -0.31576377153396606, 0.21605777740478516, -0.4238920211791992, -0.36643579602241516, -0.3153073191642761, 0.09185535460710526, -0.017071284353733063, -0.16778942942619324, -0.4335838854312897, -0.10714134573936462, 0.3017939329147339, -0.22438831627368927, 0.09498864412307739, -0.09777266532182693, -0.27250704169273376, -0.33457550406455994, 0.05389609932899475, -0.07341942191123962, -0.10961491614580154, -0.03956925868988037, 0.10273177921772003, 0.21060365438461304, 0.20557893812656403, 0.46399807929992676, 0.08929774165153503, -0.1204226091504097, 0.16045929491519928, 0.6960185766220093, 0.14337149262428284, 0.1893889456987381, 0.11123047024011612, 0.03070530667901039, 0.21474263072013855, -0.4058089554309845, 0.1708359718322754, -0.2121230959892273, -0.16528023779392242, 0.20117145776748657, 0.21826820075511932, 0.42116838693618774, 0.12281647324562073, 0.21153676509857178, -0.0768139511346817, 0.39609256386756897, -0.3639712929725647, 0.24522893130779266, -0.023213721811771393, -0.04850982502102852, 0.16922082006931305, -0.0433972030878067, 0.10812199115753174, 0.30696171522140503, 0.06820936501026154, -0.26930364966392517, 0.1668250858783722, 0.45572933554649353, 0.20227451622486115, -0.09087595343589783, -0.4782037138938904, -0.1009485125541687, 0.09568238258361816, -0.06034450978040695, 0.02443596161901951, -0.4648663401603699, -0.054251011461019516, -0.33958184719085693, -0.19133992493152618, -0.21458689868450165, 0.602753758430481, -0.3315453827381134, -0.1462773233652115, -0.4204238951206207, -0.43967103958129883, 0.011094853281974792, 0.0038176849484443665, 0.18702666461467743, -0.13848772644996643, -0.1736920177936554, 0.07968717813491821, 0.2774658203125, -0.2712736129760742, 0.09691332280635834, -0.02924550510942936, 0.1431991010904312, -0.3236314356327057, 0.1587519347667694, 0.5755221247673035, 0.0011657364666461945, 0.06278882920742035, 0.28588753938674927, 0.22666199505329132, 0.002276945859193802, -0.1239224225282669, 0.1276148408651352, 0.1615409106016159, 0.05334078520536423, -0.3756062984466553, -0.055949486792087555, -0.016708239912986755, 0.288196325302124, 0.32207757234573364, 0.1017412319779396, -0.04514307528734207, 0.5039827823638916, -0.057403676211833954, -0.33505484461784363, -0.21786297857761383, -0.05982311815023422, 0.4229668080806732, 0.11301763355731964, -0.09612630307674408, -0.018178626894950867, -0.11233401298522949, -0.09170924127101898, 0.2774384617805481, -0.16166779398918152, 0.038800954818725586, 0.01901658996939659, 0.062258072197437286, -0.19175463914871216, 0.5251256227493286, -0.08282503485679626, 0.10014017671346664, -0.35854482650756836, -0.0513545498251915, -0.6031895875930786, -0.23330381512641907, -0.04812794551253319, 0.05082517862319946, -0.12257902324199677, 0.13384482264518738, 0.22453975677490234, 0.15483270585536957, -0.2501182556152344, 0.02487754076719284, 0.1090887039899826, 0.07845699042081833, -0.36835572123527527, 0.03194895759224892, 0.021768465638160706, -0.03491009771823883, 0.14625617861747742, -0.24224013090133667, 0.2108057141304016, -0.1415775716304779, 0.06722825020551682, 0.3073819875717163, 0.024146035313606262, 0.01345660537481308, 0.15584667026996613, 0.7136695981025696, 0.09638743847608566, 0.3541612923145294, 0.0330817773938179, -0.03922588750720024, -0.1355392038822174, 0.006180610507726669, -0.17471472918987274, 0.04170835763216019, 0.04209598898887634, 0.2525860667228699, -0.16777381300926208, -0.13567857444286346, -0.17323368787765503, 0.07975313812494278, -0.05987585335969925, -0.006826143711805344, -0.1402486264705658, -0.12770134210586548, -0.19393405318260193, 0.1754538118839264, -0.08354964852333069, 0.20897319912910461, 0.1280008852481842, 0.2270999252796173, -0.255080908536911, -0.12457427382469177, 0.43263375759124756, -0.09964245557785034, 0.18829700350761414, -0.34960225224494934, 0.20391787588596344, 0.22937627136707306, 0.17083905637264252, -0.07593804597854614, -0.05381520837545395, 0.16046662628650665, -0.030330287292599678, 0.10782352089881897, -0.020900502800941467, 0.053911902010440826, -0.1801203489303589, -0.1716642528772354, 0.20660531520843506, -0.32496416568756104, -0.33783385157585144, -0.280019074678421, -0.24342207610607147 ]
https://github.com/huggingface/datasets/issues/1924
Hi ! I guess you can add a dataset without the fields that must be kept anonymous, and then update those when the anonymity period is over. You can also make the PR from an anonymous org. Pinging @yjernite just to make sure it's ok
Anonymous Dataset Addition (i.e Anonymous PR?)
Hello, Thanks a lot for your librairy. We plan to submit a paper on OpenReview using the Anonymous setting. Is it possible to add a new dataset without breaking the anonimity, with a link to the paper ? Cheers @eusip
45
Anonymous Dataset Addition (i.e Anonymous PR?) Hello, Thanks a lot for your librairy. We plan to submit a paper on OpenReview using the Anonymous setting. Is it possible to add a new dataset without breaking the anonimity, with a link to the paper ? Cheers @eusip Hi ! I guess you can add a dataset without the fields that must be kept anonymous, and then update those when the anonymity period is over. You can also make the PR from an anonymous org. Pinging @yjernite just to make sure it's ok
[ -0.2978556752204895, 0.5536887645721436, -0.023817511275410652, -0.19032123684883118, -0.07589468359947205, -0.10795879364013672, 0.5019996762275696, 0.008097099140286446, 0.06429596245288849, 0.05346936360001564, 0.07121018320322037, 0.10383328050374985, 0.004155635833740234, 0.16348595917224884, -0.038204126060009, 0.07957898080348969, 0.04541865363717079, -0.09660971164703369, 0.09621883928775787, -0.20137548446655273, -0.4753122329711914, -0.24376527965068817, 0.07912638783454895, -0.5910319685935974, 0.15044039487838745, -0.2484029233455658, -0.20087097585201263, -0.2064751535654068, -0.025455713272094727, -0.44024091958999634, -0.25083136558532715, 0.2532379627227783, 0.08782589435577393, 0.16876663267612457, -0.00011369822459528223, 0.03650170564651489, 0.22751213610172272, 0.02290996164083481, -0.2287047803401947, -0.14650332927703857, -0.40853437781333923, -0.12411094456911087, -0.021831722930073738, -0.12188103049993515, 0.05113403499126434, -0.3378620147705078, 0.15869516134262085, -0.44283682107925415, -0.29203400015830994, 0.018705498427152634, 0.18753428757190704, 0.21542049944400787, 0.10182472318410873, -0.19162555038928986, 0.17213204503059387, 0.30906200408935547, -0.06945058703422546, -0.0765855610370636, -0.25250646471977234, 0.23809108138084412, 0.12003657966852188, 0.19117750227451324, 0.21085698902606964, -0.3427754044532776, 0.21859979629516602, 0.25596722960472107, 0.13584527373313904, -0.08663666248321533, 0.09830411523580551, -0.013920482248067856, 0.5642252564430237, 0.11115862429141998, -0.2762333154678345, 0.006686218082904816, 0.1424970030784607, -0.22532521188259125, 0.12191300094127655, 0.36027655005455017, -0.18789418041706085, 0.006511899642646313, -0.3873702585697174, -0.43323612213134766, -0.14879174530506134, 0.2721284031867981, 0.3960341215133667, -0.08270682394504547, 0.22041499614715576, 0.21989893913269043, -0.1080731600522995, -0.007614731322973967, -0.06578485667705536, -0.13112661242485046, -0.19119057059288025, 0.027134161442518234, 0.27255311608314514, -0.01979225128889084, 0.05958220735192299, 0.08542618155479431, -0.04073765128850937, 0.1603175848722458, 0.021972473710775375, -0.26489922404289246, -0.2661927342414856, -0.10188817977905273, 0.10517942905426025, -0.25679850578308105, -0.03291013464331627, 0.2582079768180847, 0.1456509381532669, -0.1770038604736328, 0.5126863718032837, -0.10285107791423798, 0.20659767091274261, 0.21857178211212158, -0.1635550558567047, -0.42575347423553467, 0.09249377995729446, -0.24469339847564697, -0.019325029104948044, 0.12279225140810013, -0.13861502707004547, 0.1385224610567093, -0.3871082067489624, 0.11586105078458786, 0.13893526792526245, -0.30164220929145813, 0.2873123288154602, -0.05887583643198013, 0.030029453337192535, -0.10790900886058807, 0.007690079510211945, -0.14634668827056885, -0.1829979419708252, 0.02203163504600525, 0.13346967101097107, 0.14336518943309784, 0.06559538841247559, 0.023789316415786743, 0.32793208956718445, 0.28308606147766113, 0.37794527411460876, 0.0594574436545372, 0.1582076996564865, 0.08056288212537766, 0.07144012302160263, -0.2646239697933197, -0.04868938773870468, -0.507171630859375, 0.06069852411746979, 0.28695887327194214, 0.41541367769241333, 0.34853824973106384, -0.2451438307762146, 0.1902705878019333, -0.17416656017303467, -0.26997730135917664, 0.27410832047462463, 0.29196977615356445, -0.059898391366004944, -0.10976643860340118, 0.33467206358909607, 0.25726228952407837, 0.03710193932056427, -0.01983293518424034, -0.06547226756811142, 0.36307859420776367, -0.15886594355106354, -0.20724767446517944, 0.13186289370059967, -0.13875412940979004, -0.23352046310901642, -0.003538757562637329, -0.20956838130950928, -0.19970092177391052, 0.026043057441711426, -0.2894255518913269, -0.054162606596946716, -0.27979034185409546, -0.3725436329841614, -0.32355833053588867, -0.25530004501342773, -0.21753519773483276, 0.4006320834159851, 0.579221248626709, 0.221782386302948, -0.14786405861377716, -0.28468140959739685, -0.06995187699794769, -0.16962380707263947, -0.30423426628112793, -0.4500308036804199, -0.12573789060115814, 0.1325060874223709, 0.07186302542686462, -0.20214834809303284, 0.32295629382133484, 0.3146028518676758, -0.1585005223751068, 0.26609861850738525, -0.2799393832683563, 0.16456633806228638, 0.13824030756950378, 0.5464157462120056, -0.06312808394432068, 0.13616424798965454, 0.22772425413131714, -0.1811688244342804, -0.20207679271697998, -0.32877904176712036, 0.417546808719635, 0.16708126664161682, -0.5736305117607117, 0.29551249742507935, -0.2195342481136322, 0.08912832289934158, -0.17772994935512543, 0.0052080415189266205, 0.2768188416957855, -0.2847762405872345, -0.2003246247768402, -0.07579346001148224, 0.16463443636894226, 0.02385120838880539, 0.10155054181814194, -0.40244778990745544, -0.22721931338310242, 0.12777891755104065, 0.05103696510195732, -0.24995514750480652, -0.046213895082473755, -0.10395339876413345, -0.1574060618877411, 0.13137167692184448, 0.15552356839179993, -0.12130114436149597, -0.02455466240644455, 0.7049098014831543, 0.4160327613353729, -0.08129526674747467, -0.27524805068969727, 0.1455884575843811, 0.13364650309085846, -0.15702444314956665, 0.2209077775478363, -0.662438690662384, 0.5039727687835693, -0.05855868011713028, -0.01158304512500763, -0.164425790309906, 0.2266271710395813, 0.42339852452278137, -0.22682441771030426, -0.10093879699707031, -0.27403444051742554, 0.24438340961933136, 0.5010875463485718, 0.21352528035640717, -0.14237259328365326, -0.44391879439353943, 0.26761284470558167, -0.4807434380054474, -0.014900069683790207, -0.03899854049086571, -0.0193485040217638, -0.15189610421657562, 0.23127971589565277, -0.010137153789401054, 0.16058659553527832, 0.1751214563846588, 0.37426993250846863, -0.2108207643032074, 0.0669730082154274, 0.21319514513015747, -0.10767831653356552, 0.27635088562965393, -0.020131021738052368, -0.3504345118999481, -0.15473806858062744, 0.45594799518585205, 0.2296288162469864, 0.001817159354686737, 0.03198884427547455, 0.29255831241607666, 0.17143401503562927, -0.021106727421283722, -0.04203798621892929, 0.22865352034568787, -0.17150676250457764, 0.133668452501297, 0.22580064833164215, -0.2456110715866089, -0.007508404552936554, 0.3010830283164978, 0.08260321617126465, -0.12944303452968597, 0.2552322447299957, -0.2911659777164459, 0.8122638463973999, -0.389985054731369, 0.10937735438346863, 0.0818704217672348, -0.2424030750989914, 0.07657980918884277, 0.16678404808044434, 0.1588558554649353, -0.3950014114379883, 0.5738781094551086, 0.14881277084350586, 0.005959458649158478, -0.48987096548080444, -0.4616578221321106, -0.03310367092490196, 0.18556946516036987, 0.017171813175082207, -0.12858183681964874, -0.20011445879936218, -0.22597075998783112, -0.02003290504217148, -0.031434714794158936, -0.20888881385326385, -0.2280634045600891, -0.13230809569358826, -0.18543750047683716, -0.051028430461883545, -0.13087661564350128, -0.20608748495578766, -0.06633289903402328, 0.22584782540798187, 0.46780142188072205, 0.442836731672287, -0.006326928734779358, 0.25788888335227966, -0.14870931208133698, -0.23206870257854462, -0.10500019043684006, -0.3201148509979248, -0.21849386394023895, -0.4413895905017853, 0.28193268179893494, -0.3696284294128418, -0.24770131707191467, 0.27618342638015747, -0.10134362429380417, -0.0418129526078701, 0.365200936794281, -0.5292718410491943, -0.08161410689353943, 0.14416341483592987, 0.3721829950809479, 0.16768991947174072, -0.19936800003051758, 0.5032026171684265, 0.19208157062530518, -0.20182868838310242, -0.11523573100566864, -0.10018493235111237, 0.2119533270597458, -0.0725303590297699, 0.5440941452980042, -0.3213924765586853, -0.05097764730453491, -0.07024917751550674, 0.6683695912361145, 0.40979206562042236, -0.07737195491790771, -0.031078815460205078, -0.13006816804409027, 0.5164964199066162, 0.013310719281435013, -0.07272063195705414, -0.07984739542007446, 0.15195314586162567, -0.08815637975931168, 0.006335314363241196, -0.014998667873442173, -0.40013837814331055, -0.03347732499241829, -0.09462925046682358, -0.15913257002830505, -0.2538813054561615, 0.04838768392801285, -0.014743441715836525, 0.6296269297599792, 0.10383571684360504, -0.1671639382839203, -0.56890869140625, -0.6112786531448364, -0.016611449420452118, 0.21077494323253632, 0.09750661253929138, -0.3711678385734558, -0.19860923290252686, 0.40388962626457214, -0.39248427748680115, 0.44334274530410767, -0.24062247574329376, 0.06740409880876541, -0.09749484807252884, 0.06039853394031525, 0.05725787207484245, 0.21340245008468628, 0.42431068420410156, -0.4223252534866333, -0.32257384061813354, 0.12502315640449524, 0.30054736137390137, 0.13580945134162903, 0.2328309714794159, -0.2882536053657532, 0.33272379636764526, 0.17899398505687714, 0.08213500678539276, -0.15818150341510773, 0.26965469121932983, 0.5318697690963745, -0.18977922201156616, -0.3482930362224579, -0.18419118225574493, -0.277292937040329, 0.03575208783149719, -0.09447993338108063, -0.01103266328573227, -0.34822845458984375, -0.02955903671681881, -0.009444110095500946, 0.2832338809967041, -0.15249530971050262, 0.4053571820259094, 0.22724483907222748, -0.3571992814540863, -0.03224745765328407, 0.5289492011070251, 0.23856869339942932, 0.23020537197589874, 0.1427944004535675, 0.4895368218421936, 0.45333990454673767, -0.10479093343019485, -0.45326122641563416, -0.08204900473356247, -0.4671744406223297, 0.29189854860305786, 0.48691627383232117, 0.39482834935188293, 0.40815091133117676, 0.16639147698879242, 0.047741495072841644, -0.032348934561014175, 0.06273559480905533, -0.08194750547409058, -0.10821791738271713, -0.14527665078639984, -0.42731010913848877, 0.1304294764995575, -0.05715152248740196, -0.19487620890140533, 0.3306120038032532, -0.03393236920237541, -0.11918525397777557, 0.5634445548057556, 0.1458994597196579, 1.1023104190826416, 0.10041706264019012, 0.218950092792511, -0.28151068091392517, -0.14771965146064758, 0.40866103768348694, -0.029533565044403076, 0.19761769473552704, 0.03890078514814377, -0.0740404725074768, 0.01693190634250641, -0.04603167250752449, 0.1066625565290451, -0.032369568943977356, -0.07791805267333984, -0.10030150413513184, -0.16674505174160004, 0.04009728133678436, -0.12153486907482147, 0.4067530333995819, 0.140379399061203, -0.12389107793569565, 0.29238542914390564, 0.10703150928020477, 0.19142493605613708, -0.30188679695129395, -0.004507929086685181, -0.2803261876106262, -0.13679012656211853, -0.1383552998304367, -0.04936569929122925, -0.004756040871143341, 0.2829568088054657, -0.2809303402900696, 0.05391862243413925, -0.3358977138996124, 0.31449493765830994, 0.22172808647155762, 0.46400508284568787, 0.04968446493148804, -0.221873477101326, 0.06304880976676941, 0.05474104359745979, 0.04495793208479881, 0.28869515657424927, -0.09920845925807953, -0.11646538227796555, -0.00682966411113739, -0.25200486183166504, 0.4243530035018921, 0.012327101081609726, -0.46945303678512573, -0.31774765253067017, -0.24182972311973572, 0.33393794298171997, -0.32701045274734497, 0.5733966827392578, 0.2793073356151581, -0.333820641040802, -0.16074320673942566, 0.13310737907886505, 0.20798474550247192, 0.04210037738084793, 0.16670769453048706, 0.20862990617752075, -0.04227621108293533, -0.12003704905509949, 0.2904540002346039, 0.23682381212711334, -0.22197365760803223, 0.31926456093788147, -0.026711568236351013, -0.17471647262573242, -0.14911332726478577, 0.11138030886650085, 0.09082278609275818, -0.5180431604385376, -0.13894768059253693, 0.21502189338207245, 0.5172667503356934, -0.18655753135681152, 0.09018859267234802, -0.03130638226866722, 0.2822611629962921, -0.3256953954696655, -0.11733792722225189, -0.3173075020313263, 0.1764894723892212, -0.04337935894727707, 0.043484531342983246, 0.13218338787555695, 0.11807306855916977, -0.08431053161621094, 0.12147148698568344, -0.3499597907066345, -0.16424429416656494, 0.07880902290344238, 0.19416990876197815, -0.07802242785692215, 0.15493927896022797, 0.2916841506958008, -0.393084317445755, 0.07902073860168457, -0.33434411883354187, 0.13500675559043884, -0.14984279870986938, -0.06290874630212784, 0.13425877690315247, 0.09221424162387848, -0.3548136055469513, -0.22719888389110565, -0.2885834276676178, 0.010220881551504135, 0.15575814247131348, 0.031139247119426727, 0.08543696254491806, -0.14107708632946014, -0.5126226544380188, 0.03281421959400177, 0.16370993852615356, -0.08512558043003082, -0.22306211292743683, -0.004507996141910553, 0.2441372275352478, -0.09293585270643234, 0.1326640546321869, -0.2574228048324585, 0.030683547258377075, 0.3204216957092285, 0.15557238459587097, 0.3057708144187927, 0.14027364552021027, 0.1473255753517151, -0.16214069724082947, 0.2386341392993927, 0.010377887636423111, 0.10279227793216705, -0.0022574923932552338, -0.39162832498550415, 0.14625972509384155, 0.29962727427482605, 0.2058555781841278, -0.3969433903694153, -0.013545878231525421, -0.08985628187656403, 0.34882619976997375, 0.13417638838291168, 0.3458150029182434, 0.2564821243286133, -0.1308516561985016, -0.030077166855335236, 0.03379959613084793, -0.09811484813690186, -0.3168908357620239, 0.07078572362661362, 0.012103216722607613, 0.07762452214956284, 0.07465776056051254, 0.3548709750175476, 0.5277470350265503, -0.16675254702568054, -0.0421072356402874, 0.17575570940971375, 0.1529543101787567, 0.06687641143798828, -0.09052824974060059, -0.037142813205718994, 0.00623185932636261, 0.2874757945537567, 0.030840568244457245, 0.35391318798065186, 0.4143076539039612, 0.24710452556610107, 0.07915034890174866, 0.1839890480041504, 0.3479210138320923, -0.050679318606853485, 0.24343416094779968, 0.2524259388446808, 0.11777333915233612, -0.4141274094581604, -0.04491981118917465, 0.03720395267009735, 0.0642395094037056, 0.1411057859659195, -0.20511697232723236, 0.03133099526166916, 0.1824621558189392, -0.15035252273082733, -0.22005362808704376, 0.17415380477905273, 0.1781609207391739, 0.3247276842594147, -0.22661566734313965, 0.015091842040419579, 0.18362537026405334, -0.03671107813715935, 0.37359049916267395, 0.7002021074295044, -0.07248537242412567, -0.09668465703725815, 0.038950949907302856, 0.47292226552963257, 0.0671326220035553, -0.0448373518884182, 0.014580130577087402, 0.10435013473033905, 0.3690759241580963, -0.08462068438529968, -0.15912720561027527, 0.062222376465797424, -0.04565273970365524, 0.3700084686279297, 0.12895801663398743, -0.027093753218650818, -0.25125181674957275, 0.20304623246192932, 0.169194757938385, -0.18086139857769012, -0.13113321363925934, -0.19240480661392212, -0.02005082368850708, -0.06797228753566742, 0.5362575650215149, -0.08720424771308899, -0.10965891182422638, -0.07972722500562668, 0.07572824507951736, -0.07743760198354721, 0.041225090622901917, 0.06765621155500412, 0.10051418840885162, -0.2797425091266632, -0.21627235412597656, -0.05295220762491226, 0.4314088225364685, -0.22967588901519775, -0.17118516564369202, -0.22315040230751038, 0.02998415380716324, 0.46772500872612, 0.08660375326871872, 0.25521549582481384, -0.09558732062578201, -0.31259050965309143, 0.4435618221759796, -0.12873688340187073, -0.03210252523422241, -0.21924299001693726, 0.3003248870372772, 0.077280692756176, 0.1784944236278534, 0.2000686377286911, 0.26400673389434814, 0.009031035006046295, -0.17250671982765198, -0.06941351294517517, -0.036910220980644226, 0.3054792284965515, 0.29705366492271423, -0.17209625244140625, 0.2769835889339447, -0.1313275396823883, -0.26377472281455994, 0.1774759143590927, -0.08124801516532898, -0.43480145931243896, 0.16761189699172974, 0.2094634473323822, -0.2985936105251312, -0.34626761078834534, -0.1960132122039795, 0.25394752621650696, 0.008969571441411972, -0.3364587724208832, -0.04691127687692642, -0.2473500370979309, 0.010999441146850586, -0.09726881980895996, -0.014967747032642365, -0.030088335275650024, -0.022029098123311996, 0.015942566096782684, -0.04638099670410156, -0.21961480379104614, -0.08537861704826355, 0.2916969656944275, -0.5352238416671753, 0.21322086453437805, 0.005520179867744446, 0.33612802624702454, -0.3151445984840393, -0.37181541323661804, -0.43453848361968994, 0.06491260230541229, 0.2189658284187317, -0.005722374655306339, 0.05192074179649353, -0.22060957551002502, -0.0004884935915470123, 0.01729719340801239, -0.17642825841903687, 0.4233129918575287, -0.10380659997463226, -0.011499516665935516, -0.16246792674064636, -0.12793652713298798 ]
https://github.com/huggingface/datasets/issues/1924
Hello, I would prefer to do the reverse: adding a link to an anonymous paper without the people names/institution in the PR. Would it be conceivable ? Cheers
Anonymous Dataset Addition (i.e Anonymous PR?)
Hello, Thanks a lot for your librairy. We plan to submit a paper on OpenReview using the Anonymous setting. Is it possible to add a new dataset without breaking the anonimity, with a link to the paper ? Cheers @eusip
28
Anonymous Dataset Addition (i.e Anonymous PR?) Hello, Thanks a lot for your librairy. We plan to submit a paper on OpenReview using the Anonymous setting. Is it possible to add a new dataset without breaking the anonimity, with a link to the paper ? Cheers @eusip Hello, I would prefer to do the reverse: adding a link to an anonymous paper without the people names/institution in the PR. Would it be conceivable ? Cheers
[ -0.20116716623306274, 0.4423332214355469, 0.020197030156850815, -0.07657147943973541, -0.09471510350704193, -0.09441262483596802, 0.4387368857860565, -0.00272270105779171, 0.03627808392047882, 0.0934399664402008, -0.05074608325958252, 0.06698282808065414, 0.0037660151720046997, 0.0874345526099205, 0.13701164722442627, 0.11776681244373322, 0.13089033961296082, -0.08959727734327316, 0.20992761850357056, -0.24951761960983276, -0.5651836395263672, -0.1786222904920578, 0.0916350930929184, -0.5738095045089722, 0.231587216258049, -0.20727674663066864, -0.21253043413162231, -0.16607263684272766, 0.08581239730119705, -0.36694011092185974, -0.2833176553249359, 0.15834544599056244, -0.02737801894545555, 0.26834994554519653, -0.0001262668229173869, 0.1422167420387268, 0.2734457850456238, 0.024618200957775116, -0.2487213909626007, -0.16757580637931824, -0.5025142431259155, -0.03141293674707413, -0.09900623559951782, -0.1659391224384308, 0.0814037099480629, -0.3552338778972626, 0.11468476057052612, -0.37730932235717773, -0.33852308988571167, 0.027325905859470367, 0.09017351269721985, 0.1165461391210556, 0.07293705642223358, -0.0961635559797287, 0.13952630758285522, 0.40591976046562195, -0.018655873835086823, 0.0075170136988162994, -0.2865668535232544, 0.2626428008079529, 0.21997831761837006, 0.07244564592838287, 0.19703936576843262, -0.370833158493042, 0.22891132533550262, 0.19121693074703217, 0.08531783521175385, -0.038295112550258636, 0.06870642304420471, 0.10953360795974731, 0.6216091513633728, 0.09487101435661316, -0.27607306838035583, 0.03276485204696655, 0.1474633812904358, -0.08528313785791397, 0.06757506728172302, 0.3558514714241028, -0.18597093224525452, 0.01626904308795929, -0.4244498610496521, -0.5069782733917236, -0.1157958135008812, 0.2613271176815033, 0.38335084915161133, -0.11479882895946503, 0.3029624819755554, 0.23771724104881287, -0.1090041995048523, 0.02255372703075409, -0.1252335011959076, -0.14237740635871887, -0.25359252095222473, 0.1280827820301056, 0.32692450284957886, -0.05035853013396263, 0.0798264890909195, 0.034404415637254715, -0.028901278972625732, 0.09620538353919983, 0.05632205307483673, -0.2872755527496338, -0.28556644916534424, -0.08596006035804749, 0.06439084559679031, -0.316010445356369, -0.0880989283323288, 0.28745803236961365, 0.04986533522605896, -0.15836438536643982, 0.5381064414978027, -0.07849319279193878, 0.12781135737895966, 0.21477755904197693, -0.23095017671585083, -0.4649635851383209, 0.02946801483631134, -0.26434361934661865, -0.054234642535448074, 0.0519966222345829, -0.2531794607639313, 0.10721763968467712, -0.40383246541023254, 0.11702475696802139, 0.07387949526309967, -0.34615692496299744, 0.3234758675098419, -0.09963250160217285, -0.05082860216498375, 0.04758843407034874, 0.039490941911935806, -0.05664490908384323, -0.2179216593503952, -0.07986016571521759, 0.127335324883461, 0.21613135933876038, 0.057141661643981934, 0.04419784992933273, 0.24927735328674316, 0.23556284606456757, 0.29729554057121277, -0.008932746946811676, 0.20832301676273346, 0.04137146845459938, 0.13972173631191254, -0.2625545859336853, -0.04914792999625206, -0.652795135974884, 0.08884207904338837, 0.3641912341117859, 0.22728727757930756, 0.29473599791526794, -0.21529504656791687, 0.07715956121683121, -0.15917834639549255, -0.23613691329956055, 0.18701830506324768, 0.19904446601867676, -0.11627008020877838, -0.15399989485740662, 0.26432090997695923, 0.31416499614715576, -0.052580200135707855, -0.04660392925143242, 0.017729245126247406, 0.4519748091697693, -0.212191641330719, -0.27989649772644043, 0.24541816115379333, -0.17735010385513306, -0.13098540902137756, 0.1275193840265274, -0.19671596586704254, -0.12451888620853424, -0.07785460352897644, -0.36146658658981323, 0.00029243528842926025, -0.23006847500801086, -0.3864840865135193, -0.22176006436347961, -0.3067473769187927, -0.14876726269721985, 0.37275588512420654, 0.648047924041748, 0.16322949528694153, -0.09019292891025543, -0.13484185934066772, -0.05881743133068085, -0.044688645750284195, -0.27441588044166565, -0.42285698652267456, -0.10092703998088837, 0.10491029918193817, -0.0332547090947628, -0.3364384174346924, 0.4607168436050415, 0.37443986535072327, -0.11097583174705505, 0.3731577396392822, -0.26981931924819946, 0.1481582224369049, 0.20171280205249786, 0.5984316468238831, -0.09296707808971405, 0.14916843175888062, 0.31317657232284546, -0.058428335934877396, -0.2318139523267746, -0.3104815185070038, 0.3493325710296631, 0.12119117379188538, -0.5198779106140137, 0.28720465302467346, -0.13093526661396027, 0.13295230269432068, -0.019660936668515205, -0.1120871901512146, 0.1630743145942688, -0.3360399901866913, -0.10265317559242249, -0.13132748007774353, 0.2828584909439087, 0.031953826546669006, 0.13055196404457092, -0.36765530705451965, -0.1331426054239273, 0.2234245240688324, 0.15175098180770874, -0.22839057445526123, 0.0358831062912941, -0.08457521349191666, -0.11710727959871292, 0.16330307722091675, 0.16849568486213684, -0.15209975838661194, -0.06578665971755981, 0.7105241417884827, 0.40173763036727905, -0.025938605889678, -0.3726826310157776, 0.12477564066648483, 0.16052156686782837, -0.07160796970129013, 0.08074387907981873, -0.6590615510940552, 0.41409385204315186, -0.07022058218717575, 0.07057981938123703, -0.10839032381772995, 0.16616269946098328, 0.2895028591156006, -0.2371482253074646, 0.039589785039424896, -0.1682228147983551, 0.31430551409721375, 0.555950403213501, 0.35305729508399963, -0.1535457968711853, -0.4435144364833832, 0.10515550523996353, -0.6972010135650635, -0.04959237203001976, -0.026042360812425613, -0.002795514650642872, -0.2676231265068054, 0.22789514064788818, -0.04035350680351257, 0.2359810322523117, 0.2688291668891907, 0.297946035861969, -0.11011806130409241, 0.1627374142408371, 0.2760840058326721, -0.06267348676919937, 0.2161821722984314, -0.10615244507789612, -0.3277381360530853, -0.13138142228126526, 0.4049284756183624, 0.23820972442626953, 0.011622890830039978, 0.008519843220710754, 0.30422845482826233, 0.1753627508878708, -0.10005273669958115, -0.04692656174302101, 0.2736751139163971, -0.18362310528755188, 0.1325826793909073, 0.2519230842590332, -0.2054317146539688, -0.021787799894809723, 0.2373284101486206, 0.11827237904071808, -0.046916767954826355, 0.11212541908025742, -0.3568474054336548, 0.7788481712341309, -0.4367333650588989, -0.06409208476543427, 0.09647142887115479, -0.1648799479007721, 0.17100638151168823, 0.10253860056400299, 0.03548441082239151, -0.1941320300102234, 0.47174951434135437, 0.12127392739057541, -0.009404554963111877, -0.436102956533432, -0.3261878490447998, -0.021046649664640427, 0.24830438196659088, -0.002558033913373947, -0.04624677449464798, -0.15195515751838684, -0.16635936498641968, -0.042827069759368896, -0.04767434298992157, -0.04248259589076042, -0.2063823938369751, -0.15967580676078796, -0.23160594701766968, -0.142059326171875, -0.022852979600429535, -0.06119339540600777, -0.10753288865089417, 0.30664193630218506, 0.4745173752307892, 0.3733965754508972, 0.030891239643096924, 0.16023489832878113, -0.1567804515361786, -0.27184733748435974, -0.09662243723869324, -0.3991085886955261, -0.04798645153641701, -0.446870356798172, 0.25755375623703003, -0.3110264241695404, -0.27843359112739563, 0.34302347898483276, -0.11636526882648468, -0.017908869311213493, 0.4083647131919861, -0.5690828561782837, -0.02780313417315483, 0.12759368121623993, 0.3076961040496826, 0.1703377664089203, -0.14372418820858002, 0.39314234256744385, 0.22753208875656128, -0.08227753639221191, -0.09020186960697174, -0.10611169040203094, 0.2046215534210205, -0.17388245463371277, 0.6187602877616882, -0.19440476596355438, -0.05482352897524834, -0.05451429262757301, 0.6473226547241211, 0.3969498872756958, -0.11003293842077255, -0.04574156552553177, -0.21208228170871735, 0.5558551549911499, 0.0750211551785469, -0.07132875919342041, -0.1281474083662033, 0.20261111855506897, -0.12503314018249512, -0.07444515824317932, 0.04931477829813957, -0.48328351974487305, -0.12881982326507568, -0.1193012148141861, -0.11279374361038208, -0.1850578337907791, -0.014077672734856606, -0.07469655573368073, 0.5667659640312195, 0.011562764644622803, -0.2575371265411377, -0.5660694241523743, -0.6033065915107727, 0.03787696361541748, 0.33984827995300293, 0.17479391396045685, -0.3895837962627411, -0.3328225016593933, 0.43413352966308594, -0.42909666895866394, 0.34533968567848206, -0.22312834858894348, 0.0909886360168457, -0.11662736535072327, 0.05466102063655853, 0.12561780214309692, 0.19782790541648865, 0.48312801122665405, -0.4202386140823364, -0.267838716506958, 0.0679989755153656, 0.37865614891052246, 0.09612464159727097, 0.27412715554237366, -0.21735364198684692, 0.30012160539627075, 0.24478468298912048, -0.025801535695791245, -0.1339326649904251, 0.2969379723072052, 0.5221360325813293, -0.22609581053256989, -0.3237433433532715, -0.2412981390953064, -0.2852935194969177, 0.030204810202121735, 0.003825075924396515, -0.007839761674404144, -0.34729546308517456, -0.04109298437833786, 0.09232108294963837, 0.17924796044826508, -0.193817138671875, 0.39157289266586304, 0.34347283840179443, -0.39643219113349915, -0.03154362738132477, 0.558387041091919, 0.23106810450553894, 0.20912550389766693, 0.3514366149902344, 0.4544338583946228, 0.5043780207633972, -0.12939107418060303, -0.5598925352096558, -0.1983916014432907, -0.48813125491142273, 0.4070117771625519, 0.4231133460998535, 0.3770062029361725, 0.39818987250328064, 0.19536681473255157, -0.06797803938388824, 0.06348523497581482, 0.1406252682209015, -0.16379055380821228, -0.047613926231861115, -0.3536590039730072, -0.3614880442619324, 0.1960398256778717, -0.06696390360593796, -0.22158244252204895, 0.30819690227508545, 0.011001797392964363, -0.12127798795700073, 0.4656131863594055, 0.04769289493560791, 1.2384512424468994, 0.1484939604997635, 0.27535349130630493, -0.24894942343235016, -0.2222338616847992, 0.35379502177238464, 0.03256727755069733, 0.17562714219093323, -0.017139211297035217, -0.067102812230587, -0.06761106103658676, -0.18093819916248322, 0.007624106947332621, -0.0023861173540353775, 0.09681463241577148, -0.14088225364685059, -0.24450531601905823, 0.0033185486681759357, -0.06536051630973816, 0.3175384998321533, 0.2996055781841278, -0.02960088849067688, 0.40439772605895996, -0.005249623209238052, 0.23158174753189087, -0.24210186302661896, -0.019674796611070633, -0.24311375617980957, -0.2138373851776123, -0.1342339813709259, -0.08930273354053497, 0.06819330900907516, 0.1340526044368744, -0.311296671628952, 0.11716289818286896, -0.4472607970237732, 0.35009765625, 0.3386387825012207, 0.4484480917453766, 0.10447129607200623, -0.18363188207149506, 0.0932413786649704, 0.04634608328342438, 0.10086260735988617, 0.3841869831085205, -0.07124780118465424, -0.20783497393131256, 0.08928816765546799, -0.32282906770706177, 0.49117690324783325, -0.026177242398262024, -0.5840348601341248, -0.26566407084465027, -0.24309469759464264, 0.24653145670890808, -0.3386538028717041, 0.4108408987522125, 0.35294947028160095, -0.22289489209651947, -0.06588573753833771, 0.026527592912316322, 0.236474871635437, 0.04665786400437355, 0.13491863012313843, 0.18154199421405792, -0.050553664565086365, -0.021417412906885147, 0.40600794553756714, 0.21412114799022675, -0.3812197148799896, 0.3060287535190582, -0.11398252844810486, -0.18656283617019653, -0.038465775549411774, 0.0719916820526123, 0.1743495911359787, -0.464119553565979, -0.24786803126335144, 0.18901889026165009, 0.625887393951416, -0.20975059270858765, 0.007886992767453194, -0.09609469771385193, 0.3676454722881317, -0.370094358921051, -0.10633224248886108, -0.28265562653541565, 0.20643548667430878, -0.11574220657348633, 0.040216267108917236, 0.0490543395280838, 0.039537541568279266, -0.04381716996431351, 0.008719293400645256, -0.21364736557006836, -0.10270817577838898, 0.10558155179023743, 0.16094675660133362, 0.01824820041656494, 0.3611713647842407, 0.3024439513683319, -0.41452446579933167, -0.0036733783781528473, -0.43101266026496887, 0.16133807599544525, -0.05552412569522858, -0.03139302134513855, 0.18591368198394775, 0.11978859454393387, -0.35727670788764954, -0.23967917263507843, -0.3576965928077698, 0.05240834504365921, 0.19267481565475464, 0.06401677429676056, 0.12256190180778503, -0.1955529898405075, -0.5717164874076843, 0.13676920533180237, 0.18944644927978516, -0.22391271591186523, -0.10179093480110168, 0.12403011322021484, 0.30574920773506165, -0.15025542676448822, 0.08020198345184326, -0.2521089017391205, 0.039503082633018494, 0.3099376857280731, 0.12545236945152283, 0.37098807096481323, 0.2314789891242981, 0.18722176551818848, -0.16105839610099792, 0.24103902280330658, -0.061075229197740555, 0.009661473333835602, -0.04966333135962486, -0.4228898882865906, 0.1595318764448166, 0.3035751283168793, 0.10416540503501892, -0.3014525771141052, -0.09016729891300201, -0.0021966565400362015, 0.4176015555858612, 0.11070889234542847, 0.2904234528541565, 0.20705190300941467, -0.1417415738105774, -0.098825603723526, -0.048624999821186066, -0.0972355529665947, -0.3975604176521301, -0.023278508335351944, 0.09209483861923218, 0.060330405831336975, 0.13280226290225983, 0.2289082556962967, 0.5250608325004578, -0.22510938346385956, 0.07465048134326935, 0.16329063475131989, 0.1939113438129425, 0.26404303312301636, -0.02568158507347107, -0.010926179587841034, 0.10313519835472107, 0.22650045156478882, 0.018688224256038666, 0.3572961091995239, 0.38708412647247314, 0.29886162281036377, -0.08485713601112366, 0.2265387922525406, 0.4148778021335602, 0.01976194977760315, 0.20693865418434143, 0.2649189531803131, 0.05522666499018669, -0.4714701771736145, -0.08231167495250702, 0.04015767574310303, 0.013379856944084167, 0.10344760119915009, -0.29983091354370117, -0.08174963295459747, 0.16209033131599426, -0.010219857096672058, -0.17058013379573822, 0.12444594502449036, 0.205119326710701, 0.2919785976409912, -0.22775593400001526, -0.04600256681442261, 0.06939881294965744, 0.14776042103767395, 0.40561234951019287, 0.7547991275787354, -0.06576003134250641, -0.04753614962100983, 0.20177550613880157, 0.41581064462661743, 0.01780172437429428, -0.0005627349019050598, 0.05806323140859604, 0.07380089163780212, 0.39808252453804016, -0.18375042080879211, -0.1494773030281067, -0.021110422909259796, 0.06490842252969742, 0.4278397262096405, 0.1346673220396042, 0.04232308268547058, -0.21206745505332947, 0.2639537751674652, -0.016952592879533768, -0.16869884729385376, -0.1762658953666687, -0.15846960246562958, 0.09561553597450256, 0.027356896549463272, 0.5971825122833252, -0.13009564578533173, -0.1346501260995865, 0.09128975123167038, -0.000007674098014831543, -0.05646252632141113, -0.09043042361736298, 0.18920335173606873, 0.14039593935012817, -0.28021886944770813, -0.22365909814834595, -0.027904577553272247, 0.3802798092365265, -0.18613344430923462, -0.22309519350528717, -0.332660973072052, -0.06183937191963196, 0.37058013677597046, 0.05302271619439125, 0.09350873529911041, 0.027381017804145813, -0.37981224060058594, 0.4845605194568634, -0.11192731559276581, -0.10110223293304443, -0.2941743731498718, 0.3170860707759857, -0.0849199891090393, 0.1796787530183792, 0.15289822220802307, 0.3086317479610443, -0.09501954168081284, -0.12130153179168701, -0.0762392058968544, -0.15981712937355042, 0.30587756633758545, 0.27851009368896484, -0.19577302038669586, 0.3706883490085602, -0.1379021853208542, -0.2090935856103897, 0.29059669375419617, -0.09430010616779327, -0.36916583776474, 0.23773282766342163, 0.19398075342178345, -0.30008456110954285, -0.2975241541862488, -0.08450238406658173, 0.3556577265262604, -0.06374471634626389, -0.2942967414855957, -0.03665003180503845, -0.34300971031188965, -0.03210114687681198, -0.10966065526008606, -0.009535200893878937, 0.06393112987279892, -0.027789343148469925, 0.019048424437642097, -0.041958265006542206, -0.1561744511127472, 0.011682987213134766, 0.23277804255485535, -0.5458316802978516, 0.3114069104194641, -0.02185620367527008, 0.434470534324646, -0.406427264213562, -0.35192397236824036, -0.3572443723678589, -0.06590370833873749, 0.2870922386646271, -0.04473135620355606, 0.034998416900634766, -0.22435761988162994, -0.04117200896143913, 0.07905969768762589, -0.15073540806770325, 0.3140517473220825, -0.07836353778839111, -0.08393140137195587, -0.1645742952823639, -0.12460935860872269 ]
https://github.com/huggingface/datasets/issues/1922
Hi @JieyuZhao ! You can edit the dataset card of wino_bias to update the URL via a Pull Request. This would be really appreciated :) The dataset card is the README.md file you can find at https://github.com/huggingface/datasets/tree/master/datasets/wino_bias Also the homepage url is also mentioned in the wino_bias.py so feel free to update it there as well. You can create a Pull Request directly from the github interface by editing the files you want and submit a PR, or from a local clone of the repository. Thanks for noticing !
How to update the "wino_bias" dataset
Hi all, Thanks for the efforts to collect all the datasets! But I think there is a problem with the wino_bias dataset. The current link is not correct. How can I update that? Thanks!
89
How to update the "wino_bias" dataset Hi all, Thanks for the efforts to collect all the datasets! But I think there is a problem with the wino_bias dataset. The current link is not correct. How can I update that? Thanks! Hi @JieyuZhao ! You can edit the dataset card of wino_bias to update the URL via a Pull Request. This would be really appreciated :) The dataset card is the README.md file you can find at https://github.com/huggingface/datasets/tree/master/datasets/wino_bias Also the homepage url is also mentioned in the wino_bias.py so feel free to update it there as well. You can create a Pull Request directly from the github interface by editing the files you want and submit a PR, or from a local clone of the repository. Thanks for noticing !
[ -0.3595494031906128, 0.16637496650218964, -0.0910966694355011, 0.10533393919467926, 0.0010984940454363823, 0.17919564247131348, -0.03932597488164902, 0.0637114867568016, 0.062265098094940186, -0.12878219783306122, -0.26217564940452576, -0.0001707226037979126, 0.2578839659690857, 0.15930891036987305, 0.2776815593242645, -0.3877263367176056, 0.11132637411355972, 0.11007929593324661, 0.11672962456941605, -0.21103152632713318, -0.30918681621551514, -0.08220681548118591, -0.2789873480796814, 0.09708508849143982, -0.00211464986205101, -0.07784440368413925, -0.5115854144096375, 0.2775803208351135, -0.27067601680755615, -0.47287052869796753, 0.3751766085624695, 0.4130043685436249, -0.0921289324760437, 0.3960893750190735, -0.00010646841838024557, -0.25445666909217834, 0.43345698714256287, 0.11704069375991821, -0.15126124024391174, -0.05577702820301056, -0.113398477435112, -0.1855168491601944, -0.38162192702293396, -0.13678891956806183, 0.021159745752811432, -0.17776741087436676, 0.136751189827919, 0.1966269612312317, 0.10257118940353394, 0.49262815713882446, 0.21421103179454803, 0.20895306766033173, 0.3577847182750702, -0.15544936060905457, 0.3749151825904846, 0.2227904200553894, 0.25640562176704407, 0.3468583822250366, 0.02069101110100746, -0.16910487413406372, 0.16229364275932312, 0.2506523132324219, -0.14679762721061707, -0.18942074477672577, -0.0663960874080658, -0.04458271712064743, 0.047002553939819336, -0.15706336498260498, 0.1275361329317093, 0.14283202588558197, 0.15486447513103485, -0.02961651235818863, -0.35874029994010925, -0.0778491199016571, 0.19106365740299225, -0.733562707901001, 0.16539818048477173, 0.0577254444360733, 0.1552007645368576, -0.011798107996582985, 0.11110901832580566, -0.5181043148040771, -0.1214333176612854, 0.3081214427947998, 0.11254008859395981, 0.10107388347387314, -0.051835380494594574, 0.10258323699235916, 0.13446755707263947, 0.02194993942975998, 0.32733550667762756, 0.04101075977087021, -0.22443929314613342, -0.05683743953704834, -0.23833797872066498, -0.19836172461509705, -0.12843768298625946, 0.4627985656261444, 0.15814870595932007, -0.08702155947685242, -0.20167593657970428, -0.04808744415640831, -0.22213764488697052, -0.1606108546257019, 0.3178706169128418, -0.026414576917886734, -0.13925033807754517, -0.13509991765022278, 0.16661174595355988, 0.1985975205898285, -0.03808959200978279, 0.08637204021215439, -0.02152961865067482, -0.34978151321411133, -0.17785680294036865, -0.012798872776329517, 0.27211129665374756, -0.07686996459960938, -0.3750709891319275, -0.09478632360696793, 0.02594635635614395, -0.1254575401544571, 0.030515208840370178, 0.08248750865459442, -0.15557774901390076, 0.21905548870563507, -0.06371576339006424, 0.14195016026496887, -0.24712026119232178, -0.4623447060585022, -0.2801394760608673, 0.06700073182582855, -0.28031373023986816, -0.003313204273581505, 0.1079283133149147, -0.19237902760505676, 0.4917117655277252, -0.0540023036301136, -0.14425420761108398, -0.056303881108760834, -0.2679829001426697, 0.057268060743808746, -0.09648139774799347, 0.025699321180582047, -0.05133813992142677, 0.021446235477924347, 0.009633965790271759, 0.27655577659606934, -0.06258652359247208, 0.13805997371673584, -0.3825380504131317, -0.20123335719108582, -0.01920933648943901, 0.024055205285549164, -0.097910076379776, -0.36377042531967163, -0.3967583179473877, 0.219015434384346, -0.10845617949962616, -0.02480674535036087, 0.09037816524505615, -0.08395922183990479, -0.3254861831665039, -0.10474066436290741, 0.3892814815044403, 0.4097493886947632, 0.0005986839532852173, 0.22226941585540771, -0.028561456128954887, 0.04357955977320671, 0.019825931638479233, 0.1556757688522339, -0.15596987307071686, 0.057235464453697205, -0.025552816689014435, -0.28543898463249207, 0.2380370795726776, -0.46421968936920166, -0.41622740030288696, -0.2647112011909485, -0.2668766975402832, -0.31494924426078796, -0.262173593044281, 0.18924322724342346, -0.27898913621902466, 0.0009049884974956512, -0.12670037150382996, 0.4232993423938751, -0.11282863467931747, -0.03508986532688141, -0.2599846124649048, -0.13261204957962036, -0.1460777372121811, 0.15836019814014435, 0.04436631500720978, 0.10212898999452591, -0.02548893913626671, -0.03008224628865719, 0.46503689885139465, 0.10591213405132294, -0.04445457458496094, 0.09740389883518219, 0.4143878221511841, 0.16729137301445007, 0.05134670436382294, -0.024931054562330246, -0.12236787378787994, -0.10043922811746597, 0.04009298235177994, -0.021242285147309303, 0.32583534717559814, -0.09771188348531723, -0.4292384386062622, 0.07250583171844482, -0.006362441927194595, -0.19808223843574524, 0.11601054668426514, 0.03253347426652908, 0.13742223381996155, 0.13236570358276367, -0.17458635568618774, -0.05106339603662491, -0.12800918519496918, 0.22697141766548157, 0.2016352266073227, 0.3748254179954529, -0.14449352025985718, -0.0283052958548069, 0.4443068504333496, 0.294861763715744, 0.16187335550785065, -0.08432743698358536, -0.12090784311294556, 0.541994571685791, -0.16322055459022522, 0.12170054018497467, 0.482006311416626, 0.25588297843933105, 0.2863236963748932, -0.5517089366912842, 0.11059676855802536, 0.17852509021759033, -0.14467045664787292, 0.3147727847099304, -0.13087207078933716, 0.1476728618144989, -0.20848314464092255, 0.09854179620742798, -0.313809871673584, 0.41756102442741394, 0.284443736076355, -0.03701131418347359, 0.17498824000358582, 0.2364446222782135, -0.09537093341350555, -0.03536170721054077, 0.006995946168899536, -0.22395595908164978, -0.32411831617355347, 0.3490573763847351, 0.10750316083431244, -0.0751613900065422, -0.19515028595924377, 0.08451176434755325, -0.4713927209377289, -0.18563583493232727, -0.18459723889827728, 0.12506534159183502, 0.2852446436882019, 0.05966854840517044, 0.036932364106178284, 0.1783207803964615, 0.08809912204742432, -0.13880085945129395, 0.27503639459609985, 0.25348037481307983, -0.11549930274486542, -0.18648971617221832, 0.19205686450004578, 0.11742047220468521, -0.27003175020217896, 0.25007957220077515, 0.10697849839925766, 0.38702914118766785, -0.11948347836732864, -0.04238791763782501, 0.10714972764253616, -0.2513251304626465, -0.11185237020254135, -0.20895124971866608, -0.38754740357398987, -0.25023359060287476, 0.12652012705802917, 0.2735845446586609, -0.03777928650379181, 0.3236306309700012, -0.09789463132619858, 0.40733152627944946, 0.22227223217487335, 0.2817661464214325, -0.05794936418533325, -0.19243007898330688, -0.07093863189220428, -0.026185225695371628, 0.16220723092556, 0.007729619741439819, 0.1705097109079361, -0.35217520594596863, 0.35454317927360535, -0.5018281936645508, -0.201523095369339, -0.07198429107666016, 0.06055119261145592, 0.4237367510795593, 0.18376758694648743, 0.06726814806461334, -0.06198357418179512, -0.04545679688453674, 0.20182111859321594, -0.542975664138794, 0.1377968192100525, -0.10111447423696518, 0.05607839301228523, 0.12228327989578247, 0.24629828333854675, -0.20026884973049164, 0.07577836513519287, -0.11292320489883423, -0.0110853873193264, 0.006289154291152954, 0.2626052498817444, 0.08334941416978836, 0.08035805821418762, -0.18305358290672302, -0.13865967094898224, -0.11235181987285614, -0.2118855118751526, -0.5318337678909302, 0.2945447266101837, -0.35956430435180664, -0.4036681056022644, 0.06986226886510849, -0.04499217867851257, 0.12998449802398682, -0.21643728017807007, -0.4553372859954834, -0.18129220604896545, -0.110212542116642, -0.02602957934141159, -0.017630070447921753, 0.2905607223510742, 0.20234960317611694, -0.25026726722717285, -0.28682786226272583, -0.06138166785240173, -0.2773212790489197, -0.022062450647354126, 0.1599818468093872, 0.4155290126800537, 0.2630159556865692, -0.13843302428722382, -0.08568169921636581, 0.749974250793457, 0.15842872858047485, -0.3041239082813263, 0.2625771164894104, -0.10495169460773468, 0.33941900730133057, 0.26259273290634155, -0.4821256697177887, 0.0951007530093193, 0.07581663131713867, 0.36182552576065063, 0.4159470796585083, 0.21476654708385468, -0.09364556521177292, -0.12548300623893738, -0.4458155035972595, -0.30029594898223877, -0.3494910001754761, -0.07992158085107803, -0.2334311604499817, 0.2280256748199463, 0.31626904010772705, 0.06445198506116867, -0.3139525055885315, -0.37068039178848267, 0.47932150959968567, 0.24789907038211823, 0.048798710107803345, -0.024830548092722893, -0.0488772876560688, -0.17909716069698334, -0.2587456703186035, 0.10071570426225662, -0.3959200084209442, 0.33035266399383545, 0.1559309959411621, 0.24007435142993927, 0.16292552649974823, -0.013630388304591179, 0.5150209069252014, -0.31899046897888184, 0.21450689435005188, 0.006591618061065674, 0.406241238117218, 0.03422657400369644, 0.05361063778400421, -0.1371554583311081, 0.4261340796947479, 0.30314886569976807, 0.09547507762908936, -0.05361983925104141, -0.3796592056751251, 0.5107846856117249, 0.008863851428031921, -0.3696419894695282, -0.17353278398513794, 0.04326429218053818, -0.17323851585388184, 0.1945696473121643, 0.1986500471830368, 0.003381602466106415, 0.24323011934757233, -0.1732657551765442, 0.3855418860912323, -0.17609015107154846, 0.18953299522399902, 0.10596299171447754, -0.19002453982830048, 0.19028505682945251, 0.7589070200920105, -0.06881400942802429, 0.21692991256713867, 0.359329491853714, 0.010254783555865288, 0.22899125516414642, -0.02213960886001587, -0.0018982216715812683, -0.3797619342803955, -0.02913311868906021, 0.3100038468837738, 0.3471755385398865, 0.17301815748214722, -0.14393076300621033, -0.07861460745334625, -0.07616584748029709, -0.266588032245636, 0.25641581416130066, 0.46418923139572144, 0.055171068757772446, 0.09406587481498718, -0.4513416886329651, 0.3257634937763214, -0.09634411334991455, -0.2576679289340973, 0.35638096928596497, 0.6770898103713989, -0.09547293186187744, 0.13949577510356903, 0.4004175066947937, 0.9049205780029297, 0.0827684998512268, 0.17372679710388184, 0.003151481971144676, -0.3393121063709259, 0.5974231362342834, 0.20148658752441406, 0.20525982975959778, -0.2889653444290161, -0.1158255785703659, 0.0493202805519104, -0.02345374971628189, -0.13913649320602417, -0.16947777569293976, -0.0496770441532135, 0.17788471281528473, 0.10094104707241058, -0.07625476270914078, 0.20973047614097595, 0.08111272752285004, 0.32928764820098877, 0.04706669598817825, 0.03420638665556908, 0.13186219334602356, -0.06559014320373535, 0.3627304434776306, -0.023869765922427177, -0.0672176331281662, 0.16657955944538116, -0.05318411812186241, -0.45402976870536804, -0.10600206255912781, -0.3741120994091034, -0.1598394513130188, -0.20688951015472412, -0.27877506613731384, 0.08997481316328049, 0.2630537152290344, 0.6369234323501587, 0.11700483411550522, -0.20228153467178345, 0.29683008790016174, 0.2092125117778778, -0.33993443846702576, -0.03857555240392685, -0.032520636916160583, 0.07295426726341248, -0.04697156324982643, -0.4824797213077545, 0.020586926490068436, 0.0569697767496109, -0.3097608685493469, -0.23864811658859253, -0.34448233246803284, -0.21555186808109283, -0.04260089248418808, -0.04062200337648392, 0.15571260452270508, 0.28910958766937256, -0.2364448755979538, 0.13087792694568634, 0.23820853233337402, -0.021580170840024948, 0.009480198845267296, 0.17637388408184052, -0.12957876920700073, -0.042093414813280106, 0.34899938106536865, -0.21229657530784607, -0.2513978183269501, 0.4640515446662903, 0.053314320743083954, 0.05718548595905304, -0.23070009052753448, -0.09662746638059616, 0.032285429537296295, -0.17372581362724304, -0.25534871220588684, -0.2653813064098358, 0.2728782296180725, -0.06552207469940186, 0.09653772413730621, 0.19042152166366577, 0.1249186098575592, 0.18731144070625305, -0.37862497568130493, -0.19602428376674652, -0.027977406978607178, 0.07011543214321136, 0.02002560719847679, -0.12667521834373474, -0.3186695873737335, 0.30895107984542847, 0.023886946961283684, -0.3352237939834595, 0.2886683940887451, 0.05493368208408356, -0.09019509702920914, 0.08195570111274719, 0.13108517229557037, 0.05626311153173447, -0.16611401736736298, 0.016897141933441162, -0.6879586577415466, -0.10110506415367126, -0.11650499701499939, -0.2289208024740219, 0.1809024065732956, 0.027305275201797485, -0.19274210929870605, -0.11239157617092133, -0.32195305824279785, -0.04600220173597336, 0.10756298899650574, -0.2701088786125183, -0.0007016584277153015, -0.07203510403633118, 0.17232124507427216, -0.21739351749420166, 0.3391175866127014, 0.03787299245595932, 0.16059081256389618, 0.05476149171590805, 0.3583122789859772, 0.1378594934940338, 0.27933835983276367, 0.1034466028213501, -0.31253883242607117, 0.12074718624353409, 0.13905882835388184, -0.20340076088905334, 0.1799468994140625, 0.09688939899206161, -0.19674374163150787, 0.0019371360540390015, 0.5520459413528442, 0.33956509828567505, 0.5244821906089783, 0.02604850009083748, 0.12323005497455597, 0.34963056445121765, 0.24136187136173248, -0.348597913980484, 0.269616961479187, 0.3537513017654419, 0.17708860337734222, -0.047003380954265594, -0.09100470691919327, 0.4353307783603668, -0.0034165531396865845, -0.2699352204799652, 0.22039654850959778, 0.4291745126247406, -0.14602218568325043, 0.07691748440265656, 0.02068689465522766, 0.005598336458206177, 0.03434252738952637, 0.22240450978279114, 0.5141211152076721, 0.04845181107521057, 0.2780652940273285, 0.08422428369522095, 0.15727320313453674, 0.04363542050123215, -0.059058114886283875, -0.10496826469898224, 0.19663876295089722, 0.07957285642623901, 0.11224213242530823, 0.08783984184265137, -0.09104634821414948, -0.15421374142169952, 0.7406962513923645, -0.1039513647556305, -0.21707555651664734, -0.23887506127357483, 0.12485371530056, 0.17982804775238037, -0.34678807854652405, -0.6718625426292419, -0.11016885936260223, -0.07431572675704956, -0.11828556656837463, 0.16583582758903503, -0.19717955589294434, 0.3857592046260834, -0.14515423774719238, -0.14215612411499023, -0.4889583885669708, 0.04795891419053078, 0.29542726278305054, 0.27312949299812317, 0.02429162710905075, -0.01541465800255537, 0.2184956669807434, 0.038271382451057434, 0.256957471370697, 0.6370871663093567, 0.052746888250112534, -0.03182971477508545, -0.38235729932785034, 0.020069077610969543, -0.02016669139266014, -0.13231971859931946, 0.10262811183929443, -0.09018680453300476, -0.09849917143583298, 0.016768429428339005, 0.18135079741477966, 0.11518365144729614, -0.044946134090423584, 0.2071426808834076, 0.19668233394622803, 0.2826370894908905, -0.07617353647947311, 0.14139202237129211, -0.01956813596189022, -0.16207201778888702, -0.18338999152183533, -0.20840588212013245, -0.050103362649679184, 0.022661078721284866, 0.21309958398342133, -0.2613896429538727, -0.014290627092123032, -0.27631136775016785, 0.06911427527666092, 0.01820717751979828, 0.48196926712989807, 0.44738438725471497, 0.24960890412330627, -0.24784255027770996, -0.26063671708106995, -0.6751895546913147, 0.0702119693160057, 0.0466935932636261, -0.2329174131155014, 0.019346904009580612, -0.08350550383329391, -0.1857014149427414, 0.12383484840393066, 0.2564579248428345, -0.11760836839675903, 0.009383872151374817, 0.35013848543167114, -0.38546812534332275, -0.03682029992341995, -0.1467261016368866, 0.40415820479393005, 0.17329280078411102, 0.19815829396247864, 0.11745575815439224, -0.06600750237703323, -0.003095172345638275, -0.003050699830055237, 0.10232995450496674, -0.1030057817697525, 0.17631417512893677, 0.12337258458137512, -0.0009335651993751526, 0.059950362890958786, 0.05016867071390152, -0.01785098761320114, -0.6541122198104858, -0.2283632457256317, -0.46628108620643616, 0.09082143008708954, -0.170644149184227, 0.018433593213558197, -0.2503197193145752, -0.5449122190475464, -0.017903752624988556, 0.17484241724014282, 0.018250755965709686, -0.4272334575653076, -0.3343035578727722, 0.2882149815559387, 0.14542588591575623, -0.06559416651725769, 0.23875710368156433, -0.014601074159145355, -0.09371799230575562, 0.18801650404930115, -0.21613097190856934, -0.253124475479126, 0.45117735862731934, -0.709134578704834, -0.003316454589366913, -0.2580904960632324, 0.43799668550491333, 0.43512797355651855, 0.13375750184059143, -0.1770673245191574, 0.17124143242835999, 0.13129594922065735, 0.24854633212089539, -0.3428419828414917, 0.1815027892589569, -0.24397613108158112, -0.071094810962677, 0.12300760298967361, 0.6898621916770935, 0.15345212817192078, -0.45217716693878174, -0.18730755150318146, 0.019191108644008636 ]
https://github.com/huggingface/datasets/issues/1919
Hi thanks for reporting and for proposing a fix :) I just merged a fix, feel free to try it from the master branch !
Failure to save with save_to_disk
When I try to save a dataset locally using the `save_to_disk` method I get the error: ```bash FileNotFoundError: [Errno 2] No such file or directory: '/content/squad/train/squad-train.arrow' ``` To replicate: 1. Install `datasets` from master 2. Run this code: ```python from datasets import load_dataset squad = load_dataset("squad") # or any other dataset squad.save_to_disk("squad") # error here ``` The problem is that the method is not creating a directory with the name `dataset_path` for saving the dataset in (i.e. it's not creating the *train* and *validation* directories in this case). After creating the directory the problem resolves. I'll open a PR soon doing that and linking this issue.
25
Failure to save with save_to_disk When I try to save a dataset locally using the `save_to_disk` method I get the error: ```bash FileNotFoundError: [Errno 2] No such file or directory: '/content/squad/train/squad-train.arrow' ``` To replicate: 1. Install `datasets` from master 2. Run this code: ```python from datasets import load_dataset squad = load_dataset("squad") # or any other dataset squad.save_to_disk("squad") # error here ``` The problem is that the method is not creating a directory with the name `dataset_path` for saving the dataset in (i.e. it's not creating the *train* and *validation* directories in this case). After creating the directory the problem resolves. I'll open a PR soon doing that and linking this issue. Hi thanks for reporting and for proposing a fix :) I just merged a fix, feel free to try it from the master branch !
[ -0.04368682578206062, 0.1429486721754074, 0.05701150372624397, 0.1895618885755539, 0.5194173455238342, 0.2885243892669678, 0.1922130584716797, 0.2388131022453308, -0.13136422634124756, 0.1859048306941986, 0.14157792925834656, 0.3680594265460968, -0.31961071491241455, -0.2508211135864258, 0.06987486779689789, 0.04740578681230545, 0.28847622871398926, 0.02039225772023201, -0.03733714297413826, -0.0828116312623024, -0.12387114018201828, 0.26487070322036743, 0.09966912865638733, 0.042199090123176575, -0.508145272731781, -0.006107540801167488, -0.161873459815979, 0.31453052163124084, 0.0010717995464801788, -0.2673491835594177, 0.15341481566429138, -0.3283669054508209, 0.20905150473117828, 0.5840060114860535, -0.00011871654714923352, 0.03691297769546509, -0.038238562643527985, -0.15837077796459198, -0.44426313042640686, -0.40778443217277527, -0.22198368608951569, -0.17300868034362793, 0.11488654464483261, -0.40928715467453003, 0.07016779482364655, -0.05069778114557266, 0.2495623379945755, -0.1575469970703125, 0.3871830701828003, 0.2822137475013733, 0.1549113690853119, -0.03820514306426048, 0.17403197288513184, -0.2288418710231781, -0.16631241142749786, 0.6161904335021973, -0.3467486500740051, 0.29554036259651184, -0.034783896058797836, -0.16861173510551453, 0.36998170614242554, 0.019285045564174652, -0.025886964052915573, -0.1304124891757965, 0.2818761169910431, 0.12150298804044724, 0.0884765237569809, -0.3307271897792816, -0.013627725653350353, 0.012226234190165997, 0.614715576171875, -0.6311990022659302, -0.5074195861816406, 0.22443388402462006, 0.09652400016784668, 0.01931547373533249, 0.18973973393440247, 0.24951905012130737, -0.22631263732910156, 0.19985869526863098, -0.18672311305999756, -0.37924855947494507, -0.31719303131103516, 0.20243673026561737, 0.23376962542533875, -0.16238276660442352, -0.09142804145812988, -0.05370810255408287, 0.1051192358136177, -0.030478233471512794, -0.050736866891384125, -0.2843353748321533, 0.08436647057533264, 0.18002980947494507, -0.186141237616539, -0.13865280151367188, -0.1079164445400238, -0.02012091875076294, -0.1373758763074875, 0.12041648477315903, 0.19697177410125732, -0.29856714606285095, 0.00027940794825553894, 0.3721287250518799, 0.15068507194519043, 0.05981426313519478, 0.28327658772468567, 0.39884325861930847, 0.38546034693717957, 0.09027279913425446, 0.02677828073501587, -0.04594055563211441, -0.0410899817943573, -0.1973220556974411, 0.5454725623130798, -0.009780798107385635, 0.3190211355686188, -0.18269270658493042, -0.22899816930294037, 0.42540717124938965, -0.18256880342960358, 0.1510065644979477, 0.0385163314640522, 0.24097543954849243, 0.11180401593446732, -0.08464297652244568, -0.010193146765232086, 0.4569026529788971, 0.06401948630809784, 0.3838762938976288, -0.17836280167102814, 0.19134734570980072, -0.008819423615932465, 0.22531898319721222, 0.22535847127437592, -0.18307125568389893, 0.18487513065338135, 0.05671962350606918, -0.01882702112197876, -0.016478337347507477, -0.002684079110622406, -0.280246376991272, 0.028289977461099625, 0.3156394958496094, 0.07254930585622787, 0.10896258056163788, 0.11983950436115265, -0.4458801746368408, -0.12196904420852661, 0.2643062472343445, -0.07748453319072723, -0.4749073386192322, -0.2428729385137558, 0.07883425056934357, 0.0020115748047828674, -0.012369876727461815, -0.26207107305526733, -0.1679551899433136, 0.20514395833015442, -0.11549228429794312, -0.06401354819536209, 0.05719289556145668, -0.057620126754045486, -0.416885644197464, 0.41270115971565247, 0.3620339632034302, -0.506676435470581, 0.27327293157577515, 0.03450928255915642, -0.12300750613212585, 0.1597743034362793, 0.5587686896324158, -0.015176290646195412, 0.3559604287147522, -0.2971852421760559, 0.3118732273578644, 0.5128964781761169, -0.40454065799713135, -0.29941439628601074, 0.14779327809810638, -0.14206674695014954, -0.3448432981967926, 0.05930928885936737, 0.13122820854187012, -0.13095471262931824, -0.15171794593334198, 0.037294380366802216, 0.08170907199382782, -0.1437605321407318, 0.041048310697078705, -0.49238401651382446, 0.122828409075737, -0.006329570896923542, 0.08016526699066162, -0.15821868181228638, -0.009818222373723984, 0.23465223610401154, 0.07412032783031464, 0.3167811632156372, -0.24652132391929626, 0.12980960309505463, 0.4385487139225006, 0.7910141944885254, -0.15695124864578247, -0.17342299222946167, -0.05157797038555145, -0.3099273145198822, 0.1068461686372757, 0.2395673394203186, -0.052906762808561325, -0.1526201069355011, -0.09531839936971664, -0.15247602760791779, 0.04086122661828995, -0.42060574889183044, 0.02666560560464859, 0.015180312097072601, -0.055918943136930466, 0.16682526469230652, 0.19115935266017914, -0.3386029899120331, 0.1531253457069397, -0.373454213142395, 0.07664155960083008, 0.05407288298010826, 0.41804635524749756, -0.34013354778289795, -0.3832111656665802, -0.22341600060462952, 0.0831991583108902, 0.026224128901958466, -0.020084543153643608, -0.15681885182857513, 0.4635840654373169, 0.058135952800512314, 0.16988186538219452, 0.17697259783744812, 0.05948283523321152, 0.11884722113609314, -0.17105013132095337, -0.021170208230614662, 0.3229104280471802, 0.37934088706970215, 0.07078675925731659, -0.6439213156700134, -0.07962922751903534, -0.05599440634250641, 0.08697225153446198, 0.1420307755470276, 0.09863869845867157, 0.11591880768537521, 0.018866918981075287, 0.008737251162528992, -0.09192828088998795, 0.1190076470375061, 0.004111148416996002, 0.17845682799816132, -0.20225609838962555, -0.3054651618003845, -0.053746022284030914, 0.004589597228914499, 0.010024257004261017, 0.43230530619621277, 0.11641016602516174, 0.12073953449726105, -0.022186461836099625, -0.07305043190717697, 0.4694503843784332, 0.5397557616233826, -0.04492071270942688, -0.0467781238257885, 0.09063276648521423, -0.22362646460533142, -0.13235004246234894, 0.10954447090625763, -0.14455372095108032, 0.20413628220558167, 0.5783132910728455, 0.07444210350513458, 0.13986989855766296, -0.23759394884109497, -0.011338934302330017, -0.02628183737397194, 0.2607399523258209, -0.2932000160217285, -0.15216398239135742, -0.22735857963562012, 0.16289106011390686, -0.23018787801265717, 0.05901608616113663, -0.07713713496923447, -0.2169802337884903, 0.02888200432062149, 0.35443827509880066, -0.02171962335705757, -0.0699993297457695, 0.007992498576641083, 0.058608874678611755, -0.16876697540283203, -0.3593929708003998, -0.012233071029186249, -0.043121591210365295, -0.06475590914487839, -0.04051666334271431, 0.243248850107193, -0.0931786447763443, 0.4074332118034363, -0.13626068830490112, 0.00645214319229126, -0.6529044508934021, 0.041798681020736694, -0.014636477455496788, 0.006026996299624443, 0.32849714159965515, 0.04688341170549393, 0.3231474459171295, -0.26395827531814575, -0.23000361025333405, 0.37667739391326904, 0.030434072017669678, -0.17588692903518677, 0.14536170661449432, 0.13462701439857483, -0.31089895963668823, -0.11814066767692566, -0.3630984127521515, -0.3233226239681244, -0.27664902806282043, 0.11319151520729065, -0.21956412494182587, 0.1284826546907425, -0.01757766306400299, 0.2915681004524231, 0.22278495132923126, 0.11604955792427063, -0.08559815585613251, -0.09126816689968109, -0.3929234743118286, 0.6367707252502441, -0.31006956100463867, -0.40079376101493835, 0.172648087143898, 0.11836107075214386, 0.029365237802267075, -0.031087230890989304, -0.34656476974487305, -0.3220781087875366, 0.02186732180416584, 0.14160104095935822, -0.17451493442058563, 0.28098925948143005, 0.34791383147239685, -0.012804970145225525, 0.025951556861400604, 0.01955130696296692, -0.3645201325416565, 0.19867739081382751, 0.5634407997131348, 0.509530782699585, -0.27417442202568054, 0.4664592146873474, 0.006315439939498901, 0.5923214554786682, 0.162398099899292, 0.25595611333847046, 0.4696493446826935, 0.04604227840900421, 0.3521325886249542, -0.20768125355243683, -0.3169226050376892, 0.10218527913093567, -0.1217058002948761, -0.5222662091255188, -0.1713109016418457, 0.10420481860637665, 0.04058968275785446, -0.07626588642597198, -0.027608778327703476, -0.19508779048919678, -0.18043512105941772, -0.06468716263771057, 0.1493261456489563, 0.28038904070854187, -0.14826351404190063, 0.10997188091278076, 0.2512287497520447, -0.008369166404008865, 0.07187128067016602, 0.6023399233818054, 0.3001719117164612, 0.03489812836050987, -0.5934092998504639, -0.33217933773994446, -0.36931413412094116, 0.0797097235918045, 0.05140968784689903, 0.38057562708854675, -0.20384636521339417, -0.07415223866701126, -0.00688866525888443, 0.07175419479608536, 0.417728990316391, -0.2680717706680298, -0.20050793886184692, 0.06552865356206894, 0.04763885587453842, -0.4446982741355896, -0.16671481728553772, 0.3305508494377136, 0.3490890860557556, -0.18564581871032715, 0.45125865936279297, -0.031744472682476044, -0.11438325047492981, -0.09333391487598419, 0.2862456142902374, -0.1979823112487793, -0.2021404653787613, -0.15517517924308777, -0.2627655565738678, -0.35375964641571045, -0.11331099271774292, -0.0027024075388908386, 0.03577880561351776, 0.38680845499038696, 0.06616293638944626, 0.027366289868950844, 0.0027789101004600525, 0.13475598394870758, -0.17321676015853882, 0.4466361999511719, -0.23007898032665253, 0.1627962291240692, -0.08838751912117004, 0.024343114346265793, 0.3703673183917999, 0.3753553032875061, -0.2585770785808563, -0.3253380358219147, 0.09511878341436386, -0.27500152587890625, 0.4798430800437927, 0.1903959959745407, -0.11407005786895752, -0.48176833987236023, -0.06034189835190773, -0.038953304290771484, -0.22834131121635437, -0.2157604992389679, 0.2810062766075134, -0.19167527556419373, -0.17666280269622803, -0.001936003565788269, 0.13063949346542358, 0.2120264172554016, 0.22157366573810577, 0.10686735063791275, 0.015848731622099876, -0.06639987230300903, 0.3310074806213379, 0.19269855320453644, 0.834755539894104, -0.021093178540468216, 0.3929266333580017, 0.10468252003192902, -0.27868813276290894, 0.1136673167347908, -0.1644265055656433, 0.17429804801940918, -0.5152053833007812, 0.09566372632980347, -0.04925864189863205, -0.08255943655967712, 0.26779451966285706, 0.2560131549835205, -0.2164883017539978, 0.39535990357398987, -0.39802128076553345, 0.12243467569351196, -0.18711473047733307, 0.044594332575798035, -0.29419004917144775, -0.25157660245895386, -0.22792945802211761, 0.1340619921684265, 0.07026328146457672, 0.17357712984085083, -0.03902929276227951, -0.048587799072265625, -0.30684641003608704, -0.04574402794241905, -0.29210036993026733, 0.2171730399131775, -0.2839549779891968, 0.4295627176761627, -0.15107625722885132, -0.5352055430412292, -0.02050687000155449, 0.7050192356109619, 0.4556487500667572, 0.06054267659783363, -0.20670786499977112, -0.06717126071453094, -0.15872398018836975, 0.16301892697811127, -0.0978156328201294, -0.17284366488456726, 0.31301745772361755, -0.07616528868675232, -0.002159714698791504, -0.05661050230264664, -0.1997142881155014, -0.2288075089454651, -0.1366557627916336, -0.04963652044534683, 0.111146941781044, -0.12503425776958466, -0.529801607131958, 0.012466955929994583, -0.12504583597183228, -0.1918315291404724, 0.09347864985466003, 0.16435226798057556, -0.11788146197795868, 0.3749893009662628, -0.3534032702445984, 0.07240977883338928, 0.10484221577644348, 0.4314039349555969, -0.3103456497192383, 0.03407684713602066, 0.47169986367225647, -0.12981589138507843, 0.060045190155506134, -0.30478087067604065, 0.4256795644760132, 0.0011186450719833374, -0.13580414652824402, 0.1446162313222885, -0.22540263831615448, -0.0124131441116333, -0.08167815208435059, -0.01762334257364273, 0.36899062991142273, -0.2554950416088104, -0.08575434982776642, -0.2979806661605835, -0.5189900994300842, -0.09928151965141296, 0.4103378653526306, 0.1895846724510193, -0.06058941036462784, -0.1244576945900917, 0.19435596466064453, -0.27508819103240967, -0.21917381882667542, -0.025371598079800606, -0.30230504274368286, 0.020504720509052277, 0.058435145765542984, 0.05550942197442055, 0.3383268117904663, -0.34290748834609985, 0.0912238135933876, 0.016808826476335526, -0.1370321661233902, -0.1676114946603775, -0.03863685950636864, 0.14918559789657593, 0.14238876104354858, 0.1044517308473587, 0.0018480904400348663, -0.3341520428657532, -0.07318836450576782, -0.05118187516927719, -0.2740126848220825, 0.4773296117782593, 0.028654666617512703, 0.0739973932504654, -0.008724736049771309, 0.0509583055973053, 0.12879538536071777, -0.19692304730415344, 0.052765678614377975, 0.23556050658226013, 0.05278515815734863, -0.10158896446228027, 0.14154985547065735, -0.2127239853143692, -0.32458627223968506, -0.07888379693031311, -0.13402970135211945, 0.1693498194217682, -0.01638277806341648, -0.3777160048484802, -0.1813931167125702, 0.010154493153095245, 0.47411075234413147, 0.32654547691345215, -0.3118917644023895, 0.22288990020751953, 0.3820924162864685, 0.1247720718383789, 0.02351093292236328, -0.26848849654197693, 0.28372544050216675, -0.11585507541894913, -0.2796924114227295, 0.08080554753541946, -0.07524265348911285, 0.0504002720117569, -0.41472944617271423, 0.08880222588777542, 0.31772810220718384, -0.34903937578201294, 0.11071109771728516, 0.18248285353183746, -0.02350752055644989, 0.30922576785087585, -0.11060908436775208, -0.17167803645133972, 0.15992212295532227, 0.21869362890720367, -0.17347684502601624, 0.23852568864822388, 0.30128127336502075, 0.1493501216173172, 0.29535308480262756, -0.01351502537727356, -0.006918695289641619, -0.4171994626522064, -0.09829497337341309, -0.01344354823231697, -0.00014125555753707886, 0.3464179039001465, -0.4165666997432709, -0.2585897445678711, -0.17196974158287048, 0.07223932445049286, -0.2669568359851837, 0.07410314679145813, -0.07635294646024704, -0.11905532330274582, 0.2702912986278534, -0.05944380909204483, -0.13852207362651825, -0.12951940298080444, -0.052325181663036346, 0.19551324844360352, 0.19518789649009705, -0.02294101193547249, 0.14539837837219238, 0.2591456174850464, 0.027171889320015907, -0.1961701363325119, -0.0074244290590286255, 0.06639216095209122, -0.30788832902908325, -0.39982151985168457, 0.3634175956249237, 0.43975433707237244, 0.5535862445831299, -0.021844279021024704, 0.2691556513309479, -0.22263890504837036, 0.016612760722637177, 0.264259397983551, 0.038648344576358795, -0.10297872871160507, -0.08574379980564117, 0.4220948815345764, 0.09590931236743927, 0.05979405716061592, 0.2503315210342407, -0.01508335955440998, 0.10467252135276794, -0.008134778589010239, 0.23775555193424225, -0.02403845638036728, -0.20901301503181458, -0.00022006873041391373, 0.0854361355304718, -0.2198106050491333, -0.05369284749031067, 0.5168393850326538, 0.06826668977737427, 0.12857630848884583, -0.10787761211395264, 0.038369856774806976, -0.03653496131300926, 0.3760027289390564, 0.2762748897075653, -0.25772538781166077, -0.5194137692451477, 0.033072009682655334, -0.6200776696205139, -0.1018303781747818, 0.05563289299607277, 0.2281336784362793, -0.28086841106414795, 0.26387372612953186, -0.12162549048662186, 0.2111627459526062, 0.19092346727848053, 0.12905006110668182, -0.10838089883327484, 0.5609632134437561, -0.17078638076782227, -0.04353617876768112, 0.009258834645152092, 0.0681425929069519, 0.13911119103431702, -0.3969306945800781, 0.17430245876312256, 0.17839045822620392, -0.028229951858520508, 0.043210484087467194, -0.022931218147277832, -0.22063057124614716, 0.33853763341903687, 0.4254104793071747, -0.06663580983877182, 0.15874603390693665, 0.003803357481956482, -0.30346763134002686, 0.15416909754276276, 0.09240804612636566, -0.038142088800668716, 0.18447187542915344, -0.04788656532764435, 0.5128152370452881, -0.37497860193252563, -0.09320876747369766, -0.4210631549358368, -0.005848579108715057, -0.09196336567401886, -0.015909649431705475, -0.07924892753362656, 0.006005711853504181, 0.13553974032402039, 0.15876735746860504, 0.25044289231300354, -0.00726031418889761, -0.19952812790870667, 0.3668052554130554, -0.3987041115760803, -0.23462426662445068, 0.5763826966285706, 0.05444658175110817, -0.03203161805868149, -0.08239097893238068, 0.29761311411857605, 0.2576940357685089, 0.13914106786251068, -0.38643765449523926, -0.26104289293289185, 0.25359195470809937, -0.09584502875804901, -0.2886843681335449, 0.08539003133773804, -0.16147252917289734, 0.16087156534194946, 0.15434905886650085, 0.38287392258644104, -0.07479004561901093, -0.011775396764278412, 0.1511540710926056, -0.33485686779022217 ]
https://github.com/huggingface/datasets/issues/1915
Thanks for reporting ! This is a bug. For now feel free to set `ignore_verifications=False` in `load_dataset`. I'm working on a fix
Unable to download `wiki_dpr`
I am trying to download the `wiki_dpr` dataset. Specifically, I want to download `psgs_w100.multiset.no_index` with no embeddings/no index. In order to do so, I ran: `curr_dataset = load_dataset("wiki_dpr", embeddings_name="multiset", index_name="no_index")` However, I got the following error: `datasets.utils.info_utils.UnexpectedDownloadedFile: {'embeddings_index'}` I tried adding in flags `with_embeddings=False` and `with_index=False`: `curr_dataset = load_dataset("wiki_dpr", with_embeddings=False, with_index=False, embeddings_name="multiset", index_name="no_index")` But I got the following error: `raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) datasets.utils.info_utils.ExpectedMoreDownloadedFiles: {‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_5’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_15’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_30’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_36’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_18’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_41’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_13’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_48’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_10’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_23’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_14’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_34’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_43’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_40’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_47’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_3’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_24’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_7’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_33’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_46’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_42’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_27’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_29’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_26’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_22’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_4’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_20’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_39’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_6’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_16’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_8’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_35’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_49’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_17’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_25’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_0’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_38’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_12’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_44’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_1’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_32’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_19’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_31’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_37’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_9’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_11’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_21’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_28’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_45’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_2’}` Is there anything else I need to set to download the dataset? **UPDATE**: just running `curr_dataset = load_dataset("wiki_dpr", with_embeddings=False, with_index=False)` gives me the same error.
22
Unable to download `wiki_dpr` I am trying to download the `wiki_dpr` dataset. Specifically, I want to download `psgs_w100.multiset.no_index` with no embeddings/no index. In order to do so, I ran: `curr_dataset = load_dataset("wiki_dpr", embeddings_name="multiset", index_name="no_index")` However, I got the following error: `datasets.utils.info_utils.UnexpectedDownloadedFile: {'embeddings_index'}` I tried adding in flags `with_embeddings=False` and `with_index=False`: `curr_dataset = load_dataset("wiki_dpr", with_embeddings=False, with_index=False, embeddings_name="multiset", index_name="no_index")` But I got the following error: `raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) datasets.utils.info_utils.ExpectedMoreDownloadedFiles: {‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_5’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_15’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_30’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_36’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_18’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_41’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_13’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_48’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_10’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_23’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_14’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_34’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_43’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_40’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_47’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_3’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_24’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_7’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_33’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_46’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_42’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_27’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_29’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_26’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_22’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_4’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_20’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_39’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_6’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_16’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_8’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_35’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_49’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_17’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_25’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_0’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_38’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_12’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_44’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_1’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_32’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_19’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_31’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_37’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_9’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_11’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_21’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_28’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_45’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_2’}` Is there anything else I need to set to download the dataset? **UPDATE**: just running `curr_dataset = load_dataset("wiki_dpr", with_embeddings=False, with_index=False)` gives me the same error. Thanks for reporting ! This is a bug. For now feel free to set `ignore_verifications=False` in `load_dataset`. I'm working on a fix
[ -0.35910794138908386, -0.3630984425544739, -0.0504426434636116, 0.3148261606693268, 0.3717033267021179, 0.42704886198043823, 0.31989502906799316, 0.0625339224934578, 0.23852169513702393, 0.18049922585487366, 0.16470152139663696, -0.020608635619282722, 0.09541131556034088, -0.021091002970933914, -0.16730907559394836, -0.03340068459510803, 0.10013099759817123, 0.10705594718456268, 0.3710588812828064, -0.06221093609929085, -0.3295954465866089, 0.2548210024833679, -0.3576645255088806, -0.23189537227153778, -0.15362848341464996, -0.14352010190486908, -0.05908523499965668, -0.07667580246925354, -0.44475889205932617, -0.47243547439575195, 0.5257073640823364, 0.21393105387687683, 0.4566456973552704, 0.20941780507564545, -0.00012333394261077046, -0.008185349404811859, 0.2570951282978058, -0.27606528997421265, -0.22674372792243958, -0.19940997660160065, -0.5099614858627319, -0.21343226730823517, 0.12281589210033417, -0.2729625701904297, 0.295212984085083, -0.21285751461982727, -0.07495100051164627, -0.09289610385894775, 0.07453148066997528, 0.15100626647472382, 0.14490318298339844, -0.06254008412361145, 0.15082460641860962, -0.23555639386177063, 0.09454485774040222, -0.17693102359771729, -0.13189038634300232, 0.17108005285263062, -0.027256831526756287, 0.13411757349967957, 0.26910820603370667, 0.05608709156513214, -0.25188133120536804, 0.22777345776557922, 0.11705341935157776, 0.016490653157234192, 0.2614756226539612, -0.3041640818119049, 0.40161991119384766, 0.5526138544082642, 0.9237309098243713, 0.1302182972431183, -0.23869362473487854, 0.03828693926334381, 0.2114560455083847, -0.37577441334724426, 0.16353760659694672, 0.22582325339317322, -0.25308680534362793, 0.2006119042634964, -0.2965894937515259, -0.06835360080003738, -0.021251514554023743, 0.32370173931121826, -0.09896225482225418, 0.3529936671257019, 0.2022208273410797, 0.1463736593723297, 0.18566584587097168, -0.20362891256809235, 0.07434751093387604, -0.11150983721017838, -0.2810247838497162, 0.08744591474533081, -0.22826114296913147, 0.007346004247665405, -0.14030340313911438, 0.057153090834617615, 0.2315737009048462, 0.33351579308509827, 0.013792630285024643, 0.17053917050361633, 0.43144115805625916, 0.10148319602012634, 0.2653805613517761, 0.250842422246933, -0.11955269426107407, 0.24619895219802856, 0.31459489464759827, 0.5472882986068726, 0.25496554374694824, -0.0376865416765213, -0.009599532932043076, -0.007684849202632904, -0.06187079846858978, -0.11014246195554733, -0.08675771206617355, -0.3650253415107727, -0.2998697757720947, 0.1207369863986969, -0.2721976339817047, -0.18577459454536438, -0.24550575017929077, 0.39892739057540894, 0.05123596265912056, 0.4941692650318146, 0.13450199365615845, 0.16922512650489807, -0.03893338516354561, 0.04554923623800278, -0.09659785032272339, -0.099168561398983, -0.12959608435630798, 0.08275433629751205, 0.38329219818115234, -0.33218345046043396, 0.39548054337501526, 0.03591829538345337, 0.06707197427749634, 0.08984772861003876, -0.06727270781993866, -0.020042356103658676, 0.20513860881328583, 0.3828622102737427, 0.028589993715286255, 0.2937912940979004, 0.10742545127868652, -0.22610434889793396, -0.024616144597530365, 0.2774975001811981, -0.18186505138874054, -0.4335758090019226, -0.0587908998131752, 0.12490073591470718, -0.2760755121707916, -0.07174213230609894, -0.3263552486896515, 0.10717111825942993, 0.017803404480218887, -0.14471986889839172, 0.15836630761623383, 0.01385132223367691, -0.20045101642608643, -0.319254070520401, 0.31625303626060486, 0.5299690365791321, -0.5378869771957397, -0.05652303248643875, -0.08767873048782349, -0.27632635831832886, 0.1355169117450714, 0.015335611999034882, -0.2887881398200989, -0.08965513110160828, -0.37824979424476624, 0.11999979615211487, 0.1308036595582962, -0.40481898188591003, -0.5335978269577026, 0.4260769188404083, 0.016574524343013763, 0.14255893230438232, 0.3088409900665283, 0.06876209378242493, 0.2286393940448761, 0.09076538681983948, -0.10961275547742844, 0.36091774702072144, 0.1335100382566452, -0.27136659622192383, -0.003688625991344452, -0.3318435549736023, 0.3804722726345062, 0.06466025859117508, -0.04755299910902977, -0.0033562779426574707, 0.11831139028072357, 0.18105146288871765, 0.44516539573669434, 0.004278811160475016, 0.03122389316558838, 0.27065110206604004, 0.11804640293121338, 0.09014549851417542, 0.133927583694458, 0.12293878942728043, -0.5137765407562256, 0.22903206944465637, 0.1504509001970291, 0.045754123479127884, -0.332019180059433, -0.09493669122457504, -0.3201952576637268, -0.08736537396907806, -0.37447598576545715, -0.2137419730424881, -0.008201222866773605, 0.1704929769039154, -0.032500166445970535, -0.16025963425636292, -0.09846346825361252, 0.04153718054294586, -0.05279131978750229, 0.02773343399167061, -0.17825838923454285, 0.1469733715057373, -0.1374596208333969, 0.014373082667589188, 0.11235383152961731, -0.06832380592823029, 0.31899479031562805, -0.050568148493766785, 0.06790633499622345, 0.3047974705696106, 0.20432698726654053, -0.01666896790266037, -0.00668983394280076, -0.005671054124832153, 0.2587311267852783, -0.5035475492477417, -0.0205894336104393, 0.3803391754627228, 0.15768390893936157, -0.06051431596279144, -0.26323258876800537, 0.2244812399148941, -0.02908688597381115, 0.36857470870018005, -0.20610195398330688, 0.04162013530731201, 0.32764583826065063, -0.17608271539211273, 0.22870875895023346, -0.3677021265029907, 0.29006633162498474, 0.5791847705841064, -0.24930530786514282, -0.1534954309463501, -0.04825005680322647, 0.03918099030852318, 0.1322939395904541, -0.2087438404560089, -0.08710269629955292, 0.023671310395002365, 0.055203620344400406, -0.048158638179302216, 0.14484518766403198, 0.060099147260189056, 0.3681732416152954, 0.24725478887557983, 0.09365790337324142, -0.1286986768245697, 0.16360755264759064, -0.3218725323677063, 0.21349328756332397, -0.011946402490139008, -0.15797851979732513, 0.5060123801231384, -0.08217570930719376, -0.053016651421785355, -0.23479565978050232, -0.03304819390177727, 0.2623148262500763, 0.28315332531929016, -0.3046385645866394, -0.17794089019298553, -0.6171995997428894, 0.005377061665058136, 0.09497640281915665, -0.17050579190254211, -0.203748881816864, -0.297421395778656, 0.10519498586654663, -0.07480081170797348, 0.12483333796262741, 0.14068517088890076, -0.2971709668636322, -0.11093737185001373, -0.12864252924919128, -0.20254190266132355, -0.04070809483528137, -0.05362813547253609, -0.33184945583343506, -0.024945026263594627, 0.23825857043266296, 0.30148035287857056, 0.25168466567993164, 0.05871900916099548, -0.3458542823791504, -0.3976096510887146, -0.09315865486860275, 0.051829297095537186, -0.13947592675685883, 0.06141982227563858, 0.3366079330444336, 0.481332927942276, -0.05281297117471695, -0.34334900975227356, 0.0972990021109581, -0.06143154203891754, -0.03342851623892784, -0.06213739514350891, -0.08786781877279282, -0.045350562781095505, -0.11441202461719513, -0.6167300343513489, -0.13302236795425415, -0.31352198123931885, -0.09668920934200287, 0.08505700528621674, -0.0683746263384819, -0.07277186214923859, 0.198506698012352, -0.12637925148010254, 0.2616436183452606, -0.08509956300258636, -0.1912420392036438, -0.16076910495758057, 0.5849159955978394, -0.12879341840744019, -0.37579336762428284, 0.522277295589447, 0.011142082512378693, -0.026225918903946877, 0.3314105272293091, -0.58231520652771, 0.10696790367364883, 0.10257972776889801, 0.20824739336967468, 0.002548295073211193, 0.2310560941696167, 0.30584582686424255, 0.02860717847943306, -0.05864882096648216, -0.0875660628080368, -0.09399689733982086, -0.05648075044155121, -0.2831985652446747, 0.5092186331748962, -0.010556322522461414, 0.23682275414466858, -0.18514251708984375, 0.6094352006912231, 0.3000096082687378, 0.11782334744930267, 0.3601538836956024, -0.03556229546666145, 0.16758105158805847, 0.16291524469852448, -0.14033812284469604, 0.03686150908470154, -0.1783124804496765, 0.32490700483322144, 0.28484874963760376, -0.16184554994106293, -0.33210352063179016, -0.3920759856700897, 0.10114137828350067, -0.0891900435090065, -0.07274477928876877, -0.049127452075481415, 0.34274822473526, 0.13430550694465637, -0.13562999665737152, 0.30293214321136475, 0.08211764693260193, -0.33348339796066284, 0.2686661183834076, 0.25349104404449463, -0.14298775792121887, 0.14845623075962067, 0.15891104936599731, -0.037980370223522186, -0.3448106348514557, 0.3444143533706665, 0.16388599574565887, 0.30876219272613525, 0.004574432969093323, 0.16551923751831055, 0.18959037959575653, -0.024254420772194862, 0.560565710067749, -0.4350595772266388, 0.3597974479198456, 0.16880428791046143, 0.05177891254425049, -0.2673882842063904, -0.19220280647277832, -0.2611427903175354, -0.2761246860027313, -0.1781177669763565, 0.22159801423549652, -0.6027703881263733, 0.01617807149887085, 0.16691966354846954, 0.16122892498970032, -0.12385475635528564, -0.3593956232070923, -0.37048205733299255, -0.4479209780693054, -0.4778938293457031, -0.19642935693264008, 0.007510483264923096, 0.361940860748291, -0.21361854672431946, -0.09255634248256683, -0.009136572480201721, 0.11710088700056076, -0.0015812329947948456, -0.07163725793361664, 0.24319672584533691, 0.471873939037323, -0.06963613629341125, 0.29321345686912537, 0.17875055968761444, 0.5283365845680237, 0.6097084283828735, -0.06272357702255249, -0.10710976272821426, 0.04844706133008003, -0.20182223618030548, 0.019204016774892807, 0.2239021360874176, -0.09205972403287888, 0.18041473627090454, 0.14741842448711395, 0.05734061077237129, -0.04726693034172058, -0.2881355881690979, 0.37829917669296265, -0.2557797431945801, -0.36579757928848267, -0.41576099395751953, 0.4662529230117798, 0.041350357234478, 0.10929343104362488, 0.19369308650493622, 0.2587582468986511, -0.16686435043811798, 0.022692862898111343, 0.3577556610107422, 1.0175695419311523, 0.10655240714550018, -0.018847700208425522, 0.20607367157936096, 0.014623977243900299, 0.21379408240318298, -0.29151713848114014, 0.2040700614452362, -0.09806908667087555, -0.4103770852088928, -0.26000434160232544, 0.0024992376565933228, 0.15328489243984222, 0.32958564162254333, -0.48805785179138184, 0.32985377311706543, -0.277717649936676, 0.10291021317243576, -0.011781876906752586, 0.29159608483314514, -0.22092829644680023, -0.18962307274341583, -0.24408406019210815, 0.02506321668624878, 0.10621194541454315, 0.15617989003658295, -0.16308441758155823, -0.06337916851043701, 0.05750409513711929, -0.37136125564575195, -0.4828014373779297, 0.05833017826080322, -0.21810075640678406, 0.42664867639541626, -0.39487844705581665, -0.25922897458076477, 0.2925426959991455, 0.4851699769496918, 0.17169754207134247, -0.010336671955883503, -0.31016257405281067, 0.22485145926475525, -0.12282191216945648, -0.4960900843143463, -0.22405634820461273, 0.02995913475751877, 0.08389222621917725, -0.08087906241416931, -0.5226162672042847, 0.10200585424900055, -0.037109870463609695, -0.0976729467511177, 0.06950461864471436, -0.04068013280630112, -0.14875522255897522, -0.2177061140537262, -0.06915059685707092, -0.0016989894211292267, 0.15583136677742004, -0.08401976525783539, 0.03623085841536522, -0.001989506185054779, -0.15857627987861633, 0.12112118303775787, 0.19719229638576508, -0.1881343126296997, -0.16667293012142181, 0.680067777633667, 0.021305307745933533, -0.2687130272388458, 0.6212595701217651, 0.270041823387146, -0.3788089454174042, -0.2264258712530136, -0.08764249086380005, 0.1271989941596985, -0.2000415027141571, 0.08182522654533386, 0.33397868275642395, 0.17555014789104462, 0.12503653764724731, 0.4918977916240692, 0.2114366739988327, 0.039788179099559784, -0.035579897463321686, -0.581454873085022, -0.09407595545053482, 0.08895779401063919, -0.0807972401380539, 0.18805065751075745, -0.46981990337371826, -0.3154390752315521, 0.27882060408592224, 0.09345697611570358, -0.185028538107872, 0.04409667104482651, -0.43585509061813354, -0.0807073712348938, 0.16099236905574799, 0.023494787514209747, 0.13600406050682068, 0.10817494988441467, -0.018317662179470062, 0.05179491266608238, -0.036244574934244156, -0.04806936904788017, -0.08430361747741699, 0.21364858746528625, 0.036536406725645065, -0.12299598008394241, 0.0750056654214859, -0.4660221338272095, -0.3347611725330353, 0.017515432089567184, 0.2713814377784729, 0.3464633524417877, 0.011237939819693565, 0.026479344815015793, 0.3368586599826813, 0.06373783946037292, -0.5087183713912964, 0.08507557958364487, 0.1238570585846901, 0.38328391313552856, 0.35224461555480957, -0.06034110486507416, 0.08150197565555573, 0.05522727221250534, -0.029025375843048096, 0.036402005702257156, 0.14510542154312134, -0.0185585655272007, 0.4161348342895508, -0.28464847803115845, -0.039741151034832, 0.35986649990081787, 0.08024995774030685, 0.4701506495475769, -0.1421666294336319, 0.16502797603607178, 0.19244731962680817, 0.07281619310379028, -0.47412705421447754, -0.27904775738716125, 0.3225478231906891, 0.0880575105547905, -0.14751197397708893, 0.08225179463624954, 0.1976875513792038, -0.5292575359344482, -0.1985706388950348, 0.011661097407341003, 0.23778416216373444, -0.2428724318742752, 0.1522594839334488, 0.5658451914787292, -0.06030065938830376, 0.02668151631951332, -0.1705102175474167, 0.10490112006664276, 0.3029579520225525, -0.02260776422917843, -0.330228328704834, 0.323898047208786, -0.051721006631851196, 0.25761786103248596, -0.2167513221502304, -0.5816492438316345, 0.1976686716079712, 0.2486560046672821, 0.10913140326738358, -0.062387485057115555, 0.1428007334470749, 0.2813913822174072, 0.11619903892278671, 0.18481415510177612, -0.501987099647522, 0.11463676393032074, -0.08471009135246277, -0.08681219071149826, -0.15502069890499115, -0.1631115972995758, -0.3408389091491699, 0.3697253465652466, 0.2506074607372284, -0.38773173093795776, 0.13913415372371674, 0.22340001165866852, -0.3519899249076843, -0.3351706564426422, -0.004641375504434109, 0.047575369477272034, 0.19849741458892822, -0.2501712143421173, -0.04069952666759491, 0.42649808526039124, -0.03553115949034691, 0.5507053136825562, 0.11588579416275024, 0.279818058013916, 0.19936111569404602, -0.019024409353733063, 0.09863892942667007, 0.15932531654834747, 0.02652953565120697, 0.02647896111011505, 0.3988073766231537, 0.18454299867153168, 0.12781837582588196, 0.17250820994377136, -0.0023973286151885986, -0.1505350023508072, -0.3022058606147766, 0.19915738701820374, 0.1582884043455124, 0.1563817262649536, -0.09060715138912201, 0.00022322870790958405, 0.11939311027526855, -0.12252559512853622, -0.05200936272740364, -0.2637985348701477, 0.25598034262657166, 0.261316180229187, 0.09677357226610184, 0.09972836077213287, 0.12183663249015808, -0.007764413952827454, -0.21133556962013245, 0.48939841985702515, 0.34391310811042786, -0.032999493181705475, -0.3170143961906433, -0.16572745144367218, -0.8635805249214172, 0.19091340899467468, -0.001856692135334015, -0.19879190623760223, 0.2767449915409088, 0.14482736587524414, 0.0629284530878067, 0.15010187029838562, 0.05173298716545105, 0.049354903399944305, 0.35580238699913025, 0.5278562307357788, -0.03885461762547493, -0.33664390444755554, 0.05776134505867958, 0.021241599693894386, -0.23054195940494537, -0.2928698658943176, 0.07170114666223526, -0.04560065269470215, -0.13495418429374695, -0.13660895824432373, -0.05274319276213646, -0.16732028126716614, 0.27913281321525574, 0.24381056427955627, 0.03763964772224426, 0.616896390914917, -0.04219435527920723, 0.03400518745183945, -0.2160891890525818, 0.0339435413479805, -0.17815062403678894, 0.3692154884338379, 0.19814184308052063, 0.0402887761592865, -0.2612345516681671, 0.18934878706932068, -0.25515809655189514, 0.13369524478912354, 0.10481615364551544, 0.33646997809410095, -0.43443700671195984, -0.007504075765609741, -0.061645787209272385, 0.024579163640737534, 0.1752416491508484, -0.10186266154050827, -0.15261265635490417, -0.032074183225631714, -0.12322067469358444, -0.3546847701072693, 0.6694043278694153, -0.4451088607311249, -0.10356182605028152, -0.07155805826187134, 0.1026606410741806, -0.25895145535469055, 0.14661474525928497, -0.7828799486160278, 0.2994579076766968, 0.27228814363479614, -0.01918904483318329, -0.5205338597297668, 0.08979596942663193, -0.19680848717689514, 0.003933414816856384, -0.15938375890254974, 0.16015341877937317, 0.19273869693279266, -0.22592368721961975, -0.1817132979631424, -0.21335215866565704 ]
https://github.com/huggingface/datasets/issues/1915
I just merged a fix :) We'll do a patch release soon. In the meantime feel free to try it from the master branch Thanks again for reporting !
Unable to download `wiki_dpr`
I am trying to download the `wiki_dpr` dataset. Specifically, I want to download `psgs_w100.multiset.no_index` with no embeddings/no index. In order to do so, I ran: `curr_dataset = load_dataset("wiki_dpr", embeddings_name="multiset", index_name="no_index")` However, I got the following error: `datasets.utils.info_utils.UnexpectedDownloadedFile: {'embeddings_index'}` I tried adding in flags `with_embeddings=False` and `with_index=False`: `curr_dataset = load_dataset("wiki_dpr", with_embeddings=False, with_index=False, embeddings_name="multiset", index_name="no_index")` But I got the following error: `raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) datasets.utils.info_utils.ExpectedMoreDownloadedFiles: {‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_5’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_15’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_30’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_36’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_18’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_41’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_13’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_48’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_10’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_23’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_14’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_34’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_43’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_40’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_47’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_3’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_24’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_7’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_33’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_46’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_42’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_27’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_29’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_26’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_22’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_4’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_20’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_39’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_6’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_16’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_8’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_35’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_49’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_17’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_25’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_0’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_38’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_12’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_44’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_1’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_32’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_19’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_31’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_37’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_9’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_11’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_21’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_28’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_45’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_2’}` Is there anything else I need to set to download the dataset? **UPDATE**: just running `curr_dataset = load_dataset("wiki_dpr", with_embeddings=False, with_index=False)` gives me the same error.
29
Unable to download `wiki_dpr` I am trying to download the `wiki_dpr` dataset. Specifically, I want to download `psgs_w100.multiset.no_index` with no embeddings/no index. In order to do so, I ran: `curr_dataset = load_dataset("wiki_dpr", embeddings_name="multiset", index_name="no_index")` However, I got the following error: `datasets.utils.info_utils.UnexpectedDownloadedFile: {'embeddings_index'}` I tried adding in flags `with_embeddings=False` and `with_index=False`: `curr_dataset = load_dataset("wiki_dpr", with_embeddings=False, with_index=False, embeddings_name="multiset", index_name="no_index")` But I got the following error: `raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) datasets.utils.info_utils.ExpectedMoreDownloadedFiles: {‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_5’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_15’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_30’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_36’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_18’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_41’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_13’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_48’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_10’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_23’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_14’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_34’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_43’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_40’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_47’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_3’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_24’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_7’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_33’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_46’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_42’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_27’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_29’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_26’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_22’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_4’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_20’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_39’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_6’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_16’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_8’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_35’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_49’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_17’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_25’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_0’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_38’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_12’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_44’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_1’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_32’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_19’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_31’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_37’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_9’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_11’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_21’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_28’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_45’, ‘https://dl.fbaipublicfiles.com/rag/rag_multiset_embeddings/wiki_passages_2’}` Is there anything else I need to set to download the dataset? **UPDATE**: just running `curr_dataset = load_dataset("wiki_dpr", with_embeddings=False, with_index=False)` gives me the same error. I just merged a fix :) We'll do a patch release soon. In the meantime feel free to try it from the master branch Thanks again for reporting !
[ -0.35910794138908386, -0.3630984425544739, -0.0504426434636116, 0.3148261606693268, 0.3717033267021179, 0.42704886198043823, 0.31989502906799316, 0.0625339224934578, 0.23852169513702393, 0.18049922585487366, 0.16470152139663696, -0.020608635619282722, 0.09541131556034088, -0.021091002970933914, -0.16730907559394836, -0.03340068459510803, 0.10013099759817123, 0.10705594718456268, 0.3710588812828064, -0.06221093609929085, -0.3295954465866089, 0.2548210024833679, -0.3576645255088806, -0.23189537227153778, -0.15362848341464996, -0.14352010190486908, -0.05908523499965668, -0.07667580246925354, -0.44475889205932617, -0.47243547439575195, 0.5257073640823364, 0.21393105387687683, 0.4566456973552704, 0.20941780507564545, -0.00012333394261077046, -0.008185349404811859, 0.2570951282978058, -0.27606528997421265, -0.22674372792243958, -0.19940997660160065, -0.5099614858627319, -0.21343226730823517, 0.12281589210033417, -0.2729625701904297, 0.295212984085083, -0.21285751461982727, -0.07495100051164627, -0.09289610385894775, 0.07453148066997528, 0.15100626647472382, 0.14490318298339844, -0.06254008412361145, 0.15082460641860962, -0.23555639386177063, 0.09454485774040222, -0.17693102359771729, -0.13189038634300232, 0.17108005285263062, -0.027256831526756287, 0.13411757349967957, 0.26910820603370667, 0.05608709156513214, -0.25188133120536804, 0.22777345776557922, 0.11705341935157776, 0.016490653157234192, 0.2614756226539612, -0.3041640818119049, 0.40161991119384766, 0.5526138544082642, 0.9237309098243713, 0.1302182972431183, -0.23869362473487854, 0.03828693926334381, 0.2114560455083847, -0.37577441334724426, 0.16353760659694672, 0.22582325339317322, -0.25308680534362793, 0.2006119042634964, -0.2965894937515259, -0.06835360080003738, -0.021251514554023743, 0.32370173931121826, -0.09896225482225418, 0.3529936671257019, 0.2022208273410797, 0.1463736593723297, 0.18566584587097168, -0.20362891256809235, 0.07434751093387604, -0.11150983721017838, -0.2810247838497162, 0.08744591474533081, -0.22826114296913147, 0.007346004247665405, -0.14030340313911438, 0.057153090834617615, 0.2315737009048462, 0.33351579308509827, 0.013792630285024643, 0.17053917050361633, 0.43144115805625916, 0.10148319602012634, 0.2653805613517761, 0.250842422246933, -0.11955269426107407, 0.24619895219802856, 0.31459489464759827, 0.5472882986068726, 0.25496554374694824, -0.0376865416765213, -0.009599532932043076, -0.007684849202632904, -0.06187079846858978, -0.11014246195554733, -0.08675771206617355, -0.3650253415107727, -0.2998697757720947, 0.1207369863986969, -0.2721976339817047, -0.18577459454536438, -0.24550575017929077, 0.39892739057540894, 0.05123596265912056, 0.4941692650318146, 0.13450199365615845, 0.16922512650489807, -0.03893338516354561, 0.04554923623800278, -0.09659785032272339, -0.099168561398983, -0.12959608435630798, 0.08275433629751205, 0.38329219818115234, -0.33218345046043396, 0.39548054337501526, 0.03591829538345337, 0.06707197427749634, 0.08984772861003876, -0.06727270781993866, -0.020042356103658676, 0.20513860881328583, 0.3828622102737427, 0.028589993715286255, 0.2937912940979004, 0.10742545127868652, -0.22610434889793396, -0.024616144597530365, 0.2774975001811981, -0.18186505138874054, -0.4335758090019226, -0.0587908998131752, 0.12490073591470718, -0.2760755121707916, -0.07174213230609894, -0.3263552486896515, 0.10717111825942993, 0.017803404480218887, -0.14471986889839172, 0.15836630761623383, 0.01385132223367691, -0.20045101642608643, -0.319254070520401, 0.31625303626060486, 0.5299690365791321, -0.5378869771957397, -0.05652303248643875, -0.08767873048782349, -0.27632635831832886, 0.1355169117450714, 0.015335611999034882, -0.2887881398200989, -0.08965513110160828, -0.37824979424476624, 0.11999979615211487, 0.1308036595582962, -0.40481898188591003, -0.5335978269577026, 0.4260769188404083, 0.016574524343013763, 0.14255893230438232, 0.3088409900665283, 0.06876209378242493, 0.2286393940448761, 0.09076538681983948, -0.10961275547742844, 0.36091774702072144, 0.1335100382566452, -0.27136659622192383, -0.003688625991344452, -0.3318435549736023, 0.3804722726345062, 0.06466025859117508, -0.04755299910902977, -0.0033562779426574707, 0.11831139028072357, 0.18105146288871765, 0.44516539573669434, 0.004278811160475016, 0.03122389316558838, 0.27065110206604004, 0.11804640293121338, 0.09014549851417542, 0.133927583694458, 0.12293878942728043, -0.5137765407562256, 0.22903206944465637, 0.1504509001970291, 0.045754123479127884, -0.332019180059433, -0.09493669122457504, -0.3201952576637268, -0.08736537396907806, -0.37447598576545715, -0.2137419730424881, -0.008201222866773605, 0.1704929769039154, -0.032500166445970535, -0.16025963425636292, -0.09846346825361252, 0.04153718054294586, -0.05279131978750229, 0.02773343399167061, -0.17825838923454285, 0.1469733715057373, -0.1374596208333969, 0.014373082667589188, 0.11235383152961731, -0.06832380592823029, 0.31899479031562805, -0.050568148493766785, 0.06790633499622345, 0.3047974705696106, 0.20432698726654053, -0.01666896790266037, -0.00668983394280076, -0.005671054124832153, 0.2587311267852783, -0.5035475492477417, -0.0205894336104393, 0.3803391754627228, 0.15768390893936157, -0.06051431596279144, -0.26323258876800537, 0.2244812399148941, -0.02908688597381115, 0.36857470870018005, -0.20610195398330688, 0.04162013530731201, 0.32764583826065063, -0.17608271539211273, 0.22870875895023346, -0.3677021265029907, 0.29006633162498474, 0.5791847705841064, -0.24930530786514282, -0.1534954309463501, -0.04825005680322647, 0.03918099030852318, 0.1322939395904541, -0.2087438404560089, -0.08710269629955292, 0.023671310395002365, 0.055203620344400406, -0.048158638179302216, 0.14484518766403198, 0.060099147260189056, 0.3681732416152954, 0.24725478887557983, 0.09365790337324142, -0.1286986768245697, 0.16360755264759064, -0.3218725323677063, 0.21349328756332397, -0.011946402490139008, -0.15797851979732513, 0.5060123801231384, -0.08217570930719376, -0.053016651421785355, -0.23479565978050232, -0.03304819390177727, 0.2623148262500763, 0.28315332531929016, -0.3046385645866394, -0.17794089019298553, -0.6171995997428894, 0.005377061665058136, 0.09497640281915665, -0.17050579190254211, -0.203748881816864, -0.297421395778656, 0.10519498586654663, -0.07480081170797348, 0.12483333796262741, 0.14068517088890076, -0.2971709668636322, -0.11093737185001373, -0.12864252924919128, -0.20254190266132355, -0.04070809483528137, -0.05362813547253609, -0.33184945583343506, -0.024945026263594627, 0.23825857043266296, 0.30148035287857056, 0.25168466567993164, 0.05871900916099548, -0.3458542823791504, -0.3976096510887146, -0.09315865486860275, 0.051829297095537186, -0.13947592675685883, 0.06141982227563858, 0.3366079330444336, 0.481332927942276, -0.05281297117471695, -0.34334900975227356, 0.0972990021109581, -0.06143154203891754, -0.03342851623892784, -0.06213739514350891, -0.08786781877279282, -0.045350562781095505, -0.11441202461719513, -0.6167300343513489, -0.13302236795425415, -0.31352198123931885, -0.09668920934200287, 0.08505700528621674, -0.0683746263384819, -0.07277186214923859, 0.198506698012352, -0.12637925148010254, 0.2616436183452606, -0.08509956300258636, -0.1912420392036438, -0.16076910495758057, 0.5849159955978394, -0.12879341840744019, -0.37579336762428284, 0.522277295589447, 0.011142082512378693, -0.026225918903946877, 0.3314105272293091, -0.58231520652771, 0.10696790367364883, 0.10257972776889801, 0.20824739336967468, 0.002548295073211193, 0.2310560941696167, 0.30584582686424255, 0.02860717847943306, -0.05864882096648216, -0.0875660628080368, -0.09399689733982086, -0.05648075044155121, -0.2831985652446747, 0.5092186331748962, -0.010556322522461414, 0.23682275414466858, -0.18514251708984375, 0.6094352006912231, 0.3000096082687378, 0.11782334744930267, 0.3601538836956024, -0.03556229546666145, 0.16758105158805847, 0.16291524469852448, -0.14033812284469604, 0.03686150908470154, -0.1783124804496765, 0.32490700483322144, 0.28484874963760376, -0.16184554994106293, -0.33210352063179016, -0.3920759856700897, 0.10114137828350067, -0.0891900435090065, -0.07274477928876877, -0.049127452075481415, 0.34274822473526, 0.13430550694465637, -0.13562999665737152, 0.30293214321136475, 0.08211764693260193, -0.33348339796066284, 0.2686661183834076, 0.25349104404449463, -0.14298775792121887, 0.14845623075962067, 0.15891104936599731, -0.037980370223522186, -0.3448106348514557, 0.3444143533706665, 0.16388599574565887, 0.30876219272613525, 0.004574432969093323, 0.16551923751831055, 0.18959037959575653, -0.024254420772194862, 0.560565710067749, -0.4350595772266388, 0.3597974479198456, 0.16880428791046143, 0.05177891254425049, -0.2673882842063904, -0.19220280647277832, -0.2611427903175354, -0.2761246860027313, -0.1781177669763565, 0.22159801423549652, -0.6027703881263733, 0.01617807149887085, 0.16691966354846954, 0.16122892498970032, -0.12385475635528564, -0.3593956232070923, -0.37048205733299255, -0.4479209780693054, -0.4778938293457031, -0.19642935693264008, 0.007510483264923096, 0.361940860748291, -0.21361854672431946, -0.09255634248256683, -0.009136572480201721, 0.11710088700056076, -0.0015812329947948456, -0.07163725793361664, 0.24319672584533691, 0.471873939037323, -0.06963613629341125, 0.29321345686912537, 0.17875055968761444, 0.5283365845680237, 0.6097084283828735, -0.06272357702255249, -0.10710976272821426, 0.04844706133008003, -0.20182223618030548, 0.019204016774892807, 0.2239021360874176, -0.09205972403287888, 0.18041473627090454, 0.14741842448711395, 0.05734061077237129, -0.04726693034172058, -0.2881355881690979, 0.37829917669296265, -0.2557797431945801, -0.36579757928848267, -0.41576099395751953, 0.4662529230117798, 0.041350357234478, 0.10929343104362488, 0.19369308650493622, 0.2587582468986511, -0.16686435043811798, 0.022692862898111343, 0.3577556610107422, 1.0175695419311523, 0.10655240714550018, -0.018847700208425522, 0.20607367157936096, 0.014623977243900299, 0.21379408240318298, -0.29151713848114014, 0.2040700614452362, -0.09806908667087555, -0.4103770852088928, -0.26000434160232544, 0.0024992376565933228, 0.15328489243984222, 0.32958564162254333, -0.48805785179138184, 0.32985377311706543, -0.277717649936676, 0.10291021317243576, -0.011781876906752586, 0.29159608483314514, -0.22092829644680023, -0.18962307274341583, -0.24408406019210815, 0.02506321668624878, 0.10621194541454315, 0.15617989003658295, -0.16308441758155823, -0.06337916851043701, 0.05750409513711929, -0.37136125564575195, -0.4828014373779297, 0.05833017826080322, -0.21810075640678406, 0.42664867639541626, -0.39487844705581665, -0.25922897458076477, 0.2925426959991455, 0.4851699769496918, 0.17169754207134247, -0.010336671955883503, -0.31016257405281067, 0.22485145926475525, -0.12282191216945648, -0.4960900843143463, -0.22405634820461273, 0.02995913475751877, 0.08389222621917725, -0.08087906241416931, -0.5226162672042847, 0.10200585424900055, -0.037109870463609695, -0.0976729467511177, 0.06950461864471436, -0.04068013280630112, -0.14875522255897522, -0.2177061140537262, -0.06915059685707092, -0.0016989894211292267, 0.15583136677742004, -0.08401976525783539, 0.03623085841536522, -0.001989506185054779, -0.15857627987861633, 0.12112118303775787, 0.19719229638576508, -0.1881343126296997, -0.16667293012142181, 0.680067777633667, 0.021305307745933533, -0.2687130272388458, 0.6212595701217651, 0.270041823387146, -0.3788089454174042, -0.2264258712530136, -0.08764249086380005, 0.1271989941596985, -0.2000415027141571, 0.08182522654533386, 0.33397868275642395, 0.17555014789104462, 0.12503653764724731, 0.4918977916240692, 0.2114366739988327, 0.039788179099559784, -0.035579897463321686, -0.581454873085022, -0.09407595545053482, 0.08895779401063919, -0.0807972401380539, 0.18805065751075745, -0.46981990337371826, -0.3154390752315521, 0.27882060408592224, 0.09345697611570358, -0.185028538107872, 0.04409667104482651, -0.43585509061813354, -0.0807073712348938, 0.16099236905574799, 0.023494787514209747, 0.13600406050682068, 0.10817494988441467, -0.018317662179470062, 0.05179491266608238, -0.036244574934244156, -0.04806936904788017, -0.08430361747741699, 0.21364858746528625, 0.036536406725645065, -0.12299598008394241, 0.0750056654214859, -0.4660221338272095, -0.3347611725330353, 0.017515432089567184, 0.2713814377784729, 0.3464633524417877, 0.011237939819693565, 0.026479344815015793, 0.3368586599826813, 0.06373783946037292, -0.5087183713912964, 0.08507557958364487, 0.1238570585846901, 0.38328391313552856, 0.35224461555480957, -0.06034110486507416, 0.08150197565555573, 0.05522727221250534, -0.029025375843048096, 0.036402005702257156, 0.14510542154312134, -0.0185585655272007, 0.4161348342895508, -0.28464847803115845, -0.039741151034832, 0.35986649990081787, 0.08024995774030685, 0.4701506495475769, -0.1421666294336319, 0.16502797603607178, 0.19244731962680817, 0.07281619310379028, -0.47412705421447754, -0.27904775738716125, 0.3225478231906891, 0.0880575105547905, -0.14751197397708893, 0.08225179463624954, 0.1976875513792038, -0.5292575359344482, -0.1985706388950348, 0.011661097407341003, 0.23778416216373444, -0.2428724318742752, 0.1522594839334488, 0.5658451914787292, -0.06030065938830376, 0.02668151631951332, -0.1705102175474167, 0.10490112006664276, 0.3029579520225525, -0.02260776422917843, -0.330228328704834, 0.323898047208786, -0.051721006631851196, 0.25761786103248596, -0.2167513221502304, -0.5816492438316345, 0.1976686716079712, 0.2486560046672821, 0.10913140326738358, -0.062387485057115555, 0.1428007334470749, 0.2813913822174072, 0.11619903892278671, 0.18481415510177612, -0.501987099647522, 0.11463676393032074, -0.08471009135246277, -0.08681219071149826, -0.15502069890499115, -0.1631115972995758, -0.3408389091491699, 0.3697253465652466, 0.2506074607372284, -0.38773173093795776, 0.13913415372371674, 0.22340001165866852, -0.3519899249076843, -0.3351706564426422, -0.004641375504434109, 0.047575369477272034, 0.19849741458892822, -0.2501712143421173, -0.04069952666759491, 0.42649808526039124, -0.03553115949034691, 0.5507053136825562, 0.11588579416275024, 0.279818058013916, 0.19936111569404602, -0.019024409353733063, 0.09863892942667007, 0.15932531654834747, 0.02652953565120697, 0.02647896111011505, 0.3988073766231537, 0.18454299867153168, 0.12781837582588196, 0.17250820994377136, -0.0023973286151885986, -0.1505350023508072, -0.3022058606147766, 0.19915738701820374, 0.1582884043455124, 0.1563817262649536, -0.09060715138912201, 0.00022322870790958405, 0.11939311027526855, -0.12252559512853622, -0.05200936272740364, -0.2637985348701477, 0.25598034262657166, 0.261316180229187, 0.09677357226610184, 0.09972836077213287, 0.12183663249015808, -0.007764413952827454, -0.21133556962013245, 0.48939841985702515, 0.34391310811042786, -0.032999493181705475, -0.3170143961906433, -0.16572745144367218, -0.8635805249214172, 0.19091340899467468, -0.001856692135334015, -0.19879190623760223, 0.2767449915409088, 0.14482736587524414, 0.0629284530878067, 0.15010187029838562, 0.05173298716545105, 0.049354903399944305, 0.35580238699913025, 0.5278562307357788, -0.03885461762547493, -0.33664390444755554, 0.05776134505867958, 0.021241599693894386, -0.23054195940494537, -0.2928698658943176, 0.07170114666223526, -0.04560065269470215, -0.13495418429374695, -0.13660895824432373, -0.05274319276213646, -0.16732028126716614, 0.27913281321525574, 0.24381056427955627, 0.03763964772224426, 0.616896390914917, -0.04219435527920723, 0.03400518745183945, -0.2160891890525818, 0.0339435413479805, -0.17815062403678894, 0.3692154884338379, 0.19814184308052063, 0.0402887761592865, -0.2612345516681671, 0.18934878706932068, -0.25515809655189514, 0.13369524478912354, 0.10481615364551544, 0.33646997809410095, -0.43443700671195984, -0.007504075765609741, -0.061645787209272385, 0.024579163640737534, 0.1752416491508484, -0.10186266154050827, -0.15261265635490417, -0.032074183225631714, -0.12322067469358444, -0.3546847701072693, 0.6694043278694153, -0.4451088607311249, -0.10356182605028152, -0.07155805826187134, 0.1026606410741806, -0.25895145535469055, 0.14661474525928497, -0.7828799486160278, 0.2994579076766968, 0.27228814363479614, -0.01918904483318329, -0.5205338597297668, 0.08979596942663193, -0.19680848717689514, 0.003933414816856384, -0.15938375890254974, 0.16015341877937317, 0.19273869693279266, -0.22592368721961975, -0.1817132979631424, -0.21335215866565704 ]
https://github.com/huggingface/datasets/issues/1911
am suspicious of this thing? what's the purpose of this? pickling and unplickling `self = pickle.loads(pickle.dumps(self))` ``` def save_to_disk(self, dataset_path: str, fs=None): """ Saves a dataset to a dataset directory, or in a filesystem using either :class:`datasets.filesystem.S3FileSystem` or any implementation of ``fsspec.spec.AbstractFileSystem``. Args: dataset_path (``str``): path (e.g. ``dataset/train``) or remote uri (e.g. ``s3://my-bucket/dataset/train``) of the dataset directory where the dataset will be saved to fs (Optional[:class:`datasets.filesystem.S3FileSystem`,``fsspec.spec.AbstractFileSystem``], `optional`, defaults ``None``): instance of :class:`datasets.filesystem.S3FileSystem` or ``fsspec.spec.AbstractFileSystem`` used to download the files from remote filesystem. """ assert ( not self.list_indexes() ), "please remove all the indexes using `dataset.drop_index` before saving a dataset" self = pickle.loads(pickle.dumps(self)) ```
Saving processed dataset running infinitely
I have a text dataset of size 220M. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 3hrs. I used map() with batch size 1024 and multi-process with 96 processes. filter() function was way to slow, so I used a hack to use pyarrow filter table function, which is damm fast. Mentioned [here](https://github.com/huggingface/datasets/issues/1796) ```dataset._data = dataset._data.filter(...)``` It took 1 hr for the filter. Then i use `save_to_disk()` on processed dataset and it is running forever. I have been waiting since 8 hrs, it has not written a single byte. Infact it has actually read from disk more than 100GB, screenshot below shows the stats using `iotop`. Second process is the one. <img width="1672" alt="Screenshot 2021-02-19 at 6 36 53 PM" src="https://user-images.githubusercontent.com/20911334/108508197-7325d780-72e1-11eb-8369-7c057d137d81.png"> I am not able to figure out, whether this is some issue with dataset library or that it is due to my hack for filter() function.
103
Saving processed dataset running infinitely I have a text dataset of size 220M. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 3hrs. I used map() with batch size 1024 and multi-process with 96 processes. filter() function was way to slow, so I used a hack to use pyarrow filter table function, which is damm fast. Mentioned [here](https://github.com/huggingface/datasets/issues/1796) ```dataset._data = dataset._data.filter(...)``` It took 1 hr for the filter. Then i use `save_to_disk()` on processed dataset and it is running forever. I have been waiting since 8 hrs, it has not written a single byte. Infact it has actually read from disk more than 100GB, screenshot below shows the stats using `iotop`. Second process is the one. <img width="1672" alt="Screenshot 2021-02-19 at 6 36 53 PM" src="https://user-images.githubusercontent.com/20911334/108508197-7325d780-72e1-11eb-8369-7c057d137d81.png"> I am not able to figure out, whether this is some issue with dataset library or that it is due to my hack for filter() function. am suspicious of this thing? what's the purpose of this? pickling and unplickling `self = pickle.loads(pickle.dumps(self))` ``` def save_to_disk(self, dataset_path: str, fs=None): """ Saves a dataset to a dataset directory, or in a filesystem using either :class:`datasets.filesystem.S3FileSystem` or any implementation of ``fsspec.spec.AbstractFileSystem``. Args: dataset_path (``str``): path (e.g. ``dataset/train``) or remote uri (e.g. ``s3://my-bucket/dataset/train``) of the dataset directory where the dataset will be saved to fs (Optional[:class:`datasets.filesystem.S3FileSystem`,``fsspec.spec.AbstractFileSystem``], `optional`, defaults ``None``): instance of :class:`datasets.filesystem.S3FileSystem` or ``fsspec.spec.AbstractFileSystem`` used to download the files from remote filesystem. """ assert ( not self.list_indexes() ), "please remove all the indexes using `dataset.drop_index` before saving a dataset" self = pickle.loads(pickle.dumps(self)) ```
[ -0.21761900186538696, 0.1967647671699524, -0.11508182436227798, 0.26369524002075195, 0.14856961369514465, -0.07311950623989105, 0.19137287139892578, 0.23337428271770477, -0.19323313236236572, -0.08382947742938995, 0.06877244263887405, 0.3565652072429657, -0.10871390253305435, 0.26353397965431213, 0.01801450178027153, 0.29485127329826355, 0.2866329550743103, 0.11678192019462585, 0.2218979001045227, 0.04433964192867279, -0.11445046961307526, -0.03922908008098602, -0.10530076920986176, 0.07294325530529022, -0.26765748858451843, -0.2402477115392685, 0.08959751576185226, -0.07870258390903473, -0.3543224334716797, -0.28271424770355225, -0.040249574929475784, 0.20208147168159485, -0.020740825682878494, 0.5996132493019104, -0.00013205588038545102, -0.3027281165122986, 0.26906538009643555, -0.08980292081832886, -0.5009803175926208, 0.09183789789676666, 0.12520989775657654, -0.02745179459452629, -0.023618686944246292, -0.4111998677253723, 0.3176499009132385, 0.05506189912557602, 0.10075275599956512, -0.26029640436172485, 0.2392185777425766, 0.029138870537281036, 0.04839039593935013, 0.16277094185352325, -0.134456068277359, 0.46675413846969604, 0.3288218080997467, 0.5879321694374084, -0.0920100137591362, 0.06819629669189453, 0.25982141494750977, -0.1367049217224121, -0.011197198182344437, 0.21314918994903564, -0.46687161922454834, -0.18138614296913147, 0.32381725311279297, -0.06263670325279236, -0.16422951221466064, -0.48550230264663696, 0.1900697499513626, 0.10101737082004547, 0.31247565150260925, -0.5746486186981201, -0.3016628623008728, -0.29070863127708435, -0.3085363507270813, -0.46166208386421204, 0.30316057801246643, 0.2828127145767212, -0.11488302052021027, 0.08926521241664886, -0.35732150077819824, -0.0885959267616272, -0.07149229943752289, 0.013924326747655869, -0.1595257818698883, -0.02185114100575447, -0.26257944107055664, 0.2816871702671051, 0.15712319314479828, 0.13498979806900024, 0.21383129060268402, -0.5275250673294067, 0.24326220154762268, 0.18305520713329315, -0.24097710847854614, -0.08926782011985779, -0.12810127437114716, 0.23050114512443542, 0.06845491379499435, 0.2216307818889618, -0.28341707587242126, 0.09422143548727036, 0.17370612919330597, 0.0587531253695488, 0.34963926672935486, -0.1559290587902069, 0.12403913587331772, 0.16883176565170288, 0.15339861810207367, -0.3493705093860626, -0.10550440847873688, 0.09898341447114944, 0.14237205684185028, 0.12925751507282257, 0.2541595995426178, -0.4392639994621277, 0.09989781677722931, -0.1352923959493637, -0.1503770649433136, 0.29350489377975464, -0.17350038886070251, -0.04405735433101654, -0.019376441836357117, 0.24043887853622437, -0.18963906168937683, -0.1738828867673874, -0.21366524696350098, -0.12268663197755814, -0.28287482261657715, 0.12563028931617737, 0.021236471831798553, -0.01361794676631689, -0.07641606032848358, 0.18969950079917908, -0.04623568430542946, -0.09838317334651947, -0.09736943244934082, -0.038203202188014984, -0.2951149344444275, 0.06663716584444046, 0.15048885345458984, -0.6224696040153503, 0.27668118476867676, 0.563476026058197, 0.007607750594615936, 0.35071757435798645, -0.12866541743278503, -0.19171269237995148, -0.16373541951179504, 0.3982415497303009, -0.07265052199363708, -0.19508707523345947, -0.019565949216485023, -0.04494185000658035, -0.22715887427330017, 0.0960472822189331, -0.48806583881378174, 0.012951817363500595, 0.4187315106391907, -0.3198014199733734, 0.11300420761108398, -0.2247399538755417, -0.4087260961532593, -0.2898057699203491, 0.04224772751331329, 0.31294429302215576, -0.6525027751922607, 0.16246509552001953, -0.22196528315544128, 0.003787163645029068, 0.3684934377670288, 0.290751576423645, -0.018426721915602684, 0.3519964814186096, -0.29248446226119995, 0.47227245569229126, 0.46423953771591187, 0.15138012170791626, -0.5824528336524963, 0.21849769353866577, -0.0032662078738212585, 0.08712143450975418, -0.1679915189743042, 0.2806181311607361, 0.3480526804924011, -0.1936856359243393, 0.044820528477430344, 0.12991762161254883, 0.09028448164463043, -0.07392893731594086, -0.24510109424591064, -0.15588629245758057, 0.13337083160877228, 0.1133299246430397, -0.15861013531684875, -0.09498954564332962, 0.16999274492263794, -0.2811574935913086, 0.36922502517700195, 0.1862330436706543, 0.23804250359535217, 0.22624385356903076, 0.4387608766555786, 0.3766167163848877, -0.029983285814523697, -0.25253862142562866, 0.04104810208082199, -0.031451497226953506, 0.20276060700416565, -0.2562839388847351, -0.38783952593803406, -0.3444661796092987, -0.06722479313611984, 0.3747110664844513, -0.1951192021369934, 0.05669446289539337, -0.15951362252235413, 0.18940243124961853, 0.062243252992630005, 0.2978355288505554, -0.17633095383644104, 0.16212527453899384, -0.4285735785961151, -0.07297802716493607, -0.20457656681537628, 0.12553584575653076, 0.09485628455877304, -0.08029212802648544, -0.20756416022777557, -0.06446758657693863, 0.1118551641702652, -0.09877090156078339, 0.05277193710207939, 0.17886394262313843, 0.3130968511104584, 0.015376146882772446, -0.0880964994430542, 0.2765066623687744, 0.05216072499752045, -0.0698791891336441, -0.05663461238145828, -0.13506430387496948, 0.43713071942329407, 0.00807751715183258, -0.16921809315681458, 0.1955077052116394, -0.06922873109579086, 0.2699980139732361, 0.016911819577217102, -0.2877046465873718, 0.1833028495311737, 0.12488209456205368, -0.089494489133358, 0.10326068103313446, 0.13171644508838654, 0.28350958228111267, 0.32119470834732056, 0.21600806713104248, -0.15475541353225708, 0.4590100049972534, 0.6726174354553223, -0.3963782787322998, 0.0546124093234539, 0.35000184178352356, 0.1655370444059372, -0.31231552362442017, -0.11931142210960388, 0.13449901342391968, 0.47464221715927124, 0.0471060685813427, 0.11638695001602173, -0.0722295269370079, 0.056672967970371246, -0.12961651384830475, 0.35972240567207336, 0.16708765923976898, 0.27878338098526, 0.2663927972316742, 0.2064010500907898, -0.09263391047716141, -0.31802067160606384, -0.20462609827518463, 0.20671753585338593, 0.3337043821811676, -0.24966011941432953, 0.4450702667236328, -0.2661706507205963, -0.19632503390312195, -0.024806590750813484, -0.039742257446050644, -0.1011846512556076, -0.17523403465747833, -0.26067739725112915, 0.23530039191246033, -0.018882453441619873, -0.0016377158463001251, 0.230264350771904, 0.29997333884239197, 0.10673683881759644, -0.32369130849838257, -0.29555752873420715, -0.0433313325047493, -0.28295543789863586, -0.09337356686592102, 0.38488292694091797, 0.1502901315689087, 0.4872846305370331, -0.035729750990867615, -0.2362872213125229, -0.6306732892990112, -0.3318597674369812, 0.1534072756767273, -0.0029994845390319824, 0.5537436604499817, 0.062128156423568726, 0.23139789700508118, -0.29588204622268677, 0.1094464510679245, -0.0570734441280365, -0.04685815051198006, -0.27122485637664795, -0.12021031230688095, 0.07263174653053284, -0.11536210775375366, 0.024998411536216736, 0.0948595255613327, -0.4184022545814514, 0.03709012269973755, 0.3668832778930664, -0.3680102527141571, 0.32062944769859314, -0.2364814281463623, -0.11066024005413055, 0.16739463806152344, -0.04675481095910072, -0.12763762474060059, -0.2547926604747772, -0.38903775811195374, 0.2348027527332306, 0.10606103390455246, -0.24176020920276642, -0.0012646317481994629, 0.030216842889785767, -0.2923389673233032, 0.25144559144973755, -0.6670496463775635, 0.10347143560647964, -0.2575095295906067, 0.12510043382644653, 0.08804219961166382, 0.09547053277492523, 0.35623639822006226, -0.1353864073753357, 0.1612423211336136, -0.004498131573200226, -0.4499635696411133, -0.0907287448644638, -0.06058638542890549, 0.1561434119939804, 0.21935266256332397, 0.6643555164337158, 0.02171889692544937, 0.6045771241188049, 0.05606595426797867, 0.13800694048404694, 0.2675992250442505, -0.09027590602636337, 0.3034041225910187, -0.2566714882850647, -0.3080061078071594, 0.1277371644973755, -0.1734943389892578, -0.5134421586990356, 0.04841545224189758, -0.2671700119972229, -0.06548269838094711, 0.22678546607494354, -0.19062837958335876, -0.20145931839942932, -0.1861758828163147, 0.0661618784070015, 0.3981272280216217, 0.19731885194778442, 0.26083338260650635, -0.037302277982234955, -0.007418621331453323, -0.12180756032466888, -0.27530378103256226, 0.32085853815078735, 0.3104402422904968, -0.002759944647550583, -0.33767932653427124, -0.1947738230228424, -0.4489061236381531, 0.16706374287605286, 0.08141961693763733, 0.15577161312103271, -0.08122541755437851, -0.05995853245258331, 0.33411699533462524, -0.35775721073150635, 1.1544933319091797, -0.006849806755781174, 0.11280585825443268, 0.22716458141803741, -0.18635490536689758, -0.43128228187561035, 0.08360109478235245, 0.05448631942272186, 0.12439838796854019, 0.22155463695526123, 0.26066309213638306, -0.2197369933128357, -0.12674938142299652, 0.04693423584103584, 0.3274630904197693, -0.16962236166000366, -0.1616915762424469, -0.22803837060928345, -0.5100158452987671, -0.23297742009162903, 0.23162883520126343, 0.0015793368220329285, 0.08472315967082977, 0.06551647186279297, -0.045871589332818985, -0.212640643119812, -0.003037869930267334, 0.13100412487983704, -0.09177257120609283, 0.14870941638946533, -0.12693259119987488, 0.17001457512378693, -0.3102148473262787, 0.05444447323679924, 0.336091548204422, 0.1814393401145935, 0.025454718619585037, 0.2124771624803543, 0.4325070083141327, -0.10953766107559204, 0.3074272572994232, 0.421472430229187, -0.07015541195869446, 0.18524065613746643, -0.05105399340391159, 0.37260347604751587, -0.32170090079307556, 0.08005985617637634, 0.14053228497505188, 0.2599296569824219, -0.48649418354034424, -0.3555610775947571, 0.23506292700767517, 0.1999843418598175, -0.08727003633975983, 0.2623472213745117, -0.022639252245426178, -0.09635378420352936, 0.28932034969329834, 0.18284934759140015, 1.308640480041504, -0.14501126110553741, 0.3485221266746521, 0.35486045479774475, -0.06366433948278427, 0.09921383857727051, -0.46970802545547485, -0.0752161294221878, -0.1502971649169922, -0.03685413673520088, -0.1703922003507614, -0.17301614582538605, 0.15895836055278778, 0.01853298395872116, -0.0591554120182991, 0.16290771961212158, -0.15800608694553375, -0.0016330427024513483, 0.05885902792215347, 0.3480601906776428, -0.2200700342655182, -0.07827961444854736, -0.23698244988918304, -0.014766514301300049, 0.10738257318735123, -0.0454217828810215, -0.07588060945272446, 0.08635728806257248, 0.07763520628213882, -0.05724256485700607, -0.1449044942855835, -0.14844051003456116, -0.22656449675559998, 0.12887603044509888, -0.29353901743888855, -0.11184591054916382, 0.15646426379680634, -0.13018649816513062, -0.12424230575561523, 0.27984756231307983, 0.13141869008541107, 0.1870655119419098, 0.06424595415592194, 0.2229294329881668, 0.06152859330177307, -0.4931621253490448, 0.20824618637561798, -0.0806250125169754, -0.024903997778892517, -0.05107621103525162, -0.18397101759910583, -0.33731621503829956, -0.062078073620796204, 0.18419018387794495, 0.5335729122161865, -0.22472283244132996, -0.34625980257987976, -0.17852357029914856, -0.14960798621177673, -0.14134439826011658, -0.06909387558698654, 0.11505565792322159, 0.10770107805728912, 0.6988790035247803, -0.525956392288208, -0.37853747606277466, -0.24150501191616058, 0.27159202098846436, 0.08965755999088287, 0.17115968465805054, 0.3277646601200104, -0.007092438638210297, -0.34882938861846924, -0.18599602580070496, 0.3130156099796295, -0.15527653694152832, -0.018343880772590637, 0.41626840829849243, -0.0939851701259613, 0.1282290816307068, -0.14687877893447876, 0.027375414967536926, -0.0787055715918541, -0.12127291411161423, -0.38033515214920044, -0.5441792011260986, -0.11247770488262177, -0.13288798928260803, 0.3512420058250427, 0.04020880535244942, 0.3490839898586273, 0.08292411267757416, 0.04003535211086273, -0.01580037549138069, -0.11078494787216187, 0.19258525967597961, -0.13348478078842163, 0.23335376381874084, 0.07659181952476501, -0.006108746863901615, 0.1610463708639145, -0.15988440811634064, -0.15608131885528564, 0.3592749834060669, -0.16287505626678467, -0.09884791076183319, -0.12827447056770325, 0.2784000039100647, -0.00878614280372858, -0.18108126521110535, -0.09377703070640564, -0.36952561140060425, -0.1319839209318161, -0.11442618817090988, -0.015597216784954071, 0.2512645125389099, 0.09574685990810394, -0.5581240057945251, 0.1915048062801361, -0.19070672988891602, -0.10948477685451508, 0.09428435564041138, -0.08594080060720444, -0.004037585109472275, 0.00225057452917099, 0.277849942445755, 0.13596177101135254, -0.04991641640663147, -0.28470978140830994, 0.06334316730499268, 0.20241720974445343, -0.1726546585559845, 0.2768598794937134, -0.26880043745040894, -0.11164019256830215, 0.01998123899102211, 0.3108308017253876, 0.6949665546417236, -0.1796550303697586, -0.42864489555358887, 0.33484789729118347, -0.02967645786702633, -0.08480983227491379, -0.19320929050445557, 0.08580631017684937, -0.03904900327324867, -0.19129015505313873, 0.09991542994976044, -0.09375426918268204, 0.28909701108932495, -0.30294835567474365, 0.10102204978466034, 0.5465028285980225, -0.06914523243904114, -0.20385928452014923, 0.30438631772994995, 0.09578660130500793, 0.32281750440597534, 0.3069992661476135, 0.25028789043426514, 0.05535993352532387, 0.6206976771354675, 0.0220011118799448, 0.38164544105529785, 0.3313220143318176, 0.3392212986946106, -0.11843699216842651, -0.3111567199230194, 0.16060876846313477, 0.45702433586120605, -0.40981563925743103, 0.13714471459388733, 0.08041241019964218, 0.13315115869045258, 0.0033826828002929688, -0.3533458709716797, -0.08177389949560165, 0.6286839842796326, -0.09684445708990097, -0.10433260351419449, -0.09129510819911957, -0.14295747876167297, 0.3363591432571411, 0.1976311057806015, -0.07391971349716187, -0.11623983085155487, 0.03628354147076607, 0.21063408255577087, 0.0515606515109539, -0.14864371716976166, -0.009033173322677612, -0.11445702612400055, 0.05777855962514877, -0.17161180078983307, -0.03554369509220123, -0.13410761952400208, 0.10016719251871109, -0.31894055008888245, 0.0707942470908165, 0.5186488628387451, 0.4143279194831848, 0.09605711698532104, 0.08832140266895294, -0.09245149791240692, 0.0018731281161308289, -0.15171948075294495, 0.3243768811225891, 0.007516412064433098, 0.2404126673936844, 0.28999635577201843, -0.035259418189525604, 0.04008176922798157, -0.2816098630428314, 0.27579599618911743, 0.35810378193855286, -0.2363889217376709, 0.11678150296211243, 0.0016282331198453903, 0.05802752077579498, -0.17212975025177002, 0.23123982548713684, -0.5059821605682373, 0.23207634687423706, 0.7975670099258423, -0.27697762846946716, 0.2970382571220398, -0.0013090930879116058, -0.010084427893161774, -0.3129540681838989, 0.5281897783279419, 0.08104947209358215, 0.07975052297115326, -0.2492760866880417, -0.04568805545568466, -0.5394471287727356, -0.14828282594680786, -0.026819832623004913, -0.09356138110160828, 0.02840021252632141, 0.13711678981781006, 0.11035963147878647, 0.05137709155678749, -0.0754791796207428, -0.03403733670711517, -0.4058743715286255, 0.26754793524742126, -0.06995737552642822, 0.1924789696931839, -0.2088579535484314, 0.2203049212694168, -0.18976253271102905, -0.5497685670852661, 0.5792174935340881, -0.19158245623111725, -0.10399183630943298, -0.017728056758642197, 0.07846665382385254, 0.039519377052783966, 0.09944310784339905, 0.31217920780181885, 0.13727732002735138, 0.13015411794185638, -0.045015107840299606, 0.2122039794921875, 0.1963948756456375, 0.32558199763298035, -0.021129827946424484, 0.1904250979423523, 0.0014326348900794983, 0.17114338278770447, -0.20031481981277466, 0.30089449882507324, -0.15420541167259216, 0.26732251048088074, 0.0009625256061553955, 0.09151551127433777, 0.21748022735118866, -0.09989778697490692, -0.017670199275016785, 0.4172852039337158, 0.0027410946786403656, 0.308870792388916, 0.13818836212158203, 0.2813310921192169, -0.49119827151298523, -0.10348684340715408, 0.5883194208145142, -0.5534771084785461, -0.39473187923431396, -0.14156292378902435, 0.12006596475839615, 0.4194651246070862, -0.1703365445137024, -0.47370511293411255, -0.2043704092502594, 0.4016353487968445, -0.06394797563552856, -0.33358246088027954, 0.34000682830810547, -0.3495183289051056, 0.20962205529212952, -0.1204768568277359, 0.5618266463279724, -0.12229916453361511, -0.3039699196815491, 0.07345245778560638, -0.339323490858078 ]
https://github.com/huggingface/datasets/issues/1911
Tried finding the root cause but was unsuccessful. I am using lazy tokenization with `dataset.set_transform()`, it works like a charm with almost same performance as pre-compute.
Saving processed dataset running infinitely
I have a text dataset of size 220M. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 3hrs. I used map() with batch size 1024 and multi-process with 96 processes. filter() function was way to slow, so I used a hack to use pyarrow filter table function, which is damm fast. Mentioned [here](https://github.com/huggingface/datasets/issues/1796) ```dataset._data = dataset._data.filter(...)``` It took 1 hr for the filter. Then i use `save_to_disk()` on processed dataset and it is running forever. I have been waiting since 8 hrs, it has not written a single byte. Infact it has actually read from disk more than 100GB, screenshot below shows the stats using `iotop`. Second process is the one. <img width="1672" alt="Screenshot 2021-02-19 at 6 36 53 PM" src="https://user-images.githubusercontent.com/20911334/108508197-7325d780-72e1-11eb-8369-7c057d137d81.png"> I am not able to figure out, whether this is some issue with dataset library or that it is due to my hack for filter() function.
26
Saving processed dataset running infinitely I have a text dataset of size 220M. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 3hrs. I used map() with batch size 1024 and multi-process with 96 processes. filter() function was way to slow, so I used a hack to use pyarrow filter table function, which is damm fast. Mentioned [here](https://github.com/huggingface/datasets/issues/1796) ```dataset._data = dataset._data.filter(...)``` It took 1 hr for the filter. Then i use `save_to_disk()` on processed dataset and it is running forever. I have been waiting since 8 hrs, it has not written a single byte. Infact it has actually read from disk more than 100GB, screenshot below shows the stats using `iotop`. Second process is the one. <img width="1672" alt="Screenshot 2021-02-19 at 6 36 53 PM" src="https://user-images.githubusercontent.com/20911334/108508197-7325d780-72e1-11eb-8369-7c057d137d81.png"> I am not able to figure out, whether this is some issue with dataset library or that it is due to my hack for filter() function. Tried finding the root cause but was unsuccessful. I am using lazy tokenization with `dataset.set_transform()`, it works like a charm with almost same performance as pre-compute.
[ -0.35619664192199707, 0.1683889776468277, -0.0956779271364212, 0.2705768048763275, 0.28090640902519226, -0.05556663125753403, 0.2274562418460846, 0.2229018211364746, -0.31085845828056335, -0.1395980268716812, 0.1082136482000351, 0.1759864240884781, -0.14385350048542023, 0.234498530626297, 0.0023733675479888916, 0.25621986389160156, 0.3514584004878998, 0.10791860520839691, 0.37040621042251587, 0.10870341956615448, -0.06989119201898575, 0.025936244055628777, -0.14173811674118042, 0.039768923074007034, -0.3694450259208679, -0.34201526641845703, 0.137642040848732, -0.25805309414863586, -0.3062801957130432, -0.266948938369751, -0.036921966820955276, 0.3850827217102051, 0.0711699053645134, 0.5333971977233887, -0.00013098432100377977, -0.3164227604866028, 0.23134689033031464, -0.039690397679805756, -0.29507243633270264, 0.14736606180667877, 0.18792389333248138, -0.0768316388130188, -0.07614770531654358, -0.32266950607299805, 0.22808964550495148, -0.056096985936164856, 0.06660304218530655, -0.17896175384521484, 0.3069121539592743, -0.09991411119699478, 0.024462563917040825, 0.09633295238018036, -0.20244400203227997, 0.3944404125213623, 0.07816094160079956, 0.5052486658096313, -0.02996855601668358, -0.014323152601718903, 0.24174903333187103, -0.1317528486251831, -0.059941940009593964, 0.26056498289108276, -0.42259618639945984, -0.1757378727197647, 0.24832354485988617, -0.06033223867416382, -0.18930533528327942, -0.433096706867218, 0.3536809980869293, 0.1250944286584854, 0.29081910848617554, -0.500219464302063, -0.27045154571533203, -0.2737932801246643, -0.2251417338848114, -0.4966007471084595, 0.3358698785305023, 0.28757888078689575, -0.0780525952577591, 0.07037089020013809, -0.45017820596694946, -0.06432689726352692, -0.12198420614004135, -0.009396858513355255, -0.24413681030273438, 0.0015154071152210236, -0.22148390114307404, 0.17977111041545868, -0.02817113697528839, 0.015997471287846565, 0.2974228858947754, -0.4438254237174988, 0.11978423595428467, 0.07650595903396606, -0.29454126954078674, -0.040983106940984726, -0.3404231667518616, 0.22066548466682434, 0.14887741208076477, 0.13378147780895233, -0.24709069728851318, 0.17590655386447906, 0.23281878232955933, -0.044079143553972244, 0.1266123354434967, 0.039575137197971344, 0.09331934154033661, 0.1374988853931427, 0.27063512802124023, -0.4037397503852844, -0.17254024744033813, 0.08762267976999283, 0.008512146770954132, 0.17987596988677979, 0.41546714305877686, -0.5015188455581665, -0.03859192878007889, -0.15681500732898712, -0.167354553937912, 0.29990893602371216, -0.16097036004066467, -0.026630504056811333, -0.03350973129272461, 0.31205877661705017, -0.25574344396591187, -0.1600603461265564, -0.15666452050209045, -0.0816943496465683, -0.17332783341407776, -0.009995941072702408, 0.04849931225180626, -0.04958430305123329, -0.027432531118392944, 0.20231705904006958, 0.09206772595643997, -0.05780099332332611, -0.06016847863793373, 0.015926983207464218, -0.23280349373817444, -0.04039090499281883, 0.12185727059841156, -0.653103768825531, 0.35232871770858765, 0.357915461063385, 0.09295696020126343, 0.43039941787719727, -0.23562878370285034, -0.1576523780822754, -0.09871821105480194, 0.3413207232952118, 0.02891658991575241, -0.11529441922903061, 0.09000518172979355, -0.010359706357121468, -0.22735539078712463, 0.045630279928445816, -0.38602593541145325, 0.10076980292797089, 0.49579548835754395, -0.10209263861179352, -0.03129629045724869, -0.2901701033115387, -0.4178994596004486, -0.16313235461711884, 0.13996607065200806, 0.23221267759799957, -0.5348830819129944, 0.19705089926719666, -0.11689780652523041, 0.11435890942811966, 0.3382968306541443, 0.4622502326965332, 0.0029969438910484314, 0.3917594850063324, -0.25354909896850586, 0.34492409229278564, 0.33489713072776794, 0.21795782446861267, -0.5527255535125732, 0.11133422702550888, 0.010500028729438782, -0.07133161276578903, -0.1493803709745407, 0.2181277871131897, 0.6505597233772278, -0.2163795828819275, 0.19672615826129913, 0.14433957636356354, 0.03476954996585846, 0.003067992627620697, -0.3002890348434448, -0.21027526259422302, 0.07041015475988388, 0.1161043792963028, -0.07345090806484222, -0.10797813534736633, -0.026213768869638443, -0.08732610195875168, 0.26070669293403625, 0.08733237534761429, 0.30651432275772095, 0.3071138262748718, 0.29785388708114624, 0.31084951758384705, 0.038542430847883224, -0.27552270889282227, 0.09263496845960617, -0.06649339199066162, 0.2263990044593811, -0.22496004402637482, -0.3080352246761322, -0.3852895498275757, -0.05956588685512543, 0.3317055106163025, -0.15363217890262604, 0.06737418472766876, -0.0793265700340271, 0.19158226251602173, -0.03169192001223564, 0.2812983989715576, -0.09166905283927917, 0.35343533754348755, -0.23161008954048157, 0.00815977156162262, -0.03616265207529068, 0.0677640363574028, 0.16147364675998688, -0.25695329904556274, 0.0035998448729515076, 0.01377088949084282, 0.14299893379211426, -0.06560338288545609, 0.049903400242328644, 0.17052073776721954, 0.08553969860076904, 0.05111740902066231, -0.17997586727142334, 0.2203269600868225, 0.07899768650531769, -0.12620313465595245, 0.009175674989819527, -0.1297921985387802, 0.2911990284919739, -0.056233782321214676, -0.13743364810943604, 0.20957332849502563, -0.02649836428463459, 0.23180003464221954, 0.04071459174156189, -0.2505154609680176, 0.24571511149406433, 0.034269779920578, -0.011594410985708237, 0.025707975029945374, 0.22582508623600006, 0.18694309890270233, 0.28586316108703613, 0.19084304571151733, -0.13674503564834595, 0.4230037033557892, 0.6380716562271118, -0.29123708605766296, -0.03268026188015938, 0.2630533277988434, 0.007047908380627632, -0.22366294264793396, -0.0833156630396843, 0.039130061864852905, 0.2409750521183014, 0.1381785273551941, 0.03595781326293945, -0.09498102217912674, 0.08068150281906128, -0.11286859214305878, 0.3657852113246918, 0.14231503009796143, 0.3048701584339142, 0.23775841295719147, 0.27202969789505005, -0.055619776248931885, -0.3268784284591675, -0.1154097467660904, 0.31283050775527954, 0.3043539822101593, -0.19113072752952576, 0.2493322491645813, -0.3187404274940491, -0.26558202505111694, -0.008797984570264816, 0.015073947608470917, -0.2098754346370697, -0.1644066870212555, -0.21420413255691528, 0.2902168333530426, 0.0964987501502037, 0.11426948755979538, 0.23720784485340118, 0.16453543305397034, 0.08961165696382523, -0.33379459381103516, -0.28864091634750366, -0.03367191553115845, -0.2719527781009674, -0.10094134509563446, 0.3449327051639557, 0.11934816837310791, 0.5602347254753113, -0.03776669502258301, -0.2010660320520401, -0.5184049606323242, -0.3823204040527344, 0.1836896538734436, 0.09548772126436234, 0.4375208020210266, -0.07207824289798737, 0.26661360263824463, -0.2688075304031372, 0.07751443982124329, -0.034943412989377975, -0.11277888715267181, -0.1897430419921875, -0.09653899073600769, 0.08184584975242615, -0.11627893149852753, 0.0815773755311966, 0.11890985071659088, -0.41411346197128296, 0.0816565752029419, 0.22159616649150848, -0.4189993739128113, 0.2398497611284256, -0.40499961376190186, -0.1667506992816925, -0.03642762079834938, -0.030109545215964317, -0.16841822862625122, -0.18154799938201904, -0.3694896399974823, 0.4045927822589874, 0.10324615985155106, -0.2782885432243347, 0.08542608469724655, 0.02410479635000229, -0.1648419350385666, 0.35437071323394775, -0.5036889910697937, 0.2920399010181427, -0.2637021243572235, 0.18551674485206604, 0.10288931429386139, -0.04701290279626846, 0.4037773013114929, -0.054596319794654846, 0.14483138918876648, 0.0343240350484848, -0.5332235097885132, -0.050189677625894547, -0.18998640775680542, 0.14418785274028778, 0.2329205721616745, 0.7339385151863098, 0.09650781750679016, 0.5828554630279541, 0.01131042093038559, 0.09561875462532043, 0.1882004737854004, -0.0941794216632843, 0.15871164202690125, -0.18838614225387573, -0.3327953517436981, 0.08154793083667755, -0.06541755795478821, -0.3301582932472229, 0.1679268479347229, -0.17764240503311157, -0.10294327884912491, 0.24166764318943024, -0.3118290305137634, -0.23769602179527283, -0.23519743978977203, 0.03469301015138626, 0.3311670422554016, 0.35325485467910767, 0.3883735239505768, 0.02019505202770233, -0.09979508072137833, -0.29280734062194824, -0.22550493478775024, 0.2581324279308319, 0.21021133661270142, -0.03977929800748825, -0.2918074131011963, -0.023683391511440277, -0.5580813884735107, 0.2260974645614624, -0.0011218227446079254, 0.30685797333717346, 0.01629646122455597, 0.046543098986148834, 0.33275139331817627, -0.3871510326862335, 1.084189772605896, 0.05713246017694473, 0.11207005381584167, 0.1409694105386734, -0.3501551151275635, -0.310109943151474, 0.06811013072729111, 0.08686240017414093, 0.06502517312765121, 0.4142943024635315, 0.3152955174446106, -0.28655344247817993, -0.22869381308555603, 0.08045482635498047, 0.3835461735725403, -0.24431143701076508, -0.23776718974113464, -0.13786616921424866, -0.4442843198776245, -0.30623289942741394, 0.23868583142757416, 0.017017483711242676, 0.18909557163715363, 0.07870003581047058, -0.16020789742469788, -0.3057706356048584, -0.15774710476398468, 0.3004530370235443, -0.07661495357751846, 0.20098870992660522, -0.2700321674346924, 0.31852245330810547, -0.2576538920402527, 0.12495195865631104, 0.3866300880908966, -0.10182448476552963, 0.10289790481328964, 0.06922513246536255, 0.3182426989078522, -0.14667576551437378, 0.3119280934333801, 0.3617824912071228, -0.11812937259674072, 0.12539631128311157, -0.012662560679018497, 0.395027220249176, -0.3305845856666565, 0.1631426215171814, 0.02223680540919304, 0.3152642250061035, -0.672139585018158, -0.20418447256088257, 0.05859670042991638, 0.264892041683197, -0.13841141760349274, 0.1423315405845642, -0.1764371693134308, -0.20938509702682495, 0.38847115635871887, 0.2383251190185547, 1.1850359439849854, -0.3527076840400696, 0.24354645609855652, 0.09625425189733505, -0.001201532781124115, 0.12240965664386749, -0.5848093032836914, 0.0443325936794281, -0.19879500567913055, -0.20177362859249115, -0.10248024761676788, -0.14121314883232117, 0.04704906791448593, 0.04283102974295616, -0.04796620085835457, 0.1785004884004593, -0.01311028003692627, 0.1646737903356552, 0.04571749269962311, 0.44296425580978394, -0.19653502106666565, -0.2629643678665161, -0.23472265899181366, -0.02927267737686634, 0.018291141837835312, -0.09725959599018097, -0.05335026606917381, 0.03040286898612976, 0.11210207641124725, 0.004807762801647186, -0.1400817483663559, -0.20706824958324432, -0.2857973873615265, -0.03797024115920067, -0.3523787558078766, -0.13009290397167206, 0.1904643326997757, -0.12812690436840057, 0.15647341310977936, 0.36630338430404663, 0.0848679393529892, 0.17451374232769012, -0.060750365257263184, 0.17016208171844482, 0.044616926461458206, -0.45735037326812744, 0.08461587131023407, -0.12924626469612122, 0.03391145169734955, -0.1513439416885376, -0.07402928173542023, -0.21991246938705444, -0.1011074110865593, -0.01880813017487526, 0.5681499242782593, -0.24467450380325317, -0.14606373012065887, -0.21144737303256989, -0.006342999637126923, -0.1912200003862381, -0.03816282004117966, 0.13709011673927307, 0.08020525425672531, 0.7246435284614563, -0.4206169843673706, -0.2836776375770569, -0.27771639823913574, 0.34387871623039246, 0.17981579899787903, -0.0019149035215377808, 0.3709089159965515, 0.05751338601112366, -0.3377859592437744, -0.1966434270143509, 0.2740466892719269, -0.10983744263648987, -0.09437643736600876, 0.3875783383846283, -0.07447192072868347, 0.029317915439605713, -0.08299796283245087, 0.009457306005060673, -0.07825519144535065, -0.29153209924697876, -0.25051945447921753, -0.5259454250335693, -0.28220778703689575, -0.11613526940345764, 0.33594492077827454, -0.05823595076799393, 0.3865965008735657, 0.2560592293739319, 0.0006350800395011902, 0.06511008739471436, -0.1440390944480896, 0.0952230915427208, -0.052899427711963654, 0.237882599234581, -0.1445232629776001, -0.0852377787232399, 0.08210930973291397, -0.10762656480073929, -0.1013876348733902, 0.44705289602279663, -0.03157372027635574, -0.08045560121536255, -0.10552876442670822, 0.26247361302375793, -0.12767913937568665, -0.11904601007699966, -0.06762105971574783, -0.35440462827682495, -0.15046916902065277, -0.20153696835041046, 0.029706157743930817, 0.17528873682022095, 0.0456516295671463, -0.7417255640029907, 0.2148529589176178, -0.06610223650932312, -0.19193518161773682, -0.0027079032734036446, -0.0215967558324337, 0.034686196595430374, -0.038461603224277496, 0.33305656909942627, 0.12431216239929199, -0.05453818291425705, -0.23840010166168213, -0.004158873111009598, 0.23492936789989471, -0.20590537786483765, 0.3036859929561615, -0.3696601986885071, -0.21398615837097168, 0.21455727517604828, 0.20941519737243652, 0.5877881646156311, -0.06531667709350586, -0.41833651065826416, 0.3807539641857147, 0.005293094087392092, -0.09465114772319794, -0.08431878685951233, 0.12140445411205292, -0.15323776006698608, -0.2048008143901825, 0.15535596013069153, 0.03197897970676422, 0.15790711343288422, -0.18187597393989563, 0.17405343055725098, 0.7348408699035645, -0.20521479845046997, -0.18400855362415314, 0.20377114415168762, 0.17612141370773315, 0.33328932523727417, 0.3962143063545227, 0.34134843945503235, 0.023367106914520264, 0.6390287280082703, 0.12761031091213226, 0.3665173351764679, 0.4090363085269928, 0.5006257891654968, -0.1466987282037735, -0.30139386653900146, -0.05247732624411583, 0.4722628593444824, -0.2299550473690033, 0.1820887327194214, -0.0172431617975235, -0.003415193408727646, 0.20327310264110565, -0.42906221747398376, -0.1983249932527542, 0.7001780867576599, -0.14930787682533264, 0.02227148786187172, -0.1310432106256485, -0.11856451630592346, 0.29147687554359436, 0.23074305057525635, -0.06463401019573212, -0.05695148557424545, -0.07484667003154755, 0.22324036061763763, 0.020922191441059113, -0.18311774730682373, -0.01290062814950943, -0.13472983241081238, 0.024877406656742096, -0.19741004705429077, 0.09894952923059464, -0.18732470273971558, -0.010427143424749374, -0.2813013792037964, 0.15646149218082428, 0.49016568064689636, 0.40582001209259033, 0.10363200306892395, 0.10963824391365051, -0.1395997405052185, -0.00034890323877334595, -0.15131875872612, 0.3752332627773285, 0.03931666165590286, 0.343039870262146, 0.1373867392539978, -0.039474967867136, 0.016496285796165466, -0.37945234775543213, 0.25908997654914856, 0.265654057264328, -0.09576987475156784, 0.12695011496543884, 0.09499813616275787, -0.07010439038276672, -0.15728136897087097, 0.06762437522411346, -0.39234602451324463, 0.34638622403144836, 0.7331268191337585, -0.30036526918411255, 0.20924274623394012, -0.03362990915775299, 0.019680865108966827, -0.3313456177711487, 0.4036328196525574, 0.08910821378231049, -0.035379521548748016, -0.230241060256958, -0.19644083082675934, -0.5508618354797363, -0.1725219339132309, -0.05501357838511467, 0.0583999827504158, 0.03770162910223007, 0.10088597238063812, 0.14682339131832123, 0.00021367520093917847, -0.13388016819953918, -0.036339372396469116, -0.3546833395957947, 0.272556334733963, -0.11934956163167953, 0.24901747703552246, -0.20444992184638977, 0.2637102007865906, -0.17202956974506378, -0.4543081521987915, 0.6403274536132812, -0.25402677059173584, -0.06919384747743607, -0.05923821032047272, 0.15098391473293304, -0.03374273702502251, -0.026696965098381042, 0.2175128161907196, 0.2582068145275116, 0.01152859628200531, -0.012162469327449799, 0.3897278308868408, 0.22768345475196838, 0.42050957679748535, -0.029724741354584694, 0.26284703612327576, 0.18512825667858124, 0.25588953495025635, -0.1835881620645523, 0.2455415278673172, -0.08488546311855316, 0.13096962869167328, -0.010522298514842987, 0.049429092556238174, 0.13918107748031616, 0.027973219752311707, 0.0576983317732811, 0.4323115944862366, 0.048631008714437485, 0.3516114056110382, 0.1439344584941864, 0.2393043339252472, -0.6242005228996277, -0.18177318572998047, 0.4588899612426758, -0.6276181936264038, -0.5190658569335938, -0.17251531779766083, 0.14773029088974, 0.530055046081543, -0.1651887595653534, -0.3037886619567871, -0.0740637332201004, 0.39713144302368164, -0.056714460253715515, -0.3319040536880493, 0.3381713926792145, -0.2208520472049713, 0.1761685162782669, -0.1379644125699997, 0.36883583664894104, -0.02067139744758606, -0.3688693642616272, -0.02930145338177681, -0.17541150748729706 ]
https://github.com/huggingface/datasets/issues/1911
Hi ! This very probably comes from the hack you used. The pickling line was added an a sanity check because save_to_disk uses the same assumptions as pickling for a dataset object. The main assumption is that memory mapped pyarrow tables must be reloadable from the disk. In your case it's not possible since you altered the pyarrow table. I would suggest you to rebuild a valid Dataset object from your new pyarrow table. To do so you must first save your new table to a file, and then make a new Dataset object from that arrow file. You can save the raw arrow table (without all the `datasets.Datasets` metadata) by calling `map` with `cache_file_name="path/to/outut.arrow"` and `function=None`. Having `function=None` makes the `map` write your dataset on disk with no data transformation. Once you have your new arrow file, load it with `datasets.Dataset.from_file` to have a brand new Dataset object :) In the future we'll have a better support for the fast filtering method from pyarrow so you don't have to do this very unpractical workaround. Since it breaks somes assumptions regarding the core behavior of Dataset objects, this is very discouraged.
Saving processed dataset running infinitely
I have a text dataset of size 220M. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 3hrs. I used map() with batch size 1024 and multi-process with 96 processes. filter() function was way to slow, so I used a hack to use pyarrow filter table function, which is damm fast. Mentioned [here](https://github.com/huggingface/datasets/issues/1796) ```dataset._data = dataset._data.filter(...)``` It took 1 hr for the filter. Then i use `save_to_disk()` on processed dataset and it is running forever. I have been waiting since 8 hrs, it has not written a single byte. Infact it has actually read from disk more than 100GB, screenshot below shows the stats using `iotop`. Second process is the one. <img width="1672" alt="Screenshot 2021-02-19 at 6 36 53 PM" src="https://user-images.githubusercontent.com/20911334/108508197-7325d780-72e1-11eb-8369-7c057d137d81.png"> I am not able to figure out, whether this is some issue with dataset library or that it is due to my hack for filter() function.
191
Saving processed dataset running infinitely I have a text dataset of size 220M. For pre-processing, I need to tokenize this and filter rows with the large sequence. My tokenization took roughly 3hrs. I used map() with batch size 1024 and multi-process with 96 processes. filter() function was way to slow, so I used a hack to use pyarrow filter table function, which is damm fast. Mentioned [here](https://github.com/huggingface/datasets/issues/1796) ```dataset._data = dataset._data.filter(...)``` It took 1 hr for the filter. Then i use `save_to_disk()` on processed dataset and it is running forever. I have been waiting since 8 hrs, it has not written a single byte. Infact it has actually read from disk more than 100GB, screenshot below shows the stats using `iotop`. Second process is the one. <img width="1672" alt="Screenshot 2021-02-19 at 6 36 53 PM" src="https://user-images.githubusercontent.com/20911334/108508197-7325d780-72e1-11eb-8369-7c057d137d81.png"> I am not able to figure out, whether this is some issue with dataset library or that it is due to my hack for filter() function. Hi ! This very probably comes from the hack you used. The pickling line was added an a sanity check because save_to_disk uses the same assumptions as pickling for a dataset object. The main assumption is that memory mapped pyarrow tables must be reloadable from the disk. In your case it's not possible since you altered the pyarrow table. I would suggest you to rebuild a valid Dataset object from your new pyarrow table. To do so you must first save your new table to a file, and then make a new Dataset object from that arrow file. You can save the raw arrow table (without all the `datasets.Datasets` metadata) by calling `map` with `cache_file_name="path/to/outut.arrow"` and `function=None`. Having `function=None` makes the `map` write your dataset on disk with no data transformation. Once you have your new arrow file, load it with `datasets.Dataset.from_file` to have a brand new Dataset object :) In the future we'll have a better support for the fast filtering method from pyarrow so you don't have to do this very unpractical workaround. Since it breaks somes assumptions regarding the core behavior of Dataset objects, this is very discouraged.
[ -0.3835667371749878, 0.2207915186882019, -0.07534848898649216, 0.252421498298645, 0.16763338446617126, -0.08597233146429062, 0.09959078580141068, 0.24253198504447937, -0.16498231887817383, -0.058490946888923645, 0.033023402094841, 0.40208277106285095, -0.08487106114625931, 0.23195770382881165, 0.017286088317632675, 0.2511724829673767, 0.1903820037841797, 0.0988868698477745, 0.19885915517807007, 0.19222304224967957, -0.09730694442987442, -0.021285679191350937, -0.10730618238449097, 0.0238846056163311, -0.37525129318237305, -0.34217774868011475, 0.1020546704530716, -0.17646867036819458, -0.2869732677936554, -0.3915146589279175, 0.025844819843769073, 0.27382364869117737, 0.008860833942890167, 0.4969801604747772, -0.0001254970848094672, -0.24903301894664764, 0.26212480664253235, -0.07772676646709442, -0.3850049674510956, 0.1543709933757782, 0.18951475620269775, -0.09195761382579803, -0.06325235962867737, -0.31676942110061646, 0.25320670008659363, -0.08402875065803528, -0.07164005190134048, -0.14800915122032166, 0.37639594078063965, -0.08362743258476257, 0.09350480139255524, 0.1139938160777092, 0.000026769936084747314, 0.38963228464126587, 0.16778156161308289, 0.5001139640808105, -0.028845757246017456, 0.08795733749866486, 0.3362616300582886, -0.06709243357181549, -0.13712109625339508, 0.27834513783454895, -0.4867143929004669, -0.14118772745132446, 0.2645098865032196, -0.09666641801595688, -0.1675313413143158, -0.39489755034446716, 0.3739181458950043, 0.2074771523475647, 0.26188838481903076, -0.5467395782470703, -0.22140969336032867, -0.31722766160964966, -0.17090335488319397, -0.5744584798812866, 0.3465481400489807, 0.3022804856300354, -0.11292270570993423, 0.09191900491714478, -0.37016579508781433, -0.17599964141845703, -0.12697850167751312, 0.025989089161157608, -0.10263809561729431, -0.043541207909584045, -0.21555452048778534, 0.25335460901260376, 0.135345458984375, -0.05287070944905281, 0.271911084651947, -0.36703312397003174, 0.04327428713440895, 0.12679485976696014, -0.3480745553970337, -0.00003730505704879761, -0.40931466221809387, 0.21144360303878784, 0.19722816348075867, 0.10919003188610077, -0.17486023902893066, 0.1767204999923706, 0.2158227562904358, -0.02454116940498352, 0.11906082928180695, -0.0190228670835495, 0.04185453802347183, 0.12481752038002014, 0.1343434453010559, -0.3414919376373291, -0.15942376852035522, 0.059613827615976334, 0.08966530859470367, 0.03897876664996147, 0.34205037355422974, -0.4655124545097351, 0.07203651964664459, -0.1747668981552124, -0.0930224135518074, 0.273494154214859, -0.15195925533771515, -0.040458451956510544, -0.05400897562503815, 0.3045744001865387, -0.228671133518219, -0.17454853653907776, -0.13050659000873566, -0.08461152762174606, -0.1934618055820465, -0.07439061999320984, 0.026220571249723434, -0.06968788802623749, -0.1318623125553131, 0.28789079189300537, 0.16564655303955078, -0.0967976376414299, -0.042489007115364075, -0.002086922526359558, -0.288709431886673, -0.0223018079996109, 0.024013981223106384, -0.5841047763824463, 0.40816718339920044, 0.4192659854888916, 0.04515732824802399, 0.3685527443885803, -0.2013341784477234, -0.14474625885486603, -0.09565558284521103, 0.46647611260414124, -0.06858557462692261, -0.18221864104270935, 0.02617344819009304, 0.010750421322882175, -0.16902855038642883, 0.06076971814036369, -0.5576752424240112, 0.0929526761174202, 0.48660221695899963, -0.07432577013969421, -0.0206744447350502, -0.2441197633743286, -0.3163408041000366, -0.2649132013320923, 0.12027264386415482, 0.25574812293052673, -0.6958668231964111, 0.20837152004241943, -0.21882662177085876, 0.13793492317199707, 0.38644692301750183, 0.4180857539176941, -0.055711932480335236, 0.2867588400840759, -0.20965690910816193, 0.41729074716567993, 0.23352250456809998, 0.28018659353256226, -0.6572467684745789, 0.06740733981132507, -0.012279145419597626, -0.07706940919160843, -0.202406108379364, 0.21739010512828827, 0.5708346962928772, -0.14486899971961975, 0.034784577786922455, 0.13990692794322968, 0.025029903277754784, 0.022794142365455627, -0.32623469829559326, -0.2562335431575775, 0.0538615882396698, 0.11418841779232025, -0.1550353616476059, -0.20591911673545837, 0.0014637336134910583, -0.2663286328315735, 0.32373207807540894, 0.0752423107624054, 0.3228733241558075, 0.30215373635292053, 0.2688813805580139, 0.2784595489501953, 0.003383420407772064, -0.3233175277709961, 0.00010468438267707825, 0.016089722514152527, 0.106102354824543, -0.25616341829299927, -0.4138258695602417, -0.3335953950881958, -0.07715076953172684, 0.3796461820602417, -0.15496627986431122, 0.10348206758499146, -0.058850858360528946, 0.08570517599582672, 0.04200330376625061, 0.12703311443328857, -0.07414837181568146, 0.23373417556285858, -0.2826393246650696, -0.00010983645915985107, -0.11585260927677155, 0.08297013491392136, 0.08136797696352005, -0.30498379468917847, 0.006416380405426025, -0.0618375726044178, 0.12115389108657837, -0.02093372493982315, 0.0009330473840236664, 0.25896507501602173, 0.1091075986623764, 0.013809267431497574, -0.1826981157064438, 0.14205369353294373, 0.0493600070476532, -0.2159520983695984, -0.005300766788423061, -0.22059749066829681, 0.3107071816921234, -0.06433065235614777, -0.12871360778808594, 0.22958548367023468, -0.04481085017323494, 0.2971575856208801, -0.040910035371780396, -0.21736231446266174, 0.1645672619342804, -0.005749799311161041, 0.0359959602355957, 0.07145591080188751, 0.07664045691490173, 0.16789457201957703, 0.27860307693481445, 0.20422375202178955, -0.14014624059200287, 0.4174446761608124, 0.6351088881492615, -0.2277691513299942, -0.002044878900051117, 0.2752583920955658, -0.04679809510707855, -0.21617011725902557, -0.08839625865221024, 0.0545097291469574, 0.2103080153465271, 0.17022597789764404, -0.06265634298324585, -0.12570834159851074, 0.04703855141997337, -0.11020228266716003, 0.3756610155105591, 0.17667919397354126, 0.3735617995262146, 0.17163167893886566, 0.24967053532600403, -0.11664183437824249, -0.3490357995033264, -0.037716343998909, 0.25157299637794495, 0.3713639974594116, -0.2111775279045105, 0.21025845408439636, -0.37091439962387085, -0.2967136800289154, -0.024760350584983826, -0.0927339494228363, -0.19917014241218567, -0.1360979974269867, -0.1633739471435547, 0.28161871433258057, 0.041489578783512115, 0.21302582323551178, 0.2939046025276184, 0.2184886485338211, 0.026532083749771118, -0.25985071063041687, -0.35173872113227844, -0.11674609780311584, -0.31869062781333923, -0.06773419678211212, 0.4512522518634796, 0.15094241499900818, 0.5623542070388794, 0.10440842062234879, -0.12269684672355652, -0.5189986824989319, -0.28066113591194153, 0.1452241986989975, 0.0051964521408081055, 0.40731751918792725, -0.0914311558008194, 0.3319070041179657, -0.30934539437294006, 0.031394075602293015, -0.022424450144171715, -0.12452773004770279, -0.25098928809165955, -0.03106902539730072, 0.018874898552894592, -0.0936465710401535, 0.12110157310962677, -0.020593568682670593, -0.3942091763019562, 0.028618887066841125, 0.28875452280044556, -0.3527417778968811, 0.3154903054237366, -0.2839599549770355, -0.024032309651374817, 0.027448803186416626, -0.08588095754384995, -0.19393190741539001, -0.22134025394916534, -0.3033427298069, 0.30211225152015686, 0.10059648752212524, -0.27189308404922485, 0.11947212368249893, 0.09666071832180023, -0.022728459909558296, 0.29980242252349854, -0.4964136481285095, 0.310754656791687, -0.30278465151786804, 0.18722735345363617, 0.031148087233304977, -0.06863658875226974, 0.4508422911167145, -0.009657319635152817, 0.09620565176010132, 0.06487908959388733, -0.493760347366333, -0.06928783655166626, -0.19155138731002808, 0.16660839319229126, 0.1861976683139801, 0.6179502010345459, 0.06215335428714752, 0.6712688207626343, 0.029843725264072418, 0.0587155781686306, 0.17449122667312622, -0.0372413694858551, 0.18616515398025513, -0.2480669468641281, -0.3244779109954834, 0.011749915778636932, -0.18648381531238556, -0.2262553572654724, 0.05755575746297836, -0.1923343986272812, -0.18537282943725586, 0.26749303936958313, -0.19074620306491852, -0.33034712076187134, -0.29383721947669983, 0.0812423825263977, 0.34207242727279663, 0.3041875660419464, 0.3475702404975891, -0.05538134276866913, -0.1528906375169754, -0.3027535378932953, -0.16915567219257355, 0.15186363458633423, 0.22056151926517487, -0.02153935469686985, -0.3734184801578522, -0.12192787230014801, -0.5277502536773682, 0.2789166569709778, -0.033370498567819595, 0.24589209258556366, 0.06299156695604324, 0.006237536668777466, 0.36588218808174133, -0.4122898280620575, 0.9922733306884766, 0.05368950963020325, 0.06778252124786377, 0.19150006771087646, -0.11220419406890869, -0.3611144423484802, 0.07980310171842575, 0.14367569983005524, 0.12549740076065063, 0.28142449259757996, 0.19213685393333435, -0.3499976396560669, -0.1675754189491272, 0.10122625529766083, 0.4437807500362396, -0.2382509708404541, -0.19892603158950806, -0.11636267602443695, -0.41907817125320435, -0.3543669283390045, 0.27367281913757324, 0.029124371707439423, 0.1738576889038086, 0.10092893242835999, -0.09846892207860947, -0.24379117786884308, -0.16444900631904602, 0.1603192389011383, -0.06305660307407379, 0.25216785073280334, -0.14719948172569275, 0.33272290229797363, -0.22197411954402924, 0.16885556280612946, 0.44335415959358215, 0.09325045347213745, 0.059342704713344574, 0.14847856760025024, 0.26075124740600586, -0.06684054434299469, 0.26631972193717957, 0.43654754757881165, -0.03381974995136261, 0.24425920844078064, 0.033370327204465866, 0.35097432136535645, -0.2852976620197296, 0.11206042766571045, -0.020612172782421112, 0.2415349781513214, -0.6335098147392273, -0.22182655334472656, 0.1848457306623459, 0.23032702505588531, -0.14343422651290894, 0.3211608827114105, -0.09708355367183685, -0.13789629936218262, 0.3642773926258087, 0.341932088136673, 1.3057326078414917, -0.40132132172584534, 0.17214590311050415, 0.12585066258907318, -0.1251710057258606, 0.03614046052098274, -0.36029744148254395, 0.0009562484920024872, -0.26301005482673645, -0.05708897113800049, -0.01986072212457657, -0.13825054466724396, 0.03013063594698906, 0.11638627201318741, -0.08773252367973328, 0.09851831197738647, -0.014249518513679504, 0.0629531741142273, 0.038484469056129456, 0.4255831241607666, -0.19802168011665344, -0.3105161190032959, -0.14200054109096527, 0.018598094582557678, -0.09410550445318222, -0.17859923839569092, -0.032599881291389465, 0.02358585223555565, 0.10794981569051743, -0.0005847662687301636, -0.20968888700008392, -0.1743990182876587, -0.38546064496040344, -0.04782337695360184, -0.26076722145080566, -0.06254170089960098, 0.12443575263023376, -0.15776649117469788, -0.035448506474494934, 0.3297654688358307, 0.05867307633161545, 0.2710845470428467, -0.00031794048845767975, 0.1032804474234581, 0.048301372677087784, -0.4770306348800659, 0.11588189005851746, -0.1223641112446785, -0.05317123234272003, -0.025354132056236267, -0.11954602599143982, -0.30431246757507324, -0.1572328507900238, 0.04885289818048477, 0.6313861608505249, -0.19203051924705505, -0.16795162856578827, -0.19202232360839844, -0.111525759100914, -0.22008752822875977, -0.014643438160419464, 0.12892556190490723, 0.15127265453338623, 0.7495430707931519, -0.32223695516586304, -0.29722803831100464, -0.2453290969133377, 0.33450353145599365, 0.2095806896686554, 0.044931694865226746, 0.3827112317085266, 0.18303096294403076, -0.3001342713832855, -0.22510488331317902, 0.20398849248886108, -0.044725459069013596, -0.2874954044818878, 0.35443198680877686, -0.055896975100040436, 0.11601108312606812, 0.0527336485683918, 0.06539680063724518, 0.04826356843113899, -0.19689318537712097, -0.25524336099624634, -0.44294872879981995, -0.3174458146095276, -0.05827509984374046, 0.3190535604953766, -0.009604879654943943, 0.34411174058914185, 0.23286227881908417, -0.05408250913023949, 0.19111336767673492, -0.186187744140625, 0.1707056164741516, -0.020490072667598724, 0.2614899277687073, -0.13964462280273438, -0.04996015876531601, 0.12052081525325775, -0.1675785481929779, -0.08617819845676422, 0.44233018159866333, -0.07040832936763763, -0.1326020210981369, -0.05431831255555153, 0.206600159406662, -0.1244501918554306, -0.1713792085647583, -0.17125116288661957, -0.4104071855545044, -0.0668744444847107, -0.1763729453086853, 0.03214579075574875, 0.14352689683437347, -0.00981147587299347, -0.7530001997947693, 0.25876355171203613, -0.14368599653244019, -0.10734236240386963, 0.01839599385857582, -0.10620294511318207, 0.01725153438746929, 0.010802417993545532, 0.3042665719985962, 0.19162830710411072, -0.1061212569475174, -0.2100139558315277, -0.02018846943974495, 0.17443567514419556, -0.19916942715644836, 0.2817911207675934, -0.38420698046684265, -0.2681799530982971, 0.15185385942459106, 0.2423110008239746, 0.6086735129356384, 0.018330145627260208, -0.39651650190353394, 0.41688573360443115, 0.08047835528850555, -0.15176013112068176, -0.07871313393115997, 0.10963204503059387, -0.10241939127445221, -0.190566748380661, 0.12842759490013123, 0.009717099368572235, 0.21128079295158386, -0.20092113316059113, 0.22074159979820251, 0.6288782358169556, -0.21521693468093872, -0.25388211011886597, 0.30689752101898193, 0.15047496557235718, 0.20755347609519958, 0.4781116843223572, 0.33385565876960754, 0.12878093123435974, 0.5598869919776917, 0.03692321106791496, 0.43853557109832764, 0.41494837403297424, 0.47986137866973877, -0.07401184737682343, -0.3737940192222595, -0.07226051390171051, 0.4444385766983032, -0.18599796295166016, 0.16294333338737488, 0.028421051800251007, 0.17392516136169434, 0.27532151341438293, -0.5637275576591492, -0.11898091435432434, 0.6395545601844788, -0.1324681043624878, 0.03513728082180023, -0.28429582715034485, -0.12481299042701721, 0.2628369629383087, 0.21571511030197144, -0.08759856969118118, -0.11457324028015137, 0.07973077148199081, 0.187006413936615, -0.07500699162483215, -0.2530842125415802, -0.060653675347566605, -0.1116710901260376, 0.05079229176044464, -0.19347098469734192, 0.05698643624782562, -0.1657603681087494, -0.040058743208646774, -0.2671600580215454, 0.12190371006727219, 0.464197039604187, 0.3988070785999298, 0.014651365578174591, 0.1256377398967743, -0.0709121972322464, 0.014694161713123322, -0.1193474680185318, 0.30114513635635376, 0.12625040113925934, 0.22925399243831635, 0.2591567635536194, 0.004254817962646484, -0.03501293808221817, -0.3886090815067291, 0.19172552227973938, 0.3899105191230774, -0.005960691720247269, -0.08641353249549866, 0.10857533663511276, -0.10120508074760437, -0.19069606065750122, 0.07650171220302582, -0.3310646414756775, 0.3115878105163574, 0.7496411204338074, -0.3366106152534485, 0.17304088175296783, -0.0520019568502903, 0.04147570580244064, -0.24684137105941772, 0.5603487491607666, 0.1954561322927475, -0.0417720228433609, -0.3082904517650604, -0.19636797904968262, -0.5810981392860413, -0.17680343985557556, -0.18305853009223938, 0.0588071271777153, 0.05346183478832245, 0.13893075287342072, 0.18888826668262482, 0.10592974722385406, -0.04849474877119064, -0.02380356751382351, -0.308011531829834, 0.3683890700340271, -0.18220677971839905, 0.2372138500213623, -0.011972028762102127, 0.23036007583141327, -0.09998580813407898, -0.47146177291870117, 0.615906834602356, -0.09067989885807037, -0.05164171755313873, -0.10536915808916092, 0.07494714856147766, 0.03986901789903641, 0.145236536860466, 0.3274848461151123, 0.21188904345035553, 0.03484801948070526, 0.044914886355400085, 0.32165995240211487, 0.08354974538087845, 0.30572599172592163, -0.05453473702073097, 0.2176973670721054, 0.18817076086997986, 0.3021155297756195, -0.08908438682556152, 0.2686494290828705, -0.1741846799850464, 0.12843537330627441, -0.07786618173122406, 0.15727528929710388, 0.1311725378036499, -0.03622310981154442, 0.1362515240907669, 0.4410625100135803, -0.011028427630662918, 0.32356202602386475, 0.16538077592849731, 0.3450426757335663, -0.6625385284423828, -0.20426255464553833, 0.549614429473877, -0.4917221963405609, -0.440237820148468, -0.0959463119506836, 0.20142348110675812, 0.48647865653038025, -0.17163552343845367, -0.37198907136917114, -0.12934032082557678, 0.3550192415714264, -0.06720760464668274, -0.32076025009155273, 0.2895030975341797, -0.2783166766166687, 0.24454715847969055, -0.16384615004062653, 0.49908626079559326, -0.009690001606941223, -0.36906442046165466, -0.14371824264526367, -0.2491852194070816 ]
https://github.com/huggingface/datasets/issues/1907
Hi ! :) This looks like the same issue as https://github.com/huggingface/datasets/issues/1856 Basically google drive has quota issues that makes it inconvenient for downloading files. If the quota of a file is exceeded, you have to wait 24h for the quota to reset (which is painful). The error says that the checksum of the downloaded file doesn't match because google drive returns a text file with the "Quota Exceeded" error instead of the actual data file.
DBPedia14 Dataset Checksum bug?
Hi there!!! I've been using successfully the DBPedia dataset (https://huggingface.co/datasets/dbpedia_14) with my codebase in the last couple of weeks, but in the last couple of days now I get this error: ``` Traceback (most recent call last): File "./conditional_classification/basic_pipeline.py", line 178, in <module> main() File "./conditional_classification/basic_pipeline.py", line 128, in main corpus.load_data(limit_train_examples_per_class=args.data_args.train_examples_per_class, File "/home/fp/dev/conditional_classification/conditional_classification/datasets_base.py", line 83, in load_data datasets = load_dataset(self.name, split=dataset_split) File "/home/fp/anaconda3/envs/conditional/lib/python3.8/site-packages/datasets/load.py", line 609, in load_dataset builder_instance.download_and_prepare( File "/home/fp/anaconda3/envs/conditional/lib/python3.8/site-packages/datasets/builder.py", line 526, in download_and_prepare self._download_and_prepare( File "/home/fp/anaconda3/envs/conditional/lib/python3.8/site-packages/datasets/builder.py", line 586, in _download_and_prepare verify_checksums( File "/home/fp/anaconda3/envs/conditional/lib/python3.8/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://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k'] ``` I've seen this has happened before in other datasets as reported in #537. I've tried clearing my cache and call again `load_dataset` but still is not working. My same codebase is successfully downloading and using other datasets (e.g. AGNews) without any problem, so I guess something has happened specifically to the DBPedia dataset in the last few days. Can you please check if there's a problem with the checksums? Or this is related to any other stuff? I've seen that the path in the cache for the dataset is `/home/fp/.cache/huggingface/datasets/d_bpedia14/dbpedia_14/2.0.0/a70413e39e7a716afd0e90c9e53cb053691f56f9ef5fe317bd07f2c368e8e897...` and includes `d_bpedia14` instead maybe of `dbpedia_14`. Was this maybe a bug introduced recently? Thanks!
75
DBPedia14 Dataset Checksum bug? Hi there!!! I've been using successfully the DBPedia dataset (https://huggingface.co/datasets/dbpedia_14) with my codebase in the last couple of weeks, but in the last couple of days now I get this error: ``` Traceback (most recent call last): File "./conditional_classification/basic_pipeline.py", line 178, in <module> main() File "./conditional_classification/basic_pipeline.py", line 128, in main corpus.load_data(limit_train_examples_per_class=args.data_args.train_examples_per_class, File "/home/fp/dev/conditional_classification/conditional_classification/datasets_base.py", line 83, in load_data datasets = load_dataset(self.name, split=dataset_split) File "/home/fp/anaconda3/envs/conditional/lib/python3.8/site-packages/datasets/load.py", line 609, in load_dataset builder_instance.download_and_prepare( File "/home/fp/anaconda3/envs/conditional/lib/python3.8/site-packages/datasets/builder.py", line 526, in download_and_prepare self._download_and_prepare( File "/home/fp/anaconda3/envs/conditional/lib/python3.8/site-packages/datasets/builder.py", line 586, in _download_and_prepare verify_checksums( File "/home/fp/anaconda3/envs/conditional/lib/python3.8/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://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k'] ``` I've seen this has happened before in other datasets as reported in #537. I've tried clearing my cache and call again `load_dataset` but still is not working. My same codebase is successfully downloading and using other datasets (e.g. AGNews) without any problem, so I guess something has happened specifically to the DBPedia dataset in the last few days. Can you please check if there's a problem with the checksums? Or this is related to any other stuff? I've seen that the path in the cache for the dataset is `/home/fp/.cache/huggingface/datasets/d_bpedia14/dbpedia_14/2.0.0/a70413e39e7a716afd0e90c9e53cb053691f56f9ef5fe317bd07f2c368e8e897...` and includes `d_bpedia14` instead maybe of `dbpedia_14`. Was this maybe a bug introduced recently? Thanks! Hi ! :) This looks like the same issue as https://github.com/huggingface/datasets/issues/1856 Basically google drive has quota issues that makes it inconvenient for downloading files. If the quota of a file is exceeded, you have to wait 24h for the quota to reset (which is painful). The error says that the checksum of the downloaded file doesn't match because google drive returns a text file with the "Quota Exceeded" error instead of the actual data file.
[ -0.24835604429244995, 0.350805401802063, -0.1227644830942154, 0.26245275139808655, 0.10466556251049042, -0.004844531416893005, 0.320569783449173, 0.5194305181503296, -0.08774194121360779, -0.04135894030332565, 0.07762559503316879, -0.1982267200946808, 0.003129672259092331, 0.3474113941192627, -0.2444947063922882, -0.009974497370421886, 0.09866978973150253, -0.15438197553157806, -0.006618637591600418, 0.05069766938686371, -0.17627932131290436, 0.08079999685287476, -0.2772868275642395, -0.3061196208000183, -0.0021764449775218964, 0.2340680956840515, 0.014913320541381836, -0.12597371637821198, -0.0010673701763153076, -0.2701270580291748, 0.5489285588264465, 0.17954429984092712, 0.023815147578716278, 0.414328396320343, -0.00011262717453064397, -0.0021209195256233215, 0.3832170069217682, -0.058861762285232544, -0.32822978496551514, 0.10531890392303467, -0.3156421184539795, -0.14990851283073425, -0.07901650667190552, -0.08250705152750015, -0.1530301421880722, -0.5050343871116638, -0.20108583569526672, -0.11142490804195404, -0.104029580950737, 0.2618601322174072, 0.2175973504781723, 0.20897452533245087, 0.09172697365283966, -0.07898788899183273, -0.16436417400836945, 0.0381905660033226, -0.034637439996004105, 0.00007309950888156891, 0.10795673727989197, -0.17507225275039673, 0.09175128489732742, 0.1509217619895935, -0.16197556257247925, 0.028800837695598602, 0.11568158864974976, -0.20752619206905365, 0.0970107764005661, -0.2640065848827362, 0.2317044585943222, 0.24051597714424133, 0.2926246225833893, -0.12876959145069122, -0.37205958366394043, -0.2977038621902466, -0.07500233501195908, -0.2456415593624115, 0.23023489117622375, 0.17160499095916748, -0.06730356812477112, -0.03632450848817825, -0.3061075210571289, 0.25239297747612, 0.1045452207326889, 0.0709880143404007, -0.12349461764097214, 0.1498820185661316, 0.057727597653865814, -0.07493118941783905, 0.10633570700883865, -0.04135199263691902, 0.600908100605011, -0.16634009778499603, -0.2048628330230713, 0.08070951700210571, -0.4355800151824951, -0.16345009207725525, 0.056000661104917526, 0.6840982437133789, 0.18320894241333008, 0.4219743311405182, -0.19950827956199646, 0.16578206419944763, -0.12091828882694244, -0.09226851165294647, 0.15042060613632202, -0.03434975445270538, -0.05192793160676956, 0.4296020269393921, 0.2829835116863251, 0.30014702677726746, 0.12841081619262695, 0.1946968138217926, 0.1358949989080429, -0.2661391496658325, 0.2309340238571167, 0.09636496752500534, 0.04334743320941925, -0.2907247543334961, -0.2783108353614807, 0.2760263681411743, -0.12703120708465576, -0.13805316388607025, 0.29783883690834045, 0.2877976894378662, -0.43302130699157715, 0.19596847891807556, 0.008253410458564758, 0.021015003323554993, 0.04422927647829056, -0.2511604428291321, -0.1368151605129242, -0.14712801575660706, -0.04691770672798157, 0.13707563281059265, 0.11808572709560394, 0.031462594866752625, 0.28969675302505493, -0.0034999512135982513, 0.15632957220077515, -0.11048302054405212, 0.20001980662345886, -0.363754540681839, 0.20523473620414734, 0.5173289775848389, -0.0956810787320137, 0.20819830894470215, 0.08940370380878448, -0.3298080861568451, -0.015080645680427551, -0.10241822898387909, -0.23922748863697052, -0.1406961977481842, -0.3736906349658966, 0.22868536412715912, -0.33219945430755615, 0.010525485500693321, -0.5877588987350464, -0.21027640998363495, 0.3507719039916992, -0.2136426568031311, 0.07521975040435791, -0.3401680290699005, -0.21693944931030273, -0.11773045361042023, 0.32156217098236084, 0.388247549533844, -0.2872912287712097, 0.19265194237232208, -0.5058413743972778, -0.011674524284899235, 0.13116353750228882, 0.056637465953826904, -0.3111605942249298, 0.351767897605896, -0.3844766318798065, -0.24586322903633118, 0.0601755753159523, -0.5608975291252136, -0.3146592378616333, 0.1328957974910736, 0.19201332330703735, 0.32824331521987915, -0.13773250579833984, -0.2058592438697815, 0.06819595396518707, -0.2593609094619751, 0.12197157740592957, 0.09482094645500183, 0.06821104139089584, 0.15842360258102417, -0.24938027560710907, -0.013049568980932236, 0.21946419775485992, 0.12786459922790527, 0.18311651051044464, 0.0032975897192955017, 0.05685986578464508, 0.15125766396522522, 0.2725539207458496, -0.1036926880478859, -0.01482362113893032, 0.13066497445106506, 0.2006482481956482, 0.08275744318962097, 0.05096966400742531, -0.07561834901571274, -0.3890630006790161, 0.18558447062969208, -0.26502126455307007, 0.033278025686740875, -0.1553545743227005, -0.04558650031685829, -0.19924813508987427, -0.1255376935005188, -0.42975175380706787, -0.34560734033584595, 0.21119053661823273, 0.22496527433395386, -0.15478523075580597, 0.15367837250232697, 0.046917445957660675, 0.18886969983577728, -0.38621091842651367, -0.047178562730550766, -0.09831979870796204, 0.3950822651386261, -0.002491408959031105, 0.05623224750161171, 0.0013944059610366821, 0.09215933084487915, 0.12760940194129944, -0.03790310397744179, -0.008237646892666817, 0.40100961923599243, 0.3606114685535431, 0.03893258422613144, 0.19082970917224884, 0.3519996404647827, 0.25661179423332214, -0.2802025377750397, -0.2643060088157654, 0.30495867133140564, 0.12229570001363754, -0.07131226360797882, 0.13057485222816467, 0.3840272128582001, -0.2733517289161682, 0.05545040965080261, 0.12621158361434937, 0.0377751961350441, 0.4955727458000183, -0.10793626308441162, -0.2369184046983719, -0.257662832736969, 0.17658762633800507, 0.10496056079864502, 0.06751792132854462, 0.13938994705677032, -0.005388505756855011, 0.07988429814577103, 0.20555321872234344, -0.08068929612636566, -0.11773320287466049, -0.042633648961782455, 0.12197136878967285, -0.035609424114227295, 0.08790691196918488, 0.7510878443717957, 0.4312461018562317, -0.08132906258106232, 0.08342240005731583, 0.17495428025722504, -0.07225039601325989, -0.021737322211265564, 0.07072127610445023, 0.07836584001779556, 0.10587756335735321, 0.33515504002571106, 0.05853467062115669, 0.046271663159132004, -0.14941883087158203, -0.20889846980571747, 0.1730966567993164, 0.3105880916118622, -0.31807589530944824, 0.023901090025901794, -0.3514173924922943, -0.2420358657836914, -0.3531619906425476, -0.16881334781646729, -0.22862230241298676, -0.43815919756889343, -0.015774836763739586, 0.3220815062522888, 0.03681909292936325, 0.20745578408241272, -0.4492829442024231, 0.09258878231048584, 0.12872597575187683, -0.2775695025920868, 0.06398327648639679, 0.13203619420528412, -0.02435350976884365, 0.04515622556209564, 0.5737254023551941, 0.23137521743774414, 0.27022767066955566, -0.3618478775024414, -0.12973245978355408, -0.5231907367706299, -0.36839357018470764, 0.059492047876119614, 0.09101402759552002, 0.32056403160095215, 0.15842723846435547, 0.1651458442211151, 0.10594098269939423, -0.3236396014690399, 0.02810889109969139, 0.3177774250507355, -0.020034246146678925, -0.01498451828956604, -0.06361564993858337, 0.0657200962305069, 0.02758827805519104, 0.07959610223770142, -0.2562216520309448, -0.07924655824899673, -0.23300182819366455, 0.11199338734149933, 0.05595560371875763, 0.08920320868492126, -0.07789862900972366, 0.10296116024255753, -0.01434834860265255, 0.02979716658592224, -0.19011767208576202, -0.3761088252067566, 0.16931532323360443, -0.090288907289505, -0.44174811244010925, -0.09583808481693268, -0.03004305437207222, 0.3719255030155182, -0.07841761410236359, -0.37156158685684204, 0.00625891238451004, -0.13350830972194672, 0.11862458288669586, 0.2444375455379486, -0.38460880517959595, 0.28236883878707886, 0.007323767989873886, 0.016855422407388687, -0.18496602773666382, 0.02012074738740921, -0.05670255422592163, -0.21612541377544403, 0.5088826417922974, -0.12455956637859344, -0.19405497610569, 0.05731502175331116, 0.3122813105583191, 0.473592609167099, -0.16804417967796326, 0.2759515643119812, 0.02460847608745098, 0.4678418040275574, -0.13909375667572021, -0.4603393077850342, -0.19305606186389923, -0.0950099378824234, -0.0335225872695446, -0.039340171962976456, -0.2474113404750824, -0.17244598269462585, -0.13744252920150757, 0.03136958181858063, -0.3403829336166382, -0.2995959222316742, -0.10476318746805191, -0.39178043603897095, 0.2362753450870514, 0.0033101364970207214, 0.0916021317243576, 0.1571808159351349, -0.30263471603393555, 0.15356513857841492, 0.3441469669342041, -0.15024495124816895, -0.13112470507621765, -0.4588465392589569, -0.02382609248161316, 0.2610839307308197, 0.16868899762630463, 0.05768094211816788, 0.5540506839752197, -0.025455735623836517, 0.020196862518787384, -0.2274480164051056, -0.03300799801945686, 0.35288700461387634, -0.5139675736427307, 0.3113613724708557, -0.013579808175563812, 0.02585655450820923, -0.0678248330950737, -0.23514850437641144, 0.04831830412149429, -0.18413600325584412, 0.19328832626342773, 0.5447881817817688, -0.04825770854949951, -0.12642201781272888, 0.29029324650764465, 0.37812352180480957, -0.1861051321029663, -0.006340060383081436, -0.295360803604126, -0.1861954629421234, -0.01721082255244255, 0.0975823923945427, 0.18619810044765472, 0.23290008306503296, -0.33183640241622925, -0.18023893237113953, -0.04897882416844368, 0.06654150784015656, 0.02248978242278099, 0.060244008898735046, 0.20556426048278809, 0.02759941667318344, 0.3083539605140686, 0.12848828732967377, -0.138871431350708, 0.7748517394065857, 0.2862085998058319, -0.24722149968147278, -0.26313692331314087, 0.05676107853651047, -0.10239897668361664, -0.03231658786535263, 0.09934461116790771, -0.16700538992881775, -0.014298941940069199, 0.3959568440914154, -0.09277638792991638, -0.18804296851158142, 0.08101281523704529, 0.20372751355171204, -0.02448471076786518, -0.48033031821250916, -0.5200730562210083, -0.1251574158668518, 0.14471468329429626, 0.01109592616558075, 0.44863948225975037, 0.06925077736377716, -0.2791030704975128, 0.31416958570480347, 0.0963626429438591, 0.4851433336734772, 0.18382775783538818, -0.0944213941693306, -0.07069163769483566, -0.047772347927093506, -0.09335107356309891, -0.10174577683210373, -0.00603855587542057, -0.3348732590675354, -0.6285868883132935, -0.12544648349285126, -0.1433280110359192, 0.24753087759017944, -0.25862783193588257, 0.1138380765914917, 0.3659525215625763, -0.08797933161258698, 0.018784798681735992, 0.02498238906264305, 0.0654742568731308, -0.06234538555145264, -0.0027057304978370667, -0.3052214980125427, 0.1355486959218979, 0.03793831169605255, 0.17316605150699615, -0.1275608241558075, 0.006058532744646072, -0.11115874350070953, -0.15935474634170532, -0.5275294780731201, 0.08319967985153198, 0.032720327377319336, 0.04025633633136749, 0.21175876259803772, 0.07776010036468506, -0.20827887952327728, 0.5434346199035645, 0.23359021544456482, 0.30354681611061096, -0.18471993505954742, 0.16480228304862976, 0.06131324917078018, 0.21695397794246674, 0.07585855573415756, -0.26025262475013733, 0.5399425625801086, -0.13873253762722015, -0.2067428082227707, -0.002781359478831291, -0.1383007913827896, -0.32022589445114136, 0.11143030226230621, 0.02304445579648018, -0.17346930503845215, -0.1759435385465622, -0.021959755569696426, -0.15999938547611237, 0.12756697833538055, -0.28795933723449707, 0.1467721164226532, 0.08058391511440277, -0.026616888120770454, 0.18970230221748352, 0.13640379905700684, -0.37125852704048157, -0.09333480149507523, 0.6231889724731445, -0.03703835606575012, -0.18616896867752075, 0.35556867718696594, -0.08034209907054901, -0.11028173565864563, -0.2094680517911911, 0.19440516829490662, 0.21332144737243652, -0.3284568786621094, -0.16271285712718964, -0.4114900827407837, 0.20587582886219025, 0.08712425827980042, 0.4304662048816681, 0.21600621938705444, 0.08011072874069214, 0.1100861132144928, -0.7900109887123108, -0.030531462281942368, 0.0986933633685112, -0.14880363643169403, 0.10773248225450516, -0.1543700397014618, 0.13046026229858398, 0.09586720168590546, -0.2670513689517975, -0.2456793189048767, 0.07591249793767929, -0.42927753925323486, 0.09688298404216766, -0.3269149363040924, 0.014633245766162872, 0.2100941240787506, -0.0985255166888237, 0.15086543560028076, 0.015135042369365692, -0.05969768762588501, -0.15887556970119476, -0.2603534162044525, 0.11437459290027618, 0.2052628993988037, -0.14019319415092468, 0.18579967319965363, -0.14296451210975647, -0.07999923825263977, -0.1082238107919693, -0.08734837174415588, 0.07580040395259857, 0.07003208249807358, 0.14236028492450714, 0.3404823839664459, 0.0620093047618866, -0.06892254948616028, -0.20047627389431, -0.06506459414958954, -0.037006866186857224, 0.20500364899635315, 0.17795249819755554, -0.06985081732273102, -0.025923289358615875, 0.03827988728880882, 0.07192807644605637, -0.24127689003944397, 0.11401718854904175, 0.3307909667491913, -0.26900985836982727, 0.05127006769180298, 0.45626041293144226, 0.5259577631950378, 0.49001628160476685, -0.4191827178001404, -0.15108725428581238, 0.31083327531814575, 0.17345628142356873, -0.3344336450099945, -0.13271412253379822, 0.34079256653785706, 0.1940484195947647, -0.0793224424123764, 0.11235467344522476, 0.33628278970718384, -0.3540162742137909, 0.38280513882637024, 0.10536645352840424, 0.15206024050712585, -0.5242890119552612, 0.5086354613304138, 0.496303915977478, -0.30748575925827026, 0.1020006462931633, 0.2030337154865265, -0.18984277546405792, -0.17627927660942078, 0.550335168838501, -0.09353514760732651, 0.3178270757198334, -0.11578337848186493, 0.007693060673773289, -0.05320620536804199, -0.5167142748832703, 0.4916115701198578, 0.14960752427577972, -0.07282066345214844, -0.06037607789039612, 0.023131493479013443, 0.052523866295814514, -0.10560986399650574, 0.05696801468729973, -0.3598281443119049, -0.010292435064911842, -0.025615505874156952, 0.030929867178201675, 0.19828908145427704, -0.3819047212600708, -0.1348470151424408, 0.10835608839988708, 0.18994133174419403, 0.02466931752860546, 0.19440969824790955, 0.09151928126811981, -0.5324066877365112, -0.41299086809158325, 0.10378757119178772, -0.028756173327565193, 0.048068415373563766, -0.1690661907196045, 0.18555842339992523, 0.2086614966392517, -0.0036590900272130966, -0.035560961812734604, 0.15273277461528778, 0.24254871904850006, 0.40492716431617737, 0.24204479157924652, -0.13569879531860352, -0.02800009585916996, 0.07910844683647156, 0.040371060371398926, 0.4793926775455475, 0.22398273646831512, 0.16118285059928894, 0.3548165261745453, 0.15778081119060516, -0.10329806059598923, 0.14432480931282043, 0.036489780992269516, 0.21561194956302643, -0.21854490041732788, 0.5506976246833801, 0.0730590894818306, 0.18576648831367493, -0.25394871830940247, 0.11625458300113678, -0.04879876971244812, -0.09681632369756699, 0.3136620819568634, 0.2028796374797821, 0.19777755439281464, -0.06515704095363617, 0.06817719340324402, 0.14857229590415955, 0.47552457451820374, 0.25958290696144104, -0.10903814435005188, -0.185663104057312, -0.37618061900138855, -0.7282562255859375, 0.15379053354263306, -0.05552283301949501, 0.5085518956184387, 0.030475564301013947, 0.16533666849136353, -0.1357874572277069, 0.13607707619667053, 0.3877427577972412, -0.4676196277141571, 0.2673336863517761, 0.0702681913971901, -0.18640103936195374, -0.08207003027200699, -0.211467444896698, 0.07462186366319656, -0.0708472728729248, -0.29455074667930603, 0.2579190135002136, -0.09868982434272766, 0.14542517066001892, 0.17706166207790375, -0.5136871337890625, 0.02089408040046692, 0.09478209167718887, 0.25092992186546326, 0.06931688636541367, 0.7262418866157532, 0.01004716008901596, -0.10338819026947021, -0.4000118672847748, -0.04795703664422035, 0.0073249079287052155, 0.5848952531814575, 0.0964268296957016, 0.02472420036792755, 0.12753909826278687, -0.08837638050317764, -0.3506603240966797, 0.48021307587623596, 0.0932057797908783, -0.3719087839126587, -0.4586520791053772, -0.00972706824541092, 0.16696611046791077, -0.07393471896648407, -0.09170933067798615, -0.15435238182544708, -0.12562687695026398, 0.453749418258667, -0.01292884349822998, -0.23462346196174622, 0.398747980594635, -0.2917442321777344, 0.09393475949764252, -0.13760368525981903, 0.2120363861322403, -0.15792758762836456, -0.22085162997245789, -0.6547480821609497, 0.07067275047302246, 0.4977368414402008, 0.005165260285139084, -0.06745661795139313, 0.0658460482954979, -0.17707666754722595, 0.3712736666202545, -0.05627713352441788, 0.42822983860969543, -0.007867775857448578, -0.24206587672233582, 0.2888301610946655, 0.022523455321788788 ]
https://github.com/huggingface/datasets/issues/1906
We already have a ClassLabel type that does this kind of mapping between the label ids (integers) and actual label values (strings). I wonder if actually we should use the DictionaryType from Arrow and the Categorical type from pandas for the `datasets` ClassLabel feature type. Currently ClassLabel corresponds to `pa.int64()` in pyarrow and `dtype('int64')` in pandas (so the label names are lost during conversions). What do you think ?
Feature Request: Support for Pandas `Categorical`
``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.Series(["a", "b", "c", "a"], dtype="category")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws NotImplementedError # TODO(thom) this will need access to the dictionary as well (for labels). I.e. to the py_table ``` I'm curious if https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L796 could be built out in a way similar to `Sequence`? e.g. a `Map` class (or whatever name the maintainers might prefer) that can accept: ``` index_type = generate_from_arrow_type(pa_type.index_type) value_type = generate_from_arrow_type(pa_type.value_type) ``` and then additional code points to modify: - FeatureType: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L694 - A branch to handle Map in get_nested_type: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L719 - I don't quite understand what `encode_nested_example` does but perhaps a branch there? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L755 - Similarly, I don't quite understand why `Sequence` is used this way in `generate_from_dict`, but perhaps a branch here? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L775 I couldn't find other usages of `Sequence` outside of defining specific datasets, so I'm not sure if that's a comprehensive set of touchpoints.
69
Feature Request: Support for Pandas `Categorical` ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.Series(["a", "b", "c", "a"], dtype="category")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws NotImplementedError # TODO(thom) this will need access to the dictionary as well (for labels). I.e. to the py_table ``` I'm curious if https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L796 could be built out in a way similar to `Sequence`? e.g. a `Map` class (or whatever name the maintainers might prefer) that can accept: ``` index_type = generate_from_arrow_type(pa_type.index_type) value_type = generate_from_arrow_type(pa_type.value_type) ``` and then additional code points to modify: - FeatureType: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L694 - A branch to handle Map in get_nested_type: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L719 - I don't quite understand what `encode_nested_example` does but perhaps a branch there? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L755 - Similarly, I don't quite understand why `Sequence` is used this way in `generate_from_dict`, but perhaps a branch here? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L775 I couldn't find other usages of `Sequence` outside of defining specific datasets, so I'm not sure if that's a comprehensive set of touchpoints. We already have a ClassLabel type that does this kind of mapping between the label ids (integers) and actual label values (strings). I wonder if actually we should use the DictionaryType from Arrow and the Categorical type from pandas for the `datasets` ClassLabel feature type. Currently ClassLabel corresponds to `pa.int64()` in pyarrow and `dtype('int64')` in pandas (so the label names are lost during conversions). What do you think ?
[ 0.023009322583675385, -0.01027362048625946, -0.14260587096214294, 0.20766466856002808, 0.23701293766498566, 0.16727852821350098, 0.12674063444137573, 0.2487182915210724, -0.07384254038333893, -0.21550771594047546, 0.16739961504936218, 0.28240713477134705, -0.20351165533065796, 0.4252622723579407, 0.13274632394313812, -0.2236519157886505, 0.1246829479932785, 0.028445376083254814, 0.07785069942474365, 0.3117169737815857, -0.37717458605766296, -0.08387894183397293, -0.09955209493637085, 0.23897278308868408, -0.19834664463996887, -0.12938135862350464, -0.45648252964019775, -0.3532526195049286, -0.25937381386756897, -0.8477246761322021, 0.39832109212875366, 0.3807969093322754, 0.19315893948078156, 0.17358185350894928, -0.00011581898434087634, -0.30791938304901123, 0.20587661862373352, -0.0425235889852047, -0.0503571555018425, -0.44319766759872437, -0.29180675745010376, -0.24642477929592133, 0.32449501752853394, -0.2901010513305664, -0.20687630772590637, -0.29257455468177795, 0.006717061623930931, -0.2727673649787903, 0.2317008376121521, 0.06668110191822052, 0.16675160825252533, -0.049768827855587006, -0.02744247019290924, -0.16157127916812897, 0.13183477520942688, 0.4021802544593811, -0.23710070550441742, 0.28468936681747437, 0.5595123767852783, -0.322232186794281, 0.23148396611213684, 0.08847209811210632, 0.011763110756874084, -0.32495710253715515, 0.6005212068557739, 0.04903107136487961, 0.264599084854126, -0.5582159161567688, -0.30791768431663513, 0.15262384712696075, 0.34083375334739685, -0.35842448472976685, -0.5394775867462158, -0.4483570456504822, -0.011922452598810196, -0.23468786478042603, -0.0061522312462329865, -0.1371358036994934, -0.15568214654922485, 0.16163183748722076, 0.11226184666156769, -0.07315798103809357, -0.23993165791034698, 0.18730610609054565, -0.08443310856819153, 0.14768102765083313, -0.04436545819044113, -0.16754770278930664, 0.21313565969467163, -0.09954049438238144, 0.0033085420727729797, -0.15525738894939423, 0.02597576379776001, 0.604863703250885, -0.22478246688842773, -0.13631156086921692, 0.07299444824457169, 0.21086260676383972, 0.017788827419281006, -0.008307049050927162, 0.10021018236875534, 0.013437662273645401, -0.23139989376068115, -0.025674350559711456, 0.37917637825012207, 0.29243582487106323, 0.18008719384670258, -0.0863289088010788, -0.12884517014026642, 0.35813701152801514, -0.004165969789028168, 0.05363660305738449, -0.12826497852802277, -0.12261226773262024, -0.17232371866703033, 0.13863873481750488, -0.0707126259803772, 0.2454465627670288, -0.030459702014923096, -0.037208035588264465, -0.01771155744791031, -0.026349011808633804, 0.015225626528263092, 0.2628425359725952, -0.06595484167337418, 0.0928887128829956, -0.06410083919763565, 0.08351002633571625, 0.2764405906200409, 0.12065039575099945, -0.06809407472610474, 0.002098502591252327, -0.21021711826324463, 0.1605478972196579, -0.07752928137779236, -0.18587557971477509, -0.14922556281089783, -0.034432053565979004, 0.11926935613155365, 0.10851886868476868, -0.22760790586471558, -0.09362010657787323, 0.12291058897972107, 0.007404624950140715, -0.42579472064971924, 0.1622294783592224, 0.21879541873931885, -0.08500572293996811, -0.350491464138031, 0.13191932439804077, 0.15421511232852936, -0.24722763895988464, -0.23920534551143646, 0.11136579513549805, -0.2031581997871399, 0.1457657665014267, -0.3309439718723297, 0.4760415852069855, -0.008096389472484589, 0.04972619563341141, 0.23278146982192993, 0.05477834865450859, -0.2638415992259979, -0.3284742832183838, -0.17100632190704346, 0.45223748683929443, -0.321506142616272, -0.23099063336849213, 0.053162120282649994, -0.030691154301166534, 0.03615553677082062, 0.07728472352027893, -0.15831300616264343, 0.11923610419034958, -0.071648970246315, 0.17765268683433533, 0.5333981513977051, -0.1753789186477661, -0.1190229281783104, 0.35773733258247375, 0.005585484206676483, 0.19765880703926086, 0.2812623679637909, 0.26229092478752136, 0.19013075530529022, -0.2151021659374237, 0.09315113723278046, 0.1283133625984192, -0.104070745408535, -0.23550695180892944, 0.14915207028388977, -0.33043959736824036, 0.17610692977905273, 0.19300879538059235, -0.06846792995929718, 0.28355127573013306, 0.07439333945512772, -0.3360265791416168, 0.37493011355400085, -0.2894715964794159, 0.10783026367425919, 0.0636771097779274, 0.30660444498062134, 0.44090789556503296, 0.02053152769804001, -0.4798707962036133, -0.12571847438812256, 0.3306064009666443, -0.09522788226604462, 0.17422924935817719, -0.35670679807662964, -0.4952705502510071, -0.03978850692510605, 0.27396923303604126, -0.26591956615448, 0.14161917567253113, -0.009122416377067566, -0.2109057903289795, 0.23432549834251404, 0.20421500504016876, -0.35394802689552307, 0.5252870917320251, -0.0650034099817276, 0.20013411343097687, -0.24084404110908508, 0.175679013133049, -0.045853570103645325, 0.07683725655078888, -0.1055372878909111, 0.34525322914123535, -0.08469709753990173, -0.11971855163574219, 0.2849963903427124, 0.06151093170046806, 0.24282963573932648, -0.09462122619152069, -0.36450737714767456, 0.22926467657089233, 0.5264254212379456, 0.04913758486509323, -0.09080429375171661, -0.11065835505723953, 0.0843869149684906, -0.06670492887496948, 0.016678564250469208, 0.5823572278022766, -0.48171570897102356, 0.22716549038887024, 0.1415824443101883, 0.141252338886261, 0.09987476468086243, 0.25759559869766235, -0.24996811151504517, -0.19749301671981812, 0.14381253719329834, 0.2578531801700592, -0.22174403071403503, 0.0667165219783783, -0.16584397852420807, 0.19159778952598572, 0.3040451109409332, -0.1511572003364563, 0.10424384474754333, 0.10382281243801117, 0.10659319162368774, -0.17036016285419464, 0.2263922095298767, 0.1434834897518158, 0.27576929330825806, 0.07546733319759369, 0.06357233226299286, 0.1523474007844925, -0.15692827105522156, -0.06853476166725159, 0.36449986696243286, 0.02727833203971386, -0.08564646542072296, -0.2118576467037201, 0.029204487800598145, 0.07711631059646606, 0.059948503971099854, -0.34955117106437683, -0.02240310236811638, -0.03693009912967682, -0.12033581733703613, 0.17029738426208496, -0.11608817428350449, -0.5219682455062866, 0.14127153158187866, -0.5717269778251648, 0.007810315117239952, -0.17923703789710999, -0.062180232256650925, 0.08175240457057953, 0.0744456797838211, 0.11404252052307129, -0.34138453006744385, -0.035435751080513, 0.10470712929964066, -0.2842968702316284, -0.20894797146320343, -0.4510960280895233, 0.2566652297973633, 0.09991051256656647, -0.013635758310556412, -0.18099620938301086, 0.2080216109752655, 0.034566327929496765, -0.031089767813682556, -0.21235060691833496, -0.27904051542282104, 0.04938845336437225, -0.16999278962612152, 0.02647099830210209, 0.2983825206756592, -0.2530078589916229, -0.17496666312217712, -0.2625126242637634, 0.19829392433166504, 0.11988287419080734, -0.13651108741760254, -0.2098921835422516, -0.18930914998054504, 0.0895448625087738, -0.10319843888282776, 0.10203336179256439, -0.40951284766197205, -0.3784290552139282, 0.6761478185653687, 0.21928510069847107, 0.1426873356103897, 0.16809973120689392, -0.005876142531633377, 0.07301632314920425, -0.0896330326795578, -0.10471395403146744, -0.16688434779644012, 0.2988792657852173, 0.2073051929473877, -0.16085027158260345, -0.3180471956729889, -0.0798368901014328, -0.3646600544452667, 0.10579494386911392, 0.21212854981422424, -0.14106550812721252, -0.30411502718925476, 0.004882726818323135, 0.5083073377609253, 0.11358942091464996, 0.02844003029167652, 0.28444087505340576, 0.27775734663009644, 0.05759798735380173, 0.1198546439409256, 0.04210510104894638, 0.011399786919355392, 0.17791962623596191, -0.2589244842529297, 0.21575915813446045, 0.4879327714443207, 0.12093450129032135, 0.29108428955078125, 0.0937250405550003, -0.013682936318218708, 0.4954908490180969, -0.1015297994017601, 0.23748469352722168, -0.1354483962059021, -0.2925466299057007, -0.38491976261138916, -0.38120126724243164, 0.08736912906169891, 0.09225048124790192, -0.1177486926317215, -0.15663722157478333, -0.20114268362522125, -0.004943057894706726, 0.1318279653787613, -0.0870390310883522, -0.026894204318523407, -0.3554050922393799, 0.41139546036720276, -0.04215678572654724, -0.12228631228208542, -0.4082292318344116, -0.028986042365431786, -0.08854213356971741, 0.12401054799556732, 0.3442620635032654, -0.16509883105754852, -0.36319229006767273, -0.16294226050376892, -0.4993348717689514, 0.23020288348197937, 0.6471202373504639, -0.1424645185470581, 0.05277642607688904, -0.020061172544956207, -0.005371276289224625, 0.11594283580780029, 0.5606775879859924, -0.07186317443847656, -0.33758002519607544, 0.2686212956905365, -0.4713846445083618, -0.37818825244903564, 0.31691697239875793, 0.04552971571683884, 0.04411042481660843, -0.015689630061388016, 0.10216112434864044, -0.08994559943675995, -0.20319527387619019, -0.02651919610798359, -0.01729511469602585, 0.001223929226398468, -0.055229552090168, 0.02344287931919098, -0.03693828359246254, -0.1320168375968933, -0.1758873462677002, 0.4480684995651245, 0.16259653866291046, 0.041887737810611725, -0.10950574278831482, -0.21541890501976013, 0.05155959725379944, 0.26434168219566345, -0.00859130173921585, -0.06374942511320114, -0.05925668776035309, 0.16276872158050537, 0.04021671414375305, 0.049184009432792664, 0.10733950138092041, 0.2975519299507141, -0.14581350982189178, -0.579069972038269, -0.039476241916418076, 0.0585533082485199, 0.4294224977493286, 0.3097958564758301, -0.021576503291726112, 0.30144065618515015, -0.053107958287000656, -0.032504886388778687, -0.3707033693790436, -0.20069637894630432, 0.38164496421813965, -0.08463432639837265, -0.3441472053527832, -0.7334690093994141, 0.35093387961387634, 0.14265169203281403, -0.301872193813324, 0.1473783552646637, 0.3631763756275177, -0.5190951824188232, 0.29382261633872986, 0.040890295058488846, 0.8400940895080566, -0.09275224804878235, 0.3819611072540283, 0.3813301622867584, 0.30954569578170776, 0.7505720853805542, 0.27758079767227173, 0.09877029806375504, -0.3746112585067749, -0.28932973742485046, -0.3023834824562073, -0.10629049688577652, 0.26929593086242676, 0.36666008830070496, -0.34195929765701294, 0.33056193590164185, -0.13245724141597748, 0.28823184967041016, 0.10980450361967087, -0.1822686791419983, -0.11892221868038177, -0.2034185528755188, -0.7257791757583618, 0.04806634783744812, 0.4525599479675293, -0.03650658577680588, -0.23519393801689148, -0.20625850558280945, -0.11675692349672318, 0.09312695264816284, -0.26076221466064453, -0.21760809421539307, -0.43210428953170776, 0.14441880583763123, -0.10066619515419006, 0.15611866116523743, 0.26962217688560486, 0.47057244181632996, 0.3740430474281311, -0.3842304050922394, 0.027023935690522194, -0.1776851862668991, -0.14977645874023438, -0.1718023419380188, -0.08119876682758331, -0.05991630256175995, 0.4753718078136444, 0.03363804519176483, 0.09719091653823853, 0.36083632707595825, 0.0548865981400013, -0.2822108566761017, -0.3045467734336853, 0.20373693108558655, -0.07726320624351501, -0.26184409856796265, -0.29076269268989563, -0.24063876271247864, 0.04601782560348511, -0.11687374114990234, 0.06990906596183777, 0.21508938074111938, -0.036970749497413635, 0.1649359166622162, -0.3538253903388977, 0.15110072493553162, -0.21320518851280212, 0.12533558905124664, 0.20269638299942017, -0.03302646055817604, 0.10772702097892761, 0.15740671753883362, -0.2605881094932556, -0.05171925947070122, -0.005399152636528015, 0.258783757686615, -0.4805980324745178, 0.1313624531030655, 0.20058205723762512, -0.26509565114974976, -0.12768125534057617, 0.5652495622634888, 0.25173065066337585, 0.21287110447883606, -0.02110232412815094, -0.12899433076381683, -0.29739439487457275, 0.3678027391433716, 0.1430944949388504, 0.24398888647556305, -0.10402609407901764, 0.1322648972272873, -0.18524909019470215, -0.11361601203680038, -0.2206496298313141, -0.0021181218326091766, -0.0052057355642318726, -0.06755087524652481, 0.43294215202331543, 0.02079208754003048, 0.16367480158805847, 0.23927608132362366, 0.12128140032291412, 0.26369211077690125, -0.19252271950244904, -0.13201770186424255, -0.0871846005320549, 0.17038469016551971, -0.020182758569717407, -0.011497970670461655, 0.02093249186873436, -0.08945835381746292, -0.25650307536125183, -0.26497697830200195, 0.09434234350919724, 0.2512860894203186, 0.12105687707662582, -0.04483279585838318, 0.399472177028656, -0.03465328738093376, -0.18107640743255615, 0.3869205713272095, 0.03808915242552757, 0.49184831976890564, 0.0317569300532341, 0.047430939972400665, -0.3425096571445465, 0.0545479953289032, 0.030774734914302826, 0.32910579442977905, -0.03923755884170532, -0.41000548005104065, 0.6409253478050232, 0.08484338223934174, -0.1820201277732849, 0.1968025416135788, 0.5251167416572571, 0.2113814353942871, 0.1651664674282074, 0.07328015565872192, 0.12164764106273651, 0.08375147730112076, -0.33377858996391296, -0.31427228450775146, 0.1178407371044159, -0.15565519034862518, 0.1714906245470047, 0.5202996134757996, 0.30504703521728516, 0.2484452724456787, 0.12472160160541534, -0.14296367764472961, 0.2160944640636444, 0.19814428687095642, 0.07454840838909149, 0.31958112120628357, 0.3900641202926636, -0.00914829969406128, 0.3561513125896454, 0.3804430067539215, 0.5041666626930237, 0.18329370021820068, -0.09329219162464142, 0.07834421098232269, 0.08826985210180283, -0.017289502546191216, 0.6047264933586121, 0.02957993745803833, 0.008901318535208702, 0.41086626052856445, 0.03994361311197281, -0.008216604590415955, -0.05579013004899025, 0.057775527238845825, -0.1989378035068512, 0.012960925698280334, -0.0629524365067482, 0.23872430622577667, 0.21610920131206512, -0.15248912572860718, 0.47918224334716797, -0.17668965458869934, -0.12898416817188263, -0.34761425852775574, -0.13844791054725647, -0.29745718836784363, 0.43431636691093445, -0.13085193932056427, 0.5650556087493896, -0.06348174810409546, 0.19783365726470947, -0.0791856199502945, 0.35972389578819275, -0.08988353610038757, -0.0796704888343811, -0.09589304029941559, -0.06739059090614319, 0.007593004032969475, 0.20952822268009186, 0.4526984989643097, 0.1809920072555542, -0.15421560406684875, 0.10839301347732544, -0.42617347836494446, -0.2367449849843979, -0.034873221069574356, 0.26221978664398193, 0.12655022740364075, 0.09435085952281952, 0.27225571870803833, 0.05308135598897934, -0.031016945838928223, 0.022222699597477913, 0.010143069550395012, 0.27486228942871094, -0.3390367031097412, 0.7011247277259827, -0.2181459367275238, -0.23504342138767242, 0.1938219964504242, 0.3255454897880554, -0.3201078772544861, 0.048197679221630096, 0.05916574224829674, -0.1691698580980301, 0.14927005767822266, 0.1201525628566742, 0.04168619588017464, -0.06754706054925919, 0.18557415902614594, 0.19699309766292572, 0.40755653381347656, 0.010735958814620972, -0.24081817269325256, -0.47483158111572266, -0.14092691242694855, 0.25479722023010254, -0.25418534874916077, 0.2475462257862091, -0.03891550004482269, -0.023624856024980545, 0.09106765687465668, -0.08156317472457886, -0.3627573251724243, -0.13093996047973633, 0.21482402086257935, -0.09240345656871796, -0.2767861783504486, 0.18416039645671844, 0.12395697832107544, -0.18011733889579773, -0.2226976454257965, 0.07857836037874222, -0.25371238589286804, -0.0861014649271965, -0.19898757338523865, 0.14342345297336578, -0.19596487283706665, 0.045556407421827316, 0.2694397270679474, 0.22272220253944397, 0.18076470494270325, 0.2077309638261795, -0.16933681070804596, -0.03462032228708267, -0.344425231218338, 0.06135748326778412, 0.5801238417625427, -0.024967312812805176, 0.32345545291900635, -0.3697855472564697, -0.2753034234046936, -0.02329297922551632, 0.24249817430973053, 0.27552008628845215, -0.19335220754146576, -0.5966460704803467, 0.0874607190489769, -0.443066269159317, -0.02981785498559475, 0.1695706844329834, 0.36792710423469543, -0.13076478242874146, 0.3309237062931061, 0.1300218105316162, -0.20779716968536377, 0.342271089553833, -0.4958495795726776, -0.2886917293071747, 0.03509604558348656, -0.20061740279197693, 0.3782956302165985, -0.18550747632980347, -0.15913589298725128, -0.012823358178138733, 0.48508167266845703, 0.11976553499698639, -0.10625263303518295, 0.17435479164123535, -0.2196146696805954, -0.10836990922689438, -0.38935792446136475, 0.08170145750045776, -0.2865288257598877, -0.02138661965727806, 0.04204393923282623, -0.4636684060096741 ]
https://github.com/huggingface/datasets/issues/1906
Now that I've heard you explain ClassLabel, that makes a lot of sense! While DictionaryType for Arrow (I think) can have arbitrarily typed keys, so it won't cover all potential cases, pandas' Category is *probably* the most common use for that pyarrow type, and ClassLabel should match that perfectly? Other thoughts: - changing the resulting patype on ClassLabel might be backward-incompatible? I'm not totally sure if users of the `datasets` library tend to directly access the `patype` attribute (I don't think we really do, but we haven't been using it for very long yet). - would ClassLabel's dtype change to `dict[int64, string]`? It seems like in practice a ClassLabel (when not explicitly specified) would be constructed from the DictionaryType branch of `generate_from_arrow_type`, so it's not totally clear to me that anyone ever actually accesses/uses that dtype? - I don't quite know how `.int2str` and `.str2int` are used in practice - would those be kept? Perhaps the implementation might actually be substantially smaller if we can just delegate to pyarrow's dict methods? Another idea that just occurred to me: add a branch in here to generate a ClassLabel if the dict key is int64 and the values are string: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L932 , and then don't touch anything else. In practice, I don't think this would be backward-incompatible in a way anyone would care about since the current behavior just throws an exception, and this way, we could support *reading* a pandas Categorical into a `Dataset` as a ClassLabel. I *think* from there, while it would require some custom glue it wouldn't be too hard to convert the ClassLabel into a pandas Category if we want to go back - I think this would improve on the current behavior without risking changing the behavior of ClassLabel in a backward-incompat way. Thoughts? I'm not sure if this is overly cautious. Whichever approach you think is better, I'd be happy to take it on!
Feature Request: Support for Pandas `Categorical`
``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.Series(["a", "b", "c", "a"], dtype="category")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws NotImplementedError # TODO(thom) this will need access to the dictionary as well (for labels). I.e. to the py_table ``` I'm curious if https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L796 could be built out in a way similar to `Sequence`? e.g. a `Map` class (or whatever name the maintainers might prefer) that can accept: ``` index_type = generate_from_arrow_type(pa_type.index_type) value_type = generate_from_arrow_type(pa_type.value_type) ``` and then additional code points to modify: - FeatureType: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L694 - A branch to handle Map in get_nested_type: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L719 - I don't quite understand what `encode_nested_example` does but perhaps a branch there? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L755 - Similarly, I don't quite understand why `Sequence` is used this way in `generate_from_dict`, but perhaps a branch here? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L775 I couldn't find other usages of `Sequence` outside of defining specific datasets, so I'm not sure if that's a comprehensive set of touchpoints.
319
Feature Request: Support for Pandas `Categorical` ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.Series(["a", "b", "c", "a"], dtype="category")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws NotImplementedError # TODO(thom) this will need access to the dictionary as well (for labels). I.e. to the py_table ``` I'm curious if https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L796 could be built out in a way similar to `Sequence`? e.g. a `Map` class (or whatever name the maintainers might prefer) that can accept: ``` index_type = generate_from_arrow_type(pa_type.index_type) value_type = generate_from_arrow_type(pa_type.value_type) ``` and then additional code points to modify: - FeatureType: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L694 - A branch to handle Map in get_nested_type: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L719 - I don't quite understand what `encode_nested_example` does but perhaps a branch there? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L755 - Similarly, I don't quite understand why `Sequence` is used this way in `generate_from_dict`, but perhaps a branch here? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L775 I couldn't find other usages of `Sequence` outside of defining specific datasets, so I'm not sure if that's a comprehensive set of touchpoints. Now that I've heard you explain ClassLabel, that makes a lot of sense! While DictionaryType for Arrow (I think) can have arbitrarily typed keys, so it won't cover all potential cases, pandas' Category is *probably* the most common use for that pyarrow type, and ClassLabel should match that perfectly? Other thoughts: - changing the resulting patype on ClassLabel might be backward-incompatible? I'm not totally sure if users of the `datasets` library tend to directly access the `patype` attribute (I don't think we really do, but we haven't been using it for very long yet). - would ClassLabel's dtype change to `dict[int64, string]`? It seems like in practice a ClassLabel (when not explicitly specified) would be constructed from the DictionaryType branch of `generate_from_arrow_type`, so it's not totally clear to me that anyone ever actually accesses/uses that dtype? - I don't quite know how `.int2str` and `.str2int` are used in practice - would those be kept? Perhaps the implementation might actually be substantially smaller if we can just delegate to pyarrow's dict methods? Another idea that just occurred to me: add a branch in here to generate a ClassLabel if the dict key is int64 and the values are string: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L932 , and then don't touch anything else. In practice, I don't think this would be backward-incompatible in a way anyone would care about since the current behavior just throws an exception, and this way, we could support *reading* a pandas Categorical into a `Dataset` as a ClassLabel. I *think* from there, while it would require some custom glue it wouldn't be too hard to convert the ClassLabel into a pandas Category if we want to go back - I think this would improve on the current behavior without risking changing the behavior of ClassLabel in a backward-incompat way. Thoughts? I'm not sure if this is overly cautious. Whichever approach you think is better, I'd be happy to take it on!
[ 0.023009322583675385, -0.01027362048625946, -0.14260587096214294, 0.20766466856002808, 0.23701293766498566, 0.16727852821350098, 0.12674063444137573, 0.2487182915210724, -0.07384254038333893, -0.21550771594047546, 0.16739961504936218, 0.28240713477134705, -0.20351165533065796, 0.4252622723579407, 0.13274632394313812, -0.2236519157886505, 0.1246829479932785, 0.028445376083254814, 0.07785069942474365, 0.3117169737815857, -0.37717458605766296, -0.08387894183397293, -0.09955209493637085, 0.23897278308868408, -0.19834664463996887, -0.12938135862350464, -0.45648252964019775, -0.3532526195049286, -0.25937381386756897, -0.8477246761322021, 0.39832109212875366, 0.3807969093322754, 0.19315893948078156, 0.17358185350894928, -0.00011581898434087634, -0.30791938304901123, 0.20587661862373352, -0.0425235889852047, -0.0503571555018425, -0.44319766759872437, -0.29180675745010376, -0.24642477929592133, 0.32449501752853394, -0.2901010513305664, -0.20687630772590637, -0.29257455468177795, 0.006717061623930931, -0.2727673649787903, 0.2317008376121521, 0.06668110191822052, 0.16675160825252533, -0.049768827855587006, -0.02744247019290924, -0.16157127916812897, 0.13183477520942688, 0.4021802544593811, -0.23710070550441742, 0.28468936681747437, 0.5595123767852783, -0.322232186794281, 0.23148396611213684, 0.08847209811210632, 0.011763110756874084, -0.32495710253715515, 0.6005212068557739, 0.04903107136487961, 0.264599084854126, -0.5582159161567688, -0.30791768431663513, 0.15262384712696075, 0.34083375334739685, -0.35842448472976685, -0.5394775867462158, -0.4483570456504822, -0.011922452598810196, -0.23468786478042603, -0.0061522312462329865, -0.1371358036994934, -0.15568214654922485, 0.16163183748722076, 0.11226184666156769, -0.07315798103809357, -0.23993165791034698, 0.18730610609054565, -0.08443310856819153, 0.14768102765083313, -0.04436545819044113, -0.16754770278930664, 0.21313565969467163, -0.09954049438238144, 0.0033085420727729797, -0.15525738894939423, 0.02597576379776001, 0.604863703250885, -0.22478246688842773, -0.13631156086921692, 0.07299444824457169, 0.21086260676383972, 0.017788827419281006, -0.008307049050927162, 0.10021018236875534, 0.013437662273645401, -0.23139989376068115, -0.025674350559711456, 0.37917637825012207, 0.29243582487106323, 0.18008719384670258, -0.0863289088010788, -0.12884517014026642, 0.35813701152801514, -0.004165969789028168, 0.05363660305738449, -0.12826497852802277, -0.12261226773262024, -0.17232371866703033, 0.13863873481750488, -0.0707126259803772, 0.2454465627670288, -0.030459702014923096, -0.037208035588264465, -0.01771155744791031, -0.026349011808633804, 0.015225626528263092, 0.2628425359725952, -0.06595484167337418, 0.0928887128829956, -0.06410083919763565, 0.08351002633571625, 0.2764405906200409, 0.12065039575099945, -0.06809407472610474, 0.002098502591252327, -0.21021711826324463, 0.1605478972196579, -0.07752928137779236, -0.18587557971477509, -0.14922556281089783, -0.034432053565979004, 0.11926935613155365, 0.10851886868476868, -0.22760790586471558, -0.09362010657787323, 0.12291058897972107, 0.007404624950140715, -0.42579472064971924, 0.1622294783592224, 0.21879541873931885, -0.08500572293996811, -0.350491464138031, 0.13191932439804077, 0.15421511232852936, -0.24722763895988464, -0.23920534551143646, 0.11136579513549805, -0.2031581997871399, 0.1457657665014267, -0.3309439718723297, 0.4760415852069855, -0.008096389472484589, 0.04972619563341141, 0.23278146982192993, 0.05477834865450859, -0.2638415992259979, -0.3284742832183838, -0.17100632190704346, 0.45223748683929443, -0.321506142616272, -0.23099063336849213, 0.053162120282649994, -0.030691154301166534, 0.03615553677082062, 0.07728472352027893, -0.15831300616264343, 0.11923610419034958, -0.071648970246315, 0.17765268683433533, 0.5333981513977051, -0.1753789186477661, -0.1190229281783104, 0.35773733258247375, 0.005585484206676483, 0.19765880703926086, 0.2812623679637909, 0.26229092478752136, 0.19013075530529022, -0.2151021659374237, 0.09315113723278046, 0.1283133625984192, -0.104070745408535, -0.23550695180892944, 0.14915207028388977, -0.33043959736824036, 0.17610692977905273, 0.19300879538059235, -0.06846792995929718, 0.28355127573013306, 0.07439333945512772, -0.3360265791416168, 0.37493011355400085, -0.2894715964794159, 0.10783026367425919, 0.0636771097779274, 0.30660444498062134, 0.44090789556503296, 0.02053152769804001, -0.4798707962036133, -0.12571847438812256, 0.3306064009666443, -0.09522788226604462, 0.17422924935817719, -0.35670679807662964, -0.4952705502510071, -0.03978850692510605, 0.27396923303604126, -0.26591956615448, 0.14161917567253113, -0.009122416377067566, -0.2109057903289795, 0.23432549834251404, 0.20421500504016876, -0.35394802689552307, 0.5252870917320251, -0.0650034099817276, 0.20013411343097687, -0.24084404110908508, 0.175679013133049, -0.045853570103645325, 0.07683725655078888, -0.1055372878909111, 0.34525322914123535, -0.08469709753990173, -0.11971855163574219, 0.2849963903427124, 0.06151093170046806, 0.24282963573932648, -0.09462122619152069, -0.36450737714767456, 0.22926467657089233, 0.5264254212379456, 0.04913758486509323, -0.09080429375171661, -0.11065835505723953, 0.0843869149684906, -0.06670492887496948, 0.016678564250469208, 0.5823572278022766, -0.48171570897102356, 0.22716549038887024, 0.1415824443101883, 0.141252338886261, 0.09987476468086243, 0.25759559869766235, -0.24996811151504517, -0.19749301671981812, 0.14381253719329834, 0.2578531801700592, -0.22174403071403503, 0.0667165219783783, -0.16584397852420807, 0.19159778952598572, 0.3040451109409332, -0.1511572003364563, 0.10424384474754333, 0.10382281243801117, 0.10659319162368774, -0.17036016285419464, 0.2263922095298767, 0.1434834897518158, 0.27576929330825806, 0.07546733319759369, 0.06357233226299286, 0.1523474007844925, -0.15692827105522156, -0.06853476166725159, 0.36449986696243286, 0.02727833203971386, -0.08564646542072296, -0.2118576467037201, 0.029204487800598145, 0.07711631059646606, 0.059948503971099854, -0.34955117106437683, -0.02240310236811638, -0.03693009912967682, -0.12033581733703613, 0.17029738426208496, -0.11608817428350449, -0.5219682455062866, 0.14127153158187866, -0.5717269778251648, 0.007810315117239952, -0.17923703789710999, -0.062180232256650925, 0.08175240457057953, 0.0744456797838211, 0.11404252052307129, -0.34138453006744385, -0.035435751080513, 0.10470712929964066, -0.2842968702316284, -0.20894797146320343, -0.4510960280895233, 0.2566652297973633, 0.09991051256656647, -0.013635758310556412, -0.18099620938301086, 0.2080216109752655, 0.034566327929496765, -0.031089767813682556, -0.21235060691833496, -0.27904051542282104, 0.04938845336437225, -0.16999278962612152, 0.02647099830210209, 0.2983825206756592, -0.2530078589916229, -0.17496666312217712, -0.2625126242637634, 0.19829392433166504, 0.11988287419080734, -0.13651108741760254, -0.2098921835422516, -0.18930914998054504, 0.0895448625087738, -0.10319843888282776, 0.10203336179256439, -0.40951284766197205, -0.3784290552139282, 0.6761478185653687, 0.21928510069847107, 0.1426873356103897, 0.16809973120689392, -0.005876142531633377, 0.07301632314920425, -0.0896330326795578, -0.10471395403146744, -0.16688434779644012, 0.2988792657852173, 0.2073051929473877, -0.16085027158260345, -0.3180471956729889, -0.0798368901014328, -0.3646600544452667, 0.10579494386911392, 0.21212854981422424, -0.14106550812721252, -0.30411502718925476, 0.004882726818323135, 0.5083073377609253, 0.11358942091464996, 0.02844003029167652, 0.28444087505340576, 0.27775734663009644, 0.05759798735380173, 0.1198546439409256, 0.04210510104894638, 0.011399786919355392, 0.17791962623596191, -0.2589244842529297, 0.21575915813446045, 0.4879327714443207, 0.12093450129032135, 0.29108428955078125, 0.0937250405550003, -0.013682936318218708, 0.4954908490180969, -0.1015297994017601, 0.23748469352722168, -0.1354483962059021, -0.2925466299057007, -0.38491976261138916, -0.38120126724243164, 0.08736912906169891, 0.09225048124790192, -0.1177486926317215, -0.15663722157478333, -0.20114268362522125, -0.004943057894706726, 0.1318279653787613, -0.0870390310883522, -0.026894204318523407, -0.3554050922393799, 0.41139546036720276, -0.04215678572654724, -0.12228631228208542, -0.4082292318344116, -0.028986042365431786, -0.08854213356971741, 0.12401054799556732, 0.3442620635032654, -0.16509883105754852, -0.36319229006767273, -0.16294226050376892, -0.4993348717689514, 0.23020288348197937, 0.6471202373504639, -0.1424645185470581, 0.05277642607688904, -0.020061172544956207, -0.005371276289224625, 0.11594283580780029, 0.5606775879859924, -0.07186317443847656, -0.33758002519607544, 0.2686212956905365, -0.4713846445083618, -0.37818825244903564, 0.31691697239875793, 0.04552971571683884, 0.04411042481660843, -0.015689630061388016, 0.10216112434864044, -0.08994559943675995, -0.20319527387619019, -0.02651919610798359, -0.01729511469602585, 0.001223929226398468, -0.055229552090168, 0.02344287931919098, -0.03693828359246254, -0.1320168375968933, -0.1758873462677002, 0.4480684995651245, 0.16259653866291046, 0.041887737810611725, -0.10950574278831482, -0.21541890501976013, 0.05155959725379944, 0.26434168219566345, -0.00859130173921585, -0.06374942511320114, -0.05925668776035309, 0.16276872158050537, 0.04021671414375305, 0.049184009432792664, 0.10733950138092041, 0.2975519299507141, -0.14581350982189178, -0.579069972038269, -0.039476241916418076, 0.0585533082485199, 0.4294224977493286, 0.3097958564758301, -0.021576503291726112, 0.30144065618515015, -0.053107958287000656, -0.032504886388778687, -0.3707033693790436, -0.20069637894630432, 0.38164496421813965, -0.08463432639837265, -0.3441472053527832, -0.7334690093994141, 0.35093387961387634, 0.14265169203281403, -0.301872193813324, 0.1473783552646637, 0.3631763756275177, -0.5190951824188232, 0.29382261633872986, 0.040890295058488846, 0.8400940895080566, -0.09275224804878235, 0.3819611072540283, 0.3813301622867584, 0.30954569578170776, 0.7505720853805542, 0.27758079767227173, 0.09877029806375504, -0.3746112585067749, -0.28932973742485046, -0.3023834824562073, -0.10629049688577652, 0.26929593086242676, 0.36666008830070496, -0.34195929765701294, 0.33056193590164185, -0.13245724141597748, 0.28823184967041016, 0.10980450361967087, -0.1822686791419983, -0.11892221868038177, -0.2034185528755188, -0.7257791757583618, 0.04806634783744812, 0.4525599479675293, -0.03650658577680588, -0.23519393801689148, -0.20625850558280945, -0.11675692349672318, 0.09312695264816284, -0.26076221466064453, -0.21760809421539307, -0.43210428953170776, 0.14441880583763123, -0.10066619515419006, 0.15611866116523743, 0.26962217688560486, 0.47057244181632996, 0.3740430474281311, -0.3842304050922394, 0.027023935690522194, -0.1776851862668991, -0.14977645874023438, -0.1718023419380188, -0.08119876682758331, -0.05991630256175995, 0.4753718078136444, 0.03363804519176483, 0.09719091653823853, 0.36083632707595825, 0.0548865981400013, -0.2822108566761017, -0.3045467734336853, 0.20373693108558655, -0.07726320624351501, -0.26184409856796265, -0.29076269268989563, -0.24063876271247864, 0.04601782560348511, -0.11687374114990234, 0.06990906596183777, 0.21508938074111938, -0.036970749497413635, 0.1649359166622162, -0.3538253903388977, 0.15110072493553162, -0.21320518851280212, 0.12533558905124664, 0.20269638299942017, -0.03302646055817604, 0.10772702097892761, 0.15740671753883362, -0.2605881094932556, -0.05171925947070122, -0.005399152636528015, 0.258783757686615, -0.4805980324745178, 0.1313624531030655, 0.20058205723762512, -0.26509565114974976, -0.12768125534057617, 0.5652495622634888, 0.25173065066337585, 0.21287110447883606, -0.02110232412815094, -0.12899433076381683, -0.29739439487457275, 0.3678027391433716, 0.1430944949388504, 0.24398888647556305, -0.10402609407901764, 0.1322648972272873, -0.18524909019470215, -0.11361601203680038, -0.2206496298313141, -0.0021181218326091766, -0.0052057355642318726, -0.06755087524652481, 0.43294215202331543, 0.02079208754003048, 0.16367480158805847, 0.23927608132362366, 0.12128140032291412, 0.26369211077690125, -0.19252271950244904, -0.13201770186424255, -0.0871846005320549, 0.17038469016551971, -0.020182758569717407, -0.011497970670461655, 0.02093249186873436, -0.08945835381746292, -0.25650307536125183, -0.26497697830200195, 0.09434234350919724, 0.2512860894203186, 0.12105687707662582, -0.04483279585838318, 0.399472177028656, -0.03465328738093376, -0.18107640743255615, 0.3869205713272095, 0.03808915242552757, 0.49184831976890564, 0.0317569300532341, 0.047430939972400665, -0.3425096571445465, 0.0545479953289032, 0.030774734914302826, 0.32910579442977905, -0.03923755884170532, -0.41000548005104065, 0.6409253478050232, 0.08484338223934174, -0.1820201277732849, 0.1968025416135788, 0.5251167416572571, 0.2113814353942871, 0.1651664674282074, 0.07328015565872192, 0.12164764106273651, 0.08375147730112076, -0.33377858996391296, -0.31427228450775146, 0.1178407371044159, -0.15565519034862518, 0.1714906245470047, 0.5202996134757996, 0.30504703521728516, 0.2484452724456787, 0.12472160160541534, -0.14296367764472961, 0.2160944640636444, 0.19814428687095642, 0.07454840838909149, 0.31958112120628357, 0.3900641202926636, -0.00914829969406128, 0.3561513125896454, 0.3804430067539215, 0.5041666626930237, 0.18329370021820068, -0.09329219162464142, 0.07834421098232269, 0.08826985210180283, -0.017289502546191216, 0.6047264933586121, 0.02957993745803833, 0.008901318535208702, 0.41086626052856445, 0.03994361311197281, -0.008216604590415955, -0.05579013004899025, 0.057775527238845825, -0.1989378035068512, 0.012960925698280334, -0.0629524365067482, 0.23872430622577667, 0.21610920131206512, -0.15248912572860718, 0.47918224334716797, -0.17668965458869934, -0.12898416817188263, -0.34761425852775574, -0.13844791054725647, -0.29745718836784363, 0.43431636691093445, -0.13085193932056427, 0.5650556087493896, -0.06348174810409546, 0.19783365726470947, -0.0791856199502945, 0.35972389578819275, -0.08988353610038757, -0.0796704888343811, -0.09589304029941559, -0.06739059090614319, 0.007593004032969475, 0.20952822268009186, 0.4526984989643097, 0.1809920072555542, -0.15421560406684875, 0.10839301347732544, -0.42617347836494446, -0.2367449849843979, -0.034873221069574356, 0.26221978664398193, 0.12655022740364075, 0.09435085952281952, 0.27225571870803833, 0.05308135598897934, -0.031016945838928223, 0.022222699597477913, 0.010143069550395012, 0.27486228942871094, -0.3390367031097412, 0.7011247277259827, -0.2181459367275238, -0.23504342138767242, 0.1938219964504242, 0.3255454897880554, -0.3201078772544861, 0.048197679221630096, 0.05916574224829674, -0.1691698580980301, 0.14927005767822266, 0.1201525628566742, 0.04168619588017464, -0.06754706054925919, 0.18557415902614594, 0.19699309766292572, 0.40755653381347656, 0.010735958814620972, -0.24081817269325256, -0.47483158111572266, -0.14092691242694855, 0.25479722023010254, -0.25418534874916077, 0.2475462257862091, -0.03891550004482269, -0.023624856024980545, 0.09106765687465668, -0.08156317472457886, -0.3627573251724243, -0.13093996047973633, 0.21482402086257935, -0.09240345656871796, -0.2767861783504486, 0.18416039645671844, 0.12395697832107544, -0.18011733889579773, -0.2226976454257965, 0.07857836037874222, -0.25371238589286804, -0.0861014649271965, -0.19898757338523865, 0.14342345297336578, -0.19596487283706665, 0.045556407421827316, 0.2694397270679474, 0.22272220253944397, 0.18076470494270325, 0.2077309638261795, -0.16933681070804596, -0.03462032228708267, -0.344425231218338, 0.06135748326778412, 0.5801238417625427, -0.024967312812805176, 0.32345545291900635, -0.3697855472564697, -0.2753034234046936, -0.02329297922551632, 0.24249817430973053, 0.27552008628845215, -0.19335220754146576, -0.5966460704803467, 0.0874607190489769, -0.443066269159317, -0.02981785498559475, 0.1695706844329834, 0.36792710423469543, -0.13076478242874146, 0.3309237062931061, 0.1300218105316162, -0.20779716968536377, 0.342271089553833, -0.4958495795726776, -0.2886917293071747, 0.03509604558348656, -0.20061740279197693, 0.3782956302165985, -0.18550747632980347, -0.15913589298725128, -0.012823358178138733, 0.48508167266845703, 0.11976553499698639, -0.10625263303518295, 0.17435479164123535, -0.2196146696805954, -0.10836990922689438, -0.38935792446136475, 0.08170145750045776, -0.2865288257598877, -0.02138661965727806, 0.04204393923282623, -0.4636684060096741 ]
https://github.com/huggingface/datasets/issues/1906
I think we can first keep the int64 precision but with an arrow Dictionary for ClassLabel, and focus on the connection with arrow and pandas. In this scope, I really like the idea of checking for the dictionary type: > Another idea that just occurred to me: add a branch in here to generate a ClassLabel if the dict key is int64 and the values are string: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L932 , and then don't touch anything else. This looks like a great start. Then as you said we'd have to add the conversion from classlabel to the correct arrow dictionary type. Arrow is already able to convert from arrow Dictionary to pandas Categorical so it should be enough. I can see two things that we must take case of to make this change backward compatible: - first we must still be able to load an arrow file with arrow int64 dtype and `datasets` ClassLabel type without crashing. This can be fixed by casting the arrow int64 array to an arrow Dictionary array on-the-fly when loading the table in the ArrowReader. - then we still have to return integers when accessing examples from a ClassLabel column. Currently it would return the strings values since it's based on the pandas behavior for converting from pandas to python/numpy. To do so we just have to adapt the python/numpy extractors in formatting.py (it takes care of converting an arrow table to a dictionary of python objects by doing arrow table -> pandas dataframe -> python dictionary) Any help on this matter is very much welcome :)
Feature Request: Support for Pandas `Categorical`
``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.Series(["a", "b", "c", "a"], dtype="category")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws NotImplementedError # TODO(thom) this will need access to the dictionary as well (for labels). I.e. to the py_table ``` I'm curious if https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L796 could be built out in a way similar to `Sequence`? e.g. a `Map` class (or whatever name the maintainers might prefer) that can accept: ``` index_type = generate_from_arrow_type(pa_type.index_type) value_type = generate_from_arrow_type(pa_type.value_type) ``` and then additional code points to modify: - FeatureType: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L694 - A branch to handle Map in get_nested_type: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L719 - I don't quite understand what `encode_nested_example` does but perhaps a branch there? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L755 - Similarly, I don't quite understand why `Sequence` is used this way in `generate_from_dict`, but perhaps a branch here? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L775 I couldn't find other usages of `Sequence` outside of defining specific datasets, so I'm not sure if that's a comprehensive set of touchpoints.
260
Feature Request: Support for Pandas `Categorical` ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.Series(["a", "b", "c", "a"], dtype="category")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws NotImplementedError # TODO(thom) this will need access to the dictionary as well (for labels). I.e. to the py_table ``` I'm curious if https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L796 could be built out in a way similar to `Sequence`? e.g. a `Map` class (or whatever name the maintainers might prefer) that can accept: ``` index_type = generate_from_arrow_type(pa_type.index_type) value_type = generate_from_arrow_type(pa_type.value_type) ``` and then additional code points to modify: - FeatureType: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L694 - A branch to handle Map in get_nested_type: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L719 - I don't quite understand what `encode_nested_example` does but perhaps a branch there? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L755 - Similarly, I don't quite understand why `Sequence` is used this way in `generate_from_dict`, but perhaps a branch here? https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L775 I couldn't find other usages of `Sequence` outside of defining specific datasets, so I'm not sure if that's a comprehensive set of touchpoints. I think we can first keep the int64 precision but with an arrow Dictionary for ClassLabel, and focus on the connection with arrow and pandas. In this scope, I really like the idea of checking for the dictionary type: > Another idea that just occurred to me: add a branch in here to generate a ClassLabel if the dict key is int64 and the values are string: https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L932 , and then don't touch anything else. This looks like a great start. Then as you said we'd have to add the conversion from classlabel to the correct arrow dictionary type. Arrow is already able to convert from arrow Dictionary to pandas Categorical so it should be enough. I can see two things that we must take case of to make this change backward compatible: - first we must still be able to load an arrow file with arrow int64 dtype and `datasets` ClassLabel type without crashing. This can be fixed by casting the arrow int64 array to an arrow Dictionary array on-the-fly when loading the table in the ArrowReader. - then we still have to return integers when accessing examples from a ClassLabel column. Currently it would return the strings values since it's based on the pandas behavior for converting from pandas to python/numpy. To do so we just have to adapt the python/numpy extractors in formatting.py (it takes care of converting an arrow table to a dictionary of python objects by doing arrow table -> pandas dataframe -> python dictionary) Any help on this matter is very much welcome :)
[ 0.023009322583675385, -0.01027362048625946, -0.14260587096214294, 0.20766466856002808, 0.23701293766498566, 0.16727852821350098, 0.12674063444137573, 0.2487182915210724, -0.07384254038333893, -0.21550771594047546, 0.16739961504936218, 0.28240713477134705, -0.20351165533065796, 0.4252622723579407, 0.13274632394313812, -0.2236519157886505, 0.1246829479932785, 0.028445376083254814, 0.07785069942474365, 0.3117169737815857, -0.37717458605766296, -0.08387894183397293, -0.09955209493637085, 0.23897278308868408, -0.19834664463996887, -0.12938135862350464, -0.45648252964019775, -0.3532526195049286, -0.25937381386756897, -0.8477246761322021, 0.39832109212875366, 0.3807969093322754, 0.19315893948078156, 0.17358185350894928, -0.00011581898434087634, -0.30791938304901123, 0.20587661862373352, -0.0425235889852047, -0.0503571555018425, -0.44319766759872437, -0.29180675745010376, -0.24642477929592133, 0.32449501752853394, -0.2901010513305664, -0.20687630772590637, -0.29257455468177795, 0.006717061623930931, -0.2727673649787903, 0.2317008376121521, 0.06668110191822052, 0.16675160825252533, -0.049768827855587006, -0.02744247019290924, -0.16157127916812897, 0.13183477520942688, 0.4021802544593811, -0.23710070550441742, 0.28468936681747437, 0.5595123767852783, -0.322232186794281, 0.23148396611213684, 0.08847209811210632, 0.011763110756874084, -0.32495710253715515, 0.6005212068557739, 0.04903107136487961, 0.264599084854126, -0.5582159161567688, -0.30791768431663513, 0.15262384712696075, 0.34083375334739685, -0.35842448472976685, -0.5394775867462158, -0.4483570456504822, -0.011922452598810196, -0.23468786478042603, -0.0061522312462329865, -0.1371358036994934, -0.15568214654922485, 0.16163183748722076, 0.11226184666156769, -0.07315798103809357, -0.23993165791034698, 0.18730610609054565, -0.08443310856819153, 0.14768102765083313, -0.04436545819044113, -0.16754770278930664, 0.21313565969467163, -0.09954049438238144, 0.0033085420727729797, -0.15525738894939423, 0.02597576379776001, 0.604863703250885, -0.22478246688842773, -0.13631156086921692, 0.07299444824457169, 0.21086260676383972, 0.017788827419281006, -0.008307049050927162, 0.10021018236875534, 0.013437662273645401, -0.23139989376068115, -0.025674350559711456, 0.37917637825012207, 0.29243582487106323, 0.18008719384670258, -0.0863289088010788, -0.12884517014026642, 0.35813701152801514, -0.004165969789028168, 0.05363660305738449, -0.12826497852802277, -0.12261226773262024, -0.17232371866703033, 0.13863873481750488, -0.0707126259803772, 0.2454465627670288, -0.030459702014923096, -0.037208035588264465, -0.01771155744791031, -0.026349011808633804, 0.015225626528263092, 0.2628425359725952, -0.06595484167337418, 0.0928887128829956, -0.06410083919763565, 0.08351002633571625, 0.2764405906200409, 0.12065039575099945, -0.06809407472610474, 0.002098502591252327, -0.21021711826324463, 0.1605478972196579, -0.07752928137779236, -0.18587557971477509, -0.14922556281089783, -0.034432053565979004, 0.11926935613155365, 0.10851886868476868, -0.22760790586471558, -0.09362010657787323, 0.12291058897972107, 0.007404624950140715, -0.42579472064971924, 0.1622294783592224, 0.21879541873931885, -0.08500572293996811, -0.350491464138031, 0.13191932439804077, 0.15421511232852936, -0.24722763895988464, -0.23920534551143646, 0.11136579513549805, -0.2031581997871399, 0.1457657665014267, -0.3309439718723297, 0.4760415852069855, -0.008096389472484589, 0.04972619563341141, 0.23278146982192993, 0.05477834865450859, -0.2638415992259979, -0.3284742832183838, -0.17100632190704346, 0.45223748683929443, -0.321506142616272, -0.23099063336849213, 0.053162120282649994, -0.030691154301166534, 0.03615553677082062, 0.07728472352027893, -0.15831300616264343, 0.11923610419034958, -0.071648970246315, 0.17765268683433533, 0.5333981513977051, -0.1753789186477661, -0.1190229281783104, 0.35773733258247375, 0.005585484206676483, 0.19765880703926086, 0.2812623679637909, 0.26229092478752136, 0.19013075530529022, -0.2151021659374237, 0.09315113723278046, 0.1283133625984192, -0.104070745408535, -0.23550695180892944, 0.14915207028388977, -0.33043959736824036, 0.17610692977905273, 0.19300879538059235, -0.06846792995929718, 0.28355127573013306, 0.07439333945512772, -0.3360265791416168, 0.37493011355400085, -0.2894715964794159, 0.10783026367425919, 0.0636771097779274, 0.30660444498062134, 0.44090789556503296, 0.02053152769804001, -0.4798707962036133, -0.12571847438812256, 0.3306064009666443, -0.09522788226604462, 0.17422924935817719, -0.35670679807662964, -0.4952705502510071, -0.03978850692510605, 0.27396923303604126, -0.26591956615448, 0.14161917567253113, -0.009122416377067566, -0.2109057903289795, 0.23432549834251404, 0.20421500504016876, -0.35394802689552307, 0.5252870917320251, -0.0650034099817276, 0.20013411343097687, -0.24084404110908508, 0.175679013133049, -0.045853570103645325, 0.07683725655078888, -0.1055372878909111, 0.34525322914123535, -0.08469709753990173, -0.11971855163574219, 0.2849963903427124, 0.06151093170046806, 0.24282963573932648, -0.09462122619152069, -0.36450737714767456, 0.22926467657089233, 0.5264254212379456, 0.04913758486509323, -0.09080429375171661, -0.11065835505723953, 0.0843869149684906, -0.06670492887496948, 0.016678564250469208, 0.5823572278022766, -0.48171570897102356, 0.22716549038887024, 0.1415824443101883, 0.141252338886261, 0.09987476468086243, 0.25759559869766235, -0.24996811151504517, -0.19749301671981812, 0.14381253719329834, 0.2578531801700592, -0.22174403071403503, 0.0667165219783783, -0.16584397852420807, 0.19159778952598572, 0.3040451109409332, -0.1511572003364563, 0.10424384474754333, 0.10382281243801117, 0.10659319162368774, -0.17036016285419464, 0.2263922095298767, 0.1434834897518158, 0.27576929330825806, 0.07546733319759369, 0.06357233226299286, 0.1523474007844925, -0.15692827105522156, -0.06853476166725159, 0.36449986696243286, 0.02727833203971386, -0.08564646542072296, -0.2118576467037201, 0.029204487800598145, 0.07711631059646606, 0.059948503971099854, -0.34955117106437683, -0.02240310236811638, -0.03693009912967682, -0.12033581733703613, 0.17029738426208496, -0.11608817428350449, -0.5219682455062866, 0.14127153158187866, -0.5717269778251648, 0.007810315117239952, -0.17923703789710999, -0.062180232256650925, 0.08175240457057953, 0.0744456797838211, 0.11404252052307129, -0.34138453006744385, -0.035435751080513, 0.10470712929964066, -0.2842968702316284, -0.20894797146320343, -0.4510960280895233, 0.2566652297973633, 0.09991051256656647, -0.013635758310556412, -0.18099620938301086, 0.2080216109752655, 0.034566327929496765, -0.031089767813682556, -0.21235060691833496, -0.27904051542282104, 0.04938845336437225, -0.16999278962612152, 0.02647099830210209, 0.2983825206756592, -0.2530078589916229, -0.17496666312217712, -0.2625126242637634, 0.19829392433166504, 0.11988287419080734, -0.13651108741760254, -0.2098921835422516, -0.18930914998054504, 0.0895448625087738, -0.10319843888282776, 0.10203336179256439, -0.40951284766197205, -0.3784290552139282, 0.6761478185653687, 0.21928510069847107, 0.1426873356103897, 0.16809973120689392, -0.005876142531633377, 0.07301632314920425, -0.0896330326795578, -0.10471395403146744, -0.16688434779644012, 0.2988792657852173, 0.2073051929473877, -0.16085027158260345, -0.3180471956729889, -0.0798368901014328, -0.3646600544452667, 0.10579494386911392, 0.21212854981422424, -0.14106550812721252, -0.30411502718925476, 0.004882726818323135, 0.5083073377609253, 0.11358942091464996, 0.02844003029167652, 0.28444087505340576, 0.27775734663009644, 0.05759798735380173, 0.1198546439409256, 0.04210510104894638, 0.011399786919355392, 0.17791962623596191, -0.2589244842529297, 0.21575915813446045, 0.4879327714443207, 0.12093450129032135, 0.29108428955078125, 0.0937250405550003, -0.013682936318218708, 0.4954908490180969, -0.1015297994017601, 0.23748469352722168, -0.1354483962059021, -0.2925466299057007, -0.38491976261138916, -0.38120126724243164, 0.08736912906169891, 0.09225048124790192, -0.1177486926317215, -0.15663722157478333, -0.20114268362522125, -0.004943057894706726, 0.1318279653787613, -0.0870390310883522, -0.026894204318523407, -0.3554050922393799, 0.41139546036720276, -0.04215678572654724, -0.12228631228208542, -0.4082292318344116, -0.028986042365431786, -0.08854213356971741, 0.12401054799556732, 0.3442620635032654, -0.16509883105754852, -0.36319229006767273, -0.16294226050376892, -0.4993348717689514, 0.23020288348197937, 0.6471202373504639, -0.1424645185470581, 0.05277642607688904, -0.020061172544956207, -0.005371276289224625, 0.11594283580780029, 0.5606775879859924, -0.07186317443847656, -0.33758002519607544, 0.2686212956905365, -0.4713846445083618, -0.37818825244903564, 0.31691697239875793, 0.04552971571683884, 0.04411042481660843, -0.015689630061388016, 0.10216112434864044, -0.08994559943675995, -0.20319527387619019, -0.02651919610798359, -0.01729511469602585, 0.001223929226398468, -0.055229552090168, 0.02344287931919098, -0.03693828359246254, -0.1320168375968933, -0.1758873462677002, 0.4480684995651245, 0.16259653866291046, 0.041887737810611725, -0.10950574278831482, -0.21541890501976013, 0.05155959725379944, 0.26434168219566345, -0.00859130173921585, -0.06374942511320114, -0.05925668776035309, 0.16276872158050537, 0.04021671414375305, 0.049184009432792664, 0.10733950138092041, 0.2975519299507141, -0.14581350982189178, -0.579069972038269, -0.039476241916418076, 0.0585533082485199, 0.4294224977493286, 0.3097958564758301, -0.021576503291726112, 0.30144065618515015, -0.053107958287000656, -0.032504886388778687, -0.3707033693790436, -0.20069637894630432, 0.38164496421813965, -0.08463432639837265, -0.3441472053527832, -0.7334690093994141, 0.35093387961387634, 0.14265169203281403, -0.301872193813324, 0.1473783552646637, 0.3631763756275177, -0.5190951824188232, 0.29382261633872986, 0.040890295058488846, 0.8400940895080566, -0.09275224804878235, 0.3819611072540283, 0.3813301622867584, 0.30954569578170776, 0.7505720853805542, 0.27758079767227173, 0.09877029806375504, -0.3746112585067749, -0.28932973742485046, -0.3023834824562073, -0.10629049688577652, 0.26929593086242676, 0.36666008830070496, -0.34195929765701294, 0.33056193590164185, -0.13245724141597748, 0.28823184967041016, 0.10980450361967087, -0.1822686791419983, -0.11892221868038177, -0.2034185528755188, -0.7257791757583618, 0.04806634783744812, 0.4525599479675293, -0.03650658577680588, -0.23519393801689148, -0.20625850558280945, -0.11675692349672318, 0.09312695264816284, -0.26076221466064453, -0.21760809421539307, -0.43210428953170776, 0.14441880583763123, -0.10066619515419006, 0.15611866116523743, 0.26962217688560486, 0.47057244181632996, 0.3740430474281311, -0.3842304050922394, 0.027023935690522194, -0.1776851862668991, -0.14977645874023438, -0.1718023419380188, -0.08119876682758331, -0.05991630256175995, 0.4753718078136444, 0.03363804519176483, 0.09719091653823853, 0.36083632707595825, 0.0548865981400013, -0.2822108566761017, -0.3045467734336853, 0.20373693108558655, -0.07726320624351501, -0.26184409856796265, -0.29076269268989563, -0.24063876271247864, 0.04601782560348511, -0.11687374114990234, 0.06990906596183777, 0.21508938074111938, -0.036970749497413635, 0.1649359166622162, -0.3538253903388977, 0.15110072493553162, -0.21320518851280212, 0.12533558905124664, 0.20269638299942017, -0.03302646055817604, 0.10772702097892761, 0.15740671753883362, -0.2605881094932556, -0.05171925947070122, -0.005399152636528015, 0.258783757686615, -0.4805980324745178, 0.1313624531030655, 0.20058205723762512, -0.26509565114974976, -0.12768125534057617, 0.5652495622634888, 0.25173065066337585, 0.21287110447883606, -0.02110232412815094, -0.12899433076381683, -0.29739439487457275, 0.3678027391433716, 0.1430944949388504, 0.24398888647556305, -0.10402609407901764, 0.1322648972272873, -0.18524909019470215, -0.11361601203680038, -0.2206496298313141, -0.0021181218326091766, -0.0052057355642318726, -0.06755087524652481, 0.43294215202331543, 0.02079208754003048, 0.16367480158805847, 0.23927608132362366, 0.12128140032291412, 0.26369211077690125, -0.19252271950244904, -0.13201770186424255, -0.0871846005320549, 0.17038469016551971, -0.020182758569717407, -0.011497970670461655, 0.02093249186873436, -0.08945835381746292, -0.25650307536125183, -0.26497697830200195, 0.09434234350919724, 0.2512860894203186, 0.12105687707662582, -0.04483279585838318, 0.399472177028656, -0.03465328738093376, -0.18107640743255615, 0.3869205713272095, 0.03808915242552757, 0.49184831976890564, 0.0317569300532341, 0.047430939972400665, -0.3425096571445465, 0.0545479953289032, 0.030774734914302826, 0.32910579442977905, -0.03923755884170532, -0.41000548005104065, 0.6409253478050232, 0.08484338223934174, -0.1820201277732849, 0.1968025416135788, 0.5251167416572571, 0.2113814353942871, 0.1651664674282074, 0.07328015565872192, 0.12164764106273651, 0.08375147730112076, -0.33377858996391296, -0.31427228450775146, 0.1178407371044159, -0.15565519034862518, 0.1714906245470047, 0.5202996134757996, 0.30504703521728516, 0.2484452724456787, 0.12472160160541534, -0.14296367764472961, 0.2160944640636444, 0.19814428687095642, 0.07454840838909149, 0.31958112120628357, 0.3900641202926636, -0.00914829969406128, 0.3561513125896454, 0.3804430067539215, 0.5041666626930237, 0.18329370021820068, -0.09329219162464142, 0.07834421098232269, 0.08826985210180283, -0.017289502546191216, 0.6047264933586121, 0.02957993745803833, 0.008901318535208702, 0.41086626052856445, 0.03994361311197281, -0.008216604590415955, -0.05579013004899025, 0.057775527238845825, -0.1989378035068512, 0.012960925698280334, -0.0629524365067482, 0.23872430622577667, 0.21610920131206512, -0.15248912572860718, 0.47918224334716797, -0.17668965458869934, -0.12898416817188263, -0.34761425852775574, -0.13844791054725647, -0.29745718836784363, 0.43431636691093445, -0.13085193932056427, 0.5650556087493896, -0.06348174810409546, 0.19783365726470947, -0.0791856199502945, 0.35972389578819275, -0.08988353610038757, -0.0796704888343811, -0.09589304029941559, -0.06739059090614319, 0.007593004032969475, 0.20952822268009186, 0.4526984989643097, 0.1809920072555542, -0.15421560406684875, 0.10839301347732544, -0.42617347836494446, -0.2367449849843979, -0.034873221069574356, 0.26221978664398193, 0.12655022740364075, 0.09435085952281952, 0.27225571870803833, 0.05308135598897934, -0.031016945838928223, 0.022222699597477913, 0.010143069550395012, 0.27486228942871094, -0.3390367031097412, 0.7011247277259827, -0.2181459367275238, -0.23504342138767242, 0.1938219964504242, 0.3255454897880554, -0.3201078772544861, 0.048197679221630096, 0.05916574224829674, -0.1691698580980301, 0.14927005767822266, 0.1201525628566742, 0.04168619588017464, -0.06754706054925919, 0.18557415902614594, 0.19699309766292572, 0.40755653381347656, 0.010735958814620972, -0.24081817269325256, -0.47483158111572266, -0.14092691242694855, 0.25479722023010254, -0.25418534874916077, 0.2475462257862091, -0.03891550004482269, -0.023624856024980545, 0.09106765687465668, -0.08156317472457886, -0.3627573251724243, -0.13093996047973633, 0.21482402086257935, -0.09240345656871796, -0.2767861783504486, 0.18416039645671844, 0.12395697832107544, -0.18011733889579773, -0.2226976454257965, 0.07857836037874222, -0.25371238589286804, -0.0861014649271965, -0.19898757338523865, 0.14342345297336578, -0.19596487283706665, 0.045556407421827316, 0.2694397270679474, 0.22272220253944397, 0.18076470494270325, 0.2077309638261795, -0.16933681070804596, -0.03462032228708267, -0.344425231218338, 0.06135748326778412, 0.5801238417625427, -0.024967312812805176, 0.32345545291900635, -0.3697855472564697, -0.2753034234046936, -0.02329297922551632, 0.24249817430973053, 0.27552008628845215, -0.19335220754146576, -0.5966460704803467, 0.0874607190489769, -0.443066269159317, -0.02981785498559475, 0.1695706844329834, 0.36792710423469543, -0.13076478242874146, 0.3309237062931061, 0.1300218105316162, -0.20779716968536377, 0.342271089553833, -0.4958495795726776, -0.2886917293071747, 0.03509604558348656, -0.20061740279197693, 0.3782956302165985, -0.18550747632980347, -0.15913589298725128, -0.012823358178138733, 0.48508167266845703, 0.11976553499698639, -0.10625263303518295, 0.17435479164123535, -0.2196146696805954, -0.10836990922689438, -0.38935792446136475, 0.08170145750045776, -0.2865288257598877, -0.02138661965727806, 0.04204393923282623, -0.4636684060096741 ]
https://github.com/huggingface/datasets/issues/1898
I just merged a fix, we'll do a patch release soon. Thanks again for reporting, and sorry for the inconvenience. In the meantime you can load `ALT` using `datasets` from the master branch
ALT dataset has repeating instances in all splits
The [ALT](https://huggingface.co/datasets/alt) dataset has all the same instances within each split :/ Seemed like a great dataset for some experiments I wanted to carry out, especially since its medium-sized, and has all splits. Would be great if this could be fixed :) Added a snapshot of the contents from `explore-datset` feature, for quick reference. ![image](https://user-images.githubusercontent.com/33179372/108206321-442a2d00-714c-11eb-882f-b4b6e708ef9c.png)
33
ALT dataset has repeating instances in all splits The [ALT](https://huggingface.co/datasets/alt) dataset has all the same instances within each split :/ Seemed like a great dataset for some experiments I wanted to carry out, especially since its medium-sized, and has all splits. Would be great if this could be fixed :) Added a snapshot of the contents from `explore-datset` feature, for quick reference. ![image](https://user-images.githubusercontent.com/33179372/108206321-442a2d00-714c-11eb-882f-b4b6e708ef9c.png) I just merged a fix, we'll do a patch release soon. Thanks again for reporting, and sorry for the inconvenience. In the meantime you can load `ALT` using `datasets` from the master branch
[ -0.25304487347602844, -0.7312532663345337, -0.055595606565475464, 0.4320773780345917, 0.3174535930156708, -0.1736772358417511, 0.3799058794975281, 0.14246971905231476, 0.27942490577697754, 0.33198970556259155, -0.16143034398555756, 0.09805242717266083, 0.07770608365535736, -0.00848282128572464, -0.0531923770904541, -0.07003289461135864, -0.04201357066631317, 0.2138654589653015, -0.0015910901129245758, -0.22872942686080933, -0.13610343635082245, 0.1931893527507782, -0.30673304200172424, 0.034979309886693954, -0.19676706194877625, -0.2158624231815338, -0.008589468896389008, 0.05017896741628647, 0.07905672490596771, -0.27803370356559753, 0.08630494028329849, 0.1110692173242569, 0.014335248619318008, 0.4517412781715393, -0.00010772446694318205, 0.152655690908432, 0.4967343807220459, 0.03324585407972336, -0.27049869298934937, -0.21121200919151306, -0.3161488175392151, 0.21129748225212097, 0.29240310192108154, -0.16875040531158447, -0.056359291076660156, -0.2315426915884018, -0.12433232367038727, -0.4026522636413574, 0.3349620997905731, -0.07423201203346252, 0.26207274198532104, 0.4766894578933716, -0.34792643785476685, -0.4059586226940155, 0.43812382221221924, 0.5822085738182068, -0.13470503687858582, -0.1824561208486557, 0.38205498456954956, 0.451936274766922, 0.018280066549777985, 0.3951464593410492, 0.15190456807613373, 0.25813305377960205, 0.1004771888256073, 0.18504682183265686, 0.15331655740737915, -0.1135973334312439, 0.004680737853050232, 0.26726821064949036, 0.3437402844429016, -0.040796443819999695, -0.08407449722290039, -0.20822657644748688, 0.03757217526435852, 0.012196652591228485, 0.24264442920684814, 0.015809912234544754, 0.02038634940981865, 0.11430716514587402, 0.2770206034183502, 0.2895069122314453, 0.05483949929475784, -0.055369988083839417, 0.007720328867435455, -0.03408433124423027, -0.18912899494171143, 0.08747416734695435, 0.15757089853286743, -0.186101496219635, 0.36433714628219604, -0.07465878129005432, -0.1419694721698761, -0.2027999460697174, -0.30397218465805054, -0.02424539625644684, -0.13177835941314697, -0.1549825668334961, 0.18517644703388214, 0.39246073365211487, 0.3807053565979004, 0.2239823043346405, -0.3758050799369812, 0.016419922932982445, 0.26367247104644775, 0.07339426130056381, 0.30379438400268555, -0.06385230273008347, 0.1854226291179657, 0.07854390889406204, -0.19495433568954468, 0.018487656489014626, -0.22993060946464539, -0.009954262524843216, -0.23035182058811188, -0.025095252320170403, 0.24889062345027924, -0.11948863416910172, -0.41832631826400757, -0.11639314889907837, 0.11279965937137604, -0.13957349956035614, 0.07369952648878098, 0.34575268626213074, 0.30997347831726074, 0.1333235204219818, -0.09073245525360107, 0.06234998255968094, -0.10162624716758728, -0.41911807656288147, -0.2110075056552887, -0.2572088837623596, -0.32415276765823364, -0.09209589660167694, -0.02991388738155365, -0.11400477588176727, 0.2681918144226074, 0.2965404987335205, 0.04880845546722412, -0.12544924020767212, 0.21544066071510315, 0.0645245760679245, 0.120470330119133, -0.0578569695353508, 0.10367285460233688, 0.333443284034729, 0.15355738997459412, -0.013716533780097961, -0.0288756862282753, 0.06316541135311127, -0.11102096736431122, -0.0017041787505149841, 0.11819464713335037, 0.27782270312309265, -0.09483524411916733, 0.13784630596637726, 0.015146981924772263, 0.29477807879447937, -0.17786219716072083, 0.0043672844767570496, -0.1145089864730835, 0.06386217474937439, 0.06885640323162079, -0.09654214978218079, 0.2541605532169342, 0.4378034174442291, -0.2287372499704361, -0.3377067446708679, -0.5115403532981873, -0.07217465341091156, 0.12817206978797913, 0.5561007857322693, -0.15743516385555267, -0.12331917881965637, -0.3999904990196228, 0.28358739614486694, 0.19194400310516357, 0.21840769052505493, -0.2081332504749298, 0.13486745953559875, -0.10944205522537231, -0.067129947245121, 0.07554282993078232, 0.13495716452598572, 0.3912535011768341, 0.008007362484931946, 0.0901448130607605, 0.2794888913631439, 0.28763332962989807, -0.0885436087846756, -0.25063008069992065, -0.0650307685136795, 0.046761248260736465, -0.04138733446598053, -0.20716358721256256, -0.3228149116039276, 0.1217942088842392, 0.03726889193058014, 0.11473351716995239, -0.02102985605597496, -0.09853092581033707, 0.028167270123958588, 0.2101828157901764, 0.20428162813186646, 0.3248484432697296, -0.03770753741264343, -0.22078123688697815, 0.04775264114141464, -0.17367902398109436, -0.14782623946666718, 0.29513806104660034, -0.4183107316493988, -0.2752803564071655, 0.11937878280878067, -0.3506123721599579, -0.04639873281121254, 0.190341055393219, 0.282910019159317, -0.1916191577911377, 0.016203083097934723, -0.04669702425599098, -0.2341550886631012, 0.16452598571777344, 0.00803057849407196, -0.1809084117412567, 0.29916444420814514, -0.19657288491725922, 0.018705476075410843, 0.02567550539970398, 0.10807859897613525, 0.1730462908744812, -0.26861047744750977, -0.03838307410478592, 0.40579143166542053, 0.32604432106018066, 0.1635499894618988, 0.02931409887969494, -0.4810570478439331, 0.41229647397994995, -0.23489327728748322, 0.12486076354980469, 0.23473945260047913, 0.12788371741771698, -0.23571522533893585, -0.15508705377578735, 0.15931828320026398, 0.19203868508338928, 0.2863159775733948, -0.03336501866579056, 0.20855991542339325, 0.31361767649650574, -0.16355299949645996, 0.24065949022769928, -0.5274125337600708, 0.1388350874185562, -0.06949691474437714, 0.0954829677939415, 0.1965300738811493, -0.28101521730422974, 0.36993587017059326, 0.10384607315063477, 0.10755094885826111, 0.2117597460746765, 0.014775969088077545, -0.5166524648666382, -0.0949607789516449, -0.044438816606998444, 0.023548275232315063, 0.14446163177490234, 0.3443717360496521, 0.04188305139541626, -0.16604281961917877, 0.3011956810951233, -0.13090497255325317, 0.31867894530296326, 0.17585019767284393, -0.12689584493637085, 0.09221713244915009, 0.12324397265911102, -0.11615873873233795, -0.5793969631195068, -0.16768565773963928, 0.3131718933582306, 0.0630045160651207, -0.20047181844711304, -0.22012044489383698, -0.5879806280136108, -0.013966016471385956, -0.13684670627117157, 0.01080736517906189, -0.12714484333992004, -0.17150424420833588, 0.28274551033973694, 0.05588006600737572, 0.00021159648895263672, 0.36674797534942627, 0.394983172416687, 0.4391368627548218, -0.00032291561365127563, 0.44235339760780334, -0.3167383074760437, -0.18957139551639557, -0.33558690547943115, 0.1189156323671341, 0.42971721291542053, 0.3283497393131256, 0.44520068168640137, -0.07804398238658905, -0.021039746701717377, -0.2582356929779053, -0.3862936198711395, 0.1428806632757187, 0.03959330916404724, -0.02194587141275406, 0.1286536008119583, -0.13268567621707916, 0.002574056386947632, -0.17025525867938995, 0.18884296715259552, -0.400468111038208, -0.4218912720680237, 0.10670062899589539, -0.10096142441034317, -0.23288995027542114, -0.12791511416435242, -0.2962228059768677, 0.06294326484203339, -0.34635376930236816, 0.13217218220233917, 0.055889248847961426, 0.01719641126692295, 0.05871644243597984, -0.11393795907497406, -0.03600456938147545, -0.08933786302804947, -0.1253000795841217, -0.5492933392524719, 0.06732727587223053, 0.0928749293088913, -0.2612451910972595, -0.13316336274147034, -0.041444581001996994, -0.21997976303100586, -0.14162293076515198, 0.03247072175145149, -0.40092867612838745, 0.18794667720794678, -0.4680109918117523, -0.07885105907917023, 0.1960984468460083, 0.029247799888253212, 0.2848641276359558, -0.005430940538644791, -0.2143377810716629, -0.015497446060180664, -0.29604873061180115, 0.15606452524662018, 0.01582595705986023, 0.18737393617630005, -0.044953808188438416, 0.004685969091951847, 0.0418865829706192, 0.393404096364975, 0.3181615173816681, -0.13299503922462463, 0.04718487709760666, -0.1528194695711136, 0.1869279146194458, -0.4131634533405304, -0.17999409139156342, 0.08033527433872223, 0.007540255784988403, -0.1402646005153656, 0.38660573959350586, 0.022070806473493576, -0.018682070076465607, 0.10825297981500626, 0.0504918098449707, 0.01931104063987732, -0.3562464714050293, -0.10195127129554749, -0.10032965242862701, -0.015553269535303116, -0.03555598855018616, 0.03614525496959686, -0.11612571030855179, -0.016161788254976273, 0.17866873741149902, 0.11579637229442596, -0.23316773772239685, -0.1852467954158783, -0.6297692060470581, 0.1757918894290924, -0.29290634393692017, 0.34532544016838074, -0.21996398270130157, 0.15859614312648773, 0.01636543869972229, -0.2085307240486145, 0.34822314977645874, 0.15037842094898224, 0.7905903458595276, -0.2985008955001831, 0.018055956810712814, -0.015258774161338806, 0.013759300112724304, -0.507335901260376, -0.11027444154024124, -0.2534874677658081, 0.0568087100982666, 0.084810771048069, 0.5961069464683533, -0.07697451859712601, -0.017814571037888527, 0.2569267153739929, 0.07631617039442062, -0.20492881536483765, -0.1959683895111084, -0.02626989036798477, -0.18080410361289978, -0.25946635007858276, -0.20194831490516663, 0.0664617270231247, -0.05348287150263786, 0.17160359025001526, -0.15705740451812744, -0.3182402551174164, -0.0022012069821357727, 0.1731119304895401, 0.30881643295288086, 0.5221160054206848, 0.06860825419425964, 0.19725151360034943, 0.4771074652671814, 0.11184659600257874, 0.16058625280857086, 0.7080814838409424, -0.12469486892223358, -0.08854453265666962, 0.1793954223394394, -0.4542679190635681, 0.05417216941714287, 0.31045758724212646, 0.2080191969871521, 0.22279630601406097, -0.19449752569198608, 0.05482561141252518, -0.19675137102603912, 0.15513655543327332, 0.10928460210561752, 0.0995221734046936, 0.004736240953207016, -0.33715930581092834, 0.15422530472278595, -0.10574498027563095, -0.07941856235265732, 0.46238183975219727, 0.016935523599386215, 0.04836238920688629, 0.5934589505195618, -0.1379653960466385, 0.7147194147109985, 0.0982610285282135, -0.04998006299138069, 0.1392761468887329, 0.07573360204696655, 0.1597912758588791, 0.21658770740032196, 0.04627922177314758, -0.5335631370544434, -0.42416685819625854, 0.1115133985877037, -0.12022799253463745, 0.008576849475502968, -0.014078563079237938, -0.42476242780685425, -0.2648170292377472, 0.050353944301605225, 0.3281956911087036, -0.07366053014993668, 0.1685638278722763, -0.16203640401363373, -0.05687225982546806, 0.4204365909099579, 0.17028887569904327, -0.0780799388885498, 0.2189977765083313, 0.11554974317550659, -0.011078711599111557, 0.16996940970420837, -0.16007065773010254, -0.30223798751831055, 0.010589547455310822, -0.3480479121208191, 0.42147138714790344, -0.11705853044986725, -0.5092542171478271, 0.24367675185203552, -0.2589384615421295, 0.35779374837875366, 0.05836166813969612, 0.03564637154340744, 0.34906283020973206, 0.3187754452228546, 0.03432781994342804, -0.11353427171707153, -0.1730252206325531, -0.019146770238876343, 0.23464813828468323, -0.28556662797927856, -0.2195289433002472, 0.3488927483558655, 0.1695675551891327, -0.37260085344314575, 0.013549113646149635, 0.041460394859313965, -0.11941573768854141, -0.20981675386428833, 0.1362937092781067, -0.1320103257894516, -0.35929951071739197, 0.15388606488704681, -0.3178063631057739, -0.015298120677471161, 0.041112735867500305, 0.0042617772705852985, -0.06403379142284393, 0.06248662248253822, 0.07262920588254929, 0.3321681320667267, 0.07118117809295654, 0.21050463616847992, 0.24284422397613525, -0.1890866905450821, -0.48890215158462524, 0.5547903180122375, 0.225099578499794, -0.6193467974662781, 0.3700908124446869, -0.34953954815864563, -0.10740774869918823, 0.09221421182155609, 0.11705489456653595, 0.11821890622377396, 0.08855532109737396, -0.33292099833488464, -0.12356549501419067, -0.04679156094789505, 0.13923001289367676, -0.36506474018096924, 0.3558060824871063, -0.04357336461544037, 0.13869497179985046, -0.04117068648338318, 0.18243016302585602, -0.35912930965423584, 0.2948113977909088, 0.10660867393016815, 0.19581955671310425, -0.5335173010826111, -0.3546474277973175, 0.16802239418029785, -0.1661374270915985, 0.1139766275882721, 0.08650068938732147, -0.07319386303424835, -0.2709961533546448, -0.1109669953584671, 0.09903406351804733, -0.29382890462875366, 0.14942124485969543, -0.04561515524983406, -0.07911626994609833, 0.11142716556787491, -0.3093268871307373, 0.28806647658348083, 0.16032497584819794, -0.0819973573088646, 0.010359890758991241, 0.1283070147037506, -0.2510233521461487, -0.11878149211406708, 0.20322102308273315, 0.013875888660550117, 0.040771715342998505, 0.23671962320804596, 0.0036922439467161894, -0.07837442308664322, -0.12818855047225952, -0.17120808362960815, 0.19737283885478973, -0.11737953126430511, 0.17167514562606812, 0.08165301382541656, -0.10963940620422363, -0.15270014107227325, 0.14857080578804016, 0.33076488971710205, 0.07294824719429016, -0.08448560535907745, 0.0714307650923729, 0.03535391390323639, 0.2475074678659439, -0.4756090044975281, -0.22900238633155823, 0.31866899132728577, 0.17786946892738342, 0.17012441158294678, 0.20990478992462158, 0.17946210503578186, -0.14078786969184875, -0.22706308960914612, 0.1378558725118637, 0.430417001247406, -0.15307548642158508, 0.4993041455745697, 0.442748486995697, 0.009353451430797577, -0.24565018713474274, 0.3271174728870392, 0.09014999121427536, 0.13983768224716187, 0.396696001291275, 0.00015991553664207458, 0.27577143907546997, 0.3659016489982605, -0.007631570100784302, 0.3976859450340271, -0.30815649032592773, -0.011476569809019566, 0.07813314348459244, 0.05336638167500496, 0.13647635281085968, 0.3035895824432373, 0.28259631991386414, -0.31262779235839844, -0.21987497806549072, -0.2563140392303467, -0.3658166527748108, -0.15237852931022644, 0.01938856765627861, -0.31270831823349, -0.0757383182644844, -0.40509694814682007, -0.10924086719751358, -0.05663466826081276, 0.03245082497596741, 0.3366052508354187, 0.010238949209451675, -0.05237981677055359, -0.45395222306251526, -0.18491637706756592, 0.19610363245010376, 0.10465708374977112, -0.39008083939552307, 0.17401257157325745, 0.24419336020946503, -0.02975095435976982, 0.33111339807510376, 0.4414885342121124, 0.2335394024848938, 0.13649238646030426, -0.26411163806915283, -0.018903156742453575, -0.0341617725789547, -0.20602849125862122, -0.15517589449882507, -0.18450212478637695, -0.004925906658172607, -0.013834379613399506, 0.36061742901802063, 0.14894536137580872, -0.11057201027870178, -0.08971621841192245, 0.3804370164871216, 0.05696417763829231, -0.19102466106414795, 0.0530703030526638, -0.2649300992488861, -0.052450649440288544, -0.17455917596817017, 0.07734959572553635, -0.5230468511581421, -0.30141493678092957, 0.3586505949497223, -0.406314492225647, 0.06452076137065887, -0.1936040222644806, 0.1006171852350235, -0.27200090885162354, 0.29323744773864746, 0.1757778376340866, -0.486783891916275, -0.061438918113708496, -0.28951504826545715, -0.4792463183403015, 0.24409440159797668, -0.19133660197257996, -0.10963642597198486, 0.3604547679424286, 0.2841494679450989, 0.09684241563081741, -0.003526465967297554, 0.441877543926239, 0.2153233140707016, -0.2735734283924103, 0.14276836812496185, -0.5009113550186157, -0.009266156703233719, 0.06090928241610527, 0.0025332011282444, -0.05170213431119919, -0.18496614694595337, 0.3137890696525574, 0.0846940129995346, 0.04237162321805954, 0.07799237966537476, -0.05872822552919388, 0.15108351409435272, -0.1502038687467575, 0.15572461485862732, 0.1671285480260849, 0.008813932538032532, -0.10924442112445831, 0.2618468701839447, -0.16597557067871094, -0.5043039321899414, -0.1913364827632904, 0.1892675757408142, 0.5310876965522766, 0.2051563560962677, -0.15799137949943542, -0.3544665277004242, -0.13978198170661926, -0.04172065481543541, 0.24642407894134521, 0.34728044271469116, -0.31065982580184937, 0.328232079744339, -0.1817415952682495, 0.09896343946456909, 0.15634340047836304, 0.29965952038764954, -0.03523639589548111, -0.2530742883682251, 0.10737253725528717, -0.5553370118141174, 0.44592607021331787, 0.01702660322189331, -0.30189481377601624, -0.14670847356319427, 0.21515272557735443, 0.32085949182510376, 0.0979311466217041, -0.30399906635284424, -0.10423204302787781, 0.32731854915618896, -0.14010292291641235, -0.06310009956359863, 0.10811648517847061, 0.005237843841314316, -0.1605117917060852, -0.07471584528684616, 0.10029897093772888, 0.49235114455223083, -0.21819646656513214, 0.21144744753837585, -0.24963226914405823 ]
https://github.com/huggingface/datasets/issues/1895
Thanks for reporting ! You're right, `string_to_arrow` should be able to take `"timestamp[ns]"` as input and return the right pyarrow timestamp type. Feel free to suggest a fix for `string_to_arrow` and open a PR if you want to contribute ! This would be very appreciated :) To give you more context: As you may know we define the features types of a dataset using the `Features` object in combination with feature types like `Value`. For example ```python features = Features({ "age": Value("int32") }) ``` However under the hood we are actually using pyarrow to store the data, and so we have a mapping between the feature types of `datasets` and the types of pyarrow. For example, the `Value` feature types are created from a pyarrow type with `Value(str(pa_type))`. However it looks like the conversion back to a pyarrow type doesn't work with `"timestamp[ns]"`. This is the `string_to_arrow` function you highlighted that does this conversion, so we should fix that.
Bug Report: timestamp[ns] not recognized
Repro: ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.date_range("2018-01-01", periods=3, freq="H")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws ValueError: Neither timestamp[ns] nor timestamp[ns]_ seems to be a pyarrow data type. ``` The factory function seems to be just "timestamp": https://arrow.apache.org/docs/python/generated/pyarrow.timestamp.html#pyarrow.timestamp It seems like https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L36-L43 could have a little bit of additional structure for handling these cases? I'd be happy to take a shot at opening a PR if I could receive some guidance on whether parsing something like `timestamp[ns]` and resolving it to timestamp('ns') is the goal of this method. Alternatively, if I'm using this incorrectly (e.g. is the expectation that we always provide a schema when timestamps are involved?), that would be very helpful to know as well! ``` $ pip list # only the relevant libraries/versions datasets 1.2.1 pandas 1.0.3 pyarrow 3.0.0 ```
159
Bug Report: timestamp[ns] not recognized Repro: ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.date_range("2018-01-01", periods=3, freq="H")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws ValueError: Neither timestamp[ns] nor timestamp[ns]_ seems to be a pyarrow data type. ``` The factory function seems to be just "timestamp": https://arrow.apache.org/docs/python/generated/pyarrow.timestamp.html#pyarrow.timestamp It seems like https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L36-L43 could have a little bit of additional structure for handling these cases? I'd be happy to take a shot at opening a PR if I could receive some guidance on whether parsing something like `timestamp[ns]` and resolving it to timestamp('ns') is the goal of this method. Alternatively, if I'm using this incorrectly (e.g. is the expectation that we always provide a schema when timestamps are involved?), that would be very helpful to know as well! ``` $ pip list # only the relevant libraries/versions datasets 1.2.1 pandas 1.0.3 pyarrow 3.0.0 ``` Thanks for reporting ! You're right, `string_to_arrow` should be able to take `"timestamp[ns]"` as input and return the right pyarrow timestamp type. Feel free to suggest a fix for `string_to_arrow` and open a PR if you want to contribute ! This would be very appreciated :) To give you more context: As you may know we define the features types of a dataset using the `Features` object in combination with feature types like `Value`. For example ```python features = Features({ "age": Value("int32") }) ``` However under the hood we are actually using pyarrow to store the data, and so we have a mapping between the feature types of `datasets` and the types of pyarrow. For example, the `Value` feature types are created from a pyarrow type with `Value(str(pa_type))`. However it looks like the conversion back to a pyarrow type doesn't work with `"timestamp[ns]"`. This is the `string_to_arrow` function you highlighted that does this conversion, so we should fix that.
[ -0.1527937799692154, 0.3287227153778076, 0.004078298807144165, 0.0871679037809372, 0.09477338194847107, -0.07733038067817688, 0.45133110880851746, 0.36234837770462036, -0.49170026183128357, -0.2842444181442261, 0.2675410509109497, 0.5988477468490601, -0.18037529289722443, 0.018187589943408966, 0.029280342161655426, -0.12180285155773163, 0.18875327706336975, 0.20489992201328278, 0.01698894053697586, 0.2929656505584717, -0.41175758838653564, 0.033745765686035156, -0.05822768062353134, 0.4490806460380554, -0.21216239035129547, -0.0986318364739418, -0.060336995869874954, 0.0371374748647213, -0.17239899933338165, -0.6164937615394592, -0.0294908806681633, -0.2923271358013153, 0.22553807497024536, 0.4583447575569153, -0.00012047961354255676, -0.05328986048698425, 0.35807928442955017, -0.0033797062933444977, -0.19524714350700378, 0.2531559467315674, 0.2438879758119583, -0.20237520337104797, 0.26930364966392517, -0.2410610318183899, 0.04081845283508301, -0.2710433006286621, -0.0724562257528305, -0.07554507255554199, 0.04788777232170105, 0.5628818869590759, 0.11748483031988144, 0.3736269772052765, 0.45154809951782227, 0.2590073347091675, 0.8312048316001892, 0.26909416913986206, -0.23069524765014648, 0.056338585913181305, 0.4777924120426178, 0.047702111303806305, 0.27247095108032227, 0.0612960048019886, 0.01842653751373291, -0.22229143977165222, 0.35587579011917114, 0.19277316331863403, 0.20808376371860504, -0.261255145072937, -0.2831193506717682, 0.073371022939682, 0.5608476400375366, -0.40218979120254517, -0.32379743456840515, -0.2525911033153534, -0.30087047815322876, -0.3398887813091278, 0.11430436372756958, -0.0021666958928108215, 0.02362017333507538, 0.16356460750102997, 0.22401376068592072, 0.15705478191375732, -0.25387275218963623, 0.30595946311950684, 0.034558966755867004, 0.19519571959972382, 0.0365058109164238, 0.23304468393325806, -0.1538335382938385, -0.16330935060977936, 0.42182695865631104, -0.06829774379730225, 0.23918290436267853, 0.21176518499851227, 0.05489450320601463, -0.002604261040687561, 0.07095761597156525, 0.019217118620872498, -0.06293168663978577, 0.20863460004329681, -0.322785884141922, -0.05523764342069626, -0.05140911415219307, 0.04747885465621948, 0.1782119870185852, 0.11033830791711807, -0.04657068848609924, 0.1961287558078766, 0.1691955029964447, 0.04953695088624954, 0.26701241731643677, -0.07586345821619034, 0.044811975210905075, -0.3755873739719391, 0.22244395315647125, 0.1253214329481125, 0.592938244342804, -0.17100805044174194, -0.1433095782995224, 0.05858645588159561, -0.3615436851978302, -0.10778915882110596, 0.10662968456745148, 0.1574503779411316, -0.1743689626455307, 0.4042030870914459, 0.22096973657608032, 0.10668386518955231, -0.03985513001680374, -0.18733471632003784, -0.15950721502304077, 0.06324377655982971, -0.3129245340824127, -0.08371241390705109, -0.05257073789834976, 0.08560964465141296, -0.16873376071453094, 0.12287011742591858, -0.25931766629219055, -0.008045099675655365, -0.2724781036376953, -0.022486936300992966, -0.008047528564929962, 0.2598344087600708, -0.3691707253456116, 0.1590271145105362, 0.017957275733351707, -0.22606655955314636, -0.3272782564163208, 0.27606120705604553, -0.3891293704509735, -0.38408970832824707, -0.28537169098854065, 0.08037970960140228, -0.21419517695903778, -0.002299127634614706, -0.12014579772949219, 0.06532024592161179, 0.32601770758628845, -0.23036494851112366, 0.18597444891929626, 0.041000720113515854, -0.015731245279312134, -0.4460175633430481, -0.01604098081588745, -0.07579531520605087, -0.535732626914978, -0.02149641513824463, -0.05322016775608063, -0.18646977841854095, 0.2656604051589966, 0.15230754017829895, 0.02147279679775238, 0.10772527754306793, -0.05259457603096962, 0.1655796617269516, 0.18309786915779114, -0.044033799320459366, -0.10006863623857498, -0.06284122169017792, 0.11987384408712387, -0.1564229279756546, -0.09471163153648376, 0.10927779972553253, -0.07368969172239304, -0.3927890658378601, 0.056892476975917816, 0.154198557138443, -0.14797376096248627, -0.14935506880283356, -0.24474813044071198, -0.2944934666156769, 0.3030258119106293, 0.19988591969013214, 0.23932383954524994, -0.04079803451895714, 0.004512172192335129, -0.5796673893928528, 0.11311319470405579, -0.050207797437906265, 0.1263219118118286, -0.054815132170915604, 0.5200366377830505, 0.21418999135494232, -0.07076370716094971, -0.3474245071411133, -0.42979976534843445, 0.14619992673397064, -0.06910639256238937, 0.161094069480896, -0.48597678542137146, -0.36418774724006653, -0.22718364000320435, 0.2800626754760742, 0.1993657499551773, 0.13830256462097168, -0.04361119493842125, -0.029736287891864777, 0.14345981180667877, 0.33323702216148376, -0.15150973200798035, 0.07884100824594498, -0.1270584911108017, 0.22031065821647644, -0.24415266513824463, 0.2964920997619629, -0.20266351103782654, -0.2622416317462921, -0.12086048722267151, 0.3751484155654907, 0.19918052852153778, 0.0832860916852951, 0.08658787608146667, 0.2168288230895996, 0.1563481092453003, 0.029043816030025482, -0.49614667892456055, 0.245891734957695, 0.15206725895404816, -0.2512366473674774, -0.2621864378452301, 0.3554762005805969, 0.22912296652793884, -0.046921662986278534, 0.08330465853214264, 0.4930124878883362, -0.23535677790641785, 0.031903818249702454, -0.10303346812725067, 0.1757521629333496, -0.06064368784427643, 0.031401120126247406, -0.21327830851078033, 0.04980168491601944, -0.24546851217746735, 0.12827655673027039, 0.17055734992027283, 0.027425652369856834, -0.4170606732368469, 0.2885538935661316, 0.4863220453262329, -0.15171709656715393, 0.11518314480781555, 0.16356870532035828, -0.2545304298400879, -0.1554030030965805, 0.06855631619691849, 0.015366479754447937, 0.17395669221878052, 0.1825348436832428, -0.02701369673013687, -0.0015857592225074768, -0.30353298783302307, 0.09311039745807648, 0.2514898180961609, 0.13193786144256592, 0.18069541454315186, -0.0920819416642189, 0.12784186005592346, 0.16156578063964844, 0.009759880602359772, -0.11664099991321564, -0.06490316987037659, 0.3374015688896179, -0.6451540589332581, 0.16935324668884277, -0.267038494348526, -0.2664470076560974, -0.0653514415025711, -0.5234564542770386, -0.20978029072284698, -0.4976218342781067, 0.20605048537254333, 0.013074290007352829, -0.12903577089309692, 0.14456278085708618, -0.23967593908309937, 0.32958030700683594, 0.036702752113342285, -0.04882880300283432, -0.17468467354774475, -0.3294130861759186, -0.34904876351356506, 0.04269590228796005, 0.12276391685009003, 0.14963547885417938, 0.238105908036232, -0.20397573709487915, 0.23008882999420166, -0.1850442737340927, -0.5263568162918091, 0.02714141644537449, -0.24529294669628143, 0.5031443238258362, 0.10999365150928497, 0.12801313400268555, 0.15525467693805695, -0.1925952136516571, 0.18177497386932373, -0.2458166927099228, -0.3332669734954834, 0.037179090082645416, -0.15706667304039001, 0.14770303666591644, -0.19431738555431366, -0.08749320358037949, -0.5084860920906067, -0.32645106315612793, 0.21798516809940338, -0.12148980796337128, 0.28351500630378723, 0.4560057818889618, -0.11366979777812958, 0.02356838807463646, -0.06904256343841553, 0.020642053335905075, -0.24562451243400574, -0.013754628598690033, 0.42132773995399475, -0.18641631305217743, -0.3269936442375183, -0.08979085832834244, -0.1323460191488266, -0.4214048683643341, 0.04356963559985161, -0.11142614483833313, -0.5367971658706665, -0.05294393002986908, 0.42178624868392944, 0.10565304011106491, 0.02510247565805912, 0.3719083070755005, 0.17854855954647064, 0.06302832067012787, -0.10034213960170746, -0.25863540172576904, 0.05661872774362564, 0.15109708905220032, 0.1743384748697281, 0.2761526107788086, 0.2530391812324524, -0.07477384060621262, 0.9659366011619568, 0.11382372677326202, -0.44573232531547546, 0.3898625671863556, -0.33849141001701355, 0.11574043333530426, -0.02984599769115448, -0.0037474781274795532, -0.28356805443763733, -0.23766180872917175, -0.019081905484199524, 0.1120852530002594, -0.04204573109745979, -0.21817435324192047, -0.030121665447950363, 0.1389138251543045, -0.6106885671615601, -0.3204309940338135, 0.15851756930351257, 0.11017050594091415, 0.24064771831035614, -0.11089172959327698, -0.08296862989664078, -0.3057222366333008, -0.2346670776605606, 0.057836756110191345, 0.13870534300804138, 0.03295982629060745, 0.0643216073513031, -0.4295960068702698, -0.07185735553503036, -0.40333104133605957, 0.2331344485282898, 0.08786087483167648, 0.20459933578968048, 0.0860944613814354, -0.44138431549072266, -0.005173925310373306, -0.06070549041032791, 0.3204250931739807, -0.12679186463356018, 0.09153228998184204, 0.24192847311496735, 0.18023952841758728, -0.4087590277194977, -0.11986857652664185, -0.006453424692153931, -0.08640556037425995, -0.13253375887870789, 0.22738809883594513, -0.634252667427063, -0.11655893921852112, 0.1460365653038025, -0.06132262945175171, 0.03953652083873749, 0.10966730117797852, 0.05646485835313797, -0.1275828331708908, -0.07437198609113693, -0.06679242849349976, 0.3582877516746521, 0.30503609776496887, 0.02622952312231064, 0.12359863519668579, -0.26685529947280884, 0.18065029382705688, 0.10999195277690887, 0.10131838917732239, 0.2407740205526352, -0.458219051361084, 0.20662781596183777, -0.18075916171073914, 0.012018058449029922, 0.40702876448631287, 0.7095596790313721, 0.08072309195995331, -0.3991869390010834, -0.022585738450288773, -0.049163974821567535, 0.2766856253147125, 0.4198625385761261, -0.14516937732696533, -0.011079628020524979, 0.024873118847608566, 0.03426949679851532, -0.300181120634079, -0.1395234614610672, 0.29340970516204834, -0.08807860314846039, -0.3187105059623718, -0.04025775194168091, 0.36795470118522644, 0.2904568910598755, -0.18573793768882751, 0.2262473702430725, 0.34017854928970337, -0.193593829870224, 0.27157366275787354, 0.11737511307001114, 1.1871386766433716, 0.06251797080039978, 0.29023826122283936, 0.6918600797653198, -0.22626951336860657, 0.38746148347854614, 0.11826243996620178, -0.11726129800081253, -0.4156979024410248, 0.044586047530174255, -0.08812390267848969, -0.074985072016716, 0.12736408412456512, 0.1820993274450302, -0.26619067788124084, 0.12747658789157867, -0.10920489579439163, 0.5751078724861145, 0.10921453684568405, 0.02848578244447708, 0.3513977527618408, 0.05813730135560036, -0.39505812525749207, 0.0595080703496933, -0.14633330702781677, -0.06696771085262299, -0.1203707680106163, -0.36000385880470276, -0.45826494693756104, -0.2313317358493805, -0.3740946054458618, -0.14187195897102356, -0.15270796418190002, 0.12795929610729218, 0.3998521566390991, -0.27020686864852905, -0.18752455711364746, -0.04287246614694595, 0.13399271667003632, -0.48984357714653015, 0.03628740459680557, 0.05349305272102356, 0.1385067254304886, 0.09116104990243912, -0.008329469710588455, -0.02768915519118309, 0.40779197216033936, -0.11169412732124329, 0.043123841285705566, 0.11878880113363266, -0.16825774312019348, -0.4002344608306885, 0.09782114624977112, 0.10893216729164124, -0.3288660943508148, -0.187381774187088, -0.3726098835468292, 0.017543872818350792, 0.12152120471000671, -0.24926649034023285, 0.041799917817115784, -0.004718264564871788, 0.1482405811548233, 0.3003706932067871, -0.2605709433555603, -0.15356788039207458, -0.16356393694877625, -0.008785031735897064, -0.19623726606369019, 0.2959885001182556, 0.07214562594890594, 0.4499382972717285, -0.24373802542686462, 0.00959254801273346, 0.22667907178401947, 0.27746424078941345, -1.1125524044036865, 0.12136294692754745, -0.21765491366386414, -0.011571764945983887, 0.17352944612503052, 0.40909355878829956, 0.2185937613248825, 0.023356826975941658, 0.024956166744232178, -0.3650185465812683, -0.2235948145389557, 0.43137267231941223, 0.029100507497787476, 0.11614786088466644, -0.10576856136322021, 0.16797468066215515, -0.014639109373092651, -0.11594417691230774, -0.2461661398410797, -0.0055379197001457214, -0.07310963422060013, 0.35819974541664124, -0.12370310723781586, -0.1004960909485817, 0.08934688568115234, -0.17967385053634644, 0.001819562166929245, 0.024922899901866913, -0.19336438179016113, -0.0921413004398346, -0.16051968932151794, 0.21761636435985565, 0.047140903770923615, -0.23461949825286865, 0.06598363816738129, 0.006506890058517456, -0.19244705140590668, 0.07144063711166382, -0.08819375932216644, 0.31974393129348755, -0.11825072765350342, 0.3038513958454132, 0.5535711050033569, -0.040660254657268524, -0.037519291043281555, 0.07806581258773804, -0.0039797015488147736, 0.5921235680580139, 0.08602376282215118, 0.34971821308135986, -0.179806649684906, 0.027391940355300903, -0.20851169526576996, 0.29893848299980164, -0.03309641033411026, -0.2361290156841278, 0.27678972482681274, -0.21767039597034454, -0.14182248711585999, 0.006990198045969009, 0.30886057019233704, 0.30895572900772095, -0.16137288510799408, -0.057214219123125076, 0.10932744294404984, 0.05512852966785431, -0.3600950241088867, 0.020188800990581512, 0.19244854152202606, -0.009106986224651337, 0.0326310396194458, 0.3184305429458618, 0.26968857645988464, 0.41793209314346313, 0.08145067095756531, 0.04875534027814865, 0.1866776943206787, 0.0920557826757431, 0.07853657752275467, 0.5822566747665405, -0.17350471019744873, 0.10976086556911469, 0.47409307956695557, 0.2046060562133789, 0.21655425429344177, -0.032933879643678665, 0.1398325264453888, -0.06288332492113113, 0.53342604637146, 0.1327575296163559, 0.3355412781238556, -0.1961829960346222, -0.2704678773880005, 0.07102520763874054, 0.061819013208150864, -0.030051421374082565, 0.41148141026496887, 0.45897021889686584, 0.12981121242046356, -0.0805712342262268, -0.009467296302318573, 0.3307627737522125, 0.10503366589546204, -0.1596028208732605, 0.18151989579200745, -0.1845349371433258, -0.3742823600769043, -0.2979976534843445, -0.32586365938186646, -0.2028910219669342, 0.5982093214988708, -0.02805420383810997, 0.07766591012477875, -0.2835751473903656, 0.20460128784179688, 0.06351390480995178, 0.43664976954460144, 0.013107463717460632, 0.04103504866361618, -0.026868082582950592, -0.2891231179237366, 0.2568722367286682, 0.39311304688453674, 0.6102510094642639, 0.23149892687797546, -0.36020365357398987, 0.06197889894247055, -0.18259547650814056, -0.06926164031028748, 0.16243736445903778, 0.14418941736221313, 0.2920226454734802, -0.026878464967012405, 0.3253535032272339, 0.08617770671844482, 0.0038223527371883392, 0.07948608696460724, -0.24055294692516327, 0.23777325451374054, -0.06548286974430084, 0.6614521741867065, -0.2060135453939438, -0.17969073355197906, 0.010778622701764107, 0.17196229100227356, 0.03814264386892319, -0.06414216756820679, 0.3810342848300934, 0.25327548384666443, 0.13150019943714142, -0.13548210263252258, 0.02271047607064247, -0.001941591501235962, 0.2765326499938965, 0.3934856653213501, 0.5602555871009827, -0.007521318271756172, -0.05188998579978943, -0.5826064944267273, 0.06519078463315964, -0.2603628635406494, 0.03561557084321976, 0.5112118124961853, 0.01836000382900238, 0.20616811513900757, 0.282622754573822, 0.35243159532546997, -0.03674248233437538, -0.21907129883766174, 0.22202256321907043, -0.270600289106369, 0.10718394815921783, 0.08886925876140594, 0.0353245809674263, -0.035855136811733246, -0.287441611289978, 0.20497676730155945, -0.13577359914779663, -0.0541670024394989, -0.20188602805137634, -0.26390671730041504, 0.08732759952545166, 0.062277406454086304, 0.6423352956771851, 0.20272471010684967, 0.24135401844978333, 0.03021920472383499, -0.13670097291469574, -0.17844551801681519, -0.28739672899246216, -0.381934255361557, 0.3547772467136383, -0.3083919882774353, 0.1692904680967331, -0.22984722256660461, -0.013659199699759483, -0.2985231876373291, 0.12408071011304855, -0.07125428318977356, -0.03342072293162346, -0.277694433927536, 0.2480267882347107, -0.2848936915397644, 0.09483665227890015, 0.13165469467639923, 0.074118971824646, -0.022425048053264618, 0.30939584970474243, -0.19883030652999878, -0.6252145767211914, 0.46623706817626953, -0.09620785713195801, -0.14107757806777954, 0.17131687700748444, -0.07376880198717117, 0.2998204827308655, -0.059659168124198914, -0.4555014967918396, -0.3096269965171814, 0.3819795250892639, -0.06050700694322586, -0.2291324883699417, -0.1350293606519699, -0.13672250509262085, -0.12044883519411087, -0.1010308712720871, 0.35195067524909973, -0.21003784239292145, 0.17531368136405945, -0.07388336211442947, -0.4196283221244812 ]
https://github.com/huggingface/datasets/issues/1895
Thanks for the clarification @lhoestq ! This may be a little bit of a stupid question, but I wanted to clarify one more thing before I took a stab at this: When the features get inferred, I believe they already have a pyarrow schema (https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L234). We then convert it to a string (https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L778) only to convert it back into the arrow type (https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L143, and https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L35). Is there a reason for this round-trip? I'll open a PR later to add `timestamp` support to `string_to_arrow`, but I'd be curious to understand since it feels like there may be some opportunities to simplify!
Bug Report: timestamp[ns] not recognized
Repro: ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.date_range("2018-01-01", periods=3, freq="H")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws ValueError: Neither timestamp[ns] nor timestamp[ns]_ seems to be a pyarrow data type. ``` The factory function seems to be just "timestamp": https://arrow.apache.org/docs/python/generated/pyarrow.timestamp.html#pyarrow.timestamp It seems like https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L36-L43 could have a little bit of additional structure for handling these cases? I'd be happy to take a shot at opening a PR if I could receive some guidance on whether parsing something like `timestamp[ns]` and resolving it to timestamp('ns') is the goal of this method. Alternatively, if I'm using this incorrectly (e.g. is the expectation that we always provide a schema when timestamps are involved?), that would be very helpful to know as well! ``` $ pip list # only the relevant libraries/versions datasets 1.2.1 pandas 1.0.3 pyarrow 3.0.0 ```
100
Bug Report: timestamp[ns] not recognized Repro: ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.date_range("2018-01-01", periods=3, freq="H")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws ValueError: Neither timestamp[ns] nor timestamp[ns]_ seems to be a pyarrow data type. ``` The factory function seems to be just "timestamp": https://arrow.apache.org/docs/python/generated/pyarrow.timestamp.html#pyarrow.timestamp It seems like https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L36-L43 could have a little bit of additional structure for handling these cases? I'd be happy to take a shot at opening a PR if I could receive some guidance on whether parsing something like `timestamp[ns]` and resolving it to timestamp('ns') is the goal of this method. Alternatively, if I'm using this incorrectly (e.g. is the expectation that we always provide a schema when timestamps are involved?), that would be very helpful to know as well! ``` $ pip list # only the relevant libraries/versions datasets 1.2.1 pandas 1.0.3 pyarrow 3.0.0 ``` Thanks for the clarification @lhoestq ! This may be a little bit of a stupid question, but I wanted to clarify one more thing before I took a stab at this: When the features get inferred, I believe they already have a pyarrow schema (https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L234). We then convert it to a string (https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L778) only to convert it back into the arrow type (https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L143, and https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L35). Is there a reason for this round-trip? I'll open a PR later to add `timestamp` support to `string_to_arrow`, but I'd be curious to understand since it feels like there may be some opportunities to simplify!
[ -0.07395335286855698, 0.26339054107666016, 0.023429065942764282, 0.11723296344280243, 0.06972910463809967, -0.1028006374835968, 0.3482515811920166, 0.2648754417896271, -0.5368145108222961, -0.2700381875038147, 0.23996159434318542, 0.4913213849067688, -0.14977118372917175, -0.08162836730480194, 0.059687886387109756, -0.12285386770963669, 0.1500016152858734, 0.18102975189685822, 0.04979633167386055, 0.2760608196258545, -0.46476584672927856, 0.02680901251733303, -0.11780346930027008, 0.45546865463256836, -0.13498900830745697, -0.051736049354076385, -0.1678011119365692, 0.13129356503486633, -0.22269949316978455, -0.6291896104812622, -0.006809599697589874, -0.21244901418685913, 0.1671675443649292, 0.5190415978431702, -0.0001214839139720425, -0.024357184767723083, 0.30584633350372314, -0.08143000304698944, -0.06747835129499435, 0.28336063027381897, 0.3476235568523407, -0.09028796851634979, 0.24007552862167358, -0.2225872278213501, 0.0005370229482650757, -0.2519567906856537, -0.03410504758358002, 0.06729741394519806, 0.1444161832332611, 0.4907273054122925, 0.10791298747062683, 0.3850308656692505, 0.4924410879611969, 0.293148398399353, 0.8187012672424316, 0.23050189018249512, -0.23270614445209503, 0.20201551914215088, 0.4911268353462219, -0.01194453239440918, 0.30400359630584717, 0.11104665696620941, -0.02026798203587532, -0.30364006757736206, 0.41741707921028137, 0.23434755206108093, 0.23088029026985168, -0.2514505982398987, -0.32078924775123596, 0.012445083819329739, 0.4684596061706543, -0.4220660626888275, -0.2735631465911865, -0.22066637873649597, -0.22689932584762573, -0.3210521638393402, 0.05906075984239578, 0.024446900933980942, -0.0944184958934784, 0.1667209267616272, 0.1804582178592682, 0.11144231259822845, -0.2595478892326355, 0.19666168093681335, 0.04583905637264252, 0.2566618323326111, 0.09181830286979675, 0.2258581817150116, -0.13582947850227356, -0.08878566324710846, 0.3104705214500427, 0.006987296044826508, 0.19793903827667236, 0.2608562111854553, 0.11463882029056549, -0.02385532110929489, 0.1147632747888565, 0.12586230039596558, -0.05435482785105705, 0.2180192768573761, -0.27529779076576233, -0.11878389120101929, 0.07499432563781738, 0.02472229115664959, 0.14782404899597168, 0.17716170847415924, -0.07783830165863037, 0.19585031270980835, 0.162057563662529, 0.14091145992279053, 0.2483193278312683, -0.09727834165096283, 0.01177549734711647, -0.3109065890312195, 0.09153193235397339, 0.03698878362774849, 0.4998415410518646, -0.16727770864963531, -0.08206888288259506, 0.08098703622817993, -0.353494256734848, -0.09990733861923218, 0.16194669902324677, 0.20317471027374268, -0.17540302872657776, 0.22311371564865112, 0.2975909113883972, 0.06463557481765747, -0.027132049202919006, -0.135947585105896, -0.17714741826057434, 0.07400885224342346, -0.3025510311126709, 0.04193910211324692, -0.1343195140361786, 0.13245898485183716, -0.1791500449180603, 0.12167412042617798, -0.27325767278671265, 0.0485023558139801, -0.2948606610298157, -0.008400119841098785, -0.029852721840143204, 0.28918030858039856, -0.34106165170669556, 0.08692807704210281, 0.018082240596413612, -0.22827410697937012, -0.29707619547843933, 0.2654174268245697, -0.2615162432193756, -0.40537333488464355, -0.34696921706199646, 0.07675608992576599, -0.2768322229385376, 0.0730392187833786, -0.057508211582899094, 0.04267342388629913, 0.31802016496658325, -0.21704736351966858, 0.19773009419441223, 0.12416507303714752, 0.005694150924682617, -0.4275839626789093, 0.041400246322155, 0.014174334704875946, -0.468375563621521, -0.007270403206348419, 0.07734343409538269, -0.2030065953731537, 0.2537606656551361, 0.10491268336772919, -0.0016867704689502716, 0.07747165858745575, -0.012549500912427902, 0.20263531804084778, -0.012751460075378418, -0.04626229405403137, -0.05953309312462807, -0.08335508406162262, 0.03762592375278473, -0.13115519285202026, -0.03384913504123688, 0.0006079338490962982, -0.14049597084522247, -0.36391153931617737, 0.029856503009796143, -0.025454089045524597, -0.08891914784908295, -0.21399076282978058, -0.39134591817855835, -0.3040253520011902, 0.16186940670013428, 0.2460022121667862, 0.2437741458415985, -0.05020921677350998, -0.059244729578495026, -0.510199248790741, 0.20551738142967224, -0.0247056744992733, 0.06713484972715378, 0.03063312917947769, 0.48897305130958557, 0.26379507780075073, -0.04204591363668442, -0.21115252375602722, -0.37333232164382935, 0.1900893896818161, -0.10357752442359924, 0.2703510522842407, -0.5419315695762634, -0.44244998693466187, -0.2253599464893341, 0.3193966746330261, 0.18618518114089966, 0.04070494696497917, -0.02551807463169098, -0.04553000256419182, 0.21152189373970032, 0.31663966178894043, -0.09067417681217194, 0.0358714684844017, -0.1910472810268402, 0.21876832842826843, -0.32194218039512634, 0.3889368772506714, -0.23488788306713104, -0.2647875249385834, -0.13894978165626526, 0.3878713846206665, 0.2070743441581726, 0.022875793278217316, 0.16576573252677917, 0.25568705797195435, 0.12497586756944656, 0.06248156726360321, -0.49058663845062256, 0.2075883448123932, 0.12423393875360489, -0.19087466597557068, -0.3281775116920471, 0.28351452946662903, 0.17187534272670746, -0.04304242879152298, 0.08348214626312256, 0.47342121601104736, -0.23868390917778015, -0.03343873843550682, -0.03309512883424759, 0.16736561059951782, -0.0946149155497551, -0.024620138108730316, -0.17730635404586792, 0.07326635718345642, -0.20786046981811523, 0.15599703788757324, 0.1349337249994278, 0.055178187787532806, -0.3709947466850281, 0.21923835575580597, 0.41125285625457764, -0.10226208716630936, -0.029253080487251282, 0.07172891497612, -0.230445995926857, -0.09148643165826797, 0.11169859021902084, -0.06747733056545258, 0.15168645977973938, 0.19191351532936096, -0.05900738388299942, 0.10596365481615067, -0.24411781132221222, 0.09806101024150848, 0.2665567398071289, 0.14252132177352905, 0.20441564917564392, -0.1282244771718979, 0.07130014896392822, 0.18243320286273956, -0.01087016612291336, -0.19434121251106262, -0.03335069864988327, 0.38382214307785034, -0.635184645652771, 0.10701726377010345, -0.15853823721408844, -0.3386039137840271, -0.07804293930530548, -0.5197442173957825, -0.26302576065063477, -0.44747769832611084, 0.22241488099098206, -0.01869630068540573, -0.1537584662437439, 0.0871337354183197, -0.2732032537460327, 0.2935720980167389, -0.024544760584831238, -0.018859008327126503, -0.29271385073661804, -0.38560089468955994, -0.2980494499206543, 0.038594670593738556, 0.10317181795835495, 0.14141643047332764, 0.18630903959274292, -0.22340154647827148, 0.14167499542236328, -0.07528552412986755, -0.5809762477874756, 0.05179279297590256, -0.23430147767066956, 0.42146971821784973, 0.09435489028692245, 0.13548682630062103, -0.008356720209121704, -0.2265825867652893, 0.2086319923400879, -0.1833893060684204, -0.2840288281440735, 0.02694852650165558, -0.11091402918100357, 0.07745551317930222, -0.25620341300964355, 0.05196738243103027, -0.4750353991985321, -0.3110540807247162, 0.32780811190605164, -0.0538623183965683, 0.24448823928833008, 0.4900135397911072, -0.20333534479141235, 0.07836343348026276, -0.18627317249774933, -0.0581388846039772, -0.1955917477607727, -0.06097399815917015, 0.4027327597141266, -0.14936193823814392, -0.3285057842731476, -0.14247141778469086, -0.0957719087600708, -0.30754849314689636, 0.016244154423475266, -0.2464178204536438, -0.5779743790626526, 0.032143302261829376, 0.3910685181617737, 0.06692464649677277, 0.01624004729092121, 0.3755376636981964, 0.09417127072811127, 0.07499805092811584, -0.07487113773822784, -0.13957610726356506, 0.05672096461057663, 0.1027209535241127, 0.16286611557006836, 0.18432126939296722, 0.22866696119308472, -0.11842194944620132, 1.0252782106399536, 0.15482792258262634, -0.3985675871372223, 0.2973778247833252, -0.4068077504634857, 0.15115447342395782, 0.1008072942495346, 0.010197073221206665, -0.25976428389549255, -0.19832347333431244, -0.0663352757692337, 0.1671137511730194, -0.02069959044456482, -0.03968752175569534, -0.1277155876159668, 0.1601392775774002, -0.54897540807724, -0.32921868562698364, 0.10126841068267822, 0.13396300375461578, 0.24273893237113953, -0.07099292427301407, -0.013477511703968048, -0.24224039912223816, -0.2760462164878845, -0.0071357302367687225, 0.1489183008670807, 0.12069210410118103, 0.042413655668497086, -0.34749460220336914, -0.07462073862552643, -0.5400822162628174, 0.20005494356155396, 0.09041333198547363, 0.1046072468161583, 0.1293869912624359, -0.44065433740615845, 0.07260099798440933, -0.09315814822912216, 0.3412593603134155, -0.08093854039907455, 0.00960429199039936, 0.2593655586242676, 0.23042473196983337, -0.4890088438987732, -0.1646181046962738, 0.007961675524711609, -0.13619455695152283, -0.002692706882953644, 0.28365373611450195, -0.6594841480255127, -0.0884750485420227, 0.11950637400150299, -0.08137424290180206, 0.00342366099357605, 0.10374997556209564, -0.035947978496551514, -0.2243495136499405, -0.019949179142713547, -0.001143909990787506, 0.3446560502052307, 0.2038823813199997, 0.03859952092170715, 0.22030267119407654, -0.17657363414764404, 0.2099395990371704, 0.08701495826244354, 0.2514794170856476, 0.23788224160671234, -0.46638035774230957, 0.21831290423870087, -0.1073826402425766, -0.023703189566731453, 0.43413662910461426, 0.8395712375640869, 0.094545379281044, -0.36437392234802246, -0.01200338825583458, -0.10646523535251617, 0.22417894005775452, 0.45017874240875244, -0.10590377449989319, 0.04667248949408531, 0.023745737969875336, 0.15395022928714752, -0.2946678698062897, -0.2546078562736511, 0.32195785641670227, -0.2613392770290375, -0.2040187120437622, 0.09965100139379501, 0.4065247178077698, 0.23462122678756714, -0.2085294872522354, 0.19109457731246948, 0.3937908411026001, -0.18389421701431274, 0.33595237135887146, 0.1511060744524002, 1.2702800035476685, 0.013976804912090302, 0.2444763034582138, 0.8142847418785095, -0.26830410957336426, 0.47921425104141235, 0.05891389399766922, -0.10718350112438202, -0.44142788648605347, -0.019641518592834473, -0.05120796710252762, -0.06095895916223526, 0.07064332067966461, 0.20823565125465393, -0.2985692024230957, -0.004078879952430725, -0.055060699582099915, 0.6143826842308044, 0.1036398783326149, 0.010755456984043121, 0.406507670879364, 0.14161546528339386, -0.48356127738952637, 0.014995653182268143, -0.06651374697685242, -0.03878842666745186, -0.21647262573242188, -0.34482651948928833, -0.44333940744400024, -0.2966756224632263, -0.3549309968948364, -0.07894834876060486, -0.23810411989688873, 0.07773884385824203, 0.392899751663208, -0.17919310927391052, -0.21613794565200806, -0.010806255973875523, 0.10599081218242645, -0.4689141511917114, -0.01516481302678585, 0.09668996185064316, 0.24151772260665894, 0.026371296495199203, -0.02518930658698082, 0.03953174129128456, 0.4224718511104584, -0.19262689352035522, 0.0911814421415329, 0.06596700847148895, -0.22718900442123413, -0.4013899564743042, -0.08030475676059723, 0.1792924702167511, -0.28166675567626953, -0.12216511368751526, -0.23211127519607544, 0.036948561668395996, 0.11034096777439117, -0.2227003574371338, 0.03037147969007492, 0.00007224641740322113, 0.1590045988559723, 0.3048904538154602, -0.32739728689193726, -0.17064586281776428, -0.19584454596042633, 0.049012042582035065, -0.1522257924079895, 0.18178324401378632, 0.10405604541301727, 0.4240524172782898, -0.28067684173583984, 0.02726025879383087, 0.10391082614660263, 0.3103795647621155, -1.2080917358398438, 0.07832165062427521, -0.1443827897310257, 0.12569771707057953, 0.1736297756433487, 0.35785430669784546, 0.3502129018306732, -0.06292971968650818, 0.09754940867424011, -0.3580775856971741, -0.1638457477092743, 0.5015026926994324, 0.1614501178264618, 0.08786167204380035, -0.0682930052280426, 0.3125722408294678, -0.015446137636899948, -0.008032023906707764, -0.2533614933490753, 0.03759445250034332, -0.060976892709732056, 0.3026733994483948, -0.08798421919345856, -0.0993150845170021, 0.08182196319103241, -0.21717318892478943, 0.02161790058016777, 0.11001839488744736, -0.19989104568958282, -0.0590151883661747, -0.14866387844085693, 0.21732982993125916, -0.010356630198657513, -0.27441051602363586, 0.10582494735717773, 0.02439028024673462, -0.1482449322938919, 0.12865795195102692, -0.03991223871707916, 0.34663820266723633, -0.04787217825651169, 0.19670796394348145, 0.6293023228645325, 0.031000692397356033, -0.21738068759441376, 0.028282154351472855, 0.038798026740550995, 0.6772250533103943, 0.1184673085808754, 0.3900327980518341, -0.21145068109035492, 0.009974896907806396, -0.14943809807300568, 0.273103266954422, -0.11093861609697342, -0.26455599069595337, 0.3118435740470886, -0.1926221400499344, -0.14570631086826324, -0.11462567746639252, 0.3807464838027954, 0.3744282126426697, -0.1657446324825287, -0.1251213401556015, 0.11484083533287048, 0.05030278116464615, -0.3930954337120056, 0.06860761344432831, 0.14123578369617462, 0.010856550186872482, 0.022365622222423553, 0.3505516052246094, 0.2716420590877533, 0.33899885416030884, 0.08335256576538086, 0.08251508325338364, 0.2047492116689682, 0.21212656795978546, 0.03392836079001427, 0.6880728602409363, -0.2037143111228943, 0.0673743337392807, 0.42539751529693604, 0.2280193269252777, 0.2544558644294739, -0.1298796534538269, 0.14236542582511902, -0.0018906518816947937, 0.2977820336818695, 0.10412962734699249, 0.2363484799861908, -0.19104397296905518, -0.295714795589447, 0.101625457406044, 0.07565917074680328, -0.0666562020778656, 0.26826372742652893, 0.5727295875549316, 0.15832234919071198, -0.00594426691532135, -0.027954086661338806, 0.38846442103385925, 0.12752282619476318, -0.08534394949674606, 0.17142179608345032, -0.2963217794895172, -0.41269201040267944, -0.2512809634208679, -0.275064080953598, -0.17151537537574768, 0.5290330648422241, -0.01942523941397667, 0.10034415870904922, -0.18367749452590942, 0.12787799537181854, 0.06058456376194954, 0.49791720509529114, -0.06628178060054779, 0.05014985799789429, 0.09809203445911407, -0.2756037414073944, 0.22098815441131592, 0.3142208158969879, 0.6572132706642151, 0.17272797226905823, -0.2627302408218384, 0.05396052822470665, -0.15229468047618866, -0.012287318706512451, 0.1789768934249878, 0.16864797472953796, 0.38144513964653015, -0.09059649705886841, 0.3732958137989044, 0.05673152580857277, -0.001772850751876831, 0.03637922182679176, -0.22282707691192627, 0.24557232856750488, -0.01885385438799858, 0.6408087611198425, -0.2512756586074829, -0.2848411202430725, 0.04528608173131943, 0.08611520379781723, 0.0581633597612381, 0.023036278784275055, 0.08732588589191437, 0.25033968687057495, 0.11817581951618195, -0.15176227688789368, 0.016790512949228287, 0.015795301645994186, 0.3172743320465088, 0.4708022177219391, 0.5868930816650391, -0.012728231027722359, -0.24361905455589294, -0.6182452440261841, 0.137902170419693, -0.2962487041950226, -0.04063132032752037, 0.5741753578186035, -0.0034811794757843018, 0.17809507250785828, 0.24831436574459076, 0.21688565611839294, -0.14606331288814545, -0.4045746624469757, 0.2246893048286438, -0.30305540561676025, 0.14603951573371887, -0.017018761485815048, -0.029210828244686127, -0.01412178948521614, -0.1510021984577179, 0.2226448506116867, -0.16003742814064026, -0.05676286667585373, -0.21439693868160248, -0.20094086229801178, 0.12227252870798111, 0.04381486028432846, 0.6215816140174866, 0.10745294392108917, 0.2562094032764435, 0.03136982023715973, -0.17093048989772797, -0.15462565422058105, -0.2967071831226349, -0.36741262674331665, 0.36684978008270264, -0.22569811344146729, 0.15043501555919647, -0.1462484896183014, -0.255042165517807, -0.3340621590614319, 0.10198630392551422, -0.07480421662330627, -0.00623340904712677, -0.19425466656684875, 0.13191336393356323, -0.2435484081506729, 0.07809531688690186, 0.19770702719688416, 0.0747334361076355, -0.023046590387821198, 0.3005979657173157, -0.2489379346370697, -0.6309576034545898, 0.6126273274421692, -0.0882750153541565, -0.06963241845369339, 0.18100956082344055, -0.012172244489192963, 0.12111437320709229, -0.12866315245628357, -0.4617308974266052, -0.2831822335720062, 0.38733577728271484, -0.00937204621732235, -0.21627438068389893, -0.10666677355766296, -0.13311493396759033, -0.1938743144273758, -0.11649119853973389, 0.29069697856903076, -0.24178233742713928, 0.18101397156715393, -0.06671443581581116, -0.37763047218322754 ]
https://github.com/huggingface/datasets/issues/1895
The objective in terms of design is to make it easy to create Features in a pythonic way. So for example we use a string to define a Value type. That's why when inferring the Features from an arrow schema we have to find the right string definitions for Value types. I guess we could also have a constructor `Value.from_arrow_type` to avoid recreating the arrow type, but this could create silent errors if the pyarrow type doesn't have a valid mapping with the string definition. The "round-trip" is used to enforce that the ground truth is the string definition, not the pyarrow type, and also as a sanity check. Let me know if that makes sense
Bug Report: timestamp[ns] not recognized
Repro: ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.date_range("2018-01-01", periods=3, freq="H")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws ValueError: Neither timestamp[ns] nor timestamp[ns]_ seems to be a pyarrow data type. ``` The factory function seems to be just "timestamp": https://arrow.apache.org/docs/python/generated/pyarrow.timestamp.html#pyarrow.timestamp It seems like https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L36-L43 could have a little bit of additional structure for handling these cases? I'd be happy to take a shot at opening a PR if I could receive some guidance on whether parsing something like `timestamp[ns]` and resolving it to timestamp('ns') is the goal of this method. Alternatively, if I'm using this incorrectly (e.g. is the expectation that we always provide a schema when timestamps are involved?), that would be very helpful to know as well! ``` $ pip list # only the relevant libraries/versions datasets 1.2.1 pandas 1.0.3 pyarrow 3.0.0 ```
116
Bug Report: timestamp[ns] not recognized Repro: ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.date_range("2018-01-01", periods=3, freq="H")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws ValueError: Neither timestamp[ns] nor timestamp[ns]_ seems to be a pyarrow data type. ``` The factory function seems to be just "timestamp": https://arrow.apache.org/docs/python/generated/pyarrow.timestamp.html#pyarrow.timestamp It seems like https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L36-L43 could have a little bit of additional structure for handling these cases? I'd be happy to take a shot at opening a PR if I could receive some guidance on whether parsing something like `timestamp[ns]` and resolving it to timestamp('ns') is the goal of this method. Alternatively, if I'm using this incorrectly (e.g. is the expectation that we always provide a schema when timestamps are involved?), that would be very helpful to know as well! ``` $ pip list # only the relevant libraries/versions datasets 1.2.1 pandas 1.0.3 pyarrow 3.0.0 ``` The objective in terms of design is to make it easy to create Features in a pythonic way. So for example we use a string to define a Value type. That's why when inferring the Features from an arrow schema we have to find the right string definitions for Value types. I guess we could also have a constructor `Value.from_arrow_type` to avoid recreating the arrow type, but this could create silent errors if the pyarrow type doesn't have a valid mapping with the string definition. The "round-trip" is used to enforce that the ground truth is the string definition, not the pyarrow type, and also as a sanity check. Let me know if that makes sense
[ -0.11467473953962326, 0.19220730662345886, 0.044961392879486084, 0.14448221027851105, -0.02857380546629429, -0.12259776890277863, 0.4444707930088043, 0.2822771668434143, -0.5322679877281189, -0.3254835903644562, 0.32812491059303284, 0.565228283405304, -0.20688390731811523, 0.08838329464197159, 0.06044891104102135, -0.10872384905815125, 0.13224071264266968, 0.18886061012744904, 0.06940573453903198, 0.3026497960090637, -0.46720921993255615, -0.03246128559112549, -0.07686206698417664, 0.5418869256973267, -0.21329960227012634, -0.13486848771572113, -0.04470742121338844, 0.12133965641260147, -0.19259902834892273, -0.6285108327865601, -0.046007633209228516, -0.25136300921440125, 0.11399684846401215, 0.45430758595466614, -0.00012481879093684256, -0.061076145619153976, 0.31908565759658813, -0.060615599155426025, -0.10715505480766296, 0.30472448468208313, 0.2991989254951477, -0.17205893993377686, 0.22674614191055298, -0.20348408818244934, 0.06483422219753265, -0.28971078991889954, -0.08650293201208115, 0.01628633588552475, 0.11386953294277191, 0.5138630270957947, 0.0579913891851902, 0.33220139145851135, 0.45590007305145264, 0.3164353370666504, 0.7315245866775513, 0.28736940026283264, -0.30102625489234924, 0.11784516274929047, 0.43759629130363464, -0.014845062047243118, 0.2742493152618408, 0.06012287735939026, -0.033825892955064774, -0.24557584524154663, 0.46604615449905396, 0.15900571644306183, 0.23375999927520752, -0.2711878716945648, -0.26368558406829834, 0.01573803275823593, 0.6011713743209839, -0.3657225966453552, -0.30608975887298584, -0.28919434547424316, -0.2802906632423401, -0.31916719675064087, 0.1780141294002533, 0.03891623020172119, -0.06527277827262878, 0.16856694221496582, 0.24556377530097961, 0.05363418534398079, -0.2926945388317108, 0.21094541251659393, -0.008620433509349823, 0.17896829545497894, 0.10519011318683624, 0.2517607510089874, -0.12199607491493225, -0.10453233122825623, 0.42221599817276, -0.08692173659801483, 0.26800256967544556, 0.2776353061199188, 0.1601041555404663, -0.0247630774974823, 0.23411275446414948, 0.09005361795425415, -0.038009967654943466, 0.25159257650375366, -0.25914809107780457, -0.10955926775932312, -0.013311997056007385, 0.0278956089168787, 0.1763335019350052, 0.09157299250364304, -0.046061523258686066, 0.2547680139541626, 0.22948706150054932, 0.03626753017306328, 0.28017881512641907, -0.011260423809289932, 0.04942358657717705, -0.35048729181289673, 0.12089407444000244, 0.08742766827344894, 0.5513423085212708, -0.10178529471158981, -0.05628938972949982, 0.08783110231161118, -0.4067276418209076, -0.19006763398647308, 0.12788909673690796, 0.1757335364818573, -0.10614827275276184, 0.3503425121307373, 0.19274087250232697, 0.035435378551483154, -0.0859621986746788, -0.1422041803598404, -0.12475088983774185, 0.09129109233617783, -0.383154034614563, -0.004676884040236473, -0.1261664479970932, 0.14979559183120728, -0.19825541973114014, 0.10391943156719208, -0.30301767587661743, 0.005303904414176941, -0.21025346219539642, -0.0027507394552230835, -0.07786223292350769, 0.2609841823577881, -0.41865718364715576, 0.04161836951971054, -0.005041749682277441, -0.1475323736667633, -0.29644274711608887, 0.32944488525390625, -0.3006253242492676, -0.47775760293006897, -0.3351684808731079, 0.02461954951286316, -0.2629362940788269, 0.09427697956562042, -0.05292142927646637, 0.07583853602409363, 0.3659571707248688, -0.2005760669708252, 0.2076985090970993, 0.1488824039697647, 0.019846320152282715, -0.45421361923217773, -0.038955945521593094, 0.08581472933292389, -0.48743918538093567, 0.018076643347740173, 0.011779125779867172, -0.17833036184310913, 0.22731652855873108, 0.1492520272731781, -0.05448528006672859, 0.28531140089035034, -0.06901255995035172, 0.030484125018119812, 0.17375586926937103, -0.05374235659837723, -0.00900941900908947, -0.04535038769245148, 0.016632631421089172, -0.16203570365905762, -0.05468505248427391, 0.05183024704456329, -0.15480919182300568, -0.3739098608493805, 0.10244785994291306, -0.02726913057267666, -0.15594430267810822, -0.18696948885917664, -0.31734228134155273, -0.20536905527114868, 0.27072736620903015, 0.14719140529632568, 0.29721346497535706, -0.07411594688892365, -0.018295753747224808, -0.5894555449485779, 0.08080694079399109, -0.06707310676574707, 0.12902331352233887, -0.10908198356628418, 0.5267504453659058, 0.2543952167034149, -0.019559260457754135, -0.3033369183540344, -0.46919581294059753, 0.14857354760169983, -0.04581224173307419, 0.2215670943260193, -0.4678382873535156, -0.3387565016746521, -0.21005824208259583, 0.3160874545574188, 0.18100477755069733, 0.06922804564237595, -0.12757249176502228, -0.0425603948533535, 0.14403164386749268, 0.31773877143859863, -0.20351654291152954, 0.07427465915679932, -0.2066328227519989, 0.24543800950050354, -0.22974903881549835, 0.29565852880477905, -0.22309577465057373, -0.20087258517742157, -0.18846407532691956, 0.4087276756763458, 0.16673427820205688, 0.03982185944914818, 0.1125769317150116, 0.18861189484596252, 0.22226367890834808, 0.05032416805624962, -0.46168628334999084, 0.2739304304122925, 0.18255525827407837, -0.2483137845993042, -0.23254486918449402, 0.21022240817546844, 0.2238045632839203, -0.039197929203510284, 0.024267561733722687, 0.5012863278388977, -0.23867172002792358, -0.038110241293907166, -0.05540434271097183, 0.17680519819259644, -0.06295272707939148, -0.00534704327583313, -0.2213297188282013, 0.09501054883003235, -0.14565405249595642, 0.13147425651550293, 0.18230199813842773, 0.0988718792796135, -0.4194651246070862, 0.3065633475780487, 0.44127774238586426, -0.18455281853675842, 0.0657004714012146, 0.16692478954792023, -0.125608891248703, -0.18210981786251068, 0.02439589984714985, 0.0633510947227478, 0.193255215883255, 0.10938166081905365, -0.07379552721977234, 0.08702469617128372, -0.33504199981689453, 0.12409456074237823, 0.30256038904190063, 0.10578502714633942, 0.15061333775520325, -0.04276302829384804, 0.08786436915397644, 0.16489146649837494, 0.005959615111351013, -0.23589946329593658, 0.008793152868747711, 0.3616999387741089, -0.6444135904312134, 0.08345910161733627, -0.1029471904039383, -0.20710983872413635, -0.11399953067302704, -0.4375007748603821, -0.17257173359394073, -0.43499356508255005, 0.26470503211021423, -0.030993014574050903, -0.20298650860786438, 0.15806984901428223, -0.24683932960033417, 0.40310800075531006, -0.020223122090101242, -0.024463403970003128, -0.1894216537475586, -0.38194724917411804, -0.27837035059928894, -0.009106829762458801, 0.10310722142457962, 0.16163164377212524, 0.25466984510421753, -0.19530892372131348, 0.17251795530319214, -0.25594112277030945, -0.5900080800056458, 0.10906049609184265, -0.19084897637367249, 0.47807973623275757, 0.23025529086589813, 0.05427180230617523, 0.11503073573112488, -0.1919829398393631, 0.18053962290287018, -0.22772753238677979, -0.3124532699584961, 0.006850719451904297, -0.13367068767547607, 0.14330053329467773, -0.18650978803634644, -0.09710630774497986, -0.40870365500450134, -0.3184027075767517, 0.30172663927078247, -0.12440963834524155, 0.2925083637237549, 0.3748556077480316, -0.18854224681854248, 0.03909248858690262, -0.07944364845752716, -0.03171776980161667, -0.21906499564647675, -0.05923577398061752, 0.34380149841308594, -0.2040378600358963, -0.27170777320861816, -0.07155463844537735, -0.21902573108673096, -0.32404187321662903, 0.1017376184463501, -0.1886051595211029, -0.5865530371665955, 0.05062919110059738, 0.4496212303638458, 0.019562548026442528, 0.057450070977211, 0.3803965747356415, 0.23667509853839874, 0.11886084824800491, -0.054569099098443985, -0.2511970102787018, 0.08521082997322083, 0.14583507180213928, 0.18239708244800568, 0.2963671088218689, 0.2636644244194031, -0.1237485408782959, 1.0641582012176514, 0.12392500042915344, -0.30482107400894165, 0.31546226143836975, -0.3813145160675049, 0.1278882771730423, 0.024510135874152184, 0.03157110512256622, -0.2884286940097809, -0.13019996881484985, -0.12696506083011627, 0.09548180550336838, -0.009910579770803452, -0.1974671483039856, -0.053125012665987015, 0.11438087373971939, -0.5511305332183838, -0.306109219789505, 0.1621594876050949, 0.08652892708778381, 0.30270159244537354, -0.13376420736312866, -0.05557147040963173, -0.36620673537254333, -0.18684621155261993, -0.01495010033249855, 0.14885446429252625, 0.1591363549232483, -0.01447232998907566, -0.4274677038192749, -0.1349991112947464, -0.441276878118515, 0.14006173610687256, 0.12446948140859604, 0.16129645705223083, 0.07972851395606995, -0.3914799690246582, 0.01572374999523163, -0.09678159654140472, 0.33290743827819824, -0.20392297208309174, 0.04057375341653824, 0.1984584629535675, 0.203458771109581, -0.39246314764022827, -0.12315978109836578, 0.05064692348241806, -0.07766202837228775, -0.1415315717458725, 0.22853276133537292, -0.6666911840438843, -0.08320352435112, 0.1930227130651474, -0.09389768540859222, -0.004913367331027985, 0.1773253083229065, 0.034172944724559784, -0.2593523859977722, -0.07345670461654663, -0.010966222733259201, 0.3833392858505249, 0.1678203046321869, 0.1851971447467804, 0.20168933272361755, -0.19629214704036713, 0.24479274451732635, 0.08637186884880066, 0.22375079989433289, 0.1684030294418335, -0.5131525993347168, 0.2636955976486206, -0.1476709395647049, -0.0958305299282074, 0.43801942467689514, 0.7881333231925964, 0.054932694882154465, -0.36730340123176575, -0.019251853227615356, -0.16710029542446136, 0.373996376991272, 0.45374810695648193, -0.14952757954597473, -0.0694996789097786, -0.060355186462402344, 0.11803297698497772, -0.3618156611919403, -0.25669795274734497, 0.2628568410873413, -0.12664133310317993, -0.29137173295021057, -0.06819683313369751, 0.3376437723636627, 0.2847602367401123, -0.25326988101005554, 0.30747056007385254, 0.35146716237068176, -0.15885978937149048, 0.2947983145713806, 0.15179763734340668, 1.2444746494293213, 0.061470385640859604, 0.24724122881889343, 0.7527223825454712, -0.19193723797798157, 0.42668724060058594, 0.05099707841873169, -0.15471695363521576, -0.39755019545555115, 0.06005515903234482, -0.10929353535175323, -0.14246989786624908, 0.17427276074886322, 0.22394321858882904, -0.21905341744422913, 0.08585487306118011, -0.02741071581840515, 0.5473245978355408, 0.11403514444828033, 0.009362772107124329, 0.39562562108039856, 0.09529967606067657, -0.39706191420555115, -0.02519266866147518, -0.1131136566400528, -0.10458673536777496, -0.1930864155292511, -0.29342079162597656, -0.37126415967941284, -0.3107542395591736, -0.4376634359359741, -0.1997317373752594, -0.17919538915157318, 0.10935080051422119, 0.37943023443222046, -0.1861804723739624, -0.12069237232208252, -0.03837563097476959, 0.0713254064321518, -0.4952210485935211, 0.07193867117166519, 0.018290909007191658, 0.16966401040554047, 0.06855402141809464, -0.06819947808980942, 0.009235616773366928, 0.4175356924533844, -0.17306992411613464, 0.08280341327190399, 0.1338687539100647, -0.219599649310112, -0.40886709094047546, 0.06190265715122223, 0.15594163537025452, -0.2963089346885681, -0.15153415501117706, -0.2595841884613037, 0.011775771155953407, 0.08614470064640045, -0.22968789935112, -0.014954387210309505, 0.012776093557476997, 0.10386322438716888, 0.3013719320297241, -0.32633572816848755, -0.15544195473194122, -0.14203664660453796, -0.11363185197114944, -0.11207924783229828, 0.2243080735206604, 0.04750204458832741, 0.398651123046875, -0.2858334481716156, -0.004617437720298767, 0.23110142350196838, 0.17106497287750244, -1.1378570795059204, 0.1551971733570099, -0.15992970764636993, -0.07876165211200714, 0.1355423480272293, 0.38498327136039734, 0.3726135492324829, 0.019253425300121307, 0.06976395845413208, -0.327852338552475, -0.19003404676914215, 0.4407494068145752, 0.11295923590660095, 0.12546679377555847, -0.16447611153125763, 0.30934086441993713, 0.048408739268779755, 0.00237121619284153, -0.21176211535930634, -0.014178616926074028, -0.07800371944904327, 0.34182655811309814, -0.04102614149451256, -0.09648167341947556, -0.009172357618808746, -0.20403705537319183, -0.05082733929157257, 0.04417740926146507, -0.23126864433288574, -0.010058552026748657, -0.15326426923274994, 0.2547922432422638, -0.007160527631640434, -0.25413423776626587, 0.14267662167549133, 0.012017138302326202, -0.22613973915576935, 0.12989647686481476, -0.07667617499828339, 0.3577626049518585, -0.10880483686923981, 0.22923685610294342, 0.5094116926193237, -0.05654317885637283, -0.15647035837173462, 0.11305089294910431, 0.06223687157034874, 0.6591524481773376, 0.11508159339427948, 0.3603152632713318, -0.19206386804580688, -0.003991805016994476, -0.20516064763069153, 0.2868705689907074, -0.15986354649066925, -0.1706918179988861, 0.29072776436805725, -0.11679964512586594, -0.1360354870557785, -0.05477891117334366, 0.31147682666778564, 0.37227633595466614, -0.1361413300037384, -0.07205233722925186, 0.15959353744983673, -0.015956565737724304, -0.40481531620025635, -0.01873190514743328, 0.21473288536071777, -0.08647811412811279, 0.06912273168563843, 0.40235763788223267, 0.2419651746749878, 0.37051641941070557, -0.04203108698129654, 0.047839730978012085, 0.20174936950206757, 0.04500424116849899, 0.17621657252311707, 0.6065784096717834, -0.2892409563064575, 0.10855001211166382, 0.5195781588554382, 0.2501332461833954, 0.20667777955532074, -0.010256653651595116, 0.2667904198169708, -0.08776514232158661, 0.4458202123641968, 0.18831636011600494, 0.3032169044017792, -0.18757715821266174, -0.15112118422985077, 0.10493208467960358, 0.002915211021900177, -0.09587060660123825, 0.38084298372268677, 0.3216404914855957, 0.09928278625011444, -0.006441570818424225, -0.0491468645632267, 0.35890233516693115, 0.13027992844581604, -0.10684813559055328, 0.17174281179904938, -0.3093048334121704, -0.3062059283256531, -0.20607063174247742, -0.25727835297584534, -0.18373440206050873, 0.6696668267250061, -0.024513978511095047, 0.16447047889232635, -0.13499650359153748, 0.24904058873653412, 0.02094172313809395, 0.46893757581710815, -0.021145209670066833, 0.05097200721502304, 0.03498779237270355, -0.2753676474094391, 0.1461724042892456, 0.3481430411338806, 0.55396568775177, 0.25131508708000183, -0.3344514071941376, 0.05594386160373688, -0.22660210728645325, -0.030870001763105392, 0.13796445727348328, 0.21528205275535583, 0.31232044100761414, -0.08632778376340866, 0.3279179036617279, 0.012088611721992493, 0.013151012361049652, 0.11039329320192337, -0.1746354103088379, 0.1903255730867386, -0.07191665470600128, 0.6846842169761658, -0.240548774600029, -0.21916016936302185, 0.07983322441577911, 0.20284585654735565, 0.12704643607139587, -0.0655570924282074, 0.3195226490497589, 0.24777483940124512, 0.1120905727148056, -0.14793957769870758, -0.003735210746526718, 0.08499548584222794, 0.335862934589386, 0.45705947279930115, 0.5510880947113037, 0.0002883635461330414, -0.0565854087471962, -0.6022316217422485, 0.11062891036272049, -0.2849784195423126, -0.05640536546707153, 0.5855400562286377, 0.0052762627601623535, 0.1396755576133728, 0.2635878324508667, 0.3131505846977234, 0.029462013393640518, -0.24637505412101746, 0.21167635917663574, -0.2150539755821228, 0.08836426585912704, 0.12118098139762878, 0.021059034392237663, -0.03865896165370941, -0.2935081124305725, 0.17348730564117432, -0.08868476748466492, -0.12070842832326889, -0.1904481053352356, -0.27106305956840515, 0.07826519012451172, 0.03620372340083122, 0.6241986155509949, 0.25370481610298157, 0.28886735439300537, 0.045820534229278564, -0.20562753081321716, -0.13991540670394897, -0.3122875690460205, -0.36357882618904114, 0.39492306113243103, -0.2031986117362976, 0.12834171950817108, -0.20555171370506287, -0.0619657002389431, -0.385303258895874, 0.06768563389778137, -0.060373760759830475, 0.03991428390145302, -0.2818536162376404, 0.22463414072990417, -0.26200181245803833, 0.008315462619066238, 0.13757330179214478, 0.12646275758743286, -0.045765381306409836, 0.2847645878791809, -0.15628081560134888, -0.546067476272583, 0.5290356874465942, -0.06519158184528351, -0.1494637280702591, 0.20810872316360474, -0.005382947623729706, 0.207864448428154, -0.1047978326678276, -0.5080912113189697, -0.35185742378234863, 0.38840121030807495, -0.027208751067519188, -0.24980461597442627, -0.11156827956438065, -0.1876114159822464, -0.29633742570877075, -0.08980649709701538, 0.3477848768234253, -0.34090206027030945, 0.1478935182094574, -0.016902491450309753, -0.4204327464103699 ]
https://github.com/huggingface/datasets/issues/1895
OK I think I understand now: Features are datasets' internal representation of a schema type, distinct from pyarrow's schema. Value() corresponds to pyarrow's "primitive" types (e.g. `int` or `string`, but not things like `list` or `dict`). `get_nested_type()` (https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L698) and `generate_from_arrow_type()` (https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L778) *should* be inverses of each other, and similarly, for the primitive values, `string_to_arrow()` and `Value.__call__` (https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L146) should be inverses of each other? Thanks for taking the time to answer - I just wanted to make sure I understood before opening a PR so I'm not disrupting anything about how the codebase is expected to work!
Bug Report: timestamp[ns] not recognized
Repro: ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.date_range("2018-01-01", periods=3, freq="H")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws ValueError: Neither timestamp[ns] nor timestamp[ns]_ seems to be a pyarrow data type. ``` The factory function seems to be just "timestamp": https://arrow.apache.org/docs/python/generated/pyarrow.timestamp.html#pyarrow.timestamp It seems like https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L36-L43 could have a little bit of additional structure for handling these cases? I'd be happy to take a shot at opening a PR if I could receive some guidance on whether parsing something like `timestamp[ns]` and resolving it to timestamp('ns') is the goal of this method. Alternatively, if I'm using this incorrectly (e.g. is the expectation that we always provide a schema when timestamps are involved?), that would be very helpful to know as well! ``` $ pip list # only the relevant libraries/versions datasets 1.2.1 pandas 1.0.3 pyarrow 3.0.0 ```
96
Bug Report: timestamp[ns] not recognized Repro: ``` from datasets import Dataset import pandas as pd import pyarrow df = pd.DataFrame(pd.date_range("2018-01-01", periods=3, freq="H")) pyarrow.Table.from_pandas(df) Dataset.from_pandas(df) # Throws ValueError: Neither timestamp[ns] nor timestamp[ns]_ seems to be a pyarrow data type. ``` The factory function seems to be just "timestamp": https://arrow.apache.org/docs/python/generated/pyarrow.timestamp.html#pyarrow.timestamp It seems like https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L36-L43 could have a little bit of additional structure for handling these cases? I'd be happy to take a shot at opening a PR if I could receive some guidance on whether parsing something like `timestamp[ns]` and resolving it to timestamp('ns') is the goal of this method. Alternatively, if I'm using this incorrectly (e.g. is the expectation that we always provide a schema when timestamps are involved?), that would be very helpful to know as well! ``` $ pip list # only the relevant libraries/versions datasets 1.2.1 pandas 1.0.3 pyarrow 3.0.0 ``` OK I think I understand now: Features are datasets' internal representation of a schema type, distinct from pyarrow's schema. Value() corresponds to pyarrow's "primitive" types (e.g. `int` or `string`, but not things like `list` or `dict`). `get_nested_type()` (https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L698) and `generate_from_arrow_type()` (https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L778) *should* be inverses of each other, and similarly, for the primitive values, `string_to_arrow()` and `Value.__call__` (https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L146) should be inverses of each other? Thanks for taking the time to answer - I just wanted to make sure I understood before opening a PR so I'm not disrupting anything about how the codebase is expected to work!
[ -0.14257371425628662, 0.32469579577445984, -0.00011890009045600891, 0.11998894065618515, 0.0674353614449501, -0.07652750611305237, 0.3947216868400574, 0.27701976895332336, -0.475416362285614, -0.2832736372947693, 0.2034531831741333, 0.5407941341400146, -0.16183915734291077, 0.000655442476272583, 0.06571884453296661, -0.10319800674915314, 0.16099603474140167, 0.20120228826999664, 0.07461565732955933, 0.29673799872398376, -0.5015546083450317, 0.013892987743020058, -0.09777180105447769, 0.4974125623703003, -0.112466961145401, -0.12380100041627884, -0.15487971901893616, 0.15864157676696777, -0.22993499040603638, -0.6235612630844116, 0.08461534976959229, -0.22412151098251343, 0.24408221244812012, 0.5928258299827576, -0.00011987207835773006, 0.004700176417827606, 0.3186536431312561, -0.029571961611509323, -0.0745583027601242, 0.28921207785606384, 0.3250996470451355, -0.14716322720050812, 0.1617642045021057, -0.24908266961574554, 0.026068545877933502, -0.3570152521133423, -0.03866483271121979, 0.08433935046195984, 0.0631876066327095, 0.5538392066955566, 0.10393327474594116, 0.3807547092437744, 0.516423225402832, 0.25876715779304504, 0.7913491129875183, 0.24286092817783356, -0.24118906259536743, 0.16398578882217407, 0.4420028030872345, -0.02121063321828842, 0.3544448912143707, 0.00418592244386673, -0.07415831834077835, -0.30066582560539246, 0.42043185234069824, 0.18803398311138153, 0.17180857062339783, -0.27045032382011414, -0.31422120332717896, 0.02974303811788559, 0.5606445074081421, -0.43736740946769714, -0.2953949570655823, -0.17700980603694916, -0.2630363404750824, -0.31897398829460144, 0.11104604601860046, 0.0432378426194191, -0.0600382499396801, 0.18913064897060394, 0.19548583030700684, 0.1987183839082718, -0.2890893816947937, 0.1917300820350647, 0.03235441446304321, 0.18017256259918213, 0.07817243039608002, 0.2091454565525055, -0.13020730018615723, -0.11414973437786102, 0.36889201402664185, -0.04315934702754021, 0.19689640402793884, 0.22514010965824127, 0.09551721811294556, -0.0600450225174427, 0.19353055953979492, 0.04802219942212105, -0.08211641758680344, 0.19499903917312622, -0.3199300169944763, -0.1341319978237152, 0.0023784972727298737, 0.07362620532512665, 0.169423446059227, 0.06721256673336029, -0.049991581588983536, 0.23789316415786743, 0.2057170569896698, 0.12432575970888138, 0.26814496517181396, -0.0881943628191948, -0.014798484742641449, -0.2870156168937683, 0.13524991273880005, 0.0673968493938446, 0.4890875518321991, -0.1417485773563385, -0.12874753773212433, 0.06311964243650436, -0.35170403122901917, -0.133225679397583, 0.14934423565864563, 0.22311674058437347, -0.17382091283798218, 0.31796014308929443, 0.276883989572525, 0.04023376479744911, -0.038371071219444275, -0.14854595065116882, -0.17167620360851288, 0.14806917309761047, -0.2860538363456726, -0.009942404925823212, -0.12015534937381744, 0.174595445394516, -0.24159449338912964, 0.20684748888015747, -0.3203714191913605, 0.09152141213417053, -0.21034380793571472, -0.09397116303443909, -0.04759552702307701, 0.3335161507129669, -0.3074403405189514, 0.09066089242696762, -0.010236736387014389, -0.22139662504196167, -0.3277479112148285, 0.2611621618270874, -0.22817741334438324, -0.407833456993103, -0.351112425327301, 0.08916877955198288, -0.18682324886322021, 0.09901460260152817, -0.113118477165699, 0.056339848786592484, 0.34586215019226074, -0.26263508200645447, 0.17824208736419678, 0.09275877475738525, -0.04867573082447052, -0.49446722865104675, 0.026173166930675507, -0.04645954817533493, -0.5584203004837036, 0.051770806312561035, 0.06821911036968231, -0.24074605107307434, 0.29647204279899597, 0.1136728823184967, 0.005510326474905014, 0.15900368988513947, -0.04006395861506462, 0.07834716141223907, 0.006719999015331268, -0.000001773238182067871, -0.017260229215025902, -0.08267562091350555, 0.15350881218910217, -0.11105822771787643, -0.03187718242406845, -0.004098441451787949, -0.10636121034622192, -0.41346657276153564, 0.05061796307563782, 0.043564487248659134, -0.14330075681209564, -0.22329896688461304, -0.3076542615890503, -0.2335508167743683, 0.21901939809322357, 0.22421924769878387, 0.27803292870521545, -0.018410634249448776, -0.023339752107858658, -0.495423823595047, 0.10616894066333771, -0.0543605238199234, 0.012532267719507217, 0.0036810990422964096, 0.4620351195335388, 0.2442009299993515, -0.05232496187090874, -0.3410772383213043, -0.3519194722175598, 0.21654260158538818, -0.15437346696853638, 0.26655617356300354, -0.43330758810043335, -0.43221428990364075, -0.24699880182743073, 0.2843514084815979, 0.23599231243133545, 0.03946986794471741, -0.012750804424285889, -0.007501792162656784, 0.1634656935930252, 0.31375083327293396, -0.10703308135271072, 0.04783586412668228, -0.20063044130802155, 0.1544555127620697, -0.2843420207500458, 0.3436804413795471, -0.24994511902332306, -0.29295551776885986, -0.1658712923526764, 0.37035712599754333, 0.19574372470378876, 0.03184039145708084, 0.1319420486688614, 0.21552196145057678, 0.1618632823228836, 0.028504298999905586, -0.4760751724243164, 0.23565232753753662, 0.15554797649383545, -0.10087388753890991, -0.3313787281513214, 0.24645723402500153, 0.1859116554260254, -0.05801788344979286, 0.05947856232523918, 0.48569637537002563, -0.19083738327026367, -0.05660033971071243, -0.03435628116130829, 0.1692694127559662, -0.05132967233657837, -0.001323595643043518, -0.10110311210155487, 0.10465244948863983, -0.23914022743701935, 0.23058724403381348, 0.0001365169882774353, 0.05658566206693649, -0.35098111629486084, 0.2909887433052063, 0.44560277462005615, -0.16740156710147858, 0.014718219637870789, 0.08349375426769257, -0.17849430441856384, -0.1631646752357483, 0.09153026342391968, -0.036680325865745544, 0.1846928894519806, 0.18088603019714355, -0.024965111166238785, 0.04277736693620682, -0.3133358657360077, 0.12759751081466675, 0.2737651467323303, 0.10879883170127869, 0.12614087760448456, -0.133637472987175, 0.07521271705627441, 0.2009640634059906, 0.0007416009902954102, -0.21324774622917175, -0.0554303377866745, 0.40632572770118713, -0.6351135969161987, 0.12751814723014832, -0.17324376106262207, -0.2968249022960663, 0.016370229423046112, -0.40041130781173706, -0.1705923080444336, -0.4447688162326813, 0.18122006952762604, 0.050972871482372284, -0.1545252799987793, 0.08744906634092331, -0.2516876459121704, 0.3074045777320862, 0.0014129430055618286, 0.057564131915569305, -0.25886479020118713, -0.35323819518089294, -0.30852216482162476, 0.06501670181751251, 0.1218186765909195, 0.1679164171218872, 0.28746578097343445, -0.256024032831192, 0.1563139706850052, -0.12291114777326584, -0.5098379254341125, 0.0441640168428421, -0.2387232482433319, 0.4635877013206482, 0.17509259283542633, 0.14024041593074799, 0.021693609654903412, -0.20768865942955017, 0.2008841633796692, -0.19020208716392517, -0.29159560799598694, 0.01484920084476471, -0.18313057720661163, 0.1171564906835556, -0.2185308039188385, 0.00007822364568710327, -0.5082908868789673, -0.337679922580719, 0.2521591782569885, -0.05797307565808296, 0.33311328291893005, 0.4523910582065582, -0.23413699865341187, 0.07398605346679688, -0.1119888573884964, -0.010587917640805244, -0.2284049242734909, -0.07086630165576935, 0.38650426268577576, -0.16584737598896027, -0.3249436914920807, -0.10070711374282837, -0.13603849709033966, -0.3380487859249115, 0.009703516960144043, -0.1703650802373886, -0.6069762110710144, -0.006282033398747444, 0.43243682384490967, 0.08756022155284882, 0.04931953549385071, 0.3641596734523773, 0.095337875187397, 0.043464694172143936, -0.06196579337120056, -0.20199604332447052, -0.016594257205724716, 0.10316593945026398, 0.12578275799751282, 0.2682316303253174, 0.24435576796531677, -0.15292194485664368, 0.9732428789138794, 0.19253334403038025, -0.42527008056640625, 0.2978719472885132, -0.3933076858520508, 0.19864070415496826, 0.10533273965120316, -0.05779053643345833, -0.24904437363147736, -0.1892092525959015, -0.049534887075424194, 0.12362949550151825, -0.04902892932295799, -0.12064220756292343, -0.08393709361553192, 0.11646327376365662, -0.524283766746521, -0.301683247089386, 0.16394804418087006, 0.14528648555278778, 0.27975618839263916, -0.11047223955392838, -0.035960063338279724, -0.32872092723846436, -0.2361147403717041, -0.015007827430963516, 0.19158145785331726, 0.11161510646343231, 0.023164771497249603, -0.4009036421775818, -0.08788914233446121, -0.49703335762023926, 0.18423005938529968, 0.0980045348405838, 0.14782294631004333, 0.10637403279542923, -0.3894718289375305, 0.02190256305038929, -0.06673775613307953, 0.40540003776550293, -0.23395410180091858, -0.001995672006160021, 0.30854350328445435, 0.1621929407119751, -0.4127201735973358, -0.13503028452396393, -0.034022100269794464, -0.08797360211610794, -0.028687182813882828, 0.2912919223308563, -0.6167087554931641, -0.120334193110466, 0.15495938062667847, -0.08308202028274536, 0.024457000195980072, 0.0715191662311554, 0.005237184464931488, -0.24158155918121338, -0.011697262525558472, 0.00003859773278236389, 0.36173465847969055, 0.2321661114692688, 0.015141591429710388, 0.11400368809700012, -0.2656269967556, 0.286531925201416, 0.11592430621385574, 0.2600769102573395, 0.24198979139328003, -0.4722297787666321, 0.18959303200244904, -0.1549282968044281, -0.0320112518966198, 0.439971387386322, 0.8017579317092896, 0.0013359524309635162, -0.3774532377719879, 0.06926126778125763, -0.08258172869682312, 0.16647791862487793, 0.3741441071033478, -0.1755112260580063, -0.04662957042455673, -0.001887589693069458, 0.0905061736702919, -0.3189401626586914, -0.2506580352783203, 0.34910762310028076, -0.22844545543193817, -0.27492332458496094, -0.07539287954568863, 0.34448906779289246, 0.3377458453178406, -0.2223605215549469, 0.15336981415748596, 0.2905140817165375, -0.15111231803894043, 0.2589244246482849, 0.15707232058048248, 1.2064069509506226, -0.015321914106607437, 0.2329270988702774, 0.8293606638908386, -0.22475245594978333, 0.4708927571773529, -0.015407711267471313, -0.11439238488674164, -0.4183698892593384, -0.07018932700157166, -0.09099975228309631, -0.08439400047063828, 0.14068268239498138, 0.23647436499595642, -0.3014640212059021, 0.0941987857222557, -0.010556749999523163, 0.6234747171401978, 0.1450231969356537, 0.028370097279548645, 0.37941423058509827, 0.1386444866657257, -0.4682632386684418, 0.039606645703315735, -0.048986658453941345, -0.10914113372564316, -0.18632951378822327, -0.29611852765083313, -0.3392009139060974, -0.2683623135089874, -0.4254038333892822, -0.10567929595708847, -0.19113415479660034, 0.13420650362968445, 0.36098402738571167, -0.14502349495887756, -0.15035796165466309, -0.002108064480125904, 0.16018009185791016, -0.469032347202301, 0.03253226727247238, 0.06566006690263748, 0.23026426136493683, 0.0883295089006424, -0.07449769973754883, 0.03401884436607361, 0.4574601352214813, -0.1669485718011856, 0.08785566687583923, 0.09737662225961685, -0.2251967191696167, -0.37364286184310913, -0.016820862889289856, 0.1957819014787674, -0.3043117821216583, -0.18241479992866516, -0.256902813911438, -0.05836665257811546, 0.11011606454849243, -0.260466605424881, 0.04071884602308273, 0.024934494867920876, 0.17720933258533478, 0.3647127151489258, -0.4047941565513611, -0.16123919188976288, -0.19254758954048157, -0.009280029684305191, -0.09297298640012741, 0.24344724416732788, 0.06392834335565567, 0.43816059827804565, -0.31226855516433716, -0.007938697934150696, 0.15111608803272247, 0.28935807943344116, -1.1213921308517456, 0.17365778982639313, -0.142182394862175, 0.04222974181175232, 0.2248423546552658, 0.30968937277793884, 0.3495357632637024, -0.02357453852891922, 0.06986965239048004, -0.3813154399394989, -0.11883040517568588, 0.4501492977142334, 0.15933534502983093, 0.08456212282180786, 0.007752761244773865, 0.2527996301651001, -0.01866215094923973, -0.07960299402475357, -0.2650853395462036, 0.020453013479709625, -0.11765922605991364, 0.2741377055644989, -0.12686964869499207, -0.09973283112049103, 0.08595510572195053, -0.22662381827831268, 0.016899246722459793, 0.06219105422496796, -0.19447647035121918, -0.06680800765752792, -0.143680602312088, 0.21180188655853271, -0.02867630310356617, -0.24197450280189514, 0.11115044355392456, 0.04094734042882919, -0.2007032036781311, 0.1260417103767395, -0.028388269245624542, 0.3093132972717285, -0.07371656596660614, 0.21157638728618622, 0.5683368444442749, 0.02243513986468315, -0.20053187012672424, 0.08267199993133545, -0.026908479630947113, 0.6481401324272156, 0.09971742331981659, 0.41285449266433716, -0.18096815049648285, -0.015488557517528534, -0.20705437660217285, 0.3070143759250641, -0.06676188111305237, -0.2506660223007202, 0.3473500609397888, -0.14964893460273743, -0.1441102921962738, -0.023802608251571655, 0.3532019853591919, 0.36366769671440125, -0.16367001831531525, -0.0987512543797493, 0.13945984840393066, 0.052533671259880066, -0.3912108540534973, 0.0406721867620945, 0.10806471109390259, -0.05680680274963379, 0.050580501556396484, 0.36784785985946655, 0.2521848976612091, 0.3781631588935852, 0.015822533518075943, 0.05823219567537308, 0.18984578549861908, 0.18690292537212372, 0.1009843498468399, 0.6963252425193787, -0.17463284730911255, 0.08400258421897888, 0.45981675386428833, 0.2462669461965561, 0.20717579126358032, -0.08058201521635056, 0.23491650819778442, -0.004684070125222206, 0.3384931683540344, 0.0963292270898819, 0.30234038829803467, -0.27323031425476074, -0.18732109665870667, 0.11397092044353485, 0.03839410841464996, -0.09269344806671143, 0.33591142296791077, 0.48848551511764526, 0.005759093910455704, -0.04799894616007805, -0.06699305027723312, 0.3490697741508484, 0.1283694952726364, -0.029710663482546806, 0.18744169175624847, -0.2616686224937439, -0.3701866567134857, -0.2805122435092926, -0.29405316710472107, -0.14714249968528748, 0.47711271047592163, -0.08322328329086304, 0.11242277175188065, -0.228642076253891, 0.22147797048091888, 0.00465866643935442, 0.44743749499320984, -0.011835768818855286, 0.020522570237517357, 0.08795823901891708, -0.291625052690506, 0.16038604080677032, 0.37643182277679443, 0.6810594797134399, 0.2150314301252365, -0.29941120743751526, 0.029535561800003052, -0.13871480524539948, -0.03164344280958176, 0.17458340525627136, 0.13559335470199585, 0.2617887556552887, -0.09249934554100037, 0.29746657609939575, 0.07513017952442169, 0.003891870379447937, 0.023082120344042778, -0.21997617185115814, 0.2572869658470154, -0.03872249275445938, 0.7626434564590454, -0.25439077615737915, -0.2159513235092163, 0.11725375056266785, 0.1648068130016327, 0.09742805361747742, -0.020856047049164772, 0.18749408423900604, 0.2575363218784332, 0.1307535618543625, -0.16048815846443176, 0.024117253720760345, 0.01799008622765541, 0.29562467336654663, 0.4160698354244232, 0.5409519076347351, 0.018852271139621735, -0.09090280532836914, -0.5557607412338257, 0.1335931420326233, -0.2954983711242676, -0.10147008299827576, 0.5853028297424316, -0.0006332844495773315, 0.15555766224861145, 0.2369495928287506, 0.26873743534088135, -0.13165536522865295, -0.3562445342540741, 0.21158143877983093, -0.2996397614479065, 0.10149410367012024, -0.016590096056461334, -0.00620395690202713, -0.05892889201641083, -0.2343900501728058, 0.205275297164917, -0.1019255667924881, -0.048335425555706024, -0.23272156715393066, -0.2531912326812744, 0.1642942577600479, 0.032970353960990906, 0.5891050100326538, 0.18217606842517853, 0.2321144938468933, 0.000647030770778656, -0.18487675487995148, -0.10437645763158798, -0.29038700461387634, -0.37055766582489014, 0.44062790274620056, -0.2583461105823517, 0.12346243858337402, -0.17025041580200195, -0.18846073746681213, -0.3143104612827301, 0.15319767594337463, -0.11515757441520691, -0.05820433795452118, -0.23148036003112793, 0.15386000275611877, -0.24956285953521729, 0.0250832661986351, 0.17345458269119263, 0.05688002333045006, -0.03391892835497856, 0.2845543622970581, -0.1821429431438446, -0.6252738237380981, 0.5489287972450256, -0.060815852135419846, -0.1296713650226593, 0.16410374641418457, -0.04476528614759445, 0.05428248643875122, -0.09082715958356857, -0.3985230624675751, -0.28700244426727295, 0.38257527351379395, -0.008169924840331078, -0.1730785369873047, -0.0893271267414093, -0.15355128049850464, -0.19962607324123383, -0.13158662617206573, 0.25306135416030884, -0.2761399447917938, 0.12936316430568695, 0.0007358267903327942, -0.35531947016716003 ]
https://github.com/huggingface/datasets/issues/1894
Hi sam ! Indeed we can expect the performances to be very close since both MMapIndexedDataset and the `datasets` implem use memory mapping. With memory mapping what determines the I/O performance is the speed of your hard drive/SSD. In terms of performance we're pretty close to the optimal speed for reading text, even though I found recently that we could still slightly improve speed for big datasets (see [here](https://github.com/huggingface/datasets/issues/1803)). In terms of number of examples and example sizes, the only limit is the available disk space you have. I haven't used `psrecord` yet but it seems to be a very interesting tool for benchmarking. Currently for benchmarks we only have github actions to avoid regressions in terms of speed. But it would be cool to have benchmarks with comparisons with other dataset tools ! This would be useful to many people
benchmarking against MMapIndexedDataset
I am trying to benchmark my datasets based implementation against fairseq's [`MMapIndexedDataset`](https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L365) and finding that, according to psrecord, my `datasets` implem uses about 3% more CPU memory and runs 1% slower for `wikitext103` (~1GB of tokens). Questions: 1) Is this (basically identical) performance expected? 2) Is there a scenario where this library will outperform `MMapIndexedDataset`? (maybe more examples/larger examples?) 3) Should I be using different benchmarking tools than `psrecord`/how do you guys do benchmarks? Thanks in advance! Sam
141
benchmarking against MMapIndexedDataset I am trying to benchmark my datasets based implementation against fairseq's [`MMapIndexedDataset`](https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L365) and finding that, according to psrecord, my `datasets` implem uses about 3% more CPU memory and runs 1% slower for `wikitext103` (~1GB of tokens). Questions: 1) Is this (basically identical) performance expected? 2) Is there a scenario where this library will outperform `MMapIndexedDataset`? (maybe more examples/larger examples?) 3) Should I be using different benchmarking tools than `psrecord`/how do you guys do benchmarks? Thanks in advance! Sam Hi sam ! Indeed we can expect the performances to be very close since both MMapIndexedDataset and the `datasets` implem use memory mapping. With memory mapping what determines the I/O performance is the speed of your hard drive/SSD. In terms of performance we're pretty close to the optimal speed for reading text, even though I found recently that we could still slightly improve speed for big datasets (see [here](https://github.com/huggingface/datasets/issues/1803)). In terms of number of examples and example sizes, the only limit is the available disk space you have. I haven't used `psrecord` yet but it seems to be a very interesting tool for benchmarking. Currently for benchmarks we only have github actions to avoid regressions in terms of speed. But it would be cool to have benchmarks with comparisons with other dataset tools ! This would be useful to many people
[ -0.38104215264320374, -0.030588731169700623, -0.18135754764080048, 0.25040581822395325, -0.2935996651649475, -0.04670792818069458, 0.03982244431972504, 0.1909920871257782, -0.15054993331432343, -0.09039342403411865, -0.16343781352043152, 0.3356113135814667, 0.031131166964769363, -0.42263710498809814, 0.22010043263435364, -0.13105393946170807, 0.3650214970111847, 0.09212347865104675, -0.2799273133277893, 0.027571283280849457, -0.0007039457559585571, 0.05695152282714844, -0.2673869729042053, 0.029765402898192406, -0.24197232723236084, 0.038608618080616, -0.006601899862289429, 0.08452945947647095, -0.06991533190011978, -0.27942922711372375, 0.2004753053188324, 0.24122107028961182, 0.08968892693519592, 0.5924608111381531, -0.00011976526729995385, -0.1850561499595642, -0.023287393152713776, 0.1665838062763214, 0.044265441596508026, 0.37989896535873413, -0.3348767161369324, -0.2034231275320053, 0.16586445271968842, -0.13342483341693878, 0.16516274213790894, -0.20253749191761017, -0.044173143804073334, -0.7676188945770264, 0.07289343327283859, 0.15175029635429382, 0.0765773355960846, 0.45184987783432007, -0.41086941957473755, 0.09042598307132721, 0.08272390067577362, -0.04213026911020279, -0.1984526664018631, 0.23919302225112915, 0.5925350785255432, -0.03828836977481842, -0.041533228009939194, -0.034242965281009674, -0.2421227991580963, 0.06779749691486359, 0.1566680520772934, -0.054566025733947754, -0.22055484354496002, -0.015852831304073334, 0.1271638125181198, 0.5387346744537354, 0.24115131795406342, -0.42782750725746155, -0.26047444343566895, -0.32228633761405945, -0.25036531686782837, 0.061229534447193146, 0.13457830250263214, -0.20260591804981232, 0.009542621672153473, 0.03852603957056999, -0.576411783695221, 0.15218991041183472, 0.187447190284729, -0.08346772193908691, 0.083797886967659, 0.29705747961997986, 0.25200676918029785, 0.0690653994679451, 0.47802531719207764, -0.28114262223243713, 0.251144677400589, -0.39263859391212463, -0.1077355220913887, 0.07737015187740326, -0.5279675722122192, -0.2925717830657959, -0.1000032126903534, -0.07103484869003296, 0.12683981657028198, 0.3535190224647522, -0.07825236022472382, 0.4015812575817108, 0.44233396649360657, 0.08213701844215393, 0.13810156285762787, 0.3148055374622345, 0.11349499225616455, 0.12767459452152252, 0.09438631683588028, -0.10982166230678558, -0.361585795879364, 0.1438644826412201, 0.27586227655410767, 0.028509028255939484, -0.1372569054365158, -0.26067647337913513, -0.43542587757110596, -0.5328081846237183, -0.2650945782661438, 0.10216310620307922, 0.1557457596063614, -0.38738134503364563, -0.023165542632341385, 0.1626877784729004, -0.0804629847407341, 0.10549673438072205, -0.4629506468772888, 0.12845361232757568, -0.2905658483505249, -0.20790022611618042, -0.017897000536322594, 0.1329869031906128, -0.09841390699148178, 0.4099317789077759, 0.11279689520597458, -0.016004204750061035, 0.2330072522163391, -0.04018034785985947, 0.14722847938537598, 0.020394600927829742, 0.6089979410171509, -0.389660120010376, -0.009205132722854614, -0.05096138268709183, -0.02624194324016571, 0.10412533581256866, 0.0037976084277033806, 0.2796248197555542, -0.3651384711265564, -0.001690443605184555, -0.056900572031736374, -0.1275283396244049, 0.3806728720664978, 0.010118753649294376, -0.40409332513809204, -0.3670142590999603, -0.6880221962928772, 0.4135318398475647, -0.1943509727716446, -0.24009209871292114, 0.14148154854774475, -0.005790448747575283, -0.2251414954662323, -0.1442047357559204, 0.06855440139770508, -0.06520704180002213, -0.28233879804611206, 0.057785764336586, -0.25626999139785767, 0.09642018377780914, -0.12056635320186615, 0.42095935344696045, -0.3417024314403534, 0.2553824484348297, 0.03397423028945923, 0.11580193042755127, 0.2943269610404968, -0.5225216150283813, -0.4324800968170166, 0.004280801862478256, 0.24739742279052734, 0.23191216588020325, 0.013004302978515625, 0.11148875951766968, 0.38969916105270386, -0.2509155571460724, -0.06635254621505737, -0.018187567591667175, 0.14463292062282562, 0.2138112187385559, -0.13295207917690277, -0.37742090225219727, 0.16676665842533112, 0.17634239792823792, -0.20334705710411072, -0.3884897828102112, -0.08280324190855026, -0.2697424292564392, -0.07377448678016663, -0.11081535369157791, -0.24745982885360718, 0.06252248585224152, -0.04623495787382126, -0.21368743479251862, -0.03653857856988907, -0.33764973282814026, -0.06587149947881699, 0.2914368510246277, -0.23981241881847382, 0.02018970437347889, 0.32415130734443665, 0.033892467617988586, 0.063635915517807, -0.10582171380519867, 0.04091549664735794, -0.2654237449169159, -0.003236677497625351, -0.17289328575134277, 0.308971107006073, 0.13283178210258484, -0.3076332211494446, -0.17965441942214966, 0.17380096018314362, 0.00901510939002037, 0.1496797502040863, -0.03372907638549805, 0.33085379004478455, -0.16294991970062256, -0.10257363319396973, 0.14624163508415222, -0.22285185754299164, 0.01446663960814476, -0.1926179826259613, 0.07575300335884094, 0.212227463722229, 0.3306456208229065, 0.5596899390220642, 0.4596720337867737, -0.04218483716249466, -0.2652949392795563, 0.21747927367687225, 0.06667398661375046, 0.16246137022972107, -0.19515609741210938, -0.15417535603046417, 0.6028690338134766, 0.32909080386161804, 0.41674983501434326, 0.0896758884191513, -0.40299415588378906, -0.24956971406936646, 0.16329854726791382, 0.19101223349571228, 0.22340774536132812, 0.1918012946844101, 0.50141841173172, 0.38155752420425415, 0.1069941595196724, 0.22819440066814423, 0.19577418267726898, 0.40315788984298706, -0.013092003762722015, -0.07809445261955261, 0.07316799461841583, -0.4537007510662079, -0.2498406022787094, 0.3582509756088257, -0.008058562874794006, 0.6080090999603271, 0.04529387503862381, 0.3489488959312439, -0.020273879170417786, 0.03841197490692139, 0.21396788954734802, 0.27884140610694885, 0.1956562101840973, -0.32311388850212097, -0.21225988864898682, 0.08175400644540787, -0.09962290525436401, 0.095718152821064, -0.3293740153312683, -0.16097617149353027, 0.13628484308719635, -0.026514112949371338, 0.18899205327033997, -0.142336905002594, 0.263685405254364, 0.15149140357971191, -0.09198783338069916, -0.23305052518844604, -0.21900048851966858, 0.029168035835027695, 0.056897055357694626, 0.12787896394729614, 0.0836857333779335, -0.018044836819171906, 0.25563889741897583, -0.5038366317749023, -0.34347453713417053, 0.13687920570373535, -0.10461530089378357, -0.42804044485092163, 0.049180615693330765, 0.4018222391605377, 0.25014638900756836, 0.34358587861061096, -0.017182480543851852, 0.1546420305967331, -0.005922378972172737, -0.05462641268968582, 0.06549929827451706, -0.030525831505656242, 0.23429818451404572, -0.24007682502269745, -0.2851139008998871, -0.3815671503543854, -0.20688998699188232, -0.019486011937260628, -0.21052704751491547, -0.07064861804246902, -0.3994480073451996, 0.04269629344344139, -0.006172291934490204, 0.3142234683036804, -0.03832860663533211, -0.17157775163650513, 0.024789072573184967, 0.15712803602218628, -0.15209513902664185, 0.0684838742017746, -0.6228305101394653, -0.004654325544834137, 0.3014574944972992, -0.33417558670043945, 0.24479146301746368, -0.015212533995509148, -0.6034364104270935, 0.11935162544250488, -0.02817426063120365, -0.1584167182445526, -0.031268730759620667, 0.06334827095270157, 0.27923592925071716, 0.1650237739086151, -0.2042658030986786, 0.0022455379366874695, -0.14477308094501495, 0.2476501613855362, 0.2057827115058899, 0.12366513162851334, 0.34628796577453613, -0.07077056914567947, 0.0550052747130394, 0.0003556385636329651, -0.12020477652549744, 0.017231101170182228, -0.22816619277000427, 0.08500126004219055, -0.010646580718457699, 0.24285556375980377, -0.13171444833278656, 0.9007666707038879, 0.3081701099872589, -0.25668156147003174, -0.036222849041223526, -0.11605434119701385, -0.0649498999118805, -0.20225101709365845, -0.0032780617475509644, -0.13138306140899658, 0.08369914442300797, 0.08359664678573608, 0.4366495907306671, 0.06728833168745041, -0.19215023517608643, -0.21681815385818481, 0.24447768926620483, -0.11675643920898438, -0.1476193517446518, 0.1422244906425476, 0.0472920797765255, 0.0865885466337204, 0.06973003596067429, 0.24080878496170044, -0.44798630475997925, -0.32571232318878174, 0.1657262146472931, -0.10584072768688202, -0.26876595616340637, -0.20806819200515747, -0.45989739894866943, -0.22539226710796356, -0.44179654121398926, 0.36985504627227783, 0.22837533056735992, 0.3858376145362854, 0.04193846881389618, -0.0493476502597332, 0.10588596761226654, -0.07169438153505325, -0.15674686431884766, -0.18422849476337433, -0.251206636428833, 0.12289754301309586, -0.11940992623567581, -0.28044766187667847, 0.05939720571041107, -0.12874898314476013, 0.07305379211902618, 0.17540417611598969, 0.09344828128814697, -0.11357749998569489, -0.14531338214874268, -0.17061847448349, 0.11410754919052124, 0.04405432939529419, -0.15581291913986206, -0.14954501390457153, 0.026927009224891663, 0.2580500543117523, 0.13139820098876953, -0.3343253433704376, 0.02457955852150917, -0.08106348663568497, 0.09452305734157562, -0.2703288495540619, -0.046945370733737946, 0.4475468099117279, 0.5082722902297974, 0.23009906709194183, -0.41443347930908203, 0.4280778169631958, 0.1398909091949463, -0.21952222287654877, 0.28525346517562866, 0.22221948206424713, 0.11477941274642944, 0.1803375482559204, 0.05127350240945816, 0.006185080856084824, 0.16189482808113098, 0.054343339055776596, 0.06152599677443504, 0.15960808098316193, -0.1863076537847519, -0.09375886619091034, -0.21379290521144867, 0.018727567046880722, 0.2513187527656555, 0.3744758367538452, -0.3786369860172272, -0.30733340978622437, 0.6385369300842285, 0.5235546231269836, -0.09657652676105499, 0.05258002504706383, 0.012998519465327263, -0.1762465387582779, 0.054487090557813644, 0.21875955164432526, 0.8930149078369141, -0.11436168849468231, 0.1361534595489502, -0.03926706686615944, -0.08607926219701767, 0.3093453645706177, -0.3286457657814026, -0.1282595992088318, -0.13298386335372925, -0.3400753438472748, 0.004399105906486511, -0.15692360699176788, 0.3266393840312958, 0.2135234773159027, -0.000569075345993042, 0.31743356585502625, 0.32064545154571533, -0.15865789353847504, -0.045404691249132156, 0.3780544400215149, 0.17873598635196686, -0.1435992270708084, -0.1427612006664276, 0.0819605365395546, 0.06289417296648026, -0.17365682125091553, 0.09266433119773865, 0.10848468542098999, -0.4816478490829468, 0.3293638527393341, -0.4015115797519684, -0.25099998712539673, 0.007993295788764954, 0.23961853981018066, -0.07973974943161011, -0.1534736454486847, 0.18384069204330444, -0.09685680270195007, 0.18135374784469604, -0.1740347445011139, -0.16425631940364838, 0.1746464967727661, 0.06997321546077728, 0.37814539670944214, 0.4506777822971344, -0.23961184918880463, -0.06316916644573212, -0.13624277710914612, -0.1378515064716339, 0.24594633281230927, 0.007949724793434143, -0.47419965267181396, -0.20629481971263885, 0.037129662930965424, 0.1810426115989685, -0.09232687950134277, -0.14559558033943176, 0.17212246358394623, -0.05628393590450287, 0.12444749474525452, 0.03927750140428543, 0.16777464747428894, 0.033730391412973404, 0.8375979065895081, -0.21170824766159058, -0.30555111169815063, -0.17864853143692017, 0.5786250829696655, 0.06129924952983856, -0.3443078100681305, 0.18975189328193665, -0.06016320362687111, -0.20266354084014893, -0.11241580545902252, 0.167984738945961, 0.14353039860725403, -0.12071104347705841, -0.013745920732617378, -0.4844605326652527, -0.13546159863471985, 0.30083438754081726, 0.18863050639629364, 0.3548614978790283, -0.21952734887599945, -0.06357908993959427, 0.1740075945854187, -0.284173846244812, 0.20569169521331787, 0.16258224844932556, 0.26142460107803345, -0.19527307152748108, -0.21619060635566711, -0.2001565396785736, -0.014164688065648079, -0.13118918240070343, 0.12161029875278473, 0.03551739454269409, 0.012530282139778137, -0.08951371163129807, -0.002519712084904313, 0.2382042407989502, 0.14585012197494507, -0.13384678959846497, 0.11993223428726196, -0.2701045274734497, -0.0916060209274292, -0.008174799382686615, 0.19487911462783813, -0.11867474019527435, -0.4352925419807434, -0.006552845239639282, 0.06583081185817719, 0.04438323900103569, -0.2980179786682129, -0.10766292363405228, -0.33848679065704346, -0.12099131941795349, -0.212324321269989, 0.4334198832511902, -0.07725600898265839, -0.18247294425964355, 0.30830299854278564, -0.09121498465538025, 0.1343858689069748, 0.15671055018901825, 0.30191755294799805, 0.10517464578151703, -0.21730369329452515, 0.2668795585632324, 0.26121237874031067, 0.21873454749584198, -0.10413932800292969, 0.161105215549469, -0.13357459008693695, 0.012031033635139465, 0.3733326196670532, 0.1930890679359436, 0.7797373533248901, -0.008735619485378265, -0.46194693446159363, 0.23433589935302734, 0.05841473489999771, 0.24200326204299927, -0.257457971572876, 0.318244069814682, 0.1881203055381775, 0.10999166965484619, 0.10342247039079666, 0.3604651689529419, 0.11817793548107147, 0.22915634512901306, -0.11957409977912903, 0.4428495764732361, 0.04720744490623474, 0.17105460166931152, -0.41308271884918213, 0.10406963527202606, -0.034194327890872955, 0.12350748479366302, 0.21687063574790955, 0.2585464417934418, 0.1693548858165741, -0.26043251156806946, 0.694469153881073, 0.42546769976615906, 0.25417959690093994, -0.028978686779737473, -0.20219120383262634, 0.30917495489120483, 0.39242756366729736, 0.14014698565006256, 0.269655704498291, 0.21365651488304138, 0.3649649918079376, -0.20425888895988464, -0.09722879528999329, -0.17676866054534912, -0.015559479594230652, 0.1200895681977272, -0.42845869064331055, 0.3444973826408386, -0.14806696772575378, 0.0189349502325058, 0.17702530324459076, -0.24061226844787598, -0.1653127372264862, 0.18389809131622314, -0.13204950094223022, 0.08446310460567474, -0.10658760368824005, -0.12268461287021637, 0.0567375011742115, 0.16785858571529388, 0.07000495493412018, 0.16532829403877258, 0.06134258210659027, -0.06315949559211731, 0.24992236495018005, 0.3911225199699402, 0.07047230005264282, -0.14906169474124908, -0.5799349546432495, -0.04420502856373787, -0.25407323241233826, 0.24819287657737732, 0.1321779191493988, 0.20590171217918396, -0.3404233455657959, -0.1203942820429802, 0.2132733017206192, 0.03821570426225662, 0.015414230525493622, -0.5190166234970093, -0.2173963487148285, -0.005025787279009819, -0.37235793471336365, -0.3217618465423584, 0.019056547433137894, 0.17192323505878448, 0.10210296511650085, 0.13257645070552826, -0.07892454415559769, -0.3048039674758911, 0.14188137650489807, -0.20750708878040314, -0.08795013278722763, 0.11460543423891068, 0.029284648597240448, -0.13552677631378174, 0.644628643989563, 0.23457403481006622, 0.1028292179107666, -0.16352176666259766, -0.41548165678977966, -0.35127222537994385, 0.023246873170137405, -0.10053478181362152, -0.11745549738407135, 0.14585860073566437, 0.2632143795490265, -0.12203039228916168, 0.32092538475990295, 0.3944301903247833, 0.5208834409713745, -0.18630951642990112, 0.11976713687181473, -0.43083664774894714, -0.006904114503413439, -0.36676037311553955, -0.26191723346710205, -0.02679463103413582, -0.06476815044879913, 0.05523218959569931, -0.11100804805755615, -0.1463378518819809, -0.12837955355644226, -0.06591056287288666, 0.09904351830482483, 0.08586814999580383, 0.5319932103157043, 0.25021234154701233, 0.5302526950836182, 0.31087106466293335, -0.07150489836931229, -0.07066098600625992, 0.13761526346206665, -0.06805295497179031, 0.16174109280109406, -0.06664276123046875, 0.04703590273857117, -0.1838988959789276, 0.31310713291168213, 0.12432155758142471, 0.6157351732254028, 0.1630045771598816, -0.3072158098220825, -0.17447766661643982, -0.2664986550807953, 0.27681758999824524, 0.0297352597117424, -0.07829833775758743, 0.3815820515155792, 0.11740177869796753, 0.49846845865249634, -0.13551609218120575, 0.1612101048231125, 0.13913561403751373, -0.44574594497680664, 0.05670115351676941, -0.1604025661945343, 0.02193952351808548, 0.15936492383480072, -0.06395959854125977, -0.5078743100166321, -0.3242853283882141, 0.3920133709907532, -0.014635835774242878, 0.14427267014980316, 0.2979815900325775, 0.0034142397344112396, 0.136866956949234, -0.13578246533870697, 0.06855923682451248, -0.34177929162979126, -0.010283410549163818, -0.04273722320795059, -0.047232285141944885 ]
https://github.com/huggingface/datasets/issues/1894
Also I would be interested to know what data types `MMapIndexedDataset` supports. Is there some documentation somewhere ?
benchmarking against MMapIndexedDataset
I am trying to benchmark my datasets based implementation against fairseq's [`MMapIndexedDataset`](https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L365) and finding that, according to psrecord, my `datasets` implem uses about 3% more CPU memory and runs 1% slower for `wikitext103` (~1GB of tokens). Questions: 1) Is this (basically identical) performance expected? 2) Is there a scenario where this library will outperform `MMapIndexedDataset`? (maybe more examples/larger examples?) 3) Should I be using different benchmarking tools than `psrecord`/how do you guys do benchmarks? Thanks in advance! Sam
18
benchmarking against MMapIndexedDataset I am trying to benchmark my datasets based implementation against fairseq's [`MMapIndexedDataset`](https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L365) and finding that, according to psrecord, my `datasets` implem uses about 3% more CPU memory and runs 1% slower for `wikitext103` (~1GB of tokens). Questions: 1) Is this (basically identical) performance expected? 2) Is there a scenario where this library will outperform `MMapIndexedDataset`? (maybe more examples/larger examples?) 3) Should I be using different benchmarking tools than `psrecord`/how do you guys do benchmarks? Thanks in advance! Sam Also I would be interested to know what data types `MMapIndexedDataset` supports. Is there some documentation somewhere ?
[ -0.26232051849365234, -0.0587807297706604, -0.18960949778556824, 0.27778807282447815, -0.22772571444511414, -0.07376205921173096, 0.011163502931594849, 0.13576093316078186, -0.2933737635612488, -0.15680250525474548, -0.15320037305355072, 0.377422034740448, 0.0027405470609664917, -0.37090003490448, 0.22340692579746246, -0.13184987008571625, 0.35974666476249695, 0.10272763669490814, -0.2230796217918396, 0.03881499916315079, 0.0047569796442985535, 0.09075678139925003, -0.38782674074172974, -0.0007552169263362885, -0.30899402499198914, 0.1608976423740387, 0.02377452701330185, 0.12524931132793427, -0.0787539854645729, -0.3271166682243347, 0.2054043412208557, 0.2334432601928711, 0.01192590594291687, 0.624349057674408, -0.00012317474465817213, -0.2159653753042221, -0.006099030375480652, 0.11452428251504898, 0.12928122282028198, 0.4733530879020691, -0.35536766052246094, -0.18734997510910034, 0.1760198175907135, -0.06435941159725189, 0.16720202565193176, -0.1405494213104248, -0.15468712151050568, -0.7546442747116089, 0.06632279604673386, 0.16683447360992432, 0.06190836429595947, 0.38602882623672485, -0.40224239230155945, 0.09223362058401108, 0.08537356555461884, -0.024026058614253998, -0.20726735889911652, 0.1890346258878708, 0.5677086710929871, -0.0037731900811195374, -0.0012585073709487915, -0.057458482682704926, -0.19341275095939636, 0.01760834828019142, 0.10636845231056213, -0.09357253462076187, -0.18979549407958984, -0.08069486916065216, 0.16029909253120422, 0.5714415311813354, 0.30335697531700134, -0.38536182045936584, -0.194488525390625, -0.34692907333374023, -0.2907652258872986, 0.15598449110984802, 0.1440189778804779, -0.30418160557746887, -0.0016854256391525269, 0.05269768834114075, -0.5018880367279053, 0.18857328593730927, 0.13840480148792267, -0.1666799932718277, 0.0034871771931648254, 0.41237473487854004, 0.20595616102218628, 0.053410038352012634, 0.46385377645492554, -0.2791367769241333, 0.2155863642692566, -0.2781585454940796, -0.09032262116670609, 0.10101880133152008, -0.5098444223403931, -0.229969322681427, -0.05205472558736801, -0.08638717979192734, 0.1356036514043808, 0.3474750220775604, -0.20328766107559204, 0.5046433806419373, 0.42981791496276855, 0.08845962584018707, 0.10678668320178986, 0.23436187207698822, 0.15117177367210388, 0.017308197915554047, 0.08049410581588745, -0.17727500200271606, -0.37287911772727966, 0.0960131287574768, 0.17236830294132233, 0.06045856699347496, -0.21056699752807617, -0.23817317187786102, -0.3924919366836548, -0.4892417788505554, -0.28004032373428345, 0.04898614436388016, 0.31603774428367615, -0.34497717022895813, 0.045167360454797745, 0.20407675206661224, 0.05964022874832153, 0.18099668622016907, -0.4886457920074463, 0.05530491843819618, -0.28046172857284546, -0.2519146203994751, 0.005338679999113083, 0.06127007305622101, -0.09322623908519745, 0.33040615916252136, 0.11704553663730621, -0.05383715778589249, 0.25955477356910706, -0.06882494688034058, 0.23484736680984497, 0.056651756167411804, 0.512032151222229, -0.30358055233955383, -0.016403183341026306, 0.02290237694978714, -0.11281772702932358, 0.1444651484489441, 0.02958323061466217, 0.38739505410194397, -0.36379870772361755, 0.0013557951897382736, -0.12069901823997498, -0.17224179208278656, 0.3445298671722412, -0.013316276483237743, -0.32692307233810425, -0.37362414598464966, -0.5750114917755127, 0.35506629943847656, -0.16660423576831818, -0.2867624759674072, 0.20659247040748596, -0.0011881524696946144, -0.17394676804542542, -0.23829421401023865, 0.025313854217529297, -0.12416543066501617, -0.23534822463989258, 0.08668360114097595, -0.3662695288658142, -0.007920993492007256, -0.10654012113809586, 0.3577502369880676, -0.3426889479160309, 0.21145780384540558, 0.01397935301065445, 0.16182918846607208, 0.3885023295879364, -0.5090396404266357, -0.43999525904655457, -0.05192147567868233, 0.22210565209388733, 0.26913154125213623, 0.0002893507480621338, 0.13114583492279053, 0.2970207929611206, -0.27536481618881226, -0.06258034706115723, 0.02554333209991455, 0.1016712486743927, 0.2055301070213318, -0.12068641185760498, -0.26747989654541016, 0.28513219952583313, 0.1665533483028412, -0.23900794982910156, -0.38180768489837646, -0.1458149254322052, -0.2594705820083618, -0.0230306014418602, -0.06767427921295166, -0.23810887336730957, 0.01099611446261406, 0.058034759014844894, -0.18805113434791565, -0.018922559916973114, -0.2777182161808014, -0.02373126894235611, 0.29021456837654114, -0.25651034712791443, -0.043031323701143265, 0.34908467531204224, -0.030024830251932144, 0.015180230140686035, -0.10608194768428802, 0.020804863423109055, -0.24914520978927612, -0.005792923271656036, -0.13215714693069458, 0.25936853885650635, 0.12326259166002274, -0.3601060211658478, -0.22013194859027863, 0.26964449882507324, -0.07334399968385696, 0.23688626289367676, -0.11861535161733627, 0.3427738547325134, -0.11570465564727783, -0.06642549484968185, 0.22609898447990417, -0.1223696768283844, -0.045459844172000885, -0.18641158938407898, 0.10436534136533737, 0.32413631677627563, 0.25301051139831543, 0.5111229419708252, 0.47407692670822144, -0.11859165877103806, -0.16773845255374908, 0.12932775914669037, 0.11047473549842834, 0.16467632353305817, -0.22254204750061035, -0.09317323565483093, 0.6572033762931824, 0.32653144001960754, 0.3121192753314972, 0.05605141818523407, -0.368283748626709, -0.18892419338226318, 0.2153061032295227, 0.1976001262664795, 0.1536179482936859, 0.1227063238620758, 0.4277953505516052, 0.35694411396980286, 0.0901559442281723, 0.20183978974819183, 0.36113637685775757, 0.43673276901245117, 0.012209311127662659, -0.0282975435256958, 0.1319124698638916, -0.40842124819755554, -0.28102850914001465, 0.30353444814682007, -0.057142019271850586, 0.6194140911102295, -0.00013377144932746887, 0.3581348657608032, 0.006008010357618332, 0.11619098484516144, 0.15310367941856384, 0.3110366463661194, 0.19072821736335754, -0.34975138306617737, -0.15049026906490326, 0.10735559463500977, -0.08778838813304901, 0.14047637581825256, -0.24166789650917053, -0.16745197772979736, 0.15163084864616394, -0.031149961054325104, 0.2706888020038605, -0.21015769243240356, 0.2350761592388153, 0.18186746537685394, -0.1810312122106552, -0.24064797163009644, -0.2521360218524933, 0.045776721090078354, -0.008892780169844627, 0.17075400054454803, 0.08548364788293839, -0.01889577880501747, 0.31483227014541626, -0.3668529987335205, -0.3901953101158142, 0.13757219910621643, -0.09290207922458649, -0.46705615520477295, 0.04594902694225311, 0.4081195294857025, 0.19701074063777924, 0.30884799361228943, 0.06781559437513351, 0.21024322509765625, -0.0006255097687244415, -0.1477910578250885, 0.06007911637425423, -0.11218518018722534, 0.11307696253061295, -0.1586785614490509, -0.33792251348495483, -0.37254253029823303, -0.1332513689994812, -0.050933655351400375, -0.21970954537391663, -0.006084039807319641, -0.3206317126750946, 0.054592281579971313, -0.017692286521196365, 0.17680934071540833, 0.0380963571369648, -0.153030663728714, 0.09442321956157684, 0.15118075907230377, -0.18556012213230133, 0.13273188471794128, -0.6275153756141663, -0.06942225247621536, 0.2902388572692871, -0.41445106267929077, 0.21881932020187378, -0.10595634579658508, -0.6133033037185669, 0.17533990740776062, -0.07848268747329712, -0.20600064098834991, 0.001224808394908905, 0.12811784446239471, 0.2923302948474884, 0.11408556997776031, -0.18641918897628784, -0.007726360112428665, -0.02482958883047104, 0.21917177736759186, 0.17362694442272186, 0.08189251273870468, 0.3506794273853302, -0.127230703830719, 0.06517801433801651, -0.0971103385090828, -0.10865099728107452, -0.0215861015021801, -0.26661092042922974, 0.13354232907295227, -0.06960862874984741, 0.20998868346214294, -0.15528228878974915, 0.7983130812644958, 0.29433566331863403, -0.17119140923023224, -0.025108564645051956, -0.11546561866998672, -0.034189917147159576, -0.22144769132137299, 0.03465382754802704, -0.09828624874353409, 0.11609301716089249, 0.1295558661222458, 0.5040055513381958, 0.042098477482795715, -0.20555226504802704, -0.23707306385040283, 0.21036994457244873, -0.13819269835948944, -0.12554264068603516, 0.16171738505363464, 0.09161943197250366, 0.1419386863708496, 0.04232398420572281, 0.230296328663826, -0.41816532611846924, -0.29263240098953247, 0.10915810614824295, -0.04081077128648758, -0.23047247529029846, -0.2813102602958679, -0.3877122402191162, -0.2973516285419464, -0.43285229802131653, 0.382094144821167, 0.18414804339408875, 0.49014756083488464, 0.06670180708169937, -0.04956315830349922, 0.19840173423290253, -0.03361606225371361, -0.12581701576709747, -0.18760691583156586, -0.26991087198257446, 0.19206203520298004, -0.13287308812141418, -0.3253297209739685, 0.03362420201301575, -0.09570381790399551, 0.16807447373867035, 0.16106387972831726, 0.014723517931997776, -0.12746213376522064, -0.13739866018295288, -0.27897346019744873, 0.03318766877055168, 0.02628614753484726, -0.1226213127374649, -0.2699662446975708, -0.01818622648715973, 0.36010465025901794, 0.01976574957370758, -0.32711032032966614, 0.049405645579099655, -0.06900325417518616, 0.18616396188735962, -0.24099180102348328, -0.034374456852674484, 0.3886442184448242, 0.5452686548233032, 0.28174278140068054, -0.4422086477279663, 0.31408607959747314, 0.10736379772424698, -0.2230246365070343, 0.23490512371063232, 0.19264362752437592, 0.16154958307743073, 0.2590867280960083, 0.117810919880867, -0.023158397525548935, 0.15599751472473145, 0.12235075980424881, 0.0014794059097766876, 0.1502126157283783, -0.23218104243278503, -0.1356610357761383, -0.17500680685043335, 0.0024257712066173553, 0.2685617208480835, 0.24770833551883698, -0.435398668050766, -0.3170282244682312, 0.6888301968574524, 0.43008536100387573, -0.09381464868783951, 0.034357186406850815, 0.07938140630722046, -0.22496023774147034, 0.034474074840545654, 0.22076627612113953, 0.9849884510040283, 0.019546840339899063, 0.17921322584152222, 0.06784515082836151, -0.06571540236473083, 0.28166070580482483, -0.3302944302558899, -0.11681045591831207, -0.15565872192382812, -0.29017767310142517, -0.0779816210269928, -0.16154596209526062, 0.29683181643486023, 0.11337442696094513, -0.01638546586036682, 0.24151365458965302, 0.17051967978477478, -0.156266450881958, -0.007840089499950409, 0.34917113184928894, 0.2862446904182434, -0.04304644465446472, -0.20800501108169556, 0.07388079166412354, 0.10039779543876648, -0.1788128763437271, 0.09355428069829941, 0.07360997796058655, -0.44950735569000244, 0.27253258228302, -0.43725156784057617, -0.320145845413208, 0.10954547673463821, 0.25331202149391174, 0.015576982870697975, -0.1597277671098709, 0.17609168589115143, -0.2382444590330124, 0.24362877011299133, -0.1943279355764389, -0.20941530168056488, 0.1973569095134735, 0.09142471849918365, 0.3858465552330017, 0.3977943956851959, -0.2459922581911087, -0.10211005061864853, -0.14354673027992249, -0.12167491018772125, 0.27745240926742554, -0.015242904424667358, -0.5284810662269592, -0.27790144085884094, 0.15353205800056458, 0.2374778389930725, -0.06953563541173935, -0.20802554488182068, 0.14147675037384033, -0.029507465660572052, 0.08974285423755646, 0.02745576947927475, 0.14249810576438904, -0.021718017756938934, 0.8859038949012756, -0.1997339278459549, -0.2523295283317566, -0.13233840465545654, 0.5498279929161072, 0.09271950274705887, -0.39139416813850403, 0.15131956338882446, -0.1264464259147644, -0.21214891970157623, -0.09676917642354965, 0.1890246421098709, 0.10803432017564774, -0.042337946593761444, -0.09246833622455597, -0.4025079309940338, -0.1561020314693451, 0.32264244556427, 0.23225605487823486, 0.280673086643219, -0.15811756253242493, -0.14623039960861206, 0.16242894530296326, -0.2486475706100464, 0.15823934972286224, 0.048860814422369, 0.21073144674301147, -0.2525596618652344, -0.11543518304824829, -0.16535797715187073, -0.02042360231280327, -0.11059074103832245, 0.1441795527935028, 0.10885752737522125, 0.04452057555317879, -0.12105465680360794, 0.011502193287014961, 0.22810038924217224, 0.19040289521217346, -0.16491691768169403, 0.25223198533058167, -0.30120474100112915, -0.056966230273246765, -0.003637954592704773, 0.2221195101737976, -0.031983815133571625, -0.4015706777572632, -0.04369976744055748, 0.13581252098083496, -0.042588748037815094, -0.19251373410224915, -0.1190371960401535, -0.37401282787323, -0.07970298081636429, -0.2223743349313736, 0.4970266819000244, -0.057312604039907455, -0.09838235378265381, 0.2753206193447113, -0.05413389205932617, 0.12418201565742493, 0.2635471224784851, 0.2435029298067093, 0.03758123517036438, -0.2240670621395111, 0.3111833930015564, 0.3066110610961914, 0.2467314898967743, -0.15251559019088745, 0.16617557406425476, -0.13517439365386963, 0.06428676843643188, 0.32673826813697815, 0.17742213606834412, 0.819606602191925, -0.05648975819349289, -0.4774511456489563, 0.2959795594215393, 0.017035387456417084, 0.17517220973968506, -0.3129904866218567, 0.3569064140319824, 0.20606888830661774, 0.03126503527164459, 0.0897599309682846, 0.4130362868309021, 0.10846361517906189, 0.24236473441123962, -0.08688235282897949, 0.5108747482299805, 0.1430852860212326, 0.18811443448066711, -0.449584037065506, -0.008331552147865295, -0.06444183737039566, 0.13680586218833923, 0.2627198100090027, 0.2217084765434265, 0.24800235033035278, -0.26841509342193604, 0.6961629390716553, 0.438524454832077, 0.1038484126329422, -0.1020706295967102, -0.19352909922599792, 0.28406307101249695, 0.4061126112937927, 0.17303842306137085, 0.27699148654937744, 0.19436483085155487, 0.3954155743122101, -0.22866156697273254, -0.09199678152799606, -0.1883072853088379, 0.06226511299610138, 0.11419570446014404, -0.4302680492401123, 0.41575533151626587, -0.15721943974494934, 0.011182725429534912, 0.0721842423081398, -0.2298717498779297, -0.15696971118450165, 0.2616046965122223, -0.07627999782562256, 0.1084907129406929, -0.09317247569561005, -0.14743517339229584, 0.08430612087249756, 0.18154169619083405, 0.11872752010822296, 0.17502401769161224, 0.1565622240304947, -0.018647421151399612, 0.3655470609664917, 0.23797370493412018, 0.06923314929008484, -0.06098638102412224, -0.6656445860862732, -0.0637141540646553, -0.3324422240257263, 0.2670287489891052, 0.14113542437553406, 0.2664566934108734, -0.2655002176761627, -0.08788689970970154, 0.1292441338300705, 0.015682164579629898, 0.09001046419143677, -0.47029346227645874, -0.12474141269922256, 0.043483104556798935, -0.39784136414527893, -0.2820216715335846, -0.0617983415722847, 0.234882652759552, 0.042859166860580444, 0.14047656953334808, -0.06338778138160706, -0.373019814491272, 0.07605914771556854, -0.10498550534248352, -0.07165521383285522, 0.1470344215631485, -0.002482069656252861, -0.0942310243844986, 0.69941246509552, 0.06535698473453522, 0.06189208850264549, -0.07996155321598053, -0.5321532487869263, -0.4118785858154297, 0.06676262617111206, -0.032995130866765976, -0.1383027732372284, 0.19418902695178986, 0.257925420999527, -0.10623930394649506, 0.2881214916706085, 0.4280995726585388, 0.5550521612167358, -0.2165675014257431, 0.04257906600832939, -0.4298309087753296, 0.03920402750372887, -0.3841670751571655, -0.29630565643310547, -0.090596504509449, -0.049123041331768036, 0.1268496811389923, -0.12947623431682587, -0.12055327743291855, -0.13579687476158142, -0.17881552875041962, 0.06649186462163925, 0.17100924253463745, 0.5717975497245789, 0.3197729289531708, 0.46993502974510193, 0.319130003452301, -0.11818383634090424, -0.15926046669483185, 0.11904957890510559, -0.05036775767803192, 0.15666991472244263, -0.05353017896413803, 0.026894286274909973, -0.1764746904373169, 0.30744653940200806, 0.081419438123703, 0.6996271014213562, 0.14894773066043854, -0.3488848805427551, -0.18896928429603577, -0.21721753478050232, 0.20144405961036682, 0.07308480888605118, -0.13782675564289093, 0.38309693336486816, 0.14128828048706055, 0.5235022902488708, -0.17283901572227478, 0.15284043550491333, 0.30736517906188965, -0.48607364296913147, -0.053276121616363525, -0.16880199313163757, 0.08787339925765991, 0.1353636384010315, -0.0636114552617073, -0.5485002994537354, -0.35539257526397705, 0.33901405334472656, 0.06168545410037041, 0.14766135811805725, 0.2592874765396118, -0.09020079672336578, 0.09793850779533386, -0.19532184302806854, 0.027497030794620514, -0.3222487270832062, 0.025342322885990143, -0.01943398267030716, -0.06213635206222534 ]
https://github.com/huggingface/datasets/issues/1894
no docs haha, it's written to support integer numpy arrays. You can build one in fairseq with, roughly: ```bash wget https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-103-raw-v1.zip unzip wikitext-103-raw-v1.zip export dd=$HOME/fairseq-py/wikitext-103-raw export mm_dir=$HOME/mmap_wikitext2 mkdir -p gpt2_bpe wget -O gpt2_bpe/encoder.json https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/encoder.json wget -O gpt2_bpe/vocab.bpe https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/vocab.bpe wget -O gpt2_bpe/dict.txt https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/dict.txt for SPLIT in train valid; do \ python -m examples.roberta.multiprocessing_bpe_encoder \ --encoder-json gpt2_bpe/encoder.json \ --vocab-bpe gpt2_bpe/vocab.bpe \ --inputs /scratch/stories_small/${SPLIT}.txt \ --outputs /scratch/stories_small/${SPLIT}.bpe \ --keep-empty \ --workers 60; \ done mkdir -p $mm_dir fairseq-preprocess \ --only-source \ --srcdict gpt2_bpe/dict.txt \ --trainpref $dd/wiki.train.bpe \ --validpref $dd/wiki.valid.bpe \ --destdir $mm_dir \ --workers 60 \ --dataset-impl mmap ``` I'm noticing in my benchmarking that it's much smaller on disk than arrow (200mb vs 900mb), and that both incur significant cost by increasing the number of data loader workers. This somewhat old [post](https://ray-project.github.io/2017/10/15/fast-python-serialization-with-ray-and-arrow.html) suggests there are some gains to be had from using `pyarrow.serialize(array).tobuffer()`. I haven't yet figured out how much of this stuff `pa.Table` does under the hood. The `MMapIndexedDataset` bottlenecks we are working on improving (by using arrow) are: 1) `MMapIndexedDataset`'s index, which stores offsets, basically gets read in its entirety by each dataloading process. 2) we have separate, identical, `MMapIndexedDatasets` on each dataloading worker, so there's redundancy there; we wonder if there is a way that arrow can somehow dedupe these in shared memory. It will take me a few hours to get `MMapIndexedDataset` benchmarks out of `fairseq`/onto a branch in this repo, but I'm happy to invest the time if you're interested in collaborating on some performance hacking.
benchmarking against MMapIndexedDataset
I am trying to benchmark my datasets based implementation against fairseq's [`MMapIndexedDataset`](https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L365) and finding that, according to psrecord, my `datasets` implem uses about 3% more CPU memory and runs 1% slower for `wikitext103` (~1GB of tokens). Questions: 1) Is this (basically identical) performance expected? 2) Is there a scenario where this library will outperform `MMapIndexedDataset`? (maybe more examples/larger examples?) 3) Should I be using different benchmarking tools than `psrecord`/how do you guys do benchmarks? Thanks in advance! Sam
249
benchmarking against MMapIndexedDataset I am trying to benchmark my datasets based implementation against fairseq's [`MMapIndexedDataset`](https://github.com/pytorch/fairseq/blob/master/fairseq/data/indexed_dataset.py#L365) and finding that, according to psrecord, my `datasets` implem uses about 3% more CPU memory and runs 1% slower for `wikitext103` (~1GB of tokens). Questions: 1) Is this (basically identical) performance expected? 2) Is there a scenario where this library will outperform `MMapIndexedDataset`? (maybe more examples/larger examples?) 3) Should I be using different benchmarking tools than `psrecord`/how do you guys do benchmarks? Thanks in advance! Sam no docs haha, it's written to support integer numpy arrays. You can build one in fairseq with, roughly: ```bash wget https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-103-raw-v1.zip unzip wikitext-103-raw-v1.zip export dd=$HOME/fairseq-py/wikitext-103-raw export mm_dir=$HOME/mmap_wikitext2 mkdir -p gpt2_bpe wget -O gpt2_bpe/encoder.json https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/encoder.json wget -O gpt2_bpe/vocab.bpe https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/vocab.bpe wget -O gpt2_bpe/dict.txt https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/dict.txt for SPLIT in train valid; do \ python -m examples.roberta.multiprocessing_bpe_encoder \ --encoder-json gpt2_bpe/encoder.json \ --vocab-bpe gpt2_bpe/vocab.bpe \ --inputs /scratch/stories_small/${SPLIT}.txt \ --outputs /scratch/stories_small/${SPLIT}.bpe \ --keep-empty \ --workers 60; \ done mkdir -p $mm_dir fairseq-preprocess \ --only-source \ --srcdict gpt2_bpe/dict.txt \ --trainpref $dd/wiki.train.bpe \ --validpref $dd/wiki.valid.bpe \ --destdir $mm_dir \ --workers 60 \ --dataset-impl mmap ``` I'm noticing in my benchmarking that it's much smaller on disk than arrow (200mb vs 900mb), and that both incur significant cost by increasing the number of data loader workers. This somewhat old [post](https://ray-project.github.io/2017/10/15/fast-python-serialization-with-ray-and-arrow.html) suggests there are some gains to be had from using `pyarrow.serialize(array).tobuffer()`. I haven't yet figured out how much of this stuff `pa.Table` does under the hood. The `MMapIndexedDataset` bottlenecks we are working on improving (by using arrow) are: 1) `MMapIndexedDataset`'s index, which stores offsets, basically gets read in its entirety by each dataloading process. 2) we have separate, identical, `MMapIndexedDatasets` on each dataloading worker, so there's redundancy there; we wonder if there is a way that arrow can somehow dedupe these in shared memory. It will take me a few hours to get `MMapIndexedDataset` benchmarks out of `fairseq`/onto a branch in this repo, but I'm happy to invest the time if you're interested in collaborating on some performance hacking.
[ -0.24320238828659058, 0.023352637887001038, -0.16917647421360016, 0.18205098807811737, -0.1022191047668457, -0.022615551948547363, 0.1294507384300232, 0.2604651153087616, -0.20882689952850342, -0.06991688907146454, -0.1556989699602127, 0.5033262372016907, -0.07024998962879181, -0.4188562035560608, 0.28174513578414917, -0.030016470700502396, 0.335442453622818, 0.1515546292066574, -0.1571372002363205, 0.04862811416387558, -0.14059430360794067, 0.15061549842357635, -0.32530516386032104, 0.02042032591998577, -0.35092613101005554, 0.12254519015550613, -0.00952158123254776, 0.22437390685081482, -0.08063478767871857, -0.38923150300979614, 0.26254668831825256, 0.1312130093574524, -0.06792878359556198, 0.5093362331390381, -0.00011970139166805893, -0.16233199834823608, -0.05421207845211029, 0.10786689817905426, 0.026832491159439087, 0.54005366563797, -0.11319369077682495, -0.30497056245803833, 0.03861171007156372, -0.17923825979232788, 0.08063432574272156, -0.15718360245227814, -0.12403547763824463, -0.6968594193458557, 0.037643253803253174, 0.11249788850545883, 0.04334075748920441, 0.3202776610851288, -0.28735780715942383, 0.1792374551296234, 0.07800449430942535, -0.0878257006406784, -0.22553935647010803, 0.20305466651916504, 0.6038828492164612, -0.06693746894598007, -0.06225762888789177, 0.07225146144628525, -0.13253450393676758, 0.07743100821971893, 0.0730089619755745, 0.0020605549216270447, -0.11563683301210403, -0.08595633506774902, 0.060832735151052475, 0.4867013990879059, 0.1345413327217102, -0.3546425998210907, -0.2642897367477417, -0.41717177629470825, -0.3238387107849121, 0.09397084265947342, 0.20015129446983337, -0.22422298789024353, -0.04511863738298416, 0.10377177596092224, -0.5512922406196594, 0.2541922330856323, 0.14374521374702454, -0.09207197278738022, -0.010913893580436707, 0.49182650446891785, 0.3039819896221161, 0.04239736497402191, 0.4399324953556061, -0.26401230692863464, 0.132442444562912, -0.20570483803749084, 0.0011940053664147854, 0.10286171734333038, -0.4656969904899597, -0.28034162521362305, -0.044100672006607056, -0.2504599690437317, 0.11405855417251587, 0.2019067406654358, -0.14216187596321106, 0.5152267217636108, 0.4101501405239105, 0.08598217368125916, 0.07569770514965057, 0.24156242609024048, 0.09211528301239014, 0.031410783529281616, 0.0018228539265692234, -0.09552574157714844, -0.20150721073150635, 0.17895470559597015, 0.19963158667087555, 0.011276770383119583, -0.2609251141548157, -0.17552535235881805, -0.38012558221817017, -0.3332430124282837, -0.37770920991897583, 0.014704588800668716, 0.3565775156021118, -0.3525729179382324, 0.08010353893041611, 0.20870205760002136, 0.053346529603004456, 0.2673596441745758, -0.45703110098838806, 0.03949669003486633, -0.3195514678955078, -0.204874649643898, -0.04344979673624039, 0.13533273339271545, -0.08920495212078094, 0.239712655544281, 0.19530603289604187, 0.10265648365020752, 0.2620452344417572, -0.05919971317052841, 0.18040692806243896, 0.15639464557170868, 0.5779826641082764, -0.2525077760219574, -0.02209080010652542, -0.05248333141207695, -0.17712825536727905, 0.16344919800758362, 0.04959365725517273, 0.4309068024158478, -0.31597524881362915, 0.010747299529612064, -0.1292085498571396, -0.12224999070167542, 0.3741808533668518, -0.006692372728139162, -0.21674813330173492, -0.3019154667854309, -0.3807261288166046, 0.3237059414386749, -0.08069410920143127, -0.27966681122779846, 0.20088961720466614, -0.038002122193574905, -0.259906530380249, -0.25865042209625244, 0.11294031888246536, -0.10480464994907379, -0.18296360969543457, 0.09024553000926971, -0.2681655287742615, 0.101713627576828, -0.057437993586063385, 0.42282232642173767, -0.3233219087123871, 0.24517160654067993, -0.047644998878240585, 0.2953230142593384, 0.36991679668426514, -0.4035228490829468, -0.4890654683113098, -0.013446588069200516, 0.18438032269477844, 0.2378024160861969, -0.028986267745494843, 0.2881444990634918, 0.20713886618614197, -0.3476952910423279, 0.06041176989674568, 0.08665552735328674, 0.12980243563652039, 0.3404924273490906, -0.19149497151374817, -0.4372929036617279, 0.4101482927799225, 0.18442285060882568, -0.2632361650466919, -0.5926273465156555, -0.20965124666690826, -0.22010022401809692, 0.014114880003035069, -0.19933287799358368, -0.26527613401412964, -0.019739242270588875, 0.05477470904588699, -0.3296550512313843, -0.048188257962465286, -0.2119641900062561, -0.016422268003225327, 0.40750038623809814, -0.38099706172943115, -0.0671110525727272, 0.41047704219818115, -0.03252638503909111, 0.016077734529972076, -0.1260007619857788, -0.03523712605237961, -0.34047287702560425, 0.018844015896320343, -0.12462831288576126, 0.2839568257331848, 0.15743422508239746, -0.3725440204143524, -0.20511046051979065, 0.20954984426498413, -0.03405195102095604, 0.08690249919891357, -0.17604580521583557, 0.27048131823539734, -0.13974547386169434, -0.12927700579166412, 0.2784688472747803, -0.1737472414970398, -0.0782441645860672, -0.13034053146839142, 0.16730999946594238, 0.26260635256767273, 0.08958816528320312, 0.48408132791519165, 0.36742544174194336, -0.02008145861327648, -0.12138579785823822, 0.18513868749141693, 0.17985109984874725, 0.13558483123779297, -0.23329219222068787, -0.017305411398410797, 0.6673052310943604, 0.15840870141983032, 0.3197748363018036, 0.03346638381481171, -0.3281885087490082, -0.23004457354545593, 0.23413251340389252, 0.2983642816543579, 0.158258318901062, 0.1329231560230255, 0.3186574876308441, 0.3469451665878296, 0.07453492283821106, 0.26009753346443176, 0.4380365014076233, 0.5110446810722351, 0.0919649600982666, 0.01194586232304573, 0.09507522732019424, -0.33094730973243713, -0.3392915427684784, 0.21810589730739594, -0.15306423604488373, 0.6769611239433289, 0.005626998841762543, 0.35412460565567017, -0.027240797877311707, 0.06686894595623016, 0.12959828972816467, 0.3824508786201477, 0.21040800213813782, -0.40226659178733826, -0.1451210379600525, 0.0917435809969902, -0.15205040574073792, 0.1312488615512848, -0.12281349301338196, -0.1388619989156723, 0.12445631623268127, -0.03743715211749077, 0.22759070992469788, -0.09768109768629074, 0.3413502275943756, 0.16470222175121307, -0.31638169288635254, -0.19677549600601196, -0.29522567987442017, 0.14277419447898865, -0.04104464501142502, 0.13793739676475525, 0.10175192356109619, 0.02085212618112564, 0.21216383576393127, -0.2811617851257324, -0.28805649280548096, 0.026198402047157288, -0.09892599284648895, -0.4190022945404053, 0.04198622703552246, 0.4446631073951721, 0.1643383502960205, 0.3288488984107971, 0.08934131264686584, 0.06425213813781738, 0.024068843573331833, -0.15320493280887604, 0.0006649973802268505, -0.15607371926307678, 0.1611466258764267, -0.04763615131378174, -0.3093944489955902, -0.47572600841522217, -0.202545166015625, 0.03641587123274803, -0.2672002911567688, -0.06421710550785065, -0.22953712940216064, 0.239628404378891, -0.06409045308828354, 0.10673242807388306, -0.10792076587677002, -0.18041343986988068, 0.06413054466247559, 0.08040836453437805, -0.14042149484157562, 0.14537927508354187, -0.5900020003318787, 0.05521572753787041, 0.3555607795715332, -0.3177756667137146, 0.13013657927513123, -0.14452409744262695, -0.46702608466148376, 0.21659909188747406, -0.05514904111623764, -0.19311082363128662, -0.04904448613524437, 0.023245565593242645, 0.2404922991991043, 0.11816663295030594, -0.19774502515792847, -0.0716172531247139, -0.026694810017943382, 0.19010965526103973, 0.11614925414323807, 0.16057756543159485, 0.3275682330131531, -0.13208821415901184, 0.022007137537002563, -0.10425368696451187, 0.03971582651138306, 0.045355215668678284, -0.283632755279541, 0.24597279727458954, -0.05529673397541046, 0.1432182937860489, -0.1069723442196846, 0.8057383894920349, 0.24229687452316284, -0.24319902062416077, -0.07033346593379974, -0.09034877270460129, -0.07028806209564209, -0.12218570709228516, -0.03072553128004074, 0.0003347061574459076, 0.17546802759170532, 0.12276902794837952, 0.5753464698791504, 0.022722724825143814, -0.26186031103134155, -0.23231706023216248, 0.2291736900806427, -0.09841524064540863, -0.16608136892318726, 0.24514806270599365, 0.21887627243995667, 0.056277085095644, 0.04769477993249893, 0.32730865478515625, -0.4191041588783264, -0.33239951729774475, 0.04468928650021553, -0.17605727910995483, -0.28050532937049866, -0.23917458951473236, -0.20026497542858124, -0.3777947723865509, -0.4251478910446167, 0.3432879149913788, 0.2635821998119354, 0.5489296317100525, 0.12438114732503891, -0.0968293845653534, 0.21918000280857086, -0.15225611627101898, 0.06553587317466736, -0.2366160750389099, -0.28957563638687134, 0.17951296269893646, -0.03332655876874924, -0.32190704345703125, 0.01343727856874466, -0.19718557596206665, -0.029585104435682297, 0.3278866708278656, -0.015387427061796188, -0.1670004278421402, -0.05448067933320999, -0.20992180705070496, 0.04996921494603157, 0.004797779023647308, 0.010506045073270798, -0.35883909463882446, -0.19147615134716034, 0.3003986179828644, 0.11871647834777832, -0.34007352590560913, 0.07765781879425049, 0.00907658040523529, 0.15606406331062317, -0.27115198969841003, 0.0005419030785560608, 0.386794775724411, 0.5396571159362793, 0.27729639410972595, -0.39428430795669556, 0.2889389991760254, 0.0025331731885671616, -0.135623961687088, 0.2091224193572998, 0.12008297443389893, 0.15944820642471313, 0.3647193908691406, 0.08625628054141998, -0.16095520555973053, 0.14975303411483765, 0.17176279425621033, 0.01094711571931839, 0.07389043271541595, -0.28703194856643677, -0.032725680619478226, -0.055346667766571045, 0.05641903728246689, 0.2335376739501953, 0.20243683457374573, -0.313395619392395, -0.32471778988838196, 0.5959883332252502, 0.3803279995918274, -0.08175930380821228, 0.05912123620510101, -0.15943041443824768, -0.21244922280311584, 0.003183513879776001, 0.3320753276348114, 0.961686372756958, -0.03613106533885002, 0.23369771242141724, 0.2174375355243683, -0.030934885144233704, 0.39850926399230957, -0.3488456904888153, -0.028482235968112946, -0.21699097752571106, -0.24171090126037598, -0.07720723748207092, -0.15100228786468506, 0.2551007866859436, 0.1418096423149109, -0.10659216344356537, 0.29047954082489014, 0.3111557960510254, 0.0454590767621994, -0.07387720048427582, 0.29520657658576965, 0.19692102074623108, -0.038814716041088104, -0.17572346329689026, 0.06229497864842415, -0.042117901146411896, -0.2161155790090561, 0.12180481851100922, -0.05060230940580368, -0.5397324562072754, 0.1987796127796173, -0.30561211705207825, -0.25354447960853577, -0.0059524476528167725, 0.4464244842529297, -0.0064621795900166035, -0.13603456318378448, 0.1693730503320694, -0.14597338438034058, 0.3672998249530792, -0.2042049914598465, -0.18453262746334076, 0.09854114800691605, 0.1169232726097107, 0.3119466304779053, 0.4654177725315094, -0.24297410249710083, 0.030518097802996635, -0.1376769095659256, -0.14489243924617767, 0.28992706537246704, 0.024312924593687057, -0.4574984908103943, -0.3292914032936096, 0.17335008084774017, 0.30855199694633484, -0.13771024346351624, -0.1473698616027832, 0.14337293803691864, -0.14395269751548767, 0.031107567250728607, 0.02590939588844776, 0.06571993231773376, -0.11873988807201385, 0.8549544215202332, -0.289110004901886, -0.2632470428943634, -0.0914643257856369, 0.49933260679244995, 0.09868383407592773, -0.4388748109340668, 0.20427273213863373, -0.05176647752523422, -0.25379377603530884, -0.14391253888607025, 0.1367645263671875, 0.015395693480968475, -0.12770500779151917, -0.06650124490261078, -0.17623195052146912, -0.12400352209806442, 0.324971467256546, 0.16998538374900818, 0.24284455180168152, -0.08372600376605988, -0.1774936318397522, 0.24684317409992218, -0.3287850618362427, 0.08910638093948364, 0.21118704974651337, 0.34946489334106445, -0.2351030558347702, -0.19969607889652252, -0.2085605412721634, -0.10032423585653305, -0.13792617619037628, 0.1160772293806076, 0.04109557718038559, 0.024203505367040634, -0.23700477182865143, -0.0795886218547821, 0.1163436621427536, 0.2017844021320343, -0.1304216831922531, 0.22773878276348114, -0.3855398893356323, -0.08152221143245697, 0.06877493858337402, 0.19022785127162933, -0.12121507525444031, -0.418131947517395, -0.05991271883249283, 0.16294290125370026, -0.028406495228409767, -0.2897573709487915, -0.08093181997537613, -0.48190799355506897, -0.033037468791007996, -0.17487254738807678, 0.5092719197273254, -0.028454434126615524, -0.06309077888727188, 0.3277774453163147, -0.21398143470287323, 0.14072637259960175, 0.19373829662799835, 0.26867222785949707, 0.07917335629463196, -0.24870137870311737, 0.3357221484184265, 0.2605232894420624, 0.14901775121688843, -0.03612617403268814, 0.1514648050069809, -0.1979040503501892, -0.02791164070367813, 0.2792243957519531, 0.10928798466920853, 0.8128839731216431, -0.12131211161613464, -0.5954821705818176, 0.26281777024269104, 0.055058617144823074, 0.07090337574481964, -0.22678717970848083, 0.42389196157455444, 0.18578776717185974, 0.09372871369123459, 0.2167641669511795, 0.4243462383747101, -0.029648862779140472, 0.07902836799621582, -0.05335841700434685, 0.5252415537834167, 0.05597737431526184, 0.030082836747169495, -0.1648862063884735, 0.02848312258720398, -0.17604079842567444, -0.04477671533823013, 0.1498754322528839, 0.24456043541431427, 0.27238962054252625, -0.3558056056499481, 0.6884692907333374, 0.3570598363876343, 0.15914247930049896, -0.2962270975112915, -0.007938496768474579, 0.2951880693435669, 0.5422818064689636, 0.10941527783870697, 0.2572138011455536, 0.20815409719944, 0.39683181047439575, -0.2889019548892975, -0.047337524592876434, -0.19061365723609924, 0.14981213212013245, 0.14003020524978638, -0.3140508532524109, 0.2555696368217468, -0.11082495003938675, -0.030933961272239685, 0.06418129801750183, -0.2243410050868988, -0.16425806283950806, 0.20017662644386292, 0.03848828375339508, 0.060251954942941666, -0.07663501799106598, -0.009173275902867317, 0.08606241643428802, 0.25104787945747375, 0.027116969227790833, 0.1162603497505188, 0.33861684799194336, 0.025200746953487396, 0.30814987421035767, 0.2748592495918274, 0.1436077058315277, -0.02218741923570633, -0.6469066739082336, -0.0227145254611969, -0.2772480845451355, 0.29437780380249023, 0.01953461766242981, 0.1883046180009842, -0.3704981207847595, -0.08273738622665405, 0.2145935446023941, 0.0031119175255298615, 0.06105642020702362, -0.5787850618362427, -0.07270859181880951, -0.0034160930663347244, -0.26993969082832336, -0.13054892420768738, -0.07877462357282639, 0.1848432421684265, 0.03132956102490425, 0.13255545496940613, -0.19348713755607605, -0.37626785039901733, -0.02943505346775055, -0.09342443943023682, 0.009300347417593002, 0.23662349581718445, 0.020246684551239014, -0.1909417062997818, 0.7200248837471008, 0.0936732366681099, -0.07148483395576477, -0.13489821553230286, -0.4660584330558777, -0.4094487428665161, -0.006837897002696991, -0.10193638503551483, -0.24891413748264313, 0.11598075926303864, 0.29297810792922974, -0.15277251601219177, 0.3135237693786621, 0.3988288342952728, 0.6963891983032227, -0.22715508937835693, 0.1801043599843979, -0.5364989638328552, 0.10164103657007217, -0.30787399411201477, -0.24351948499679565, -0.06562862545251846, -0.14562082290649414, 0.1215389147400856, -0.16812923550605774, -0.1349671632051468, -0.08084967732429504, -0.01652766764163971, 0.009609706699848175, 0.11612428724765778, 0.4607245922088623, 0.313244104385376, 0.34382444620132446, 0.27645304799079895, -0.16135606169700623, -0.14288704097270966, 0.18059107661247253, -0.04591705650091171, 0.17334231734275818, 0.003316164016723633, 0.14654268324375153, -0.1652982532978058, 0.1458810567855835, 0.02613101154565811, 0.7369499206542969, 0.16841118037700653, -0.27781942486763, -0.10643154382705688, -0.20875373482704163, 0.17327754199504852, 0.11806365102529526, -0.15296179056167603, 0.35685423016548157, 0.17198704183101654, 0.5304067730903625, -0.19099631905555725, -0.06181001663208008, 0.31940552592277527, -0.48304057121276855, -0.10146750509738922, -0.23154722154140472, 0.07028932869434357, 0.09744341671466827, 0.0605839341878891, -0.508995771408081, -0.3161846995353699, 0.31368356943130493, 0.18162226676940918, 0.05816883593797684, 0.2628868818283081, -0.1175675168633461, 0.07334592938423157, -0.2202981561422348, -0.07754115760326385, -0.32050299644470215, 0.0767262876033783, -0.0646987333893776, -0.07764504104852676 ]
https://github.com/huggingface/datasets/issues/1893
This was also mentioned in https://github.com/huggingface/datasets/issues/488 The bucket where is data was stored seems to be unavailable now. Maybe we can change the URL to the ones in https://conferences.unite.un.org/uncorpus/en/downloadoverview ?
wmt19 is broken
1. Check which lang pairs we have: `--dataset_name wmt19`: Please pick one among the available configs: ['cs-en', 'de-en', 'fi-en', 'gu-en', 'kk-en', 'lt-en', 'ru-en', 'zh-en', 'fr-de'] 2. OK, let's pick `ru-en`: `--dataset_name wmt19 --dataset_config "ru-en"` no cookies: ``` Traceback (most recent call last): File "./run_seq2seq.py", line 661, in <module> main() File "./run_seq2seq.py", line 317, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) 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 572, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 628, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt19/436092de5f3faaf0fc28bc84875475b384e90a5470fa6afaee11039ceddc5052/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/download_manager.py", line 276, in download_and_extract return self.extract(self.download(url_or_urls)) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/download_manager.py", line 191, in download downloaded_path_or_paths = map_nested( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/py_utils.py", line 233, in map_nested mapped = [ File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/py_utils.py", line 234, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/py_utils.py", line 190, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/py_utils.py", line 190, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/py_utils.py", line 172, in _single_map_nested return function(data_struct) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/download_manager.py", line 211, in _download return cached_path(url_or_filename, download_config=download_config) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 274, in cached_path output_path = get_from_cache( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 584, in get_from_cache raise FileNotFoundError("Couldn't find file at {}".format(url)) FileNotFoundError: Couldn't find file at https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-ru.tar.gz ```
30
wmt19 is broken 1. Check which lang pairs we have: `--dataset_name wmt19`: Please pick one among the available configs: ['cs-en', 'de-en', 'fi-en', 'gu-en', 'kk-en', 'lt-en', 'ru-en', 'zh-en', 'fr-de'] 2. OK, let's pick `ru-en`: `--dataset_name wmt19 --dataset_config "ru-en"` no cookies: ``` Traceback (most recent call last): File "./run_seq2seq.py", line 661, in <module> main() File "./run_seq2seq.py", line 317, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) 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 572, in download_and_prepare self._download_and_prepare( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/builder.py", line 628, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt19/436092de5f3faaf0fc28bc84875475b384e90a5470fa6afaee11039ceddc5052/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/download_manager.py", line 276, in download_and_extract return self.extract(self.download(url_or_urls)) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/download_manager.py", line 191, in download downloaded_path_or_paths = map_nested( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/py_utils.py", line 233, in map_nested mapped = [ File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/py_utils.py", line 234, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/py_utils.py", line 190, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/py_utils.py", line 190, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/py_utils.py", line 172, in _single_map_nested return function(data_struct) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/download_manager.py", line 211, in _download return cached_path(url_or_filename, download_config=download_config) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 274, in cached_path output_path = get_from_cache( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 584, in get_from_cache raise FileNotFoundError("Couldn't find file at {}".format(url)) FileNotFoundError: Couldn't find file at https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-ru.tar.gz ``` This was also mentioned in https://github.com/huggingface/datasets/issues/488 The bucket where is data was stored seems to be unavailable now. Maybe we can change the URL to the ones in https://conferences.unite.un.org/uncorpus/en/downloadoverview ?
[ -0.3531681299209595, -0.45960521697998047, -0.04126087576150894, 0.3225635886192322, 0.17832496762275696, -0.03620505332946777, 0.1937316358089447, 0.23352697491645813, 0.06609702110290527, 0.060678880661726, 0.01479630172252655, 0.10903225839138031, -0.12556132674217224, 0.5707477927207947, 0.1197272390127182, -0.009602446109056473, 0.006727617233991623, 0.04194282367825508, -0.4998800754547119, 0.06899367272853851, -0.1902458518743515, 0.3333272635936737, -0.24080492556095123, 0.03148001804947853, -0.1947323977947235, 0.02479068748652935, -0.10832719504833221, 0.1399197280406952, -0.25319334864616394, -0.2184600532054901, 0.1407962441444397, 0.035990357398986816, -0.08912849426269531, 0.42597001791000366, -0.00010294757521478459, -0.014893971383571625, 0.278091698884964, 0.024472437798976898, -0.24627907574176788, -0.2544899582862854, -0.31948208808898926, -0.2060379832983017, 0.0056867823004722595, -0.001971513032913208, -0.05260436236858368, -0.2070801705121994, -0.10867112129926682, -0.1944906860589981, 0.5796176791191101, 0.20736752450466156, 0.3498455882072449, 0.3110419809818268, 0.04146683216094971, -0.3367854952812195, 0.13145825266838074, 0.19136229157447815, -0.07521499693393707, -0.05263394117355347, 0.1527308225631714, 0.06217490881681442, 0.07655271142721176, 0.3450377881526947, 0.06543323397636414, -0.14946024119853973, 0.20288079977035522, -0.12261027097702026, 0.0630018562078476, -0.10201607644557953, 0.236611470580101, 0.2687705159187317, 0.3145795166492462, -0.13190899789333344, -0.1572936773300171, 0.10636317729949951, -0.26882684230804443, -0.698860764503479, 0.19897939264774323, 0.17472460865974426, -0.08296197652816772, 0.18591484427452087, -0.07688232511281967, -0.1307181715965271, -0.013976946473121643, -0.11475557088851929, -0.2573106288909912, 0.6457991600036621, -0.12987954914569855, 0.06604522466659546, 0.016819115728139877, -0.2135041505098343, -0.1319766789674759, 0.3256300091743469, -0.07846653461456299, -0.2144063115119934, -0.18205372989177704, 0.18213480710983276, 0.08294065296649933, 0.11464638262987137, 0.13869608938694, -0.036418616771698, -0.17321538925170898, 0.27409636974334717, 0.13332870602607727, 0.08468979597091675, -0.03781154379248619, 0.3722311854362488, 0.19949212670326233, -0.19681863486766815, 0.2560354173183441, 0.2929573655128479, -0.002000175416469574, 0.008912662044167519, 0.050256405025720596, -0.5564660429954529, -0.09512435644865036, 0.05724305287003517, 0.09313686192035675, -0.04780791327357292, -0.17903286218643188, 0.01983194425702095, 0.051916033029556274, -0.12612462043762207, 0.015033427625894547, 0.43792539834976196, 0.04040306806564331, -0.0652521625161171, 0.018414542078971863, 0.16671600937843323, -0.13128532469272614, -0.22263292968273163, -0.2503521144390106, -0.1263064593076706, -0.2839661240577698, 0.17108042538166046, 0.16148808598518372, -0.128792405128479, 0.30982863903045654, 0.059067558497190475, -0.20429854094982147, -0.1414274126291275, -0.1652148962020874, 0.017362702637910843, 0.17481540143489838, 0.2738703489303589, -0.016150109469890594, 0.2083767056465149, 0.26545923948287964, -0.27154338359832764, -0.04532144218683243, -0.08371859788894653, -0.12630575895309448, -0.18788394331932068, -0.07860317081212997, 0.3323678970336914, 0.041870005428791046, 0.17544832825660706, -0.12183614075183868, 0.20036986470222473, -0.008090514689683914, -0.06477545201778412, -0.03149424493312836, -0.10326848179101944, -0.4300820231437683, -0.10061930119991302, 0.4257935881614685, 0.48489415645599365, -0.5752804279327393, -0.22353962063789368, -0.0691838413476944, -0.16479796171188354, 0.05506924167275429, 0.21805265545845032, -0.03577953577041626, -0.007233951240777969, -0.3086133301258087, 0.18569901585578918, -0.21640294790267944, -0.1183210015296936, -0.060682617127895355, -0.011784590780735016, -0.11585447937250137, -0.022299449890851974, 0.07015939056873322, -0.21237023174762726, -0.07561822235584259, 0.020681045949459076, 0.03767160326242447, 0.055495187640190125, 0.07348864525556564, -0.11475037038326263, -0.22300903499126434, -0.432202011346817, 0.5312090516090393, -0.03401986137032509, 0.14671696722507477, -0.3156552016735077, 0.16972021758556366, -0.15033750236034393, 0.31366676092147827, -0.025401383638381958, 0.01167391985654831, 0.05247431620955467, 0.20964208245277405, 0.02736170031130314, 0.013203147798776627, -0.09014655649662018, -0.5520675778388977, 0.20514030754566193, -0.09013807773590088, 0.3927583694458008, -0.2127135843038559, 0.07170578837394714, -0.24444052577018738, 0.06836889684200287, -0.3136651813983917, -0.3684311509132385, 0.2931484580039978, 0.15802955627441406, -0.16291002929210663, -0.10376989841461182, -0.029505930840969086, -0.019819052889943123, 0.05089300125837326, 0.18749311566352844, -0.4635506570339203, 0.020646974444389343, -0.24541732668876648, -0.10442854464054108, 0.15650631487369537, 0.13526004552841187, 0.30070221424102783, -0.05517212301492691, -0.12393760681152344, 0.3911254405975342, 0.07017232477664948, 0.5023863911628723, -0.1645805537700653, -0.17822229862213135, 0.24952612817287445, -0.6714121699333191, -0.029986049979925156, -0.07056964933872223, -0.02094183675944805, -0.16711202263832092, -0.0189838744699955, 0.14796513319015503, -0.15364253520965576, 0.24997135996818542, 0.22250518202781677, 0.12156584858894348, 0.2497502565383911, -0.04242277145385742, -0.27559465169906616, -0.30433839559555054, 0.17530427873134613, -0.11383430659770966, -0.08946935087442398, 0.05402291566133499, 0.03580690920352936, 0.06446300446987152, 0.36037999391555786, 0.16430479288101196, 0.13211193680763245, -0.04375742748379707, -0.2861379384994507, -0.05848269909620285, 0.07376178354024887, 0.17589300870895386, 0.26599013805389404, 0.13563239574432373, -0.002013176679611206, 0.22804293036460876, 0.11202918738126755, -0.2675428092479706, 0.3462764024734497, -0.0811370462179184, 0.07620727270841599, 0.26660099625587463, -0.045461516827344894, -0.14602382481098175, -0.30907171964645386, 0.22410786151885986, -0.13555817306041718, 0.023855002596974373, -0.2537420988082886, -0.07480500638484955, -0.570096492767334, -0.15035413205623627, -0.3576546907424927, -0.2965596914291382, -0.3699667155742645, -0.20569327473640442, -0.07469911128282547, -0.23694676160812378, -0.20575401186943054, 0.38130638003349304, 0.2306601107120514, -0.009750723838806152, -0.07205698639154434, 0.2905028164386749, -0.19702523946762085, -0.09663267433643341, -0.07822920382022858, 0.1418488621711731, 0.26897087693214417, 0.4118451476097107, 0.38641467690467834, -0.39261218905448914, -0.0617828369140625, -0.08948354423046112, -0.42589253187179565, 0.1954810470342636, -0.196821928024292, 0.5000596642494202, 0.25986579060554504, 0.043546032160520554, 0.003262549638748169, -0.3089444935321808, 0.5313378572463989, -0.3635280728340149, 0.02247888594865799, -0.02620875835418701, 0.016146883368492126, -0.16836094856262207, -0.27094846963882446, -0.482474684715271, -0.37644538283348083, -0.3136802017688751, 0.1400420367717743, 0.08327440172433853, 0.112602598965168, 0.5596605539321899, -0.039412207901477814, 0.10884228348731995, -0.22271159291267395, 0.2569577097892761, -0.23653721809387207, -0.1614939570426941, 0.13792361319065094, -0.3226342499256134, -0.3150467276573181, 0.16656838357448578, 0.16181409358978271, 0.5677851438522339, -0.0527576208114624, -0.3567391335964203, 0.19102153182029724, -0.05909740924835205, 0.06313072144985199, 0.11761710047721863, 0.10849158465862274, 0.2975248396396637, 0.24758490920066833, -0.16235299408435822, -0.13002026081085205, -0.4439029097557068, 0.11649763584136963, -0.2083272486925125, 0.1733243465423584, -0.10276705026626587, 0.27270597219467163, -0.05793812870979309, 0.5740637183189392, 0.09003600478172302, 0.15670323371887207, 0.38076791167259216, 0.0893208235502243, 0.34475764632225037, 0.0577332004904747, -0.40664684772491455, 0.1074613481760025, -0.13010311126708984, 0.04478657990694046, 0.40789368748664856, -0.02039603516459465, 0.26056206226348877, -0.3096647560596466, -0.05635567754507065, -0.3117496967315674, -0.3440130650997162, -0.11119351536035538, 0.32894524931907654, 0.2659175992012024, -0.03737761452794075, 0.01811768114566803, 0.06538776308298111, 0.0588202178478241, 0.17177510261535645, 0.2928851842880249, -0.0539860762655735, 0.036972127854824066, -0.2738025486469269, -0.2768305838108063, -0.32341268658638, 0.10198194533586502, -0.012910023331642151, 0.31489095091819763, -0.1771431863307953, -0.17060117423534393, -0.11551976203918457, -0.026845254004001617, 0.45130205154418945, 0.06616628170013428, 0.17794585227966309, 0.05174899101257324, -0.05556657910346985, -0.1506132185459137, -0.009693585336208344, -0.1581639051437378, -0.23953066766262054, 0.07183673977851868, 0.530709981918335, -0.30178940296173096, -0.13301131129264832, -0.06839548051357269, 0.3462325632572174, -0.2519263029098511, -0.10109864920377731, -0.05191657692193985, -0.325830340385437, -0.20182457566261292, -0.15774716436862946, 0.012202195823192596, 0.008934896439313889, -0.21253417432308197, 0.03247877210378647, 0.08732222020626068, -0.08787857741117477, 0.08057209849357605, 0.18482467532157898, 0.33298391103744507, -0.07175499945878983, 0.15733405947685242, 0.16965574026107788, 0.3938363492488861, 0.3397707939147949, 0.4407486915588379, -0.1332305669784546, 0.0009338557720184326, -0.0843152180314064, -0.04304101690649986, 0.26392698287963867, 0.309411883354187, -0.2154771089553833, 0.2849520742893219, 0.12076988816261292, 0.41890764236450195, -0.32168084383010864, -0.08135335147380829, 0.41645219922065735, 0.1362731158733368, -0.2010640650987625, -0.13231807947158813, 0.08036249876022339, 0.010340563952922821, 0.03154131770133972, -0.14239667356014252, 0.12907792627811432, -0.3507481813430786, 0.060908637940883636, 0.07815156877040863, 0.8279270529747009, 0.10667568445205688, 0.05059604346752167, 0.22727401554584503, 0.06618962436914444, 0.3275763690471649, 0.13827115297317505, -0.12113898247480392, -0.20046602189540863, -0.3317949175834656, 0.02481541782617569, -0.09922271221876144, 0.1703277826309204, -0.061485182493925095, -0.577271580696106, 0.30570825934410095, 0.056810230016708374, 0.21669119596481323, -0.0032008476555347443, 0.1019647866487503, -0.15730687975883484, -0.23480607569217682, -0.13031092286109924, 0.24804717302322388, -0.10643506050109863, 0.09181275218725204, -0.17696969211101532, -0.03333217650651932, 0.2297402024269104, -0.1552753895521164, -0.27497977018356323, 0.014025092124938965, -0.4671754539012909, -0.016101688146591187, -0.08331692218780518, 0.0032317042350769043, 0.4410226345062256, 0.03634156286716461, 0.04274421185255051, 0.42142364382743835, -0.13861139118671417, 0.06372379511594772, -0.04293408617377281, 0.13490766286849976, -0.08417323231697083, -0.004762917757034302, 0.34531721472740173, -0.19053158164024353, -0.198734849691391, 0.0011526644229888916, -0.008848614990711212, 0.27607908844947815, -0.12806615233421326, -0.18076375126838684, 0.05281340703368187, -0.08865725994110107, 0.07501017302274704, -0.05346137285232544, 0.10755764693021774, -0.386163592338562, 0.23804128170013428, -0.037364136427640915, -0.2498447299003601, 0.2838938534259796, 0.07241541147232056, -0.19741986691951752, -0.21857209503650665, 0.1967156082391739, -0.09679301083087921, 0.07220937311649323, 0.46670734882354736, 0.6660531163215637, -0.11347438395023346, -0.3804567754268646, -0.041586101055145264, 0.07292452454566956, -0.4744260013103485, 0.05842747911810875, 0.22350159287452698, 0.09470091760158539, 0.03549709543585777, 0.5245184898376465, 0.27630531787872314, -0.15580594539642334, 0.01910078525543213, -0.25254911184310913, -0.21256086230278015, 0.27263587713241577, 0.12214051187038422, 0.12646952271461487, 0.017003022134304047, 0.08552157878875732, -0.051993485540151596, 0.4380587339401245, -0.4479951560497284, 0.07221519201993942, -0.059274476021528244, 0.10759200900793076, -0.0114653455093503, -0.12881970405578613, 0.11229637265205383, -0.0021177642047405243, 0.1891264021396637, 0.1201661080121994, -0.2339143306016922, -0.318134605884552, -0.2554551064968109, 0.06380115449428558, 0.022238805890083313, -0.37247851490974426, 0.13325364887714386, 0.0038004070520401, 0.19110718369483948, -0.05887589603662491, 0.13959459960460663, 0.26334148645401, 0.07071317732334137, 0.23527568578720093, 0.38630011677742004, 0.17059330642223358, -0.03581210970878601, 0.22020478546619415, 0.22964051365852356, 0.1827300488948822, -0.12064380943775177, 0.0040956647135317326, -0.11121028661727905, -0.15434424579143524, 0.2066456824541092, 0.03682302311062813, 0.08232899010181427, 0.12389533966779709, 0.20847594738006592, -0.24278904497623444, -0.18547795712947845, 0.04959291219711304, 0.6940178871154785, 0.3251621425151825, -0.0039953142404556274, 0.10334350168704987, 0.2818106412887573, 0.33002790808677673, -0.4054030179977417, 0.21872858703136444, 0.047414470463991165, -0.054925717413425446, 0.15950478613376617, 0.09007067233324051, 0.15106192231178284, -0.22879302501678467, 0.052099063992500305, 0.15560033917427063, -0.026191679760813713, -0.1324228048324585, 0.20676329731941223, 0.3938092291355133, -0.13321423530578613, 0.12191326171159744, 0.23596574366092682, 0.17710407078266144, 0.17123238742351532, 0.17493809759616852, -0.12293855845928192, 0.2797958552837372, -0.1340797394514084, 0.20478832721710205, 0.21021024882793427, -0.14986002445220947, -0.03605540841817856, 0.23176056146621704, -0.17219178378582, -0.20555445551872253, -0.16391125321388245, 0.7347182035446167, -0.18696577847003937, -0.25012627243995667, -0.14616408944129944, 0.4038398563861847, -0.12791308760643005, -0.22810757160186768, -0.05006513372063637, -0.16088485717773438, -0.4026356041431427, -0.00493573397397995, -0.06347548961639404, -0.11267133802175522, -0.14501264691352844, 0.22269578278064728, -0.06672148406505585, -0.23373964428901672, -0.34302404522895813, -0.03207457438111305, -0.1722002476453781, -0.2374606728553772, 0.24691975116729736, 0.492799311876297, -0.03925219923257828, -0.04438404738903046, 0.24888941645622253, 0.37156689167022705, 0.2062990367412567, -0.036203138530254364, 0.12719644606113434, 0.006109781563282013, -0.00014720112085342407, -0.238724023103714, 0.20484115183353424, 0.05739352107048035, -0.029774826020002365, 0.3240717947483063, 0.27616316080093384, -0.3107549548149109, -0.14676646888256073, -0.007153170183300972, 0.0752679854631424, -0.1834910809993744, 0.0840042233467102, -0.22932526469230652, -0.018846668303012848, -0.2724255323410034, -0.03999203443527222, -0.467864990234375, 0.29306086897850037, 0.4881744384765625, -0.09802508354187012, 0.21362052857875824, -0.31284159421920776, 0.14994904398918152, -0.009569252841174603, 0.5411003828048706, 0.3447871506214142, 0.03218667954206467, -0.34703415632247925, -0.3034188151359558, -0.7088706493377686, 0.12395886331796646, 0.18140822649002075, 0.35738468170166016, -0.20414534211158752, -0.15122652053833008, 0.15223056077957153, 0.0626370906829834, 0.0859173908829689, 0.23025035858154297, -0.008512262254953384, -0.1255456954240799, -0.24128231406211853, 0.05648759379982948, -0.03810733184218407, -0.05732589215040207, 0.021019823849201202, -0.054989613592624664, 0.2110700011253357, -0.21440383791923523, 0.11252375692129135, -0.3159066140651703, 0.09517201781272888, -0.08015864342451096, 0.0805479884147644, 0.1205662339925766, 0.23675429821014404, 0.1540488600730896, -0.23923920094966888, -0.057379283010959625, -0.18241940438747406, -0.2834380865097046, -0.17311657965183258, 0.33861151337623596, -0.037903524935245514, 0.20533928275108337, 0.008053719997406006, 0.0012942999601364136, -0.3797041177749634, 0.1562884896993637, 0.01183280348777771, -0.15141403675079346, -0.22231924533843994, 0.2561257481575012, -0.04273519665002823, -0.28444722294807434, 0.34203213453292847, 0.2845246493816376, -0.0065562669187784195, 0.20184016227722168, -0.29687583446502686, -0.39995336532592773, 0.4029369056224823, -0.18291594088077545, -0.17836399376392365, -0.2296222746372223, 0.04906238988041878, 0.19542518258094788, -0.10679998248815536, -0.1924484819173813, 0.022869020700454712, 0.13015642762184143, 0.09053786844015121, -0.07176840305328369, 0.21546530723571777, -0.10687746107578278, -0.12129954993724823, -0.07546313852071762, 0.24882540106773376, 0.5338646173477173, -0.2447044551372528, -0.0007780790328979492, -0.015992559492588043 ]
https://github.com/huggingface/datasets/issues/1892
Yes that would be awesome. Not only the download speeds are awful, but also some files are missing. We list all the URLs in the datasets/wmt19/wmt_utils.py so we can make a script to download them all and host on S3. Also I think most of the materials are under the CC BY-NC-SA 3.0 license (must double check) so it should be possible to redistribute the data with no issues. cc @patrickvonplaten who knows more about the wmt scripts
request to mirror wmt datasets, as they are really slow to download
Would it be possible to mirror the wmt data files under hf? Some of them take hours to download and not because of the local speed. They are all quite small datasets, just extremely slow to download. Thank you!
78
request to mirror wmt datasets, as they are really slow to download Would it be possible to mirror the wmt data files under hf? Some of them take hours to download and not because of the local speed. They are all quite small datasets, just extremely slow to download. Thank you! Yes that would be awesome. Not only the download speeds are awful, but also some files are missing. We list all the URLs in the datasets/wmt19/wmt_utils.py so we can make a script to download them all and host on S3. Also I think most of the materials are under the CC BY-NC-SA 3.0 license (must double check) so it should be possible to redistribute the data with no issues. cc @patrickvonplaten who knows more about the wmt scripts
[ -0.19423821568489075, -0.3241640329360962, 0.0704934224486351, 0.2124052792787552, 0.010060219094157219, 0.0652930736541748, 0.1663087010383606, 0.4544948935508728, 0.056202247738838196, -0.11427632719278336, -0.25184166431427, -0.07385167479515076, -0.06027544289827347, 0.3107830882072449, -0.08183783292770386, -0.08268947899341583, -0.05647894740104675, 0.11708927154541016, -0.6240912675857544, -0.09608107060194016, 0.04916238784790039, -0.12435802817344666, -0.04375496506690979, -0.040334537625312805, -0.008134476840496063, 0.2965480089187622, -0.2204904556274414, 0.005367555655539036, -0.23783913254737854, 0.030222132802009583, 0.08252442628145218, 0.5002445578575134, 0.25140345096588135, 0.3773467540740967, -0.00011850666487589478, -0.1264590620994568, 0.19996586441993713, 0.1051914319396019, -0.2532369792461395, 0.09506915509700775, -0.4915255606174469, -0.3680059015750885, -0.23556441068649292, -0.01610589027404785, -0.11614091694355011, -0.12117442488670349, -0.10312604159116745, -0.04190226271748543, 0.2931007444858551, -0.10380364209413528, 0.0933474600315094, 0.469997376203537, -0.4896414279937744, -0.035668887197971344, 0.5301851630210876, 0.3358392119407654, -0.29627829790115356, 0.3221011161804199, 0.5346036553382874, -0.13897496461868286, 0.3522566258907318, 0.4234992563724518, -0.15687769651412964, 0.3637659549713135, 0.6082295179367065, -0.18875078856945038, 0.0055286698043346405, -0.013486295007169247, -0.24851197004318237, 0.652790904045105, 0.7208210229873657, -0.1008872538805008, -0.5376057028770447, -0.0442303866147995, -0.09795279800891876, 0.1767011135816574, -0.30571696162223816, 0.17438361048698425, 0.06618382036685944, 0.2955295145511627, -0.4052235782146454, -0.30338382720947266, -0.057906582951545715, 0.02883388288319111, -0.08914832770824432, 0.48042750358581543, 0.0012674927711486816, -0.024703476577997208, -0.17844903469085693, -0.13556480407714844, 0.4475506842136383, -0.4463377296924591, 0.21259677410125732, 0.0525238923728466, 0.06897622346878052, -0.39614471793174744, -0.40483948588371277, -0.12579290568828583, 0.12179011106491089, 0.07889815419912338, -0.0996377021074295, 0.03226790204644203, 0.06087406352162361, -0.005930395796895027, 0.053396422415971756, -0.09180217236280441, -0.2332044541835785, -0.27725541591644287, 0.27602294087409973, 0.1725941151380539, 0.08210314065217972, -0.0665006935596466, -0.18821294605731964, -0.10747003555297852, -0.48425522446632385, -0.029939940199255943, 0.04225555807352066, -0.3843735456466675, -0.17018333077430725, -0.2568979859352112, 0.1291089653968811, -0.16309389472007751, -0.2392382174730301, 0.09112417697906494, -0.20503143966197968, 0.2176315188407898, 0.3381384611129761, 0.13683202862739563, -0.19757026433944702, -0.12935221195220947, -0.045376967638731, -0.188868910074234, 0.10185390710830688, 0.4096263349056244, 0.19616402685642242, 0.10126958787441254, 0.08095724880695343, 0.012523114681243896, 0.2291605919599533, 0.37796488404273987, 0.2429530918598175, 0.22572916746139526, 0.0011985376477241516, 0.24556419253349304, -0.22642704844474792, 0.5534642338752747, -0.057104628533124924, 0.49466440081596375, -0.24056744575500488, 0.018929895013570786, -0.3959585726261139, -0.1411178708076477, 0.11635039746761322, 0.14347420632839203, -0.2485121637582779, -0.24112209677696228, -0.3235338628292084, -0.12150868773460388, -0.35814008116722107, 0.1436905562877655, -0.002751268446445465, -0.16033130884170532, -0.187188982963562, 0.04419479891657829, 0.13698098063468933, 0.5623065829277039, -0.35669052600860596, -0.03924025595188141, 0.13182291388511658, 0.09861549735069275, 0.42493143677711487, 0.4538916051387787, -0.15458758175373077, 0.009878667071461678, -0.22598765790462494, -0.056934475898742676, -0.08961273729801178, -0.219974085688591, 0.08959288150072098, 0.45705366134643555, -0.20565441250801086, -0.059787504374980927, 0.22751040756702423, 0.12481307983398438, 0.15728071331977844, -0.33333662152290344, -0.08032998442649841, 0.4827216863632202, -0.0005440060049295425, -0.053228750824928284, -0.24001935124397278, -0.5139433741569519, 0.3213062286376953, 0.3085312843322754, 0.1036253571510315, 0.1355849802494049, -0.11186408996582031, 0.09214230626821518, 0.49863266944885254, -0.005732150748372078, 0.030868850648403168, 0.03842780366539955, 0.24612826108932495, 0.4436832070350647, 0.02169405296444893, -0.054878272116184235, 0.10144388675689697, 0.0964069813489914, 0.13798141479492188, 0.004836673382669687, 0.3148326575756073, -0.2072589099407196, 0.002163723111152649, -0.11517608165740967, 0.02407607063651085, 0.21525312960147858, 0.03609064966440201, -0.2255757600069046, -0.1383960247039795, -0.3562447428703308, -0.028416812419891357, 0.006509872153401375, -0.061861734837293625, 0.03545057401061058, 0.35657328367233276, 0.39095908403396606, 0.08550459891557693, 0.31530916690826416, 0.42749208211898804, -0.105207659304142, 0.26115453243255615, 0.033189840614795685, -0.01139800064265728, -0.21189826726913452, -0.03242374584078789, 0.3801891803741455, 0.48837319016456604, 0.43316376209259033, 0.29523032903671265, -0.5407387018203735, 0.5896486639976501, 0.18382498621940613, 0.14215660095214844, -0.25575634837150574, -0.1816963255405426, 0.2997313439846039, -0.10906074941158295, 0.1404946744441986, 0.08279833942651749, -0.07760564982891083, -0.024450402706861496, -0.16662469506263733, -0.169337660074234, 0.08781728893518448, 0.26128578186035156, -0.06191983073949814, -0.2795538902282715, 0.06317489594221115, 0.01564928889274597, 0.28794676065444946, 0.13358566164970398, -0.13239097595214844, 0.06462650001049042, -0.0883883684873581, -0.35231009125709534, 0.18466179072856903, 0.19710850715637207, 0.16181477904319763, 0.12272652983665466, 0.26240217685699463, 0.08148589730262756, 0.13482098281383514, 0.39985793828964233, -0.23481610417366028, 0.09971679747104645, -0.026870202273130417, 0.0908878892660141, 0.1765916645526886, -0.15730805695056915, -0.09496930241584778, -0.26449984312057495, -0.1340385377407074, -0.03393284231424332, -0.1693638116121292, -0.20576076209545135, -0.2036469280719757, -0.39509323239326477, -0.16716453433036804, -0.5224649310112, -0.0712076723575592, -0.15302413702011108, -0.20381183922290802, 0.004424426704645157, 0.035945065319538116, -0.09244436770677567, -0.07876282930374146, -0.15335890650749207, 0.1934632807970047, -0.30435359477996826, 0.16765426099300385, -0.20286348462104797, 0.03727420046925545, 0.08262310922145844, -0.034815460443496704, 0.13399064540863037, 0.10738455504179001, 0.34209683537483215, -0.16450223326683044, 0.024506069719791412, -0.6451830863952637, -0.10083869099617004, -0.08911904692649841, 0.24133822321891785, -0.00529123842716217, -0.0128091461956501, 0.4223402440547943, 0.30999037623405457, 0.1228702962398529, 0.11486530303955078, -0.18872690200805664, -0.057935792952775955, 0.02661512792110443, -0.17915339767932892, -0.11818541586399078, -0.01173931360244751, -0.14991189539432526, -0.48677387833595276, -0.16893193125724792, -0.09108114242553711, -0.29017582535743713, -0.004747599363327026, -0.07030929625034332, -0.040264710783958435, -0.19977739453315735, -0.22923454642295837, 0.020279578864574432, -0.13263335824012756, -0.45353004336357117, 0.4614346921443939, 0.041638560593128204, -0.2373160421848297, 0.19840313494205475, 0.19462023675441742, -0.2962457239627838, 0.05091213062405586, -0.44047462940216064, -0.025973405689001083, -0.059978045523166656, -0.1563953310251236, 0.1378270387649536, 0.3616069555282593, 0.0748511254787445, -0.0016157738864421844, -0.018254589289426804, -0.17508986592292786, -0.1703830361366272, -0.31518206000328064, 0.07912704348564148, 0.33849552273750305, 0.04218851774930954, 0.153871089220047, 0.11675599217414856, 0.9036083221435547, 0.21061241626739502, 0.08607034385204315, 0.16930094361305237, 0.3139071464538574, 0.012604550458490849, 0.3304955065250397, -0.15010952949523926, 0.06020984798669815, -0.16466182470321655, 0.15268731117248535, 0.3023819327354431, 0.16549938917160034, -0.03224316984415054, -0.12360233068466187, -0.04108896479010582, -0.07213935256004333, -0.15311452746391296, -0.1666940301656723, 0.0026163081638514996, 0.10326439142227173, 0.21439823508262634, -0.13222981989383698, -0.043378595262765884, -0.27890071272850037, 0.5671607851982117, 0.5380115509033203, 0.07270096242427826, 0.11759261786937714, 0.09484738856554031, -0.21961817145347595, -0.3919326364994049, -0.07632733136415482, -0.0541766956448555, 0.2786935865879059, 0.05698428303003311, 0.1415187269449234, -0.0046378374099731445, -0.016283484175801277, 0.547010064125061, -0.3564412295818329, 0.2949027419090271, -0.14429596066474915, -0.3694460988044739, -0.17280620336532593, -0.3832760453224182, -0.10954109579324722, -0.5588150024414062, -0.07725904136896133, 0.3528345227241516, 0.008495867252349854, -0.15165141224861145, 0.0020080748945474625, 0.05905032157897949, -0.3691158890724182, -0.35756582021713257, 0.25566768646240234, -0.2719132900238037, -0.0996834933757782, -0.3776424527168274, -0.0062339529395103455, -0.28076761960983276, -0.2527925372123718, -0.02681782841682434, 0.09221237152814865, 0.44089049100875854, 0.33542463183403015, -0.09466224908828735, -0.09255744516849518, 0.30123427510261536, 0.3603009581565857, 0.03744199126958847, 0.23919907212257385, 0.36066630482673645, 0.5046020746231079, 0.27170801162719727, 0.0542825348675251, -0.41948816180229187, -0.13456490635871887, 0.2902258336544037, 0.43111950159072876, 0.05732744559645653, 0.21112288534641266, 0.17227225005626678, 0.3007180392742157, -0.5591009855270386, -0.0802777111530304, 0.09442111849784851, -0.06348743289709091, 0.017277352511882782, -0.33643126487731934, 0.2843792736530304, 0.14231349527835846, 0.08367042243480682, -0.2427271157503128, 0.04928401857614517, 0.10783717036247253, -0.17787469923496246, 0.26587969064712524, 1.1352505683898926, -0.3869088590145111, 0.3767450749874115, -0.28592953085899353, -0.4389290511608124, 0.1930587738752365, -0.27618181705474854, -0.3271011412143707, -0.2529640197753906, -0.3486737906932831, -0.10057595372200012, -0.16800546646118164, -0.0770905464887619, 0.23198406398296356, -0.04344679042696953, 0.3802528977394104, 0.28737780451774597, 0.14520657062530518, 0.08461008220911026, 0.2755833864212036, -0.17638669908046722, -0.1767057180404663, 0.017467200756072998, 0.08580340445041656, -0.19337795674800873, 0.3361290693283081, -0.14729617536067963, -0.29699406027793884, 0.08056513965129852, 0.11210152506828308, -0.21199309825897217, 0.16943660378456116, -0.09687113761901855, -0.12840959429740906, -0.3832774758338928, 0.03166422247886658, 0.5623492002487183, -0.6436487436294556, -0.028358135372400284, 0.46710073947906494, -0.4409531056880951, -0.009300683625042439, -0.18831519782543182, 0.06066540256142616, -0.20780155062675476, 0.04333141818642616, 0.13826915621757507, -0.1444748044013977, -0.14585991203784943, -0.27693602442741394, 0.2813337445259094, 0.016846805810928345, -0.05512644350528717, -0.4118454158306122, 0.1743120700120926, 0.16721194982528687, -0.04465200752019882, 0.19620482623577118, 0.06321118772029877, -0.027257420122623444, 0.08193451911211014, 0.2307799905538559, -0.4344763457775116, 0.3629765510559082, 0.3060404658317566, -0.040843747556209564, -0.02791449800133705, 0.62746661901474, 0.0486871600151062, 0.10147068649530411, 0.3580073118209839, 0.5374690294265747, -0.24156516790390015, -0.1683884561061859, 0.030749201774597168, -0.0980752557516098, -0.10629742592573166, 0.1364811211824417, -0.05025477334856987, 0.06600183248519897, -0.06909072399139404, 0.1344999372959137, 0.35932934284210205, -0.46899622678756714, -0.24363656342029572, -0.39424484968185425, 0.024258382618427277, 0.05354757606983185, 0.032704271376132965, 0.1865343153476715, -0.21317313611507416, 0.004858154803514481, 0.07886055111885071, -0.13003379106521606, -0.2711832523345947, 0.2341393530368805, 0.10940533876419067, 0.1262315809726715, -0.0035661160945892334, -0.08216908574104309, -0.15683072805404663, -0.0009770654141902924, -0.08956538140773773, -0.1557525247335434, -0.13735614717006683, -0.1435673087835312, -0.04314970225095749, 0.2149403989315033, 0.20335838198661804, -0.20767375826835632, 0.21520328521728516, -0.42401474714279175, -0.20527109503746033, 0.2071903496980667, 0.0006216317415237427, 0.20794278383255005, 0.059028808027505875, 0.3071044683456421, 0.4449149966239929, -0.4507369101047516, -0.3996252417564392, 0.5348268151283264, 0.32535937428474426, 0.32554805278778076, -0.0671701654791832, -0.23546762764453888, 0.26500627398490906, -0.012356624007225037, -0.01095200702548027, -0.08315595984458923, 0.09328201413154602, 0.2349168360233307, 0.6755414605140686, -0.22231043875217438, 0.24696622788906097, 0.3122735917568207, 0.5689750909805298, 0.16584879159927368, 0.08417314291000366, -0.062343984842300415, 0.3127584457397461, 0.11072532832622528, -0.2655971646308899, -0.2527965009212494, 0.007515992969274521, 0.19485843181610107, 0.0039294809103012085, 0.03100600466132164, 0.1690727174282074, 0.047198981046676636, -0.30800366401672363, -0.10372821986675262, 0.1783950924873352, 0.27076616883277893, -0.27169156074523926, 0.13596996665000916, 0.3350217938423157, 0.04923155903816223, -0.06882262974977493, 0.10730786621570587, -0.08786651492118835, -0.05486368015408516, 0.20237624645233154, 0.3228909373283386, 0.13746923208236694, 0.18459221720695496, 0.00046379491686820984, -0.27287036180496216, -0.07698961347341537, 0.13076895475387573, 0.36024147272109985, 0.16495531797409058, -0.10152601450681686, -0.22404393553733826, 0.3066636323928833, -0.41010957956314087, -0.13968558609485626, 0.4005138874053955, 0.15488393604755402, -0.09200491011142731, -0.03530993312597275, -0.02612953633069992, -0.014994777739048004, 0.13566261529922485, -0.08667412400245667, -0.10968132317066193, 0.20189844071865082, 0.26821091771125793, 0.30909106135368347, -0.10020704567432404, 0.04178021103143692, 0.028145771473646164, 0.23111304640769958, -0.18587550520896912, -0.36617010831832886, -0.15666505694389343, 0.11626000702381134, 0.26699867844581604, 0.3494161069393158, 0.06234052777290344, 0.07632049918174744, -0.14079992473125458, 0.09241634607315063, -0.05873982235789299, -0.036752671003341675, 0.10456402599811554, 0.18649980425834656, -0.15578122437000275, -0.2483764886856079, 0.19581951200962067, 0.046649083495140076, -0.1271166205406189, -0.14211593568325043, -0.31931939721107483, -0.4644871652126312, -0.23840349912643433, 0.14301124215126038, 0.20911265909671783, -0.06357565522193909, -0.14909261465072632, 0.14205631613731384, -0.29406988620758057, 0.01623174175620079, 0.6448603868484497, -0.25740426778793335, 0.10372668504714966, 0.024150200188159943, 0.035791803151369095, -0.36642003059387207, 0.44024649262428284, 0.5229843854904175, 0.3633781969547272, -0.2721736431121826, -0.04722671955823898, -0.2062496393918991, -0.11558733880519867, -0.3925129175186157, -0.015404090285301208, 0.10472849756479263, 0.07678816467523575, 0.2676980495452881, 0.08449266850948334, 0.15725579857826233, 0.49315574765205383, -0.19596071541309357, 0.14946536719799042, -0.11393538862466812, -0.09477847069501877, -0.1895318627357483, 0.29234158992767334, -0.15693333745002747, -0.30241507291793823, 0.2051190584897995, 0.07300250232219696, -0.10115332901477814, -0.06745123863220215, 0.18487229943275452, 0.2188970297574997, 0.22321589291095734, 0.08671845495700836, -0.3278852105140686, 0.2595081329345703, 0.007499121129512787, 0.08890815079212189, 0.026173926889896393, -0.07863102108240128, -0.022980142384767532, -0.06622350960969925, -0.2500491440296173, -0.19422116875648499, 0.02999488264322281, 0.07090990245342255, -0.1323094367980957, 0.06774808466434479, -0.19096413254737854, 0.021840419620275497, -0.2647404372692108, 0.28256547451019287, -0.5296422243118286, 0.10882364213466644, 0.08981484919786453, -0.025601211935281754, -0.11682966351509094, -0.28226059675216675, -0.23111176490783691, -0.18485286831855774, 0.5103880167007446, -0.1827993243932724, -0.17600850760936737, -0.35966429114341736, 0.11177623271942139, -0.363066703081131, 0.3120628893375397, -0.15715667605400085, 0.180851548910141, 0.14607563614845276, -0.09238748252391815, 0.2985774874687195, 0.5052083134651184, 0.09313946962356567, -0.07515095919370651, -0.09362946450710297, 0.28782251477241516, -0.05176880955696106, 0.0559038370847702, -0.5135706663131714, 0.02702414244413376 ]
https://github.com/huggingface/datasets/issues/1892
Yeah, the scripts are pretty ugly! A big refactor would make sense here...and I also remember that the datasets were veeery slow to download
request to mirror wmt datasets, as they are really slow to download
Would it be possible to mirror the wmt data files under hf? Some of them take hours to download and not because of the local speed. They are all quite small datasets, just extremely slow to download. Thank you!
24
request to mirror wmt datasets, as they are really slow to download Would it be possible to mirror the wmt data files under hf? Some of them take hours to download and not because of the local speed. They are all quite small datasets, just extremely slow to download. Thank you! Yeah, the scripts are pretty ugly! A big refactor would make sense here...and I also remember that the datasets were veeery slow to download
[ -0.38050833344459534, -0.17535437643527985, 0.007587600499391556, 0.103769950568676, -0.010469107888638973, 0.059977948665618896, 0.16703125834465027, 0.507707417011261, 0.2716601490974426, -0.030725672841072083, -0.25061967968940735, -0.22163119912147522, 0.03399687260389328, 0.2432684302330017, -0.1237286925315857, -0.23903076350688934, -0.17499147355556488, 0.16517364978790283, -0.7791348099708557, -0.17991319298744202, 0.10615618526935577, -0.19560769200325012, -0.12825238704681396, 0.0072473566979169846, -0.035457052290439606, 0.18323835730552673, -0.1280824840068817, 0.009202361106872559, -0.281499445438385, 0.1942981779575348, 0.08073178678750992, 0.49435997009277344, 0.18010857701301575, 0.2579830288887024, -0.00011398653441574425, -0.12332470715045929, 0.30372971296310425, 0.1550534963607788, -0.12949343025684357, 0.2597903311252594, -0.3924545645713806, -0.39524802565574646, -0.16103270649909973, -0.06587428599596024, -0.043639205396175385, -0.127395898103714, 0.042342253029346466, -0.17911303043365479, 0.2340647578239441, -0.1549866944551468, 0.17164576053619385, 0.3462652266025543, -0.47910234332084656, -0.059596020728349686, 0.3936366140842438, 0.28607216477394104, -0.3739835321903229, 0.36437201499938965, 0.5096561908721924, -0.10866501927375793, 0.09141960740089417, 0.3541181981563568, 0.0158589705824852, 0.26419177651405334, 0.4950578808784485, -0.24078316986560822, 0.07559917867183685, 0.05027799308300018, -0.25113147497177124, 0.5559906363487244, 0.7872533202171326, -0.05664368346333504, -0.3280631899833679, 0.12331512570381165, -0.19759242236614227, 0.2542443871498108, -0.22483807802200317, 0.05684814602136612, 0.02463766559958458, 0.357707142829895, -0.4675731062889099, -0.3055553138256073, 0.03961227834224701, -0.07427415251731873, -0.10592158138751984, 0.2843851149082184, 0.07163890451192856, -0.012037467211484909, -0.09218369424343109, -0.11428816616535187, 0.22897088527679443, -0.42789578437805176, 0.08431759476661682, 0.06600236147642136, 0.04354102909564972, -0.40745624899864197, -0.3956964612007141, 0.025587156414985657, 0.2399980127811432, 0.185892254114151, 0.0770377665758133, 0.12132084369659424, -0.07967226207256317, -0.06023531034588814, 0.12221294641494751, 0.2509380578994751, -0.21327926218509674, -0.32274675369262695, 0.3489449620246887, 0.04150459170341492, -0.05070748180150986, 0.0060406643897295, -0.03999203443527222, -0.10212816298007965, -0.3949145972728729, 0.12375970184803009, 0.056468769907951355, -0.32865798473358154, -0.22151772677898407, -0.20238658785820007, 0.09519970417022705, -0.21822623908519745, -0.14774660766124725, 0.11608748137950897, -0.2152332067489624, 0.324593722820282, 0.3515891134738922, -0.081258125603199, -0.20320579409599304, -0.10623803734779358, -0.08767332136631012, -0.0906696766614914, -0.10203129053115845, 0.328611820936203, 0.22915545105934143, 0.16536052525043488, -0.010369859635829926, -0.0122765451669693, 0.26871469616889954, 0.3333778977394104, 0.12403447180986404, 0.1441439986228943, -0.016218017786741257, 0.16677360236644745, -0.3102000951766968, 0.4530285894870758, -0.0016280338168144226, 0.5766243934631348, -0.25224220752716064, 0.1281220018863678, -0.4634128212928772, -0.15121188759803772, 0.09334264695644379, 0.22277256846427917, -0.06919793784618378, -0.14741021394729614, -0.3374597132205963, -0.11355350911617279, -0.3930579721927643, 0.08389577269554138, -0.04841424897313118, -0.09423334896564484, -0.1931762993335724, 0.10010774433612823, -0.03276374191045761, 0.5073938369750977, -0.46618977189064026, 0.13006208837032318, 0.04783651977777481, -0.08479142934083939, 0.543150007724762, 0.5093154907226562, -0.27623775601387024, 0.14906878769397736, -0.3273758590221405, -0.18760953843593597, 0.07628151029348373, -0.24532745778560638, 0.04655378311872482, 0.5941823124885559, -0.2964410185813904, -0.033051732927560806, 0.22922620177268982, 0.11168073117733002, 0.2743133008480072, -0.27307236194610596, -0.12890344858169556, 0.36665353178977966, -0.05830908566713333, -0.024774812161922455, -0.29941225051879883, -0.5489878058433533, 0.2229863405227661, 0.2651912271976471, 0.12807883322238922, 0.3034206032752991, -0.03866427764296532, 0.09886056184768677, 0.653822660446167, -0.008928077295422554, -0.023439530283212662, -0.0003189379349350929, 0.04721895232796669, 0.30543625354766846, 0.1835782378911972, -0.07479222863912582, 0.08389605581760406, 0.03236249089241028, 0.015960507094860077, -0.04988688975572586, 0.5514829754829407, -0.26070737838745117, -0.1371172070503235, -0.13339799642562866, 0.12384051084518433, 0.2173399031162262, 0.07508773356676102, -0.18699076771736145, -0.3331972062587738, -0.4164794087409973, -0.08384672552347183, 0.3183397054672241, -0.17071011662483215, -0.023818297311663628, 0.3621009290218353, 0.3282925486564636, 0.004281952045857906, 0.4077359437942505, 0.2721310257911682, -0.210631862282753, 0.2551043629646301, -0.09201553463935852, -0.04196612909436226, -0.10118992626667023, -0.0889153853058815, 0.3310204744338989, 0.5127511620521545, 0.2911527156829834, 0.3215765357017517, -0.49973466992378235, 0.5782852172851562, 0.284039169549942, 0.08916661143302917, -0.30639147758483887, -0.19123521447181702, 0.25037431716918945, -0.13092701137065887, 0.07487808167934418, 0.10605490207672119, -0.13187719881534576, -0.01963004097342491, -0.24048200249671936, -0.12765935063362122, 0.0532318651676178, 0.4599596858024597, 0.12357208877801895, -0.1596832424402237, 0.1282089650630951, -0.042849987745285034, 0.26173895597457886, 0.09073946624994278, -0.1311025768518448, -0.03400981426239014, -0.07171165943145752, -0.19732925295829773, 0.2812797427177429, 0.0401282012462616, 0.01096055656671524, 0.1533152163028717, 0.3378607928752899, 0.024484049528837204, 0.2259531021118164, 0.37780889868736267, -0.2540164291858673, 0.06514337658882141, -0.09154003858566284, 0.066992849111557, 0.14427965879440308, -0.054981768131256104, -0.10415645688772202, -0.40475842356681824, -0.18128639459609985, 0.046371832489967346, -0.09767577797174454, -0.1688510775566101, -0.34465423226356506, -0.408267617225647, -0.0992143526673317, -0.5792316794395447, 0.0557992197573185, -0.004637793637812138, -0.26757434010505676, 0.10471968352794647, 0.07556817680597305, -0.15718258917331696, 0.12019338458776474, -0.17034651339054108, 0.2722747027873993, -0.280775249004364, 0.3172820210456848, -0.2882126569747925, 0.06097998470067978, 0.08058492839336395, 0.05994495004415512, 0.19331958889961243, 0.05932347849011421, 0.3335086703300476, -0.18041351437568665, 0.06729784607887268, -0.5876150727272034, -0.11009488999843597, -0.07580595463514328, 0.3115237057209015, -0.05886312574148178, -0.006656069308519363, 0.42421773076057434, 0.26090008020401, -0.044402629137039185, -0.07448490709066391, -0.1252695471048355, -0.1272205114364624, -0.12518195807933807, -0.1961207240819931, -0.14522801339626312, -0.04583607241511345, -0.2629895508289337, -0.4468736946582794, -0.16613470017910004, -0.021550603210926056, -0.25842374563217163, 0.09883606433868408, 0.03525082394480705, -0.1489524096250534, -0.33187299966812134, -0.18973910808563232, -0.046647511422634125, -0.1492343544960022, -0.3901195526123047, 0.4578678011894226, 0.0261717326939106, -0.26467686891555786, 0.14985620975494385, 0.2164313644170761, -0.5094373822212219, 0.0981018990278244, -0.2976004481315613, -0.014046702533960342, -0.16504782438278198, -0.22646881639957428, 0.14454904198646545, 0.23603235185146332, 0.0886881947517395, -0.05173865333199501, -0.09514927864074707, -0.06712726503610611, -0.09629184752702713, -0.0946701318025589, -0.015710029751062393, 0.3045811355113983, 0.06646434962749481, 0.167575865983963, -0.0576213076710701, 0.9596549272537231, 0.02169133722782135, 0.1754840910434723, 0.06793925166130066, 0.2717379331588745, 0.03986988961696625, 0.20142817497253418, -0.26688241958618164, 0.08353538811206818, -0.12491844594478607, 0.05218245089054108, 0.3039146065711975, 0.12497907131910324, -0.17082618176937103, -0.07002973556518555, -0.07579386234283447, 0.07123489677906036, -0.1591445505619049, -0.14147686958312988, -0.11619199812412262, -0.00786270946264267, 0.30218595266342163, -0.010613128542900085, -0.17026454210281372, -0.2661760449409485, 0.49681687355041504, 0.5332593321800232, -0.04560568928718567, -0.015496930107474327, 0.09216110408306122, -0.07836277037858963, -0.38214534521102905, -0.04826744645833969, 0.0627889335155487, 0.2886774241924286, 0.01448405534029007, 0.1875745952129364, 0.046396173536777496, -0.007496409118175507, 0.54532790184021, -0.12377151101827621, 0.334952712059021, -0.127111554145813, -0.2761816382408142, -0.012523051351308823, -0.37556007504463196, -0.09070021659135818, -0.405047208070755, 0.09135343134403229, 0.19817659258842468, 0.02711707353591919, -0.12659570574760437, 0.30565986037254333, 0.07800768315792084, -0.31804007291793823, -0.40106093883514404, 0.2760356664657593, -0.14865820109844208, -0.06601959466934204, -0.27615585923194885, -0.03714953735470772, -0.3086215853691101, -0.29198139905929565, 0.045566096901893616, 0.09172007441520691, 0.3058348298072815, 0.38383734226226807, -0.25766491889953613, -0.005940757691860199, 0.24732011556625366, 0.37972894310951233, -0.07637521624565125, 0.44322118163108826, 0.19991286098957062, 0.4128924608230591, 0.20503118634223938, 0.13313069939613342, -0.2609013319015503, -0.17556841671466827, 0.14466717839241028, 0.5312457084655762, 0.030027564615011215, 0.04134859889745712, 0.10080122947692871, 0.2563355565071106, -0.4412163496017456, -0.015006162226200104, 0.030020445585250854, -0.14364856481552124, -0.13302156329154968, -0.36389458179473877, 0.4546468257904053, 0.2197043001651764, 0.0021267980337142944, 0.11501775681972504, 0.08374238759279251, 0.12314529716968536, -0.2407301664352417, 0.13187825679779053, 1.227144479751587, -0.32639801502227783, 0.16479603946208954, -0.3563351035118103, -0.48681822419166565, 0.03347631171345711, -0.4651015102863312, -0.20875944197177887, -0.31277334690093994, -0.49079447984695435, -0.1319437026977539, -0.1764509677886963, 0.016078848391771317, 0.21038809418678284, -0.06783991307020187, 0.31879374384880066, 0.22654318809509277, 0.17737263441085815, 0.04381629079580307, 0.4219677150249481, -0.20839840173721313, -0.14051589369773865, 0.23251017928123474, 0.1023765578866005, -0.11305313557386398, 0.2913127541542053, -0.180750772356987, -0.2523024082183838, 0.0849614143371582, 0.08830758184194565, -0.3463486433029175, 0.16265541315078735, -0.17567989230155945, -0.0730062797665596, -0.4221745729446411, 0.03820657730102539, 0.45409074425697327, -0.5974770188331604, -0.04031364992260933, 0.4229363203048706, -0.4424493610858917, 0.1386764794588089, -0.22402390837669373, 0.1539202183485031, -0.1801406741142273, 0.1034056693315506, 0.1297214776277542, -0.17627409100532532, -0.2432311475276947, -0.37472963333129883, 0.10030485689640045, -0.12559819221496582, -0.2650667130947113, -0.3074171543121338, 0.3010382652282715, 0.2093646377325058, -0.04239215701818466, 0.29683390259742737, 0.005701743066310883, -0.004227973520755768, 0.10961185395717621, 0.13536198437213898, -0.3067115247249603, 0.45929673314094543, 0.48777687549591064, -0.19000907242298126, -0.07231269776821136, 0.6181305646896362, 0.2643420994281769, -0.05873813480138779, 0.3968242108821869, 0.32544004917144775, -0.3243730068206787, -0.22695019841194153, -0.008266910910606384, 0.11973286420106888, -0.1654709279537201, 0.04817384481430054, -0.2693100869655609, 0.03071962296962738, 0.06503097712993622, 0.2906700372695923, 0.20030111074447632, -0.31911221146583557, -0.3266788125038147, -0.29993587732315063, -0.14104411005973816, 0.036392197012901306, -0.1130058616399765, 0.1646093726158142, -0.09486881643533707, 0.14720317721366882, 0.08824974298477173, -0.062258124351501465, -0.3280102014541626, 0.1313580870628357, 0.19283193349838257, 0.026766736060380936, 0.10105901211500168, -0.01627483405172825, -0.13776539266109467, 0.09353841841220856, -0.03423314914107323, -0.04373260214924812, -0.24011382460594177, -0.1801443099975586, 0.028041981160640717, 0.1960352212190628, 0.009221581742167473, -0.14585524797439575, 0.14587868750095367, -0.4362350106239319, -0.24230609834194183, 0.20928843319416046, -0.017563097178936005, 0.18957243859767914, 0.033688414841890335, 0.06021643429994583, 0.4817602038383484, -0.40441468358039856, -0.29557615518569946, 0.45266401767730713, 0.3606828451156616, 0.4359559714794159, -0.12892527878284454, -0.21725678443908691, 0.1653549075126648, -0.05831717699766159, -0.03798630088567734, -0.008353609591722488, 0.25337934494018555, 0.3885248601436615, 0.5414738655090332, -0.09755681455135345, 0.20742464065551758, 0.33283430337905884, 0.5465676188468933, 0.18358229100704193, 0.11677483469247818, -0.25743699073791504, 0.19621716439723969, 0.12623384594917297, -0.29414790868759155, -0.1781192272901535, 0.24016910791397095, 0.16394762694835663, -0.02251574397087097, -0.03335573524236679, 0.19689932465553284, -0.007268860936164856, -0.0731642097234726, -0.08117934316396713, 0.28502199053764343, 0.11329938471317291, -0.31630873680114746, 0.1843847930431366, 0.2956699728965759, 0.0016438653692603111, 0.01510460115969181, 0.2206535041332245, 0.004665117710828781, 0.20000648498535156, 0.18155483901500702, 0.39759695529937744, 0.2893584072589874, 0.2947402894496918, -0.030302759259939194, -0.2451181411743164, 0.05552985146641731, 0.2859325408935547, 0.2938247323036194, 0.18083664774894714, 0.11049442738294601, -0.33148032426834106, 0.33338236808776855, -0.3425588011741638, -0.22186529636383057, 0.35216301679611206, 0.11523094773292542, 0.007643952965736389, 0.03828030079603195, -0.11789415776729584, -0.09556407481431961, 0.09744943678379059, -0.1117018610239029, 0.14327949285507202, 0.26809999346733093, 0.14038804173469543, 0.14480797946453094, -0.06409034132957458, 0.07136554270982742, -0.07017767429351807, 0.2951071560382843, -0.23506814241409302, -0.34203463792800903, -0.20251353085041046, 0.19145408272743225, 0.44042468070983887, 0.5600757002830505, -0.12499421834945679, 0.2510112226009369, 0.07936012744903564, -0.06559837609529495, -0.163702592253685, -0.024078093469142914, 0.11377017199993134, 0.20611132681369781, -0.1341821402311325, -0.22680237889289856, 0.23272496461868286, 0.08123335242271423, -0.13998878002166748, -0.06479920446872711, -0.22717072069644928, -0.5099564790725708, -0.2978399991989136, 0.18720956146717072, 0.2960658669471741, -0.039126187562942505, -0.19101879000663757, -0.021796293556690216, -0.19434627890586853, -0.11203688383102417, 0.3948345184326172, -0.26858121156692505, 0.048197805881500244, 0.0001687183976173401, 0.06413765996694565, -0.3175901174545288, 0.3527600169181824, 0.5571140050888062, 0.2938532531261444, -0.2924823760986328, -0.1421653777360916, -0.3117375075817108, -0.02947726845741272, -0.3457060158252716, 0.0882662981748581, 0.08430999517440796, 0.01878800243139267, 0.3116801977157593, 0.03537490963935852, 0.3401128053665161, 0.3215564489364624, -0.08616863936185837, 0.06709439307451248, -0.13792458176612854, -0.03360634297132492, -0.09777937829494476, 0.2399318367242813, -0.16228729486465454, -0.42003780603408813, 0.3297255039215088, 0.11490379273891449, -0.01781589165329933, -0.0010443869978189468, 0.022191710770130157, 0.20197586715221405, 0.06602007150650024, 0.029775455594062805, -0.26078423857688904, 0.3256412744522095, -0.05111522972583771, 0.10368786007165909, -0.04113386943936348, -0.11827792227268219, -0.08854950964450836, -0.1841380000114441, -0.09872779250144958, -0.2638862431049347, 0.023784153163433075, -0.03846481442451477, -0.047537218779325485, 0.10232789814472198, -0.271950364112854, 0.1443004161119461, -0.36897727847099304, 0.09974430501461029, -0.4695650637149811, 0.07335565984249115, 0.047781411558389664, 0.011149904690682888, -0.026246607303619385, -0.14847218990325928, -0.16202889382839203, -0.10923121869564056, 0.4935832619667053, 0.1556565761566162, -0.3027802109718323, -0.36018261313438416, 0.18396815657615662, -0.34465909004211426, 0.4294772446155548, -0.1602383852005005, 0.0225389301776886, 0.11779816448688507, -0.14330017566680908, 0.37580540776252747, 0.47950220108032227, 0.1060115247964859, -0.11976845562458038, -0.11070820689201355, 0.12669292092323303, 0.022380385547876358, 0.069292351603508, -0.5538514852523804, 0.05012062191963196 ]
https://github.com/huggingface/datasets/issues/1892
I'm downloading them. I'm starting with the ones hosted on http://data.statmt.org which are the slowest ones
request to mirror wmt datasets, as they are really slow to download
Would it be possible to mirror the wmt data files under hf? Some of them take hours to download and not because of the local speed. They are all quite small datasets, just extremely slow to download. Thank you!
16
request to mirror wmt datasets, as they are really slow to download Would it be possible to mirror the wmt data files under hf? Some of them take hours to download and not because of the local speed. They are all quite small datasets, just extremely slow to download. Thank you! I'm downloading them. I'm starting with the ones hosted on http://data.statmt.org which are the slowest ones
[ -0.4048577547073364, -0.31400907039642334, 0.03699664771556854, 0.1695626676082611, -0.01398396585136652, 0.1483641266822815, 0.09767122566699982, 0.44067156314849854, 0.2012498676776886, -0.026052609086036682, -0.34671705961227417, -0.2557104527950287, 0.08942714333534241, 0.10724391788244247, -0.160569965839386, -0.25487807393074036, -0.08242389559745789, 0.12840864062309265, -0.6802173852920532, -0.1375783085823059, 0.09161810576915741, -0.29267218708992004, -0.10662903636693954, 0.10052048414945602, -0.12450018525123596, 0.11879147589206696, -0.1336614191532135, -0.04032507538795471, -0.271342933177948, 0.22312608361244202, 0.08542538434267044, 0.36945265531539917, 0.1696944534778595, 0.2424309402704239, -0.00011446408461779356, -0.11005061119794846, 0.17673806846141815, 0.20666128396987915, -0.2290119230747223, 0.01476936787366867, -0.44971075654029846, -0.4104301631450653, -0.21661131083965302, 0.01022540032863617, -0.04807107523083687, -0.22205007076263428, -0.01682739146053791, -0.18808312714099884, 0.20304694771766663, -0.21831564605236053, 0.1400483250617981, 0.2997651994228363, -0.4613548517227173, -0.11715366691350937, 0.3193845748901367, 0.22567635774612427, -0.28117620944976807, 0.367602676153183, 0.3717104196548462, 0.06329532712697983, 0.13109014928340912, 0.2845408618450165, -0.011256944388151169, 0.5359501838684082, 0.36855918169021606, -0.16632628440856934, 0.16329708695411682, 0.14133673906326294, -0.22588041424751282, 0.62672358751297, 0.8606652021408081, -0.03622834011912346, -0.3107341527938843, 0.16445821523666382, -0.10436540842056274, 0.3088449537754059, -0.14538148045539856, 0.2164488434791565, 0.02189924195408821, 0.3345198333263397, -0.35991978645324707, -0.26227855682373047, 0.021919436752796173, -0.03852180764079094, -0.17725282907485962, 0.24549329280853271, 0.038683146238327026, -0.016762536019086838, -0.10302208364009857, -0.1719415783882141, 0.2029070258140564, -0.5088527798652649, 0.14822918176651, 0.05599711090326309, 0.04764743149280548, -0.34368395805358887, -0.6021657586097717, -0.011913683265447617, 0.2365087866783142, 0.13156823813915253, -0.0645148828625679, 0.011389300227165222, -0.11552047729492188, -0.00403418205678463, 0.1955769956111908, 0.021670114248991013, -0.3318411409854889, -0.3245333433151245, 0.25379204750061035, -0.12278091907501221, -0.12076954543590546, -0.005175038240849972, -0.05601928010582924, -0.03168031945824623, -0.39781007170677185, -0.12017764151096344, -0.0525079220533371, -0.4321282207965851, -0.24001315236091614, -0.24099093675613403, 0.004335828125476837, -0.23858775198459625, -0.17644421756267548, 0.0435199961066246, -0.2159593403339386, 0.18030965328216553, 0.2785014808177948, -0.055914826691150665, -0.19921883940696716, -0.19129683077335358, -0.11330678313970566, -0.26883524656295776, 0.07624677568674088, 0.3992103934288025, 0.12029491364955902, 0.08329255878925323, -0.034925494343042374, 0.00408400222659111, 0.2557312846183777, 0.3186904788017273, 0.22807589173316956, 0.08058828860521317, -0.050708673894405365, 0.1632944792509079, -0.19238945841789246, 0.549245297908783, 0.006165270693600178, 0.5649521350860596, -0.21619543433189392, 0.04963561147451401, -0.49021241068840027, -0.08306606113910675, 0.1664421409368515, 0.1738639622926712, 0.014853797852993011, -0.1995096206665039, -0.3133869171142578, -0.07920639216899872, -0.5097863674163818, 0.15524493157863617, -0.12812411785125732, -0.044426918029785156, -0.14756682515144348, 0.12256518006324768, 0.044283680617809296, 0.4127906560897827, -0.2928537130355835, 0.015791937708854675, 0.05340812727808952, -0.04624976962804794, 0.48941442370414734, 0.5050532817840576, -0.241339772939682, 0.1250048577785492, -0.2376471757888794, -0.11758430302143097, 0.05152431130409241, -0.12299112975597382, -0.032572221010923386, 0.5273022651672363, -0.31504133343696594, -0.2354467809200287, 0.17701640725135803, 0.20235030353069305, 0.21605652570724487, -0.22991293668746948, -0.07362078130245209, 0.3995550274848938, -0.026560455560684204, -0.04338547959923744, -0.29445838928222656, -0.48695746064186096, 0.2586962878704071, 0.23748564720153809, 0.053050603717565536, 0.19598379731178284, -0.005767911672592163, 0.19489383697509766, 0.45904475450515747, 0.0916241705417633, -0.00717940554022789, -0.04296930134296417, 0.09142659604549408, 0.2943185567855835, 0.0716167539358139, -0.09054472297430038, 0.17104853689670563, -0.0536937415599823, 0.1256408840417862, -0.03154744580388069, 0.5903394818305969, -0.150325208902359, 0.007481146603822708, -0.06312485784292221, 0.14562435448169708, 0.3890589773654938, 0.04754450172185898, -0.14973312616348267, -0.25374528765678406, -0.2909080982208252, 0.04853932559490204, 0.32435110211372375, -0.21795319020748138, -0.01253257505595684, 0.5686085820198059, 0.4224885106086731, 0.0976044163107872, 0.42735564708709717, 0.3591609299182892, -0.16085895895957947, 0.21276871860027313, -0.024706367403268814, -0.11882749944925308, -0.11536742746829987, -0.08957082033157349, 0.31140926480293274, 0.576736330986023, 0.1853417158126831, 0.36300963163375854, -0.5933864116668701, 0.5415116548538208, 0.15864725410938263, 0.03534920886158943, -0.23794257640838623, -0.17085736989974976, 0.22705987095832825, -0.07269391417503357, 0.016940105706453323, 0.08909459412097931, -0.051158975809812546, 0.028912626206874847, -0.1342880129814148, -0.026850499212741852, 0.025878354907035828, 0.42358481884002686, 0.04383927211165428, -0.10899698734283447, 0.17343313992023468, -0.07205202430486679, 0.15877121686935425, 0.019203495234251022, -0.08711399137973785, 0.03643110767006874, -0.07716639339923859, -0.39947181940078735, 0.24575220048427582, 0.15864576399326324, 0.0353570282459259, 0.15614858269691467, 0.30966708064079285, 0.14160045981407166, 0.17111827433109283, 0.2627331018447876, -0.19461919367313385, 0.022240526974201202, -0.04501061141490936, -0.02300773561000824, 0.11377862095832825, -0.11547732353210449, -0.14288917183876038, -0.28552520275115967, -0.04215528443455696, 0.08203305304050446, -0.08464071154594421, -0.061404913663864136, -0.3466530442237854, -0.5324676632881165, -0.1312478929758072, -0.6174233555793762, -0.0382482148706913, -0.10324468463659286, -0.242007777094841, 0.03151242434978485, 0.04663765802979469, 0.0030834004282951355, 0.05545967072248459, -0.195947527885437, 0.2636880874633789, -0.2539597153663635, 0.2536247968673706, -0.20140159130096436, 0.11707176268100739, 0.011331142857670784, 0.04637026786804199, 0.16885443031787872, 0.26077011227607727, 0.36910057067871094, -0.11209775507450104, 0.13260424137115479, -0.5400486588478088, 0.040873780846595764, -0.01301751658320427, 0.3866236209869385, -0.033875755965709686, -0.2162376344203949, 0.4594663977622986, 0.18329256772994995, 0.05275141820311546, 0.027236878871917725, -0.16837069392204285, -0.08662006258964539, -0.06700364500284195, -0.16495101153850555, -0.031906262040138245, 0.06604211032390594, -0.26194116473197937, -0.5064026117324829, -0.1169009804725647, -0.08410723507404327, -0.25753724575042725, -0.011229699477553368, -0.03934698924422264, -0.1664269119501114, -0.19023998081684113, -0.2238335758447647, -0.01613621413707733, -0.2360784411430359, -0.47504472732543945, 0.47976619005203247, 0.07755902409553528, -0.2248680144548416, 0.14566054940223694, 0.22342289984226227, -0.47295427322387695, 0.10712438076734543, -0.3786623477935791, 0.08492790162563324, -0.1833435297012329, -0.16961462795734406, 0.18553534150123596, 0.2796223759651184, -0.05612393096089363, -0.10138194262981415, -0.07529265433549881, -0.06642798334360123, -0.15208469331264496, -0.10049919784069061, 0.06409985572099686, 0.39076554775238037, 0.08713182061910629, 0.054397352039813995, -0.014424026012420654, 0.9082939624786377, 0.22333425283432007, 0.06907087564468384, 0.038333334028720856, 0.27857133746147156, -0.08782258629798889, 0.21372033655643463, -0.2204853743314743, 0.07697447389364243, -0.07390913367271423, 0.1334906667470932, 0.427566796541214, 0.26443472504615784, -0.05358967185020447, -0.08247660100460052, -0.053862594068050385, 0.024477116763591766, -0.12766315042972565, -0.3043905794620514, 0.056409891694784164, 0.14237703382968903, 0.3426668047904968, -0.12095081061124802, -0.18974369764328003, -0.3379051089286804, 0.46881765127182007, 0.6513607501983643, -0.060964781790971756, 0.08050835132598877, 0.08083277940750122, -0.03148910030722618, -0.27587220072746277, -0.010239899158477783, 0.10721263289451599, 0.30371734499931335, -0.036274418234825134, 0.24223557114601135, 0.05062525346875191, 0.06275039166212082, 0.29026004672050476, -0.08467806875705719, 0.31499993801116943, -0.23687493801116943, -0.3210116922855377, 0.12252645194530487, -0.21143938601016998, -0.031498268246650696, -0.45938947796821594, 0.11686892807483673, 0.256466269493103, 0.018760576844215393, -0.08777682483196259, 0.18110229074954987, 0.0854196846485138, -0.3570491373538971, -0.36019665002822876, 0.3576744794845581, -0.13330434262752533, 0.11136911809444427, -0.29205799102783203, -0.15781667828559875, -0.1651882827281952, -0.16397210955619812, 0.04737018793821335, 0.09878651797771454, 0.2592984437942505, 0.40228134393692017, -0.27318036556243896, 0.0022828243672847748, 0.23689165711402893, 0.41510313749313354, 0.1408008337020874, 0.5216083526611328, 0.28336718678474426, 0.3856371343135834, 0.2477416843175888, 0.13593526184558868, -0.31589382886886597, -0.21887847781181335, 0.11337122321128845, 0.37972885370254517, 0.0028563961386680603, 0.20405453443527222, 0.1859220713376999, 0.21565581858158112, -0.49261271953582764, -0.006614841520786285, -0.03619961440563202, -0.027605807408690453, -0.11155886948108673, -0.2969650328159332, 0.43887922167778015, 0.26855140924453735, 0.09874555468559265, 0.10247941315174103, -0.001348201185464859, 0.21897238492965698, -0.4021962583065033, 0.13677698373794556, 1.071560263633728, -0.36321622133255005, 0.10967989265918732, -0.3807942569255829, -0.4657893776893616, 0.10523708164691925, -0.43292567133903503, -0.2255306839942932, -0.20897728204727173, -0.49201276898384094, -0.1338614523410797, -0.15468484163284302, 0.12610860168933868, 0.1819254457950592, -0.006534390151500702, 0.19032339751720428, 0.3940100073814392, 0.24906441569328308, 0.06053613871335983, 0.3680449426174164, -0.10530038177967072, -0.15155866742134094, 0.14967896044254303, 0.09642738848924637, -0.13116031885147095, 0.22176501154899597, -0.07507623732089996, -0.2779451310634613, 0.08569701015949249, 0.14546751976013184, -0.24118423461914062, 0.03662809729576111, -0.18076004087924957, -0.017484895884990692, -0.3960859477519989, 0.037773266434669495, 0.48881101608276367, -0.686460554599762, 0.0188971608877182, 0.34151923656463623, -0.49187856912612915, 0.01733315922319889, -0.2555529773235321, 0.09677287936210632, -0.20752277970314026, 0.17829367518424988, 0.13843846321105957, -0.1854405403137207, -0.13319697976112366, -0.2244444042444229, 0.18188528716564178, -0.08983485400676727, -0.19235646724700928, -0.4273498058319092, 0.23527726531028748, 0.18290261924266815, 0.09690329432487488, 0.2842637896537781, 0.04374159872531891, -0.005400761961936951, 0.08888165652751923, 0.18951751291751862, -0.32946327328681946, 0.4207533001899719, 0.5548225045204163, -0.19793792068958282, -0.1259869784116745, 0.6357403993606567, 0.20475681126117706, 0.1227295994758606, 0.31807368993759155, 0.27309006452560425, -0.3097100257873535, -0.18194478750228882, 0.08371280133724213, -0.1224999725818634, -0.0889846533536911, 0.04764517396688461, -0.23262354731559753, 0.20212531089782715, 0.001535944640636444, 0.30443519353866577, 0.27349746227264404, -0.4514812231063843, -0.3508336544036865, -0.33228564262390137, -0.09719131886959076, 0.07231669127941132, -0.2590212821960449, 0.1174582839012146, -0.14804905652999878, 0.2740132212638855, 0.08429331332445145, -0.0004571564495563507, -0.26361358165740967, 0.16949591040611267, 0.20289114117622375, -0.04211011528968811, 0.10463983565568924, -0.03143339976668358, -0.16533389687538147, 0.23723620176315308, -0.0471888929605484, -0.05565545707941055, -0.19707049429416656, -0.1565997302532196, 0.07973744720220566, 0.20546787977218628, 0.09123185276985168, -0.22446998953819275, 0.08815120160579681, -0.4742831587791443, -0.2115299552679062, 0.22867076098918915, -0.11302845925092697, 0.06114904582500458, 0.05906207114458084, 0.017581317573785782, 0.3800586760044098, -0.33384889364242554, -0.4026544392108917, 0.5654029846191406, 0.36765679717063904, 0.31629788875579834, -0.1362123191356659, -0.3233815133571625, 0.17681671679019928, 0.003218315541744232, -0.2345842570066452, -0.058654069900512695, 0.18902257084846497, 0.1380799561738968, 0.5165479779243469, -0.15156491100788116, 0.2381739616394043, 0.43256065249443054, 0.5199494957923889, 0.05384952947497368, 0.1866317242383957, -0.17028678953647614, 0.2538137435913086, 0.07555165141820908, -0.2593781054019928, -0.19489379227161407, 0.28427428007125854, 0.22288094460964203, -0.043059367686510086, -0.018398933112621307, 0.243673175573349, 0.06986820697784424, -0.2601141035556793, -0.12586215138435364, 0.17525449395179749, 0.1359933614730835, -0.28575456142425537, 0.26176324486732483, 0.37610453367233276, 0.17960962653160095, 0.013005731627345085, 0.2156086564064026, -0.0912373811006546, 0.1073673814535141, 0.24765664339065552, 0.3638366758823395, 0.2184048295021057, 0.1920839548110962, 0.009417111054062843, -0.28945037722587585, 0.053427763283252716, 0.30526041984558105, 0.24701018631458282, 0.09376661479473114, 0.02280283346772194, -0.14567330479621887, 0.17661193013191223, -0.4062264561653137, -0.24085459113121033, 0.26076120138168335, 0.05684623494744301, -0.04342483729124069, 0.10965746641159058, -0.08842901885509491, -0.0807546079158783, 0.10094910115003586, -0.08402775228023529, 0.036806508898735046, 0.2215910404920578, 0.11248820275068283, 0.20722824335098267, -0.17453262209892273, 0.03376929461956024, 0.11244848370552063, 0.11832337081432343, -0.18603086471557617, -0.3728151023387909, -0.36614128947257996, 0.12475775182247162, 0.47706666588783264, 0.4669603407382965, -0.2627886235713959, 0.062364209443330765, -0.03141950070858002, -0.1631104201078415, -0.1262385994195938, -0.05159684270620346, 0.15468434989452362, 0.22329644858837128, -0.19739864766597748, -0.3956588804721832, 0.31079214811325073, 0.07143993675708771, -0.09717188775539398, -0.04131845012307167, -0.23966187238693237, -0.43817561864852905, -0.42398595809936523, 0.22858105599880219, 0.22973403334617615, 0.07536420971155167, -0.1485549360513687, -0.10196694731712341, -0.045338843017816544, -0.11958768963813782, 0.36124902963638306, -0.32955634593963623, 0.03840256109833717, 0.04364115372300148, 0.051850393414497375, -0.36999642848968506, 0.29570066928863525, 0.4970720410346985, 0.30863499641418457, -0.26051706075668335, -0.21587298810482025, -0.2554795742034912, -0.06734584271907806, -0.37876924872398376, 0.04028509557247162, 0.09657388180494308, -0.022854413837194443, 0.3310456871986389, 0.10063166171312332, 0.2956649959087372, 0.4210749864578247, -0.022703811526298523, 0.12570881843566895, -0.13231685757637024, -0.08285237103700638, -0.1275244504213333, 0.21896789968013763, -0.24695050716400146, -0.36282241344451904, 0.3034454584121704, 0.13659784197807312, -0.0504155158996582, 0.06870165467262268, 0.09259526431560516, 0.2002924233675003, 0.09212349355220795, 0.03370687738060951, -0.2981727421283722, 0.2842435836791992, 0.03695342689752579, 0.16317105293273926, 0.07507798075675964, -0.055599965155124664, -0.035096675157547, -0.26527833938598633, -0.16522079706192017, -0.2003607153892517, -0.05741814151406288, 0.06814291328191757, -0.009916413575410843, 0.00728704035282135, -0.17413577437400818, 0.12904511392116547, -0.33801692724227905, 0.11750095337629318, -0.5509545803070068, -0.049319587647914886, 0.1299544870853424, -0.007627564482390881, -0.006769474595785141, -0.2790980637073517, -0.054157987236976624, 0.00862005352973938, 0.3676299452781677, -0.013262685388326645, -0.12120743095874786, -0.4085979759693146, 0.08922459930181503, -0.15333548188209534, 0.38626545667648315, -0.07551028579473495, -0.02405410259962082, 0.2824201285839081, -0.17548678815364838, 0.4065971374511719, 0.4313983619213104, 0.15773692727088928, -0.07965295761823654, -0.10865753889083862, 0.16496822237968445, -0.06547161936759949, 0.07597678154706955, -0.42081353068351746, 0.15297093987464905 ]
https://github.com/huggingface/datasets/issues/1892
@lhoestq better to use our new git-based system than just raw S3, no? (that way we have built-in CDN etc.)
request to mirror wmt datasets, as they are really slow to download
Would it be possible to mirror the wmt data files under hf? Some of them take hours to download and not because of the local speed. They are all quite small datasets, just extremely slow to download. Thank you!
20
request to mirror wmt datasets, as they are really slow to download Would it be possible to mirror the wmt data files under hf? Some of them take hours to download and not because of the local speed. They are all quite small datasets, just extremely slow to download. Thank you! @lhoestq better to use our new git-based system than just raw S3, no? (that way we have built-in CDN etc.)
[ -0.2889099717140198, -0.33067786693573, 0.012011975049972534, 0.1093231737613678, 0.05256720632314682, -0.08142578601837158, 0.16152256727218628, 0.42713236808776855, 0.09387074410915375, -0.019033662974834442, -0.3289593458175659, -0.08687067031860352, 0.009227637201547623, 0.3145239055156708, -0.23004965484142303, -0.13434085249900818, 0.011024702340364456, 0.18795987963676453, -0.5668652653694153, -0.13162919878959656, 0.11827845871448517, -0.1686476767063141, -0.01590878516435623, -0.05605843663215637, 0.033592283725738525, 0.2922869920730591, -0.12926359474658966, -0.046605948358774185, -0.4010480046272278, 0.20606490969657898, 0.06865140050649643, 0.44308963418006897, 0.20446090400218964, 0.4233405590057373, -0.00011470513709355146, -0.16283607482910156, 0.2551148235797882, 0.1594582200050354, -0.2941843271255493, 0.10206370055675507, -0.5625478625297546, -0.29404836893081665, -0.1721079796552658, 0.020645245909690857, -0.2282906174659729, 0.05651543289422989, -0.06425558775663376, -0.1407649964094162, 0.26920193433761597, -0.2676651179790497, 0.12180526554584503, 0.3570900857448578, -0.5695298314094543, -0.07605341076850891, 0.48836398124694824, 0.35615766048431396, -0.3749563694000244, 0.37447577714920044, 0.45995450019836426, 0.010305263102054596, 0.29374536871910095, 0.37764471769332886, 0.04989161342382431, 0.4903301000595093, 0.5588127970695496, -0.1442912071943283, 0.10840471088886261, 0.10106661915779114, -0.2936743199825287, 0.6387224197387695, 0.8014048933982849, -0.09345267713069916, -0.49553823471069336, 0.029921099543571472, -0.16580086946487427, 0.13717977702617645, -0.16668735444545746, 0.08968135714530945, -0.0822560042142868, 0.29069072008132935, -0.5258621573448181, -0.41994449496269226, -0.024553462862968445, 0.09716066718101501, -0.16226190328598022, 0.36144497990608215, -0.04997888207435608, -0.05750609561800957, -0.021598735824227333, -0.08689230680465698, 0.2871055603027344, -0.5339572429656982, 0.027775689959526062, 0.009274687618017197, 0.01583329774439335, -0.5079794526100159, -0.528171956539154, -0.11247827112674713, 0.1427510678768158, 0.07155802100896835, -0.21799682080745697, -0.061571598052978516, 0.06359542906284332, 0.007588695734739304, 0.16655173897743225, 0.022613082081079483, -0.33637213706970215, -0.1470315158367157, 0.24281027913093567, -0.08267851918935776, -0.0626361072063446, -0.11260482668876648, -0.13582664728164673, -0.058529194444417953, -0.49837785959243774, -0.05910545587539673, -0.06412345170974731, -0.39680808782577515, -0.05601421743631363, -0.3704046607017517, 0.09059175848960876, -0.2271958440542221, -0.24252718687057495, -0.022824037820100784, -0.1544201523065567, 0.19463646411895752, 0.2308921217918396, 0.06092420965433121, -0.181184321641922, -0.09491908550262451, -0.034166399389505386, -0.3538128435611725, 0.022736191749572754, 0.3785383701324463, 0.10248798131942749, 0.04408842325210571, 0.046723246574401855, 0.012585770338773727, 0.27235081791877747, 0.3997438848018646, 0.11987423896789551, 0.13551105558872223, -0.08922702074050903, 0.13033172488212585, -0.3001796007156372, 0.5513957738876343, -0.08225926011800766, 0.5401504039764404, -0.24749088287353516, 0.02392139658331871, -0.382843554019928, -0.148445725440979, -0.08558506518602371, 0.1434905230998993, -0.14618630707263947, -0.2256682813167572, -0.4768674671649933, -0.12614575028419495, -0.37022095918655396, 0.09625326097011566, -0.07324232161045074, -0.013955487869679928, -0.17992442846298218, 0.1466061770915985, 0.009651996195316315, 0.24717429280281067, -0.233005553483963, -0.053583599627017975, 0.01965976133942604, -0.017487643286585808, 0.545589029788971, 0.6047218441963196, -0.24358953535556793, 0.00851520337164402, -0.19898676872253418, -0.11305581033229828, 0.010787315666675568, -0.22406618297100067, -0.06566682457923889, 0.5325779914855957, -0.2225830852985382, -0.09937291592359543, 0.10513696074485779, 0.14086490869522095, 0.14680996537208557, -0.28099173307418823, -0.2059141993522644, 0.5454109311103821, -0.026167981326580048, 0.019058778882026672, -0.25813981890678406, -0.5230138897895813, 0.10623179376125336, 0.2587065100669861, 0.02557283081114292, 0.2686308026313782, 0.015745660290122032, 0.16113601624965668, 0.40519899129867554, -0.04586504399776459, -0.007054433226585388, -0.006418328732252121, 0.38377830386161804, 0.3038675785064697, -0.0046904198825359344, -0.0034463107585906982, 0.10893964767456055, 0.06436368077993393, 0.07733319699764252, 0.08476242423057556, 0.49878743290901184, -0.10558630526065826, 0.0438249409198761, -0.15530920028686523, 0.17095893621444702, 0.32551220059394836, 0.04875367134809494, -0.10460461676120758, -0.17304007709026337, -0.36512428522109985, -0.02608449012041092, 0.05421978235244751, -0.007096484303474426, -0.04756744205951691, 0.5461927652359009, 0.3452310562133789, 0.025174813345074654, 0.3276382386684418, 0.2912023663520813, -0.21348872780799866, 0.17733801901340485, 0.023540541529655457, -0.04742401838302612, -0.21821445226669312, -0.14855638146400452, 0.4687212407588959, 0.5035498738288879, 0.40170174837112427, 0.3517148792743683, -0.4376820921897888, 0.4014914035797119, 0.07527576386928558, 0.056921664625406265, -0.2025918811559677, -0.2804104685783386, 0.15604594349861145, -0.07367409765720367, 0.003242459148168564, -0.02180466800928116, -0.1877586543560028, 0.026990249752998352, -0.17304007709026337, -0.0699177086353302, 0.10365191102027893, 0.3284131586551666, 0.02447894588112831, -0.21847933530807495, 0.20305229723453522, 0.027987658977508545, 0.1575501412153244, 0.2100997120141983, -0.13097967207431793, 0.07745866477489471, -0.01520552858710289, -0.2841055691242218, 0.1486784666776657, 0.19636170566082, 0.11387555301189423, 0.17332401871681213, 0.3031972348690033, 0.1898447871208191, 0.15475323796272278, 0.41938909888267517, -0.21299149096012115, 0.06158696115016937, -0.07963331043720245, 0.29782065749168396, 0.20559397339820862, -0.035746216773986816, -0.1473860889673233, -0.14550688862800598, 0.002536386251449585, 0.0777265653014183, -0.1255669891834259, -0.08823390305042267, -0.2426348626613617, -0.36312103271484375, -0.14980484545230865, -0.4078003764152527, -0.08245078474283218, -0.09496511518955231, -0.1468747854232788, 0.08540189266204834, 0.09874853491783142, -0.07768621295690536, -0.003024224191904068, -0.018143951892852783, 0.3205002248287201, -0.2589111328125, 0.07286234945058823, -0.2940062880516052, 0.0344228520989418, 0.07473072409629822, 0.03843144327402115, 0.1803445667028427, -0.11752544343471527, 0.31604519486427307, -0.12466325610876083, 0.05403662472963333, -0.5954364538192749, -0.05667928233742714, 0.02389862760901451, 0.333781898021698, 0.13318850100040436, -0.13363878428936005, 0.427021324634552, 0.17709246277809143, 0.04502934217453003, 0.037895385175943375, -0.1569053679704666, -0.20031669735908508, -0.11818528175354004, -0.19081418216228485, -0.06987134367227554, -0.048086605966091156, -0.10442233085632324, -0.43795740604400635, -0.13850164413452148, -0.033749159425497055, -0.3620449900627136, -0.0011294260621070862, 0.009889159351587296, -0.06953740119934082, -0.26534345746040344, -0.2764093279838562, -0.057429976761341095, -0.21662944555282593, -0.5555559992790222, 0.34137630462646484, 0.08052906394004822, -0.1662789136171341, 0.022926554083824158, 0.301803857088089, -0.3650652766227722, 0.023033570498228073, -0.4307636022567749, -0.05296796187758446, -0.07005436718463898, -0.04241388291120529, 0.2023964673280716, 0.28947675228118896, 0.045164961367845535, -0.1432102918624878, -0.07333094626665115, -0.19060969352722168, -0.09128573536872864, -0.2161955088376999, 0.17662785947322845, 0.3960533142089844, 0.08409878611564636, 0.21891511976718903, 0.12325567752122879, 1.0079667568206787, 0.2507516145706177, 0.02404886856675148, 0.08111728727817535, 0.3469984233379364, -0.06332744657993317, 0.16545487940311432, -0.13281601667404175, 0.049280859529972076, -0.12636998295783997, 0.1854526251554489, 0.4246993362903595, 0.16360066831111908, -0.30491238832473755, -0.16100385785102844, -0.0788750946521759, -0.018702559173107147, -0.09023484587669373, -0.2591295540332794, 0.013308363035321236, 0.10595937073230743, 0.27032431960105896, -0.17214420437812805, -0.056916605681180954, -0.28811222314834595, 0.5134933590888977, 0.5014879107475281, -0.003576993942260742, 0.09486974775791168, 0.12055627256631851, -0.1066683679819107, -0.41636672616004944, -0.146614670753479, 0.049351852387189865, 0.24729691445827484, 0.004721842706203461, 0.23768770694732666, 0.05045623704791069, -0.032289769500494, 0.5050351023674011, -0.2438182830810547, 0.2876739799976349, -0.27404123544692993, -0.4379418194293976, 0.013890109956264496, -0.23383669555187225, -0.13969019055366516, -0.4957698583602905, 0.13669967651367188, 0.3703025281429291, -0.032406874001026154, -0.14677897095680237, 0.031268466264009476, -0.10021360218524933, -0.2395888864994049, -0.43078354001045227, 0.27797651290893555, -0.11265058815479279, -0.015061572194099426, -0.2945278286933899, -0.0675634890794754, -0.1654195636510849, -0.13102546334266663, 0.07972125709056854, 0.022614402696490288, 0.41097545623779297, 0.25066113471984863, -0.1289607733488083, -0.11788511276245117, 0.29196876287460327, 0.3045598268508911, 0.053269628435373306, 0.3760150969028473, 0.26454412937164307, 0.5690957307815552, 0.34037935733795166, 0.034932225942611694, -0.22940045595169067, -0.15855897963047028, 0.1091761440038681, 0.3894098997116089, 0.17801880836486816, 0.20845967531204224, 0.15003761649131775, 0.25098761916160583, -0.5666327476501465, -0.07647782564163208, -0.0023038163781166077, -0.02628667838871479, 0.0252302847802639, -0.12122763693332672, 0.35902369022369385, 0.12554843723773956, 0.023872464895248413, -0.14808419346809387, 0.13766050338745117, 0.17605435848236084, -0.34330853819847107, 0.26897671818733215, 1.1076865196228027, -0.3656049370765686, 0.23058927059173584, -0.3309265971183777, -0.6006500720977783, 0.12235978990793228, -0.3119617700576782, -0.22702854871749878, -0.21314281225204468, -0.31308695673942566, -0.09804915636777878, -0.14958195388317108, -0.04129071161150932, 0.19442084431648254, -0.0749911218881607, 0.20235677063465118, 0.44408100843429565, 0.14371612668037415, 0.09849435836076736, 0.4232387840747833, -0.022434595972299576, -0.17825289070606232, 0.11048965156078339, 0.1282365322113037, -0.21764424443244934, 0.3711436986923218, -0.1129855066537857, -0.285725474357605, 0.03271319717168808, 0.214643657207489, -0.21166682243347168, 0.14276975393295288, 0.0150580033659935, -0.16555026173591614, -0.3007996678352356, -0.012758046388626099, 0.4979439973831177, -0.6503031849861145, 0.05284572392702103, 0.37209534645080566, -0.48158368468284607, 0.08282936364412308, -0.1513359248638153, 0.16406351327896118, -0.22226381301879883, 0.0016879327595233917, 0.027936315163969994, -0.23070544004440308, -0.18172329664230347, -0.24789467453956604, 0.2220163345336914, -0.22313964366912842, -0.05635008215904236, -0.3715163767337799, 0.12472634017467499, 0.23129713535308838, 0.03752891719341278, 0.2623557150363922, 0.06322179734706879, 0.023547805845737457, 0.0910903587937355, 0.20970512926578522, -0.34162330627441406, 0.3736175298690796, 0.4086953401565552, -0.18305671215057373, -0.12044760584831238, 0.6932260394096375, 0.05996266007423401, 0.14009909331798553, 0.30650830268859863, 0.3477087616920471, -0.29665905237197876, -0.14329896867275238, 0.09315444529056549, -0.09492941200733185, -0.2008301168680191, 0.02573971450328827, -0.13836002349853516, -0.07134902477264404, 0.04370005056262016, 0.26202285289764404, 0.3745441138744354, -0.43097031116485596, -0.20843398571014404, -0.2575327754020691, 0.09824589639902115, -0.01947278529405594, -0.26949557662010193, 0.25215667486190796, -0.04346977919340134, -0.005166690796613693, 0.043201908469200134, -0.019572261720895767, -0.2829039692878723, 0.17794710397720337, 0.08994122594594955, 0.1331411451101303, -0.008463852107524872, -0.1326051950454712, -0.11953571438789368, 0.03528822585940361, -0.08728232979774475, -0.17575180530548096, -0.18801280856132507, -0.18481287360191345, 0.05418471246957779, 0.20050549507141113, 0.17805583775043488, -0.21216966211795807, 0.2198638617992401, -0.35533836483955383, -0.23970767855644226, 0.24038667976856232, -0.00030947476625442505, 0.0835646465420723, 0.05110911279916763, 0.16535797715187073, 0.3959060609340668, -0.4697082042694092, -0.3244503140449524, 0.5378159880638123, 0.3684096336364746, 0.29615098237991333, -0.20403818786144257, -0.2357989102602005, 0.31417936086654663, -0.0028279125690460205, -0.02072152867913246, -0.055404871702194214, 0.25951558351516724, 0.2902943789958954, 0.5963611006736755, -0.195512056350708, 0.2901701331138611, 0.41973042488098145, 0.5349560976028442, -0.13537710905075073, 0.03738817945122719, -0.18081256747245789, 0.3128834068775177, 0.13921783864498138, -0.1906396448612213, -0.33608904480934143, 0.020259778946638107, 0.20624381303787231, 0.040767982602119446, 0.04746873676776886, 0.25161850452423096, 0.13887232542037964, -0.15575502812862396, -0.17987477779388428, 0.18652093410491943, 0.26197028160095215, -0.27461832761764526, 0.19142211973667145, 0.255144327878952, 0.017976906150579453, -0.06724727153778076, 0.13342636823654175, -0.10120071470737457, 0.029464686289429665, 0.21037009358406067, 0.17064744234085083, 0.12914016842842102, 0.3148680329322815, 0.09145355224609375, -0.16713306307792664, -0.008685937151312828, 0.1696702092885971, 0.3133711814880371, 0.16159339249134064, 0.00915851816534996, -0.4201604723930359, 0.28937506675720215, -0.45943358540534973, -0.17670691013336182, 0.3615794777870178, 0.12253707647323608, -0.13659155368804932, -0.11554049700498581, 0.005283251404762268, -0.00011274218559265137, 0.2047945111989975, -0.203244149684906, 0.024759037420153618, 0.13018544018268585, 0.22164490818977356, 0.2809833884239197, -0.03251205384731293, 0.0774458795785904, 0.10811790823936462, 0.21809983253479004, -0.1721070408821106, -0.1806698888540268, -0.33413419127464294, 0.08320630341768265, 0.3756330609321594, 0.5546931624412537, -0.1806422919034958, 0.13714921474456787, -0.0031318478286266327, -0.08992491662502289, -0.014625297859311104, -0.03975912183523178, 0.0984540581703186, 0.15213164687156677, -0.09855514764785767, -0.2382948100566864, 0.2103474885225296, 0.06605920940637589, -0.12638019025325775, -0.04349328204989433, -0.38834089040756226, -0.45325109362602234, -0.2978823184967041, 0.10550478100776672, 0.22798287868499756, 0.08720602840185165, -0.048763155937194824, 0.10779400169849396, -0.18417957425117493, 0.054880913347005844, 0.3799109160900116, -0.37138819694519043, 0.08851829171180725, 0.0712900310754776, 0.05769523233175278, -0.38037124276161194, 0.4389808177947998, 0.4249643385410309, 0.33509138226509094, -0.20785757899284363, -0.1208074688911438, -0.041980914771556854, -0.0675688236951828, -0.3867938816547394, 0.054518088698387146, 0.06056690216064453, 0.11899573355913162, 0.2939836382865906, 0.20408079028129578, 0.14461669325828552, 0.39138710498809814, -0.15183888375759125, 0.219924658536911, -0.1296268254518509, -0.060325875878334045, -0.04977405443787575, 0.23281052708625793, -0.15781134366989136, -0.3550450801849365, 0.3176902234554291, 0.09180089831352234, -0.04396224021911621, 0.07794629037380219, 0.15980321168899536, 0.20105096697807312, 0.15781256556510925, 0.011886991560459137, -0.24118594825267792, 0.2156125009059906, 0.010236576199531555, 0.08559837937355042, 0.12122175097465515, -0.08775841444730759, -0.136653870344162, -0.22151139378547668, -0.23331737518310547, -0.13927225768566132, -0.04177021235227585, 0.12205450236797333, -0.0421440415084362, 0.007303196936845779, -0.19796232879161835, 0.18513882160186768, -0.2294759899377823, 0.0798228532075882, -0.5772966146469116, 0.04483087733387947, 0.10011932253837585, -0.019221805036067963, -0.035213910043239594, -0.2984088361263275, -0.26012569665908813, 0.00024390965700149536, 0.4037052094936371, -0.1191800981760025, -0.11094926297664642, -0.37587326765060425, 0.042534682899713516, -0.18378940224647522, 0.29443517327308655, -0.16059510409832, 0.0931730717420578, 0.1711372286081314, -0.08801256120204926, 0.3685886263847351, 0.5453280806541443, 0.23080822825431824, -0.05120948329567909, -0.12872758507728577, 0.38548511266708374, -0.031130770221352577, 0.054729148745536804, -0.5184089541435242, 0.07361777871847153 ]
https://github.com/huggingface/datasets/issues/1892
Hi there! What about mirroring other datasets like [CCAligned](http://www.statmt.org/cc-aligned/) as well? All of them are really slow to download...
request to mirror wmt datasets, as they are really slow to download
Would it be possible to mirror the wmt data files under hf? Some of them take hours to download and not because of the local speed. They are all quite small datasets, just extremely slow to download. Thank you!
19
request to mirror wmt datasets, as they are really slow to download Would it be possible to mirror the wmt data files under hf? Some of them take hours to download and not because of the local speed. They are all quite small datasets, just extremely slow to download. Thank you! Hi there! What about mirroring other datasets like [CCAligned](http://www.statmt.org/cc-aligned/) as well? All of them are really slow to download...
[ -0.4533650875091553, -0.29872921109199524, 0.02584023028612137, 0.09535181522369385, 0.06331180036067963, 0.13061189651489258, 0.17009225487709045, 0.3957924544811249, 0.1734647899866104, -0.0313711017370224, -0.3652694821357727, -0.2737770080566406, 0.08896150439977646, 0.13643638789653778, -0.2166115939617157, -0.28423377871513367, -0.07741323113441467, 0.18450209498405457, -0.6560146808624268, -0.09451006352901459, 0.088950514793396, -0.2791632115840912, -0.11223504692316055, 0.06735530495643616, -0.18258549273014069, 0.11380059272050858, -0.194065660238266, -0.07800862193107605, -0.25689151883125305, 0.24809661507606506, 0.10004094243049622, 0.49480628967285156, 0.1452532559633255, 0.1917608678340912, -0.00011156436085002497, -0.12058423459529877, 0.1339685618877411, 0.1791660040616989, -0.18334592878818512, 0.07554130256175995, -0.42710936069488525, -0.42104440927505493, -0.20611795783042908, -0.0069484710693359375, -0.03085225075483322, -0.06453721225261688, 0.0036411061882972717, -0.17488349974155426, 0.13490617275238037, -0.2770916223526001, 0.17404331266880035, 0.3209129571914673, -0.43466100096702576, -0.16569815576076508, 0.2092713713645935, 0.16814947128295898, -0.31912878155708313, 0.4005478024482727, 0.3723672926425934, 0.07981392741203308, 0.1421225219964981, 0.3162362575531006, 0.016863323748111725, 0.4983964264392853, 0.3506408929824829, -0.18381330370903015, 0.14721186459064484, 0.050029076635837555, -0.21903258562088013, 0.6171067357063293, 0.8538619875907898, -0.03234006464481354, -0.361416757106781, 0.08170150220394135, -0.0730723962187767, 0.2521520256996155, -0.12400563061237335, 0.2352231740951538, 0.06557940691709518, 0.3448864817619324, -0.37030884623527527, -0.19014999270439148, 0.017451971769332886, -0.03457226604223251, -0.13918116688728333, 0.18985632061958313, 0.0677533894777298, -0.01464349776506424, 0.00020202668383717537, -0.1298256367444992, 0.11228293180465698, -0.45373213291168213, 0.11585654318332672, 0.06295134127140045, 0.016310637816786766, -0.38933509588241577, -0.6354590654373169, 0.010126220062375069, 0.27648481726646423, 0.15754549205303192, -0.03881177678704262, 0.049017298966646194, -0.057912539690732956, 0.03904008865356445, 0.1954575628042221, 0.052602991461753845, -0.42593884468078613, -0.21275217831134796, 0.23634205758571625, -0.13212358951568604, -0.14642924070358276, -0.024144139140844345, -0.03088049404323101, -0.07777546346187592, -0.39112338423728943, -0.11042371392250061, -0.1206788420677185, -0.40862563252449036, -0.24597802758216858, -0.2724030017852783, 0.07568152248859406, -0.13547520339488983, -0.24283011257648468, 0.07652498781681061, -0.14824679493904114, 0.25522109866142273, 0.2507249712944031, -0.03964253515005112, -0.13068202137947083, -0.16699880361557007, -0.07323073595762253, -0.2595624327659607, 0.03988940268754959, 0.3467869460582733, 0.11489510536193848, 0.0578034371137619, -0.008807435631752014, -0.023984257131814957, 0.28644922375679016, 0.3671680986881256, 0.13917355239391327, 0.08062462508678436, -0.09231293201446533, 0.13495099544525146, -0.20606759190559387, 0.5131796598434448, -0.049688614904880524, 0.5609837174415588, -0.26325148344039917, 0.0608975812792778, -0.47271010279655457, -0.07841350138187408, 0.13291889429092407, 0.1850571632385254, -0.018747545778751373, -0.19342964887619019, -0.3408355712890625, -0.08665256202220917, -0.5088907480239868, 0.14384953677654266, -0.10313275456428528, -0.04034258425235748, -0.09725229442119598, 0.11436890065670013, 0.018766649067401886, 0.33154886960983276, -0.2472044825553894, -0.000344984233379364, -0.017019860446453094, -0.028881873935461044, 0.5151877999305725, 0.583371639251709, -0.20311500132083893, 0.06256018579006195, -0.26923930644989014, -0.1607312113046646, 0.07301022857427597, -0.13123539090156555, -0.1041017696261406, 0.4834476113319397, -0.27644622325897217, -0.14448967576026917, 0.1274021565914154, 0.24268007278442383, 0.20383320748806, -0.18791280686855316, -0.20150357484817505, 0.45077067613601685, -0.06952360272407532, 0.006068050861358643, -0.30581581592559814, -0.49918773770332336, 0.28283900022506714, 0.2676873207092285, 0.09505322575569153, 0.1852359175682068, 0.022559311240911484, 0.17968127131462097, 0.44643890857696533, 0.019775521010160446, -0.014234676957130432, -0.060972947627305984, 0.0963783711194992, 0.21297197043895721, 0.10907551646232605, -0.10116402804851532, 0.1067567840218544, 0.006201013922691345, 0.09054850041866302, -0.0009381156414747238, 0.6032819151878357, -0.16887250542640686, 0.036405641585588455, -0.09570048749446869, 0.1448497176170349, 0.30553022027015686, 0.05676814913749695, -0.12295850366353989, -0.2521161437034607, -0.3168967068195343, 0.028131097555160522, 0.3709685206413269, -0.1691690981388092, 0.017603587359189987, 0.6709163188934326, 0.37141358852386475, 0.008181868121027946, 0.44395309686660767, 0.3283906579017639, -0.08305689692497253, 0.15105777978897095, -0.06136245280504227, -0.10248870402574539, -0.08703327924013138, -0.11099264025688171, 0.36824730038642883, 0.5460485219955444, 0.2118648737668991, 0.4045192301273346, -0.6099276542663574, 0.4348452687263489, 0.14705434441566467, 0.06586708873510361, -0.25250524282455444, -0.1484910100698471, 0.2789263427257538, -0.031172586604952812, 0.017281003296375275, 0.08534860610961914, -0.06537748873233795, 0.07365137338638306, -0.14086909592151642, -0.01596899703145027, 0.05261768400669098, 0.47569194436073303, 0.07574629038572311, -0.037898145616054535, 0.16496242582798004, -0.06315049529075623, 0.15344615280628204, -0.031542789191007614, -0.04454905167222023, 0.013308585621416569, -0.08147960901260376, -0.3321460783481598, 0.27232372760772705, 0.16949830949306488, 0.053748175501823425, 0.10156779736280441, 0.3268965482711792, 0.14211460947990417, 0.17751005291938782, 0.21465498208999634, -0.20040437579154968, 0.04695954918861389, -0.10306085646152496, 0.009908236563205719, 0.1526407152414322, -0.057694870978593826, -0.10034675151109695, -0.29012808203697205, -0.12044962495565414, 0.05390837788581848, -0.08990893512964249, -0.029052168130874634, -0.38242894411087036, -0.451263427734375, -0.14355024695396423, -0.5411097407341003, -0.0016524381935596466, -0.0690980851650238, -0.21995064616203308, 0.056203730404376984, 0.05724514648318291, -0.07884027808904648, 0.14376935362815857, -0.2530445158481598, 0.3106380105018616, -0.2327995002269745, 0.27456900477409363, -0.20519965887069702, 0.12594294548034668, 0.06752874702215195, 0.08989264070987701, 0.180496484041214, 0.10479618608951569, 0.3822268545627594, -0.1670306921005249, 0.11416958272457123, -0.511909544467926, -0.017761781811714172, -0.02423085644841194, 0.36990803480148315, -0.040342215448617935, -0.2522633969783783, 0.3800511360168457, 0.17234720289707184, -0.00445898249745369, 0.041500430554151535, -0.1325879991054535, -0.07101386040449142, -0.07396882772445679, -0.19256725907325745, -0.10415501147508621, 0.0052566975355148315, -0.2395404428243637, -0.5335744619369507, -0.15722602605819702, -0.030691348016262054, -0.28786811232566833, -0.019113559275865555, 0.1079019159078598, -0.1367851346731186, -0.24877271056175232, -0.2053249627351761, -0.03970006853342056, -0.17965129017829895, -0.4369855523109436, 0.5049147605895996, 0.10201691091060638, -0.23349404335021973, 0.14153333008289337, 0.16796250641345978, -0.48759108781814575, 0.11210218071937561, -0.30130651593208313, 0.13359494507312775, -0.15070705115795135, -0.11519493162631989, 0.23973412811756134, 0.22085313498973846, -0.07075266540050507, -0.1018785759806633, -0.0752783864736557, -0.0089765265583992, -0.13363224267959595, -0.08973328769207001, 0.10499776899814606, 0.40278512239456177, 0.010541871190071106, -0.018164854496717453, 0.019842177629470825, 0.8850701451301575, 0.21297019720077515, 0.08638016879558563, 0.051548805087804794, 0.2953382730484009, -0.042756300419569016, 0.13338768482208252, -0.24994193017482758, 0.16283093392848969, -0.11736039817333221, 0.07836474478244781, 0.43486836552619934, 0.23129799962043762, -0.18131481111049652, -0.1287529021501541, -0.041500408202409744, 0.014136217534542084, -0.13883480429649353, -0.29673951864242554, 0.03632862865924835, 0.14134351909160614, 0.32557427883148193, -0.19959762692451477, -0.11996510624885559, -0.35773977637290955, 0.47472628951072693, 0.6696662902832031, -0.1214231625199318, 0.020238284021615982, 0.01884382963180542, -0.07271018624305725, -0.2650052011013031, -0.020936667919158936, 0.1460862159729004, 0.30560171604156494, -0.018357381224632263, 0.2329804003238678, 0.04193953797221184, 0.04495316371321678, 0.2614334225654602, -0.09269391745328903, 0.2805930972099304, -0.21321938931941986, -0.2921208143234253, 0.16824308037757874, -0.21989208459854126, -0.05961351469159126, -0.5427876114845276, 0.1120205745100975, 0.1555565446615219, 0.026871412992477417, -0.0514051653444767, 0.12247128784656525, 0.10306490957736969, -0.3378521800041199, -0.3058995008468628, 0.4071585237979889, -0.0927286297082901, 0.07187241315841675, -0.17297495901584625, -0.24122127890586853, -0.1384054273366928, -0.17518198490142822, 0.02067163586616516, 0.046315573155879974, 0.21767911314964294, 0.385158896446228, -0.2091967910528183, 0.061217740178108215, 0.15981687605381012, 0.4246079623699188, 0.08812132477760315, 0.4927922487258911, 0.3367629051208496, 0.35618194937705994, 0.2517969012260437, 0.14788267016410828, -0.29243072867393494, -0.24333199858665466, 0.06684056669473648, 0.4101937711238861, 0.045107435435056686, 0.17712076008319855, 0.13164499402046204, 0.2322717308998108, -0.5180927515029907, 0.07299728691577911, -0.07882298529148102, 0.00045423954725265503, -0.1900363564491272, -0.22644977271556854, 0.360185444355011, 0.24865466356277466, 0.0743878036737442, 0.06283341348171234, 0.038346920162439346, 0.18148474395275116, -0.38037973642349243, 0.13635200262069702, 1.0234355926513672, -0.31357914209365845, 0.09524241089820862, -0.3844665288925171, -0.49804234504699707, 0.03785669431090355, -0.37706810235977173, -0.17101837694644928, -0.22048982977867126, -0.521128237247467, -0.15279756486415863, -0.1325516551733017, 0.11621880531311035, 0.1575957089662552, -0.028539545834064484, 0.2255467027425766, 0.3947393000125885, 0.24694707989692688, -0.012771546840667725, 0.3588606119155884, -0.1560720056295395, -0.2130230963230133, 0.1807706654071808, 0.11645561456680298, -0.1309278905391693, 0.2399114966392517, -0.07569703459739685, -0.2230232208967209, 0.07133297622203827, 0.1520332247018814, -0.33185699582099915, 0.07432347536087036, -0.2134242057800293, -0.07103613764047623, -0.44738227128982544, 0.0523444265127182, 0.5004183053970337, -0.6733373999595642, 0.06445791572332382, 0.3529585301876068, -0.4924592077732086, 0.09701573848724365, -0.26082757115364075, 0.11307422816753387, -0.19039157032966614, 0.10620728135108948, 0.17218267917633057, -0.1695217788219452, -0.09215393662452698, -0.28003862500190735, 0.17585158348083496, -0.12120208889245987, -0.17413446307182312, -0.401901513338089, 0.2466791570186615, 0.2639770209789276, 0.05570165440440178, 0.2653685212135315, 0.03435257077217102, -0.011509701609611511, 0.10384970903396606, 0.13536767661571503, -0.3152752220630646, 0.45768067240715027, 0.5724085569381714, -0.23015481233596802, -0.14564809203147888, 0.6303695440292358, 0.22019389271736145, 0.03078555315732956, 0.2877437472343445, 0.16939327120780945, -0.338284432888031, -0.20000013709068298, 0.12675800919532776, -0.09779497236013412, -0.09713850170373917, 0.05936405807733536, -0.27253615856170654, 0.1042327880859375, -0.015016816556453705, 0.3644550144672394, 0.3459082841873169, -0.43654415011405945, -0.3287416696548462, -0.3584456443786621, -0.15449422597885132, 0.03814040496945381, -0.3101186156272888, 0.16289836168289185, -0.11208232492208481, 0.3060982823371887, 0.09464582055807114, 0.04338506609201431, -0.2896113991737366, 0.1667124181985855, 0.18881219625473022, -0.025533732026815414, 0.1676316112279892, -0.018063530325889587, -0.1410815715789795, 0.1829170435667038, -0.04159516841173172, -0.04871639981865883, -0.20756709575653076, -0.20051732659339905, 0.01052345335483551, 0.1906825602054596, 0.08419221639633179, -0.17079268395900726, 0.1619381159543991, -0.4410962462425232, -0.18891654908657074, 0.17490559816360474, -0.12917351722717285, 0.034961432218551636, 0.04198544844985008, 0.024153541773557663, 0.3890339136123657, -0.30419424176216125, -0.3712337017059326, 0.52728670835495, 0.3118211627006531, 0.31981414556503296, -0.08657009899616241, -0.2858450412750244, 0.16526171565055847, -0.0075867027044296265, -0.1264604926109314, -0.03746779263019562, 0.2135450690984726, 0.10102517157793045, 0.5303278565406799, -0.10465818643569946, 0.3057965934276581, 0.47393786907196045, 0.599628210067749, 0.045097630470991135, 0.16594944894313812, -0.2061704695224762, 0.29224103689193726, 0.10608988255262375, -0.30948126316070557, -0.19217997789382935, 0.26766476035118103, 0.24388644099235535, 0.04237803816795349, -0.02618144452571869, 0.34365200996398926, -0.03044496476650238, -0.21033918857574463, -0.16865375638008118, 0.24085797369480133, 0.12225084006786346, -0.21835297346115112, 0.2686609923839569, 0.40460652112960815, 0.1911585032939911, -0.0047995904460549355, 0.2012472152709961, -0.006677962839603424, 0.12514081597328186, 0.12815560400485992, 0.34492480754852295, 0.23501774668693542, 0.2085975557565689, 0.035879142582416534, -0.2691131830215454, 0.026162419468164444, 0.3047160804271698, 0.2368941754102707, 0.12175434827804565, 0.10896622389554977, -0.1335887312889099, 0.1987552046775818, -0.46320274472236633, -0.20739921927452087, 0.25837212800979614, 0.03129563108086586, -0.06625843793153763, 0.12366129457950592, -0.11940033733844757, -0.1263272762298584, 0.11997666954994202, -0.12156584858894348, 0.032806359231472015, 0.3767251670360565, 0.08063577115535736, 0.23372095823287964, -0.17554719746112823, 0.06420255452394485, 0.15841926634311676, 0.13716673851013184, -0.22513051331043243, -0.32019346952438354, -0.3358440399169922, 0.06469705700874329, 0.4657958745956421, 0.4954128861427307, -0.21290022134780884, 0.07851816713809967, -0.011481193825602531, -0.1345575749874115, -0.07616035640239716, -0.01721164956688881, 0.12017453461885452, 0.19831430912017822, -0.20795954763889313, -0.4401204586029053, 0.3226138651371002, 0.0732765942811966, -0.11937806010246277, -0.05077887326478958, -0.24821092188358307, -0.4290217459201813, -0.4218740165233612, 0.1528223752975464, 0.24538291990756989, 0.12027781456708908, -0.12025614827871323, -0.08180658519268036, -0.0017997324466705322, -0.12323816120624542, 0.30827638506889343, -0.3946535587310791, 0.006406176835298538, 0.060886844992637634, 0.0635717585682869, -0.2912903130054474, 0.2789634168148041, 0.5081180930137634, 0.20094850659370422, -0.2584189772605896, -0.21304750442504883, -0.25948795676231384, -0.036664530634880066, -0.36720433831214905, 0.06321588903665543, 0.027507014572620392, -0.04559763893485069, 0.27333760261535645, 0.06974917650222778, 0.36201512813568115, 0.4677092432975769, 0.07931578159332275, 0.15762053430080414, -0.12131169438362122, -0.01040755957365036, -0.16267766058444977, 0.1615598201751709, -0.25066280364990234, -0.4180850386619568, 0.31780216097831726, 0.12546764314174652, -0.04024873673915863, 0.11880209296941757, 0.11055082827806473, 0.17727072536945343, 0.08705897629261017, 0.03340922296047211, -0.2599146366119385, 0.29757359623908997, 0.013535059988498688, 0.18161636590957642, 0.05845702812075615, -0.10729485750198364, -0.05188335105776787, -0.2683108150959015, -0.12043475359678268, -0.1918051838874817, -0.07297206670045853, 0.10036401450634003, 0.009425126016139984, -0.0045548491179943085, -0.13935188949108124, 0.06671183556318283, -0.3484681248664856, 0.1203974187374115, -0.49101829528808594, 0.006743941456079483, 0.14790308475494385, -0.015548013150691986, 0.01433511357754469, -0.29177039861679077, -0.04578496515750885, -0.06789221614599228, 0.30902382731437683, 0.06973425298929214, -0.18732908368110657, -0.39388060569763184, 0.037222832441329956, -0.10979929566383362, 0.4480055272579193, -0.10956091433763504, -0.10342945158481598, 0.2243785709142685, -0.17539316415786743, 0.4233214855194092, 0.4499533772468567, 0.18531420826911926, -0.12556932866573334, -0.1592850238084793, 0.15022331476211548, -0.044162310659885406, 0.03891560435295105, -0.44362103939056396, 0.06177607178688049 ]
https://github.com/huggingface/datasets/issues/1891
This is the current error thrown for missing datasets: ``` FileNotFoundError: Couldn't find a dataset script at C:\Users\Mario\Desktop\projects\datasets\missing_dataset\missing_dataset.py or any data file in the same directory. Couldn't find 'missing_dataset' on the Hugging Face Hub either: FileNotFoundError: Dataset 'missing_dataset' doesn't exist on the Hub. If the repo is private, make sure you are authenticated with `use_auth_token=True` after logging in with `huggingface-cli login`. ``` Seems much more informative, so I think we can close this issue.
suggestion to improve a missing dataset error
I was using `--dataset_name wmt19` all was good. Then thought perhaps wmt20 is out, so I tried to use `--dataset_name wmt20`, got 3 different errors (1 repeated twice), none telling me the real issue - that `wmt20` isn't in the `datasets`: ``` True, predict_with_generate=True) Traceback (most recent call last): File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 323, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 274, in cached_path output_path = get_from_cache( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 584, in get_from_cache raise FileNotFoundError("Couldn't find file at {}".format(url)) FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/wmt20/wmt20.py During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 335, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 274, in cached_path output_path = get_from_cache( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 584, in get_from_cache raise FileNotFoundError("Couldn't find file at {}".format(url)) FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/wmt20/wmt20.py During handling of the above exception, another exception occurred: Traceback (most recent call last): File "./run_seq2seq.py", line 661, in <module> main() File "./run_seq2seq.py", line 317, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 706, in load_dataset module_path, hash, resolved_file_path = prepare_module( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 343, in prepare_module raise FileNotFoundError( FileNotFoundError: Couldn't find file locally at wmt20/wmt20.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/wmt20/wmt20.py. The file is also not present on the master branch on github. ``` Suggestion: if it is not in a local path, check that there is an actual `https://github.com/huggingface/datasets/tree/master/datasets/wmt20` first and assert "dataset `wmt20` doesn't exist in datasets", rather than trying to find a load script - since the whole repo is not there. The error occured when running: ``` cd examples/seq2seq export BS=16; rm -r output_dir; PYTHONPATH=../../src USE_TF=0 CUDA_VISIBLE_DEVICES=0 python ./run_seq2seq.py --model_name_or_path t5-small --output_dir output_dir --adam_eps 1e-06 --do_eval --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 --predict_with_generate --eval_steps 25000 --sortish_sampler --task translation_en_to_ro --val_max_target_length 128 --warmup_steps 500 --max_val_samples 500 --dataset_name wmt20 --dataset_config "ro-en" --source_prefix "translate English to Romanian: " ``` Thanks.
74
suggestion to improve a missing dataset error I was using `--dataset_name wmt19` all was good. Then thought perhaps wmt20 is out, so I tried to use `--dataset_name wmt20`, got 3 different errors (1 repeated twice), none telling me the real issue - that `wmt20` isn't in the `datasets`: ``` True, predict_with_generate=True) Traceback (most recent call last): File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 323, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 274, in cached_path output_path = get_from_cache( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 584, in get_from_cache raise FileNotFoundError("Couldn't find file at {}".format(url)) FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/wmt20/wmt20.py During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 335, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 274, in cached_path output_path = get_from_cache( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/utils/file_utils.py", line 584, in get_from_cache raise FileNotFoundError("Couldn't find file at {}".format(url)) FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/wmt20/wmt20.py During handling of the above exception, another exception occurred: Traceback (most recent call last): File "./run_seq2seq.py", line 661, in <module> main() File "./run_seq2seq.py", line 317, in main datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name) File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 706, in load_dataset module_path, hash, resolved_file_path = prepare_module( File "/mnt/nvme1/code/huggingface/datasets-master/src/datasets/load.py", line 343, in prepare_module raise FileNotFoundError( FileNotFoundError: Couldn't find file locally at wmt20/wmt20.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/wmt20/wmt20.py. The file is also not present on the master branch on github. ``` Suggestion: if it is not in a local path, check that there is an actual `https://github.com/huggingface/datasets/tree/master/datasets/wmt20` first and assert "dataset `wmt20` doesn't exist in datasets", rather than trying to find a load script - since the whole repo is not there. The error occured when running: ``` cd examples/seq2seq export BS=16; rm -r output_dir; PYTHONPATH=../../src USE_TF=0 CUDA_VISIBLE_DEVICES=0 python ./run_seq2seq.py --model_name_or_path t5-small --output_dir output_dir --adam_eps 1e-06 --do_eval --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 --predict_with_generate --eval_steps 25000 --sortish_sampler --task translation_en_to_ro --val_max_target_length 128 --warmup_steps 500 --max_val_samples 500 --dataset_name wmt20 --dataset_config "ro-en" --source_prefix "translate English to Romanian: " ``` Thanks. This is the current error thrown for missing datasets: ``` FileNotFoundError: Couldn't find a dataset script at C:\Users\Mario\Desktop\projects\datasets\missing_dataset\missing_dataset.py or any data file in the same directory. Couldn't find 'missing_dataset' on the Hugging Face Hub either: FileNotFoundError: Dataset 'missing_dataset' doesn't exist on the Hub. If the repo is private, make sure you are authenticated with `use_auth_token=True` after logging in with `huggingface-cli login`. ``` Seems much more informative, so I think we can close this issue.
[ -0.05974513664841652, -0.29434734582901, -0.0008304305374622345, 0.3394809663295746, 0.3252504765987396, -0.03403729200363159, 0.14375101029872894, 0.2369765192270279, 0.17242750525474548, 0.18000997602939606, 0.13413912057876587, -0.0948793888092041, -0.019390786066651344, 0.13714757561683655, 0.2607148289680481, -0.1888563632965088, 0.21633374691009521, -0.10539191961288452, -0.22024230659008026, -0.003678545355796814, -0.1781996190547943, 0.18538594245910645, -0.1578555703163147, -0.019595403224229813, -0.6058048009872437, 0.09537222981452942, -0.26557403802871704, -0.012012094259262085, -0.06955231726169586, -0.5256162881851196, 0.2957570254802704, -0.03606283292174339, -0.05694635584950447, 0.39091047644615173, -0.00011566339526325464, -0.033194370567798615, 0.18324962258338928, -0.08286363631486893, -0.22115154564380646, -0.49955227971076965, -0.1498560905456543, -0.3301324248313904, -0.08193798363208771, 0.10689316689968109, 0.07181286811828613, -0.038622889667749405, 0.0462699756026268, -0.3434685468673706, 0.19501498341560364, 0.06158183887600899, 0.16281715035438538, 0.3241667151451111, 0.13322120904922485, -0.25717759132385254, 0.053449466824531555, 0.24343569576740265, -0.26158154010772705, 0.005223464220762253, 0.10962318629026413, -0.1001475378870964, 0.5073884129524231, 0.5408016443252563, -0.07611046731472015, 0.019559312611818314, 0.2870781719684601, 0.20878832042217255, -0.035835906863212585, -0.03346211090683937, -0.11069215834140778, 0.15918797254562378, 0.6807658672332764, -0.27100393176078796, -0.4589677155017853, -0.32460957765579224, 0.0713924691081047, -0.27050071954727173, 0.23379862308502197, -0.2102416455745697, -0.114529088139534, 0.18929146230220795, -0.30065059661865234, 0.08327559381723404, 0.15464426577091217, 0.08438640832901001, 0.12991413474082947, 0.304684042930603, 0.06756232678890228, 0.04134814813733101, -0.09450987726449966, -0.0011600572615861893, -0.23167060315608978, 0.14802004396915436, 0.24333307147026062, -0.05603180080652237, -0.41016241908073425, 0.06510534882545471, 0.1676350235939026, -0.032710202038288116, 0.011249788105487823, 0.17866255342960358, 0.10131475329399109, -0.0499354712665081, 0.03424685448408127, -0.05364208295941353, 0.06818695366382599, -0.010496392846107483, 0.10409984737634659, -0.2755555510520935, 0.24377502501010895, 0.1687065064907074, 0.05232079327106476, -0.22345101833343506, 0.05348498001694679, -0.2910957932472229, -0.10301939398050308, 0.22254934906959534, 0.3778020739555359, -0.23135170340538025, -0.27966082096099854, -0.12904562056064606, -0.23745086789131165, -0.19194363057613373, 0.06640234589576721, 0.41546571254730225, 0.037050001323223114, 0.22913354635238647, 0.07002776116132736, 0.04532778263092041, -0.1413760781288147, -0.356436163187027, -0.2634369730949402, 0.038505248725414276, -0.2127169370651245, 0.31222495436668396, 0.19633667171001434, 0.15465950965881348, 0.33841821551322937, -0.07381086051464081, 0.09497128427028656, -0.01626218855381012, -0.05611250549554825, 0.13120277225971222, 0.05996447429060936, 0.22545188665390015, -0.35879936814308167, 0.2603388726711273, 0.2027900367975235, 0.22633643448352814, -0.04413177818059921, -0.12140956521034241, -0.09017916023731232, -0.44368237257003784, 0.18057478964328766, 0.19204272329807281, -0.06288134306669235, 0.08326513320207596, 0.14043346047401428, 0.0264977365732193, -0.06359107792377472, -0.22485263645648956, -0.03397670015692711, -0.07954634726047516, 0.01531045138835907, -0.20377397537231445, 0.4344882369041443, 0.4852274954319, -0.4055219888687134, -0.21347230672836304, 0.0002511218190193176, -0.12316443026065826, -0.05461844801902771, 0.08955268561840057, -0.15573525428771973, 0.21322345733642578, -0.3876473605632782, -0.2082953155040741, 0.1496126651763916, -0.3722705543041229, -0.26882755756378174, -0.05723706632852554, -0.06940993666648865, -0.006551951169967651, 0.22475579380989075, 0.15838882327079773, -0.2939498722553253, -0.02282489836215973, 0.02639157697558403, -0.3028905987739563, -0.16124355792999268, -0.0972399115562439, -0.22872717678546906, -0.03669878840446472, 0.288252592086792, -0.14879509806632996, 0.08304241299629211, -0.4183747172355652, 0.06606506556272507, 0.06645287573337555, 0.3662501573562622, -0.08699797093868256, -0.1381276249885559, 0.09899748861789703, 0.3767746090888977, 0.06917767226696014, -0.010425623506307602, -0.2488386034965515, -0.6682975888252258, 0.3622097671031952, -0.20393601059913635, 0.15477266907691956, -0.2363787740468979, -0.18880543112754822, 0.002183586359024048, -0.012192945927381516, -0.08496011793613434, -0.2544988691806793, 0.11927852034568787, 0.3689121901988983, 0.07570597529411316, -0.22167834639549255, -0.19067779183387756, 0.08883094787597656, -0.22080186009407043, 0.19572745263576508, -0.31133005023002625, 0.22414951026439667, -0.12326724827289581, -0.03692265599966049, 0.10446304082870483, 0.19388534128665924, 0.4511259198188782, -0.1390441358089447, 0.02740154042840004, 0.39990153908729553, -0.07801215350627899, 0.3407801687717438, -0.22531183063983917, 0.010688416659832, 0.23491957783699036, -0.2210017442703247, -0.0006454549729824066, -0.22753721475601196, -0.08797991275787354, -0.11687219142913818, 0.025699522346258163, 0.18477433919906616, 0.004870383068919182, 0.2868153154850006, 0.13965439796447754, -0.09015055745840073, 0.08124268054962158, -0.020486541092395782, 0.10003878176212311, -0.40339064598083496, 0.37820926308631897, 0.016997087746858597, -0.05493259057402611, 0.029504233971238136, -0.004192426800727844, 0.15164880454540253, 0.30724450945854187, 0.022098161280155182, 0.012476221658289433, -0.14914140105247498, -0.05632518231868744, -0.05188286304473877, 0.08490180224180222, 0.2145194709300995, 0.41625121235847473, 0.34684422612190247, -0.21963879466056824, 0.00895652361214161, -0.04980889707803726, -0.23923128843307495, 0.24787703156471252, 0.16880857944488525, -0.1634446382522583, 0.20005324482917786, -0.015718771144747734, 0.051405131816864014, -0.10315480828285217, -0.09391719102859497, 0.20165377855300903, 0.13582012057304382, -0.3426511287689209, -0.14117877185344696, -0.5398675799369812, -0.09339902549982071, -0.25343525409698486, -0.21972770988941193, -0.38132917881011963, -0.41981980204582214, 0.017779948189854622, -0.04997522756457329, -0.24833816289901733, 0.4047507643699646, -0.2452446073293686, -0.06642837822437286, -0.3282952904701233, 0.2077457159757614, -0.18308499455451965, -0.034727782011032104, 0.07814197242259979, -0.0023665092885494232, 0.2019667625427246, 0.1553623378276825, 0.607208251953125, -0.21499761939048767, -0.1269114911556244, -0.37748682498931885, -0.2173055112361908, 0.3197570741176605, -0.16213344037532806, 0.20962299406528473, 0.42702752351760864, 0.04369540512561798, 0.08257179707288742, -0.18967071175575256, 0.500030517578125, -0.4290896952152252, -0.12973010540008545, -0.13109704852104187, 0.00703088566660881, 0.0403459258377552, -0.0631958544254303, -0.4510279595851898, -0.32609838247299194, -0.2792876958847046, -0.04092956706881523, -0.1712636947631836, 0.02813909947872162, 0.4508419930934906, -0.1366327852010727, 0.1772928088903427, -0.29053813219070435, 0.12676362693309784, -0.21717244386672974, -0.42003652453422546, 0.2258952111005783, -0.15340138971805573, -0.06224377453327179, 0.10456956923007965, 0.10557744652032852, 0.19148042798042297, 0.12512390315532684, -0.3655936121940613, -0.12654781341552734, 0.002296658232808113, -0.12442959100008011, 0.07943269610404968, 0.031865112483501434, 0.5177468061447144, -0.04367627203464508, -0.1969280242919922, -0.1684497594833374, -0.26049137115478516, 0.09703509509563446, -0.1861138939857483, 0.7010141611099243, -0.01261519268155098, 0.2889913022518158, 0.060746997594833374, 0.6213525533676147, 0.06322614848613739, 0.027542302384972572, 0.2876085042953491, 0.02417641691863537, 0.2792995572090149, 0.011535201221704483, -0.36156415939331055, 0.33796200156211853, -0.18116351962089539, 0.08915817737579346, 0.12995842099189758, -0.00282139889895916, 0.507218062877655, -0.20608949661254883, 0.0018880665302276611, -0.07494798302650452, -0.2617644667625427, 0.023791929706931114, 0.3199010491371155, 0.21897979080677032, 0.1826617419719696, 0.03910044580698013, -0.32421648502349854, 0.047929298132658005, 0.2546258866786957, 0.23253503441810608, 0.3668810725212097, -0.06384299695491791, -0.528541624546051, -0.017513781785964966, -0.38995885848999023, 0.43086040019989014, 0.29602426290512085, 0.05970421060919762, 0.038198284804821014, 0.05816449224948883, -0.12930430471897125, 0.08915463089942932, 0.6850404143333435, -0.09737622737884521, -0.11799439042806625, 0.20737041532993317, -0.07555915415287018, -0.04377668350934982, -0.10343313217163086, -0.05377994477748871, 0.00021662935614585876, 0.30498260259628296, 0.3298190236091614, -0.1911243200302124, -0.2775791883468628, 0.29291877150535583, 0.4027469754219055, -0.18431000411510468, -0.33256110548973083, -0.10548445582389832, -0.06360840797424316, -0.36621028184890747, -0.28672775626182556, -0.04709174484014511, -0.030159855261445045, 0.08786018192768097, 0.01198635995388031, 0.072721928358078, -0.18425816297531128, 0.30845457315444946, -0.08695224672555923, 0.4801578223705292, -0.03850719705224037, 0.2894873321056366, 0.4400271773338318, 0.6983195543289185, 0.6514301300048828, 0.36646896600723267, -0.3299902081489563, -0.03766825795173645, -0.1353996992111206, -0.08602377772331238, 0.5548874735832214, 0.4428872764110565, 0.004581958055496216, 0.1611613929271698, 0.054124798625707626, 0.2811949849128723, -0.2516309916973114, 0.07010135799646378, 0.46527332067489624, -0.015901748090982437, -0.39035120606422424, -0.2836666703224182, 0.2261018455028534, -0.13375967741012573, -0.07396920025348663, 0.5584401488304138, 0.3709442615509033, -0.334773987531662, -0.11159683763980865, -0.11210484802722931, 0.9843757152557373, 0.3473871946334839, 0.05038004741072655, 0.09755951911211014, 0.17532509565353394, 0.8081747889518738, 0.04684325307607651, 0.25171494483947754, -0.13567286729812622, -0.38583388924598694, 0.019362889230251312, -0.126719668507576, 0.0679745078086853, 0.0905352383852005, -0.0736459493637085, 0.5067920088768005, 0.2091006636619568, 0.4314053952693939, -0.17429982125759125, 0.028918571770191193, 0.07893542945384979, -0.12910088896751404, -0.28900694847106934, 0.0922919362783432, 0.010442600585520267, 0.234392911195755, -0.3182743191719055, -0.05757767707109451, 0.16789387166500092, -0.24462120234966278, -0.2997695207595825, -0.1575014740228653, -0.6814193725585938, 0.17991165816783905, -0.1343313455581665, -0.30748310685157776, 0.21117958426475525, 0.12961356341838837, 0.30587100982666016, 0.07103901356458664, -0.18128252029418945, 0.20596548914909363, -0.4184034466743469, 0.006800848990678787, -0.3035413324832916, -0.08962709456682205, 0.24495959281921387, -0.19472713768482208, -0.42219749093055725, -0.07409162819385529, -0.18230867385864258, -0.2772516906261444, 0.0048795342445373535, -0.43867459893226624, 0.19104695320129395, -0.06180118769407272, -0.14164245128631592, 0.04523633047938347, 0.12736131250858307, -0.4730572998523712, 0.11126891523599625, 0.20457251369953156, -0.12178090959787369, 0.11834489554166794, 0.049278486520051956, -0.1039028987288475, -0.24117577075958252, 0.2789413332939148, -0.2892899215221405, -0.36873188614845276, 0.5313431024551392, 0.23983602225780487, -0.2592986822128296, -0.12117061018943787, 0.06926363706588745, 0.1727387011051178, -0.40145906805992126, 0.0760311484336853, 0.2065272182226181, 0.16274502873420715, 0.040000900626182556, 0.3159882426261902, 0.44281384348869324, -0.19881132245063782, 0.055264733731746674, -0.2432396113872528, -0.3253011703491211, 0.41338494420051575, -0.05519816279411316, 0.3707525432109833, -0.19879353046417236, 0.43611425161361694, 0.05763518810272217, 0.19785062968730927, -0.3366864025592804, -0.167249858379364, -0.04389479011297226, -0.020261406898498535, 0.09802648425102234, 0.08765660226345062, 0.15134254097938538, -0.10829005390405655, 0.06578178703784943, 0.3384583294391632, -0.06694310903549194, -0.08437252044677734, -0.1603165864944458, 0.18295994400978088, -0.11118076741695404, -0.20284569263458252, 0.31518590450286865, 0.1196398138999939, 0.1315680295228958, -0.21225902438163757, 0.02642817795276642, 0.36300337314605713, 0.21683764457702637, 0.10291785001754761, 0.0260753333568573, -0.07527279853820801, -0.10875272750854492, -0.002167128026485443, 0.33840814232826233, 0.3214169144630432, 0.17757754027843475, 0.006103506311774254, -0.16037292778491974, -0.03158421814441681, 0.09757824242115021, -0.030151359736919403, -0.33307766914367676, 0.15782374143600464, 0.0708981603384018, -0.23052629828453064, -0.3716973662376404, 0.41989222168922424, 0.49031615257263184, 0.06260041892528534, -0.07038360089063644, 0.3331463932991028, 0.26534396409988403, 0.1651165783405304, -0.5444373488426208, 0.06089917942881584, 0.2689184546470642, 0.1628166288137436, 0.04243956506252289, 0.14779788255691528, 0.25739586353302, -0.14676117897033691, 0.1516755223274231, 0.07835598289966583, 0.2901809513568878, -0.2553665041923523, 0.2954753637313843, 0.09790000319480896, 0.1516265571117401, 0.2062338888645172, 0.1538444608449936, 0.1485375463962555, 0.2932552695274353, 0.2869136929512024, -0.3505110740661621, 0.27403098344802856, -0.365828275680542, 0.11911511421203613, -0.02978813648223877, -0.211669921875, -0.059630684554576874, 0.28069865703582764, -0.40518835186958313, 0.07086371630430222, -0.1867116540670395, 0.22829201817512512, -0.24251875281333923, -0.18390996754169464, -0.13027098774909973, 0.3598787784576416, -0.07744888961315155, -0.01510675624012947, -0.2068873643875122, -0.24888145923614502, -0.11347580701112747, -0.029210828244686127, 0.0996357873082161, -0.15347564220428467, 0.12977835536003113, -0.01668906956911087, -0.1162869781255722, -0.32888901233673096, -0.029332835227251053, 0.05981305614113808, 0.19079050421714783, -0.3137890100479126, 0.054022565484046936, 0.6246376633644104, -0.27807602286338806, 0.25029587745666504, 0.34105387330055237, 0.4525345265865326, 0.12652797996997833, 0.2202869951725006, 0.007361922413110733, -0.214234858751297, 0.13900986313819885, -0.0371258407831192, 0.05099105462431908, -0.12041237205266953, -0.4188917279243469, 0.21567659080028534, 0.10131584107875824, -0.17820791900157928, -0.040737953037023544, 0.16624222695827484, 0.04348943755030632, -0.4238539934158325, 0.49339479207992554, -0.2402188777923584, -0.13328468799591064, -0.17043544352054596, 0.26089954376220703, -0.3362917900085449, 0.006846483796834946, 0.41049742698669434, 0.024028975516557693, 0.024072468280792236, -0.055102989077568054, 0.07066916674375534, -0.13895727694034576, 0.2621367275714874, 0.2800009846687317, -0.1208830326795578, -0.3700103461742401, -0.1812283992767334, -0.9696354866027832, -0.016328897327184677, -0.02975093014538288, 0.514792799949646, 0.009746391326189041, -0.07644892483949661, 0.21534600853919983, -0.09990432858467102, 0.5952280759811401, 0.2535041868686676, 0.17865273356437683, -0.0429888591170311, -0.33102837204933167, -0.21927303075790405, -0.1093791201710701, -0.07698068767786026, 0.20504166185855865, -0.00047837942838668823, -0.032283101230859756, -0.18673357367515564, -0.053172990679740906, -0.29630398750305176, 0.18898341059684753, 0.040515899658203125, 0.09177781641483307, 0.2949432134628296, 0.260326087474823, 0.470989853143692, -0.10190895199775696, -0.37626156210899353, -0.20622096955776215, -0.3172305226325989, -0.046491168439388275, 0.3580983579158783, 0.03866516426205635, 0.48598358035087585, -0.3079492151737213, -0.2035825550556183, -0.39877787232398987, 0.32139959931373596, 0.010067462921142578, -0.19956496357917786, -0.4410962760448456, 0.24837206304073334, -0.02035026252269745, -0.052311722189188004, 0.39360910654067993, 0.10792790353298187, -0.11340154707431793, 0.2067292034626007, -0.3410295248031616, -0.3415586054325104, 0.5293247699737549, -0.14277911186218262, 0.044951364398002625, -0.3057405948638916, 0.2517026662826538, 0.16026568412780762, 0.1378452628850937, -0.718205988407135, -0.10105115175247192, 0.37004998326301575, 0.3073861002922058, -0.07291378080844879, 0.11435634642839432, -0.10571938753128052, -0.1715395748615265, 0.08410951495170593, 0.4016285836696625, 0.25809988379478455, -0.3340820074081421, 0.11014710366725922, -0.004355601966381073 ]
https://github.com/huggingface/datasets/issues/1877
I started working on this. My idea is to first add the pyarrow Table wrappers InMemoryTable and MemoryMappedTable that both implement what's necessary regarding copy/pickle. Then have another wrapper that takes the concatenation of InMemoryTable/MemoryMappedTable objects. What's important here is that concatenating two tables into one doesn't double the memory used (`total_allocated_bytes()` stays the same).
Allow concatenation of both in-memory and on-disk datasets
This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova
55
Allow concatenation of both in-memory and on-disk datasets This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova I started working on this. My idea is to first add the pyarrow Table wrappers InMemoryTable and MemoryMappedTable that both implement what's necessary regarding copy/pickle. Then have another wrapper that takes the concatenation of InMemoryTable/MemoryMappedTable objects. What's important here is that concatenating two tables into one doesn't double the memory used (`total_allocated_bytes()` stays the same).
[ -0.36328086256980896, 0.1712486743927002, -0.016625747084617615, 0.19440211355686188, 0.09919460862874985, 0.031043782830238342, -0.22403459250926971, 0.2879289984703064, -0.2779928743839264, 0.16979941725730896, -0.014143228530883789, 0.6244734525680542, -0.007651632651686668, 0.3612307608127594, 0.3155478835105896, 0.020859098061919212, 0.16607142984867096, 0.321961909532547, -0.44450876116752625, 0.21201984584331512, -0.21096214652061462, -0.2650686204433441, -0.03106490522623062, -0.3578844666481018, -0.0414913110435009, 0.1385568380355835, -0.37376028299331665, 0.05412822589278221, -0.4198372960090637, -0.4219736158847809, 0.0363917350769043, 0.25146764516830444, 0.021089643239974976, -0.021510779857635498, -0.00011284123320365325, -0.02439570426940918, -0.08982443064451218, -0.15959987044334412, -0.49425336718559265, -0.06007048487663269, -0.1329774260520935, -0.3831801414489746, 0.05226738005876541, -0.021793872117996216, 0.2780459523200989, -0.2891721725463867, 0.12624606490135193, 0.096601203083992, -0.04205399379134178, -0.02835821732878685, 0.1490674614906311, 0.2059532254934311, 0.3069911003112793, -0.13933762907981873, 0.4071870446205139, 0.4137897789478302, -0.20511311292648315, 0.07678598910570145, 0.5211780071258545, -0.2946157157421112, 0.10447907447814941, -0.23244750499725342, -0.11277326941490173, -0.06878429651260376, 0.40344738960266113, 0.2039739042520523, -0.22815832495689392, -0.0668901801109314, -0.0968058779835701, 0.27377957105636597, 0.465991735458374, -0.5767396092414856, -0.34195828437805176, -0.32571882009506226, 0.2530628442764282, -0.3041679859161377, 0.08338679373264313, 0.28249505162239075, -0.17095224559307098, 0.13242903351783752, 0.009372416883707047, -0.31812649965286255, -0.24814213812351227, 0.21704034507274628, 0.31612932682037354, 0.19517552852630615, 0.3829263150691986, 0.08769112825393677, 0.18793082237243652, -0.012881690636277199, 0.16689470410346985, -0.12823057174682617, -0.23552298545837402, 0.10224031656980515, -0.23379939794540405, -0.06299185752868652, 0.1070394217967987, -0.03136736899614334, 0.6003128886222839, 0.04615890234708786, 0.31293004751205444, 0.016199039295315742, -0.22317102551460266, 0.28554394841194153, 0.11777997016906738, 0.11566506326198578, -0.340587317943573, 0.06997931003570557, -0.016127636656165123, -0.17472153902053833, 0.22474315762519836, 0.04285094887018204, -0.11245124787092209, 0.08825935423374176, 0.18214263021945953, -0.2519494891166687, -0.050682250410318375, 0.15711438655853271, 0.06361030787229538, -0.25538790225982666, -0.07254399359226227, -0.10100190341472626, -0.009234409779310226, 0.17194724082946777, 0.10383997112512589, -0.08152757585048676, 0.042969316244125366, 0.31306153535842896, 0.23004591464996338, -0.136203795671463, 0.017916139215230942, 0.05841907858848572, -0.2758907079696655, 0.4048902690410614, 0.40936222672462463, 0.11984303593635559, -0.1895427256822586, 0.25621891021728516, 0.03133651241660118, 0.3089534044265747, 0.026561014354228973, -0.15212354063987732, 0.3627640902996063, 0.1736973524093628, 0.034349486231803894, -0.5147960186004639, -0.10389818251132965, -0.04992957040667534, -0.34671005606651306, 0.5826542973518372, -0.007453586906194687, -0.310519278049469, -0.2788463830947876, 0.11243361979722977, -0.13995717465877533, -0.15204057097434998, -0.23622171580791473, 0.5187289118766785, 0.22346913814544678, -0.319428950548172, 0.053280021995306015, 0.1524675041437149, -0.0710657387971878, -0.4873286783695221, 0.17701692879199982, 0.24614466726779938, -0.6097147464752197, 0.0000969916582107544, 0.13468310236930847, -0.035531748086214066, -0.008175667375326157, 0.14143206179141998, -0.3650355637073517, 0.05344671010971069, -0.3295626640319824, 0.33901429176330566, 0.14832328259944916, 0.05144355446100235, -0.3597133457660675, -0.1292904019355774, -0.13121280074119568, -0.05726255103945732, 0.4833109676837921, 0.4032013714313507, 0.2118995189666748, 0.1453690081834793, 0.28456950187683105, 0.3539208471775055, -0.22260844707489014, -0.1017395630478859, -0.09693680703639984, -0.5097313523292542, 0.3827191889286041, 0.043672382831573486, -0.10911985486745834, 0.0557425394654274, 0.16222834587097168, -0.5239163041114807, 0.2628686726093292, -0.28472569584846497, 0.22220653295516968, -0.15622776746749878, 0.49109822511672974, -0.05525221303105354, -0.12674863636493683, -0.18077698349952698, -0.3993271291255951, 0.15324725210666656, -0.28590768575668335, 0.16905388236045837, -0.2946666181087494, -0.32285594940185547, 0.23633188009262085, 0.13228830695152283, 0.023040883243083954, 0.10998299717903137, 0.12798982858657837, 0.03281594440340996, 0.046783581376075745, -0.34437108039855957, -0.1753307282924652, 0.07097726315259933, 0.19728843867778778, 0.050254546105861664, -0.0657287985086441, 0.4222058057785034, -0.013010693714022636, -0.27352914214134216, 0.01119925081729889, 0.13805964589118958, -0.057724568992853165, 0.18947026133537292, 0.1517653614282608, 0.4081633687019348, -0.19751977920532227, 0.137238547205925, 0.08346284925937653, 0.30995362997055054, 0.19689758121967316, 0.27578675746917725, 0.05935705453157425, -0.5478470921516418, 0.17204518616199493, -0.1497485190629959, -0.10268290340900421, 0.2931601405143738, 0.12327426671981812, 0.11671505123376846, 0.20555616915225983, -0.16886785626411438, 0.1156381368637085, -0.05193137750029564, 0.004476442933082581, -0.1561865508556366, -0.04960240051150322, 0.2407083958387375, 0.07061762362718582, 0.3167552649974823, -0.39920929074287415, 0.23138487339019775, 0.255901038646698, -0.025745324790477753, 0.23155763745307922, 0.149671271443367, -0.13813039660453796, -0.24599705636501312, 0.0611865296959877, 0.06525498628616333, 0.6371229290962219, 0.40149185061454773, -0.04355616495013237, 0.023093553259968758, -0.07230977714061737, -0.10358035564422607, 0.15666082501411438, 0.02394028566777706, 0.191999614238739, 0.2960338890552521, 0.5149372220039368, 0.019223131239414215, -0.1312815397977829, 0.006839819252490997, 0.24376630783081055, -0.08762458711862564, -0.10078258067369461, -0.2337314784526825, -0.3976406455039978, -0.08550666272640228, -0.27345454692840576, -0.2590796649456024, -0.14981333911418915, -0.000041935592889785767, 0.2618876099586487, 0.30257606506347656, -0.1651456356048584, 0.13157403469085693, 0.16049295663833618, 0.5026212930679321, -0.41767191886901855, -0.4203872084617615, -0.09966346621513367, -0.10151554644107819, 0.08133319765329361, 0.09661123901605606, 0.3859764337539673, -0.07964576780796051, 0.4720604717731476, 0.41123655438423157, -0.038125116378068924, -0.3536836504936218, -0.37202760577201843, 0.1493055373430252, -0.07015243172645569, 0.13349084556102753, 0.1294969916343689, -0.061031524091959, 0.12234820425510406, -0.4504508674144745, 0.08998226374387741, 0.22738653421401978, -0.3001634478569031, 0.29167449474334717, -0.030742760747671127, -0.15896514058113098, -0.3208264112472534, -0.18601490557193756, -0.2604096531867981, -0.4231288731098175, 0.5149373412132263, -0.07621356099843979, 0.11777687072753906, 0.021703209728002548, 0.21267373859882355, -0.24927623569965363, 0.04976648837327957, 0.19256076216697693, -0.09107239544391632, -0.04142560064792633, 0.23986557126045227, -0.12052670866250992, -0.0846002846956253, -0.1582556664943695, -0.18862737715244293, 0.1327321082353592, 0.4877552092075348, -0.21622350811958313, -0.1652868539094925, -0.08993151038885117, 0.44637802243232727, -0.0780019760131836, 0.06228324770927429, 0.6283621191978455, 0.49744290113449097, -0.10464403033256531, -0.06835233420133591, -0.1453666090965271, 0.19304074347019196, 0.2069644033908844, -0.04691872373223305, 0.0595550537109375, -0.1752709448337555, 0.036818452179431915, 0.37630873918533325, -0.12022973597049713, 0.11428149044513702, 0.5036051869392395, -0.032361503690481186, 0.31509584188461304, -0.19339732825756073, 0.04170789569616318, -0.19537042081356049, -0.36547380685806274, -0.06982026994228363, -0.018596909940242767, -0.1062515527009964, -0.2606143653392792, -0.005441024899482727, 0.19656993448734283, -0.20241646468639374, -0.24652400612831116, 0.3875081539154053, -0.05374458059668541, 0.22995953261852264, 0.028137415647506714, -0.4425176978111267, -0.3240290880203247, 0.05448797717690468, -0.060959987342357635, 0.06719384342432022, 0.11600116640329361, -0.19723352789878845, -0.37860196828842163, -0.4912511706352234, -0.3914148211479187, 0.06402649730443954, 0.20475247502326965, 0.1848558783531189, 0.17038583755493164, -0.4162232279777527, -0.07120593637228012, -0.05279449373483658, 0.7359609603881836, 0.09484557062387466, -0.45966219902038574, 0.09318208694458008, 0.08530668914318085, 0.16629990935325623, 0.011330537497997284, 0.11509514600038528, -0.0030768364667892456, -0.22919344902038574, 0.197946697473526, -0.41224342584609985, 0.16107338666915894, 0.11003798991441727, 0.42413660883903503, 0.0007145330309867859, -0.27705302834510803, -0.09684215486049652, -0.03219408541917801, -0.4565470814704895, -0.37657010555267334, 0.0682293251156807, 0.1274803876876831, 0.10434959828853607, -0.00866091251373291, -0.22388435900211334, -0.017304718494415283, 0.046239666640758514, -0.06544497609138489, 0.3290599286556244, -0.07295981049537659, 0.3960428833961487, -0.37473809719085693, -0.09794831275939941, 0.876147985458374, 0.516981303691864, -0.2389470934867859, -0.16511276364326477, -0.08539086580276489, -0.1969737708568573, 0.2817299962043762, 0.05624305084347725, 0.13883629441261292, 0.5503257513046265, -0.07129538059234619, -0.006371296942234039, -0.47691842913627625, -0.16356301307678223, -0.18501462042331696, -0.26124489307403564, -0.23752564191818237, -0.26977550983428955, 0.448360800743103, 0.25050848722457886, -0.19408196210861206, 0.34999606013298035, 0.08893284201622009, -0.4363662600517273, 0.3113609254360199, 0.08868402242660522, 1.1590019464492798, 0.014896723441779613, 0.38001224398612976, 0.1056021898984909, -0.30357521772384644, -0.02737339213490486, -0.1147419810295105, 0.32798057794570923, -0.20952562987804413, -0.10916128754615784, -0.05399545282125473, -0.2491600215435028, -0.08167023956775665, -0.030363738536834717, -0.5228952169418335, -0.1054130271077156, -0.00920838862657547, 0.042118944227695465, 0.022153981029987335, 0.16691811382770538, -0.2668740749359131, -0.3497607707977295, -0.007673399522900581, 0.05277300626039505, 0.08396323025226593, -0.44663193821907043, -0.11377754807472229, -0.187932088971138, -0.1947299838066101, 0.08753101527690887, -0.2319943904876709, -0.13056404888629913, -0.30723246932029724, 0.16396555304527283, -0.01061636209487915, -0.12327834963798523, -0.12583954632282257, -0.03418729081749916, -0.19372276961803436, 0.0677936002612114, -0.1358165144920349, -0.0937972292304039, 0.08875267207622528, 0.0209430493414402, -0.16504791378974915, -0.3840017318725586, 0.43437689542770386, 0.06989562511444092, -0.17615926265716553, 0.0155025040730834, -0.08754384517669678, -0.3180525004863739, -0.17439644038677216, -0.06451162695884705, 0.23858746886253357, -0.16783437132835388, -0.14513999223709106, 0.33309435844421387, 0.04887065291404724, -0.2631314992904663, 0.10114233940839767, 0.15639550983905792, -0.09003571420907974, 0.19939982891082764, -0.0967753455042839, -0.013926833868026733, -0.22916822135448456, 0.053212299942970276, 0.3081637918949127, 0.15328340232372284, 0.17879635095596313, 0.011015370488166809, 0.015530422329902649, -0.11121376603841782, 0.0246141254901886, 0.1981816589832306, -0.25389599800109863, -0.050871290266513824, 0.13197696208953857, -0.0862402617931366, -0.047914158552885056, 0.18374763429164886, 0.3293776214122772, 0.36587759852409363, -0.15376406908035278, -0.09205183386802673, -0.4576089382171631, 0.44864916801452637, 0.16644737124443054, 0.3751327395439148, 0.1310436874628067, 0.2656692862510681, -0.07053814828395844, 0.3580206036567688, -0.3201296329498291, -0.16976341605186462, -0.07941196113824844, 0.13433018326759338, -0.0008914098143577576, 0.12906019389629364, -0.14563241600990295, -0.21065716445446014, 0.054213326424360275, 0.13502681255340576, -0.006868869066238403, -0.15127979218959808, 0.05690415948629379, 0.12383479624986649, 0.23632803559303284, 0.20133338868618011, -0.3025515079498291, -0.2956583797931671, 0.08273115009069443, -0.24915042519569397, 0.11921704560518265, -0.01347871869802475, -0.30825334787368774, -0.028256434947252274, 0.5552066564559937, 0.05432954430580139, -0.12691661715507507, 0.33594176173210144, 0.09000571072101593, 0.10416562855243683, -0.04403594136238098, 0.20618745684623718, -0.4008331596851349, -0.011780433356761932, -0.029917851090431213, 0.3622279763221741, 0.22434759140014648, -0.06610839068889618, 0.10217944532632828, 0.2828691601753235, -0.34875524044036865, -0.13317888975143433, 0.17844930291175842, 0.2610366940498352, 0.09979847073554993, 0.21069824695587158, 0.2864469289779663, 0.19866551458835602, -0.35701340436935425, -0.25353631377220154, -0.25350916385650635, -0.260391503572464, 0.20063796639442444, 0.2700417637825012, 0.1721264123916626, 0.1027308851480484, -0.2891113758087158, 0.10504743456840515, 0.06498001515865326, 0.056005191057920456, -0.007339317351579666, 0.11633916199207306, -0.01848965883255005, -0.07672776281833649, 0.05189616233110428, 0.32100898027420044, 0.20861591398715973, -0.0023515410721302032, -0.17499811947345734, 0.47988274693489075, 0.17163321375846863, -0.23500072956085205, 0.26839861273765564, 0.04986727237701416, 0.12481585144996643, 0.36082160472869873, 0.37343087792396545, -0.009332848712801933, 0.2327899932861328, 0.45744359493255615, 0.14988304674625397, -0.3676362633705139, 0.2930665910243988, 0.15336626768112183, 0.026794880628585815, 0.03295213356614113, -0.05645148456096649, -0.2492743581533432, -0.256869375705719, -0.1258598417043686, 0.06938809156417847, -0.2811412215232849, 0.49828848242759705, -0.005117923021316528, 0.1935657262802124, -0.25377246737480164, 0.3826329708099365, 0.6115155816078186, -0.044969022274017334, -0.40457308292388916, -0.11064081639051437, 0.31544923782348633, -0.3348844647407532, 0.0536019392311573, 0.1520831137895584, 0.48821279406547546, 0.2802978456020355, 0.02973596751689911, 0.14998292922973633, -0.13705329596996307, 0.08023607730865479, -0.19531789422035217, -0.16561387479305267, 0.2606085240840912, 0.12069068849086761, 0.11929378658533096, 0.16754108667373657, -0.025352640077471733, 0.18881672620773315, 0.15655547380447388, -0.03869689255952835, -0.4066997170448303, -0.11663924157619476, 0.43067795038223267, -0.6115741729736328, 0.3541136682033539, -0.02241416648030281, -0.2569139897823334, 0.08283506333827972, 0.3463210165500641, -0.03504344820976257, 0.014279898256063461, 0.05151300132274628, 0.07509585469961166, 0.32118457555770874, 0.28142163157463074, 0.29864439368247986, 0.18962827324867249, -0.3491723835468292, -0.2060578167438507, -0.3519126772880554, -0.06364035606384277, -0.025858061388134956, -0.3163740932941437, -0.051405277103185654, 0.14944669604301453, 0.2918798327445984, 0.05630412697792053, 0.035611171275377274, -0.054910797625780106, -0.05451420322060585, 0.2851234972476959, -0.27415770292282104, -0.12443720549345016, 0.2524219751358032, -0.09963566064834595, 0.02234213799238205, -0.20174318552017212, 0.037913158535957336, 0.13735845685005188, 0.03899780660867691, -0.3926253020763397, 0.024642378091812134, 0.22447115182876587, 0.27182167768478394, 0.5434373617172241, 0.09223757684230804, 0.3047642409801483, -0.22851155698299408, 0.0017848759889602661, 0.09151628613471985, -0.16264796257019043, -0.3749513328075409, -0.03245191276073456, -0.019297387450933456, -0.09702467918395996, -0.387860506772995, -0.07019355148077011, -0.10415276139974594, -0.04098641872406006, -0.12445856630802155, 0.051124993711709976, -0.21871060132980347, 0.0896853655576706, 0.16571085155010223, -0.027946511283516884, -0.09131787717342377, 0.15925246477127075, 0.14344307780265808, 0.09323082119226456, -0.09166692942380905, -0.256583034992218, 0.04196351021528244, 0.2645939886569977, -0.04308043792843819, -0.09671546518802643, -0.03524252772331238, -0.17073756456375122, 0.1734447032213211, -0.8052767515182495, -0.22885486483573914, 0.2185245007276535, 0.014988480135798454, -0.013339124619960785, 0.468254029750824, 0.060734543949365616, 0.007089436054229736, -0.3281799256801605, 0.3623630106449127, -0.13876532018184662, -0.3489474952220917, -0.1699952781200409, -0.5305550694465637 ]
https://github.com/huggingface/datasets/issues/1877
Hi @lhoestq @albertvillanova, I checked the linked issues and PR, this seems like a great idea. Would you mind elaborating on the in-memory and memory-mapped datasets? Based on my understanding, it is something like this, please correct me if I am wrong: 1. For in-memory datasets, we don't have any dataset files so the entire dataset is pickled to the cache during loading, and then whenever required it is unpickled . 2. For on-disk/memory-mapped datasets, we have the data files provided, so they can be re-loaded from the paths, and only the file-paths are stored while pickling. If this is correct, will the feature also handle pickling/unpickling of a concatenated dataset? Will this be cached? This also leads me to ask whether datasets are chunked during pickling? Thanks, Gunjan
Allow concatenation of both in-memory and on-disk datasets
This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova
129
Allow concatenation of both in-memory and on-disk datasets This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova Hi @lhoestq @albertvillanova, I checked the linked issues and PR, this seems like a great idea. Would you mind elaborating on the in-memory and memory-mapped datasets? Based on my understanding, it is something like this, please correct me if I am wrong: 1. For in-memory datasets, we don't have any dataset files so the entire dataset is pickled to the cache during loading, and then whenever required it is unpickled . 2. For on-disk/memory-mapped datasets, we have the data files provided, so they can be re-loaded from the paths, and only the file-paths are stored while pickling. If this is correct, will the feature also handle pickling/unpickling of a concatenated dataset? Will this be cached? This also leads me to ask whether datasets are chunked during pickling? Thanks, Gunjan
[ -0.3151938319206238, 0.02398143708705902, -0.009147141128778458, 0.3324132561683655, -0.09299767017364502, -0.016001366078853607, -0.14156554639339447, 0.051388584077358246, -0.12341327220201492, -0.03432539105415344, 0.012674696743488312, 0.5089060664176941, 0.015509005635976791, 0.43067923188209534, 0.12242045253515244, 0.05715212970972061, 0.19585929811000824, 0.16935814917087555, -0.4769206941127777, 0.10949181020259857, -0.36947059631347656, -0.2283262461423874, -0.22419869899749756, -0.4162861108779907, -0.24658842384815216, 0.03516107052564621, -0.45850640535354614, 0.17973878979682922, -0.5705540776252747, -0.2730197012424469, 0.08913317322731018, 0.34041139483451843, 0.033160559833049774, 0.0554768368601799, -0.00012291688472032547, -0.12156190723180771, -0.13135096430778503, -0.14388734102249146, -0.456064909696579, -0.19004112482070923, -0.45081013441085815, -0.45111799240112305, 0.05368375778198242, 0.027896061539649963, 0.40027177333831787, -0.16075675189495087, 0.11309508234262466, -0.11567501723766327, -0.025144267827272415, -0.04614093899726868, 0.03281790018081665, 0.13692307472229004, 0.21839594841003418, -0.06498052179813385, 0.13138903677463531, 0.45642146468162537, -0.2105991393327713, -0.015486933290958405, 0.46549928188323975, -0.11706559360027313, 0.12974125146865845, -0.2641112208366394, -0.03616397827863693, -0.20526151359081268, 0.4992966949939728, 0.09417444467544556, -0.4199725091457367, -0.24181708693504333, -0.1013239249587059, 0.25126969814300537, 0.6391006708145142, -0.32398122549057007, -0.4200561046600342, -0.3742828369140625, 0.1631268411874771, -0.3263413906097412, 0.17641934752464294, 0.23126691579818726, -0.0021590404212474823, 0.10230177640914917, -0.0673532485961914, -0.4811720848083496, -0.21300077438354492, 0.26089319586753845, 0.25441300868988037, 0.2590687870979309, 0.2200956791639328, 0.12095220386981964, 0.06476759910583496, 0.01494271494448185, 0.22940294444561005, -0.3686332106590271, -0.16576027870178223, 0.24533285200595856, -0.3499106466770172, -0.0451851487159729, 0.11295746266841888, -0.042348772287368774, 0.5332869291305542, 0.3057989180088043, 0.3247355818748474, 0.05160290002822876, -0.5262042880058289, 0.26601892709732056, 0.24318476021289825, 0.15618261694908142, -0.09639665484428406, 0.17068201303482056, -0.06949742138385773, -0.13716530799865723, 0.23761120438575745, 0.016634108498692513, -0.13674214482307434, -0.022672228515148163, 0.025174163281917572, -0.12592445313930511, -0.07389642298221588, 0.19455240666866302, 0.16527727246284485, -0.18147236108779907, -0.018923699855804443, -0.21629860997200012, 0.07783713191747665, -0.07439185678958893, 0.06219985708594322, 0.05685596540570259, -0.013617217540740967, 0.3514009416103363, 0.35603928565979004, -0.16273224353790283, 0.054926153272390366, -0.0814792811870575, -0.293766051530838, 0.38983505964279175, 0.33293116092681885, 0.05883588269352913, -0.1926192343235016, 0.23995213210582733, 0.04090815782546997, 0.20227491855621338, -0.1028449535369873, -0.244687020778656, 0.4061216711997986, 0.06371790170669556, 0.0030736923217773438, -0.5130047798156738, -0.01878657564520836, -0.032955244183540344, -0.3379790186882019, 0.5166104435920715, -0.1849386841058731, -0.37888485193252563, -0.30630043148994446, -0.030209705233573914, -0.14215941727161407, -0.046722445636987686, -0.21779678761959076, 0.5460849404335022, 0.3333915174007416, -0.21504046022891998, 0.1148194819688797, 0.15839779376983643, -0.11538299173116684, -0.48405495285987854, 0.14312832057476044, 0.40346354246139526, -0.4882219433784485, -0.028589054942131042, 0.09795090556144714, 0.020581193268299103, 0.06210823729634285, 0.13124330341815948, -0.3371046185493469, -0.025657255202531815, -0.381205677986145, 0.2984585165977478, 0.3309963345527649, 0.059259623289108276, -0.1576828956604004, -0.0075982920825481415, 0.023768261075019836, 0.1462472379207611, 0.42647650837898254, 0.3102688193321228, 0.030475158244371414, 0.09821690618991852, 0.38036179542541504, 0.33736371994018555, -0.17265698313713074, -0.38368797302246094, -0.02910451591014862, -0.4970320761203766, 0.44343101978302, -0.13868778944015503, -0.13001702725887299, 0.20804022252559662, 0.22093382477760315, -0.6818776726722717, 0.14913469552993774, -0.1081966832280159, 0.2218991219997406, -0.1341850757598877, 0.3370451033115387, 0.05761006847023964, -0.060825664550065994, -0.1623554229736328, -0.6230330467224121, 0.110844187438488, -0.3560381531715393, 0.0800083726644516, -0.1722414344549179, -0.24012352526187897, 0.2953733801841736, 0.09052965044975281, -0.03729945793747902, 0.1557227075099945, -0.03679381683468819, 0.058045871555805206, 0.03462374955415726, -0.4091596007347107, -0.45210301876068115, 0.2373276948928833, 0.0837838277220726, 0.053039807826280594, -0.2692815363407135, 0.33471888303756714, 0.13454148173332214, -0.09181492775678635, -0.14630816876888275, 0.2175552099943161, 0.029835909605026245, 0.12564845383167267, 0.07885708659887314, 0.47060877084732056, -0.1577601283788681, 0.05677809566259384, 0.12301044911146164, 0.39610037207603455, 0.17586222290992737, 0.28422603011131287, 0.06980480998754501, -0.7420754432678223, 0.20022183656692505, -0.2985210418701172, -0.035547852516174316, 0.30616360902786255, -0.17435818910598755, 0.22010016441345215, 0.19436442852020264, -0.13989019393920898, 0.06874073296785355, -0.04975420981645584, -0.23101764917373657, -0.22901569306850433, -0.08168336749076843, 0.21577587723731995, 0.0627809464931488, 0.33617714047431946, -0.525601327419281, 0.14547812938690186, 0.18314069509506226, 0.046451494097709656, 0.13318473100662231, 0.1387510746717453, -0.08491957932710648, -0.27817901968955994, -0.017224587500095367, 0.06376329064369202, 0.7007015347480774, 0.21607044339179993, 0.026239335536956787, -0.018096158280968666, 0.07404141128063202, -0.12547093629837036, 0.23353885114192963, -0.006718285381793976, 0.1687891185283661, 0.4369446039199829, 0.3996041417121887, 0.11076655983924866, -0.06377120316028595, 0.023474298417568207, 0.2618209719657898, -0.2111874222755432, -0.12338202446699142, -0.21167156100273132, -0.43660640716552734, -0.07540540397167206, -0.23096466064453125, -0.35015222430229187, -0.19987274706363678, -0.04319142550230026, 0.07642464339733124, 0.25935009121894836, 0.0600147545337677, 0.16930408775806427, 0.10152196884155273, 0.7371383905410767, -0.4011031985282898, -0.36401504278182983, -0.05704960972070694, 0.07775835692882538, 0.16556450724601746, -0.031834594905376434, 0.37158429622650146, -0.07876130938529968, 0.3381142020225525, 0.28616762161254883, -0.0335317961871624, -0.2892334461212158, -0.2818518280982971, 0.15114367008209229, 0.016733020544052124, 0.045462317764759064, 0.17306023836135864, -0.09997907280921936, 0.03136780112981796, -0.4025484025478363, 0.04888046905398369, 0.47231990098953247, -0.2581705152988434, 0.13380290567874908, 0.051344119012355804, -0.16829997301101685, -0.20785439014434814, -0.18977896869182587, -0.2680082321166992, -0.3550594449043274, 0.43330034613609314, 0.008703731000423431, 0.08410286903381348, 0.14162522554397583, 0.1919737160205841, -0.3095080256462097, 0.22348739206790924, 0.1859375387430191, -0.21886715292930603, -0.20299386978149414, 0.3382442891597748, -0.15423151850700378, -0.07227903604507446, -0.17770910263061523, -0.14098352193832397, 0.13975736498832703, 0.45690101385116577, -0.13090550899505615, -0.047600552439689636, 0.005076702684164047, 0.48436546325683594, -0.09395909309387207, 0.11807935684919357, 0.7127972841262817, 0.47273847460746765, 0.035507746040821075, -0.19272728264331818, -0.14812792837619781, 0.21344280242919922, 0.3343861699104309, 0.05617884173989296, 0.3356006145477295, -0.28049251437187195, -0.00899580866098404, 0.34156548976898193, 0.11962975561618805, 0.027528246864676476, 0.48003458976745605, 0.1667899340391159, 0.35847461223602295, -0.19394707679748535, -0.05020466446876526, -0.20211273431777954, -0.45249390602111816, 0.07597760111093521, -0.17189821600914001, 0.007028345018625259, -0.11740665137767792, -0.11004821956157684, 0.3091023564338684, -0.13778361678123474, -0.10234972089529037, 0.3258582651615143, -0.37908217310905457, 0.4001637101173401, 0.06271715462207794, -0.5139104723930359, -0.3369120955467224, 0.11344706267118454, -0.13841702044010162, 0.1996138095855713, 0.3677076995372772, -0.22809721529483795, -0.42314520478248596, -0.375784307718277, -0.25921183824539185, 0.07118288427591324, 0.20412537455558777, 0.22743967175483704, 0.1916835904121399, -0.27507656812667847, -0.0513802096247673, 0.05532458424568176, 0.7124958634376526, -0.023619677871465683, -0.5619778633117676, 0.05249207466840744, 0.07817089557647705, 0.3489020764827728, 0.05819091945886612, 0.2769465446472168, 0.15627777576446533, -0.24330811202526093, 0.3843100070953369, -0.3124513030052185, 0.1250409185886383, 0.06062095984816551, 0.40037792921066284, 0.08900449424982071, -0.2711160182952881, 0.049205780029296875, 0.15246544778347015, -0.3478347063064575, -0.5306869745254517, -0.028142083436250687, 0.07540053129196167, 0.1031540036201477, -0.012837596237659454, -0.32876038551330566, 0.06013976037502289, 0.03636385500431061, -0.15534739196300507, 0.19833587110042572, -0.04980291798710823, 0.3714057207107544, -0.24165338277816772, -0.030715249478816986, 0.7655331492424011, 0.672315239906311, -0.23595526814460754, -0.23998606204986572, -0.11077732592821121, -0.18255062401294708, 0.2655690610408783, 0.08835167437791824, 0.12026903033256531, 0.4290009140968323, 0.02969934418797493, -0.05318613350391388, -0.4937259554862976, -0.134797140955925, -0.053878799080848694, -0.08307955414056778, -0.3994487226009369, -0.41510456800460815, 0.4616018235683441, 0.1421404629945755, -0.1688082069158554, 0.5554352402687073, 0.05485773831605911, -0.41175705194473267, 0.132878839969635, 0.051351018249988556, 1.327676773071289, 0.2869279384613037, 0.23862281441688538, -0.038914576172828674, -0.27397212386131287, -0.014186665415763855, -0.043728094547986984, 0.2706170976161957, -0.08414444327354431, -0.147572323679924, -0.20700401067733765, -0.25329750776290894, 0.03910653665661812, 0.009635455906391144, -0.3656955063343048, -0.12437102198600769, -0.04915611445903778, -0.09991517663002014, 0.0220855250954628, 0.0850072056055069, -0.20206288993358612, -0.35417598485946655, 0.2298353761434555, -0.08612695336341858, 0.13086223602294922, -0.29662954807281494, -0.08656404912471771, -0.1409364938735962, -0.11973705142736435, 0.05944263935089111, -0.3053862154483795, -0.18382838368415833, -0.25683820247650146, 0.19238121807575226, 0.18169620633125305, -0.1746620535850525, 0.07916492223739624, 0.13798215985298157, -0.16405881941318512, -0.07478044927120209, 0.017384273931384087, -0.11315103620290756, 0.29296717047691345, -0.1268591284751892, -0.16667282581329346, -0.29284530878067017, 0.5314506888389587, 0.12830708920955658, -0.09438712894916534, 0.010213185101747513, -0.1836509108543396, -0.3001396656036377, -0.2620707154273987, -0.029770612716674805, 0.24109721183776855, -0.27409183979034424, -0.3464111089706421, 0.52557373046875, 0.11181799322366714, -0.13338039815425873, -0.017192259430885315, 0.28214067220687866, 0.0041770339012146, 0.2388521432876587, -0.1153024435043335, 0.044753462076187134, -0.17242178320884705, 0.1028248518705368, 0.362639844417572, -0.05724908038973808, 0.12384548783302307, -0.012467250227928162, -0.09470546245574951, -0.0052469149231910706, 0.1010328084230423, 0.08887907862663269, -0.16375990211963654, -0.08733297884464264, 0.1111692562699318, -0.055468589067459106, -0.14819441735744476, 0.2667476534843445, 0.27153024077415466, 0.536375880241394, -0.09595449268817902, -0.22599607706069946, -0.33612269163131714, 0.3077061176300049, 0.01082325354218483, 0.30151334404945374, -0.01197720319032669, 0.05687461420893669, -0.06528835743665695, 0.42646366357803345, -0.1813463568687439, -0.1138806939125061, 0.00873246043920517, 0.03441738337278366, 0.1005261242389679, 0.18246155977249146, -0.25133275985717773, -0.19988957047462463, -0.08705064654350281, 0.012129755690693855, -0.05719567835330963, -0.02010982297360897, 0.025375045835971832, 0.20109856128692627, 0.39366286993026733, 0.03852953761816025, -0.3091897666454315, -0.40458834171295166, -0.06425414234399796, -0.3011092245578766, 0.01803794503211975, 0.0067465826869010925, -0.2550586462020874, -0.045352257788181305, 0.31876614689826965, 0.1587715893983841, -0.21697136759757996, 0.41391879320144653, 0.24654515087604523, 0.17905676364898682, -0.049593809992074966, 0.1369214653968811, -0.3104901611804962, -0.0004517212510108948, -0.2512003779411316, 0.3576909601688385, 0.27868908643722534, -0.0583895742893219, 0.25663989782333374, 0.19281962513923645, -0.1270216852426529, -0.22549466788768768, 0.09355634450912476, 0.32290351390838623, 0.11651962995529175, 0.17859333753585815, 0.2229984700679779, 0.04704303294420242, -0.3327699303627014, -0.25093957781791687, -0.22899025678634644, -0.10387386381626129, 0.13724921643733978, 0.22954577207565308, 0.20400077104568481, 0.08533601462841034, -0.23760652542114258, 0.03761681169271469, 0.0781700611114502, -0.008050615899264812, 0.21046119928359985, 0.10184168815612793, 0.03915223479270935, 0.07590538263320923, 0.10274479538202286, 0.44340306520462036, 0.127867192029953, -0.06034625321626663, -0.053637512028217316, 0.40599265694618225, 0.3354984223842621, -0.15640142560005188, 0.28407207131385803, -0.14648497104644775, 0.19058389961719513, 0.41173261404037476, 0.2667858898639679, 0.10272669792175293, 0.18582461774349213, 0.35608142614364624, -0.0903090089559555, -0.36048030853271484, 0.3775743842124939, 0.19188885390758514, 0.10058195888996124, 0.014163672924041748, -0.19526167213916779, -0.34387192130088806, -0.3334764838218689, -0.12469936907291412, 0.06840714812278748, -0.16628368198871613, 0.5352698564529419, -0.1510171890258789, 0.1251707375049591, -0.18672515451908112, 0.4833073019981384, 0.43001988530158997, 0.055065371096134186, -0.3070124685764313, -0.005205362103879452, 0.23636919260025024, -0.20218633115291595, 0.1345389485359192, 0.17011752724647522, 0.4026607573032379, 0.3949689269065857, 0.15525610744953156, 0.1541089564561844, -0.12766388058662415, 0.024670787155628204, -0.03421211987733841, -0.03668367117643356, 0.11812447011470795, -0.09164407849311829, 0.13208164274692535, 0.045938871800899506, 0.07184842228889465, 0.418560266494751, 0.12119226902723312, 0.06588123738765717, -0.48078104853630066, -0.05219199135899544, 0.3336160182952881, -0.5089946389198303, 0.4396708905696869, 0.03269049897789955, -0.10541225969791412, 0.05392652750015259, 0.47186094522476196, -0.027871066704392433, 0.02529052644968033, 0.09266096353530884, 0.014737877994775772, 0.3638401925563812, 0.22574415802955627, 0.4549020528793335, 0.10537271201610565, -0.2259773463010788, -0.2966221570968628, -0.26136475801467896, -0.13153746724128723, 0.3128868341445923, -0.37988144159317017, 0.00013361871242523193, 0.042565882205963135, 0.32869771122932434, 0.07535266876220703, -0.04206828773021698, -0.08790495246648788, 0.029295988380908966, 0.2934948205947876, -0.22481220960617065, -0.11518731713294983, 0.283756285905838, 0.10989294201135635, -0.11145748198032379, -0.2010268270969391, 0.011971904896199703, 0.3292585015296936, -0.14955058693885803, -0.2576151490211487, -0.029473304748535156, 0.18749111890792847, 0.29739025235176086, 0.3829789161682129, 0.2143356204032898, 0.32317546010017395, -0.24125485122203827, 0.05657748132944107, 0.1228623017668724, -0.10368888080120087, -0.24290795624256134, 0.20859268307685852, 0.017481546849012375, -0.19007733464241028, -0.5419857501983643, 0.044584859162569046, -0.06643447279930115, -0.055745262652635574, -0.12666426599025726, -0.002318926155567169, -0.2712287902832031, 0.03449736535549164, 0.04919850826263428, -0.12562903761863708, 0.1763836145401001, 0.33437803387641907, 0.11564353108406067, 0.09353779256343842, 0.05369460582733154, -0.09859506785869598, -0.016614213585853577, 0.28884437680244446, -0.038296185433864594, -0.08811777830123901, -0.1418970376253128, -0.052447620779275894, 0.21877789497375488, -0.8657222986221313, -0.35563117265701294, 0.307570219039917, -0.10078366100788116, 0.1090640127658844, 0.38177061080932617, 0.08927960693836212, -0.13024817407131195, -0.3879983425140381, 0.35716214776039124, -0.1040116474032402, -0.339221715927124, -0.09157796949148178, -0.4220615327358246 ]
https://github.com/huggingface/datasets/issues/1877
Hi ! Yes you're totally right about your two points :) And in the case of a concatenated dataset, then we should reload each sub-table depending on whether it's in-memory or memory mapped. That means the dataset will be made of several blocks in order to keep track of what's from memory and what's memory mapped. This allows to pickle/unpickle concatenated datasets
Allow concatenation of both in-memory and on-disk datasets
This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova
62
Allow concatenation of both in-memory and on-disk datasets This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova Hi ! Yes you're totally right about your two points :) And in the case of a concatenated dataset, then we should reload each sub-table depending on whether it's in-memory or memory mapped. That means the dataset will be made of several blocks in order to keep track of what's from memory and what's memory mapped. This allows to pickle/unpickle concatenated datasets
[ -0.33088982105255127, 0.08096610009670258, -0.08752967417240143, 0.12888085842132568, 0.10378753393888474, 0.02138318121433258, -0.09534378349781036, 0.26424840092658997, -0.09941363334655762, 0.19631227850914001, -0.006662741303443909, 0.5743993520736694, -0.027389489114284515, 0.47451505064964294, 0.13906005024909973, 0.01996460184454918, 0.13390879333019257, 0.27067282795906067, -0.45997944474220276, 0.09955763816833496, -0.2808738648891449, -0.24709901213645935, -0.05844588577747345, -0.33466094732284546, -0.052393920719623566, -0.042113594710826874, -0.33913740515708923, 0.15397970378398895, -0.3864448666572571, -0.42212072014808655, 0.004440367221832275, 0.2818988859653473, 0.13759049773216248, -0.043205440044403076, -0.00010118260979652405, -0.05907052382826805, -0.06709818542003632, -0.16757673025131226, -0.5165481567382812, -0.09678056836128235, -0.30990415811538696, -0.35455185174942017, 0.05188304930925369, -0.13483934104442596, 0.2507436275482178, -0.3207661211490631, 0.17272230982780457, -0.023712463676929474, 0.029103025794029236, -0.04178788885474205, 0.2448408007621765, 0.20113679766654968, 0.16950467228889465, -0.15307055413722992, 0.1990845501422882, 0.35943180322647095, -0.18906325101852417, 0.067169189453125, 0.4142090976238251, -0.130123108625412, 0.009799733757972717, -0.14670589566230774, -0.0309298075735569, -0.09015148133039474, 0.38903719186782837, 0.15178388357162476, -0.1840360015630722, -0.21659576892852783, -0.1419537216424942, 0.28242966532707214, 0.5254634022712708, -0.3413600027561188, -0.4619010388851166, -0.28484827280044556, 0.1841115802526474, -0.31267035007476807, 0.10593396425247192, 0.2865484952926636, -0.036890432238578796, 0.22044605016708374, 0.02389127016067505, -0.21960920095443726, -0.3139275312423706, 0.1313328891992569, 0.2414425164461136, 0.2709457278251648, 0.22840696573257446, 0.047988682985305786, 0.060665421187877655, 0.05129218101501465, 0.14259500801563263, -0.19059930741786957, -0.13488534092903137, 0.12317423522472382, -0.19492433965206146, -0.10088935494422913, 0.044964637607336044, -0.07452529668807983, 0.5886337757110596, 0.228902205824852, 0.3365890383720398, 0.16773173213005066, -0.30178868770599365, 0.35794562101364136, 0.2023163139820099, 0.08987629413604736, -0.23459920287132263, 0.005161985754966736, 0.1279999315738678, -0.20768922567367554, 0.11736950278282166, -0.011233984492719173, -0.12409041076898575, 0.1520703136920929, 0.06936489045619965, -0.14916041493415833, -0.08417877554893494, 0.14684940874576569, 0.03275062143802643, -0.22616985440254211, -0.013092361390590668, -0.11230670660734177, 0.0061754100024700165, 0.12531778216362, 0.07042917609214783, -0.028116151690483093, -0.02109185978770256, 0.22456641495227814, 0.2642064690589905, -0.08134803175926208, 0.004633594304323196, -0.08505776524543762, -0.20814809203147888, 0.32240724563598633, 0.3119050860404968, 0.007585681974887848, -0.10215497761964798, 0.1868179440498352, 0.019219350069761276, 0.21305570006370544, 0.14302955567836761, -0.15185147523880005, 0.43138158321380615, 0.10368801653385162, 0.05688977241516113, -0.49617937207221985, -0.1049024760723114, -0.06786853075027466, -0.3789528012275696, 0.43632450699806213, -0.10769422352313995, -0.2815757989883423, -0.3184337019920349, 0.22362937033176422, -0.05305165797472, -0.15538828074932098, -0.15353327989578247, 0.4602695107460022, 0.098652184009552, -0.2554015517234802, 0.05260787904262543, 0.1726687103509903, -0.026821523904800415, -0.44187673926353455, 0.11393000930547714, 0.18072950839996338, -0.45835861563682556, 0.06238909065723419, 0.15535712242126465, -0.12810340523719788, -0.038984257727861404, 0.11685622483491898, -0.3931361138820648, 0.03494250401854515, -0.39642298221588135, 0.34182286262512207, 0.26551002264022827, 0.029063157737255096, -0.12696929275989532, -0.04778746888041496, -0.027552500367164612, 0.015011824667453766, 0.4528050720691681, 0.3481985032558441, 0.21184730529785156, 0.0749008059501648, 0.21601715683937073, 0.34316423535346985, -0.13406652212142944, -0.13203272223472595, -0.07946593314409256, -0.41770339012145996, 0.3380460739135742, -0.01890028640627861, -0.23033344745635986, 0.1269378811120987, 0.24508829414844513, -0.5227219462394714, 0.24414677917957306, -0.3239215016365051, 0.16869980096817017, -0.17506450414657593, 0.41489166021347046, 0.0176650770008564, -0.08226995170116425, -0.12351575493812561, -0.5488765239715576, 0.1035032570362091, -0.3118019104003906, 0.09811660647392273, -0.18125146627426147, -0.3896614909172058, 0.253152996301651, 0.06680241972208023, 0.025644760578870773, 0.1171816885471344, 0.24580976366996765, 0.048300594091415405, -0.01974358782172203, -0.39458203315734863, -0.3163655698299408, 0.09914272278547287, 0.09525676816701889, -0.0008598752319812775, -0.11558617651462555, 0.25682204961776733, -0.06417277455329895, -0.10524901747703552, 0.059379808604717255, 0.1430232971906662, -0.07125535607337952, 0.07761836051940918, 0.16161900758743286, 0.43322840332984924, -0.09090733528137207, 0.09531408548355103, 0.1977410763502121, 0.3503227233886719, 0.1969355195760727, 0.318622350692749, 0.053682662546634674, -0.4303307831287384, 0.13880935311317444, -0.14949971437454224, -0.2212161123752594, 0.4097173810005188, 0.06979063153266907, 0.13405278325080872, 0.2553194761276245, -0.13075260818004608, 0.26396313309669495, -0.04895613715052605, -0.1614896059036255, -0.21572434902191162, -0.14725573360919952, 0.1894979625940323, 0.14474236965179443, 0.33364975452423096, -0.4741411507129669, 0.2637767493724823, 0.24955661594867706, -0.011650241911411285, 0.17919093370437622, 0.11756134778261185, -0.10456764698028564, -0.26164761185646057, 0.05551090091466904, 0.18842002749443054, 0.5312663912773132, 0.45902878046035767, 0.05916440859436989, -0.061286963522434235, 0.0004429556429386139, -0.12534457445144653, 0.20020201802253723, 0.07038974016904831, 0.10174989700317383, 0.3079034090042114, 0.39701715111732483, 0.03715724125504494, -0.19254250824451447, -0.08355209976434708, 0.13196900486946106, -0.16140861809253693, -0.044186655431985855, -0.20516684651374817, -0.3770572245121002, -0.0965348333120346, -0.18380580842494965, -0.20130212604999542, -0.18839199841022491, -0.170303612947464, 0.2789219617843628, 0.2475673258304596, -0.29982420802116394, 0.13750776648521423, 0.1295551061630249, 0.5335016846656799, -0.37547051906585693, -0.1796848624944687, -0.1084836944937706, -0.08955446630716324, 0.10451321303844452, 0.18451038002967834, 0.30808332562446594, -0.05922000855207443, 0.5809789299964905, 0.34316402673721313, 0.004000231623649597, -0.3314962089061737, -0.30799341201782227, 0.09871525317430496, -0.049304019659757614, 0.05981425195932388, 0.1120491623878479, -0.000060167163610458374, 0.1649870127439499, -0.493071973323822, 0.03860073909163475, 0.2502206563949585, -0.28849563002586365, 0.14416615664958954, 0.08971589058637619, -0.17176173627376556, -0.3596303462982178, -0.31856948137283325, -0.32322442531585693, -0.531662106513977, 0.5087659358978271, -0.012401632964611053, 0.21891959011554718, 0.12447287887334824, 0.0831148773431778, -0.25963810086250305, 0.08987465500831604, 0.18831570446491241, -0.20380495488643646, -0.1830642968416214, 0.21913078427314758, -0.2883407473564148, -0.1422278881072998, -0.11566511541604996, -0.1629638373851776, 0.14777126908302307, 0.37192705273628235, -0.15896618366241455, -0.16885437071323395, -0.024364249780774117, 0.3907034993171692, -0.06886141002178192, 0.048795588314533234, 0.5856062173843384, 0.514385461807251, -0.24383938312530518, -0.13389544188976288, 0.027383245527744293, 0.1994643360376358, 0.2149875909090042, 0.012374483048915863, 0.09174074232578278, -0.2447969764471054, -0.0339084230363369, 0.2672222852706909, -0.044900670647621155, -0.008345515467226505, 0.48026975989341736, 0.0296963918954134, 0.3378029465675354, -0.19882413744926453, 0.08465758711099625, -0.15422570705413818, -0.4396437406539917, -0.03953856602311134, 0.08107444643974304, -0.01812700927257538, -0.2163597047328949, -0.027565691620111465, 0.2161121964454651, -0.18128935992717743, -0.2459593117237091, 0.3671938478946686, -0.1107378751039505, 0.25273457169532776, -0.010652072727680206, -0.4284535050392151, -0.2671548128128052, 0.17626750469207764, -0.04777761548757553, 0.12488511204719543, 0.2901668846607208, -0.24166961014270782, -0.4778907299041748, -0.340960830450058, -0.3137471377849579, 0.13875411450862885, 0.24071499705314636, 0.13063135743141174, 0.20507194101810455, -0.4547715187072754, -0.08076208084821701, -0.008547965437173843, 0.6017178297042847, -0.00578128919005394, -0.4994775354862213, 0.07261140644550323, 0.07046671211719513, 0.22901436686515808, 0.09185189008712769, 0.06981787830591202, 0.03560974448919296, -0.15532149374485016, 0.28790366649627686, -0.34000492095947266, 0.05054834485054016, 0.0386342890560627, 0.3517751097679138, -0.0046846866607666016, -0.2893882393836975, -0.005138516426086426, 0.05655033886432648, -0.48657989501953125, -0.4271862506866455, -0.034163180738687515, 0.012153208255767822, 0.005669139325618744, -0.1888546645641327, -0.25180938839912415, -0.015193082392215729, 0.021232031285762787, 0.004765011370182037, 0.22596490383148193, -0.0365259051322937, 0.3290247321128845, -0.28738051652908325, 0.15357010066509247, 0.7977830767631531, 0.5349411964416504, -0.3412916660308838, -0.07000226527452469, -0.0637580156326294, -0.24623626470565796, 0.2890380918979645, -0.0018981099128723145, 0.13826696574687958, 0.4825802147388458, -0.030011974275112152, -0.01261971890926361, -0.564171552658081, -0.17359068989753723, -0.1112963855266571, -0.1793777346611023, -0.30510419607162476, -0.3777844309806824, 0.460381418466568, 0.12014172226190567, -0.2521437704563141, 0.33175626397132874, -0.015027597546577454, -0.42215412855148315, 0.32904717326164246, 0.0887540876865387, 1.12258780002594, 0.17795917391777039, 0.3433842658996582, 0.034035008400678635, -0.2753271758556366, 0.09267766028642654, -0.11296471953392029, 0.22781673073768616, -0.18674443662166595, -0.12381546199321747, -0.13448764383792877, -0.15997490286827087, -0.05959853157401085, 0.029115993529558182, -0.5210742354393005, -0.10952523350715637, 0.012524604797363281, -0.07286953181028366, -0.11000479012727737, 0.2566879093647003, -0.29366064071655273, -0.36041563749313354, -0.03805479779839516, 0.1260078400373459, 0.13414454460144043, -0.362382173538208, -0.08842584490776062, -0.20951543748378754, -0.13466869294643402, 0.08783546090126038, -0.10856334865093231, -0.16604283452033997, -0.22159132361412048, 0.16326013207435608, -0.020498204976320267, -0.09610827267169952, -0.19617138803005219, -0.03932724520564079, -0.14026057720184326, 0.05025072023272514, -0.1339435577392578, -0.1060590147972107, 0.07027480751276016, 0.08930142223834991, -0.1681356430053711, -0.29262834787368774, 0.5270136594772339, 0.07156266272068024, -0.1033332422375679, -0.005210597068071365, -0.11773647367954254, -0.31130123138427734, -0.1454511284828186, -0.01122211292386055, 0.11190536618232727, -0.23585250973701477, -0.09295620769262314, 0.3725414276123047, -0.12251131981611252, -0.22872930765151978, 0.17964385449886322, 0.17374905943870544, -0.06220778822898865, 0.27063989639282227, 0.024443447589874268, 0.03735049068927765, -0.20223313570022583, 0.10542447865009308, 0.25615325570106506, 0.09776619076728821, 0.11572511494159698, -0.06161337345838547, -0.09799665212631226, -0.21509304642677307, 0.10794045031070709, 0.12570880353450775, -0.08529901504516602, -0.034269824624061584, 0.15774494409561157, -0.13058261573314667, -0.07228361815214157, 0.2747027575969696, 0.2969365417957306, 0.3914657235145569, -0.18600884079933167, -0.15611766278743744, -0.48506197333335876, 0.3692670464515686, 0.08391831070184708, 0.4723118841648102, 0.04264584928750992, 0.09094386547803879, -0.09728321433067322, 0.34393590688705444, -0.4360331594944, -0.24473556876182556, -0.17866891622543335, 0.18864764273166656, 0.06210320442914963, 0.10722317546606064, -0.10681027919054031, -0.16329872608184814, 0.12436672300100327, 0.06602757424116135, -0.0521620474755764, -0.27050554752349854, 0.0005364343523979187, 0.08864738792181015, 0.26664605736732483, 0.15104028582572937, -0.2268206626176834, -0.23885220289230347, -0.009021827019751072, -0.2859176695346832, 0.09842681884765625, -0.04724923521280289, -0.28047627210617065, 0.047379542142152786, 0.4312938451766968, 0.16614535450935364, -0.09117737412452698, 0.2814760208129883, 0.13022370636463165, 0.17570242285728455, -0.028420504182577133, 0.07748287171125412, -0.5265858769416809, -0.0447007492184639, 0.051837120205163956, 0.3191319406032562, 0.21184533834457397, 0.006655696779489517, 0.20701709389686584, 0.3998590111732483, -0.2470114380121231, -0.1597466915845871, 0.26104736328125, 0.24729964137077332, 0.0784810334444046, 0.17214363813400269, 0.25269821286201477, 0.3201170265674591, -0.37532326579093933, -0.20550622045993805, -0.24212861061096191, -0.30171430110931396, 0.23989903926849365, 0.20747357606887817, 0.20796865224838257, 0.06335937976837158, -0.20707036554813385, -0.0001581721007823944, 0.10825227200984955, -0.029970481991767883, 0.09740698337554932, 0.0044737933203577995, -0.07657454907894135, -0.03574708104133606, 0.031070193275809288, 0.26212936639785767, 0.20773495733737946, 0.039618272334337234, -0.14501769840717316, 0.46612489223480225, 0.3491324484348297, -0.12935927510261536, 0.23947113752365112, 0.030702203512191772, 0.2176368534564972, 0.3183436095714569, 0.3328392803668976, 0.09370666742324829, 0.2749660909175873, 0.26308777928352356, -0.039222076535224915, -0.33781543374061584, 0.32606130838394165, 0.13557171821594238, 0.0584685392677784, -0.03379227593541145, -0.21060360968112946, -0.22942247986793518, -0.22009354829788208, -0.21607378125190735, 0.0881616547703743, -0.2070174664258957, 0.3964644968509674, 0.05465796962380409, 0.23519715666770935, -0.19434389472007751, 0.3281579315662384, 0.37417662143707275, 0.11827632039785385, -0.3072229325771332, -0.07978469878435135, 0.37005335092544556, -0.17612850666046143, 0.1467445194721222, 0.19863297045230865, 0.38179659843444824, 0.31010788679122925, 0.0776178166270256, 0.16828513145446777, -0.15363401174545288, 0.07427511364221573, -0.2141851931810379, -0.11561916768550873, 0.15105369687080383, -0.0136947613209486, 0.23545914888381958, 0.24526159465312958, -0.08995876461267471, 0.30307212471961975, 0.10315460711717606, -0.09366586059331894, -0.36187267303466797, -0.04705488309264183, 0.5336931943893433, -0.5586110353469849, 0.25973254442214966, -0.05435985326766968, -0.257538378238678, 0.015544980764389038, 0.3132823705673218, -0.07331687211990356, 0.10025717318058014, 0.056799665093421936, 0.14559069275856018, 0.28917527198791504, 0.42044582962989807, 0.3056250512599945, 0.17156517505645752, -0.2166493833065033, -0.18497785925865173, -0.2979389429092407, -0.050200775265693665, 0.10128511488437653, -0.2598639726638794, -0.07318444550037384, 0.06291098147630692, 0.2843534052371979, 0.06270286440849304, -0.0451718345284462, -0.09604920446872711, 0.0298614501953125, 0.2053638994693756, -0.3371421694755554, -0.10724888741970062, 0.24844902753829956, -0.03659437596797943, 0.01222556084394455, -0.21420805156230927, 0.04404853656888008, 0.20754456520080566, 0.10777018219232559, -0.22854873538017273, 0.04298791289329529, 0.15542946755886078, 0.22027184069156647, 0.5512216687202454, 0.11821451038122177, 0.25117993354797363, -0.29766353964805603, 0.006875328719615936, 0.08866643905639648, -0.19559547305107117, -0.3251904547214508, 0.02861339971423149, 0.06799331307411194, -0.1258864551782608, -0.2877640128135681, -0.12051932513713837, -0.07755591720342636, -0.03816758468747139, -0.102592833340168, 0.046299729496240616, -0.2272873818874359, 0.1190909668803215, 0.15258410573005676, -0.15435665845870972, -0.02588103711605072, 0.24553179740905762, 0.1390734761953354, -0.006106529384851456, -0.06633326411247253, -0.2600609064102173, 0.07030288875102997, 0.26602303981781006, -0.02640124410390854, -0.08382522314786911, 0.023969225585460663, -0.08707021921873093, 0.25277474522590637, -0.7630254030227661, -0.24114087224006653, 0.2996513545513153, -0.10825403034687042, -0.024805881083011627, 0.4120291471481323, 0.07395265996456146, -0.09513990581035614, -0.3477320969104767, 0.3045034408569336, -0.06622011959552765, -0.3062160015106201, -0.145757257938385, -0.4974689483642578 ]
https://github.com/huggingface/datasets/issues/1877
Hi @lhoestq Thanks, that sounds nice. Can you explain where the issue of the double memory may arise? Also, why is the existing `concatenate_datasets` not sufficient for this purpose?
Allow concatenation of both in-memory and on-disk datasets
This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova
29
Allow concatenation of both in-memory and on-disk datasets This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova Hi @lhoestq Thanks, that sounds nice. Can you explain where the issue of the double memory may arise? Also, why is the existing `concatenate_datasets` not sufficient for this purpose?
[ -0.3921349346637726, 0.10951589047908783, -0.010248284786939621, 0.369924396276474, 0.02555113658308983, 0.16483339667320251, -0.24442538619041443, 0.19942812621593475, -0.18210311233997345, 0.13663962483406067, 0.049568019807338715, 0.46666792035102844, 0.020092438906431198, 0.3617294430732727, 0.10921378433704376, -0.03060038387775421, 0.1604873239994049, 0.25640779733657837, -0.40172258019447327, 0.1629248559474945, -0.3001021444797516, -0.1728200912475586, -0.19168323278427124, -0.4789796471595764, -0.16164398193359375, 0.1648571789264679, -0.4099676012992859, 0.1326926052570343, -0.5053355693817139, -0.32400771975517273, -0.03371907398104668, 0.23059721291065216, 0.1441224366426468, 0.11164651811122894, -0.00011834486940642819, -0.1393061876296997, -0.0883803516626358, -0.13931217789649963, -0.498140811920166, -0.13762572407722473, -0.31535103917121887, -0.4476880431175232, 0.029385685920715332, 0.01323835551738739, 0.3109205663204193, -0.30761125683784485, 0.05272768437862396, -0.11889588087797165, -0.0023291707038879395, -0.05328778177499771, 0.10893001407384872, 0.06082727760076523, 0.284604012966156, -0.18300165235996246, 0.16516587138175964, 0.4658094346523285, -0.2200622409582138, -0.031109673902392387, 0.420627623796463, -0.195269376039505, 0.24187254905700684, -0.2360844910144806, -0.11787489056587219, -0.16339123249053955, 0.3987492024898529, 0.17273300886154175, -0.3037187159061432, -0.13140475749969482, -0.04129718616604805, 0.2176211029291153, 0.5865795016288757, -0.4311452805995941, -0.3342105746269226, -0.2628728747367859, 0.2460077404975891, -0.29543325304985046, 0.1332031488418579, 0.23578977584838867, -0.1375351846218109, 0.17322927713394165, 0.009401194751262665, -0.4855877757072449, -0.17965790629386902, 0.2952820956707001, 0.2737630009651184, 0.27595046162605286, 0.3529568910598755, 0.1340426802635193, 0.21418845653533936, 0.06204463168978691, 0.21419388055801392, -0.21299834549427032, -0.25467434525489807, 0.12833763659000397, -0.34240561723709106, -0.014057748019695282, 0.05993388593196869, -0.15005938708782196, 0.5483286380767822, 0.1297711282968521, 0.28711917996406555, -0.04485159367322922, -0.40677958726882935, 0.3076329231262207, 0.09198634326457977, 0.2553529441356659, -0.22527800500392914, 0.16369299590587616, -0.06378709524869919, -0.2130732238292694, 0.3011716604232788, -0.016345620155334473, -0.16941729187965393, -0.07306822389364243, 0.20987531542778015, -0.20319581031799316, -0.07208095490932465, 0.15672427415847778, 0.07664759457111359, -0.2511429488658905, -0.14692020416259766, -0.15243397653102875, 0.09389424324035645, -0.03793035447597504, 0.13979877531528473, 0.13314245641231537, 0.11585020273923874, 0.4211544394493103, 0.3029707372188568, -0.19892898201942444, 0.007856730371713638, 0.02764025703072548, -0.2613213062286377, 0.377964049577713, 0.35363852977752686, 0.11488857865333557, -0.19737325608730316, 0.3130429983139038, -0.007033437490463257, 0.19463282823562622, -0.0352151095867157, -0.1502508819103241, 0.3124210834503174, 0.1093137264251709, 0.056311577558517456, -0.4541546106338501, -0.03550933301448822, -0.023320570588111877, -0.2534182071685791, 0.6008576154708862, -0.1377720981836319, -0.32318970561027527, -0.5031116008758545, 0.046937938779592514, -0.06691177934408188, -0.02370881289243698, -0.24712546169757843, 0.5314823389053345, 0.3372124433517456, -0.23833467066287994, 0.06113436818122864, 0.1914602816104889, -0.1751527339220047, -0.48462891578674316, 0.22170490026474, 0.3638976216316223, -0.46084368228912354, 0.08129636943340302, 0.010625407099723816, 0.0284840390086174, 0.09679977595806122, 0.1960921287536621, -0.31607383489608765, -0.02233397215604782, -0.42538982629776, 0.21733081340789795, 0.251407653093338, -0.029114805161952972, -0.08643123507499695, -0.0521700456738472, -0.1582202911376953, 0.019421324133872986, 0.5092135071754456, 0.41118982434272766, 0.05389523133635521, 0.13725239038467407, 0.4314589202404022, 0.2517196536064148, -0.18659615516662598, -0.28322455286979675, -0.08065634965896606, -0.5113967657089233, 0.417563259601593, -0.10912704467773438, -0.11199904978275299, 0.14176124334335327, 0.1748514026403427, -0.5082263946533203, 0.2905801832675934, -0.19335046410560608, 0.274151086807251, -0.14444999396800995, 0.39216887950897217, -0.03643566370010376, -0.15897898375988007, -0.15892654657363892, -0.5136507749557495, 0.16155840456485748, -0.17981484532356262, 0.14873911440372467, -0.1148834228515625, -0.23642587661743164, 0.28443643450737, 0.06676481664180756, 0.04821493476629257, 0.13004769384860992, 0.03890303522348404, 0.07842181622982025, 0.014998644590377808, -0.3527719974517822, -0.21172448992729187, 0.22603751718997955, 0.1711198091506958, -0.00629846379160881, -0.18639077246189117, 0.35052621364593506, 0.0912904366850853, -0.06371044367551804, -0.07933428138494492, 0.20125864446163177, 0.011802463792264462, 0.23666790127754211, 0.06258367002010345, 0.4659430682659149, -0.1970270723104477, 0.03142470121383667, 0.17696213722229004, 0.3687470555305481, 0.14202313125133514, 0.25432389974594116, 0.0953698605298996, -0.5583906173706055, 0.16449850797653198, -0.26255857944488525, -0.058306366205215454, 0.23229697346687317, 0.03019484132528305, 0.13466131687164307, 0.05429072678089142, -0.11795490235090256, 0.08828593045473099, -0.02188936620950699, -0.09290924668312073, -0.2552780508995056, 0.009187214076519012, 0.2155606895685196, -0.012844257056713104, 0.3394588232040405, -0.5138892531394958, 0.10451710224151611, 0.14179228246212006, 0.08013802021741867, 0.14949597418308258, 0.18468639254570007, -0.09753115475177765, -0.24992376565933228, 0.011041255667805672, 0.1050739586353302, 0.7278344631195068, 0.33273622393608093, -0.02707500383257866, 0.024018870666623116, -0.02324165590107441, -0.1357816755771637, 0.24605099856853485, -0.05235493555665016, 0.22596058249473572, 0.32712259888648987, 0.5175660848617554, 0.09787068516016006, -0.023126646876335144, 0.03573697805404663, 0.28086453676223755, -0.09252264350652695, -0.11624501645565033, -0.29905080795288086, -0.4070841670036316, -0.03618554025888443, -0.2963103950023651, -0.2642367482185364, -0.18627974390983582, -0.031216226518154144, 0.13880659639835358, 0.3211250603199005, -0.0032380148768424988, 0.07470694184303284, 0.10116506367921829, 0.5987221002578735, -0.3522723615169525, -0.4385087192058563, -0.032609082758426666, 0.055064957588911057, 0.057130299508571625, 0.02506203204393387, 0.40783971548080444, -0.13613127171993256, 0.4487455189228058, 0.4095325171947479, -0.1099671870470047, -0.3639456033706665, -0.34955376386642456, 0.044286590069532394, 0.0677514597773552, 0.05739915370941162, 0.08721645176410675, -0.14168143272399902, 0.18947426974773407, -0.47997623682022095, 0.07160434126853943, 0.4400593638420105, -0.22526198625564575, 0.2626764178276062, 0.04693753272294998, -0.17531991004943848, -0.3075057864189148, -0.15438616275787354, -0.1920006424188614, -0.45144641399383545, 0.4154672920703888, -0.12360367923974991, 0.06988812983036041, 0.07753458619117737, 0.19501839578151703, -0.328870952129364, 0.1795969009399414, 0.17671631276607513, -0.203575998544693, -0.15300121903419495, 0.3337668180465698, -0.11422973871231079, 0.0010317889973521233, -0.13479803502559662, -0.13967005908489227, 0.1908709853887558, 0.45439383387565613, -0.19554495811462402, -0.15921220183372498, -0.0649239644408226, 0.32990437746047974, -0.20980873703956604, 0.10748927295207977, 0.6054482460021973, 0.4714117646217346, -0.05912812054157257, -0.0853748768568039, -0.20511502027511597, 0.2540464401245117, 0.2081804871559143, 0.1479588896036148, 0.13041111826896667, -0.19378285109996796, 0.011078886687755585, 0.24956348538398743, 0.08447284996509552, 0.15324833989143372, 0.46001559495925903, 0.05204572528600693, 0.3349919319152832, -0.2104029357433319, -0.14201948046684265, -0.2575082778930664, -0.3768162429332733, -0.08431743085384369, -0.11518922448158264, 0.000957190990447998, -0.21539174020290375, -0.10091415792703629, 0.30795353651046753, -0.17862841486930847, -0.2124468982219696, 0.3111818730831146, -0.2671620845794678, 0.31040889024734497, 0.005929276347160339, -0.4796599745750427, -0.32523900270462036, 0.08197474479675293, -0.12272369861602783, 0.18709401786327362, 0.12710760533809662, -0.16758772730827332, -0.31696203351020813, -0.412825345993042, -0.3264818787574768, 0.08292859047651291, 0.17369700968265533, 0.29876548051834106, 0.15199217200279236, -0.2542050778865814, -0.07982493937015533, 0.017268478870391846, 0.8591116666793823, 0.06383679807186127, -0.5751930475234985, 0.07380985468626022, 0.09647230803966522, 0.23532477021217346, 0.009988486766815186, 0.21782562136650085, 0.1040724664926529, -0.21289652585983276, 0.24910730123519897, -0.34208858013153076, 0.1586683988571167, 0.1269882321357727, 0.4117613732814789, 0.014396317303180695, -0.3251318037509918, -0.035756126046180725, 0.10819754004478455, -0.3782026469707489, -0.5106707215309143, 0.11495048552751541, 0.21766559779644012, 0.06960881501436234, -0.014938943088054657, -0.2205716222524643, -0.023857474327087402, 0.1370723992586136, -0.18355655670166016, 0.3332090973854065, 0.0676087737083435, 0.4472169280052185, -0.28353309631347656, -0.12215323001146317, 0.8011993765830994, 0.651925265789032, -0.20678022503852844, -0.27655255794525146, -0.06350823491811752, -0.18255093693733215, 0.35427427291870117, 0.05337759479880333, 0.08872492611408234, 0.49148276448249817, -0.0025872420519590378, 0.0044300369918346405, -0.49806129932403564, -0.12644493579864502, -0.09183228015899658, -0.17533963918685913, -0.40023812651634216, -0.36676377058029175, 0.45652008056640625, 0.22838979959487915, -0.17061257362365723, 0.5208798050880432, 0.05235416069626808, -0.4474896192550659, 0.19559341669082642, 0.021455815061926842, 1.2458555698394775, 0.10815845429897308, 0.3011712431907654, 0.029330719262361526, -0.3577950894832611, 0.09469304978847504, -0.09799937158823013, 0.3106341063976288, -0.12650756537914276, -0.0006993301212787628, -0.09107047319412231, -0.2204679548740387, -0.02758907899260521, -0.018845630809664726, -0.5232799649238586, -0.09672731161117554, -0.08388793468475342, -0.1347821056842804, 0.028535038232803345, 0.21047747135162354, -0.2344263345003128, -0.3641817569732666, 0.21929320693016052, -0.008028212934732437, 0.09284049272537231, -0.4051954448223114, -0.13357830047607422, -0.16859742999076843, -0.13122616708278656, 0.04066687822341919, -0.43894484639167786, -0.15739277005195618, -0.27079468965530396, 0.2892293930053711, -0.014348406344652176, -0.1908157914876938, 0.05056871473789215, 0.05981677770614624, -0.046405721455812454, 0.06650426983833313, -0.07513335347175598, -0.15135537087917328, 0.11288819462060928, -0.03220734745264053, -0.23151332139968872, -0.48155122995376587, 0.4041178822517395, 0.13104824721813202, -0.22636280953884125, -0.03568336367607117, -0.09523811936378479, -0.3578648567199707, -0.21718770265579224, -0.010571110993623734, 0.25721797347068787, -0.14867886900901794, -0.3082501292228699, 0.4176056385040283, 0.1546211838722229, -0.24156616628170013, 0.04565969854593277, 0.3068845868110657, -0.10143781453371048, 0.09888827800750732, -0.16347165405750275, -0.018457122147083282, -0.1666097342967987, 0.1040518656373024, 0.3685367703437805, 0.0014768317341804504, 0.1319413185119629, 0.036278627812862396, 0.04892520606517792, -0.014458119869232178, 0.015518754720687866, 0.1414501667022705, -0.1418103724718094, -0.032754138112068176, 0.16462013125419617, -0.10744829475879669, -0.11313679814338684, 0.17440474033355713, 0.3290685713291168, 0.44238564372062683, 0.032008640468120575, -0.2129260003566742, -0.4008009135723114, 0.3655235171318054, 0.05456697195768356, 0.3841342031955719, 0.018772833049297333, 0.2157425433397293, -0.10203681886196136, 0.4042101800441742, -0.23564112186431885, -0.12410436570644379, 0.003958873450756073, 0.08715324103832245, 0.04893846809864044, 0.18953360617160797, -0.15278832614421844, -0.15346847474575043, -0.02073085866868496, 0.0457589291036129, -0.004832353442907333, -0.07427376508712769, 0.033328644931316376, 0.17106400430202484, 0.2575356364250183, 0.15276309847831726, -0.2190360277891159, -0.4636068344116211, 0.0118618905544281, -0.23582229018211365, 0.02219308912754059, 0.10750625282526016, -0.28099095821380615, -0.0037314705550670624, 0.37359699606895447, 0.02674972452223301, -0.16588759422302246, 0.3852539360523224, 0.1266215294599533, 0.16245511174201965, -0.030215544626116753, 0.26134851574897766, -0.31787073612213135, 0.007367938756942749, -0.24476668238639832, 0.3067190945148468, 0.1848439872264862, -0.08018945157527924, 0.011220365762710571, 0.2754109501838684, -0.25066429376602173, -0.1051609069108963, 0.1765163093805313, 0.22801755368709564, 0.08467430621385574, 0.2848002314567566, 0.20592495799064636, 0.1205366998910904, -0.3507792055606842, -0.23502027988433838, -0.31039413809776306, -0.20132586359977722, 0.12005116045475006, 0.29384922981262207, 0.14295531809329987, 0.06841714680194855, -0.29921936988830566, 0.04435397684574127, 0.05600246787071228, 0.00717470608651638, 0.12381719052791595, -0.014543641358613968, -0.054944347590208054, -0.01235717348754406, -0.03646869212388992, 0.2724400758743286, 0.1355476975440979, 0.048249501734972, -0.052310965955257416, 0.460527241230011, 0.3122771978378296, -0.19312001764774323, 0.16696734726428986, -0.007745817303657532, 0.20879241824150085, 0.39160674810409546, 0.24933472275733948, -0.010412875562906265, 0.20955127477645874, 0.39269137382507324, -0.013543466106057167, -0.2855474650859833, 0.234878808259964, 0.13657456636428833, 0.033778734505176544, 0.02794487774372101, 0.024490781128406525, -0.3163833022117615, -0.276023268699646, -0.13362805545330048, 0.17612186074256897, -0.229682058095932, 0.5138267874717712, -0.08574429154396057, 0.07369740307331085, -0.20916500687599182, 0.3786335587501526, 0.6538559198379517, -0.03430546820163727, -0.4184263348579407, -0.09950041025876999, 0.36988919973373413, -0.36357051134109497, 0.10046412795782089, 0.27818048000335693, 0.5315655469894409, 0.3679247498512268, 0.21715034544467926, 0.07279184460639954, -0.11317874491214752, 0.05527866631746292, -0.1523781716823578, -0.1277516484260559, 0.26009631156921387, -0.016548244282603264, 0.09024162590503693, 0.1100357174873352, 0.021405894309282303, 0.299789160490036, 0.12680813670158386, 0.05096598342061043, -0.5596283674240112, -0.049735333770513535, 0.3546368181705475, -0.505017101764679, 0.32005321979522705, 0.07051044702529907, -0.2276429533958435, -0.003228861838579178, 0.36985623836517334, -0.04681306332349777, -0.011468157172203064, 0.07743357867002487, 0.04237106442451477, 0.35192349553108215, 0.18423300981521606, 0.39056816697120667, 0.10137423872947693, -0.3784218430519104, -0.3028891682624817, -0.37004125118255615, -0.08036486059427261, 0.027321437373757362, -0.2456848919391632, -0.08071787655353546, 0.16973479092121124, 0.26871728897094727, 0.06722529977560043, 0.047957174479961395, -0.07008066773414612, -0.04117266461253166, 0.2574211657047272, -0.27033206820487976, -0.10603468120098114, 0.3794723451137543, -0.06138220429420471, 0.011730402708053589, -0.2595917582511902, 0.07688792049884796, 0.17213287949562073, -0.03743322566151619, -0.3302074074745178, 0.12321409583091736, 0.24279366433620453, 0.3225727677345276, 0.5413458347320557, 0.20772810280323029, 0.25308957695961, -0.2301815003156662, -0.033540792763233185, 0.008099897764623165, -0.1351272463798523, -0.3178330063819885, 0.10357058048248291, -0.010634027421474457, -0.05775049328804016, -0.6203403472900391, -0.06521470844745636, -0.05864205211400986, -0.03441137447953224, -0.191442608833313, 0.005081977695226669, -0.3712553381919861, 0.14789476990699768, 0.09113959223031998, 0.02034236118197441, 0.02944624423980713, 0.2493439018726349, 0.14523404836654663, 0.13933917880058289, -0.04697507619857788, -0.22072230279445648, -0.005985185503959656, 0.3501098155975342, -0.07423312962055206, -0.11084368824958801, -0.0415947362780571, -0.17681744694709778, 0.23300327360630035, -0.8800827264785767, -0.32289034128189087, 0.2580397129058838, 0.03180232644081116, 0.013090960681438446, 0.5286701321601868, -0.02963397465646267, -0.11145012080669403, -0.25620606541633606, 0.3106476366519928, -0.18903285264968872, -0.3711297810077667, -0.009360283613204956, -0.41927453875541687 ]
https://github.com/huggingface/datasets/issues/1877
Hi @lhoestq, Will the `add_item` feature also help with lazy writing (or no caching) during `map`/`filter`?
Allow concatenation of both in-memory and on-disk datasets
This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova
16
Allow concatenation of both in-memory and on-disk datasets This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova Hi @lhoestq, Will the `add_item` feature also help with lazy writing (or no caching) during `map`/`filter`?
[ -0.47655874490737915, 0.06083659827709198, -0.07072305679321289, 0.052182652056217194, 0.07561103999614716, 0.015053540468215942, -0.22261087596416473, 0.3435710370540619, 0.07333220541477203, 0.08777456730604172, 0.02977297455072403, 0.6137644052505493, -0.01331658847630024, 0.4729112386703491, 0.11561079323291779, 0.021717729046940804, 0.13115601241588593, 0.2873374819755554, -0.4156748354434967, 0.15891417860984802, -0.24204617738723755, -0.22658021748065948, -0.059283338487148285, -0.43083059787750244, -0.004040151834487915, 0.022198451682925224, -0.23483259975910187, 0.04605165868997574, -0.40151089429855347, -0.3713642358779907, 0.005182512104511261, 0.39030638337135315, 0.07152523845434189, 0.004582352936267853, -0.00010911165736615658, -0.096132293343544, -0.021399397403001785, -0.1660829782485962, -0.45417851209640503, -0.17322739958763123, -0.3239762485027313, -0.3942294120788574, 0.0978122130036354, -0.056411467492580414, 0.21986597776412964, -0.19391314685344696, 0.124648317694664, -0.0921972468495369, 0.05108555033802986, -0.0005945637822151184, 0.17703616619110107, 0.16824689507484436, 0.17921395599842072, -0.06440214067697525, 0.25135743618011475, 0.47723469138145447, -0.20691531896591187, -0.016978871077299118, 0.5437411069869995, -0.2866382598876953, 0.0655304566025734, -0.049858786165714264, -0.16941991448402405, -0.13453754782676697, 0.5407470464706421, 0.15667536854743958, -0.09440530091524124, -0.3209826946258545, -0.057386595755815506, 0.21756267547607422, 0.4746558666229248, -0.4267604351043701, -0.43926453590393066, -0.2462811917066574, 0.10492180287837982, -0.18874408304691315, 0.09643276780843735, 0.23612897098064423, -0.13940966129302979, 0.21273091435432434, -0.07622981071472168, -0.342305451631546, -0.18457651138305664, 0.2520515024662018, 0.32937341928482056, 0.32100948691368103, 0.33766013383865356, 0.015240979380905628, 0.15980523824691772, 0.0632549449801445, 0.2139873057603836, -0.30322030186653137, -0.22173014283180237, 0.17270399630069733, -0.28102463483810425, -0.08713990449905396, 0.09193213284015656, 0.06228218600153923, 0.4882813096046448, 0.0839880108833313, 0.38568562269210815, 0.1145872101187706, -0.25565457344055176, 0.39954042434692383, 0.10652066767215729, 0.049227274954319, -0.18603989481925964, 0.10750377178192139, 0.03879896178841591, -0.27146780490875244, 0.11367842555046082, -0.0038703163154423237, 0.032755911350250244, 0.06636448204517365, 0.13179489970207214, -0.21026012301445007, -0.1473454236984253, 0.12614375352859497, 0.17377570271492004, -0.29884833097457886, -0.10081366449594498, -0.14597640931606293, 0.044921670109033585, 0.05152500420808792, 0.1264670193195343, 0.018710438162088394, 0.043586134910583496, 0.23911981284618378, 0.30441707372665405, -0.05005907639861107, 0.055026862770318985, -0.15327952802181244, -0.18854859471321106, 0.3325956463813782, 0.30765199661254883, -0.03854881972074509, -0.15320278704166412, 0.23416052758693695, -0.06606194376945496, 0.23040197789669037, 0.1649901270866394, -0.1683603972196579, 0.44433626532554626, 0.23024442791938782, 0.00972902774810791, -0.47237399220466614, -0.04648483172059059, -0.07526712864637375, -0.3994234502315521, 0.4876352548599243, -0.17242422699928284, -0.31167933344841003, -0.2956553101539612, 0.1612207293510437, -0.014045804738998413, -0.08260826766490936, -0.11363112181425095, 0.5499395728111267, 0.14948099851608276, -0.4128618836402893, 0.07741621136665344, 0.1391512155532837, -0.2023867964744568, -0.44821614027023315, 0.16398075222969055, 0.2338346242904663, -0.5422616600990295, -0.011707276105880737, -0.01565280184149742, -0.01103264931589365, 0.02000994235277176, 0.16579680144786835, -0.36225730180740356, 0.042836014181375504, -0.3063446283340454, 0.2600964903831482, 0.34956538677215576, -0.00530107319355011, -0.21790796518325806, 0.08796915411949158, -0.11913234740495682, 0.041228145360946655, 0.43869251012802124, 0.4519634246826172, 0.2561972439289093, 0.075478196144104, 0.41153407096862793, 0.38714390993118286, -0.2556596100330353, -0.12367319315671921, -0.07143501192331314, -0.3956528604030609, 0.3593599796295166, -0.054935723543167114, -0.2022871971130371, 0.19581595063209534, 0.23726893961429596, -0.6348540186882019, 0.16018551588058472, -0.2363997995853424, 0.2605080306529999, -0.13729822635650635, 0.5229121446609497, -0.01879490166902542, -0.13512203097343445, -0.14989040791988373, -0.47684723138809204, 0.05317535996437073, -0.21359170973300934, 0.061837729066610336, -0.23447227478027344, -0.3581312298774719, 0.2459333837032318, 0.11080988496541977, 0.052003223448991776, 0.1000969335436821, 0.13294729590415955, -0.03398773819208145, 0.011284500360488892, -0.3725009262561798, -0.20472058653831482, 0.1839381456375122, 0.1429634839296341, -0.0163461621850729, -0.08286041021347046, 0.3200974762439728, -0.0363277792930603, -0.13255608081817627, -0.043001897633075714, 0.16162708401679993, -0.07013911008834839, 0.16925248503684998, 0.09126180410385132, 0.3741362690925598, -0.2031276822090149, 0.17506363987922668, 0.18509790301322937, 0.4629645347595215, 0.2235044687986374, 0.2856939435005188, 0.059316180646419525, -0.41909345984458923, 0.19839508831501007, -0.2558090388774872, -0.23481778800487518, 0.38362741470336914, 0.046126384288072586, 0.18756505846977234, 0.1859802007675171, -0.0598323717713356, 0.22704708576202393, -0.024106323719024658, -0.1483357846736908, -0.23533755540847778, -0.03434044495224953, 0.13700935244560242, 0.0364803820848465, 0.36312246322631836, -0.31831812858581543, 0.23738840222358704, 0.21400386095046997, 0.02344077080488205, 0.1837715208530426, 0.2534230053424835, -0.08681602776050568, -0.309496134519577, 0.09387512505054474, 0.16048163175582886, 0.5992064476013184, 0.4242343008518219, -0.08783610910177231, -0.04887775331735611, 0.03942258656024933, -0.09144622087478638, 0.260640025138855, 0.04242381453514099, 0.1299591362476349, 0.33582764863967896, 0.5084384083747864, 0.15659037232398987, -0.10969728231430054, -0.11889249831438065, 0.18213817477226257, -0.19320592284202576, -0.05492950603365898, -0.18518346548080444, -0.26118171215057373, -0.0383877269923687, -0.18162545561790466, -0.16572105884552002, -0.20758503675460815, -0.09772130846977234, 0.22188834846019745, 0.33315300941467285, -0.18465875089168549, 0.13727474212646484, 0.14847654104232788, 0.6496678590774536, -0.2763093113899231, -0.4283187687397003, -0.18052208423614502, -0.17434477806091309, 0.18533316254615784, 0.061453282833099365, 0.3481796085834503, -0.04591222479939461, 0.49732276797294617, 0.42005863785743713, -0.08731304109096527, -0.36592477560043335, -0.4064375162124634, 0.06588011980056763, 0.005184981040656567, 0.10793951898813248, 0.08277781307697296, -0.04977201670408249, 0.12897953391075134, -0.5469332933425903, 0.08835317939519882, 0.24715262651443481, -0.3253920376300812, 0.17058828473091125, 0.06241361424326897, -0.13777457177639008, -0.36014342308044434, -0.14906875789165497, -0.26218387484550476, -0.5986359715461731, 0.4414024353027344, -0.14847686886787415, 0.18003177642822266, 0.024965353310108185, 0.19665087759494781, -0.40812939405441284, 0.021418411284685135, 0.20139357447624207, -0.1242208257317543, -0.17945265769958496, 0.25236400961875916, -0.15564410388469696, -0.07871019840240479, -0.1698460876941681, -0.20051833987236023, 0.057769015431404114, 0.5631290674209595, -0.1712462306022644, -0.20787641406059265, -0.057883121073246, 0.4450133442878723, -0.07479412853717804, 0.014164073392748833, 0.5879989266395569, 0.5294588804244995, -0.1370871663093567, -0.1355694979429245, -0.12351691722869873, 0.14810773730278015, 0.2665315866470337, -0.03761298954486847, 0.17004790902137756, -0.06978826969861984, -0.10927097499370575, 0.34244316816329956, -0.005506746470928192, 0.0933605283498764, 0.43744364380836487, 0.15269853174686432, 0.33452123403549194, -0.26672932505607605, -0.0711631327867508, -0.23119127750396729, -0.4024601876735687, -0.051033832132816315, 0.03863394260406494, 0.004527393728494644, -0.34200555086135864, -0.05549883097410202, 0.22500298917293549, -0.19479501247406006, -0.20884311199188232, 0.3794305622577667, -0.1374756097793579, 0.38020753860473633, -0.016842082142829895, -0.4671306312084198, -0.38673993945121765, 0.09673742949962616, -0.030053766444325447, 0.11415202170610428, 0.2807098925113678, -0.22347654402256012, -0.4105629622936249, -0.3334210216999054, -0.410383939743042, 0.09404698759317398, 0.23438380658626556, 0.17937269806861877, 0.07724381983280182, -0.32878607511520386, -0.10844866931438446, 0.024927686899900436, 0.7993980646133423, -0.11907011270523071, -0.4681963324546814, 0.022250622510910034, -0.02701834961771965, 0.2350580096244812, 0.10830827802419662, 0.15147343277931213, 0.10054174810647964, -0.04706544429063797, 0.3932628333568573, -0.22279131412506104, 0.10736171901226044, -0.0357360765337944, 0.25485894083976746, 0.04430520534515381, -0.2726074159145355, 0.07771214842796326, 0.07559587061405182, -0.4649638533592224, -0.47879260778427124, 0.07301956415176392, 0.13879290223121643, 0.1561545878648758, -0.12378676235675812, -0.162347674369812, -0.0037988796830177307, 0.06452994793653488, -0.0983879342675209, 0.23716729879379272, 0.014607489109039307, 0.34094157814979553, -0.24110688269138336, -0.026685170829296112, 0.641210675239563, 0.4557235836982727, -0.3451504111289978, -0.17044243216514587, -0.12502890825271606, -0.20657449960708618, 0.32526275515556335, 0.03641977161169052, 0.1780778020620346, 0.5699095726013184, 0.04099542275071144, 0.012361656874418259, -0.5910296440124512, -0.17122921347618103, -0.14874976873397827, -0.09981192648410797, -0.36362019181251526, -0.327971875667572, 0.4662221670150757, 0.27144646644592285, -0.23811422288417816, 0.4522879719734192, -0.10009337961673737, -0.4977031946182251, 0.43675607442855835, 0.0994015783071518, 1.1413235664367676, 0.13559594750404358, 0.3166121244430542, -0.15568411350250244, -0.2941758930683136, 0.03387919068336487, -0.15636380016803741, 0.34432175755500793, -0.08297553658485413, -0.16099753975868225, -0.14843815565109253, -0.19369624555110931, -0.0601998046040535, -0.007158542983233929, -0.5996422171592712, -0.09957660734653473, 0.018961846828460693, 0.05496228113770485, 0.05028481036424637, 0.19508495926856995, -0.24052228033542633, -0.4536108076572418, -0.044433921575546265, 0.04308578372001648, 0.10182419419288635, -0.3034266233444214, -0.0788564532995224, -0.2548258602619171, -0.0428847037255764, 0.09727390855550766, -0.2213403880596161, -0.24444398283958435, -0.26680275797843933, 0.2151145488023758, 0.006361429579555988, -0.13171915709972382, -0.009541846811771393, -0.023792237043380737, -0.179258331656456, 0.09703889489173889, -0.10276222229003906, -0.12212853133678436, 0.20269061625003815, 0.09861072152853012, -0.13886603713035583, -0.38986140489578247, 0.4284772276878357, 0.126614511013031, -0.03805248439311981, -0.017451133579015732, -0.16614067554473877, -0.4061591327190399, -0.13455387949943542, -0.03375210613012314, 0.2091446816921234, -0.11844383180141449, -0.2625834047794342, 0.30845052003860474, -0.07823104411363602, -0.23052656650543213, 0.12012724578380585, 0.11151252686977386, -0.09794816374778748, 0.2626577913761139, -0.017436007037758827, -0.002779155969619751, -0.16984839737415314, 0.09509162604808807, 0.2190244495868683, 0.10562099516391754, 0.11439960449934006, -0.04666886106133461, -0.09045625478029251, -0.18043240904808044, -0.0006057471036911011, 0.0840085819363594, -0.0884600281715393, 0.05427774041891098, 0.12762372195720673, -0.27295565605163574, -0.07768064737319946, 0.22298981249332428, 0.32300296425819397, 0.430000901222229, -0.19420766830444336, -0.2773548364639282, -0.428699791431427, 0.3560609817504883, 0.08431309461593628, 0.35982951521873474, 0.04274459183216095, 0.10247522592544556, -0.15215206146240234, 0.4299740195274353, -0.35991817712783813, -0.24980488419532776, -0.06240885704755783, 0.18293657898902893, 0.038930896669626236, 0.12689077854156494, -0.12386007606983185, -0.14204005897045135, 0.04215835779905319, 0.14086316525936127, -0.07297918200492859, -0.19766725599765778, 0.09484408050775528, 0.14184507727622986, 0.1906210482120514, 0.10014782845973969, -0.22569392621517181, -0.3016277849674225, -0.057575538754463196, -0.3511755168437958, 0.10351385176181793, -0.009298712015151978, -0.31258878111839294, -0.1604619324207306, 0.3754342794418335, 0.04103385657072067, -0.1293419450521469, 0.36950239539146423, 0.0883188396692276, 0.03557083010673523, -0.08480162918567657, 0.15095019340515137, -0.4421798586845398, -0.020039908587932587, -0.0005445033311843872, 0.3523770868778229, 0.1863221526145935, -0.016408925876021385, 0.29331398010253906, 0.39914605021476746, -0.2534354627132416, 0.008806541562080383, 0.2165989875793457, 0.11703205853700638, 0.07145026326179504, 0.2712441086769104, 0.20005594193935394, 0.2315378487110138, -0.36835888028144836, -0.32346248626708984, -0.12289044260978699, -0.2538641095161438, 0.28985723853111267, 0.1271500289440155, 0.16769284009933472, 0.0901789665222168, -0.19462279975414276, 0.12692680954933167, 0.0460953488945961, -0.047163158655166626, 0.13553330302238464, 0.07829128950834274, 0.13670942187309265, -0.001041444018483162, 0.09036235511302948, 0.2777531147003174, 0.1658722311258316, 0.007818583399057388, -0.056872960180044174, 0.4941707253456116, 0.3845895826816559, -0.09483417868614197, 0.2010030746459961, -0.03060951456427574, 0.26375970244407654, 0.28598538041114807, 0.28091976046562195, 0.17006228864192963, 0.27510687708854675, 0.17011626064777374, -0.08396059274673462, -0.37152695655822754, 0.2919420003890991, 0.14124596118927002, 0.018765144050121307, -0.0283157080411911, -0.11856596916913986, -0.24503862857818604, -0.1537511795759201, -0.14274057745933533, 0.15373535454273224, -0.18435294926166534, 0.5169634819030762, 0.013369005173444748, 0.3105067014694214, -0.16223421692848206, 0.3076370060443878, 0.38234028220176697, 0.1365792155265808, -0.3617660105228424, -0.09999662637710571, 0.15552332997322083, -0.23776382207870483, 0.1416989117860794, 0.16836653649806976, 0.45714253187179565, 0.4111610949039459, 0.08019179105758667, 0.17015841603279114, -0.1596924364566803, -0.008672159165143967, -0.18715804815292358, -0.055956318974494934, 0.2579290270805359, -0.05388491600751877, 0.14396701753139496, 0.1886514127254486, -0.03233249858021736, 0.2839420735836029, 0.05605359002947807, -0.027647456154227257, -0.3535074293613434, -0.06045813113451004, 0.5578275918960571, -0.5780315399169922, 0.30115383863449097, -0.03721952810883522, -0.15265943109989166, -0.020611194893717766, 0.41340014338493347, -0.1001085638999939, 0.0743933767080307, 0.0755792036652565, 0.09574568271636963, 0.285855233669281, 0.3127806782722473, 0.34366029500961304, 0.11757852882146835, -0.3295322060585022, -0.18209820985794067, -0.2553744912147522, -0.19384320080280304, 0.07492554187774658, -0.1611100435256958, 0.0014269724488258362, 0.07888644933700562, 0.3104851245880127, 0.11000774055719376, -0.054292112588882446, -0.24078047275543213, -0.007310055196285248, 0.14591702818870544, -0.29633718729019165, -0.08069927990436554, 0.2281942218542099, -0.06634760648012161, 0.027535513043403625, -0.27747997641563416, 0.09432879835367203, 0.17220665514469147, 0.08372994512319565, -0.31410500407218933, 0.016698002815246582, 0.1884004771709442, 0.18182611465454102, 0.41901659965515137, 0.14789754152297974, 0.22409537434577942, -0.2689061760902405, 0.07225190103054047, 0.1609320044517517, -0.20327992737293243, -0.31942498683929443, 0.0030533261597156525, 0.018707403913140297, -0.04670348018407822, -0.5168744325637817, -0.1386772096157074, -0.1059468537569046, 0.014149326831102371, -0.169720858335495, -0.04437730088829994, -0.2834773063659668, 0.07582897692918777, 0.07133710384368896, -0.07432020455598831, -0.053540896624326706, 0.2164406031370163, 0.1623058021068573, 0.02186030149459839, -0.04759744554758072, -0.2136845588684082, 0.06840881705284119, 0.17410804331302643, -0.06408592313528061, -0.09767422825098038, -0.06480610370635986, -0.11477628350257874, 0.3184700310230255, -0.734416663646698, -0.30510464310646057, 0.2667626738548279, -0.12066909670829773, 0.04485192894935608, 0.47886309027671814, 0.044467490166425705, 0.03319637477397919, -0.35382217168807983, 0.23308256268501282, -0.10906851291656494, -0.31294992566108704, -0.1438242793083191, -0.5232964158058167 ]
https://github.com/huggingface/datasets/issues/1877
> Can you explain where the issue of the double memory may arise? We have to keep each block (in-memory vs memory mapped) separated in order to be able to reload them with pickle. On the other hand we also need to have the full table from mixed in-memory and memory mapped data in order to iterate or extract data conveniently. That means that each block is accessible twice: once in the full table, and once in the separated blocks. But since pyarrow tables concatenation doesn't double the memory, then building the full table doesn't cost memory which is what we want :) > Also, why is the existing concatenate_datasets not sufficient for this purpose? The existing `concatenate_datasets` doesn't support having both in-memory and memory mapped data together (there's no fancy block separation logic). It works for datasets fully in-memory or fully memory mapped but not a mix of the two. > Will the add_item feature also help with lazy writing (or no caching) during map/filter? It will enable the implementation of the fast, masked filter from this discussion: https://github.com/huggingface/datasets/issues/1949 However I don't think this will affect map.
Allow concatenation of both in-memory and on-disk datasets
This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova
188
Allow concatenation of both in-memory and on-disk datasets This is a prerequisite for the addition of the `add_item` feature (see #1870). Currently there is one assumption that we would need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling Maybe let's have a design that allows a Dataset to have a Table that can be rebuilt from heterogenous sources like in-memory tables or on-disk tables ? This could also be further extended in the future One idea would be to define a list of sources and each source implements a way to reload its corresponding pyarrow Table. Then the dataset would be the concatenation of all these tables. Depending on the source type, the serialization using pickle would be different. In-memory data would be copied while on-disk data would simply be replaced by the path to these data. If you have some ideas you would like to share about the design/API feel free to do so :) cc @albertvillanova > Can you explain where the issue of the double memory may arise? We have to keep each block (in-memory vs memory mapped) separated in order to be able to reload them with pickle. On the other hand we also need to have the full table from mixed in-memory and memory mapped data in order to iterate or extract data conveniently. That means that each block is accessible twice: once in the full table, and once in the separated blocks. But since pyarrow tables concatenation doesn't double the memory, then building the full table doesn't cost memory which is what we want :) > Also, why is the existing concatenate_datasets not sufficient for this purpose? The existing `concatenate_datasets` doesn't support having both in-memory and memory mapped data together (there's no fancy block separation logic). It works for datasets fully in-memory or fully memory mapped but not a mix of the two. > Will the add_item feature also help with lazy writing (or no caching) during map/filter? It will enable the implementation of the fast, masked filter from this discussion: https://github.com/huggingface/datasets/issues/1949 However I don't think this will affect map.
[ -0.4205480217933655, 0.11777955293655396, -0.013511057943105698, 0.282938152551651, 0.07213005423545837, 0.09398015588521957, -0.14943663775920868, 0.2320159524679184, -0.1620396077632904, 0.1522655189037323, 0.020632945001125336, 0.5102050304412842, -0.024801410734653473, 0.35775241255760193, 0.15373986959457397, -0.03334304690361023, 0.15330564975738525, 0.24076201021671295, -0.43251678347587585, 0.20232853293418884, -0.2718374729156494, -0.23229598999023438, -0.12112236022949219, -0.44071176648139954, -0.1328163594007492, 0.1058933362364769, -0.37018516659736633, 0.08505427837371826, -0.4612610638141632, -0.4172987937927246, 0.02725376933813095, 0.23925037682056427, 0.14753536880016327, 0.020442422479391098, -0.000114360787847545, -0.030489414930343628, -0.09080411493778229, -0.14320896565914154, -0.49313366413116455, -0.14409920573234558, -0.30298006534576416, -0.4612712264060974, -0.0014705024659633636, -0.035922035574913025, 0.28394055366516113, -0.34978482127189636, 0.07045678049325943, 0.003782324492931366, -0.00046889856457710266, -0.06905755400657654, 0.12820148468017578, 0.08326348662376404, 0.2490190863609314, -0.15358373522758484, 0.2830587327480316, 0.41800737380981445, -0.2433203160762787, 0.05457979813218117, 0.48371055722236633, -0.22978034615516663, 0.16046898066997528, -0.1855498105287552, -0.11145061254501343, -0.12645341455936432, 0.31675881147384644, 0.26401597261428833, -0.2564168870449066, -0.15046370029449463, -0.0628415197134018, 0.2610204517841339, 0.48423489928245544, -0.4602855443954468, -0.3712320029735565, -0.3262188136577606, 0.1695736199617386, -0.29652106761932373, 0.14170309901237488, 0.28971123695373535, -0.12469887733459473, 0.18155744671821594, -0.0053671300411224365, -0.3174613118171692, -0.16144882142543793, 0.2725507616996765, 0.2950289249420166, 0.26839640736579895, 0.36639055609703064, 0.14526470005512238, 0.2541911005973816, 0.057360585778951645, 0.2632887363433838, -0.16957888007164001, -0.2025771141052246, 0.14105209708213806, -0.2625714838504791, -0.005438283085823059, 0.0481506809592247, -0.16008196771144867, 0.5918855667114258, 0.0995216965675354, 0.28726038336753845, 0.022782638669013977, -0.27128058671951294, 0.32382094860076904, 0.12340331077575684, 0.1842760145664215, -0.2756660580635071, 0.1439846009016037, -0.05819670110940933, -0.1266406774520874, 0.2939160466194153, 0.015191435813903809, -0.18168091773986816, -0.03239007294178009, 0.13929510116577148, -0.16821014881134033, -0.10764346271753311, 0.20260030031204224, 0.04678267240524292, -0.2848709523677826, -0.13917627930641174, -0.17017793655395508, 0.05139593407511711, 0.07257025688886642, 0.11541789770126343, 0.01106237806379795, 0.022898539900779724, 0.3052886724472046, 0.3008720278739929, -0.17110328376293182, 0.026616062968969345, 0.016758855432271957, -0.3064672350883484, 0.36572831869125366, 0.37107396125793457, 0.044240016490221024, -0.13488325476646423, 0.2717691659927368, -0.0841674953699112, 0.3043231964111328, -0.005350220948457718, -0.1916879117488861, 0.36800190806388855, 0.13658127188682556, 0.040807679295539856, -0.4994352161884308, -0.08584161102771759, -0.036096036434173584, -0.29869306087493896, 0.6121869683265686, -0.08586953580379486, -0.3561384677886963, -0.4303494393825531, 0.06811804324388504, -0.05980449914932251, -0.013725490309298038, -0.2639259994029999, 0.5533698201179504, 0.3309738039970398, -0.282514750957489, 0.04091547429561615, 0.14757274091243744, -0.11184655874967575, -0.5068642497062683, 0.21984544396400452, 0.2586519122123718, -0.5528045892715454, 0.05856401473283768, 0.1289946734905243, -0.034577492624521255, 0.11117888987064362, 0.21206484735012054, -0.39735472202301025, 0.04585055634379387, -0.384103000164032, 0.29394030570983887, 0.16991499066352844, 0.04137282073497772, -0.2576788365840912, -0.10452289879322052, -0.026971332728862762, 0.04489200562238693, 0.46164748072624207, 0.41009029746055603, 0.09506411850452423, 0.1630871444940567, 0.3194941282272339, 0.31400424242019653, -0.20288269221782684, -0.19309329986572266, -0.09143251180648804, -0.5326014757156372, 0.5056717395782471, -0.0021551400423049927, -0.14733129739761353, 0.049573253840208054, 0.20527032017707825, -0.521708607673645, 0.30123382806777954, -0.23067758977413177, 0.28597891330718994, -0.18034012615680695, 0.384507954120636, -0.0888175219297409, -0.15062561631202698, -0.14239297807216644, -0.531130850315094, 0.2147482931613922, -0.29135775566101074, 0.15769758820533752, -0.28156527876853943, -0.2635593116283417, 0.2890249788761139, 0.07339370995759964, -0.00024120230227708817, 0.06768658757209778, 0.08107160776853561, 0.01584441587328911, 0.07583983242511749, -0.3457562029361725, -0.22256848216056824, 0.1293765753507614, 0.1590716540813446, -0.017813485115766525, -0.15109655261039734, 0.3943973183631897, 0.019605770707130432, -0.16071251034736633, -0.07630684971809387, 0.19595420360565186, -0.049269769340753555, 0.19611096382141113, 0.1199970692396164, 0.42699989676475525, -0.11093595623970032, 0.008242722600698471, 0.07126995176076889, 0.2727442979812622, 0.14535368978977203, 0.29316139221191406, 0.02967154048383236, -0.5536991357803345, 0.149925097823143, -0.17315377295017242, -0.09054466336965561, 0.28909435868263245, 0.1202574372291565, 0.13838262856006622, 0.14179465174674988, -0.166538268327713, 0.10521016269922256, -0.07454323768615723, 0.0005402565002441406, -0.21774348616600037, -0.05165887251496315, 0.2462765872478485, 0.10189913213253021, 0.3133160173892975, -0.4512615203857422, 0.2090349793434143, 0.2587774097919464, 0.030292406678199768, 0.16294899582862854, 0.1270132064819336, -0.11801376938819885, -0.2705496549606323, 0.0862550362944603, 0.14807671308517456, 0.6196272373199463, 0.367258220911026, -0.0011290805414319038, -0.0006012041121721268, -0.043256863951683044, -0.09957648813724518, 0.2032075822353363, -0.049649957567453384, 0.2204275131225586, 0.3111625909805298, 0.48581206798553467, 0.04627775028347969, -0.0847223699092865, 0.018740013241767883, 0.24245518445968628, -0.02365456335246563, -0.06145004555583, -0.28823232650756836, -0.4230682849884033, -0.07688935846090317, -0.2263132482767105, -0.20732350647449493, -0.17768606543540955, -0.038744308054447174, 0.20440898835659027, 0.30839991569519043, -0.1329575479030609, 0.1332467645406723, 0.13853028416633606, 0.48705148696899414, -0.34913602471351624, -0.37308844923973083, -0.10759736597537994, -0.08177480101585388, 0.037158817052841187, 0.08339802175760269, 0.4131779074668884, -0.13268950581550598, 0.44394639134407043, 0.42181649804115295, -0.1286582350730896, -0.3170165419578552, -0.3468725085258484, 0.12526962161064148, -0.039119549095630646, 0.07988428324460983, 0.0871988832950592, -0.09268617630004883, 0.12658657133579254, -0.47880634665489197, 0.11191543936729431, 0.3859838843345642, -0.284446120262146, 0.25665587186813354, 0.0273776575922966, -0.1551007330417633, -0.33826011419296265, -0.26191699504852295, -0.3027263283729553, -0.45800286531448364, 0.43808555603027344, -0.1251058727502823, 0.11522427201271057, 0.09536758810281754, 0.23273496329784393, -0.29779261350631714, 0.07009434700012207, 0.12751062214374542, -0.17624998092651367, -0.13043588399887085, 0.32355546951293945, -0.13579028844833374, -0.09622914344072342, -0.16813021898269653, -0.19179552793502808, 0.12672781944274902, 0.45741337537765503, -0.21457991003990173, -0.05566830188035965, -0.1127309501171112, 0.4080159366130829, -0.1579323709011078, 0.0697520300745964, 0.6263288259506226, 0.5570226311683655, -0.08110882341861725, -0.04011218622326851, -0.1109493225812912, 0.22134137153625488, 0.2556414306163788, 0.11169305443763733, 0.11886685341596603, -0.19891253113746643, 0.08691556751728058, 0.37238791584968567, -0.0004662945866584778, 0.08357610553503036, 0.4383432865142822, -0.026546813547611237, 0.29764536023139954, -0.24040478467941284, -0.0903695598244667, -0.2160644382238388, -0.4245317578315735, -0.03169800341129303, -0.05708487331867218, -0.045501090586185455, -0.2517731189727783, -0.08823683857917786, 0.23171192407608032, -0.1693066954612732, -0.2507646083831787, 0.3463309705257416, -0.11908432841300964, 0.25541311502456665, 0.023074887692928314, -0.44999533891677856, -0.2813350558280945, 0.06946193426847458, -0.09329867362976074, 0.09081900864839554, 0.15572459995746613, -0.15240433812141418, -0.3255564868450165, -0.39399901032447815, -0.37726059556007385, 0.10509765148162842, 0.3018629252910614, 0.14671102166175842, 0.1842964142560959, -0.34679657220840454, -0.07018603384494781, -0.01961643621325493, 0.835403323173523, 0.062319234013557434, -0.5227494835853577, 0.07037083804607391, 0.13172852993011475, 0.21171694993972778, 0.011487908661365509, 0.1598886251449585, 0.0968085378408432, -0.20835000276565552, 0.16970260441303253, -0.45445263385772705, 0.15121056139469147, 0.06583191454410553, 0.45692241191864014, 0.004244960844516754, -0.30045998096466064, -0.06856343895196915, 0.05511443316936493, -0.4431813955307007, -0.41442352533340454, 0.09109741449356079, 0.18117377161979675, 0.05868711322546005, -0.07617785781621933, -0.13911359012126923, -0.007849805057048798, 0.03876073285937309, -0.06083131954073906, 0.3464486300945282, 0.020029056817293167, 0.4484294056892395, -0.2765006124973297, -0.06502681970596313, 0.8608853816986084, 0.6849473118782043, -0.2380894124507904, -0.13120517134666443, -0.09172485768795013, -0.17263251543045044, 0.3094542622566223, 0.05113852396607399, 0.09473831951618195, 0.4905811846256256, 0.045709069818258286, 0.03705190122127533, -0.4452131688594818, -0.13054634630680084, -0.09090694040060043, -0.2205585539340973, -0.36095792055130005, -0.3468237817287445, 0.3938203454017639, 0.17529839277267456, -0.17446032166481018, 0.4534807801246643, 0.023114770650863647, -0.4244270920753479, 0.257376104593277, 0.015310686081647873, 1.1907250881195068, 0.10392734408378601, 0.35671374201774597, 0.15354019403457642, -0.22784268856048584, 0.06154583767056465, -0.08871649205684662, 0.29790499806404114, -0.1494074910879135, -0.014554224908351898, -0.0680173859000206, -0.21001273393630981, -0.0067495983093976974, 0.034553833305835724, -0.48731493949890137, -0.13212674856185913, -0.04380195587873459, -0.06759163737297058, -0.029710061848163605, 0.19466812908649445, -0.23735018074512482, -0.3399893045425415, 0.14237047731876373, 0.020313676446676254, 0.09627960622310638, -0.4308605194091797, -0.08753141760826111, -0.1844053864479065, -0.1948051005601883, 0.043808385729789734, -0.297635555267334, -0.12063419818878174, -0.3254966735839844, 0.3182813227176666, -0.028027290478348732, -0.14417536556720734, -0.07650750130414963, 0.0056238905526697636, -0.16496722400188446, -0.0034904328640550375, -0.10461241006851196, -0.12054386734962463, 0.1330457478761673, -0.017709894105792046, -0.16604404151439667, -0.4333420693874359, 0.4511224031448364, 0.09192553162574768, -0.21520739793777466, -0.04883674159646034, -0.11930166184902191, -0.3479342460632324, -0.1846933513879776, 0.011516941711306572, 0.1461814045906067, -0.20906879007816315, -0.2435188591480255, 0.40397146344184875, 0.10637128353118896, -0.254229336977005, 0.07611808180809021, 0.23113489151000977, -0.05393838509917259, 0.15348418056964874, -0.17245084047317505, -0.001416921615600586, -0.22404348850250244, 0.0823872908949852, 0.35927602648735046, 0.10051348805427551, 0.13333353400230408, 0.03783541917800903, -0.012752756476402283, -0.03892618417739868, 0.0005598217248916626, 0.18357162177562714, -0.19009244441986084, -0.08543515205383301, 0.12912948429584503, -0.06648993492126465, -0.1210855096578598, 0.19266268610954285, 0.3050108253955841, 0.35470011830329895, -0.04873102530837059, -0.15180255472660065, -0.4447176456451416, 0.4528212547302246, 0.16141973435878754, 0.36311766505241394, 0.08860747516155243, 0.31544020771980286, -0.07912607491016388, 0.3983822166919708, -0.29131942987442017, -0.12115835398435593, -0.01975727081298828, 0.1517443060874939, -0.051976148039102554, 0.15480659902095795, -0.04449818655848503, -0.16125042736530304, 0.008524253964424133, 0.047779738903045654, -0.05686561018228531, -0.13071191310882568, -0.008173547685146332, 0.13413174450397491, 0.3104197382926941, 0.15466423332691193, -0.2584870457649231, -0.4188143014907837, 0.02730163186788559, -0.25258132815361023, 0.08600877970457077, 0.06947390735149384, -0.2653081715106964, 0.0038914643228054047, 0.46909844875335693, 0.04646681249141693, -0.1550285518169403, 0.34452199935913086, 0.05805658549070358, 0.1323038637638092, 0.03297404944896698, 0.22353485226631165, -0.36599114537239075, -0.009011223912239075, -0.13559094071388245, 0.28579822182655334, 0.2216770201921463, -0.0888829454779625, 0.1399485468864441, 0.25602370500564575, -0.28516244888305664, -0.2245728224515915, 0.1921326369047165, 0.21528354287147522, 0.08773096650838852, 0.2562375068664551, 0.2321072220802307, 0.1659255027770996, -0.398132860660553, -0.19634701311588287, -0.28371432423591614, -0.2527073621749878, 0.21407955884933472, 0.2647174894809723, 0.1927173137664795, 0.1320440024137497, -0.29510512948036194, 0.03543039411306381, 0.10631498694419861, -0.0030813664197921753, -0.0055839382112026215, 0.04245530813932419, -0.03718448430299759, -0.020630184561014175, -0.007120989263057709, 0.23370730876922607, 0.18694107234477997, 0.018563074991106987, -0.18111371994018555, 0.4842144548892975, 0.2601225674152374, -0.19522617757320404, 0.18069082498550415, -0.024880200624465942, 0.20807208120822906, 0.40316396951675415, 0.29984885454177856, -0.031745363026857376, 0.17957012355327606, 0.4649273753166199, 0.061762694269418716, -0.30812519788742065, 0.30610233545303345, 0.1629646271467209, 0.06951199471950531, 0.02765212208032608, -0.06169229745864868, -0.2765994668006897, -0.278530478477478, -0.11429951339960098, 0.11493382602930069, -0.3045382499694824, 0.5424284934997559, -0.03814859315752983, 0.11175177246332169, -0.21940788626670837, 0.31401532888412476, 0.5822797417640686, 0.018273504450917244, -0.38435426354408264, -0.05873449891805649, 0.36837977170944214, -0.38060513138771057, 0.04781536012887955, 0.23463569581508636, 0.5222940444946289, 0.3223421573638916, 0.13519468903541565, 0.056299760937690735, -0.0919189453125, 0.0474996417760849, -0.20797395706176758, -0.07708520442247391, 0.24288558959960938, 0.024184271693229675, 0.14430969953536987, 0.13899488747119904, -0.010210622102022171, 0.21004629135131836, 0.19406655430793762, 0.05176602303981781, -0.43974676728248596, -0.15225458145141602, 0.3874552249908447, -0.5414433479309082, 0.40359777212142944, 0.009368721395730972, -0.2633354365825653, 0.0363725982606411, 0.34103554487228394, -0.04678904265165329, 0.0430983230471611, 0.03767303749918938, 0.06650624424219131, 0.3350124955177307, 0.26233017444610596, 0.29688891768455505, 0.17762097716331482, -0.37301838397979736, -0.2074374258518219, -0.3266669511795044, -0.10754892230033875, -0.08527819812297821, -0.21321174502372742, -0.09433932602405548, 0.14437712728977203, 0.28601503372192383, 0.13802780210971832, 0.0169365257024765, -0.03038499318063259, -0.03897523134946823, 0.2556590437889099, -0.2881510257720947, -0.13597331941127777, 0.3313159644603729, 0.002647586166858673, 0.0365234836935997, -0.27540895342826843, 0.10309205949306488, 0.1382574737071991, -0.008294887840747833, -0.3732226490974426, 0.062063947319984436, 0.31148576736450195, 0.30213040113449097, 0.6179404854774475, 0.181681290268898, 0.22821195423603058, -0.2298468053340912, -0.03820539265871048, 0.016286399215459824, -0.20883923768997192, -0.29183533787727356, 0.07763278484344482, 0.0476224422454834, -0.06373432278633118, -0.49097585678100586, -0.13438622653484344, -0.08591492474079132, 0.052265096455812454, -0.18252545595169067, 0.10825280845165253, -0.2580530047416687, 0.06887554377317429, 0.17174075543880463, 0.005473814904689789, -0.07278958708047867, 0.17894193530082703, 0.12219855189323425, 0.056063540279865265, -0.11989829689264297, -0.24233423173427582, 0.015373997390270233, 0.24710166454315186, -0.04381151869893074, -0.0469026081264019, -0.11390942335128784, -0.09908737242221832, 0.23138795793056488, -0.8545030951499939, -0.2810121774673462, 0.22841712832450867, 0.002959480509161949, -0.004219911992549896, 0.4445120692253113, 0.043620750308036804, -0.05019180849194527, -0.28775879740715027, 0.3475423753261566, -0.1791466474533081, -0.42598626017570496, -0.11292065680027008, -0.45143258571624756 ]
https://github.com/huggingface/datasets/issues/1876
Thanks for reporting ! This is due to the changes made in the data files in the multiwoz repo: https://github.com/budzianowski/multiwoz/pull/59 I'm opening a PR to update the checksums of the data files.
load_dataset("multi_woz_v22") NonMatchingChecksumError
Hi, it seems that loading the multi_woz_v22 dataset gives a NonMatchingChecksumError. To reproduce: `dataset = load_dataset('multi_woz_v22','v2.2_active_only',split='train')` This will give the following error: ``` raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_003.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_004.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_005.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_006.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_007.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_008.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_009.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_010.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_012.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_013.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_014.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_015.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_016.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_017.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_002.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_002.json'] ```
32
load_dataset("multi_woz_v22") NonMatchingChecksumError Hi, it seems that loading the multi_woz_v22 dataset gives a NonMatchingChecksumError. To reproduce: `dataset = load_dataset('multi_woz_v22','v2.2_active_only',split='train')` This will give the following error: ``` raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_003.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_004.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_005.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_006.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_007.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_008.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_009.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_010.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_012.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_013.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_014.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_015.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_016.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_017.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_002.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_002.json'] ``` Thanks for reporting ! This is due to the changes made in the data files in the multiwoz repo: https://github.com/budzianowski/multiwoz/pull/59 I'm opening a PR to update the checksums of the data files.
[ -0.22443658113479614, 0.17647062242031097, -0.028719555586576462, 0.14957265555858612, 0.1895725280046463, 0.0018985792994499207, 0.3650577962398529, 0.4820294976234436, 0.25148963928222656, 0.16660648584365845, -0.09703469276428223, 0.17815923690795898, -0.08224464952945709, 0.09920148551464081, -0.18454903364181519, 0.2732408344745636, 0.07651955634355545, -0.025641225278377533, -0.16827815771102905, -0.06257995218038559, -0.24300990998744965, 0.32929477095603943, -0.15932698547840118, -0.033840589225292206, -0.3486860394477844, 0.1303853839635849, 0.17390820384025574, 0.33623892068862915, -0.08386951684951782, -0.1523163914680481, 0.4145023822784424, 0.2369774430990219, 0.04396180063486099, 0.36861562728881836, -0.00011728750541806221, 0.163338765501976, 0.2778438627719879, -0.14331111311912537, -0.1339639574289322, -0.18177494406700134, -0.5618031620979309, -0.3552266061306, -0.10356838256120682, -0.11546266824007034, 0.0706329345703125, 0.30338260531425476, 0.057200513780117035, -0.08674178272485733, 0.24319103360176086, 0.1712263822555542, 0.15356695652008057, 0.3319167494773865, 0.21577014029026031, 0.09690532088279724, 0.04552937299013138, -0.07744017243385315, -0.1376800239086151, 0.0922582745552063, 0.27443936467170715, -0.1569579541683197, -0.23956501483917236, 0.2651384770870209, -0.18048211932182312, 0.26938319206237793, -0.08042702078819275, -0.15109896659851074, 0.1479789912700653, -0.10582424700260162, 0.21058747172355652, 0.572772204875946, 0.22056949138641357, -0.055482033640146255, -0.176265686750412, -0.03195026516914368, -0.22017377614974976, 0.08336517214775085, 0.36341917514801025, 0.18347430229187012, -0.20786505937576294, 0.004587207920849323, -0.4487925171852112, 0.14430919289588928, -0.02637985348701477, 0.27925899624824524, 0.21219013631343842, 0.31459540128707886, 0.20035696029663086, 0.07266204059123993, 0.22793236374855042, -0.20644190907478333, 0.19920969009399414, -0.3010314106941223, -0.1609569489955902, 0.12932176887989044, -0.6801482439041138, -0.06649655103683472, 0.0034519024193286896, 0.3319553732872009, 0.4404263496398926, 0.22894810140132904, 0.4523439109325409, 0.37363043427467346, -0.1520799994468689, 0.11706218123435974, 0.3968927264213562, 0.174444779753685, 0.06570465117692947, -0.05454445257782936, 0.16923922300338745, 0.20958754420280457, -0.09538532793521881, 0.2373775839805603, -0.030504874885082245, -0.3612304925918579, 0.34931665658950806, 0.1929926574230194, 0.20696136355400085, -0.34345486760139465, -0.1813289076089859, 0.0824042484164238, -0.2454785853624344, -0.19453106820583344, 0.27180275321006775, 0.2862131595611572, -0.09448817372322083, 0.5524677038192749, -0.16534608602523804, 0.21560120582580566, -0.15380603075027466, -0.18470188975334167, -0.2573401927947998, -0.15165595710277557, 0.07307393848896027, 0.15319526195526123, 0.29436662793159485, 0.06565484404563904, 0.3595134913921356, -0.032113008201122284, 0.38353654742240906, -0.2031210958957672, 0.3335246443748474, 0.09020961821079254, -0.06991901248693466, 0.25541332364082336, 0.01347620040178299, 0.20102757215499878, 0.20360086858272552, -0.02606593817472458, -0.06228833645582199, 0.2220195084810257, -0.3325725197792053, -0.6167245507240295, 0.10935642570257187, 0.1607629507780075, -0.3595765233039856, -0.08049114048480988, 0.01632782444357872, -0.2801303267478943, 0.3050757646560669, -0.404274582862854, -0.15452711284160614, -0.3094390034675598, -0.043020665645599365, -0.11795500665903091, 0.009863823652267456, 0.09429232776165009, -0.09344060719013214, 0.06492868810892105, -0.04557749256491661, -0.18326634168624878, 0.3468407988548279, 0.2667628526687622, -0.2780412435531616, -0.16454313695430756, -0.1394767463207245, 0.018730074167251587, 0.22070713341236115, -0.0911146029829979, -0.36381131410598755, 0.2024422287940979, -0.07166599482297897, 0.6232895851135254, 0.18561887741088867, 0.10979308933019638, -0.3473641276359558, -0.11081404983997345, 0.2366856038570404, 0.0823843777179718, 0.1350485384464264, 0.17640289664268494, -0.2450098842382431, -0.31220749020576477, 0.34763985872268677, 0.1528954952955246, 0.016107723116874695, -0.22776605188846588, 0.0021593980491161346, 0.08934838324785233, 0.5888451337814331, -0.22970415651798248, -0.09715178608894348, 0.1738092303276062, 0.09596848487854004, -0.21133694052696228, 0.09827961027622223, 0.05116218328475952, -0.48662519454956055, 0.32258063554763794, -0.15657997131347656, -0.09879904985427856, 0.34404027462005615, -0.05982597917318344, -0.050428204238414764, -0.1761435717344284, -0.3390328884124756, 0.010752344503998756, 0.08094888180494308, 0.27488961815834045, 0.08349679410457611, -0.25352001190185547, -0.09278324991464615, 0.3571135997772217, -0.3864997327327728, -0.08579342067241669, -0.452096164226532, 0.19691795110702515, -0.08791301399469376, 0.0851733535528183, 0.07649043202400208, 0.1571476310491562, 0.10505963116884232, -0.10942097008228302, -0.18706952035427094, 0.5129071474075317, 0.32137805223464966, 0.23842811584472656, -0.08317121863365173, 0.3510250151157379, -0.15198779106140137, -0.04986724629998207, -0.100799061357975, 0.5829591155052185, -0.04382513463497162, -0.20621322095394135, -0.19411852955818176, 0.4879204034805298, -0.17299851775169373, 0.45350298285484314, -0.046705808490514755, 0.1363263726234436, 0.33660420775413513, -0.13140380382537842, -0.26763254404067993, -0.09463196992874146, 0.4545115828514099, -0.19809210300445557, -0.16696155071258545, 0.25300130248069763, -0.21332454681396484, 0.016329031437635422, 0.37338781356811523, -0.14407804608345032, 0.12599000334739685, -0.01514450740069151, 0.2458733320236206, -0.25525709986686707, -0.019807906821370125, 0.4922716021537781, 0.3632509708404541, 0.10118288546800613, -0.01794608309864998, -0.027317117899656296, -0.22946906089782715, -0.17444345355033875, 0.1194060891866684, 0.09737041592597961, 0.3296886086463928, 0.5370066165924072, 0.04139366000890732, -0.3653715252876282, -0.42670315504074097, -0.014849506318569183, 0.029029861092567444, 0.16562007367610931, -0.4414883255958557, -0.2537640333175659, -0.4441935420036316, 0.22884482145309448, -0.36373692750930786, -0.34369778633117676, -0.41294747591018677, -0.46489793062210083, 0.12106034904718399, 0.22816520929336548, -0.019953444600105286, 0.31932005286216736, -0.31116393208503723, 0.06834498047828674, -0.13192793726921082, 0.06054288148880005, 0.04005385935306549, -0.2777513563632965, -0.08171191811561584, -0.00463477149605751, 0.39574503898620605, 0.0018836185336112976, -0.05780568718910217, -0.30774983763694763, -0.06926273554563522, -0.14584055542945862, -0.16675734519958496, -0.030850593000650406, -0.11081242561340332, -0.07276416569948196, 0.2588978409767151, 0.30251556634902954, 0.14046284556388855, -0.38869380950927734, 0.24581819772720337, -0.03674057871103287, -0.2834915518760681, 0.18776169419288635, -0.1721363067626953, -0.018969867378473282, 0.10811285674571991, -0.3866267800331116, -0.09475814551115036, -0.3375903367996216, -0.010116366669535637, 0.0664086639881134, 0.27171841263771057, 0.25325071811676025, 0.08359870314598083, -0.0678555890917778, 0.13564614951610565, 0.2740625739097595, -0.32005536556243896, -0.8128384351730347, 0.4206301271915436, -0.02256610617041588, -0.26015704870224, -0.0509394071996212, 0.021456800401210785, 0.20189185440540314, 0.09643802046775818, -0.447293758392334, -0.2804219126701355, -0.06518134474754333, -0.31373003125190735, 0.1682509332895279, -0.3037390112876892, 0.33596259355545044, 0.11882729083299637, -0.05783242732286453, -0.2449941188097, -0.29492247104644775, 0.36702439188957214, 0.08588792383670807, 0.5151625871658325, -0.2128700166940689, 0.24133390188217163, 0.007219009101390839, 0.5949301719665527, 0.2273387312889099, 0.25829923152923584, 0.06178314983844757, 0.1863200068473816, 0.15315896272659302, -0.08177927881479263, -0.32451385259628296, 0.1173865795135498, -0.2651423513889313, 0.004429459571838379, 0.17893019318580627, 0.09480209648609161, -0.27328401803970337, -0.10168449580669403, 0.12972348928451538, -0.15126964449882507, -0.23114433884620667, 0.054218120872974396, -0.011172279715538025, 0.09992890059947968, 0.21456630527973175, 0.0766037255525589, -0.3172059953212738, -0.3501293361186981, 0.17319363355636597, 0.20115402340888977, -0.16538959741592407, -0.14242827892303467, -0.5950778722763062, 0.0641576498746872, 0.024696554988622665, 0.4123169183731079, 0.24996733665466309, 0.40311458706855774, 0.02293957769870758, -0.3206756114959717, 0.032547228038311005, -0.2579708695411682, 0.5845401287078857, -0.38343602418899536, 0.3248416781425476, 0.09771552681922913, -0.04718269035220146, -0.26306530833244324, -0.1649409532546997, -0.03805234283208847, -0.02566562592983246, 0.3266570270061493, 0.3074331283569336, -0.22692722082138062, -0.2858472764492035, 0.11576972901821136, 0.3378465175628662, -0.28785353899002075, -0.16827774047851562, -0.30979666113853455, -0.11089936643838882, -0.3571150302886963, -0.220131054520607, -0.3995669186115265, 0.34726592898368835, -0.16486725211143494, -0.08125010877847672, 0.1711757332086563, -0.14536435902118683, 0.2767299711704254, 0.03994345664978027, 0.30218273401260376, 0.36446112394332886, 0.2251102328300476, 0.024875562638044357, 0.3385651111602783, 0.22340187430381775, 0.4796164333820343, -0.1350191831588745, -0.09932582080364227, -0.056318722665309906, -0.21437682211399078, 0.04101409390568733, 0.22350284457206726, 0.023676317185163498, -0.0814056545495987, 0.2965891659259796, -0.11086255311965942, -0.04331018403172493, 0.039798811078071594, 0.28456127643585205, 0.029926884919404984, -0.339911550283432, -0.30180737376213074, 0.05950801819562912, 0.0007750391960144043, -0.178718701004982, 0.25061193108558655, -0.17726197838783264, -0.07451876997947693, 0.040159210562705994, 0.3154737651348114, 0.8823341131210327, 0.07819698750972748, 0.08893020451068878, 0.08175110816955566, -0.1757192611694336, -0.17175552248954773, -0.41997194290161133, 0.17547638714313507, -0.27137696743011475, -0.2802044749259949, -0.07895620912313461, -0.20289665460586548, 0.11615651845932007, 0.37238189578056335, -0.014083877205848694, 0.329421728849411, 0.050759002566337585, 0.17186573147773743, 0.01520998403429985, 0.09282514452934265, -0.12029623985290527, -0.11446984112262726, 0.042976610362529755, 0.12037351727485657, -0.1465318500995636, 0.14474810659885406, -0.12308220565319061, -0.04944872111082077, 0.20852385461330414, -0.2759682536125183, -0.1316169798374176, 0.19848015904426575, -0.12620288133621216, 0.4007566273212433, 0.24633680284023285, -0.20694474875926971, -0.2900717556476593, 0.43465325236320496, 0.09330102801322937, -0.06741834431886673, -0.25641509890556335, 0.1446239948272705, 0.35095179080963135, 0.09362156689167023, -0.09197132289409637, -0.0624779649078846, 0.3511781692504883, -0.1872357726097107, -0.28137290477752686, 0.010437866672873497, -0.15174205601215363, -0.6179362535476685, -0.06817671656608582, -0.12640322744846344, 0.09847813844680786, -0.1545957624912262, -0.15352633595466614, 0.17866326868534088, 0.05463963747024536, -0.3420567810535431, 0.12213948369026184, 0.13303323090076447, -0.3626447916030884, 0.3028176426887512, 0.12935706973075867, -0.2770991623401642, -0.09441603720188141, 0.5548004508018494, 0.038673706352710724, -0.0010042712092399597, 0.7191023230552673, 0.0710802674293518, -0.12040147185325623, -0.28456175327301025, 0.3099565804004669, 0.23410800099372864, -0.21222254633903503, -0.06823611259460449, -0.11812537908554077, -0.054992541670799255, 0.04018978774547577, 0.5675615072250366, 0.2766493260860443, 0.3637251555919647, -0.006476342678070068, -0.6050379276275635, -0.12225134670734406, 0.05055101960897446, 0.2656697630882263, 0.3840140998363495, -0.38608038425445557, -0.0716589093208313, -0.12057110667228699, 0.22048445045948029, -0.297700434923172, 0.013633478432893753, -0.3014141619205475, -0.00141247920691967, -0.3319448232650757, -0.05958181247115135, 0.10338792949914932, 0.04664796590805054, 0.10386359691619873, -0.22606587409973145, -0.2882827818393707, -0.16363835334777832, -0.21585240960121155, 0.1587163805961609, 0.036347825080156326, -0.06325793266296387, 0.06980352103710175, -0.09396739304065704, -0.10666456818580627, -0.1600661426782608, -0.05299337953329086, 0.20803925395011902, -0.09534866362810135, 0.12578871846199036, 0.23328405618667603, -0.1949186623096466, -0.148782879114151, -0.26173651218414307, -0.29630932211875916, -0.09603363275527954, 0.09083161503076553, -0.10212580859661102, 0.05359441414475441, -0.16965897381305695, 0.4369633197784424, 0.17010486125946045, 0.024544937536120415, -0.0090560894459486, 0.2811066806316376, -0.28916239738464355, -0.09701251983642578, 0.2284565418958664, 0.31372764706611633, 0.3578687906265259, -0.21049046516418457, 0.19131797552108765, 0.0008261241018772125, 0.2238861620426178, -0.29284971952438354, -0.15597184002399445, 0.36678391695022583, -0.11205199360847473, 0.014371298253536224, 0.0317222885787487, -0.07169222831726074, -0.3091433048248291, 0.5745689272880554, 0.10009535402059555, -0.0016480274498462677, -0.39153921604156494, 0.18743008375167847, 0.32771164178848267, -0.3724376857280731, -0.06963902711868286, -0.004598131403326988, -0.2296411544084549, 0.21191495656967163, -0.21458815038204193, -0.11230659484863281, 0.4519321322441101, 0.05014949291944504, 0.2505688965320587, -0.12845680117607117, -0.49289798736572266, 0.0944712683558464, 0.19546183943748474, -0.09124338626861572, 0.017728932201862335, 0.03484833240509033, 0.4064953327178955, -0.23367738723754883, 0.1827874779701233, -0.7026891112327576, -0.018088074401021004, 0.023112256079912186, -0.2515980005264282, -0.3489800691604614, -0.3787187337875366, -0.12434159964323044, 0.16217535734176636, -0.00769336661323905, 0.12232820689678192, 0.3172169029712677, 0.027880828827619553, -0.030228085815906525, -0.5480281710624695, -0.15544000267982483, -0.07214045524597168, -0.13253247737884521, -0.254649817943573, 0.21105952560901642, 0.38174402713775635, -0.11686673760414124, 0.34111884236335754, 0.23288898169994354, 0.3793443739414215, 0.39683040976524353, 0.01588558405637741, -0.0075068287551403046, -0.05471830815076828, 0.027584664523601532, -0.15111683309078217, 0.7324588894844055, 0.16688397526741028, -0.13733433187007904, 0.47673866152763367, 0.05216588079929352, -0.15826722979545593, 0.07005549967288971, -0.014277614653110504, -0.09278227388858795, -0.0598386786878109, 0.7789545059204102, 0.03880936652421951, 0.1453847438097, -0.07198227941989899, 0.23361554741859436, -0.30821138620376587, -0.3224423825740814, 0.08496719598770142, 0.09100127220153809, 0.2019016593694687, -0.02582462877035141, 0.07348223030567169, -0.18886920809745789, 0.6922150254249573, -0.09830789268016815, -0.22061030566692352, -0.29968199133872986, -0.25964102149009705, -0.8195847272872925, 0.2501329183578491, -0.14128224551677704, 0.34247344732284546, -0.06899823248386383, 0.15627403557300568, 0.1727871298789978, 0.28548476099967957, 0.25758808851242065, -0.21299955248832703, -0.18637093901634216, -0.05215883255004883, -0.397325336933136, 0.07390463352203369, 0.42342817783355713, 0.034984223544597626, -0.006968073546886444, -0.23557740449905396, 0.18899865448474884, 0.26316699385643005, 0.04243064671754837, 0.13426749408245087, 0.011174485087394714, -0.03270817920565605, -0.024686088785529137, -0.08121952414512634, 0.14334693551063538, 0.5623224973678589, -0.003130108118057251, -0.011459063738584518, -0.19893956184387207, -0.2911088764667511, -0.062097303569316864, 0.18480458855628967, -0.05020368471741676, 0.5143121480941772, -0.18610608577728271, -0.030831774696707726, -0.22205281257629395, 0.2004484385251999, -0.05614829435944557, -0.2992597818374634, -0.12875968217849731, 0.03251059353351593, -0.012771956622600555, 0.08433167636394501, 0.11554522812366486, 0.05059262737631798, 0.08158068358898163, 0.20930127799510956, -0.05611585080623627, -0.05942429229617119, 0.7326382994651794, -0.11332474648952484, -0.1869966685771942, -0.36494702100753784, 0.13832935690879822, -0.3404732942581177, -0.06487318873405457, -0.44810208678245544, 0.09004972875118256, 0.3190639317035675, 0.12636145949363708, -0.22607913613319397, 0.14004382491111755, -0.2574896216392517, 0.02727096527814865, -0.0578920915722847, 0.0775429829955101, 0.2296062707901001, -0.2987924814224243, -0.11000952124595642, -0.13581794500350952 ]
https://github.com/huggingface/datasets/issues/1876
I just merged the fix. It will be available in the new release of `datasets` later today. You'll be able to get the new version with ``` pip install --upgrade datasets ```
load_dataset("multi_woz_v22") NonMatchingChecksumError
Hi, it seems that loading the multi_woz_v22 dataset gives a NonMatchingChecksumError. To reproduce: `dataset = load_dataset('multi_woz_v22','v2.2_active_only',split='train')` This will give the following error: ``` raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_003.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_004.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_005.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_006.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_007.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_008.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_009.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_010.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_012.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_013.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_014.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_015.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_016.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_017.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_002.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_002.json'] ```
32
load_dataset("multi_woz_v22") NonMatchingChecksumError Hi, it seems that loading the multi_woz_v22 dataset gives a NonMatchingChecksumError. To reproduce: `dataset = load_dataset('multi_woz_v22','v2.2_active_only',split='train')` This will give the following error: ``` raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_003.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_004.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_005.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_006.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_007.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_008.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_009.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_010.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_012.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_013.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_014.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_015.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_016.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_017.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_002.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_002.json'] ``` I just merged the fix. It will be available in the new release of `datasets` later today. You'll be able to get the new version with ``` pip install --upgrade datasets ```
[ -0.22443658113479614, 0.17647062242031097, -0.028719555586576462, 0.14957265555858612, 0.1895725280046463, 0.0018985792994499207, 0.3650577962398529, 0.4820294976234436, 0.25148963928222656, 0.16660648584365845, -0.09703469276428223, 0.17815923690795898, -0.08224464952945709, 0.09920148551464081, -0.18454903364181519, 0.2732408344745636, 0.07651955634355545, -0.025641225278377533, -0.16827815771102905, -0.06257995218038559, -0.24300990998744965, 0.32929477095603943, -0.15932698547840118, -0.033840589225292206, -0.3486860394477844, 0.1303853839635849, 0.17390820384025574, 0.33623892068862915, -0.08386951684951782, -0.1523163914680481, 0.4145023822784424, 0.2369774430990219, 0.04396180063486099, 0.36861562728881836, -0.00011728750541806221, 0.163338765501976, 0.2778438627719879, -0.14331111311912537, -0.1339639574289322, -0.18177494406700134, -0.5618031620979309, -0.3552266061306, -0.10356838256120682, -0.11546266824007034, 0.0706329345703125, 0.30338260531425476, 0.057200513780117035, -0.08674178272485733, 0.24319103360176086, 0.1712263822555542, 0.15356695652008057, 0.3319167494773865, 0.21577014029026031, 0.09690532088279724, 0.04552937299013138, -0.07744017243385315, -0.1376800239086151, 0.0922582745552063, 0.27443936467170715, -0.1569579541683197, -0.23956501483917236, 0.2651384770870209, -0.18048211932182312, 0.26938319206237793, -0.08042702078819275, -0.15109896659851074, 0.1479789912700653, -0.10582424700260162, 0.21058747172355652, 0.572772204875946, 0.22056949138641357, -0.055482033640146255, -0.176265686750412, -0.03195026516914368, -0.22017377614974976, 0.08336517214775085, 0.36341917514801025, 0.18347430229187012, -0.20786505937576294, 0.004587207920849323, -0.4487925171852112, 0.14430919289588928, -0.02637985348701477, 0.27925899624824524, 0.21219013631343842, 0.31459540128707886, 0.20035696029663086, 0.07266204059123993, 0.22793236374855042, -0.20644190907478333, 0.19920969009399414, -0.3010314106941223, -0.1609569489955902, 0.12932176887989044, -0.6801482439041138, -0.06649655103683472, 0.0034519024193286896, 0.3319553732872009, 0.4404263496398926, 0.22894810140132904, 0.4523439109325409, 0.37363043427467346, -0.1520799994468689, 0.11706218123435974, 0.3968927264213562, 0.174444779753685, 0.06570465117692947, -0.05454445257782936, 0.16923922300338745, 0.20958754420280457, -0.09538532793521881, 0.2373775839805603, -0.030504874885082245, -0.3612304925918579, 0.34931665658950806, 0.1929926574230194, 0.20696136355400085, -0.34345486760139465, -0.1813289076089859, 0.0824042484164238, -0.2454785853624344, -0.19453106820583344, 0.27180275321006775, 0.2862131595611572, -0.09448817372322083, 0.5524677038192749, -0.16534608602523804, 0.21560120582580566, -0.15380603075027466, -0.18470188975334167, -0.2573401927947998, -0.15165595710277557, 0.07307393848896027, 0.15319526195526123, 0.29436662793159485, 0.06565484404563904, 0.3595134913921356, -0.032113008201122284, 0.38353654742240906, -0.2031210958957672, 0.3335246443748474, 0.09020961821079254, -0.06991901248693466, 0.25541332364082336, 0.01347620040178299, 0.20102757215499878, 0.20360086858272552, -0.02606593817472458, -0.06228833645582199, 0.2220195084810257, -0.3325725197792053, -0.6167245507240295, 0.10935642570257187, 0.1607629507780075, -0.3595765233039856, -0.08049114048480988, 0.01632782444357872, -0.2801303267478943, 0.3050757646560669, -0.404274582862854, -0.15452711284160614, -0.3094390034675598, -0.043020665645599365, -0.11795500665903091, 0.009863823652267456, 0.09429232776165009, -0.09344060719013214, 0.06492868810892105, -0.04557749256491661, -0.18326634168624878, 0.3468407988548279, 0.2667628526687622, -0.2780412435531616, -0.16454313695430756, -0.1394767463207245, 0.018730074167251587, 0.22070713341236115, -0.0911146029829979, -0.36381131410598755, 0.2024422287940979, -0.07166599482297897, 0.6232895851135254, 0.18561887741088867, 0.10979308933019638, -0.3473641276359558, -0.11081404983997345, 0.2366856038570404, 0.0823843777179718, 0.1350485384464264, 0.17640289664268494, -0.2450098842382431, -0.31220749020576477, 0.34763985872268677, 0.1528954952955246, 0.016107723116874695, -0.22776605188846588, 0.0021593980491161346, 0.08934838324785233, 0.5888451337814331, -0.22970415651798248, -0.09715178608894348, 0.1738092303276062, 0.09596848487854004, -0.21133694052696228, 0.09827961027622223, 0.05116218328475952, -0.48662519454956055, 0.32258063554763794, -0.15657997131347656, -0.09879904985427856, 0.34404027462005615, -0.05982597917318344, -0.050428204238414764, -0.1761435717344284, -0.3390328884124756, 0.010752344503998756, 0.08094888180494308, 0.27488961815834045, 0.08349679410457611, -0.25352001190185547, -0.09278324991464615, 0.3571135997772217, -0.3864997327327728, -0.08579342067241669, -0.452096164226532, 0.19691795110702515, -0.08791301399469376, 0.0851733535528183, 0.07649043202400208, 0.1571476310491562, 0.10505963116884232, -0.10942097008228302, -0.18706952035427094, 0.5129071474075317, 0.32137805223464966, 0.23842811584472656, -0.08317121863365173, 0.3510250151157379, -0.15198779106140137, -0.04986724629998207, -0.100799061357975, 0.5829591155052185, -0.04382513463497162, -0.20621322095394135, -0.19411852955818176, 0.4879204034805298, -0.17299851775169373, 0.45350298285484314, -0.046705808490514755, 0.1363263726234436, 0.33660420775413513, -0.13140380382537842, -0.26763254404067993, -0.09463196992874146, 0.4545115828514099, -0.19809210300445557, -0.16696155071258545, 0.25300130248069763, -0.21332454681396484, 0.016329031437635422, 0.37338781356811523, -0.14407804608345032, 0.12599000334739685, -0.01514450740069151, 0.2458733320236206, -0.25525709986686707, -0.019807906821370125, 0.4922716021537781, 0.3632509708404541, 0.10118288546800613, -0.01794608309864998, -0.027317117899656296, -0.22946906089782715, -0.17444345355033875, 0.1194060891866684, 0.09737041592597961, 0.3296886086463928, 0.5370066165924072, 0.04139366000890732, -0.3653715252876282, -0.42670315504074097, -0.014849506318569183, 0.029029861092567444, 0.16562007367610931, -0.4414883255958557, -0.2537640333175659, -0.4441935420036316, 0.22884482145309448, -0.36373692750930786, -0.34369778633117676, -0.41294747591018677, -0.46489793062210083, 0.12106034904718399, 0.22816520929336548, -0.019953444600105286, 0.31932005286216736, -0.31116393208503723, 0.06834498047828674, -0.13192793726921082, 0.06054288148880005, 0.04005385935306549, -0.2777513563632965, -0.08171191811561584, -0.00463477149605751, 0.39574503898620605, 0.0018836185336112976, -0.05780568718910217, -0.30774983763694763, -0.06926273554563522, -0.14584055542945862, -0.16675734519958496, -0.030850593000650406, -0.11081242561340332, -0.07276416569948196, 0.2588978409767151, 0.30251556634902954, 0.14046284556388855, -0.38869380950927734, 0.24581819772720337, -0.03674057871103287, -0.2834915518760681, 0.18776169419288635, -0.1721363067626953, -0.018969867378473282, 0.10811285674571991, -0.3866267800331116, -0.09475814551115036, -0.3375903367996216, -0.010116366669535637, 0.0664086639881134, 0.27171841263771057, 0.25325071811676025, 0.08359870314598083, -0.0678555890917778, 0.13564614951610565, 0.2740625739097595, -0.32005536556243896, -0.8128384351730347, 0.4206301271915436, -0.02256610617041588, -0.26015704870224, -0.0509394071996212, 0.021456800401210785, 0.20189185440540314, 0.09643802046775818, -0.447293758392334, -0.2804219126701355, -0.06518134474754333, -0.31373003125190735, 0.1682509332895279, -0.3037390112876892, 0.33596259355545044, 0.11882729083299637, -0.05783242732286453, -0.2449941188097, -0.29492247104644775, 0.36702439188957214, 0.08588792383670807, 0.5151625871658325, -0.2128700166940689, 0.24133390188217163, 0.007219009101390839, 0.5949301719665527, 0.2273387312889099, 0.25829923152923584, 0.06178314983844757, 0.1863200068473816, 0.15315896272659302, -0.08177927881479263, -0.32451385259628296, 0.1173865795135498, -0.2651423513889313, 0.004429459571838379, 0.17893019318580627, 0.09480209648609161, -0.27328401803970337, -0.10168449580669403, 0.12972348928451538, -0.15126964449882507, -0.23114433884620667, 0.054218120872974396, -0.011172279715538025, 0.09992890059947968, 0.21456630527973175, 0.0766037255525589, -0.3172059953212738, -0.3501293361186981, 0.17319363355636597, 0.20115402340888977, -0.16538959741592407, -0.14242827892303467, -0.5950778722763062, 0.0641576498746872, 0.024696554988622665, 0.4123169183731079, 0.24996733665466309, 0.40311458706855774, 0.02293957769870758, -0.3206756114959717, 0.032547228038311005, -0.2579708695411682, 0.5845401287078857, -0.38343602418899536, 0.3248416781425476, 0.09771552681922913, -0.04718269035220146, -0.26306530833244324, -0.1649409532546997, -0.03805234283208847, -0.02566562592983246, 0.3266570270061493, 0.3074331283569336, -0.22692722082138062, -0.2858472764492035, 0.11576972901821136, 0.3378465175628662, -0.28785353899002075, -0.16827774047851562, -0.30979666113853455, -0.11089936643838882, -0.3571150302886963, -0.220131054520607, -0.3995669186115265, 0.34726592898368835, -0.16486725211143494, -0.08125010877847672, 0.1711757332086563, -0.14536435902118683, 0.2767299711704254, 0.03994345664978027, 0.30218273401260376, 0.36446112394332886, 0.2251102328300476, 0.024875562638044357, 0.3385651111602783, 0.22340187430381775, 0.4796164333820343, -0.1350191831588745, -0.09932582080364227, -0.056318722665309906, -0.21437682211399078, 0.04101409390568733, 0.22350284457206726, 0.023676317185163498, -0.0814056545495987, 0.2965891659259796, -0.11086255311965942, -0.04331018403172493, 0.039798811078071594, 0.28456127643585205, 0.029926884919404984, -0.339911550283432, -0.30180737376213074, 0.05950801819562912, 0.0007750391960144043, -0.178718701004982, 0.25061193108558655, -0.17726197838783264, -0.07451876997947693, 0.040159210562705994, 0.3154737651348114, 0.8823341131210327, 0.07819698750972748, 0.08893020451068878, 0.08175110816955566, -0.1757192611694336, -0.17175552248954773, -0.41997194290161133, 0.17547638714313507, -0.27137696743011475, -0.2802044749259949, -0.07895620912313461, -0.20289665460586548, 0.11615651845932007, 0.37238189578056335, -0.014083877205848694, 0.329421728849411, 0.050759002566337585, 0.17186573147773743, 0.01520998403429985, 0.09282514452934265, -0.12029623985290527, -0.11446984112262726, 0.042976610362529755, 0.12037351727485657, -0.1465318500995636, 0.14474810659885406, -0.12308220565319061, -0.04944872111082077, 0.20852385461330414, -0.2759682536125183, -0.1316169798374176, 0.19848015904426575, -0.12620288133621216, 0.4007566273212433, 0.24633680284023285, -0.20694474875926971, -0.2900717556476593, 0.43465325236320496, 0.09330102801322937, -0.06741834431886673, -0.25641509890556335, 0.1446239948272705, 0.35095179080963135, 0.09362156689167023, -0.09197132289409637, -0.0624779649078846, 0.3511781692504883, -0.1872357726097107, -0.28137290477752686, 0.010437866672873497, -0.15174205601215363, -0.6179362535476685, -0.06817671656608582, -0.12640322744846344, 0.09847813844680786, -0.1545957624912262, -0.15352633595466614, 0.17866326868534088, 0.05463963747024536, -0.3420567810535431, 0.12213948369026184, 0.13303323090076447, -0.3626447916030884, 0.3028176426887512, 0.12935706973075867, -0.2770991623401642, -0.09441603720188141, 0.5548004508018494, 0.038673706352710724, -0.0010042712092399597, 0.7191023230552673, 0.0710802674293518, -0.12040147185325623, -0.28456175327301025, 0.3099565804004669, 0.23410800099372864, -0.21222254633903503, -0.06823611259460449, -0.11812537908554077, -0.054992541670799255, 0.04018978774547577, 0.5675615072250366, 0.2766493260860443, 0.3637251555919647, -0.006476342678070068, -0.6050379276275635, -0.12225134670734406, 0.05055101960897446, 0.2656697630882263, 0.3840140998363495, -0.38608038425445557, -0.0716589093208313, -0.12057110667228699, 0.22048445045948029, -0.297700434923172, 0.013633478432893753, -0.3014141619205475, -0.00141247920691967, -0.3319448232650757, -0.05958181247115135, 0.10338792949914932, 0.04664796590805054, 0.10386359691619873, -0.22606587409973145, -0.2882827818393707, -0.16363835334777832, -0.21585240960121155, 0.1587163805961609, 0.036347825080156326, -0.06325793266296387, 0.06980352103710175, -0.09396739304065704, -0.10666456818580627, -0.1600661426782608, -0.05299337953329086, 0.20803925395011902, -0.09534866362810135, 0.12578871846199036, 0.23328405618667603, -0.1949186623096466, -0.148782879114151, -0.26173651218414307, -0.29630932211875916, -0.09603363275527954, 0.09083161503076553, -0.10212580859661102, 0.05359441414475441, -0.16965897381305695, 0.4369633197784424, 0.17010486125946045, 0.024544937536120415, -0.0090560894459486, 0.2811066806316376, -0.28916239738464355, -0.09701251983642578, 0.2284565418958664, 0.31372764706611633, 0.3578687906265259, -0.21049046516418457, 0.19131797552108765, 0.0008261241018772125, 0.2238861620426178, -0.29284971952438354, -0.15597184002399445, 0.36678391695022583, -0.11205199360847473, 0.014371298253536224, 0.0317222885787487, -0.07169222831726074, -0.3091433048248291, 0.5745689272880554, 0.10009535402059555, -0.0016480274498462677, -0.39153921604156494, 0.18743008375167847, 0.32771164178848267, -0.3724376857280731, -0.06963902711868286, -0.004598131403326988, -0.2296411544084549, 0.21191495656967163, -0.21458815038204193, -0.11230659484863281, 0.4519321322441101, 0.05014949291944504, 0.2505688965320587, -0.12845680117607117, -0.49289798736572266, 0.0944712683558464, 0.19546183943748474, -0.09124338626861572, 0.017728932201862335, 0.03484833240509033, 0.4064953327178955, -0.23367738723754883, 0.1827874779701233, -0.7026891112327576, -0.018088074401021004, 0.023112256079912186, -0.2515980005264282, -0.3489800691604614, -0.3787187337875366, -0.12434159964323044, 0.16217535734176636, -0.00769336661323905, 0.12232820689678192, 0.3172169029712677, 0.027880828827619553, -0.030228085815906525, -0.5480281710624695, -0.15544000267982483, -0.07214045524597168, -0.13253247737884521, -0.254649817943573, 0.21105952560901642, 0.38174402713775635, -0.11686673760414124, 0.34111884236335754, 0.23288898169994354, 0.3793443739414215, 0.39683040976524353, 0.01588558405637741, -0.0075068287551403046, -0.05471830815076828, 0.027584664523601532, -0.15111683309078217, 0.7324588894844055, 0.16688397526741028, -0.13733433187007904, 0.47673866152763367, 0.05216588079929352, -0.15826722979545593, 0.07005549967288971, -0.014277614653110504, -0.09278227388858795, -0.0598386786878109, 0.7789545059204102, 0.03880936652421951, 0.1453847438097, -0.07198227941989899, 0.23361554741859436, -0.30821138620376587, -0.3224423825740814, 0.08496719598770142, 0.09100127220153809, 0.2019016593694687, -0.02582462877035141, 0.07348223030567169, -0.18886920809745789, 0.6922150254249573, -0.09830789268016815, -0.22061030566692352, -0.29968199133872986, -0.25964102149009705, -0.8195847272872925, 0.2501329183578491, -0.14128224551677704, 0.34247344732284546, -0.06899823248386383, 0.15627403557300568, 0.1727871298789978, 0.28548476099967957, 0.25758808851242065, -0.21299955248832703, -0.18637093901634216, -0.05215883255004883, -0.397325336933136, 0.07390463352203369, 0.42342817783355713, 0.034984223544597626, -0.006968073546886444, -0.23557740449905396, 0.18899865448474884, 0.26316699385643005, 0.04243064671754837, 0.13426749408245087, 0.011174485087394714, -0.03270817920565605, -0.024686088785529137, -0.08121952414512634, 0.14334693551063538, 0.5623224973678589, -0.003130108118057251, -0.011459063738584518, -0.19893956184387207, -0.2911088764667511, -0.062097303569316864, 0.18480458855628967, -0.05020368471741676, 0.5143121480941772, -0.18610608577728271, -0.030831774696707726, -0.22205281257629395, 0.2004484385251999, -0.05614829435944557, -0.2992597818374634, -0.12875968217849731, 0.03251059353351593, -0.012771956622600555, 0.08433167636394501, 0.11554522812366486, 0.05059262737631798, 0.08158068358898163, 0.20930127799510956, -0.05611585080623627, -0.05942429229617119, 0.7326382994651794, -0.11332474648952484, -0.1869966685771942, -0.36494702100753784, 0.13832935690879822, -0.3404732942581177, -0.06487318873405457, -0.44810208678245544, 0.09004972875118256, 0.3190639317035675, 0.12636145949363708, -0.22607913613319397, 0.14004382491111755, -0.2574896216392517, 0.02727096527814865, -0.0578920915722847, 0.0775429829955101, 0.2296062707901001, -0.2987924814224243, -0.11000952124595642, -0.13581794500350952 ]
https://github.com/huggingface/datasets/issues/1876
Hi, I still meet the error when loading the datasets after upgradeing datasets. raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_001.json']
load_dataset("multi_woz_v22") NonMatchingChecksumError
Hi, it seems that loading the multi_woz_v22 dataset gives a NonMatchingChecksumError. To reproduce: `dataset = load_dataset('multi_woz_v22','v2.2_active_only',split='train')` This will give the following error: ``` raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_003.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_004.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_005.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_006.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_007.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_008.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_009.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_010.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_012.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_013.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_014.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_015.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_016.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_017.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_002.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_002.json'] ```
27
load_dataset("multi_woz_v22") NonMatchingChecksumError Hi, it seems that loading the multi_woz_v22 dataset gives a NonMatchingChecksumError. To reproduce: `dataset = load_dataset('multi_woz_v22','v2.2_active_only',split='train')` This will give the following error: ``` raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_003.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_004.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_005.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_006.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_007.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_008.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_009.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_010.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_012.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_013.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_014.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_015.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_016.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_017.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_002.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_002.json'] ``` Hi, I still meet the error when loading the datasets after upgradeing datasets. raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_001.json']
[ -0.22443658113479614, 0.17647062242031097, -0.028719555586576462, 0.14957265555858612, 0.1895725280046463, 0.0018985792994499207, 0.3650577962398529, 0.4820294976234436, 0.25148963928222656, 0.16660648584365845, -0.09703469276428223, 0.17815923690795898, -0.08224464952945709, 0.09920148551464081, -0.18454903364181519, 0.2732408344745636, 0.07651955634355545, -0.025641225278377533, -0.16827815771102905, -0.06257995218038559, -0.24300990998744965, 0.32929477095603943, -0.15932698547840118, -0.033840589225292206, -0.3486860394477844, 0.1303853839635849, 0.17390820384025574, 0.33623892068862915, -0.08386951684951782, -0.1523163914680481, 0.4145023822784424, 0.2369774430990219, 0.04396180063486099, 0.36861562728881836, -0.00011728750541806221, 0.163338765501976, 0.2778438627719879, -0.14331111311912537, -0.1339639574289322, -0.18177494406700134, -0.5618031620979309, -0.3552266061306, -0.10356838256120682, -0.11546266824007034, 0.0706329345703125, 0.30338260531425476, 0.057200513780117035, -0.08674178272485733, 0.24319103360176086, 0.1712263822555542, 0.15356695652008057, 0.3319167494773865, 0.21577014029026031, 0.09690532088279724, 0.04552937299013138, -0.07744017243385315, -0.1376800239086151, 0.0922582745552063, 0.27443936467170715, -0.1569579541683197, -0.23956501483917236, 0.2651384770870209, -0.18048211932182312, 0.26938319206237793, -0.08042702078819275, -0.15109896659851074, 0.1479789912700653, -0.10582424700260162, 0.21058747172355652, 0.572772204875946, 0.22056949138641357, -0.055482033640146255, -0.176265686750412, -0.03195026516914368, -0.22017377614974976, 0.08336517214775085, 0.36341917514801025, 0.18347430229187012, -0.20786505937576294, 0.004587207920849323, -0.4487925171852112, 0.14430919289588928, -0.02637985348701477, 0.27925899624824524, 0.21219013631343842, 0.31459540128707886, 0.20035696029663086, 0.07266204059123993, 0.22793236374855042, -0.20644190907478333, 0.19920969009399414, -0.3010314106941223, -0.1609569489955902, 0.12932176887989044, -0.6801482439041138, -0.06649655103683472, 0.0034519024193286896, 0.3319553732872009, 0.4404263496398926, 0.22894810140132904, 0.4523439109325409, 0.37363043427467346, -0.1520799994468689, 0.11706218123435974, 0.3968927264213562, 0.174444779753685, 0.06570465117692947, -0.05454445257782936, 0.16923922300338745, 0.20958754420280457, -0.09538532793521881, 0.2373775839805603, -0.030504874885082245, -0.3612304925918579, 0.34931665658950806, 0.1929926574230194, 0.20696136355400085, -0.34345486760139465, -0.1813289076089859, 0.0824042484164238, -0.2454785853624344, -0.19453106820583344, 0.27180275321006775, 0.2862131595611572, -0.09448817372322083, 0.5524677038192749, -0.16534608602523804, 0.21560120582580566, -0.15380603075027466, -0.18470188975334167, -0.2573401927947998, -0.15165595710277557, 0.07307393848896027, 0.15319526195526123, 0.29436662793159485, 0.06565484404563904, 0.3595134913921356, -0.032113008201122284, 0.38353654742240906, -0.2031210958957672, 0.3335246443748474, 0.09020961821079254, -0.06991901248693466, 0.25541332364082336, 0.01347620040178299, 0.20102757215499878, 0.20360086858272552, -0.02606593817472458, -0.06228833645582199, 0.2220195084810257, -0.3325725197792053, -0.6167245507240295, 0.10935642570257187, 0.1607629507780075, -0.3595765233039856, -0.08049114048480988, 0.01632782444357872, -0.2801303267478943, 0.3050757646560669, -0.404274582862854, -0.15452711284160614, -0.3094390034675598, -0.043020665645599365, -0.11795500665903091, 0.009863823652267456, 0.09429232776165009, -0.09344060719013214, 0.06492868810892105, -0.04557749256491661, -0.18326634168624878, 0.3468407988548279, 0.2667628526687622, -0.2780412435531616, -0.16454313695430756, -0.1394767463207245, 0.018730074167251587, 0.22070713341236115, -0.0911146029829979, -0.36381131410598755, 0.2024422287940979, -0.07166599482297897, 0.6232895851135254, 0.18561887741088867, 0.10979308933019638, -0.3473641276359558, -0.11081404983997345, 0.2366856038570404, 0.0823843777179718, 0.1350485384464264, 0.17640289664268494, -0.2450098842382431, -0.31220749020576477, 0.34763985872268677, 0.1528954952955246, 0.016107723116874695, -0.22776605188846588, 0.0021593980491161346, 0.08934838324785233, 0.5888451337814331, -0.22970415651798248, -0.09715178608894348, 0.1738092303276062, 0.09596848487854004, -0.21133694052696228, 0.09827961027622223, 0.05116218328475952, -0.48662519454956055, 0.32258063554763794, -0.15657997131347656, -0.09879904985427856, 0.34404027462005615, -0.05982597917318344, -0.050428204238414764, -0.1761435717344284, -0.3390328884124756, 0.010752344503998756, 0.08094888180494308, 0.27488961815834045, 0.08349679410457611, -0.25352001190185547, -0.09278324991464615, 0.3571135997772217, -0.3864997327327728, -0.08579342067241669, -0.452096164226532, 0.19691795110702515, -0.08791301399469376, 0.0851733535528183, 0.07649043202400208, 0.1571476310491562, 0.10505963116884232, -0.10942097008228302, -0.18706952035427094, 0.5129071474075317, 0.32137805223464966, 0.23842811584472656, -0.08317121863365173, 0.3510250151157379, -0.15198779106140137, -0.04986724629998207, -0.100799061357975, 0.5829591155052185, -0.04382513463497162, -0.20621322095394135, -0.19411852955818176, 0.4879204034805298, -0.17299851775169373, 0.45350298285484314, -0.046705808490514755, 0.1363263726234436, 0.33660420775413513, -0.13140380382537842, -0.26763254404067993, -0.09463196992874146, 0.4545115828514099, -0.19809210300445557, -0.16696155071258545, 0.25300130248069763, -0.21332454681396484, 0.016329031437635422, 0.37338781356811523, -0.14407804608345032, 0.12599000334739685, -0.01514450740069151, 0.2458733320236206, -0.25525709986686707, -0.019807906821370125, 0.4922716021537781, 0.3632509708404541, 0.10118288546800613, -0.01794608309864998, -0.027317117899656296, -0.22946906089782715, -0.17444345355033875, 0.1194060891866684, 0.09737041592597961, 0.3296886086463928, 0.5370066165924072, 0.04139366000890732, -0.3653715252876282, -0.42670315504074097, -0.014849506318569183, 0.029029861092567444, 0.16562007367610931, -0.4414883255958557, -0.2537640333175659, -0.4441935420036316, 0.22884482145309448, -0.36373692750930786, -0.34369778633117676, -0.41294747591018677, -0.46489793062210083, 0.12106034904718399, 0.22816520929336548, -0.019953444600105286, 0.31932005286216736, -0.31116393208503723, 0.06834498047828674, -0.13192793726921082, 0.06054288148880005, 0.04005385935306549, -0.2777513563632965, -0.08171191811561584, -0.00463477149605751, 0.39574503898620605, 0.0018836185336112976, -0.05780568718910217, -0.30774983763694763, -0.06926273554563522, -0.14584055542945862, -0.16675734519958496, -0.030850593000650406, -0.11081242561340332, -0.07276416569948196, 0.2588978409767151, 0.30251556634902954, 0.14046284556388855, -0.38869380950927734, 0.24581819772720337, -0.03674057871103287, -0.2834915518760681, 0.18776169419288635, -0.1721363067626953, -0.018969867378473282, 0.10811285674571991, -0.3866267800331116, -0.09475814551115036, -0.3375903367996216, -0.010116366669535637, 0.0664086639881134, 0.27171841263771057, 0.25325071811676025, 0.08359870314598083, -0.0678555890917778, 0.13564614951610565, 0.2740625739097595, -0.32005536556243896, -0.8128384351730347, 0.4206301271915436, -0.02256610617041588, -0.26015704870224, -0.0509394071996212, 0.021456800401210785, 0.20189185440540314, 0.09643802046775818, -0.447293758392334, -0.2804219126701355, -0.06518134474754333, -0.31373003125190735, 0.1682509332895279, -0.3037390112876892, 0.33596259355545044, 0.11882729083299637, -0.05783242732286453, -0.2449941188097, -0.29492247104644775, 0.36702439188957214, 0.08588792383670807, 0.5151625871658325, -0.2128700166940689, 0.24133390188217163, 0.007219009101390839, 0.5949301719665527, 0.2273387312889099, 0.25829923152923584, 0.06178314983844757, 0.1863200068473816, 0.15315896272659302, -0.08177927881479263, -0.32451385259628296, 0.1173865795135498, -0.2651423513889313, 0.004429459571838379, 0.17893019318580627, 0.09480209648609161, -0.27328401803970337, -0.10168449580669403, 0.12972348928451538, -0.15126964449882507, -0.23114433884620667, 0.054218120872974396, -0.011172279715538025, 0.09992890059947968, 0.21456630527973175, 0.0766037255525589, -0.3172059953212738, -0.3501293361186981, 0.17319363355636597, 0.20115402340888977, -0.16538959741592407, -0.14242827892303467, -0.5950778722763062, 0.0641576498746872, 0.024696554988622665, 0.4123169183731079, 0.24996733665466309, 0.40311458706855774, 0.02293957769870758, -0.3206756114959717, 0.032547228038311005, -0.2579708695411682, 0.5845401287078857, -0.38343602418899536, 0.3248416781425476, 0.09771552681922913, -0.04718269035220146, -0.26306530833244324, -0.1649409532546997, -0.03805234283208847, -0.02566562592983246, 0.3266570270061493, 0.3074331283569336, -0.22692722082138062, -0.2858472764492035, 0.11576972901821136, 0.3378465175628662, -0.28785353899002075, -0.16827774047851562, -0.30979666113853455, -0.11089936643838882, -0.3571150302886963, -0.220131054520607, -0.3995669186115265, 0.34726592898368835, -0.16486725211143494, -0.08125010877847672, 0.1711757332086563, -0.14536435902118683, 0.2767299711704254, 0.03994345664978027, 0.30218273401260376, 0.36446112394332886, 0.2251102328300476, 0.024875562638044357, 0.3385651111602783, 0.22340187430381775, 0.4796164333820343, -0.1350191831588745, -0.09932582080364227, -0.056318722665309906, -0.21437682211399078, 0.04101409390568733, 0.22350284457206726, 0.023676317185163498, -0.0814056545495987, 0.2965891659259796, -0.11086255311965942, -0.04331018403172493, 0.039798811078071594, 0.28456127643585205, 0.029926884919404984, -0.339911550283432, -0.30180737376213074, 0.05950801819562912, 0.0007750391960144043, -0.178718701004982, 0.25061193108558655, -0.17726197838783264, -0.07451876997947693, 0.040159210562705994, 0.3154737651348114, 0.8823341131210327, 0.07819698750972748, 0.08893020451068878, 0.08175110816955566, -0.1757192611694336, -0.17175552248954773, -0.41997194290161133, 0.17547638714313507, -0.27137696743011475, -0.2802044749259949, -0.07895620912313461, -0.20289665460586548, 0.11615651845932007, 0.37238189578056335, -0.014083877205848694, 0.329421728849411, 0.050759002566337585, 0.17186573147773743, 0.01520998403429985, 0.09282514452934265, -0.12029623985290527, -0.11446984112262726, 0.042976610362529755, 0.12037351727485657, -0.1465318500995636, 0.14474810659885406, -0.12308220565319061, -0.04944872111082077, 0.20852385461330414, -0.2759682536125183, -0.1316169798374176, 0.19848015904426575, -0.12620288133621216, 0.4007566273212433, 0.24633680284023285, -0.20694474875926971, -0.2900717556476593, 0.43465325236320496, 0.09330102801322937, -0.06741834431886673, -0.25641509890556335, 0.1446239948272705, 0.35095179080963135, 0.09362156689167023, -0.09197132289409637, -0.0624779649078846, 0.3511781692504883, -0.1872357726097107, -0.28137290477752686, 0.010437866672873497, -0.15174205601215363, -0.6179362535476685, -0.06817671656608582, -0.12640322744846344, 0.09847813844680786, -0.1545957624912262, -0.15352633595466614, 0.17866326868534088, 0.05463963747024536, -0.3420567810535431, 0.12213948369026184, 0.13303323090076447, -0.3626447916030884, 0.3028176426887512, 0.12935706973075867, -0.2770991623401642, -0.09441603720188141, 0.5548004508018494, 0.038673706352710724, -0.0010042712092399597, 0.7191023230552673, 0.0710802674293518, -0.12040147185325623, -0.28456175327301025, 0.3099565804004669, 0.23410800099372864, -0.21222254633903503, -0.06823611259460449, -0.11812537908554077, -0.054992541670799255, 0.04018978774547577, 0.5675615072250366, 0.2766493260860443, 0.3637251555919647, -0.006476342678070068, -0.6050379276275635, -0.12225134670734406, 0.05055101960897446, 0.2656697630882263, 0.3840140998363495, -0.38608038425445557, -0.0716589093208313, -0.12057110667228699, 0.22048445045948029, -0.297700434923172, 0.013633478432893753, -0.3014141619205475, -0.00141247920691967, -0.3319448232650757, -0.05958181247115135, 0.10338792949914932, 0.04664796590805054, 0.10386359691619873, -0.22606587409973145, -0.2882827818393707, -0.16363835334777832, -0.21585240960121155, 0.1587163805961609, 0.036347825080156326, -0.06325793266296387, 0.06980352103710175, -0.09396739304065704, -0.10666456818580627, -0.1600661426782608, -0.05299337953329086, 0.20803925395011902, -0.09534866362810135, 0.12578871846199036, 0.23328405618667603, -0.1949186623096466, -0.148782879114151, -0.26173651218414307, -0.29630932211875916, -0.09603363275527954, 0.09083161503076553, -0.10212580859661102, 0.05359441414475441, -0.16965897381305695, 0.4369633197784424, 0.17010486125946045, 0.024544937536120415, -0.0090560894459486, 0.2811066806316376, -0.28916239738464355, -0.09701251983642578, 0.2284565418958664, 0.31372764706611633, 0.3578687906265259, -0.21049046516418457, 0.19131797552108765, 0.0008261241018772125, 0.2238861620426178, -0.29284971952438354, -0.15597184002399445, 0.36678391695022583, -0.11205199360847473, 0.014371298253536224, 0.0317222885787487, -0.07169222831726074, -0.3091433048248291, 0.5745689272880554, 0.10009535402059555, -0.0016480274498462677, -0.39153921604156494, 0.18743008375167847, 0.32771164178848267, -0.3724376857280731, -0.06963902711868286, -0.004598131403326988, -0.2296411544084549, 0.21191495656967163, -0.21458815038204193, -0.11230659484863281, 0.4519321322441101, 0.05014949291944504, 0.2505688965320587, -0.12845680117607117, -0.49289798736572266, 0.0944712683558464, 0.19546183943748474, -0.09124338626861572, 0.017728932201862335, 0.03484833240509033, 0.4064953327178955, -0.23367738723754883, 0.1827874779701233, -0.7026891112327576, -0.018088074401021004, 0.023112256079912186, -0.2515980005264282, -0.3489800691604614, -0.3787187337875366, -0.12434159964323044, 0.16217535734176636, -0.00769336661323905, 0.12232820689678192, 0.3172169029712677, 0.027880828827619553, -0.030228085815906525, -0.5480281710624695, -0.15544000267982483, -0.07214045524597168, -0.13253247737884521, -0.254649817943573, 0.21105952560901642, 0.38174402713775635, -0.11686673760414124, 0.34111884236335754, 0.23288898169994354, 0.3793443739414215, 0.39683040976524353, 0.01588558405637741, -0.0075068287551403046, -0.05471830815076828, 0.027584664523601532, -0.15111683309078217, 0.7324588894844055, 0.16688397526741028, -0.13733433187007904, 0.47673866152763367, 0.05216588079929352, -0.15826722979545593, 0.07005549967288971, -0.014277614653110504, -0.09278227388858795, -0.0598386786878109, 0.7789545059204102, 0.03880936652421951, 0.1453847438097, -0.07198227941989899, 0.23361554741859436, -0.30821138620376587, -0.3224423825740814, 0.08496719598770142, 0.09100127220153809, 0.2019016593694687, -0.02582462877035141, 0.07348223030567169, -0.18886920809745789, 0.6922150254249573, -0.09830789268016815, -0.22061030566692352, -0.29968199133872986, -0.25964102149009705, -0.8195847272872925, 0.2501329183578491, -0.14128224551677704, 0.34247344732284546, -0.06899823248386383, 0.15627403557300568, 0.1727871298789978, 0.28548476099967957, 0.25758808851242065, -0.21299955248832703, -0.18637093901634216, -0.05215883255004883, -0.397325336933136, 0.07390463352203369, 0.42342817783355713, 0.034984223544597626, -0.006968073546886444, -0.23557740449905396, 0.18899865448474884, 0.26316699385643005, 0.04243064671754837, 0.13426749408245087, 0.011174485087394714, -0.03270817920565605, -0.024686088785529137, -0.08121952414512634, 0.14334693551063538, 0.5623224973678589, -0.003130108118057251, -0.011459063738584518, -0.19893956184387207, -0.2911088764667511, -0.062097303569316864, 0.18480458855628967, -0.05020368471741676, 0.5143121480941772, -0.18610608577728271, -0.030831774696707726, -0.22205281257629395, 0.2004484385251999, -0.05614829435944557, -0.2992597818374634, -0.12875968217849731, 0.03251059353351593, -0.012771956622600555, 0.08433167636394501, 0.11554522812366486, 0.05059262737631798, 0.08158068358898163, 0.20930127799510956, -0.05611585080623627, -0.05942429229617119, 0.7326382994651794, -0.11332474648952484, -0.1869966685771942, -0.36494702100753784, 0.13832935690879822, -0.3404732942581177, -0.06487318873405457, -0.44810208678245544, 0.09004972875118256, 0.3190639317035675, 0.12636145949363708, -0.22607913613319397, 0.14004382491111755, -0.2574896216392517, 0.02727096527814865, -0.0578920915722847, 0.0775429829955101, 0.2296062707901001, -0.2987924814224243, -0.11000952124595642, -0.13581794500350952 ]
https://github.com/huggingface/datasets/issues/1876
This must be related to https://github.com/budzianowski/multiwoz/pull/72 Those files have changed, let me update the checksums for this dataset. For now you can use `ignore_verifications=True` in `load_dataset` to skip the checksum verification.
load_dataset("multi_woz_v22") NonMatchingChecksumError
Hi, it seems that loading the multi_woz_v22 dataset gives a NonMatchingChecksumError. To reproduce: `dataset = load_dataset('multi_woz_v22','v2.2_active_only',split='train')` This will give the following error: ``` raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_003.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_004.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_005.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_006.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_007.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_008.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_009.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_010.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_012.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_013.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_014.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_015.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_016.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_017.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_002.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_002.json'] ```
31
load_dataset("multi_woz_v22") NonMatchingChecksumError Hi, it seems that loading the multi_woz_v22 dataset gives a NonMatchingChecksumError. To reproduce: `dataset = load_dataset('multi_woz_v22','v2.2_active_only',split='train')` This will give the following error: ``` raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_003.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_004.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_005.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_006.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_007.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_008.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_009.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_010.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_012.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_013.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_014.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_015.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_016.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/train/dialogues_017.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dev/dialogues_002.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_001.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/test/dialogues_002.json'] ``` This must be related to https://github.com/budzianowski/multiwoz/pull/72 Those files have changed, let me update the checksums for this dataset. For now you can use `ignore_verifications=True` in `load_dataset` to skip the checksum verification.
[ -0.22443658113479614, 0.17647062242031097, -0.028719555586576462, 0.14957265555858612, 0.1895725280046463, 0.0018985792994499207, 0.3650577962398529, 0.4820294976234436, 0.25148963928222656, 0.16660648584365845, -0.09703469276428223, 0.17815923690795898, -0.08224464952945709, 0.09920148551464081, -0.18454903364181519, 0.2732408344745636, 0.07651955634355545, -0.025641225278377533, -0.16827815771102905, -0.06257995218038559, -0.24300990998744965, 0.32929477095603943, -0.15932698547840118, -0.033840589225292206, -0.3486860394477844, 0.1303853839635849, 0.17390820384025574, 0.33623892068862915, -0.08386951684951782, -0.1523163914680481, 0.4145023822784424, 0.2369774430990219, 0.04396180063486099, 0.36861562728881836, -0.00011728750541806221, 0.163338765501976, 0.2778438627719879, -0.14331111311912537, -0.1339639574289322, -0.18177494406700134, -0.5618031620979309, -0.3552266061306, -0.10356838256120682, -0.11546266824007034, 0.0706329345703125, 0.30338260531425476, 0.057200513780117035, -0.08674178272485733, 0.24319103360176086, 0.1712263822555542, 0.15356695652008057, 0.3319167494773865, 0.21577014029026031, 0.09690532088279724, 0.04552937299013138, -0.07744017243385315, -0.1376800239086151, 0.0922582745552063, 0.27443936467170715, -0.1569579541683197, -0.23956501483917236, 0.2651384770870209, -0.18048211932182312, 0.26938319206237793, -0.08042702078819275, -0.15109896659851074, 0.1479789912700653, -0.10582424700260162, 0.21058747172355652, 0.572772204875946, 0.22056949138641357, -0.055482033640146255, -0.176265686750412, -0.03195026516914368, -0.22017377614974976, 0.08336517214775085, 0.36341917514801025, 0.18347430229187012, -0.20786505937576294, 0.004587207920849323, -0.4487925171852112, 0.14430919289588928, -0.02637985348701477, 0.27925899624824524, 0.21219013631343842, 0.31459540128707886, 0.20035696029663086, 0.07266204059123993, 0.22793236374855042, -0.20644190907478333, 0.19920969009399414, -0.3010314106941223, -0.1609569489955902, 0.12932176887989044, -0.6801482439041138, -0.06649655103683472, 0.0034519024193286896, 0.3319553732872009, 0.4404263496398926, 0.22894810140132904, 0.4523439109325409, 0.37363043427467346, -0.1520799994468689, 0.11706218123435974, 0.3968927264213562, 0.174444779753685, 0.06570465117692947, -0.05454445257782936, 0.16923922300338745, 0.20958754420280457, -0.09538532793521881, 0.2373775839805603, -0.030504874885082245, -0.3612304925918579, 0.34931665658950806, 0.1929926574230194, 0.20696136355400085, -0.34345486760139465, -0.1813289076089859, 0.0824042484164238, -0.2454785853624344, -0.19453106820583344, 0.27180275321006775, 0.2862131595611572, -0.09448817372322083, 0.5524677038192749, -0.16534608602523804, 0.21560120582580566, -0.15380603075027466, -0.18470188975334167, -0.2573401927947998, -0.15165595710277557, 0.07307393848896027, 0.15319526195526123, 0.29436662793159485, 0.06565484404563904, 0.3595134913921356, -0.032113008201122284, 0.38353654742240906, -0.2031210958957672, 0.3335246443748474, 0.09020961821079254, -0.06991901248693466, 0.25541332364082336, 0.01347620040178299, 0.20102757215499878, 0.20360086858272552, -0.02606593817472458, -0.06228833645582199, 0.2220195084810257, -0.3325725197792053, -0.6167245507240295, 0.10935642570257187, 0.1607629507780075, -0.3595765233039856, -0.08049114048480988, 0.01632782444357872, -0.2801303267478943, 0.3050757646560669, -0.404274582862854, -0.15452711284160614, -0.3094390034675598, -0.043020665645599365, -0.11795500665903091, 0.009863823652267456, 0.09429232776165009, -0.09344060719013214, 0.06492868810892105, -0.04557749256491661, -0.18326634168624878, 0.3468407988548279, 0.2667628526687622, -0.2780412435531616, -0.16454313695430756, -0.1394767463207245, 0.018730074167251587, 0.22070713341236115, -0.0911146029829979, -0.36381131410598755, 0.2024422287940979, -0.07166599482297897, 0.6232895851135254, 0.18561887741088867, 0.10979308933019638, -0.3473641276359558, -0.11081404983997345, 0.2366856038570404, 0.0823843777179718, 0.1350485384464264, 0.17640289664268494, -0.2450098842382431, -0.31220749020576477, 0.34763985872268677, 0.1528954952955246, 0.016107723116874695, -0.22776605188846588, 0.0021593980491161346, 0.08934838324785233, 0.5888451337814331, -0.22970415651798248, -0.09715178608894348, 0.1738092303276062, 0.09596848487854004, -0.21133694052696228, 0.09827961027622223, 0.05116218328475952, -0.48662519454956055, 0.32258063554763794, -0.15657997131347656, -0.09879904985427856, 0.34404027462005615, -0.05982597917318344, -0.050428204238414764, -0.1761435717344284, -0.3390328884124756, 0.010752344503998756, 0.08094888180494308, 0.27488961815834045, 0.08349679410457611, -0.25352001190185547, -0.09278324991464615, 0.3571135997772217, -0.3864997327327728, -0.08579342067241669, -0.452096164226532, 0.19691795110702515, -0.08791301399469376, 0.0851733535528183, 0.07649043202400208, 0.1571476310491562, 0.10505963116884232, -0.10942097008228302, -0.18706952035427094, 0.5129071474075317, 0.32137805223464966, 0.23842811584472656, -0.08317121863365173, 0.3510250151157379, -0.15198779106140137, -0.04986724629998207, -0.100799061357975, 0.5829591155052185, -0.04382513463497162, -0.20621322095394135, -0.19411852955818176, 0.4879204034805298, -0.17299851775169373, 0.45350298285484314, -0.046705808490514755, 0.1363263726234436, 0.33660420775413513, -0.13140380382537842, -0.26763254404067993, -0.09463196992874146, 0.4545115828514099, -0.19809210300445557, -0.16696155071258545, 0.25300130248069763, -0.21332454681396484, 0.016329031437635422, 0.37338781356811523, -0.14407804608345032, 0.12599000334739685, -0.01514450740069151, 0.2458733320236206, -0.25525709986686707, -0.019807906821370125, 0.4922716021537781, 0.3632509708404541, 0.10118288546800613, -0.01794608309864998, -0.027317117899656296, -0.22946906089782715, -0.17444345355033875, 0.1194060891866684, 0.09737041592597961, 0.3296886086463928, 0.5370066165924072, 0.04139366000890732, -0.3653715252876282, -0.42670315504074097, -0.014849506318569183, 0.029029861092567444, 0.16562007367610931, -0.4414883255958557, -0.2537640333175659, -0.4441935420036316, 0.22884482145309448, -0.36373692750930786, -0.34369778633117676, -0.41294747591018677, -0.46489793062210083, 0.12106034904718399, 0.22816520929336548, -0.019953444600105286, 0.31932005286216736, -0.31116393208503723, 0.06834498047828674, -0.13192793726921082, 0.06054288148880005, 0.04005385935306549, -0.2777513563632965, -0.08171191811561584, -0.00463477149605751, 0.39574503898620605, 0.0018836185336112976, -0.05780568718910217, -0.30774983763694763, -0.06926273554563522, -0.14584055542945862, -0.16675734519958496, -0.030850593000650406, -0.11081242561340332, -0.07276416569948196, 0.2588978409767151, 0.30251556634902954, 0.14046284556388855, -0.38869380950927734, 0.24581819772720337, -0.03674057871103287, -0.2834915518760681, 0.18776169419288635, -0.1721363067626953, -0.018969867378473282, 0.10811285674571991, -0.3866267800331116, -0.09475814551115036, -0.3375903367996216, -0.010116366669535637, 0.0664086639881134, 0.27171841263771057, 0.25325071811676025, 0.08359870314598083, -0.0678555890917778, 0.13564614951610565, 0.2740625739097595, -0.32005536556243896, -0.8128384351730347, 0.4206301271915436, -0.02256610617041588, -0.26015704870224, -0.0509394071996212, 0.021456800401210785, 0.20189185440540314, 0.09643802046775818, -0.447293758392334, -0.2804219126701355, -0.06518134474754333, -0.31373003125190735, 0.1682509332895279, -0.3037390112876892, 0.33596259355545044, 0.11882729083299637, -0.05783242732286453, -0.2449941188097, -0.29492247104644775, 0.36702439188957214, 0.08588792383670807, 0.5151625871658325, -0.2128700166940689, 0.24133390188217163, 0.007219009101390839, 0.5949301719665527, 0.2273387312889099, 0.25829923152923584, 0.06178314983844757, 0.1863200068473816, 0.15315896272659302, -0.08177927881479263, -0.32451385259628296, 0.1173865795135498, -0.2651423513889313, 0.004429459571838379, 0.17893019318580627, 0.09480209648609161, -0.27328401803970337, -0.10168449580669403, 0.12972348928451538, -0.15126964449882507, -0.23114433884620667, 0.054218120872974396, -0.011172279715538025, 0.09992890059947968, 0.21456630527973175, 0.0766037255525589, -0.3172059953212738, -0.3501293361186981, 0.17319363355636597, 0.20115402340888977, -0.16538959741592407, -0.14242827892303467, -0.5950778722763062, 0.0641576498746872, 0.024696554988622665, 0.4123169183731079, 0.24996733665466309, 0.40311458706855774, 0.02293957769870758, -0.3206756114959717, 0.032547228038311005, -0.2579708695411682, 0.5845401287078857, -0.38343602418899536, 0.3248416781425476, 0.09771552681922913, -0.04718269035220146, -0.26306530833244324, -0.1649409532546997, -0.03805234283208847, -0.02566562592983246, 0.3266570270061493, 0.3074331283569336, -0.22692722082138062, -0.2858472764492035, 0.11576972901821136, 0.3378465175628662, -0.28785353899002075, -0.16827774047851562, -0.30979666113853455, -0.11089936643838882, -0.3571150302886963, -0.220131054520607, -0.3995669186115265, 0.34726592898368835, -0.16486725211143494, -0.08125010877847672, 0.1711757332086563, -0.14536435902118683, 0.2767299711704254, 0.03994345664978027, 0.30218273401260376, 0.36446112394332886, 0.2251102328300476, 0.024875562638044357, 0.3385651111602783, 0.22340187430381775, 0.4796164333820343, -0.1350191831588745, -0.09932582080364227, -0.056318722665309906, -0.21437682211399078, 0.04101409390568733, 0.22350284457206726, 0.023676317185163498, -0.0814056545495987, 0.2965891659259796, -0.11086255311965942, -0.04331018403172493, 0.039798811078071594, 0.28456127643585205, 0.029926884919404984, -0.339911550283432, -0.30180737376213074, 0.05950801819562912, 0.0007750391960144043, -0.178718701004982, 0.25061193108558655, -0.17726197838783264, -0.07451876997947693, 0.040159210562705994, 0.3154737651348114, 0.8823341131210327, 0.07819698750972748, 0.08893020451068878, 0.08175110816955566, -0.1757192611694336, -0.17175552248954773, -0.41997194290161133, 0.17547638714313507, -0.27137696743011475, -0.2802044749259949, -0.07895620912313461, -0.20289665460586548, 0.11615651845932007, 0.37238189578056335, -0.014083877205848694, 0.329421728849411, 0.050759002566337585, 0.17186573147773743, 0.01520998403429985, 0.09282514452934265, -0.12029623985290527, -0.11446984112262726, 0.042976610362529755, 0.12037351727485657, -0.1465318500995636, 0.14474810659885406, -0.12308220565319061, -0.04944872111082077, 0.20852385461330414, -0.2759682536125183, -0.1316169798374176, 0.19848015904426575, -0.12620288133621216, 0.4007566273212433, 0.24633680284023285, -0.20694474875926971, -0.2900717556476593, 0.43465325236320496, 0.09330102801322937, -0.06741834431886673, -0.25641509890556335, 0.1446239948272705, 0.35095179080963135, 0.09362156689167023, -0.09197132289409637, -0.0624779649078846, 0.3511781692504883, -0.1872357726097107, -0.28137290477752686, 0.010437866672873497, -0.15174205601215363, -0.6179362535476685, -0.06817671656608582, -0.12640322744846344, 0.09847813844680786, -0.1545957624912262, -0.15352633595466614, 0.17866326868534088, 0.05463963747024536, -0.3420567810535431, 0.12213948369026184, 0.13303323090076447, -0.3626447916030884, 0.3028176426887512, 0.12935706973075867, -0.2770991623401642, -0.09441603720188141, 0.5548004508018494, 0.038673706352710724, -0.0010042712092399597, 0.7191023230552673, 0.0710802674293518, -0.12040147185325623, -0.28456175327301025, 0.3099565804004669, 0.23410800099372864, -0.21222254633903503, -0.06823611259460449, -0.11812537908554077, -0.054992541670799255, 0.04018978774547577, 0.5675615072250366, 0.2766493260860443, 0.3637251555919647, -0.006476342678070068, -0.6050379276275635, -0.12225134670734406, 0.05055101960897446, 0.2656697630882263, 0.3840140998363495, -0.38608038425445557, -0.0716589093208313, -0.12057110667228699, 0.22048445045948029, -0.297700434923172, 0.013633478432893753, -0.3014141619205475, -0.00141247920691967, -0.3319448232650757, -0.05958181247115135, 0.10338792949914932, 0.04664796590805054, 0.10386359691619873, -0.22606587409973145, -0.2882827818393707, -0.16363835334777832, -0.21585240960121155, 0.1587163805961609, 0.036347825080156326, -0.06325793266296387, 0.06980352103710175, -0.09396739304065704, -0.10666456818580627, -0.1600661426782608, -0.05299337953329086, 0.20803925395011902, -0.09534866362810135, 0.12578871846199036, 0.23328405618667603, -0.1949186623096466, -0.148782879114151, -0.26173651218414307, -0.29630932211875916, -0.09603363275527954, 0.09083161503076553, -0.10212580859661102, 0.05359441414475441, -0.16965897381305695, 0.4369633197784424, 0.17010486125946045, 0.024544937536120415, -0.0090560894459486, 0.2811066806316376, -0.28916239738464355, -0.09701251983642578, 0.2284565418958664, 0.31372764706611633, 0.3578687906265259, -0.21049046516418457, 0.19131797552108765, 0.0008261241018772125, 0.2238861620426178, -0.29284971952438354, -0.15597184002399445, 0.36678391695022583, -0.11205199360847473, 0.014371298253536224, 0.0317222885787487, -0.07169222831726074, -0.3091433048248291, 0.5745689272880554, 0.10009535402059555, -0.0016480274498462677, -0.39153921604156494, 0.18743008375167847, 0.32771164178848267, -0.3724376857280731, -0.06963902711868286, -0.004598131403326988, -0.2296411544084549, 0.21191495656967163, -0.21458815038204193, -0.11230659484863281, 0.4519321322441101, 0.05014949291944504, 0.2505688965320587, -0.12845680117607117, -0.49289798736572266, 0.0944712683558464, 0.19546183943748474, -0.09124338626861572, 0.017728932201862335, 0.03484833240509033, 0.4064953327178955, -0.23367738723754883, 0.1827874779701233, -0.7026891112327576, -0.018088074401021004, 0.023112256079912186, -0.2515980005264282, -0.3489800691604614, -0.3787187337875366, -0.12434159964323044, 0.16217535734176636, -0.00769336661323905, 0.12232820689678192, 0.3172169029712677, 0.027880828827619553, -0.030228085815906525, -0.5480281710624695, -0.15544000267982483, -0.07214045524597168, -0.13253247737884521, -0.254649817943573, 0.21105952560901642, 0.38174402713775635, -0.11686673760414124, 0.34111884236335754, 0.23288898169994354, 0.3793443739414215, 0.39683040976524353, 0.01588558405637741, -0.0075068287551403046, -0.05471830815076828, 0.027584664523601532, -0.15111683309078217, 0.7324588894844055, 0.16688397526741028, -0.13733433187007904, 0.47673866152763367, 0.05216588079929352, -0.15826722979545593, 0.07005549967288971, -0.014277614653110504, -0.09278227388858795, -0.0598386786878109, 0.7789545059204102, 0.03880936652421951, 0.1453847438097, -0.07198227941989899, 0.23361554741859436, -0.30821138620376587, -0.3224423825740814, 0.08496719598770142, 0.09100127220153809, 0.2019016593694687, -0.02582462877035141, 0.07348223030567169, -0.18886920809745789, 0.6922150254249573, -0.09830789268016815, -0.22061030566692352, -0.29968199133872986, -0.25964102149009705, -0.8195847272872925, 0.2501329183578491, -0.14128224551677704, 0.34247344732284546, -0.06899823248386383, 0.15627403557300568, 0.1727871298789978, 0.28548476099967957, 0.25758808851242065, -0.21299955248832703, -0.18637093901634216, -0.05215883255004883, -0.397325336933136, 0.07390463352203369, 0.42342817783355713, 0.034984223544597626, -0.006968073546886444, -0.23557740449905396, 0.18899865448474884, 0.26316699385643005, 0.04243064671754837, 0.13426749408245087, 0.011174485087394714, -0.03270817920565605, -0.024686088785529137, -0.08121952414512634, 0.14334693551063538, 0.5623224973678589, -0.003130108118057251, -0.011459063738584518, -0.19893956184387207, -0.2911088764667511, -0.062097303569316864, 0.18480458855628967, -0.05020368471741676, 0.5143121480941772, -0.18610608577728271, -0.030831774696707726, -0.22205281257629395, 0.2004484385251999, -0.05614829435944557, -0.2992597818374634, -0.12875968217849731, 0.03251059353351593, -0.012771956622600555, 0.08433167636394501, 0.11554522812366486, 0.05059262737631798, 0.08158068358898163, 0.20930127799510956, -0.05611585080623627, -0.05942429229617119, 0.7326382994651794, -0.11332474648952484, -0.1869966685771942, -0.36494702100753784, 0.13832935690879822, -0.3404732942581177, -0.06487318873405457, -0.44810208678245544, 0.09004972875118256, 0.3190639317035675, 0.12636145949363708, -0.22607913613319397, 0.14004382491111755, -0.2574896216392517, 0.02727096527814865, -0.0578920915722847, 0.0775429829955101, 0.2296062707901001, -0.2987924814224243, -0.11000952124595642, -0.13581794500350952 ]
https://github.com/huggingface/datasets/issues/1872
Hi ! Indeed if you add a column to a formatted dataset, then the new dataset gets a new formatting in which: ``` new formatted columns = (all columns - previously unformatted columns) ``` Therefore the new column is going to be formatted using the `torch` formatting. If you want your new column to be unformatted you can re-run this line: ```python data.set_format("torch", columns=["some_integer_column1", "some_integer_column2"], output_all_columns=True) ```
Adding a new column to the dataset after set_format was called
Hi, thanks for the nice library. I'm in the process of creating a custom dataset, which has a mix of tensors and lists of strings. I stumbled upon an error and want to know if its a problem on my side. I load some lists of strings and integers, then call `data.set_format("torch", columns=["some_integer_column1", "some_integer_column2"], output_all_columns=True)`. This converts the integer columns into tensors, but keeps the lists of strings as they are. I then call `map` to add a new column to my dataset, which is a **list of strings**. Once I iterate through my dataset, I get an error that the new column can't be converted into a tensor (which is probably caused by `set_format`). Below some pseudo code: ```python def augment_func(sample: Dict) -> Dict: # do something return { "some_integer_column1" : augmented_data["some_integer_column1"], # <-- tensor "some_integer_column2" : augmented_data["some_integer_column2"], # <-- tensor "NEW_COLUMN": targets, # <-- list of strings } data = datasets.load_dataset(__file__, data_dir="...", split="train") data.set_format("torch", columns=["some_integer_column1", "some_integer_column2"], output_all_columns=True) augmented_dataset = data.map(augment_func, batched=False) for sample in augmented_dataset: print(sample) # fails ``` and the exception: ```python Traceback (most recent call last): File "dataset.py", line 487, in <module> main() File "dataset.py", line 471, in main for sample in augmented_dataset: File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 697, in __iter__ yield self._getitem( File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1069, in _getitem outputs = self._convert_outputs( File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs v = map_nested(command, v, **map_nested_kwargs) File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in command return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in <listcomp> return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in command return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in <listcomp> return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 851, in command return torch.tensor(x, **format_kwargs) TypeError: new(): invalid data type 'str' ``` Thanks!
67
Adding a new column to the dataset after set_format was called Hi, thanks for the nice library. I'm in the process of creating a custom dataset, which has a mix of tensors and lists of strings. I stumbled upon an error and want to know if its a problem on my side. I load some lists of strings and integers, then call `data.set_format("torch", columns=["some_integer_column1", "some_integer_column2"], output_all_columns=True)`. This converts the integer columns into tensors, but keeps the lists of strings as they are. I then call `map` to add a new column to my dataset, which is a **list of strings**. Once I iterate through my dataset, I get an error that the new column can't be converted into a tensor (which is probably caused by `set_format`). Below some pseudo code: ```python def augment_func(sample: Dict) -> Dict: # do something return { "some_integer_column1" : augmented_data["some_integer_column1"], # <-- tensor "some_integer_column2" : augmented_data["some_integer_column2"], # <-- tensor "NEW_COLUMN": targets, # <-- list of strings } data = datasets.load_dataset(__file__, data_dir="...", split="train") data.set_format("torch", columns=["some_integer_column1", "some_integer_column2"], output_all_columns=True) augmented_dataset = data.map(augment_func, batched=False) for sample in augmented_dataset: print(sample) # fails ``` and the exception: ```python Traceback (most recent call last): File "dataset.py", line 487, in <module> main() File "dataset.py", line 471, in main for sample in augmented_dataset: File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 697, in __iter__ yield self._getitem( File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1069, in _getitem outputs = self._convert_outputs( File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs v = map_nested(command, v, **map_nested_kwargs) File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in command return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in <listcomp> return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in command return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in <listcomp> return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 851, in command return torch.tensor(x, **format_kwargs) TypeError: new(): invalid data type 'str' ``` Thanks! Hi ! Indeed if you add a column to a formatted dataset, then the new dataset gets a new formatting in which: ``` new formatted columns = (all columns - previously unformatted columns) ``` Therefore the new column is going to be formatted using the `torch` formatting. If you want your new column to be unformatted you can re-run this line: ```python data.set_format("torch", columns=["some_integer_column1", "some_integer_column2"], output_all_columns=True) ```
[ -0.16383753716945648, -0.17487572133541107, -0.04017322510480881, -0.049234017729759216, 0.4729720950126648, 0.26253455877304077, 0.6921061873435974, 0.41775843501091003, 0.1687507927417755, -0.2805865705013275, 0.14210663735866547, 0.3377908170223236, -0.23404023051261902, -0.025900427252054214, 0.19781309366226196, -0.10264177620410919, 0.1268424689769745, 0.06389310210943222, 0.2461462914943695, 0.05868804454803467, -0.3777550458908081, 0.10323602706193924, -0.15402095019817352, -0.20580554008483887, -0.17656710743904114, -0.3008016347885132, -0.0024785175919532776, -0.19669142365455627, -0.16025544703006744, -0.20897352695465088, 0.18717193603515625, -0.2391696721315384, -0.0005561113357543945, 0.6491599678993225, -0.00011786859977291897, 0.12409772723913193, 0.1696619838476181, 0.03161463886499405, -0.039999932050704956, -0.1928999274969101, -0.22417865693569183, -0.3875739872455597, -0.1664157211780548, -0.3292912244796753, 0.1402372419834137, -0.09008610248565674, -0.4265715777873993, -0.7763674259185791, 0.26121753454208374, 0.5016534328460693, 0.16581258177757263, 0.17791414260864258, -0.02439427375793457, -0.04709223285317421, 0.2402331531047821, 0.2883871793746948, -0.21559303998947144, -0.018273338675498962, -0.01076333224773407, 0.1259520798921585, 0.5092814564704895, 0.19369229674339294, -0.28428322076797485, 0.1020677238702774, 0.1063983365893364, 0.22411035001277924, -0.2291463315486908, -0.04259967803955078, -0.02922024205327034, 0.19933819770812988, 0.6996715664863586, -0.25418055057525635, -0.3642948865890503, -0.27967125177383423, 0.07940981537103653, -0.44020533561706543, 0.11907044798135757, -0.015583852306008339, -0.077875055372715, -0.11210897564888, 0.09130001813173294, -0.183941051363945, -0.03516498953104019, 0.34123092889785767, -0.18563489615917206, 0.0189565010368824, -0.03036240115761757, 0.19209307432174683, -0.14799919724464417, -0.03975792974233627, -0.14747056365013123, 0.12621234357357025, 0.09437912702560425, 0.2419147491455078, -0.4515654742717743, -0.1876331865787506, 0.03364340588450432, -0.5349576473236084, -0.2338588386774063, -0.1157703548669815, 0.17725437879562378, 0.0031547825783491135, -0.18798309564590454, 0.10168685019016266, 0.18377374112606049, -0.024384379386901855, -0.2377842217683792, 0.2027951180934906, -0.05897106975317001, -0.2029018998146057, 0.07862769067287445, -0.10895051062107086, 0.22190465033054352, -0.2733575105667114, 0.17202648520469666, 0.005271565169095993, 0.41576188802719116, 0.11819589138031006, -0.07700137048959732, 0.2277686893939972, -0.2703931927680969, -0.2729818522930145, 0.03842894360423088, 0.09168928861618042, -0.027375709265470505, 0.128010094165802, 0.1400444656610489, 0.2697376310825348, -0.030683349817991257, 0.1996583342552185, -0.05180399864912033, 0.007322255522012711, -0.18362849950790405, 0.045694462954998016, 0.10251682996749878, 0.11233857274055481, -0.1570652276277542, 0.22188466787338257, -0.13670741021633148, -0.06650391221046448, 0.0907951220870018, -0.25953221321105957, 0.34435805678367615, 0.19512273371219635, -0.14251281321048737, 0.3772318661212921, 0.17108504474163055, -0.03731956332921982, -0.17327211797237396, 0.2277604639530182, -0.25273746252059937, -0.32131481170654297, -0.4081803560256958, 0.09443038702011108, -0.036226026713848114, -0.10987347364425659, 0.08375556766986847, 0.169253408908844, 0.562644362449646, -0.19145800173282623, 0.18163466453552246, -0.2311050146818161, -0.35397106409072876, -0.24200792610645294, -0.03275999799370766, 0.10817144811153412, -0.6691621541976929, 0.09415782988071442, 0.07911168783903122, 0.3833469748497009, 0.07722747325897217, 0.18915581703186035, -0.06840375810861588, 0.33595484495162964, -0.22923460602760315, 0.044772908091545105, 0.6186288595199585, 0.050069503486156464, -0.14360171556472778, 0.06537522375583649, -0.12009885907173157, 0.14868369698524475, -0.07319934666156769, 0.18949542939662933, 0.08454892039299011, -0.08502799272537231, 0.37035512924194336, 0.010315872728824615, -0.13372349739074707, -0.11369961500167847, -0.013039663434028625, 0.1656283438205719, 0.5390791893005371, -0.20646896958351135, 0.04254625737667084, 0.179086834192276, -0.12506335973739624, 0.22829952836036682, -0.01728552207350731, -0.033775538206100464, -0.007314402610063553, 0.10341182351112366, 0.27518942952156067, 0.06539364904165268, 0.035575635731220245, -0.2091536968946457, -0.3796859681606293, -0.008060887455940247, 0.43300098180770874, 0.021443460136651993, -0.008066467940807343, -0.1484537422657013, -0.3776356875896454, 0.007541671395301819, -0.011138638481497765, 0.29679447412490845, 0.017565373331308365, 0.1665642261505127, -0.16422776877880096, -0.17727723717689514, -0.3389023542404175, 0.09492773562669754, -0.1961664855480194, -0.05137048661708832, -0.24343156814575195, 0.12822794914245605, 0.1284630447626114, -0.27291715145111084, -0.19489960372447968, 0.38670435547828674, 0.13576427102088928, -0.02304716408252716, -0.10443723201751709, 0.2309466302394867, 0.07567578554153442, -0.12512969970703125, -0.4924202561378479, 0.200178861618042, 0.13326048851013184, 0.1238413155078888, -0.16648980975151062, -0.1851828694343567, -0.011389203369617462, -0.21678349375724792, -0.07545924931764603, 0.05073641985654831, 0.004953859373927116, 0.2880735397338867, -0.3090748190879822, 0.1987280696630478, 0.10299379378557205, 0.0727730542421341, -0.21826642751693726, -0.3290409743785858, -0.056058619171381, 0.021847732365131378, 0.04404556751251221, -0.2663614749908447, -0.3668256402015686, 0.01636553928256035, 0.6044391393661499, 0.00327291339635849, 0.129865825176239, 0.14214934408664703, 0.1310875117778778, 0.08321395516395569, 0.010853009298443794, 0.08902925252914429, 0.4790547490119934, 0.08145517110824585, -0.06634888052940369, 0.023984769359230995, -0.2592504918575287, -0.09817523509263992, 0.04037714749574661, 0.29141223430633545, 0.20579847693443298, 0.08173410594463348, 0.28356388211250305, 0.009147830307483673, 0.082244873046875, 0.0117117241024971, 0.23269924521446228, 0.16177178919315338, -0.5018967986106873, -0.0692816898226738, -0.1272544264793396, 0.26582056283950806, -0.29411953687667847, -0.6862949728965759, 0.014457527548074722, -0.3176655173301697, -0.22213807702064514, 0.0013732295483350754, 0.024883583188056946, 0.053293757140636444, -0.03812932223081589, 0.10134769231081009, 0.22659367322921753, -0.44100669026374817, -0.09321035444736481, -0.25462040305137634, -0.008384703658521175, 0.014089085161685944, 0.3546910881996155, -0.32203564047813416, 0.42347824573516846, 0.14503374695777893, -0.1792607307434082, -0.11536365002393723, -0.30000409483909607, -0.017930997535586357, -0.38842037320137024, -0.06969688087701797, 0.2577563524246216, 0.151636004447937, -0.1477590650320053, -0.18886816501617432, 0.3712126910686493, 0.1980447769165039, 0.20007215440273285, 0.19806566834449768, 0.1245260089635849, 0.05691684037446976, -0.004399925470352173, -0.5688670873641968, -0.10753877460956573, -0.042035069316625595, 0.08254750072956085, -0.08781195431947708, 0.0984743982553482, 0.021209850907325745, 0.2226237654685974, 0.1303483098745346, 0.23988986015319824, -0.08949263393878937, -0.37932831048965454, -0.0635957345366478, 0.39752495288848877, -0.3226930499076843, -0.20732714235782623, 0.13975116610527039, -0.02744487300515175, 0.1810929775238037, 0.2993004620075226, -0.3082208037376404, -0.15085284411907196, -0.13113556802272797, 0.17326846718788147, -0.28093016147613525, -0.09947197884321213, 0.5064874291419983, 0.012028731405735016, -0.055141691118478775, -0.14044681191444397, -0.21178054809570312, 0.19564422965049744, 0.27001845836639404, 0.06339917331933975, 0.26286011934280396, 0.5470187067985535, 0.08846795558929443, 0.30084943771362305, 0.07860241085290909, -0.4974919557571411, 0.25507232546806335, -0.30017057061195374, 0.1966456174850464, -0.2971631586551666, -0.393725723028183, -0.05021773278713226, -0.23420275747776031, -0.02780957892537117, -0.14901763200759888, -0.16024525463581085, -0.032232873141765594, 0.014737285673618317, 0.5779082775115967, -0.15646708011627197, -0.15841232240200043, 0.3528255820274353, -0.4837838411331177, 0.3728363513946533, 0.044386379420757294, 0.15143293142318726, -0.5375986695289612, -0.1796581894159317, 0.12744376063346863, -0.08100821077823639, 0.21002443134784698, -0.1992974877357483, -0.45689815282821655, -0.18568116426467896, -0.42433518171310425, 0.2998925447463989, 0.3504032790660858, 0.7206828594207764, -0.14286401867866516, -0.04888869449496269, -0.10481034219264984, 0.15054123103618622, 0.8693701028823853, -0.513111412525177, -0.5122168064117432, 0.4151347875595093, 0.2547287940979004, -0.6216636300086975, -0.005699954926967621, -0.17356914281845093, 0.09025628864765167, 0.07680608332157135, 0.695124626159668, -0.01042427122592926, 0.14013808965682983, 0.1530415415763855, 0.33339691162109375, 0.0032472312450408936, -0.11882083117961884, -0.1659088283777237, -0.17620640993118286, -0.15437421202659607, 0.09381167590618134, 0.14684659242630005, 0.3185719847679138, 0.3098248243331909, -0.2787635326385498, -0.08227957040071487, -0.19797563552856445, 0.2580941617488861, -0.1493849903345108, 0.20948877930641174, 0.46668291091918945, 0.1809091866016388, 0.07322259992361069, -0.02073945477604866, -0.013486209325492382, 0.21051441133022308, -0.20589004456996918, -0.042640745639801025, 0.15157532691955566, -0.3012668192386627, 0.313480019569397, 0.16505998373031616, -0.019084548577666283, 0.18922613561153412, -0.23296812176704407, -0.04208382964134216, -0.33109039068222046, 0.16217365860939026, 0.5876701474189758, 0.21077191829681396, -0.35791823267936707, -0.7363804578781128, 0.20133861899375916, 0.052803874015808105, 0.07946555316448212, 0.5957027077674866, -0.010087098926305771, -0.1674923300743103, 0.4298979341983795, 0.12787356972694397, 0.8010365962982178, -0.23211601376533508, 0.021928196772933006, 0.2473871260881424, -0.19637760519981384, 0.446696937084198, -0.21972092986106873, 0.20859232544898987, -0.11051701754331589, -0.05489645153284073, -0.16730225086212158, -0.23236188292503357, 0.3513603210449219, 0.004541268106549978, -0.18060624599456787, -0.1170174777507782, -0.21283957362174988, 0.6637676358222961, -0.022808950394392014, 0.10520052909851074, 0.14875110983848572, -0.45283228158950806, -0.3152979910373688, 0.10435329377651215, -0.1289207488298416, -0.20215359330177307, -0.09438225626945496, 0.1820894032716751, -0.17839258909225464, -0.20848940312862396, -0.36079278588294983, -0.06635645031929016, -0.06901893764734268, -0.046882469207048416, 0.04526019096374512, -0.6082693338394165, 0.4602430462837219, 0.3592822551727295, 0.529190182685852, 0.08798389136791229, -0.10305680334568024, -0.056539714336395264, 0.025503210723400116, 0.1595403254032135, 0.27833715081214905, -0.4173799753189087, 0.3079518973827362, 0.19745850563049316, -0.15848016738891602, 0.3220858871936798, 0.09931957721710205, -0.2854143977165222, -0.1614234745502472, 0.09343145787715912, 0.5090247392654419, -0.6628910303115845, -0.3925189971923828, 0.05861325562000275, 0.2449558973312378, -0.25783443450927734, 0.09194356203079224, -0.09225925803184509, 0.013855066150426865, 0.37625980377197266, -0.32617416977882385, -0.06391986459493637, 0.06400534510612488, 0.267851322889328, 0.013387415558099747, -0.07379259914159775, 0.5867013931274414, 0.2021549642086029, -0.1515665352344513, -0.11590182781219482, 0.024291321635246277, 0.10935533791780472, -0.2628641426563263, 0.06737236678600311, -0.01612786203622818, 0.1062919944524765, -0.13520650565624237, 0.0582708902657032, -0.16055583953857422, 0.20475032925605774, -0.01743723452091217, -0.27580195665359497, -0.11922933906316757, -0.014102395623922348, 0.2751239240169525, 0.26636382937431335, 0.13594719767570496, 0.239853635430336, -0.13819542527198792, 0.04370885342359543, -0.23512548208236694, -0.11142700910568237, 0.11527601629495621, 0.21098068356513977, 0.05360232666134834, 0.05638420209288597, 0.15396559238433838, -0.40750187635421753, 0.08706916868686676, 0.4069390296936035, 0.028960302472114563, -0.2118222415447235, -0.14454379677772522, 0.1017586886882782, 0.11740295588970184, -0.252389520406723, 0.18900853395462036, -0.29749101400375366, -0.17476898431777954, -0.27857506275177, 0.019304998219013214, 0.3081173896789551, -0.2520095705986023, -0.005121130496263504, -0.12064875662326813, 0.145906463265419, -0.008855342864990234, -0.03156706690788269, -0.19700416922569275, 0.031006811186671257, 0.1981578916311264, 0.21928830444812775, 0.20221209526062012, 0.04403844475746155, -0.31462228298187256, 0.21780095994472504, 0.18436139822006226, 0.05631876364350319, 0.24942052364349365, -0.4320303797721863, 0.013722240924835205, 0.0009932108223438263, 0.3522244691848755, -0.024594545364379883, -0.21637073159217834, -0.019651662558317184, 0.22257541120052338, 0.11508090049028397, -0.23638077080249786, 0.05469820648431778, 0.3840655982494354, 0.11357831954956055, 0.16405096650123596, 0.2766045033931732, 0.3523634970188141, 0.14985010027885437, -0.29697781801223755, -0.028338421136140823, 0.10192502290010452, -0.3147270977497101, 0.31778162717819214, 0.6366593837738037, -0.009695582091808319, 0.043276846408843994, 0.21216168999671936, 0.03850826993584633, -0.01843452826142311, 0.2452433854341507, 0.15469565987586975, 0.13236655294895172, 0.5537688732147217, -0.023323502391576767, -0.1268622726202011, -0.3789403438568115, 0.384928435087204, 0.06552629172801971, 0.1893932819366455, 0.3565954566001892, 0.2170318067073822, 0.4540139436721802, -0.13325360417366028, -0.04673619940876961, -0.027215629816055298, 0.0026211831718683243, -0.14090918004512787, 0.04778602719306946, -0.15366974472999573, 0.025579556822776794, 0.061330437660217285, -0.2604687809944153, -0.06986487656831741, -0.24685777723789215, 0.29723986983299255, -0.06477491557598114, 0.08989015221595764, 0.011609021574258804, -0.08671379089355469, -0.14507316052913666, -0.10232488811016083, -0.2088187336921692, 0.1428879201412201, -0.000056121498346328735, -0.0023569222539663315, 0.1685062199831009, 0.07970374822616577, 0.31243711709976196, 0.3186620771884918, 0.03195462003350258, 0.35509005188941956, 0.10735637694597244, -0.01895305886864662, 0.2020028978586197, 0.11078032851219177, -0.11524075269699097, 0.045966971665620804, 0.23201899230480194, 0.12055926024913788, -0.10504692792892456, 0.12724705040454865, 0.08605539798736572, 0.3713683485984802, -0.17424508929252625, 0.1659412384033203, -0.018698006868362427, -0.2119491696357727, -0.28120091557502747, -0.025691796094179153, -0.053664762526750565, -0.2551567554473877, 0.5833736062049866, -0.017141688615083694, 0.0827367752790451, 0.1473909616470337, 0.07895226776599884, 0.016913950443267822, 0.17265872657299042, 0.12428313493728638, -0.05624152719974518, -0.21940797567367554, -0.11051975935697556, -0.449584424495697, 0.07772678136825562, -0.24442070722579956, -0.1423134207725525, 0.13314008712768555, 0.10837426036596298, 0.34263044595718384, -0.07151198387145996, 0.3546711206436157, -0.4199872314929962, -0.32788002490997314, 0.23540276288986206, -0.0737498551607132, -0.3474460244178772, -0.11585766077041626, -0.0218217670917511, 0.003688514232635498, -0.19462230801582336, 0.1039046198129654, 0.30520275235176086, -0.013154935091733932, -0.28851383924484253, -0.05214906483888626, -0.1672358214855194, -0.053973712027072906, 0.5608683228492737, 0.0929081067442894, 0.42172157764434814, -0.1400010734796524, 0.06613261252641678, -0.05677943304181099, 0.00037032365798950195, -0.21703431010246277, 0.4287865459918976, -0.17633748054504395, 0.49280399084091187, -0.24319729208946228, 0.08790326118469238, -0.35955125093460083, 0.23336409032344818, -0.009680882096290588, 0.0360780730843544, -0.2453807145357132, 0.4265151023864746, -0.18227744102478027, -0.051156528294086456, 0.16051653027534485, 0.30114349722862244, 0.09871765971183777, 0.6137598752975464, -0.18459293246269226, -0.22325021028518677, 0.4984789192676544, -0.4976068139076233, -0.4248707890510559, 0.08147484064102173, -0.028682708740234375, 0.1198045164346695, 0.06397304683923721, -0.5664728283882141, -0.29584574699401855, 0.41869306564331055, -0.09940408170223236, -0.007199883460998535, 0.08870915323495865, -0.021502066403627396, 0.13684381544589996, -0.1779536008834839, 0.19248449802398682, -0.1696065366268158, -0.15808306634426117, -0.04217078164219856, -0.28229716420173645 ]
https://github.com/huggingface/datasets/issues/1872
Ok cool :) Also I just did a PR to mention this behavior in the documentation
Adding a new column to the dataset after set_format was called
Hi, thanks for the nice library. I'm in the process of creating a custom dataset, which has a mix of tensors and lists of strings. I stumbled upon an error and want to know if its a problem on my side. I load some lists of strings and integers, then call `data.set_format("torch", columns=["some_integer_column1", "some_integer_column2"], output_all_columns=True)`. This converts the integer columns into tensors, but keeps the lists of strings as they are. I then call `map` to add a new column to my dataset, which is a **list of strings**. Once I iterate through my dataset, I get an error that the new column can't be converted into a tensor (which is probably caused by `set_format`). Below some pseudo code: ```python def augment_func(sample: Dict) -> Dict: # do something return { "some_integer_column1" : augmented_data["some_integer_column1"], # <-- tensor "some_integer_column2" : augmented_data["some_integer_column2"], # <-- tensor "NEW_COLUMN": targets, # <-- list of strings } data = datasets.load_dataset(__file__, data_dir="...", split="train") data.set_format("torch", columns=["some_integer_column1", "some_integer_column2"], output_all_columns=True) augmented_dataset = data.map(augment_func, batched=False) for sample in augmented_dataset: print(sample) # fails ``` and the exception: ```python Traceback (most recent call last): File "dataset.py", line 487, in <module> main() File "dataset.py", line 471, in main for sample in augmented_dataset: File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 697, in __iter__ yield self._getitem( File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1069, in _getitem outputs = self._convert_outputs( File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs v = map_nested(command, v, **map_nested_kwargs) File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in command return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in <listcomp> return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in command return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in <listcomp> return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 851, in command return torch.tensor(x, **format_kwargs) TypeError: new(): invalid data type 'str' ``` Thanks!
16
Adding a new column to the dataset after set_format was called Hi, thanks for the nice library. I'm in the process of creating a custom dataset, which has a mix of tensors and lists of strings. I stumbled upon an error and want to know if its a problem on my side. I load some lists of strings and integers, then call `data.set_format("torch", columns=["some_integer_column1", "some_integer_column2"], output_all_columns=True)`. This converts the integer columns into tensors, but keeps the lists of strings as they are. I then call `map` to add a new column to my dataset, which is a **list of strings**. Once I iterate through my dataset, I get an error that the new column can't be converted into a tensor (which is probably caused by `set_format`). Below some pseudo code: ```python def augment_func(sample: Dict) -> Dict: # do something return { "some_integer_column1" : augmented_data["some_integer_column1"], # <-- tensor "some_integer_column2" : augmented_data["some_integer_column2"], # <-- tensor "NEW_COLUMN": targets, # <-- list of strings } data = datasets.load_dataset(__file__, data_dir="...", split="train") data.set_format("torch", columns=["some_integer_column1", "some_integer_column2"], output_all_columns=True) augmented_dataset = data.map(augment_func, batched=False) for sample in augmented_dataset: print(sample) # fails ``` and the exception: ```python Traceback (most recent call last): File "dataset.py", line 487, in <module> main() File "dataset.py", line 471, in main for sample in augmented_dataset: File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 697, in __iter__ yield self._getitem( File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1069, in _getitem outputs = self._convert_outputs( File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs v = map_nested(command, v, **map_nested_kwargs) File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in command return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in <listcomp> return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in command return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 850, in <listcomp> return [map_nested(command, i, **map_nested_kwargs) for i in x] File "lib/python3.8/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "lib/python3.8/site-packages/datasets/arrow_dataset.py", line 851, in command return torch.tensor(x, **format_kwargs) TypeError: new(): invalid data type 'str' ``` Thanks! Ok cool :) Also I just did a PR to mention this behavior in the documentation
[ -0.16383753716945648, -0.17487572133541107, -0.04017322510480881, -0.049234017729759216, 0.4729720950126648, 0.26253455877304077, 0.6921061873435974, 0.41775843501091003, 0.1687507927417755, -0.2805865705013275, 0.14210663735866547, 0.3377908170223236, -0.23404023051261902, -0.025900427252054214, 0.19781309366226196, -0.10264177620410919, 0.1268424689769745, 0.06389310210943222, 0.2461462914943695, 0.05868804454803467, -0.3777550458908081, 0.10323602706193924, -0.15402095019817352, -0.20580554008483887, -0.17656710743904114, -0.3008016347885132, -0.0024785175919532776, -0.19669142365455627, -0.16025544703006744, -0.20897352695465088, 0.18717193603515625, -0.2391696721315384, -0.0005561113357543945, 0.6491599678993225, -0.00011786859977291897, 0.12409772723913193, 0.1696619838476181, 0.03161463886499405, -0.039999932050704956, -0.1928999274969101, -0.22417865693569183, -0.3875739872455597, -0.1664157211780548, -0.3292912244796753, 0.1402372419834137, -0.09008610248565674, -0.4265715777873993, -0.7763674259185791, 0.26121753454208374, 0.5016534328460693, 0.16581258177757263, 0.17791414260864258, -0.02439427375793457, -0.04709223285317421, 0.2402331531047821, 0.2883871793746948, -0.21559303998947144, -0.018273338675498962, -0.01076333224773407, 0.1259520798921585, 0.5092814564704895, 0.19369229674339294, -0.28428322076797485, 0.1020677238702774, 0.1063983365893364, 0.22411035001277924, -0.2291463315486908, -0.04259967803955078, -0.02922024205327034, 0.19933819770812988, 0.6996715664863586, -0.25418055057525635, -0.3642948865890503, -0.27967125177383423, 0.07940981537103653, -0.44020533561706543, 0.11907044798135757, -0.015583852306008339, -0.077875055372715, -0.11210897564888, 0.09130001813173294, -0.183941051363945, -0.03516498953104019, 0.34123092889785767, -0.18563489615917206, 0.0189565010368824, -0.03036240115761757, 0.19209307432174683, -0.14799919724464417, -0.03975792974233627, -0.14747056365013123, 0.12621234357357025, 0.09437912702560425, 0.2419147491455078, -0.4515654742717743, -0.1876331865787506, 0.03364340588450432, -0.5349576473236084, -0.2338588386774063, -0.1157703548669815, 0.17725437879562378, 0.0031547825783491135, -0.18798309564590454, 0.10168685019016266, 0.18377374112606049, -0.024384379386901855, -0.2377842217683792, 0.2027951180934906, -0.05897106975317001, -0.2029018998146057, 0.07862769067287445, -0.10895051062107086, 0.22190465033054352, -0.2733575105667114, 0.17202648520469666, 0.005271565169095993, 0.41576188802719116, 0.11819589138031006, -0.07700137048959732, 0.2277686893939972, -0.2703931927680969, -0.2729818522930145, 0.03842894360423088, 0.09168928861618042, -0.027375709265470505, 0.128010094165802, 0.1400444656610489, 0.2697376310825348, -0.030683349817991257, 0.1996583342552185, -0.05180399864912033, 0.007322255522012711, -0.18362849950790405, 0.045694462954998016, 0.10251682996749878, 0.11233857274055481, -0.1570652276277542, 0.22188466787338257, -0.13670741021633148, -0.06650391221046448, 0.0907951220870018, -0.25953221321105957, 0.34435805678367615, 0.19512273371219635, -0.14251281321048737, 0.3772318661212921, 0.17108504474163055, -0.03731956332921982, -0.17327211797237396, 0.2277604639530182, -0.25273746252059937, -0.32131481170654297, -0.4081803560256958, 0.09443038702011108, -0.036226026713848114, -0.10987347364425659, 0.08375556766986847, 0.169253408908844, 0.562644362449646, -0.19145800173282623, 0.18163466453552246, -0.2311050146818161, -0.35397106409072876, -0.24200792610645294, -0.03275999799370766, 0.10817144811153412, -0.6691621541976929, 0.09415782988071442, 0.07911168783903122, 0.3833469748497009, 0.07722747325897217, 0.18915581703186035, -0.06840375810861588, 0.33595484495162964, -0.22923460602760315, 0.044772908091545105, 0.6186288595199585, 0.050069503486156464, -0.14360171556472778, 0.06537522375583649, -0.12009885907173157, 0.14868369698524475, -0.07319934666156769, 0.18949542939662933, 0.08454892039299011, -0.08502799272537231, 0.37035512924194336, 0.010315872728824615, -0.13372349739074707, -0.11369961500167847, -0.013039663434028625, 0.1656283438205719, 0.5390791893005371, -0.20646896958351135, 0.04254625737667084, 0.179086834192276, -0.12506335973739624, 0.22829952836036682, -0.01728552207350731, -0.033775538206100464, -0.007314402610063553, 0.10341182351112366, 0.27518942952156067, 0.06539364904165268, 0.035575635731220245, -0.2091536968946457, -0.3796859681606293, -0.008060887455940247, 0.43300098180770874, 0.021443460136651993, -0.008066467940807343, -0.1484537422657013, -0.3776356875896454, 0.007541671395301819, -0.011138638481497765, 0.29679447412490845, 0.017565373331308365, 0.1665642261505127, -0.16422776877880096, -0.17727723717689514, -0.3389023542404175, 0.09492773562669754, -0.1961664855480194, -0.05137048661708832, -0.24343156814575195, 0.12822794914245605, 0.1284630447626114, -0.27291715145111084, -0.19489960372447968, 0.38670435547828674, 0.13576427102088928, -0.02304716408252716, -0.10443723201751709, 0.2309466302394867, 0.07567578554153442, -0.12512969970703125, -0.4924202561378479, 0.200178861618042, 0.13326048851013184, 0.1238413155078888, -0.16648980975151062, -0.1851828694343567, -0.011389203369617462, -0.21678349375724792, -0.07545924931764603, 0.05073641985654831, 0.004953859373927116, 0.2880735397338867, -0.3090748190879822, 0.1987280696630478, 0.10299379378557205, 0.0727730542421341, -0.21826642751693726, -0.3290409743785858, -0.056058619171381, 0.021847732365131378, 0.04404556751251221, -0.2663614749908447, -0.3668256402015686, 0.01636553928256035, 0.6044391393661499, 0.00327291339635849, 0.129865825176239, 0.14214934408664703, 0.1310875117778778, 0.08321395516395569, 0.010853009298443794, 0.08902925252914429, 0.4790547490119934, 0.08145517110824585, -0.06634888052940369, 0.023984769359230995, -0.2592504918575287, -0.09817523509263992, 0.04037714749574661, 0.29141223430633545, 0.20579847693443298, 0.08173410594463348, 0.28356388211250305, 0.009147830307483673, 0.082244873046875, 0.0117117241024971, 0.23269924521446228, 0.16177178919315338, -0.5018967986106873, -0.0692816898226738, -0.1272544264793396, 0.26582056283950806, -0.29411953687667847, -0.6862949728965759, 0.014457527548074722, -0.3176655173301697, -0.22213807702064514, 0.0013732295483350754, 0.024883583188056946, 0.053293757140636444, -0.03812932223081589, 0.10134769231081009, 0.22659367322921753, -0.44100669026374817, -0.09321035444736481, -0.25462040305137634, -0.008384703658521175, 0.014089085161685944, 0.3546910881996155, -0.32203564047813416, 0.42347824573516846, 0.14503374695777893, -0.1792607307434082, -0.11536365002393723, -0.30000409483909607, -0.017930997535586357, -0.38842037320137024, -0.06969688087701797, 0.2577563524246216, 0.151636004447937, -0.1477590650320053, -0.18886816501617432, 0.3712126910686493, 0.1980447769165039, 0.20007215440273285, 0.19806566834449768, 0.1245260089635849, 0.05691684037446976, -0.004399925470352173, -0.5688670873641968, -0.10753877460956573, -0.042035069316625595, 0.08254750072956085, -0.08781195431947708, 0.0984743982553482, 0.021209850907325745, 0.2226237654685974, 0.1303483098745346, 0.23988986015319824, -0.08949263393878937, -0.37932831048965454, -0.0635957345366478, 0.39752495288848877, -0.3226930499076843, -0.20732714235782623, 0.13975116610527039, -0.02744487300515175, 0.1810929775238037, 0.2993004620075226, -0.3082208037376404, -0.15085284411907196, -0.13113556802272797, 0.17326846718788147, -0.28093016147613525, -0.09947197884321213, 0.5064874291419983, 0.012028731405735016, -0.055141691118478775, -0.14044681191444397, -0.21178054809570312, 0.19564422965049744, 0.27001845836639404, 0.06339917331933975, 0.26286011934280396, 0.5470187067985535, 0.08846795558929443, 0.30084943771362305, 0.07860241085290909, -0.4974919557571411, 0.25507232546806335, -0.30017057061195374, 0.1966456174850464, -0.2971631586551666, -0.393725723028183, -0.05021773278713226, -0.23420275747776031, -0.02780957892537117, -0.14901763200759888, -0.16024525463581085, -0.032232873141765594, 0.014737285673618317, 0.5779082775115967, -0.15646708011627197, -0.15841232240200043, 0.3528255820274353, -0.4837838411331177, 0.3728363513946533, 0.044386379420757294, 0.15143293142318726, -0.5375986695289612, -0.1796581894159317, 0.12744376063346863, -0.08100821077823639, 0.21002443134784698, -0.1992974877357483, -0.45689815282821655, -0.18568116426467896, -0.42433518171310425, 0.2998925447463989, 0.3504032790660858, 0.7206828594207764, -0.14286401867866516, -0.04888869449496269, -0.10481034219264984, 0.15054123103618622, 0.8693701028823853, -0.513111412525177, -0.5122168064117432, 0.4151347875595093, 0.2547287940979004, -0.6216636300086975, -0.005699954926967621, -0.17356914281845093, 0.09025628864765167, 0.07680608332157135, 0.695124626159668, -0.01042427122592926, 0.14013808965682983, 0.1530415415763855, 0.33339691162109375, 0.0032472312450408936, -0.11882083117961884, -0.1659088283777237, -0.17620640993118286, -0.15437421202659607, 0.09381167590618134, 0.14684659242630005, 0.3185719847679138, 0.3098248243331909, -0.2787635326385498, -0.08227957040071487, -0.19797563552856445, 0.2580941617488861, -0.1493849903345108, 0.20948877930641174, 0.46668291091918945, 0.1809091866016388, 0.07322259992361069, -0.02073945477604866, -0.013486209325492382, 0.21051441133022308, -0.20589004456996918, -0.042640745639801025, 0.15157532691955566, -0.3012668192386627, 0.313480019569397, 0.16505998373031616, -0.019084548577666283, 0.18922613561153412, -0.23296812176704407, -0.04208382964134216, -0.33109039068222046, 0.16217365860939026, 0.5876701474189758, 0.21077191829681396, -0.35791823267936707, -0.7363804578781128, 0.20133861899375916, 0.052803874015808105, 0.07946555316448212, 0.5957027077674866, -0.010087098926305771, -0.1674923300743103, 0.4298979341983795, 0.12787356972694397, 0.8010365962982178, -0.23211601376533508, 0.021928196772933006, 0.2473871260881424, -0.19637760519981384, 0.446696937084198, -0.21972092986106873, 0.20859232544898987, -0.11051701754331589, -0.05489645153284073, -0.16730225086212158, -0.23236188292503357, 0.3513603210449219, 0.004541268106549978, -0.18060624599456787, -0.1170174777507782, -0.21283957362174988, 0.6637676358222961, -0.022808950394392014, 0.10520052909851074, 0.14875110983848572, -0.45283228158950806, -0.3152979910373688, 0.10435329377651215, -0.1289207488298416, -0.20215359330177307, -0.09438225626945496, 0.1820894032716751, -0.17839258909225464, -0.20848940312862396, -0.36079278588294983, -0.06635645031929016, -0.06901893764734268, -0.046882469207048416, 0.04526019096374512, -0.6082693338394165, 0.4602430462837219, 0.3592822551727295, 0.529190182685852, 0.08798389136791229, -0.10305680334568024, -0.056539714336395264, 0.025503210723400116, 0.1595403254032135, 0.27833715081214905, -0.4173799753189087, 0.3079518973827362, 0.19745850563049316, -0.15848016738891602, 0.3220858871936798, 0.09931957721710205, -0.2854143977165222, -0.1614234745502472, 0.09343145787715912, 0.5090247392654419, -0.6628910303115845, -0.3925189971923828, 0.05861325562000275, 0.2449558973312378, -0.25783443450927734, 0.09194356203079224, -0.09225925803184509, 0.013855066150426865, 0.37625980377197266, -0.32617416977882385, -0.06391986459493637, 0.06400534510612488, 0.267851322889328, 0.013387415558099747, -0.07379259914159775, 0.5867013931274414, 0.2021549642086029, -0.1515665352344513, -0.11590182781219482, 0.024291321635246277, 0.10935533791780472, -0.2628641426563263, 0.06737236678600311, -0.01612786203622818, 0.1062919944524765, -0.13520650565624237, 0.0582708902657032, -0.16055583953857422, 0.20475032925605774, -0.01743723452091217, -0.27580195665359497, -0.11922933906316757, -0.014102395623922348, 0.2751239240169525, 0.26636382937431335, 0.13594719767570496, 0.239853635430336, -0.13819542527198792, 0.04370885342359543, -0.23512548208236694, -0.11142700910568237, 0.11527601629495621, 0.21098068356513977, 0.05360232666134834, 0.05638420209288597, 0.15396559238433838, -0.40750187635421753, 0.08706916868686676, 0.4069390296936035, 0.028960302472114563, -0.2118222415447235, -0.14454379677772522, 0.1017586886882782, 0.11740295588970184, -0.252389520406723, 0.18900853395462036, -0.29749101400375366, -0.17476898431777954, -0.27857506275177, 0.019304998219013214, 0.3081173896789551, -0.2520095705986023, -0.005121130496263504, -0.12064875662326813, 0.145906463265419, -0.008855342864990234, -0.03156706690788269, -0.19700416922569275, 0.031006811186671257, 0.1981578916311264, 0.21928830444812775, 0.20221209526062012, 0.04403844475746155, -0.31462228298187256, 0.21780095994472504, 0.18436139822006226, 0.05631876364350319, 0.24942052364349365, -0.4320303797721863, 0.013722240924835205, 0.0009932108223438263, 0.3522244691848755, -0.024594545364379883, -0.21637073159217834, -0.019651662558317184, 0.22257541120052338, 0.11508090049028397, -0.23638077080249786, 0.05469820648431778, 0.3840655982494354, 0.11357831954956055, 0.16405096650123596, 0.2766045033931732, 0.3523634970188141, 0.14985010027885437, -0.29697781801223755, -0.028338421136140823, 0.10192502290010452, -0.3147270977497101, 0.31778162717819214, 0.6366593837738037, -0.009695582091808319, 0.043276846408843994, 0.21216168999671936, 0.03850826993584633, -0.01843452826142311, 0.2452433854341507, 0.15469565987586975, 0.13236655294895172, 0.5537688732147217, -0.023323502391576767, -0.1268622726202011, -0.3789403438568115, 0.384928435087204, 0.06552629172801971, 0.1893932819366455, 0.3565954566001892, 0.2170318067073822, 0.4540139436721802, -0.13325360417366028, -0.04673619940876961, -0.027215629816055298, 0.0026211831718683243, -0.14090918004512787, 0.04778602719306946, -0.15366974472999573, 0.025579556822776794, 0.061330437660217285, -0.2604687809944153, -0.06986487656831741, -0.24685777723789215, 0.29723986983299255, -0.06477491557598114, 0.08989015221595764, 0.011609021574258804, -0.08671379089355469, -0.14507316052913666, -0.10232488811016083, -0.2088187336921692, 0.1428879201412201, -0.000056121498346328735, -0.0023569222539663315, 0.1685062199831009, 0.07970374822616577, 0.31243711709976196, 0.3186620771884918, 0.03195462003350258, 0.35509005188941956, 0.10735637694597244, -0.01895305886864662, 0.2020028978586197, 0.11078032851219177, -0.11524075269699097, 0.045966971665620804, 0.23201899230480194, 0.12055926024913788, -0.10504692792892456, 0.12724705040454865, 0.08605539798736572, 0.3713683485984802, -0.17424508929252625, 0.1659412384033203, -0.018698006868362427, -0.2119491696357727, -0.28120091557502747, -0.025691796094179153, -0.053664762526750565, -0.2551567554473877, 0.5833736062049866, -0.017141688615083694, 0.0827367752790451, 0.1473909616470337, 0.07895226776599884, 0.016913950443267822, 0.17265872657299042, 0.12428313493728638, -0.05624152719974518, -0.21940797567367554, -0.11051975935697556, -0.449584424495697, 0.07772678136825562, -0.24442070722579956, -0.1423134207725525, 0.13314008712768555, 0.10837426036596298, 0.34263044595718384, -0.07151198387145996, 0.3546711206436157, -0.4199872314929962, -0.32788002490997314, 0.23540276288986206, -0.0737498551607132, -0.3474460244178772, -0.11585766077041626, -0.0218217670917511, 0.003688514232635498, -0.19462230801582336, 0.1039046198129654, 0.30520275235176086, -0.013154935091733932, -0.28851383924484253, -0.05214906483888626, -0.1672358214855194, -0.053973712027072906, 0.5608683228492737, 0.0929081067442894, 0.42172157764434814, -0.1400010734796524, 0.06613261252641678, -0.05677943304181099, 0.00037032365798950195, -0.21703431010246277, 0.4287865459918976, -0.17633748054504395, 0.49280399084091187, -0.24319729208946228, 0.08790326118469238, -0.35955125093460083, 0.23336409032344818, -0.009680882096290588, 0.0360780730843544, -0.2453807145357132, 0.4265151023864746, -0.18227744102478027, -0.051156528294086456, 0.16051653027534485, 0.30114349722862244, 0.09871765971183777, 0.6137598752975464, -0.18459293246269226, -0.22325021028518677, 0.4984789192676544, -0.4976068139076233, -0.4248707890510559, 0.08147484064102173, -0.028682708740234375, 0.1198045164346695, 0.06397304683923721, -0.5664728283882141, -0.29584574699401855, 0.41869306564331055, -0.09940408170223236, -0.007199883460998535, 0.08870915323495865, -0.021502066403627396, 0.13684381544589996, -0.1779536008834839, 0.19248449802398682, -0.1696065366268158, -0.15808306634426117, -0.04217078164219856, -0.28229716420173645 ]
https://github.com/huggingface/datasets/issues/1867
Hi @alejandrocros it looks like an incompatibility with the current Trainer @sgugger Indeed currently the Trainer of `transformers` doesn't support a dataset with a transform It looks like it comes from this line: https://github.com/huggingface/transformers/blob/f51188cbe74195c14c5b3e2e8f10c2f435f9751a/src/transformers/trainer.py#L442 This line sets the format to not return certain unused columns. But this has two issues: 1. it forgets to also set the format_kwargs (this causes the error you got): ```python dataset.set_format(type=dataset.format["type"], columns=columns, format_kwargs=dataset.format["format_kwargs"]) ``` 2. the Trainer wants to keep only the fields that are used as input for a model. However for a dataset with a transform, the output fields are often different from the columns fields. For example from a column "text" in the dataset, the strings can be transformed on-the-fly into "input_ids". If you want your dataset to only output certain fields and not other you must change your transform function.
ERROR WHEN USING SET_TRANSFORM()
Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch.
139
ERROR WHEN USING SET_TRANSFORM() Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch. Hi @alejandrocros it looks like an incompatibility with the current Trainer @sgugger Indeed currently the Trainer of `transformers` doesn't support a dataset with a transform It looks like it comes from this line: https://github.com/huggingface/transformers/blob/f51188cbe74195c14c5b3e2e8f10c2f435f9751a/src/transformers/trainer.py#L442 This line sets the format to not return certain unused columns. But this has two issues: 1. it forgets to also set the format_kwargs (this causes the error you got): ```python dataset.set_format(type=dataset.format["type"], columns=columns, format_kwargs=dataset.format["format_kwargs"]) ``` 2. the Trainer wants to keep only the fields that are used as input for a model. However for a dataset with a transform, the output fields are often different from the columns fields. For example from a column "text" in the dataset, the strings can be transformed on-the-fly into "input_ids". If you want your dataset to only output certain fields and not other you must change your transform function.
[ -0.18261897563934326, -0.27325117588043213, 0.13930322229862213, 0.18474005162715912, 0.7292688488960266, 0.11970525234937668, 0.6009584665298462, 0.22877633571624756, -0.32278475165367126, 0.054477497935295105, 0.2355116754770279, 0.03332699090242386, -0.08834050595760345, -0.023404855281114578, 0.1892215609550476, -0.5358201861381531, -0.013821937143802643, 0.12886114418506622, -0.46343475580215454, -0.18311628699302673, -0.27669674158096313, 0.31342312693595886, -0.3415369987487793, 0.11934049427509308, -0.31860029697418213, -0.009608441032469273, -0.047695666551589966, 0.016471080482006073, 0.08441536128520966, -0.1718302071094513, 0.23347823321819305, -0.28007566928863525, 0.12319591641426086, 0.39745014905929565, -0.00012553716078400612, 0.11955767869949341, 0.06063556671142578, -0.28907209634780884, -0.2367868572473526, -0.30035579204559326, -0.14373117685317993, -0.1552792489528656, -0.015434540808200836, -0.24087488651275635, -0.44793689250946045, -0.18905571103096008, 0.006699064746499062, -0.26875507831573486, 0.5653693079948425, 0.7264817953109741, 0.12158740311861038, 0.26635998487472534, 0.0996970385313034, -0.23824173212051392, -0.12613502144813538, 0.1903083622455597, -0.1291116625070572, -0.02249787002801895, 0.03177592530846596, 0.2165265679359436, 0.13362421095371246, 0.1615503579378128, 0.2006310522556305, -0.1752624809741974, 0.4064543545246124, -0.06197904795408249, -0.1365286409854889, 0.0435066893696785, 0.000619078055024147, 0.010468251071870327, 0.2298872470855713, -0.345430850982666, -0.42085397243499756, -0.2735254764556885, 0.1654445230960846, -0.21410080790519714, 0.2700583040714264, 0.15038719773292542, -0.06639793515205383, 0.22794410586357117, -0.2600678503513336, -0.10983806103467941, -0.05886644497513771, 0.031330425292253494, -0.17284271121025085, 0.16238626837730408, -0.006507126614451408, 0.13033156096935272, 0.09317879378795624, 0.1813862919807434, 0.27399468421936035, 0.11535535007715225, 0.18766169250011444, 0.3649871051311493, -0.2653557360172272, -0.054786279797554016, -0.14347901940345764, 0.010828372091054916, -0.28897225856781006, -0.24927367269992828, -0.17236468195915222, -0.20850980281829834, 0.023088600486516953, -0.014951981604099274, 0.10714668035507202, 0.6613350510597229, -0.24540525674819946, 0.4977247714996338, 0.015117593109607697, -0.11207345128059387, 0.2516207993030548, -0.06356722116470337, -0.05694843456149101, -0.3780820667743683, -0.009624235332012177, 0.4175057113170624, 0.09379682689905167, -0.006041929125785828, -0.2874678075313568, -0.19327722489833832, -0.20897358655929565, -0.05788184702396393, 0.1327710747718811, 0.2179858535528183, 0.058807000517845154, 0.27133455872535706, 0.503231406211853, 0.34855687618255615, -0.10595174133777618, -0.20505836606025696, -0.17156097292900085, 0.1350133866071701, -0.3857184946537018, -0.10069866478443146, 0.14641998708248138, -0.1412293016910553, 0.32861968874931335, 0.05321209505200386, 0.07554176449775696, 0.3815329372882843, 0.152024507522583, -0.1911819875240326, 0.2819838225841522, 0.14367029070854187, -0.014327161014080048, 0.20149773359298706, 0.4693851172924042, 0.1014423668384552, -0.18617688119411469, 0.2664012908935547, -0.24845072627067566, -0.44114792346954346, 0.06094938516616821, 0.09140243381261826, -0.05300053209066391, -0.037796229124069214, -0.15948358178138733, 0.1583792269229889, 0.42052939534187317, -0.06751256436109543, 0.07630948722362518, -0.43523281812667847, 0.0418040007352829, 0.10999252647161484, 0.09002512693405151, 0.0778380036354065, -0.23285749554634094, -0.3426039516925812, 0.32585829496383667, 0.15306469798088074, -0.14334318041801453, 0.2205606997013092, -0.42858514189720154, 0.2562268078327179, -0.06257397681474686, -0.1584208905696869, 0.20988793671131134, -0.3840966820716858, -0.07108697295188904, -0.099427729845047, -0.10547103732824326, -0.21916401386260986, 0.06968478858470917, -0.1317373514175415, -0.05301930010318756, -0.15442562103271484, -0.22072617709636688, 0.5086040496826172, -0.060897327959537506, 0.23249460756778717, 0.034090109169483185, -0.022244058549404144, 0.18859639763832092, 0.13765186071395874, 0.024887653067708015, 0.15763989090919495, -0.3205074667930603, 0.512071430683136, 0.09875872731208801, -0.24417781829833984, 0.24441972374916077, 0.4102388024330139, -0.24409765005111694, -0.19196459650993347, 0.0468020886182785, 0.27647751569747925, -0.06979597359895706, -0.1489027738571167, 0.1784002184867859, 0.19635117053985596, -0.06047196686267853, 0.04845206439495087, -0.23693852126598358, -0.06417254358530045, -0.21337494254112244, -0.15852123498916626, -0.01498974859714508, 0.11016185581684113, 0.020773455500602722, -0.0464726984500885, -0.24848158657550812, 0.27239087224006653, -0.0954265370965004, 0.1349620819091797, -0.525989830493927, 0.22802084684371948, -0.21457353234291077, -0.09144507348537445, -0.06788431107997894, 0.22312068939208984, 0.24049422144889832, -0.2305196076631546, -0.32474908232688904, 0.3036767840385437, -0.21225595474243164, 0.03719201311469078, -0.3943193852901459, 0.2457399070262909, 0.30909499526023865, -0.5342991948127747, 0.0032724644988775253, 0.2634412944316864, 0.1639745682477951, -0.12745551764965057, -0.383022665977478, 0.11361074447631836, 0.07577244937419891, 0.33145156502723694, 0.10577435791492462, 0.3340391516685486, 0.05361209064722061, -0.08840541541576385, -0.20203712582588196, -0.07764468342065811, -0.015492366626858711, -0.08382349461317062, 0.16498222947120667, 0.059749454259872437, -0.22884216904640198, -0.19838784635066986, 0.4673168361186981, 0.14884209632873535, 0.021630385890603065, 0.12939010560512543, -0.1397811472415924, 0.03067045658826828, 0.1618635356426239, -0.09503509104251862, 0.5624228119850159, 0.03243715316057205, -0.23054447770118713, 0.18751484155654907, 0.06977223604917526, -0.12261378765106201, 0.4002860486507416, -0.07319551706314087, 0.02523180842399597, -0.1065489649772644, 0.06150764599442482, 0.09520678222179413, -0.16490641236305237, -0.2894913852214813, 0.2562520205974579, 0.25219762325286865, -0.47367775440216064, 0.2136499285697937, 0.0259736105799675, 0.16960373520851135, -0.5800777673721313, -0.38273975253105164, 0.03458966314792633, -0.2872622013092041, -0.1098967120051384, -0.02086542919278145, 0.12487855553627014, 0.4439493417739868, 0.10259878635406494, 0.07227258384227753, 0.2448718547821045, -0.15802259743213654, -0.061883073300123215, 0.045985620468854904, -0.1911003589630127, 0.014357633888721466, -0.18717649579048157, -0.28796666860580444, -0.05046992748975754, -0.3237556219100952, -0.05529076233506203, -0.10354068130254745, -0.1793440729379654, 0.18559414148330688, -0.29557690024375916, 0.01130075566470623, 0.32318270206451416, 0.18719452619552612, -0.19923356175422668, -0.3188306391239166, 0.43165287375450134, 0.0009160265326499939, 0.09593234956264496, -0.012725446373224258, -0.07032963633537292, -0.24257168173789978, -0.09974406659603119, -0.42642930150032043, -0.04464526101946831, -0.16895374655723572, 0.03030753880739212, -0.21778248250484467, -0.13130517303943634, 0.4203007221221924, 0.23713478446006775, 0.08430276811122894, 0.2997518479824066, 0.17405079305171967, -0.019832056015729904, -0.21119311451911926, 0.4776299297809601, -0.20679552853107452, -0.35763975977897644, -0.12714225053787231, -0.012921739369630814, 0.22187601029872894, 0.2340477555990219, -0.17647911608219147, -0.1782558262348175, -0.20401565730571747, -0.11266346275806427, -0.3014697730541229, 0.4359830319881439, 0.4326149523258209, 0.06031756103038788, 0.16860823333263397, -0.05086594820022583, -0.5156285762786865, 0.3171767294406891, 0.14240258932113647, 0.4169047474861145, -0.09299562871456146, 0.47989621758461, 0.08661115914583206, 0.7751230001449585, 0.01110132783651352, -0.32190021872520447, 0.2606614828109741, -0.16307440400123596, 0.22602808475494385, -0.14031721651554108, -0.4625387489795685, 0.27688440680503845, 0.24382346868515015, 0.03161070495843887, -0.07282145321369171, -0.0910806953907013, -0.06985233724117279, -0.1445435881614685, 0.24139279127120972, -0.10525131970643997, -0.15223568677902222, 0.14164376258850098, -0.18085640668869019, 0.558344304561615, 0.03707011044025421, 0.38957473635673523, -0.21053248643875122, 0.009345375001430511, 0.07298686355352402, -0.10951941460371017, 0.06886474788188934, 0.12381565570831299, -0.13833805918693542, -0.5897534489631653, -0.19025567173957825, 0.1065891832113266, -0.011732559651136398, 0.38561883568763733, -0.11942753195762634, -0.021435655653476715, 0.15139368176460266, 0.18907088041305542, 0.7310062050819397, 0.0729367658495903, -0.32788074016571045, -0.030984599143266678, -0.22110332548618317, -0.6239108443260193, -0.07092185318470001, 0.03942110389471054, -0.1653977632522583, -0.14672468602657318, 0.19225528836250305, -0.150356724858284, -0.17190566658973694, 0.35543137788772583, 0.03475300595164299, -0.25839924812316895, 0.07762575149536133, -0.0642111748456955, -0.523164689540863, -0.37529492378234863, 0.08177004754543304, 0.2867942154407501, 0.17634013295173645, 0.27061688899993896, 0.37055516242980957, -0.025202225893735886, -0.014630958437919617, 0.1825229674577713, 0.02297709882259369, 0.2532839775085449, 0.12009827792644501, -0.07114126533269882, 0.2466866374015808, 0.26633796095848083, 0.0747499018907547, 0.3784386217594147, 0.021826647222042084, -0.1386081427335739, -0.00596567802131176, -0.02730073407292366, 0.39178475737571716, 0.3158436417579651, -0.10386684536933899, -0.2018500119447708, 0.0003285929560661316, 0.06758543103933334, -0.05185168236494064, 0.2731790542602539, 0.46006664633750916, 0.0707787424325943, -0.15232941508293152, -0.5686458349227905, 0.19352209568023682, 0.1283530294895172, 0.11658346652984619, 0.041261643171310425, 0.1834685206413269, -0.4985370934009552, 0.30006563663482666, 0.24418365955352783, 0.9627008438110352, 0.004567076917737722, 0.41221433877944946, 0.4066111743450165, -0.17183953523635864, -0.04487825930118561, -0.11339066922664642, 0.1925230175256729, -0.26892101764678955, -0.37407076358795166, -0.12674404680728912, -0.15768001973628998, 0.15375220775604248, 0.14474806189537048, -0.4471736252307892, 0.25740188360214233, -0.10165185481309891, 0.1324460655450821, -0.051706813275814056, -0.006303310394287109, -0.11915747821331024, -0.3786027133464813, -0.42070502042770386, 0.06057655066251755, 0.008538709953427315, 0.2239290475845337, -0.021146245300769806, -0.051836926490068436, -0.07252416759729385, -0.3276565670967102, -0.19897928833961487, 0.143813818693161, -0.3425532281398773, 0.11627538502216339, 0.02154933288693428, -0.35082077980041504, 0.572816014289856, 0.4761780798435211, 0.5377930998802185, 0.048002373427152634, -0.0448533296585083, 0.2743346393108368, -0.2238798886537552, 0.23365706205368042, 0.002679716795682907, 0.11445474624633789, 0.43117865920066833, -0.026223566383123398, 0.010690480470657349, 0.2838854193687439, -0.1292872130870819, -0.04916848987340927, -0.18477044999599457, -0.27002161741256714, 0.06757622212171555, -0.3728923201560974, -0.21563346683979034, 0.1479792445898056, -0.013864882290363312, -0.12134674936532974, 0.06294877827167511, -0.14535102248191833, -0.20106038451194763, 0.1748768836259842, -0.19267213344573975, -0.3175871670246124, -0.0471322163939476, 0.5520835518836975, -0.0154434684664011, -0.025958076119422913, 0.9083887338638306, 0.144269660115242, 0.02905317395925522, -0.050625018775463104, 0.0027594417333602905, 0.5083622336387634, -0.7060850858688354, 0.19020727276802063, 0.04427943006157875, -0.11630304902791977, -0.25866079330444336, 0.22252634167671204, 0.09105890989303589, -0.12239731848239899, 0.10664840787649155, 0.026816196739673615, -0.38151511549949646, 0.043569959700107574, 0.18260200321674347, 0.10994131863117218, -0.006349548697471619, 0.41574886441230774, 0.3691779375076294, -0.16091948747634888, -0.2136099636554718, 0.08543435484170914, 0.015292569994926453, 0.24364283680915833, 0.13488134741783142, -0.18128086626529694, 0.10463924705982208, -0.21582776308059692, 0.03448275476694107, -0.011732954531908035, 0.028834249824285507, -0.10363208502531052, -0.30304819345474243, 0.09602192044258118, 0.19027400016784668, -0.18442019820213318, -0.03058779239654541, -0.3210199177265167, -0.22736939787864685, -0.28020143508911133, 0.14850816130638123, 0.2875708341598511, -0.02318837121129036, 0.46703049540519714, -0.04471684992313385, -0.10733480751514435, -0.17108586430549622, -0.36242473125457764, -0.055877961218357086, -0.25884681940078735, 0.2030039131641388, 0.16474351286888123, 0.09019704163074493, -0.03371812403202057, -0.5971800088882446, 0.22674164175987244, 0.2485937625169754, 0.2303076982498169, 0.06782431155443192, -0.2015691101551056, 0.152433842420578, 0.16559603810310364, 0.23264023661613464, -0.03410421684384346, -0.2902601957321167, 0.02063329517841339, 0.17743223905563354, 0.06178071349859238, -0.2854021489620209, 0.3496537506580353, -0.04107542708516121, 0.0037135854363441467, 0.01049097627401352, 0.25450074672698975, 0.05803121626377106, -0.011549711227416992, 0.04948638379573822, 0.07942895591259003, 0.2100779116153717, -0.0605449415743351, 0.33456939458847046, 0.7754501104354858, -0.28041207790374756, 0.2012111097574234, 0.27502238750457764, 0.14586715400218964, 0.25430214405059814, 0.32052353024482727, -0.11666087806224823, 0.3449282944202423, -0.01880652830004692, -0.01994948647916317, -0.06523463129997253, -0.1228848248720169, -0.31048062443733215, -0.18171215057373047, 0.04021094739437103, 0.024276401847600937, 0.061691589653491974, 0.5748893022537231, -0.2628108859062195, -0.34839051961898804, -0.2398826777935028, 0.27559077739715576, -0.12784674763679504, -0.01544397696852684, -0.01726890355348587, 0.028749525547027588, -0.3195883333683014, -0.14997363090515137, -0.21256312727928162, -0.13776640594005585, 0.6361116766929626, 0.019825469702482224, -0.002389047294855118, -0.1892203837633133, -0.04547697305679321, 0.26282355189323425, 0.08199544996023178, -0.1269652247428894, 0.24113713204860687, 0.1011122316122055, -0.18835583329200745, 0.09760725498199463, 0.4976043999195099, 0.22012096643447876, 0.2194080650806427, -0.046345531940460205, -0.01025865226984024, -0.07822877168655396, -0.07122966647148132, 0.15365548431873322, 0.2663586139678955, -0.10759498178958893, 0.38120710849761963, 0.20454207062721252, 0.08818663656711578, -0.069119893014431, 0.15162836015224457, -0.24307867884635925, 0.311342716217041, -0.2424250841140747, 0.5272913575172424, -0.02080625295639038, -0.14544673264026642, -0.14797651767730713, 0.06425773352384567, -0.17205068469047546, 0.1480785459280014, 0.34230658411979675, 0.007757510989904404, 0.11038388311862946, -0.13282111287117004, 0.011513087898492813, 0.24308054149150848, 0.2766733467578888, 0.5207220315933228, -0.25357505679130554, -0.3213942050933838, -0.21567212045192719, -0.3150942027568817, -0.03848227858543396, 0.12944741547107697, 0.017416179180145264, -0.02454412914812565, -0.1764501929283142, 0.3041369915008545, -0.07791756093502045, 0.08097115904092789, -0.10651563107967377, -0.10172082483768463, 0.21124295890331268, -0.0689956322312355, -0.3980534076690674, -0.10888141393661499, 0.37909331917762756, -0.022704899311065674, -0.08594537526369095, -0.11285358667373657, 0.4846833348274231, -0.029358461499214172, -0.36930224299430847, 0.04411260783672333, -0.11998017132282257, -0.12868943810462952, 0.2373431771993637, 0.07642081379890442, 0.2086418718099594, 0.05883370339870453, 0.2778177261352539, 0.017605673521757126, -0.25061729550361633, -0.326689749956131, 0.06861592829227448, -0.08573238551616669, 0.42925918102264404, -0.24019122123718262, -0.17647625505924225, -0.42585521936416626, 0.007111303508281708, 0.17812083661556244, 0.046441785991191864, -0.45901602506637573, 0.4230369031429291, -0.36713874340057373, 0.08237355947494507, 0.2416839301586151, 0.3583957552909851, 0.0034973612055182457, 0.14768466353416443, -0.38634902238845825, -0.424439013004303, 0.6188309788703918, -0.18147006630897522, -0.4834167957305908, 0.12065660208463669, -0.13623549044132233, -0.08463796228170395, -0.15976308286190033, -0.5339645147323608, 0.07896505296230316, 0.10708796977996826, -0.20784638822078705, -0.3984493017196655, 0.24199025332927704, 0.1348472535610199, 0.04888230562210083, -0.05123782157897949, 0.4404886066913605, -0.022192249074578285, -0.20213203132152557, -0.1810317188501358, -0.035145353525877 ]
https://github.com/huggingface/datasets/issues/1867
FYI that option can be removed with `remove_unused_columns = False` in your `TrainingArguments`, so there is a workaround @alexvaca0 while the fix in `Trainer` is underway. @lhoestq I think I will just use the line you suggested and if someone is using the columns that are removed in their transform they will need to change `remove_unused_columns` to `False`. We might switch the default of that argument in the next version if that proves too bug-proof.
ERROR WHEN USING SET_TRANSFORM()
Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch.
75
ERROR WHEN USING SET_TRANSFORM() Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch. FYI that option can be removed with `remove_unused_columns = False` in your `TrainingArguments`, so there is a workaround @alexvaca0 while the fix in `Trainer` is underway. @lhoestq I think I will just use the line you suggested and if someone is using the columns that are removed in their transform they will need to change `remove_unused_columns` to `False`. We might switch the default of that argument in the next version if that proves too bug-proof.
[ -0.18261897563934326, -0.27325117588043213, 0.13930322229862213, 0.18474005162715912, 0.7292688488960266, 0.11970525234937668, 0.6009584665298462, 0.22877633571624756, -0.32278475165367126, 0.054477497935295105, 0.2355116754770279, 0.03332699090242386, -0.08834050595760345, -0.023404855281114578, 0.1892215609550476, -0.5358201861381531, -0.013821937143802643, 0.12886114418506622, -0.46343475580215454, -0.18311628699302673, -0.27669674158096313, 0.31342312693595886, -0.3415369987487793, 0.11934049427509308, -0.31860029697418213, -0.009608441032469273, -0.047695666551589966, 0.016471080482006073, 0.08441536128520966, -0.1718302071094513, 0.23347823321819305, -0.28007566928863525, 0.12319591641426086, 0.39745014905929565, -0.00012553716078400612, 0.11955767869949341, 0.06063556671142578, -0.28907209634780884, -0.2367868572473526, -0.30035579204559326, -0.14373117685317993, -0.1552792489528656, -0.015434540808200836, -0.24087488651275635, -0.44793689250946045, -0.18905571103096008, 0.006699064746499062, -0.26875507831573486, 0.5653693079948425, 0.7264817953109741, 0.12158740311861038, 0.26635998487472534, 0.0996970385313034, -0.23824173212051392, -0.12613502144813538, 0.1903083622455597, -0.1291116625070572, -0.02249787002801895, 0.03177592530846596, 0.2165265679359436, 0.13362421095371246, 0.1615503579378128, 0.2006310522556305, -0.1752624809741974, 0.4064543545246124, -0.06197904795408249, -0.1365286409854889, 0.0435066893696785, 0.000619078055024147, 0.010468251071870327, 0.2298872470855713, -0.345430850982666, -0.42085397243499756, -0.2735254764556885, 0.1654445230960846, -0.21410080790519714, 0.2700583040714264, 0.15038719773292542, -0.06639793515205383, 0.22794410586357117, -0.2600678503513336, -0.10983806103467941, -0.05886644497513771, 0.031330425292253494, -0.17284271121025085, 0.16238626837730408, -0.006507126614451408, 0.13033156096935272, 0.09317879378795624, 0.1813862919807434, 0.27399468421936035, 0.11535535007715225, 0.18766169250011444, 0.3649871051311493, -0.2653557360172272, -0.054786279797554016, -0.14347901940345764, 0.010828372091054916, -0.28897225856781006, -0.24927367269992828, -0.17236468195915222, -0.20850980281829834, 0.023088600486516953, -0.014951981604099274, 0.10714668035507202, 0.6613350510597229, -0.24540525674819946, 0.4977247714996338, 0.015117593109607697, -0.11207345128059387, 0.2516207993030548, -0.06356722116470337, -0.05694843456149101, -0.3780820667743683, -0.009624235332012177, 0.4175057113170624, 0.09379682689905167, -0.006041929125785828, -0.2874678075313568, -0.19327722489833832, -0.20897358655929565, -0.05788184702396393, 0.1327710747718811, 0.2179858535528183, 0.058807000517845154, 0.27133455872535706, 0.503231406211853, 0.34855687618255615, -0.10595174133777618, -0.20505836606025696, -0.17156097292900085, 0.1350133866071701, -0.3857184946537018, -0.10069866478443146, 0.14641998708248138, -0.1412293016910553, 0.32861968874931335, 0.05321209505200386, 0.07554176449775696, 0.3815329372882843, 0.152024507522583, -0.1911819875240326, 0.2819838225841522, 0.14367029070854187, -0.014327161014080048, 0.20149773359298706, 0.4693851172924042, 0.1014423668384552, -0.18617688119411469, 0.2664012908935547, -0.24845072627067566, -0.44114792346954346, 0.06094938516616821, 0.09140243381261826, -0.05300053209066391, -0.037796229124069214, -0.15948358178138733, 0.1583792269229889, 0.42052939534187317, -0.06751256436109543, 0.07630948722362518, -0.43523281812667847, 0.0418040007352829, 0.10999252647161484, 0.09002512693405151, 0.0778380036354065, -0.23285749554634094, -0.3426039516925812, 0.32585829496383667, 0.15306469798088074, -0.14334318041801453, 0.2205606997013092, -0.42858514189720154, 0.2562268078327179, -0.06257397681474686, -0.1584208905696869, 0.20988793671131134, -0.3840966820716858, -0.07108697295188904, -0.099427729845047, -0.10547103732824326, -0.21916401386260986, 0.06968478858470917, -0.1317373514175415, -0.05301930010318756, -0.15442562103271484, -0.22072617709636688, 0.5086040496826172, -0.060897327959537506, 0.23249460756778717, 0.034090109169483185, -0.022244058549404144, 0.18859639763832092, 0.13765186071395874, 0.024887653067708015, 0.15763989090919495, -0.3205074667930603, 0.512071430683136, 0.09875872731208801, -0.24417781829833984, 0.24441972374916077, 0.4102388024330139, -0.24409765005111694, -0.19196459650993347, 0.0468020886182785, 0.27647751569747925, -0.06979597359895706, -0.1489027738571167, 0.1784002184867859, 0.19635117053985596, -0.06047196686267853, 0.04845206439495087, -0.23693852126598358, -0.06417254358530045, -0.21337494254112244, -0.15852123498916626, -0.01498974859714508, 0.11016185581684113, 0.020773455500602722, -0.0464726984500885, -0.24848158657550812, 0.27239087224006653, -0.0954265370965004, 0.1349620819091797, -0.525989830493927, 0.22802084684371948, -0.21457353234291077, -0.09144507348537445, -0.06788431107997894, 0.22312068939208984, 0.24049422144889832, -0.2305196076631546, -0.32474908232688904, 0.3036767840385437, -0.21225595474243164, 0.03719201311469078, -0.3943193852901459, 0.2457399070262909, 0.30909499526023865, -0.5342991948127747, 0.0032724644988775253, 0.2634412944316864, 0.1639745682477951, -0.12745551764965057, -0.383022665977478, 0.11361074447631836, 0.07577244937419891, 0.33145156502723694, 0.10577435791492462, 0.3340391516685486, 0.05361209064722061, -0.08840541541576385, -0.20203712582588196, -0.07764468342065811, -0.015492366626858711, -0.08382349461317062, 0.16498222947120667, 0.059749454259872437, -0.22884216904640198, -0.19838784635066986, 0.4673168361186981, 0.14884209632873535, 0.021630385890603065, 0.12939010560512543, -0.1397811472415924, 0.03067045658826828, 0.1618635356426239, -0.09503509104251862, 0.5624228119850159, 0.03243715316057205, -0.23054447770118713, 0.18751484155654907, 0.06977223604917526, -0.12261378765106201, 0.4002860486507416, -0.07319551706314087, 0.02523180842399597, -0.1065489649772644, 0.06150764599442482, 0.09520678222179413, -0.16490641236305237, -0.2894913852214813, 0.2562520205974579, 0.25219762325286865, -0.47367775440216064, 0.2136499285697937, 0.0259736105799675, 0.16960373520851135, -0.5800777673721313, -0.38273975253105164, 0.03458966314792633, -0.2872622013092041, -0.1098967120051384, -0.02086542919278145, 0.12487855553627014, 0.4439493417739868, 0.10259878635406494, 0.07227258384227753, 0.2448718547821045, -0.15802259743213654, -0.061883073300123215, 0.045985620468854904, -0.1911003589630127, 0.014357633888721466, -0.18717649579048157, -0.28796666860580444, -0.05046992748975754, -0.3237556219100952, -0.05529076233506203, -0.10354068130254745, -0.1793440729379654, 0.18559414148330688, -0.29557690024375916, 0.01130075566470623, 0.32318270206451416, 0.18719452619552612, -0.19923356175422668, -0.3188306391239166, 0.43165287375450134, 0.0009160265326499939, 0.09593234956264496, -0.012725446373224258, -0.07032963633537292, -0.24257168173789978, -0.09974406659603119, -0.42642930150032043, -0.04464526101946831, -0.16895374655723572, 0.03030753880739212, -0.21778248250484467, -0.13130517303943634, 0.4203007221221924, 0.23713478446006775, 0.08430276811122894, 0.2997518479824066, 0.17405079305171967, -0.019832056015729904, -0.21119311451911926, 0.4776299297809601, -0.20679552853107452, -0.35763975977897644, -0.12714225053787231, -0.012921739369630814, 0.22187601029872894, 0.2340477555990219, -0.17647911608219147, -0.1782558262348175, -0.20401565730571747, -0.11266346275806427, -0.3014697730541229, 0.4359830319881439, 0.4326149523258209, 0.06031756103038788, 0.16860823333263397, -0.05086594820022583, -0.5156285762786865, 0.3171767294406891, 0.14240258932113647, 0.4169047474861145, -0.09299562871456146, 0.47989621758461, 0.08661115914583206, 0.7751230001449585, 0.01110132783651352, -0.32190021872520447, 0.2606614828109741, -0.16307440400123596, 0.22602808475494385, -0.14031721651554108, -0.4625387489795685, 0.27688440680503845, 0.24382346868515015, 0.03161070495843887, -0.07282145321369171, -0.0910806953907013, -0.06985233724117279, -0.1445435881614685, 0.24139279127120972, -0.10525131970643997, -0.15223568677902222, 0.14164376258850098, -0.18085640668869019, 0.558344304561615, 0.03707011044025421, 0.38957473635673523, -0.21053248643875122, 0.009345375001430511, 0.07298686355352402, -0.10951941460371017, 0.06886474788188934, 0.12381565570831299, -0.13833805918693542, -0.5897534489631653, -0.19025567173957825, 0.1065891832113266, -0.011732559651136398, 0.38561883568763733, -0.11942753195762634, -0.021435655653476715, 0.15139368176460266, 0.18907088041305542, 0.7310062050819397, 0.0729367658495903, -0.32788074016571045, -0.030984599143266678, -0.22110332548618317, -0.6239108443260193, -0.07092185318470001, 0.03942110389471054, -0.1653977632522583, -0.14672468602657318, 0.19225528836250305, -0.150356724858284, -0.17190566658973694, 0.35543137788772583, 0.03475300595164299, -0.25839924812316895, 0.07762575149536133, -0.0642111748456955, -0.523164689540863, -0.37529492378234863, 0.08177004754543304, 0.2867942154407501, 0.17634013295173645, 0.27061688899993896, 0.37055516242980957, -0.025202225893735886, -0.014630958437919617, 0.1825229674577713, 0.02297709882259369, 0.2532839775085449, 0.12009827792644501, -0.07114126533269882, 0.2466866374015808, 0.26633796095848083, 0.0747499018907547, 0.3784386217594147, 0.021826647222042084, -0.1386081427335739, -0.00596567802131176, -0.02730073407292366, 0.39178475737571716, 0.3158436417579651, -0.10386684536933899, -0.2018500119447708, 0.0003285929560661316, 0.06758543103933334, -0.05185168236494064, 0.2731790542602539, 0.46006664633750916, 0.0707787424325943, -0.15232941508293152, -0.5686458349227905, 0.19352209568023682, 0.1283530294895172, 0.11658346652984619, 0.041261643171310425, 0.1834685206413269, -0.4985370934009552, 0.30006563663482666, 0.24418365955352783, 0.9627008438110352, 0.004567076917737722, 0.41221433877944946, 0.4066111743450165, -0.17183953523635864, -0.04487825930118561, -0.11339066922664642, 0.1925230175256729, -0.26892101764678955, -0.37407076358795166, -0.12674404680728912, -0.15768001973628998, 0.15375220775604248, 0.14474806189537048, -0.4471736252307892, 0.25740188360214233, -0.10165185481309891, 0.1324460655450821, -0.051706813275814056, -0.006303310394287109, -0.11915747821331024, -0.3786027133464813, -0.42070502042770386, 0.06057655066251755, 0.008538709953427315, 0.2239290475845337, -0.021146245300769806, -0.051836926490068436, -0.07252416759729385, -0.3276565670967102, -0.19897928833961487, 0.143813818693161, -0.3425532281398773, 0.11627538502216339, 0.02154933288693428, -0.35082077980041504, 0.572816014289856, 0.4761780798435211, 0.5377930998802185, 0.048002373427152634, -0.0448533296585083, 0.2743346393108368, -0.2238798886537552, 0.23365706205368042, 0.002679716795682907, 0.11445474624633789, 0.43117865920066833, -0.026223566383123398, 0.010690480470657349, 0.2838854193687439, -0.1292872130870819, -0.04916848987340927, -0.18477044999599457, -0.27002161741256714, 0.06757622212171555, -0.3728923201560974, -0.21563346683979034, 0.1479792445898056, -0.013864882290363312, -0.12134674936532974, 0.06294877827167511, -0.14535102248191833, -0.20106038451194763, 0.1748768836259842, -0.19267213344573975, -0.3175871670246124, -0.0471322163939476, 0.5520835518836975, -0.0154434684664011, -0.025958076119422913, 0.9083887338638306, 0.144269660115242, 0.02905317395925522, -0.050625018775463104, 0.0027594417333602905, 0.5083622336387634, -0.7060850858688354, 0.19020727276802063, 0.04427943006157875, -0.11630304902791977, -0.25866079330444336, 0.22252634167671204, 0.09105890989303589, -0.12239731848239899, 0.10664840787649155, 0.026816196739673615, -0.38151511549949646, 0.043569959700107574, 0.18260200321674347, 0.10994131863117218, -0.006349548697471619, 0.41574886441230774, 0.3691779375076294, -0.16091948747634888, -0.2136099636554718, 0.08543435484170914, 0.015292569994926453, 0.24364283680915833, 0.13488134741783142, -0.18128086626529694, 0.10463924705982208, -0.21582776308059692, 0.03448275476694107, -0.011732954531908035, 0.028834249824285507, -0.10363208502531052, -0.30304819345474243, 0.09602192044258118, 0.19027400016784668, -0.18442019820213318, -0.03058779239654541, -0.3210199177265167, -0.22736939787864685, -0.28020143508911133, 0.14850816130638123, 0.2875708341598511, -0.02318837121129036, 0.46703049540519714, -0.04471684992313385, -0.10733480751514435, -0.17108586430549622, -0.36242473125457764, -0.055877961218357086, -0.25884681940078735, 0.2030039131641388, 0.16474351286888123, 0.09019704163074493, -0.03371812403202057, -0.5971800088882446, 0.22674164175987244, 0.2485937625169754, 0.2303076982498169, 0.06782431155443192, -0.2015691101551056, 0.152433842420578, 0.16559603810310364, 0.23264023661613464, -0.03410421684384346, -0.2902601957321167, 0.02063329517841339, 0.17743223905563354, 0.06178071349859238, -0.2854021489620209, 0.3496537506580353, -0.04107542708516121, 0.0037135854363441467, 0.01049097627401352, 0.25450074672698975, 0.05803121626377106, -0.011549711227416992, 0.04948638379573822, 0.07942895591259003, 0.2100779116153717, -0.0605449415743351, 0.33456939458847046, 0.7754501104354858, -0.28041207790374756, 0.2012111097574234, 0.27502238750457764, 0.14586715400218964, 0.25430214405059814, 0.32052353024482727, -0.11666087806224823, 0.3449282944202423, -0.01880652830004692, -0.01994948647916317, -0.06523463129997253, -0.1228848248720169, -0.31048062443733215, -0.18171215057373047, 0.04021094739437103, 0.024276401847600937, 0.061691589653491974, 0.5748893022537231, -0.2628108859062195, -0.34839051961898804, -0.2398826777935028, 0.27559077739715576, -0.12784674763679504, -0.01544397696852684, -0.01726890355348587, 0.028749525547027588, -0.3195883333683014, -0.14997363090515137, -0.21256312727928162, -0.13776640594005585, 0.6361116766929626, 0.019825469702482224, -0.002389047294855118, -0.1892203837633133, -0.04547697305679321, 0.26282355189323425, 0.08199544996023178, -0.1269652247428894, 0.24113713204860687, 0.1011122316122055, -0.18835583329200745, 0.09760725498199463, 0.4976043999195099, 0.22012096643447876, 0.2194080650806427, -0.046345531940460205, -0.01025865226984024, -0.07822877168655396, -0.07122966647148132, 0.15365548431873322, 0.2663586139678955, -0.10759498178958893, 0.38120710849761963, 0.20454207062721252, 0.08818663656711578, -0.069119893014431, 0.15162836015224457, -0.24307867884635925, 0.311342716217041, -0.2424250841140747, 0.5272913575172424, -0.02080625295639038, -0.14544673264026642, -0.14797651767730713, 0.06425773352384567, -0.17205068469047546, 0.1480785459280014, 0.34230658411979675, 0.007757510989904404, 0.11038388311862946, -0.13282111287117004, 0.011513087898492813, 0.24308054149150848, 0.2766733467578888, 0.5207220315933228, -0.25357505679130554, -0.3213942050933838, -0.21567212045192719, -0.3150942027568817, -0.03848227858543396, 0.12944741547107697, 0.017416179180145264, -0.02454412914812565, -0.1764501929283142, 0.3041369915008545, -0.07791756093502045, 0.08097115904092789, -0.10651563107967377, -0.10172082483768463, 0.21124295890331268, -0.0689956322312355, -0.3980534076690674, -0.10888141393661499, 0.37909331917762756, -0.022704899311065674, -0.08594537526369095, -0.11285358667373657, 0.4846833348274231, -0.029358461499214172, -0.36930224299430847, 0.04411260783672333, -0.11998017132282257, -0.12868943810462952, 0.2373431771993637, 0.07642081379890442, 0.2086418718099594, 0.05883370339870453, 0.2778177261352539, 0.017605673521757126, -0.25061729550361633, -0.326689749956131, 0.06861592829227448, -0.08573238551616669, 0.42925918102264404, -0.24019122123718262, -0.17647625505924225, -0.42585521936416626, 0.007111303508281708, 0.17812083661556244, 0.046441785991191864, -0.45901602506637573, 0.4230369031429291, -0.36713874340057373, 0.08237355947494507, 0.2416839301586151, 0.3583957552909851, 0.0034973612055182457, 0.14768466353416443, -0.38634902238845825, -0.424439013004303, 0.6188309788703918, -0.18147006630897522, -0.4834167957305908, 0.12065660208463669, -0.13623549044132233, -0.08463796228170395, -0.15976308286190033, -0.5339645147323608, 0.07896505296230316, 0.10708796977996826, -0.20784638822078705, -0.3984493017196655, 0.24199025332927704, 0.1348472535610199, 0.04888230562210083, -0.05123782157897949, 0.4404886066913605, -0.022192249074578285, -0.20213203132152557, -0.1810317188501358, -0.035145353525877 ]
https://github.com/huggingface/datasets/issues/1867
I've tried your solutions @sgugger @lhoestq and the good news is that it throws no error. However, TPU training is taking forever, in 1 hour it has only trained 1 batch of 8192 elements, which doesn't make much sense... Is it possible that "on the fly" tokenization of batches is slowing down TPU training to that extent?
ERROR WHEN USING SET_TRANSFORM()
Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch.
57
ERROR WHEN USING SET_TRANSFORM() Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch. I've tried your solutions @sgugger @lhoestq and the good news is that it throws no error. However, TPU training is taking forever, in 1 hour it has only trained 1 batch of 8192 elements, which doesn't make much sense... Is it possible that "on the fly" tokenization of batches is slowing down TPU training to that extent?
[ -0.18261897563934326, -0.27325117588043213, 0.13930322229862213, 0.18474005162715912, 0.7292688488960266, 0.11970525234937668, 0.6009584665298462, 0.22877633571624756, -0.32278475165367126, 0.054477497935295105, 0.2355116754770279, 0.03332699090242386, -0.08834050595760345, -0.023404855281114578, 0.1892215609550476, -0.5358201861381531, -0.013821937143802643, 0.12886114418506622, -0.46343475580215454, -0.18311628699302673, -0.27669674158096313, 0.31342312693595886, -0.3415369987487793, 0.11934049427509308, -0.31860029697418213, -0.009608441032469273, -0.047695666551589966, 0.016471080482006073, 0.08441536128520966, -0.1718302071094513, 0.23347823321819305, -0.28007566928863525, 0.12319591641426086, 0.39745014905929565, -0.00012553716078400612, 0.11955767869949341, 0.06063556671142578, -0.28907209634780884, -0.2367868572473526, -0.30035579204559326, -0.14373117685317993, -0.1552792489528656, -0.015434540808200836, -0.24087488651275635, -0.44793689250946045, -0.18905571103096008, 0.006699064746499062, -0.26875507831573486, 0.5653693079948425, 0.7264817953109741, 0.12158740311861038, 0.26635998487472534, 0.0996970385313034, -0.23824173212051392, -0.12613502144813538, 0.1903083622455597, -0.1291116625070572, -0.02249787002801895, 0.03177592530846596, 0.2165265679359436, 0.13362421095371246, 0.1615503579378128, 0.2006310522556305, -0.1752624809741974, 0.4064543545246124, -0.06197904795408249, -0.1365286409854889, 0.0435066893696785, 0.000619078055024147, 0.010468251071870327, 0.2298872470855713, -0.345430850982666, -0.42085397243499756, -0.2735254764556885, 0.1654445230960846, -0.21410080790519714, 0.2700583040714264, 0.15038719773292542, -0.06639793515205383, 0.22794410586357117, -0.2600678503513336, -0.10983806103467941, -0.05886644497513771, 0.031330425292253494, -0.17284271121025085, 0.16238626837730408, -0.006507126614451408, 0.13033156096935272, 0.09317879378795624, 0.1813862919807434, 0.27399468421936035, 0.11535535007715225, 0.18766169250011444, 0.3649871051311493, -0.2653557360172272, -0.054786279797554016, -0.14347901940345764, 0.010828372091054916, -0.28897225856781006, -0.24927367269992828, -0.17236468195915222, -0.20850980281829834, 0.023088600486516953, -0.014951981604099274, 0.10714668035507202, 0.6613350510597229, -0.24540525674819946, 0.4977247714996338, 0.015117593109607697, -0.11207345128059387, 0.2516207993030548, -0.06356722116470337, -0.05694843456149101, -0.3780820667743683, -0.009624235332012177, 0.4175057113170624, 0.09379682689905167, -0.006041929125785828, -0.2874678075313568, -0.19327722489833832, -0.20897358655929565, -0.05788184702396393, 0.1327710747718811, 0.2179858535528183, 0.058807000517845154, 0.27133455872535706, 0.503231406211853, 0.34855687618255615, -0.10595174133777618, -0.20505836606025696, -0.17156097292900085, 0.1350133866071701, -0.3857184946537018, -0.10069866478443146, 0.14641998708248138, -0.1412293016910553, 0.32861968874931335, 0.05321209505200386, 0.07554176449775696, 0.3815329372882843, 0.152024507522583, -0.1911819875240326, 0.2819838225841522, 0.14367029070854187, -0.014327161014080048, 0.20149773359298706, 0.4693851172924042, 0.1014423668384552, -0.18617688119411469, 0.2664012908935547, -0.24845072627067566, -0.44114792346954346, 0.06094938516616821, 0.09140243381261826, -0.05300053209066391, -0.037796229124069214, -0.15948358178138733, 0.1583792269229889, 0.42052939534187317, -0.06751256436109543, 0.07630948722362518, -0.43523281812667847, 0.0418040007352829, 0.10999252647161484, 0.09002512693405151, 0.0778380036354065, -0.23285749554634094, -0.3426039516925812, 0.32585829496383667, 0.15306469798088074, -0.14334318041801453, 0.2205606997013092, -0.42858514189720154, 0.2562268078327179, -0.06257397681474686, -0.1584208905696869, 0.20988793671131134, -0.3840966820716858, -0.07108697295188904, -0.099427729845047, -0.10547103732824326, -0.21916401386260986, 0.06968478858470917, -0.1317373514175415, -0.05301930010318756, -0.15442562103271484, -0.22072617709636688, 0.5086040496826172, -0.060897327959537506, 0.23249460756778717, 0.034090109169483185, -0.022244058549404144, 0.18859639763832092, 0.13765186071395874, 0.024887653067708015, 0.15763989090919495, -0.3205074667930603, 0.512071430683136, 0.09875872731208801, -0.24417781829833984, 0.24441972374916077, 0.4102388024330139, -0.24409765005111694, -0.19196459650993347, 0.0468020886182785, 0.27647751569747925, -0.06979597359895706, -0.1489027738571167, 0.1784002184867859, 0.19635117053985596, -0.06047196686267853, 0.04845206439495087, -0.23693852126598358, -0.06417254358530045, -0.21337494254112244, -0.15852123498916626, -0.01498974859714508, 0.11016185581684113, 0.020773455500602722, -0.0464726984500885, -0.24848158657550812, 0.27239087224006653, -0.0954265370965004, 0.1349620819091797, -0.525989830493927, 0.22802084684371948, -0.21457353234291077, -0.09144507348537445, -0.06788431107997894, 0.22312068939208984, 0.24049422144889832, -0.2305196076631546, -0.32474908232688904, 0.3036767840385437, -0.21225595474243164, 0.03719201311469078, -0.3943193852901459, 0.2457399070262909, 0.30909499526023865, -0.5342991948127747, 0.0032724644988775253, 0.2634412944316864, 0.1639745682477951, -0.12745551764965057, -0.383022665977478, 0.11361074447631836, 0.07577244937419891, 0.33145156502723694, 0.10577435791492462, 0.3340391516685486, 0.05361209064722061, -0.08840541541576385, -0.20203712582588196, -0.07764468342065811, -0.015492366626858711, -0.08382349461317062, 0.16498222947120667, 0.059749454259872437, -0.22884216904640198, -0.19838784635066986, 0.4673168361186981, 0.14884209632873535, 0.021630385890603065, 0.12939010560512543, -0.1397811472415924, 0.03067045658826828, 0.1618635356426239, -0.09503509104251862, 0.5624228119850159, 0.03243715316057205, -0.23054447770118713, 0.18751484155654907, 0.06977223604917526, -0.12261378765106201, 0.4002860486507416, -0.07319551706314087, 0.02523180842399597, -0.1065489649772644, 0.06150764599442482, 0.09520678222179413, -0.16490641236305237, -0.2894913852214813, 0.2562520205974579, 0.25219762325286865, -0.47367775440216064, 0.2136499285697937, 0.0259736105799675, 0.16960373520851135, -0.5800777673721313, -0.38273975253105164, 0.03458966314792633, -0.2872622013092041, -0.1098967120051384, -0.02086542919278145, 0.12487855553627014, 0.4439493417739868, 0.10259878635406494, 0.07227258384227753, 0.2448718547821045, -0.15802259743213654, -0.061883073300123215, 0.045985620468854904, -0.1911003589630127, 0.014357633888721466, -0.18717649579048157, -0.28796666860580444, -0.05046992748975754, -0.3237556219100952, -0.05529076233506203, -0.10354068130254745, -0.1793440729379654, 0.18559414148330688, -0.29557690024375916, 0.01130075566470623, 0.32318270206451416, 0.18719452619552612, -0.19923356175422668, -0.3188306391239166, 0.43165287375450134, 0.0009160265326499939, 0.09593234956264496, -0.012725446373224258, -0.07032963633537292, -0.24257168173789978, -0.09974406659603119, -0.42642930150032043, -0.04464526101946831, -0.16895374655723572, 0.03030753880739212, -0.21778248250484467, -0.13130517303943634, 0.4203007221221924, 0.23713478446006775, 0.08430276811122894, 0.2997518479824066, 0.17405079305171967, -0.019832056015729904, -0.21119311451911926, 0.4776299297809601, -0.20679552853107452, -0.35763975977897644, -0.12714225053787231, -0.012921739369630814, 0.22187601029872894, 0.2340477555990219, -0.17647911608219147, -0.1782558262348175, -0.20401565730571747, -0.11266346275806427, -0.3014697730541229, 0.4359830319881439, 0.4326149523258209, 0.06031756103038788, 0.16860823333263397, -0.05086594820022583, -0.5156285762786865, 0.3171767294406891, 0.14240258932113647, 0.4169047474861145, -0.09299562871456146, 0.47989621758461, 0.08661115914583206, 0.7751230001449585, 0.01110132783651352, -0.32190021872520447, 0.2606614828109741, -0.16307440400123596, 0.22602808475494385, -0.14031721651554108, -0.4625387489795685, 0.27688440680503845, 0.24382346868515015, 0.03161070495843887, -0.07282145321369171, -0.0910806953907013, -0.06985233724117279, -0.1445435881614685, 0.24139279127120972, -0.10525131970643997, -0.15223568677902222, 0.14164376258850098, -0.18085640668869019, 0.558344304561615, 0.03707011044025421, 0.38957473635673523, -0.21053248643875122, 0.009345375001430511, 0.07298686355352402, -0.10951941460371017, 0.06886474788188934, 0.12381565570831299, -0.13833805918693542, -0.5897534489631653, -0.19025567173957825, 0.1065891832113266, -0.011732559651136398, 0.38561883568763733, -0.11942753195762634, -0.021435655653476715, 0.15139368176460266, 0.18907088041305542, 0.7310062050819397, 0.0729367658495903, -0.32788074016571045, -0.030984599143266678, -0.22110332548618317, -0.6239108443260193, -0.07092185318470001, 0.03942110389471054, -0.1653977632522583, -0.14672468602657318, 0.19225528836250305, -0.150356724858284, -0.17190566658973694, 0.35543137788772583, 0.03475300595164299, -0.25839924812316895, 0.07762575149536133, -0.0642111748456955, -0.523164689540863, -0.37529492378234863, 0.08177004754543304, 0.2867942154407501, 0.17634013295173645, 0.27061688899993896, 0.37055516242980957, -0.025202225893735886, -0.014630958437919617, 0.1825229674577713, 0.02297709882259369, 0.2532839775085449, 0.12009827792644501, -0.07114126533269882, 0.2466866374015808, 0.26633796095848083, 0.0747499018907547, 0.3784386217594147, 0.021826647222042084, -0.1386081427335739, -0.00596567802131176, -0.02730073407292366, 0.39178475737571716, 0.3158436417579651, -0.10386684536933899, -0.2018500119447708, 0.0003285929560661316, 0.06758543103933334, -0.05185168236494064, 0.2731790542602539, 0.46006664633750916, 0.0707787424325943, -0.15232941508293152, -0.5686458349227905, 0.19352209568023682, 0.1283530294895172, 0.11658346652984619, 0.041261643171310425, 0.1834685206413269, -0.4985370934009552, 0.30006563663482666, 0.24418365955352783, 0.9627008438110352, 0.004567076917737722, 0.41221433877944946, 0.4066111743450165, -0.17183953523635864, -0.04487825930118561, -0.11339066922664642, 0.1925230175256729, -0.26892101764678955, -0.37407076358795166, -0.12674404680728912, -0.15768001973628998, 0.15375220775604248, 0.14474806189537048, -0.4471736252307892, 0.25740188360214233, -0.10165185481309891, 0.1324460655450821, -0.051706813275814056, -0.006303310394287109, -0.11915747821331024, -0.3786027133464813, -0.42070502042770386, 0.06057655066251755, 0.008538709953427315, 0.2239290475845337, -0.021146245300769806, -0.051836926490068436, -0.07252416759729385, -0.3276565670967102, -0.19897928833961487, 0.143813818693161, -0.3425532281398773, 0.11627538502216339, 0.02154933288693428, -0.35082077980041504, 0.572816014289856, 0.4761780798435211, 0.5377930998802185, 0.048002373427152634, -0.0448533296585083, 0.2743346393108368, -0.2238798886537552, 0.23365706205368042, 0.002679716795682907, 0.11445474624633789, 0.43117865920066833, -0.026223566383123398, 0.010690480470657349, 0.2838854193687439, -0.1292872130870819, -0.04916848987340927, -0.18477044999599457, -0.27002161741256714, 0.06757622212171555, -0.3728923201560974, -0.21563346683979034, 0.1479792445898056, -0.013864882290363312, -0.12134674936532974, 0.06294877827167511, -0.14535102248191833, -0.20106038451194763, 0.1748768836259842, -0.19267213344573975, -0.3175871670246124, -0.0471322163939476, 0.5520835518836975, -0.0154434684664011, -0.025958076119422913, 0.9083887338638306, 0.144269660115242, 0.02905317395925522, -0.050625018775463104, 0.0027594417333602905, 0.5083622336387634, -0.7060850858688354, 0.19020727276802063, 0.04427943006157875, -0.11630304902791977, -0.25866079330444336, 0.22252634167671204, 0.09105890989303589, -0.12239731848239899, 0.10664840787649155, 0.026816196739673615, -0.38151511549949646, 0.043569959700107574, 0.18260200321674347, 0.10994131863117218, -0.006349548697471619, 0.41574886441230774, 0.3691779375076294, -0.16091948747634888, -0.2136099636554718, 0.08543435484170914, 0.015292569994926453, 0.24364283680915833, 0.13488134741783142, -0.18128086626529694, 0.10463924705982208, -0.21582776308059692, 0.03448275476694107, -0.011732954531908035, 0.028834249824285507, -0.10363208502531052, -0.30304819345474243, 0.09602192044258118, 0.19027400016784668, -0.18442019820213318, -0.03058779239654541, -0.3210199177265167, -0.22736939787864685, -0.28020143508911133, 0.14850816130638123, 0.2875708341598511, -0.02318837121129036, 0.46703049540519714, -0.04471684992313385, -0.10733480751514435, -0.17108586430549622, -0.36242473125457764, -0.055877961218357086, -0.25884681940078735, 0.2030039131641388, 0.16474351286888123, 0.09019704163074493, -0.03371812403202057, -0.5971800088882446, 0.22674164175987244, 0.2485937625169754, 0.2303076982498169, 0.06782431155443192, -0.2015691101551056, 0.152433842420578, 0.16559603810310364, 0.23264023661613464, -0.03410421684384346, -0.2902601957321167, 0.02063329517841339, 0.17743223905563354, 0.06178071349859238, -0.2854021489620209, 0.3496537506580353, -0.04107542708516121, 0.0037135854363441467, 0.01049097627401352, 0.25450074672698975, 0.05803121626377106, -0.011549711227416992, 0.04948638379573822, 0.07942895591259003, 0.2100779116153717, -0.0605449415743351, 0.33456939458847046, 0.7754501104354858, -0.28041207790374756, 0.2012111097574234, 0.27502238750457764, 0.14586715400218964, 0.25430214405059814, 0.32052353024482727, -0.11666087806224823, 0.3449282944202423, -0.01880652830004692, -0.01994948647916317, -0.06523463129997253, -0.1228848248720169, -0.31048062443733215, -0.18171215057373047, 0.04021094739437103, 0.024276401847600937, 0.061691589653491974, 0.5748893022537231, -0.2628108859062195, -0.34839051961898804, -0.2398826777935028, 0.27559077739715576, -0.12784674763679504, -0.01544397696852684, -0.01726890355348587, 0.028749525547027588, -0.3195883333683014, -0.14997363090515137, -0.21256312727928162, -0.13776640594005585, 0.6361116766929626, 0.019825469702482224, -0.002389047294855118, -0.1892203837633133, -0.04547697305679321, 0.26282355189323425, 0.08199544996023178, -0.1269652247428894, 0.24113713204860687, 0.1011122316122055, -0.18835583329200745, 0.09760725498199463, 0.4976043999195099, 0.22012096643447876, 0.2194080650806427, -0.046345531940460205, -0.01025865226984024, -0.07822877168655396, -0.07122966647148132, 0.15365548431873322, 0.2663586139678955, -0.10759498178958893, 0.38120710849761963, 0.20454207062721252, 0.08818663656711578, -0.069119893014431, 0.15162836015224457, -0.24307867884635925, 0.311342716217041, -0.2424250841140747, 0.5272913575172424, -0.02080625295639038, -0.14544673264026642, -0.14797651767730713, 0.06425773352384567, -0.17205068469047546, 0.1480785459280014, 0.34230658411979675, 0.007757510989904404, 0.11038388311862946, -0.13282111287117004, 0.011513087898492813, 0.24308054149150848, 0.2766733467578888, 0.5207220315933228, -0.25357505679130554, -0.3213942050933838, -0.21567212045192719, -0.3150942027568817, -0.03848227858543396, 0.12944741547107697, 0.017416179180145264, -0.02454412914812565, -0.1764501929283142, 0.3041369915008545, -0.07791756093502045, 0.08097115904092789, -0.10651563107967377, -0.10172082483768463, 0.21124295890331268, -0.0689956322312355, -0.3980534076690674, -0.10888141393661499, 0.37909331917762756, -0.022704899311065674, -0.08594537526369095, -0.11285358667373657, 0.4846833348274231, -0.029358461499214172, -0.36930224299430847, 0.04411260783672333, -0.11998017132282257, -0.12868943810462952, 0.2373431771993637, 0.07642081379890442, 0.2086418718099594, 0.05883370339870453, 0.2778177261352539, 0.017605673521757126, -0.25061729550361633, -0.326689749956131, 0.06861592829227448, -0.08573238551616669, 0.42925918102264404, -0.24019122123718262, -0.17647625505924225, -0.42585521936416626, 0.007111303508281708, 0.17812083661556244, 0.046441785991191864, -0.45901602506637573, 0.4230369031429291, -0.36713874340057373, 0.08237355947494507, 0.2416839301586151, 0.3583957552909851, 0.0034973612055182457, 0.14768466353416443, -0.38634902238845825, -0.424439013004303, 0.6188309788703918, -0.18147006630897522, -0.4834167957305908, 0.12065660208463669, -0.13623549044132233, -0.08463796228170395, -0.15976308286190033, -0.5339645147323608, 0.07896505296230316, 0.10708796977996826, -0.20784638822078705, -0.3984493017196655, 0.24199025332927704, 0.1348472535610199, 0.04888230562210083, -0.05123782157897949, 0.4404886066913605, -0.022192249074578285, -0.20213203132152557, -0.1810317188501358, -0.035145353525877 ]
https://github.com/huggingface/datasets/issues/1867
I don't know what the value of `padding` is in your lines of code pasted above so I can't say for sure. The first batch will be very slow on TPU since it compiles everything, so that's normal (1 hour is long but 8192 elements is also large). Then if your batches are not of the same lengths, it will recompile everything at each step instead of using the same graph, which will be very slow, so you should double check you are using padding to make everything the exact same shape.
ERROR WHEN USING SET_TRANSFORM()
Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch.
92
ERROR WHEN USING SET_TRANSFORM() Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch. I don't know what the value of `padding` is in your lines of code pasted above so I can't say for sure. The first batch will be very slow on TPU since it compiles everything, so that's normal (1 hour is long but 8192 elements is also large). Then if your batches are not of the same lengths, it will recompile everything at each step instead of using the same graph, which will be very slow, so you should double check you are using padding to make everything the exact same shape.
[ -0.18261897563934326, -0.27325117588043213, 0.13930322229862213, 0.18474005162715912, 0.7292688488960266, 0.11970525234937668, 0.6009584665298462, 0.22877633571624756, -0.32278475165367126, 0.054477497935295105, 0.2355116754770279, 0.03332699090242386, -0.08834050595760345, -0.023404855281114578, 0.1892215609550476, -0.5358201861381531, -0.013821937143802643, 0.12886114418506622, -0.46343475580215454, -0.18311628699302673, -0.27669674158096313, 0.31342312693595886, -0.3415369987487793, 0.11934049427509308, -0.31860029697418213, -0.009608441032469273, -0.047695666551589966, 0.016471080482006073, 0.08441536128520966, -0.1718302071094513, 0.23347823321819305, -0.28007566928863525, 0.12319591641426086, 0.39745014905929565, -0.00012553716078400612, 0.11955767869949341, 0.06063556671142578, -0.28907209634780884, -0.2367868572473526, -0.30035579204559326, -0.14373117685317993, -0.1552792489528656, -0.015434540808200836, -0.24087488651275635, -0.44793689250946045, -0.18905571103096008, 0.006699064746499062, -0.26875507831573486, 0.5653693079948425, 0.7264817953109741, 0.12158740311861038, 0.26635998487472534, 0.0996970385313034, -0.23824173212051392, -0.12613502144813538, 0.1903083622455597, -0.1291116625070572, -0.02249787002801895, 0.03177592530846596, 0.2165265679359436, 0.13362421095371246, 0.1615503579378128, 0.2006310522556305, -0.1752624809741974, 0.4064543545246124, -0.06197904795408249, -0.1365286409854889, 0.0435066893696785, 0.000619078055024147, 0.010468251071870327, 0.2298872470855713, -0.345430850982666, -0.42085397243499756, -0.2735254764556885, 0.1654445230960846, -0.21410080790519714, 0.2700583040714264, 0.15038719773292542, -0.06639793515205383, 0.22794410586357117, -0.2600678503513336, -0.10983806103467941, -0.05886644497513771, 0.031330425292253494, -0.17284271121025085, 0.16238626837730408, -0.006507126614451408, 0.13033156096935272, 0.09317879378795624, 0.1813862919807434, 0.27399468421936035, 0.11535535007715225, 0.18766169250011444, 0.3649871051311493, -0.2653557360172272, -0.054786279797554016, -0.14347901940345764, 0.010828372091054916, -0.28897225856781006, -0.24927367269992828, -0.17236468195915222, -0.20850980281829834, 0.023088600486516953, -0.014951981604099274, 0.10714668035507202, 0.6613350510597229, -0.24540525674819946, 0.4977247714996338, 0.015117593109607697, -0.11207345128059387, 0.2516207993030548, -0.06356722116470337, -0.05694843456149101, -0.3780820667743683, -0.009624235332012177, 0.4175057113170624, 0.09379682689905167, -0.006041929125785828, -0.2874678075313568, -0.19327722489833832, -0.20897358655929565, -0.05788184702396393, 0.1327710747718811, 0.2179858535528183, 0.058807000517845154, 0.27133455872535706, 0.503231406211853, 0.34855687618255615, -0.10595174133777618, -0.20505836606025696, -0.17156097292900085, 0.1350133866071701, -0.3857184946537018, -0.10069866478443146, 0.14641998708248138, -0.1412293016910553, 0.32861968874931335, 0.05321209505200386, 0.07554176449775696, 0.3815329372882843, 0.152024507522583, -0.1911819875240326, 0.2819838225841522, 0.14367029070854187, -0.014327161014080048, 0.20149773359298706, 0.4693851172924042, 0.1014423668384552, -0.18617688119411469, 0.2664012908935547, -0.24845072627067566, -0.44114792346954346, 0.06094938516616821, 0.09140243381261826, -0.05300053209066391, -0.037796229124069214, -0.15948358178138733, 0.1583792269229889, 0.42052939534187317, -0.06751256436109543, 0.07630948722362518, -0.43523281812667847, 0.0418040007352829, 0.10999252647161484, 0.09002512693405151, 0.0778380036354065, -0.23285749554634094, -0.3426039516925812, 0.32585829496383667, 0.15306469798088074, -0.14334318041801453, 0.2205606997013092, -0.42858514189720154, 0.2562268078327179, -0.06257397681474686, -0.1584208905696869, 0.20988793671131134, -0.3840966820716858, -0.07108697295188904, -0.099427729845047, -0.10547103732824326, -0.21916401386260986, 0.06968478858470917, -0.1317373514175415, -0.05301930010318756, -0.15442562103271484, -0.22072617709636688, 0.5086040496826172, -0.060897327959537506, 0.23249460756778717, 0.034090109169483185, -0.022244058549404144, 0.18859639763832092, 0.13765186071395874, 0.024887653067708015, 0.15763989090919495, -0.3205074667930603, 0.512071430683136, 0.09875872731208801, -0.24417781829833984, 0.24441972374916077, 0.4102388024330139, -0.24409765005111694, -0.19196459650993347, 0.0468020886182785, 0.27647751569747925, -0.06979597359895706, -0.1489027738571167, 0.1784002184867859, 0.19635117053985596, -0.06047196686267853, 0.04845206439495087, -0.23693852126598358, -0.06417254358530045, -0.21337494254112244, -0.15852123498916626, -0.01498974859714508, 0.11016185581684113, 0.020773455500602722, -0.0464726984500885, -0.24848158657550812, 0.27239087224006653, -0.0954265370965004, 0.1349620819091797, -0.525989830493927, 0.22802084684371948, -0.21457353234291077, -0.09144507348537445, -0.06788431107997894, 0.22312068939208984, 0.24049422144889832, -0.2305196076631546, -0.32474908232688904, 0.3036767840385437, -0.21225595474243164, 0.03719201311469078, -0.3943193852901459, 0.2457399070262909, 0.30909499526023865, -0.5342991948127747, 0.0032724644988775253, 0.2634412944316864, 0.1639745682477951, -0.12745551764965057, -0.383022665977478, 0.11361074447631836, 0.07577244937419891, 0.33145156502723694, 0.10577435791492462, 0.3340391516685486, 0.05361209064722061, -0.08840541541576385, -0.20203712582588196, -0.07764468342065811, -0.015492366626858711, -0.08382349461317062, 0.16498222947120667, 0.059749454259872437, -0.22884216904640198, -0.19838784635066986, 0.4673168361186981, 0.14884209632873535, 0.021630385890603065, 0.12939010560512543, -0.1397811472415924, 0.03067045658826828, 0.1618635356426239, -0.09503509104251862, 0.5624228119850159, 0.03243715316057205, -0.23054447770118713, 0.18751484155654907, 0.06977223604917526, -0.12261378765106201, 0.4002860486507416, -0.07319551706314087, 0.02523180842399597, -0.1065489649772644, 0.06150764599442482, 0.09520678222179413, -0.16490641236305237, -0.2894913852214813, 0.2562520205974579, 0.25219762325286865, -0.47367775440216064, 0.2136499285697937, 0.0259736105799675, 0.16960373520851135, -0.5800777673721313, -0.38273975253105164, 0.03458966314792633, -0.2872622013092041, -0.1098967120051384, -0.02086542919278145, 0.12487855553627014, 0.4439493417739868, 0.10259878635406494, 0.07227258384227753, 0.2448718547821045, -0.15802259743213654, -0.061883073300123215, 0.045985620468854904, -0.1911003589630127, 0.014357633888721466, -0.18717649579048157, -0.28796666860580444, -0.05046992748975754, -0.3237556219100952, -0.05529076233506203, -0.10354068130254745, -0.1793440729379654, 0.18559414148330688, -0.29557690024375916, 0.01130075566470623, 0.32318270206451416, 0.18719452619552612, -0.19923356175422668, -0.3188306391239166, 0.43165287375450134, 0.0009160265326499939, 0.09593234956264496, -0.012725446373224258, -0.07032963633537292, -0.24257168173789978, -0.09974406659603119, -0.42642930150032043, -0.04464526101946831, -0.16895374655723572, 0.03030753880739212, -0.21778248250484467, -0.13130517303943634, 0.4203007221221924, 0.23713478446006775, 0.08430276811122894, 0.2997518479824066, 0.17405079305171967, -0.019832056015729904, -0.21119311451911926, 0.4776299297809601, -0.20679552853107452, -0.35763975977897644, -0.12714225053787231, -0.012921739369630814, 0.22187601029872894, 0.2340477555990219, -0.17647911608219147, -0.1782558262348175, -0.20401565730571747, -0.11266346275806427, -0.3014697730541229, 0.4359830319881439, 0.4326149523258209, 0.06031756103038788, 0.16860823333263397, -0.05086594820022583, -0.5156285762786865, 0.3171767294406891, 0.14240258932113647, 0.4169047474861145, -0.09299562871456146, 0.47989621758461, 0.08661115914583206, 0.7751230001449585, 0.01110132783651352, -0.32190021872520447, 0.2606614828109741, -0.16307440400123596, 0.22602808475494385, -0.14031721651554108, -0.4625387489795685, 0.27688440680503845, 0.24382346868515015, 0.03161070495843887, -0.07282145321369171, -0.0910806953907013, -0.06985233724117279, -0.1445435881614685, 0.24139279127120972, -0.10525131970643997, -0.15223568677902222, 0.14164376258850098, -0.18085640668869019, 0.558344304561615, 0.03707011044025421, 0.38957473635673523, -0.21053248643875122, 0.009345375001430511, 0.07298686355352402, -0.10951941460371017, 0.06886474788188934, 0.12381565570831299, -0.13833805918693542, -0.5897534489631653, -0.19025567173957825, 0.1065891832113266, -0.011732559651136398, 0.38561883568763733, -0.11942753195762634, -0.021435655653476715, 0.15139368176460266, 0.18907088041305542, 0.7310062050819397, 0.0729367658495903, -0.32788074016571045, -0.030984599143266678, -0.22110332548618317, -0.6239108443260193, -0.07092185318470001, 0.03942110389471054, -0.1653977632522583, -0.14672468602657318, 0.19225528836250305, -0.150356724858284, -0.17190566658973694, 0.35543137788772583, 0.03475300595164299, -0.25839924812316895, 0.07762575149536133, -0.0642111748456955, -0.523164689540863, -0.37529492378234863, 0.08177004754543304, 0.2867942154407501, 0.17634013295173645, 0.27061688899993896, 0.37055516242980957, -0.025202225893735886, -0.014630958437919617, 0.1825229674577713, 0.02297709882259369, 0.2532839775085449, 0.12009827792644501, -0.07114126533269882, 0.2466866374015808, 0.26633796095848083, 0.0747499018907547, 0.3784386217594147, 0.021826647222042084, -0.1386081427335739, -0.00596567802131176, -0.02730073407292366, 0.39178475737571716, 0.3158436417579651, -0.10386684536933899, -0.2018500119447708, 0.0003285929560661316, 0.06758543103933334, -0.05185168236494064, 0.2731790542602539, 0.46006664633750916, 0.0707787424325943, -0.15232941508293152, -0.5686458349227905, 0.19352209568023682, 0.1283530294895172, 0.11658346652984619, 0.041261643171310425, 0.1834685206413269, -0.4985370934009552, 0.30006563663482666, 0.24418365955352783, 0.9627008438110352, 0.004567076917737722, 0.41221433877944946, 0.4066111743450165, -0.17183953523635864, -0.04487825930118561, -0.11339066922664642, 0.1925230175256729, -0.26892101764678955, -0.37407076358795166, -0.12674404680728912, -0.15768001973628998, 0.15375220775604248, 0.14474806189537048, -0.4471736252307892, 0.25740188360214233, -0.10165185481309891, 0.1324460655450821, -0.051706813275814056, -0.006303310394287109, -0.11915747821331024, -0.3786027133464813, -0.42070502042770386, 0.06057655066251755, 0.008538709953427315, 0.2239290475845337, -0.021146245300769806, -0.051836926490068436, -0.07252416759729385, -0.3276565670967102, -0.19897928833961487, 0.143813818693161, -0.3425532281398773, 0.11627538502216339, 0.02154933288693428, -0.35082077980041504, 0.572816014289856, 0.4761780798435211, 0.5377930998802185, 0.048002373427152634, -0.0448533296585083, 0.2743346393108368, -0.2238798886537552, 0.23365706205368042, 0.002679716795682907, 0.11445474624633789, 0.43117865920066833, -0.026223566383123398, 0.010690480470657349, 0.2838854193687439, -0.1292872130870819, -0.04916848987340927, -0.18477044999599457, -0.27002161741256714, 0.06757622212171555, -0.3728923201560974, -0.21563346683979034, 0.1479792445898056, -0.013864882290363312, -0.12134674936532974, 0.06294877827167511, -0.14535102248191833, -0.20106038451194763, 0.1748768836259842, -0.19267213344573975, -0.3175871670246124, -0.0471322163939476, 0.5520835518836975, -0.0154434684664011, -0.025958076119422913, 0.9083887338638306, 0.144269660115242, 0.02905317395925522, -0.050625018775463104, 0.0027594417333602905, 0.5083622336387634, -0.7060850858688354, 0.19020727276802063, 0.04427943006157875, -0.11630304902791977, -0.25866079330444336, 0.22252634167671204, 0.09105890989303589, -0.12239731848239899, 0.10664840787649155, 0.026816196739673615, -0.38151511549949646, 0.043569959700107574, 0.18260200321674347, 0.10994131863117218, -0.006349548697471619, 0.41574886441230774, 0.3691779375076294, -0.16091948747634888, -0.2136099636554718, 0.08543435484170914, 0.015292569994926453, 0.24364283680915833, 0.13488134741783142, -0.18128086626529694, 0.10463924705982208, -0.21582776308059692, 0.03448275476694107, -0.011732954531908035, 0.028834249824285507, -0.10363208502531052, -0.30304819345474243, 0.09602192044258118, 0.19027400016784668, -0.18442019820213318, -0.03058779239654541, -0.3210199177265167, -0.22736939787864685, -0.28020143508911133, 0.14850816130638123, 0.2875708341598511, -0.02318837121129036, 0.46703049540519714, -0.04471684992313385, -0.10733480751514435, -0.17108586430549622, -0.36242473125457764, -0.055877961218357086, -0.25884681940078735, 0.2030039131641388, 0.16474351286888123, 0.09019704163074493, -0.03371812403202057, -0.5971800088882446, 0.22674164175987244, 0.2485937625169754, 0.2303076982498169, 0.06782431155443192, -0.2015691101551056, 0.152433842420578, 0.16559603810310364, 0.23264023661613464, -0.03410421684384346, -0.2902601957321167, 0.02063329517841339, 0.17743223905563354, 0.06178071349859238, -0.2854021489620209, 0.3496537506580353, -0.04107542708516121, 0.0037135854363441467, 0.01049097627401352, 0.25450074672698975, 0.05803121626377106, -0.011549711227416992, 0.04948638379573822, 0.07942895591259003, 0.2100779116153717, -0.0605449415743351, 0.33456939458847046, 0.7754501104354858, -0.28041207790374756, 0.2012111097574234, 0.27502238750457764, 0.14586715400218964, 0.25430214405059814, 0.32052353024482727, -0.11666087806224823, 0.3449282944202423, -0.01880652830004692, -0.01994948647916317, -0.06523463129997253, -0.1228848248720169, -0.31048062443733215, -0.18171215057373047, 0.04021094739437103, 0.024276401847600937, 0.061691589653491974, 0.5748893022537231, -0.2628108859062195, -0.34839051961898804, -0.2398826777935028, 0.27559077739715576, -0.12784674763679504, -0.01544397696852684, -0.01726890355348587, 0.028749525547027588, -0.3195883333683014, -0.14997363090515137, -0.21256312727928162, -0.13776640594005585, 0.6361116766929626, 0.019825469702482224, -0.002389047294855118, -0.1892203837633133, -0.04547697305679321, 0.26282355189323425, 0.08199544996023178, -0.1269652247428894, 0.24113713204860687, 0.1011122316122055, -0.18835583329200745, 0.09760725498199463, 0.4976043999195099, 0.22012096643447876, 0.2194080650806427, -0.046345531940460205, -0.01025865226984024, -0.07822877168655396, -0.07122966647148132, 0.15365548431873322, 0.2663586139678955, -0.10759498178958893, 0.38120710849761963, 0.20454207062721252, 0.08818663656711578, -0.069119893014431, 0.15162836015224457, -0.24307867884635925, 0.311342716217041, -0.2424250841140747, 0.5272913575172424, -0.02080625295639038, -0.14544673264026642, -0.14797651767730713, 0.06425773352384567, -0.17205068469047546, 0.1480785459280014, 0.34230658411979675, 0.007757510989904404, 0.11038388311862946, -0.13282111287117004, 0.011513087898492813, 0.24308054149150848, 0.2766733467578888, 0.5207220315933228, -0.25357505679130554, -0.3213942050933838, -0.21567212045192719, -0.3150942027568817, -0.03848227858543396, 0.12944741547107697, 0.017416179180145264, -0.02454412914812565, -0.1764501929283142, 0.3041369915008545, -0.07791756093502045, 0.08097115904092789, -0.10651563107967377, -0.10172082483768463, 0.21124295890331268, -0.0689956322312355, -0.3980534076690674, -0.10888141393661499, 0.37909331917762756, -0.022704899311065674, -0.08594537526369095, -0.11285358667373657, 0.4846833348274231, -0.029358461499214172, -0.36930224299430847, 0.04411260783672333, -0.11998017132282257, -0.12868943810462952, 0.2373431771993637, 0.07642081379890442, 0.2086418718099594, 0.05883370339870453, 0.2778177261352539, 0.017605673521757126, -0.25061729550361633, -0.326689749956131, 0.06861592829227448, -0.08573238551616669, 0.42925918102264404, -0.24019122123718262, -0.17647625505924225, -0.42585521936416626, 0.007111303508281708, 0.17812083661556244, 0.046441785991191864, -0.45901602506637573, 0.4230369031429291, -0.36713874340057373, 0.08237355947494507, 0.2416839301586151, 0.3583957552909851, 0.0034973612055182457, 0.14768466353416443, -0.38634902238845825, -0.424439013004303, 0.6188309788703918, -0.18147006630897522, -0.4834167957305908, 0.12065660208463669, -0.13623549044132233, -0.08463796228170395, -0.15976308286190033, -0.5339645147323608, 0.07896505296230316, 0.10708796977996826, -0.20784638822078705, -0.3984493017196655, 0.24199025332927704, 0.1348472535610199, 0.04888230562210083, -0.05123782157897949, 0.4404886066913605, -0.022192249074578285, -0.20213203132152557, -0.1810317188501358, -0.035145353525877 ]
https://github.com/huggingface/datasets/issues/1867
I have tried now on a GPU and it goes smooth! Amazing feature .set_transform() instead of .map()! Now I can pre-train my model without the hard disk limitation. Thanks for your work all HuggingFace team!! :clap:
ERROR WHEN USING SET_TRANSFORM()
Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch.
36
ERROR WHEN USING SET_TRANSFORM() Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch. I have tried now on a GPU and it goes smooth! Amazing feature .set_transform() instead of .map()! Now I can pre-train my model without the hard disk limitation. Thanks for your work all HuggingFace team!! :clap:
[ -0.18261897563934326, -0.27325117588043213, 0.13930322229862213, 0.18474005162715912, 0.7292688488960266, 0.11970525234937668, 0.6009584665298462, 0.22877633571624756, -0.32278475165367126, 0.054477497935295105, 0.2355116754770279, 0.03332699090242386, -0.08834050595760345, -0.023404855281114578, 0.1892215609550476, -0.5358201861381531, -0.013821937143802643, 0.12886114418506622, -0.46343475580215454, -0.18311628699302673, -0.27669674158096313, 0.31342312693595886, -0.3415369987487793, 0.11934049427509308, -0.31860029697418213, -0.009608441032469273, -0.047695666551589966, 0.016471080482006073, 0.08441536128520966, -0.1718302071094513, 0.23347823321819305, -0.28007566928863525, 0.12319591641426086, 0.39745014905929565, -0.00012553716078400612, 0.11955767869949341, 0.06063556671142578, -0.28907209634780884, -0.2367868572473526, -0.30035579204559326, -0.14373117685317993, -0.1552792489528656, -0.015434540808200836, -0.24087488651275635, -0.44793689250946045, -0.18905571103096008, 0.006699064746499062, -0.26875507831573486, 0.5653693079948425, 0.7264817953109741, 0.12158740311861038, 0.26635998487472534, 0.0996970385313034, -0.23824173212051392, -0.12613502144813538, 0.1903083622455597, -0.1291116625070572, -0.02249787002801895, 0.03177592530846596, 0.2165265679359436, 0.13362421095371246, 0.1615503579378128, 0.2006310522556305, -0.1752624809741974, 0.4064543545246124, -0.06197904795408249, -0.1365286409854889, 0.0435066893696785, 0.000619078055024147, 0.010468251071870327, 0.2298872470855713, -0.345430850982666, -0.42085397243499756, -0.2735254764556885, 0.1654445230960846, -0.21410080790519714, 0.2700583040714264, 0.15038719773292542, -0.06639793515205383, 0.22794410586357117, -0.2600678503513336, -0.10983806103467941, -0.05886644497513771, 0.031330425292253494, -0.17284271121025085, 0.16238626837730408, -0.006507126614451408, 0.13033156096935272, 0.09317879378795624, 0.1813862919807434, 0.27399468421936035, 0.11535535007715225, 0.18766169250011444, 0.3649871051311493, -0.2653557360172272, -0.054786279797554016, -0.14347901940345764, 0.010828372091054916, -0.28897225856781006, -0.24927367269992828, -0.17236468195915222, -0.20850980281829834, 0.023088600486516953, -0.014951981604099274, 0.10714668035507202, 0.6613350510597229, -0.24540525674819946, 0.4977247714996338, 0.015117593109607697, -0.11207345128059387, 0.2516207993030548, -0.06356722116470337, -0.05694843456149101, -0.3780820667743683, -0.009624235332012177, 0.4175057113170624, 0.09379682689905167, -0.006041929125785828, -0.2874678075313568, -0.19327722489833832, -0.20897358655929565, -0.05788184702396393, 0.1327710747718811, 0.2179858535528183, 0.058807000517845154, 0.27133455872535706, 0.503231406211853, 0.34855687618255615, -0.10595174133777618, -0.20505836606025696, -0.17156097292900085, 0.1350133866071701, -0.3857184946537018, -0.10069866478443146, 0.14641998708248138, -0.1412293016910553, 0.32861968874931335, 0.05321209505200386, 0.07554176449775696, 0.3815329372882843, 0.152024507522583, -0.1911819875240326, 0.2819838225841522, 0.14367029070854187, -0.014327161014080048, 0.20149773359298706, 0.4693851172924042, 0.1014423668384552, -0.18617688119411469, 0.2664012908935547, -0.24845072627067566, -0.44114792346954346, 0.06094938516616821, 0.09140243381261826, -0.05300053209066391, -0.037796229124069214, -0.15948358178138733, 0.1583792269229889, 0.42052939534187317, -0.06751256436109543, 0.07630948722362518, -0.43523281812667847, 0.0418040007352829, 0.10999252647161484, 0.09002512693405151, 0.0778380036354065, -0.23285749554634094, -0.3426039516925812, 0.32585829496383667, 0.15306469798088074, -0.14334318041801453, 0.2205606997013092, -0.42858514189720154, 0.2562268078327179, -0.06257397681474686, -0.1584208905696869, 0.20988793671131134, -0.3840966820716858, -0.07108697295188904, -0.099427729845047, -0.10547103732824326, -0.21916401386260986, 0.06968478858470917, -0.1317373514175415, -0.05301930010318756, -0.15442562103271484, -0.22072617709636688, 0.5086040496826172, -0.060897327959537506, 0.23249460756778717, 0.034090109169483185, -0.022244058549404144, 0.18859639763832092, 0.13765186071395874, 0.024887653067708015, 0.15763989090919495, -0.3205074667930603, 0.512071430683136, 0.09875872731208801, -0.24417781829833984, 0.24441972374916077, 0.4102388024330139, -0.24409765005111694, -0.19196459650993347, 0.0468020886182785, 0.27647751569747925, -0.06979597359895706, -0.1489027738571167, 0.1784002184867859, 0.19635117053985596, -0.06047196686267853, 0.04845206439495087, -0.23693852126598358, -0.06417254358530045, -0.21337494254112244, -0.15852123498916626, -0.01498974859714508, 0.11016185581684113, 0.020773455500602722, -0.0464726984500885, -0.24848158657550812, 0.27239087224006653, -0.0954265370965004, 0.1349620819091797, -0.525989830493927, 0.22802084684371948, -0.21457353234291077, -0.09144507348537445, -0.06788431107997894, 0.22312068939208984, 0.24049422144889832, -0.2305196076631546, -0.32474908232688904, 0.3036767840385437, -0.21225595474243164, 0.03719201311469078, -0.3943193852901459, 0.2457399070262909, 0.30909499526023865, -0.5342991948127747, 0.0032724644988775253, 0.2634412944316864, 0.1639745682477951, -0.12745551764965057, -0.383022665977478, 0.11361074447631836, 0.07577244937419891, 0.33145156502723694, 0.10577435791492462, 0.3340391516685486, 0.05361209064722061, -0.08840541541576385, -0.20203712582588196, -0.07764468342065811, -0.015492366626858711, -0.08382349461317062, 0.16498222947120667, 0.059749454259872437, -0.22884216904640198, -0.19838784635066986, 0.4673168361186981, 0.14884209632873535, 0.021630385890603065, 0.12939010560512543, -0.1397811472415924, 0.03067045658826828, 0.1618635356426239, -0.09503509104251862, 0.5624228119850159, 0.03243715316057205, -0.23054447770118713, 0.18751484155654907, 0.06977223604917526, -0.12261378765106201, 0.4002860486507416, -0.07319551706314087, 0.02523180842399597, -0.1065489649772644, 0.06150764599442482, 0.09520678222179413, -0.16490641236305237, -0.2894913852214813, 0.2562520205974579, 0.25219762325286865, -0.47367775440216064, 0.2136499285697937, 0.0259736105799675, 0.16960373520851135, -0.5800777673721313, -0.38273975253105164, 0.03458966314792633, -0.2872622013092041, -0.1098967120051384, -0.02086542919278145, 0.12487855553627014, 0.4439493417739868, 0.10259878635406494, 0.07227258384227753, 0.2448718547821045, -0.15802259743213654, -0.061883073300123215, 0.045985620468854904, -0.1911003589630127, 0.014357633888721466, -0.18717649579048157, -0.28796666860580444, -0.05046992748975754, -0.3237556219100952, -0.05529076233506203, -0.10354068130254745, -0.1793440729379654, 0.18559414148330688, -0.29557690024375916, 0.01130075566470623, 0.32318270206451416, 0.18719452619552612, -0.19923356175422668, -0.3188306391239166, 0.43165287375450134, 0.0009160265326499939, 0.09593234956264496, -0.012725446373224258, -0.07032963633537292, -0.24257168173789978, -0.09974406659603119, -0.42642930150032043, -0.04464526101946831, -0.16895374655723572, 0.03030753880739212, -0.21778248250484467, -0.13130517303943634, 0.4203007221221924, 0.23713478446006775, 0.08430276811122894, 0.2997518479824066, 0.17405079305171967, -0.019832056015729904, -0.21119311451911926, 0.4776299297809601, -0.20679552853107452, -0.35763975977897644, -0.12714225053787231, -0.012921739369630814, 0.22187601029872894, 0.2340477555990219, -0.17647911608219147, -0.1782558262348175, -0.20401565730571747, -0.11266346275806427, -0.3014697730541229, 0.4359830319881439, 0.4326149523258209, 0.06031756103038788, 0.16860823333263397, -0.05086594820022583, -0.5156285762786865, 0.3171767294406891, 0.14240258932113647, 0.4169047474861145, -0.09299562871456146, 0.47989621758461, 0.08661115914583206, 0.7751230001449585, 0.01110132783651352, -0.32190021872520447, 0.2606614828109741, -0.16307440400123596, 0.22602808475494385, -0.14031721651554108, -0.4625387489795685, 0.27688440680503845, 0.24382346868515015, 0.03161070495843887, -0.07282145321369171, -0.0910806953907013, -0.06985233724117279, -0.1445435881614685, 0.24139279127120972, -0.10525131970643997, -0.15223568677902222, 0.14164376258850098, -0.18085640668869019, 0.558344304561615, 0.03707011044025421, 0.38957473635673523, -0.21053248643875122, 0.009345375001430511, 0.07298686355352402, -0.10951941460371017, 0.06886474788188934, 0.12381565570831299, -0.13833805918693542, -0.5897534489631653, -0.19025567173957825, 0.1065891832113266, -0.011732559651136398, 0.38561883568763733, -0.11942753195762634, -0.021435655653476715, 0.15139368176460266, 0.18907088041305542, 0.7310062050819397, 0.0729367658495903, -0.32788074016571045, -0.030984599143266678, -0.22110332548618317, -0.6239108443260193, -0.07092185318470001, 0.03942110389471054, -0.1653977632522583, -0.14672468602657318, 0.19225528836250305, -0.150356724858284, -0.17190566658973694, 0.35543137788772583, 0.03475300595164299, -0.25839924812316895, 0.07762575149536133, -0.0642111748456955, -0.523164689540863, -0.37529492378234863, 0.08177004754543304, 0.2867942154407501, 0.17634013295173645, 0.27061688899993896, 0.37055516242980957, -0.025202225893735886, -0.014630958437919617, 0.1825229674577713, 0.02297709882259369, 0.2532839775085449, 0.12009827792644501, -0.07114126533269882, 0.2466866374015808, 0.26633796095848083, 0.0747499018907547, 0.3784386217594147, 0.021826647222042084, -0.1386081427335739, -0.00596567802131176, -0.02730073407292366, 0.39178475737571716, 0.3158436417579651, -0.10386684536933899, -0.2018500119447708, 0.0003285929560661316, 0.06758543103933334, -0.05185168236494064, 0.2731790542602539, 0.46006664633750916, 0.0707787424325943, -0.15232941508293152, -0.5686458349227905, 0.19352209568023682, 0.1283530294895172, 0.11658346652984619, 0.041261643171310425, 0.1834685206413269, -0.4985370934009552, 0.30006563663482666, 0.24418365955352783, 0.9627008438110352, 0.004567076917737722, 0.41221433877944946, 0.4066111743450165, -0.17183953523635864, -0.04487825930118561, -0.11339066922664642, 0.1925230175256729, -0.26892101764678955, -0.37407076358795166, -0.12674404680728912, -0.15768001973628998, 0.15375220775604248, 0.14474806189537048, -0.4471736252307892, 0.25740188360214233, -0.10165185481309891, 0.1324460655450821, -0.051706813275814056, -0.006303310394287109, -0.11915747821331024, -0.3786027133464813, -0.42070502042770386, 0.06057655066251755, 0.008538709953427315, 0.2239290475845337, -0.021146245300769806, -0.051836926490068436, -0.07252416759729385, -0.3276565670967102, -0.19897928833961487, 0.143813818693161, -0.3425532281398773, 0.11627538502216339, 0.02154933288693428, -0.35082077980041504, 0.572816014289856, 0.4761780798435211, 0.5377930998802185, 0.048002373427152634, -0.0448533296585083, 0.2743346393108368, -0.2238798886537552, 0.23365706205368042, 0.002679716795682907, 0.11445474624633789, 0.43117865920066833, -0.026223566383123398, 0.010690480470657349, 0.2838854193687439, -0.1292872130870819, -0.04916848987340927, -0.18477044999599457, -0.27002161741256714, 0.06757622212171555, -0.3728923201560974, -0.21563346683979034, 0.1479792445898056, -0.013864882290363312, -0.12134674936532974, 0.06294877827167511, -0.14535102248191833, -0.20106038451194763, 0.1748768836259842, -0.19267213344573975, -0.3175871670246124, -0.0471322163939476, 0.5520835518836975, -0.0154434684664011, -0.025958076119422913, 0.9083887338638306, 0.144269660115242, 0.02905317395925522, -0.050625018775463104, 0.0027594417333602905, 0.5083622336387634, -0.7060850858688354, 0.19020727276802063, 0.04427943006157875, -0.11630304902791977, -0.25866079330444336, 0.22252634167671204, 0.09105890989303589, -0.12239731848239899, 0.10664840787649155, 0.026816196739673615, -0.38151511549949646, 0.043569959700107574, 0.18260200321674347, 0.10994131863117218, -0.006349548697471619, 0.41574886441230774, 0.3691779375076294, -0.16091948747634888, -0.2136099636554718, 0.08543435484170914, 0.015292569994926453, 0.24364283680915833, 0.13488134741783142, -0.18128086626529694, 0.10463924705982208, -0.21582776308059692, 0.03448275476694107, -0.011732954531908035, 0.028834249824285507, -0.10363208502531052, -0.30304819345474243, 0.09602192044258118, 0.19027400016784668, -0.18442019820213318, -0.03058779239654541, -0.3210199177265167, -0.22736939787864685, -0.28020143508911133, 0.14850816130638123, 0.2875708341598511, -0.02318837121129036, 0.46703049540519714, -0.04471684992313385, -0.10733480751514435, -0.17108586430549622, -0.36242473125457764, -0.055877961218357086, -0.25884681940078735, 0.2030039131641388, 0.16474351286888123, 0.09019704163074493, -0.03371812403202057, -0.5971800088882446, 0.22674164175987244, 0.2485937625169754, 0.2303076982498169, 0.06782431155443192, -0.2015691101551056, 0.152433842420578, 0.16559603810310364, 0.23264023661613464, -0.03410421684384346, -0.2902601957321167, 0.02063329517841339, 0.17743223905563354, 0.06178071349859238, -0.2854021489620209, 0.3496537506580353, -0.04107542708516121, 0.0037135854363441467, 0.01049097627401352, 0.25450074672698975, 0.05803121626377106, -0.011549711227416992, 0.04948638379573822, 0.07942895591259003, 0.2100779116153717, -0.0605449415743351, 0.33456939458847046, 0.7754501104354858, -0.28041207790374756, 0.2012111097574234, 0.27502238750457764, 0.14586715400218964, 0.25430214405059814, 0.32052353024482727, -0.11666087806224823, 0.3449282944202423, -0.01880652830004692, -0.01994948647916317, -0.06523463129997253, -0.1228848248720169, -0.31048062443733215, -0.18171215057373047, 0.04021094739437103, 0.024276401847600937, 0.061691589653491974, 0.5748893022537231, -0.2628108859062195, -0.34839051961898804, -0.2398826777935028, 0.27559077739715576, -0.12784674763679504, -0.01544397696852684, -0.01726890355348587, 0.028749525547027588, -0.3195883333683014, -0.14997363090515137, -0.21256312727928162, -0.13776640594005585, 0.6361116766929626, 0.019825469702482224, -0.002389047294855118, -0.1892203837633133, -0.04547697305679321, 0.26282355189323425, 0.08199544996023178, -0.1269652247428894, 0.24113713204860687, 0.1011122316122055, -0.18835583329200745, 0.09760725498199463, 0.4976043999195099, 0.22012096643447876, 0.2194080650806427, -0.046345531940460205, -0.01025865226984024, -0.07822877168655396, -0.07122966647148132, 0.15365548431873322, 0.2663586139678955, -0.10759498178958893, 0.38120710849761963, 0.20454207062721252, 0.08818663656711578, -0.069119893014431, 0.15162836015224457, -0.24307867884635925, 0.311342716217041, -0.2424250841140747, 0.5272913575172424, -0.02080625295639038, -0.14544673264026642, -0.14797651767730713, 0.06425773352384567, -0.17205068469047546, 0.1480785459280014, 0.34230658411979675, 0.007757510989904404, 0.11038388311862946, -0.13282111287117004, 0.011513087898492813, 0.24308054149150848, 0.2766733467578888, 0.5207220315933228, -0.25357505679130554, -0.3213942050933838, -0.21567212045192719, -0.3150942027568817, -0.03848227858543396, 0.12944741547107697, 0.017416179180145264, -0.02454412914812565, -0.1764501929283142, 0.3041369915008545, -0.07791756093502045, 0.08097115904092789, -0.10651563107967377, -0.10172082483768463, 0.21124295890331268, -0.0689956322312355, -0.3980534076690674, -0.10888141393661499, 0.37909331917762756, -0.022704899311065674, -0.08594537526369095, -0.11285358667373657, 0.4846833348274231, -0.029358461499214172, -0.36930224299430847, 0.04411260783672333, -0.11998017132282257, -0.12868943810462952, 0.2373431771993637, 0.07642081379890442, 0.2086418718099594, 0.05883370339870453, 0.2778177261352539, 0.017605673521757126, -0.25061729550361633, -0.326689749956131, 0.06861592829227448, -0.08573238551616669, 0.42925918102264404, -0.24019122123718262, -0.17647625505924225, -0.42585521936416626, 0.007111303508281708, 0.17812083661556244, 0.046441785991191864, -0.45901602506637573, 0.4230369031429291, -0.36713874340057373, 0.08237355947494507, 0.2416839301586151, 0.3583957552909851, 0.0034973612055182457, 0.14768466353416443, -0.38634902238845825, -0.424439013004303, 0.6188309788703918, -0.18147006630897522, -0.4834167957305908, 0.12065660208463669, -0.13623549044132233, -0.08463796228170395, -0.15976308286190033, -0.5339645147323608, 0.07896505296230316, 0.10708796977996826, -0.20784638822078705, -0.3984493017196655, 0.24199025332927704, 0.1348472535610199, 0.04888230562210083, -0.05123782157897949, 0.4404886066913605, -0.022192249074578285, -0.20213203132152557, -0.1810317188501358, -0.035145353525877 ]
https://github.com/huggingface/datasets/issues/1867
In the end, to make it work I turned to A-100 gpus instead of TPUS, among other changes. Set_transform doesn't work as expected and slows down training very much even in GPUs, and applying map destroys the disk, as it multiplies by 100 the size of the data passed to it (due to inefficient implementation converting strings to int64 floats I guess). For that reason, I chose to use datasets to load the data as text, and then edit the Collator from Transformers to tokenize every batch it receives before processing it. That way, I'm being able to train fast, without memory breaks, without the disk being unnecessarily filled, while making use of GPUs almost all the time I'm paying for them (the map function over the whole dataset took ~15hrs, in which you're not training at all). I hope this info helps others that are looking for training a language model from scratch cheaply, I'm going to close the issue as the optimal solution I found after many experiments to the problem posted in it is explained above.
ERROR WHEN USING SET_TRANSFORM()
Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch.
179
ERROR WHEN USING SET_TRANSFORM() Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch. In the end, to make it work I turned to A-100 gpus instead of TPUS, among other changes. Set_transform doesn't work as expected and slows down training very much even in GPUs, and applying map destroys the disk, as it multiplies by 100 the size of the data passed to it (due to inefficient implementation converting strings to int64 floats I guess). For that reason, I chose to use datasets to load the data as text, and then edit the Collator from Transformers to tokenize every batch it receives before processing it. That way, I'm being able to train fast, without memory breaks, without the disk being unnecessarily filled, while making use of GPUs almost all the time I'm paying for them (the map function over the whole dataset took ~15hrs, in which you're not training at all). I hope this info helps others that are looking for training a language model from scratch cheaply, I'm going to close the issue as the optimal solution I found after many experiments to the problem posted in it is explained above.
[ -0.18261897563934326, -0.27325117588043213, 0.13930322229862213, 0.18474005162715912, 0.7292688488960266, 0.11970525234937668, 0.6009584665298462, 0.22877633571624756, -0.32278475165367126, 0.054477497935295105, 0.2355116754770279, 0.03332699090242386, -0.08834050595760345, -0.023404855281114578, 0.1892215609550476, -0.5358201861381531, -0.013821937143802643, 0.12886114418506622, -0.46343475580215454, -0.18311628699302673, -0.27669674158096313, 0.31342312693595886, -0.3415369987487793, 0.11934049427509308, -0.31860029697418213, -0.009608441032469273, -0.047695666551589966, 0.016471080482006073, 0.08441536128520966, -0.1718302071094513, 0.23347823321819305, -0.28007566928863525, 0.12319591641426086, 0.39745014905929565, -0.00012553716078400612, 0.11955767869949341, 0.06063556671142578, -0.28907209634780884, -0.2367868572473526, -0.30035579204559326, -0.14373117685317993, -0.1552792489528656, -0.015434540808200836, -0.24087488651275635, -0.44793689250946045, -0.18905571103096008, 0.006699064746499062, -0.26875507831573486, 0.5653693079948425, 0.7264817953109741, 0.12158740311861038, 0.26635998487472534, 0.0996970385313034, -0.23824173212051392, -0.12613502144813538, 0.1903083622455597, -0.1291116625070572, -0.02249787002801895, 0.03177592530846596, 0.2165265679359436, 0.13362421095371246, 0.1615503579378128, 0.2006310522556305, -0.1752624809741974, 0.4064543545246124, -0.06197904795408249, -0.1365286409854889, 0.0435066893696785, 0.000619078055024147, 0.010468251071870327, 0.2298872470855713, -0.345430850982666, -0.42085397243499756, -0.2735254764556885, 0.1654445230960846, -0.21410080790519714, 0.2700583040714264, 0.15038719773292542, -0.06639793515205383, 0.22794410586357117, -0.2600678503513336, -0.10983806103467941, -0.05886644497513771, 0.031330425292253494, -0.17284271121025085, 0.16238626837730408, -0.006507126614451408, 0.13033156096935272, 0.09317879378795624, 0.1813862919807434, 0.27399468421936035, 0.11535535007715225, 0.18766169250011444, 0.3649871051311493, -0.2653557360172272, -0.054786279797554016, -0.14347901940345764, 0.010828372091054916, -0.28897225856781006, -0.24927367269992828, -0.17236468195915222, -0.20850980281829834, 0.023088600486516953, -0.014951981604099274, 0.10714668035507202, 0.6613350510597229, -0.24540525674819946, 0.4977247714996338, 0.015117593109607697, -0.11207345128059387, 0.2516207993030548, -0.06356722116470337, -0.05694843456149101, -0.3780820667743683, -0.009624235332012177, 0.4175057113170624, 0.09379682689905167, -0.006041929125785828, -0.2874678075313568, -0.19327722489833832, -0.20897358655929565, -0.05788184702396393, 0.1327710747718811, 0.2179858535528183, 0.058807000517845154, 0.27133455872535706, 0.503231406211853, 0.34855687618255615, -0.10595174133777618, -0.20505836606025696, -0.17156097292900085, 0.1350133866071701, -0.3857184946537018, -0.10069866478443146, 0.14641998708248138, -0.1412293016910553, 0.32861968874931335, 0.05321209505200386, 0.07554176449775696, 0.3815329372882843, 0.152024507522583, -0.1911819875240326, 0.2819838225841522, 0.14367029070854187, -0.014327161014080048, 0.20149773359298706, 0.4693851172924042, 0.1014423668384552, -0.18617688119411469, 0.2664012908935547, -0.24845072627067566, -0.44114792346954346, 0.06094938516616821, 0.09140243381261826, -0.05300053209066391, -0.037796229124069214, -0.15948358178138733, 0.1583792269229889, 0.42052939534187317, -0.06751256436109543, 0.07630948722362518, -0.43523281812667847, 0.0418040007352829, 0.10999252647161484, 0.09002512693405151, 0.0778380036354065, -0.23285749554634094, -0.3426039516925812, 0.32585829496383667, 0.15306469798088074, -0.14334318041801453, 0.2205606997013092, -0.42858514189720154, 0.2562268078327179, -0.06257397681474686, -0.1584208905696869, 0.20988793671131134, -0.3840966820716858, -0.07108697295188904, -0.099427729845047, -0.10547103732824326, -0.21916401386260986, 0.06968478858470917, -0.1317373514175415, -0.05301930010318756, -0.15442562103271484, -0.22072617709636688, 0.5086040496826172, -0.060897327959537506, 0.23249460756778717, 0.034090109169483185, -0.022244058549404144, 0.18859639763832092, 0.13765186071395874, 0.024887653067708015, 0.15763989090919495, -0.3205074667930603, 0.512071430683136, 0.09875872731208801, -0.24417781829833984, 0.24441972374916077, 0.4102388024330139, -0.24409765005111694, -0.19196459650993347, 0.0468020886182785, 0.27647751569747925, -0.06979597359895706, -0.1489027738571167, 0.1784002184867859, 0.19635117053985596, -0.06047196686267853, 0.04845206439495087, -0.23693852126598358, -0.06417254358530045, -0.21337494254112244, -0.15852123498916626, -0.01498974859714508, 0.11016185581684113, 0.020773455500602722, -0.0464726984500885, -0.24848158657550812, 0.27239087224006653, -0.0954265370965004, 0.1349620819091797, -0.525989830493927, 0.22802084684371948, -0.21457353234291077, -0.09144507348537445, -0.06788431107997894, 0.22312068939208984, 0.24049422144889832, -0.2305196076631546, -0.32474908232688904, 0.3036767840385437, -0.21225595474243164, 0.03719201311469078, -0.3943193852901459, 0.2457399070262909, 0.30909499526023865, -0.5342991948127747, 0.0032724644988775253, 0.2634412944316864, 0.1639745682477951, -0.12745551764965057, -0.383022665977478, 0.11361074447631836, 0.07577244937419891, 0.33145156502723694, 0.10577435791492462, 0.3340391516685486, 0.05361209064722061, -0.08840541541576385, -0.20203712582588196, -0.07764468342065811, -0.015492366626858711, -0.08382349461317062, 0.16498222947120667, 0.059749454259872437, -0.22884216904640198, -0.19838784635066986, 0.4673168361186981, 0.14884209632873535, 0.021630385890603065, 0.12939010560512543, -0.1397811472415924, 0.03067045658826828, 0.1618635356426239, -0.09503509104251862, 0.5624228119850159, 0.03243715316057205, -0.23054447770118713, 0.18751484155654907, 0.06977223604917526, -0.12261378765106201, 0.4002860486507416, -0.07319551706314087, 0.02523180842399597, -0.1065489649772644, 0.06150764599442482, 0.09520678222179413, -0.16490641236305237, -0.2894913852214813, 0.2562520205974579, 0.25219762325286865, -0.47367775440216064, 0.2136499285697937, 0.0259736105799675, 0.16960373520851135, -0.5800777673721313, -0.38273975253105164, 0.03458966314792633, -0.2872622013092041, -0.1098967120051384, -0.02086542919278145, 0.12487855553627014, 0.4439493417739868, 0.10259878635406494, 0.07227258384227753, 0.2448718547821045, -0.15802259743213654, -0.061883073300123215, 0.045985620468854904, -0.1911003589630127, 0.014357633888721466, -0.18717649579048157, -0.28796666860580444, -0.05046992748975754, -0.3237556219100952, -0.05529076233506203, -0.10354068130254745, -0.1793440729379654, 0.18559414148330688, -0.29557690024375916, 0.01130075566470623, 0.32318270206451416, 0.18719452619552612, -0.19923356175422668, -0.3188306391239166, 0.43165287375450134, 0.0009160265326499939, 0.09593234956264496, -0.012725446373224258, -0.07032963633537292, -0.24257168173789978, -0.09974406659603119, -0.42642930150032043, -0.04464526101946831, -0.16895374655723572, 0.03030753880739212, -0.21778248250484467, -0.13130517303943634, 0.4203007221221924, 0.23713478446006775, 0.08430276811122894, 0.2997518479824066, 0.17405079305171967, -0.019832056015729904, -0.21119311451911926, 0.4776299297809601, -0.20679552853107452, -0.35763975977897644, -0.12714225053787231, -0.012921739369630814, 0.22187601029872894, 0.2340477555990219, -0.17647911608219147, -0.1782558262348175, -0.20401565730571747, -0.11266346275806427, -0.3014697730541229, 0.4359830319881439, 0.4326149523258209, 0.06031756103038788, 0.16860823333263397, -0.05086594820022583, -0.5156285762786865, 0.3171767294406891, 0.14240258932113647, 0.4169047474861145, -0.09299562871456146, 0.47989621758461, 0.08661115914583206, 0.7751230001449585, 0.01110132783651352, -0.32190021872520447, 0.2606614828109741, -0.16307440400123596, 0.22602808475494385, -0.14031721651554108, -0.4625387489795685, 0.27688440680503845, 0.24382346868515015, 0.03161070495843887, -0.07282145321369171, -0.0910806953907013, -0.06985233724117279, -0.1445435881614685, 0.24139279127120972, -0.10525131970643997, -0.15223568677902222, 0.14164376258850098, -0.18085640668869019, 0.558344304561615, 0.03707011044025421, 0.38957473635673523, -0.21053248643875122, 0.009345375001430511, 0.07298686355352402, -0.10951941460371017, 0.06886474788188934, 0.12381565570831299, -0.13833805918693542, -0.5897534489631653, -0.19025567173957825, 0.1065891832113266, -0.011732559651136398, 0.38561883568763733, -0.11942753195762634, -0.021435655653476715, 0.15139368176460266, 0.18907088041305542, 0.7310062050819397, 0.0729367658495903, -0.32788074016571045, -0.030984599143266678, -0.22110332548618317, -0.6239108443260193, -0.07092185318470001, 0.03942110389471054, -0.1653977632522583, -0.14672468602657318, 0.19225528836250305, -0.150356724858284, -0.17190566658973694, 0.35543137788772583, 0.03475300595164299, -0.25839924812316895, 0.07762575149536133, -0.0642111748456955, -0.523164689540863, -0.37529492378234863, 0.08177004754543304, 0.2867942154407501, 0.17634013295173645, 0.27061688899993896, 0.37055516242980957, -0.025202225893735886, -0.014630958437919617, 0.1825229674577713, 0.02297709882259369, 0.2532839775085449, 0.12009827792644501, -0.07114126533269882, 0.2466866374015808, 0.26633796095848083, 0.0747499018907547, 0.3784386217594147, 0.021826647222042084, -0.1386081427335739, -0.00596567802131176, -0.02730073407292366, 0.39178475737571716, 0.3158436417579651, -0.10386684536933899, -0.2018500119447708, 0.0003285929560661316, 0.06758543103933334, -0.05185168236494064, 0.2731790542602539, 0.46006664633750916, 0.0707787424325943, -0.15232941508293152, -0.5686458349227905, 0.19352209568023682, 0.1283530294895172, 0.11658346652984619, 0.041261643171310425, 0.1834685206413269, -0.4985370934009552, 0.30006563663482666, 0.24418365955352783, 0.9627008438110352, 0.004567076917737722, 0.41221433877944946, 0.4066111743450165, -0.17183953523635864, -0.04487825930118561, -0.11339066922664642, 0.1925230175256729, -0.26892101764678955, -0.37407076358795166, -0.12674404680728912, -0.15768001973628998, 0.15375220775604248, 0.14474806189537048, -0.4471736252307892, 0.25740188360214233, -0.10165185481309891, 0.1324460655450821, -0.051706813275814056, -0.006303310394287109, -0.11915747821331024, -0.3786027133464813, -0.42070502042770386, 0.06057655066251755, 0.008538709953427315, 0.2239290475845337, -0.021146245300769806, -0.051836926490068436, -0.07252416759729385, -0.3276565670967102, -0.19897928833961487, 0.143813818693161, -0.3425532281398773, 0.11627538502216339, 0.02154933288693428, -0.35082077980041504, 0.572816014289856, 0.4761780798435211, 0.5377930998802185, 0.048002373427152634, -0.0448533296585083, 0.2743346393108368, -0.2238798886537552, 0.23365706205368042, 0.002679716795682907, 0.11445474624633789, 0.43117865920066833, -0.026223566383123398, 0.010690480470657349, 0.2838854193687439, -0.1292872130870819, -0.04916848987340927, -0.18477044999599457, -0.27002161741256714, 0.06757622212171555, -0.3728923201560974, -0.21563346683979034, 0.1479792445898056, -0.013864882290363312, -0.12134674936532974, 0.06294877827167511, -0.14535102248191833, -0.20106038451194763, 0.1748768836259842, -0.19267213344573975, -0.3175871670246124, -0.0471322163939476, 0.5520835518836975, -0.0154434684664011, -0.025958076119422913, 0.9083887338638306, 0.144269660115242, 0.02905317395925522, -0.050625018775463104, 0.0027594417333602905, 0.5083622336387634, -0.7060850858688354, 0.19020727276802063, 0.04427943006157875, -0.11630304902791977, -0.25866079330444336, 0.22252634167671204, 0.09105890989303589, -0.12239731848239899, 0.10664840787649155, 0.026816196739673615, -0.38151511549949646, 0.043569959700107574, 0.18260200321674347, 0.10994131863117218, -0.006349548697471619, 0.41574886441230774, 0.3691779375076294, -0.16091948747634888, -0.2136099636554718, 0.08543435484170914, 0.015292569994926453, 0.24364283680915833, 0.13488134741783142, -0.18128086626529694, 0.10463924705982208, -0.21582776308059692, 0.03448275476694107, -0.011732954531908035, 0.028834249824285507, -0.10363208502531052, -0.30304819345474243, 0.09602192044258118, 0.19027400016784668, -0.18442019820213318, -0.03058779239654541, -0.3210199177265167, -0.22736939787864685, -0.28020143508911133, 0.14850816130638123, 0.2875708341598511, -0.02318837121129036, 0.46703049540519714, -0.04471684992313385, -0.10733480751514435, -0.17108586430549622, -0.36242473125457764, -0.055877961218357086, -0.25884681940078735, 0.2030039131641388, 0.16474351286888123, 0.09019704163074493, -0.03371812403202057, -0.5971800088882446, 0.22674164175987244, 0.2485937625169754, 0.2303076982498169, 0.06782431155443192, -0.2015691101551056, 0.152433842420578, 0.16559603810310364, 0.23264023661613464, -0.03410421684384346, -0.2902601957321167, 0.02063329517841339, 0.17743223905563354, 0.06178071349859238, -0.2854021489620209, 0.3496537506580353, -0.04107542708516121, 0.0037135854363441467, 0.01049097627401352, 0.25450074672698975, 0.05803121626377106, -0.011549711227416992, 0.04948638379573822, 0.07942895591259003, 0.2100779116153717, -0.0605449415743351, 0.33456939458847046, 0.7754501104354858, -0.28041207790374756, 0.2012111097574234, 0.27502238750457764, 0.14586715400218964, 0.25430214405059814, 0.32052353024482727, -0.11666087806224823, 0.3449282944202423, -0.01880652830004692, -0.01994948647916317, -0.06523463129997253, -0.1228848248720169, -0.31048062443733215, -0.18171215057373047, 0.04021094739437103, 0.024276401847600937, 0.061691589653491974, 0.5748893022537231, -0.2628108859062195, -0.34839051961898804, -0.2398826777935028, 0.27559077739715576, -0.12784674763679504, -0.01544397696852684, -0.01726890355348587, 0.028749525547027588, -0.3195883333683014, -0.14997363090515137, -0.21256312727928162, -0.13776640594005585, 0.6361116766929626, 0.019825469702482224, -0.002389047294855118, -0.1892203837633133, -0.04547697305679321, 0.26282355189323425, 0.08199544996023178, -0.1269652247428894, 0.24113713204860687, 0.1011122316122055, -0.18835583329200745, 0.09760725498199463, 0.4976043999195099, 0.22012096643447876, 0.2194080650806427, -0.046345531940460205, -0.01025865226984024, -0.07822877168655396, -0.07122966647148132, 0.15365548431873322, 0.2663586139678955, -0.10759498178958893, 0.38120710849761963, 0.20454207062721252, 0.08818663656711578, -0.069119893014431, 0.15162836015224457, -0.24307867884635925, 0.311342716217041, -0.2424250841140747, 0.5272913575172424, -0.02080625295639038, -0.14544673264026642, -0.14797651767730713, 0.06425773352384567, -0.17205068469047546, 0.1480785459280014, 0.34230658411979675, 0.007757510989904404, 0.11038388311862946, -0.13282111287117004, 0.011513087898492813, 0.24308054149150848, 0.2766733467578888, 0.5207220315933228, -0.25357505679130554, -0.3213942050933838, -0.21567212045192719, -0.3150942027568817, -0.03848227858543396, 0.12944741547107697, 0.017416179180145264, -0.02454412914812565, -0.1764501929283142, 0.3041369915008545, -0.07791756093502045, 0.08097115904092789, -0.10651563107967377, -0.10172082483768463, 0.21124295890331268, -0.0689956322312355, -0.3980534076690674, -0.10888141393661499, 0.37909331917762756, -0.022704899311065674, -0.08594537526369095, -0.11285358667373657, 0.4846833348274231, -0.029358461499214172, -0.36930224299430847, 0.04411260783672333, -0.11998017132282257, -0.12868943810462952, 0.2373431771993637, 0.07642081379890442, 0.2086418718099594, 0.05883370339870453, 0.2778177261352539, 0.017605673521757126, -0.25061729550361633, -0.326689749956131, 0.06861592829227448, -0.08573238551616669, 0.42925918102264404, -0.24019122123718262, -0.17647625505924225, -0.42585521936416626, 0.007111303508281708, 0.17812083661556244, 0.046441785991191864, -0.45901602506637573, 0.4230369031429291, -0.36713874340057373, 0.08237355947494507, 0.2416839301586151, 0.3583957552909851, 0.0034973612055182457, 0.14768466353416443, -0.38634902238845825, -0.424439013004303, 0.6188309788703918, -0.18147006630897522, -0.4834167957305908, 0.12065660208463669, -0.13623549044132233, -0.08463796228170395, -0.15976308286190033, -0.5339645147323608, 0.07896505296230316, 0.10708796977996826, -0.20784638822078705, -0.3984493017196655, 0.24199025332927704, 0.1348472535610199, 0.04888230562210083, -0.05123782157897949, 0.4404886066913605, -0.022192249074578285, -0.20213203132152557, -0.1810317188501358, -0.035145353525877 ]
https://github.com/huggingface/datasets/issues/1867
Great comment @alexvaca0 . I think that we could re-open the issue as a reformulation of why it takes so much space to save the arrow. Saving a 1% of oscar corpus takes more thank 600 GB (it breaks when it pass 600GB because it is the free memory that I have at this moment) when the full dataset is 1,3 TB. I have a 1TB M.2 NVMe disk that I can not train on because the saved .arrow files goes crazily big. If you can share your Collator I will be grateful.
ERROR WHEN USING SET_TRANSFORM()
Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch.
93
ERROR WHEN USING SET_TRANSFORM() Hi, I'm trying to use dataset.set_transform(encode) as @lhoestq told me in this issue: https://github.com/huggingface/datasets/issues/1825#issuecomment-774202797 However, when I try to use Trainer from transformers with such dataset, it throws an error: ``` TypeError: __init__() missing 1 required positional argument: 'transform' [INFO|trainer.py:357] 2021-02-12 10:18:09,893 >> The following columns in the training set don't have a corresponding argument in `AlbertForMaskedLM.forward` and have been ignored: text. Exception in device=TPU:0: __init__() missing 1 required positional argument: 'transform' Traceback (most recent call last): File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 330, in _mp_start_fn _start_fn(index, pf_cfg, fn, args) File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/torch_xla/distributed/xla_multiprocessing.py", line 324, in _start_fn fn(gindex, *args) File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 368, in _mp_fn main() File "/home/alejandro_vaca/transformers/examples/language-modeling/run_mlm_wwm.py", line 332, in main data_collator=data_collator, File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 286, in __init__ self._remove_unused_columns(self.train_dataset, description="training") File "/anaconda3/envs/torch-xla-1.7/lib/python3.6/site-packages/transformers/trainer.py", line 359, in _remove_unused_columns dataset.set_format(type=dataset.format["type"], columns=columns) File "/home/alejandro_vaca/datasets/src/datasets/fingerprint.py", line 312, in wrapper out = func(self, *args, **kwargs) File "/home/alejandro_vaca/datasets/src/datasets/arrow_dataset.py", line 818, in set_format _ = get_formatter(type, **format_kwargs) File "/home/alejandro_vaca/datasets/src/datasets/formatting/__init__.py", line 112, in get_formatter return _FORMAT_TYPES[format_type](**format_kwargs) TypeError: __init__() missing 1 required positional argument: 'transform' ``` The code I'm using: ```{python} def tokenize_function(examples): # Remove empty lines examples["text"] = [line for line in examples["text"] if len(line) > 0 and not line.isspace()] return tokenizer(examples["text"], padding=padding, truncation=True, max_length=data_args.max_seq_length) datasets.set_transform(tokenize_function) data_collator = DataCollatorForWholeWordMask(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) # Initialize our Trainer trainer = Trainer( model=model, args=training_args, train_dataset=datasets["train"] if training_args.do_train else None, eval_dataset=datasets["val"] if training_args.do_eval else None, tokenizer=tokenizer, data_collator=data_collator, ) ``` I've installed from source, master branch. Great comment @alexvaca0 . I think that we could re-open the issue as a reformulation of why it takes so much space to save the arrow. Saving a 1% of oscar corpus takes more thank 600 GB (it breaks when it pass 600GB because it is the free memory that I have at this moment) when the full dataset is 1,3 TB. I have a 1TB M.2 NVMe disk that I can not train on because the saved .arrow files goes crazily big. If you can share your Collator I will be grateful.
[ -0.18261897563934326, -0.27325117588043213, 0.13930322229862213, 0.18474005162715912, 0.7292688488960266, 0.11970525234937668, 0.6009584665298462, 0.22877633571624756, -0.32278475165367126, 0.054477497935295105, 0.2355116754770279, 0.03332699090242386, -0.08834050595760345, -0.023404855281114578, 0.1892215609550476, -0.5358201861381531, -0.013821937143802643, 0.12886114418506622, -0.46343475580215454, -0.18311628699302673, -0.27669674158096313, 0.31342312693595886, -0.3415369987487793, 0.11934049427509308, -0.31860029697418213, -0.009608441032469273, -0.047695666551589966, 0.016471080482006073, 0.08441536128520966, -0.1718302071094513, 0.23347823321819305, -0.28007566928863525, 0.12319591641426086, 0.39745014905929565, -0.00012553716078400612, 0.11955767869949341, 0.06063556671142578, -0.28907209634780884, -0.2367868572473526, -0.30035579204559326, -0.14373117685317993, -0.1552792489528656, -0.015434540808200836, -0.24087488651275635, -0.44793689250946045, -0.18905571103096008, 0.006699064746499062, -0.26875507831573486, 0.5653693079948425, 0.7264817953109741, 0.12158740311861038, 0.26635998487472534, 0.0996970385313034, -0.23824173212051392, -0.12613502144813538, 0.1903083622455597, -0.1291116625070572, -0.02249787002801895, 0.03177592530846596, 0.2165265679359436, 0.13362421095371246, 0.1615503579378128, 0.2006310522556305, -0.1752624809741974, 0.4064543545246124, -0.06197904795408249, -0.1365286409854889, 0.0435066893696785, 0.000619078055024147, 0.010468251071870327, 0.2298872470855713, -0.345430850982666, -0.42085397243499756, -0.2735254764556885, 0.1654445230960846, -0.21410080790519714, 0.2700583040714264, 0.15038719773292542, -0.06639793515205383, 0.22794410586357117, -0.2600678503513336, -0.10983806103467941, -0.05886644497513771, 0.031330425292253494, -0.17284271121025085, 0.16238626837730408, -0.006507126614451408, 0.13033156096935272, 0.09317879378795624, 0.1813862919807434, 0.27399468421936035, 0.11535535007715225, 0.18766169250011444, 0.3649871051311493, -0.2653557360172272, -0.054786279797554016, -0.14347901940345764, 0.010828372091054916, -0.28897225856781006, -0.24927367269992828, -0.17236468195915222, -0.20850980281829834, 0.023088600486516953, -0.014951981604099274, 0.10714668035507202, 0.6613350510597229, -0.24540525674819946, 0.4977247714996338, 0.015117593109607697, -0.11207345128059387, 0.2516207993030548, -0.06356722116470337, -0.05694843456149101, -0.3780820667743683, -0.009624235332012177, 0.4175057113170624, 0.09379682689905167, -0.006041929125785828, -0.2874678075313568, -0.19327722489833832, -0.20897358655929565, -0.05788184702396393, 0.1327710747718811, 0.2179858535528183, 0.058807000517845154, 0.27133455872535706, 0.503231406211853, 0.34855687618255615, -0.10595174133777618, -0.20505836606025696, -0.17156097292900085, 0.1350133866071701, -0.3857184946537018, -0.10069866478443146, 0.14641998708248138, -0.1412293016910553, 0.32861968874931335, 0.05321209505200386, 0.07554176449775696, 0.3815329372882843, 0.152024507522583, -0.1911819875240326, 0.2819838225841522, 0.14367029070854187, -0.014327161014080048, 0.20149773359298706, 0.4693851172924042, 0.1014423668384552, -0.18617688119411469, 0.2664012908935547, -0.24845072627067566, -0.44114792346954346, 0.06094938516616821, 0.09140243381261826, -0.05300053209066391, -0.037796229124069214, -0.15948358178138733, 0.1583792269229889, 0.42052939534187317, -0.06751256436109543, 0.07630948722362518, -0.43523281812667847, 0.0418040007352829, 0.10999252647161484, 0.09002512693405151, 0.0778380036354065, -0.23285749554634094, -0.3426039516925812, 0.32585829496383667, 0.15306469798088074, -0.14334318041801453, 0.2205606997013092, -0.42858514189720154, 0.2562268078327179, -0.06257397681474686, -0.1584208905696869, 0.20988793671131134, -0.3840966820716858, -0.07108697295188904, -0.099427729845047, -0.10547103732824326, -0.21916401386260986, 0.06968478858470917, -0.1317373514175415, -0.05301930010318756, -0.15442562103271484, -0.22072617709636688, 0.5086040496826172, -0.060897327959537506, 0.23249460756778717, 0.034090109169483185, -0.022244058549404144, 0.18859639763832092, 0.13765186071395874, 0.024887653067708015, 0.15763989090919495, -0.3205074667930603, 0.512071430683136, 0.09875872731208801, -0.24417781829833984, 0.24441972374916077, 0.4102388024330139, -0.24409765005111694, -0.19196459650993347, 0.0468020886182785, 0.27647751569747925, -0.06979597359895706, -0.1489027738571167, 0.1784002184867859, 0.19635117053985596, -0.06047196686267853, 0.04845206439495087, -0.23693852126598358, -0.06417254358530045, -0.21337494254112244, -0.15852123498916626, -0.01498974859714508, 0.11016185581684113, 0.020773455500602722, -0.0464726984500885, -0.24848158657550812, 0.27239087224006653, -0.0954265370965004, 0.1349620819091797, -0.525989830493927, 0.22802084684371948, -0.21457353234291077, -0.09144507348537445, -0.06788431107997894, 0.22312068939208984, 0.24049422144889832, -0.2305196076631546, -0.32474908232688904, 0.3036767840385437, -0.21225595474243164, 0.03719201311469078, -0.3943193852901459, 0.2457399070262909, 0.30909499526023865, -0.5342991948127747, 0.0032724644988775253, 0.2634412944316864, 0.1639745682477951, -0.12745551764965057, -0.383022665977478, 0.11361074447631836, 0.07577244937419891, 0.33145156502723694, 0.10577435791492462, 0.3340391516685486, 0.05361209064722061, -0.08840541541576385, -0.20203712582588196, -0.07764468342065811, -0.015492366626858711, -0.08382349461317062, 0.16498222947120667, 0.059749454259872437, -0.22884216904640198, -0.19838784635066986, 0.4673168361186981, 0.14884209632873535, 0.021630385890603065, 0.12939010560512543, -0.1397811472415924, 0.03067045658826828, 0.1618635356426239, -0.09503509104251862, 0.5624228119850159, 0.03243715316057205, -0.23054447770118713, 0.18751484155654907, 0.06977223604917526, -0.12261378765106201, 0.4002860486507416, -0.07319551706314087, 0.02523180842399597, -0.1065489649772644, 0.06150764599442482, 0.09520678222179413, -0.16490641236305237, -0.2894913852214813, 0.2562520205974579, 0.25219762325286865, -0.47367775440216064, 0.2136499285697937, 0.0259736105799675, 0.16960373520851135, -0.5800777673721313, -0.38273975253105164, 0.03458966314792633, -0.2872622013092041, -0.1098967120051384, -0.02086542919278145, 0.12487855553627014, 0.4439493417739868, 0.10259878635406494, 0.07227258384227753, 0.2448718547821045, -0.15802259743213654, -0.061883073300123215, 0.045985620468854904, -0.1911003589630127, 0.014357633888721466, -0.18717649579048157, -0.28796666860580444, -0.05046992748975754, -0.3237556219100952, -0.05529076233506203, -0.10354068130254745, -0.1793440729379654, 0.18559414148330688, -0.29557690024375916, 0.01130075566470623, 0.32318270206451416, 0.18719452619552612, -0.19923356175422668, -0.3188306391239166, 0.43165287375450134, 0.0009160265326499939, 0.09593234956264496, -0.012725446373224258, -0.07032963633537292, -0.24257168173789978, -0.09974406659603119, -0.42642930150032043, -0.04464526101946831, -0.16895374655723572, 0.03030753880739212, -0.21778248250484467, -0.13130517303943634, 0.4203007221221924, 0.23713478446006775, 0.08430276811122894, 0.2997518479824066, 0.17405079305171967, -0.019832056015729904, -0.21119311451911926, 0.4776299297809601, -0.20679552853107452, -0.35763975977897644, -0.12714225053787231, -0.012921739369630814, 0.22187601029872894, 0.2340477555990219, -0.17647911608219147, -0.1782558262348175, -0.20401565730571747, -0.11266346275806427, -0.3014697730541229, 0.4359830319881439, 0.4326149523258209, 0.06031756103038788, 0.16860823333263397, -0.05086594820022583, -0.5156285762786865, 0.3171767294406891, 0.14240258932113647, 0.4169047474861145, -0.09299562871456146, 0.47989621758461, 0.08661115914583206, 0.7751230001449585, 0.01110132783651352, -0.32190021872520447, 0.2606614828109741, -0.16307440400123596, 0.22602808475494385, -0.14031721651554108, -0.4625387489795685, 0.27688440680503845, 0.24382346868515015, 0.03161070495843887, -0.07282145321369171, -0.0910806953907013, -0.06985233724117279, -0.1445435881614685, 0.24139279127120972, -0.10525131970643997, -0.15223568677902222, 0.14164376258850098, -0.18085640668869019, 0.558344304561615, 0.03707011044025421, 0.38957473635673523, -0.21053248643875122, 0.009345375001430511, 0.07298686355352402, -0.10951941460371017, 0.06886474788188934, 0.12381565570831299, -0.13833805918693542, -0.5897534489631653, -0.19025567173957825, 0.1065891832113266, -0.011732559651136398, 0.38561883568763733, -0.11942753195762634, -0.021435655653476715, 0.15139368176460266, 0.18907088041305542, 0.7310062050819397, 0.0729367658495903, -0.32788074016571045, -0.030984599143266678, -0.22110332548618317, -0.6239108443260193, -0.07092185318470001, 0.03942110389471054, -0.1653977632522583, -0.14672468602657318, 0.19225528836250305, -0.150356724858284, -0.17190566658973694, 0.35543137788772583, 0.03475300595164299, -0.25839924812316895, 0.07762575149536133, -0.0642111748456955, -0.523164689540863, -0.37529492378234863, 0.08177004754543304, 0.2867942154407501, 0.17634013295173645, 0.27061688899993896, 0.37055516242980957, -0.025202225893735886, -0.014630958437919617, 0.1825229674577713, 0.02297709882259369, 0.2532839775085449, 0.12009827792644501, -0.07114126533269882, 0.2466866374015808, 0.26633796095848083, 0.0747499018907547, 0.3784386217594147, 0.021826647222042084, -0.1386081427335739, -0.00596567802131176, -0.02730073407292366, 0.39178475737571716, 0.3158436417579651, -0.10386684536933899, -0.2018500119447708, 0.0003285929560661316, 0.06758543103933334, -0.05185168236494064, 0.2731790542602539, 0.46006664633750916, 0.0707787424325943, -0.15232941508293152, -0.5686458349227905, 0.19352209568023682, 0.1283530294895172, 0.11658346652984619, 0.041261643171310425, 0.1834685206413269, -0.4985370934009552, 0.30006563663482666, 0.24418365955352783, 0.9627008438110352, 0.004567076917737722, 0.41221433877944946, 0.4066111743450165, -0.17183953523635864, -0.04487825930118561, -0.11339066922664642, 0.1925230175256729, -0.26892101764678955, -0.37407076358795166, -0.12674404680728912, -0.15768001973628998, 0.15375220775604248, 0.14474806189537048, -0.4471736252307892, 0.25740188360214233, -0.10165185481309891, 0.1324460655450821, -0.051706813275814056, -0.006303310394287109, -0.11915747821331024, -0.3786027133464813, -0.42070502042770386, 0.06057655066251755, 0.008538709953427315, 0.2239290475845337, -0.021146245300769806, -0.051836926490068436, -0.07252416759729385, -0.3276565670967102, -0.19897928833961487, 0.143813818693161, -0.3425532281398773, 0.11627538502216339, 0.02154933288693428, -0.35082077980041504, 0.572816014289856, 0.4761780798435211, 0.5377930998802185, 0.048002373427152634, -0.0448533296585083, 0.2743346393108368, -0.2238798886537552, 0.23365706205368042, 0.002679716795682907, 0.11445474624633789, 0.43117865920066833, -0.026223566383123398, 0.010690480470657349, 0.2838854193687439, -0.1292872130870819, -0.04916848987340927, -0.18477044999599457, -0.27002161741256714, 0.06757622212171555, -0.3728923201560974, -0.21563346683979034, 0.1479792445898056, -0.013864882290363312, -0.12134674936532974, 0.06294877827167511, -0.14535102248191833, -0.20106038451194763, 0.1748768836259842, -0.19267213344573975, -0.3175871670246124, -0.0471322163939476, 0.5520835518836975, -0.0154434684664011, -0.025958076119422913, 0.9083887338638306, 0.144269660115242, 0.02905317395925522, -0.050625018775463104, 0.0027594417333602905, 0.5083622336387634, -0.7060850858688354, 0.19020727276802063, 0.04427943006157875, -0.11630304902791977, -0.25866079330444336, 0.22252634167671204, 0.09105890989303589, -0.12239731848239899, 0.10664840787649155, 0.026816196739673615, -0.38151511549949646, 0.043569959700107574, 0.18260200321674347, 0.10994131863117218, -0.006349548697471619, 0.41574886441230774, 0.3691779375076294, -0.16091948747634888, -0.2136099636554718, 0.08543435484170914, 0.015292569994926453, 0.24364283680915833, 0.13488134741783142, -0.18128086626529694, 0.10463924705982208, -0.21582776308059692, 0.03448275476694107, -0.011732954531908035, 0.028834249824285507, -0.10363208502531052, -0.30304819345474243, 0.09602192044258118, 0.19027400016784668, -0.18442019820213318, -0.03058779239654541, -0.3210199177265167, -0.22736939787864685, -0.28020143508911133, 0.14850816130638123, 0.2875708341598511, -0.02318837121129036, 0.46703049540519714, -0.04471684992313385, -0.10733480751514435, -0.17108586430549622, -0.36242473125457764, -0.055877961218357086, -0.25884681940078735, 0.2030039131641388, 0.16474351286888123, 0.09019704163074493, -0.03371812403202057, -0.5971800088882446, 0.22674164175987244, 0.2485937625169754, 0.2303076982498169, 0.06782431155443192, -0.2015691101551056, 0.152433842420578, 0.16559603810310364, 0.23264023661613464, -0.03410421684384346, -0.2902601957321167, 0.02063329517841339, 0.17743223905563354, 0.06178071349859238, -0.2854021489620209, 0.3496537506580353, -0.04107542708516121, 0.0037135854363441467, 0.01049097627401352, 0.25450074672698975, 0.05803121626377106, -0.011549711227416992, 0.04948638379573822, 0.07942895591259003, 0.2100779116153717, -0.0605449415743351, 0.33456939458847046, 0.7754501104354858, -0.28041207790374756, 0.2012111097574234, 0.27502238750457764, 0.14586715400218964, 0.25430214405059814, 0.32052353024482727, -0.11666087806224823, 0.3449282944202423, -0.01880652830004692, -0.01994948647916317, -0.06523463129997253, -0.1228848248720169, -0.31048062443733215, -0.18171215057373047, 0.04021094739437103, 0.024276401847600937, 0.061691589653491974, 0.5748893022537231, -0.2628108859062195, -0.34839051961898804, -0.2398826777935028, 0.27559077739715576, -0.12784674763679504, -0.01544397696852684, -0.01726890355348587, 0.028749525547027588, -0.3195883333683014, -0.14997363090515137, -0.21256312727928162, -0.13776640594005585, 0.6361116766929626, 0.019825469702482224, -0.002389047294855118, -0.1892203837633133, -0.04547697305679321, 0.26282355189323425, 0.08199544996023178, -0.1269652247428894, 0.24113713204860687, 0.1011122316122055, -0.18835583329200745, 0.09760725498199463, 0.4976043999195099, 0.22012096643447876, 0.2194080650806427, -0.046345531940460205, -0.01025865226984024, -0.07822877168655396, -0.07122966647148132, 0.15365548431873322, 0.2663586139678955, -0.10759498178958893, 0.38120710849761963, 0.20454207062721252, 0.08818663656711578, -0.069119893014431, 0.15162836015224457, -0.24307867884635925, 0.311342716217041, -0.2424250841140747, 0.5272913575172424, -0.02080625295639038, -0.14544673264026642, -0.14797651767730713, 0.06425773352384567, -0.17205068469047546, 0.1480785459280014, 0.34230658411979675, 0.007757510989904404, 0.11038388311862946, -0.13282111287117004, 0.011513087898492813, 0.24308054149150848, 0.2766733467578888, 0.5207220315933228, -0.25357505679130554, -0.3213942050933838, -0.21567212045192719, -0.3150942027568817, -0.03848227858543396, 0.12944741547107697, 0.017416179180145264, -0.02454412914812565, -0.1764501929283142, 0.3041369915008545, -0.07791756093502045, 0.08097115904092789, -0.10651563107967377, -0.10172082483768463, 0.21124295890331268, -0.0689956322312355, -0.3980534076690674, -0.10888141393661499, 0.37909331917762756, -0.022704899311065674, -0.08594537526369095, -0.11285358667373657, 0.4846833348274231, -0.029358461499214172, -0.36930224299430847, 0.04411260783672333, -0.11998017132282257, -0.12868943810462952, 0.2373431771993637, 0.07642081379890442, 0.2086418718099594, 0.05883370339870453, 0.2778177261352539, 0.017605673521757126, -0.25061729550361633, -0.326689749956131, 0.06861592829227448, -0.08573238551616669, 0.42925918102264404, -0.24019122123718262, -0.17647625505924225, -0.42585521936416626, 0.007111303508281708, 0.17812083661556244, 0.046441785991191864, -0.45901602506637573, 0.4230369031429291, -0.36713874340057373, 0.08237355947494507, 0.2416839301586151, 0.3583957552909851, 0.0034973612055182457, 0.14768466353416443, -0.38634902238845825, -0.424439013004303, 0.6188309788703918, -0.18147006630897522, -0.4834167957305908, 0.12065660208463669, -0.13623549044132233, -0.08463796228170395, -0.15976308286190033, -0.5339645147323608, 0.07896505296230316, 0.10708796977996826, -0.20784638822078705, -0.3984493017196655, 0.24199025332927704, 0.1348472535610199, 0.04888230562210083, -0.05123782157897949, 0.4404886066913605, -0.022192249074578285, -0.20213203132152557, -0.1810317188501358, -0.035145353525877 ]
https://github.com/huggingface/datasets/issues/1859
Hi @corticalstack ! Thanks for reporting. Indeed in the recent versions of Faiss we must use `getDevice` to check if the index in on GPU. I'm opening a PR
Error "in void don't know how to serialize this type of index" when saving index to disk when device=0 (GPU)
Error serializing faiss index. Error as follows: `Error in void faiss::write_index(const faiss::Index*, faiss::IOWriter*) at /home/conda/feedstock_root/build_artifacts/faiss-split_1612472484670/work/faiss/impl/index_write.cpp:453: don't know how to serialize this type of index` Note: `torch.cuda.is_available()` reports: ``` Cuda is available cuda:0 ``` Adding index, device=0 for GPU. `dataset.add_faiss_index(column='embeddings', index_name='idx_embeddings', device=0)` However, during a quick debug, self.faiss_index has no attr "device" when checked in` search.py, method save`, so fails to transform gpu index to cpu index. If I add index without device, index is saved OK. ``` def save(self, file: str): """Serialize the FaissIndex on disk""" import faiss # noqa: F811 if ( hasattr(self.faiss_index, "device") and self.faiss_index.device is not None and self.faiss_index.device > -1 ): index = faiss.index_gpu_to_cpu(self.faiss_index) else: index = self.faiss_index faiss.write_index(index, file) ```
29
Error "in void don't know how to serialize this type of index" when saving index to disk when device=0 (GPU) Error serializing faiss index. Error as follows: `Error in void faiss::write_index(const faiss::Index*, faiss::IOWriter*) at /home/conda/feedstock_root/build_artifacts/faiss-split_1612472484670/work/faiss/impl/index_write.cpp:453: don't know how to serialize this type of index` Note: `torch.cuda.is_available()` reports: ``` Cuda is available cuda:0 ``` Adding index, device=0 for GPU. `dataset.add_faiss_index(column='embeddings', index_name='idx_embeddings', device=0)` However, during a quick debug, self.faiss_index has no attr "device" when checked in` search.py, method save`, so fails to transform gpu index to cpu index. If I add index without device, index is saved OK. ``` def save(self, file: str): """Serialize the FaissIndex on disk""" import faiss # noqa: F811 if ( hasattr(self.faiss_index, "device") and self.faiss_index.device is not None and self.faiss_index.device > -1 ): index = faiss.index_gpu_to_cpu(self.faiss_index) else: index = self.faiss_index faiss.write_index(index, file) ``` Hi @corticalstack ! Thanks for reporting. Indeed in the recent versions of Faiss we must use `getDevice` to check if the index in on GPU. I'm opening a PR
[ -0.07123847305774689, -0.3793421983718872, -0.012639451771974564, 0.12429007142782211, 0.32503005862236023, 0.14406675100326538, 0.30142107605934143, 0.5358148217201233, 0.47758638858795166, 0.3618175983428955, 0.068253293633461, -0.03206411749124527, 0.17395083606243134, -0.08485031872987747, -0.1260112226009369, 0.15872086584568024, 0.4708418548107147, 0.2794695496559143, 0.4284844398498535, -0.04656999558210373, -0.48977190256118774, 0.0811467170715332, 0.008370533585548401, 0.07100573927164078, 0.015322849154472351, -0.036026135087013245, -0.07600615173578262, -0.03185427933931351, -0.13875189423561096, -0.48135700821876526, -0.12813037633895874, -0.26006969809532166, 0.4309387505054474, 0.18545007705688477, -0.00011754505248973146, 0.09091266244649887, 0.2596595287322998, -0.1979711353778839, -0.08481647074222565, -0.06642100214958191, 0.3481680750846863, 0.08314889669418335, 0.1509595513343811, -0.31219542026519775, -0.2275107502937317, -0.326776921749115, -0.00854512769728899, -0.12603531777858734, -0.17989836633205414, 0.2844126522541046, 0.16573388874530792, -0.1552812159061432, 0.46023470163345337, -0.06578172743320465, -0.035339199006557465, 0.08556753396987915, -0.2641057074069977, -0.1356428861618042, 0.037655897438526154, 0.5125665068626404, 0.2819296717643738, 0.3212585747241974, 0.03307271748781204, -0.2802487015724182, -0.18092423677444458, -0.0009556375443935394, 0.6283464431762695, -0.34590673446655273, 0.16260606050491333, -0.1556594967842102, 0.06110420078039169, -0.1890728771686554, -0.34560805559158325, 0.28956782817840576, 0.25700628757476807, -0.4825877845287323, -0.06322292238473892, 0.04431161284446716, -0.23560556769371033, 0.17215248942375183, 0.6439071893692017, -0.2015719711780548, 0.07194548845291138, -0.16515906155109406, 0.20316338539123535, -0.052416130900382996, -0.08174876868724823, 0.09325696527957916, 0.0007187514565885067, -0.13209320604801178, -0.19386601448059082, 0.05448739975690842, 0.15940117835998535, 0.10646907985210419, -0.3842537999153137, -0.1285611093044281, 0.07946246862411499, -0.43330711126327515, -0.1163276880979538, 0.11326593160629272, -0.41176146268844604, 0.01383948139846325, 0.18845811486244202, 0.029754774644970894, -0.2788293659687042, -0.023155592381954193, -0.012241076678037643, -0.20227764546871185, -0.09875619411468506, 0.06449848413467407, 0.043791189789772034, -0.33516037464141846, -0.16253076493740082, 0.01697441190481186, -0.3138408660888672, 0.13400809466838837, 0.2640894055366516, -0.36005401611328125, -0.5404108762741089, 0.15152324736118317, -0.20518293976783752, 0.2541145086288452, 0.11867141723632812, 0.3394494652748108, 0.3243595361709595, 0.11932538449764252, 0.2600003480911255, 0.2940564453601837, -0.256710410118103, 0.07232864201068878, -0.1546052098274231, -0.12043628841638565, 0.3157218098640442, 0.12738367915153503, -0.09998758882284164, -0.4395749568939209, -0.05594438314437866, 0.06106913834810257, -0.21907734870910645, 0.014868631958961487, 0.039003245532512665, -0.3672313094139099, 0.1371365487575531, 0.4929429590702057, 0.06878459453582764, 0.13338981568813324, 0.3695409297943115, -0.13298574090003967, -0.14489834010601044, 0.33699747920036316, 0.019528860226273537, -0.2087257355451584, -0.423785001039505, 0.13415662944316864, 0.24244797229766846, -0.010782474651932716, 0.34360161423683167, 0.04850563406944275, 0.02787022851407528, -0.014727741479873657, 0.09529393911361694, 0.13358576595783234, 0.0630662739276886, -0.26424098014831543, 0.44104528427124023, 0.057082485407590866, -0.06432898342609406, -0.023872315883636475, 0.14381758868694305, -0.15539059042930603, 0.24317574501037598, 0.48005011677742004, 0.4059355854988098, 0.2361021339893341, -0.3073672354221344, 0.2976963520050049, 0.4374848008155823, -0.29299232363700867, -0.08486184477806091, 0.09370464086532593, -0.1128479391336441, -0.45170828700065613, 0.33681148290634155, 0.02652779594063759, 0.14929893612861633, -0.05347798764705658, 0.22104094922542572, -0.1418747901916504, -0.03798810765147209, -0.15877628326416016, -0.3545043468475342, -0.3207326829433441, 0.30531519651412964, -0.051502250134944916, -0.04269455745816231, 0.11130108684301376, -0.11754850298166275, -0.5868126749992371, 0.10987266898155212, -0.07355809211730957, -0.0875953882932663, -0.056946877390146255, 0.9322978258132935, 0.027881694957613945, 0.25124362111091614, -0.049604978412389755, 0.21626538038253784, -0.05344396084547043, 0.008938871324062347, -0.1493973433971405, -0.3996337950229645, -0.08295382559299469, -0.0047224536538124084, -0.019998840987682343, 0.3082149028778076, 0.12288759648799896, 0.05331415683031082, -0.12353061139583588, -0.10387226939201355, 0.20145513117313385, -0.28212928771972656, -0.16876830160617828, -0.19730624556541443, 0.04139846935868263, 0.06285478174686432, 0.13782234489917755, -0.3370281755924225, -0.4472597539424896, -0.15599635243415833, 0.24687591195106506, 0.36474549770355225, -0.239956334233284, -0.003357160836458206, 0.35879841446876526, 0.18158508837223053, -0.07448013126850128, 0.20853425562381744, 0.08546801656484604, -0.08742666989564896, -0.032098375260829926, -0.09450507164001465, 0.4734264016151428, 0.4213305711746216, -0.03208231180906296, 0.1105896383523941, 0.30107489228248596, 0.20766842365264893, 0.09503613412380219, -0.14791099727153778, 0.1323513686656952, 0.43065598607063293, 0.09216102957725525, 0.09925633668899536, -0.13126228749752045, -0.0976167768239975, 0.39957278966903687, 0.1208030954003334, -0.2026578187942505, -0.6101470589637756, 0.1275205910205841, -0.03617178648710251, -0.07589838653802872, 0.27640098333358765, -0.05138952285051346, -0.10548369586467743, 0.030088573694229126, 0.04991379380226135, -0.8405377864837646, 0.1827555149793625, 0.04393962025642395, -0.22879907488822937, -0.17095448076725006, -0.05376189574599266, -0.11367911100387573, 0.36961519718170166, -0.15434964001178741, -0.15585413575172424, 0.16717329621315002, -0.16397970914840698, -0.05504975467920303, -0.006937399506568909, 0.02626105397939682, -0.10748650133609772, 0.05107351392507553, -0.3698427975177765, 0.008514389395713806, 0.07897096127271652, 0.20773173868656158, -0.29338183999061584, -0.18974310159683228, -0.06691593676805496, 0.01928040385246277, 0.14949026703834534, 0.21112772822380066, -0.026634719222784042, 0.27197080850601196, -0.24574191868305206, 0.24652180075645447, 0.2640498876571655, 0.04518582671880722, -0.18724441528320312, -0.0682791993021965, -0.05033062770962715, -0.05735921487212181, 0.0380740761756897, 0.04725782945752144, 0.11682869493961334, -0.1141839325428009, 0.0822906345129013, -0.2946701943874359, 0.05651700496673584, 0.02353752590715885, -0.28502899408340454, -0.1330881267786026, -0.11215654015541077, 0.23269087076187134, 0.08973872661590576, 0.11592468619346619, 0.17961983382701874, -0.01584574207663536, -0.2538018822669983, 0.1694009006023407, -0.28950339555740356, 0.08107489347457886, -0.2157641053199768, -0.09304805099964142, -0.015356958843767643, -0.23029358685016632, 0.05757195129990578, -0.032913923263549805, 0.11743594706058502, -0.1404101699590683, 0.2576202154159546, 0.20025011897087097, 0.3634287714958191, -0.21621230244636536, -0.18131954967975616, -0.1422645002603531, 0.17771387100219727, 0.09980219602584839, -0.4149801433086395, 0.33052438497543335, 0.1879826784133911, -0.07974360138177872, 0.031286899000406265, 0.0676988810300827, 0.19659584760665894, 0.15953010320663452, 0.1310824751853943, -0.3357592225074768, 0.16944007575511932, 0.40783196687698364, 0.07729171216487885, -0.16202661395072937, -0.013500995934009552, -0.09395626187324524, 0.0710936114192009, 0.04253822937607765, 0.2906353175640106, -0.19241516292095184, 0.37144041061401367, -0.12092171609401703, 0.5271897315979004, -0.06743787229061127, -0.41860073804855347, 0.20301377773284912, -0.09512893855571747, 0.12919211387634277, -0.08283282816410065, -0.1675729751586914, 0.49657055735588074, 0.3667689561843872, -0.3319826126098633, 0.04887867346405983, -0.46311914920806885, 0.01971239410340786, 0.11051103472709656, 0.258132666349411, -0.09415832906961441, -0.06655198335647583, 0.07873222976922989, -0.046489596366882324, 0.2993483543395996, -0.5147417783737183, 0.356427401304245, -0.055445924401283264, 0.21134549379348755, 0.2320537567138672, 0.4537918269634247, 0.26560550928115845, -0.12639500200748444, 0.22049589455127716, -0.2902866303920746, -0.37920016050338745, 0.4615425765514374, -0.028401238843798637, 0.3594944477081299, -0.09859293699264526, -0.1411707103252411, 0.28672945499420166, 0.03778177872300148, 0.5474433302879333, 0.21162055432796478, -0.32904720306396484, 0.45180797576904297, 0.14154189825057983, -0.3843212425708771, -0.1611049771308899, -0.17908403277397156, 0.2378774732351303, 0.010971663519740105, 0.4116705358028412, -0.11741635203361511, -0.33294975757598877, -0.3428002893924713, -0.04151881858706474, -0.22205016016960144, -0.29107537865638733, -0.42102280259132385, -0.3375883102416992, -0.15866179764270782, 0.4674517810344696, 0.01714780181646347, 0.3032742738723755, -0.10705587267875671, 0.15080834925174713, -0.4915829598903656, -0.10765565931797028, -0.07800567895174026, -0.17607790231704712, 0.29341453313827515, -0.1969272792339325, -0.09105024486780167, 0.09647510945796967, 0.29855746030807495, 0.4689679741859436, -0.13754761219024658, 0.3453899919986725, 0.11537790298461914, 0.2162029892206192, 0.048441290855407715, 0.048227809369564056, 0.15357473492622375, -0.01058773323893547, 0.16701966524124146, -0.10510127246379852, 0.16312755644321442, -0.5299462676048279, -0.15431822836399078, 0.2289402186870575, -0.042661767452955246, -0.2358107566833496, 0.15104900300502777, 0.3084452152252197, -0.15253229439258575, 0.07271435856819153, 0.0318392850458622, 0.23137198388576508, -0.14117051661014557, 0.7170217633247375, 0.4281054139137268, 0.9727641940116882, -0.04575585946440697, -0.1917944699525833, 0.1572517454624176, -0.4654711186885834, 0.2642843425273895, -0.18383613228797913, 0.4179234802722931, -0.5206822156906128, -0.03844942897558212, -0.08481848984956741, 0.07882924377918243, 0.284955233335495, -0.19832342863082886, -0.4596635103225708, 0.07848247140645981, -0.45035433769226074, -0.1716124415397644, -0.17710450291633606, 0.0814979150891304, 0.024233760312199593, -0.2860445976257324, -0.18741044402122498, 0.06454797089099884, 0.048676345497369766, 0.22119681537151337, 0.11267226189374924, -0.06731283664703369, -0.13548164069652557, 0.055588409304618835, -0.22410060465335846, 0.032032884657382965, -0.10856054723262787, 0.3049996495246887, -0.13013672828674316, -0.23263803124427795, -0.14639687538146973, -0.32774463295936584, 0.4981687366962433, -0.3548031151294708, -0.24503380060195923, -0.1663229614496231, 0.03459446132183075, -0.1157076358795166, -0.1562320739030838, -0.19254133105278015, 0.26120930910110474, 0.061806969344615936, -0.16351591050624847, 0.006322520785033703, 0.022362053394317627, 0.026857979595661163, 0.002524346113204956, -0.1410479098558426, -0.35725465416908264, -0.3139784336090088, -0.42449629306793213, -0.0923326388001442, 0.23180055618286133, 0.09672354906797409, 0.09670925885438919, 0.3062936067581177, -0.2717127203941345, 0.1072380542755127, -0.28751319646835327, -0.13408273458480835, 0.006045079790055752, 0.33543500304222107, 0.07582688331604004, 0.020216383039951324, 0.3766196668148041, -0.3060866892337799, -0.17053914070129395, -0.18013449013233185, -0.27440953254699707, 0.1611410230398178, -0.019905321300029755, 0.049929000437259674, -0.04824673756957054, -0.2829883098602295, -0.048085588961839676, 0.1993076056241989, -0.031029731035232544, -0.10048915445804596, -0.6292185187339783, -0.016636863350868225, -0.4327395260334015, 0.04096391424536705, -0.23837268352508545, 0.25732526183128357, -0.18253397941589355, 0.3144521415233612, -0.07180024683475494, -0.30564460158348083, -0.25874772667884827, 0.06955551356077194, -0.4101380705833435, 0.2657015919685364, -0.41455549001693726, -0.13613174855709076, 0.07213009893894196, -0.004033856093883514, 0.18928053975105286, 0.002342190593481064, -0.04479065537452698, -0.13839399814605713, -0.13562631607055664, 0.13317732512950897, 0.08760862797498703, 0.21261224150657654, -0.15291708707809448, -0.06406884640455246, -0.12228386104106903, -0.009195992723107338, -0.09240923076868057, 0.29610589146614075, -0.05968852341175079, 0.13756348192691803, 0.12786825001239777, 0.20474354922771454, -0.13113906979560852, -0.05294276028871536, 0.23643068969249725, 0.3273604214191437, -0.11986912786960602, 0.12375184893608093, -0.39807558059692383, 0.12464816868305206, -0.30585452914237976, 0.13605159521102905, 0.3669174909591675, 0.10377620905637741, 0.05432000011205673, 0.05829953774809837, -0.11993107944726944, 0.11124591529369354, -0.10133814066648483, 0.25280070304870605, -0.16981393098831177, -0.006553538143634796, 0.18943458795547485, 0.2006903439760208, -0.0020724087953567505, 0.17202450335025787, -0.0062766168266534805, -0.2850205600261688, -0.14595213532447815, 0.14655140042304993, 0.37093907594680786, 0.07734435796737671, -0.16276755928993225, -0.11222195625305176, 0.16763396561145782, 0.16025951504707336, -0.12908777594566345, -0.22507727146148682, 0.24750153720378876, 0.22123700380325317, 0.16821175813674927, 0.004840614274144173, 0.4208073914051056, 0.40264517068862915, 0.004801325500011444, 0.12881839275360107, 0.5096389055252075, 0.15290266275405884, -0.029512587934732437, -0.0068311989307403564, 0.2534536123275757, -0.10154833644628525, -0.0050082579255104065, -0.1515844613313675, -0.08598805963993073, 0.03240346536040306, -0.45430800318717957, -0.3302353620529175, 0.07063468545675278, 0.2346273511648178, -0.42606890201568604, -0.0737658441066742, 0.1905769407749176, 0.2589166760444641, -0.06058463454246521, -0.30848267674446106, 0.21000856161117554, 0.11194351315498352, -0.023367170244455338, 0.12126865983009338, -0.18898531794548035, 0.3232126832008362, -0.45118874311447144, 0.5020247101783752, 0.3923588991165161, -0.06094399839639664, 0.025305068120360374, -0.09846600890159607, -0.15609967708587646, 0.07544023543596268, 0.3508639633655548, 0.5285475850105286, 0.4314030706882477, -0.36678293347358704, 0.29372280836105347, 0.24418309330940247, -0.059478990733623505, 0.11492766439914703, -0.2624688744544983, -0.026869624853134155, 0.2984539866447449, 0.11378514766693115, 0.08367428183555603, 0.003476720303297043, -0.3272370398044586, -0.0920962393283844, 0.3319786787033081, 0.08447225391864777, 0.18150819838047028, -0.3820914924144745, -0.08997713774442673, -0.24607940018177032, 0.052611783146858215, -0.26496797800064087, 0.01401374489068985, 0.03732534125447273, -0.22231347858905792, 0.04763813689351082, 0.22946427762508392, 0.03974572569131851, -0.11474204063415527, 0.03927506506443024, 0.08883228898048401, 0.025867152959108353, -0.3434680104255676, -0.014614656567573547, 0.005543626844882965, 0.28043803572654724, 0.26278603076934814, 0.0692644864320755, 0.20421262085437775, 0.5844689607620239, -0.0433289110660553, -0.20425479114055634, 0.09360502660274506, -0.0386308953166008, 0.3985428214073181, 0.4201738238334656, 0.010918058454990387, 0.128018319606781, -0.5080534815788269, -0.2697490453720093, -0.03813612461090088, 0.08232681453227997, 0.2540043890476227, 0.10659455507993698, 0.13649211823940277, 0.015240050852298737, -0.09826110303401947, -0.04708972945809364, 0.0751609206199646, 0.6740575432777405, 0.004594568163156509, -0.07816165685653687, -0.08394309133291245, -0.26276129484176636, 0.18421101570129395, 0.014303285628557205, -0.3596513569355011, 0.07844609022140503, -0.03786556050181389, -0.03619998320937157, -0.05888332426548004, -0.23413771390914917, -0.2605670094490051, 0.7164093255996704, -0.06873828172683716, -0.35270118713378906, -0.12854327261447906, 0.29699862003326416, -0.3471457362174988, -0.20567995309829712, 0.3894694149494171, 0.05122466757893562, 0.07231764495372772, 0.4429089426994324, -0.2615901827812195, -0.30919164419174194, 0.3434889316558838, 0.012517787516117096, 0.019310861825942993, -0.08371974527835846, 0.38281744718551636, 0.285471111536026, 0.5122019648551941, -0.852729320526123, -0.046774446964263916, 0.17948853969573975, 0.06819550693035126, -0.097924143075943, -0.21643505990505219, 0.08208893239498138, -0.06155247613787651, -0.10216367989778519, -0.023005656898021698, 0.07689512521028519, 0.4291137158870697, -0.05820120498538017, -0.1954106241464615 ]
https://github.com/huggingface/datasets/issues/1859
I fixed this issue. It should work fine now. Feel free to try it out by installing `datasets` from source. Otherwise you can wait for the next release of `datasets` (in a few days)
Error "in void don't know how to serialize this type of index" when saving index to disk when device=0 (GPU)
Error serializing faiss index. Error as follows: `Error in void faiss::write_index(const faiss::Index*, faiss::IOWriter*) at /home/conda/feedstock_root/build_artifacts/faiss-split_1612472484670/work/faiss/impl/index_write.cpp:453: don't know how to serialize this type of index` Note: `torch.cuda.is_available()` reports: ``` Cuda is available cuda:0 ``` Adding index, device=0 for GPU. `dataset.add_faiss_index(column='embeddings', index_name='idx_embeddings', device=0)` However, during a quick debug, self.faiss_index has no attr "device" when checked in` search.py, method save`, so fails to transform gpu index to cpu index. If I add index without device, index is saved OK. ``` def save(self, file: str): """Serialize the FaissIndex on disk""" import faiss # noqa: F811 if ( hasattr(self.faiss_index, "device") and self.faiss_index.device is not None and self.faiss_index.device > -1 ): index = faiss.index_gpu_to_cpu(self.faiss_index) else: index = self.faiss_index faiss.write_index(index, file) ```
34
Error "in void don't know how to serialize this type of index" when saving index to disk when device=0 (GPU) Error serializing faiss index. Error as follows: `Error in void faiss::write_index(const faiss::Index*, faiss::IOWriter*) at /home/conda/feedstock_root/build_artifacts/faiss-split_1612472484670/work/faiss/impl/index_write.cpp:453: don't know how to serialize this type of index` Note: `torch.cuda.is_available()` reports: ``` Cuda is available cuda:0 ``` Adding index, device=0 for GPU. `dataset.add_faiss_index(column='embeddings', index_name='idx_embeddings', device=0)` However, during a quick debug, self.faiss_index has no attr "device" when checked in` search.py, method save`, so fails to transform gpu index to cpu index. If I add index without device, index is saved OK. ``` def save(self, file: str): """Serialize the FaissIndex on disk""" import faiss # noqa: F811 if ( hasattr(self.faiss_index, "device") and self.faiss_index.device is not None and self.faiss_index.device > -1 ): index = faiss.index_gpu_to_cpu(self.faiss_index) else: index = self.faiss_index faiss.write_index(index, file) ``` I fixed this issue. It should work fine now. Feel free to try it out by installing `datasets` from source. Otherwise you can wait for the next release of `datasets` (in a few days)
[ -0.2384788691997528, -0.24059055745601654, -0.038640569895505905, 0.1195869892835617, 0.3427583575248718, 0.15249226987361908, 0.34448951482772827, 0.5221386551856995, 0.4608199894428253, 0.2513043284416199, -0.07914189994335175, 0.14128589630126953, 0.12161272764205933, -0.05705905705690384, -0.13959306478500366, 0.13624215126037598, 0.4380635619163513, 0.1934218853712082, 0.3012021780014038, -0.058326490223407745, -0.4008604884147644, 0.09125268459320068, 0.035944998264312744, 0.012926531955599785, -0.18736417591571808, -0.04723338037729263, -0.06136332452297211, -0.042377375066280365, -0.1474946141242981, -0.4240972697734833, -0.05774175003170967, -0.15452547371387482, 0.4029407799243927, 0.3433760404586792, -0.00011374389578122646, 0.017159879207611084, 0.2634909451007843, -0.19862154126167297, -0.15380477905273438, -0.13968341052532196, 0.29650381207466125, 0.07604032009840012, 0.15193068981170654, -0.3508683443069458, -0.24095502495765686, -0.289104700088501, -0.04857539385557175, -0.24394634366035461, -0.10228115320205688, 0.2978605031967163, 0.20406317710876465, -0.08749998360872269, 0.40524041652679443, -0.13252973556518555, 0.05006945878267288, 0.11002647876739502, -0.2817079424858093, -0.11409305781126022, 0.00781763345003128, 0.4504531919956207, 0.25066742300987244, 0.29850777983665466, -0.006953418254852295, -0.2596968412399292, -0.09165462851524353, -0.01833532750606537, 0.3743927478790283, -0.38356083631515503, 0.22961664199829102, -0.12125600874423981, 0.1396840363740921, -0.33475983142852783, -0.3617610037326813, 0.22295403480529785, 0.18727917969226837, -0.4804654121398926, -0.07551516592502594, 0.06071919947862625, -0.22714969515800476, 0.134176567196846, 0.5808407068252563, -0.14469453692436218, 0.06831052154302597, -0.1654360592365265, 0.16339418292045593, 0.058515604585409164, -0.11987277120351791, 0.10650570690631866, 0.058330193161964417, -0.1843249797821045, -0.09530726820230484, 0.06422747671604156, 0.1779870092868805, 0.12875810265541077, -0.5028725266456604, -0.08673415333032608, 0.02473742701113224, -0.41745924949645996, -0.0460309237241745, 0.07245317101478577, -0.3467901647090912, 0.14533138275146484, 0.17669908702373505, 0.059234634041786194, -0.2870435416698456, 0.03376680612564087, -0.02745012193918228, -0.1457376629114151, 0.00665898947045207, 0.03839512914419174, 0.034457385540008545, -0.33033543825149536, -0.1660042703151703, -0.03156659007072449, -0.37894830107688904, 0.07615427672863007, 0.19635047018527985, -0.3188081383705139, -0.5184014439582825, 0.1290774643421173, -0.013628914952278137, 0.22907103598117828, 0.14169783890247345, 0.4266781210899353, 0.3175199329853058, 0.035345155745744705, 0.2645549178123474, 0.2988888621330261, -0.20377054810523987, 0.06698401272296906, -0.18605904281139374, -0.18276123702526093, 0.23994770646095276, 0.16449891030788422, 0.013855718076229095, -0.4622969627380371, 0.06486430764198303, 0.07787613570690155, -0.11089163273572922, 0.15394814312458038, 0.09394548088312149, -0.28335297107696533, 0.09442035108804703, 0.4206938147544861, 0.027025438845157623, 0.20144739747047424, 0.31023383140563965, -0.07112519443035126, -0.1758989691734314, 0.3338376581668854, -0.007335826754570007, -0.24115332961082458, -0.5131021738052368, 0.14910008013248444, 0.2137334793806076, -0.05298434942960739, 0.26807788014411926, 0.08595692366361618, 0.10338357090950012, -0.03086773306131363, 0.06880616396665573, 0.09143941849470139, 0.035848043859004974, -0.31603264808654785, 0.49516719579696655, 0.012860827147960663, -0.16863113641738892, -0.0478118397295475, 0.1192980706691742, -0.12027734518051147, 0.17593467235565186, 0.5109655261039734, 0.33129721879959106, 0.1718975305557251, -0.27038905024528503, 0.30077916383743286, 0.4135614037513733, -0.33004164695739746, -0.19870051741600037, 0.06475599110126495, -0.01926494389772415, -0.32544949650764465, 0.18251445889472961, 0.07294616103172302, 0.28502100706100464, -0.007030606269836426, 0.22794541716575623, -0.03123016282916069, 0.002012602984905243, -0.16116486489772797, -0.37858471274375916, -0.32336193323135376, 0.43421679735183716, 0.040383726358413696, -0.07128406316041946, 0.07739334553480148, -0.11797493696212769, -0.6022036671638489, 0.1653824746608734, -0.15682488679885864, -0.0420190766453743, -0.03373432159423828, 0.9180986285209656, 0.06640876829624176, 0.2482101321220398, -0.04808377847075462, 0.07459887862205505, 0.021119900047779083, 0.10850866138935089, -0.11870858073234558, -0.42292672395706177, -0.13032492995262146, 0.015687517821788788, -0.07580073177814484, 0.21269746124744415, 0.003095487132668495, 0.07678763568401337, -0.1611405462026596, -0.11213023960590363, 0.17428123950958252, -0.30996590852737427, -0.013458365574479103, -0.17551948130130768, 0.08501686155796051, -0.0379410944879055, 0.18154418468475342, -0.3314417898654938, -0.4518473148345947, -0.16605591773986816, 0.2707015872001648, 0.3499482274055481, -0.27127912640571594, -0.03669421002268791, 0.3937571346759796, 0.09326572716236115, -0.08254452049732208, 0.15252697467803955, 0.025743544101715088, 0.0043487586081027985, -0.01815679669380188, 0.07687073945999146, 0.42592060565948486, 0.32187575101852417, -0.03698595613241196, 0.027198094874620438, 0.3717030882835388, 0.21107351779937744, 0.05485507845878601, -0.1873319447040558, 0.11082658171653748, 0.4963282346725464, 0.11572731286287308, 0.08225168287754059, -0.13176080584526062, -0.05086467042565346, 0.2979764938354492, 0.16875503957271576, -0.26002970337867737, -0.6055712699890137, 0.2507575750350952, 0.02198450081050396, -0.007665559649467468, 0.2330780029296875, -0.028557298704981804, -0.12895169854164124, 0.060923948884010315, 0.1440112441778183, -0.7042907476425171, 0.17902573943138123, 0.0768936425447464, -0.1703106015920639, -0.09544865787029266, -0.11976009607315063, -0.12166322767734528, 0.3036922514438629, -0.2471761852502823, -0.15204492211341858, 0.18713036179542542, -0.10397003591060638, -0.06825627386569977, -0.06828482449054718, -0.009331800043582916, -0.11528328061103821, 0.044014908373355865, -0.34563392400741577, 0.01851208508014679, 0.029347285628318787, 0.2506074905395508, -0.2507229745388031, -0.2679324150085449, -0.09134507179260254, -0.007154244929552078, 0.12494485080242157, 0.24174535274505615, -0.00739714503288269, 0.37551450729370117, -0.1992129683494568, 0.2434767186641693, 0.2827226519584656, 0.015590464696288109, -0.1905142217874527, -0.11791640520095825, 0.023880871012806892, -0.023580407723784447, 0.04354381188750267, 0.03198957070708275, 0.14360299706459045, -0.09233921021223068, 0.13656024634838104, -0.32001492381095886, -0.04510296881198883, -0.029724232852458954, -0.3586834967136383, -0.03651578724384308, -0.09039327502250671, 0.19156414270401, 0.07373771071434021, 0.010656516999006271, 0.1889193058013916, -0.042471274733543396, -0.17066216468811035, 0.1441258192062378, -0.23560579121112823, 0.010260749608278275, -0.24530284106731415, -0.1029474064707756, -0.08853431046009064, -0.3024117946624756, 0.07609985768795013, 0.042068466544151306, 0.15233829617500305, -0.21044911444187164, 0.27864885330200195, 0.15406711399555206, 0.3944186270236969, -0.22554470598697662, -0.22145269811153412, -0.2535199522972107, 0.32993945479393005, -0.12076068669557571, -0.4436137080192566, 0.33806556463241577, 0.2211083024740219, 0.07550251483917236, 0.0768543928861618, -0.0015968084335327148, 0.32285547256469727, 0.16419412195682526, 0.21438159048557281, -0.27511662244796753, 0.21918466687202454, 0.33763620257377625, 0.054107505828142166, -0.12525388598442078, -0.08365141600370407, -0.09906517714262009, 0.04107852280139923, -0.005850139074027538, 0.37794652581214905, -0.2007446587085724, 0.4935571551322937, -0.0686325877904892, 0.5453829765319824, 0.022730976343154907, -0.4466868042945862, 0.23024971783161163, -0.05539907515048981, 0.19449380040168762, -0.1707661747932434, -0.2438557744026184, 0.5023385882377625, 0.227067768573761, -0.1800374835729599, -0.05406578257679939, -0.4180530607700348, 0.02611212246119976, 0.09258104860782623, 0.17680171132087708, -0.07536748796701431, -0.10838037729263306, 0.1398133784532547, -0.05790937319397926, 0.26434892416000366, -0.44925346970558167, 0.35363510251045227, -0.14888763427734375, 0.19716893136501312, 0.2340366095304489, 0.34684306383132935, 0.21157032251358032, -0.13037531077861786, 0.16277402639389038, -0.19638383388519287, -0.5711723566055298, 0.4759763181209564, -0.16324935853481293, 0.3026891052722931, -0.02987898886203766, -0.12586933374404907, 0.2209756076335907, 0.026358913630247116, 0.6625293493270874, 0.17766053974628448, -0.3577192425727844, 0.481456458568573, 0.11169177293777466, -0.5040151476860046, -0.1274021416902542, -0.13818246126174927, 0.31223222613334656, 0.03214457258582115, 0.4124409556388855, -0.18658271431922913, -0.34143757820129395, -0.325606107711792, -0.004390750080347061, -0.2450975775718689, -0.2345229685306549, -0.36229056119918823, -0.2913391590118408, -0.23802056908607483, 0.3276260495185852, -0.011463653296232224, 0.3348124027252197, -0.12879398465156555, 0.026339933276176453, -0.49460482597351074, -0.11663785576820374, -0.05447755381464958, -0.04505351930856705, 0.3728664219379425, -0.14971628785133362, 0.012961745262145996, 0.07976705580949783, 0.32283979654312134, 0.4381984770298004, -0.012069767341017723, 0.20116379857063293, 0.14470520615577698, 0.15152058005332947, -0.04969844967126846, 0.019038386642932892, 0.13358277082443237, -0.020742101594805717, 0.13352367281913757, -0.20269601047039032, 0.1749545931816101, -0.45006322860717773, -0.1119609847664833, 0.22539815306663513, 0.018572185188531876, -0.32419341802597046, 0.05022697150707245, 0.3169851303100586, -0.15793295204639435, 0.06972000002861023, 0.16205622255802155, 0.1921931803226471, -0.182470440864563, 0.7100053429603577, 0.3957362771034241, 0.9556045532226562, -0.05629503354430199, -0.0954115092754364, 0.10495942085981369, -0.4326784014701843, 0.26469719409942627, -0.16381242871284485, 0.3374713361263275, -0.5618675351142883, -0.08770754933357239, -0.030771277844905853, 0.08429259806871414, 0.25895050168037415, -0.101987823843956, -0.46495962142944336, 0.09487740695476532, -0.4682740271091461, -0.14723551273345947, -0.23124143481254578, 0.08578702807426453, 0.02260107360780239, -0.34160804748535156, -0.16204345226287842, 0.14398539066314697, 0.10546552389860153, 0.1562863439321518, 0.08158774673938751, -0.07455076277256012, -0.10787831991910934, 0.036604009568691254, -0.1978428214788437, -0.0010730922222137451, -0.15092232823371887, 0.3344516456127167, -0.15100114047527313, -0.34977251291275024, -0.0803258866071701, -0.288974404335022, 0.5595018267631531, -0.27916866540908813, -0.21731390058994293, -0.1567486971616745, -0.0037705805152654648, -0.10099481046199799, -0.16172374784946442, -0.2079298198223114, 0.25107038021087646, 0.05042436718940735, -0.22479534149169922, 0.028559841215610504, 0.08564084768295288, -0.04028870910406113, 0.07783719897270203, -0.13771724700927734, -0.334485799074173, -0.30216461420059204, -0.46171215176582336, -0.03964497521519661, 0.22211624681949615, -0.016513921320438385, 0.14104722440242767, 0.32332301139831543, -0.29695266485214233, 0.20074453949928284, -0.33366915583610535, -0.09355048835277557, -0.06836431473493576, 0.4073936641216278, 0.0004035457968711853, 0.035084836184978485, 0.343360960483551, -0.1498124897480011, -0.21541893482208252, -0.1667424589395523, -0.2526400089263916, 0.22330869734287262, -0.03603913635015488, 0.06338509917259216, -0.167549729347229, -0.29241329431533813, -0.07210223376750946, 0.18742641806602478, -0.03474826365709305, -0.09198610484600067, -0.5462040305137634, -0.01522134244441986, -0.47979238629341125, 0.019354205578565598, -0.17161022126674652, 0.3138588070869446, -0.20715618133544922, 0.21484076976776123, -0.04357074201107025, -0.24305939674377441, -0.31386277079582214, 0.14924746751785278, -0.31465721130371094, 0.26712819933891296, -0.34544050693511963, -0.10028491169214249, 0.12559843063354492, 0.015047360211610794, 0.17576685547828674, 0.07115180790424347, -0.06958714127540588, -0.18969833850860596, -0.19232740998268127, 0.11640158295631409, 0.11309098452329636, 0.11492586880922318, -0.15601691603660583, -0.12071775645017624, -0.21564176678657532, -0.08485198765993118, 0.017986349761486053, 0.3290676474571228, -0.0386979840695858, 0.18700751662254333, 0.1404232382774353, 0.13381315767765045, 0.0028004422783851624, -0.049549996852874756, 0.3241003453731537, 0.3158857822418213, -0.09341596066951752, 0.09276305139064789, -0.3825971484184265, 0.07826824486255646, -0.25518304109573364, 0.09750919044017792, 0.31560349464416504, 0.09659327566623688, 0.09574656188488007, -0.02003079652786255, -0.12556222081184387, 0.21827884018421173, 0.03755343705415726, 0.30162572860717773, -0.18573427200317383, 0.015393637120723724, 0.23644359409809113, 0.22768375277519226, -0.05999443680047989, 0.06291092932224274, 0.04851263016462326, -0.2579556405544281, -0.09741050750017166, 0.14418286085128784, 0.37394046783447266, 0.06220228970050812, -0.06348517537117004, -0.08155228197574615, 0.2122592180967331, 0.0998334288597107, 0.011556953191757202, -0.2535569965839386, 0.1916525661945343, 0.1791357696056366, 0.22603388130664825, 0.09547669440507889, 0.44281938672065735, 0.5543108582496643, -0.09099900722503662, 0.22562319040298462, 0.5728285312652588, 0.09625932574272156, 0.03381579741835594, -0.03226252645254135, 0.21134871244430542, -0.1478867083787918, -0.038595832884311676, -0.14831069111824036, -0.07650779187679291, 0.09060236811637878, -0.4630676805973053, -0.439749151468277, 0.054520197212696075, 0.24817033112049103, -0.43644097447395325, -0.07263366132974625, 0.17970198392868042, 0.17483162879943848, -0.036198340356349945, -0.29371383786201477, 0.12018755078315735, 0.010176840238273144, 0.029214203357696533, 0.07588161528110504, -0.15563669800758362, 0.1881147027015686, -0.24919253587722778, 0.44847673177719116, 0.36500051617622375, 0.02808203548192978, 0.07736451178789139, -0.008519336581230164, -0.1375134438276291, 0.009725715965032578, 0.2962387800216675, 0.5330882668495178, 0.4502033591270447, -0.37338942289352417, 0.38459092378616333, 0.21833086013793945, -0.05571666359901428, 0.13540779054164886, -0.21689960360527039, -0.04771776497364044, 0.183882474899292, 0.18739986419677734, 0.12571975588798523, -0.06004800647497177, -0.35197538137435913, -0.02423098310828209, 0.40294140577316284, 0.06264270842075348, 0.09887546300888062, -0.38945579528808594, -0.08164990693330765, -0.22804100811481476, -0.009059850126504898, -0.3260864019393921, 0.03630809858441353, 0.1406637579202652, -0.25981849431991577, 0.05313677713274956, 0.11677750945091248, 0.06985525786876678, -0.1794428825378418, 0.12432417273521423, -0.024871282279491425, 0.055488377809524536, -0.31257301568984985, -0.1278846561908722, -0.15404224395751953, 0.2752576470375061, 0.26037561893463135, 0.10837220400571823, 0.12668481469154358, 0.5640344023704529, -0.03612038865685463, -0.22169919312000275, 0.21616798639297485, -0.12634144723415375, 0.4234744906425476, 0.3542957603931427, -0.060198668390512466, 0.18728885054588318, -0.5837620496749878, -0.21515832841396332, 0.007752500474452972, 0.060041606426239014, 0.2648930251598358, 0.09289396554231644, 0.1579352170228958, -0.01956946589052677, -0.0677332878112793, -0.09654906392097473, 0.031098391860723495, 0.733278214931488, -0.005820808932185173, -0.09753537178039551, -0.06078213080763817, -0.23738333582878113, 0.10600157082080841, -0.01616303250193596, -0.2784541845321655, 0.08409442007541656, 0.06881823390722275, 0.07030470669269562, -0.0650186538696289, -0.2544137239456177, -0.3064647316932678, 0.6995818018913269, -0.011248551309108734, -0.3947989344596863, -0.12500382959842682, 0.3383898138999939, -0.3028249442577362, -0.19475780427455902, 0.36568483710289, 0.19072389602661133, 0.03505901247262955, 0.4770621359348297, -0.22158879041671753, -0.3079068064689636, 0.42773231863975525, 0.015055757015943527, -0.10083408653736115, -0.05682548135519028, 0.2920417785644531, 0.3486463725566864, 0.39095538854599, -0.8917965888977051, -0.04103890806436539, 0.10615324974060059, 0.017417196184396744, -0.1242295652627945, -0.09796759486198425, 0.04909438267350197, -0.04712633043527603, -0.15767142176628113, 0.014908688142895699, 0.13787482678890228, 0.33505886793136597, -0.05178283527493477, -0.19844970107078552 ]
https://github.com/huggingface/datasets/issues/1859
Thanks for such a quick fix and merge to master, pip installed git master, tested all OK
Error "in void don't know how to serialize this type of index" when saving index to disk when device=0 (GPU)
Error serializing faiss index. Error as follows: `Error in void faiss::write_index(const faiss::Index*, faiss::IOWriter*) at /home/conda/feedstock_root/build_artifacts/faiss-split_1612472484670/work/faiss/impl/index_write.cpp:453: don't know how to serialize this type of index` Note: `torch.cuda.is_available()` reports: ``` Cuda is available cuda:0 ``` Adding index, device=0 for GPU. `dataset.add_faiss_index(column='embeddings', index_name='idx_embeddings', device=0)` However, during a quick debug, self.faiss_index has no attr "device" when checked in` search.py, method save`, so fails to transform gpu index to cpu index. If I add index without device, index is saved OK. ``` def save(self, file: str): """Serialize the FaissIndex on disk""" import faiss # noqa: F811 if ( hasattr(self.faiss_index, "device") and self.faiss_index.device is not None and self.faiss_index.device > -1 ): index = faiss.index_gpu_to_cpu(self.faiss_index) else: index = self.faiss_index faiss.write_index(index, file) ```
17
Error "in void don't know how to serialize this type of index" when saving index to disk when device=0 (GPU) Error serializing faiss index. Error as follows: `Error in void faiss::write_index(const faiss::Index*, faiss::IOWriter*) at /home/conda/feedstock_root/build_artifacts/faiss-split_1612472484670/work/faiss/impl/index_write.cpp:453: don't know how to serialize this type of index` Note: `torch.cuda.is_available()` reports: ``` Cuda is available cuda:0 ``` Adding index, device=0 for GPU. `dataset.add_faiss_index(column='embeddings', index_name='idx_embeddings', device=0)` However, during a quick debug, self.faiss_index has no attr "device" when checked in` search.py, method save`, so fails to transform gpu index to cpu index. If I add index without device, index is saved OK. ``` def save(self, file: str): """Serialize the FaissIndex on disk""" import faiss # noqa: F811 if ( hasattr(self.faiss_index, "device") and self.faiss_index.device is not None and self.faiss_index.device > -1 ): index = faiss.index_gpu_to_cpu(self.faiss_index) else: index = self.faiss_index faiss.write_index(index, file) ``` Thanks for such a quick fix and merge to master, pip installed git master, tested all OK
[ -0.11467615514993668, -0.33902156352996826, -0.02119097113609314, 0.11056134104728699, 0.3648001253604889, 0.15794029831886292, 0.29336315393447876, 0.5287508368492126, 0.5046117901802063, 0.3331742584705353, 0.019372709095478058, 0.07134965807199478, 0.11176559329032898, -0.06300191581249237, -0.1396038681268692, 0.1634267121553421, 0.48389339447021484, 0.2276032269001007, 0.33570072054862976, -0.038159675896167755, -0.4010099172592163, 0.1175064966082573, 0.08557487279176712, 0.02035297080874443, -0.074607253074646, 0.027452481910586357, -0.027267400175333023, -0.05713435634970665, -0.17618265748023987, -0.4307222366333008, -0.09747888147830963, -0.24975377321243286, 0.3530040681362152, 0.29873019456863403, -0.00011678187001962215, 0.07650056481361389, 0.25378817319869995, -0.21850356459617615, -0.12127859890460968, -0.19181521236896515, 0.3125516474246979, 0.023826196789741516, 0.21122094988822937, -0.38895654678344727, -0.22199927270412445, -0.2291416972875595, -0.014839151874184608, -0.08240705728530884, -0.08609481155872345, 0.2563896179199219, 0.17280100286006927, -0.1268797069787979, 0.4269101619720459, -0.09931055456399918, 0.04866895452141762, 0.13241702318191528, -0.269990473985672, -0.08132846653461456, 0.031012339517474174, 0.49247580766677856, 0.35094115138053894, 0.312485009431839, -0.04703298211097717, -0.3270624876022339, -0.13485753536224365, -0.035398341715335846, 0.6270087361335754, -0.41132277250289917, 0.17148737609386444, -0.17555835843086243, 0.02527768164873123, -0.25778907537460327, -0.33644697070121765, 0.28102654218673706, 0.19172488152980804, -0.44636449217796326, -0.1149214655160904, 0.05945307016372681, -0.22622351348400116, 0.11791960150003433, 0.6050459146499634, -0.21988897025585175, 0.08268564194440842, -0.19297902286052704, 0.20284759998321533, 0.05295627564191818, -0.1074485331773758, 0.07643289864063263, 0.018313754349946976, -0.1368500292301178, -0.2525523006916046, 0.04142681136727333, 0.173597514629364, 0.15040069818496704, -0.41102397441864014, -0.15858739614486694, 0.03167038783431053, -0.4751075804233551, -0.10775238275527954, 0.10821844637393951, -0.3547212481498718, 0.05361678823828697, 0.24218791723251343, 0.039232656359672546, -0.3029780685901642, 0.053299400955438614, -0.08381883054971695, -0.1678365021944046, -0.05287319794297218, 0.011687744408845901, 0.013886258006095886, -0.3690964877605438, -0.19017665088176727, 0.06148373708128929, -0.33940231800079346, 0.15394185483455658, 0.26057687401771545, -0.33188575506210327, -0.5334688425064087, 0.11211232841014862, -0.09343167394399643, 0.22433511912822723, 0.10774421691894531, 0.31505417823791504, 0.31235310435295105, 0.09139619767665863, 0.21759140491485596, 0.31729504466056824, -0.25209328532218933, 0.11959108710289001, -0.16012217104434967, -0.1714920997619629, 0.2880522608757019, 0.08335749059915543, -0.03942330926656723, -0.43996018171310425, 0.03439897298812866, 0.13771170377731323, -0.189162477850914, 0.03717418015003204, 0.08334670960903168, -0.35899773240089417, 0.04602231830358505, 0.478945791721344, 0.08502033352851868, 0.16849246621131897, 0.39720386266708374, -0.12740783393383026, -0.13341672718524933, 0.366115927696228, -0.0772542953491211, -0.19257158041000366, -0.5117434859275818, 0.14127245545387268, 0.21286830306053162, -0.02811472676694393, 0.17843300104141235, 0.031009063124656677, 0.12528036534786224, -0.03999389708042145, 0.08403652906417847, 0.12499433755874634, 0.11711130291223526, -0.2871427834033966, 0.42714983224868774, -0.014121368527412415, -0.03558506444096565, -0.0640764907002449, 0.14138828217983246, -0.1511021852493286, 0.242163747549057, 0.5180211663246155, 0.4163942039012909, 0.25369250774383545, -0.2635124921798706, 0.2852969169616699, 0.42692282795906067, -0.3314136266708374, -0.14411073923110962, 0.09506189823150635, -0.07965627312660217, -0.3813628554344177, 0.28087398409843445, 0.029366523027420044, 0.20754003524780273, -0.10951429605484009, 0.18994268774986267, -0.12888163328170776, -0.01223085168749094, -0.14324510097503662, -0.375747948884964, -0.34308111667633057, 0.31140464544296265, -0.06604204326868057, -0.05192733556032181, 0.12727981805801392, -0.13548223674297333, -0.5923423171043396, 0.11966468393802643, -0.14098671078681946, -0.05150223523378372, -0.038337163627147675, 0.9742363691329956, 0.07531863451004028, 0.22444438934326172, -0.089006707072258, 0.16717593371868134, -0.08227149397134781, 0.01975865662097931, -0.13042917847633362, -0.4603835940361023, -0.09252732992172241, 0.007903710007667542, -0.103990837931633, 0.23976834118366241, 0.09915391355752945, 0.07583890855312347, -0.17097273468971252, -0.1432720124721527, 0.1668156087398529, -0.2967723608016968, -0.1551455855369568, -0.12983235716819763, 0.11906594783067703, 0.06997619569301605, 0.16211512684822083, -0.32368308305740356, -0.4899027645587921, -0.20849373936653137, 0.2800620198249817, 0.36385592818260193, -0.2614921033382416, -0.04343442618846893, 0.3414681553840637, 0.030494704842567444, -0.02771291509270668, 0.17768226563930511, 0.09776313602924347, -0.0440903902053833, -0.04214589297771454, -0.01682176999747753, 0.5092588067054749, 0.40290510654449463, -0.05751003697514534, 0.09938482940196991, 0.2719665765762329, 0.18140703439712524, 0.09690992534160614, -0.19896569848060608, 0.09339725971221924, 0.40916764736175537, 0.07901030778884888, 0.09289372712373734, -0.1172560527920723, 0.0038421358913183212, 0.35097652673721313, 0.14386609196662903, -0.21831949055194855, -0.5096516609191895, 0.12852472066879272, -0.04301805421710014, -0.03271026164293289, 0.2649698555469513, 0.0011570258066058159, -0.12337690591812134, 0.0679902583360672, 0.0005133263766765594, -0.7569183111190796, 0.17820873856544495, 0.03536670282483101, -0.24626696109771729, -0.14743830263614655, -0.049502257257699966, -0.11684003472328186, 0.3600617051124573, -0.1883469969034195, -0.19262048602104187, 0.2656208872795105, -0.07012975215911865, -0.02704400196671486, 0.018068991601467133, 0.07455556094646454, -0.13141652941703796, 0.03398244082927704, -0.32213979959487915, 0.04701511561870575, 0.10458174347877502, 0.21262338757514954, -0.23202107846736908, -0.28596535325050354, -0.08880200982093811, -0.002395588904619217, 0.10298721492290497, 0.24183529615402222, -0.0353085957467556, 0.2771553695201874, -0.1721949279308319, 0.18796184659004211, 0.24467740952968597, 0.03010413609445095, -0.20192253589630127, -0.11639580130577087, 0.024905800819396973, -0.05748166888952255, 0.05623433366417885, -0.019793415442109108, 0.10090351849794388, -0.1188318282365799, 0.06954580545425415, -0.2965681552886963, -0.0026124119758605957, -0.011106807738542557, -0.3667129576206207, -0.030804496258497238, -0.10124198347330093, 0.21454691886901855, 0.0998612493276596, 0.05707043036818504, 0.22947178781032562, 0.013641342520713806, -0.21898573637008667, 0.14726608991622925, -0.2851094901561737, 0.0995735228061676, -0.2638252079486847, -0.03142367675900459, -0.09336788207292557, -0.27718687057495117, 0.04630040377378464, -0.006617598235607147, 0.1611277163028717, -0.17507657408714294, 0.25002148747444153, 0.10963141918182373, 0.382616251707077, -0.19946670532226562, -0.16049377620220184, -0.2403208166360855, 0.24552133679389954, 0.014106690883636475, -0.4077501893043518, 0.3803664445877075, 0.23278585076332092, 0.08254556357860565, -0.016833150759339333, 0.053143084049224854, 0.27930986881256104, 0.17680244147777557, 0.13673827052116394, -0.36606237292289734, 0.21240778267383575, 0.3130122125148773, 0.09572295844554901, -0.11492125689983368, -0.05341257154941559, -0.026912793517112732, 0.046729423105716705, 0.026832688599824905, 0.33434733748435974, -0.19831402599811554, 0.43340131640434265, -0.1179567202925682, 0.6137670278549194, -0.029454339295625687, -0.3339175879955292, 0.2581990957260132, -0.02539735473692417, 0.10398757457733154, -0.141595721244812, -0.2537582218647003, 0.42574837803840637, 0.30523133277893066, -0.25422149896621704, -0.03816480189561844, -0.40939924120903015, 0.052364759147167206, 0.13722798228263855, 0.21539965271949768, -0.05546097084879875, -0.0866813212633133, 0.11145921796560287, -0.07940813899040222, 0.28029149770736694, -0.5015252828598022, 0.2859978973865509, -0.13376116752624512, 0.18972305953502655, 0.23405951261520386, 0.4296456277370453, 0.21587134897708893, -0.1023617684841156, 0.18242770433425903, -0.34924349188804626, -0.5001866221427917, 0.431486040353775, -0.11535313725471497, 0.23610500991344452, -0.05702147260308266, -0.09956607222557068, 0.2641094923019409, 0.028001442551612854, 0.5748893022537231, 0.25057023763656616, -0.36066752672195435, 0.4638267159461975, 0.11072865128517151, -0.40792497992515564, -0.18783143162727356, -0.11108236014842987, 0.3629109263420105, 0.05719132721424103, 0.45733097195625305, -0.20066988468170166, -0.3740851879119873, -0.33330681920051575, -0.021082019433379173, -0.2284049689769745, -0.274968683719635, -0.41516026854515076, -0.30750516057014465, -0.19490493834018707, 0.3872949182987213, 0.037700921297073364, 0.3573039472103119, -0.13093411922454834, 0.12227170169353485, -0.4832380414009094, -0.06754686683416367, -0.08159273862838745, -0.22518089413642883, 0.3386273980140686, -0.23943336308002472, -0.07690116763114929, -0.021950148046016693, 0.28595736622810364, 0.41773611307144165, -0.049130719155073166, 0.32010382413864136, 0.18614259362220764, 0.18882296979427338, 0.00046147778630256653, 0.03918814659118652, 0.10988562554121017, 0.05407251417636871, 0.18412572145462036, -0.14281460642814636, 0.22308316826820374, -0.46687838435173035, -0.1193055510520935, 0.22271928191184998, -0.02809915877878666, -0.2630174458026886, 0.1655525267124176, 0.3173096776008606, -0.12818892300128937, 0.12774524092674255, 0.1194433867931366, 0.1563388705253601, -0.19310259819030762, 0.6817431449890137, 0.399746835231781, 0.9798756241798401, 0.02529177814722061, -0.09146121144294739, 0.08580166101455688, -0.41672319173812866, 0.21204912662506104, -0.15811848640441895, 0.3874967396259308, -0.5338542461395264, -0.014661960303783417, -0.07041627168655396, 0.06377856433391571, 0.22723639011383057, -0.22362619638442993, -0.49856099486351013, 0.12077228724956512, -0.4409581422805786, -0.12804557383060455, -0.19786375761032104, 0.01896297186613083, -0.012970071285963058, -0.27843040227890015, -0.10507841408252716, 0.07929286360740662, 0.05516526848077774, 0.21439597010612488, 0.0763617753982544, -0.11820799112319946, -0.17659738659858704, 0.06441444158554077, -0.23040275275707245, -0.026510469615459442, -0.17306150496006012, 0.34463661909103394, -0.09938616305589676, -0.3877474069595337, -0.1328037828207016, -0.36712929606437683, 0.47226449847221375, -0.29433387517929077, -0.2061360627412796, -0.1880919635295868, 0.017434848472476006, -0.05136201158165932, -0.18563997745513916, -0.16171790659427643, 0.21388302743434906, 0.04089203476905823, -0.1677400916814804, 0.016889631748199463, 0.0026911944150924683, -0.018981188535690308, 0.05210116505622864, -0.12526606023311615, -0.35063090920448303, -0.308531254529953, -0.4875865876674652, -0.03759986162185669, 0.2412181794643402, 0.03317476809024811, 0.11445851624011993, 0.34550291299819946, -0.3167864680290222, 0.17652061581611633, -0.35810405015945435, -0.11608801782131195, -0.007958881556987762, 0.3641253411769867, 0.07350493967533112, 0.01689554750919342, 0.40570712089538574, -0.274725079536438, -0.1524934470653534, -0.1529945433139801, -0.23133523762226105, 0.1319376826286316, -0.07703597098588943, 0.13161633908748627, -0.1380925178527832, -0.3396425247192383, -0.06465765088796616, 0.24358083307743073, 0.001077866181731224, -0.034670211374759674, -0.606376588344574, 0.042192429304122925, -0.45364707708358765, 0.048027366399765015, -0.18683667480945587, 0.27289021015167236, -0.23775213956832886, 0.24448567628860474, -0.03623420000076294, -0.3157741129398346, -0.2671249806880951, 0.15730223059654236, -0.3896794319152832, 0.29998159408569336, -0.39153075218200684, -0.1758679896593094, 0.09341742843389511, 0.021515708416700363, 0.16601546108722687, 0.01892683282494545, -0.03897394612431526, -0.16318367421627045, -0.15727059543132782, 0.13022112846374512, 0.0838368833065033, 0.16329018771648407, -0.14565148949623108, 0.006503298878669739, -0.10097449272871017, -0.0033868253231048584, -0.03151468560099602, 0.24844884872436523, -0.020477980375289917, 0.15043184161186218, 0.09516728669404984, 0.23086616396903992, -0.06339222192764282, -0.054642945528030396, 0.2786683440208435, 0.2993784248828888, -0.135201558470726, 0.09923841059207916, -0.345797598361969, 0.11918484419584274, -0.30029988288879395, 0.052471667528152466, 0.35205382108688354, 0.10874709486961365, 0.09883497655391693, -0.03819943964481354, -0.1049233227968216, 0.22000445425510406, -0.08653416484594345, 0.21960724890232086, -0.19545724987983704, 0.02270858734846115, 0.1914827674627304, 0.21917636692523956, 0.04117602854967117, 0.1304052174091339, 0.047172583639621735, -0.2500387132167816, -0.14444968104362488, 0.10823573172092438, 0.37427645921707153, 0.022419005632400513, -0.10114409029483795, -0.04517826437950134, 0.22045674920082092, 0.14781387150287628, -0.0020096823573112488, -0.20997492969036102, 0.2430306077003479, 0.22967907786369324, 0.12416183203458786, 0.039094433188438416, 0.3866071105003357, 0.44609954953193665, 0.016255071386694908, 0.15038210153579712, 0.5617637634277344, 0.05763348564505577, 0.025829916819930077, 0.08878889679908752, 0.11865020543336868, -0.14947809278964996, -0.0015856362879276276, -0.1095035970211029, -0.08520582318305969, 0.017559286206960678, -0.48778480291366577, -0.4000403881072998, 0.1134634017944336, 0.28146740794181824, -0.45510271191596985, -0.06389543414115906, 0.1260298192501068, 0.2360825091600418, -0.005589470267295837, -0.30238497257232666, 0.1427740752696991, 0.1391487866640091, -0.03897703438997269, 0.11919547617435455, -0.19015885889530182, 0.3054991364479065, -0.3720207214355469, 0.5323473811149597, 0.4078017473220825, -0.03458402305841446, 0.09084700793027878, 0.015907589346170425, -0.16748933494091034, -0.015425527468323708, 0.4096113443374634, 0.5584619641304016, 0.4596504867076874, -0.4080401062965393, 0.3030127286911011, 0.2462727129459381, -0.08426554501056671, 0.1901925802230835, -0.24240711331367493, -0.010063916444778442, 0.2692164480686188, 0.047300830483436584, 0.09365947544574738, -0.04152122139930725, -0.2905818521976471, -0.09359459578990936, 0.2913464307785034, 0.07832171767950058, 0.18535462021827698, -0.3981408476829529, -0.157191202044487, -0.1800522804260254, 0.04233870655298233, -0.353823721408844, 0.049283042550086975, 0.08537331223487854, -0.19601242244243622, 0.03537243604660034, 0.16700202226638794, 0.052683115005493164, -0.16249854862689972, 0.09314164519309998, 0.06481768190860748, 0.009991767816245556, -0.38067328929901123, -0.08414535969495773, 0.021393999457359314, 0.2346542477607727, 0.25592750310897827, 0.13861587643623352, 0.1663261353969574, 0.5535817742347717, -0.08843443542718887, -0.20223355293273926, 0.16932585835456848, -0.13459300994873047, 0.4113425016403198, 0.3900163769721985, -0.021561704576015472, 0.17090122401714325, -0.4755474328994751, -0.2536103427410126, 0.00767090916633606, 0.10507526993751526, 0.2578588128089905, 0.09360653162002563, 0.16163848340511322, 0.007990341633558273, -0.08635362982749939, -0.05753275379538536, 0.12214700132608414, 0.6473215818405151, 0.0037714503705501556, -0.13147279620170593, -0.04346577078104019, -0.31598740816116333, 0.24579815566539764, 0.024757560342550278, -0.3558965027332306, 0.03298734128475189, -0.02926061861217022, 0.0657522901892662, -0.06839664280414581, -0.21403563022613525, -0.30259978771209717, 0.6512045860290527, -0.07249242067337036, -0.37868377566337585, -0.12113635987043381, 0.2815714180469513, -0.2921559810638428, -0.22173966467380524, 0.3673098087310791, 0.11161550879478455, 0.08605635166168213, 0.5192091464996338, -0.30030450224876404, -0.29520130157470703, 0.35833364725112915, 0.01330060139298439, -0.07792282104492188, -0.10473522543907166, 0.3780348300933838, 0.31311866641044617, 0.4897955656051636, -0.8266090154647827, -0.05054240673780441, 0.14626236259937286, 0.059830326586961746, -0.10693897306919098, -0.06955373287200928, 0.11984585225582123, -0.05179842561483383, -0.09209758043289185, -0.009607259184122086, 0.11928679049015045, 0.3867177367210388, -0.055939942598342896, -0.20905956625938416 ]
https://github.com/huggingface/datasets/issues/1857
Hi ! We're in the process of switching the community datasets to git repos, exactly like what we're doing for models. You can find an example here: https://huggingface.co/datasets/lhoestq/custom_squad/tree/main We'll update the CLI in the coming days and do a new release :) Also cc @julien-c maybe we can make improve the error message ?
Unable to upload "community provided" dataset - 400 Client Error
Hi, i'm trying to a upload a dataset as described [here](https://huggingface.co/docs/datasets/v1.2.0/share_dataset.html#sharing-a-community-provided-dataset). This is what happens: ``` $ datasets-cli login $ datasets-cli upload_dataset my_dataset About to upload file /path/to/my_dataset/dataset_infos.json to S3 under filename my_dataset/dataset_infos.json and namespace username About to upload file /path/to/my_dataset/my_dataset.py to S3 under filename my_dataset/my_dataset.py and namespace username Proceed? [Y/n] Y Uploading... This might take a while if files are large 400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/presign huggingface.co migrated to a new model hosting system. You need to upgrade to transformers v3.5+ to upload new models. More info at https://discuss.hugginface.co or https://twitter.com/julien_c. Thank you! ``` I'm using the latest releases of datasets and transformers.
54
Unable to upload "community provided" dataset - 400 Client Error Hi, i'm trying to a upload a dataset as described [here](https://huggingface.co/docs/datasets/v1.2.0/share_dataset.html#sharing-a-community-provided-dataset). This is what happens: ``` $ datasets-cli login $ datasets-cli upload_dataset my_dataset About to upload file /path/to/my_dataset/dataset_infos.json to S3 under filename my_dataset/dataset_infos.json and namespace username About to upload file /path/to/my_dataset/my_dataset.py to S3 under filename my_dataset/my_dataset.py and namespace username Proceed? [Y/n] Y Uploading... This might take a while if files are large 400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/presign huggingface.co migrated to a new model hosting system. You need to upgrade to transformers v3.5+ to upload new models. More info at https://discuss.hugginface.co or https://twitter.com/julien_c. Thank you! ``` I'm using the latest releases of datasets and transformers. Hi ! We're in the process of switching the community datasets to git repos, exactly like what we're doing for models. You can find an example here: https://huggingface.co/datasets/lhoestq/custom_squad/tree/main We'll update the CLI in the coming days and do a new release :) Also cc @julien-c maybe we can make improve the error message ?
[ -0.09157092869281769, -0.03636619448661804, 0.03441682457923889, 0.06724180281162262, 0.3649703860282898, -0.04928518086671829, 0.1734047532081604, 0.0044843535870313644, -0.2230454981327057, -0.14681154489517212, -0.14883771538734436, -0.020599722862243652, 0.005085591226816177, 0.35816434025764465, -0.05711071938276291, -0.1069302186369896, -0.026947874575853348, 0.002508144825696945, -0.44624119997024536, 0.005309626460075378, -0.1092073991894722, 0.13085727393627167, 0.18414689600467682, 0.006586484611034393, -0.3465135097503662, -0.07589635252952576, -0.006912611424922943, 0.22341454029083252, -0.271089643239975, -0.13769617676734924, 0.44738149642944336, 0.1389371007680893, 0.23724830150604248, 0.5959688425064087, -0.00011695556167978793, 0.028455384075641632, 0.3542060852050781, 0.02381044626235962, -0.625637948513031, -0.3368653953075409, -0.07264035195112228, -0.19406864047050476, 0.008189413696527481, 0.13645774126052856, -0.1094311997294426, 0.07961010932922363, 0.1506980061531067, -0.048402126878499985, 0.598503053188324, 0.09648218005895615, 0.11310243606567383, 0.2700642943382263, -0.01499408483505249, -0.22423827648162842, -0.22020485997200012, 0.3592698276042938, -0.10433508455753326, 0.2172360122203827, 0.23701252043247223, 0.02221313863992691, 0.1814652681350708, 0.03354297950863838, 0.11541270464658737, -0.11688731610774994, 0.36845892667770386, -0.16543075442314148, -0.41993770003318787, -0.2600352168083191, 0.11621520668268204, 0.3317759931087494, 0.5857559442520142, 0.07707749307155609, -0.56863933801651, -0.2074170559644699, -0.02603430300951004, -0.07012805342674255, 0.18151696026325226, 0.08152065426111221, -0.058462440967559814, 0.11972827464342117, -0.43745124340057373, -0.17084354162216187, -0.3639187812805176, -0.06123768910765648, 0.185760959982872, 0.21772097051143646, -0.1954704076051712, 0.23569250106811523, -0.11763884127140045, -0.534365713596344, -0.12273064255714417, -0.039915915578603745, 0.15156850218772888, 0.20143339037895203, -0.32474249601364136, -0.1058337464928627, 0.09128186851739883, 0.24997484683990479, 0.3493947982788086, 0.47784799337387085, -0.12000592052936554, -0.32940229773521423, -0.18930228054523468, -0.06604957580566406, 0.20544233918190002, -0.12041795253753662, -0.04173993319272995, 0.04526805132627487, 0.08421154320240021, 0.48365384340286255, 0.3961296081542969, -0.021966692060232162, -0.2512882649898529, -0.04053400084376335, -0.2929280996322632, -0.1570432484149933, 0.4355103373527527, -0.012926280498504639, -0.0357220321893692, 0.057033296674489975, 0.28940507769584656, 0.09184901416301727, 0.03663592040538788, 0.2619791030883789, 0.01787015050649643, -0.010714302770793438, -0.08245635032653809, 0.03428463637828827, 0.06592297554016113, -0.3639635145664215, -0.039450522512197495, -0.18961378931999207, 0.04281330108642578, 0.02247735485434532, 0.15142075717449188, -0.21340230107307434, 0.09367941319942474, -0.02954486384987831, 0.45804905891418457, 0.12532852590084076, -0.1442786455154419, 0.18455307185649872, -0.11100560426712036, 0.3841729462146759, 0.18879345059394836, 0.4600850045681, 0.08688361942768097, -0.19321762025356293, -0.05943983048200607, -0.15398196876049042, -0.20707611739635468, -0.40293991565704346, -0.4708251953125, 0.027756378054618835, 0.20765134692192078, -0.1514531373977661, -0.3534538745880127, -0.15195807814598083, 0.06657250225543976, -0.03730097785592079, -0.06788191199302673, 0.1048249751329422, -0.009003184735774994, -0.040844690054655075, 0.24290600419044495, 0.6290037631988525, -0.15430118143558502, -0.13681429624557495, -0.007055293768644333, 0.2116970419883728, -0.11286452412605286, 0.4283788800239563, -0.12027058005332947, -0.313693642616272, -0.13168296217918396, -0.03070315718650818, 0.15148848295211792, -0.48312270641326904, -0.5233073830604553, 0.34778016805648804, -0.17782814800739288, -0.15308669209480286, 0.08530882000923157, 0.10883418470621109, -0.19086916744709015, -0.04018551483750343, -0.06105431914329529, 0.3464684784412384, 0.07554010301828384, 0.10051818192005157, -0.13245730102062225, -0.33333539962768555, 0.030001163482666016, 0.08616454899311066, -0.2761983573436737, -0.055034227669239044, 0.04397369176149368, 0.005161765962839127, 0.12785670161247253, -0.14167575538158417, 0.265813410282135, 0.3532610535621643, 0.6264163851737976, -0.05521347001194954, 0.13923339545726776, 0.19169069826602936, -0.46552160382270813, 0.1552380472421646, -0.03017604723572731, 0.17501334846019745, -0.3612290918827057, -0.09078719466924667, -0.4938574731349945, 0.15244761109352112, -0.23303376138210297, 0.1688341498374939, 0.003136351704597473, -0.14079070091247559, 0.09966296702623367, -0.20740115642547607, -0.04296403005719185, 0.47615212202072144, -0.1568288803100586, 0.31112951040267944, -0.4384240508079529, 0.26648321747779846, -0.30468645691871643, -0.03980598226189613, 0.39853382110595703, -0.163072869181633, 0.3846703767776489, 0.029798589646816254, -0.1488201916217804, 0.3252856135368347, -0.4254600405693054, 0.20143017172813416, 0.18747618794441223, 0.37893739342689514, 0.3259228765964508, -0.1913764476776123, -0.18452122807502747, 0.023406241089105606, -0.05513055622577667, 0.34891292452812195, -0.3237706124782562, 0.006854303181171417, -0.17066141963005066, 0.2133799046278, 0.004942715167999268, 0.3508687913417816, 0.3105171322822571, 0.1342521607875824, -0.1620025336742401, 0.18880708515644073, 0.12512165307998657, -0.028108268976211548, 0.49547672271728516, -0.19883392751216888, 0.13582293689250946, -0.004329860210418701, 0.0218353234231472, 0.022726625204086304, -0.03624916821718216, 0.11601431667804718, -0.10076449811458588, -0.042742419987916946, 0.2822442054748535, 0.30771470069885254, 0.07535173743963242, -0.05903703719377518, -0.2393876165151596, -0.09006000310182571, 0.1027621179819107, -0.09799924492835999, -0.019000984728336334, -0.10576202720403671, 0.19554449617862701, -0.037755172699689865, 0.2462148517370224, 0.24347281455993652, -0.22175897657871246, -0.15779155492782593, -0.015015825629234314, 0.14375652372837067, -0.3067656457424164, 0.06474291533231735, -0.043258730322122574, -0.25713956356048584, 0.1904013454914093, 0.0039526112377643585, -0.5359176397323608, -0.11261729151010513, -0.202963188290596, 0.05316751450300217, 0.015166431665420532, 0.12056013196706772, 0.23272529244422913, 0.3003384470939636, 0.3323480188846588, -0.08656821399927139, -0.302779883146286, 0.25909748673439026, 0.04023974761366844, 0.05010297894477844, 0.1002199575304985, -0.4291406571865082, 0.11664097756147385, -0.04333820194005966, 0.35208845138549805, -0.33598586916923523, -0.33381545543670654, 0.13104474544525146, -0.12671513855457306, 0.4911321997642517, 0.16957315802574158, 0.45979276299476624, -0.11947863548994064, -0.11570952832698822, 0.24149911105632782, -0.11967860162258148, -0.053294386714696884, 0.005624152719974518, -0.16869699954986572, -0.10254742205142975, -0.00040443986654281616, 0.1713876575231552, -0.08932188153266907, -0.29288744926452637, 0.3449079394340515, 0.15137992799282074, -0.011091833934187889, 0.3846883475780487, 0.19926320016384125, 0.07673579454421997, -0.09668485075235367, 0.15814220905303955, -0.014240557327866554, -0.5848599672317505, 0.3816191554069519, -0.2026968151330948, -0.34294477105140686, -0.024603068828582764, 0.14813971519470215, 0.28097888827323914, -0.23761844635009766, -0.12412170320749283, -0.407419890165329, -0.13661909103393555, 0.28940221667289734, 0.06768228113651276, 0.007713798433542252, 0.37397003173828125, -0.00906316190958023, 0.06580641865730286, -0.02942846715450287, -0.4492642283439636, -0.13443917036056519, 0.33061301708221436, 0.3022273778915405, -0.05836176127195358, 0.18234345316886902, 0.05156490206718445, 0.8003925681114197, 0.5207502841949463, -0.15548613667488098, 0.49996858835220337, -0.004358109086751938, 0.35457244515419006, 0.08321531116962433, -0.1530947983264923, -0.017085444182157516, 0.23523135483264923, 0.03992990404367447, 0.031725168228149414, 0.2795097827911377, 0.24637696146965027, -0.15416643023490906, -0.1677061766386032, -0.12311773002147675, -0.049875471740961075, -0.3460415005683899, 0.05867016315460205, 0.19631090760231018, 0.11617005616426468, -0.23940789699554443, -0.19196000695228577, -0.29475441575050354, 0.0026087686419487, 0.3673124313354492, 0.32084470987319946, 0.13942065834999084, -0.34352871775627136, 0.013796288520097733, -0.47682881355285645, 0.229516863822937, -0.02174321748316288, 0.06566014885902405, -0.23159676790237427, 0.19088894128799438, -0.012232787907123566, -0.016501031816005707, 0.45410600304603577, -0.48892301321029663, -0.05828037112951279, -0.4311428964138031, 0.22105249762535095, -0.31480520963668823, 0.1968715935945511, 0.2207861840724945, -0.010275118052959442, 0.12391327321529388, 0.49034494161605835, -0.3415440320968628, -0.02204466611146927, -0.08651793748140335, -0.1912459433078766, -0.1529008150100708, -0.1592624932527542, -0.2356318235397339, -0.4699711203575134, -0.4909079372882843, -0.21928176283836365, 0.21494928002357483, 0.1797941029071808, 0.05125007778406143, 0.12619206309318542, 0.32111212611198425, 0.15708738565444946, 0.16906456649303436, -0.08185280114412308, 0.19939853250980377, 0.39029186964035034, 0.06572326272726059, 0.07897314429283142, 0.21329264342784882, 0.3458925187587738, 0.7234185934066772, 0.024837825447320938, -0.488808274269104, 0.09110873937606812, 0.20460423827171326, 0.23606249690055847, 0.22993633151054382, 0.1936473697423935, 0.04031943529844284, 0.45698994398117065, 0.24940890073776245, -0.23062996566295624, 0.13564684987068176, 0.3005806803703308, -0.20504455268383026, -0.39139753580093384, -0.06774110347032547, 0.41686803102493286, -0.10353177040815353, 0.12186264991760254, -0.042635172605514526, 0.48953965306282043, 0.07889822125434875, 0.06549113988876343, 0.12653562426567078, 1.0357897281646729, -0.2924601137638092, 0.2455257922410965, -0.11983373016119003, -0.5208818912506104, 0.7754583358764648, -0.020113714039325714, -0.14923210442066193, -0.40484437346458435, -0.15085449814796448, -0.06168185546994209, -0.02080947905778885, 0.03652883693575859, 0.027663348242640495, -0.1775853931903839, 0.08938392996788025, -0.31463828682899475, 0.14034339785575867, -0.05925322324037552, 0.5753952264785767, -0.35771092772483826, -0.2095097005367279, -0.21620960533618927, 0.12858130037784576, -0.1896331012248993, 0.199802428483963, -0.08247479051351547, -0.2414723038673401, -0.21214818954467773, -0.316079705953598, -0.23134279251098633, 0.12915751338005066, 0.008255388587713242, -0.09348703920841217, 0.47836029529571533, -0.21573162078857422, 0.39040207862854004, 0.2486741542816162, 0.23686525225639343, 0.09641992300748825, -0.4975147843360901, 0.258503794670105, -0.3437274098396301, -0.17529818415641785, -0.1725776493549347, 0.03120044618844986, 0.1753031313419342, -0.09541304409503937, -0.026151984930038452, -0.12012261152267456, 0.03130391240119934, -0.061501774936914444, -0.2928435802459717, -0.17492809891700745, -0.11241121590137482, -0.5553349852561951, 0.15501618385314941, -0.22245486080646515, 0.08373071253299713, -0.06463168561458588, 0.02157222479581833, 0.08180351555347443, 0.043964140117168427, -0.3981608748435974, 0.5290650129318237, 0.046909868717193604, -0.007492752745747566, 0.3999335467815399, -0.22073814272880554, -0.10643907636404037, 0.5063542723655701, 0.08680601418018341, -0.04096202179789543, 0.05509890615940094, 0.000019960105419158936, 0.1553800404071808, -0.7436200976371765, -0.010905712842941284, 0.26519328355789185, 0.07528986036777496, -0.15202507376670837, 0.17811018228530884, 0.20449955761432648, -0.06928940117359161, 0.2705126702785492, 0.03627663850784302, -0.2207256555557251, -0.06550418585538864, -0.37359869480133057, -0.01670791208744049, 0.16238200664520264, -0.08736126124858856, 0.43687936663627625, 0.018280034884810448, -0.21709242463111877, -0.10814288258552551, -0.3802972733974457, 0.024126138538122177, 0.41030335426330566, -0.27865490317344666, 0.0579216293990612, -0.07996900379657745, -0.016435721889138222, 0.013663806021213531, -0.3531111478805542, -0.08142569661140442, -0.28954029083251953, 0.203921839594841, 0.3594950735569, -0.36096063256263733, -0.12644505500793457, -0.17187459766864777, -0.1880280077457428, -0.0993749275803566, -0.19746127724647522, -0.05556497350335121, 0.09013478457927704, -0.22001630067825317, 0.1662517786026001, 0.09278246760368347, -0.32152846455574036, 0.16655966639518738, 0.2040170431137085, 0.19288477301597595, 0.13091683387756348, 0.13433745503425598, 0.08159571886062622, -0.059279829263687134, -0.10653828084468842, 0.2511462867259979, 0.46748024225234985, -0.01981351152062416, 0.3256028890609741, -0.3629274368286133, -0.07362291216850281, -0.025728605687618256, 0.45369210839271545, -0.09729106724262238, -0.3470792770385742, 0.04125817120075226, 0.07922251522541046, 0.10496443510055542, -0.06595124304294586, -0.06501388549804688, 0.06849188357591629, 0.11946378648281097, -0.07927282154560089, 0.08455121517181396, 0.25874438881874084, 0.005886733531951904, 0.2516888976097107, 0.10264852643013, 0.5311475396156311, -0.018053211271762848, 0.05807190015912056, 0.009347488172352314, -0.16824787855148315, -0.05204882472753525, 0.4732302129268646, 0.05072236433625221, -0.06549583375453949, -0.13053995370864868, -0.2922399342060089, 0.03395640850067139, -0.31593719124794006, -0.027048084884881973, 0.1887204349040985, -0.283796489238739, 0.2764684557914734, -0.16947826743125916, 0.16380077600479126, 0.15819287300109863, 0.02790992148220539, 0.5838850140571594, -0.20073658227920532, 0.025936197489500046, -0.39015284180641174, 0.19716589152812958, -0.08101654797792435, -0.23652084171772003, -0.1915605366230011, -0.11827202141284943, -0.20091302692890167, 0.043361812829971313, -0.08162754029035568, -0.3174014389514923, 0.12028078734874725, -0.024802591651678085, 0.08078287541866302, -0.414554625749588, -0.06695850193500519, 0.45274144411087036, 0.09312142431735992, -0.11245594173669815, 0.352593332529068, 0.3666304647922516, -0.11800283938646317, 0.09788527339696884, 0.2067519575357437, 0.6063757538795471, 0.003942854702472687, 0.27226096391677856, 0.3868844211101532, 0.2554735839366913, 0.11954130232334137, 0.1990559846162796, 0.06816337257623672, 0.059804532676935196, 0.2382235825061798, 0.09974685311317444, 0.03715663403272629, -0.1150524765253067, -0.1154235452413559, -0.4080914556980133, 0.3273947834968567, -0.3633919358253479, 0.12001293897628784, -0.4371239244937897, -0.17576168477535248, -0.21898537874221802, 0.17650946974754333, -0.24454474449157715, 0.31108948588371277, 0.5170584917068481, -0.05184733122587204, 0.002779431641101837, -0.5339075922966003, 0.024785593152046204, -0.07180724292993546, 0.49743494391441345, 0.6792611479759216, 0.023111287504434586, -0.013558229431509972, -0.2177397608757019, -0.32190823554992676, 0.13794800639152527, 0.05768312141299248, 0.26028209924697876, -0.09748547524213791, -0.008855875581502914, -0.007396671921014786, -0.12540772557258606, 0.12864460051059723, -0.24376113712787628, -0.24404177069664001, -0.02671584114432335, -0.050153810530900955, -0.08994673192501068, -0.0394926555454731, 0.024393951520323753, 0.04502870887517929, 0.06111755967140198, 0.2203260362148285, 0.2351645529270172, -0.02894553542137146, -0.23449333012104034, -0.16559980809688568, -0.10574426501989365, -0.25763240456581116, 0.16712968051433563, 0.3643931746482849, 0.2754126787185669, -0.04352860152721405, -0.3752659559249878, -0.2265496701002121, -0.1034766435623169, -0.23640674352645874, 0.019788330420851707, -0.0029048435389995575, 0.3410150110721588, 0.05480688810348511, -0.10260850191116333, -0.33898845314979553, -0.12867146730422974, -0.08884617686271667, -0.1113579273223877, -0.172430157661438, -0.15312156081199646, -0.24357274174690247, 0.04133814200758934, 0.10826998949050903, -0.137885183095932, 0.16945692896842957, 0.025701068341732025, -0.2529641389846802, -0.3108348846435547, 0.5455136299133301, -0.35689693689346313, -0.18542498350143433, 0.04702380299568176, 0.18351441621780396, -0.13155993819236755, -0.1658133715391159, -0.32015934586524963, 0.1859067678451538, 0.25290918350219727, -0.034847285598516464, -0.07903746515512466, 0.22785592079162598, -0.11213430017232895, -0.002969987690448761, -0.05131820961833, 0.393372505903244, 0.14057093858718872, -0.22136899828910828, 0.2974921464920044, 0.001021064817905426 ]
https://github.com/huggingface/datasets/issues/1856
Hi ! This issue may be related to #996 This comes probably from the Quota Exceeded error from Google Drive. Can you try again tomorrow and see if you still have the error ? On my side I didn't get any error today with `load_dataset("amazon_polarity")`
load_dataset("amazon_polarity") NonMatchingChecksumError
Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ```
45
load_dataset("amazon_polarity") NonMatchingChecksumError Hi, it seems that loading the amazon_polarity dataset gives a NonMatchingChecksumError. To reproduce: ``` load_dataset("amazon_polarity") ``` This will give the following error: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-3-8559a03fe0f8> in <module>() ----> 1 dataset = load_dataset("amazon_polarity") 3 frames /usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 37 if len(bad_urls) > 0: 38 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 40 logger.info("All the checksums matched successfully" + for_verification_name) 41 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM&export=download'] ``` Hi ! This issue may be related to #996 This comes probably from the Quota Exceeded error from Google Drive. Can you try again tomorrow and see if you still have the error ? On my side I didn't get any error today with `load_dataset("amazon_polarity")`
[ -0.14463502168655396, 0.11810770630836487, -0.12130692601203918, 0.24109309911727905, 0.12806236743927002, -0.003592096269130707, 0.34435251355171204, 0.0652998760342598, 0.2865489423274994, 0.23939195275306702, 0.02812202274799347, -0.06478912383317947, 0.009715661406517029, 0.15067994594573975, -0.13854166865348816, 0.20597931742668152, 0.010703161358833313, -0.044543251395225525, -0.1888066828250885, 0.17735126614570618, -0.36837059259414673, 0.3735695481300354, -0.09020961821079254, -0.2902171015739441, -0.05680181831121445, 0.048214711248874664, 0.24922150373458862, 0.12276862561702728, -0.09995058923959732, -0.31419268250465393, 0.28921282291412354, 0.06416433304548264, 0.13676562905311584, 0.32160863280296326, -0.00012273208994884044, -0.076045460999012, 0.4037209153175354, 0.02153044193983078, -0.34896233677864075, -0.30501335859298706, -0.342113196849823, -0.22062799334526062, 0.07893716543912888, -0.14135785400867462, 0.19846221804618835, 0.2262697070837021, -0.013439235277473927, -0.020378492772579193, 0.23101216554641724, 0.14650040864944458, 0.1646191030740738, 0.34728920459747314, 0.4247147738933563, 0.2376423180103302, 0.33629846572875977, 0.03468369320034981, 0.029404081404209137, 0.4239829182624817, 0.1685522198677063, -0.11802184581756592, -0.1515832096338272, 0.13640719652175903, -0.0350833497941494, 0.46998539566993713, 0.07310492545366287, -0.07098163664340973, 0.12992003560066223, -0.300936758518219, 0.2216951847076416, 0.24023255705833435, 0.5259543657302856, -0.15804684162139893, -0.3384302854537964, 0.015718981623649597, -0.20127469301223755, -0.35222089290618896, 0.3682411015033722, 0.3873554766178131, -0.08134198188781738, -0.24794724583625793, -0.493421345949173, 0.12733791768550873, -0.15640176832675934, 0.23252752423286438, -0.14096757769584656, 0.18169189989566803, -0.014190364629030228, 0.14309367537498474, 0.27458322048187256, -0.2563825845718384, 0.4774477183818817, -0.15284641087055206, -0.06807415187358856, 0.16820913553237915, -0.5600781440734863, -0.10128889232873917, -0.02742449939250946, 0.42983707785606384, 0.2686580717563629, 0.5032891631126404, 0.12693479657173157, 0.22492247819900513, 0.031123686581850052, 0.2137778401374817, 0.358406662940979, 0.2740330696105957, -0.22499535977840424, 0.32981815934181213, 0.1838579624891281, 0.32551664113998413, 0.03759995102882385, 0.034365709871053696, -0.12911631166934967, -0.354442834854126, 0.6708118319511414, 0.02565889060497284, 0.3402945399284363, -0.4990721344947815, -0.4904989004135132, 0.3258248269557953, -0.2727222740650177, -0.16308149695396423, -0.05610862001776695, 0.1552022248506546, -0.11334307491779327, 0.036504633724689484, 0.08534104377031326, -0.013622709549963474, -0.13361480832099915, 0.19100016355514526, -0.10917907953262329, 0.15570256114006042, -0.10401667654514313, 0.2002129852771759, 0.30212801694869995, -0.11430758237838745, 0.3013884127140045, -0.10796082764863968, 0.37443163990974426, -0.25202420353889465, 0.5605084896087646, -0.275538831949234, -0.1011085957288742, 0.5101607441902161, -0.026627913117408752, -0.04052348807454109, -0.002919533522799611, 0.2849736213684082, -0.14752817153930664, 0.299765020608902, -0.22697457671165466, -0.2836966812610626, 0.012599470093846321, 0.10882431268692017, -0.512269914150238, -0.18450427055358887, -0.2347882091999054, -0.3862112760543823, 0.2250036895275116, -0.3119519352912903, -0.07752646505832672, -0.3307490050792694, 0.030206114053726196, -0.17815473675727844, 0.12854692339897156, 0.4043673872947693, -0.34092018008232117, 0.019829407334327698, -0.31986498832702637, -0.09092351794242859, 0.30408188700675964, 0.35987189412117004, -0.12281027436256409, 0.03903604671359062, -0.2570706307888031, -0.3024713397026062, -0.1342589557170868, -0.15970547497272491, -0.44440481066703796, 0.04751284047961235, -0.15070338547229767, 0.2654610872268677, -0.00011353567242622375, -0.0001718960702419281, 0.0030775703489780426, 0.04565250128507614, 0.2740551829338074, 0.16310980916023254, -0.0405796617269516, 0.15992335975170135, -0.1626855731010437, -0.3306626081466675, 0.22964005172252655, 0.23032207787036896, 0.2603033781051636, -0.0007049739360809326, 0.2450987994670868, -0.1309295892715454, 0.05562152341008186, -0.028438802808523178, -0.019589686766266823, 0.36215776205062866, 0.34028786420822144, -0.09401249885559082, -0.020522769540548325, -0.08890653401613235, -0.5740938186645508, 0.15982356667518616, -0.3095717430114746, 0.10143458843231201, -0.13888999819755554, 0.1446615308523178, -0.15643006563186646, -0.22062066197395325, -0.09648822993040085, 0.04836234450340271, 0.03022637963294983, 0.2930379807949066, 0.19991302490234375, -0.17716845870018005, 0.06379515677690506, -0.06433755159378052, -0.26499417424201965, 0.04698016494512558, -0.3821526765823364, 0.442137748003006, -0.06441320478916168, -0.030085697770118713, 0.1348583996295929, -0.012162048369646072, 0.19629909098148346, -0.1785702407360077, -0.03946699574589729, 0.25567710399627686, 0.09936709702014923, 0.3484782576560974, -0.01791118085384369, 0.6057208776473999, 0.05461280792951584, -0.04963517189025879, -0.05309407413005829, 0.44824016094207764, 0.06155441701412201, -0.12537391483783722, -0.235784649848938, 0.5414236783981323, -0.19083166122436523, 0.29260194301605225, -0.07971882075071335, 0.041180744767189026, 0.23285594582557678, -0.08343994617462158, -0.13047535717487335, -0.1458672136068344, 0.36994755268096924, 0.1853742003440857, -0.13062047958374023, -0.010330412536859512, -0.02840524911880493, -0.07968153059482574, 0.28593742847442627, -0.16397401690483093, 0.021078329533338547, 0.08372378349304199, -0.02332964539527893, -0.1471816897392273, 0.1689700335264206, 0.7234523296356201, 0.4756743609905243, 0.12426088750362396, -0.19347046315670013, -0.20282825827598572, -0.02219054475426674, -0.044249679893255234, 0.10611699521541595, 0.1723460704088211, 0.028085999190807343, 0.4393385946750641, 0.21447353065013885, -0.19845207035541534, -0.3193226456642151, -0.2452726811170578, 0.23423728346824646, 0.32315531373023987, -0.41983500123023987, -0.05843879655003548, 0.003944709897041321, 0.18747709691524506, -0.23929822444915771, 0.028734490275382996, -0.20950809121131897, -0.3734356164932251, -0.2640255391597748, 0.5433931350708008, -0.07946043461561203, 0.08039950579404831, -0.2748626470565796, 0.1581507921218872, 0.17034530639648438, -0.44262540340423584, 0.003161698579788208, -0.08186328411102295, -0.0020264978520572186, -0.005445495247840881, 0.3528391718864441, -0.14432492852210999, 0.3782067894935608, -0.1511015146970749, 0.0522557869553566, -0.5995879173278809, -0.31020593643188477, 0.024014025926589966, -0.05601906031370163, 0.21179020404815674, 0.11665895581245422, 0.23976992070674896, -0.05499083176255226, -0.08565588295459747, -0.014656070619821548, 0.12343253940343857, -0.1965637505054474, 0.1444494128227234, -0.17039170861244202, 0.08283218741416931, 0.07606685906648636, -0.14042286574840546, -0.05956673622131348, -0.3863201439380646, 0.10855397582054138, 0.41397252678871155, 0.20045362412929535, -0.05296376347541809, 0.00420306995511055, 0.06655925512313843, 0.060675762593746185, 0.14334021508693695, -0.28557950258255005, -0.5523834228515625, 0.44139936566352844, -0.08994771540164948, -0.22691860795021057, 0.05724114179611206, 0.009802065789699554, 0.23715943098068237, 0.4438067376613617, -0.4624607563018799, -0.22905462980270386, -0.38413047790527344, -0.1036190539598465, -0.07842656970024109, 0.1116173192858696, 0.2703567147254944, 0.12714676558971405, -0.06007320433855057, 0.08354420959949493, -0.48896485567092896, -0.010848399251699448, 0.22612285614013672, 0.3510301113128662, -0.05460973083972931, 0.2301255762577057, -0.3080965280532837, 0.5490029454231262, -0.09873884171247482, 0.00031906389631330967, 0.18912357091903687, 0.2644508183002472, 0.31373029947280884, 0.0006333701312541962, -0.11881883442401886, -0.011117171496152878, -0.15782053768634796, 0.057349637150764465, 0.08661562949419022, -0.03295338526368141, -0.20335949957370758, -0.06223185360431671, -0.08754895627498627, -0.3918568789958954, -0.19456294178962708, 0.07481543719768524, -0.13921548426151276, 0.488186240196228, 0.1346014440059662, -0.021491363644599915, -0.26881563663482666, -0.5046188831329346, -0.18893736600875854, -0.06477773189544678, 0.06309963017702103, -0.10098143666982651, -0.23343956470489502, -0.0225732009857893, -0.14216841757297516, 0.364337682723999, -0.0353819839656353, 0.4224088490009308, 0.01937677711248398, -0.004375651478767395, 0.04613013193011284, -0.24669316411018372, 0.13735046982765198, -0.1803703010082245, 0.16085246205329895, 0.021520785987377167, -0.21749109029769897, -0.15006554126739502, -0.18099212646484375, -0.3337967097759247, 0.28907230496406555, -0.06466582417488098, 0.35971707105636597, -0.41395050287246704, 0.1336411088705063, 0.13600674271583557, 0.46263837814331055, -0.2675514817237854, -0.24524688720703125, -0.35851573944091797, -0.28457435965538025, -0.5091449618339539, 0.06980358809232712, -0.046653762459754944, 0.2883152961730957, -0.18665528297424316, 0.09933480620384216, 0.11120013147592545, -0.1078605130314827, 0.1417367309331894, -0.17965754866600037, 0.4755510687828064, -0.01551731675863266, 0.1578669250011444, 0.20256222784519196, -0.363986998796463, 0.42727187275886536, 0.6419878602027893, -0.0033070016652345657, -0.0783783569931984, 0.2667137086391449, -0.09113544970750809, -0.3595597445964813, 0.24073943495750427, 0.11437240242958069, -0.030224189162254333, 0.42339199781417847, 0.17258477210998535, -0.055439844727516174, -0.26085448265075684, 0.14375001192092896, 0.1891072690486908, -0.2571278214454651, -0.3033944368362427, 0.04156961664557457, -0.11166755110025406, -0.051626384258270264, 0.49517250061035156, 0.22017329931259155, -0.1880420595407486, 0.15460658073425293, 0.43473032116889954, 1.0237914323806763, -0.04920896515250206, 0.2442312240600586, -0.05169597268104553, -0.172812357544899, 0.3330743908882141, -0.181473046541214, 0.23143675923347473, -0.49361953139305115, -0.02830073982477188, -0.002531878650188446, -0.36720865964889526, 0.020241713151335716, -0.00028521381318569183, 0.040252238512039185, 0.3705025017261505, -0.015205368399620056, 0.04811201989650726, 0.10733718425035477, 0.1459222137928009, -0.37275373935699463, 0.020944587886333466, 0.19462701678276062, 0.10112403333187103, -0.2460942268371582, 0.2926782965660095, -0.26356154680252075, 0.12943114340305328, 0.22801753878593445, -0.2702028751373291, -0.4946393072605133, -0.02378653734922409, -0.16002845764160156, 0.41138505935668945, 0.22365693747997284, -0.09135553240776062, -0.11759615689516068, -0.022400422021746635, 0.11986520886421204, 0.13877883553504944, -0.2773255705833435, 0.07002390921115875, 0.2710628807544708, -0.10218186676502228, -0.0784410834312439, -0.05448775365948677, 0.22451511025428772, -0.09638907015323639, -0.2602997124195099, -0.0037650596350431442, 0.031411536037921906, -0.5006492137908936, -0.35358738899230957, 0.2000945657491684, -0.2833961248397827, -0.3202570676803589, -0.20090077817440033, -0.2559007406234741, -0.38048315048217773, -0.19311237335205078, 0.10670755058526993, 0.23967459797859192, -0.16196590662002563, 0.3134118616580963, 0.17297032475471497, -0.2827112078666687, -0.25365400314331055, 0.5303877592086792, 0.05743049830198288, -0.1936880648136139, 0.5586514472961426, 0.057010747492313385, -0.15261323750019073, -0.21152451634407043, 0.06997402012348175, 0.08155854046344757, -0.4405600428581238, 0.22684624791145325, -0.23020108044147491, 0.19973307847976685, -0.10390646755695343, 0.38169294595718384, 0.3563074469566345, 0.3587631583213806, 0.14719364047050476, -0.6384471654891968, -0.14012768864631653, 0.0637325644493103, 0.05981362983584404, 0.31956183910369873, -0.2418232262134552, -0.3160448670387268, 0.02118634432554245, -0.20312559604644775, -0.2665424346923828, 0.18649747967720032, -0.4010075330734253, 0.010670477524399757, 0.21223273873329163, -0.24689511954784393, 0.2790997624397278, 0.08298980444669724, 0.09805139154195786, 0.13352909684181213, -0.1468685418367386, -0.14155110716819763, -0.17750947177410126, 0.1733580231666565, 0.06938657909631729, -0.19764238595962524, 0.07504130899906158, -0.09823882579803467, 0.03300297632813454, 0.012641072273254395, 0.00786321610212326, 0.13904403150081635, -0.11865603923797607, -0.08194582164287567, 0.10119977593421936, -0.16003111004829407, -0.08051333576440811, -0.08792492747306824, -0.2624419033527374, -0.009514454752206802, 0.231900155544281, 0.2567795217037201, 0.32990604639053345, 0.00531277060508728, -0.09462952613830566, 0.016689475625753403, 0.11748378723859787, -0.0694536566734314, 0.15959309041500092, -0.25710150599479675, -0.22003662586212158, 0.004760872572660446, 0.39694809913635254, 0.4484579265117645, -0.34144723415374756, -0.062353190034627914, 0.2812820076942444, 0.19993917644023895, -0.17037564516067505, -0.07771042734384537, 0.024561207741498947, -0.1246180385351181, 0.03779667615890503, 0.10706017911434174, -0.039677247405052185, -0.29995644092559814, 0.3996056020259857, 0.21857064962387085, 0.23584453761577606, -0.6298629641532898, 0.096588633954525, 0.005411463789641857, -0.19268788397312164, -0.12331750243902206, 0.3981253206729889, -0.04846896603703499, 0.014838837087154388, -0.13105528056621552, -0.049378592520952225, 0.17466764152050018, -0.25384360551834106, 0.16214072704315186, -0.23032452166080475, -0.5396326780319214, 0.4370327591896057, 0.21608076989650726, 0.03314881771802902, 0.1858435571193695, 0.14108602702617645, 0.38417354226112366, -0.06153115630149841, 0.312791109085083, -0.5757319331169128, -0.02194845676422119, -0.19356967508792877, -0.01897541433572769, -0.08076890558004379, -0.3122323155403137, 0.06243576109409332, 0.41207608580589294, 0.09947412461042404, -0.12742137908935547, 0.327340304851532, 0.19880753755569458, -0.2762836813926697, -0.4806441366672516, 0.11169055849313736, 0.06810028851032257, -0.06634559482336044, -0.30081743001937866, 0.11265601962804794, 0.44036921858787537, -0.02991463989019394, -0.013770133256912231, 0.25935035943984985, 0.504075825214386, 0.3554438054561615, -0.005329098552465439, 0.05082983151078224, -0.01661241240799427, 0.0016250833868980408, 0.022687606513500214, 0.5821031928062439, 0.14045795798301697, 0.0858507752418518, 0.2327135056257248, 0.128744438290596, -0.20314326882362366, 0.23778009414672852, -0.09154863655567169, -0.3499813377857208, -0.10107667744159698, 0.37971124053001404, 0.06237858161330223, -0.016354694962501526, -0.23614062368869781, 0.07321956753730774, -0.44975289702415466, -0.3263024687767029, -0.00622384250164032, 0.11354800313711166, -0.00697886198759079, 0.07716022431850433, 0.039018500596284866, -0.12173425406217575, 0.4378731846809387, 0.37084853649139404, 0.29172688722610474, -0.4959545135498047, -0.0260205939412117, -0.6134390830993652, 0.246972918510437, -0.27853289246559143, 0.2613336145877838, 0.023295972496271133, 0.28098610043525696, -0.23793795704841614, 0.19946300983428955, 0.18944194912910461, -0.012089274823665619, -0.14582595229148865, -0.15874913334846497, -0.2953234016895294, -0.03239123895764351, 0.4535715579986572, -0.13721460103988647, -0.07070749998092651, -0.3728676736354828, 0.08663731813430786, -0.06517089903354645, 0.029280148446559906, -0.22801174223423004, -0.08623804152011871, -0.0900864228606224, 0.36460480093955994, 0.27491211891174316, 0.16416527330875397, 0.7399241328239441, -0.014219559729099274, -0.19039633870124817, -0.30888792872428894, -0.24891673028469086, -0.08743606507778168, 0.04222360625863075, 0.13077151775360107, 0.5580554604530334, -0.071016326546669, -0.45773231983184814, -0.3680812418460846, 0.3573641777038574, -0.2444419413805008, -0.43765032291412354, 0.021613709628582, -0.01602260023355484, 0.0019517019391059875, 0.023479700088500977, -0.10155192762613297, 0.16700968146324158, 0.2402370572090149, 0.14308932423591614, -0.25737884640693665, -0.24537211656570435, 0.49231624603271484, -0.2891906201839447, -0.20535218715667725, 0.09713602811098099, 0.24294555187225342, 0.07886660099029541, -0.1983158439397812, -0.470185250043869, 0.45674678683280945, 0.2685397267341614, 0.06611350923776627, -0.195312961935997, 0.24826285243034363, -0.24614086747169495, 0.21983230113983154, 0.006248295307159424, 0.1118355542421341, 0.20526151359081268, -0.2532481849193573, -0.23654833436012268, -0.08549191057682037 ]